Changeset 1106 in SHVCSoftware for branches/SHM-dev/source/App/TAppDecoder


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

macro cleanup: FIX_CONF_MODE

Location:
branches/SHM-dev/source/App/TAppDecoder
Files:
2 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 );
Note: See TracChangeset for help on using the changeset viewer.