summaryrefslogtreecommitdiffstats
path: root/wscript_build.py
diff options
context:
space:
mode:
authorKevin Mitchell <kevmitch@gmail.com>2016-02-07 20:29:14 -0800
committerKevin Mitchell <kevmitch@gmail.com>2016-02-14 11:01:12 -0800
commit06f1e934dbd8fdaeed8ee46bfccc7d2f2da325a7 (patch)
treedde33eff2dbb8a50944d390d99b8ed47621caa30 /wscript_build.py
parent543f6df2a6c438809b93815f2752a9f56ce9c558 (diff)
downloadmpv-06f1e934dbd8fdaeed8ee46bfccc7d2f2da325a7.tar.bz2
mpv-06f1e934dbd8fdaeed8ee46bfccc7d2f2da325a7.tar.xz
dxva2: use mp_image pool for d3d surfaces
This is required so that the individual surfaces can pass beyond the dxva2 decoder and be passed to the vo. This also adds additional data to mp_image->planes[0] for IMGFMT_DXVA2, which is required for maintaining and releasing the surface even if the decoder code is uninited. The IDirectXVideoDecoder itself is encapsulated together with its surface pool and configuration in a dxva2_decoder structure whose creation and destruction is managed by talloc.
Diffstat (limited to 'wscript_build.py')
-rw-r--r--wscript_build.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/wscript_build.py b/wscript_build.py
index 090ac96181..75dc763f35 100644
--- a/wscript_build.py
+++ b/wscript_build.py
@@ -280,6 +280,7 @@ def build(ctx):
( "video/mp_image.c" ),
( "video/mp_image_pool.c" ),
( "video/sws_utils.c" ),
+ ( "video/dxva2.c", "dxva2-hwaccel" ),
( "video/vaapi.c", "vaapi" ),
( "video/vdpau.c", "vdpau" ),
( "video/vdpau_mixer.c", "vdpau" ),