[libcamera-devel,v2,0/3] V4L2Device Try format support
mbox series

Message ID 20190523135900.24029-1-kieran.bingham@ideasonboard.com
Headers show
Series
  • V4L2Device Try format support
Related show

Message

Kieran Bingham May 23, 2019, 1:58 p.m. UTC
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 validate configurations
on any UVC web cam.

Kieran Bingham (3):
  libcamera: v4l2_device: Add tryFormat support
  test: v4l2_device: Extend formats test with tryFromat()
  libcamera: pipeline: uvc: Use the device to validate formats

 src/libcamera/include/v4l2_device.h |  7 ++++--
 src/libcamera/pipeline/uvcvideo.cpp | 36 +++++++++++++++++++++--------
 src/libcamera/v4l2_device.cpp       | 29 ++++++++++++++++++-----
 test/v4l2_device/formats.cpp        | 16 +++++++++++++
 4 files changed, 70 insertions(+), 18 deletions(-)