diff options
author | Laurent Aimar <fenrir@videolan.org> | 2010-01-20 18:54:51 +0000 |
---|---|---|
committer | Laurent Aimar <fenrir@videolan.org> | 2010-01-20 18:54:51 +0000 |
commit | 92c6a099bafd10e5f2fc8a157f033692f930f998 (patch) | |
tree | bedccf77965006135305196183bc9e36bfbe0748 /libavutil/pixdesc.c | |
parent | 3d7b42f97b40b398819cbc03944cf4dab16dafad (diff) | |
download | ffmpeg-92c6a099bafd10e5f2fc8a157f033692f930f998.tar.gz |
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.
Originally committed as revision 21353 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavutil/pixdesc.c')
-rw-r--r-- | libavutil/pixdesc.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libavutil/pixdesc.c b/libavutil/pixdesc.c index b689519fde..972da4578f 100644 --- a/libavutil/pixdesc.c +++ b/libavutil/pixdesc.c @@ -646,6 +646,12 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[PIX_FMT_NB] = { }, .flags = PIX_FMT_BE, }, + [PIX_FMT_DXVA2_VLD] = { + .name = "dxva2_vld", + .log2_chroma_w = 1, + .log2_chroma_h = 1, + .flags = PIX_FMT_HWACCEL, + }, }; int av_get_bits_per_pixel(const AVPixFmtDescriptor *pixdesc) |