From patchwork Tue Sep 22 09:47:30 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jacopo Mondi X-Patchwork-Id: 9684 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 2711BBF01C for ; Tue, 22 Sep 2020 09:43:58 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id B8AEF62FD5; Tue, 22 Sep 2020 11:43:57 +0200 (CEST) Received: from relay4-d.mail.gandi.net (relay4-d.mail.gandi.net [217.70.183.196]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 1BE3360364 for ; Tue, 22 Sep 2020 11:43:57 +0200 (CEST) X-Originating-IP: 93.34.118.233 Received: from uno.lan (93-34-118-233.ip49.fastwebnet.it [93.34.118.233]) (Authenticated sender: jacopo@jmondi.org) by relay4-d.mail.gandi.net (Postfix) with ESMTPSA id DA978E001C; Tue, 22 Sep 2020 09:43:54 +0000 (UTC) From: Jacopo Mondi To: libcamera-devel@lists.libcamera.org Date: Tue, 22 Sep 2020 11:47:30 +0200 Message-Id: <20200922094738.5327-1-jacopo@jmondi.org> X-Mailer: git-send-email 2.28.0 MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH v3 0/8] android: camera_device: Add support for internal buffers 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: , Cc: hanlinchen@chromium.org Errors-To: libcamera-devel-bounces@lists.libcamera.org Sender: "libcamera-devel" Sorry for the noise, I'll re-send as the first version was missing the right To and Cc fields. My bash history suggests I have not used --to-cover --cc-cover options to git send-email :( ------------------------------------------------------------------------------- Minimal changes: - added Niklas tag - use switch() instead of if() in 7/8 as suggested by Niklas I would like to push this if no objections Thanks j Jacopo Mondi (8): android: camera_device: Add CameraStream::Type android: camera_device: Add frame allocator libcamera: frame_buffer_allocator: Add clear() android: camera_device: Clear allocator at configureStream android: camera_device: Allocate buffer pools android: camera_device: Add methods to get and return buffers android: camera_device: Use libcamera buffer pool android: camera_device: Add stream mapping log include/libcamera/framebuffer_allocator.h | 1 + src/android/camera_device.cpp | 164 +++++++++++++++++++--- src/android/camera_device.h | 102 +++++++++++++- src/libcamera/framebuffer_allocator.cpp | 8 ++ 4 files changed, 252 insertions(+), 23 deletions(-) --- 2.28.0