Changeset 1176 in SHVCSoftware for branches/SHM-dev/source/Lib/TLibCommon


Ignore:
Timestamp:
8 Jul 2015, 02:33:56 (11 years ago)
Author:
seregin
Message:

macro cleanup: VPS_VUI_WPP_NOT_IN_USEFLAG, VPS_VUI_TILES_NOT_IN_USEFLAG

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

Legend:

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

    r1173 r1176  
    20232023    }
    20242024  }
    2025 #if VPS_VUI_TILES_NOT_IN_USE__FLAG
     2025
    20262026  m_tilesNotInUseFlag = true;
     2027  m_wppNotInUseFlag = true;
    20272028  ::memset(m_tilesInUseFlag,  0, sizeof(m_tilesInUseFlag));
    20282029  ::memset(m_loopFilterNotAcrossTilesFlag,  0, sizeof(m_loopFilterNotAcrossTilesFlag));
    2029 #endif
    20302030  ::memset(m_tileBoundariesAlignedFlag,  0, sizeof(m_tileBoundariesAlignedFlag));
    2031 #if VPS_VUI_WPP_NOT_IN_USE__FLAG
    2032   m_wppNotInUseFlag = true;
    20332031  ::memset(m_wppInUseFlag,  0, sizeof(m_wppInUseFlag));
    2034 #endif
    20352032
    20362033  m_ilpRestrictedRefLayersFlag = false;
     
    31513148}
    31523149#endif
    3153 #if VPS_VUI_TILES_NOT_IN_USE__FLAG
     3150
    31543151Void TComVPS::setTilesNotInUseFlag(Bool x)
    31553152{
    31563153  m_tilesNotInUseFlag = x;
    3157   if (m_tilesNotInUseFlag)
    3158   {
    3159     for (int i = 0; i < getMaxLayers(); i++)
     3154
     3155  if( m_tilesNotInUseFlag )
     3156  {
     3157    for( Int i = 0; i < getMaxLayers(); i++ )
    31603158    {
    31613159      m_tilesInUseFlag[i] = m_loopFilterNotAcrossTilesFlag[i] = m_tilesNotInUseFlag;
    31623160    }
    3163   }
    3164 
    3165   if (m_tilesNotInUseFlag)
    3166   {
    3167     for (int i = 1; i < getMaxLayers(); i++)
    3168     {
    3169       for(int j = 0; j < getNumDirectRefLayers(getLayerIdInNuh(i)); j++)
     3161 
     3162    for( Int i = 1; i < getMaxLayers(); i++ )
     3163    {
     3164      for( Int j = 0; j < getNumDirectRefLayers(getLayerIdInNuh(i)); j++)
    31703165      {
    31713166        setTileBoundariesAlignedFlag(i, j, m_tilesNotInUseFlag);
     
    31743169  }
    31753170}
    3176 #endif
    3177 
    3178 #if VPS_VUI_WPP_NOT_IN_USE__FLAG
     3171
    31793172Void TComVPS::setWppNotInUseFlag(Bool x)
    31803173{
    31813174  m_wppNotInUseFlag = x;
    3182   if (m_wppNotInUseFlag)
    3183   {
    3184     for (int i = 0; i < getMaxLayers(); i++)
     3175
     3176  if( m_wppNotInUseFlag )
     3177  {
     3178    for( Int i = 0; i < getMaxLayers(); i++ )
    31853179    {
    31863180      m_wppInUseFlag[i] = m_wppNotInUseFlag;
     
    31883182  }
    31893183}
    3190 #endif
    31913184
    31923185Void TComVPS::setRefLayersFlags(Int currLayerId)
  • branches/SHM-dev/source/Lib/TLibCommon/TComSlice.h

    r1174 r1176  
    658658  Bool       m_singleLayerForNonIrapFlag;
    659659  Bool       m_higherLayerIrapSkipFlag;
    660 #if VPS_VUI_TILES_NOT_IN_USE__FLAG
    661660  Bool       m_tilesNotInUseFlag;
    662661  Bool       m_tilesInUseFlag[MAX_VPS_LAYER_IDX_PLUS1];
    663662  Bool       m_loopFilterNotAcrossTilesFlag[MAX_VPS_LAYER_IDX_PLUS1];
    664 #endif
    665663  Bool       m_tileBoundariesAlignedFlag[MAX_VPS_LAYER_IDX_PLUS1][MAX_VPS_LAYER_IDX_PLUS1];
    666 #if VPS_VUI_WPP_NOT_IN_USE__FLAG
    667664  Bool       m_wppNotInUseFlag;
    668665  Bool       m_wppInUseFlag[MAX_VPS_LAYER_IDX_PLUS1];
    669 #endif
    670666
    671667  Bool       m_ilpRestrictedRefLayersFlag;
     
    10181014  Bool   getHigherLayerIrapSkipFlag()                                           { return m_higherLayerIrapSkipFlag;              }
    10191015  Void   setHigherLayerIrapSkipFlag(Bool x)                                     { m_higherLayerIrapSkipFlag = x;                 }
    1020 #if VPS_VUI_TILES_NOT_IN_USE__FLAG 
    1021   Bool   getTilesNotInUseFlag()         { return m_tilesNotInUseFlag; }
     1016
     1017  Bool   getTilesNotInUseFlag()                                                  { return m_tilesNotInUseFlag; }
    10221018  Void   setTilesNotInUseFlag(Bool x);
    1023   Bool   getTilesInUseFlag(Int currLayerId)    { return m_tilesInUseFlag[currLayerId]; }
    1024   Void   setTilesInUseFlag(Int currLayerId, Bool x)    { m_tilesInUseFlag[currLayerId] = x; }
    1025   Bool   getLoopFilterNotAcrossTilesFlag(Int currLayerId)    { return m_loopFilterNotAcrossTilesFlag[currLayerId]; }
    1026   Void   setLoopFilterNotAcrossTilesFlag(Int currLayerId, Bool x)    { m_loopFilterNotAcrossTilesFlag[currLayerId] = x; }
    1027 #endif
     1019  Bool   getTilesInUseFlag(Int currLayerId)                                      { return m_tilesInUseFlag[currLayerId]; }
     1020  Void   setTilesInUseFlag(Int currLayerId, Bool x)                              { m_tilesInUseFlag[currLayerId] = x; }
     1021  Bool   getLoopFilterNotAcrossTilesFlag(Int currLayerId)                        { return m_loopFilterNotAcrossTilesFlag[currLayerId]; }
     1022  Void   setLoopFilterNotAcrossTilesFlag(Int currLayerId, Bool x)                { m_loopFilterNotAcrossTilesFlag[currLayerId] = x; }
    10281023  Bool   getTileBoundariesAlignedFlag(Int currLayerId, Int refLayerId)           { return m_tileBoundariesAlignedFlag[currLayerId][refLayerId]; }
    10291024  Void   setTileBoundariesAlignedFlag(Int currLayerId, Int refLayerId, Bool x)   { m_tileBoundariesAlignedFlag[currLayerId][refLayerId] = x; }
    1030 #if VPS_VUI_WPP_NOT_IN_USE__FLAG 
    1031   Bool   getWppNotInUseFlag()         { return m_wppNotInUseFlag; }
     1025  Bool   getWppNotInUseFlag()                                                    { return m_wppNotInUseFlag; }
    10321026  Void   setWppNotInUseFlag(Bool x);
    1033   Bool   getWppInUseFlag(Int currLayerId)    { return m_wppInUseFlag[currLayerId]; }
    1034   Void   setWppInUseFlag(Int currLayerId, Bool x)    { m_wppInUseFlag[currLayerId] = x; }
    1035 #endif
     1027  Bool   getWppInUseFlag(Int currLayerId)                                        { return m_wppInUseFlag[currLayerId]; }
     1028  Void   setWppInUseFlag(Int currLayerId, Bool x)                                { m_wppInUseFlag[currLayerId] = x; }
    10361029
    10371030  Bool   getIlpRestrictedRefLayersFlag  ( )                                            { return m_ilpRestrictedRefLayersFlag;}
  • branches/SHM-dev/source/Lib/TLibCommon/TypeDef.h

    r1175 r1176  
    107107#define P0297_VPS_POC_LSB_ALIGNED_FLAG   1      ///< JCTVC-P0297: vps_poc_lsb_aligned_flag for cross-layer POC anchor picture derivation
    108108
    109 #define VPS_VUI_TILES_NOT_IN_USE__FLAG   1      ///< JCTVC-O0226: VPS VUI flag to indicate tile not in use
    110 #define VPS_VUI_WPP_NOT_IN_USE__FLAG     1      ///< JCTVC-O0226: VPS VUI flag to indicate tile not in use
    111 
    112109#define AVC_BASE                         1      ///< YUV BL reading for AVC base SVC
    113110
Note: See TracChangeset for help on using the changeset viewer.