From patchwork Wed Nov 20 07:37:00 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Harvey Yang X-Patchwork-Id: 22021 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 87D0FC32F8 for ; Wed, 20 Nov 2024 07:38:20 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 1974D65F3B; Wed, 20 Nov 2024 08:38:20 +0100 (CET) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.b="MTBRueaQ"; dkim-atps=neutral Received: from mail-ot1-x334.google.com (mail-ot1-x334.google.com [IPv6:2607:f8b0:4864:20::334]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id EE05965F2E for ; Wed, 20 Nov 2024 08:38:15 +0100 (CET) Received: by mail-ot1-x334.google.com with SMTP id 46e09a7af769-718186b5c4eso1773698a34.2 for ; Tue, 19 Nov 2024 23:38:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1732088294; x=1732693094; 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=pq9w8fCN7GOmaurR02IrcLHNIs7g7dAAqnTgBMOCv48=; b=MTBRueaQyUWrbXautdo4H8aTrsIrnAlrNHDsIFSYc1mKSbS22AYCbO7DtNtaaI3UOz C/z6cz3EXFj85LY65Ik71lRMpNhnDN/sjpYQCVmM0nivJKUIPmCNK/yQ5t9N68OQ0prz ZQlAkbw4QQJbZKZRDNyd9j8ysPMPIfA/PbLLs= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1732088294; x=1732693094; 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=pq9w8fCN7GOmaurR02IrcLHNIs7g7dAAqnTgBMOCv48=; b=YqRLjT0twsE0U8bjZeU6F9G17gK98d+tP09U3fMB0DF87i2RfcVQuOBEffrqxmpTPr oQs22pCkDyPgIvG2fxUPhdNFAgnthcJdot8DezbSO1l4Cfmz4TcvK/WpT/rWu0kex3nr QIKue8JwcnlBz6jyKiiSlc/OCT+K4naZchf2EQfAj543HtHKLIacDeF5ngRLIhbJfesC vCnPe1KlLGQ8kOnf2keJPAnnbDVNVQ0ft9T/VxAof70R++QcFbCBoxWgcKBIxHf+cbXz 7+0qqkD/xLUe6CbEYoxbPxy3tv1QygwaYtLGHwSj+WmIMVq8Aj+8z73cgfWCBeN0yIFH wZhA== X-Gm-Message-State: AOJu0Yyrzv5rKfpIhkGSzVmFXrxTJTi4n+aaPgXakmApdZjJySyl3BHa 1vtVEb9XRuolYehIy0LwVqDYISbLM2xgkYJ/oYATx4tAe+0XbKzp2ySOWhGYQt0oETBle/cAsww = X-Google-Smtp-Source: AGHT+IHKHoFaF4CRjq3kMUUlViKhN9GDwPFfmAXNL0WmhKnmkIp+Ql62K1gTKk6ru1aB+ROsCn8qXw== X-Received: by 2002:a9d:6d01:0:b0:718:75f:9321 with SMTP id 46e09a7af769-71ab31d209cmr1549663a34.18.1732088294447; Tue, 19 Nov 2024 23:38:14 -0800 (PST) Received: from chenghaoyang-low.c.googlers.com.com (27.247.221.35.bc.googleusercontent.com. [35.221.247.27]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-7f8c1c16ef0sm8943445a12.1.2024.11.19.23.38.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Nov 2024 23:38:14 -0800 (PST) From: Harvey Yang To: libcamera-devel@lists.libcamera.org Cc: Harvey Yang , Han-Lin Chen , Xing Gu , Yudhistira Erlandinata , Harvey Yang Subject: [PATCH v4 2/2] libcamera: libipa: camera_sensor: Add GalaxyCore gc08a3 sensor properties Date: Wed, 20 Nov 2024 07:37:00 +0000 Message-ID: <20241120073806.3552478-3-chenghaoyang@chromium.org> X-Mailer: git-send-email 2.47.0.338.g60cca15819-goog In-Reply-To: <20241120073806.3552478-1-chenghaoyang@chromium.org> References: <20241120073806.3552478-1-chenghaoyang@chromium.org> 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" From: Harvey Yang Provide the GalaxyCore gc08a3 camera sensor properties and registration with libipa for the gain code helpers. Signed-off-by: Han-Lin Chen Co-developed-by: Xing Gu Co-developed-by: Yudhistira Erlandinata Co-developed-by: Harvey Yang --- src/ipa/libipa/camera_sensor_helper.cpp | 12 ++++++++++++ src/libcamera/sensor/camera_sensor_properties.cpp | 7 +++++++ 2 files changed, 19 insertions(+) diff --git a/src/ipa/libipa/camera_sensor_helper.cpp b/src/ipa/libipa/camera_sensor_helper.cpp index 904d5c978..6a2694953 100644 --- a/src/ipa/libipa/camera_sensor_helper.cpp +++ b/src/ipa/libipa/camera_sensor_helper.cpp @@ -531,6 +531,18 @@ public: }; REGISTER_CAMERA_SENSOR_HELPER("gc05a2", CameraSensorHelperGc05a2) +class CameraSensorHelperGc08a3 : public CameraSensorHelper +{ +public: + CameraSensorHelperGc08a3() + { + blackLevel_ = 64; + gainType_ = AnalogueGainLinear; + gainConstants_.linear = { 100, 0, 0, 1024 }; + } +}; +REGISTER_CAMERA_SENSOR_HELPER("gc08a3", CameraSensorHelperGc08a3) + class CameraSensorHelperImx214 : public CameraSensorHelper { public: diff --git a/src/libcamera/sensor/camera_sensor_properties.cpp b/src/libcamera/sensor/camera_sensor_properties.cpp index 2f048d4a3..a15004341 100644 --- a/src/libcamera/sensor/camera_sensor_properties.cpp +++ b/src/libcamera/sensor/camera_sensor_properties.cpp @@ -77,6 +77,13 @@ const CameraSensorProperties *CameraSensorProperties::get(const std::string &sen { controls::draft::TestPatternModeColorBars, 1 }, }, } }, + { "gc08a3", { + .unitCellSize = { 1120, 1120 }, + .testPatternModes = { + { controls::draft::TestPatternModeOff, 0 }, + { controls::draft::TestPatternModeColorBars, 2 }, + }, + } }, { "hi846", { .unitCellSize = { 1120, 1120 }, .testPatternModes = {