2020-03-22 18:00:50 +00:00
|
|
|
va_sources = [
|
|
|
|
'plugin.c',
|
|
|
|
'gstvaallocator.c',
|
2020-10-08 17:39:56 +00:00
|
|
|
'gstvabasedec.c',
|
2020-03-22 18:00:50 +00:00
|
|
|
'gstvacaps.c',
|
|
|
|
'gstvadecoder.c',
|
|
|
|
'gstvadisplay.c',
|
|
|
|
'gstvadisplay_drm.c',
|
|
|
|
'gstvadisplay_wrapped.c',
|
|
|
|
'gstvadevice.c',
|
2020-08-16 07:18:11 +00:00
|
|
|
'gstvafilter.c',
|
2020-03-22 18:00:50 +00:00
|
|
|
'gstvah264dec.c',
|
2020-10-21 13:01:31 +00:00
|
|
|
'gstvah265dec.c',
|
2020-03-22 18:00:50 +00:00
|
|
|
'gstvapool.c',
|
|
|
|
'gstvaprofile.c',
|
2020-08-02 13:51:08 +00:00
|
|
|
'gstvautils.c',
|
2020-03-22 18:00:50 +00:00
|
|
|
'gstvavideoformat.c',
|
2020-10-12 17:20:10 +00:00
|
|
|
'gstvavp8dec.c',
|
|
|
|
'gstvavp9dec.c',
|
2020-12-18 14:28:41 +00:00
|
|
|
'gstvampeg2dec.c',
|
2020-08-16 07:18:11 +00:00
|
|
|
'gstvavpp.c'
|
2020-03-22 18:00:50 +00:00
|
|
|
]
|
|
|
|
|
2021-01-07 14:47:35 +00:00
|
|
|
have_va = false
|
2020-03-22 18:00:50 +00:00
|
|
|
va_option = get_option('va')
|
2021-01-07 14:47:35 +00:00
|
|
|
if va_option.disabled() or host_system != 'linux'
|
2020-03-22 18:00:50 +00:00
|
|
|
subdir_done()
|
|
|
|
endif
|
|
|
|
|
|
|
|
libva_req = ['>= 1.6']
|
|
|
|
|
|
|
|
libva_dep = dependency('libva', version: libva_req, required: va_option)
|
|
|
|
libva_drm_dep = dependency('libva-drm', version: libva_req, required: va_option)
|
|
|
|
libgudev_dep = dependency('gudev-1.0', required: va_option)
|
|
|
|
libdrm_dep = dependency('libdrm', required: false,
|
|
|
|
fallback: ['libdrm', 'ext_libdrm'])
|
|
|
|
|
|
|
|
have_va = libva_dep.found() and libva_drm_dep.found()
|
|
|
|
if not (have_va and libgudev_dep.found())
|
|
|
|
if va_option.enabled()
|
|
|
|
error('The va plugin was enabled explicity, but required dependencies were not found.')
|
|
|
|
endif
|
|
|
|
subdir_done()
|
|
|
|
endif
|
|
|
|
|
|
|
|
cdata.set10('HAVE_LIBDRM', libdrm_dep.found())
|
|
|
|
|
|
|
|
driverdir = libva_dep.get_pkgconfig_variable('driverdir')
|
|
|
|
if driverdir == ''
|
|
|
|
driverdir = join_paths(get_option('prefix'), get_option('libdir'), 'dri')
|
|
|
|
endif
|
|
|
|
gstva_cargs = ['-DLIBVA_DRIVERS_PATH="' + driverdir + '"']
|
|
|
|
|
|
|
|
gstva = library('gstva',
|
|
|
|
va_sources,
|
|
|
|
c_args : gst_plugins_bad_args + extra_c_args + gstva_cargs + ['-std=c99'],
|
|
|
|
include_directories : [configinc],
|
|
|
|
dependencies : [gstbase_dep, gstvideo_dep, gstcodecs_dep, libva_dep, gstallocators_dep, libva_drm_dep, libgudev_dep, libdrm_dep] + extra_dep,
|
|
|
|
install : true,
|
|
|
|
install_dir : plugins_install_dir,
|
|
|
|
)
|
|
|
|
pkgconfig.generate(gstva, install_dir : plugins_pkgconfig_install_dir)
|
|
|
|
plugins += [gstva]
|