Changeset 163 in SHVCSoftware for branches/SHM-2.0-dev/source/Lib/TLibDecoder/TDecTop.cpp
- Timestamp:
- 8 May 2013, 18:42:58 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-2.0-dev/source/Lib/TLibDecoder/TDecTop.cpp
r158 r163 113 113 if(m_cIlpPic[i]) 114 114 { 115 //m_cIlpPic[i]->setPicYuvRec(NULL);116 115 m_cIlpPic[i]->destroy(); 117 116 delete m_cIlpPic[i]; … … 161 160 if (m_cIlpPic[0] == NULL) 162 161 { 163 for (Int j=0; j<1/*MAX_NUM_REF*/; j++) 164 { 162 for (Int j=0; j< 1/*MAX_NUM_REF*/; j++) // to be set to NumDirectRefLayers[LayerIdInVps[nuh_layer_id]] 163 { 164 165 165 m_cIlpPic[j] = new TComPic; 166 //m_cIlpPic[j]->createWithOutYuv(m_iSourceWidth, m_iSourceHeight, g_uiMaxCUWidth, g_uiMaxCUHeight, g_uiMaxCUDepth, &m_cSPS, true);167 166 #if SVC_UPSAMPLING 168 167 m_cIlpPic[j]->create(pcSPS->getPicWidthInLumaSamples(), pcSPS->getPicHeightInLumaSamples(), g_uiMaxCUWidth, g_uiMaxCUHeight, g_uiMaxCUDepth, conformanceWindow, defaultDisplayWindow, numReorderPics, pcSPS, true); … … 183 182 if(m_cIlpPic[0]) 184 183 { 185 //m_cIlpPic[0]->setPicYuvRec(pcPic->getFullPelBaseRec());186 184 m_cIlpPic[0]->copyUpsampledPictureYuv(pcPic->getFullPelBaseRec(), m_cIlpPic[0]->getPicYuvRec()); 187 185 m_cIlpPic[0]->getSlice(0)->setPOC(pcPic->getPOC()); … … 456 454 m_apcSlicePilot->setPPS(pps); 457 455 m_apcSlicePilot->setSPS(sps); 456 458 457 pps->setSPS(sps); 459 458 pps->setNumSubstreams(pps->getEntropyCodingSyncEnabledFlag() ? ((sps->getPicHeightInLumaSamples() + sps->getMaxCUHeight() - 1) / sps->getMaxCUHeight()) * (pps->getNumColumnsMinus1() + 1) : 1); … … 783 782 pcSlice->checkCRA(pcSlice->getRPS(), m_pocCRA, m_prevRAPisBLA, m_cListPic ); 784 783 // Set reference list 785 #if REF_ LIST_BUGFIX784 #if REF_IDX_FRAMEWORK 786 785 if (m_layerId == 0) 787 786 #endif … … 854 853 } 855 854 #endif 856 #if REF_LIST_BUGFIX 857 pcSlice->setRefPicListSvc( m_cListPic, m_cIlpPic); 858 #else 859 pcSlice->addRefPicList ( m_cIlpPic, 860 1, 861 ((pcSlice->getNalUnitType() >= NAL_UNIT_CODED_SLICE_BLA_W_LP) && 862 (pcSlice->getNalUnitType() <= NAL_UNIT_CODED_SLICE_CRA)) ? 0: -1); 863 #endif 855 pcSlice->setRefPicList( m_cListPic, false, m_cIlpPic); 864 856 } 865 857 #endif
Note: See TracChangeset for help on using the changeset viewer.