Changeset 89 in SHVCSoftware for branches/HM-10.0-dev-SHM/source/Lib/TLibEncoder


Ignore:
Timestamp:
16 Mar 2013, 06:55:07 (12 years ago)
Author:
seregin
Message:

IDR alignment

File:
1 edited

Legend:

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

    r71 r89  
    413413    pcSlice->setNalUnitType(getNalUnitType(pocCurr));
    414414#if REF_IDX_FRAMEWORK
     415#if IDR_ALIGNMENT
     416    TComList<TComPic*> *cListPic = m_ppcTEncTop[m_layerId-1]->getListPic();
     417    pcSlice->setBaseColPic (*cListPic, m_layerId );
     418#endif
     419
    415420    if( m_layerId > 0 && (pocCurr % m_pcCfg->getIntraPeriod() == 0) )
    416421    {
     422#if IDR_ALIGNMENT
     423      if( pcSlice->getBaseColPic()->getSlice(0)->getNalUnitType() == NAL_UNIT_CODED_SLICE_IDR )
     424      {
     425        pcSlice->setNalUnitType(NAL_UNIT_CODED_SLICE_IDR);
     426      }
     427      else
     428#endif
    417429      pcSlice->setNalUnitType(NAL_UNIT_CODED_SLICE_CRA);
    418430    }
     
    516528    if(m_layerId > 0)
    517529    {
     530#if !IDR_ALIGNMENT
    518531      TComList<TComPic*> *cListPic = m_ppcTEncTop[m_layerId-1]->getListPic();
    519532      pcSlice->setBaseColPic (*cListPic, m_layerId );
     533#endif
    520534#if SVC_UPSAMPLING
    521535      if ( pcPic->isSpatialEnhLayer())
Note: See TracChangeset for help on using the changeset viewer.