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/TLibEncoder/TEncPic.cpp

    r1290 r1502  
    128128{
    129129  TComPic::create( vps, sps, pps, bIsVirtual, layerId );
    130 
    131   const Int iWidth  = vps.getPicWidthInLumaSamples(&sps, layerId);
    132   const Int iHeight = vps.getPicHeightInLumaSamples(&sps, layerId);
    133130#else
    134131Void TEncPic::create( const TComSPS &sps, const TComPPS &pps, UInt uiMaxAdaptiveQPDepth, Bool bIsVirtual )
    135132{
    136133  TComPic::create( sps, pps, bIsVirtual );
     134#endif
    137135  const Int  iWidth      = sps.getPicWidthInLumaSamples();
    138136  const Int  iHeight     = sps.getPicHeightInLumaSamples();
    139 #endif
    140 
    141137  const UInt uiMaxWidth  = sps.getMaxCUWidth();
    142138  const UInt uiMaxHeight = sps.getMaxCUHeight();
Note: See TracChangeset for help on using the changeset viewer.