]> granicus.if.org Git - libvpx/commitdiff
vp9-denoiser: Force increase_denoising = 0 for skin block.
authorMarco <marpan@google.com>
Fri, 29 Jan 2016 16:36:03 +0000 (08:36 -0800)
committerMarco <marpan@google.com>
Fri, 29 Jan 2016 16:37:02 +0000 (08:37 -0800)
Change-Id: Ic5af41db58a3daad4103175b4b4b9300675020c0

vp9/encoder/vp9_denoiser.c

index 3280e73617276c640e98545a6d95c353c7197c13..99118f5dfed64650c8e6567ced0a16fcc1f0a50f 100644 (file)
@@ -344,7 +344,9 @@ void vp9_denoiser_denoise(VP9_DENOISER *denoiser, MACROBLOCK *mb,
   mv_col = ctx->best_sse_mv.as_mv.col;
   mv_row = ctx->best_sse_mv.as_mv.row;
   motion_magnitude = mv_row * mv_row + mv_col * mv_col;
-  if (denoiser->denoising_level == kDenHigh && motion_magnitude < 16) {
+  if (!is_skin &&
+      denoiser->denoising_level == kDenHigh &&
+      motion_magnitude < 16) {
     denoiser->increase_denoising = 1;
   } else {
     denoiser->increase_denoising = 0;