Changeset 108 in SHVCSoftware for branches/HM-10.0-dev-SHM/source/Lib


Ignore:
Timestamp:
2 Apr 2013, 22:50:17 (12 years ago)
Author:
qualcomm
Message:

Rename VPS syntax elements (MACRO: VPS_RENAME)

Rename variables vps_max_nuh_reserved_zero_layer_id and vps_max_op_sets_minus1 to vps_max_layer_id and vps_num_layer_sets_minus1.

From: Adarsh K. Ramasubramonian <aramasub@…>

Location:
branches/HM-10.0-dev-SHM/source/Lib
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • branches/HM-10.0-dev-SHM/source/Lib/TLibCommon/TComSlice.cpp

    r102 r108  
    14641464, m_bTemporalIdNestingFlag    (false)
    14651465, m_numHrdParameters          (  0)
     1466#if !VPS_RENAME
    14661467, m_maxNuhReservedZeroLayerId (  0)
     1468#endif
    14671469, m_hrdParameters             (NULL)
    14681470, m_hrdOpSetIdx               (NULL)
    14691471, m_cprmsPresentFlag          (NULL)
     1472#if VPS_RENAME
     1473, m_maxLayerId                (0)
     1474, m_numLayerSets              (0)
     1475#endif
    14701476{
    14711477
  • branches/HM-10.0-dev-SHM/source/Lib/TLibCommon/TComSlice.h

    r103 r108  
    484484
    485485  UInt        m_numHrdParameters;
     486#if !VPS_RENAME
    486487  UInt        m_maxNuhReservedZeroLayerId;
     488#endif
    487489  TComHRD*    m_hrdParameters;
    488490  UInt*       m_hrdOpSetIdx;
    489491  Bool*       m_cprmsPresentFlag;
     492#if VPS_RENAME
     493  UInt        m_maxLayerId;
     494  UInt        m_numLayerSets;
     495  Bool        m_layerIdIncludedFlag[MAX_VPS_LAYER_SETS_PLUS1][MAX_VPS_LAYER_ID_PLUS1];
     496#else
    490497  UInt        m_numOpSets;
    491498  Bool        m_layerIdIncludedFlag[MAX_VPS_OP_SETS_PLUS1][MAX_VPS_NUH_RESERVED_ZERO_LAYER_ID_PLUS1];
     499#endif
    492500
    493501  TComPTL     m_pcPTL;
     
    540548  Void    setNumHrdParameters(UInt v)                           { m_numHrdParameters = v;    }
    541549
     550#if VPS_RENAME
     551  UInt    getMaxLayerId()                                       { return m_maxLayerId; }
     552  Void    setMaxLayerId(UInt v)                                 { m_maxLayerId = v;    }
     553
     554  UInt    getNumLayerSets()                                     { return m_numLayerSets; }
     555  Void    setNumLayerSets(UInt v)                               { m_numLayerSets = v;    }
     556#else
    542557  UInt    getMaxNuhReservedZeroLayerId()                        { return m_maxNuhReservedZeroLayerId; }
    543558  Void    setMaxNuhReservedZeroLayerId(UInt v)                  { m_maxNuhReservedZeroLayerId = v;    }
     
    545560  UInt    getMaxOpSets()                                        { return m_numOpSets; }
    546561  Void    setMaxOpSets(UInt v)                                  { m_numOpSets = v;    }
     562#endif
    547563  Bool    getLayerIdIncludedFlag(UInt opsIdx, UInt id)          { return m_layerIdIncludedFlag[opsIdx][id]; }
    548564  Void    setLayerIdIncludedFlag(Bool v, UInt opsIdx, UInt id)  { m_layerIdIncludedFlag[opsIdx][id] = v;    }
  • branches/HM-10.0-dev-SHM/source/Lib/TLibCommon/TypeDef.h

    r103 r108  
    4444
    4545#if SVC_EXTENSION
     46#define VPS_RENAME                       1      ///< Rename variables max_layer_id and num_layer_sets_minus1 in VPS
    4647#define MAX_LAYERS                       2      ///< max number of layers the codec is supposed to handle
    4748
     
    131132#define L0232_RD_PENALTY           1  ///< L0232: RD-penalty for 32x32 TU for intra in non-intra slices
    132133
     134#if VPS_RENAME
     135#define MAX_VPS_LAYER_SETS_PLUS1                  1024
     136#define MAX_VPS_LAYER_ID_PLUS1                    1
     137#else
    133138#define MAX_VPS_NUM_HRD_PARAMETERS                1
    134139#define MAX_VPS_OP_SETS_PLUS1                     1024
    135140#define MAX_VPS_NUH_RESERVED_ZERO_LAYER_ID_PLUS1  1
    136 
     141#endif
    137142#define RATE_CONTROL_LAMBDA_DOMAIN                  1  ///< JCTVC-K0103, rate control by R-lambda model
    138143#define L0033_RC_BUGFIX                             1  ///< JCTVC-L0033, bug fix for R-lambda model based rate control
  • branches/HM-10.0-dev-SHM/source/Lib/TLibDecoder/TDecCAVLC.cpp

    r100 r108  
    758758  }
    759759
     760#if VPS_RENAME
     761  assert( pcVPS->getNumHrdParameters() < MAX_VPS_LAYER_SETS_PLUS1 );
     762  assert( pcVPS->getMaxLayerId()       < MAX_VPS_LAYER_ID_PLUS1 );
     763  READ_CODE( 6, uiCode, "vps_max_layer_id" );           pcVPS->setMaxLayerId( uiCode );
     764  READ_UVLC(    uiCode, "vps_num_layer_sets_minus1" );  pcVPS->setNumLayerSets( uiCode + 1 );
     765  for( UInt opsIdx = 1; opsIdx <= ( pcVPS->getNumLayerSets() - 1 ); opsIdx ++ )
     766  {
     767    // Operation point set
     768    for( UInt i = 0; i <= pcVPS->getMaxLayerId(); i ++ )
     769#else
    760770  assert( pcVPS->getNumHrdParameters() < MAX_VPS_OP_SETS_PLUS1 );
    761771  assert( pcVPS->getMaxNuhReservedZeroLayerId() < MAX_VPS_NUH_RESERVED_ZERO_LAYER_ID_PLUS1 );
     
    766776    // Operation point set
    767777    for( UInt i = 0; i <= pcVPS->getMaxNuhReservedZeroLayerId(); i ++ )
     778#endif
    768779    {
    769780      READ_FLAG( uiCode, "layer_id_included_flag[opsIdx][i]" );   pcVPS->setLayerIdIncludedFlag( uiCode == 1 ? true : false, opsIdx, i );
  • branches/HM-10.0-dev-SHM/source/Lib/TLibEncoder/TEncCavlc.cpp

    r100 r108  
    588588  }
    589589
     590#if VPS_RENAME
     591  assert( pcVPS->getNumHrdParameters() <= MAX_VPS_LAYER_SETS_PLUS1 );
     592  assert( pcVPS->getMaxLayerId() < MAX_VPS_LAYER_ID_PLUS1 );
     593  pcVPS->setNumLayerSets(1);
     594  WRITE_CODE( pcVPS->getMaxLayerId(), 6,                       "vps_max_layer_id" );
     595  WRITE_UVLC( pcVPS->getNumLayerSets() - 1,                 "vps_num_layer_sets_minus1" );
     596  for( UInt opsIdx = 1; opsIdx <= ( pcVPS->getNumLayerSets() - 1 ); opsIdx ++ )
     597  {
     598    // Operation point set
     599    for( UInt i = 0; i <= pcVPS->getMaxLayerId(); i ++ )
     600#else
    590601  assert( pcVPS->getNumHrdParameters() <= MAX_VPS_NUM_HRD_PARAMETERS );
    591602  assert( pcVPS->getMaxNuhReservedZeroLayerId() < MAX_VPS_NUH_RESERVED_ZERO_LAYER_ID_PLUS1 );
     
    597608    // Operation point set
    598609    for( UInt i = 0; i <= pcVPS->getMaxNuhReservedZeroLayerId(); i ++ )
     610#endif
    599611    {
    600612      // Only applicable for version 1
Note: See TracChangeset for help on using the changeset viewer.