Changeset 1049 in SHVCSoftware for branches/SHM-dev/source/Lib/TLibDecoder/TDecTop.cpp
- Timestamp:
- 3 Mar 2015, 23:36:18 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-dev/source/Lib/TLibDecoder/TDecTop.cpp
r1047 r1049 483 483 484 484 #if FIX_NON_OUTPUT_LAYER 485 if( this->getLayerDec(pcPic->getLayerId x())->m_isOutputLayerFlag == false )485 if( this->getLayerDec(pcPic->getLayerId())->m_isOutputLayerFlag == false ) 486 486 { 487 487 pcPic->setOutputMark( false ); … … 1096 1096 resetPocRestrictionCheckParameters(); 1097 1097 #endif 1098 markAllPicsAsNoCurrAu( );1098 markAllPicsAsNoCurrAu(m_apcSlicePilot->getVPS()); 1099 1099 #if P0297_VPS_POC_LSB_ALIGNED_FLAG 1100 1100 for (UInt i = 0; i < MAX_LAYERS; i++) 1101 1101 { 1102 m_ppcTDecTop[ i]->m_pocDecrementedInDPBFlag = false;1102 m_ppcTDecTop[m_apcSlicePilot->getVPS()->getLayerIdInNuh(i)]->m_pocDecrementedInDPBFlag = false; 1103 1103 } 1104 1104 #endif … … 2857 2857 } 2858 2858 2859 return (TDecTop *)getLayerDec( vps->get LayerIdxInVps( vps->getRefLayerId( m_layerId, refLayerIdx )) );2859 return (TDecTop *)getLayerDec( vps->getRefLayerId( m_layerId, refLayerIdx ) ); 2860 2860 } 2861 2861 #endif … … 2864 2864 Void TDecTop::setRefLayerParams( TComVPS* vps ) 2865 2865 { 2866 for(UInt layer = 0; layer < m_numLayer; layer++)2867 { 2868 TDecTop *decTop = (TDecTop *)getLayerDec( layer);2866 for(UInt layerIdx = 0; layerIdx < m_numLayer; layerIdx++) 2867 { 2868 TDecTop *decTop = (TDecTop *)getLayerDec(vps->getLayerIdInNuh(layerIdx)); 2869 2869 decTop->setNumSamplePredRefLayers(0); 2870 2870 decTop->setNumMotionPredRefLayers(0); … … 2877 2877 decTop->setMotionPredRefLayerId(i, 0); 2878 2878 } 2879 for(Int j = 0; j < layer ; j++)2880 { 2881 if (vps->getDirectDependencyFlag(layer , j))2882 { 2883 decTop->setRefLayerId(decTop->getNumDirectRefLayers(), vps->getLayerIdInNuh(layer ));2879 for(Int j = 0; j < layerIdx; j++) 2880 { 2881 if (vps->getDirectDependencyFlag(layerIdx, j)) 2882 { 2883 decTop->setRefLayerId(decTop->getNumDirectRefLayers(), vps->getLayerIdInNuh(layerIdx)); 2884 2884 decTop->setNumDirectRefLayers(decTop->getNumDirectRefLayers() + 1); 2885 2885 2886 Int samplePredEnabledFlag = (vps->getDirectDependencyType(layer , j) + 1) & 1;2886 Int samplePredEnabledFlag = (vps->getDirectDependencyType(layerIdx, j) + 1) & 1; 2887 2887 decTop->setSamplePredEnabledFlag(j, samplePredEnabledFlag == 1 ? true : false); 2888 2888 decTop->setNumSamplePredRefLayers(decTop->getNumSamplePredRefLayers() + samplePredEnabledFlag); 2889 2889 2890 Int motionPredEnabledFlag = ((vps->getDirectDependencyType(layer , j) + 1) & 2) >> 1;2890 Int motionPredEnabledFlag = ((vps->getDirectDependencyType(layerIdx, j) + 1) & 2) >> 1; 2891 2891 decTop->setMotionPredEnabledFlag(j, motionPredEnabledFlag == 1 ? true : false); 2892 2892 decTop->setNumMotionPredRefLayers(decTop->getNumMotionPredRefLayers() + motionPredEnabledFlag); … … 3108 3108 if( vps->getOutputLayerFlag( targetOlsIdx, i ) ) 3109 3109 { 3110 this->getLayerDec( vps->getLayer IdxInVps( vps->getLayerSetLayerIdList( targetLsIdx, i )) )->m_isOutputLayerFlag = true;3110 this->getLayerDec( vps->getLayerSetLayerIdList( targetLsIdx, i ) )->m_isOutputLayerFlag = true; 3111 3111 } 3112 3112 } … … 3130 3130 #endif 3131 3131 #if POC_RESET_IDC_DECODER 3132 Void TDecTop::markAllPicsAsNoCurrAu( )3132 Void TDecTop::markAllPicsAsNoCurrAu(TComVPS *vps) 3133 3133 { 3134 3134 for(Int i = 0; i < MAX_LAYERS; i++) 3135 3135 { 3136 TComList<TComPic*>* listPic = this->getLayerDec( i)->getListPic();3136 TComList<TComPic*>* listPic = this->getLayerDec(vps->getLayerIdInNuh(i))->getListPic(); 3137 3137 TComList<TComPic*>::iterator iterPic = listPic->begin(); 3138 3138 while ( iterPic != listPic->end() )
Note: See TracChangeset for help on using the changeset viewer.