summaryrefslogtreecommitdiffstats
path: root/wscript
diff options
context:
space:
mode:
Diffstat (limited to 'wscript')
-rw-r--r--wscript19
1 files changed, 19 insertions, 0 deletions
diff --git a/wscript b/wscript
index f6d5b6c194..687e2bfff3 100644
--- a/wscript
+++ b/wscript
@@ -728,6 +728,25 @@ hwaccel_features = [
'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',
'deps': [ 'vdpau' ],