From 8eaa6e0e04c3c340d7c44a97613ebc6dbcc0a51d Mon Sep 17 00:00:00 2001 From: Reimar Döffinger Date: Thu, 1 Apr 2010 17:11:47 +0000 Subject: Change/simplify the tableprint/tablegen API. Originally committed as revision 22761 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/motionpixels_tablegen.c | 21 +++++++++------------ 1 file changed, 9 insertions(+), 12 deletions(-) (limited to 'libavcodec/motionpixels_tablegen.c') 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; +} -- cgit v1.2.3