Changeset 1178 in SHVCSoftware


Ignore:
Timestamp:
8 Jul 2015, 02:44:55 (9 years ago)
Author:
seregin
Message:

macro cleanup: USE_DPB_SIZE_TABLE

Location:
branches/SHM-dev/source/Lib
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/SHM-dev/source/Lib/TLibCommon/TypeDef.h

    r1177 r1178  
    123123
    124124#define VPS_DPB_SIZE_TABLE               1      ///< JCTVC-O0217: DPB operations: signaling DPB-related parameters
    125 #if VPS_DPB_SIZE_TABLE
    126 #define USE_DPB_SIZE_TABLE               1      ///< JCTVC-O0217: DPB operations: Use signaled DPB-size table parameters in the decoder
    127 #endif
     125
    128126#define DPB_PARAMS_MAXTLAYERS            1      ///< JCTVC-P0156 DPB parameters up to maximum temporal sub-layers in the layer set
    129127#define NO_CLRAS_OUTPUT_FLAG             1
  • branches/SHM-dev/source/Lib/TLibDecoder/TDecTop.cpp

    r1177 r1178  
    247247  for( Int temporalLayer=0; temporalLayer < MAX_TLAYER; temporalLayer++)
    248248  {
    249 #if USE_DPB_SIZE_TABLE
     249#if SVC_EXTENSION
    250250    if( m_commonDecoderParams->getTargetOutputLayerSetIdx() == 0 )
    251251    {
     
    264264  }
    265265
    266 #if USE_DPB_SIZE_TABLE
     266#if SVC_EXTENSION
    267267  if( m_commonDecoderParams->getTargetOutputLayerSetIdx() == 0 )
    268268  {
     
    274274    m_iMaxRefPicNum = pcSlice->getVPS()->getMaxVpsDecPicBufferingMinus1( m_commonDecoderParams->getTargetOutputLayerSetIdx(), pcSlice->getVPS()->getLayerIdcForOls( pcSlice->getVPS()->getOutputLayerSetIdx( m_commonDecoderParams->getTargetOutputLayerSetIdx()), pcSlice->getLayerId() ), pcSlice->getTLayer() ) + 1; // m_uiMaxDecPicBuffering has the space for the picture currently being decoded
    275275  }
     276
     277  m_iMaxRefPicNum += 1; // it should be updated if more than 1 resampling picture is used
    276278#else
    277279  m_iMaxRefPicNum = pcSlice->getSPS()->getMaxDecPicBuffering(pcSlice->getTLayer());     // m_uiMaxDecPicBuffering has the space for the picture currently being decoded
    278280#endif
    279 
    280 #if SVC_EXTENSION
    281   m_iMaxRefPicNum += 1; // it should be updated if more than 1 resampling picture is used
    282 #endif
    283 
     281 
    284282  if (m_cListPic.size() < (UInt)m_iMaxRefPicNum)
    285283  {
     
    23702368    Window defaultDisplayWindow = pcSPS->getVuiParametersPresentFlag() ? pcSPS->getVuiParameters()->getDefaultDisplayWindow() : Window();
    23712369
    2372     for( Int temporalLayer=0; temporalLayer < MAX_TLAYER; temporalLayer++)
    2373     {
    2374 #if USE_DPB_SIZE_TABLE
    2375       if( getCommonDecoderParams()->getTargetOutputLayerSetIdx() == 0 )
     2370    for( Int temporalLayer=0; temporalLayer < MAX_TLAYER; temporalLayer++ )
     2371    {
     2372      if( m_commonDecoderParams->getTargetOutputLayerSetIdx() == 0 )
    23762373      {
    23772374        assert( this->getLayerId() == 0 );
     
    23842381        numReorderPics[temporalLayer] = vps->getMaxVpsNumReorderPics( getCommonDecoderParams()->getTargetOutputLayerSetIdx() , temporalLayer);
    23852382      }
    2386 #else
    2387       numReorderPics[temporalLayer] = pcSPS->getNumReorderPics(temporalLayer);
    2388 #endif
    23892383    }
    23902384
Note: See TracChangeset for help on using the changeset viewer.