2020-03-22 18:00:50 +00:00
|
|
|
va_sources = [
|
|
|
|
'plugin.c',
|
2022-01-17 14:43:47 +00:00
|
|
|
'gstjpegdecoder.c',
|
2020-10-08 17:39:56 +00:00
|
|
|
'gstvabasedec.c',
|
2021-02-17 16:15:22 +00:00
|
|
|
'gstvabasetransform.c',
|
2022-03-25 13:48:05 +00:00
|
|
|
'gstvabaseenc.c',
|
2020-03-22 18:00:50 +00:00
|
|
|
'gstvacaps.c',
|
2022-04-26 16:06:17 +00:00
|
|
|
'gstvacompositor.c',
|
2020-03-22 18:00:50 +00:00
|
|
|
'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',
|
2022-02-23 07:40:19 +00:00
|
|
|
'gstvaencoder.c',
|
2020-08-16 07:18:11 +00:00
|
|
|
'gstvafilter.c',
|
2020-03-22 18:00:50 +00:00
|
|
|
'gstvah264dec.c',
|
2022-02-23 07:40:19 +00:00
|
|
|
'gstvah264enc.c',
|
2020-10-21 13:01:31 +00:00
|
|
|
'gstvah265dec.c',
|
2022-01-21 20:33:52 +00:00
|
|
|
'gstvajpegdec.c',
|
2022-02-23 07:40:19 +00:00
|
|
|
'gstvampeg2dec.c',
|
2020-03-22 18:00:50 +00:00
|
|
|
'gstvaprofile.c',
|
2020-10-12 17:20:10 +00:00
|
|
|
'gstvavp8dec.c',
|
|
|
|
'gstvavp9dec.c',
|
2021-10-07 19:51:55 +00:00
|
|
|
'gstvavpp.c',
|
2020-03-22 18:00:50 +00:00
|
|
|
]
|
|
|
|
|
2022-02-13 02:49:31 +00:00
|
|
|
if host_system != 'linux'
|
|
|
|
subdir_done()
|
|
|
|
endif
|
|
|
|
|
|
|
|
va_option = get_option('va').require(gstva_dep.found(), error_message: 'va plugin requires libgstva.')
|
|
|
|
if va_option.disabled()
|
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)
|
2022-02-07 10:27:57 +00:00
|
|
|
cdata.set10('HAVE_GUDEV', libgudev_dep.found())
|
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-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
|
2022-03-21 13:03:53 +00:00
|
|
|
gstva_cargs = [
|
|
|
|
'-DLIBVA_DRIVERS_PATH="' + driverdir + '"',
|
|
|
|
'-std=c99',
|
|
|
|
'-DGST_USE_UNSTABLE_API',
|
|
|
|
]
|
2020-03-22 18:00:50 +00:00
|
|
|
|
|
|
|
gstva = library('gstva',
|
|
|
|
va_sources,
|
2022-03-21 13:03:53 +00:00
|
|
|
c_args : gst_plugins_bad_args + gstva_cargs,
|
2020-03-22 18:00:50 +00:00
|
|
|
include_directories : [configinc],
|
2022-02-23 07:40:19 +00:00
|
|
|
dependencies : [gstcodecs_dep, gstva_dep, libgudev_dep] + extra_dep,
|
2020-03-22 18:00:50 +00:00
|
|
|
install : true,
|
|
|
|
install_dir : plugins_install_dir,
|
|
|
|
)
|
|
|
|
plugins += [gstva]
|