diff options
author | Niklas Söderlund <niklas.soderlund@ragnatech.se> | 2020-08-11 00:56:13 +0200 |
---|---|---|
committer | Niklas Söderlund <niklas.soderlund@ragnatech.se> | 2020-08-14 13:19:15 +0200 |
commit | dac8e9552ccdff137e717270468e584c2a9895b9 (patch) | |
tree | 467e192ac4272d2e407d11192e40715040aacf53 /include | |
parent | 02018a7d0222cefe8e6587deebe607917e20e2a1 (diff) |
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>
Diffstat (limited to 'include')
-rw-r--r-- | include/libcamera/request.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/include/libcamera/request.h b/include/libcamera/request.h index eded6831..e74f56a7 100644 --- a/include/libcamera/request.h +++ b/include/libcamera/request.h @@ -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_; |