Changeset 1191 in SHVCSoftware


Ignore:
Timestamp:
8 Jul 2015, 03:51:13 (9 years ago)
Author:
seregin
Message:

macro cleanup: R0226_SLICE_TMVP

Location:
branches/SHM-dev/source/Lib
Files:
5 edited

Legend:

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

    r1190 r1191  
    119119#if SVC_EXTENSION
    120120, m_firstSliceInPic               ( false )
    121 #if R0226_SLICE_TMVP
    122121, m_availableForTMVPRefFlag       ( true )
    123 #endif
    124122, m_layerId                     ( 0 )
    125123#if REF_IDX_MFM
  • branches/SHM-dev/source/Lib/TLibCommon/TComSlice.h

    r1190 r1191  
    20012001#if SVC_EXTENSION
    20022002  Bool        m_firstSliceInPic;
    2003 #if R0226_SLICE_TMVP
    20042003  Bool        m_availableForTMVPRefFlag;
    2005 #endif
    20062004  UInt        m_layerId;
    20072005  TComPic*    m_pcBaseColPic[MAX_LAYERS];
     
    22892287
    22902288#if SVC_EXTENSION
    2291   Void      setFirstSliceInPic               ( Bool val )        { m_firstSliceInPic = val;                    }
    2292   Bool      getFirstSliceInPic               ()                  { return m_firstSliceInPic;                   }
    2293 #if R0226_SLICE_TMVP
    2294   Void      setAvailableForTMVPRefFlag     ( Bool   b )    { m_availableForTMVPRefFlag = b; }
    2295   Bool      getAvailableForTMVPRefFlag     ()              { return m_availableForTMVPRefFlag;}
    2296 #endif
     2289  Void      setFirstSliceInPic               ( Bool val )        { m_firstSliceInPic = val;         }
     2290  Bool      getFirstSliceInPic               ()                  { return m_firstSliceInPic;        }
     2291  Void      setAvailableForTMVPRefFlag     ( Bool   b )          { m_availableForTMVPRefFlag = b;   }
     2292  Bool      getAvailableForTMVPRefFlag     ()                    { return m_availableForTMVPRefFlag;}
    22972293  Bool      setBaseColPic       ( TComList<TComPic*>& rcListPic , UInt refLayerIdc );
    2298   Void      setBaseColPic       (UInt refLayerIdc, TComPic* p)     { m_pcBaseColPic[refLayerIdc] = p; }
     2294  Void      setBaseColPic       (UInt refLayerIdc, TComPic* p)    { m_pcBaseColPic[refLayerIdc] = p;    }
    22992295  TComPic*  getBaseColPic       (UInt refLayerIdc)                { return m_pcBaseColPic[refLayerIdc]; }
    2300   TComPic** getBaseColPic       ()                { return &m_pcBaseColPic[0]; }
     2296  TComPic** getBaseColPic       ()                                { return &m_pcBaseColPic[0];          }
    23012297#if MFM_ENCCONSTRAINT
    23022298  TComPic*  getBaseColPic( TComList<TComPic*>& rcListPic );
  • branches/SHM-dev/source/Lib/TLibCommon/TypeDef.h

    r1190 r1191  
    5252#define BSP_INIT_ARRIVAL_SEI             1      ///< JCTVC-R0231: Make signalling of vcl_initial_arrival_delay independent of NalHrdBpPresentFlag
    5353
    54 #define R0226_SLICE_TMVP                 1      ///< JCTVC-R0226, Regarding slice_temporal_mvp_enabled_flag
    55 
    5654#define Q0108_TSA_STSA                   1      ///< JCTVC-Q0108, Remove cross-layer alignment constraints of TSA and STSA pictures, enable to have different prediction structures in different layers
    5755#define Q0177_EOS_CHECKS                 1      ///< JCTVC-Q0177; Put checks on handling EOS
  • branches/SHM-dev/source/Lib/TLibDecoder/TDecTop.cpp

    r1184 r1191  
    12211221  }
    12221222
     1223#if SVC_EXTENSION
    12231224#if POC_RESET_IDC_DECODER
    12241225  m_parseIdc = -1;
    12251226#endif
    12261227
    1227 
    1228 #if R0226_SLICE_TMVP
    1229   if ( m_apcSlicePilot->getTLayer() == 0 && m_apcSlicePilot->getEnableTMVPFlag() == 0 )
     1228  if( m_apcSlicePilot->getTLayer() == 0 && m_apcSlicePilot->getEnableTMVPFlag() == 0 )
    12301229  {
    12311230    //update all pics in the DPB such that they cannot be used for TMPV ref
    1232     TComList<TComPic*>::iterator  iterRefPic = m_cListPic.begin(); 
     1231    TComList<TComPic*>::iterator  iterRefPic = m_cListPic.begin();
     1232
    12331233    while( iterRefPic != m_cListPic.end() )
    12341234    {
     
    12361236      if( ( refPic->getLayerId() == m_apcSlicePilot->getLayerId() ) && refPic->getReconMark() )
    12371237      {
    1238         for(Int i = refPic->getNumAllocatedSlice()-1; i >= 0; i--)
     1238        for( Int i = refPic->getNumAllocatedSlice()-1; i >= 0; i-- )
    12391239        {
    12401240
     
    18611861
    18621862      assert( refPic );
    1863 #if R0226_SLICE_TMVP
    18641863      assert ( refPic->getPicSym()->getSlice(0)->getAvailableForTMVPRefFlag() == true );
    1865 #endif
    18661864
    18671865      // It is a requirement of bitstream conformance when the collocated picture, used for temporal motion vector prediction, is an inter-layer reference picture,
  • branches/SHM-dev/source/Lib/TLibEncoder/TEncCavlc.cpp

    r1190 r1191  
    11191119      if (pcSlice->getSPS()->getTMVPFlagsPresent())
    11201120      {
    1121 #if R0226_SLICE_TMVP
    11221121        WRITE_FLAG( pcSlice->getEnableTMVPFlag() ? 1 : 0, "slice_temporal_mvp_enabled_flag" );
    1123 #else
    1124         WRITE_FLAG( pcSlice->getEnableTMVPFlag() ? 1 : 0, "slice_temporal_mvp_enable_flag" );
    1125 #endif
    11261122      }
    11271123    }
Note: See TracChangeset for help on using the changeset viewer.