summaryrefslogtreecommitdiffstats
path: root/video/fmt-conversion.c
diff options
context:
space:
mode:
authorKevin Mitchell <kevmitch@gmail.com>2016-03-17 23:28:29 -0700
committerKevin Mitchell <kevmitch@gmail.com>2016-03-30 09:01:27 -0700
commita7110862c8a828e556dd2da0905c3e69f56eca29 (patch)
tree2596247d8712307a370e6d48a254a7e8f29ae94f /video/fmt-conversion.c
parent872d0838a4040e6ed275e4510741c8a54035ff73 (diff)
downloadmpv-a7110862c8a828e556dd2da0905c3e69f56eca29.tar.bz2
mpv-a7110862c8a828e556dd2da0905c3e69f56eca29.tar.xz
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.
Diffstat (limited to 'video/fmt-conversion.c')
-rw-r--r--video/fmt-conversion.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/video/fmt-conversion.c b/video/fmt-conversion.c
index c23b7bb232..53342060b1 100644
--- a/video/fmt-conversion.c
+++ b/video/fmt-conversion.c
@@ -109,6 +109,9 @@ static const struct {
#endif
{IMGFMT_VAAPI, AV_PIX_FMT_VAAPI_VLD},
{IMGFMT_DXVA2, AV_PIX_FMT_DXVA2_VLD},
+#if HAVE_D3D11VA_HWACCEL
+ {IMGFMT_D3D11VA, AV_PIX_FMT_D3D11VA_VLD},
+#endif
#if HAVE_AV_PIX_FMT_MMAL
{IMGFMT_MMAL, AV_PIX_FMT_MMAL},
#endif