From 1e4fd996bb249a773bad5d57ac5b724be52a09af Mon Sep 17 00:00:00 2001 From: wm4 Date: Fri, 17 Feb 2017 13:32:27 +0100 Subject: 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. --- 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 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" ), -- cgit v1.2.3