vp8 denoiser: fix to zero_mv mode selection.
authorMarco Paniconi <marpan@google.com>
Tue, 27 May 2014 23:44:17 +0000 (16:44 -0700)
committerMarco Paniconi <marpan@google.com>
Wed, 28 May 2014 18:23:52 +0000 (11:23 -0700)
commit609e91f9b7634f0fffef385cd0bccd18ab34ae92
treeded161edae37ee548ca9c478b6189407813978cf
parentdebd0485311e455e9aa4394fb0586769704c06b3
vp8 denoiser: fix to zero_mv mode selection.

In the current logic, if the sse for zero motion is smaller
than the sse for new_mv (i.e., best_sse), we may still end up
using the non-zero mv for denoising (if the magnitude of new_mv is above threshold).
This can happen for very noisy content, and can lead to artifacts.

This change ensures that we always use zero_mv (over new_mv) for
denoisng if sse_zero_mv <= best_sse.

Change-Id: I8ef9294d837b077013b77a46c9a71d17c648b48a
vp8/encoder/denoising.c