From patchwork Wed May 6 23:07:16 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: devve X-Patchwork-Id: 26661 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 EF672C3301 for ; Wed, 6 May 2026 23:07:34 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 2687363043; Thu, 7 May 2026 01:07:34 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="JjIddgXj"; dkim-atps=neutral Received: from mail-qk1-x736.google.com (mail-qk1-x736.google.com [IPv6:2607:f8b0:4864:20::736]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 6EA6D63024 for ; Thu, 7 May 2026 01:07:31 +0200 (CEST) Received: by mail-qk1-x736.google.com with SMTP id af79cd13be357-8ee62a19730so26339585a.3 for ; Wed, 06 May 2026 16:07:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1778108850; x=1778713650; 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=JjIddgXjROogv6SFGXdaGtalR8qzL6Id1I67ZhT8Nv+yEdx6mKtEwBaSCzSJWcVMMm dvMYYp0gimNQkQILLsXaxmNvsQJ2JtmDtu8pF+QqjMpxmja88aZIycmanNh/CO2I309T Ece7id5N8XSjfNBwZe28VJL4f5wY3+kOmATVN2ymDoElYa8UeJWxmbSWGV/39WC0TehN uhwEF+KprGv0g0UvtGF3uRRCEkd0n22TOi4UhwCG0Cc4D1d1Lj0Raa0uXYVkg8RuOIzi mEwuHnzO7YmAjpPstUjNkHhz6QfGqB9wZAzPEhzHCK+CVDBlQ4Ie+9OeZCT1Ix9OZadE u4tw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1778108850; x=1778713650; 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=TBrA7F1MWfsZ+wu8lcChexE4oZOQt2QO27dx8Tzyt9Mk8n2PSFaPm+qC/8zMxI9/iO CkJiabQ9VYYh7OS+ni986RXBhL4de3IEy36UzH5sQyDohK+k0Imv5KrGK1CKdQkAaTeR 2y94xBfSEC5+ovb9GO+81NeVAuk/AskPrFYG2hu8+gU8/Ek2yNNjSQyeN6qwRGH3pdt9 /zJbx9bMWquqh6MLNFLWUF5yugVMR2zP9PmcAkrauqUPRViOiwGo7Th12B/xxFNPtAAc OVzL0snYaAKGwHncpbgvhwooPBscvr6sf7auYX6qLCzSiKkSRLgcoDbGg+zrUeaMhMoG r7Uw== X-Gm-Message-State: AOJu0YxCwc0jSbH5MT/8dFBGpWaPT4n5FKPS2X/eYG1E+HgSxX0ISlt/ Gw9M+pJzc//K5c1G1Y+umx5AUOFhUFGX6HjNJ3KWBqbm8nAYR3x9rkMdmwQaGA== X-Gm-Gg: AeBDieuGtDCZvZsUGTSlLk9hbqH78/rM4crE5tUD4jesTKk4+aVAgnNhBEpdojSLAlN pY+7eBPwSO6Quf83HX1FW4RjPNL4zSq4LcX4QJ7Yts95msX9DPyiNfdnlJTKSvgrBF1RySz4bjX wFB831u01iic0M2/157RjM947hNW3tJWA6lwCYmCMEXeFPuUkFm/wnbIaTgp5pQp4fKJE+RJXr6 xwmizNJfqUv4PViWFcO+VetVLkeI8z4um1qTFWc0IJ4wV6sYrd+NomXzrNM3bdvW3/aQMSpX2RK lwAsYB4Iaz4a2W1ymKyUt9tHiSKB/LzpxGRIJzMtSMRwcUfappyb53jW7ivPY4sDXxWiAy6HY/5 jkgXavNfPWnQw2HKE91lZMugdxylxmZvRxUqTUpiGABUAwqSIvz0eV8+1ohtHQKZXG2TNHJL47Y HXVWdGwE6FcxAcwVQ8mlo0uUzF/NrYYRZyufca/7Iyet4N55mUA8kowS7CFr3v/qIwGVXbrsChV Szw/aUkR1q/x0MPdmwKvmrBYUrgDlfsH6sQoVZJFY4NxzbXoy9TuQ== X-Received: by 2002:a05:620a:2955:b0:8ed:11b9:1eca with SMTP id af79cd13be357-904d4d530b3mr832423385a.23.1778108850326; Wed, 06 May 2026 16:07:30 -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 af79cd13be357-8fc2c25324esm2035266385a.23.2026.05.06.16.07.29 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 May 2026 16:07:29 -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:07:16 +0200 Message-ID: <20260506230722.1041596-5-devve.3@gmail.com> X-Mailer: git-send-email 2.54.0 In-Reply-To: <20260506230722.1041596-1-devve.3@gmail.com> References: <20260506230722.1041596-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 +...