ref: b2f29a9a716b119c2297befeb2e119202a259c41
parent: af3630eef4e7e7dd13a69a6762d4ab715cd3842c
author: Marco Paniconi <marpan@google.com>
date: Tue Apr 9 05:56:24 EDT 2019
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
--- a/vp9/encoder/vp9_ratectrl.c
+++ b/vp9/encoder/vp9_ratectrl.c
@@ -1027,6 +1027,7 @@
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