Changeset 521 in SHVCSoftware for branches/SHM-4.1-dev/source/App/TAppDecoder
- Timestamp:
- 19 Dec 2013, 03:10:48 (11 years ago)
- 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 69 69 string cfg_ReconFile [MAX_LAYERS]; 70 70 Int nLayerNum; 71 #if OUTPUT_LAYER_SET_INDEX 72 Int olsIdx; 73 #endif 71 74 #if AVC_BASE 72 75 string cfg_BLReconFile; … … 110 113 #if SVC_EXTENSION 111 114 ("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 112 118 #endif 113 119 ("MaxTemporalLayer,t", m_iMaxTemporalLayer, -1, "Maximum Temporal Layer to be decoded. -1 to decode all layers") … … 138 144 m_tgtLayerId = nLayerNum - 1; 139 145 assert( m_tgtLayerId >= 0 ); 146 #if OUTPUT_LAYER_SET_INDEX 147 this->getCommonDecoderParams()->setOutputLayerSetIdx( olsIdx ); 148 this->getCommonDecoderParams()->setTargetLayerId ( m_tgtLayerId ); 149 #endif 140 150 for(UInt layer=0; layer<= m_tgtLayerId; layer++) 141 151 { … … 201 211 fprintf(stderr, "File %s could not be opened. Using all LayerIds as default.\n", cfg_TargetDecLayerIdSetFile.c_str() ); 202 212 } 213 #if OUTPUT_LAYER_SET_INDEX 214 this->getCommonDecoderParams()->setTargetDecLayerIdSet( &m_targetDecLayerIdSet ); 215 #endif 203 216 } 204 217 -
branches/SHM-4.1-dev/source/App/TAppDecoder/TAppDecCfg.h
r313 r521 91 91 std::vector<Int> m_targetDecLayerIdSet; ///< set of LayerIds to be included in the sub-bitstream extraction process. 92 92 Int m_respectDefDispWindow; ///< Only output content inside the default display window 93 #if OUTPUT_LAYER_SET_INDEX 94 CommonDecoderParams m_commonDecoderParams; 95 #endif 93 96 94 97 public: … … 120 123 121 124 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 122 128 }; 123 129 -
branches/SHM-4.1-dev/source/App/TAppDecoder/TAppDecTop.cpp
r494 r521 494 494 m_acTDecTop[layer].setDecodedPictureHashSEIEnabled(m_decodedPictureHashSEIEnabled); 495 495 m_acTDecTop[layer].setNumLayer( m_tgtLayerId + 1 ); 496 #if OUTPUT_LAYER_SET_INDEX 497 m_acTDecTop[layer].setCommonDecoderParams( this->getCommonDecoderParams() ); 498 #endif 496 499 } 497 500
Note: See TracChangeset for help on using the changeset viewer.