Ignore:
Timestamp:
2 Mar 2013, 09:25:00 (12 years ago)
Author:
seregin
Message:

port simulcast

File:
1 edited

Legend:

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

    r51 r54  
    137137  m_pcCfg             = pcEncTop;
    138138  m_pcListPic         = pcEncTop->getListPic();
    139  
     139#if SVC_EXTENSION
     140  m_ppcTEncTop        = pcEncTop->getLayerEnc();
     141#endif 
    140142  m_pcGOPEncoder      = pcEncTop->getGOPEncoder();
    141143  m_pcCuEncoder       = pcEncTop->getCuEncoder();
     
    186188  rpcSlice->setSliceBits(0);
    187189  rpcSlice->setPic( pcPic );
     190#if SET_SLICE_LAYER_ID
     191  rpcSlice->initSlice( pcPic->getLayerId() );
     192#else
    188193  rpcSlice->initSlice();
     194#endif
    189195  rpcSlice->setPicOutputFlag( true );
    190196  rpcSlice->setPOC( pocCurr );
     197#if SVC_EXTENSION && !SET_SLICE_LAYER_ID
     198  rpcSlice->setLayerId( pcPic->getLayerId());
     199#endif
    191200 
    192201  // depth computation based on GOP size
     
    369378  eSliceType = (pocLast == 0 || pocCurr % m_pcCfg->getIntraPeriod() == 0 || m_pcGOPEncoder->getGOPSize() == 0) ? I_SLICE : eSliceType;
    370379 
     380#if REF_IDX_FRAMEWORK
     381  if(m_pcCfg->getLayerId() > 0)
     382  {
     383    eSliceType=B_SLICE;
     384  }
     385#endif
    371386  rpcSlice->setSliceType        ( eSliceType );
    372387#endif
     
    877892  UInt uiTileStartLCU = 0;
    878893  UInt uiTileLCUX     = 0;
     894
     895#if INTRA_BL
     896  m_pcCuEncoder->setBaseRecPic( rpcPic->getLayerId() > 0 ? rpcPic->getFullPelBaseRec() : NULL);
     897#endif
     898
    879899  Bool depSliceSegmentsEnabled = pcSlice->getPPS()->getDependentSliceSegmentsEnabledFlag();
    880900  uiCUAddr = rpcPic->getPicSym()->getCUOrderMap( uiStartCUAddr /rpcPic->getNumPartInCU());
     
    924944    TComDataCU*& pcCU = rpcPic->getCU( uiCUAddr );
    925945    pcCU->initCU( rpcPic, uiCUAddr );
     946#if SVC_EXTENSION
     947    pcCU->setLayerId(m_pcCfg->getLayerId());
     948#endif
    926949
    927950#if !RATE_CONTROL_LAMBDA_DOMAIN
Note: See TracChangeset for help on using the changeset viewer.