Changeset 107 in SHVCSoftware


Ignore:
Timestamp:
2 Apr 2013, 17:28:46 (12 years ago)
Author:
interdigital
Message:

reference picture list construction bug fix for adding ILR picture to match SHM test model text.

Location:
branches/HM-10.0-dev-SHM/source/Lib/TLibEncoder
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/HM-10.0-dev-SHM/source/Lib/TLibEncoder/TEncGOP.cpp

    r99 r107  
    524524    pcSlice->setNumRefIdx(REF_PIC_LIST_1,min(m_pcCfg->getGOPEntry(iGOPid).m_numRefPicsActive,pcSlice->getRPS()->getNumberOfPictures()));
    525525
     526#if REF_LIST_BUGFIX
     527    if(m_layerId > 0)
     528    {
     529      if( pcSlice->getNalUnitType() >= NAL_UNIT_CODED_SLICE_BLA && pcSlice->getNalUnitType() <= NAL_UNIT_CODED_SLICE_CRA )
     530      {
     531        pcSlice->setNumRefIdx(REF_PIC_LIST_0, pcSlice->getNumILRRefIdx());
     532        pcSlice->setNumRefIdx(REF_PIC_LIST_1, pcSlice->getNumILRRefIdx());
     533      }
     534      else
     535      {
     536        pcSlice->setNumRefIdx(REF_PIC_LIST_0, pcSlice->getNumRefIdx(REF_PIC_LIST_0)+pcSlice->getNumILRRefIdx());
     537        pcSlice->setNumRefIdx(REF_PIC_LIST_1, pcSlice->getNumRefIdx(REF_PIC_LIST_1)+pcSlice->getNumILRRefIdx());
     538      }
     539    }
     540#endif
     541
    526542#if ADAPTIVE_QP_SELECTION
    527543    pcSlice->setTrQuant( m_pcEncTop->getTrQuant() );
     
    557573
    558574    //  Set reference list
     575#if REF_LIST_BUGFIX
     576    if(m_layerId ==  0)
     577    {
     578      pcSlice->setRefPicList( rcListPic);
     579    }
     580#else
    559581    pcSlice->setRefPicList ( rcListPic );
     582#endif
    560583#if REF_IDX_FRAMEWORK
    561584    if(m_layerId > 0)
     
    569592      }
    570593#endif
     594#if REF_LIST_BUGFIX
     595      pcSlice->setRefPicListModificationSvc();
     596      pcSlice->setRefPicListSvc( rcListPic, m_pcEncTop->getIlpList() );
     597#else
    571598      pcSlice->addRefPicList ( m_pcEncTop->getIlpList(), 1);
     599#endif
    572600
    573601#if REF_IDX_MFM
  • branches/HM-10.0-dev-SHM/source/Lib/TLibEncoder/TEncTop.cpp

    r75 r107  
    809809    }
    810810  }
     811#if REF_LIST_BUGFIX
     812  if (!m_layerId)
     813  {
     814    m_cPPS.setListsModificationPresentFlag(false);
     815  }
     816  else
     817  {
     818    m_cPPS.setListsModificationPresentFlag(true);
     819  }
     820#endif
    811821#if SVC_EXTENSION
    812822  m_cPPS.setPPSId         ( m_iPPSIdCnt         );
Note: See TracChangeset for help on using the changeset viewer.