7 #ifndef __LIBCAMERA_BUFFER_H__ 8 #define __LIBCAMERA_BUFFER_H__ 48 const std::vector<Plane> &
planes()
const {
return planes_; }
54 unsigned int cookie()
const {
return cookie_; }
55 void setCookie(
unsigned int cookie) { cookie_ = cookie; }
64 std::vector<Plane> planes_;
Utilities to help constructing class interfaces.
Request * request() const
Retrieve the request this buffer belongs to.
Definition: buffer.h:50
unsigned int cookie() const
Retrieve the cookie.
Definition: buffer.h:54
RAII-style wrapper for file descriptors.
Definition: file_descriptor.h:14
Top-level libcamera namespace.
Definition: bound_method.h:15
unsigned int length
The plane length in bytes.
Definition: buffer.h:43
const FrameMetadata & metadata() const
Retrieve the dynamic metadata.
Definition: buffer.h:52
Frame buffer data and its associated dynamic metadata.
Definition: buffer.h:38
void setCookie(unsigned int cookie)
Set the cookie.
Definition: buffer.h:55
V4L2VideoDevice object and API.
Definition: v4l2_videodevice.h:173
A frame capture request.
Definition: request.h:28
#define LIBCAMERA_DISABLE_COPY_AND_MOVE(klass)
Disable copy and move construction and assignment of the klass.
FileDescriptor fd
The dmabuf file descriptor.
Definition: buffer.h:42
void setRequest(Request *request)
Set the request this buffer belongs to.
Definition: buffer.h:51
A memory region to store a single plane of a frame.
Definition: buffer.h:41
void cancel()
Marks the buffer as cancelled.
Definition: buffer.h:57
const std::vector< Plane > & planes() const
Retrieve the static plane descriptors.
Definition: buffer.h:48