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>
This commit is contained in:
Laurent Pinchart 2022-05-11 01:42:35 +03:00
parent 3fa79cc688
commit d5b0cec839

View file

@ -66,8 +66,8 @@ public:
Request *request() const; Request *request() const;
const FrameMetadata &metadata() const { return metadata_; } const FrameMetadata &metadata() const { return metadata_; }
unsigned int cookie() const { return cookie_; } uint64_t cookie() const { return cookie_; }
void setCookie(unsigned int cookie) { cookie_ = cookie; } void setCookie(uint64_t cookie) { cookie_ = cookie; }
std::unique_ptr<Fence> releaseFence(); std::unique_ptr<Fence> releaseFence();
@ -80,7 +80,7 @@ private:
FrameMetadata metadata_; FrameMetadata metadata_;
unsigned int cookie_; uint64_t cookie_;
}; };
} /* namespace libcamera */ } /* namespace libcamera */