Changeset 1171 in SHVCSoftware


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

macro cleanup: VPS_EXTN_OP_LAYER_SETS

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

Legend:

Unmodified
Added
Removed
  • branches/SHM-dev/source/App/TAppEncoder/TAppEncTop.cpp

    r1169 r1171  
    12521252  }
    12531253
    1254 #if VPS_EXTN_OP_LAYER_SETS
    1255   vps->setMaxLayerId( m_acLayerCfg[m_numLayers - 1].m_layerId );    // Set max-layer ID
    1256 
     1254  // Set max-layer ID
     1255  vps->setMaxLayerId( m_acLayerCfg[m_numLayers - 1].m_layerId );
    12571256  vps->setVpsExtensionFlag( m_numLayers > 1 ? true : false );
    12581257
     
    15241523    }
    15251524  }
    1526 #endif
     1525
    15271526  // Target output layer
    15281527#if VPS_DPB_SIZE_TABLE
  • branches/SHM-dev/source/Lib/TLibCommon/TComSlice.cpp

    r1170 r1171  
    19561956, m_maxLayerId                (0)
    19571957, m_numLayerSets              (0)
    1958 #if VPS_EXTN_OP_LAYER_SETS
    19591958, m_numOutputLayerSets        (0) 
    1960 #endif
    19611959, m_numProfileTierLevel       (0)
    19621960, m_numAddOutputLayerSets     (0)
     
    19971995  m_numScalabilityTypes = 0;
    19981996  ::memset(m_layerIdxInVps, 0, sizeof(m_layerIdxInVps));
    1999 
    20001997  ::memset(m_profilePresentFlag, 0, sizeof(m_profilePresentFlag));
    2001 #if VPS_EXTN_OP_LAYER_SETS
     1998
    20021999  ::memset(m_layerIdIncludedFlag, 0, sizeof(m_layerIdIncludedFlag));
    20032000  // Consider dynamic allocation for outputLayerSetIdx and outputLayerFlag
    20042001  ::memset(m_outputLayerSetIdx, 0, sizeof(m_outputLayerSetIdx));
    20052002  ::memset(m_outputLayerFlag, 0, sizeof(m_outputLayerFlag));
    2006 #endif
    20072003
    20082004  ::memset(m_directDependencyFlag, 0, sizeof(m_directDependencyFlag));
  • branches/SHM-dev/source/Lib/TLibCommon/TComSlice.h

    r1170 r1171  
    639639  std::vector<TComPTL>    m_pcPTLForExtn; 
    640640#endif
    641 #if VPS_EXTN_OP_LAYER_SETS
    642   // .. More declarations here
     641
    643642  // Target output layer signalling related
    644643  UInt       m_numOutputLayerSets;
     
    649648  UInt       m_outputLayerSetIdx[MAX_VPS_LAYER_SETS_PLUS1];
    650649  Bool       m_outputLayerFlag[MAX_VPS_LAYER_SETS_PLUS1][MAX_VPS_LAYER_IDX_PLUS1];
    651 #endif
    652650#endif
    653651
     
    972970  TComPTL* getPTLForExtn(Int id)                                { return &m_pcPTLForExtn[id];      }
    973971#endif
    974 #if VPS_EXTN_OP_LAYER_SETS
    975972  // Target output layer signalling related
    976973  UInt   getNumOutputLayerSets()                                { return m_numOutputLayerSets;     }
     
    982979  Bool   getOutputLayerFlag(Int layerSet, Int layerIdx)          { return m_outputLayerFlag[layerSet][layerIdx]; }
    983980  Void   setOutputLayerFlag(Int layerSet, Int layerIdx, Bool x)  { m_outputLayerFlag[layerSet][layerIdx] = x;    }
    984 #endif
    985981
    986982  // Direct dependency of layers
  • branches/SHM-dev/source/Lib/TLibCommon/TypeDef.h

    r1170 r1171  
    109109#define P0297_VPS_POC_LSB_ALIGNED_FLAG   1      ///< JCTVC-P0297: vps_poc_lsb_aligned_flag for cross-layer POC anchor picture derivation
    110110
    111 #define VPS_EXTN_OP_LAYER_SETS           1      ///< Include output layer sets in VPS extension
    112 
    113111#define VPS_VUI_TILES_NOT_IN_USE__FLAG   1      ///< JCTVC-O0226: VPS VUI flag to indicate tile not in use
    114112#define VPS_VUI_WPP_NOT_IN_USE__FLAG     1      ///< JCTVC-O0226: VPS VUI flag to indicate tile not in use
  • branches/SHM-dev/source/Lib/TLibEncoder/TEncCavlc.cpp

    r1170 r1171  
    815815  assert( pcVPS->getNumHrdParameters() <= MAX_VPS_LAYER_SETS_PLUS1 );
    816816  assert( pcVPS->getMaxLayerId() < MAX_VPS_LAYER_IDX_PLUS1 );
    817 #if !VPS_EXTN_OP_LAYER_SETS     // num layer sets set in TAppEncTop.cpp
    818   pcVPS->setNumLayerSets(1);
    819 #endif
     817
    820818  WRITE_CODE( pcVPS->getMaxLayerId(), 6,                       "vps_max_layer_id" );
    821819#if Q0078_ADD_LAYER_SETS
     
    829827    // Operation point set
    830828    for( UInt i = 0; i <= pcVPS->getMaxLayerId(); i ++ )
     829    {
    831830#else
    832831  assert( pcVPS->getNumHrdParameters() <= MAX_VPS_NUM_HRD_PARAMETERS );
     
    839838    // Operation point set
    840839    for( UInt i = 0; i <= pcVPS->getMaxNuhReservedZeroLayerId(); i ++ )
    841 #endif
    842     {
    843 #if !VPS_EXTN_OP_LAYER_SETS     // layer Id include flag set in TAppEncTop.cpp
     840    {
    844841      // Only applicable for version 1
    845842      pcVPS->setLayerIdIncludedFlag( true, opsIdx, i );
Note: See TracChangeset for help on using the changeset viewer.