7 #ifndef __LIBCAMERA_INTERNAL_BUFFER_H__ 8 #define __LIBCAMERA_INTERNAL_BUFFER_H__ 15 #include <libcamera/span.h> 31 const std::vector<Plane> &
maps()
const {
return maps_; }
Utilities to help constructing class interfaces.
Top-level libcamera namespace.
Definition: bound_method.h:15
Span< uint8_t > Plane
A mapped region of memory accessible to the CPU.
Definition: buffer.h:22
Frame buffer data and its associated dynamic metadata.
Definition: buffer.h:37
int error() const
Retrieve the map error status.
Definition: buffer.h:30
Map a FrameBuffer using the MappedBuffer interface.
Definition: buffer.h:43
#define LIBCAMERA_DISABLE_COPY(klass)
Disable copy construction and assignment of the klass.
const std::vector< Plane > & maps() const
Retrieve the mapped planes.
Definition: buffer.h:31
std::vector< Plane > maps_
Stores the internal mapped planes.
Definition: buffer.h:37
Provide an interface to support managing memory mapped buffers.
Definition: buffer.h:19
int error_
Stores the error value if present.
Definition: buffer.h:36
bool isValid() const
Check if the MappedBuffer instance is valid.
Definition: buffer.h:29
MappedBuffer & operator=(MappedBuffer &&other)
Move assignment operator, replace the mappings with those of other.
Definition: buffer.cpp:292
MappedBuffer()
Construct an empty MappedBuffer.
Definition: buffer.cpp:263