Changeset 1177 in SHVCSoftware for branches/SHM-dev/source/Lib/TLibDecoder
- Timestamp:
- 8 Jul 2015, 02:41:56 (10 years ago)
- Location:
- branches/SHM-dev/source/Lib/TLibDecoder
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-dev/source/Lib/TLibDecoder/TDecTop.cpp
r1175 r1177 699 699 #if SVC_EXTENSION 700 700 m_apcSlicePilot->setVPS( m_parameterSetManagerDecoder.getPrefetchedVPS(0) ); 701 #if OUTPUT_LAYER_SET_INDEX 701 702 702 // Following check should go wherever the VPS is activated 703 if (!m_apcSlicePilot->getVPS()->getBaseLayerAvailableFlag())703 if( !m_apcSlicePilot->getVPS()->getBaseLayerAvailableFlag() ) 704 704 { 705 705 assert(nalu.m_layerId != 0); 706 706 assert(m_apcSlicePilot->getVPS()->getNumAddLayerSets() > 0); 707 if (getCommonDecoderParams()->getTargetOutputLayerSetIdx() >= 0) 707 708 if( m_commonDecoderParams->getTargetOutputLayerSetIdx() >= 0 ) 708 709 { 709 710 UInt layerIdx = m_apcSlicePilot->getVPS()->getOutputLayerSetIdx(getCommonDecoderParams()->getTargetOutputLayerSetIdx()); … … 711 712 } 712 713 } 713 #endif 714 714 715 m_apcSlicePilot->initSlice( nalu.m_layerId ); 715 716 #else //SVC_EXTENSION … … 2454 2455 } 2455 2456 2456 #if OUTPUT_LAYER_SET_INDEX2457 2457 Void TDecTop::checkValueOfTargetOutputLayerSetIdx(TComVPS *vps) 2458 2458 { … … 2477 2477 // Currently, the target layer ID in the encoder assumes that all the layers are decoded 2478 2478 // Check if any of the output layer sets match this description 2479 for( Int i = 0; i < vps->getNumOutputLayerSets(); i++)2479 for( Int i = 0; i < vps->getNumOutputLayerSets(); i++ ) 2480 2480 { 2481 2481 Bool layerSetMatchFlag = false; 2482 2482 Int layerSetIdx = vps->getOutputLayerSetIdx( i ); 2483 2483 2484 for( Int j = 0; j < vps->getNumLayersInIdList( layerSetIdx ); j++)2484 for( Int j = 0; j < vps->getNumLayersInIdList( layerSetIdx ); j++ ) 2485 2485 { 2486 2486 if( vps->getLayerSetLayerIdList( layerSetIdx, j ) == params->getTargetLayerId() ) … … 2498 2498 if( params->getTargetDecLayerIdSet()->size() ) 2499 2499 { 2500 for( Int j = 0; j < vps->getNumLayersInIdList( layerSetIdx ); j++)2500 for( Int j = 0; j < vps->getNumLayersInIdList( layerSetIdx ); j++ ) 2501 2501 { 2502 2502 if( *(params->getTargetDecLayerIdSet()->begin() + j) != vps->getLayerIdInNuh(vps->getLayerSetLayerIdList( layerSetIdx, j ))) … … 2552 2552 2553 2553 // Check if the current layer is an output layer 2554 for( Int i = 0; i < vps->getNumLayersInIdList( targetLsIdx ); i++)2554 for( Int i = 0; i < vps->getNumLayersInIdList( targetLsIdx ); i++ ) 2555 2555 { 2556 2556 if( vps->getOutputLayerFlag( targetOlsIdx, i ) ) … … 2560 2560 } 2561 2561 } 2562 #endif2563 2562 2564 2563 #if POC_RESET_IDC_DECODER -
branches/SHM-dev/source/Lib/TLibDecoder/TDecTop.h
r1148 r1177 150 150 151 151 TComPic* m_cIlpPic[MAX_NUM_REF]; ///< Inter layer Prediction picture = upsampled picture 152 #if OUTPUT_LAYER_SET_INDEX153 152 CommonDecoderParams* m_commonDecoderParams; 154 #endif155 153 #if NO_CLRAS_OUTPUT_FLAG 156 154 Bool m_noClrasOutputFlag; … … 260 258 261 259 #if AVC_BASE 262 Void setBLReconFile( fstream* pFile ) { m_pBLReconFile = pFile; }263 fstream* getBLReconFile() { return m_pBLReconFile;}260 Void setBLReconFile( fstream* pFile ) { m_pBLReconFile = pFile; } 261 fstream* getBLReconFile() { return m_pBLReconFile; } 264 262 #if !REPN_FORMAT_IN_VPS 265 263 Void setBLsize( Int iWidth, Int iHeight ) { m_iBLSourceWidth = iWidth; m_iBLSourceHeight = iHeight; } … … 273 271 Void xInitILRP(TComSPS *pcSPS); 274 272 #endif 275 #if OUTPUT_LAYER_SET_INDEX 276 CommonDecoderParams* getCommonDecoderParams() { return m_commonDecoderParams; } 277 Void setCommonDecoderParams(CommonDecoderParams* x) { m_commonDecoderParams = x; } 273 CommonDecoderParams* getCommonDecoderParams() { return m_commonDecoderParams; } 274 Void setCommonDecoderParams(CommonDecoderParams* x) { m_commonDecoderParams = x; } 278 275 Void checkValueOfTargetOutputLayerSetIdx(TComVPS *vps); 279 #endif280 276 #if SCALINGLIST_INFERRING 281 ParameterSetManagerDecoder* getParameterSetManager() { return &m_parameterSetManagerDecoder; }277 ParameterSetManagerDecoder* getParameterSetManager() { return &m_parameterSetManagerDecoder; } 282 278 #endif 283 279 #if CONFORMANCE_BITSTREAM_MODE
Note: See TracChangeset for help on using the changeset viewer.