Changeset 1136 in SHVCSoftware for branches/SHM-dev/source/Lib/TLibEncoder
- Timestamp:
- 7 Jul 2015, 23:12:48 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-dev/source/Lib/TLibEncoder/TEncCavlc.cpp
r1135 r1136 2415 2415 Void TEncCavlc::codeVpsDpbSizeTable(TComVPS *vps) 2416 2416 { 2417 #if !SUB_LAYERS_IN_LAYER_SET // MaxSLInLayerSets calculated earlier in the encoder2418 #if DPB_PARAMS_MAXTLAYERS2419 #if BITRATE_PICRATE_SIGNALLING2420 Int * MaxSubLayersInLayerSetMinus1 = new Int[vps->getNumLayerSets()];2421 for(Int i = 0; i < vps->getNumLayerSets(); i++)2422 #else2423 Int * MaxSubLayersInLayerSetMinus1 = new Int[vps->getNumOutputLayerSets()];2424 for(Int i = 1; i < vps->getNumOutputLayerSets(); i++)2425 #endif2426 {2427 UInt maxSLMinus1 = 0;2428 Int optLsIdx = vps->getOutputLayerSetIdx( i );2429 #if BITRATE_PICRATE_SIGNALLING2430 optLsIdx = i;2431 #endif2432 for(Int k = 0; k < vps->getNumLayersInIdList(optLsIdx); k++ ) {2433 Int lId = vps->getLayerSetLayerIdList(optLsIdx, k);2434 maxSLMinus1 = max(maxSLMinus1, vps->getMaxTSLayersMinus1(vps->getLayerIdxInVps(lId)));2435 }2436 MaxSubLayersInLayerSetMinus1[ i ] = maxSLMinus1;2437 #if BITRATE_PICRATE_SIGNALLING2438 vps->setMaxSLayersInLayerSetMinus1(i,MaxSubLayersInLayerSetMinus1[ i ]);2439 #endif2440 }2441 #endif2442 #endif2443 2444 2445 2417 for(Int i = 1; i < vps->getNumOutputLayerSets(); i++) 2446 2418 { … … 2448 2420 2449 2421 WRITE_FLAG( vps->getSubLayerFlagInfoPresentFlag( i ), "sub_layer_flag_info_present_flag[i]"); 2450 #if SUB_LAYERS_IN_LAYER_SET 2422 2451 2423 for(Int j = 0; j <= vps->getMaxSLayersInLayerSetMinus1( layerSetIdxForOutputLayerSet ); j++) 2452 #else2453 #if DPB_PARAMS_MAXTLAYERS2454 #if BITRATE_PICRATE_SIGNALLING2455 for(Int j = 0; j <= MaxSubLayersInLayerSetMinus1[ vps->getOutputLayerSetIdx( i ) ]; j++)2456 #else2457 for(Int j = 0; j <= MaxSubLayersInLayerSetMinus1[ i ]; j++)2458 #endif2459 #else2460 for(Int j = 0; j < vps->getMaxTLayers(); j++)2461 #endif2462 #endif2463 2424 { 2464 2425 if( j > 0 && vps->getSubLayerFlagInfoPresentFlag(i) ) … … 2481 2442 } 2482 2443 } 2483 2484 #if !SUB_LAYERS_IN_LAYER_SET2485 #if BITRATE_PICRATE_SIGNALLING2486 if( MaxSubLayersInLayerSetMinus1 )2487 {2488 delete [] MaxSubLayersInLayerSetMinus1;2489 }2490 #endif2491 #endif2492 2444 } 2493 2445 #endif
Note: See TracChangeset for help on using the changeset viewer.