Changeset 11 in SHVCSoftware for trunk


Ignore:
Timestamp:
28 Jan 2013, 21:06:38 (12 years ago)
Author:
seregin
Message:

SET_SLICE_LAYER_ID: set layerId to the slice

Location:
trunk/source/Lib
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/source/Lib/TLibCommon/TComPicSym.cpp

    r2 r11  
    191191  {
    192192    m_apcTComSlice[m_uiNumAllocatedSlice-1]->copySliceInfo( m_apcTComSlice[m_uiNumAllocatedSlice-2] );
     193#if SET_SLICE_LAYER_ID
     194    m_apcTComSlice[m_uiNumAllocatedSlice-1]->initSlice( m_apcTComSlice[m_uiNumAllocatedSlice-1]->getLayerId() );
     195#else
    193196    m_apcTComSlice[m_uiNumAllocatedSlice-1]->initSlice();
     197#endif
    194198  }
    195199}
  • trunk/source/Lib/TLibCommon/TComSlice.cpp

    r2 r11  
    153153
    154154
     155#if SET_SLICE_LAYER_ID
     156Void TComSlice::initSlice( UInt layerId )
     157#else
    155158Void TComSlice::initSlice()
    156 {
     159#endif
     160{
     161#if SET_SLICE_LAYER_ID
     162  m_layerId = layerId;
     163#endif
    157164  m_aiNumRefIdx[0]      = 0;
    158165  m_aiNumRefIdx[1]      = 0;
  • trunk/source/Lib/TLibCommon/TComSlice.h

    r2 r11  
    12891289  TComSlice();
    12901290  virtual ~TComSlice();
     1291#if SET_SLICE_LAYER_ID
     1292  Void      initSlice       ( UInt layerId );
     1293#else
    12911294  Void      initSlice       ();
     1295#endif
    12921296
    12931297  Void      setVPS          ( TComVPS* pcVPS ) { m_pcVPS = pcVPS; }
  • trunk/source/Lib/TLibCommon/TypeDef.h

    r10 r11  
    4646#define SVC_UPSAMPLING                   1      ///< upsampling filters
    4747#define PHASE_DERIVATION_IN_INTEGER      1      ///< upsampling filters implementation using only integer arithmetic
     48#define SET_SLICE_LAYER_ID               1      ///< set layerId to the slice
    4849
    4950#define AVC_BASE                         0      ///< YUV BL reading for AVC base SVC
  • trunk/source/Lib/TLibDecoder/TDecTop.cpp

    r6 r11  
    344344  cFillSlice.setSPS( m_parameterSetManagerDecoder.getFirstSPS() );
    345345  cFillSlice.setPPS( m_parameterSetManagerDecoder.getFirstPPS() );
     346#if SET_SLICE_LAYER_ID
     347  cFillSlice.initSlice( m_parameterSetManagerDecoder.getFirstSPS()->getLayerId() );
     348#else
    346349  cFillSlice.initSlice();
     350#endif
    347351  TComPic *cFillPic;
    348352  xGetNewPicBuffer(&cFillSlice,cFillPic);
    349353  cFillPic->getSlice(0)->setSPS( m_parameterSetManagerDecoder.getFirstSPS() );
    350354  cFillPic->getSlice(0)->setPPS( m_parameterSetManagerDecoder.getFirstPPS() );
     355#if SET_SLICE_LAYER_ID
     356  cFillPic->getSlice(0)->initSlice( cFillPic->getLayerId() );
     357#else
    351358  cFillPic->getSlice(0)->initSlice();
     359#endif
    352360 
    353361  TComList<TComPic*>::iterator iterPic = m_cListPic.begin();
     
    440448{
    441449  TComPic*&   pcPic         = m_pcPic;
     450#if SET_SLICE_LAYER_ID
     451  m_apcSlicePilot->initSlice( nalu.m_layerId );
     452#else
    442453  m_apcSlicePilot->initSlice();
     454#endif
    443455
    444456  if (m_bFirstSliceInPicture)
  • trunk/source/Lib/TLibEncoder/TEncSlice.cpp

    r2 r11  
    192192  rpcSlice->setSliceBits(0);
    193193  rpcSlice->setPic( pcPic );
     194#if SET_SLICE_LAYER_ID
     195  rpcSlice->initSlice( pcPic->getLayerId() );
     196#else
    194197  rpcSlice->initSlice();
     198#endif
    195199  rpcSlice->setPicOutputFlag( true );
    196200  rpcSlice->setPOC( uiPOCCurr );
    197201 
    198 #if SVC_EXTENSION
     202#if SVC_EXTENSION && !SET_SLICE_LAYER_ID
    199203  rpcSlice->setLayerId( pcPic->getLayerId());
    200204#endif
Note: See TracChangeset for help on using the changeset viewer.