diff options
author | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2010-04-01 17:11:47 +0000 |
---|---|---|
committer | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2010-04-01 17:11:47 +0000 |
commit | 8eaa6e0e04c3c340d7c44a97613ebc6dbcc0a51d (patch) | |
tree | 6b40a6af3963c4f53e90e1e9a6dbbd05eb98ca3e /libavcodec/mdct_tablegen.c | |
parent | 27eecec3598b0c35b7aeb10c08f2c5e42b1fdd4f (diff) | |
download | ffmpeg-8eaa6e0e04c3c340d7c44a97613ebc6dbcc0a51d.tar.gz |
Change/simplify the tableprint/tablegen API.
Originally committed as revision 22761 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/mdct_tablegen.c')
-rw-r--r-- | libavcodec/mdct_tablegen.c | 33 |
1 files changed, 11 insertions, 22 deletions
diff --git a/libavcodec/mdct_tablegen.c b/libavcodec/mdct_tablegen.c index a6b13c345b..6205f06e3c 100644 --- a/libavcodec/mdct_tablegen.c +++ b/libavcodec/mdct_tablegen.c @@ -32,29 +32,18 @@ #include "mdct_tablegen.h" #include "tableprint.h" -void tableinit(void) +int main(void) { int i; - for (i = 5; i <= 12; i++) - ff_init_ff_sine_windows(i); -} -#define SINE_TABLE_DEF(size) \ - { \ - "SINETABLE("#size")", \ - write_float_array, \ - ff_sine_##size, \ - size \ - }, + write_fileheader(); -const struct tabledef tables[] = { - SINE_TABLE_DEF( 32) - SINE_TABLE_DEF( 64) - SINE_TABLE_DEF( 128) - SINE_TABLE_DEF( 256) - SINE_TABLE_DEF( 512) - SINE_TABLE_DEF(1024) - SINE_TABLE_DEF(2048) - SINE_TABLE_DEF(4096) - { NULL } -}; + for (i = 5; i <= 12; i++) { + ff_init_ff_sine_windows(i); + printf("SINETABLE(%4i) = {\n", 1 << i); + write_float_array(ff_sine_windows[i], 1 << i); + printf("};\n"); + } + + return 0; +} |