Skip to content
Snippets Groups Projects
Commit c81b8ade authored by Xiang Li's avatar Xiang Li
Browse files

Merge branch 'JVET-O0256-SW' into 'master'

JVET-O0256: Non-CE: Fast encoder with adjusted threshold in dependent quantization

See merge request !695
parents 21f6018a 4bfa9953
No related branches found
No related tags found
No related merge requests found
...@@ -690,7 +690,11 @@ namespace DQIntern ...@@ -690,7 +690,11 @@ namespace DQIntern
m_QScale = g_quantScales[needsSqrt2ScaleAdjustment?1:0][ qpRem ]; m_QScale = g_quantScales[needsSqrt2ScaleAdjustment?1:0][ qpRem ];
const unsigned qIdxBD = std::min<unsigned>( maxLog2TrDynamicRange + 1, 8*sizeof(Intermediate_Int) + invShift - IQUANT_SHIFT - 1 ); const unsigned qIdxBD = std::min<unsigned>( maxLog2TrDynamicRange + 1, 8*sizeof(Intermediate_Int) + invShift - IQUANT_SHIFT - 1 );
m_maxQIdx = ( 1 << (qIdxBD-1) ) - 4; m_maxQIdx = ( 1 << (qIdxBD-1) ) - 4;
#if JVET_O0256_ADJUST_THD_DEPQUANT
m_thresLast = TCoeff((int64_t(4) << m_QShift));
#else
m_thresLast = TCoeff((int64_t(3) << m_QShift)); m_thresLast = TCoeff((int64_t(3) << m_QShift));
#endif
m_thresSSbb = TCoeff((int64_t(3) << m_QShift)); m_thresSSbb = TCoeff((int64_t(3) << m_QShift));
// distortion calculation parameters // distortion calculation parameters
const int64_t qScale = (gValue==-1) ? m_QScale : gValue; const int64_t qScale = (gValue==-1) ? m_QScale : gValue;
......
...@@ -54,6 +54,8 @@ ...@@ -54,6 +54,8 @@
#define JVET_O0216_ALF_COEFF_EG3 1 // JVET-O0216/O0302/O0648: using EG3 for ALF coefficients coding #define JVET_O0216_ALF_COEFF_EG3 1 // JVET-O0216/O0302/O0648: using EG3 for ALF coefficients coding
#define JVET_O0256_ADJUST_THD_DEPQUANT 1 // JVET-O0256: Fast encoder with adjusted threshold in dependent quantization
#define JVET_O0272_LMCS_SIMP_INVERSE_MAPPING 1 // JVET-O0272: LMCS simplified inverse mapping #define JVET_O0272_LMCS_SIMP_INVERSE_MAPPING 1 // JVET-O0272: LMCS simplified inverse mapping
#define JVET_O0247_ALF_CTB_CODING_REDUNDANCY_REMOVAL 1 // JVET-O0247: not signal APS index when number APS is 2 #define JVET_O0247_ALF_CTB_CODING_REDUNDANCY_REMOVAL 1 // JVET-O0247: not signal APS index when number APS is 2
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment