Changeset 1062 in 3DVCSoftware for branches/HTM-12.0-dev1/source/Lib/TLibDecoder/TDecCAVLC.cpp
- Timestamp:
- 7 Oct 2014, 20:41:24 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HTM-12.0-dev1/source/Lib/TLibDecoder/TDecCAVLC.cpp
r1060 r1062 803 803 804 804 parsePTL(pcSPS->getPTL(), 1, pcSPS->getMaxTLayers() - 1); 805 #if H_MV_HLS10_PTL_INFER_FIX 806 pcSPS->getPTL()->inferGeneralValues ( true, 0, NULL ); 807 pcSPS->getPTL()->inferSubLayerValues( pcSPS->getMaxTLayers() - 1, 0, NULL ); 808 #endif 805 809 #if H_MV 806 810 } … … 1146 1150 READ_CODE( 16, uiCode, "vps_reserved_ffff_16bits" ); assert(uiCode == 0xffff); 1147 1151 parsePTL ( pcVPS->getPTL(), true, pcVPS->getMaxTLayers()-1); 1152 #if H_MV_HLS10_PTL_INFER_FIX 1153 #if H_MV 1154 pcVPS->getPTL()->inferGeneralValues ( true, 0, NULL ); 1155 pcVPS->getPTL()->inferSubLayerValues( pcVPS->getMaxTLayers() - 1, 0, NULL ); 1156 #endif 1157 #endif 1148 1158 UInt subLayerOrderingInfoPresentFlag; 1149 1159 READ_FLAG(subLayerOrderingInfoPresentFlag, "vps_sub_layer_ordering_info_present_flag"); … … 1269 1279 parsePTL( pcVPS->getPTL( 1 ),0, pcVPS->getMaxSubLayersMinus1() ); 1270 1280 1281 #if !H_MV_HLS10_PTL_INFER_FIX 1271 1282 // Copy Profile info 1272 1283 TComPTL temp = *pcVPS->getPTL( 1 ); 1273 1284 *pcVPS->getPTL( 1 ) = *pcVPS->getPTL( 0 ); 1274 1285 pcVPS->getPTL( 1 )->copyLevelFrom( &temp ); 1286 #else 1287 pcVPS->getPTL( 1 )->inferGeneralValues ( false, 1, pcVPS->getPTL( 0 ) ); 1288 pcVPS->getPTL( 1 )->inferSubLayerValues( pcVPS->getMaxSubLayersMinus1(), 1, pcVPS->getPTL( 0 ) ); 1289 #endif 1275 1290 } 1276 1291 #endif … … 1404 1419 READ_FLAG( uiCode, "vps_profile_present_flag[i]" ); pcVPS->setVpsProfilePresentFlag( i, uiCode == 1 ); 1405 1420 parsePTL ( pcVPS->getPTL( offsetVal ), pcVPS->getVpsProfilePresentFlag( i ), pcVPS->getMaxTLayers()-1); 1421 #if H_MV_HLS10_PTL_INFER_FIX 1422 pcVPS->getPTL( offsetVal )->inferGeneralValues ( pcVPS->getVpsProfilePresentFlag( i ), offsetVal, pcVPS->getPTL( offsetVal - 1 ) ); 1423 pcVPS->getPTL( offsetVal )->inferSubLayerValues( pcVPS->getMaxSubLayersMinus1() , offsetVal, pcVPS->getPTL( offsetVal - 1 ) ); 1424 #else 1406 1425 if( !pcVPS->getVpsProfilePresentFlag( i ) ) 1407 1426 { … … 1410 1429 pcVPS->getPTL( offsetVal )->copyLevelFrom( &temp ); 1411 1430 } 1431 #endif 1412 1432 offsetVal++; 1413 1433 } … … 3166 3186 READ_FLAG( uiCode, "sub_layer_profile_present_flag[i]" ); rpcPTL->setSubLayerProfilePresentFlag(i, uiCode); 3167 3187 #if H_MV 3168 rpcPTL->setSubLayerProfilePresentFlag( i, profilePresentFlag && rpcPTL->getSubLayerProfilePresentFlag(i) ); 3188 #if !H_MV_HLS10_PTL_INFER_FIX 3189 rpcPTL->setSubLayerProfilePresentFlag( i, profilePresentFlag && rpcPTL->getSubLayerProfilePresentFlag(i) ); 3190 #else 3191 // When profilePresentFlag is equal to 0, sub_layer_profile_present_flag[ i ] shall be equal to 0. 3192 assert( profilePresentFlag || !rpcPTL->getSubLayerProfilePresentFlag(i) ); 3193 #endif 3169 3194 #else 3170 3195 } … … 3184 3209 for(Int i = 0; i < maxNumSubLayersMinus1; i++) 3185 3210 { 3186 if( profilePresentFlag && rpcPTL->getSubLayerProfilePresentFlag(i) ) 3211 #if H_MV_HLS10_PTL_INFER_FIX 3212 #if H_MV 3213 if( rpcPTL->getSubLayerProfilePresentFlag(i) ) 3214 #else 3215 if( profilePresentFlag && rpcPTL->getSubLayerProfilePresentFlag(i) ) 3216 #endif 3217 #else 3218 if( profilePresentFlag && rpcPTL->getSubLayerProfilePresentFlag(i) ) 3219 #endif 3187 3220 { 3188 3221 parseProfileTier(rpcPTL->getSubLayerPTL(i)); … … 3218 3251 3219 3252 #if H_MV_HLS10_PTL 3253 #if H_MV_HLS10_PTL_INFER_FIX 3254 if( ptl->getV2ConstraintsPresentFlag() ) 3255 #else 3220 3256 if( ptl->getProfileIdc( ) == 4 || ptl->getProfileCompatibilityFlag( 4 ) || 3221 3257 ptl->getProfileIdc( ) == 5 || ptl->getProfileCompatibilityFlag( 5 ) || 3222 3258 ptl->getProfileIdc( ) == 6 || ptl->getProfileCompatibilityFlag( 6 ) || 3223 3259 ptl->getProfileIdc( ) == 7 || ptl->getProfileCompatibilityFlag( 7 ) ) 3224 { 3225 READ_FLAG( uiCode, "max_12bit_constraint_flag" ); ptl->setMax12bitConstraintFlag( uiCode == 1 ); 3226 READ_FLAG( uiCode, "max_10bit_constraint_flag" ); ptl->setMax10bitConstraintFlag( uiCode == 1 ); 3227 READ_FLAG( uiCode, "max_8bit_constraint_flag" ); ptl->setMax8bitConstraintFlag( uiCode == 1 ); 3228 READ_FLAG( uiCode, "max_422chroma_constraint_flag" ); ptl->setMax422chromaConstraintFlag( uiCode == 1 ); 3229 READ_FLAG( uiCode, "max_420chroma_constraint_flag" ); ptl->setMax420chromaConstraintFlag( uiCode == 1 ); 3230 READ_FLAG( uiCode, "max_monochrome_constraint_flag" ); ptl->setMaxMonochromeConstraintFlag( uiCode == 1 ); 3231 READ_FLAG( uiCode, "intra_constraint_flag" ); ptl->setIntraConstraintFlag( uiCode == 1 ); 3260 #endif 3261 { 3262 READ_FLAG( uiCode, "max_12bit_constraint_flag" ); ptl->setMax12bitConstraintFlag ( uiCode == 1 ); 3263 READ_FLAG( uiCode, "max_10bit_constraint_flag" ); ptl->setMax10bitConstraintFlag ( uiCode == 1 ); 3264 READ_FLAG( uiCode, "max_8bit_constraint_flag" ); ptl->setMax8bitConstraintFlag ( uiCode == 1 ); 3265 READ_FLAG( uiCode, "max_422chroma_constraint_flag" ); ptl->setMax422chromaConstraintFlag ( uiCode == 1 ); 3266 READ_FLAG( uiCode, "max_420chroma_constraint_flag" ); ptl->setMax420chromaConstraintFlag ( uiCode == 1 ); 3267 READ_FLAG( uiCode, "max_monochrome_constraint_flag" ); ptl->setMaxMonochromeConstraintFlag ( uiCode == 1 ); 3268 READ_FLAG( uiCode, "intra_constraint_flag" ); ptl->setIntraConstraintFlag ( uiCode == 1 ); 3232 3269 READ_FLAG( uiCode, "one_picture_only_constraint_flag" ); ptl->setOnePictureOnlyConstraintFlag( uiCode == 1 ); 3233 READ_FLAG( uiCode, "lower_bit_rate_constraint_flag" ); ptl->setLowerBitRateConstraintFlag( uiCode == 1 );3270 READ_FLAG( uiCode, "lower_bit_rate_constraint_flag" ); ptl->setLowerBitRateConstraintFlag ( uiCode == 1 ); 3234 3271 READ_CODE(16, uiCode, "XXX_reserved_zero_34bits[0..15]"); 3235 3272 READ_CODE(16, uiCode, "XXX_reserved_zero_34bits[16..31]"); … … 3242 3279 READ_CODE(11, uiCode, "XXX_reserved_zero_43bits[32..42]"); 3243 3280 } 3281 #if H_MV_HLS10_PTL_INFER_FIX 3282 if( ptl->getInbldPresentFlag() ) 3283 #else 3244 3284 if( ( ptl->getProfileIdc() >= 1 && ptl->getProfileIdc() <= 5 ) || 3245 3285 ptl->getProfileCompatibilityFlag( 1 ) || ptl->getProfileCompatibilityFlag( 2 ) || 3246 3286 ptl->getProfileCompatibilityFlag( 3 ) || ptl->getProfileCompatibilityFlag( 4 ) || 3247 3287 ptl->getProfileCompatibilityFlag( 5 ) ) 3288 #endif 3248 3289 { 3249 3290 READ_FLAG( uiCode, "inbld_flag" ); ptl->setInbldFlag( uiCode == 1 );
Note: See TracChangeset for help on using the changeset viewer.