libcamera/src/v4l2
Jacopo Mondi b7ca378b65 libcamera: v4l2_pixelformat: Return the list of V4L2 formats
Multiple V4L2 formats can be associated with a single PixelFormat.
Now that users of V4L2PixelFormat::fromPixelFormat() have been converted
to use V4L2VideoDevice::toV4L2PixelFormat(), return the full list of
V4L2 formats in order to prepare to match them against the ones
supported by the video device.

The V4L2 compatibility layer, not having any video device to interact
with, is converted to use the first returned format unconditionally.

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
..
libcamerify.in v4l2: Provide libcamerify wrapper script 2022-02-04 09:39:46 +00:00
meson.build v4l2: Provide libcamerify wrapper script 2022-02-04 09:39:46 +00:00
v4l2_camera.cpp libcamera: base: shared_fd: Rename fd() to get() 2021-12-04 23:05:07 +02:00
v4l2_camera.h libcamera: base: Rename FileDescriptor to SharedFD 2021-12-04 23:05:05 +02:00
v4l2_camera_file.cpp v4l2: v4l2_camera_file: Store file description 2022-01-14 14:02:49 +02:00
v4l2_camera_file.h v4l2: v4l2_camera_file: Store file description 2022-01-14 14:02:49 +02:00
v4l2_camera_proxy.cpp libcamera: v4l2_pixelformat: Return the list of V4L2 formats 2022-08-03 15:07:20 +02:00
v4l2_camera_proxy.h v4l2: V4L2CameraProxy: Add support for PREPARE_BUF as one of the supported ioctl 2022-01-21 16:30:19 +02:00
v4l2_compat.cpp libcamera: Correct include headers for Mutex classes 2021-12-01 13:46:48 +02:00
v4l2_compat_manager.cpp v4l2: v4l2_camera_proxy: Use file description in debug messages 2022-01-14 14:02:49 +02:00
v4l2_compat_manager.h v4l2: v4l2_compat_manager: Store V4L2CameraFile in mmaps_ 2022-01-14 14:02:49 +02:00