diff options
author | Marco <marpan@google.com> | 2016-04-26 16:02:09 -0700 |
---|---|---|
committer | Marco <marpan@google.com> | 2016-04-26 16:03:44 -0700 |
commit | a136c1769d62074d50621c6e0e3c4fba2ef0b636 (patch) | |
tree | 3d492a97cc9d0e9a418209bbdc0e01126346c10e /vp8 | |
parent | 03b6f5f8e31464e031eef734406d3ff7499c49ed (diff) | |
download | libvpx-a136c1769d62074d50621c6e0e3c4fba2ef0b636.tar libvpx-a136c1769d62074d50621c6e0e3c4fba2ef0b636.tar.gz libvpx-a136c1769d62074d50621c6e0e3c4fba2ef0b636.tar.bz2 libvpx-a136c1769d62074d50621c6e0e3c4fba2ef0b636.zip |
vp8: Adjust consec_zeromv thresholds for skin detection.
Change-Id: Iab5aed7bf86538352232e208bce58c3528cc9a4e
Diffstat (limited to 'vp8')
-rw-r--r-- | vp8/encoder/pickinter.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vp8/encoder/pickinter.c b/vp8/encoder/pickinter.c index 0708d65eb..24b332dcd 100644 --- a/vp8/encoder/pickinter.c +++ b/vp8/encoder/pickinter.c @@ -90,7 +90,7 @@ static int is_skin_color(int y, int cb, int cr, int consec_zeromv) { int i = 0; // No skin if block has been zero motion for long consecutive time. - if (consec_zeromv > 80) + if (consec_zeromv > 60) return 0; // Exit on grey. if (cb == 128 && cr == 128) @@ -103,7 +103,7 @@ static int is_skin_color(int y, int cb, int cr, int consec_zeromv) if (skin_color_diff < skin_threshold[i + 1]) { if (y < 60 && skin_color_diff > 3 * (skin_threshold[i + 1] >> 2)) return 0; - else if (consec_zeromv > 30 && + else if (consec_zeromv > 25 && skin_color_diff > (skin_threshold[i + 1] >> 1)) return 0; else |