From 18d260d13f2be7ff1c5bc7b75edc3ab2b917cf83 Mon Sep 17 00:00:00 2001 From: Marco Paniconi Date: Thu, 13 Dec 2018 19:33:11 -0800 Subject: [PATCH] vp8-mfqe: Increase initial frame# threshold Increase the initial frame number threshold for the mfqe, as using the running average of last_base_qindex doesn't work well after very first frame. Only affects the very first few frames. Fixes an issue with a test. Change-Id: Ia249924257b44263e0b9f43cbff473902f08e28c --- vp8/common/postproc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vp8/common/postproc.c b/vp8/common/postproc.c index 8c292d616..1ff2e5cc5 100644 --- a/vp8/common/postproc.c +++ b/vp8/common/postproc.c @@ -325,7 +325,7 @@ int vp8_post_proc_frame(VP8_COMMON *oci, YV12_BUFFER_CONFIG *dest, vpx_clear_system_state(); if ((flags & VP8D_MFQE) && oci->postproc_state.last_frame_valid && - oci->current_video_frame >= 2 && + oci->current_video_frame > 10 && oci->postproc_state.last_base_qindex < 60 && oci->base_qindex - oci->postproc_state.last_base_qindex >= 20) { vp8_multiframe_quality_enhance(oci); -- 2.40.0