From patchwork Fri May 3 12:44:20 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Stein X-Patchwork-Id: 19996 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 2455DBDE6B for ; Fri, 3 May 2024 13:07:47 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 28B3B6340B; Fri, 3 May 2024 15:07:46 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (2048-bit key; unprotected) header.d=tq-group.com header.i=@tq-group.com header.b="AEIeCxne"; dkim=fail reason="key not found in DNS" (0-bit key; unprotected) header.d=ew.tq-group.com header.i=@ew.tq-group.com header.b="r744riyk"; dkim-atps=neutral Received: from mx1.tq-group.com (mx1.tq-group.com [93.104.207.81]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 1A23461A8A for ; Fri, 3 May 2024 14:44:29 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tq-group.com; i=@tq-group.com; q=dns/txt; s=key1; t=1714740269; x=1746276269; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=CybFSi57ZqACHqEWd5efuOtT9h5ojp7K6c/Td4ZBAUg=; b=AEIeCxneUsaFUal9KUIjFx2/dHP1DlmvMHd0FJhhIrHSVntnknf7zD1x dQ5isaKNltM7sInaF5R8lipzcf22XSpTmuKVdQksNqACcQFHqbx9KNl28 /8Ftc/ZFOzKiY11GzBbetXbe79GTqxU80bdS27KSzJ05EhlM/WdZi+3mW Sg85nZEMv/+glLKZVxtnhv59Oz8EDmVpAsPV7GbdFUWMQcPvOtvBC3vPu cVun26yClz5w0CX9jAQubHl9uOmZpMuoK5JkvvD21fIXJL1Tiok7e+Uz4 OXgR+Eo3k7ofwW0OGrGgRP5qTC9zthO5smH4oagAFYzN/gaxsAzbavgrn g==; X-IronPort-AV: E=Sophos;i="6.07,251,1708383600"; d="scan'208";a="36735888" Received: from vmailcow01.tq-net.de ([10.150.86.48]) by mx1.tq-group.com with ESMTP; 03 May 2024 14:44:28 +0200 Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id 31FA117331D; Fri, 3 May 2024 14:44:24 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ew.tq-group.com; s=dkim; t=1714740264; h=from:subject:date:message-id:to:cc:mime-version: content-transfer-encoding; bh=CybFSi57ZqACHqEWd5efuOtT9h5ojp7K6c/Td4ZBAUg=; b=r744riykfursyGTbbRWU8Wtvhg1ROiHZGB6p0bAHD9S/OIEsdWr4iopwQUNi1/wQYxK95H UVPWSLeGW11uEimSN8xGpisaGVSIY/UrAv3ev1gCRDl6baX3xFSXIR17LFnMtNBpUQU1VM JoOoDsvZ08dNstKZlzqA4ZFzW/IfHXezt+lmzSNys+7y3hXiIFhnouk945YXpoz/2jsjui XPglqjV8x7+/nF5Mw5RrjFAdrEnnn2PIoSojQClQIWjRWCNg/wYDNt/k0Wtfwa0CutIcnR voPpy1Wwfpd1pJkQFRHlZtsrO3lAj65R6a/GTe5Rcmi9JgwgcJB4bCjNFlXS2g== From: Alexander Stein To: libcamera-devel@lists.libcamera.org Cc: Alexander Stein Subject: [PATCH 1/1] libcamera: libipa: camera_sensor: Add Sony IMX415 sensor properties Date: Fri, 3 May 2024 14:44:20 +0200 Message-Id: <20240503124420.2043486-1-alexander.stein@ew.tq-group.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-Last-TLS-Session-Version: TLSv1.3 X-Mailman-Approved-At: Fri, 03 May 2024 15:07:44 +0200 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" Provide the Sony IMX415 camera sensor properties and registration with libipa for the gain code helpers. The test patterns exposed by the IMX415 do not map well to the current set of test pattern controls supplied by libcamera. These are left intentionally unimplemented. Signed-off-by: Alexander Stein Reviewed-by: Laurent Pinchart Reviewed-by: Daniel Scally --- I shamelessly used the same commit message and structure from commit 6b1b2bd7 ("libcamera: libipa: camera_sensor: Add Sony IMX335 sensor properties"). src/ipa/libipa/camera_sensor_helper.cpp | 11 +++++++++++ src/libcamera/sensor/camera_sensor_properties.cpp | 4 ++++ 2 files changed, 15 insertions(+) diff --git a/src/ipa/libipa/camera_sensor_helper.cpp b/src/ipa/libipa/camera_sensor_helper.cpp index 84d52d10..f8a497e1 100644 --- a/src/ipa/libipa/camera_sensor_helper.cpp +++ b/src/ipa/libipa/camera_sensor_helper.cpp @@ -466,6 +466,17 @@ public: }; REGISTER_CAMERA_SENSOR_HELPER("imx335", CameraSensorHelperImx335) +class CameraSensorHelperImx415 : public CameraSensorHelper +{ +public: + CameraSensorHelperImx415() + { + gainType_ = AnalogueGainExponential; + gainConstants_.exp = { 1.0, expGainDb(0.3) }; + } +}; +REGISTER_CAMERA_SENSOR_HELPER("imx415", CameraSensorHelperImx415) + class CameraSensorHelperImx477 : public CameraSensorHelper { public: diff --git a/src/libcamera/sensor/camera_sensor_properties.cpp b/src/libcamera/sensor/camera_sensor_properties.cpp index 895bf967..5c2c93e1 100644 --- a/src/libcamera/sensor/camera_sensor_properties.cpp +++ b/src/libcamera/sensor/camera_sensor_properties.cpp @@ -119,6 +119,10 @@ const CameraSensorProperties *CameraSensorProperties::get(const std::string &sen .unitCellSize = { 2000, 2000 }, .testPatternModes = {}, } }, + { "imx415", { + .unitCellSize = { 1450, 1450 }, + .testPatternModes = {}, + } }, { "imx477", { .unitCellSize = { 1550, 1550 }, .testPatternModes = {},