Changeset 411 in SHVCSoftware for branches/SHM-3.1-dev/source/Lib/TLibCommon


Ignore:
Timestamp:
8 Oct 2013, 08:00:50 (11 years ago)
Author:
qualcomm
Message:

JCTVC-N0244: Signaling of poc_reset_flag in the slice header (MACRO: POC_RESET_FLAG)

Signal poc_reset_flag in slice header, which will reset POC value of the current picture and decrement the POC of pictures in the DPB.

From: Adarsh K. Ramasubramonian <aramasub@…>

Location:
branches/SHM-3.1-dev/source/Lib/TLibCommon
Files:
3 edited

Legend:

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

    r409 r411  
    7171, m_iDepth                        ( 0 )
    7272, m_bRefenced                     ( false )
     73#if POC_RESET_FLAG
     74, m_bPocResetFlag                 ( false )
     75#endif
    7376#if SH_DISCARDABLE_FLAG
    7477, m_bDiscardableFlag              ( false )
     
    269272    pcPic = *(iterPic);
    270273  }
     274#if POC_RESET_FLAG
     275    assert( pcPic->getSlice(0)->isReferenced() );
     276#endif
    271277  return  pcPic;
    272278}
     
    27682774    return;
    27692775  }       
     2776#if POC_RESET_FLAG
     2777  if( this->getPocResetFlag() )
     2778  {
     2779    setBaseColPic(refLayerIdc, xGetRefPic(rcListPic, 0));
     2780  }
     2781  else
     2782  {
     2783    setBaseColPic(refLayerIdc, xGetRefPic(rcListPic, getPOC()));
     2784  }
     2785#else
    27702786  setBaseColPic(refLayerIdc, xGetRefPic(rcListPic, getPOC()));
     2787#endif
    27712788}
    27722789#endif
     
    27822799    //set reference picture POC of each ILP reference
    27832800    Int thePoc = ilpPic[refLayerIdc]->getPOC();
    2784     assert(thePoc >= 0); 
     2801    assert(thePoc >= 0);
    27852802    assert(thePoc == pcRefPicBL->getPOC());
    27862803
  • branches/SHM-3.1-dev/source/Lib/TLibCommon/TComSlice.h

    r409 r411  
    15681568  Bool        m_bRefenced;
    15691569 
     1570#if POC_RESET_FLAG
     1571  Bool        m_bPocResetFlag;
     1572  Int         m_pocValueBeforeReset;
     1573#endif 
    15701574#if SH_DISCARDABLE_FLAG
    15711575  Bool        m_bDiscardableFlag;
    15721576#endif
    1573 
    15741577  // access channel
    15751578  TComVPS*    m_pcVPS;
     
    17301733#endif
    17311734
     1735#if POC_RESET_FLAG
     1736  Bool      getPocResetFlag  ()                              { return m_bPocResetFlag; }
     1737  Void      setPocResetFlag  (Bool b)                        { m_bPocResetFlag = b; }
     1738  Int       getPocValueBeforeReset ()                        { return m_pocValueBeforeReset; }
     1739  Void      setPocValueBeforeReset (Int x)                   { m_pocValueBeforeReset = x ; }
     1740#endif
    17321741#if SH_DISCARDABLE_FLAG
    17331742  Bool      getDiscardableFlag  ()                              { return m_bDiscardableFlag; }
  • branches/SHM-3.1-dev/source/Lib/TLibCommon/TypeDef.h

    r410 r411  
    4949#define VPS_NUH_LAYER_ID                 1      ///< N0085: Assert that the nuh_layer_id of VPS NAL unit should be 0
    5050#if SVC_EXTENSION
     51#define POC_RESET_FLAG                1         ///< N0244: POC reset flag for  layer pictures.
    5152#define MAX_LAYERS                       2      ///< max number of layers the codec is supposed to handle
    5253#define REPN_FORMAT_IN_VPS               1      ///< N0092: Signal represenation format (spatial resolution, bit depth, colour format) in the VPS
Note: See TracChangeset for help on using the changeset viewer.