summaryrefslogtreecommitdiff
path: root/include/libcamera/internal/framebuffer.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/libcamera/internal/framebuffer.h')
-rw-r--r--include/libcamera/internal/framebuffer.h2
1 files changed, 2 insertions, 0 deletions
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_;