Changeset 941 in SHVCSoftware for branches/SHM-dev/source/Lib/TLibDecoder/TDecCAVLC.cpp
- Timestamp:
- 30 Dec 2014, 18:47:09 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-dev/source/Lib/TLibDecoder/TDecCAVLC.cpp
r937 r941 1375 1375 { 1376 1376 vps->setProfilePresentFlag(1, false); 1377 #if !MULTIPLE_PTL_SUPPORT 1377 1378 vps->getPTLForExtnPtr()->empty(); 1378 1379 vps->getPTLForExtnPtr()->resize(2); 1379 1380 vps->getPTLForExtn(1)->copyProfileInfo( vps->getPTL() ); 1380 1381 parsePTL( vps->getPTLForExtn(1), vps->getProfilePresentFlag(1), vps->getMaxTLayers() - 1 ); 1382 #else 1383 parsePTL( vps->getPTL(1), vps->getProfilePresentFlag(1), vps->getMaxTLayers() - 1 ); 1384 #endif 1381 1385 } 1382 1386 #endif … … 1600 1604 READ_CODE( 6, uiCode, "vps_num_profile_tier_level_minus1"); vps->setNumProfileTierLevel( uiCode + 1 ); 1601 1605 #else 1602 READ_UVLC( uiCode, "vps_num_profile_tier_level_minus1"); vps->setNumProfileTierLevel( uiCode + 1 ); 1606 READ_UVLC( uiCode, "vps_num_profile_tier_level_minus1"); 1607 vps->setNumProfileTierLevel( uiCode + 1 ); 1608 //vps->setNumProfileTierLevel( 3 ); 1609 int aa = vps->getNumProfileTierLevel(); 1603 1610 #endif 1604 1611 #if PER_LAYER_PTL 1605 1612 Int const numBitsForPtlIdx = vps->calculateLenOfSyntaxElement( vps->getNumProfileTierLevel() ); 1606 1613 #endif 1614 #if !MULTIPLE_PTL_SUPPORT 1607 1615 vps->getPTLForExtnPtr()->resize(vps->getNumProfileTierLevel()); 1616 #endif 1608 1617 #if LIST_OF_PTL 1609 1618 for(Int idx = vps->getBaseLayerInternalFlag() ? 2 : 1; idx <= vps->getNumProfileTierLevel() - 1; idx++) … … 1612 1621 #endif 1613 1622 { 1614 READ_FLAG( uiCode, "vps_profile_present_flag[i]" ); vps->setProfilePresentFlag(idx, uiCode ? true : false); 1623 READ_FLAG( uiCode, "vps_profile_present_flag[i]" ); 1624 vps->setProfilePresentFlag(idx, uiCode ? true : false); 1615 1625 if( !vps->getProfilePresentFlag(idx) ) 1616 1626 { 1617 1627 #if P0048_REMOVE_PROFILE_REF 1618 1628 // Copy profile information from previous one 1629 #if !MULTIPLE_PTL_SUPPORT 1619 1630 vps->getPTLForExtn(idx)->copyProfileInfo( (idx==1) ? vps->getPTL() : vps->getPTLForExtn( idx - 1 ) ); 1631 #else 1632 vps->getPTL(idx)->copyProfileInfo( vps->getPTL( idx - 1 ) ); 1633 #endif 1620 1634 #else 1621 1635 READ_CODE( 6, uiCode, "profile_ref_minus1[i]" ); vps->setProfileLayerSetRef(idx, uiCode + 1); … … 1629 1643 #endif 1630 1644 } 1645 #if !MULTIPLE_PTL_SUPPORT 1631 1646 parsePTL( vps->getPTLForExtn(idx), vps->getProfilePresentFlag(idx), vps->getMaxTLayers() - 1 ); 1647 #else 1648 parsePTL( vps->getPTL(idx), vps->getProfilePresentFlag(idx), vps->getMaxTLayers() - 1 ); 1649 #endif 1632 1650 } 1633 1651 #endif … … 1673 1691 if( vps->getNumLayerSets() > 1 ) 1674 1692 { 1675 READ_UVLC( uiCode, "num_add_olss" ); vps->setNumAddOutputLayerSets( uiCode ); 1693 READ_UVLC( uiCode, "num_add_olss" ); 1694 vps->setNumAddOutputLayerSets( uiCode ); 1676 1695 READ_CODE( 2, uiCode, "default_output_layer_idc" ); vps->setDefaultTargetOutputLayerIdc( uiCode ); 1677 1696 }
Note: See TracChangeset for help on using the changeset viewer.