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/motionpixels_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/motionpixels_tablegen.c')
-rw-r--r-- | libavcodec/motionpixels_tablegen.c | 21 |
1 files changed, 9 insertions, 12 deletions
diff --git a/libavcodec/motionpixels_tablegen.c b/libavcodec/motionpixels_tablegen.c index 188384b5a3..5f1220aff5 100644 --- a/libavcodec/motionpixels_tablegen.c +++ b/libavcodec/motionpixels_tablegen.c @@ -27,18 +27,15 @@ #include "motionpixels_tablegen.h" #include "tableprint.h" -void tableinit(void) +int main(void) { motionpixels_tableinit(); -} -const struct tabledef tables[] = { - { - "static const YuvPixel mp_rgb_yuv_table[1 << 15]", - write_int8_2d_array, - mp_rgb_yuv_table, - 1 << 15, - 3 - }, - { NULL } -}; + write_fileheader(); + + printf("static const YuvPixel mp_rgb_yuv_table[1 << 15] = {\n"); + write_int8_2d_array(mp_rgb_yuv_table, 1 << 15, 3); + printf("};\n"); + + return 0; +} |