mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-07-28 01:05:07 +00:00
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.
21 lines
585 B
Meson
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
|