Changeset 1057 in SHVCSoftware for branches/SHM-dev/source/App/TAppDecoder
- Timestamp:
- 4 Mar 2015, 09:55:40 (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
r1044 r1057 69 69 #if SVC_EXTENSION 70 70 string cfg_ReconFile [MAX_LAYERS]; 71 Int nLayerNum;71 Int layerNum, targetLayerId; 72 72 #if OUTPUT_LAYER_SET_INDEX 73 73 Int olsIdx; … … 103 103 #endif 104 104 #if FIX_CONF_MODE 105 ("LayerNum,-ls", nLayerNum, MAX_NUM_LAYER_IDS, "Number of layers to be decoded.") 105 ("TargetLayerId,-lid", targetLayerId, -1, "Target layer id") 106 ("LayerNum,-ls", layerNum, MAX_NUM_LAYER_IDS, "Target layer id") // Legacy option 106 107 #else 107 108 ("LayerNum,-ls", nLayerNum, 1, "Number of layers to be decoded.") … … 165 166 m_pchBitstreamFile = cfg_BitstreamFile.empty() ? NULL : strdup(cfg_BitstreamFile.c_str()); 166 167 #if SVC_EXTENSION 167 m_tgtLayerId = nLayerNum - 1; 168 assert( m_tgtLayerId >= 0 ); 168 if( targetLayerId < 0 ) 169 { 170 targetLayerId = layerNum - 1; 171 } 172 173 assert( targetLayerId >= 0 ); 169 174 #if !FIX_CONF_MODE 170 175 assert( m_tgtLayerId < MAX_LAYERS ); // If this is wrong, it should be caught by asserts in other locations. 171 176 #endif 172 177 #if O0137_MAX_LAYERID 173 assert( m_tgtLayerId < MAX_NUM_LAYER_IDS );178 assert( targetLayerId < MAX_NUM_LAYER_IDS ); 174 179 #endif 175 180 #if OUTPUT_LAYER_SET_INDEX … … 207 212 #endif 208 213 m_commonDecoderParams.setTargetOutputLayerSetIdx( olsIdx ); 209 m_commonDecoderParams.setTargetLayerId( m_tgtLayerId );214 m_commonDecoderParams.setTargetLayerId( targetLayerId ); 210 215 #endif 211 216 #if FIX_CONF_MODE -
branches/SHM-dev/source/App/TAppDecoder/TAppDecCfg.h
r1029 r1057 75 75 76 76 #if SVC_EXTENSION 77 Int m_tgtLayerId; ///< target layer ID78 77 #if AVC_BASE 79 78 Char* m_pchBLReconFile; ///< input BL reconstruction file name … … 118 117 #endif 119 118 #if SVC_EXTENSION 120 , m_tgtLayerId(0)121 119 #if AVC_BASE && !REPN_FORMAT_IN_VPS 122 120 , m_iBLSourceWidth(0) -
branches/SHM-dev/source/App/TAppDecoder/TAppDecTop.cpp
r1052 r1057 223 223 if( (m_iMaxTemporalLayer >= 0 && nalu.m_temporalId > m_iMaxTemporalLayer) || !isNaluWithinTargetDecLayerIdSet(&nalu) || 224 224 #if FIX_CONF_MODE 225 (nalu.m_layerId > this->getCommonDecoderParams()->getTargetLayerId()) )225 (nalu.m_layerId > m_commonDecoderParams.getTargetLayerId()) ) 226 226 #else 227 227 (nalu.m_layerId > m_tgtLayerId) )
Note: See TracChangeset for help on using the changeset viewer.