Changeset 1182 in SHVCSoftware for branches/SHM-dev/source/Lib/TLibDecoder/TDecCAVLC.cpp
- Timestamp:
- 8 Jul 2015, 03:09:51 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-dev/source/Lib/TLibDecoder/TDecCAVLC.cpp
r1180 r1182 2109 2109 for (Int i = 0; i < maxNumSubLayersMinus1; i++) 2110 2110 { 2111 #if MULTIPLE_PTL_SUPPORT2111 #if SVC_EXTENSION 2112 2112 READ_FLAG( uiCode, "sub_layer_profile_present_flag[i]" ); rpcPTL->setSubLayerProfilePresentFlag(i, uiCode); 2113 2113 #else … … 2131 2131 for(Int i = 0; i < maxNumSubLayersMinus1; i++) 2132 2132 { 2133 #if MULTIPLE_PTL_SUPPORT2133 #if SVC_EXTENSION 2134 2134 if( rpcPTL->getSubLayerProfilePresentFlag(i) ) 2135 2135 #else … … 2183 2183 READ_FLAG( uiCode, "general_one_picture_only_constraint_flag"); 2184 2184 READ_FLAG( uiCode, "general_lower_bit_rate_constraint_flag"); ptl->setLowerBitRateConstraintFlag(uiCode != 0); 2185 #if MULTIPLE_PTL_SUPPORT2185 #if SVC_EXTENSION 2186 2186 READ_CODE(32, uiCode, "general_reserved_zero_34bits"); READ_CODE(2, uiCode, "general_reserved_zero_34bits"); 2187 2187 } … … 2662 2662 { 2663 2663 vps->setProfilePresentFlag(1, false); 2664 #if MULTIPLE_PTL_SUPPORT2665 2664 parsePTL( vps->getPTL(1), vps->getProfilePresentFlag(1), vps->getMaxTLayers() - 1 ); 2666 #else2667 vps->getPTLForExtnPtr()->empty();2668 vps->getPTLForExtnPtr()->resize(2);2669 vps->getPTLForExtn(1)->copyProfileInfo( vps->getPTL() );2670 parsePTL( vps->getPTLForExtn(1), vps->getProfilePresentFlag(1), vps->getMaxTLayers() - 1 );2671 #endif2672 2665 } 2673 2666 … … 2857 2850 2858 2851 Int const numBitsForPtlIdx = vps->calculateLenOfSyntaxElement( vps->getNumProfileTierLevel() ); 2859 #if !MULTIPLE_PTL_SUPPORT 2860 vps->getPTLForExtnPtr()->resize(vps->getNumProfileTierLevel()); 2861 #endif 2862 2863 for(Int idx = vps->getBaseLayerInternalFlag() ? 2 : 1; idx < vps->getNumProfileTierLevel(); idx++) 2852 2853 for( Int idx = vps->getBaseLayerInternalFlag() ? 2 : 1; idx < vps->getNumProfileTierLevel(); idx++ ) 2864 2854 { 2865 2855 READ_FLAG( uiCode, "vps_profile_present_flag[i]" ); vps->setProfilePresentFlag(idx, uiCode ? true : false); 2856 2866 2857 if( !vps->getProfilePresentFlag(idx) ) 2867 2858 { 2868 2859 // Copy profile information from previous one 2869 #if MULTIPLE_PTL_SUPPORT2870 2860 vps->getPTL(idx)->copyProfileInfo( vps->getPTL( idx - 1 ) ); 2871 #else 2872 vps->getPTLForExtn(idx)->copyProfileInfo( (idx==1) ? vps->getPTL() : vps->getPTLForExtn( idx - 1 ) ); 2873 #endif 2874 } 2875 #if MULTIPLE_PTL_SUPPORT 2861 } 2862 2876 2863 parsePTL( vps->getPTL(idx), vps->getProfilePresentFlag(idx), vps->getMaxTLayers() - 1 ); 2877 #else2878 parsePTL( vps->getPTLForExtn(idx), vps->getProfilePresentFlag(idx), vps->getMaxTLayers() - 1 );2879 #endif2880 2864 } 2881 2865 … … 2952 2936 2953 2937 vps->getProfileLevelTierIdx(i)->assign(vps->getNumLayersInIdList(layerSetIdxForOutputLayerSet), -1); 2954 for(j = 0; j < vps->getNumLayersInIdList(layerSetIdxForOutputLayerSet) ; j++) 2938 2939 for( j = 0; j < vps->getNumLayersInIdList(layerSetIdxForOutputLayerSet); j++ ) 2955 2940 { 2956 2941 if( vps->getNecessaryLayerFlag(i, j) && (vps->getNumProfileTierLevel()-1) > 0 ) … … 2959 2944 vps->setProfileLevelTierIdx(i, j, uiCode ); 2960 2945 2961 #if MULTIPLE_PTL_SUPPORT2962 2946 //For conformance checking 2963 2947 //Conformance of a layer in an output operation point associated with an OLS in a bitstream to the Scalable Main profile is indicated as follows: … … 2977 2961 } 2978 2962 } 2979 #endif2980 2963 } 2981 2964 }
Note: See TracChangeset for help on using the changeset viewer.