ref: c69a141a9e3910361e79f936cc09b237d9c0f1d6
parent: b2ccb9c189069d45d201c988184e9e0796b96270
author: JackyChen <[email protected]>
date: Wed Apr 27 18:18:11 EDT 2016
vp9: Don't force block size to 8x8 in denoiser. 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
--- a/vp9/encoder/vp9_pickmode.c
+++ b/vp9/encoder/vp9_pickmode.c
@@ -1845,8 +1845,7 @@
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.