16 #include <libcamera/base/class.h> 25 class CameraControlValidator;
31 LIBCAMERA_DECLARE_PRIVATE()
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_;
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: bound_method.h:15
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
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
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
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