From: Ravi Chaudhary Date: Wed, 22 May 2019 04:46:30 +0000 (+0530) Subject: Start with q=active_best_quality for non-forced key frames X-Git-Tag: v1.8.1~17^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7f8ff8e377a87aa5878efce60db13d8eb6440750;p=libvpx Start with q=active_best_quality for non-forced key frames Change-Id: I435d247ab4d1d160f12f5a3710e6cafb5cfd6610 --- 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);