Ignore:
Timestamp:
19 Jun 2013, 14:46:47 (11 years ago)
Author:
tech
Message:

Bug fixes related to not correctly initialized slice at encoder.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/HTM-DEV-0.3-dev2/source/Lib/TLibEncoder/TEncSlice.cpp

    r479 r481  
    177177 */
    178178#if H_3D_GEN
    179 Void TEncSlice::initEncSlice( TComPic* pcPic, Int pocLast, Int pocCurr, Int iNumPicRcvd, Int iGOPid, TComSlice*& rpcSlice, TComVPS* pVPS, TComSPS* pSPS, TComPPS *pPPS )
     179Void TEncSlice::initEncSlice( TComPic* pcPic, Int pocLast, Int pocCurr, Int iNumPicRcvd, Int iGOPid, TComSlice*& rpcSlice, TComVPS* pVPS, TComSPS* pSPS, TComPPS *pPPS, Int layerId )
    180180#else
    181181Void TEncSlice::initEncSlice( TComPic* pcPic, Int pocLast, Int pocCurr, Int iNumPicRcvd, Int iGOPid, TComSlice*& rpcSlice, TComSPS* pSPS, TComPPS *pPPS )
     
    186186 
    187187  rpcSlice = pcPic->getSlice(0);
    188 #if H_3D_GEN
     188#if H_3D_GEN
     189  // GT: Should also be activated for MV-HEVC at some stage
    189190  rpcSlice->setVPS( pVPS );
     191  Int vpsLayerId = pVPS->getLayerIdInNuh( layerId );
     192
     193  rpcSlice->setLayerId     ( layerId );
     194  rpcSlice->setViewId      ( pVPS->getViewId      ( vpsLayerId ) );   
     195  rpcSlice->setViewIndex   ( pVPS->getViewIndex   ( vpsLayerId ) );
     196  rpcSlice->setIsDepth     ( pVPS->getDepthId     ( vpsLayerId ) != 0 );   
    190197#endif
    191198  rpcSlice->setSPS( pSPS );
Note: See TracChangeset for help on using the changeset viewer.