From patchwork Fri Sep 11 07:49:22 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jacopo Mondi X-Patchwork-Id: 28229 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 A66EDC323E for ; Fri, 11 Sep 2026 07:49:42 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id F2BEE6866A; Fri, 11 Sep 2026 09:49:39 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (1024-bit key; unprotected) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="Xw3Y5ExO"; dkim-atps=neutral Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 21FC06865E for ; Fri, 11 Sep 2026 09:49:36 +0200 (CEST) Received: from [192.168.1.7] (unknown [93.65.100.155]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 746C2C4B; Fri, 11 Sep 2026 09:47:58 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1789112878; bh=KWY9YrN8sCPlGUnxGfXlyLgMfopNjdhNV4MsFsXXbfs=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=Xw3Y5ExOHq+Gu3fmwLlOJahBJySd2hC1ZrsCH/IeuG61ET+3A8gUv9wSlBiTK/9b0 76t5vX/swdIF9Ohpr0bcYNGI/4zbWB0MaDoDlNO8ngYjEYSJl4DDJRyvMt6iiQ9+06 DyusAENRG02ufzvn+2gGY7tGGNN4uTaEO9wRkSwM= From: Jacopo Mondi Date: Fri, 11 Sep 2026 09:49:22 +0200 Subject: [PATCH 1/2] ipa: rkisp1: Add Mira220 tuning file MIME-Version: 1.0 Message-Id: <20260911-mira220-tuning-file-v1-1-c3c588f4188a@ideasonboard.com> References: <20260911-mira220-tuning-file-v1-0-c3c588f4188a@ideasonboard.com> In-Reply-To: <20260911-mira220-tuning-file-v1-0-c3c588f4188a@ideasonboard.com> To: libcamera-devel@lists.libcamera.org Cc: Jacopo Mondi X-Mailer: b4 0.16.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=4520; i=jacopo.mondi@ideasonboard.com; h=from:subject:message-id; bh=KWY9YrN8sCPlGUnxGfXlyLgMfopNjdhNV4MsFsXXbfs=; b=owEBbQKS/ZANAwAKAXI0Bo8WoVY8AcsmYgBqo7KPxSh+7FovIFHvTZCptUdvQ6/Z1FkENcJpy KCDmTlFNPWJAjMEAAEKAB0WIQS1xD1IgJogio9YOMByNAaPFqFWPAUCaqOyjwAKCRByNAaPFqFW PBGTEACV/BPDUeaASbCuYz0aetX4xu4nppYPLeh9nVC3aO/QrSCcW0RRhrUFTqHHbKvPBaO53HN ovJN4ntJzoCq3fPN9vbdDjmUP+0SXC5OXlZdz6MV2wPFCqxKwUmVTtlHI8fST+Sc8iiOVDyYJdb QDUg+M7IxfppDAxB+7QEx9qTjZhA6qHtsKJRzy7sjG/uCQN7zoc1xnUk1OcxNkg2KcxLf3c9ZtZ dOXLWcnZXK9tDSP9MszN3AeXe1xsQgiZDCxuJej6TzD60/7lmUFCOa2nTLeSdx4aSzX8Unyha+G PjjdS9KdkMBeuUgonP6JE8hwJoRHblaGilUXwlgiK3150ePGBCCpqXXwErcLLsS+HGmH706710m XncfPFJm2bzCXAe3KL2jRl5vNRyL1kGu6QUbKzQOuKH3VkXyUODsBVwgMGPTCOf0iLam+D1yL7+ MByJBiR+j7On6LyUaEW0IwdAh3ZMiEywcKPs9l2UMd6jwKZqsVCjUdX28EVgU6iDZyrmCIiDrrN nmiOVLL94gsGE6uRm56cDkhSFvz0PmHfR8MFWcUsogh+ccJFbuqdb4/6ahC0uNWj/T1XxkeBTQ9 p5VKVS8oh5Izv3RSVaMJs+EPweXeKd2DjyFn5qtdyDi0t4l/b7Kd4n3CFapoAlDzbRlas/ZHuA7 NFdgQrEI0d5x9kg== X-Developer-Key: i=jacopo.mondi@ideasonboard.com; a=openpgp; fpr=72392EDC88144A65C701EA9BA5826A2587AD026B 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 a tuning file for Mira220 by running the tuning scripts on: https://gitlab.freedesktop.org/camera/tuning/-/tree/ams-osram/mira220?ref_type=heads Omit the Lens Shading Tables as the lens is not identified yet. Signed-off-by: Jacopo Mondi --- src/ipa/rkisp1/data/meson.build | 1 + src/ipa/rkisp1/data/mira220.yaml | 114 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 115 insertions(+) diff --git a/src/ipa/rkisp1/data/meson.build b/src/ipa/rkisp1/data/meson.build index 1e3522b21cea..996242469551 100644 --- a/src/ipa/rkisp1/data/meson.build +++ b/src/ipa/rkisp1/data/meson.build @@ -3,6 +3,7 @@ conf_files = files([ 'imx219.yaml', 'imx258.yaml', + 'mira220.yaml', 'ov2685.yaml', 'ov4689.yaml', 'ov5640.yaml', diff --git a/src/ipa/rkisp1/data/mira220.yaml b/src/ipa/rkisp1/data/mira220.yaml new file mode 100644 index 000000000000..b45410923007 --- /dev/null +++ b/src/ipa/rkisp1/data/mira220.yaml @@ -0,0 +1,114 @@ +%YAML 1.1 +--- +version: 1 +algorithms: + - Agc: + AeMeteringMode: + MeteringCentreWeighted: [ 0, 0, 0, 0, 0, 0, 6, 8, 6, 0, 0, 8, 16, 8, 0, 0, 6, 8, 6, 0, 0, 0, 0, 0, 0 ] + MeteringSpot: [ 0, 0, 0, 0, 0, 0, 2, 4, 2, 0, 0, 4, 16, 4, 0, 0, 2, 4, 2, 0, 0, 0, 0, 0, 0 ] + MeteringMatrix: [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ] + AeExposureMode: + ExposureNormal: + exposureTime: [ 100, 10000, 30000, 60000, 120000 ] + gain: [ 2.0, 4.0, 6.0, 6.0, 6.0 ] + ExposureShort: + exposureTime: [ 100, 5000, 10000, 20000, 120000 ] + gain: [ 2.0, 4.0, 6.0, 6.0, 6.0 ] + AeConstraintMode: + ConstraintNormal: + lower: + qLo: 0.98 + qHi: 1.0 + yTarget: 0.5 + ConstraintHighlight: + lower: + qLo: 0.98 + qHi: 1.0 + yTarget: 0.5 + upper: + qLo: 0.98 + qHi: 1.0 + yTarget: 0.8 + relativeLuminanceTarget: 0.5 + - Lux: + referenceY: 0.1767075076869632 + referenceExposureTime: 29980 + referenceAnalogueGain: 1.0 + referenceDigitalGain: 1.0 + referenceLux: 455 + - Awb: + algorithm: "bayes" + AwbMode: + AwbAuto: + lo: 2500 + hi: 8000 + AwbIncandescent: + lo: 2500 + hi: 3000 + AwbTungsten: + lo: 3000 + hi: 3500 + AwbFluorescent: + lo: 4000 + hi: 4700 + AwbIndoor: + lo: 3000 + hi: 5000 + AwbDaylight: + lo: 5500 + hi: 6500 + AwbCloudy: + lo: 6500 + hi: 8000 + priors: + - lux: 0 + ct: [ 2000, 13000 ] + probability: [ 1.0, 1.0 ] + colourGains: + - ct: 2737 + gains: [ 1.1119759813188035, 2.413127413127413 ] + - ct: 3545 + gains: [ 1.3848497438027976, 2.2665457842248413 ] + - ct: 3883 + gains: [ 1.463057790782736, 2.14638334406525 ] + - ct: 6782 + gains: [ 1.720282126268708, 1.6477179106936892 ] + transversePos: 0.03954 + transverseNeg: 0.04359 + - BlackLevelCorrection: + - Ccm: + ccms: + - ct: 2737 + ccm: [ + 1.83938, -0.15853, -0.68086, -0.95879, 2.53528, -0.57649, -0.01374, -0.78874, + 1.80248, + ] + - ct: 2860 + ccm: [ + 1.77497, -0.04646, -0.72851, -0.80997, 2.22894, -0.41896, -0.08192, -0.93897, + 2.02089, + ] + - ct: 3545 + ccm: [ + 1.66406, -0.08799, -0.57608, -0.72267, 2.19058, -0.46792, -0.05626, -0.55169, + 1.60796, + ] + - ct: 3883 + ccm: [ + 2.01933, -0.34543, -0.67389, -0.72946, 2.23102, -0.50156, -0.06673, -0.54689, + 1.61363, + ] + - ct: 6782 + ccm: [ + 1.60459, -0.10641, -0.49819, -0.64814, 2.34993, -0.70179, -0.09841, -0.43321, + 1.53162, + ] + - ColorProcessing: + - Filter: + - GammaOutCorrection: + gamma: 2.2 + - WideDynamicRange: + ExposureConstraint: + MaxBrightPixels: 0.02 + yTarget: 0.95 + - Compress: