libcamera/include/libcamera
Hans de Goede ea4baaacc3 libcamera: DmaBufAllocator: Support allocating from /dev/udmabuf
The dma-buf allocator currently allocates from CMA and system heaps.

Extend the dma-buf allocator to support allocating dma-buffers by creating
memfd-s and turning those into dma-buffers using /dev/udmabuf.

The buffers allocated through memfd/udmabuf are not suitable for zero-copy
buffer sharing with other devices.

Co-developed-by: Harvey Yang <chenghaoyang@chromium.org>
Signed-off-by: Harvey Yang <chenghaoyang@chromium.org>
Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Tested-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org> # Lenovo-x13s
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
2024-06-04 16:19:33 +01:00
..
base libcamera: Drop remaining file name from header comment blocks 2024-05-09 23:31:15 +03:00
internal libcamera: DmaBufAllocator: Support allocating from /dev/udmabuf 2024-06-04 16:19:33 +01:00
ipa libcamera: Drop file name from header comment blocks 2024-05-08 22:39:50 +03:00
camera.h libcamera: Drop file name from header comment blocks 2024-05-08 22:39:50 +03:00
camera_manager.h libcamera: Drop file name from header comment blocks 2024-05-08 22:39:50 +03:00
color_space.h libcamera: Drop file name from header comment blocks 2024-05-08 22:39:50 +03:00
control_ids.h.in libcamera: Drop file name from header comment blocks in templates 2024-05-09 23:31:14 +03:00
controls.h libcamera: Drop file name from header comment blocks 2024-05-08 22:39:50 +03:00
fence.h libcamera: Drop remaining file name from header comment blocks 2024-05-09 23:31:15 +03:00
formats.h.in libcamera: Drop file name from header comment blocks in templates 2024-05-09 23:31:14 +03:00
framebuffer.h libcamera: Drop file name from header comment blocks 2024-05-08 22:39:50 +03:00
framebuffer_allocator.h libcamera: Drop file name from header comment blocks 2024-05-08 22:39:50 +03:00
geometry.h libcamera: Drop file name from header comment blocks 2024-05-08 22:39:50 +03:00
logging.h libcamera: Drop file name from header comment blocks 2024-05-08 22:39:50 +03:00
meson.build build: controls: Add Raspberry Pi vendor specific controls 2024-01-09 15:39:03 +00:00
orientation.h libcamera: Drop file name from header comment blocks 2024-05-08 22:39:50 +03:00
pixel_format.h libcamera: Drop file name from header comment blocks 2024-05-08 22:39:50 +03:00
property_ids.h.in libcamera: Drop file name from header comment blocks in templates 2024-05-09 23:31:14 +03:00
request.h libcamera: Drop file name from header comment blocks 2024-05-08 22:39:50 +03:00
stream.h libcamera: Drop file name from header comment blocks 2024-05-08 22:39:50 +03:00
transform.h libcamera: Drop file name from header comment blocks 2024-05-08 22:39:50 +03:00
version.h.in libcamera: Drop file name from header comment blocks in templates 2024-05-09 23:31:14 +03:00