From patchwork Mon Mar 28 12:03:32 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laurent Pinchart X-Patchwork-Id: 15571 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 6ADC1C0F1B for ; Mon, 28 Mar 2022 12:03:44 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id A5C5865636; Mon, 28 Mar 2022 14:03:43 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=libcamera.org; s=mail; t=1648469023; bh=dew1VCkVfMOElx6821tCfGCVBFeuRDgDnE1j9uPTJlw=; h=To:Date:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=HTWX+FBAWXNYPZKok8Z7USUNa1FJ/8SbpgDH/QgU/rcIdUSjhVYoAxzuLksI2geqN vTWqPAAjDikm82ufrQAsj/oHmEiYjJV4qEyTixSxbqlZIt1YZ5aEvpS27yvuYafDDL 8uIw9D4fHY4EnQtgzycBNHUC9OGK7tfL4aCoiTqwroIUoIeWUCs1iY7agBdZ7pcVd7 655FYZVWmJ5ij2esHqGmaU44yDrh7fHyglm808cVnY3OSZq50xIjHXVUtwPfuONKKe ksKhgCTO4QL64Eb530OdmF9F7KIoBTCcgW3rMQgl2XAk9rbPLorL/LmWmfnArhS+yS 7Xo57CypmwS1A== Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id DCE1B60135 for ; Mon, 28 Mar 2022 14:03:41 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (1024-bit key; unprotected) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="u3s5jJgY"; dkim-atps=neutral Received: from pendragon.lan (62-78-145-57.bb.dnainternet.fi [62.78.145.57]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 6190C299 for ; Mon, 28 Mar 2022 14:03:41 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1648469021; bh=dew1VCkVfMOElx6821tCfGCVBFeuRDgDnE1j9uPTJlw=; h=From:To:Subject:Date:From; b=u3s5jJgYdQMc3x+d3DClDRAs5JcOaL8COFzKcTy50VyucMUuuShFpON8BaEaoEECc ZYVawxk8AT4TJob1dFwF/Oy1U9HBuESTuZNW+jg18GMDcYvEdfEM7vlrT0dO53SBAp a5OJPkP/9FHQ/EXKpYWmtzTLLHaOHXsFY0v0SN0g= To: libcamera-devel@lists.libcamera.org Date: Mon, 28 Mar 2022 15:03:32 +0300 Message-Id: <20220328120336.10834-1-laurent.pinchart@ideasonboard.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH 0/4] IPA sensor helpers for IMX290 and IMX296 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: , X-Patchwork-Original-From: Laurent Pinchart via libcamera-devel From: Laurent Pinchart Reply-To: Laurent Pinchart Errors-To: libcamera-devel-bounces@lists.libcamera.org Sender: "libcamera-devel" Hello, This small series adds support for the IMX290, IMX296 and OV5640 camera sensors to the IPA camera sensor helper. Both sensors have an exponential gain model, which differs from the MIPI CCS exponential model in that the exponential factor is expressed in dBs instead of powers of two. Patch 1/4 prepares for exponential gain model support by reorganizing gain constants, and patch 2/4 implements the exponential model. It is currently restricted to a fixed linear factor (see patch 2/4 for details). Patches 3/4 and 4/4 then add support for the two sensors. Laurent Pinchart (4): libipa: camera_sensor_helper: Reorganize gain constants libipa: camera_sensor_helper: Implement exponential gain model libipa: camera_sensor_helper: Add IMX290 helper libipa: camera_sensor_helper: Add IMX296 helper src/ipa/libipa/camera_sensor_helper.cpp | 210 +++++++++++++++++------- src/ipa/libipa/camera_sensor_helper.h | 16 +- 2 files changed, 166 insertions(+), 60 deletions(-)