From patchwork Mon May 30 14:27:15 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tomi Valkeinen X-Patchwork-Id: 16116 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 AEEC1C3273 for ; Mon, 30 May 2022 14:27:52 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 269066564B; Mon, 30 May 2022 16:27:52 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=libcamera.org; s=mail; t=1653920872; bh=qGmTmx2JrrUbwgjByhpegUxVXapfx4GmMBhaDImje0Q=; 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=FlmEcWg0F/HSu3awjNc2wfUmV/KMlWpQVnzJeqMK/ShsIMSck71lo5G91tGeSJtkl KDk1uXp/ypiZ1kI1rV1elDJr7NM4CLds5BSrTg7VyIJvAoI3gG6N3eyT85FaSEKbuW KC8wC9SrHsrLvowazbIPG0NWAy7YJq2G/igypKHIzec1Y149PCxEoewsyVBzqT+TPd pZgzRF3bnDXCtasGqitbbWmf2vbTY6AMZIAM4tMsY5jImXjV18PiJijsm3j4hAhNHC OL0RpcY6gYZqVXG4gApbKCcm3HAnbs4915xqjiQkztWr4CDIZSsKavJReebqvTly/D 09sGNoiA7JIfQ== Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id D7CC061FB7 for ; Mon, 30 May 2022 16:27:43 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (1024-bit key; unprotected) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="sCVraaB+"; 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 4768E128D; Mon, 30 May 2022 16:27:43 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1653920863; bh=qGmTmx2JrrUbwgjByhpegUxVXapfx4GmMBhaDImje0Q=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=sCVraaB++KT/wJHxxBiWVuA5x3Xp+npB1rkBNk1ATl9lggd7WYdJc+UPEbp0Mi9N6 p1X0lj+cadRb9Lhw0fbgfi0vZd4KjMk8racaRhqrdAPKLGzSAIf1W+N+NlaPG5Scjk Mb+pMeOJxJRUkDRJQmxDdRi/afqop/yyaQsp9qH0= To: libcamera-devel@lists.libcamera.org, David Plowman , Kieran Bingham , Laurent Pinchart , Jacopo Mondi Date: Mon, 30 May 2022 17:27:15 +0300 Message-Id: <20220530142722.57618-10-tomi.valkeinen@ideasonboard.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220530142722.57618-1-tomi.valkeinen@ideasonboard.com> References: <20220530142722.57618-1-tomi.valkeinen@ideasonboard.com> MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH v4 09/16] 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 c300a6d7..329e51fa 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