ref: cafbef75bfb3a1604307bb26703fe8f333bed7b1
parent: eea06db1782b078aacfc8e5dc06e8e29710ec0ef
author: Marco Paniconi <marpan@google.com>
date: Sun Jan 26 13:06:28 EST 2020
vp9-rtc: Fix condition in regulate_q for cyclic_refresh The bits_per_mb factor from cyclic refresh does not need to be conditioned on seg_enabled, cr->apply_cyclic_refresh is sufficient. This is more correct for the case where the refresh is turned off/on dynamically. Small/neutral change in bdrate metrics. Change-Id: Ifbeda9d3e022e6b61cdefa1482d3075f076d7253
--- a/vp9/encoder/vp9_ratectrl.c
+++ b/vp9/encoder/vp9_ratectrl.c
@@ -826,8 +826,7 @@
i = active_best_quality;
do {
- if (cpi->oxcf.aq_mode == CYCLIC_REFRESH_AQ && cm->seg.enabled &&
- cr->apply_cyclic_refresh &&
+ if (cpi->oxcf.aq_mode == CYCLIC_REFRESH_AQ && cr->apply_cyclic_refresh &&
(!cpi->oxcf.gf_cbr_boost_pct || !cpi->refresh_golden_frame)) {
bits_per_mb_at_this_q =
(int)vp9_cyclic_refresh_rc_bits_per_mb(cpi, i, correction_factor);
--
⑨