libcamera/include/libcamera/internal
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
..
tracepoints libcamera: buffer: Rename buffer.h to framebuffer.h 2021-07-11 17:42:02 +03:00
bayer_format.h libcamera: Add support for monochrome sensors 2021-06-28 19:33:42 +03:00
byte_stream_buffer.h libcamera/base: Move span to base library 2021-06-25 16:11:11 +01:00
camera.h libcamera: pipeline_handler: Move CameraData members to Camera::Private 2021-08-16 23:57:28 +03:00
camera_controls.h libcamera: Rename header guards for internal headers 2020-06-06 00:25:04 +03:00
camera_sensor.h libcamera: camera_sensor: Transform CameraSensor::sizes() 2021-08-31 12:26:54 +05:30
camera_sensor_properties.h libcamera: CameraSensorProperties: Add table of v4l2 index and test pattern 2021-06-14 14:10:53 +02:00
control_serializer.h libcamera: controls: Create ControlInfoMap with ControlIdMap 2021-08-12 10:06:25 +02:00
control_validator.h libcamera: Declare empty virtual destructors as defaulted 2020-10-23 22:53:13 +03:00
delayed_controls.h libcamera: delayed_controls: Remove unneeded write when starting up 2021-03-12 14:12:55 +00:00
device_enumerator.h libcamera: device_enumerator: Drop inclusion of linux/media.h 2021-07-06 19:58:36 +03:00
device_enumerator_sysfs.h libcamera: Rename header guards for internal headers 2020-06-06 00:25:04 +03:00
device_enumerator_udev.h libcamera: Drop emitter object pointer from signal arguments 2021-09-02 01:16:45 +03:00
formats.h libcamera: formats: add numPlanes helper 2020-08-06 15:43:59 +01:00
framebuffer.h libcamera: Give MappedFrameBuffer its own implementation 2021-08-10 10:53:57 +01:00
ipa_data_serializer.h ipa: Use FileDescriptor instead of int in layers above IPC payload 2021-08-19 16:54:02 +09:00
ipa_manager.h libcamera: ipa_manager: Split common code out of createIPA() 2021-07-19 08:20:34 +03:00
ipa_module.h libcamera/base: Move extended base functionality 2021-06-25 16:11:08 +01:00
ipa_proxy.h libcamera: ipa_proxy: Scope ProxyState to IPAProxy 2021-04-13 20:52:19 +01:00
ipc_pipe.h ipa: Use FileDescriptor instead of int in layers above IPC payload 2021-08-19 16:54:02 +09:00
ipc_pipe_unixsocket.h libcamera: Drop emitter object pointer from signal arguments 2021-09-02 01:16:45 +03:00
ipc_unixsocket.h libcamera: Drop emitter object pointer from signal arguments 2021-09-02 01:16:45 +03:00
mapped_framebuffer.h libcamera: mapped_framebuffer: Rename maps() to planes() 2021-08-31 15:18:53 +03:00
media_device.h libcamera: Drop emitter object pointer from signal arguments 2021-09-02 01:16:45 +03:00
media_object.h libcamera: media_object: Expose entity type 2021-08-31 22:44:10 +03:00
meson.build libcamera: Give MappedFrameBuffer its own implementation 2021-08-10 10:53:57 +01:00
pipeline_handler.h libcamera: pipeline_handler: Drop controls() and properties() functions 2021-08-17 00:24:16 +03:00
process.h libcamera: Drop emitter object pointer from signal arguments 2021-09-02 01:16:45 +03:00
pub_key.h libcamera/base: Move span to base library 2021-06-25 16:11:11 +01:00
source_paths.h libcamera: Separate source and build path helpers 2021-06-25 16:10:53 +01:00
sysfs.h libcamera: sysfs: Add helper to lookup device firmware node path 2020-08-05 20:07:13 +02:00
tracepoints.h.in libcamera: tracing: Implement tracing infrastructure 2020-11-03 11:07:21 +09:00
v4l2_device.h libcamera: Drop emitter object pointer from signal arguments 2021-09-02 01:16:45 +03:00
v4l2_pixelformat.h libcamera: v4l2_videodevice: Drop toV4L2PixelFormat() 2021-09-07 19:17:46 +03:00
v4l2_subdevice.h libcamera/base: Move extended base functionality 2021-06-25 16:11:08 +01:00
v4l2_videodevice.h libcamera: v4l2_videodevice: Drop toV4L2PixelFormat() 2021-09-07 19:17:46 +03:00