Changeset 1499 in SHVCSoftware for branches/SHM-dev


Ignore:
Timestamp:
9 Dec 2015, 18:45:39 (9 years ago)
Author:
seregin
Message:

update get chroma format idc, patched-by Guillaume Barroux<guillaume.b@…>

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

Legend:

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

    r1316 r1499  
    4747
    4848TComTU::TComTU(TComDataCU *pcCU, const UInt absPartIdxCU, const UInt cuDepth, const UInt initTrDepthRelCU)
     49#if SCALABLE_REXT
     50  : mChromaFormat(pcCU->getSlice()->getChromaFormatIdc()),
     51#else
    4952  : mChromaFormat(pcCU->getSlice()->getSPS()->getChromaFormatIdc()),
     53#endif
    5054    mbProcessLastOfLevel(true), // does not matter. the top level is not 4 quadrants.
    5155    mCuDepth(cuDepth),
  • branches/SHM-dev/source/Lib/TLibDecoder/TDecCAVLC.cpp

    r1498 r1499  
    12251225#endif
    12261226
     1227#if SCALABLE_REXT
     1228  const ChromaFormat chFmt = pcSlice->getChromaFormatIdc();
     1229#else
    12271230  const ChromaFormat chFmt = sps->getChromaFormatIdc();
     1231#endif
    12281232  const UInt numValidComp=getNumberValidComponents(chFmt);
    12291233  const Bool bChroma=(chFmt!=CHROMA_400);
     
    24252429{
    24262430        WPScalingParam *wp;
     2431#if SCALABLE_REXT
     2432  const ChromaFormat    chFmt        = pcSlice->getChromaFormatIdc();
     2433#else
    24272434  const ChromaFormat    chFmt        = sps->getChromaFormatIdc();
     2435#endif
    24282436  const Int             numValidComp = Int(getNumberValidComponents(chFmt));
    24292437  const Bool            bChroma      = (chFmt!=CHROMA_400);
  • branches/SHM-dev/source/Lib/TLibDecoder/TDecTop.cpp

    r1495 r1499  
    633633#endif
    634634    m_cLoopFilter.create( sps->getMaxTotalCUDepth() );
     635#if SCALABLE_REXT
     636    m_cPrediction.initTempBuff(pSlice->getChromaFormatIdc());
     637#else
    635638    m_cPrediction.initTempBuff(sps->getChromaFormatIdc());
     639#endif
    636640
    637641
Note: See TracChangeset for help on using the changeset viewer.