Changeset 1106 in SHVCSoftware
- Timestamp:
- 6 Jul 2015, 20:51:30 (9 years ago)
- Location:
- branches/SHM-dev/source
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-dev/source/App/TAppDecoder/TAppDecCfg.cpp
r1089 r1106 102 102 #endif 103 103 #endif 104 #if FIX_CONF_MODE105 104 ("TargetLayerId,-lid", targetLayerId, -1, "Target layer id") 106 105 ("LayerNum,-ls", layerNum, MAX_NUM_LAYER_IDS, "Target layer id") // Legacy option 107 #else108 ("LayerNum,-ls", nLayerNum, 1, "Number of layers to be decoded.")109 #endif110 106 #if OUTPUT_LAYER_SET_INDEX 111 107 ("OutpuLayerSetIdx,-olsidx", olsIdx, -1, "Index of output layer set to be decoded.") … … 172 168 173 169 assert( targetLayerId >= 0 ); 174 #if !FIX_CONF_MODE175 assert( m_tgtLayerId < MAX_LAYERS ); // If this is wrong, it should be caught by asserts in other locations.176 #endif177 170 #if O0137_MAX_LAYERID 178 171 assert( targetLayerId < MAX_NUM_LAYER_IDS ); … … 199 192 200 193 // Decoded layer YUV files 201 #if FIX_CONF_MODE202 194 for(Int layer= 0; layer < MAX_VPS_LAYER_IDX_PLUS1; layer++ ) 203 #else204 for(UInt layer=0; layer<= m_tgtLayerId; layer++)205 #endif206 195 { 207 196 sprintf(fileNameSuffix, "%s-L%d.yuv", m_confPrefix.c_str(), layer); // olsIdx is the target output layer set index. … … 214 203 m_commonDecoderParams.setTargetLayerId( targetLayerId ); 215 204 #endif 216 #if FIX_CONF_MODE205 #if CONFORMANCE_BITSTREAM_MODE 217 206 for(Int layer = 0; layer < MAX_VPS_LAYER_IDX_PLUS1; layer++ ) 218 207 { -
branches/SHM-dev/source/App/TAppDecoder/TAppDecTop.cpp
r1103 r1106 94 94 } 95 95 #if SVC_EXTENSION 96 #if FIX_CONF_MODE96 #if CONFORMANCE_BITSTREAM_MODE 97 97 for(Int i = 0; i < MAX_VPS_LAYER_IDX_PLUS1; i++ ) 98 98 #else … … 174 174 memset( loopFiltered, false, sizeof( loopFiltered ) ); 175 175 176 #if FIX_CONF_MODE176 #if CONFORMANCE_BITSTREAM_MODE 177 177 for(UInt layer = 0; layer < MAX_VPS_LAYER_IDX_PLUS1; layer++) 178 178 #else … … 234 234 read(nalu, nalUnit); 235 235 if( (m_iMaxTemporalLayer >= 0 && nalu.m_temporalId > m_iMaxTemporalLayer) || !isNaluWithinTargetDecLayerIdSet(&nalu) || 236 #if FIX_CONF_MODE236 #if CONFORMANCE_BITSTREAM_MODE 237 237 (nalu.m_layerId > m_commonDecoderParams.getTargetLayerId()) ) 238 238 #else … … 415 415 pcBLPic.destroy(); 416 416 417 #if FIX_CONF_MODE417 #if CONFORMANCE_BITSTREAM_MODE 418 418 for(UInt layer = layerIdxmin; layer < MAX_VPS_LAYER_IDX_PLUS1; layer++) 419 419 #else … … 604 604 initROM(); 605 605 606 #if FIX_CONF_MODE606 #if CONFORMANCE_BITSTREAM_MODE 607 607 for(UInt layer = 0; layer < MAX_VPS_LAYER_IDX_PLUS1; layer++) 608 608 #else … … 630 630 destroyROM(); 631 631 632 #if FIX_CONF_MODE632 #if CONFORMANCE_BITSTREAM_MODE 633 633 for(UInt layer = 0; layer < MAX_VPS_LAYER_IDX_PLUS1; layer++) 634 634 #else … … 659 659 // initialize decoder class 660 660 #if SVC_EXTENSION 661 #if FIX_CONF_MODE661 #if CONFORMANCE_BITSTREAM_MODE 662 662 for(UInt layer = 0; layer < MAX_VPS_LAYER_IDX_PLUS1; layer++) 663 663 #else … … 667 667 m_acTDecTop[layer].init(); 668 668 m_acTDecTop[layer].setDecodedPictureHashSEIEnabled(m_decodedPictureHashSEIEnabled); 669 #if FIX_CONF_MODE669 #if CONFORMANCE_BITSTREAM_MODE 670 670 m_acTDecTop[layer].setNumLayer( MAX_LAYERS ); 671 671 #else … … 677 677 } 678 678 #if CONFORMANCE_BITSTREAM_MODE 679 #if FIX_CONF_MODE680 679 for(UInt layer = 0; layer < MAX_VPS_LAYER_IDX_PLUS1; layer++) 681 #else682 for(UInt layer = 0; layer < MAX_LAYERS; layer++)683 #endif684 680 { 685 681 m_acTDecTop[layer].setConfModeFlag( m_confModeFlag ); -
branches/SHM-dev/source/Lib/TLibCommon/CommonDef.h
r1080 r1106 316 316 public: 317 317 CommonDecoderParams(): 318 #if FIX_CONF_MODE318 #if CONFORMANCE_BITSTREAM_MODE 319 319 m_targetLayerId(MAX_VPS_LAYER_IDX_PLUS1) 320 320 #else -
branches/SHM-dev/source/Lib/TLibCommon/TypeDef.h
r1105 r1106 46 46 #define MAX_LAYERS 8 ///< max number of layers the codec is supposed to handle 47 47 #define CONFORMANCE_BITSTREAM_MODE 1 ///< In order to generate the metadata related to conformance bitstreams 48 #define FIX_CONF_MODE 149 48 #define FIX_NON_OUTPUT_LAYER 1 50 49 #define SIGNALLING_BITRATE_PICRATE_FIX 1 ///< Fix for signalling of bitrate and picture rate info in VPS VUI to be more aligned to JCTVC-R1008 -
branches/SHM-dev/source/Lib/TLibDecoder/TDecTop.cpp
r1103 r1106 2633 2633 CommonDecoderParams* params = this->getCommonDecoderParams(); 2634 2634 2635 #if !FIX_CONF_MODE2636 assert( params->getTargetLayerId() < vps->getMaxLayers() );2637 #endif2638 2639 2635 if( params->getValueCheckedFlag() ) 2640 2636 { … … 2739 2735 2740 2736 } 2741 #if FIX_CONF_MODE 2737 2742 2738 // Set correct value of targetLayerId 2743 2739 Int targetOlsIdx = params->getTargetOutputLayerSetIdx(); 2744 2740 Int targetLsIdx = vps->getOutputLayerSetIdx( targetOlsIdx ); 2745 2741 params->setTargetLayerId( vps->getLayerSetLayerIdList( targetLsIdx, vps->getNumLayersInIdList(targetLsIdx)-1 ) ); 2746 #endif 2742 2747 2743 #if FIX_NON_OUTPUT_LAYER 2748 2744 // Check if the current layer is an output layer
Note: See TracChangeset for help on using the changeset viewer.