Changeset 1182 in SHVCSoftware for branches/SHM-dev/source/Lib/TLibEncoder
- Timestamp:
- 8 Jul 2015, 03:09:51 (10 years ago)
- Location:
- branches/SHM-dev/source/Lib/TLibEncoder
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-dev/source/Lib/TLibEncoder/TEncCavlc.cpp
r1180 r1182 1333 1333 for (Int i = 0; i < maxNumSubLayersMinus1; i++) 1334 1334 { 1335 #if MULTIPLE_PTL_SUPPORT1335 #if SVC_EXTENSION 1336 1336 WRITE_FLAG( pcPTL->getSubLayerProfilePresentFlag(i), "sub_layer_profile_present_flag[i]" ); 1337 1337 #else … … 1355 1355 for(Int i = 0; i < maxNumSubLayersMinus1; i++) 1356 1356 { 1357 #if MULTIPLE_PTL_SUPPORT1357 #if SVC_EXTENSION 1358 1358 if( pcPTL->getSubLayerProfilePresentFlag(i) ) 1359 1359 #else … … 1373 1373 WRITE_CODE( ptl->getProfileSpace(), 2 , "XXX_profile_space[]"); 1374 1374 WRITE_FLAG( ptl->getTierFlag()==Level::HIGH, "XXX_tier_flag[]" ); 1375 #if MULTIPLE_PTL_SUPPORT1375 #if SVC_EXTENSION 1376 1376 WRITE_CODE( (ptl->getProfileIdc() == Profile::SCALABLEMAIN || ptl->getProfileIdc() == Profile::SCALABLEMAIN10) ? 7 : Int(ptl->getProfileIdc()), 5 , "XXX_profile_idc[]" ); 1377 1377 #else … … 1401 1401 WRITE_FLAG(0, "general_one_picture_only_constraint_flag"); 1402 1402 WRITE_FLAG(ptl->getLowerBitRateConstraintFlag(), "general_lower_bit_rate_constraint_flag"); 1403 #if MULTIPLE_PTL_SUPPORT1403 #if SVC_EXTENSION 1404 1404 WRITE_CODE(0, 32, "general_reserved_zero_34bits"); WRITE_CODE(0, 2, "general_reserved_zero_34bits"); 1405 1405 } … … 1977 1977 if( vps->getMaxLayers() > 1 && vps->getBaseLayerInternalFlag() ) 1978 1978 { 1979 #if MULTIPLE_PTL_SUPPORT1980 1979 codePTL( vps->getPTL(1), false, vps->getMaxTLayers() - 1 ); 1981 #else1982 codePTL( vps->getPTLForExtn(1), false, vps->getMaxTLayers() - 1 );1983 #endif1984 1980 } 1985 1981 … … 2112 2108 Int const numBitsForPtlIdx = vps->calculateLenOfSyntaxElement( vps->getNumProfileTierLevel() ); 2113 2109 2114 #if MULTIPLE_PTL_SUPPORT2115 2110 //Do something here to make sure the loop is correct to consider base layer internal stuff 2116 #else 2117 assert( vps->getNumProfileTierLevel() == vps->getPTLForExtnPtr()->size()); 2118 #endif 2119 for(Int idx = vps->getBaseLayerInternalFlag() ? 2 : 1; idx < vps->getNumProfileTierLevel(); idx++) 2120 { 2121 #if MULTIPLE_PTL_SUPPORT 2111 2112 for( Int idx = vps->getBaseLayerInternalFlag() ? 2 : 1; idx < vps->getNumProfileTierLevel(); idx++ ) 2113 { 2122 2114 vps->setProfilePresentFlag(idx, true); 2123 #endif 2115 2124 2116 WRITE_FLAG( vps->getProfilePresentFlag(idx), "vps_profile_present_flag[i]" ); 2125 #if MULTIPLE_PTL_SUPPORT 2117 2126 2118 codePTL( vps->getPTL(idx), vps->getProfilePresentFlag(idx), vps->getMaxTLayers() - 1 ); 2127 #else2128 codePTL( vps->getPTLForExtn(idx), vps->getProfilePresentFlag(idx), vps->getMaxTLayers() - 1 );2129 #endif2130 2119 } 2131 2120 -
branches/SHM-dev/source/Lib/TLibEncoder/TEncTop.cpp
r1174 r1182 240 240 241 241 // set the VPS profile information 242 #if !MULTIPLE_PTL_SUPPORT243 *m_cVPS.getPTL() = *m_cSPS.getPTL();244 #endif245 242 #if VPS_VUI_BSP_HRD_PARAMS 246 243 m_cVPS.getTimingInfo()->setTimingInfoPresentFlag ( true ); 247 244 #else 245 *m_cVPS.getPTL() = *m_cSPS.getPTL(); 248 246 m_cVPS.getTimingInfo()->setTimingInfoPresentFlag ( false ); 249 247 #endif
Note: See TracChangeset for help on using the changeset viewer.