From patchwork Wed May 6 22:08:06 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: devve X-Patchwork-Id: 26643 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 B6227BDCB5 for ; Wed, 6 May 2026 22:08:12 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 97B9F63026; Thu, 7 May 2026 00:08:11 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="B/7ws9yJ"; dkim-atps=neutral Received: from mail-wm1-x32f.google.com (mail-wm1-x32f.google.com [IPv6:2a00:1450:4864:20::32f]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 15FAD62DC4 for ; Thu, 7 May 2026 00:08:10 +0200 (CEST) Received: by mail-wm1-x32f.google.com with SMTP id 5b1f17b1804b1-488ad135063so1566065e9.0 for ; Wed, 06 May 2026 15:08:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1778105289; x=1778710089; 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=YBY2swc1BE6gF1cp2n45FtNdf9pu1JhN0yKaJlnU/s4=; b=B/7ws9yJy43rv1lU+qDzukxqMO7o1ABsmmFhMrECWTZdeo0f4JqCPlYIsYa57ymS0n daNV37Sq/j1tcU/kefDNgoih2tCGpjxdzYLjizlWnIjGJdw8zcdAMnrQ6hGLdCc2Gh5g 1ogk892gTLQ9j5NfBoqxLOeJ5V3fbgpk04XDMfRaobc413uymOy+Kol2L3lp4AoHNdIZ Iy8L0vUH3JEvZWIXHKHJKie7PLeV2h03IkgNNJrRDLzc5nlSiQkfTPnzfw7+qww3nBxE z4LORzQEpy1GeCir64B4qDGQvMa+ch5X8hMQ+34ABlk+0R3QaI7Gda2+j4WElUsTh9rv ivNw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1778105289; x=1778710089; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=YBY2swc1BE6gF1cp2n45FtNdf9pu1JhN0yKaJlnU/s4=; b=AlcFg0iMI7Scb/q9W8VGwn/UAN50rv5vKZsiWX/SM7vgDgLFWuAQwnKzBQjuOQ+Ykw r6XrHS/ei9oW2HcokVmA3PNPIUFJQtY1jWJlCCLZbtZ/8qu28okwwErgdNJDk+m1uxOs qDUxSQOPspUoVTawPlaSNSC8scV1jQrBzIL+ojUun35zNuaN9NcIJCMZdHH2h9VIbUuN +EmdcsTnj0zkF+jutuNT9gUSdw7S7yXGSZp/BsTjLRAAc6Vml1xOAG3yR3aYuXPMCD/M UXrYwK9zIgFxzEjPvRlX0GYAe5EkuiFvXC4Upt/Ha2V01he4S3kN2sATPEtEbLHPHoAE BK/g== X-Gm-Message-State: AOJu0Yz4k7g9FrEEJdx9TXofsvsMg7xtUPSskxpyLSbHpoxv4g95lL3h b+cTTHvg99666VAjnJRiSjR+Yw83PyYfNx9onJZZGtmti6MS34r2Zg2XR/6Kkw== X-Gm-Gg: AeBDies2TZR3w+ZOYEWe2Mc2+gTiDrHJjtUod7NbkN4piBQEJ12jgMpSphzsQH831iS c3DP+0+XxiooZnOQpSZfZB+MAIp0F+sYMnGKIVedoKuHzmXDozqbjvTHLTjq0PvP52orGt0/kl+ 2HijXBEbcAP1/NPmv4fNrKC2HiEjLFsXmqBPSFO/3f/F8Cd1EqXPL9Gq5HNZZyiChWRAxMNld5b knTluiLoCNIQIvITLSfvhau4vk87X0gPc1JWtK/S3S54zvhurjVISsZjm2E2fs/r7CXaW+GT0en gV2P/hMyb2Z2qOyMzKbmv3C411m7PGp/QMp3iCXfIzjl15GSiM9Icbx3VJaYxN/WlIYj/YZ3Cv4 QH6YauI/oZW9MvBRwUFS9EzUG2jjDBHOyviMH0tPKeyM441bI/j1asSjEAgxMCZ2LImcktH3Gky gQ9dYfCsAy9JJbzEM42b14/NdZPBrV19NpsrGnAFLT/UNK5Yi3loKvqkGgFG+sf9EdTfacTrlT3 jJKRzZcxuMYA+WPfQo0FOUr1mozqqbM X-Received: by 2002:a05:600c:5304:b0:48e:51f8:eb38 with SMTP id 5b1f17b1804b1-48e51f8eb70mr89797955e9.27.1778105289264; Wed, 06 May 2026 15:08:09 -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-48e530b213asm25738985e9.2.2026.05.06.15.08.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 May 2026 15:08:08 -0700 (PDT) From: d3vv3 To: libcamera-devel@lists.libcamera.org Cc: d3vv3 Subject: [PATCH v2 3/9] ipa: simple: data: Add OV01A10 tuning file Date: Thu, 7 May 2026 00:08:06 +0200 Message-ID: <20260506220806.866289-1-devve.3@gmail.com> X-Mailer: git-send-email 2.54.0 In-Reply-To: <20260501191400.985920-3-devve.3@gmail.com> References: <20260501191400.985920-3-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 --- It was a best effort file before, but now I have extracted the actual tuning data from the AIQB binary, so update the commit message and add the new YAML file. I could not extract the black level from the AIQB binary, so leave it as auto-detected at runtime. As for the each row of the CCMs summing to 1.0, you are absolutely right. I add a test on a patch, before we start adding more tuning files. 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..fa5afcdd --- /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: 1.4 + hysteresis: 0.5 + stepDenominator: 20 +...