mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-02 14:36:41 +00:00
990fbb3b52
In order to other plugins use gstva objects, such as allocators and buffer pools, this merge request move them from the va plugin to the gstva library. This objects are not exposed in <gst/va/gstva.h> since they are not expected to be used by users, only by plugin implementators. Because of the surface copy design, which is used to implement allocator's mem_copy() virtual function, depends on the vafilter, which is kept inside the plugin, memory copy through VAPosproc is disabled and removed temporarly. Also added some missing parameter validation. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2048>
58 lines
1.4 KiB
Meson
58 lines
1.4 KiB
Meson
va_sources = [
|
|
'plugin.c',
|
|
'gstvabasedec.c',
|
|
'gstvabasetransform.c',
|
|
'gstvacaps.c',
|
|
'gstvadecoder.c',
|
|
'gstvadeinterlace.c',
|
|
'gstvaencoder.c',
|
|
'gstvadevice.c',
|
|
'gstvadisplay_priv.c',
|
|
'gstvaencoder.c',
|
|
'gstvafilter.c',
|
|
'gstvah264dec.c',
|
|
'gstvah264enc.c',
|
|
'gstvah265dec.c',
|
|
'gstvampeg2dec.c',
|
|
'gstvaprofile.c',
|
|
'gstvavp8dec.c',
|
|
'gstvavp9dec.c',
|
|
'gstvavpp.c',
|
|
]
|
|
|
|
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()
|
|
subdir_done()
|
|
endif
|
|
|
|
libgudev_dep = dependency('gudev-1.0', required: false)
|
|
cdata.set10('HAVE_GUDEV', libgudev_dep.found())
|
|
|
|
if libva_dep.version().version_compare('>= 1.8')
|
|
va_sources += 'gstvaav1dec.c'
|
|
endif
|
|
|
|
driverdir = libva_dep.get_variable('driverdir', default_value: '')
|
|
if driverdir == ''
|
|
driverdir = join_paths(get_option('prefix'), get_option('libdir'), 'dri')
|
|
endif
|
|
gstva_cargs = [
|
|
'-DLIBVA_DRIVERS_PATH="' + driverdir + '"',
|
|
'-std=c99',
|
|
'-DGST_USE_UNSTABLE_API',
|
|
]
|
|
|
|
gstva = library('gstva',
|
|
va_sources,
|
|
c_args : gst_plugins_bad_args + gstva_cargs,
|
|
include_directories : [configinc],
|
|
dependencies : [gstcodecs_dep, gstva_dep, libgudev_dep] + extra_dep,
|
|
install : true,
|
|
install_dir : plugins_install_dir,
|
|
)
|
|
pkgconfig.generate(gstva, install_dir : plugins_pkgconfig_install_dir)
|
|
plugins += [gstva]
|