From patchwork Thu Apr 28 09:55:39 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: 15743 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 0A452C3256 for ; Thu, 28 Apr 2022 09:55:59 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id BA1BB65643; Thu, 28 Apr 2022 11:55:58 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=libcamera.org; s=mail; t=1651139758; bh=MnBw0VtZLV0ChWN6qy6mMftHZPzprQwTde4XzfFIWcg=; 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=AVJA4L1xf6u5OL7I423+Pq6gE5zbZWp+UrcWzRcZ9dSJE5J0gowrvzoBl/JjtM/NM RieCITwHtyrSwL0NcbxszZxEuQHi0PPSvXsCTk/AWcAiFGWkNRizY0hKOZXpRjUlc8 0s73WDK5YfdIjq2AcSvJ2b8RRWSYqnuB45tuDN5iZPdHKLiK9S9cBsHyjC+j+RprOD xxkGljxCK1yzb1354FQs8TewL4d/6Dye98PY3dFmjunSTt28eyu9aHxiJuD9WgLgpo lnw3VOUprEra8G+AGsqPtd+fzkSJujXQMy7P1zcFwZ31cxGQdZilNaYtZYXPIJGAoO 2W1JpKFi+Qxng== Received: from mail-pj1-x102c.google.com (mail-pj1-x102c.google.com [IPv6:2607:f8b0:4864:20::102c]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id BD3CB65644 for ; Thu, 28 Apr 2022 11:55:56 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.b="dJF4+nFz"; dkim-atps=neutral Received: by mail-pj1-x102c.google.com with SMTP id iq10so3881067pjb.0 for ; Thu, 28 Apr 2022 02:55:56 -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=cVxSlUD1nSICClAUJNcDweoWDMkgJCpn5sWDanPVMlQ=; b=dJF4+nFzOyqEngD4inUZqBvn+4SUsu+J7OLKw1sVBG4aaAwyP/urpGh3iLwInDKm2b A0ECkKx8lxzdi8Uf5Oil7zd5CgwXtGlA/xAI0Izsf75gmC8B8NQf1xomWDMU4TOG9g+l yZq1Zo8m4e1iHJD7XerFdSCkvN2Sw6Is71Bw8= 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=cVxSlUD1nSICClAUJNcDweoWDMkgJCpn5sWDanPVMlQ=; b=p9gMxG/sG0fo7MhwxPtTWAMdmYSjA5qkaWzMNFi15NtIRNMHt5LONxliPU8Lnim8AM 4/D7PeYgUxZINhqqdVNyyEWvpi4lPjwRNCNMgOkScMi/zZVfdppNUNP1zSzHnUIM3fkE rUndBWNbXWsBkxw350M7b3CbmEBJLggoCt48+93+iM3jfWStgltFa2X4dmZps31hiizM 5kzWN9bvKdMmVD1fShmzBiu26rP1QnYtM2Rhc6iLAHaRYJoBDPjqkVYnpC0YUQqr9lp1 RtxR1dnj+/Qq49ZPVDGyt+ejTNDGCdSl7bkN5Td6S+FskZvvT+ZmTqaEFOTopWe7fBE2 2XLQ== X-Gm-Message-State: AOAM533waLoFt0vj+GZiBnb2nmSO91qoVa1a3bFnyfXSlgc/k6j1iY8g MCKb5qtHbTm//y/tvBdzDNCF4YiJPykR2SRh X-Google-Smtp-Source: ABdhPJwhwbC3jn/35JVwXCcVYZigVX4zZVAYNq54JY1+2brhoajnXM3bn60Ro4LL9ynVCOBSofOsXQ== X-Received: by 2002:a17:90b:4a09:b0:1d2:de49:9be8 with SMTP id kk9-20020a17090b4a0900b001d2de499be8mr49564956pjb.68.1651139754965; Thu, 28 Apr 2022 02:55:54 -0700 (PDT) Received: from chenghaoyang.c.googlers.com.com (93.135.240.35.bc.googleusercontent.com. [35.240.135.93]) by smtp.gmail.com with ESMTPSA id x6-20020a17090a46c600b001d960eaed66sm5861256pjg.42.2022.04.28.02.55.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Apr 2022 02:55:54 -0700 (PDT) To: libcamera-devel@lists.libcamera.org Date: Thu, 28 Apr 2022 09:55:39 +0000 Message-Id: <20220428095544.2795980-2-chenghaoyang@chromium.org> X-Mailer: git-send-email 2.36.0.rc2.479.g8af0fa9b8e-goog In-Reply-To: <20220428095544.2795980-1-chenghaoyang@chromium.org> References: <20220428095544.2795980-1-chenghaoyang@chromium.org> MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH v4 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" 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;