summaryrefslogtreecommitdiffstats
path: root/wscript
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2017-06-08 21:16:11 +0200
committerwm4 <wm4@nowhere>2017-06-08 21:51:25 +0200
commit0754cbc83eb030ed3c0f0666e8b7c2481631e513 (patch)
treeb4df7e128e0e65704ae62e5a19a73651def4f284 /wscript
parent79dc1834f5932b36b0a2b48388654d2c4dcd2817 (diff)
downloadmpv-0754cbc83eb030ed3c0f0666e8b7c2481631e513.tar.bz2
mpv-0754cbc83eb030ed3c0f0666e8b7c2481631e513.tar.xz
d3d: add support for new libavcodec hwaccel API
Unfortunately quite a mess, in particular due to the need to have some compatibility with the old API. (The old API will be supported only in short term.)
Diffstat (limited to 'wscript')
-rw-r--r--wscript8
1 files changed, 8 insertions, 0 deletions
diff --git a/wscript b/wscript
index 1f2bd2fe61..163f25bc4a 100644
--- a/wscript
+++ b/wscript
@@ -814,6 +814,14 @@ hwaccel_features = [
'deps': [ 'win32' ],
'func': check_true,
}, {
+ 'name': '--d3d-hwaccel-new',
+ 'desc': 'DXVA2 and D3D11VA hwaccel (new API)',
+ 'func': check_statement('libavcodec/version.h',
+ 'int x[(LIBAVCODEC_VERSION_INT >= AV_VERSION_INT(58, 4, 0) && '
+ ' LIBAVCODEC_VERSION_MICRO < 100)'
+ ' ? 1 : -1]',
+ use='libav'),
+ }, {
'name': '--cuda-hwaccel',
'desc': 'CUDA hwaccel',
'deps': [ 'gl' ],