From patchwork Fri May 27 14:44:42 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tomi Valkeinen X-Patchwork-Id: 16096 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 81FE8BD161 for ; Fri, 27 May 2022 14:45:39 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 378C4656B1; Fri, 27 May 2022 16:45:39 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=libcamera.org; s=mail; t=1653662739; bh=WwZVdA5xllMNfedF2g2168gk5rN6XtXsc1rEUATCMxo=; h=To:Date:In-Reply-To:References:Subject:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To: From; b=Tz/QxnlzHlbIyKRdMWUrIOGOXwZX5dLNwHCFxehI6+p5PFNEj5z939Cy1MrszZ1Cr jkoPH74/BZStu1iTjBzkblH2JHAagzD8nONRQFcu9tFDxkY23lFfQnskhjf4qmBn1C 38akzt7pvrEZfXdBJ4WnDhrxLZxrv4Ci8+vWfoAqH6RWo0qZAfZtl62FFx4vo5Gl6V WZgN7F7mQbUqSwK01kz61w/qquiVDpp07aPEpj9RZbzC4c5ITdV4Dld3ignLCA0/kP W5hNkKa2zCA3WVKZOglHEnQ+vesV2LM5hgk6VadLHSDheTS+zD1EZYyH1PyAQey/Ht uk7cK0D9IGg4A== Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 6E36365649 for ; Fri, 27 May 2022 16:45:17 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (1024-bit key; unprotected) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="n4D64ak8"; dkim-atps=neutral Received: from deskari.lan (91-156-85-209.elisa-laajakaista.fi [91.156.85.209]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id D3285EF2; Fri, 27 May 2022 16:45:16 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1653662717; bh=WwZVdA5xllMNfedF2g2168gk5rN6XtXsc1rEUATCMxo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=n4D64ak8SruUUc9XbBdMWRNdS2KQxe0O0n08MgtK+cKmNJUqEGCI81jBNUKJs+usp +OeAcQaix8zThfHJW1bsCue0UMv+x/PhBSrVrM+ndoeRfCCo57uOrUIBfod3RdEsPw yq+//BsKyPdYVcKJJGNVNmloZu5lKqdFFx9eF9ks= To: libcamera-devel@lists.libcamera.org, David Plowman , Kieran Bingham , Laurent Pinchart , Jacopo Mondi Date: Fri, 27 May 2022 17:44:42 +0300 Message-Id: <20220527144447.94891-26-tomi.valkeinen@ideasonboard.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220527144447.94891-1-tomi.valkeinen@ideasonboard.com> References: <20220527144447.94891-1-tomi.valkeinen@ideasonboard.com> MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH v3 25/30] py: MappedFrameBuffer: Add 'fb' property 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: Tomi Valkeinen via libcamera-devel From: Tomi Valkeinen Reply-To: Tomi Valkeinen Errors-To: libcamera-devel-bounces@lists.libcamera.org Sender: "libcamera-devel" Add 'fb' property to expose the underlying FrameBuffer. Signed-off-by: Tomi Valkeinen Reviewed-by: Laurent Pinchart --- src/py/libcamera/utils/MappedFrameBuffer.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/py/libcamera/utils/MappedFrameBuffer.py b/src/py/libcamera/utils/MappedFrameBuffer.py index 4b20f904..c25371c2 100644 --- a/src/py/libcamera/utils/MappedFrameBuffer.py +++ b/src/py/libcamera/utils/MappedFrameBuffer.py @@ -99,3 +99,7 @@ class MappedFrameBuffer: raise RuntimeError('MappedFrameBuffer not mmapped') return self.__planes + + @property + def fb(self): + return self.__fb