vp9: Change condition to enable recheck_zeromv_after_denoising.
authorMarco <marpan@google.com>
Fri, 16 Dec 2016 19:15:57 +0000 (11:15 -0800)
committerMarco <marpan@google.com>
Fri, 16 Dec 2016 23:00:21 +0000 (15:00 -0800)
For when denoising enabled: change condition to enable
the recheck_zeromv_after_denoising for only very high noise level.
This is causing an issue, so enabling it for very high noise
to effectively shut it off.

Change-Id: Ic40d6025f3f398338cedd270d17c0ccd9a3daa84

vp9/encoder/vp9_pickmode.c

index be8c573..fa4b3c3 100644 (file)
@@ -1235,7 +1235,7 @@ static void recheck_zeromv_after_denoising(
   // denoised result. Only do this under noise conditions, and if rdcost of
   // ZEROMV onoriginal source is not significantly higher than rdcost of best
   // mode.
-  if (cpi->noise_estimate.enabled && cpi->noise_estimate.level > kLow &&
+  if (cpi->noise_estimate.enabled && cpi->noise_estimate.level > kHigh &&
       ctx_den->zero_last_cost_orig < (best_rdc->rdcost << 3) &&
       ((ctx_den->best_ref_frame == INTRA_FRAME && decision >= FILTER_BLOCK) ||
        (ctx_den->best_ref_frame == GOLDEN_FRAME &&