From patchwork Wed Sep 2 15:22:24 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jacopo Mondi X-Patchwork-Id: 9461 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 D16DBBE174 for ; Wed, 2 Sep 2020 15:18:58 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 510E9629B2; Wed, 2 Sep 2020 17:18:58 +0200 (CEST) Received: from relay1-d.mail.gandi.net (relay1-d.mail.gandi.net [217.70.183.193]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 2AB2B60374 for ; Wed, 2 Sep 2020 17:18: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 relay1-d.mail.gandi.net (Postfix) with ESMTPSA id 216EA240007; Wed, 2 Sep 2020 15:18:55 +0000 (UTC) From: Jacopo Mondi To: libcamera-devel@lists.libcamera.org Date: Wed, 2 Sep 2020 17:22:24 +0200 Message-Id: <20200902152236.69770-1-jacopo@jmondi.org> X-Mailer: git-send-email 2.28.0 MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH v2 00/12] android: camera_device: Fix JPEG/RAW sizes 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: tfiga@google.com, hiroh@google.com Errors-To: libcamera-devel-bounces@lists.libcamera.org Sender: "libcamera-devel" Hello, this series includes what was sent as [PATCH 0/5] android: camera_device: List JPEG/RAW correct resolutions [RFC 0/7] android: camera_device: Turn CameraStream into a class thanks to Kieran super-speedy review I can now send both of them in a single iteration. Merging the two cover letters, the series addresses the following issues: Patches 01->05: - Claim support for JPEG sizes based on the supported YCbCr_888 sizes. - Enumerate the RAW sizes Patches 06->12 The goal is to make CameraStream a class which provides a read-only interface and enforce the creation of CameraStream instances only when all the requested information (size, format and associated libcamera::StreamConfiguration index) are available. In the hope this paves ahead to ease introducing more HAL-only streams by making the CameraStream class the intermediate representation of an Android stream mapped to a libcamera stream. Thanks j Jacopo Mondi (12): android: camera_device: Refuse unsupported formats android: camera_device: Generate JPEG sizes android: camera_device: Add debug to stream initialization android: camera_device: Break out size calculation android: camera_device: Generate RAW resolutions libcamera: camera_configuration: Return config index android: camera_device: Get rid of stream counter android: camera_device: Use camera3 stream format android: camera_device: Use Android format android: camera_device: Rework CameraStream handling android: camera_device: Set Encoder at construction android: camera_device: Make CameraStream a class include/libcamera/camera.h | 2 +- src/android/camera_device.cpp | 221 +++++++++++++++++++++++----------- src/android/camera_device.h | 30 +++-- src/libcamera/camera.cpp | 5 +- 4 files changed, 175 insertions(+), 83 deletions(-) --- 2.28.0