summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorNiklas Söderlund <niklas.soderlund@ragnatech.se>2020-01-12 01:10:51 +0100
committerNiklas Söderlund <niklas.soderlund@ragnatech.se>2020-01-12 16:10:37 +0100
commit856a4a25278ce5e4b64497deaa3b20c4df16fdee (patch)
treea60c0e8d418e306db82db15668f3ea8033a11a72 /include
parent96eaad1238131721207c6a9bde077f7f1aad5f60 (diff)
libcamera: request: remove prepare()
The association of buffers to a request can be done directly in addBuffer() instead of when the request is queued to the camera. Keep the check that a request contains buffers by moving it to Camera::queueRequest() where prepare() was previously called. As a bonus we can remove a friend statement in Request. Signed-off-by: Niklas Söderlund <niklas.soderlund@ragnatech.se> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'include')
-rw-r--r--include/libcamera/request.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/include/libcamera/request.h b/include/libcamera/request.h
index 2d5a5964..728f380d 100644
--- a/include/libcamera/request.h
+++ b/include/libcamera/request.h
@@ -48,10 +48,8 @@ public:
bool hasPendingBuffers() const { return !pending_.empty(); }
private:
- friend class Camera;
friend class PipelineHandler;
- int prepare();
void complete();
bool completeBuffer(Buffer *buffer);