From 88c29b13011175b77c8255d82d5fc1c1610345d5 Mon Sep 17 00:00:00 2001 From: James Ross-Gowan Date: Tue, 5 Dec 2017 23:47:59 +1100 Subject: vo_gpu: hwdec_dxva2dxgi: initial implementation This enables DXVA2 hardware decoding with ra_d3d11. It should be useful for Windows 7, where D3D11VA is not available. Images are transfered from D3D9 to D3D11 using D3D9Ex surface sharing[1]. Following Microsoft's recommendations, it uses a queue of shared surfaces, similar to Microsoft's ISurfaceQueue. This will hopefully prevent surface sharing from impacting parallelism and allow multiple D3D11 frames to be in-flight at once. [1]: https://msdn.microsoft.com/en-us/library/windows/desktop/ee913554.aspx --- wscript_build.py | 1 + 1 file changed, 1 insertion(+) (limited to 'wscript_build.py') diff --git a/wscript_build.py b/wscript_build.py index 5dc930c4f9..d8180f2cc8 100644 --- a/wscript_build.py +++ b/wscript_build.py @@ -384,6 +384,7 @@ def build(ctx): ( "video/out/filter_kernels.c" ), ( "video/out/d3d11/context.c", "d3d11" ), ( "video/out/d3d11/hwdec_d3d11va.c", "d3d11 && d3d-hwaccel" ), + ( "video/out/d3d11/hwdec_dxva2dxgi.c", "d3d11 && d3d9-hwaccel" ), ( "video/out/d3d11/ra_d3d11.c", "d3d11" ), ( "video/out/opengl/angle_dynamic.c", "egl-angle" ), ( "video/out/gpu/context.c" ), -- cgit v1.2.3