summaryrefslogtreecommitdiff
path: root/include/android/hardware
diff options
context:
space:
mode:
authorJacopo Mondi <jacopo@jmondi.org>2022-07-15 13:47:01 +0200
committerJacopo Mondi <jacopo@jmondi.org>2022-08-03 15:07:20 +0200
commitd1abe2bdc88393da7bee3f80451636754d572567 (patch)
treef19886e2edadb09f4615afa7a1cb261cd463f6cc /include/android/hardware
parent29c09e3ab6c18c649d8510a1faee6c5a2b52c04a (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 'include/android/hardware')
0 files changed, 0 insertions, 0 deletions