Changeset 945 in SHVCSoftware for branches/SHM-upgrade/source/Lib/TLibEncoder
- Timestamp:
- 31 Dec 2014, 07:37:45 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-upgrade/source/Lib/TLibEncoder/TEncCavlc.cpp
r938 r945 1455 1455 for (Int i = 0; i < maxNumSubLayersMinus1; i++) 1456 1456 { 1457 #if MULTIPLE_PTL_SUPPORT 1458 WRITE_FLAG( pcPTL->getSubLayerProfilePresentFlag(i), "sub_layer_profile_present_flag[i]" ); 1459 #else 1457 1460 if(profilePresentFlag) 1458 1461 { 1459 1462 WRITE_FLAG( pcPTL->getSubLayerProfilePresentFlag(i), "sub_layer_profile_present_flag[i]" ); 1460 1463 } 1464 #endif 1461 1465 1462 1466 WRITE_FLAG( pcPTL->getSubLayerLevelPresentFlag(i), "sub_layer_level_present_flag[i]" ); … … 1473 1477 for(Int i = 0; i < maxNumSubLayersMinus1; i++) 1474 1478 { 1479 #if MULTIPLE_PTL_SUPPORT 1480 if( pcPTL->getSubLayerProfilePresentFlag(i) ) 1481 #else 1475 1482 if( profilePresentFlag && pcPTL->getSubLayerProfilePresentFlag(i) ) 1483 #endif 1476 1484 { 1477 1485 codeProfileTier(pcPTL->getSubLayerPTL(i)); // sub_layer_... … … 2060 2068 if( vps->getMaxLayers() > 1 && vps->getBaseLayerInternalFlag() ) 2061 2069 { 2070 #if MULTIPLE_PTL_SUPPORT 2071 codePTL( vps->getPTL(1), false, vps->getMaxTLayers() - 1 ); 2072 #else 2062 2073 codePTL( vps->getPTLForExtn(1), false, vps->getMaxTLayers() - 1 ); 2074 #endif 2063 2075 } 2064 2076 #endif … … 2226 2238 #endif 2227 2239 #if LIST_OF_PTL 2240 #if MULTIPLE_PTL_SUPPORT 2241 //Do something here to make sure the loop is correct to consider base layer internal stuff 2242 #else 2228 2243 assert( vps->getNumProfileTierLevel() == vps->getPTLForExtnPtr()->size()); 2244 #endif 2229 2245 for(Int idx = vps->getBaseLayerInternalFlag() ? 2 : 1; idx <= vps->getNumProfileTierLevel() - 1; idx++) 2230 2246 #else … … 2232 2248 #endif 2233 2249 { 2250 #if MULTIPLE_PTL_SUPPORT 2251 vps->setProfilePresentFlag(idx, true); 2252 #endif 2234 2253 WRITE_FLAG( vps->getProfilePresentFlag(idx), "vps_profile_present_flag[i]" ); 2235 2254 #if !P0048_REMOVE_PROFILE_REF … … 2239 2258 } 2240 2259 #endif 2260 #if MULTIPLE_PTL_SUPPORT 2261 codePTL( vps->getPTL(idx), vps->getProfilePresentFlag(idx), vps->getMaxTLayers() - 1 ); 2262 #else 2241 2263 codePTL( vps->getPTLForExtn(idx), vps->getProfilePresentFlag(idx), vps->getMaxTLayers() - 1 ); 2264 #endif 2242 2265 } 2243 2266 #endif
Note: See TracChangeset for help on using the changeset viewer.