From patchwork Thu Feb 6 18:52:40 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jacopo Mondi X-Patchwork-Id: 2793 Return-Path: Received: from relay9-d.mail.gandi.net (relay9-d.mail.gandi.net [217.70.183.199]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 8ADBA60864 for ; Thu, 6 Feb 2020 19:50:18 +0100 (CET) X-Originating-IP: 93.34.114.233 Received: from uno.lan (93-34-114-233.ip49.fastwebnet.it [93.34.114.233]) (Authenticated sender: jacopo@jmondi.org) by relay9-d.mail.gandi.net (Postfix) with ESMTPSA id 55158FF804 for ; Thu, 6 Feb 2020 18:50:18 +0000 (UTC) From: Jacopo Mondi To: libcamera-devel@lists.libcamera.org Date: Thu, 6 Feb 2020 19:52:40 +0100 Message-Id: <20200206185247.202233-1-jacopo@jmondi.org> X-Mailer: git-send-email 2.24.1 MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH v2 0/7] Camera sensor factory 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-List-Received-Date: Thu, 06 Feb 2020 18:50:18 -0000 Hello, this series contains another part that was initially sent as part of the larger "Camera properties and compound controls" one. This series introduces two new properties sets for sensor and lens. Their definitions have not changed since the last submission. It then introduces a factory for CameraSensor handler, to specialize handling of sensor to dedicated classes. I have reworked documentation (heavily) compared to the previous submission. It then introduces an handler for ov5670 and register sensor properties for it. Finally a patch not intended for merge to start discussing where information on the lens installed on the camera module should be recorded. The patch is based on v5 of camera properties definition sent yesterday and require compound contol supports, it is not mergeable as it is then. Thanks j Jacopo Mondi (7): libcamera: properties: Define pixel array properties libcamera: properties: Define 'lens' properties libcamera: camera_sensor: Introduce CameraSensorFactory libcamera: sensor: Add OV5670 camera sensor libcamera: camera_sensor: Break out properties initialization libcamera: sensor: ov5670: Register pixel array properties DNI: libcamera: sensor: ov5670: Add lens properties src/libcamera/camera_sensor.cpp | 249 ++++++++++++++---- src/libcamera/include/camera_sensor.h | 42 ++- src/libcamera/meson.build | 1 + src/libcamera/pipeline/ipu3/ipu3.cpp | 2 +- src/libcamera/pipeline/rkisp1/rkisp1.cpp | 2 +- src/libcamera/pipeline/vimc.cpp | 2 +- src/libcamera/property_ids.yaml | 211 +++++++++++++++ src/libcamera/sensor/meson.build | 3 + src/libcamera/sensor/ov5670.cpp | 99 +++++++ src/libcamera/sensor/ov5670.h | 27 ++ test/camera-sensor.cpp | 2 +- .../v4l2_videodevice_test.cpp | 2 +- 12 files changed, 589 insertions(+), 53 deletions(-) create mode 100644 src/libcamera/sensor/meson.build create mode 100644 src/libcamera/sensor/ov5670.cpp create mode 100644 src/libcamera/sensor/ov5670.h --- 2.24.1