summaryrefslogtreecommitdiffstats
path: root/wscript_build.py
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2017-02-17 13:32:27 +0100
committerwm4 <wm4@nowhere>2017-02-17 13:32:27 +0100
commit1e4fd996bb249a773bad5d57ac5b724be52a09af (patch)
treeb8d866473894b8087b941b4fee21bbfd317a8d92 /wscript_build.py
parente8137ee88154b496b2370bbdd93cd3cb3564dc86 (diff)
downloadmpv-1e4fd996bb249a773bad5d57ac5b724be52a09af.tar.bz2
mpv-1e4fd996bb249a773bad5d57ac5b724be52a09af.tar.xz
videotoolbox: factor some duplicated code
The code for copying a videotoolbox surface to mp_image was duplicated (with some minor differences - I picked the hw_videotoolbox.c version, because it was "better"). mp_imgfmt_from_cvpixelformat() is somewhat duplicated with the vt_formats[] table, but this will be fixed in a later commit, and moving the function to shared code is preparation.
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 4f65f1ba0f..e357e95a43 100644
--- a/wscript_build.py
+++ b/wscript_build.py
@@ -303,6 +303,7 @@ def build(ctx):
( "video/vaapi.c", "vaapi" ),
( "video/vdpau.c", "vdpau" ),
( "video/vdpau_mixer.c", "vdpau" ),
+ ( "video/vt.c", "videotoolbox-hwaccel" ),
( "video/decode/d3d.c", "win32" ),
( "video/decode/dec_video.c"),
( "video/decode/hw_cuda.c", "cuda-hwaccel" ),