gstreamer/sys/v4l2codecs/meson.build
Nicolas Dufresne 6d9c98ae5a v4l2codecs: Add device enumeration
This introduces a GstV4L2CodecDevice structure and helper to retrieve a
list of CODEC device drivers. In order to find the device driver we
enumerate all media devices with UDEV. We then get the media controller
topology and locate a entity with function encoder or decoder and make
sure it is linked to two V4L2 IO entity pointing to the same device
node.
2020-03-31 09:34:05 -04:00

21 lines
585 B
Meson

v4l2codecs_sources = [
'plugin.c',
'gstv4l2codecdevice.c',
]
libgudev_dep = dependency('gudev-1.0', required: get_option('v4l2codecs'))
if libgudev_dep.found()
gstv4l2codecs = library('gstv4l2codecs',
v4l2codecs_sources,
c_args : gst_plugins_bad_args,
cpp_args: gst_plugins_bad_args,
include_directories : [configinc],
dependencies : [gstbase_dep, gstcodecs_dep, libgudev_dep],
install : true,
install_dir : plugins_install_dir,
)
pkgconfig.generate(gstv4l2codecs, install_dir : plugins_pkgconfig_install_dir)
plugins += [gstv4l2codecs]
endif