]> granicus.if.org Git - libvpx/commitdiff
vp9: Don't force block size to 8x8 in denoiser.
authorJackyChen <jackychen@google.com>
Thu, 28 Apr 2016 05:18:11 +0000 (22:18 -0700)
committerJackyChen <jackychen@google.com>
Thu, 28 Apr 2016 05:18:11 +0000 (22:18 -0700)
First, we only set use_4x4_partition for key frame where we don't
denoise; second, envision we have small partitions, we should pass the
actual block size to denoiser and make an early termination if needed.

Change-Id: I331f42046d792b17360723d17ff817d601394658

vp9/encoder/vp9_pickmode.c

index 2e27f94794671b2d5863334a6ba2ffc83b360daf..fd515987b2079f02601f6caa35a71f0f581ab1c1 100644 (file)
@@ -1845,8 +1845,7 @@ void vp9_pick_inter_mode(VP9_COMP *cpi, MACROBLOCK *x,
       cpi->denoiser.denoising_level > kDenLowLow &&
       cpi->denoiser.reset == 0) {
     VP9_DENOISER_DECISION decision = COPY_BLOCK;
-    vp9_denoiser_denoise(cpi, x, mi_row, mi_col, VPXMAX(BLOCK_8X8, bsize),
-                         ctx, &decision);
+    vp9_denoiser_denoise(cpi, x, mi_row, mi_col, bsize, ctx, &decision);
     // If INTRA or GOLDEN reference was selected, re-evaluate ZEROMV on denoised
     // result. Only do this under noise conditions, and if rdcost of ZEROMV on
     // original source is not significantly higher than rdcost of best mode.