From patchwork Fri Dec 18 16:47:45 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jacopo Mondi X-Patchwork-Id: 10681 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 58D02C0F1A for ; Fri, 18 Dec 2020 16:47:51 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id BCAB961599; Fri, 18 Dec 2020 17:47:50 +0100 (CET) Received: from relay7-d.mail.gandi.net (relay7-d.mail.gandi.net [217.70.183.200]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 83A9A6052C for ; Fri, 18 Dec 2020 17:47:49 +0100 (CET) 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 relay7-d.mail.gandi.net (Postfix) with ESMTPSA id 353E62000D for ; Fri, 18 Dec 2020 16:47:48 +0000 (UTC) From: Jacopo Mondi To: libcamera-devel@lists.libcamera.org Date: Fri, 18 Dec 2020 17:47:45 +0100 Message-Id: <20201218164754.81422-1-jacopo@jmondi.org> X-Mailer: git-send-email 2.29.2 MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH v2 0/9] libcamera: Introduce sensor database 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: , Errors-To: libcamera-devel-bounces@lists.libcamera.org Sender: "libcamera-devel" Well, introducing the sensor database is only part of the series. Compared to v1 I've moved the sensor database to report a list of properties instead of custom data. The end goal of the series is to report two android static metadata. One exposed through the sensor database, the other collected from the sensor database. In order to get there: - Introduce two new draft properties in the first 2 patches - Expand the BayerPatter class to support mbus codes - Allow creation of ControlList with initializer lists and build the sensor database on top of this new feature - Register in the CameraSensor class properties retrieved from the sensor database and inspect the list of formats to deduce the color filter arrangement - Register the two properties in the Android camera HAL A note in patch [2/9] for a possible Doxygen bug. Thanks j Jacopo Mondi (9): libcamera: properties: SensorPhysicalSize draft property libcamera: properties: ColorFilterArrangement draft property libcamera: bayer_format: Add support for mbus codes libcamera: camera_sensor: Register ColorFilterArrangement android: camera_device: Report ColorFilterArrangement libcamera: controls: List-initialize ControlList libcamera: Introduce camera sensor database libcamera: camera_sensor: Register static properties android: camera_device: Report sensor physical size include/libcamera/controls.h | 2 + include/libcamera/internal/bayer_format.h | 3 + include/libcamera/internal/camera_sensor.h | 1 + include/libcamera/internal/meson.build | 1 + include/libcamera/internal/sensor_database.h | 37 +++++++ src/android/camera_device.cpp | 21 +++- src/libcamera/bayer_format.cpp | 71 ++++++++++++- src/libcamera/camera_sensor.cpp | 57 +++++++++- src/libcamera/controls.cpp | 11 ++ src/libcamera/meson.build | 1 + src/libcamera/property_ids.yaml | 37 +++++++ src/libcamera/sensor_database.cpp | 106 +++++++++++++++++++ 12 files changed, 337 insertions(+), 11 deletions(-) create mode 100644 include/libcamera/internal/sensor_database.h create mode 100644 src/libcamera/sensor_database.cpp --- 2.29.2