Changeset 323 in SHVCSoftware for branches/SHM-3.0-dev/source/Lib/TLibCommon


Ignore:
Timestamp:
2 Aug 2013, 22:59:06 (11 years ago)
Author:
seregin
Message:

cleanup ZERO_NUM_DIRECT_LAYERS

Location:
branches/SHM-3.0-dev/source/Lib/TLibCommon
Files:
2 edited

Legend:

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

    r313 r323  
    385385
    386386#if REF_IDX_FRAMEWORK
    387 #if ZERO_NUM_DIRECT_LAYERS
    388387  if( m_layerId == 0 || ( m_layerId > 0 && ( m_activeNumILRRefIdx == 0 || !((getNalUnitType() >= NAL_UNIT_CODED_SLICE_BLA_W_LP) && (getNalUnitType() <= NAL_UNIT_CODED_SLICE_CRA)) ) ) )
    389 #else
    390   if ((getLayerId() == 0) ||
    391       ((getSPS()->getLayerId()) &&  !((getNalUnitType() >= NAL_UNIT_CODED_SLICE_BLA_W_LP) &&
    392        (getNalUnitType() <= NAL_UNIT_CODED_SLICE_CRA)) )
    393      )
    394 #endif
    395388  {
    396389#endif
     
    458451#if ILR_RESTR
    459452    Int maxSubLayerForILPPlus1 = ( m_layerId > 0 && m_activeNumILRRefIdx > 0)? m_pcVPS->getMaxSublayerForIlpPlus1(ilpPic[refLayerIdc]->getSlice(0)->getLayerId()) : 0;
    460 #if ZERO_NUM_DIRECT_LAYERS
    461453    if( m_layerId > 0 && m_activeNumILRRefIdx > 0 && ( ( (Int)(ilpPic[refLayerIdc]->getSlice(0)->getTLayer())<=  maxSubLayerForILPPlus1-1) || (maxSubLayerForILPPlus1==0 && ilpPic[refLayerIdc]->getSlice(0)->getRapPicFlag()) )  )
    462 #else
    463     if( m_layerId > 0 && ( ( (Int)(ilpPic[refLayerIdc]->getSlice(0)->getTLayer())<=maxSubLayerForILPPlus1-1) || (maxSubLayerForILPPlus1==0 && ilpPic[refLayerIdc]->getSlice(0)->getRapPicFlag()) )  )
    464 #endif
    465454#else //#if ILR_RESTR
    466 #if ZERO_NUM_DIRECT_LAYERS
    467455    if( m_layerId > 0 && m_activeNumILRRefIdx > 0 )
    468 #else
    469     if( m_layerId > 0 )
    470 #endif
    471456#endif //#if ILR_RESTR
    472457    {
  • branches/SHM-3.0-dev/source/Lib/TLibCommon/TypeDef.h

    r322 r323  
    9696#define JCTVC_M0458_INTERLAYER_RPS_SIG   1      ///< implementation of JCTVC-L0178
    9797#if JCTVC_M0458_INTERLAYER_RPS_SIG
    98 #define ZERO_NUM_DIRECT_LAYERS           1      ///< support of zero direct reference layers
    9998#define MAX_ONE_RESAMPLING_DIRECT_LAYERS 1      ///< Allow maximum of one resampling process for direct reference layers
    10099#endif
Note: See TracChangeset for help on using the changeset viewer.