From patchwork Thu Jun 10 14:57:14 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: 12551 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 67186C320B for ; Thu, 10 Jun 2021 14:57:21 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 8267268930; Thu, 10 Jun 2021 16:57:20 +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="ZgtY7Ns7"; 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 CDD056029B for ; Thu, 10 Jun 2021 16:57:18 +0200 (CEST) Received: from tatooine.ideasonboard.com (unknown [IPv6:2a01:e0a:169:7140:81ac:d9e4:203e:60a8]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 61DFBE79; Thu, 10 Jun 2021 16:57:18 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1623337038; bh=nqKNysbem/7s0C8bhG1doR/gLw8zenEUu3EpQSPK9jw=; h=From:To:Cc:Subject:Date:From; b=ZgtY7Ns7c9bkUXwiEVU0W7nrxGvE7lyIIk10CGxo9hL1DfK+LQa61Dgti+LHIKWDN Ozj9niEg8abQBNekOUvWzzcrRvLQaI0sSp+3WzcQGT+W1yO4AHuGPooVpG3BR3GImT ETYcj2u/0/CwyOMvQppxfxIlBKqFfSoi9VvRO9Qs= From: Jean-Michel Hautbois To: libcamera-devel@lists.libcamera.org Date: Thu, 10 Jun 2021 16:57:14 +0200 Message-Id: <20210610145716.2630772-1-jeanmichel.hautbois@ideasonboard.com> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH v2 0/2] libipa: Add support for a new camera sensor 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. Jean-Michel Hautbois (2): ipa: Create a camera sensor helper class ipa: ipu3: Initialize CameraSensorHelper at IPU3 init stage src/ipa/ipu3/ipu3.cpp | 17 +- src/ipa/libipa/camera_sensor_helper.cpp | 322 ++++++++++++++++++++++++ src/ipa/libipa/camera_sensor_helper.h | 89 +++++++ src/ipa/libipa/meson.build | 2 + 4 files changed, 426 insertions(+), 4 deletions(-) create mode 100644 src/ipa/libipa/camera_sensor_helper.cpp create mode 100644 src/ipa/libipa/camera_sensor_helper.h