vp9: Initialize source variance in nonrd-pickmode.
authorMarco Paniconi <marpan@google.com>
Tue, 10 Jul 2018 17:02:21 +0000 (10:02 -0700)
committerMarco Paniconi <marpan@google.com>
Tue, 10 Jul 2018 17:06:22 +0000 (10:06 -0700)
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

vp9/encoder/vp9_pickmode.c

index 16f7679878b4f441eb69382f092b3261c646f5ef..035e5ab9069e738b63b8a3f53ee65240e0f2f88e 100644 (file)
@@ -1518,6 +1518,7 @@ void vp9_pick_inter_mode(VP9_COMP *cpi, MACROBLOCK *x, TileDataEnc *tile_data,
   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;