Changeset 454 in SHVCSoftware for branches/SHM-4.0-dev/source/Lib/TLibEncoder
- Timestamp:
- 8 Nov 2013, 07:59:51 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-4.0-dev/source/Lib/TLibEncoder/TEncCavlc.cpp
r453 r454 812 812 } 813 813 814 #if SVC_EXTENSION 814 815 #if VPS_EXTNS 815 816 Void TEncCavlc::codeVPSExtension (TComVPS *vps) … … 907 908 #if VPS_EXTN_PROFILE_INFO 908 909 // Profile-tier-level signalling 909 #if VPS_PROFILE_OUTPUT_LAYERS910 910 WRITE_CODE( vps->getNumLayerSets() - 1 , 10, "vps_number_layer_sets_minus1" ); 911 911 WRITE_CODE( vps->getNumProfileTierLevel() - 1, 6, "vps_num_profile_tier_level_minus1"); 912 912 for(Int idx = 1; idx <= vps->getNumProfileTierLevel() - 1; idx++) 913 #else914 for(Int idx = 1; idx <= vps->getNumLayerSets() - 1; idx++)915 #endif916 913 { 917 914 WRITE_FLAG( vps->getProfilePresentFlag(idx), "vps_profile_present_flag[i]" ); 918 915 if( !vps->getProfilePresentFlag(idx) ) 919 916 { 920 #if VPS_PROFILE_OUTPUT_LAYERS921 917 WRITE_CODE( vps->getProfileLayerSetRef(idx) - 1, 6, "profile_ref_minus1[i]" ); 922 #else923 WRITE_UVLC( vps->getProfileLayerSetRef(idx) - 1, "vps_profile_layer_set_ref_minus1[i]" );924 #endif925 918 } 926 919 codePTL( vps->getPTLForExtn(idx), vps->getProfilePresentFlag(idx), vps->getMaxTLayers() - 1 ); … … 928 921 #endif 929 922 930 #if VPS_PROFILE_OUTPUT_LAYERS931 923 Int numOutputLayerSets = vps->getNumOutputLayerSets() ; 932 924 WRITE_FLAG( (numOutputLayerSets > vps->getNumLayerSets()), "more_output_layer_sets_than_default_flag" ); … … 963 955 WRITE_CODE( vps->getProfileLevelTierIdx(i), numBits, "profile_level_tier_idx[i]" ); 964 956 } 965 #else 966 #if VPS_EXTN_OP_LAYER_SETS 967 // Target output layer signalling 968 WRITE_UVLC( vps->getNumOutputLayerSets(), "vps_num_output_layer_sets"); 969 for(i = 0; i < vps->getNumOutputLayerSets(); i++) 970 { 971 #if VPS_OUTPUT_LAYER_SET_IDX 972 assert(vps->getOutputLayerSetIdx(i) > 0); 973 WRITE_UVLC( vps->getOutputLayerSetIdx(i) - 1, "vps_output_layer_set_idx_minus1[i]"); 974 #else 975 WRITE_UVLC( vps->getOutputLayerSetIdx(i), "vps_output_layer_set_idx[i]"); 976 #endif 977 Int lsIdx = vps->getOutputLayerSetIdx(i); 978 for(j = 0; j <= vps->getMaxLayerId(); j++) 979 { 980 if(vps->getLayerIdIncludedFlag(lsIdx, j)) 981 { 982 WRITE_FLAG( vps->getOutputLayerFlag(lsIdx, j), "vps_output_layer_flag[lsIdx][j]"); 983 } 984 } 985 } 986 #endif 987 #endif 988 957 989 958 #if REPN_FORMAT_IN_VPS 990 959 WRITE_FLAG( vps->getRepFormatIdxPresentFlag(), "rep_format_idx_present_flag"); … … 1162 1131 } 1163 1132 #endif 1133 #endif //SVC_EXTENSION 1164 1134 1165 1135 Void TEncCavlc::codeSliceHeader ( TComSlice* pcSlice )
Note: See TracChangeset for help on using the changeset viewer.