libcamera/Documentation
Jacopo Mondi 45736468c8 libcamera: v4l2_videodevice: Reintroduce toV4L2PixelFormat()
This is a partial revert of commit 395d43d6d7 ("libcamera:
v4l2_videodevice: Drop toV4L2PixelFormat()")

The function was removed because it incorrectly maps non-contiguous V4L2
format variants (ie V4L2_PIX_FMT_YUV420M) to the API version supported
by the video device (singleplanar API and multiplanar API).  It was
decided at the time to remove the function and let its users call
directly V4L2PixelFormat::fromPixelFormat() which accepts a
'multiplanar' flags.

As we aim to associate multiple V4L2PixelFormat to a single libcamera
format, the next patches will verify which of them is actually supported
by the video device. For now, return the contiguous version
unconditionally.

Re-introduce V4L2VideoDevice::toV4L2PixelFormat() and convert all
the V4L2PixelFormat::fromPixelFormat() users to use it.

The V4L2 compatibility layer is the only outlier as it doesn't have a
video device to poke, hence it still uses
V4L2PixelFormat::fromPixelFormat().

Next patches will implement the device format matching logic and handle
the non-contiguous plane issue in V4L2VideoDevice::toV4L2PixelFormat().

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
..
api-html licenses: Add SPDX headers to RST documentation 2020-04-15 19:51:56 +03:00
guides libcamera: v4l2_videodevice: Reintroduce toV4L2PixelFormat() 2022-08-03 15:07:20 +02:00
theme licenses: Add SPDX headers to the website builder and theme 2020-06-09 23:26:12 +03:00
coding-style.rst Documentation: coding-style: Document the git commit hooks 2021-11-18 17:47:56 +02:00
conf.py Documentation: Use language 'en' for Sphinx 5.0.0 2022-06-20 18:19:14 +02:00
contributing.rst Documentation: Use https instead of http 2022-05-04 19:46:05 +03:00
docs.rst libcamera: Rename 'method' to 'function' 2021-08-09 15:40:32 +03:00
Doxyfile.in ipa: libipa: algorithm: Add an algorithm registration mechanism 2022-06-29 17:21:03 +03:00
environment_variables.rst Documentation: Fix length of title underlines 2022-06-22 12:35:14 +03:00
getting-started.rst Documentation: Add getting started section 2021-04-03 04:03:37 +03:00
index.rst Documentation: Add python-bindings.rst 2022-06-08 17:31:23 +03:00
lens_driver_requirements.rst libcamera: camera_lens: Add a new class to model a camera lens 2021-12-03 10:23:26 +00:00
meson.build Documentation: Add python-bindings.rst 2022-06-08 17:31:23 +03:00
python-bindings.rst Documentation: Add python-bindings.rst 2022-06-08 17:31:23 +03:00
sensor_driver_requirements.rst Documentation: sensor-driver: Fix links to V4L2 documentation 2021-03-19 01:56:33 +02:00