diff options
author | Dorota Czaplejewicz <dorota.czaplejewicz@puri.sm> | 2021-11-19 16:05:58 +0100 |
---|---|---|
committer | Kieran Bingham <kieran.bingham@ideasonboard.com> | 2022-04-14 00:19:36 +0200 |
commit | d98af71eaa3f28f5e49456dd1e3462e1580463f5 (patch) | |
tree | a4323641061237c5b7d59dbed66648a9c25a32c0 /include | |
parent | cef3e15324f3dbf35b1434cb901b91e2a8fc980b (diff) |
libcamera: framebuffer: Make FrameBuffer::cancel() private
FrameBuffer::cancel() is not meant to be used by applications. Move it
to the FrameBuffer::Private class.
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Signed-off-by: Dorota Czaplejewicz <dorota.czaplejewicz@puri.sm>
[Kieran: Handle rebase]
Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/libcamera/framebuffer.h | 2 | ||||
-rw-r--r-- | include/libcamera/internal/framebuffer.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/include/libcamera/framebuffer.h b/include/libcamera/framebuffer.h index de172d97..3b1118d1 100644 --- a/include/libcamera/framebuffer.h +++ b/include/libcamera/framebuffer.h @@ -71,8 +71,6 @@ public: std::unique_ptr<Fence> releaseFence(); - void cancel() { metadata_.status = FrameMetadata::FrameCancelled; } - private: LIBCAMERA_DISABLE_COPY_AND_MOVE(FrameBuffer) diff --git a/include/libcamera/internal/framebuffer.h b/include/libcamera/internal/framebuffer.h index 97dca963..8a9cc98e 100644 --- a/include/libcamera/internal/framebuffer.h +++ b/include/libcamera/internal/framebuffer.h @@ -31,6 +31,8 @@ public: Fence *fence() const { return fence_.get(); } void setFence(std::unique_ptr<Fence> fence) { fence_ = std::move(fence); } + void cancel() { LIBCAMERA_O_PTR()->metadata_.status = FrameMetadata::FrameCancelled; } + private: std::unique_ptr<Fence> fence_; Request *request_; |