ref: e6479c8cfa60c1959a572c5688bd487b6d0b2535
parent: 9ed23de13f0ddfebea2a7ff6caa370126dd84979
parent: 7ba646f7e6142ff95b026a042f3d352012e46177
author: JackyChen <[email protected]>
date: Mon Sep 29 12:56:16 EDT 2014
Merge "Fix a bug in calculating delta in VP9 denoiser."
--- a/vp9/encoder/vp9_denoiser.c
+++ b/vp9/encoder/vp9_denoiser.c
@@ -143,7 +143,7 @@
// Otherwise, we try to dampen the filter if the delta is not too high.
delta = ((abs(total_adj) - total_adj_strong_thresh(bs, increase_denoising))
- >> 8) + 1;
+ >> num_pels_log2_lookup[bs]) + 1;
if (delta >= delta_thresh(bs, increase_denoising)) {
return COPY_BLOCK;