libcamera/include
Jacopo Mondi d1abe2bdc8 libcamera: v4l2_videodevice: Match formats supported by the device
Now that V4L2PixelFormat::fromPixelFormat() returns a list of formats
to chose from, select the one supported by the video device by matching
against the list of supported pixel formats.

The first format found to match one of the device supported ones is
returned.

As the list of pixel formats supported by the video device does not
change at run-time, cache it at device open() time. Maximize the
lookup efficiency by storing the list of supported V4L2PixelFormat in an
std::unordered_set<>.

Signed-off-by: Jacopo Mondi <jacopo@jmondi.org>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Tested-by: Paul Elder <paul.elder@ideasonboard.com>
2022-08-03 15:07:20 +02:00
..
android android: Update Android headers 2021-05-31 19:26:59 +03:00
libcamera libcamera: v4l2_videodevice: Match formats supported by the device 2022-08-03 15:07:20 +02:00
linux include: linux: Update rkisp1 kernel header for DPCC configuration 2022-07-28 14:54:45 +03:00
meson.build libcamera: Fix base and ipa include dir 2021-09-28 20:09:39 +03:00