From 7f8ff8e377a87aa5878efce60db13d8eb6440750 Mon Sep 17 00:00:00 2001 From: Ravi Chaudhary Date: Wed, 22 May 2019 10:16:30 +0530 Subject: [PATCH] Start with q=active_best_quality for non-forced key frames Change-Id: I435d247ab4d1d160f12f5a3710e6cafb5cfd6610 --- vp9/encoder/vp9_ratectrl.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/vp9/encoder/vp9_ratectrl.c b/vp9/encoder/vp9_ratectrl.c index a8f75b750..6745b0adf 100644 --- a/vp9/encoder/vp9_ratectrl.c +++ b/vp9/encoder/vp9_ratectrl.c @@ -1525,6 +1525,8 @@ static int rc_pick_q_and_bounds_two_pass(const VP9_COMP *cpi, int *bottom_index, } else { q = rc->last_boosted_qindex; } + } else if (frame_is_intra_only(cm) && !rc->this_key_frame_forced) { + q = active_best_quality; } else { q = vp9_rc_regulate_q(cpi, rc->this_frame_target, active_best_quality, active_worst_quality); -- 2.40.0