vp8: make some functions static
authorJames Zern <jzern@google.com>
Fri, 15 May 2015 02:59:32 +0000 (19:59 -0700)
committerJames Zern <jzern@google.com>
Fri, 15 May 2015 05:41:25 +0000 (22:41 -0700)
silences missing prototype warnings

Change-Id: I9f24a3214c832c982ca0dc5a032316eba48472ff

vp8/common/postproc.c
vp8/decoder/onyxd_if.c

index 266431a..a4e6ae1 100644 (file)
@@ -427,7 +427,7 @@ void vp8_de_noise(VP8_COMMON                 *cm,
     }
 }
 
-double vp8_gaussian(double sigma, double mu, double x)
+static double gaussian(double sigma, double mu, double x)
 {
     return 1 / (sigma * sqrt(2.0 * 3.14159265)) *
            (exp(-(x - mu) * (x - mu) / (2 * sigma * sigma)));
@@ -455,7 +455,7 @@ static void fillrd(struct postproc_state *state, int q, int a)
 
         for (i = -32; i < 32; i++)
         {
-            const int v = (int)(.5 + 256 * vp8_gaussian(sigma, 0, i));
+            const int v = (int)(.5 + 256 * gaussian(sigma, 0, i));
 
             if (v)
             {
index d7b8c76..9015fcb 100644 (file)
@@ -259,7 +259,7 @@ static int swap_frame_buffers (VP8_COMMON *cm)
     return err;
 }
 
-int check_fragments_for_errors(VP8D_COMP *pbi)
+static int check_fragments_for_errors(VP8D_COMP *pbi)
 {
     if (!pbi->ec_active &&
         pbi->fragments.count <= 1 && pbi->fragments.sizes[0] == 0)