From patchwork Tue Jun 22 09:45:21 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jean-Michel Hautbois X-Patchwork-Id: 12678 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 D4D62C321A for ; Tue, 22 Jun 2021 09:45:29 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 0EDCB6893F; Tue, 22 Jun 2021 11:45:29 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="pxKIBMnL"; dkim-atps=neutral Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id B37AB6050B for ; Tue, 22 Jun 2021 11:45:27 +0200 (CEST) Received: from tatooine.ideasonboard.com (unknown [IPv6:2a01:e0a:169:7140:59b9:69b1:8141:7f28]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 5A1D0A66; Tue, 22 Jun 2021 11:45:27 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1624355127; bh=9jjZ04+un9uC012HxcFDVF6PPQ02sr2dpLtL1vPEPnE=; h=From:To:Cc:Subject:Date:From; b=pxKIBMnLmu64/moOB5QCZoLhMPxjyve04N8Kfqeix9c3xwWaBxetQg7AG+csmWx0o kPyKk5U2i42ALa7ZApHFFnC2etycGmwdhS1W+09JOHRYwrKFrK8un2A0OheG1OkPa3 mtRbtoV5bewlTdYvSb/w9uTtWGXLxAp18Vj9LG8k= From: Jean-Michel Hautbois To: libcamera-devel@lists.libcamera.org Date: Tue, 22 Jun 2021 11:45:21 +0200 Message-Id: <20210622094523.42915-1-jeanmichel.hautbois@ideasonboard.com> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH v6 0/2] libipa: Add support for a new sensor helper 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" In order for the IPAs to be able to set proper control values to the sensor, introduce a new CameraSensorHelper class which aims to remove the dependency between sensors and pipeline handlers. The main goal is to have common units on the IPA side and let the CameraSensorHelper class be overriden for each sensor to support. --- v6: mostly doxygen modifications v5: minor comments v4: Licensing and other small issues v3: take Jacopo comments from v1 into account Jean-Michel Hautbois (2): ipa: Create a camera sensor helper class ipa: ipu3: Initialize CameraSensorHelper at IPU3 init stage src/ipa/ipu3/ipu3.cpp | 19 +- src/ipa/libipa/camera_sensor_helper.cpp | 318 ++++++++++++++++++++++++ src/ipa/libipa/camera_sensor_helper.h | 87 +++++++ src/ipa/libipa/meson.build | 2 + 4 files changed, 422 insertions(+), 4 deletions(-) create mode 100644 src/ipa/libipa/camera_sensor_helper.cpp create mode 100644 src/ipa/libipa/camera_sensor_helper.h