Mercurial > libavcodec.hg
annotate motionpixels_tablegen.c @ 10623:f52d07b169b4 libavcodec
ARM: NEON optimised H264 16x16, 8x8 pred
author | mru |
---|---|
date | Wed, 02 Dec 2009 14:56:45 +0000 |
parents | 2980d9efc542 |
children | e03e3df6fb7d |
rev | line source |
---|---|
10581
2980d9efc542
Add support for hardcoding the motionpixels rgb to yuv table.
reimar
parents:
diff
changeset
|
1 /* |
2980d9efc542
Add support for hardcoding the motionpixels rgb to yuv table.
reimar
parents:
diff
changeset
|
2 * Generate a header file for hardcoded motionpixels RGB to YUV table |
2980d9efc542
Add support for hardcoding the motionpixels rgb to yuv table.
reimar
parents:
diff
changeset
|
3 * |
2980d9efc542
Add support for hardcoding the motionpixels rgb to yuv table.
reimar
parents:
diff
changeset
|
4 * Copyright (c) 2009 Reimar Döffinger <Reimar.Doeffinger@gmx.de> |
2980d9efc542
Add support for hardcoding the motionpixels rgb to yuv table.
reimar
parents:
diff
changeset
|
5 * |
2980d9efc542
Add support for hardcoding the motionpixels rgb to yuv table.
reimar
parents:
diff
changeset
|
6 * This file is part of FFmpeg. |
2980d9efc542
Add support for hardcoding the motionpixels rgb to yuv table.
reimar
parents:
diff
changeset
|
7 * |
2980d9efc542
Add support for hardcoding the motionpixels rgb to yuv table.
reimar
parents:
diff
changeset
|
8 * FFmpeg is free software; you can redistribute it and/or |
2980d9efc542
Add support for hardcoding the motionpixels rgb to yuv table.
reimar
parents:
diff
changeset
|
9 * modify it under the terms of the GNU Lesser General Public |
2980d9efc542
Add support for hardcoding the motionpixels rgb to yuv table.
reimar
parents:
diff
changeset
|
10 * License as published by the Free Software Foundation; either |
2980d9efc542
Add support for hardcoding the motionpixels rgb to yuv table.
reimar
parents:
diff
changeset
|
11 * version 2.1 of the License, or (at your option) any later version. |
2980d9efc542
Add support for hardcoding the motionpixels rgb to yuv table.
reimar
parents:
diff
changeset
|
12 * |
2980d9efc542
Add support for hardcoding the motionpixels rgb to yuv table.
reimar
parents:
diff
changeset
|
13 * FFmpeg is distributed in the hope that it will be useful, |
2980d9efc542
Add support for hardcoding the motionpixels rgb to yuv table.
reimar
parents:
diff
changeset
|
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
2980d9efc542
Add support for hardcoding the motionpixels rgb to yuv table.
reimar
parents:
diff
changeset
|
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
2980d9efc542
Add support for hardcoding the motionpixels rgb to yuv table.
reimar
parents:
diff
changeset
|
16 * Lesser General Public License for more details. |
2980d9efc542
Add support for hardcoding the motionpixels rgb to yuv table.
reimar
parents:
diff
changeset
|
17 * |
2980d9efc542
Add support for hardcoding the motionpixels rgb to yuv table.
reimar
parents:
diff
changeset
|
18 * You should have received a copy of the GNU Lesser General Public |
2980d9efc542
Add support for hardcoding the motionpixels rgb to yuv table.
reimar
parents:
diff
changeset
|
19 * License along with FFmpeg; if not, write to the Free Software |
2980d9efc542
Add support for hardcoding the motionpixels rgb to yuv table.
reimar
parents:
diff
changeset
|
20 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
2980d9efc542
Add support for hardcoding the motionpixels rgb to yuv table.
reimar
parents:
diff
changeset
|
21 */ |
2980d9efc542
Add support for hardcoding the motionpixels rgb to yuv table.
reimar
parents:
diff
changeset
|
22 |
2980d9efc542
Add support for hardcoding the motionpixels rgb to yuv table.
reimar
parents:
diff
changeset
|
23 #include <stdlib.h> |
2980d9efc542
Add support for hardcoding the motionpixels rgb to yuv table.
reimar
parents:
diff
changeset
|
24 #define CONFIG_HARDCODED_TABLES 0 |
2980d9efc542
Add support for hardcoding the motionpixels rgb to yuv table.
reimar
parents:
diff
changeset
|
25 #define MAX_NEG_CROP 0 |
2980d9efc542
Add support for hardcoding the motionpixels rgb to yuv table.
reimar
parents:
diff
changeset
|
26 #define ff_cropTbl ((uint8_t *)NULL) |
2980d9efc542
Add support for hardcoding the motionpixels rgb to yuv table.
reimar
parents:
diff
changeset
|
27 #include "motionpixels_tablegen.h" |
2980d9efc542
Add support for hardcoding the motionpixels rgb to yuv table.
reimar
parents:
diff
changeset
|
28 #include "tableprint.h" |
2980d9efc542
Add support for hardcoding the motionpixels rgb to yuv table.
reimar
parents:
diff
changeset
|
29 |
2980d9efc542
Add support for hardcoding the motionpixels rgb to yuv table.
reimar
parents:
diff
changeset
|
30 void tableinit(void) |
2980d9efc542
Add support for hardcoding the motionpixels rgb to yuv table.
reimar
parents:
diff
changeset
|
31 { |
2980d9efc542
Add support for hardcoding the motionpixels rgb to yuv table.
reimar
parents:
diff
changeset
|
32 motionpixels_tableinit(); |
2980d9efc542
Add support for hardcoding the motionpixels rgb to yuv table.
reimar
parents:
diff
changeset
|
33 } |
2980d9efc542
Add support for hardcoding the motionpixels rgb to yuv table.
reimar
parents:
diff
changeset
|
34 |
2980d9efc542
Add support for hardcoding the motionpixels rgb to yuv table.
reimar
parents:
diff
changeset
|
35 const struct tabledef tables[] = { |
2980d9efc542
Add support for hardcoding the motionpixels rgb to yuv table.
reimar
parents:
diff
changeset
|
36 { |
2980d9efc542
Add support for hardcoding the motionpixels rgb to yuv table.
reimar
parents:
diff
changeset
|
37 "static const YuvPixel mp_rgb_yuv_table[1 << 15]", |
2980d9efc542
Add support for hardcoding the motionpixels rgb to yuv table.
reimar
parents:
diff
changeset
|
38 write_int8_2d_array, |
2980d9efc542
Add support for hardcoding the motionpixels rgb to yuv table.
reimar
parents:
diff
changeset
|
39 mp_rgb_yuv_table, |
2980d9efc542
Add support for hardcoding the motionpixels rgb to yuv table.
reimar
parents:
diff
changeset
|
40 1 << 15, |
2980d9efc542
Add support for hardcoding the motionpixels rgb to yuv table.
reimar
parents:
diff
changeset
|
41 3 |
2980d9efc542
Add support for hardcoding the motionpixels rgb to yuv table.
reimar
parents:
diff
changeset
|
42 }, |
2980d9efc542
Add support for hardcoding the motionpixels rgb to yuv table.
reimar
parents:
diff
changeset
|
43 { NULL } |
2980d9efc542
Add support for hardcoding the motionpixels rgb to yuv table.
reimar
parents:
diff
changeset
|
44 }; |