Changeset 1132 in SHVCSoftware


Ignore:
Timestamp:
7 Jul 2015, 22:58:48 (9 years ago)
Author:
seregin
Message:

macro cleanup: FIX_LAYER_ID_INIT, SPS_PTL_FIX

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

Legend:

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

    r1131 r1132  
    25022502#if OUTPUT_LAYER_SETS_CONFIG
    25032503    // Simplifying the code in the #else section
    2504 #if FIX_LAYER_ID_INIT
    25052504    assert( scanStringToArray( cfg_highestLayerIdx[addLayerSet], m_numHighestLayerIdx[addLayerSet], "HighestLayerIdx", m_highestLayerIdx[addLayerSet] ) );
    2506 #else
    2507     assert( scanStringToArray( cfg_layerSetLayerIdList[addLayerSet], m_numLayerInIdList[addLayerSet], "NumLayerInIdList",  m_highestLayerIdx[addLayerSet] ) );
    2508 #endif
    25092505#else
    25102506    if (m_numHighestLayerIdx[addLayerSet] > 0)
  • branches/SHM-dev/source/App/TAppEncoder/TAppEncTop.cpp

    r1131 r1132  
    15421542  }
    15431543#endif
    1544 #if FIX_LAYER_ID_INIT
    15451544  // The Layer ID List variables should be derived here.
    15461545#if DERIVE_LAYER_ID_LIST_VARIABLES
    15471546  vps->deriveLayerIdListVariables();
    15481547#endif
    1549 #endif
    15501548#if Q0078_ADD_LAYER_SETS
    15511549  vps->setPredictedLayerIds();
    15521550  vps->setTreePartitionLayerIdList();
    1553 #if FIX_LAYER_ID_INIT
    15541551  vps->deriveLayerIdListVariablesForAddLayerSets();
    1555 #else
    1556   vps->setLayerIdIncludedFlagsForAddLayerSets();
    1557 #endif
    15581552#endif
    15591553#endif
     
    16141608#endif
    16151609#endif
    1616  #if VPS_DPB_SIZE_TABLE
    1617 #if !FIX_LAYER_ID_INIT  // must be derived earlier to not delete additional layer sets
    1618   // The Layer ID List variables can be derived here. 
    1619 #if DERIVE_LAYER_ID_LIST_VARIABLES
    1620   vps->deriveLayerIdListVariables();
    1621 #endif
    1622 #endif
     1610#if VPS_DPB_SIZE_TABLE
    16231611  vps->deriveNumberOfSubDpbs();
    16241612  vps->setOutputLayerFlag( 0, 0, 1 );
  • branches/SHM-dev/source/Lib/TLibCommon/TComSlice.cpp

    r1130 r1132  
    31633163  // For layer 0
    31643164  m_numLayerInIdList.push_back(1);
    3165 #if FIX_LAYER_ID_INIT
    31663165  m_layerSetLayerIdList.resize(m_vpsNumLayerSetsMinus1 + 1);
    3167 #else
    3168   m_layerSetLayerIdList.resize(m_numLayerSets);
    3169 #endif
    31703166  m_layerSetLayerIdList[0].push_back(0);
    31713167 
    31723168  // For other layers
    3173 #if FIX_LAYER_ID_INIT
    31743169  for (Int i = 1; i <= m_vpsNumLayerSetsMinus1; i++)
    3175 #else
    3176   for( Int i = 1; i < m_numLayerSets; i++ )
    3177 #endif
    31783170  {
    31793171    for( Int m = 0; m <= m_maxLayerId; m++)
     
    33523344}
    33533345
    3354 #if FIX_LAYER_ID_INIT
    3355 void TComVPS::deriveLayerIdListVariablesForAddLayerSets()
     3346Void TComVPS::deriveLayerIdListVariablesForAddLayerSets()
    33563347{
    33573348  m_layerSetLayerIdList.resize(m_vpsNumLayerSetsMinus1 + 1 + m_numAddLayerSets);
     
    33723363  }
    33733364}
    3374 #else
    3375 void TComVPS::setLayerIdIncludedFlagsForAddLayerSets()
    3376 {
    3377   for (UInt i = 0; i < m_numAddLayerSets; i++)
    3378   {
    3379     for (UInt j = 1; j < m_numIndependentLayers; j++)
    3380     {
    3381       Int layerNum = 0;
    3382       Int lsIdx = m_vpsNumLayerSetsMinus1 + 1 + i;
    3383       for (Int layerId = 0; layerId < MAX_VPS_LAYER_IDX_PLUS1; layerId++)
    3384       {
    3385         m_layerIdIncludedFlag[lsIdx][layerId] = false;
    3386       }
    3387       for (Int treeIdx = 1; treeIdx < m_numIndependentLayers; treeIdx++)
    3388       {
    3389         for (Int layerCnt = 0; layerCnt < m_highestLayerIdxPlus1[i][j]; layerCnt++)
    3390         {
    3391           m_layerSetLayerIdList[lsIdx][layerNum] = m_treePartitionLayerIdList[treeIdx][layerCnt];
    3392           m_layerIdIncludedFlag[lsIdx][m_treePartitionLayerIdList[treeIdx][layerCnt]] = true;
    3393           layerNum++;
    3394         }
    3395       }
    3396       m_numLayerInIdList[lsIdx] = layerNum;
    3397     }
    3398   }
    3399 }
    3400 #endif
    3401 
    34023365#endif
    34033366
  • branches/SHM-dev/source/Lib/TLibCommon/TComSlice.h

    r1130 r1132  
    957957#endif
    958958#if Q0078_ADD_LAYER_SETS
    959 #if FIX_LAYER_ID_INIT
    960959  void    deriveLayerIdListVariablesForAddLayerSets();
    961 #else
    962   void    setLayerIdIncludedFlagsForAddLayerSets();
    963 #endif
    964960  UInt    getVpsNumLayerSetsMinus1()                                             { return m_vpsNumLayerSetsMinus1; }
    965961  Void    setVpsNumLayerSetsMinus1(UInt x)                                       { m_vpsNumLayerSetsMinus1 = x; }
  • branches/SHM-dev/source/Lib/TLibCommon/TypeDef.h

    r1131 r1132  
    149149#define P0182_VPS_VUI_PS_FLAG            1      ///< JCTVC-P0182, add base_layer_parameter_set_compatibility_flag
    150150
    151 #define SPS_PTL_FIX                      1      ///< remove profile_tier_level from enhancement layer SPS
    152 
    153151#define DERIVE_LAYER_ID_LIST_VARIABLES   1      ///< Derived variables based on the variables in VPS - for use in syntax table parsing
    154 #define FIX_LAYER_ID_INIT                1
    155152
    156153#define AVC_BASE                         1      ///< YUV BL reading for AVC base SVC
  • branches/SHM-dev/source/Lib/TLibDecoder/TDecCAVLC.cpp

    r1130 r1132  
    28462846    }
    28472847    vps->setNumLayerSets(vps->getNumLayerSets() + vps->getNumAddLayerSets());
    2848 #if FIX_LAYER_ID_INIT
    28492848    vps->deriveLayerIdListVariablesForAddLayerSets();
    2850 #else
    2851     vps->setLayerIdIncludedFlagsForAddLayerSets();
    2852 #endif
    28532849  }
    28542850  else
  • branches/SHM-dev/source/Lib/TLibEncoder/TEncCavlc.cpp

    r1130 r1132  
    848848    }
    849849  }
    850 #if !FIX_LAYER_ID_INIT  // It was still called because NECESSARY_FLAG does not exist and is by default "false"
    851 #if !NECESSARY_FLAG   // Already called once in TAppEncTop.cpp
    852 #if DERIVE_LAYER_ID_LIST_VARIABLES
    853   pcVPS->deriveLayerIdListVariables();
    854 #endif
    855 #endif
    856 #endif
     850
    857851  TimingInfo *timingInfo = pcVPS->getTimingInfo();
    858852  WRITE_FLAG(timingInfo->getTimingInfoPresentFlag(),          "vps_timing_info_present_flag");
Note: See TracChangeset for help on using the changeset viewer.