From patchwork Tue Jun 15 13:35:32 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: 12600 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 D892ABD78E for ; Tue, 15 Jun 2021 13:35:37 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 9C5146892C; Tue, 15 Jun 2021 15:35:37 +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="EsW7k0ON"; 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 483326029A for ; Tue, 15 Jun 2021 15:35:36 +0200 (CEST) Received: from tatooine.ideasonboard.com (unknown [IPv6:2a01:e0a:169:7140:4f90:1575:e6a1:e628]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id EB09A4A3; Tue, 15 Jun 2021 15:35:35 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1623764136; bh=wtP7I3lraf8xOcR8O3uZd3ssIdme6OpvESpBInEQzIo=; h=From:To:Cc:Subject:Date:From; b=EsW7k0ONDvakwwzCwnMsNz+jEReyNuAtlbxtVV1SCFGlXao8cfzb0sbeQHZ6JsqPw 9DiaAqBX8Vxh1m4fqmbU2s/BzHEHYUwvfVNWQN3reQUMe2NKfqTCsgmRNNYv962GVs U2U14+8JBicSwSknA96DG2KuPqzlFgdiMaBKP1/M= From: Jean-Michel Hautbois To: libcamera-devel@lists.libcamera.org Date: Tue, 15 Jun 2021 15:35:32 +0200 Message-Id: <20210615133534.29502-1-jeanmichel.hautbois@ideasonboard.com> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH v4 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. --- 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 | 318 ++++++++++++++++++++++++ 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