Changeset 163 in SHVCSoftware for branches/SHM-2.0-dev/source


Ignore:
Timestamp:
8 May 2013, 18:42:58 (12 years ago)
Author:
interdigital
Message:

converge setRefPicListSvc() into setRefPicList()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/SHM-2.0-dev/source/Lib/TLibDecoder/TDecTop.cpp

    r158 r163  
    113113    if(m_cIlpPic[i])
    114114    {
    115       //m_cIlpPic[i]->setPicYuvRec(NULL);
    116115      m_cIlpPic[i]->destroy();
    117116      delete m_cIlpPic[i];
     
    161160    if (m_cIlpPic[0] == NULL)
    162161    {
    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
    165165        m_cIlpPic[j] = new  TComPic;
    166         //m_cIlpPic[j]->createWithOutYuv(m_iSourceWidth, m_iSourceHeight, g_uiMaxCUWidth, g_uiMaxCUHeight, g_uiMaxCUDepth, &m_cSPS, true);
    167166#if SVC_UPSAMPLING
    168167        m_cIlpPic[j]->create(pcSPS->getPicWidthInLumaSamples(), pcSPS->getPicHeightInLumaSamples(), g_uiMaxCUWidth, g_uiMaxCUHeight, g_uiMaxCUDepth, conformanceWindow, defaultDisplayWindow, numReorderPics, pcSPS, true);
     
    183182  if(m_cIlpPic[0])
    184183  {
    185     //m_cIlpPic[0]->setPicYuvRec(pcPic->getFullPelBaseRec());
    186184    m_cIlpPic[0]->copyUpsampledPictureYuv(pcPic->getFullPelBaseRec(), m_cIlpPic[0]->getPicYuvRec());
    187185    m_cIlpPic[0]->getSlice(0)->setPOC(pcPic->getPOC());
     
    456454  m_apcSlicePilot->setPPS(pps);
    457455  m_apcSlicePilot->setSPS(sps);
     456
    458457  pps->setSPS(sps);
    459458  pps->setNumSubstreams(pps->getEntropyCodingSyncEnabledFlag() ? ((sps->getPicHeightInLumaSamples() + sps->getMaxCUHeight() - 1) / sps->getMaxCUHeight()) * (pps->getNumColumnsMinus1() + 1) : 1);
     
    783782    pcSlice->checkCRA(pcSlice->getRPS(), m_pocCRA, m_prevRAPisBLA, m_cListPic );
    784783    // Set reference list
    785 #if REF_LIST_BUGFIX
     784#if REF_IDX_FRAMEWORK
    786785    if (m_layerId == 0)
    787786#endif
     
    854853      }
    855854#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);
    864856    }
    865857#endif
Note: See TracChangeset for help on using the changeset viewer.