diff options
author | wm4 <wm4@nowhere> | 2014-10-25 19:23:46 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-10-25 19:25:22 +0200 |
commit | 423a7de67625749a7563ddbd1094091dee7b40ae (patch) | |
tree | cc5691cf2e132b58e9b44204ec4fa6faeaff718f /video/img_format.h | |
parent | c63c0d1cb1e6151d4690c60503920cdfcb7b35dd (diff) | |
download | mpv-423a7de67625749a7563ddbd1094091dee7b40ae.tar.bz2 mpv-423a7de67625749a7563ddbd1094091dee7b40ae.tar.xz |
video: initial dxva2 support
Shamelessly stolen from ffmpeg. It probably doesn't work - you can debug
it yourself.
Diffstat (limited to 'video/img_format.h')
-rw-r--r-- | video/img_format.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/video/img_format.h b/video/img_format.h index 3eb6ba16a8..44c5505f68 100644 --- a/video/img_format.h +++ b/video/img_format.h @@ -256,6 +256,7 @@ enum mp_imgfmt { IMGFMT_VDPAU_OUTPUT, // VdpOutputSurface IMGFMT_VDA, IMGFMT_VAAPI, + IMGFMT_DXVA2, IMGFMT_END, @@ -332,7 +333,7 @@ static inline bool IMGFMT_IS_RGB(int fmt) #define IMGFMT_IS_HWACCEL(fmt) \ ((fmt) == IMGFMT_VDPAU || (fmt) == IMGFMT_VDPAU_OUTPUT || \ - (fmt) == IMGFMT_VAAPI || (fmt) == IMGFMT_VDA) + (fmt) == IMGFMT_VAAPI || (fmt) == IMGFMT_VDA || (fmt) == IMGFMT_DXVA2) int mp_imgfmt_from_name(bstr name, bool allow_hwaccel); char *mp_imgfmt_to_name_buf(char *buf, size_t buf_size, int fmt); |