Changeset 1120 in SHVCSoftware for branches


Ignore:
Timestamp:
7 Jul 2015, 02:00:49 (9 years ago)
Author:
seregin
Message:

macro cleanup: R0279_REP_FORMAT_INBL

Location:
branches/SHM-dev/source/Lib/TLibCommon
Files:
3 edited

Legend:

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

    r1119 r1120  
    21772177, m_chromaFormatIdc           (CHROMA_420)
    21782178, m_uiMaxTLayers              (  1)
    2179 #if R0279_REP_FORMAT_INBL
    2180 , m_bV1CompatibleSPSFlag      (  0)
    2181 #endif
    21822179// Structure
    21832180, m_picWidthInLumaSamples     (352)
     
    22172214, m_layerId                   ( 0 )
    22182215, m_extensionFlag             ( false )
     2216, m_bV1CompatibleSPSFlag      (  0)
    22192217#if REPN_FORMAT_IN_VPS
    22202218, m_updateRepFormatFlag       (false)
     
    37033701  UInt retVal, layerId = getLayerId();
    37043702
    3705 #if R0279_REP_FORMAT_INBL
    37063703  if ( layerId == 0 || sps->getV1CompatibleSPSFlag() == 1 )
    37073704  {
    37083705    if( layerId == 0 && vps->getNonHEVCBaseLayerFlag() )
    3709 #else
    3710   if ( layerId == 0 )
    3711   {
    3712     if( vps->getAvcBaseLayerFlag() )
    3713 #endif
    37143706    {
    37153707      retVal = vps->getVpsRepFormat(layerId)->getPicWidthVpsInLumaSamples();
     
    37343726  UInt retVal, layerId = getLayerId();
    37353727
    3736 #if R0279_REP_FORMAT_INBL
    37373728  if ( layerId == 0 || sps->getV1CompatibleSPSFlag() == 1 )
    37383729  {
    37393730    if( layerId == 0 && vps->getNonHEVCBaseLayerFlag() )
    3740 #else
    3741   if ( layerId == 0 )
    3742   {
    3743     if( vps->getAvcBaseLayerFlag() )
    3744 #endif
    37453731    {
    37463732      retVal = vps->getVpsRepFormat(layerId)->getPicHeightVpsInLumaSamples();
     
    37743760#endif
    37753761
    3776 #if R0279_REP_FORMAT_INBL
    37773762  if ( layerId == 0 || sps->getV1CompatibleSPSFlag() == 1 )
    37783763  {
    37793764    if( layerId == 0 && vps->getNonHEVCBaseLayerFlag() )
    3780 #else
    3781   if ( layerId == 0 )
    3782   {
    3783     if( vps->getAvcBaseLayerFlag() )
    3784 #endif
    37853765    {
    37863766      retVal = vps->getVpsRepFormat(layerId)->getChromaFormatVpsIdc();
     
    38053785  UInt retVal, layerId = getLayerId();
    38063786
    3807 #if R0279_REP_FORMAT_INBL
    38083787  if ( layerId == 0 || sps->getV1CompatibleSPSFlag() == 1 )
    38093788  {
    3810 #else
    3811   if ( layerId == 0 )
    3812   {
    3813 #endif
    38143789    if( layerId == 0 && vps->getNonHEVCBaseLayerFlag() )
    38153790    {
     
    38353810  UInt retVal, layerId = getLayerId();
    38363811
    3837 #if R0279_REP_FORMAT_INBL
    38383812  if ( layerId == 0 || sps->getV1CompatibleSPSFlag() == 1 )
    38393813  {
    3840 #else
    3841   if ( layerId == 0 )
    3842   {
    3843 #endif
    38443814    if( layerId == 0 && vps->getNonHEVCBaseLayerFlag() )
    38453815    {
     
    38753845  UInt layerId = getLayerId();
    38763846
    3877 #if R0279_REP_FORMAT_INBL
    38783847  if ( layerId == 0 || sps->getV1CompatibleSPSFlag() == 1 )
    38793848  {
    38803849    if( layerId == 0 && vps->getNonHEVCBaseLayerFlag() )
    3881 #else
    3882   if ( layerId == 0 )
    3883   {
    3884     if( vps->getAvcBaseLayerFlag() )
    3885 #endif
    38863850    {
    38873851      return vps->getVpsRepFormat(layerId)->getConformanceWindowVps();
  • branches/SHM-dev/source/Lib/TLibCommon/TComSlice.h

    r1119 r1120  
    15321532  UInt        m_uiMaxTLayers;           // maximum number of temporal layers
    15331533
    1534 #if R0279_REP_FORMAT_INBL
    1535   Bool        m_bV1CompatibleSPSFlag;
    1536 #endif
    1537 
    15381534  // Structure
    15391535  UInt        m_picWidthInLumaSamples;
     
    16121608  UInt        m_layerId;
    16131609  Bool        m_extensionFlag;
     1610  Bool        m_bV1CompatibleSPSFlag;
    16141611  UInt        m_numScaledRefLayerOffsets;
    16151612  Bool        m_multiLayerExtSpsFlag;
     
    16441641  static Int getWinUnitX (Int chromaFormatIdc) { assert (chromaFormatIdc >= 0 && chromaFormatIdc <= MAX_CHROMA_FORMAT_IDC); return m_winUnitX[chromaFormatIdc];      }
    16451642  static Int getWinUnitY (Int chromaFormatIdc) { assert (chromaFormatIdc >= 0 && chromaFormatIdc <= MAX_CHROMA_FORMAT_IDC); return m_winUnitY[chromaFormatIdc];      }
    1646 
    1647 #if R0279_REP_FORMAT_INBL //These two functions shall be used / called when the syntax element sps_ext_or_max_sub_layers_minus1 and V1CompatibleSPSFlag are implemented
    1648   Bool getV1CompatibleSPSFlag()        {return m_bV1CompatibleSPSFlag;}
    1649   Void setV1CompatibleSPSFlag(Bool x)       { m_bV1CompatibleSPSFlag = x;}
    1650 #endif
    16511643
    16521644  // structure
     
    17871779  Bool     getMultiLayerExtSpsFlag()                { return m_multiLayerExtSpsFlag; }
    17881780  Void     setMultiLayerExtSpsFlag(Bool flag)       { m_multiLayerExtSpsFlag = flag; }
     1781
     1782  //These two functions shall be used / called when the syntax element sps_ext_or_max_sub_layers_minus1 and V1CompatibleSPSFlag are implemented
     1783  Bool getV1CompatibleSPSFlag()                     { return m_bV1CompatibleSPSFlag; }
     1784  Void setV1CompatibleSPSFlag(Bool x)               { m_bV1CompatibleSPSFlag = x;    }
     1785
    17891786#if R0042_PROFILE_INDICATION
    17901787  Int      getNumDirectRefLayers()                  { return  m_NumDirectRefLayers;  }
  • branches/SHM-dev/source/Lib/TLibCommon/TypeDef.h

    r1119 r1120  
    6868#define R0226_CONSTRAINT_TMVP_SEI        1      ///< JCTVC-R0226, Modification to semantics in temporal motion vector prediction constraints SEI message
    6969#define R0226_SLICE_TMVP                 1      ///< JCTVC-R0226, Regarding slice_temporal_mvp_enabled_flag
    70 #define R0279_REP_FORMAT_INBL            1      ///< JCTVC-R0279, For any independent non-base layer the used representation format is the one that is signalled in the active SPS for the layer
    7170#define R0227_VUI_BSP_HRD_FLAG           1      ///< JCTVC-R0227, Conformance checking such that VPS VUI HRD only present if VPS timing info is signalled
    7271#define R0227_REP_FORMAT_CONSTRAINT      1      ///< JCTVC-R0227, Conformance checking such that representation format of a particular layer shall not be greater than the one defined in VPS for that layer
Note: See TracChangeset for help on using the changeset viewer.