Changeset 584 in SHVCSoftware for branches/SHM-5.0-dev/source


Ignore:
Timestamp:
1 Feb 2014, 00:38:07 (11 years ago)
Author:
qualcomm
Message:

Change variable name to target output layer set index.

From: Adarsh K. Ramasubramonian <aramasub@…>

Location:
branches/SHM-5.0-dev/source
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • branches/SHM-5.0-dev/source/App/TAppDecoder/TAppDecCfg.cpp

    r550 r584  
    148148#endif
    149149#if OUTPUT_LAYER_SET_INDEX 
    150   this->getCommonDecoderParams()->setOutputLayerSetIdx( olsIdx       );
     150  this->getCommonDecoderParams()->setTargetOutputLayerSetIdx( olsIdx       );
    151151  this->getCommonDecoderParams()->setTargetLayerId    ( m_tgtLayerId );
    152152#endif
  • branches/SHM-5.0-dev/source/Lib/TLibCommon/CommonDef.h

    r540 r584  
    284284{
    285285  Int m_targetLayerId;
    286   Int m_outputLayerSetIdx;
     286  Int m_targetOutputLayerSetIdx;
    287287  std::vector<Int> *m_targetDecLayerIdSet;
    288288  Bool m_valueCheckedFlag;
     
    290290  CommonDecoderParams():
    291291    m_targetLayerId(0)
    292     , m_outputLayerSetIdx(-1)
     292    , m_targetOutputLayerSetIdx(-1)
    293293    , m_targetDecLayerIdSet(NULL)
    294294    , m_valueCheckedFlag(false)
     
    298298  Int  getTargetLayerId()            { return m_targetLayerId;}
    299299 
    300   Void setOutputLayerSetIdx(const Int x) { m_outputLayerSetIdx = x;   }
    301   Int  getOutputLayerSetIdx()            { return m_outputLayerSetIdx;}
     300  Void setTargetOutputLayerSetIdx(const Int x) { m_targetOutputLayerSetIdx = x;   }
     301  Int  getTargetOutputLayerSetIdx()            { return m_targetOutputLayerSetIdx;}
    302302
    303303  Void               setTargetDecLayerIdSet(std::vector<Int> *x) { m_targetDecLayerIdSet = x;   }
  • branches/SHM-5.0-dev/source/Lib/TLibDecoder/TDecTop.cpp

    r582 r584  
    181181    {
    182182#if USE_DPB_SIZE_TABLE
    183       if( getCommonDecoderParams()->getOutputLayerSetIdx() == 0 )
     183      if( getCommonDecoderParams()->getTargetOutputLayerSetIdx() == 0 )
    184184      {
    185185        assert( this->getLayerId() == 0 );
     
    190190        TComVPS *vps = slice->getVPS();
    191191        // SHM decoders will use DPB size table in the VPS to determine the number of reorder pictures.
    192         numReorderPics[temporalLayer] = vps->getMaxVpsNumReorderPics( getCommonDecoderParams()->getOutputLayerSetIdx() , temporalLayer);
     192        numReorderPics[temporalLayer] = vps->getMaxVpsNumReorderPics( getCommonDecoderParams()->getTargetOutputLayerSetIdx() , temporalLayer);
    193193      }
    194194#else
     
    285285  {
    286286#if USE_DPB_SIZE_TABLE
    287     if( getCommonDecoderParams()->getOutputLayerSetIdx() == 0 )
     287    if( getCommonDecoderParams()->getTargetOutputLayerSetIdx() == 0 )
    288288    {
    289289      assert( this->getLayerId() == 0 );
     
    294294      TComVPS *vps = pcSlice->getVPS();
    295295      // SHM decoders will use DPB size table in the VPS to determine the number of reorder pictures.
    296       numReorderPics[temporalLayer] = vps->getMaxVpsNumReorderPics( getCommonDecoderParams()->getOutputLayerSetIdx() , temporalLayer);
     296      numReorderPics[temporalLayer] = vps->getMaxVpsNumReorderPics( getCommonDecoderParams()->getTargetOutputLayerSetIdx() , temporalLayer);
    297297    }
    298298#else
     
    302302
    303303#if USE_DPB_SIZE_TABLE
    304   if( getCommonDecoderParams()->getOutputLayerSetIdx() == 0 )
     304  if( getCommonDecoderParams()->getTargetOutputLayerSetIdx() == 0 )
    305305  {
    306306    assert( this->getLayerId() == 0 );
     
    310310  {
    311311#if RESOLUTION_BASED_DPB
    312     Int layerSetIdxForOutputLayerSet = pcSlice->getVPS()->getOutputLayerSetIdx( getCommonDecoderParams()->getOutputLayerSetIdx() );
     312    Int layerSetIdxForOutputLayerSet = pcSlice->getVPS()->getOutputLayerSetIdx( getCommonDecoderParams()->getTargetOutputLayerSetIdx() );
    313313    Int layerIdx = pcSlice->getVPS()->findLayerIdxInLayerSet( layerSetIdxForOutputLayerSet, pcSlice->getLayerId() );  assert( layerIdx != -1 );
    314     m_iMaxRefPicNum = pcSlice->getVPS()->getMaxVpsLayerDecPicBuffMinus1( getCommonDecoderParams()->getOutputLayerSetIdx(), layerIdx, pcSlice->getTLayer() ) + 1; // m_uiMaxDecPicBuffering has the space for the picture currently being decoded
    315 #else
    316     m_iMaxRefPicNum = pcSlice->getVPS()->getMaxVpsDecPicBufferingMinus1( getCommonDecoderParams()->getOutputLayerSetIdx(), pcSlice->getLayerId(), pcSlice->getTLayer() ) + 1; // m_uiMaxDecPicBuffering has the space for the picture currently being decoded
     314    m_iMaxRefPicNum = pcSlice->getVPS()->getMaxVpsLayerDecPicBuffMinus1( getCommonDecoderParams()->getTargetOutputLayerSetIdx(), layerIdx, pcSlice->getTLayer() ) + 1; // m_uiMaxDecPicBuffering has the space for the picture currently being decoded
     315#else
     316    m_iMaxRefPicNum = pcSlice->getVPS()->getMaxVpsDecPicBufferingMinus1( getCommonDecoderParams()->getTargetOutputLayerSetIdx(), pcSlice->getLayerId(), pcSlice->getTLayer() ) + 1; // m_uiMaxDecPicBuffering has the space for the picture currently being decoded
    317317#endif
    318318  }
     
    824824#if OUTPUT_LAYER_SET_INDEX
    825825  // Following check should go wherever the VPS is activated
    826   checkValueOfOutputLayerSetIdx( m_apcSlicePilot->getVPS());
     826  checkValueOfTargetOutputLayerSetIdx( m_apcSlicePilot->getVPS());
    827827#endif
    828828#if RESOLUTION_BASED_DPB
     
    20222022
    20232023#if OUTPUT_LAYER_SET_INDEX
    2024 Void TDecTop::checkValueOfOutputLayerSetIdx(TComVPS *vps)
     2024Void TDecTop::checkValueOfTargetOutputLayerSetIdx(TComVPS *vps)
    20252025{
    20262026  CommonDecoderParams* params = this->getCommonDecoderParams();
     
    20322032    return; // Already checked
    20332033  }
    2034   if( params->getOutputLayerSetIdx() == -1 )  // Output layer set index not specified
     2034  if( params->getTargetOutputLayerSetIdx() == -1 )  // Output layer set index not specified
    20352035  {
    20362036    Bool layerSetMatchFound = false;
     
    20792079          // Match found
    20802080          layerSetMatchFound = true;
    2081           params->setOutputLayerSetIdx( i );
     2081          params->setTargetOutputLayerSetIdx( i );
    20822082          params->setValueCheckedFlag( true );
    20832083          break;
     
    20902090  {
    20912091    // Check if the target decoded layer is the highest layer in the list
    2092     Int layerSetIdx = vps->getOutputLayerSetIdx( params->getOutputLayerSetIdx() );  // Index to the layer set
     2092    assert( params->getTargetOutputLayerSetIdx() < vps->getNumLayerSets() );
     2093    Int layerSetIdx = vps->getOutputLayerSetIdx( params->getTargetOutputLayerSetIdx() );  // Index to the layer set
    20932094    assert( params->getTargetLayerId() == vps->getNumLayersInIdList( layerSetIdx ) - 1);
    20942095
     
    21262127  if( m_subDpbIdx == -1 ) // Sub-DPB index is not already assigned
    21272128  {
    2128     Int lsIdx = vps->getOutputLayerSetIdx( getCommonDecoderParams()->getOutputLayerSetIdx() );
     2129    Int lsIdx = vps->getOutputLayerSetIdx( getCommonDecoderParams()->getTargetOutputLayerSetIdx() );
    21292130
    21302131    Int layerIdx = vps->findLayerIdxInLayerSet( lsIdx, getLayerId() );
  • branches/SHM-5.0-dev/source/Lib/TLibDecoder/TDecTop.h

    r582 r584  
    260260  CommonDecoderParams*    getCommonDecoderParams() { return m_commonDecoderParams; }
    261261  Void                    setCommonDecoderParams(CommonDecoderParams* x) { m_commonDecoderParams = x; }
    262   Void      checkValueOfOutputLayerSetIdx(TComVPS *vps);
     262  Void      checkValueOfTargetOutputLayerSetIdx(TComVPS *vps);
    263263#endif
    264264#if SCALINGLIST_INFERRING
Note: See TracChangeset for help on using the changeset viewer.