libcamera/src
Laurent Pinchart 6225d647b4 pipeline: uvcvideo: Fail match() if the camera has no supported format
A UVC device could expose only formats that are not supported by
libcamera. The pipeline handler doesn't currently consider this as an
error, and happily creates a camera. The camera won't be usable, and
worse, generateConfiguration() and validate() will crash as those
functions assume that at least one format is supported.

Fix this by failing match() if none of the formats exposed by the camera
are supported. Log an error message in that case to notify the user.

Bug: https://bugs.libcamera.org/show_bug.cgi?id=145
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Umang Jain <umang.jain@ideasonboard.com>
Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Tested-by: Christian Rauch <Rauch.Christian@gmx.de>
2022-09-07 00:32:10 +03:00
..
android android: camera_capabilities: Adjust minimum frame duration to match FPS 2022-07-25 20:12:04 +01:00
cam cam: capture_script: Check parseFrames() return value for errors 2022-09-02 12:39:48 +02:00
gstreamer gstreamer: Provide colorimetry <> ColorSpace mappings 2022-09-01 16:52:44 +05:30
ipa ipa: rkisp1: lsc: Use double instead of float to accumulate vector of doubles 2022-08-30 22:06:20 +03:00
lc-compliance lc-compliance: Only download gtest subproject as a fallback 2022-02-03 18:23:48 +02:00
libcamera pipeline: uvcvideo: Fail match() if the camera has no supported format 2022-09-07 00:32:10 +03:00
py libcamera: color_space: Rename Jpeg to Sycc 2022-08-25 20:12:54 +03:00
qcam qcam: viewfinder_gl: Fix maybe-uninitialized warnings 2022-09-05 17:55:45 +03:00
v4l2 libcamera: v4l2_pixelformat: Return the list of V4L2 formats 2022-08-03 15:07:20 +02:00
meson.build libcamera: Make IPA module signing recommended instead of mandatory 2022-08-09 16:05:58 +03:00