Ticket #1422: ticket_1422.patch

File ticket_1422.patch, 1.0 KB (added by Vadim, 9 years ago)
  • Lib/TLibCommon/TypeDef.h

     
    4545#include <vector>
    4646#include <cstdlib>
    4747
     48#define FIX_PLT_CHROMA_ADJ             1
     49
    4850//! \ingroup TLibCommon
    4951//! \{
    5052
  • Lib/TLibEncoder/TEncCu.cpp

     
    32333233  rpcTempCU->setPredModeSubParts( MODE_INTRA, 0, uiDepth );
    32343234  rpcTempCU->setTrIdxSubParts ( 0, 0, uiDepth );
    32353235  rpcTempCU->setPLTModeFlagSubParts(true, 0, rpcTempCU->getDepth(0));
     3236#if FIX_PLT_CHROMA_ADJ
     3237  rpcTempCU->setChromaQpAdjSubParts( rpcTempCU->getCUTransquantBypass(0) ? 0 : m_cuChromaQpOffsetIdxPlus1, 0, uiDepth );
     3238#endif
    32363239
    32373240#if SCM_U0096_PLT_ENCODER_IMPROVEMENT
    32383241  UInt testedModes=m_pcPredSearch->PLTSearch(rpcTempCU, m_ppcOrigYuv[uiDepth], m_ppcPredYuvTemp[uiDepth], m_ppcResiYuvTemp[uiDepth],