2020-03-22 18:00:50 +00:00
|
|
|
va_sources = [
|
|
|
|
'plugin.c',
|
2022-01-17 14:43:47 +00:00
|
|
|
'gstjpegdecoder.c',
|
2024-01-24 16:58:29 +00:00
|
|
|
'gstvaav1dec.c',
|
2023-08-29 10:21:36 +00:00
|
|
|
'gstvabase.c',
|
2020-10-08 17:39:56 +00:00
|
|
|
'gstvabasedec.c',
|
2022-03-25 13:48:05 +00:00
|
|
|
'gstvabaseenc.c',
|
2024-01-24 16:58:29 +00:00
|
|
|
'gstvabasetransform.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',
|
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-03-25 13:54:30 +00:00
|
|
|
'gstvah265enc.c',
|
2022-01-21 20:33:52 +00:00
|
|
|
'gstvajpegdec.c',
|
2024-01-30 15:46:36 +00:00
|
|
|
'gstvajpegenc.c',
|
2022-02-23 07:40:19 +00:00
|
|
|
'gstvampeg2dec.c',
|
2023-03-08 13:44:42 +00:00
|
|
|
'gstvapluginutils.c',
|
2020-03-22 18:00:50 +00:00
|
|
|
'gstvaprofile.c',
|
2020-10-12 17:20:10 +00:00
|
|
|
'gstvavp8dec.c',
|
|
|
|
'gstvavp9dec.c',
|
2024-01-30 10:18:31 +00:00
|
|
|
'gstvavp9enc.c',
|
2021-10-07 19:51:55 +00:00
|
|
|
'gstvavpp.c',
|
2020-03-22 18:00:50 +00:00
|
|
|
]
|
|
|
|
|
2023-03-03 19:37:06 +00:00
|
|
|
va_linux_sources = [
|
|
|
|
'gstvadevice_linux.c'
|
|
|
|
]
|
|
|
|
|
|
|
|
va_win32_sources = [
|
|
|
|
'gstvadevice_win32.cpp'
|
|
|
|
]
|
|
|
|
|
|
|
|
if host_system not in ['linux', 'windows']
|
2022-02-13 02:49:31 +00:00
|
|
|
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-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
|
2023-03-03 19:37:06 +00:00
|
|
|
|
|
|
|
extra_args = [
|
2022-03-21 13:03:53 +00:00
|
|
|
'-DLIBVA_DRIVERS_PATH="' + driverdir + '"',
|
|
|
|
'-DGST_USE_UNSTABLE_API',
|
|
|
|
]
|
2023-03-03 19:37:06 +00:00
|
|
|
extra_dep = []
|
|
|
|
c_std_arg = ['c_std=c99']
|
|
|
|
|
|
|
|
if host_system == 'linux'
|
2023-04-14 10:41:55 +00:00
|
|
|
libgudev_dep = dependency('gudev-1.0', required: get_option('udev'), allow_fallback: true)
|
2023-03-03 19:37:06 +00:00
|
|
|
if libgudev_dep.found()
|
|
|
|
extra_args += ['-DHAVE_GUDEV']
|
|
|
|
extra_dep += [libgudev_dep]
|
|
|
|
endif
|
|
|
|
va_sources += va_linux_sources
|
|
|
|
else
|
|
|
|
va_sources += va_win32_sources
|
|
|
|
endif
|
|
|
|
|
|
|
|
# MSVC does not understand c99
|
|
|
|
if cc.get_id() == 'msvc'
|
|
|
|
c_std_arg = ['c_std=c11']
|
|
|
|
endif
|
|
|
|
|
2022-09-12 06:48:50 +00:00
|
|
|
if libva_dep.version().version_compare('>= 1.15')
|
|
|
|
va_sources += 'gstvaav1enc.c'
|
|
|
|
endif
|
|
|
|
|
2020-03-22 18:00:50 +00:00
|
|
|
gstva = library('gstva',
|
|
|
|
va_sources,
|
2023-03-03 19:37:06 +00:00
|
|
|
c_args : gst_plugins_bad_args + extra_args,
|
|
|
|
cpp_args : gst_plugins_bad_args + extra_args,
|
2024-08-20 01:01:34 +00:00
|
|
|
include_directories : [configinc, libsinc],
|
2024-01-30 10:18:31 +00:00
|
|
|
dependencies : [gstcodecs_dep, gstva_dep, libgudev_dep, libm] + extra_dep,
|
2023-03-03 19:37:06 +00:00
|
|
|
override_options : c_std_arg,
|
2020-03-22 18:00:50 +00:00
|
|
|
install : true,
|
|
|
|
install_dir : plugins_install_dir,
|
|
|
|
)
|
|
|
|
plugins += [gstva]
|