diff options
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; +} |