Changeset 1047 in SHVCSoftware


Ignore:
Timestamp:
3 Mar 2015, 02:47:33 (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/TLibDecoder
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/SHM-dev/source/Lib/TLibDecoder/TDecCAVLC.cpp

    r1043 r1047  
    10701070#if SVC_EXTENSION
    10711071  assert( pcVPS->getNumHrdParameters() < MAX_VPS_LAYER_SETS_PLUS1 );
    1072   assert( pcVPS->getMaxLayerId()       < MAX_VPS_LAYER_ID_PLUS1 );
     1072  assert( pcVPS->getMaxLayerId()       < MAX_VPS_LAYER_IDX_PLUS1 );
    10731073  READ_CODE( 6, uiCode, "vps_max_layer_id" );           pcVPS->setMaxLayerId( uiCode );
    10741074#if Q0078_ADD_LAYER_SETS
     
    16601660      Int   numRefLayerPics = 0;
    16611661      Int   i = 0;
    1662       Int   refLayerPicIdc  [MAX_VPS_LAYER_ID_PLUS1];
     1662      Int   refLayerPicIdc  [MAX_VPS_LAYER_IDX_PLUS1];
    16631663      for(i = 0, numRefLayerPics = 0;  i < pcSlice->getNumILRRefIdx(); i++ )
    16641664      {
  • branches/SHM-dev/source/Lib/TLibDecoder/TDecTop.cpp

    r1043 r1047  
    11741174
    11751175#if P0297_VPS_POC_LSB_ALIGNED_FLAG
    1176   UInt affectedLayerList[MAX_NUM_LAYER_IDS];
     1176  UInt affectedLayerList[MAX_LAYERS];
    11771177  Int  numAffectedLayers;
    11781178
     
    28702870    decTop->setNumMotionPredRefLayers(0);
    28712871    decTop->setNumDirectRefLayers(0);
    2872     for(Int i = 0; i < MAX_VPS_LAYER_ID_PLUS1; i++)
     2872    for(Int i = 0; i < MAX_VPS_LAYER_IDX_PLUS1; i++)
    28732873    {
    28742874      decTop->setSamplePredEnabledFlag(i, false);
     
    32983298  }
    32993299
    3300   for (UInt layer = 0; layer <= MAX_VPS_LAYER_ID_PLUS1 - 1; layer++)
     3300  for (UInt layer = 0; layer <= MAX_VPS_LAYER_IDX_PLUS1 - 1; layer++)
    33013301  {
    33023302    m_ppcTDecTop[layer]->m_smallestLayerId = smallestLayerId;
  • branches/SHM-dev/source/Lib/TLibDecoder/TDecTop.h

    r1043 r1047  
    149149#if VPS_EXTN_DIRECT_REF_LAYERS
    150150  Int                     m_numDirectRefLayers;
    151   Int                     m_refLayerId[MAX_VPS_LAYER_ID_PLUS1];
     151  Int                     m_refLayerId[MAX_VPS_LAYER_IDX_PLUS1];
    152152  Int                     m_numSamplePredRefLayers;
    153   Int                     m_samplePredRefLayerId[MAX_VPS_LAYER_ID_PLUS1];
     153  Int                     m_samplePredRefLayerId[MAX_VPS_LAYER_IDX_PLUS1];
    154154  Int                     m_numMotionPredRefLayers;
    155   Int                     m_motionPredRefLayerId[MAX_VPS_LAYER_ID_PLUS1];
    156   Bool                    m_samplePredEnabledFlag[MAX_VPS_LAYER_ID_PLUS1];
    157   Bool                    m_motionPredEnabledFlag[MAX_VPS_LAYER_ID_PLUS1];
     155  Int                     m_motionPredRefLayerId[MAX_VPS_LAYER_IDX_PLUS1];
     156  Bool                    m_samplePredEnabledFlag[MAX_VPS_LAYER_IDX_PLUS1];
     157  Bool                    m_motionPredEnabledFlag[MAX_VPS_LAYER_IDX_PLUS1];
    158158#endif
    159159  TComPic*                m_cIlpPic[MAX_NUM_REF];                    ///<  Inter layer Prediction picture =  upsampled picture
Note: See TracChangeset for help on using the changeset viewer.