MFQE: apply threshold to subblocks and chroma.
authorJohn Koleszar <jkoleszar@google.com>
Fri, 30 Mar 2012 18:34:36 +0000 (11:34 -0700)
committerJohn Koleszar <jkoleszar@google.com>
Tue, 3 Apr 2012 19:05:01 +0000 (12:05 -0700)
commit8106df8f5a1e0f4794876cde3a9761036a926962
treebc3cfa31edec9879b7448292f1b48e8d80fcdad0
parentc459d37c26ac65e95b33d71a6f61b4c851b0f3cc
MFQE: apply threshold to subblocks and chroma.

In cases where you have a flat background occluded by a moving object
of similar luminosity in the foreground, it was likely that the
foreground blocks would persist for a few frames after the background
is uncovered. This is particularly noticable when the object has a
different color than the background, so add the chroma planes in as an
additional check.

In addition, for block sizes of 8 and 16, the luma threshold is
applied on four subblocks independently, which helps when only part of
the background in the block has been uncovered.

This fixes issue #392, which includes a test clip to reproduce the
issue.

BUG=392

Change-Id: I2bd7b2b0e25e912dcac342e5ad6e8914f5afd302
vp8/common/mfqe.c