Ignore:
Timestamp:
8 Jul 2015, 01:45:57 (9 years ago)
Author:
seregin
Message:

macro cleanup: Q0078_ADD_LAYER_SETS

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/SHM-dev/source/Lib/TLibEncoder/TEncGOP.cpp

    r1150 r1172  
    23702370#if SVC_EXTENSION
    23712371      nalu = NALUnit(NAL_UNIT_SPS, 0, m_layerId);
     2372
     2373      if( m_pcEncTop->getVPS()->getNumDirectRefLayers(m_layerId) == 0 && m_pcEncTop->getVPS()->getNumAddLayerSets() > 0 )
     2374      {
     2375        // For independent base layer rewriting
     2376        nalu.m_layerId = 0;
     2377      }
    23722378#else
    23732379      nalu = NALUnit(NAL_UNIT_SPS);
    23742380#endif
    2375 #if Q0078_ADD_LAYER_SETS
    2376       if (m_pcEncTop->getVPS()->getNumDirectRefLayers(m_layerId) == 0 && m_pcEncTop->getVPS()->getNumAddLayerSets() > 0)
    2377       {
    2378         nalu.m_layerId = 0; // For independent base layer rewriting
    2379       }
    2380 #endif
     2381
    23812382      m_pcEntropyCoder->setBitstream(&nalu.m_Bitstream);
    23822383      if (m_bSeqFirst)
     
    24152416#if SVC_EXTENSION
    24162417      nalu = NALUnit(NAL_UNIT_PPS, 0, m_layerId);
     2418
     2419      if( m_pcEncTop->getVPS()->getNumDirectRefLayers(m_layerId) == 0 && m_pcEncTop->getVPS()->getNumAddLayerSets() > 0 )
     2420      {
     2421        // For independent base layer rewriting
     2422        nalu.m_layerId = 0;
     2423      }
    24172424#else
    24182425      nalu = NALUnit(NAL_UNIT_PPS);
    24192426#endif
    2420 #if Q0078_ADD_LAYER_SETS
    2421       if (m_pcEncTop->getVPS()->getNumDirectRefLayers(m_layerId) == 0 && m_pcEncTop->getVPS()->getNumAddLayerSets() > 0)
    2422       {
    2423         nalu.m_layerId = 0; // For independent base layer rewriting
    2424       }
    2425 #endif
     2427
    24262428      m_pcEntropyCoder->setBitstream(&nalu.m_Bitstream);
    24272429#if O0092_0094_DEPENDENCY_CONSTRAINT
Note: See TracChangeset for help on using the changeset viewer.