summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarco Paniconi <marpan@google.com>2014-06-27 09:20:58 -0700
committerMarco Paniconi <marpan@google.com>2014-06-27 09:25:14 -0700
commit21f8d6a1c9367a95bfc1d8de39fae3388aa7630a (patch)
treee51ffad2a129a21329678ab345f954d921759b51
parentcb51192b5106e5e2c0570ace106b7a12c6cbc2cd (diff)
downloadlibvpx-21f8d6a1c9367a95bfc1d8de39fae3388aa7630a.tar
libvpx-21f8d6a1c9367a95bfc1d8de39fae3388aa7630a.tar.gz
libvpx-21f8d6a1c9367a95bfc1d8de39fae3388aa7630a.tar.bz2
libvpx-21f8d6a1c9367a95bfc1d8de39fae3388aa7630a.zip
vp8: bugfix in postproc vp8_de_noise.
Set the proper number of mb_rows/cols. Also remove warnings (unused variable) when configured with temporal-denoising disabled. Change-Id: I8abd2372394ee55295feb87a66efd294ea6989d0
-rw-r--r--vp8/common/postproc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/vp8/common/postproc.c b/vp8/common/postproc.c
index 8e546d5bf..e50d3935f 100644
--- a/vp8/common/postproc.c
+++ b/vp8/common/postproc.c
@@ -393,12 +393,12 @@ void vp8_de_noise(VP8_COMMON *cm,
int low_var_thresh,
int flag)
{
+ int mbr;
double level = 6.0e-05 * q * q * q - .0067 * q * q + .306 * q + .0065;
int ppl = (int)(level + .5);
- int mb_rows = source->y_width >> 4;
- int mb_cols = source->y_height >> 4;
+ int mb_rows = cm->mb_rows;
+ int mb_cols = cm->mb_cols;
unsigned char *limits = cm->pp_limits_buffer;;
- int mbr, mbc;
(void) post;
(void) low_var_thresh;
(void) flag;