2020-03-22 18:00:50 +00:00
|
|
|
va_sources = [
|
|
|
|
'plugin.c',
|
|
|
|
'gstvaallocator.c',
|
2020-10-08 17:39:56 +00:00
|
|
|
'gstvabasedec.c',
|
2021-02-17 16:15:22 +00:00
|
|
|
'gstvabasetransform.c',
|
2020-03-22 18:00:50 +00:00
|
|
|
'gstvacaps.c',
|
|
|
|
'gstvadecoder.c',
|
2021-08-23 09:24:40 +00:00
|
|
|
'gstvadeinterlace.c',
|
2020-03-22 18:00:50 +00:00
|
|
|
'gstvadevice.c',
|
2021-05-06 10:23:23 +00:00
|
|
|
'gstvadisplay_priv.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',
|
2021-10-05 11:36:56 +00:00
|
|
|
'gstvasurfacecopy.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',
|
2021-10-07 19:51:55 +00:00
|
|
|
'gstvavpp.c',
|
|
|
|
'vasurfaceimage.c',
|
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
|
|
|
|
|
2021-10-03 14:53:54 +00:00
|
|
|
libgudev_dep = dependency('gudev-1.0', required: false)
|
2021-10-03 13:45:58 +00:00
|
|
|
|
|
|
|
if not gstva_dep.found() or not libgudev_dep.found()
|
2021-05-06 10:23:23 +00:00
|
|
|
if va_option.enabled()
|
|
|
|
error('The va plugin was enabled explicity, but required dependencies were not found.')
|
|
|
|
endif
|
|
|
|
subdir_done()
|
|
|
|
endif
|
2020-03-22 18:00:50 +00:00
|
|
|
|
2021-09-30 15:38:33 +00:00
|
|
|
if libva_dep.version().version_compare('>= 1.8')
|
2021-01-19 07:36:29 +00:00
|
|
|
va_sources += 'gstvaav1dec.c'
|
|
|
|
endif
|
|
|
|
|
2021-10-03 14:53:54 +00:00
|
|
|
cdata.set10('HAVE_GUDEV', libgudev_dep.found())
|
2020-03-22 18:00:50 +00:00
|
|
|
|
2021-10-19 17:18:25 +00:00
|
|
|
driverdir = libva_dep.get_variable('driverdir', default_value: '')
|
2020-03-22 18:00:50 +00:00
|
|
|
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],
|
2021-10-03 13:45:58 +00:00
|
|
|
dependencies : [gstvideo_dep, gstcodecs_dep, gstallocators_dep, gstva_dep, libgudev_dep] + extra_dep,
|
2020-03-22 18:00:50 +00:00
|
|
|
install : true,
|
|
|
|
install_dir : plugins_install_dir,
|
|
|
|
)
|
|
|
|
pkgconfig.generate(gstva, install_dir : plugins_pkgconfig_install_dir)
|
|
|
|
plugins += [gstva]
|