From patchwork Fri Jun 11 07:03:09 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: 12560 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 89468BD78E for ; Fri, 11 Jun 2021 07:03:16 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id B05E56892E; Fri, 11 Jun 2021 09:03:15 +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="jrV30wkV"; dkim-atps=neutral Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id C16F268926 for ; Fri, 11 Jun 2021 09:03:13 +0200 (CEST) Received: from tatooine.ideasonboard.com (unknown [IPv6:2a01:e0a:169:7140:b7ca:7036:1f45:d9e5]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 51D47B75; Fri, 11 Jun 2021 09:03:13 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1623394993; bh=kflFN8Cg5vItUA90oipninUfRIDx6YRCPcGAn/Kfcqc=; h=From:To:Cc:Subject:Date:From; b=jrV30wkV3cHblscaM4YinZqA0NbiGeJqMwQWOALlJSPjyl/+frSyk6blN0D6+rdS/ kG51aV9LDW8MiAkHj3AsgWYfQEUSEuOn6mANKNI0BKV7jSKImeCbtyV1ZxJr7OieDn iQzOrnDf8ni4dG87uBPKKQ1DTML9W0LxJXzowGEw= From: Jean-Michel Hautbois To: libcamera-devel@lists.libcamera.org Date: Fri, 11 Jun 2021 09:03:09 +0200 Message-Id: <20210611070311.12080-1-jeanmichel.hautbois@ideasonboard.com> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH v3 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. --- 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 | 17 +- src/ipa/libipa/camera_sensor_helper.cpp | 319 ++++++++++++++++++++++++ src/ipa/libipa/camera_sensor_helper.h | 88 +++++++ 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