Browse code

Mark C base versions of FFT functions static to fft.c

Signed-off-by: Mans Rullgard <mans@mansr.com>

Diego Elio Pettenò authored on 2011/01/25 09:29:43
Showing 2 changed files
... ...
@@ -53,6 +53,9 @@ COSTABLE_CONST FFTSample * const ff_cos_tabs[] = {
53 53
     ff_cos_2048, ff_cos_4096, ff_cos_8192, ff_cos_16384, ff_cos_32768, ff_cos_65536,
54 54
 };
55 55
 
56
+static void ff_fft_permute_c(FFTContext *s, FFTComplex *z);
57
+static void ff_fft_calc_c(FFTContext *s, FFTComplex *z);
58
+
56 59
 static int split_radix_permutation(int i, int n, int inverse)
57 60
 {
58 61
     int m;
... ...
@@ -120,7 +123,7 @@ av_cold int ff_fft_init(FFTContext *s, int nbits, int inverse)
120 120
     return -1;
121 121
 }
122 122
 
123
-void ff_fft_permute_c(FFTContext *s, FFTComplex *z)
123
+static void ff_fft_permute_c(FFTContext *s, FFTComplex *z)
124 124
 {
125 125
     int j, np;
126 126
     const uint16_t *revtab = s->revtab;
... ...
@@ -289,7 +292,7 @@ static void (* const fft_dispatch[])(FFTComplex*) = {
289 289
     fft2048, fft4096, fft8192, fft16384, fft32768, fft65536,
290 290
 };
291 291
 
292
-void ff_fft_calc_c(FFTContext *s, FFTComplex *z)
292
+static void ff_fft_calc_c(FFTContext *s, FFTComplex *z)
293 293
 {
294 294
     fft_dispatch[s->nbits-2](z);
295 295
 }
... ...
@@ -106,8 +106,6 @@ extern SINTABLE(65536);
106 106
  * @param inverse         if 0 perform the forward transform, if 1 perform the inverse
107 107
  */
108 108
 int ff_fft_init(FFTContext *s, int nbits, int inverse);
109
-void ff_fft_permute_c(FFTContext *s, FFTComplex *z);
110
-void ff_fft_calc_c(FFTContext *s, FFTComplex *z);
111 109
 
112 110
 void ff_fft_init_altivec(FFTContext *s);
113 111
 void ff_fft_init_mmx(FFTContext *s);