pipewire/spa/plugins/libcamera
Wim Taymans acf9b67067 buffer: add MAPPABLE data flag
Add a MAPPABLE data flag that hints that the fd in the data is mappable
with a simple mmap/munmap. Normally, DmaBuf is not mappable like that
unless explicitly indicated with this flag.

Set the MAPPABLE flag on the DmaBuf from v4l2 and libcamera fd.

When asked, mmap the buffer memory in all cases when the MAPPABLE
flag is set.

This solves the case where v4l2 has exported DmaBuf and is streaming to
node A and then node B links but doesn't get automatically mmaped
memory.

Fixes #3840
2024-02-12 10:49:56 +01:00
..
libcamera-device.cpp spa: libcamera: bump minimum supported version to 0.2.0 2024-01-11 13:09:40 +01:00
libcamera-manager.cpp treewide: use SPDX tags to specify copyright information 2023-02-16 10:54:48 +00:00
libcamera-manager.hpp treewide: use SPDX tags to specify copyright information 2023-02-16 10:54:48 +00:00
libcamera-source.cpp libcamera: add latency param query 2023-11-20 17:51:27 +01:00
libcamera-utils.cpp buffer: add MAPPABLE data flag 2024-02-12 10:49:56 +01:00
libcamera.c spa: remove unnecessary indirection for some spa_log_topics 2023-10-06 13:08:24 +00:00
libcamera.h spa: remove unnecessary indirection for some spa_log_topics 2023-10-06 13:08:24 +00:00
meson.build spa: libcamera: add libcamera version check for properties::SystemDevices 2023-07-19 09:21:03 +00:00