Changeset 662 in SHVCSoftware for branches/SHM-6-dev/source/Lib/TLibEncoder
- Timestamp:
- 10 Apr 2014, 02:02:07 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-6-dev/source/Lib/TLibEncoder/TEncCavlc.cpp
r660 r662 1072 1072 1073 1073 #if REPN_FORMAT_IN_VPS 1074 #if Q0195_REP_FORMAT_CLEANUP 1075 WRITE_UVLC( vps->getVpsNumRepFormats() - 1, "vps_num_rep_formats_minus1" ); 1076 for(i = 0; i < vps->getVpsNumRepFormats(); i++) 1077 { 1078 // Write rep_format_structures 1079 codeRepFormat( vps->getVpsRepFormat(i) ); 1080 } 1081 1082 if ( vps->getVpsNumRepFormats() > 1 ) 1083 WRITE_FLAG( vps->getRepFormatIdxPresentFlag(), "rep_format_idx_present_flag"); 1084 1085 if( vps->getRepFormatIdxPresentFlag() ) 1086 { 1087 for(i = 1; i < vps->getMaxLayers(); i++) 1088 { 1089 Int numBits = 1; 1090 while ((1 << numBits) < (vps->getVpsNumRepFormats())) 1091 { 1092 numBits++; 1093 } 1094 WRITE_CODE( vps->getVpsRepFormatIdx(i), numBits, "vps_rep_format_idx[i]" ); 1095 } 1096 } 1097 #else 1074 1098 WRITE_FLAG( vps->getRepFormatIdxPresentFlag(), "rep_format_idx_present_flag"); 1075 1099 … … 1118 1142 } 1119 1143 } 1144 #endif 1120 1145 #endif 1121 1146
Note: See TracChangeset for help on using the changeset viewer.