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


Ignore:
Timestamp:
9 May 2013, 20:21:30 (12 years ago)
Author:
seregin
Message:

set VPS for a slice and derive NumDirectRefLayers

Location:
branches/SHM-2.0-dev/source/Lib
Files:
4 edited

Legend:

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

    r170 r171  
    185185  if(layerId)
    186186  {
    187     m_aiNumILRRefIdx      = 1;  // to be set to NumDirectRefLayers[LayerIdInVps[nuh_layer_id]]
     187    m_aiNumILRRefIdx            = m_pcVPS->getNumDirectRefLayers( layerId );
    188188#if JCTVC_M0458
    189189    m_aiActiveNumILRRefIdx      = 1;         
  • branches/SHM-2.0-dev/source/Lib/TLibEncoder/TEncGOP.cpp

    r164 r171  
    483483#if SVC_EXTENSION
    484484    pcPic->setLayerId( m_layerId );
    485 #endif
     485    m_pcSliceEncoder->initEncSlice ( pcPic, iPOCLast, pocCurr, iNumPicRcvd, iGOPid, pcSlice, m_pcEncTop->getSPS(), m_pcEncTop->getPPS(), m_pcEncTop->getVPS() );
     486#else
    486487    m_pcSliceEncoder->initEncSlice ( pcPic, iPOCLast, pocCurr, iNumPicRcvd, iGOPid, pcSlice, m_pcEncTop->getSPS(), m_pcEncTop->getPPS() );
     488#endif
    487489    pcSlice->setLastIDR(m_iLastIDR);
    488490    pcSlice->setSliceIdx(0);
  • branches/SHM-2.0-dev/source/Lib/TLibEncoder/TEncSlice.cpp

    r147 r171  
    178178 \param pPPS          PPS associated with the slice
    179179 */
     180#if SVC_EXTENSION
     181//\param vps          VPS associated with the slice
     182Void TEncSlice::initEncSlice( TComPic* pcPic, Int pocLast, Int pocCurr, Int iNumPicRcvd, Int iGOPid, TComSlice*& rpcSlice, TComSPS* pSPS, TComPPS *pPPS, TComVPS *vps )
     183#else
    180184Void TEncSlice::initEncSlice( TComPic* pcPic, Int pocLast, Int pocCurr, Int iNumPicRcvd, Int iGOPid, TComSlice*& rpcSlice, TComSPS* pSPS, TComPPS *pPPS )
     185#endif
    181186{
    182187  Double dQP;
     
    189194  rpcSlice->setPic( pcPic );
    190195#if SVC_EXTENSION
     196  rpcSlice->setVPS( vps );
    191197  rpcSlice->initSlice( pcPic->getLayerId() );
    192198#else
  • branches/SHM-2.0-dev/source/Lib/TLibEncoder/TEncSlice.h

    r147 r171  
    116116 
    117117  /// preparation of slice encoding (reference marking, QP and lambda)
     118#if SVC_EXTENSION
     119  Void    initEncSlice        ( TComPic*  pcPic, Int pocLast, Int pocCurr, Int iNumPicRcvd,
     120                                Int iGOPid,   TComSlice*& rpcSlice, TComSPS* pSPS, TComPPS *pPPS, TComVPS *vps );
     121#else
    118122  Void    initEncSlice        ( TComPic*  pcPic, Int pocLast, Int pocCurr, Int iNumPicRcvd,
    119123                                Int iGOPid,   TComSlice*& rpcSlice, TComSPS* pSPS, TComPPS *pPPS );
     124#endif
     125
    120126#if RATE_CONTROL_LAMBDA_DOMAIN
    121127  Void    resetQP             ( TComPic* pic, Int sliceQP, Double lambda );
Note: See TracChangeset for help on using the changeset viewer.