From: Marco Paniconi Date: Tue, 10 Jul 2018 17:02:21 +0000 (-0700) Subject: vp9: Initialize source variance in nonrd-pickmode. X-Git-Tag: v1.8.0~547^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=51f4f9257d74659392acd735e6a1eb073e858bf9;p=libvpx 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 --- diff --git a/vp9/encoder/vp9_pickmode.c b/vp9/encoder/vp9_pickmode.c index 16f767987..035e5ab90 100644 --- a/vp9/encoder/vp9_pickmode.c +++ b/vp9/encoder/vp9_pickmode.c @@ -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;