Changeset 945 in SHVCSoftware for branches/SHM-upgrade/source/Lib/TLibDecoder
- Timestamp:
- 31 Dec 2014, 07:37:45 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-upgrade/source/Lib/TLibDecoder/TDecCAVLC.cpp
r938 r945 2234 2234 for (Int i = 0; i < maxNumSubLayersMinus1; i++) 2235 2235 { 2236 #if MULTIPLE_PTL_SUPPORT 2237 READ_FLAG( uiCode, "sub_layer_profile_present_flag[i]" ); rpcPTL->setSubLayerProfilePresentFlag(i, uiCode); 2238 #else 2236 2239 if(profilePresentFlag) 2237 2240 { 2238 2241 READ_FLAG( uiCode, "sub_layer_profile_present_flag[i]" ); rpcPTL->setSubLayerProfilePresentFlag(i, uiCode); 2239 2242 } 2243 #endif 2240 2244 READ_FLAG( uiCode, "sub_layer_level_present_flag[i]" ); rpcPTL->setSubLayerLevelPresentFlag (i, uiCode); 2241 2245 } … … 2252 2256 for(Int i = 0; i < maxNumSubLayersMinus1; i++) 2253 2257 { 2258 #if MULTIPLE_PTL_SUPPORT 2259 if( rpcPTL->getSubLayerProfilePresentFlag(i) ) 2260 #else 2254 2261 if( profilePresentFlag && rpcPTL->getSubLayerProfilePresentFlag(i) ) 2262 #endif 2255 2263 { 2256 2264 parseProfileTier(rpcPTL->getSubLayerPTL(i)); … … 2744 2752 { 2745 2753 vps->setProfilePresentFlag(1, false); 2754 #if MULTIPLE_PTL_SUPPORT 2755 parsePTL( vps->getPTL(1), vps->getProfilePresentFlag(1), vps->getMaxTLayers() - 1 ); 2756 #else 2746 2757 vps->getPTLForExtnPtr()->empty(); 2747 2758 vps->getPTLForExtnPtr()->resize(2); 2748 2759 vps->getPTLForExtn(1)->copyProfileInfo( vps->getPTL() ); 2749 2760 parsePTL( vps->getPTLForExtn(1), vps->getProfilePresentFlag(1), vps->getMaxTLayers() - 1 ); 2761 #endif 2750 2762 } 2751 2763 #endif … … 2974 2986 Int const numBitsForPtlIdx = vps->calculateLenOfSyntaxElement( vps->getNumProfileTierLevel() ); 2975 2987 #endif 2988 #if !MULTIPLE_PTL_SUPPORT 2976 2989 vps->getPTLForExtnPtr()->resize(vps->getNumProfileTierLevel()); 2990 #endif 2977 2991 #if LIST_OF_PTL 2978 2992 for(Int idx = vps->getBaseLayerInternalFlag() ? 2 : 1; idx <= vps->getNumProfileTierLevel() - 1; idx++) … … 2986 3000 #if P0048_REMOVE_PROFILE_REF 2987 3001 // Copy profile information from previous one 3002 #if MULTIPLE_PTL_SUPPORT 3003 vps->getPTL(idx)->copyProfileInfo( vps->getPTL( idx - 1 ) ); 3004 #else 2988 3005 vps->getPTLForExtn(idx)->copyProfileInfo( (idx==1) ? vps->getPTL() : vps->getPTLForExtn( idx - 1 ) ); 3006 #endif 2989 3007 #else 2990 3008 READ_CODE( 6, uiCode, "profile_ref_minus1[i]" ); vps->setProfileLayerSetRef(idx, uiCode + 1); … … 2998 3016 #endif 2999 3017 } 3018 #if MULTIPLE_PTL_SUPPORT 3019 parsePTL( vps->getPTL(idx), vps->getProfilePresentFlag(idx), vps->getMaxTLayers() - 1 ); 3020 #else 3000 3021 parsePTL( vps->getPTLForExtn(idx), vps->getProfilePresentFlag(idx), vps->getMaxTLayers() - 1 ); 3022 #endif 3001 3023 } 3002 3024 #endif
Note: See TracChangeset for help on using the changeset viewer.