From patchwork Sun Nov 24 19:29:46 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: 22060 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 73A91C3309 for ; Sun, 24 Nov 2024 19:29:58 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 9F3EF65FFB; Sun, 24 Nov 2024 20:29:57 +0100 (CET) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="PwESr7pn"; dkim-atps=neutral Received: from mail-wm1-x32b.google.com (mail-wm1-x32b.google.com [IPv6:2a00:1450:4864:20::32b]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id F1C2165FF5 for ; Sun, 24 Nov 2024 20:29:55 +0100 (CET) Received: by mail-wm1-x32b.google.com with SMTP id 5b1f17b1804b1-4349e4e252dso3658045e9.0 for ; Sun, 24 Nov 2024 11:29:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1732476595; x=1733081395; 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=VcDkuKRT4ytbvIib0/Z6yjLecAw8Etv2b5r9B+/ciRY=; b=PwESr7pnTlh9HGliJg2RoENJaqtd7UTI/2GvVQilDB0Lflxm3BmwGHItkgoY6Bzm2y 5nMatga600NTC/MAr3mH2XtVrAmx0K3e5NehCEJtKg92MzXhVc2j3UrSl/uD680xkRp2 hG5yd84XthvS6YrWJ2RAJm7Ujn0bUzqpzExkQRx25UuSrCkl11N/cMfC7kgfF5qTBr/1 alTp/wT8mubl3QNrWgpveN9Utw+2vqFA0xdPjA2wl78wBoS52ke5a9rslChog/cnktLd ehOlHSpFNPXC97C4oqoKG+hw6D8qtfd9sEKx1vGZ1xFwDFan/IQjGzLGsIXqwpeT40d9 PQNQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1732476595; x=1733081395; 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=VcDkuKRT4ytbvIib0/Z6yjLecAw8Etv2b5r9B+/ciRY=; b=J1rX1WcUqvoaYNPx06TikGqXN7MLNxmJ4KvJfi4Zi/b/UwQWI350iGLUor8kLWU/r0 ge4h2uk+3VOXuKyZxFH5WTzzM5EVxaBntaRPbE9ids/MgDCGBp6fJxjjS8aajCZ+PRPd Wfxu3BZIKgM+i1Zx/pNkZeM8kS12enJLQT3n1p1shv9Gy1POrq6c+bwJkHnATzE5GAuc BY4F+zYQ7rs6CJobKEGrwZ+QjG2bTvkvXYPHYsBKNgW4pgsHS8ED7yRmmgwS9O0aeWpE VTERhISXVuAxqoSu5zv0FeaYw4wyzpvI7HCT/EU69+tS7ETkLK6ym1vqGMM7R6AzlBec 1hNQ== X-Gm-Message-State: AOJu0Yy945w1LmwAu+u05f6ZFW9L2p8RkIWeGr+MQHeg3oxAXfak8mSu DJeyqKP6MbskNbNS+OFeVboTb3AoU8R+AJ4f0LwquiXEY4J0pgvYks1TtQ== X-Gm-Gg: ASbGncvgHeHB4qd7wGXPFX0BC1HPnk9lsiyqzyePbSQqkQb32yvGnqv0Jt2mYKLmudy vJK/0H9k1Odq61nijoQwc7co2mcd4YThgcY56KOMDfJl2lvvGgY+qR0Fldv2HzS7nm4PgeyP+Sw bE1wrb+qBfO3RhMhW6ZbMPZzlVl5vL4MWjesyqINTnat1Y0SUCU8d+A6XoINocOPrj+9UJ+VxUh kWqcbfp3qZOLOPn6fjE49006PuffwOWRoycJA39KHDZ5b9gg/zRnb0p8GLNygEiwPMCtD3hyXCL 4ODftOQsu/62nxWkQHXf4rGjD423eOPV91+ctayUERjfU47d/FU1GG0= X-Google-Smtp-Source: AGHT+IEfYNvXDNXrSLrIoyu1/X2fvx5KgKtobQhp6f7iNidjTb30/5T+N7A3tdk2ufUH1sBJpMIvBA== X-Received: by 2002:a05:600c:4704:b0:431:5a0e:fa2e with SMTP id 5b1f17b1804b1-433ce49128cmr83961095e9.21.1732476595206; Sun, 24 Nov 2024 11:29:55 -0800 (PST) Received: from localhost.localdomain (ptr-gh3gmp9ck9bx99mg7lb.18120a2.ip6.access.telenet.be. [2a02:1812:2512:400:400a:4d18:885b:f46f]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-433b463ab6csm169691645e9.35.2024.11.24.11.29.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 24 Nov 2024 11:29:53 -0800 (PST) From: Geoffrey Van Landeghem To: libcamera-devel@lists.libcamera.org Cc: Geoffrey Van Landeghem Subject: [PATCH v3 1/5] libcamera: libipa: camera_sensor: Provide helper and properties for Sony IMX462 Date: Sun, 24 Nov 2024 20:29:46 +0100 Message-ID: <20241124192950.542686-2-geoffrey.vl@gmail.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241124192950.542686-1-geoffrey.vl@gmail.com> References: <20241124192950.542686-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 = {},