Changeset 1150 in SHVCSoftware for branches/SHM-dev/source/Lib/TLibEncoder


Ignore:
Timestamp:
8 Jul 2015, 00:17:46 (10 years ago)
Author:
seregin
Message:

macro cleanup: O0149_CROSS_LAYER_BLA_FLAG

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

Legend:

Unmodified
Added
Removed
  • branches/SHM-dev/source/Lib/TLibEncoder/TEncCfg.h

    r1148 r1150  
    371371  Int       m_elRapSliceBEnabled;
    372372  Int       m_adaptiveResolutionChange;
    373   int       m_layerSwitchOffBegin;
    374   int       m_layerSwitchOffEnd;
     373  Int       m_layerSwitchOffBegin;
     374  Int       m_layerSwitchOffEnd;
    375375  Bool      m_altOutputLayerFlag;
    376376  Int       m_skipPictureAtArcSwitch;
    377 #if O0149_CROSS_LAYER_BLA_FLAG
    378377  Bool      m_crossLayerBLAFlag;
    379 #endif
    380378
    381379  Int       m_numDirectRefLayers;
     
    10241022  Bool      getAltOuputLayerFlag() const                     { return m_altOutputLayerFlag; }
    10251023  Void      setAltOuputLayerFlag(Bool b)                     { m_altOutputLayerFlag = b;    }
    1026 #if O0149_CROSS_LAYER_BLA_FLAG
    10271024  Bool      getCrossLayerBLAFlag() const                     { return m_crossLayerBLAFlag; }
    10281025  Void      setCrossLayerBLAFlag(Bool b)                     { m_crossLayerBLAFlag = b;    }
    1029 #endif
    10301026#if FAST_INTRA_SHVC
    10311027  Bool      getUseFastIntraScalable         ()               { return m_useFastIntraScalable; }
  • branches/SHM-dev/source/Lib/TLibEncoder/TEncGOP.cpp

    r1148 r1150  
    11951195#endif
    11961196
    1197 #if O0149_CROSS_LAYER_BLA_FLAG
    11981197    if( m_layerId == 0 && (getNalUnitType(pocCurr, m_iLastIDR, isField) == NAL_UNIT_CODED_SLICE_IDR_W_RADL || getNalUnitType(pocCurr, m_iLastIDR, isField) == NAL_UNIT_CODED_SLICE_IDR_N_LP) )
    11991198    {
     
    12041203      pcSlice->setCrossLayerBLAFlag(false);
    12051204    }
    1206 #endif
    12071205
    12081206    // Set the nal unit type
     
    12321230        m_pcEncTop->setNoClrasOutputFlag(true);
    12331231      }
    1234 #if O0149_CROSS_LAYER_BLA_FLAG
    1235       else if ((pcSlice->getNalUnitType() == NAL_UNIT_CODED_SLICE_IDR_W_RADL || pcSlice->getNalUnitType() == NAL_UNIT_CODED_SLICE_IDR_N_LP) &&
    1236                pcSlice->getCrossLayerBLAFlag())
     1232      else if( pcSlice->getCrossLayerBLAFlag() && ( pcSlice->getNalUnitType() == NAL_UNIT_CODED_SLICE_IDR_W_RADL || pcSlice->getNalUnitType() == NAL_UNIT_CODED_SLICE_IDR_N_LP ) )
    12371233      {
    12381234        m_pcEncTop->setNoClrasOutputFlag(true);
    12391235      }
    1240 #endif
    12411236      else
    12421237      {
    12431238        m_pcEncTop->setNoClrasOutputFlag(false);
    12441239      }
    1245       if (m_pcEncTop->getNoClrasOutputFlag())
     1240
     1241      if( m_pcEncTop->getNoClrasOutputFlag() )
    12461242      {
    12471243        for (UInt i = 0; i < m_pcCfg->getNumLayer(); i++)
  • branches/SHM-dev/source/Lib/TLibEncoder/TEncTop.cpp

    r1148 r1150  
    10491049  m_cPPS.setPPSId( m_iPPSIdCnt );
    10501050  m_cPPS.setSPSId( m_iSPSIdCnt );
    1051 #if O0149_CROSS_LAYER_BLA_FLAG
    1052   if (m_crossLayerBLAFlag)
     1051
     1052  if( m_crossLayerBLAFlag )
    10531053  {
    10541054    m_cPPS.setNumExtraSliceHeaderBits( 3 );
    10551055  }
    1056 #endif
     1056
    10571057  m_cPPS.setNumRefLayerLocationOffsets(m_numRefLayerLocationOffsets);
    10581058  for(Int i = 0; i < m_cPPS.getNumRefLayerLocationOffsets(); i++)
Note: See TracChangeset for help on using the changeset viewer.