mirror of
https://git.libcamera.org/libcamera/libcamera.git
synced 2025-07-25 09:35:06 +03:00
libcamera: request: Declare a using directive for map of buffers
Declare a using directive for the map of Stream to FrameBuffer. Update all users of Request::buffers() to use the new usage directive. Signed-off-by: Niklas Söderlund <niklas.soderlund@ragnatech.se> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
This commit is contained in:
parent
02018a7d02
commit
dac8e9552c
7 changed files with 15 additions and 8 deletions
|
@ -31,6 +31,8 @@ public:
|
|||
RequestCancelled,
|
||||
};
|
||||
|
||||
using BufferMap = std::map<Stream *, FrameBuffer *>;
|
||||
|
||||
Request(Camera *camera, uint64_t cookie = 0);
|
||||
Request(const Request &) = delete;
|
||||
Request &operator=(const Request &) = delete;
|
||||
|
@ -38,7 +40,7 @@ public:
|
|||
|
||||
ControlList &controls() { return *controls_; }
|
||||
ControlList &metadata() { return *metadata_; }
|
||||
const std::map<Stream *, FrameBuffer *> &buffers() const { return bufferMap_; }
|
||||
const BufferMap &buffers() const { return bufferMap_; }
|
||||
int addBuffer(Stream *stream, FrameBuffer *buffer);
|
||||
FrameBuffer *findBuffer(Stream *stream) const;
|
||||
|
||||
|
@ -58,7 +60,7 @@ private:
|
|||
CameraControlValidator *validator_;
|
||||
ControlList *controls_;
|
||||
ControlList *metadata_;
|
||||
std::map<Stream *, FrameBuffer *> bufferMap_;
|
||||
BufferMap bufferMap_;
|
||||
std::unordered_set<FrameBuffer *> pending_;
|
||||
|
||||
const uint64_t cookie_;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue