From patchwork Thu Dec 1 09:27:28 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: 17923 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 253D5BDE6B for ; Thu, 1 Dec 2022 09:27:47 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id D376463343; Thu, 1 Dec 2022 10:27:46 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=libcamera.org; s=mail; t=1669886866; bh=aRrFmXPG74P5jR3qMonxndloJ1Z2J/TPA6FbyfrdHlo=; 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=DIhPTOHl64nvrJPLUvRwyu2dd6737OtPcU+YANoNHD5vVzJ/8hm9fw6s4lWdl97Vo B2pJjNIiM2l5UMdz82BSccaAxbkAN78/Lz8lYW6H2a6DKP/k2opAfRQnAfhANo2854 xeZ5xteKB8KwTDJhB1QMLD+HQGVXCWvlasYXTLGgHwnI3pfgUwCRJigo1miJbCjJ5R S/zyizF+fiBHNHtsUvnwuL2BT0yEkY1AhVzFJK5iqE4zc3LZNAwqjbZR3utm5nxb6u SL9QAO8USzOUAJwpWLJtpht9UO/tx8Kf4oVzslkhYDzqTTrNJpou17XK+2ZoBnwUNP hFX/PkzOzfZCw== Received: from mail-pf1-x42d.google.com (mail-pf1-x42d.google.com [IPv6:2607:f8b0:4864:20::42d]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 09A6C63335 for ; Thu, 1 Dec 2022 10:27:44 +0100 (CET) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.b="a1ZAAbek"; dkim-atps=neutral Received: by mail-pf1-x42d.google.com with SMTP id 140so1324653pfz.6 for ; Thu, 01 Dec 2022 01:27:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=5ODVHMsyA8hsFxgiWC634xNltO+LzlfKNEkD4YkrXuI=; b=a1ZAAbekUe7Yq3EyeK3z2q3fiQjQa2Qf4MscgwAy9X1hJReJyk4+F9CkoCRKxvOEGZ NBjjLQxHDYeBET5cHK6wRUmA7GdXQcrgWRVUOfr9SYTW11x6kheHAy6DgMYI8EIOk70f 6tntV4ZLxNz76YJOasH0+PvuXeZQvcZBXowuQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=5ODVHMsyA8hsFxgiWC634xNltO+LzlfKNEkD4YkrXuI=; b=j4i6aTrd2dZNz/3+94xAnA49hyQLT6N8V/zIs3InooH8z4n5yVXgv2QlFY2WCRKyNK QMvF6HOSZYU1GTzY7epBgTLZGbUL1ruN6wmC54bj8NNm/UDNSGC1nItyM8momRgmXQiq CjwlWqUBXQxX1km3Q70uB1sqqzduEmfWpJf6g+5XAmxx84dwciiVr9PtBavnDK7xIgMR 8xCF4o9KL06IIvf4SJsLSUmR3i7d5lBmspu8NaKqIwg0CIVqf1QUuYwX7j3ED2YMXnbB m++KOPGx34300/BICYUKN+NicIKdsqOXCLsBoNxt9mDnAGWQwqEG7SJQUgfzVLeSrXBR HBbg== X-Gm-Message-State: ANoB5pm7msA5T9/a1ux1XCn5m/5zL8PSg3Ryo8OfkMaRh/jAqA3MA25m QyfYu3ehvTNRqPsFIfcRL7+w9TAEmcyUjg== X-Google-Smtp-Source: AA0mqf58e9hRjN3kq6aCoankmLTfJMpCD6P86T++UlyzrLQRaDG6WLBUpSkiRkHIGuJYJEbSGK2A3Q== X-Received: by 2002:a63:d751:0:b0:46f:f87c:fb1a with SMTP id w17-20020a63d751000000b0046ff87cfb1amr42794515pgi.214.1669886862230; Thu, 01 Dec 2022 01:27:42 -0800 (PST) Received: from chenghaoyang-low.c.googlers.com.com (46.165.189.35.bc.googleusercontent.com. [35.189.165.46]) by smtp.gmail.com with ESMTPSA id z9-20020a1709027e8900b00186b8752a78sm3108050pla.80.2022.12.01.01.27.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 Dec 2022 01:27:41 -0800 (PST) X-Google-Original-From: Harvey Yang To: libcamera-devel@lists.libcamera.org Date: Thu, 1 Dec 2022 09:27:28 +0000 Message-Id: <20221201092733.2042078-2-chenghaoyang@google.com> X-Mailer: git-send-email 2.38.1.584.g0f3c55d4c2-goog In-Reply-To: <20221201092733.2042078-1-chenghaoyang@google.com> References: <20221201092733.2042078-1-chenghaoyang@google.com> MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH v7 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 Reviewed-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 69553999..61244829 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;