Mercurial > libavcodec.hg
comparison costablegen.c @ 11385:351d1c11195b libavcodec
Fix --enable-hardcoded-tables compilation: the generate table files now
need to include fft.h, not dsputil.h.
author | reimar |
---|---|
date | Sun, 07 Mar 2010 09:25:57 +0000 |
parents | 36a16fb5c497 |
children |
comparison
equal
deleted
inserted
replaced
11384:ba57caf45845 | 11385:351d1c11195b |
---|---|
35 int i, j; | 35 int i, j; |
36 int do_sin = argc == 2 && !strcmp(argv[1], "sin"); | 36 int do_sin = argc == 2 && !strcmp(argv[1], "sin"); |
37 double (*func)(double) = do_sin ? sin : cos; | 37 double (*func)(double) = do_sin ? sin : cos; |
38 | 38 |
39 printf("/* This file was generated by libavcodec/costablegen */\n"); | 39 printf("/* This file was generated by libavcodec/costablegen */\n"); |
40 printf("#include \"libavcodec/dsputil.h\"\n"); | 40 printf("#include \"libavcodec/fft.h\"\n"); |
41 for (i = 4; i <= BITS; i++) { | 41 for (i = 4; i <= BITS; i++) { |
42 int m = 1 << i; | 42 int m = 1 << i; |
43 double freq = 2*M_PI/m; | 43 double freq = 2*M_PI/m; |
44 printf("%s(%i) = {\n ", do_sin ? "SINTABLE" : "COSTABLE", m); | 44 printf("%s(%i) = {\n ", do_sin ? "SINTABLE" : "COSTABLE", m); |
45 for (j = 0; j < m/2 - 1; j++) { | 45 for (j = 0; j < m/2 - 1; j++) { |