mirror of
https://github.com/ultravideo/uvg266.git
synced 2024-11-27 19:24:06 +00:00
Set lcu sqrt lambda according to lcu lambda instead of frame lambda when ROI is used
This commit is contained in:
parent
081d16fc33
commit
c6da839002
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue