From patchwork Wed Feb 8 03:33:15 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Harvey Yang X-Patchwork-Id: 18262 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 AD677BEFBE for ; Wed, 8 Feb 2023 03:33:31 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 60869625E3; Wed, 8 Feb 2023 04:33:31 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=libcamera.org; s=mail; t=1675827211; bh=nxQH6Fnf5tBxut2vw18X01WtPIl2E0cii2wz2Jf/Um4=; 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=prXhUb5kDJXz/rGncXmEON16ZyL2V1gRsBFThLIgd3KKz8FGzwG/FpSz+/0jj1Hjh 4ywTuYCMckt5gkBszzw1sDXNYAUnB+7TyQaqXH90lHDbCVPtDOHBT4267MbA4KEch9 m1KxNdsWOGi7+GCfxDJ4fREtIbbjskw2OudNPm4T8aLPTebT6SZH71b13XNswV/lMY v7JJ8BBY1ozOIaW+3gTo/25zGXWlnLaZWOwyQOxgMb3gam5Qnd1dH9x4FGH1pa3l0i rA4UJtLYOi57xl2CffM4ygnuCDc45Nfm7UqWqHFvOwQivRsqkWZkvwjYKupJwTay2D +EwDoiAREieVQ== Received: from mail-pj1-x1029.google.com (mail-pj1-x1029.google.com [IPv6:2607:f8b0:4864:20::1029]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 834DE603B8 for ; Wed, 8 Feb 2023 04:33:27 +0100 (CET) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.b="eR9sNZLc"; dkim-atps=neutral Received: by mail-pj1-x1029.google.com with SMTP id c10-20020a17090a1d0a00b0022e63a94799so956473pjd.2 for ; Tue, 07 Feb 2023 19:33:27 -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=skPLhBnh3iLkI1XSxbHLlMVG/RIJVEbJWy1VZEFkv5k=; b=eR9sNZLc3Pci1i+5nAJUKp6IMtLL6mmh7fs96nxWUbe+z0Zw4OVx7rjYWEuuPXJ744 wycRT9Lih+SMumFGnHMo0vTWUA73fcaymZFhh1A/7ZxGRpJn9dWq2kWAfErAv0dFlJVN FquZMbSov5ONLUsPzB9B6U6O3W/VrMdIFTrKI= 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=skPLhBnh3iLkI1XSxbHLlMVG/RIJVEbJWy1VZEFkv5k=; b=o/WjIi08JkRVTWsMTlBtG0ZyK4A9x/abVzD6ZRk8Ig4cdUcBelWWFSJlJ7nfFZbUwH ZZTNvs7O1wX7SouP5INFDD+uFPO1mdu7vKdiPEZXC4tzE5eBQaznQipL+j1c+KEIJ0gW CwE/OO20jN5Ukn0yk9cuIIWEwBJ99i3s+cM8L96hNmUe+5JsiNBJzrwfMOGao4KK+ap4 ByFC9Fr6lEZ4D0QFh4iPuFSnkEv4hvWgXIjKlDHTIix/ONGeB30zqe4sg+dB38YlWcKC r1UgWTBVbFh3kOQgajaQvp32PLJCUtWd/m5To7T6Dc1C0yemGg1oMjDWZIiivoGqtwte KbPA== X-Gm-Message-State: AO0yUKUJtpBbdU8GlIcbXPY/tLSaq6X+KIxyUmZeocqcgdGZJUH57yBx 1XBal3RAF83A09ubZNBYBkvmioo3L2ufHGFE X-Google-Smtp-Source: AK7set9pHY4IlquhrjWGH1dNJRVIjmJLgFnfFKW2xoUSMMqD8obO3Hmm+9d1Mm+1O8d0I4JEEuLggQ== X-Received: by 2002:a17:902:ce86:b0:199:1375:279c with SMTP id f6-20020a170902ce8600b001991375279cmr5793585plg.69.1675827205703; Tue, 07 Feb 2023 19:33:25 -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 e9-20020a170902784900b00194c82c2a7bsm9621963pln.224.2023.02.07.19.33.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Feb 2023 19:33:25 -0800 (PST) X-Google-Original-From: Harvey Yang To: libcamera-devel@lists.libcamera.org Date: Wed, 8 Feb 2023 03:33:15 +0000 Message-Id: <20230208033319.1361109-2-chenghaoyang@google.com> X-Mailer: git-send-email 2.39.1.519.gcb327c4b5f-goog In-Reply-To: <20230208033319.1361109-1-chenghaoyang@google.com> References: <20230208033319.1361109-1-chenghaoyang@google.com> MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH v10 1/5] 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: Harvey Yang via libcamera-devel From: Harvey 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 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 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;