15 #include <libcamera/base/span.h> 52 ReadWrite = Read | Write,
Utilities to help constructing class interfaces.
const std::vector< Plane > & planes() const
Retrieve the mapped planes.
Definition: mapped_framebuffer.h:33
MapFlag
Specify the mapping mode for the FrameBuffer.
Definition: mapped_framebuffer.h:49
Top-level libcamera namespace.
Definition: backtrace.h:17
Span< uint8_t > Plane
A mapped region of memory accessible to the CPU.
Definition: mapped_framebuffer.h:24
Frame buffer data and its associated dynamic metadata.
Definition: framebuffer.h:48
int error() const
Retrieve the map error status.
Definition: mapped_framebuffer.h:32
Map a FrameBuffer using the MappedBuffer interface.
Definition: mapped_framebuffer.h:46
#define LIBCAMERA_DISABLE_COPY(klass)
Disable copy construction and assignment of the klass.
std::vector< Plane > maps_
Stores the mapped buffer.
Definition: mapped_framebuffer.h:40
#define LIBCAMERA_FLAGS_ENABLE_OPERATORS(_enum)
Enable bitwise operations on the enum enumeration.
Provide an interface to support managing memory mapped buffers.
Definition: mapped_framebuffer.h:21
int error_
Stores the error value if present.
Definition: mapped_framebuffer.h:38
Type-safe container for enum-based bitfields.
Definition: flags.h:15
bool isValid() const
Check if the MappedBuffer instance is valid.
Definition: mapped_framebuffer.h:31
MappedBuffer & operator=(MappedBuffer &&other)
Move assignment operator, replace the mappings with those of other.
Definition: mapped_framebuffer.cpp:82
MappedBuffer()
Construct an empty MappedBuffer.
Definition: mapped_framebuffer.cpp:53
std::vector< Plane > planes_
Stores the internal mapped planes.
Definition: mapped_framebuffer.h:39