History

Rename CONFIG_FFT_FLOAT ---> FFT_FLOAT

The define does not originate from configure, so it should not have a name that is CONFIG_-prefixed.

Diego Biurrun committed 12 years ago

Commit 794fcf71 parent 63debaa13 files · +24 −24Browse files

Unified · Split

13 files
  1. libavcodec/ac3enc_fixed.c +1 −1
  2. libavcodec/arm/fft_fixed_init_arm.c +1 −1
  3. libavcodec/cos_tablegen.c +1 −1
  4. libavcodec/fft-fixed-test.c +1 −1
  5. libavcodec/fft-internal.h +2 −2
  6. libavcodec/fft-test.c +8 −8
  7. libavcodec/fft.h +4 −4
  8. libavcodec/fft_fixed.c +1 −1
  9. libavcodec/fft_float.c +1 −1
  10. libavcodec/fft_template.c +1 −1
  11. libavcodec/mdct_fixed.c +1 −1
  12. libavcodec/mdct_float.c +1 −1
  13. libavcodec/mdct_template.c +1 −1
libavcodec/ac3enc_fixed.c+1−1
@@ -26,7 +26,7 @@ · 25 unmodified lines
2626 * fixed-point AC-3 encoder.
2727 */
2828
29−#define CONFIG_FFT_FLOAT 0
29+#define FFT_FLOAT 0
3030 #undef CONFIG_AC3ENC_FLOAT
3131 #include "internal.h"
3232 #include "ac3enc.h"
libavcodec/arm/fft_fixed_init_arm.c+1−1
@@ -20,7 +20,7 @@ · 19 unmodified lines
2020
2121 #include "libavutil/arm/cpu.h"
2222
23−#define CONFIG_FFT_FLOAT 0
23+#define FFT_FLOAT 0
2424 #include "libavcodec/fft.h"
2525
2626 void ff_fft_fixed_calc_neon(FFTContext *s, FFTComplex *z);
libavcodec/cos_tablegen.c+1−1
@@ -57,7 +57,7 @@ int main(int argc, char *argv[]) · 56 unmodified lines
5757 double (*func)(double) = do_sin ? sin : cos;
5858
5959 printf("/* This file was automatically generated. */\n");
60− printf("#define CONFIG_FFT_FLOAT %d\n", !fixed);
60+ printf("#define FFT_FLOAT %d\n", !fixed);
6161 printf("#include \"libavcodec/%s\"\n", do_sin ? "rdft.h" : "fft.h");
6262 for (i = 4; i <= BITS; i++) {
6363 int m = 1 << i;
libavcodec/fft-fixed-test.c+1−1
@@ -16,5 +16,5 @@ · 15 unmodified lines
1616 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
1717 */
1818
19−#define CONFIG_FFT_FLOAT 0
19+#define FFT_FLOAT 0
2020 #include "fft-test.c"
libavcodec/fft-internal.h+2−2
@@ -19,7 +19,7 @@ · 18 unmodified lines
1919 #ifndef AVCODEC_FFT_INTERNAL_H
2020 #define AVCODEC_FFT_INTERNAL_H
2121
22−#if CONFIG_FFT_FLOAT
22+#if FFT_FLOAT
2323
2424 #define FIX15(v) (v)
2525 #define sqrthalf (float)M_SQRT1_2
@@ -62,7 +62,7 @@ void ff_mdct_calcw_c(FFTContext *s, FFTDouble *output, const FFTSample *input); · 36 unmodified lines
6262 #define CMULL(dre, dim, are, aim, bre, bim) \
6363 CMULS(dre, dim, are, aim, bre, bim, 0)
6464
65−#endif /* CONFIG_FFT_FLOAT */
65+#endif /* FFT_FLOAT */
6666
6767 #define ff_imdct_calc_c FFT_NAME(ff_imdct_calc_c)
6868 #define ff_imdct_half_c FFT_NAME(ff_imdct_half_c)
libavcodec/fft-test.c+8−8
@@ -29,7 +29,7 @@ · 28 unmodified lines
2929 #include "libavutil/log.h"
3030 #include "libavutil/time.h"
3131 #include "fft.h"
32−#if CONFIG_FFT_FLOAT
32+#if FFT_FLOAT
3333 #include "dct.h"
3434 #include "rdft.h"
3535 #endif
@@ -51,7 +51,7 @@ · 15 unmodified lines
5151 pim += (MUL16(are, bim) + MUL16(bre, aim));\
5252 }
5353
54−#if CONFIG_FFT_FLOAT
54+#if FFT_FLOAT
5555 # define RANGE 1.0
5656 # define REF_SCALE(x, bits) (x)
5757 # define FMT "%10.6f"
@@ -148,7 +148,7 @@ static void mdct_ref(FFTSample *output, FFTSample *input, int nbits) · 90 unmodified lines
148148 }
149149 }
150150
151−#if CONFIG_FFT_FLOAT
151+#if FFT_FLOAT
152152 static void idct_ref(float *output, float *input, int nbits)
153153 {
154154 int n = 1<<nbits;
@@ -248,7 +248,7 @@ int main(int argc, char **argv) · 93 unmodified lines
248248 int do_inverse = 0;
249249 FFTContext s1, *s = &s1;
250250 FFTContext m1, *m = &m1;
251−#if CONFIG_FFT_FLOAT
251+#if FFT_FLOAT
252252 RDFTContext r1, *r = &r1;
253253 DCTContext d1, *d = &d1;
254254 int fft_size_2;
@@ -320,7 +320,7 @@ int main(int argc, char **argv) · 65 unmodified lines
320320 ff_fft_init(s, fft_nbits, do_inverse);
321321 fft_ref_init(fft_nbits, do_inverse);
322322 break;
323−#if CONFIG_FFT_FLOAT
323+#if FFT_FLOAT
324324 case TRANSFORM_RDFT:
325325 if (do_inverse)
326326 av_log(NULL, AV_LOG_INFO,"IDFT_C2R");
@@ -375,7 +375,7 @@ int main(int argc, char **argv) · 48 unmodified lines
375375 fft_ref(tab_ref, tab1, fft_nbits);
376376 err = check_diff((FFTSample *)tab_ref, (FFTSample *)tab, fft_size * 2, 1.0);
377377 break;
378−#if CONFIG_FFT_FLOAT
378+#if FFT_FLOAT
379379 case TRANSFORM_RDFT:
380380 fft_size_2 = fft_size >> 1;
381381 if (do_inverse) {
@@ -444,7 +444,7 @@ int main(int argc, char **argv) · 62 unmodified lines
444444 memcpy(tab, tab1, fft_size * sizeof(FFTComplex));
445445 s->fft_calc(s, tab);
446446 break;
447−#if CONFIG_FFT_FLOAT
447+#if FFT_FLOAT
448448 case TRANSFORM_RDFT:
449449 memcpy(tab2, tab1, fft_size * sizeof(FFTSample));
450450 r->rdft_calc(r, tab2);
@@ -474,7 +474,7 @@ int main(int argc, char **argv) · 23 unmodified lines
474474 case TRANSFORM_FFT:
475475 ff_fft_end(s);
476476 break;
477−#if CONFIG_FFT_FLOAT
477+#if FFT_FLOAT
478478 case TRANSFORM_RDFT:
479479 ff_rdft_end(r);
480480 break;
libavcodec/fft.h+4−4
@@ -22,15 +22,15 @@ · 21 unmodified lines
2222 #ifndef AVCODEC_FFT_H
2323 #define AVCODEC_FFT_H
2424
25−#ifndef CONFIG_FFT_FLOAT
26−#define CONFIG_FFT_FLOAT 1
25+#ifndef FFT_FLOAT
26+#define FFT_FLOAT 1
2727 #endif
2828
2929 #include <stdint.h>
3030 #include "config.h"
3131 #include "libavutil/mem.h"
3232
33−#if CONFIG_FFT_FLOAT
33+#if FFT_FLOAT
3434
3535 #include "avfft.h"
3636
@@ -51,7 +51,7 @@ typedef struct FFTComplex { · 14 unmodified lines
5151
5252 typedef struct FFTContext FFTContext;
5353
54−#endif /* CONFIG_FFT_FLOAT */
54+#endif /* FFT_FLOAT */
5555
5656 typedef struct FFTDComplex {
5757 FFTDouble re, im;
libavcodec/fft_fixed.c+1−1
@@ -16,5 +16,5 @@ · 15 unmodified lines
1616 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
1717 */
1818
19−#define CONFIG_FFT_FLOAT 0
19+#define FFT_FLOAT 0
2020 #include "fft_template.c"
libavcodec/fft_float.c+1−1
@@ -16,5 +16,5 @@ · 15 unmodified lines
1616 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
1717 */
1818
19−#define CONFIG_FFT_FLOAT 1
19+#define FFT_FLOAT 1
2020 #include "fft_template.c"
libavcodec/fft_template.c+1−1
@@ -157,7 +157,7 @@ av_cold int ff_fft_init(FFTContext *s, int nbits, int inverse) · 156 unmodified lines
157157 s->mdct_calc = ff_mdct_calc_c;
158158 #endif
159159
160−#if CONFIG_FFT_FLOAT
160+#if FFT_FLOAT
161161 if (ARCH_ARM) ff_fft_init_arm(s);
162162 if (ARCH_PPC) ff_fft_init_ppc(s);
163163 if (ARCH_X86) ff_fft_init_x86(s);
libavcodec/mdct_fixed.c+1−1
@@ -16,7 +16,7 @@ · 15 unmodified lines
1616 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
1717 */
1818
19−#define CONFIG_FFT_FLOAT 0
19+#define FFT_FLOAT 0
2020 #include "mdct_template.c"
2121
2222 /* same as ff_mdct_calcw_c with double-width unscaled output */
libavcodec/mdct_float.c+1−1
@@ -16,5 +16,5 @@ · 15 unmodified lines
1616 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
1717 */
1818
19−#define CONFIG_FFT_FLOAT 1
19+#define FFT_FLOAT 1
2020 #include "mdct_template.c"
libavcodec/mdct_template.c+1−1
@@ -31,7 +31,7 @@ · 30 unmodified lines
3131 * MDCT/IMDCT transforms.
3232 */
3333
34−#if CONFIG_FFT_FLOAT
34+#if FFT_FLOAT
3535 # define RSCALE(x) (x)
3636 #else
3737 # define RSCALE(x) ((x) >> 1)

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t