libcamera/Documentation
Laurent Pinchart 395d43d6d7 libcamera: v4l2_videodevice: Drop toV4L2PixelFormat()
The V4L2VideoDevice::toV4L2PixelFormat() function is incorrectly
implemented, as it will pick a multi-planar format if the device
supports the multi-planar API, even if only single-planar formats are
supported. This currently works because the implementation calls
V4L2PixelFormat::fromPixelFormat(), which ignores the multiplanar
argument and always returns a single-planar format.

Fixing this isn't trivial. As we don't need to support multi-planar V4L2
formats at this point, drop the function instead of pretending
everything is fine, and call V4L2PixelFormat::fromPixelFormat() directly
from pipeline handlers. As the single-planar case is the most common,
set the multiplanar argument to false by default to avoid long lines.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Jean-Michel Hautbois <jeanmichel.hautbois@ideasonboard.com>
Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Reviewed-by: Hirokazu Honda <hiroh@chromium.org>
2021-09-07 19:17:46 +03:00
..
api-html licenses: Add SPDX headers to RST documentation 2020-04-15 19:51:56 +03:00
guides libcamera: v4l2_videodevice: Drop toV4L2PixelFormat() 2021-09-07 19:17:46 +03:00
theme licenses: Add SPDX headers to the website builder and theme 2020-06-09 23:26:12 +03:00
coding-style.rst clang-format: Regroup sort orders 2021-08-11 10:33:40 +01:00
conf.py licenses: Add SPDX headers to the website builder and theme 2020-06-09 23:26:12 +03:00
contributing.rst libcamera is moving its IRC channel to OFTC (irc.oftc.net) 2021-05-30 12:32:52 +03:00
docs.rst libcamera: Rename 'method' to 'function' 2021-08-09 15:40:32 +03:00
Doxyfile.in libcamera: base: signal: Support connecting signals to functors 2021-09-02 01:16:45 +03:00
environment_variables.rst libcamera: ipa_manager: Allow forcing IPA module isolation 2021-07-19 08:20:37 +03:00
getting-started.rst Documentation: Add getting started section 2021-04-03 04:03:37 +03:00
index.rst Documentation: Add IPA writers guide 2021-05-13 13:20:42 +09:00
meson.build libcamera/base: Introduce new base library 2021-06-25 16:10:58 +01:00
sensor_driver_requirements.rst Documentation: sensor-driver: Fix links to V4L2 documentation 2021-03-19 01:56:33 +02:00