Mercurial > libavcodec.hg
annotate motionpixels_tablegen.c @ 10952:ea8f891d997d libavcodec
H264 DXVA2 implementation
It allows VLD H264 decoding using DXVA2 (GPU assisted decoding API under
VISTA and Windows 7).
It is implemented by using AVHWAccel API. It has been tested successfully
for some time in VLC using an nvidia card on Windows 7.
To compile it, you need to have the system header dxva2api.h (either from
microsoft or using http://downloads.videolan.org/pub/videolan/testing/contrib/dxva2api.h)
The generated libavcodec.dll does not depend directly on any new lib as
the necessary objects are given by the application using FFmpeg.
| author | fenrir |
|---|---|
| date | Wed, 20 Jan 2010 18:54:51 +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 }; |
