shithub: libvpx

Download patch

ref: 18d260d13f2be7ff1c5bc7b75edc3ab2b917cf83
parent: 15389ab11d1001749ea796e0c86b345555703d15
author: Marco Paniconi <marpan@google.com>
date: Thu Dec 13 14:33:11 EST 2018

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

--- a/vp8/common/postproc.c
+++ b/vp8/common/postproc.c
@@ -325,7 +325,7 @@
   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);