From patchwork Tue Mar 2 11:50:58 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jacopo Mondi X-Patchwork-Id: 11433 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 6BEB7BD808 for ; Tue, 2 Mar 2021 11:50:46 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id BF64E68AA6; Tue, 2 Mar 2021 12:50:45 +0100 (CET) Received: from relay12.mail.gandi.net (relay12.mail.gandi.net [217.70.178.232]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 8D84D68A93 for ; Tue, 2 Mar 2021 12:50:43 +0100 (CET) Received: from uno.LocalDomain (93-61-96-190.ip145.fastwebnet.it [93.61.96.190]) (Authenticated sender: jacopo@jmondi.org) by relay12.mail.gandi.net (Postfix) with ESMTPSA id 3B6A320000C; Tue, 2 Mar 2021 11:50:41 +0000 (UTC) From: Jacopo Mondi To: libcamera-devel@lists.libcamera.org Date: Tue, 2 Mar 2021 12:50:58 +0100 Message-Id: <20210302115108.103328-1-jacopo@jmondi.org> X-Mailer: git-send-email 2.30.0 MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH v3 00/10] android: Supports memory backends 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: Han-lin Chen , Daniel Hung-yu Wu Errors-To: libcamera-devel-bounces@lists.libcamera.org Sender: "libcamera-devel" Hello, v3 closes small comments on v2 and introduces the jpegBlobSize() method in the CameraBuffer interface to maintain compatibility with platforms that do not implement memory backend support. This is the only patch missing a review tag. Jacopo Mondi (10): meson: options: Add option to select the Android platform android: Introduce CameraBuffer interface android: camera_buffer: Drop 'const' from buffer_handle_t android: camera_device: Rename buffer fields android: Move buffer mapping to CameraStream android: camera_buffer: Implement libcamera::Extensible android: post_processor: Use CameraBuffer API android: camera_buffer: Add method to get the JPEG blob size android: mm: Provide helper macro for PIMPL android: Introduce Chromium OS buffer manager meson_options.txt | 6 ++ src/android/camera_buffer.h | 66 ++++++++++++ src/android/camera_device.cpp | 51 +-------- src/android/camera_device.h | 6 -- src/android/camera_stream.cpp | 16 ++- src/android/camera_stream.h | 2 +- src/android/jpeg/post_processor_jpeg.cpp | 29 +++-- src/android/jpeg/post_processor_jpeg.h | 2 +- src/android/meson.build | 2 + src/android/mm/cros_camera_buffer.cpp | 128 +++++++++++++++++++++++ src/android/mm/generic_camera_buffer.cpp | 88 ++++++++++++++++ src/android/mm/meson.build | 9 ++ src/android/post_processor.h | 4 +- src/android/yuv/post_processor_yuv.cpp | 20 ++-- src/android/yuv/post_processor_yuv.h | 4 +- 15 files changed, 348 insertions(+), 85 deletions(-) create mode 100644 src/android/camera_buffer.h create mode 100644 src/android/mm/cros_camera_buffer.cpp create mode 100644 src/android/mm/generic_camera_buffer.cpp create mode 100644 src/android/mm/meson.build --- 2.30.0