diff options
author | Jacopo Mondi <jacopo@jmondi.org> | 2022-07-15 13:47:01 +0200 |
---|---|---|
committer | Jacopo Mondi <jacopo@jmondi.org> | 2022-08-03 15:07:20 +0200 |
commit | d1abe2bdc88393da7bee3f80451636754d572567 (patch) | |
tree | f19886e2edadb09f4615afa7a1cb261cd463f6cc /test/pipeline/ipu3 | |
parent | 29c09e3ab6c18c649d8510a1faee6c5a2b52c04a (diff) |
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>
Diffstat (limited to 'test/pipeline/ipu3')
0 files changed, 0 insertions, 0 deletions