7 #ifndef __LIBCAMERA_BUFFER_H__
8 #define __LIBCAMERA_BUFFER_H__
52 const std::vector<Plane> &
planes()
const {
return planes_; }
58 unsigned int cookie()
const {
return cookie_; }
66 std::vector<Plane> planes_;
RAII-style wrapper for file descriptors.
Definition: file_descriptor.h:15
Frame buffer data and its associated dynamic metadata.
Definition: buffer.h:37
const std::vector< Plane > & planes() const
Retrieve the static plane descriptors.
Definition: buffer.h:52
int copyFrom(const FrameBuffer *src)
Copy the contents from another buffer.
Definition: buffer.cpp:244
void setRequest(Request *request)
Set the request this buffer belongs to.
Definition: buffer.h:55
unsigned int cookie() const
Retrieve the cookie.
Definition: buffer.h:58
Request * request() const
Retrieve the request this buffer belongs to.
Definition: buffer.h:54
FrameBuffer(const std::vector< Plane > &planes, unsigned int cookie=0)
Construct a FrameBuffer with an array of planes.
Definition: buffer.cpp:159
void setCookie(unsigned int cookie)
Set the cookie.
Definition: buffer.h:59
const FrameMetadata & metadata() const
Retrieve the dynamic metadata.
Definition: buffer.h:56
A frame capture request.
Definition: request.h:26
V4L2VideoDevice object and API.
Definition: v4l2_videodevice.h:169
A memory region to store a single plane of a frame.
Definition: buffer.h:39
unsigned int length
The plane length in bytes.
Definition: buffer.h:41
FileDescriptor fd
The dmabuf file descriptor.
Definition: buffer.h:40