25 class CameraControlValidator;
45 using BufferMap = std::map<const Stream *, FrameBuffer *>;
56 std::unique_ptr<Fence> fence =
nullptr);
60 uint64_t
cookie()
const {
return cookie_; }
74 const uint64_t cookie_;
Utilities to help constructing class interfaces.
ControlList & controls()
Retrieve the request's ControlList.
Definition: request.h:52
bool hasPendingBuffers() const
Check if a request has buffers yet to be completed.
Definition: request.cpp:580
Video stream for a camera.
Definition: stream.h:73
Top-level libcamera namespace.
Definition: backtrace.h:17
std::map< const Stream *, FrameBuffer * > BufferMap
A map of Stream to FrameBuffer pointers.
Definition: request.h:45
int addBuffer(const Stream *stream, FrameBuffer *buffer, std::unique_ptr< Fence > fence=nullptr)
Add a FrameBuffer with its associated Stream to the Request.
Definition: request.cpp:470
Frame buffer data and its associated dynamic metadata.
Definition: framebuffer.h:48
FrameBuffer * findBuffer(const Stream *stream) const
Return the buffer associated with a stream.
Definition: request.cpp:518
uint32_t sequence() const
Retrieve the sequence number for the request.
Definition: request.cpp:550
#define LIBCAMERA_DECLARE_PRIVATE()
Declare private data for a public class.
const BufferMap & buffers() const
Retrieve the request's streams to buffers map.
Definition: request.h:54
ControlList & metadata()
Retrieve the request's metadata.
Definition: request.h:53
A frame capture request.
Definition: request.h:29
#define LIBCAMERA_DISABLE_COPY(klass)
Disable copy construction and assignment of the klass.
Signal & slot implementation.
Status
Definition: request.h:34
std::string toString() const
Generate a string representation of the Request internals.
Definition: request.cpp:593
Camera device.
Definition: camera.h:113
void reuse(ReuseFlag flags=Default)
Reset the request for reuse.
Definition: request.cpp:390
Base class to manage private data through a d-pointer.
Definition: class.h:61
std::ostream & operator<<(std::ostream &out, const Point &p)
Insert a text representation of a Point into an output stream.
Definition: geometry.cpp:91
Definition of the Fence class.
ReuseFlag
Definition: request.h:40
Associate a list of ControlId with their values for an object.
Definition: controls.h:380
Framework to manage controls related to an object.
Status status() const
Retrieve the request completion status.
Definition: request.h:61
uint64_t cookie() const
Retrieve the cookie set when the request was created.
Definition: request.h:60
Request(Camera *camera, uint64_t cookie=0)
Create a capture request for a camera.
Definition: request.cpp:355