From patchwork Wed May 6 23:06:43 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: devve X-Patchwork-Id: 26655 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 A6D85C32F9 for ; Wed, 6 May 2026 23:07:02 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 0A9DE63024; Thu, 7 May 2026 01:07:00 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="S8JAwilz"; dkim-atps=neutral Received: from mail-wm1-x336.google.com (mail-wm1-x336.google.com [IPv6:2a00:1450:4864:20::336]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 602096301A for ; Thu, 7 May 2026 01:06:52 +0200 (CEST) Received: by mail-wm1-x336.google.com with SMTP id 5b1f17b1804b1-488ba840146so1599855e9.1 for ; Wed, 06 May 2026 16:06:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1778108812; x=1778713612; darn=lists.libcamera.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=JUKQ09Nx7NLeaiPTW9IaTACA3hv2E+jWsDiYD//GlaA=; b=S8JAwilzxXJT35wA5QQK5x0v4JhzsNeSHlt9v3y37vz/9ila5CJYpotER3RKYTtIDr I8loZ0GWHPFG7SgeZlcqKtnhWEyDUsV8bbcAd9oW5F4WwjRklM1Ok+dz/yPFf9wZw8Wm 1WzcHv8+xVKiOsJSF2830RM6HToOJpA+VhGeLSkKnPS4E2qBCelTi9iH4ngOwPrTO3jB KpPW5i9LidB1IQWbGLwUdo6ECughpzPSRswaflkHOZO3ttm39GzR9xZ5/lEEux32UQJY 6gnjaH7F+5tSdBCuHlbQb8ACofNGsQiLrLTl035cGFtwnhh+g85aaQVDaOFt1wA/iv6t X0XQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1778108812; x=1778713612; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-gg:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=JUKQ09Nx7NLeaiPTW9IaTACA3hv2E+jWsDiYD//GlaA=; b=PdFcmI10nfjKeE1rKS/utHzsLCaBl1BZFSkWk+S13MeTQqiBObCr7cLe0CFUM2cir0 Js5r6Dwrtb7bepVSp2K1SOGwR+0nOEmxb8y82Q6a5bhIz4ydsH0TW4bmWWMafFxcqK0s fQv6lIaYlhtCj7VeU93Ru/xvCt6C/8nuCvuFOmwAFEZXeU5wEErXoq9SYRyS5s5olHVp FFSCJEMSLoO/TdisH5FCiNc6cJb+UgMx7GxYe3xKolPksng87JI9drVM0wiP7tcgKuyP ftQOareHlXltKW6t6DcyzMNXJTKaDggnBpgBlzM90HvQBLZfCeaYWZwE9drQLxrjag3N DJbg== X-Gm-Message-State: AOJu0YxHo3SdhGCAaFha1IXLbvr4OwKVWqtdM4xRf21HWKcwJ63CmnuZ 0E9ER+pHo0b0P7/2qwWmqu3qziC1tbw1m7zMp1ZvNm0fRLR6nPrZiQlnFfPp4g== X-Gm-Gg: AeBDievGVeKKHslUeAqjxQgV8gKJfoYP06gyHp17Ggd2VOZYVpoZK0SDinD7c+iTbNp /IVELPJdaOOKDjNS7eGWJymnToy/gsHrx7x1wZXxCIwA3gwRd43QSn2bmGiOleFz3NtoxWNH/Nv Lz3p07KEWPzB0azEOP55AbDayTSnvck64TgWFqdqN3h5DOz3PkldLiO/3+zJ7+7W2Xufd/rtJ0C XCpqk7K/2ajUNiFgwzc5g8cJ2eJpn3CBI2olrlguN0lcFVtddc3Hk38cIJOzkoCQw0rOqe/N2hi gZZ9/gEQqHtVHA52b72xROCblrha6x98RBgL//xxfBieHcWaB58TXgTfWT0wEF04VRaCFdY6SYg Jgk5Q9mq1Iw6Y151Fk/Bc5/mQX0pMJgSBthfM9p0r6Vo61b1nrspFDSswk0d+zunoTvK/dkJlxx dA3E0+sO+JGsQbZafG9Naa2DFq3gvzUiGdzIIGbZyez4ea31Po+hAcVhmoggVO84dhD0pbkMPoS PMZkHtJp/OGioJmw73SQEijbKdWenKSAuHnVdgHEI0= X-Received: by 2002:a05:600c:c08b:b0:489:201c:dc46 with SMTP id 5b1f17b1804b1-48e51e204b5mr69199605e9.12.1778108811818; Wed, 06 May 2026 16:06:51 -0700 (PDT) Received: from dexps.speedport.ip (p200300eda74453cf3cf3f7929e513b94.dip0.t-ipconnect.de. [2003:ed:a744:53cf:3cf3:f792:9e51:3b94]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-48e538a547bsm85951935e9.5.2026.05.06.16.06.51 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 May 2026 16:06:51 -0700 (PDT) From: d3vv3 To: libcamera-devel@lists.libcamera.org Subject: [PATCH v2 04/10] ipa: simple: data: Add OV01A10 tuning file Date: Thu, 7 May 2026 01:06:43 +0200 Message-ID: <20260506230649.1040794-5-devve.3@gmail.com> X-Mailer: git-send-email 2.54.0 In-Reply-To: <20260506230649.1040794-1-devve.3@gmail.com> References: <20260506230649.1040794-1-devve.3@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" Add tuning data for the OmniVision OV01A10 sensor, calibrated from the factory-supplied Intel IPU6 AIQB binary (ov01a_1BG101N3_MTL.aiqb) shipped with the Dell XPS 9320 (Meteor Lake). The AIQB binary was parsed with some custom scripts to extract: - 8 colour correction matrices spanning 2856K-7500K (Incandescent to D75), all with rows summing to 1.0 (luminance-preserving) - AWB neutral locus: 9 achromatic R/G, B/G points defining the sensor's white balance response across illuminants - Sensor properties: 1280x800, 10-bit, GBRG colour order, base ISO 43 - Noise model: read noise variance 7.5e-5, shot noise slope 0.187 The AWB gain limits (maxGainR: 2.5, maxGainB: 3.2) are derived from the maximum gains required to neutralise the warmest and coolest illuminants in the locus, with 10% headroom. Signed-off-by: d3vv3 --- src/ipa/simple/data/meson.build | 1 + src/ipa/simple/data/ov01a10.yaml | 55 ++++++++++++++++++++++++++++++++ 2 files changed, 56 insertions(+) create mode 100644 src/ipa/simple/data/ov01a10.yaml diff --git a/src/ipa/simple/data/meson.build b/src/ipa/simple/data/meson.build index 92795ee4..e6110320 100644 --- a/src/ipa/simple/data/meson.build +++ b/src/ipa/simple/data/meson.build @@ -1,6 +1,7 @@ # SPDX-License-Identifier: CC0-1.0 conf_files = files([ + 'ov01a10.yaml', 'uncalibrated.yaml', ]) diff --git a/src/ipa/simple/data/ov01a10.yaml b/src/ipa/simple/data/ov01a10.yaml new file mode 100644 index 00000000..d1f613c5 --- /dev/null +++ b/src/ipa/simple/data/ov01a10.yaml @@ -0,0 +1,55 @@ +# SPDX-License-Identifier: CC0-1.0 +%YAML 1.1 +--- +version: 1 +algorithms: + # Black level is not specified in the AIQB calibration binary; auto-detected + # from the histogram dark end at runtime. + - BlackLevel: + - Awb: + maxGainR: 2.5 + maxGainB: 3.2 + speed: 0.25 + - Ccm: + ccms: + - ct: 2856 + ccm: [ 1.1248, 0.2210, -0.3458, + -0.4616, 1.7736, -0.3120, + -0.4342, -0.9348, 2.3690 ] + - ct: 3000 + ccm: [ 1.5839, -0.4188, -0.1650, + -0.3670, 1.6565, -0.2895, + -0.1213, -1.0442, 2.1655 ] + - ct: 3450 + ccm: [ 1.6411, -0.5127, -0.1284, + -0.3680, 1.6337, -0.2657, + -0.1384, -1.0869, 2.2253 ] + - ct: 4000 + ccm: [ 1.5414, -0.4024, -0.1390, + -0.3304, 1.6352, -0.3048, + -0.1237, -0.6699, 1.7936 ] + - ct: 4150 + ccm: [ 1.7334, -0.6629, -0.0706, + -0.3121, 1.6267, -0.3146, + -0.0920, -0.9183, 2.0103 ] + - ct: 5000 + ccm: [ 1.5015, -0.3165, -0.1850, + -0.2277, 1.6190, -0.3913, + -0.0699, -0.7285, 1.7984 ] + - ct: 6500 + ccm: [ 1.8163, -0.7062, -0.1100, + -0.1640, 1.5736, -0.4096, + -0.0084, -0.8294, 1.8378 ] + - ct: 7500 + ccm: [ 1.8953, -0.7980, -0.0973, + -0.1539, 1.6001, -0.4462, + -0.0101, -0.7800, 1.7902 ] + - Adjust: + gamma: 2.2 + contrast: 1.0 + saturation: 1.0 + - Agc: + exposureTarget: 2.5 + hysteresis: 0.2 + stepDenominator: 20 +...