From 423a7de67625749a7563ddbd1094091dee7b40ae Mon Sep 17 00:00:00 2001 From: wm4 Date: Sat, 25 Oct 2014 19:23:46 +0200 Subject: video: initial dxva2 support Shamelessly stolen from ffmpeg. It probably doesn't work - you can debug it yourself. --- video/img_format.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'video/img_format.h') 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); -- cgit v1.2.3