From patchwork Wed Jun 22 12:37:01 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Cheng-Hao Yang X-Patchwork-Id: 16311 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 41004BE173 for ; Wed, 22 Jun 2022 12:37:21 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 08A8C65638; Wed, 22 Jun 2022 14:37:21 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=libcamera.org; s=mail; t=1655901441; bh=PlvX2QWQRbicnMrHz9Z55Ms0++yLpMpOKgEWarYoELM=; 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=HuwSo1MJIcm1I592J8jgV6OoVeP2kVyDsbqce2PZTXUN83WLan/InaTd9TeXUYmy/ eaX9dX+0ymKW1CIvbYHQSKQINzgriyFsJnw1kZcMjNsmWAf+JnlQxdjHVkGdwS4v9j 9lx1A2SntE7ttkv47isSclptFy47tSCsvt0nlxjtbNT7ltxHanVSvtqzLV1xYwk902 XKTkO51niIDyVIRqznrYHb0jzaIc0RiaAhVTSjWrdC/lqe0bqTdXA0psLJAzh7pCcq nnBd9jgTV+gXwaz3hSZOz26QA9UxFlKd06ikf/wZXi+iMhghFbWdg0OpJDTkIvZtu6 KRq1g+MgQaJgQ== Received: from mail-pl1-x62b.google.com (mail-pl1-x62b.google.com [IPv6:2607:f8b0:4864:20::62b]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 7F768633A7 for ; Wed, 22 Jun 2022 14:37:19 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.b="KuXks4S+"; dkim-atps=neutral Received: by mail-pl1-x62b.google.com with SMTP id k14so3796931plh.4 for ; Wed, 22 Jun 2022 05:37:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=x7CV/ccAxMp4SFNTCghxmX/NsH4mhEjOsWki4hGZhYw=; b=KuXks4S+qKouCnuW1C8wbJxvLbVztKWsCR+4ZMfl+22oJXfB68cTxWgs/ZOkJNbQvA mrZ3pxsOWnSHD8ho4GniTCRBwciuJVb5Q2To6cCCZJp2nh1eP/K6IX9qRstxBSUX1MDv vlsT+HtSnfAUj6cdO65Pf9/pBjTuC2cDeOX2w= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=x7CV/ccAxMp4SFNTCghxmX/NsH4mhEjOsWki4hGZhYw=; b=6OzhBPmsibgXnKscs6y7BlqF0JbSfE8NRh1ti6lz1LjLIIu5ZxYYQQ656HTz31TiGu GqYCYvjxFwYklb6QmB197kxZsfCagXyNBAy2Od8CAVv1tPn8EPFU+SOHEfYC4XpGYCuT 6mWorcNFalgP1SSdgURoUoeXUCzXSpmrn+q30jALhaSU3K1TyKT8eQHHiJFjIXm7J/KR nLhWbnAoDU+BUNNa+1oEeNLPrVwTPbs7gM3dfLAF3TBJtJpJ+lor4/YJH75UsR1+4RIn IcU+CnP8jbLObS2Z1M3azQyQpaU02U3Z1mXb9NU2B8q8fIr37usTE3cLJC9OIvdloEE+ wSOA== X-Gm-Message-State: AJIora96iJ7XDPFEMyex/7dBSHnXWqdjmgpFFpx3oBECs1XXavLsJa4b daD19QSTGDFsQ1E9ojmaySieSSCXYJbiqg== X-Google-Smtp-Source: AGRyM1vvyCeHisjG+T9KD/OXfKINxZrc3j32JfEM2PU5JLXg221sieVu0i6B90PJJtD5ep3fzxlA5w== X-Received: by 2002:a17:90a:dc82:b0:1ea:c77d:c9a4 with SMTP id j2-20020a17090adc8200b001eac77dc9a4mr48179951pjv.197.1655901437652; Wed, 22 Jun 2022 05:37:17 -0700 (PDT) Received: from chenghaoyang-low.c.googlers.com.com (21.160.199.104.bc.googleusercontent.com. [104.199.160.21]) by smtp.gmail.com with ESMTPSA id j3-20020a170903024300b0016378bfeb90sm12684038plh.227.2022.06.22.05.37.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Jun 2022 05:37:15 -0700 (PDT) X-Google-Original-From: Harvey Yang To: libcamera-devel@lists.libcamera.org Date: Wed, 22 Jun 2022 12:37:01 +0000 Message-Id: <20220622123706.2946976-2-chenghaoyang@google.com> X-Mailer: git-send-email 2.37.0.rc0.104.g0611611a94-goog In-Reply-To: <20220622123706.2946976-1-chenghaoyang@google.com> References: <20220622123706.2946976-1-chenghaoyang@google.com> MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH v5 1/6] 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: Harvey Yang via libcamera-devel From: Cheng-Hao Yang Reply-To: Harvey Yang 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 --- 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 3b1118d1..e6c769b4 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() @@ -61,6 +61,7 @@ public: FrameBuffer(const std::vector &planes, unsigned int cookie = 0); FrameBuffer(std::unique_ptr d, const std::vector &planes, unsigned int cookie = 0); + virtual ~FrameBuffer() {} const std::vector &planes() const { return planes_; } Request *request() const;