diff options
author | Diego Biurrun <diego@biurrun.de> | 2009-03-31 09:32:59 +0000 |
---|---|---|
committer | Diego Biurrun <diego@biurrun.de> | 2009-03-31 09:32:59 +0000 |
commit | 504ffed19f990f91237479be93480d9b597561e2 (patch) | |
tree | 0112de10541e64bca39496011f62f0284ee87470 /libavcodec/fft-test.c | |
parent | cafe71c62d87955172dd6d8fcb277988f00e92e2 (diff) | |
download | ffmpeg-504ffed19f990f91237479be93480d9b597561e2.tar.gz |
Mark non-exported functions in test and example programs as static.
Originally committed as revision 18259 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/fft-test.c')
-rw-r--r-- | libavcodec/fft-test.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/libavcodec/fft-test.c b/libavcodec/fft-test.c index 4f1ce982de..0a2b93895d 100644 --- a/libavcodec/fft-test.c +++ b/libavcodec/fft-test.c @@ -45,7 +45,7 @@ FFTComplex *exptab; -void fft_ref_init(int nbits, int inverse) +static void fft_ref_init(int nbits, int inverse) { int n, i; double c1, s1, alpha; @@ -64,7 +64,7 @@ void fft_ref_init(int nbits, int inverse) } } -void fft_ref(FFTComplex *tabr, FFTComplex *tab, int nbits) +static void fft_ref(FFTComplex *tabr, FFTComplex *tab, int nbits) { int n, i, j, k, n2; double tmp_re, tmp_im, s, c; @@ -93,7 +93,7 @@ void fft_ref(FFTComplex *tabr, FFTComplex *tab, int nbits) } } -void imdct_ref(float *out, float *in, int nbits) +static void imdct_ref(float *out, float *in, int nbits) { int n = 1<<nbits; int k, i, a; @@ -111,7 +111,7 @@ void imdct_ref(float *out, float *in, int nbits) } /* NOTE: no normalisation by 1 / N is done */ -void mdct_ref(float *output, float *input, int nbits) +static void mdct_ref(float *output, float *input, int nbits) { int n = 1<<nbits; int k, i; @@ -129,21 +129,21 @@ void mdct_ref(float *output, float *input, int nbits) } -float frandom(void) +static float frandom(void) { AVLFG prn; av_lfg_init(&prn, 1); return (float)((av_lfg_get(&prn) & 0xffff) - 32768) / 32768.0; } -int64_t gettime(void) +static int64_t gettime(void) { struct timeval tv; gettimeofday(&tv,NULL); return (int64_t)tv.tv_sec * 1000000 + tv.tv_usec; } -void check_diff(float *tab1, float *tab2, int n) +static void check_diff(float *tab1, float *tab2, int n) { int i; double max= 0; @@ -162,7 +162,7 @@ void check_diff(float *tab1, float *tab2, int n) } -void help(void) +static void help(void) { av_log(NULL, AV_LOG_INFO,"usage: fft-test [-h] [-s] [-i] [-n b]\n" "-h print this help\n" |