Mark some functions as static.
These functions are only used within the file.
Change-Id: I30400bf0b4951b5e52fc33a877e725faaaac69a1
diff --git a/apps/aomdec.c b/apps/aomdec.c
index ff13b6f..848fb35 100644
--- a/apps/aomdec.c
+++ b/apps/aomdec.c
@@ -143,7 +143,7 @@
}
#endif
-void show_help(FILE *fout, int shorthelp) {
+static void show_help(FILE *fout, int shorthelp) {
fprintf(fout, "Usage: %s <options> filename\n\n", exec_name);
if (shorthelp) {
diff --git a/apps/aomenc.c b/apps/aomenc.c
index 06fb480..6a44bcd 100644
--- a/apps/aomenc.c
+++ b/apps/aomenc.c
@@ -732,7 +732,7 @@
static const arg_def_t *no_args[] = { NULL };
-void show_help(FILE *fout, int shorthelp) {
+static void show_help(FILE *fout, int shorthelp) {
fprintf(fout, "Usage: %s <options> -o dst_filename src_filename \n",
exec_name);
diff --git a/av1/common/x86/av1_inv_txfm_ssse3.c b/av1/common/x86/av1_inv_txfm_ssse3.c
index 995bc3d..9841bf3 100644
--- a/av1/common/x86/av1_inv_txfm_ssse3.c
+++ b/av1/common/x86/av1_inv_txfm_ssse3.c
@@ -2437,9 +2437,10 @@
}
}
-void lowbd_inv_txfm2d_add_4x4_ssse3(const int32_t *input, uint8_t *output,
- int stride, TX_TYPE tx_type,
- TX_SIZE tx_size_, int eob) {
+static void lowbd_inv_txfm2d_add_4x4_ssse3(const int32_t *input,
+ uint8_t *output, int stride,
+ TX_TYPE tx_type, TX_SIZE tx_size_,
+ int eob) {
(void)tx_size_;
(void)eob;
__m128i buf[4];
@@ -2708,9 +2709,10 @@
}
}
-void lowbd_inv_txfm2d_add_4x8_ssse3(const int32_t *input, uint8_t *output,
- int stride, TX_TYPE tx_type,
- TX_SIZE tx_size_, int eob) {
+static void lowbd_inv_txfm2d_add_4x8_ssse3(const int32_t *input,
+ uint8_t *output, int stride,
+ TX_TYPE tx_type, TX_SIZE tx_size_,
+ int eob) {
(void)tx_size_;
(void)eob;
__m128i buf[8];
@@ -2747,9 +2749,10 @@
lowbd_write_buffer_4xn_sse2(buf, output, stride, ud_flip, txfm_size_row);
}
-void lowbd_inv_txfm2d_add_8x4_ssse3(const int32_t *input, uint8_t *output,
- int stride, TX_TYPE tx_type,
- TX_SIZE tx_size_, int eob) {
+static void lowbd_inv_txfm2d_add_8x4_ssse3(const int32_t *input,
+ uint8_t *output, int stride,
+ TX_TYPE tx_type, TX_SIZE tx_size_,
+ int eob) {
(void)tx_size_;
(void)eob;
__m128i buf[8];
@@ -2786,9 +2789,10 @@
lowbd_write_buffer_8xn_sse2(buf, output, stride, ud_flip, txfm_size_row);
}
-void lowbd_inv_txfm2d_add_4x16_ssse3(const int32_t *input, uint8_t *output,
- int stride, TX_TYPE tx_type,
- TX_SIZE tx_size_, int eob) {
+static void lowbd_inv_txfm2d_add_4x16_ssse3(const int32_t *input,
+ uint8_t *output, int stride,
+ TX_TYPE tx_type, TX_SIZE tx_size_,
+ int eob) {
(void)tx_size_;
(void)eob;
__m128i buf[16];
@@ -2831,9 +2835,10 @@
lowbd_write_buffer_4xn_sse2(buf, output, stride, ud_flip, txfm_size_row);
}
-void lowbd_inv_txfm2d_add_16x4_ssse3(const int32_t *input, uint8_t *output,
- int stride, TX_TYPE tx_type,
- TX_SIZE tx_size_, int eob) {
+static void lowbd_inv_txfm2d_add_16x4_ssse3(const int32_t *input,
+ uint8_t *output, int stride,
+ TX_TYPE tx_type, TX_SIZE tx_size_,
+ int eob) {
(void)tx_size_;
(void)eob;
__m128i buf[16];
diff --git a/common/y4menc.c b/common/y4menc.c
index 585d221..de8eca2 100644
--- a/common/y4menc.c
+++ b/common/y4menc.c
@@ -15,7 +15,7 @@
#include "common/y4menc.h"
// Returns the Y4M name associated with the monochrome colorspace.
-const char *monochrome_colorspace(unsigned int bit_depth) {
+static const char *monochrome_colorspace(unsigned int bit_depth) {
switch (bit_depth) {
case 8: return "Cmono";
case 9: return "Cmono9";
@@ -43,8 +43,9 @@
}
// Return the Y4M name of the colorspace, given the bit depth and image format.
-const char *colorspace(unsigned int bit_depth, aom_chroma_sample_position_t csp,
- aom_img_fmt_t fmt) {
+static const char *colorspace(unsigned int bit_depth,
+ aom_chroma_sample_position_t csp,
+ aom_img_fmt_t fmt) {
switch (bit_depth) {
case 8: return colorspace8(csp, fmt);
case 9:
diff --git a/examples/noise_model.c b/examples/noise_model.c
index 5cc6003..45f1b4d 100644
--- a/examples/noise_model.c
+++ b/examples/noise_model.c
@@ -114,7 +114,7 @@
const char *debug_file;
} noise_model_args_t;
-void parse_args(noise_model_args_t *noise_args, int *argc, char **argv) {
+static void parse_args(noise_model_args_t *noise_args, int *argc, char **argv) {
struct arg arg;
static const arg_def_t *main_args[] = { &help,
&input_arg,