From e9ccc6fe7949cf7d97f2fbcce482daf4be856c05 Mon Sep 17 00:00:00 2001 From: Marco Date: Tue, 15 Aug 2017 10:01:09 -0700 Subject: [PATCH] vp9: Denoiser fix: use correct bsize for skin detection. Change-Id: I9d201fa3a4b00ebd147b57ed519fab8d59b0a802 --- vp9/encoder/vp9_denoiser.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vp9/encoder/vp9_denoiser.c b/vp9/encoder/vp9_denoiser.c index 3069f10e6..a2bb13c43 100644 --- a/vp9/encoder/vp9_denoiser.c +++ b/vp9/encoder/vp9_denoiser.c @@ -350,8 +350,8 @@ void vp9_denoiser_denoise(VP9_COMP *cpi, MACROBLOCK *mb, int mi_row, int mi_col, VP9_COMMON *const cm = &cpi->common; int j, i; // Loop through the 8x8 sub-blocks. - const int bw = num_8x8_blocks_wide_lookup[BLOCK_64X64]; - const int bh = num_8x8_blocks_high_lookup[BLOCK_64X64]; + const int bw = num_8x8_blocks_wide_lookup[bs]; + const int bh = num_8x8_blocks_high_lookup[bs]; const int xmis = VPXMIN(cm->mi_cols - mi_col, bw); const int ymis = VPXMIN(cm->mi_rows - mi_row, bh); const int block_index = mi_row * cm->mi_cols + mi_col; -- 2.40.0