Changeset 1046 in SHVCSoftware for branches/SHM-dev/source


Ignore:
Timestamp:
3 Mar 2015, 02:47:16 (10 years ago)
Author:
interdigital
Message:
  1. change MAX_VPS_LAYER_ID_PLUS1 to MAX_VPS_LAYER_IDX_PLUS1
  2. change layerId to layerIdx whenever layer index is used
  3. replace mistakenly used layer ID with layer index
Location:
branches/SHM-dev/source/Lib/TLibCommon
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • branches/SHM-dev/source/Lib/TLibCommon/CommonDef.h

    r1029 r1046  
    317317  CommonDecoderParams():
    318318#if FIX_CONF_MODE
    319     m_targetLayerId(MAX_VPS_LAYER_ID_PLUS1)
     319    m_targetLayerId(MAX_VPS_LAYER_IDX_PLUS1)
    320320#else
    321321    m_targetLayerId(0)
  • branches/SHM-dev/source/Lib/TLibCommon/SEI.h

    r1037 r1046  
    919919  UInt m_seiBspCombScheddx[MAX_VPS_LAYER_SETS_PLUS1][16][16];
    920920  UInt m_vpsMaxLayers;
    921   Bool m_layerIdIncludedFlag[MAX_VPS_LAYER_SETS_PLUS1][MAX_VPS_LAYER_ID_PLUS1];
     921  Bool m_layerIdIncludedFlag[MAX_VPS_LAYER_SETS_PLUS1][MAX_VPS_LAYER_IDX_PLUS1];
    922922
    923923  TComHRD *hrd;
  • branches/SHM-dev/source/Lib/TLibCommon/TComSlice.cpp

    r1043 r1046  
    21252125#endif
    21262126  m_maxTidRefPresentFlag = true;
    2127   for( Int i = 0; i < MAX_VPS_LAYER_ID_PLUS1 - 1; i++)
     2127  for( Int i = 0; i < MAX_VPS_LAYER_IDX_PLUS1 - 1; i++)
    21282128  {
    21292129#if O0225_MAX_TID_FOR_REF_LAYERS
    2130     for( Int j = 0; j < MAX_VPS_LAYER_ID_PLUS1; j++)
     2130    for( Int j = 0; j < MAX_VPS_LAYER_IDX_PLUS1; j++)
    21312131    {
    21322132      m_maxTidIlRefPicsPlus1[i][j] = m_uiMaxTLayers + 1;
     
    35283528      Int layerNum = 0;
    35293529      Int lsIdx = m_vpsNumLayerSetsMinus1 + 1 + i;
    3530       for (Int layerId = 0; layerId < MAX_VPS_LAYER_ID_PLUS1; layerId++)
     3530      for (Int layerId = 0; layerId < MAX_VPS_LAYER_IDX_PLUS1; layerId++)
    35313531      {
    35323532        m_layerIdIncludedFlag[lsIdx][layerId] = false;
  • branches/SHM-dev/source/Lib/TLibCommon/TComSlice.h

    r1043 r1046  
    636636  std::vector<Int>                      m_numLayerInIdList;;
    637637#else
    638   Int         m_layerSetLayerIdList[MAX_VPS_LAYER_SETS_PLUS1 + MAX_NUM_ADD_LAYER_SETS][MAX_VPS_LAYER_ID_PLUS1];
     638  Int         m_layerSetLayerIdList[MAX_VPS_LAYER_SETS_PLUS1 + MAX_NUM_ADD_LAYER_SETS][MAX_VPS_LAYER_IDX_PLUS1];
    639639  Int         m_numLayerInIdList[MAX_VPS_LAYER_SETS_PLUS1 + MAX_NUM_ADD_LAYER_SETS];
    640640#endif
    641641#else
    642   Int         m_layerSetLayerIdList[MAX_VPS_LAYER_SETS_PLUS1][MAX_VPS_LAYER_ID_PLUS1];
     642  Int         m_layerSetLayerIdList[MAX_VPS_LAYER_SETS_PLUS1][MAX_VPS_LAYER_IDX_PLUS1];
    643643  Int         m_numLayerInIdList[MAX_VPS_LAYER_SETS_PLUS1];
    644644#endif
     
    653653#if Q0078_ADD_LAYER_SETS
    654654  UInt        m_vpsNumLayerSetsMinus1;
    655   Bool        m_layerIdIncludedFlag[MAX_VPS_LAYER_SETS_PLUS1 + MAX_NUM_ADD_LAYER_SETS][MAX_VPS_LAYER_ID_PLUS1];
    656 #else
    657   Bool        m_layerIdIncludedFlag[MAX_VPS_LAYER_SETS_PLUS1][MAX_VPS_LAYER_ID_PLUS1];
     655  Bool        m_layerIdIncludedFlag[MAX_VPS_LAYER_SETS_PLUS1 + MAX_NUM_ADD_LAYER_SETS][MAX_VPS_LAYER_IDX_PLUS1];
     656#else
     657  Bool        m_layerIdIncludedFlag[MAX_VPS_LAYER_SETS_PLUS1][MAX_VPS_LAYER_IDX_PLUS1];
    658658#endif
    659659
     
    671671  UInt       m_dimensionIdLen[MAX_VPS_NUM_SCALABILITY_TYPES];
    672672  Bool       m_nuhLayerIdPresentFlag;
    673   UInt       m_layerIdInNuh[MAX_VPS_LAYER_ID_PLUS1];            // Maps layer ID in the VPS with layer_id_in_nuh
    674   UInt       m_dimensionId[MAX_VPS_LAYER_ID_PLUS1][MAX_VPS_NUM_SCALABILITY_TYPES];
     673  UInt       m_layerIdInNuh[MAX_VPS_LAYER_IDX_PLUS1];            // Maps layer ID in the VPS with layer_id_in_nuh
     674  UInt       m_dimensionId[MAX_VPS_LAYER_IDX_PLUS1][MAX_VPS_NUM_SCALABILITY_TYPES];
    675675
    676676  // Below are derived variables
    677677  UInt       m_numScalabilityTypes;
    678   UInt       m_layerIdxInVps[MAX_VPS_LAYER_ID_PLUS1];            // Maps layer_id_in_nuh with the layer ID in the VPS
     678  UInt       m_layerIdxInVps[MAX_VPS_LAYER_IDX_PLUS1];            // Maps layer_id_in_nuh with the layer ID in the VPS
    679679#endif
    680680#if BITRATE_PICRATE_SIGNALLING
     
    703703#if Q0078_ADD_LAYER_SETS
    704704  UInt       m_outputLayerSetIdx[MAX_VPS_LAYER_SETS_PLUS1 + 2*MAX_NUM_ADD_LAYER_SETS];
    705   Bool       m_outputLayerFlag[MAX_VPS_LAYER_SETS_PLUS1 + 2*MAX_NUM_ADD_LAYER_SETS][MAX_VPS_LAYER_ID_PLUS1];
     705  Bool       m_outputLayerFlag[MAX_VPS_LAYER_SETS_PLUS1 + 2*MAX_NUM_ADD_LAYER_SETS][MAX_VPS_LAYER_IDX_PLUS1];
    706706#else
    707707  UInt       m_outputLayerSetIdx[MAX_VPS_LAYER_SETS_PLUS1];
    708   Bool       m_outputLayerFlag[MAX_VPS_LAYER_SETS_PLUS1][MAX_VPS_LAYER_ID_PLUS1];
     708  Bool       m_outputLayerFlag[MAX_VPS_LAYER_SETS_PLUS1][MAX_VPS_LAYER_IDX_PLUS1];
    709709#endif
    710710#endif
    711711#if VPS_EXTN_DIRECT_REF_LAYERS
    712   Bool       m_directDependencyFlag[MAX_VPS_LAYER_ID_PLUS1][MAX_VPS_LAYER_ID_PLUS1];
    713   UInt       m_numDirectRefLayers[MAX_VPS_LAYER_ID_PLUS1];
    714   UInt       m_refLayerId[MAX_VPS_LAYER_ID_PLUS1][MAX_VPS_LAYER_ID_PLUS1];
     712  Bool       m_directDependencyFlag[MAX_VPS_LAYER_IDX_PLUS1][MAX_VPS_LAYER_IDX_PLUS1];
     713  UInt       m_numDirectRefLayers[MAX_VPS_LAYER_IDX_PLUS1];
     714  UInt       m_refLayerId[MAX_VPS_LAYER_IDX_PLUS1][MAX_VPS_LAYER_IDX_PLUS1];
    715715  UInt       m_directDepTypeLen;
    716716#if O0096_DEFAULT_DEPENDENCY_TYPE
     
    718718  UInt       m_defaultDirectDependencyType;
    719719#endif
    720   UInt       m_directDependencyType[MAX_VPS_LAYER_ID_PLUS1][MAX_VPS_LAYER_ID_PLUS1];
     720  UInt       m_directDependencyType[MAX_VPS_LAYER_IDX_PLUS1][MAX_VPS_LAYER_IDX_PLUS1];
    721721#endif
    722722  UInt       m_numProfileTierLevel;
     
    741741  Bool       m_maxOneActiveRefLayerFlag;
    742742#if O0062_POC_LSB_NOT_PRESENT_FLAG
    743   Bool       m_pocLsbNotPresentFlag[MAX_VPS_LAYER_ID_PLUS1];
     743  Bool       m_pocLsbNotPresentFlag[MAX_VPS_LAYER_IDX_PLUS1];
    744744#endif
    745745#if O0223_PICTURE_TYPES_ALIGN_FLAG
     
    751751#endif
    752752#if O0225_MAX_TID_FOR_REF_LAYERS
    753   UInt       m_maxTidIlRefPicsPlus1[MAX_VPS_LAYER_ID_PLUS1 - 1][MAX_VPS_LAYER_ID_PLUS1];
    754 #else
    755   UInt       m_maxTidIlRefPicsPlus1[MAX_VPS_LAYER_ID_PLUS1 - 1];
     753  UInt       m_maxTidIlRefPicsPlus1[MAX_VPS_LAYER_IDX_PLUS1 - 1][MAX_VPS_LAYER_IDX_PLUS1];
     754#else
     755  UInt       m_maxTidIlRefPicsPlus1[MAX_VPS_LAYER_IDX_PLUS1 - 1];
    756756#endif
    757757  Bool       m_maxTidRefPresentFlag;
     
    768768#if VPS_VUI_TILES_NOT_IN_USE__FLAG
    769769  Bool       m_tilesNotInUseFlag;
    770   Bool       m_tilesInUseFlag[MAX_VPS_LAYER_ID_PLUS1];
    771   Bool       m_loopFilterNotAcrossTilesFlag[MAX_VPS_LAYER_ID_PLUS1];
     770  Bool       m_tilesInUseFlag[MAX_VPS_LAYER_IDX_PLUS1];
     771  Bool       m_loopFilterNotAcrossTilesFlag[MAX_VPS_LAYER_IDX_PLUS1];
    772772#endif
    773   Bool       m_tileBoundariesAlignedFlag[MAX_VPS_LAYER_ID_PLUS1][MAX_VPS_LAYER_ID_PLUS1];
     773  Bool       m_tileBoundariesAlignedFlag[MAX_VPS_LAYER_IDX_PLUS1][MAX_VPS_LAYER_IDX_PLUS1];
    774774#if VPS_VUI_WPP_NOT_IN_USE__FLAG
    775775  Bool       m_wppNotInUseFlag;
    776   Bool       m_wppInUseFlag[MAX_VPS_LAYER_ID_PLUS1];
     776  Bool       m_wppInUseFlag[MAX_VPS_LAYER_IDX_PLUS1];
    777777#endif
    778778#if N0160_VUI_EXT_ILP_REF   
    779779  Bool       m_ilpRestrictedRefLayersFlag;
    780   Int        m_minSpatialSegmentOffsetPlus1[MAX_VPS_LAYER_ID_PLUS1][MAX_VPS_LAYER_ID_PLUS1];
    781   Bool       m_ctuBasedOffsetEnabledFlag   [MAX_VPS_LAYER_ID_PLUS1][MAX_VPS_LAYER_ID_PLUS1];
    782   Int        m_minHorizontalCtuOffsetPlus1 [MAX_VPS_LAYER_ID_PLUS1][MAX_VPS_LAYER_ID_PLUS1];
     780  Int        m_minSpatialSegmentOffsetPlus1[MAX_VPS_LAYER_IDX_PLUS1][MAX_VPS_LAYER_IDX_PLUS1];
     781  Bool       m_ctuBasedOffsetEnabledFlag   [MAX_VPS_LAYER_IDX_PLUS1][MAX_VPS_LAYER_IDX_PLUS1];
     782  Int        m_minHorizontalCtuOffsetPlus1 [MAX_VPS_LAYER_IDX_PLUS1][MAX_VPS_LAYER_IDX_PLUS1];
    783783#endif
    784784#if VPS_VUI_VIDEO_SIGNAL
    785785  Bool       m_vidSigPresentVpsFlag;
    786786  Int        m_vpsVidSigInfo;
    787   Int        m_vpsVidSigIdx[MAX_VPS_LAYER_ID_PLUS1];
     787  Int        m_vpsVidSigIdx[MAX_VPS_LAYER_IDX_PLUS1];
    788788  Int        m_vpsVidFormat[16];
    789789  Bool       m_vpsFullRangeFlag[16];
     
    24092409  Bool        m_interLayerPredEnabledFlag;
    24102410  Int         m_activeNumILRRefIdx;        //< Active inter-layer reference pictures
    2411   Int         m_interLayerPredLayerIdc  [MAX_VPS_LAYER_ID_PLUS1];
     2411  Int         m_interLayerPredLayerIdc  [MAX_VPS_LAYER_IDX_PLUS1];
    24122412#if P0312_VERT_PHASE_ADJ
    2413   Bool        m_vertPhasePositionFlag[MAX_VPS_LAYER_ID_PLUS1];
     2413  Bool        m_vertPhasePositionFlag[MAX_VPS_LAYER_IDX_PLUS1];
    24142414#endif
    24152415#if POC_RESET_FLAG
  • branches/SHM-dev/source/Lib/TLibCommon/TypeDef.h

    r1037 r1046  
    410410#define MAX_VPS_LAYER_SETS_PLUS1                       1024
    411411#define MAX_VPS_OUTPUT_LAYER_SETS_PLUS1                1024
    412 #define MAX_VPS_LAYER_ID_PLUS1                   MAX_LAYERS
     412#define MAX_VPS_LAYER_IDX_PLUS1                   MAX_LAYERS
    413413#else
    414414#define MAX_VPS_NUM_HRD_PARAMETERS                        1
Note: See TracChangeset for help on using the changeset viewer.