diff options
author | Marco Paniconi <marpan@google.com> | 2019-04-09 09:56:24 -0700 |
---|---|---|
committer | Marco Paniconi <marpan@google.com> | 2019-04-09 10:06:20 -0700 |
commit | b2f29a9a716b119c2297befeb2e119202a259c41 (patch) | |
tree | 8124de32c048f5c569d58a8199eada13ac8089cb /vp9 | |
parent | af3630eef4e7e7dd13a69a6762d4ab715cd3842c (diff) | |
download | libvpx-b2f29a9a716b119c2297befeb2e119202a259c41.tar libvpx-b2f29a9a716b119c2297befeb2e119202a259c41.tar.gz libvpx-b2f29a9a716b119c2297befeb2e119202a259c41.tar.bz2 libvpx-b2f29a9a716b119c2297befeb2e119202a259c41.zip |
vp9-rtc: Fix to active_best for non-SVC
For 1 pass CBR non-SVC encoding, on golden refresh:
condition lower/boosted active_best_quality setting
only if gf_cbr_boost_pct is set.
Reduces overshoot for hard clips.
Neutral change on rtc metrics.
Change-Id: I10f7e27767a3f80d63958a7e137155f7bc20504b
Diffstat (limited to 'vp9')
-rw-r--r-- | vp9/encoder/vp9_ratectrl.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/vp9/encoder/vp9_ratectrl.c b/vp9/encoder/vp9_ratectrl.c index 23d586f43..793171547 100644 --- a/vp9/encoder/vp9_ratectrl.c +++ b/vp9/encoder/vp9_ratectrl.c @@ -1027,6 +1027,7 @@ static int rc_pick_q_and_bounds_one_pass_cbr(const VP9_COMP *cpi, vp9_compute_qdelta(rc, q_val, q_val * q_adj_factor, cm->bit_depth); } } else if (!rc->is_src_frame_alt_ref && !cpi->use_svc && + cpi->oxcf.gf_cbr_boost_pct && (cpi->refresh_golden_frame || cpi->refresh_alt_ref_frame)) { // Use the lower of active_worst_quality and recent // average Q as basis for GF/ARF best Q limit unless last frame was |