Changeset 584 in SHVCSoftware for branches/SHM-5.0-dev/source/Lib/TLibDecoder
- Timestamp:
- 1 Feb 2014, 00:38:07 (11 years ago)
- Location:
- branches/SHM-5.0-dev/source/Lib/TLibDecoder
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-5.0-dev/source/Lib/TLibDecoder/TDecTop.cpp
r582 r584 181 181 { 182 182 #if USE_DPB_SIZE_TABLE 183 if( getCommonDecoderParams()->get OutputLayerSetIdx() == 0 )183 if( getCommonDecoderParams()->getTargetOutputLayerSetIdx() == 0 ) 184 184 { 185 185 assert( this->getLayerId() == 0 ); … … 190 190 TComVPS *vps = slice->getVPS(); 191 191 // SHM decoders will use DPB size table in the VPS to determine the number of reorder pictures. 192 numReorderPics[temporalLayer] = vps->getMaxVpsNumReorderPics( getCommonDecoderParams()->get OutputLayerSetIdx() , temporalLayer);192 numReorderPics[temporalLayer] = vps->getMaxVpsNumReorderPics( getCommonDecoderParams()->getTargetOutputLayerSetIdx() , temporalLayer); 193 193 } 194 194 #else … … 285 285 { 286 286 #if USE_DPB_SIZE_TABLE 287 if( getCommonDecoderParams()->get OutputLayerSetIdx() == 0 )287 if( getCommonDecoderParams()->getTargetOutputLayerSetIdx() == 0 ) 288 288 { 289 289 assert( this->getLayerId() == 0 ); … … 294 294 TComVPS *vps = pcSlice->getVPS(); 295 295 // SHM decoders will use DPB size table in the VPS to determine the number of reorder pictures. 296 numReorderPics[temporalLayer] = vps->getMaxVpsNumReorderPics( getCommonDecoderParams()->get OutputLayerSetIdx() , temporalLayer);296 numReorderPics[temporalLayer] = vps->getMaxVpsNumReorderPics( getCommonDecoderParams()->getTargetOutputLayerSetIdx() , temporalLayer); 297 297 } 298 298 #else … … 302 302 303 303 #if USE_DPB_SIZE_TABLE 304 if( getCommonDecoderParams()->get OutputLayerSetIdx() == 0 )304 if( getCommonDecoderParams()->getTargetOutputLayerSetIdx() == 0 ) 305 305 { 306 306 assert( this->getLayerId() == 0 ); … … 310 310 { 311 311 #if RESOLUTION_BASED_DPB 312 Int layerSetIdxForOutputLayerSet = pcSlice->getVPS()->getOutputLayerSetIdx( getCommonDecoderParams()->get OutputLayerSetIdx() );312 Int layerSetIdxForOutputLayerSet = pcSlice->getVPS()->getOutputLayerSetIdx( getCommonDecoderParams()->getTargetOutputLayerSetIdx() ); 313 313 Int layerIdx = pcSlice->getVPS()->findLayerIdxInLayerSet( layerSetIdxForOutputLayerSet, pcSlice->getLayerId() ); assert( layerIdx != -1 ); 314 m_iMaxRefPicNum = pcSlice->getVPS()->getMaxVpsLayerDecPicBuffMinus1( getCommonDecoderParams()->get OutputLayerSetIdx(), layerIdx, pcSlice->getTLayer() ) + 1; // m_uiMaxDecPicBuffering has the space for the picture currently being decoded315 #else 316 m_iMaxRefPicNum = pcSlice->getVPS()->getMaxVpsDecPicBufferingMinus1( getCommonDecoderParams()->get OutputLayerSetIdx(), pcSlice->getLayerId(), pcSlice->getTLayer() ) + 1; // m_uiMaxDecPicBuffering has the space for the picture currently being decoded314 m_iMaxRefPicNum = pcSlice->getVPS()->getMaxVpsLayerDecPicBuffMinus1( getCommonDecoderParams()->getTargetOutputLayerSetIdx(), layerIdx, pcSlice->getTLayer() ) + 1; // m_uiMaxDecPicBuffering has the space for the picture currently being decoded 315 #else 316 m_iMaxRefPicNum = pcSlice->getVPS()->getMaxVpsDecPicBufferingMinus1( getCommonDecoderParams()->getTargetOutputLayerSetIdx(), pcSlice->getLayerId(), pcSlice->getTLayer() ) + 1; // m_uiMaxDecPicBuffering has the space for the picture currently being decoded 317 317 #endif 318 318 } … … 824 824 #if OUTPUT_LAYER_SET_INDEX 825 825 // Following check should go wherever the VPS is activated 826 checkValueOf OutputLayerSetIdx( m_apcSlicePilot->getVPS());826 checkValueOfTargetOutputLayerSetIdx( m_apcSlicePilot->getVPS()); 827 827 #endif 828 828 #if RESOLUTION_BASED_DPB … … 2022 2022 2023 2023 #if OUTPUT_LAYER_SET_INDEX 2024 Void TDecTop::checkValueOf OutputLayerSetIdx(TComVPS *vps)2024 Void TDecTop::checkValueOfTargetOutputLayerSetIdx(TComVPS *vps) 2025 2025 { 2026 2026 CommonDecoderParams* params = this->getCommonDecoderParams(); … … 2032 2032 return; // Already checked 2033 2033 } 2034 if( params->get OutputLayerSetIdx() == -1 ) // Output layer set index not specified2034 if( params->getTargetOutputLayerSetIdx() == -1 ) // Output layer set index not specified 2035 2035 { 2036 2036 Bool layerSetMatchFound = false; … … 2079 2079 // Match found 2080 2080 layerSetMatchFound = true; 2081 params->set OutputLayerSetIdx( i );2081 params->setTargetOutputLayerSetIdx( i ); 2082 2082 params->setValueCheckedFlag( true ); 2083 2083 break; … … 2090 2090 { 2091 2091 // Check if the target decoded layer is the highest layer in the list 2092 Int layerSetIdx = vps->getOutputLayerSetIdx( params->getOutputLayerSetIdx() ); // Index to the layer set 2092 assert( params->getTargetOutputLayerSetIdx() < vps->getNumLayerSets() ); 2093 Int layerSetIdx = vps->getOutputLayerSetIdx( params->getTargetOutputLayerSetIdx() ); // Index to the layer set 2093 2094 assert( params->getTargetLayerId() == vps->getNumLayersInIdList( layerSetIdx ) - 1); 2094 2095 … … 2126 2127 if( m_subDpbIdx == -1 ) // Sub-DPB index is not already assigned 2127 2128 { 2128 Int lsIdx = vps->getOutputLayerSetIdx( getCommonDecoderParams()->get OutputLayerSetIdx() );2129 Int lsIdx = vps->getOutputLayerSetIdx( getCommonDecoderParams()->getTargetOutputLayerSetIdx() ); 2129 2130 2130 2131 Int layerIdx = vps->findLayerIdxInLayerSet( lsIdx, getLayerId() ); -
branches/SHM-5.0-dev/source/Lib/TLibDecoder/TDecTop.h
r582 r584 260 260 CommonDecoderParams* getCommonDecoderParams() { return m_commonDecoderParams; } 261 261 Void setCommonDecoderParams(CommonDecoderParams* x) { m_commonDecoderParams = x; } 262 Void checkValueOf OutputLayerSetIdx(TComVPS *vps);262 Void checkValueOfTargetOutputLayerSetIdx(TComVPS *vps); 263 263 #endif 264 264 #if SCALINGLIST_INFERRING
Note: See TracChangeset for help on using the changeset viewer.