From 31b5a211f4421cd593ef7eacda9efb9ee57a59d6 Mon Sep 17 00:00:00 2001 From: Sebastien Zwickert Date: Sat, 11 Jul 2015 17:21:39 +0200 Subject: hwdec: add VideoToolbox support VDA is being deprecated in OS X 10.11 so this is needed to keep hwdec working. The code needs libavcodec support which was added recently (to FFmpeg git, libav doesn't support it). Signed-off-by: Stefano Pigozzi --- wscript | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'wscript') diff --git a/wscript b/wscript index f6d5b6c194..687e2bfff3 100644 --- a/wscript +++ b/wscript @@ -727,6 +727,25 @@ hwaccel_features = [ 'desc': 'VDA with OpenGL', 'deps': [ 'gl-cocoa', 'vda-hwaccel' ], 'func': check_true + }, { + 'name': '--videotoolbox-hwaccel', + 'desc': 'libavcodec videotoolbox hwaccel', + 'func': compose_checks( + check_headers('VideoToolbox/VideoToolbox.h'), + check_statement('libavcodec/videotoolbox.h', + 'av_videotoolbox_alloc_context()', + framework='IOSurface', + use='libav')), + } , { + 'name': '--videotoolbox-gl', + 'desc': 'Videotoolbox with OpenGL', + 'deps': [ 'gl-cocoa', 'videotoolbox-hwaccel' ], + 'func': check_true + } , { + 'name': 'videotoolbox-vda-gl', + 'desc': 'Videotoolbox or VDA with OpenGL', + 'deps': [ 'videotoolbox-gl', 'vda-gl' ], + 'func': check_true }, { 'name': '--vdpau-hwaccel', 'desc': 'libavcodec VDPAU hwaccel', -- cgit v1.2.3