diff options
author | wm4 <wm4@nowhere> | 2017-06-08 21:16:11 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2017-06-08 21:51:25 +0200 |
commit | 0754cbc83eb030ed3c0f0666e8b7c2481631e513 (patch) | |
tree | b4df7e128e0e65704ae62e5a19a73651def4f284 /wscript | |
parent | 79dc1834f5932b36b0a2b48388654d2c4dcd2817 (diff) | |
download | mpv-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-- | wscript | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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' ], |