libcamera/src
Robert Mader cbfe04f77c libcamera: debayer_cpu: Sync DMABUFs
Using `DMA_BUF_IOCTL_SYNC` is required for DMABUFs in order to ensure
correct output. Not doing so currently results in occasional tearing
and/or backlashes in GL/VK clients that use the buffers directly for
rendering.

An alternative approach to have the sync code in `MappedFrameBuffer` was
considered but rejected for now, in order to allow clients more
flexibility.

While the new helper is added to an annoymous namespace, add
timeDiff to the same namespace and remove the static definition as a
drive by.

Signed-off-by: Robert Mader <robert.mader@collabora.com>
Tested-by: Milan Zamazal <mzamazal@redhat.com> # Debix
Tested-by: Hans de Goede <hdegoede@redhat.com> # IPU6 + ov2740
Tested-by: Kieran Bingham <kieran.bingham@ideasonboard.com> # Lenovo X13s + OV5675
Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Reviewed-by: Nicolas Dufresne <nicolas.dufresne@collabora.com>
Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
2024-09-20 21:09:26 +01:00
..
android libcamera: Avoid variable-length arrays 2024-07-31 01:22:13 +03:00
apps qcam: viewfinder_gl: Render image centered in letterbox 2024-09-11 18:24:51 +03:00
gstreamer libcamera: Fix header grouping 2024-08-12 14:57:35 +03:00
ipa libcamera: libipa: camera_sensor: Add IMX283 black level 2024-09-12 11:12:28 +02:00
libcamera libcamera: debayer_cpu: Sync DMABUFs 2024-09-20 21:09:26 +01:00
py py: gen-py-controls: Convert to jinja2 templates 2024-08-16 00:28:32 +03:00
v4l2 v4l2: Support setting frame rate in the V4L2 Adaptation layer 2024-09-10 22:17:28 +02:00
meson.build v4l2: Move the v4l2 compat layer to libexec/libcamera 2023-05-04 20:05:02 +01:00