From patchwork Mon Jun 21 11:47:36 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: 12662 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 6D626BE58C for ; Mon, 21 Jun 2021 11:47:41 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 9E92F68939; Mon, 21 Jun 2021 13:47:40 +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="TdwcPVt3"; dkim-atps=neutral Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [IPv6:2001:4b98:dc2:55:216:3eff:fef7:d647]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id D3E7E60295 for ; Mon, 21 Jun 2021 13:47:39 +0200 (CEST) Received: from tatooine.ideasonboard.com (unknown [IPv6:2a01:e0a:169:7140:ed63:4e89:23b5:8ca8]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 787B2AD6; Mon, 21 Jun 2021 13:47:39 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1624276059; bh=qvmcQ0ZACH6MtLpUgkQq49ncNkpHqVksLWJXvPmFN7M=; h=From:To:Cc:Subject:Date:From; b=TdwcPVt3EjTuVh/98dW6+tDFkzsHU5Igv4ITNMj0O/h3kOu4MAO0KXGFAWXndYIWK tHv6C6r6RdrhXsZW0nijGx9fpotx3jB8KtCPmO1yQr8s3pngHWB/dtuota5E3/xlI7 yVIxKJlaRTmuxaeV0JaWt2zDkSag12l5OeWnpK7U= From: Jean-Michel Hautbois To: libcamera-devel@lists.libcamera.org Date: Mon, 21 Jun 2021 13:47:36 +0200 Message-Id: <20210621114738.52267-1-jeanmichel.hautbois@ideasonboard.com> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH v5 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. --- 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 | 18 +- src/ipa/libipa/camera_sensor_helper.cpp | 313 ++++++++++++++++++++++++ src/ipa/libipa/camera_sensor_helper.h | 86 +++++++ src/ipa/libipa/meson.build | 2 + 4 files changed, 415 insertions(+), 4 deletions(-) create mode 100644 src/ipa/libipa/camera_sensor_helper.cpp create mode 100644 src/ipa/libipa/camera_sensor_helper.h