mirror of
https://github.com/mpv-player/mpv
synced 2025-02-05 14:42:24 +00:00
build: new vaapi hwaccel API does not use av_image_copy_uc_from()
Not even Libav does. Whoops. The developer who wrote the FFmpeg code for this said he could not find any improvements when using the "GPU memcpy" ; instead, it made it actually slower on some hardware. It's not clear to what extent the "GPU memcpy" was needed for vaapi, but hopefully not very much (see #2317). This commit enables use of the new vaapi API by default with FFmpeg.
This commit is contained in:
parent
c06fd19d8f
commit
d16ba1f7f6
2
wscript
2
wscript
@ -824,7 +824,7 @@ hwaccel_features = [
|
||||
}, {
|
||||
'name': '--vaapi-hwaccel-new',
|
||||
'desc': 'libavcodec VAAPI hwaccel (new)',
|
||||
'deps': [ 'vaapi-hwaccel', 'avutil-imgcpy-uc' ],
|
||||
'deps': [ 'vaapi-hwaccel' ],
|
||||
'func': check_statement('libavcodec/version.h',
|
||||
'int x[(LIBAVCODEC_VERSION_INT >= AV_VERSION_INT(57, 26, 0) && '
|
||||
' LIBAVCODEC_VERSION_MICRO < 100) ||'
|
||||
|
Loading…
Reference in New Issue
Block a user