mirror of
https://github.com/mpv-player/mpv
synced 2025-03-21 18:57:35 +00:00
build: pick up new libavcodec D3D hwaccel API
This was enabled for Libav already. The patches got merged into FFmpeg now.
This commit is contained in:
parent
e7990944de
commit
5cd7b1c8a6
12
wscript
12
wscript
@ -789,10 +789,13 @@ hwaccel_features = [
|
|||||||
'name': '--d3d-hwaccel-new',
|
'name': '--d3d-hwaccel-new',
|
||||||
'desc': 'DXVA2 and D3D11VA hwaccel (new API)',
|
'desc': 'DXVA2 and D3D11VA hwaccel (new API)',
|
||||||
'func': check_statement('libavcodec/version.h',
|
'func': check_statement('libavcodec/version.h',
|
||||||
'int x[(LIBAVCODEC_VERSION_INT >= AV_VERSION_INT(58, 4, 0) && '
|
'int x[(LIBAVCODEC_VERSION_INT >= AV_VERSION_INT(58, 4, 0) && '
|
||||||
' LIBAVCODEC_VERSION_MICRO < 100)'
|
' LIBAVCODEC_VERSION_MICRO < 100) ||'
|
||||||
' ? 1 : -1]',
|
' (LIBAVCODEC_VERSION_INT >= AV_VERSION_INT(57, 100, 100) && '
|
||||||
use='libav'),
|
' LIBAVCODEC_VERSION_MICRO >= 100)'
|
||||||
|
' ? 1 : -1]',
|
||||||
|
use='libav'),
|
||||||
|
'deps': [ 'd3d-hwaccel' ],
|
||||||
}, {
|
}, {
|
||||||
'name': '--cuda-hwaccel',
|
'name': '--cuda-hwaccel',
|
||||||
'desc': 'CUDA hwaccel',
|
'desc': 'CUDA hwaccel',
|
||||||
@ -803,6 +806,7 @@ hwaccel_features = [
|
|||||||
'name': 'sse4-intrinsics',
|
'name': 'sse4-intrinsics',
|
||||||
'desc': 'GCC SSE4 intrinsics for GPU memcpy',
|
'desc': 'GCC SSE4 intrinsics for GPU memcpy',
|
||||||
'deps_any': [ 'd3d-hwaccel' ],
|
'deps_any': [ 'd3d-hwaccel' ],
|
||||||
|
'deps_neg': [ 'd3d-hwaccel-new' ],
|
||||||
'func': check_cc(fragment=load_fragment('sse.c')),
|
'func': check_cc(fragment=load_fragment('sse.c')),
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
Loading…
Reference in New Issue
Block a user