shithub: libvpx

Download patch

ref: 51f4f9257d74659392acd735e6a1eb073e858bf9
parent: cdba956e1ba4c9d7ce3ba65b6dcefd9496acc91d
author: Marco Paniconi <marpan@google.com>
date: Tue Jul 10 06:02:21 EDT 2018

vp9: Initialize source variance in nonrd-pickmode.

It is already initialized at superblock level, but since
it is computed per coding block, based on some speed features,
better to initialize it in pick_inter.

No change in behavior, as currently the speed features
that enable use of source_variance in pick_inter are fixed
at the frame-level.

Change-Id: Ic787ac2f389ba1bced98716096e7b5cffba856a7

--- a/vp9/encoder/vp9_pickmode.c
+++ b/vp9/encoder/vp9_pickmode.c
@@ -1518,6 +1518,7 @@
   int svc_mv_row = 0;
   int no_scaling = 0;
   unsigned int thresh_svc_skip_golden = 500;
+  x->source_variance = UINT_MAX;
   if (cpi->sf.default_interp_filter == BILINEAR) {
     best_pred_filter = BILINEAR;
     filter_gf_svc = BILINEAR;