From patchwork Mon Jan 16 00:28:01 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laurent Pinchart X-Patchwork-Id: 18118 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 D8E0FBD87C for ; Mon, 16 Jan 2023 00:28:12 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 92E0C625EA; Mon, 16 Jan 2023 01:28:12 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=libcamera.org; s=mail; t=1673828892; bh=wmPq7P28jwxF2raIg3WaEvq4ng2ER7Eb+6lQp7HSeSI=; h=To:Date:In-Reply-To:References:Subject:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc: From; b=SBt0p91Yyg88cdmQbUVQJS84DSdSm4fe3GD8tyWCsslpwQUUqr5iGu6ZVsgtSPgf9 AujKh0CsWwYarLcZNJlaxeGi8S8oqnxG7b0z9e8zPYwbsuqF4ghlrBwsLCMVziXIA2 FxsMaIeodqB03nREUoSPDsYTgSTOGLIhhMzpSo1WsoSzwobZzofHmsBDDEYCMsycS8 jXHXsutg0wfFfOg75YuAzRvJS41xsjnOCjNfmMxqtuIlmxcnTudEQUC0EuP7zn3bfO RFYKOSJGhdjdwGh9u/mDLc999o3MKCT4wn2VHfst1qWSzbMelWvYDYa45LhOtAJBlJ d4aq2YhDn1mUw== Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 79368625E7 for ; Mon, 16 Jan 2023 01:28:10 +0100 (CET) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (1024-bit key; unprotected) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="mJq39e8S"; dkim-atps=neutral Received: from pendragon.ideasonboard.com (213-243-189-158.bb.dnainternet.fi [213.243.189.158]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id C9FD3997; Mon, 16 Jan 2023 01:28:09 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1673828890; bh=wmPq7P28jwxF2raIg3WaEvq4ng2ER7Eb+6lQp7HSeSI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=mJq39e8SCTFWIfnP3OZTtWGitCiJbHOHzn9mn0s/UsnV+pC0l5kCWnbnnZBOtITJD IT3vDjcAc2ns+xmkTPUb4YTHr9Wm18axgJfxeHegyzbYKYevfeDO7VTqYPZhT6b+Lc IjbnKnW1mxCg0pWpfmAMvD5gGjsoa41804j7a0r8= To: libcamera-devel@lists.libcamera.org Date: Mon, 16 Jan 2023 02:28:01 +0200 Message-Id: <20230116002808.16014-2-laurent.pinchart@ideasonboard.com> X-Mailer: git-send-email 2.38.2 In-Reply-To: <20230116002808.16014-1-laurent.pinchart@ideasonboard.com> References: <20230116002808.16014-1-laurent.pinchart@ideasonboard.com> MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH v9 1/8] libcamera: framebuffer: Allow inheritance of FrameBuffer 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 Cc: Harvey Yang Errors-To: libcamera-devel-bounces@lists.libcamera.org Sender: "libcamera-devel" From: Harvey Yang To add buffer_handle_t access in android, this patch allows inheritance of FrameBuffer to add a derived class in android. Signed-off-by: Harvey Yang Reviewed-by: Laurent Pinchart Reviewed-by: Han-Lin Chen Signed-off-by: Laurent Pinchart --- include/libcamera/framebuffer.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/libcamera/framebuffer.h b/include/libcamera/framebuffer.h index 695539993f96..612448290a24 100644 --- a/include/libcamera/framebuffer.h +++ b/include/libcamera/framebuffer.h @@ -46,7 +46,7 @@ private: std::vector planes_; }; -class FrameBuffer final : public Extensible +class FrameBuffer : public Extensible { LIBCAMERA_DECLARE_PRIVATE() @@ -60,6 +60,7 @@ public: FrameBuffer(const std::vector &planes, unsigned int cookie = 0); FrameBuffer(std::unique_ptr d); + virtual ~FrameBuffer() {} const std::vector &planes() const; Request *request() const;