diff options
author | cehoyos <cehoyos@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2009-11-10 19:11:13 +0000 |
---|---|---|
committer | cehoyos <cehoyos@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2009-11-10 19:11:13 +0000 |
commit | 2b93a48ac8e092a74001b406ed9a20b6025faee6 (patch) | |
tree | 731705f120eea604a9337654ef170e89c48c9506 /libvo/vo_vdpau.c | |
parent | a63e8dce213e797cbf4c955f28ed03b0fabda0b9 (diff) | |
download | mpv-2b93a48ac8e092a74001b406ed9a20b6025faee6.tar.bz2 mpv-2b93a48ac8e092a74001b406ed9a20b6025faee6.tar.xz |
Support VDPAU hardware accelerated decoding of MPEG-4 ASP on capable
hardware.
Original patch by NVIDIA corporation.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29885 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo/vo_vdpau.c')
-rw-r--r-- | libvo/vo_vdpau.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libvo/vo_vdpau.c b/libvo/vo_vdpau.c index 8a364763c4..0b7cef9b1d 100644 --- a/libvo/vo_vdpau.c +++ b/libvo/vo_vdpau.c @@ -579,6 +579,9 @@ static int create_vdp_decoder(uint32_t format, uint32_t width, uint32_t height, case IMGFMT_VDPAU_VC1: vdp_decoder_profile = VDP_DECODER_PROFILE_VC1_ADVANCED; break; + case IMGFMT_VDPAU_MPEG4: + vdp_decoder_profile = VDP_DECODER_PROFILE_MPEG4_PART2_ASP; + break; default: goto err_out; } @@ -1112,6 +1115,7 @@ static int query_format(uint32_t format) case IMGFMT_VDPAU_H264: case IMGFMT_VDPAU_WMV3: case IMGFMT_VDPAU_VC1: + case IMGFMT_VDPAU_MPEG4: if (create_vdp_decoder(format, 48, 48, 2)) return default_flags; } |