[libcamera-devel] [PATCH 0/2] V4L2Device Try format support

Kieran Bingham kieran.bingham at ideasonboard.com
Fri May 3 17:34:01 CEST 2019


Extend V4L2Device to provide a tryFormat function. This can be used to check a
format against a V4L2 Device to determine a suitable configuration.

Utilise this in the UVC pipeline handler so that we can provide a valid default
configuration on any UVC web cam.

Kieran Bingham (2):
  libcamera: v4l2_device: Add tryFormat support
  libcamera: pipeline: uvc: Try a default format against the device

 src/libcamera/include/v4l2_device.h |  7 +++++--
 src/libcamera/pipeline/uvcvideo.cpp | 11 +++++++++--
 src/libcamera/v4l2_device.cpp       | 29 +++++++++++++++++++++++------
 3 files changed, 37 insertions(+), 10 deletions(-)

-- 
2.20.1



More information about the libcamera-devel mailing list