Changeset 1106 in SHVCSoftware


Ignore:
Timestamp:
6 Jul 2015, 20:51:30 (9 years ago)
Author:
seregin
Message:

macro cleanup: FIX_CONF_MODE

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

Legend:

Unmodified
Added
Removed
  • branches/SHM-dev/source/App/TAppDecoder/TAppDecCfg.cpp

    r1089 r1106  
    102102#endif
    103103#endif
    104 #if FIX_CONF_MODE
    105104  ("TargetLayerId,-lid", targetLayerId, -1, "Target layer id")
    106105  ("LayerNum,-ls", layerNum, MAX_NUM_LAYER_IDS, "Target layer id") // Legacy option
    107 #else
    108   ("LayerNum,-ls", nLayerNum, 1, "Number of layers to be decoded.")
    109 #endif
    110106#if OUTPUT_LAYER_SET_INDEX
    111107  ("OutpuLayerSetIdx,-olsidx", olsIdx, -1, "Index of output layer set to be decoded.")
     
    172168
    173169  assert( targetLayerId >= 0 );
    174 #if !FIX_CONF_MODE
    175   assert( m_tgtLayerId < MAX_LAYERS );  // If this is wrong, it should be caught by asserts in other locations.
    176 #endif
    177170#if O0137_MAX_LAYERID
    178171  assert( targetLayerId < MAX_NUM_LAYER_IDS );
     
    199192
    200193    // Decoded layer YUV files
    201 #if FIX_CONF_MODE
    202194    for(Int layer= 0; layer < MAX_VPS_LAYER_IDX_PLUS1; layer++ )
    203 #else
    204     for(UInt layer=0; layer<= m_tgtLayerId; layer++)
    205 #endif
    206195    {
    207196      sprintf(fileNameSuffix, "%s-L%d.yuv", m_confPrefix.c_str(), layer);  // olsIdx is the target output layer set index.
     
    214203  m_commonDecoderParams.setTargetLayerId( targetLayerId );
    215204#endif
    216 #if FIX_CONF_MODE
     205#if CONFORMANCE_BITSTREAM_MODE
    217206  for(Int layer = 0; layer < MAX_VPS_LAYER_IDX_PLUS1; layer++ )
    218207  {
  • branches/SHM-dev/source/App/TAppDecoder/TAppDecTop.cpp

    r1103 r1106  
    9494  }
    9595#if SVC_EXTENSION
    96 #if FIX_CONF_MODE
     96#if CONFORMANCE_BITSTREAM_MODE
    9797  for(Int i = 0; i < MAX_VPS_LAYER_IDX_PLUS1; i++ )
    9898#else
     
    174174  memset( loopFiltered, false, sizeof( loopFiltered ) );
    175175
    176 #if FIX_CONF_MODE
     176#if CONFORMANCE_BITSTREAM_MODE
    177177  for(UInt layer = 0; layer < MAX_VPS_LAYER_IDX_PLUS1; layer++)
    178178#else
     
    234234      read(nalu, nalUnit);
    235235      if( (m_iMaxTemporalLayer >= 0 && nalu.m_temporalId > m_iMaxTemporalLayer) || !isNaluWithinTargetDecLayerIdSet(&nalu)  ||
    236 #if FIX_CONF_MODE
     236#if CONFORMANCE_BITSTREAM_MODE
    237237        (nalu.m_layerId > m_commonDecoderParams.getTargetLayerId()) )
    238238#else
     
    415415  pcBLPic.destroy();
    416416
    417 #if FIX_CONF_MODE
     417#if CONFORMANCE_BITSTREAM_MODE
    418418  for(UInt layer = layerIdxmin; layer < MAX_VPS_LAYER_IDX_PLUS1; layer++)
    419419#else
     
    604604  initROM();
    605605
    606 #if FIX_CONF_MODE
     606#if CONFORMANCE_BITSTREAM_MODE
    607607  for(UInt layer = 0; layer < MAX_VPS_LAYER_IDX_PLUS1; layer++)
    608608#else
     
    630630  destroyROM();
    631631
    632 #if FIX_CONF_MODE
     632#if CONFORMANCE_BITSTREAM_MODE
    633633  for(UInt layer = 0; layer < MAX_VPS_LAYER_IDX_PLUS1; layer++)
    634634#else
     
    659659  // initialize decoder class
    660660#if SVC_EXTENSION
    661 #if FIX_CONF_MODE
     661#if CONFORMANCE_BITSTREAM_MODE
    662662  for(UInt layer = 0; layer < MAX_VPS_LAYER_IDX_PLUS1; layer++)
    663663#else
     
    667667    m_acTDecTop[layer].init();
    668668    m_acTDecTop[layer].setDecodedPictureHashSEIEnabled(m_decodedPictureHashSEIEnabled);
    669 #if FIX_CONF_MODE
     669#if CONFORMANCE_BITSTREAM_MODE
    670670    m_acTDecTop[layer].setNumLayer( MAX_LAYERS );
    671671#else
     
    677677  }
    678678#if CONFORMANCE_BITSTREAM_MODE
    679 #if FIX_CONF_MODE
    680679  for(UInt layer = 0; layer < MAX_VPS_LAYER_IDX_PLUS1; layer++)
    681 #else
    682   for(UInt layer = 0; layer < MAX_LAYERS; layer++)
    683 #endif
    684680  {
    685681    m_acTDecTop[layer].setConfModeFlag( m_confModeFlag );
  • branches/SHM-dev/source/Lib/TLibCommon/CommonDef.h

    r1080 r1106  
    316316public:
    317317  CommonDecoderParams():
    318 #if FIX_CONF_MODE
     318#if CONFORMANCE_BITSTREAM_MODE
    319319    m_targetLayerId(MAX_VPS_LAYER_IDX_PLUS1)
    320320#else
  • branches/SHM-dev/source/Lib/TLibCommon/TypeDef.h

    r1105 r1106  
    4646#define MAX_LAYERS                       8      ///< max number of layers the codec is supposed to handle
    4747#define CONFORMANCE_BITSTREAM_MODE       1      ///< In order to generate the metadata related to conformance bitstreams
    48 #define FIX_CONF_MODE                    1
    4948#define FIX_NON_OUTPUT_LAYER             1
    5049#define SIGNALLING_BITRATE_PICRATE_FIX   1      ///< Fix for signalling of bitrate and picture rate info in VPS VUI to be more aligned to JCTVC-R1008
  • branches/SHM-dev/source/Lib/TLibDecoder/TDecTop.cpp

    r1103 r1106  
    26332633  CommonDecoderParams* params = this->getCommonDecoderParams();
    26342634
    2635 #if !FIX_CONF_MODE
    2636   assert( params->getTargetLayerId() < vps->getMaxLayers() );
    2637 #endif
    2638 
    26392635  if( params->getValueCheckedFlag() )
    26402636  {
     
    27392735
    27402736  }
    2741 #if FIX_CONF_MODE
     2737
    27422738  // Set correct value of targetLayerId
    27432739  Int targetOlsIdx = params->getTargetOutputLayerSetIdx();
    27442740  Int targetLsIdx = vps->getOutputLayerSetIdx( targetOlsIdx );
    27452741  params->setTargetLayerId( vps->getLayerSetLayerIdList( targetLsIdx, vps->getNumLayersInIdList(targetLsIdx)-1 ) );
    2746 #endif
     2742
    27472743#if FIX_NON_OUTPUT_LAYER
    27482744  // Check if the current layer is an output layer
Note: See TracChangeset for help on using the changeset viewer.