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/tableprint.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/tableprint.c')
-rw-r--r-- | libavcodec/tableprint.c | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/libavcodec/tableprint.c b/libavcodec/tableprint.c index 2d8cc419e4..e39606bb15 100644 --- a/libavcodec/tableprint.c +++ b/libavcodec/tableprint.c @@ -34,18 +34,7 @@ WRITE_2D_FUNC(int8, int8_t) WRITE_2D_FUNC(uint8, uint8_t) WRITE_2D_FUNC(uint32, uint32_t) -int main(int argc, char *argv[]) -{ - int i; - +void write_fileheader(void) { printf("/* This file was generated by libavcodec/tableprint */\n"); printf("#include <stdint.h>\n"); - tableinit(); - - for (i = 0; tables[i].declaration; i++) { - printf("%s = {\n", tables[i].declaration); - tables[i].printfunc(tables[i].data, tables[i].size, tables[i].size2); - printf("};\n"); - } - return 0; } |