From patchwork Mon Nov 18 22:53:07 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Geoffrey Van Landeghem X-Patchwork-Id: 21979 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 0B253C3260 for ; Mon, 18 Nov 2024 22:53:22 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id AA54165904; Mon, 18 Nov 2024 23:53:21 +0100 (CET) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="PWdrQ41O"; dkim-atps=neutral Received: from mail-wm1-x333.google.com (mail-wm1-x333.google.com [IPv6:2a00:1450:4864:20::333]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id DF504658F1 for ; Mon, 18 Nov 2024 23:53:16 +0100 (CET) Received: by mail-wm1-x333.google.com with SMTP id 5b1f17b1804b1-4315eac969aso27420125e9.1 for ; Mon, 18 Nov 2024 14:53:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1731970396; x=1732575196; darn=lists.libcamera.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=teXj3gc6g+HopFaIxFYUMApdjK8cAzC9KOk5oMwIDIE=; b=PWdrQ41O7OjggGVZ+R3n4R832icrf2OsARwOwJ68gozJnnF2QWYPfFoLbflVtc219r xNidN1uZmZLAMLzsLSolqWyS8XmuY/8LQvnrFRQ+XCi9iMwh1RIrf2kfqu6IUy48yMef /DJTYwdFhCq+IBYYjFnJDJ8zUXOFOasT3KnakP0gHXNldcGsCEIG12atEW6cfdEgyJf8 +Dvgd8qdrASZSK/vBRgHi8zr8pcjcsmg9mwzEbs69vNibAkuGW8nvb60nxkIEsqnVZvg +ggHdNZF8D4CN26UAZ9ruF3vEbzrrZgswpDh6sSVeg50tIgw3yEpFEdenSCHyZrrNtUv Bq7A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1731970396; x=1732575196; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=teXj3gc6g+HopFaIxFYUMApdjK8cAzC9KOk5oMwIDIE=; b=cJusmnGQcR+T0yNvgYeaAZautIUQmnuqHUztdXH18uolhR7RQ1EP01rYCyfsTnH6Fu o9jXonx0qAwFjzxBkOW11YLe416O6niFGRzuWYYMd99iliHeJfWUYI6SLOb0ANkNuIoQ PPgknt93qMzm0f5rBigt4UPQFzAPS8DvXyUPy77UofsoHnvvNDfR8D56iKltYnq0kEme 45n5jBww6eImvyOuRCOzTc1szLnNuaLsfRdEZ4yfqSQ/ZlkAQIu8J0wVIHMHyPAUL8sR nhapMlM875ItZ0DyfocczF8DpJcvUEn3bFy8T5/SdR9zdpfZh7yEb+U5ur7yHOsxGvSN l1Ww== X-Gm-Message-State: AOJu0YxtzadN4nVm2qab1IjFh34C6qJnxE2cL65hr2r2A+Y3/awewmux Ho09m3H1+68WTQfA/CtJISXojLqRXEG9hTwEhHdGyQn8vgoIUhHc6NiN0PVq X-Google-Smtp-Source: AGHT+IECCgK3Ch9AEDpoHFL7V8LCgzP8/CipofU1ZZnX2lfo2zDEUkDo4CQcc2t5vAJ8hHgN2qhEiA== X-Received: by 2002:a05:600c:242:b0:42c:b67b:816b with SMTP id 5b1f17b1804b1-432f579dff8mr8540655e9.1.1731970396092; Mon, 18 Nov 2024 14:53:16 -0800 (PST) Received: from localhost.localdomain (ptr-gh3gmpb67n6nyq8fe1w.18120a2.ip6.access.telenet.be. [2a02:1812:2512:400:b7f4:fa69:c596:84e4]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-432dab807d4sm170221535e9.21.2024.11.18.14.53.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Nov 2024 14:53:14 -0800 (PST) From: Geoffrey Van Landeghem To: libcamera-devel@lists.libcamera.org Cc: Geoffrey Van Landeghem Subject: [PATCH v2 1/4] libcamera: libipa: camera_sensor: Provide CameraSensorHelper and CameraSensorProperties for the Sony IMX462 image sensor. Date: Mon, 18 Nov 2024 23:53:07 +0100 Message-ID: <20241118225310.446706-2-geoffrey.vl@gmail.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241118225310.446706-1-geoffrey.vl@gmail.com> References: <20241118225310.446706-1-geoffrey.vl@gmail.com> MIME-Version: 1.0 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" The sensor is largely compatible with the already supported Sony IMX290 so we can reuse the same helpers for the analogue gain conversion functions. Signed-off-by: Geoffrey Van Landeghem Reviewed-by: Jacopo Mondi --- src/ipa/libipa/camera_sensor_helper.cpp | 5 +++++ src/ipa/rpi/cam_helper/cam_helper_imx290.cpp | 1 + src/libcamera/sensor/camera_sensor_properties.cpp | 4 ++++ 3 files changed, 10 insertions(+) diff --git a/src/ipa/libipa/camera_sensor_helper.cpp b/src/ipa/libipa/camera_sensor_helper.cpp index c6169bdc..f870dc28 100644 --- a/src/ipa/libipa/camera_sensor_helper.cpp +++ b/src/ipa/libipa/camera_sensor_helper.cpp @@ -622,6 +622,11 @@ public: }; REGISTER_CAMERA_SENSOR_HELPER("imx415", CameraSensorHelperImx415) +class CameraSensorHelperImx462 : public CameraSensorHelperImx290 +{ +}; +REGISTER_CAMERA_SENSOR_HELPER("imx462", CameraSensorHelperImx462) + class CameraSensorHelperImx477 : public CameraSensorHelper { public: diff --git a/src/ipa/rpi/cam_helper/cam_helper_imx290.cpp b/src/ipa/rpi/cam_helper/cam_helper_imx290.cpp index e57ab538..0cc24a6d 100644 --- a/src/ipa/rpi/cam_helper/cam_helper_imx290.cpp +++ b/src/ipa/rpi/cam_helper/cam_helper_imx290.cpp @@ -73,3 +73,4 @@ static CamHelper *create() } static RegisterCamHelper reg("imx290", &create); +static RegisterCamHelper reg462("imx462", &create); diff --git a/src/libcamera/sensor/camera_sensor_properties.cpp b/src/libcamera/sensor/camera_sensor_properties.cpp index 6d4136d0..e2305166 100644 --- a/src/libcamera/sensor/camera_sensor_properties.cpp +++ b/src/libcamera/sensor/camera_sensor_properties.cpp @@ -142,6 +142,10 @@ const CameraSensorProperties *CameraSensorProperties::get(const std::string &sen .unitCellSize = { 1450, 1450 }, .testPatternModes = {}, } }, + { "imx462", { + .unitCellSize = { 2900, 2900 }, + .testPatternModes = {}, + } }, { "imx477", { .unitCellSize = { 1550, 1550 }, .testPatternModes = {},