summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2022-05-11 01:42:35 +0300
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2022-07-04 23:07:29 +0300
commitd5b0cec83940b7965bc215383c247da25304ebca (patch)
tree96bc0420e24b8ec76081ed8eebc9441ec08a185b
parent3fa79cc688b540e27f954f156b5ad4bb172ba222 (diff)
libcamera: framebuffer: Turn the cookie into a 64-bit integer
To allow associating pointers with FrameBuffer instances, turn the cookie into a 64-bit integer. This matches the Request cookie with is also a uint64_t. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Reviewed-by: Umang Jain <umang.jain@ideasonboard.com>
-rw-r--r--include/libcamera/framebuffer.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/libcamera/framebuffer.h b/include/libcamera/framebuffer.h
index 3b1118d1..36b91d11 100644
--- a/include/libcamera/framebuffer.h
+++ b/include/libcamera/framebuffer.h
@@ -66,8 +66,8 @@ public:
Request *request() const;
const FrameMetadata &metadata() const { return metadata_; }
- unsigned int cookie() const { return cookie_; }
- void setCookie(unsigned int cookie) { cookie_ = cookie; }
+ uint64_t cookie() const { return cookie_; }
+ void setCookie(uint64_t cookie) { cookie_ = cookie; }
std::unique_ptr<Fence> releaseFence();
@@ -80,7 +80,7 @@ private:
FrameMetadata metadata_;
- unsigned int cookie_;
+ uint64_t cookie_;
};
} /* namespace libcamera */