From 0754cbc83eb030ed3c0f0666e8b7c2481631e513 Mon Sep 17 00:00:00 2001 From: wm4 Date: Thu, 8 Jun 2017 21:16:11 +0200 Subject: 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.) --- wscript | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'wscript') diff --git a/wscript b/wscript index 1f2bd2fe61..163f25bc4a 100644 --- a/wscript +++ b/wscript @@ -813,6 +813,14 @@ hwaccel_features = [ 'desc': 'DXVA2 and D3D11VA hwaccel', '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', -- cgit v1.2.3