Changeset 1177 in SHVCSoftware for branches/SHM-dev/source/App/TAppDecoder
- Timestamp:
- 8 Jul 2015, 02:41:56 (10 years ago)
- Location:
- branches/SHM-dev/source/App/TAppDecoder
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-dev/source/App/TAppDecoder/TAppDecCfg.cpp
r1107 r1177 70 70 string cfg_ReconFile [MAX_LAYERS]; 71 71 Int layerNum, targetLayerId; 72 #if OUTPUT_LAYER_SET_INDEX73 72 Int olsIdx; 74 #endif75 73 #if CONFORMANCE_BITSTREAM_MODE 76 74 string cfg_confPrefix; … … 104 102 ("TargetLayerId,-lid", targetLayerId, -1, "Target layer id") 105 103 ("LayerNum,-ls", layerNum, MAX_NUM_LAYER_IDS, "Target layer id") // Legacy option 106 #if OUTPUT_LAYER_SET_INDEX107 104 ("OutpuLayerSetIdx,-olsidx", olsIdx, -1, "Index of output layer set to be decoded.") 108 #endif109 105 #if CONFORMANCE_BITSTREAM_MODE 110 106 ("ConformanceBitstremMode,-confMode", m_confModeFlag, false, "Enable generation of conformance bitstream metadata; True: Generate metadata, False: No metadata generated") … … 171 167 assert( targetLayerId < MAX_NUM_LAYER_IDS ); 172 168 #endif 173 #if OUTPUT_LAYER_SET_INDEX174 169 #if CONFORMANCE_BITSTREAM_MODE 175 170 if( m_confModeFlag ) … … 202 197 m_commonDecoderParams.setTargetOutputLayerSetIdx( olsIdx ); 203 198 m_commonDecoderParams.setTargetLayerId( targetLayerId ); 204 #endif 199 205 200 #if CONFORMANCE_BITSTREAM_MODE 206 201 for(Int layer = 0; layer < MAX_VPS_LAYER_IDX_PLUS1; layer++ ) … … 264 259 fprintf(stderr, "File %s could not be opened. Using all LayerIds as default.\n", cfg_TargetDecLayerIdSetFile.c_str() ); 265 260 } 266 #if OUTPUT_LAYER_SET_INDEX 267 this->getCommonDecoderParams()->setTargetDecLayerIdSet( &m_targetDecLayerIdSet ); 261 262 #if SVC_EXTENSION 263 m_commonDecoderParams.setTargetDecLayerIdSet( &m_targetDecLayerIdSet ); 268 264 #endif 269 265 } -
branches/SHM-dev/source/App/TAppDecoder/TAppDecCfg.h
r1057 r1177 74 74 #endif 75 75 76 std::vector<Int> m_targetDecLayerIdSet; ///< set of LayerIds to be included in the sub-bitstream extraction process. 77 Int m_respectDefDispWindow; ///< Only output content inside the default display window 78 #if O0043_BEST_EFFORT_DECODING 79 UInt m_forceDecodeBitDepth; ///< if non-zero, force the bit depth at the decoder (best effort decoding) 80 #endif 81 std::string m_outputDecodedSEIMessagesFilename; ///< filename to output decoded SEI messages to. If '-', then use stdout. If empty, do not output details. 82 76 83 #if SVC_EXTENSION 77 84 #if AVC_BASE … … 82 89 #endif 83 90 #endif 84 #endif85 86 std::vector<Int> m_targetDecLayerIdSet; ///< set of LayerIds to be included in the sub-bitstream extraction process.87 Int m_respectDefDispWindow; ///< Only output content inside the default display window88 #if O0043_BEST_EFFORT_DECODING89 UInt m_forceDecodeBitDepth; ///< if non-zero, force the bit depth at the decoder (best effort decoding)90 #endif91 std::string m_outputDecodedSEIMessagesFilename; ///< filename to output decoded SEI messages to. If '-', then use stdout. If empty, do not output details.92 #if OUTPUT_LAYER_SET_INDEX93 91 CommonDecoderParams m_commonDecoderParams; 94 #endif95 92 #if CONFORMANCE_BITSTREAM_MODE 96 93 Bool m_confModeFlag; … … 100 97 std::string m_decodedYuvLayerFileName[63]; 101 98 Bool m_decodedYuvLayerRefresh[63]; 99 #endif 102 100 #endif 103 101 … … 134 132 135 133 Bool parseCfg ( Int argc, Char* argv[] ); ///< initialize option class from configuration 136 #if OUTPUT_LAYER_SET_INDEX 134 135 #if SVC_EXTENSION 137 136 CommonDecoderParams* getCommonDecoderParams() {return &m_commonDecoderParams;} 138 #endif 137 139 138 #if CONFORMANCE_BITSTREAM_MODE 140 139 Bool const getConfModeFlag() { return m_confModeFlag; } … … 148 147 Void setDecodedYuvLayerRefresh(Int const layerId, Bool const x) {m_decodedYuvLayerRefresh[layerId] = x; } 149 148 #endif 149 #endif 150 150 151 }; 151 152 -
branches/SHM-dev/source/App/TAppDecoder/TAppDecTop.cpp
r1139 r1177 666 666 m_acTDecTop[layer].setNumLayer( m_tgtLayerId + 1 ); 667 667 #endif 668 #if OUTPUT_LAYER_SET_INDEX669 668 m_acTDecTop[layer].setCommonDecoderParams( &m_commonDecoderParams ); 670 #endif671 669 } 672 670 #if CONFORMANCE_BITSTREAM_MODE
Note: See TracChangeset for help on using the changeset viewer.