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