Set lcu sqrt lambda according to lcu lambda instead of frame lambda when ROI is used

This commit is contained in:
Ari Lemmetti 2019-05-29 15:40:27 +03:00
parent 081d16fc33
commit c6da839002

View file

@ -293,7 +293,7 @@ void kvz_set_lcu_lambda_and_qp(encoder_state_t * const state,
int dqp = ctrl->cfg.roi.dqps[roi_index];
state->qp = CLIP_TO_QP(state->frame->QP + dqp);
state->lambda = qp_to_lamba(state, state->qp);
state->lambda_sqrt = sqrt(state->frame->lambda);
state->lambda_sqrt = sqrt(state->lambda);
} else if (ctrl->cfg.target_bitrate > 0) {
lcu_stats_t *lcu = kvz_get_lcu_stats(state, pos.x, pos.y);