]> granicus.if.org Git - libvpx/commitdiff
vp8-mfqe: Increase initial frame# threshold
authorMarco Paniconi <marpan@google.com>
Fri, 14 Dec 2018 03:33:11 +0000 (19:33 -0800)
committerMarco Paniconi <marpan@google.com>
Fri, 14 Dec 2018 03:38:29 +0000 (19:38 -0800)
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

index 8c292d6161dd30e591082ac4e86b6b9d038a3a48..1ff2e5cc5b32c1036d8d7e5ae9bc28a6852ae60b 100644 (file)
@@ -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);