Ticket #191: JVET_M0427_INIT_FIX.patch

File JVET_M0427_INIT_FIX.patch, 1.8 KB (added by tobias.hinz, 6 years ago)

patch file that fixes the issue

  • source/Lib/CommonLib/RdCost.cpp

     
    177177  m_motionLambda               = 0;
    178178  m_iCostScale                 = 0;
    179179#if JVET_M0427_INLOOP_RESHAPER
     180#if ! JVET_M0427_INIT_FIX
    180181  m_signalType                 = RESHAPE_SIGNAL_NULL;
    181182  m_chromaWeight               = 1.0;
    182183  m_lumaBD                     = 10;
    183184#endif
     185#endif
    184186}
    185187
    186188
     
    28682870
    28692871#if WCG_EXT
    28702872#if JVET_M0427_INLOOP_RESHAPER
     2873#if JVET_M0427_INIT_FIX
     2874  uint32_t   RdCost::m_signalType                 = RESHAPE_SIGNAL_NULL;
     2875  double     RdCost::m_chromaWeight               = 1.0;
     2876  int        RdCost::m_lumaBD                     = 10;
     2877#else
    28712878uint32_t   RdCost::m_signalType;
    28722879double     RdCost::m_chromaWeight;
    28732880int        RdCost::m_lumaBD;
     2881#endif
    28742882std::vector<double> RdCost::m_reshapeLumaLevelToWeightPLUT;
    28752883std::vector<double> RdCost::m_lumaLevelToWeightPLUT;
    28762884#else
     
    29282936      m_lumaLevelToWeightPLUT[i] = m_reshapeLumaLevelToWeightPLUT[i];
    29292937    }
    29302938  }
     2939  m_chromaWeight = 1.0;
    29312940}
    29322941
    29332942void RdCost::updateReshapeLumaLevelToWeightTableChromaMD(std::vector<Pel>& ILUT)
  • source/Lib/CommonLib/TypeDef.h

     
    5050#include <assert.h>
    5151#include <cassert>
    5252
     53#define JVET_M0427_INIT_FIX                               1
     54
    5355#define JVET_M0055_DEBUG_CTU                              1 // DebugCTU encoder debug option
    5456
    5557#define JVET_M0297_32PT_MTS_ZERO_OUT                      1 // 32 point MTS based on skipping high frequency coefficients