mirror of
https://github.com/mpv-player/mpv.git
synced 2025-12-28 05:33:14 +00:00
vo: add new vaapi-wayland driver
This driver makes use of dmabuffer and viewporter interfaces to enable efficient display of vaapi surfaces, avoiding any unnecessary colour space conversion, and avoiding scaling or colour conversion using GPU shader resources.
This commit is contained in:
@@ -1432,10 +1432,16 @@ vaapi_wayland = {
|
||||
'deps': dependency('libva-wayland', version: '>= 1.1.0', required: get_option('vaapi-wayland')),
|
||||
}
|
||||
vaapi_wayland += {'use': vaapi['use'] and egl_wayland['use'] and vaapi_wayland['deps'].found()}
|
||||
|
||||
if vaapi_wayland['use']
|
||||
features += vaapi_wayland['name']
|
||||
endif
|
||||
|
||||
if vaapi_wayland['use'] and memfd_create
|
||||
features += 'vaapi-wayland-memfd'
|
||||
sources += files('video/out/vo_vaapi_wayland.c')
|
||||
endif
|
||||
|
||||
vaapi_x11 = {
|
||||
'name': 'vaapi-x11',
|
||||
'deps': dependency('libva-x11', version: '>= 1.1.0', required: get_option('vaapi-x11')),
|
||||
|
||||
Reference in New Issue
Block a user