Skip to content
Snippets Groups Projects
Commit 179f40c6 authored by Christian Helmrich's avatar Christian Helmrich
Browse files

update R-D-cost lambda properly in case of perceptual QPA with base QP > 37

parent e02a12ed
No related branches found
No related tags found
No related merge requests found
......@@ -1525,6 +1525,12 @@ void EncSlice::encodeCtus( Picture* pcPic, const bool bCompressEntireSlice, cons
pTrQuant ->setLambda ( pcSlice->getLambdas()[0] );
#endif
pRdCost ->setLambda ( pcSlice->getLambdas()[0], pcSlice->getSPS()->getBitDepths() );
#if WCG_EXT && ER_CHROMA_QP_WCG_PPS && ENABLE_QPA
if (!pCfg->getWCGChromaQPControl().isEnabled() && pCfg->getUsePerceptQPA() && !pCfg->getUseRateCtrl())
{
pRdCost->saveUnadjustedLambda();
}
#endif
int prevQP[2];
int currQP[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