From a7110862c8a828e556dd2da0905c3e69f56eca29 Mon Sep 17 00:00:00 2001 From: Kevin Mitchell Date: Thu, 17 Mar 2016 23:28:29 -0700 Subject: vd_lavc: add d3d11va hwdec This commit adds the d3d11va-copy hwdec mode using the ffmpeg d3d11va api. Functions in common with dxva2 are handled in a separate decode/d3d.c file. A future commit will rewrite decode/dxva2.c to share this code. --- video/decode/vd_lavc.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'video/decode/vd_lavc.c') diff --git a/video/decode/vd_lavc.c b/video/decode/vd_lavc.c index 1cb5bc9897..478c6d56da 100644 --- a/video/decode/vd_lavc.c +++ b/video/decode/vd_lavc.c @@ -126,6 +126,7 @@ extern const struct vd_lavc_hwdec mp_vd_lavc_vaapi; extern const struct vd_lavc_hwdec mp_vd_lavc_vaapi_copy; extern const struct vd_lavc_hwdec mp_vd_lavc_dxva2; extern const struct vd_lavc_hwdec mp_vd_lavc_dxva2_copy; +extern const struct vd_lavc_hwdec mp_vd_lavc_d3d11va_copy; extern const struct vd_lavc_hwdec mp_vd_lavc_rpi; extern const struct vd_lavc_hwdec mp_vd_lavc_mediacodec; @@ -147,6 +148,9 @@ static const struct vd_lavc_hwdec *const hwdec_list[] = { &mp_vd_lavc_dxva2, &mp_vd_lavc_dxva2_copy, #endif +#if HAVE_D3D11VA_HWACCEL + &mp_vd_lavc_d3d11va_copy, +#endif #if HAVE_ANDROID &mp_vd_lavc_mediacodec, #endif -- cgit v1.2.3