Changeset 1136 in SHVCSoftware for branches/SHM-dev/source/Lib/TLibEncoder


Ignore:
Timestamp:
7 Jul 2015, 23:12:48 (10 years ago)
Author:
seregin
Message:

macro cleanup: SUB_LAYERS_IN_LAYER_SET

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/SHM-dev/source/Lib/TLibEncoder/TEncCavlc.cpp

    r1135 r1136  
    24152415Void TEncCavlc::codeVpsDpbSizeTable(TComVPS *vps)
    24162416{
    2417 #if !SUB_LAYERS_IN_LAYER_SET  // MaxSLInLayerSets calculated earlier in the encoder
    2418 #if DPB_PARAMS_MAXTLAYERS
    2419 #if BITRATE_PICRATE_SIGNALLING
    2420     Int * MaxSubLayersInLayerSetMinus1 = new Int[vps->getNumLayerSets()];
    2421     for(Int i = 0; i < vps->getNumLayerSets(); i++)
    2422 #else
    2423     Int * MaxSubLayersInLayerSetMinus1 = new Int[vps->getNumOutputLayerSets()];
    2424     for(Int i = 1; i < vps->getNumOutputLayerSets(); i++)
    2425 #endif
    2426     {
    2427         UInt maxSLMinus1 = 0;
    2428         Int optLsIdx = vps->getOutputLayerSetIdx( i );
    2429 #if BITRATE_PICRATE_SIGNALLING
    2430         optLsIdx = i;
    2431 #endif
    2432         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_SIGNALLING
    2438         vps->setMaxSLayersInLayerSetMinus1(i,MaxSubLayersInLayerSetMinus1[ i ]);
    2439 #endif
    2440     }
    2441 #endif
    2442 #endif
    2443    
    2444    
    24452417  for(Int i = 1; i < vps->getNumOutputLayerSets(); i++)
    24462418  {
     
    24482420
    24492421    WRITE_FLAG( vps->getSubLayerFlagInfoPresentFlag( i ), "sub_layer_flag_info_present_flag[i]");
    2450 #if SUB_LAYERS_IN_LAYER_SET
     2422
    24512423    for(Int j = 0; j <= vps->getMaxSLayersInLayerSetMinus1( layerSetIdxForOutputLayerSet ); j++)
    2452 #else
    2453 #if DPB_PARAMS_MAXTLAYERS
    2454 #if BITRATE_PICRATE_SIGNALLING
    2455     for(Int j = 0; j <= MaxSubLayersInLayerSetMinus1[ vps->getOutputLayerSetIdx( i ) ]; j++)
    2456 #else
    2457     for(Int j = 0; j <= MaxSubLayersInLayerSetMinus1[ i ]; j++)
    2458 #endif
    2459 #else
    2460     for(Int j = 0; j < vps->getMaxTLayers(); j++)
    2461 #endif
    2462 #endif
    24632424    {
    24642425      if( j > 0 && vps->getSubLayerFlagInfoPresentFlag(i) )
     
    24812442    }
    24822443  }
    2483 
    2484 #if !SUB_LAYERS_IN_LAYER_SET
    2485 #if BITRATE_PICRATE_SIGNALLING
    2486   if( MaxSubLayersInLayerSetMinus1 )
    2487   {
    2488     delete [] MaxSubLayersInLayerSetMinus1;
    2489   }
    2490 #endif
    2491 #endif
    24922444}
    24932445#endif
Note: See TracChangeset for help on using the changeset viewer.