Changeset 1223 in SHVCSoftware for branches/SHM-dev


Ignore:
Timestamp:
9 Jul 2015, 00:08:52 (9 years ago)
Author:
seregin
Message:

macro cleanup: SCALINGLIST_INFERRING

Location:
branches/SHM-dev/source/Lib
Files:
9 edited

Legend:

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

    r1222 r1223  
    21002100, m_updateRepFormatFlag       (false)
    21012101, m_updateRepFormatIndex      (0)
    2102 #if SCALINGLIST_INFERRING
    2103 , m_inferScalingListFlag ( false )
    2104 , m_scalingListRefLayerId ( 0 )
    2105 #endif
     2102, m_inferScalingListFlag      ( false )
     2103, m_scalingListRefLayerId     ( 0 )
    21062104#endif //SVC_EXTENSION
    21072105{
     
    21322130TComSPS::~TComSPS()
    21332131{
    2134 #if SCALINGLIST_INFERRING
     2132#if SVC_EXTENSION
    21352133  if( !m_inferScalingListFlag )
    21362134#endif
     
    22992297#if SVC_EXTENSION
    23002298, m_extensionFlag(false)
    2301 #if SCALINGLIST_INFERRING
    23022299, m_layerId(0)
    23032300, m_inferScalingListFlag ( false )
    23042301, m_scalingListRefLayerId ( 0 )
    2305 #endif
    23062302, m_pocResetInfoPresentFlag   (false)
    23072303, m_numRefLayerLocationOffsets  ( 0 )
     
    23342330TComPPS::~TComPPS()
    23352331{
    2336 #if SCALINGLIST_INFERRING
     2332#if SVC_EXTENSION
    23372333  if( !m_inferScalingListFlag )
    23382334#endif
  • branches/SHM-dev/source/Lib/TLibCommon/TComSlice.h

    r1212 r1223  
    13751375  Bool        m_updateRepFormatFlag;
    13761376  UInt        m_updateRepFormatIndex;
    1377 #if SCALINGLIST_INFERRING
    13781377  Bool        m_inferScalingListFlag;
    13791378  UInt        m_scalingListRefLayerId;
    1380 #endif
    13811379#endif //SVC_EXTENSION
    13821380
     
    15081506  Void setScalingListPresentFlag( Bool b ) { m_scalingListPresentFlag  = b;       }
    15091507
    1510 #if SCALINGLIST_INFERRING
     1508#if SVC_EXTENSION
    15111509  Void setScalingList( TComScalingList *scalingList ) { m_scalingList = scalingList; }
    15121510#else
     
    15471545  Int      getUpdateRepFormatIndex()                { return m_updateRepFormatIndex;  }
    15481546  Void     setUpdateRepFormatIndex(UInt index)      { m_updateRepFormatIndex = index; }
    1549 #if SCALINGLIST_INFERRING
    15501547  Bool     getInferScalingListFlag()                { return m_inferScalingListFlag;  }
    15511548  UInt     getScalingListRefLayerId()               { return m_scalingListRefLayerId; }
    15521549  Void     setInferScalingListFlag( Bool flag )     { m_inferScalingListFlag = flag;     }
    15531550  Void     setScalingListRefLayerId( UInt layerId ) { m_scalingListRefLayerId = layerId; }
    1554 #endif
    15551551#endif //SVC_EXTENSION
    15561552};
     
    16521648#if SVC_EXTENSION
    16531649  Bool     m_extensionFlag;
    1654 #if SCALINGLIST_INFERRING
    16551650  UInt     m_layerId;
    16561651  Bool     m_inferScalingListFlag;
    16571652  UInt     m_scalingListRefLayerId;
    1658 #endif
    16591653  Bool     m_pocResetInfoPresentFlag;
    16601654  UInt     m_numRefLayerLocationOffsets;
     
    17871781  Void     setScalingListPresentFlag( Bool b ) { m_scalingListPresentFlag  = b;       }
    17881782
    1789 #if SCALINGLIST_INFERRING
     1783#if SVC_EXTENSION
    17901784  Void     setScalingList( TComScalingList *scalingList ) { m_scalingList = scalingList; }
    17911785#else
     
    18061800  Int     getExtensionFlag()                                  { return m_extensionFlag;  }
    18071801  Void    setExtensionFlag(Int n)                             { m_extensionFlag = n;     }
    1808 #if SCALINGLIST_INFERRING
    18091802  UInt     getLayerId()                                       { return m_layerId; }
    18101803  Void     setLayerId( UInt layerId )                         { m_layerId = layerId;            }
     
    18131806  Void     setInferScalingListFlag( Bool flag )               { m_inferScalingListFlag = flag;     }
    18141807  Void     setScalingListRefLayerId( UInt layerId )           { m_scalingListRefLayerId = layerId; }
    1815 #endif
    18161808  Bool     getPocResetInfoPresentFlag()                       { return m_pocResetInfoPresentFlag; }
    18171809  Void     setPocResetInfoPresentFlag(const Bool val)         { m_pocResetInfoPresentFlag = val;  }
  • branches/SHM-dev/source/Lib/TLibCommon/TypeDef.h

    r1222 r1223  
    5656#endif
    5757
    58 #define SCALINGLIST_INFERRING            1      ///< JCTVC-N0371: inter-layer scaling list
    59 
    6058#define AVC_BASE                         1      ///< YUV BL reading for AVC base SVC
    6159#define SVC_POC                          1      ///< POC signalling and reset
  • branches/SHM-dev/source/Lib/TLibDecoder/TDecCAVLC.cpp

    r1217 r1223  
    397397            pcPPS->setPocResetInfoPresentFlag(uiCode ? true : false);
    398398
    399 #if SCALINGLIST_INFERRING
    400399            READ_FLAG( uiCode, "pps_infer_scaling_list_flag" );
    401400            pcPPS->setInferScalingListFlag( uiCode );
     
    409408              pcPPS->setScalingListPresentFlag( false );
    410409            }
    411 #endif
    412410
    413411            READ_UVLC( uiCode,      "num_ref_loc_offsets" ); pcPPS->setNumRefLayerLocationOffsets(uiCode);
  • branches/SHM-dev/source/Lib/TLibDecoder/TDecTop.cpp

    r1220 r1223  
    460460
    461461#if SVC_EXTENSION
    462 #if SCALINGLIST_INFERRING
    463462  // scaling list settings and checks
    464463  TComVPS *activeVPS = m_parameterSetManagerDecoder.getActiveVPS();
     
    524523
    525524  }
    526 #endif
    527525
    528526#if AVC_BASE
     
    17961794    pcSlice->setScalingList ( pcSlice->getSPS()->getScalingList()  );
    17971795
    1798 #if SCALINGLIST_INFERRING
     1796#if SVC_EXTENSION
    17991797    if( pcSlice->getPPS()->getScalingListPresentFlag() || pcSlice->getPPS()->getInferScalingListFlag() )
    18001798#else
     
    18041802      pcSlice->setScalingList ( pcSlice->getPPS()->getScalingList()  );
    18051803    }
    1806 #if SCALINGLIST_INFERRING
     1804
     1805#if SVC_EXTENSION
    18071806    if( m_layerId == 0 || ( m_layerId > 0 && !pcSlice->getPPS()->getInferScalingListFlag() && !pcSlice->getSPS()->getInferScalingListFlag() ) )
    18081807#endif
     
    18661865  TComPPS* pps = new TComPPS();
    18671866
    1868 #if SCALINGLIST_INFERRING
     1867#if SVC_EXTENSION
    18691868  pps->setLayerId( m_layerId );
    18701869#endif
  • branches/SHM-dev/source/Lib/TLibDecoder/TDecTop.h

    r1220 r1223  
    250250  Void                    setCommonDecoderParams(CommonDecoderParams* x)    { m_commonDecoderParams = x;    }
    251251  Void      checkValueOfTargetOutputLayerSetIdx(TComVPS *vps);
    252 #if SCALINGLIST_INFERRING
     252
    253253  ParameterSetManagerDecoder* getParameterSetManager()                      { return &m_parameterSetManagerDecoder; }
    254 #endif
     254
    255255#if CONFORMANCE_BITSTREAM_MODE
    256256  std::vector<TComPic>* getConfListPic() {return &m_confListPic; }
  • branches/SHM-dev/source/Lib/TLibEncoder/TEncCavlc.cpp

    r1217 r1223  
    306306          case PPS_EXT__MLAYER:
    307307            WRITE_FLAG( pcPPS->getPocResetInfoPresentFlag() ? 1 : 0, "poc_reset_info_present_flag" );
    308 #if SCALINGLIST_INFERRING
     308
    309309            WRITE_FLAG( pcPPS->getInferScalingListFlag() ? 1 : 0, "pps_infer_scaling_list_flag" );
    310310            if( pcPPS->getInferScalingListFlag() )
     
    314314              WRITE_CODE( pcPPS->getScalingListRefLayerId(), 6, "pps_scaling_list_ref_layer_id" );
    315315            }
    316 #endif
    317316
    318317            WRITE_UVLC( pcPPS->getNumRefLayerLocationOffsets(),      "num_ref_loc_offsets" );
     
    644643  if(pcSPS->getScalingListFlag())
    645644  {
    646 #if SCALINGLIST_INFERRING
     645#if SVC_EXTENSION
    647646    if( !V1CompatibleSPSFlag )
    648647    {
     
    665664      codeScalingList( m_pcSlice->getScalingList() );
    666665    }
    667 #if SCALINGLIST_INFERRING
     666#if SVC_EXTENSION
    668667    }
    669668#endif
  • branches/SHM-dev/source/Lib/TLibEncoder/TEncGOP.cpp

    r1213 r1223  
    12621262    else if(m_pcEncTop->getUseScalingListId() == SCALING_LIST_DEFAULT)
    12631263    {
    1264 #if SCALINGLIST_INFERRING
     1264#if SVC_EXTENSION
    12651265      // inferring of the scaling list can be moved to the config file
    12661266      UInt refLayerId = 0;
     
    12831283      m_pcEncTop->getPPS()->setScalingListPresentFlag(false);
    12841284
    1285 #if SCALINGLIST_INFERRING
     1285#if SVC_EXTENSION
    12861286      }
    12871287#endif
     
    12921292    else if(m_pcEncTop->getUseScalingListId() == SCALING_LIST_FILE_READ)
    12931293    {
    1294 #if SCALINGLIST_INFERRING
     1294#if SVC_EXTENSION
    12951295      // inferring of the scaling list can be moved to the config file
    12961296      UInt refLayerId = 0;
     
    13201320      m_pcEncTop->getPPS()->setScalingListPresentFlag(false);
    13211321
    1322 #if SCALINGLIST_INFERRING
     1322#if SVC_EXTENSION
    13231323    }
    13241324#endif
  • branches/SHM-dev/source/Lib/TLibEncoder/TEncTop.cpp

    r1212 r1223  
    999999 
    10001000#if SVC_EXTENSION
    1001 #if SCALINGLIST_INFERRING
    10021001  m_cPPS.setLayerId( m_layerId );
    1003 #endif
    10041002
    10051003  if( !m_numDirectRefLayers && m_numAddLayerSets )
Note: See TracChangeset for help on using the changeset viewer.