Changeset 576 in SHVCSoftware for branches/SHM-5.0-dev/source/Lib/TLibEncoder
- Timestamp:
- 29 Jan 2014, 01:17:30 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-5.0-dev/source/Lib/TLibEncoder/TEncCavlc.cpp
r570 r576 932 932 #if VPS_EXTN_PROFILE_INFO 933 933 // Profile-tier-level signalling 934 #if !VPS_EXTN_UEV_CODING 934 935 WRITE_CODE( vps->getNumLayerSets() - 1 , 10, "vps_number_layer_sets_minus1" ); 935 936 WRITE_CODE( vps->getNumProfileTierLevel() - 1, 6, "vps_num_profile_tier_level_minus1"); 937 #else 938 WRITE_UVLC( vps->getNumProfileTierLevel() - 1, "vps_num_profile_tier_level_minus1"); 939 #endif 936 940 for(Int idx = 1; idx <= vps->getNumProfileTierLevel() - 1; idx++) 937 941 { … … 947 951 #endif 948 952 953 #if !VPS_EXTN_UEV_CODING 949 954 Int numOutputLayerSets = vps->getNumOutputLayerSets() ; 950 955 WRITE_FLAG( (numOutputLayerSets > vps->getNumLayerSets()), "more_output_layer_sets_than_default_flag" ); … … 953 958 WRITE_CODE( numOutputLayerSets - vps->getNumLayerSets(), 10, "num_add_output_layer_sets" ); 954 959 } 960 #else 961 Int numOutputLayerSets = vps->getNumOutputLayerSets() ; 962 assert( numOutputLayerSets - vps->getNumLayerSets() >= 0 ); 963 WRITE_UVLC( numOutputLayerSets - vps->getNumLayerSets(), "num_add_output_layer_sets" ); 964 #endif 955 965 if( numOutputLayerSets > 1 ) 956 966 { … … 999 1009 { 1000 1010 #if O0096_REP_FORMAT_INDEX 1011 #if !VPS_EXTN_UEV_CODING 1001 1012 WRITE_CODE( vps->getVpsNumRepFormats() - 1, 8, "vps_num_rep_formats_minus1" ); 1013 #else 1014 WRITE_UVLC( vps->getVpsNumRepFormats() - 1, "vps_num_rep_formats_minus1" ); 1015 #endif 1002 1016 #else 1003 1017 WRITE_CODE( vps->getVpsNumRepFormats() - 1, 4, "vps_num_rep_formats_minus1" ); … … 1017 1031 { 1018 1032 #if O0096_REP_FORMAT_INDEX 1033 #if !VPS_EXTN_UEV_CODING 1019 1034 WRITE_CODE( vps->getVpsRepFormatIdx(i), 8, "vps_rep_format_idx[i]" ); 1035 #else 1036 Int numBits = 1; 1037 while ((1 << numBits) < (vps->getVpsNumRepFormats())) 1038 { 1039 numBits++; 1040 } 1041 WRITE_CODE( vps->getVpsRepFormatIdx(i), numBits, "vps_rep_format_idx[i]" ); 1042 #endif 1020 1043 #else 1021 1044 WRITE_CODE( vps->getVpsRepFormatIdx(i), 4, "vps_rep_format_idx[i]" );
Note: See TracChangeset for help on using the changeset viewer.