4 'gstv4l2colorbalance.c',
5 'gstv4l2deviceprovider.c',
31 v4l2 = get_option('v4l2')
34 message('V4L2 plugin is disabled')
36 have_v4l2 = cc.has_header('linux/videodev2.h') or cc.has_header('sys/videodev2.h') or cc.has_header('sys/videoio.h')
37 if v4l2.enabled() and not have_v4l2
38 error('V4L2 is requested but headers were not found')
42 cdata.set('GST_V4L2_ENABLE_PROBE', get_option('v4l2-probe'))
45 message('building v4l2 plugin')
46 cdata.set('HAVE_GST_V4L2', true)
47 gudev_dep = dependency('gudev-1.0', version : '>=147', required : get_option('v4l2-gudev'))
48 cdata.set('HAVE_GUDEV', gudev_dep.found())
50 # libv4l2 is only needed for converting some obscure formats
51 # FIXME: Add a full list of the formats here
52 libv4l2_dep = dependency('libv4l2', required : get_option('v4l2-libv4l2'))
53 cdata.set('HAVE_LIBV4L2', libv4l2_dep.found())
55 gstv4l2 = library('gstvideo4linux2',
57 c_args : gst_plugins_good_args,
58 include_directories : [configinc, libsinc],
59 dependencies : [gstbase_dep, gstvideo_dep, gstallocators_dep, gudev_dep, libv4l2_dep],
61 install_dir : plugins_install_dir,
63 pkgconfig.generate(gstv4l2, install_dir : plugins_pkgconfig_install_dir)