From patchwork Thu Jun 30 09:55:21 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laurent Pinchart X-Patchwork-Id: 16451 Return-Path: X-Original-To: parsemail@patchwork.libcamera.org Delivered-To: parsemail@patchwork.libcamera.org Received: from lancelot.ideasonboard.com (lancelot.ideasonboard.com [92.243.16.209]) by patchwork.libcamera.org (Postfix) with ESMTPS id 797CFBE173 for ; Thu, 30 Jun 2022 09:55:47 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id C0CE66564E; Thu, 30 Jun 2022 11:55:46 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=libcamera.org; s=mail; t=1656582946; bh=8NKSDjts2csYZNzAuU2hSlph6ojdLm2cg2+dpWvqTXg=; h=To:Date:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=y9Nrt36VAF+Xo871nil7YNGNNBZhA2T+oWGnER2JzKHjQtE7Tsi/YM94P56ucTlzn 0qcOIEy3RUA45qrHz+Yqu3ukA97EvuVXM3MHr0fUoJV40Ur/Y1vhHWkoXfsXmico89 ykf4ccP5GZ9IxBhI+4Rv+gqKJU9YIHcijgMWk/97g/VmuSZGPLKnny5tgJecO2exMA tGof2q8xFcDgSwNe/QzxIT2VzDmN36gOEBuu9bbEJEW+y4C9SbDasT3zilQDX59q3t ZYhW4sibW9/T3GL+tojzNnlbe9XXAqPQGgie7dFBUKUaVFPHc+XyNCpzrZU5OeDTR7 Wl0mYDVMrriCA== Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [IPv6:2001:4b98:dc2:55:216:3eff:fef7:d647]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 2029C6054C for ; Thu, 30 Jun 2022 11:55:45 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (1024-bit key; unprotected) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="ceIbacP3"; dkim-atps=neutral Received: from pendragon.lan (62-78-145-57.bb.dnainternet.fi [62.78.145.57]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 7F5A345F for ; Thu, 30 Jun 2022 11:55:43 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1656582944; bh=8NKSDjts2csYZNzAuU2hSlph6ojdLm2cg2+dpWvqTXg=; h=From:To:Subject:Date:From; b=ceIbacP318lWjr4IOpmFbH0FxajCYDc/wokmJkcysUyT5IV4wPtnxflnSzrjB8y71 IEizrxayLrNH3oH2kHzm9xkP9ZiMGfEYt72Ltdk0k2uzCoiw4OHLtjQWcO5OTxoH+g 93cXHMsTB879vR/wVqDsyxRY16Hgm4lDs2VZyqXQ= To: libcamera-devel@lists.libcamera.org Date: Thu, 30 Jun 2022 12:55:21 +0300 Message-Id: <20220630095521.23723-1-laurent.pinchart@ideasonboard.com> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH] libcamera: framebuffer: Turn the cookie into a 64-bit integer X-BeenThere: libcamera-devel@lists.libcamera.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Laurent Pinchart via libcamera-devel From: Laurent Pinchart Reply-To: Laurent Pinchart Errors-To: libcamera-devel-bounces@lists.libcamera.org Sender: "libcamera-devel" 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 Reviewed-by: Kieran Bingham Reviewed-by: Umang Jain --- include/libcamera/framebuffer.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) base-commit: 3fa79cc688b540e27f954f156b5ad4bb172ba222 diff --git a/include/libcamera/framebuffer.h b/include/libcamera/framebuffer.h index 3b1118d1f06b..36b91d11ed79 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 releaseFence(); @@ -80,7 +80,7 @@ private: FrameMetadata metadata_; - unsigned int cookie_; + uint64_t cookie_; }; } /* namespace libcamera */