diff options
author | Jacopo Mondi <jacopo@jmondi.org> | 2022-07-15 13:47:01 +0200 |
---|---|---|
committer | Jacopo Mondi <jacopo@jmondi.org> | 2022-07-23 11:41:20 +0200 |
commit | 15a5ab99aea0f87c86a5e45401fc2641e813ff3e (patch) | |
tree | ba0884ba49aea3241f79a18e46e5a286790590c4 /src/android/camera_capabilities.h | |
parent | 0f1d5cc15b88bb9cbc759a77186c891c6481d7b2 (diff) |
libcamera: v4l2_videodevice: Match formats supported by the device
Now that V4L2PixelFormat::fromPixelFormat() returns a list of formats
to chose from by checking which ones are actually supported by the video
device.
The first format found to match one of the device supported ones is
returned.
As V4L2VideoDevice::toV4L2PixelFormat() is a const function which uses
other functions of the class, those functions has to be made const as
well.
In particular:
- enumPixelformats() and enumSizes() do not modify the class state and
can safely be made const.
- formats() uses the above functions and does not itself modify the
class state and can be made const
- add a const version of V4L2Device::ioctl() to be used by the now const
functions
Signed-off-by: Jacopo Mondi <jacopo@jmondi.org>
Diffstat (limited to 'src/android/camera_capabilities.h')
0 files changed, 0 insertions, 0 deletions