Mercurial > libavcodec.hg
comparison motionpixels_tablegen.c @ 11570:e03e3df6fb7d libavcodec
Change/simplify the tableprint/tablegen API.
| author | reimar |
|---|---|
| date | Thu, 01 Apr 2010 17:11:47 +0000 |
| parents | 2980d9efc542 |
| children | 59f399926c12 |
comparison
equal
deleted
inserted
replaced
| 11569:731050abce41 | 11570:e03e3df6fb7d |
|---|---|
| 25 #define MAX_NEG_CROP 0 | 25 #define MAX_NEG_CROP 0 |
| 26 #define ff_cropTbl ((uint8_t *)NULL) | 26 #define ff_cropTbl ((uint8_t *)NULL) |
| 27 #include "motionpixels_tablegen.h" | 27 #include "motionpixels_tablegen.h" |
| 28 #include "tableprint.h" | 28 #include "tableprint.h" |
| 29 | 29 |
| 30 void tableinit(void) | 30 int main(void) |
| 31 { | 31 { |
| 32 motionpixels_tableinit(); | 32 motionpixels_tableinit(); |
| 33 | |
| 34 write_fileheader(); | |
| 35 | |
| 36 printf("static const YuvPixel mp_rgb_yuv_table[1 << 15] = {\n"); | |
| 37 write_int8_2d_array(mp_rgb_yuv_table, 1 << 15, 3); | |
| 38 printf("};\n"); | |
| 39 | |
| 40 return 0; | |
| 33 } | 41 } |
| 34 | |
| 35 const struct tabledef tables[] = { | |
| 36 { | |
| 37 "static const YuvPixel mp_rgb_yuv_table[1 << 15]", | |
| 38 write_int8_2d_array, | |
| 39 mp_rgb_yuv_table, | |
| 40 1 << 15, | |
| 41 3 | |
| 42 }, | |
| 43 { NULL } | |
| 44 }; |
