Changeset 521 in SHVCSoftware for branches/SHM-4.1-dev/source/App/TAppDecoder


Ignore:
Timestamp:
19 Dec 2013, 03:10:48 (11 years ago)
Author:
qualcomm
Message:

JCTVC-O0217: Output layer set index at the decoder (MACRO: OUTPUT_LAYER_SET_INDEX)

Patch includes output layer set index inference at the decoder.

From: Adarsh K. Ramasubramonian <aramasub@…>

Location:
branches/SHM-4.1-dev/source/App/TAppDecoder
Files:
3 edited

Legend:

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

    r313 r521  
    6969  string cfg_ReconFile [MAX_LAYERS];
    7070  Int nLayerNum;
     71#if OUTPUT_LAYER_SET_INDEX
     72  Int olsIdx;
     73#endif
    7174#if AVC_BASE
    7275  string cfg_BLReconFile;
     
    110113#if SVC_EXTENSION
    111114  ("LayerNum,-ls", nLayerNum, 1, "Number of layers to be decoded.")
     115#if OUTPUT_LAYER_SET_INDEX
     116  ("OutpuLayerSetIdx,-olsidx", olsIdx, -1, "Index of output layer set to be decoded.")
     117#endif
    112118#endif
    113119  ("MaxTemporalLayer,t", m_iMaxTemporalLayer, -1, "Maximum Temporal Layer to be decoded. -1 to decode all layers")
     
    138144  m_tgtLayerId = nLayerNum - 1;
    139145  assert( m_tgtLayerId >= 0 );
     146#if OUTPUT_LAYER_SET_INDEX 
     147  this->getCommonDecoderParams()->setOutputLayerSetIdx( olsIdx       );
     148  this->getCommonDecoderParams()->setTargetLayerId    ( m_tgtLayerId );
     149#endif
    140150  for(UInt layer=0; layer<= m_tgtLayerId; layer++)
    141151  {
     
    201211      fprintf(stderr, "File %s could not be opened. Using all LayerIds as default.\n", cfg_TargetDecLayerIdSetFile.c_str() );
    202212    }
     213#if OUTPUT_LAYER_SET_INDEX 
     214    this->getCommonDecoderParams()->setTargetDecLayerIdSet( &m_targetDecLayerIdSet );
     215#endif
    203216  }
    204217
  • branches/SHM-4.1-dev/source/App/TAppDecoder/TAppDecCfg.h

    r313 r521  
    9191  std::vector<Int> m_targetDecLayerIdSet;             ///< set of LayerIds to be included in the sub-bitstream extraction process.
    9292  Int           m_respectDefDispWindow;               ///< Only output content inside the default display window
     93#if OUTPUT_LAYER_SET_INDEX
     94  CommonDecoderParams             m_commonDecoderParams;
     95#endif
    9396
    9497public:
     
    120123 
    121124  Bool  parseCfg        ( Int argc, Char* argv[] );   ///< initialize option class from configuration
     125#if OUTPUT_LAYER_SET_INDEX
     126  CommonDecoderParams* getCommonDecoderParams() {return &m_commonDecoderParams;}
     127#endif
    122128};
    123129
  • branches/SHM-4.1-dev/source/App/TAppDecoder/TAppDecTop.cpp

    r494 r521  
    494494    m_acTDecTop[layer].setDecodedPictureHashSEIEnabled(m_decodedPictureHashSEIEnabled);
    495495    m_acTDecTop[layer].setNumLayer( m_tgtLayerId + 1 );
     496#if OUTPUT_LAYER_SET_INDEX
     497    m_acTDecTop[layer].setCommonDecoderParams( this->getCommonDecoderParams() );
     498#endif
    496499  }
    497500
Note: See TracChangeset for help on using the changeset viewer.