Skip to content
Snippets Groups Projects
Commit b7ae35d1 authored by Frank Bossen's avatar Frank Bossen
Browse files

Merge branch 'JVET-L0553-InitQPFix' into 'master'

JVET-L0553: Fix of initial QP signaling

See merge request !24
parents 8598dd55 22f91487
No related branches found
No related tags found
No related merge requests found
......@@ -50,6 +50,8 @@
#include <assert.h>
#include <cassert>
#define JVET_L0553_FIX_INITQP 1
#define JVET_L0147_ALF_SUBSAMPLED_LAPLACIAN 1 // Subsampled Laplacian calculation
#define JVET_L0191_LM_WO_LMS 1 // NO LMS regression. min/max are used instead
......
......@@ -1234,7 +1234,11 @@ void EncLib::xInitPPS(PPS &pps, const SPS &sps)
{
baseQp = getBaseQP()-26;
}
#if JVET_L0553_FIX_INITQP
const int maxDQP = 37;
#else
const int maxDQP = 25;
#endif
const int minDQP = -26 + sps.getQpBDOffset(CHANNEL_TYPE_LUMA);
pps.setPicInitQPMinus26( std::min( maxDQP, std::max( minDQP, baseQp ) ));
......
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