Ignore:
Timestamp:
11 Dec 2015, 00:05:48 (8 years ago)
Author:
seregin
Message:

infer parameters in SPS after activation, fixing chroma scaling for non 4:2:0

File:
1 edited

Legend:

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

    r1496 r1502  
    8484Void TComPicSym::create  ( const TComVPS& vps, const TComSPS &sps, const TComPPS &pps, UInt uiMaxDepth, const UInt layerId )
    8585{
     86  m_vps = vps;
     87#else
     88Void TComPicSym::create  ( const TComSPS &sps, const TComPPS &pps, UInt uiMaxDepth )
     89{
     90#endif
    8691  UInt i;
    8792  m_sps = sps;
    8893  m_pps = pps;
    89   m_vps = vps;
    90  
    91   const ChromaFormat chromaFormatIDC = vps.getChromaFormatIdc(&sps, layerId);
    92   const Int iPicWidth  = vps.getPicWidthInLumaSamples(&sps, layerId);
    93   const Int iPicHeight = vps.getPicHeightInLumaSamples(&sps, layerId);
    94 #else
    95 Void TComPicSym::create  ( const TComSPS &sps, const TComPPS &pps, UInt uiMaxDepth )
    96 {
    97   UInt i;
    98   m_sps = sps;
    99   m_pps = pps;
    10094
    10195  const ChromaFormat chromaFormatIDC = sps.getChromaFormatIdc();
    10296  const Int iPicWidth      = sps.getPicWidthInLumaSamples();
    10397  const Int iPicHeight     = sps.getPicHeightInLumaSamples();
    104 #endif
    10598
    10699  const UInt uiMaxCuWidth  = sps.getMaxCUWidth();
Note: See TracChangeset for help on using the changeset viewer.