ref: 1d2aaf58ddbb2bd6d78d02873274ad5bb50feb9a
parent: f2be83188511e36d0fbee17c4f364da83213a02e
author: Johann <johannkoenig@google.com>
date: Thu Sep 15 11:59:42 EDT 2016
vp8 postproc: expand CONFIG_POSTPROC guard postproc.c is overloaded and used for both postproc and internal stats. If only --enable-internal-stats is specified there are issues with non-existent struct members and unused functions. Change-Id: I82367f1ffce659c3918c9f964dbce94a716fbb89
--- a/vp8/common/postproc.c
+++ b/vp8/common/postproc.c
@@ -83,6 +83,7 @@
const int pitch);
/***********************************************************************************************************
*/
+#if CONFIG_POSTPROC
static int q2mbl(int x) {
if (x < 20) x = 20;
@@ -90,7 +91,6 @@
return x * x / 3;
}
-#if CONFIG_POSTPROC
static void vp8_de_mblock(YV12_BUFFER_CONFIG *post, int q) {
vpx_mbpost_proc_across_ip(post->y_buffer, post->y_stride, post->y_height,
post->y_width, q2mbl(q));
@@ -154,7 +154,6 @@
vp8_yv12_copy_frame(source, post);
}
}
-#endif
void vp8_de_noise(VP8_COMMON *cm, YV12_BUFFER_CONFIG *source,
YV12_BUFFER_CONFIG *post, int q, int low_var_thresh, int flag,
@@ -189,6 +188,7 @@
}
}
}
+#endif // CONFIG_POSTPROC
/* Blend the macro block with a solid colored square. Leave the
* edges unblended to give distinction to macro blocks in areas