Changeset 291 in SHVCSoftware for branches/SHM-2.1-dev/source/Lib/TLibCommon


Ignore:
Timestamp:
18 Jun 2013, 14:06:13 (12 years ago)
Author:
nokia
Message:

JCTVC-M0457: Co-located picture signaling

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

Legend:

Unmodified
Added
Removed
  • branches/SHM-2.1-dev/source/Lib/TLibCommon/TComDataCU.cpp

    r288 r291  
    35833583
    35843584  // use coldir.
     3585#if M0457_COL_PICTURE_SIGNALING
     3586  TComPic *pColPic;
     3587  if (m_layerId > 0 && getSlice()->getAltColIndicationFlag())
     3588  {
     3589    pColPic = getSlice()->getMotionPredIlp();
     3590  }
     3591  else
     3592  {
     3593    pColPic = getSlice()->getRefPic( RefPicList(getSlice()->isInterB() ? 1-getSlice()->getColFromL0Flag() : 0), getSlice()->getColRefIdx());
     3594  }
     3595#else
    35853596  TComPic *pColPic = getSlice()->getRefPic( RefPicList(getSlice()->isInterB() ? 1-getSlice()->getColFromL0Flag() : 0), getSlice()->getColRefIdx());
     3597#endif
    35863598  TComDataCU *pColCU = pColPic->getCU( uiCUAddr );
    35873599  if(pColCU->getPic()==0||pColCU->getPartitionSize(uiPartUnitIdx)==SIZE_NONE)
  • branches/SHM-2.1-dev/source/Lib/TLibCommon/TComSlice.cpp

    r290 r291  
    135135  m_numILRRefIdx = 0;
    136136#endif
     137#if M0457_COL_PICTURE_SIGNALING
     138  m_altColIndicationFlag = false;
     139  m_colRefLayerIdx       = 0;
     140#endif
    137141#endif
    138142#endif
     
    545549#endif
    546550    {
     551#if M0457_COL_PICTURE_SIGNALING
     552      if(!(m_eNalUnitType >= NAL_UNIT_CODED_SLICE_BLA_W_LP && m_eNalUnitType <= NAL_UNIT_CODED_SLICE_CRA) && getMFMEnabledFlag())
     553#else
    547554      if(!(m_eNalUnitType >= NAL_UNIT_CODED_SLICE_BLA_W_LP && m_eNalUnitType <= NAL_UNIT_CODED_SLICE_CRA) && m_pcSPS->getMFMEnabledFlag())
     555#endif
    548556      {
    549557        ilpPic[refLayerIdc]->copyUpsampledMvField( refLayerIdc, m_pcBaseColPic[refLayerIdc] );
  • branches/SHM-2.1-dev/source/Lib/TLibCommon/TComSlice.h

    r290 r291  
    10381038#endif
    10391039#if REF_IDX_MFM
     1040#if !M0457_COL_PICTURE_SIGNALING
    10401041  Bool m_bMFMEnabledFlag;
     1042#endif
    10411043#endif
    10421044#if SCALED_REF_LAYER_OFFSETS
     
    11801182#endif
    11811183#if REF_IDX_MFM
     1184#if !M0457_COL_PICTURE_SIGNALING
    11821185  Void     setMFMEnabledFlag(Bool flag) {m_bMFMEnabledFlag = flag;}
    11831186  Bool     getMFMEnabledFlag()          {return m_bMFMEnabledFlag;}
     1187#endif
    11841188#endif
    11851189#if SCALED_REF_LAYER_OFFSETS
     
    15151519  TComPic*    m_pcBaseColPic[MAX_LAYERS];
    15161520  TComPicYuv* m_pcFullPelBaseRec[MAX_LAYERS];
     1521#if REF_IDX_FRAMEWORK && M0457_COL_PICTURE_SIGNALING
     1522  Int         m_numMotionPredRefLayers;
     1523#if REF_IDX_MFM
     1524  Bool        m_bMFMEnabledFlag;
     1525  Int         m_colRefLayerIdx;
     1526  Bool        m_altColIndicationFlag;
     1527  TComPic*    m_pcIlpPic;
     1528#endif
     1529#endif
    15171530#endif
    15181531  Bool        m_bTLayerSwitchingFlag;
     
    18341847  Void      setNumILRRefIdx     ( Int i )               { m_numILRRefIdx = i;     }
    18351848#endif
     1849
     1850#if REF_IDX_FRAMEWORK && M0457_COL_PICTURE_SIGNALING
     1851  Void      setNumMotionPredRefLayers(int i)            { m_numMotionPredRefLayers = i; }
     1852  Int       getNumMotionPredRefLayers()                 { return m_numMotionPredRefLayers; }
     1853#if REF_IDX_MFM
     1854  Void      setMFMEnabledFlag(Bool flag)                { m_bMFMEnabledFlag = flag; }
     1855  Bool      getMFMEnabledFlag()                         { return m_bMFMEnabledFlag; }
     1856  Void      setColRefLayerIdx(Int i)                    { m_colRefLayerIdx = i;     }
     1857  Int       getColRefLayerIdx()                         { return m_colRefLayerIdx;  }
     1858  Void      setAltColIndicationFlag(Bool i)             { m_altColIndicationFlag = i; }
     1859  Bool      getAltColIndicationFlag()                   { return m_altColIndicationFlag; }
     1860  Void      setMotionPredIlp(TComPic *ilpPic)           { m_pcIlpPic = ilpPic; }
     1861  TComPic*  getMotionPredIlp()                          { return m_pcIlpPic; }
     1862#endif
     1863#endif
     1864
    18361865#endif
    18371866
  • branches/SHM-2.1-dev/source/Lib/TLibCommon/TypeDef.h

    r290 r291  
    101101#define ILR_RESTR                        1     ///< JCTVC-M0209 Inter-layer RPS and RPL
    102102#endif
     103#define M0457_COL_PICTURE_SIGNALING      1
    103104
    104105#else
Note: See TracChangeset for help on using the changeset viewer.