From: Johann Date: Thu, 15 Sep 2016 22:59:42 +0000 (-0700) Subject: vp8 postproc: expand CONFIG_POSTPROC guard X-Git-Tag: v1.6.1~265 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1d2aaf58ddbb2bd6d78d02873274ad5bb50feb9a;p=platform%2Fupstream%2Flibvpx.git 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 --- diff --git a/vp8/common/postproc.c b/vp8/common/postproc.c index c3d9265..1c4e042 100644 --- a/vp8/common/postproc.c +++ b/vp8/common/postproc.c @@ -83,6 +83,7 @@ extern void vp8_blit_line(int x0, int x1, int y0, int y1, unsigned char *image, const int pitch); /*********************************************************************************************************** */ +#if CONFIG_POSTPROC static int q2mbl(int x) { if (x < 20) x = 20; @@ -90,7 +91,6 @@ static int q2mbl(int x) { 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 @@ void vp8_deblock(VP8_COMMON *cm, YV12_BUFFER_CONFIG *source, 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 @@ void vp8_de_noise(VP8_COMMON *cm, YV12_BUFFER_CONFIG *source, } } } +#endif // CONFIG_POSTPROC /* Blend the macro block with a solid colored square. Leave the * edges unblended to give distinction to macro blocks in areas