Commit f7dae8c0 authored by Karsten Suehring's avatar Karsten Suehring
Browse files

apply bug fix for mapping from luma level to delta QP (as reported during JEM integration)

parent bb16e3fe
......@@ -484,7 +484,7 @@ Void TEncCu::xCompressCU( TComDataCU*& rpcBestCU, TComDataCU*& rpcTempCU, const
// keep using the same m_QP_LUMA_OFFSET in the same CTU
m_lumaQPOffset = calculateLumaDQP(rpcTempCU, 0, m_ppcOrigYuv[uiDepth]);
}
iMinQP = iBaseQP - m_lumaQPOffset;
iMinQP = Clip3(-sps.getQpBDOffset(CHANNEL_TYPE_LUMA), MAX_QP, iBaseQP - m_lumaQPOffset);
iMaxQP = iMinQP; // force encode choose the modified QO
}
......@@ -812,7 +812,7 @@ Void TEncCu::xCompressCU( TComDataCU*& rpcBestCU, TComDataCU*& rpcTempCU, const
if ( m_pcEncCfg->getLumaLevelToDeltaQPMapping().isEnabled() )
{
iMinQP = iBaseQP - m_lumaQPOffset;
iMinQP = Clip3(-sps.getQpBDOffset(CHANNEL_TYPE_LUMA), MAX_QP, iBaseQP - m_lumaQPOffset);
iMaxQP = iMinQP;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment