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


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

macro cleanup: SUB_LAYERS_IN_LAYER_SET

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/SHM-dev/source/Lib/TLibDecoder/TDecCAVLC.cpp

    r1135 r1136  
    35233523{
    35243524  UInt uiCode;
    3525 #if SUB_LAYERS_IN_LAYER_SET
     3525
    35263526  vps->calculateMaxSLInLayerSets();
    3527 #else
    3528 #if DPB_PARAMS_MAXTLAYERS
    3529 #if BITRATE_PICRATE_SIGNALLING
    3530   Int * MaxSubLayersInLayerSetMinus1 = new Int[vps->getNumLayerSets()];
    3531   for(Int i = 0; i < vps->getNumLayerSets(); i++)
    3532 #else
    3533   Int * MaxSubLayersInLayerSetMinus1 = new Int[vps->getNumOutputLayerSets()];
     3527  vps->deriveNumberOfSubDpbs();
     3528
    35343529  for(Int i = 1; i < vps->getNumOutputLayerSets(); i++)
    3535 #endif
    3536   {
    3537     UInt maxSLMinus1 = 0;
    3538     Int optLsIdx = vps->getOutputLayerSetIdx( i );
    3539 #if BITRATE_PICRATE_SIGNALLING
    3540     optLsIdx = i;
    3541 #endif
    3542     for(Int k = 0; k < vps->getNumLayersInIdList(optLsIdx); k++ ) {
    3543       Int  lId = vps->getLayerSetLayerIdList(optLsIdx, k);
    3544       maxSLMinus1 = max(maxSLMinus1, vps->getMaxTSLayersMinus1(vps->getLayerIdxInVps(lId)));
    3545     }
    3546     MaxSubLayersInLayerSetMinus1[ i ] = maxSLMinus1;
    3547 #if BITRATE_PICRATE_SIGNALLING
    3548     vps->setMaxSLayersInLayerSetMinus1(i,MaxSubLayersInLayerSetMinus1[ i ]);
    3549 #endif
    3550   }
    3551 #endif
    3552 #endif
    3553 
    3554   vps->deriveNumberOfSubDpbs();
    3555 
    3556   for(Int i = 1; i < vps->getNumOutputLayerSets(); i++)
    35573530  {
    35583531    Int layerSetIdxForOutputLayerSet = vps->getOutputLayerSetIdx( i );
    35593532
    35603533    READ_FLAG( uiCode, "sub_layer_flag_info_present_flag[i]");  vps->setSubLayerFlagInfoPresentFlag( i, uiCode ? true : false );
    3561 #if SUB_LAYERS_IN_LAYER_SET
     3534
    35623535    for(Int j = 0; j <= vps->getMaxSLayersInLayerSetMinus1( layerSetIdxForOutputLayerSet ); j++)
    3563 #else
    3564 #if DPB_PARAMS_MAXTLAYERS
    3565 #if BITRATE_PICRATE_SIGNALLING
    3566     for(Int j = 0; j <= MaxSubLayersInLayerSetMinus1[ vps->getOutputLayerSetIdx( i ) ]; j++)
    3567 #else
    3568     for(Int j = 0; j <= MaxSubLayersInLayerSetMinus1[ i ]; j++)
    3569 #endif
    3570 #else
    3571     for(Int j = 0; j <= vps->getMaxTLayers(); j++)
    3572 #endif
    3573 #endif
    35743536    {
    35753537      if( j > 0 && vps->getSubLayerFlagInfoPresentFlag(i) )
     
    36093571    }
    36103572  }
    3611 
    3612 #if !SUB_LAYERS_IN_LAYER_SET
    3613 #if BITRATE_PICRATE_SIGNALLING
    3614   if( MaxSubLayersInLayerSetMinus1 )
    3615   {
    3616     delete [] MaxSubLayersInLayerSetMinus1;
    3617   }
    3618 #endif
    3619 #endif
    36203573
    36213574  // Infer values when not signalled
Note: See TracChangeset for help on using the changeset viewer.