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


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

IDR alignment

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

Legend:

Unmodified
Added
Removed
  • branches/HM-10.0-dev-SHM/source/Lib/TLibCommon/TComSlice.cpp

    r88 r89  
    20362036// Assumed that RPL of the base layer is same to the EL, otherwise this information should be also dumped and read from the metadata file
    20372037  setPOC( pcSlice->getPOC() );
    2038   if( pcSlice->getNalUnitType() == NAL_UNIT_CODED_SLICE_CRA )
     2038  if( pcSlice->getNalUnitType() >= NAL_UNIT_CODED_SLICE_BLA && pcSlice->getNalUnitType() <= NAL_UNIT_CODED_SLICE_CRA )
    20392039  {
    20402040    setSliceType( I_SLICE );
  • branches/HM-10.0-dev-SHM/source/Lib/TLibCommon/TypeDef.h

    r83 r89  
    6262#define JCTVC_L0178                      1      ///< implementation of JCTVC-L0178 (code only supports right and bottom croppping offsets)
    6363#endif
     64
     65#define IDR_ALIGNMENT                    1      ///< align IDR picures across layers
    6466
    6567#if AVC_BASE
  • 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.