mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-14 05:12:09 +00:00
f1a1901b8b
This pair of elements, inspired from shmsink/shmsrc, send unix file descriptors (e.g. memfd, dmabuf) from one sink to multiple source elements in other processes. The unixfdsink proposes a memfd/shm allocator, which causes for example videotestsrc to write directly into memories that can be transfered to other processes without copying. Sponsored-by: Netflix Inc. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5328>
23 lines
539 B
Meson
23 lines
539 B
Meson
sources = [
|
|
'gstunixfd.c',
|
|
'gstunixfdsink.c',
|
|
'gstunixfdsrc.c',
|
|
]
|
|
|
|
gstallocators_dep = dependency('gstreamer-allocators-1.0')
|
|
|
|
gio_unix_dep = dependency('gio-unix-2.0', required: get_option('unixfd'))
|
|
if not gio_unix_dep.found()
|
|
subdir_done()
|
|
endif
|
|
|
|
gstunixfd_plugin = library('gstunixfd',
|
|
sources,
|
|
c_args: gst_plugins_bad_args,
|
|
include_directories: [configinc],
|
|
dependencies : [gstbase_dep, gstallocators_dep, gio_dep, gio_unix_dep],
|
|
install : true,
|
|
install_dir : plugins_install_dir,
|
|
)
|
|
|
|
plugins += [gstunixfd_plugin]
|