Changeset 1121 in SHVCSoftware for branches/SHM-dev/source/Lib/TLibEncoder
- Timestamp:
- 7 Jul 2015, 02:05:04 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-dev/source/Lib/TLibEncoder/TEncCavlc.cpp
r1119 r1121 2279 2279 2280 2280 #if REPN_FORMAT_IN_VPS 2281 #if Q0195_REP_FORMAT_CLEANUP2282 2281 // The value of vps_num_rep_formats_minus1 shall be in the range of 0 to 255, inclusive. 2283 2282 assert( vps->getVpsNumRepFormats() > 0 && vps->getVpsNumRepFormats() <= 256 ); … … 2313 2312 } 2314 2313 } 2315 #else 2316 WRITE_FLAG( vps->getRepFormatIdxPresentFlag(), "rep_format_idx_present_flag"); 2317 2318 if( vps->getRepFormatIdxPresentFlag() ) 2319 { 2320 // The value of vps_num_rep_formats_minus1 shall be in the range of 0 to 255, inclusive. 2321 assert( vps->getVpsNumRepFormats() > 0 && vps->getVpsNumRepFormats() <= 256 ); 2322 2323 #if !VPS_EXTN_UEV_CODING 2324 WRITE_CODE( vps->getVpsNumRepFormats() - 1, 8, "vps_num_rep_formats_minus1" ); 2325 #else 2326 WRITE_UVLC( vps->getVpsNumRepFormats() - 1, "vps_num_rep_formats_minus1" ); 2327 #endif 2328 2329 } 2330 for(i = 0; i < vps->getVpsNumRepFormats(); i++) 2331 { 2332 // Read rep_format_structures 2333 codeRepFormat( vps->getVpsRepFormat(i) ); 2334 } 2335 2336 if( vps->getRepFormatIdxPresentFlag() ) 2337 { 2338 for(i = 1; i < vps->getMaxLayers(); i++) 2339 { 2340 if( vps->getVpsNumRepFormats() > 1 ) 2341 { 2342 #if !VPS_EXTN_UEV_CODING 2343 WRITE_CODE( vps->getVpsRepFormatIdx(i), 8, "vps_rep_format_idx[i]" ); 2344 #else 2345 Int numBits = 1; 2346 while ((1 << numBits) < (vps->getVpsNumRepFormats())) 2347 { 2348 numBits++; 2349 } 2350 WRITE_CODE( vps->getVpsRepFormatIdx(i), numBits, "vps_rep_format_idx[i]" ); 2351 #endif 2352 2353 } 2354 } 2355 } 2356 #endif 2357 #endif //REPN_FORMAT_IN_VPS 2314 #endif 2358 2315 2359 2316 WRITE_FLAG(vps->getMaxOneActiveRefLayerFlag(), "max_one_active_ref_layer_flag");
Note: See TracChangeset for help on using the changeset viewer.