From patchwork Wed Dec 2 15:23:17 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jacopo Mondi X-Patchwork-Id: 29143 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 D22AFC3355 for ; Wed, 2 Dec 2026 15:23:33 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 445C16AB04; Wed, 2 Dec 2026 16:23:30 +0100 (CET) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (1024-bit key; unprotected) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="CS3mCdPu"; dkim-atps=neutral Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 675B46AAED for ; Wed, 2 Dec 2026 16:23:27 +0100 (CET) Received: from [192.168.1.182] (93-46-82-201.ip106.fastwebnet.it [93.46.82.201]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 7466A4BB; Wed, 2 Dec 2026 16:20:48 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1796224848; bh=TvS5RH+H9NUmAVI2MKMYqhkxpJVVdv8akafPDz98Hck=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=CS3mCdPuns0uElBvEy1JhEqtIy9yLvrPPFoSJlMiPUJ+Qj7nNirle13Fw4vL98kUJ PzvSIEpaZmlCbIyz/k9TqWfwSVseKoYWEerJoPUEGpEjS0x5GKFVlTA4RtJmx468Bc 17gToZglflS86aa/qImLcbjrQ8DlT7ioh+WUBHQI= From: Jacopo Mondi Date: Wed, 02 Dec 2026 16:23:17 +0100 Subject: [PATCH v4 2/5] ipa: rpi: vc4: Add Mira016 tuning file MIME-Version: 1.0 Message-Id: <20261202-b4-mira016-v4-2-6cb5648ead85@ideasonboard.com> References: <20261202-b4-mira016-v4-0-6cb5648ead85@ideasonboard.com> In-Reply-To: <20261202-b4-mira016-v4-0-6cb5648ead85@ideasonboard.com> To: Philippe Baetens , libcamera-devel@lists.libcamera.org Cc: Jacopo Mondi X-Mailer: b4 0.16.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=4621; i=jacopo.mondi@ideasonboard.com; h=from:subject:message-id; bh=TvS5RH+H9NUmAVI2MKMYqhkxpJVVdv8akafPDz98Hck=; b=owEBbQKS/ZANAwAKAXI0Bo8WoVY8AcsmYgBrEDftZludEY+NW1HNjEGzs79vJqY0rpBpxyUiB 78ooUH2vvWJAjMEAAEKAB0WIQS1xD1IgJogio9YOMByNAaPFqFWPAUCaxA37QAKCRByNAaPFqFW PMSlEACOO0eJ/lhuzRjpm+gH9bldNWgE6M4izuMn6ugeofI9gSecslXN7ZneDQBvQZF3Pu1jOS6 eaUXzaGj70nZz0fUTYiC2zjGOak1lZU2GrBDX/b8h0Oo03MtX04gZw/Ccm6lZdavtpj3m/dcM8Q 7xEUVXHWEug409D/gw1WkLDMpmhoPt8Ami+E6kT3QPAzc+Z9HBCFazCHg57XIIMZf16A5P5vlCb wRrAY3sINWlH1eoCZGOQoMe0hEdA0kYFM7gmEeh41RnFKxrF/sraudyAXU43V4lCuoJZKgMfzA7 eX0iK7yvfgAGA0DEObuVRR2EWIf8izGFFvj9yWfAGIhmqjPMPJoQOlDiwSMb/Zy0ZJe1w82sMDE C6Ulft6b0zsVK+tCTJWU1UKdYAduZK7zYDuZiKlWHSz3wuobMqX1XEBTiLPeDauKrvOHOUtx7QD a4qToB6pK9tScHUZEnZQUBa41uFXFC6sB0cnPYfAmgCrBea9bamJ7f9fN+ZFRCDCFcBmZcAeClo fRLGXXSho7bM0DJu6m56hao5oRzchB32Lfdc+6xgvNzUEeM97rkPvPMRnMUuwXZeW21fbLBt6JG lR79U4srIl6kzM8JNG4EFLbhzmGPr9PU48G/5M31EWyQ179lZuXuqFbxsRLwKHAj2zSecYew/hI 6332wddopKIBSAQ== 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 Add tuning file for the Mira016 RGB version to the RaspberryPi VC4 IPA. The tuning has been performed by the vendor and is upported from https://github.com/ams-OSRAM/libcamera.git at revision d7d5e17ec961 ("update json files so they are truly mono"). Signed-off-by: Jacopo Mondi --- src/ipa/rpi/vc4/data/meson.build | 1 + src/ipa/rpi/vc4/data/mira016_mono.json | 102 +++++++++++++++++++++++++++++++++ 2 files changed, 103 insertions(+) diff --git a/src/ipa/rpi/vc4/data/meson.build b/src/ipa/rpi/vc4/data/meson.build index 7afca760bd03..0a22e130498a 100644 --- a/src/ipa/rpi/vc4/data/meson.build +++ b/src/ipa/rpi/vc4/data/meson.build @@ -24,6 +24,7 @@ conf_files = files([ 'imx708_wide.json', 'imx708_wide_noir.json', 'imx832.json', + 'mira016_mono.json', 'mira220.json', 'ov5647.json', 'ov5647_noir.json', diff --git a/src/ipa/rpi/vc4/data/mira016_mono.json b/src/ipa/rpi/vc4/data/mira016_mono.json new file mode 100644 index 000000000000..568770f56a3f --- /dev/null +++ b/src/ipa/rpi/vc4/data/mira016_mono.json @@ -0,0 +1,102 @@ +{ + "version": 2.0, + "target": "bcm2835", + "mono": true, + "algorithms": [ + { + "rpi.black_level": + { + "black_level": 1536 + } + }, + + { + "rpi.lux": + { + "reference_shutter_speed": 20316, + "reference_gain": 1.0, + "reference_aperture": 1.0, + "reference_lux": 530, + "reference_Y": 9873 + } + }, + { + "rpi.contrast": + { + "ce_enable": 0, + "gamma_curve": + [ + 0, 0, + 1024, 5040, + 2048, 9338, + 3072, 12356, + 4096, 15312, + 5120, 18051, + 6144, 20790, + 7168, 23193, + 8192, 25744, + 9216, 27942, + 10240, 30035, + 11264, 32005, + 12288, 33975, + 13312, 35815, + 14336, 37600, + 15360, 39168, + 16384, 40642, + 18432, 43379, + 20480, 45749, + 22528, 47753, + 24576, 49621, + 26624, 51253, + 28672, 52698, + 30720, 53796, + 32768, 54876, + 36864, 57012, + 40960, 58656, + 45056, 59954, + 49152, 61183, + 53248, 62355, + 57344, 63419, + 61440, 64476, + 65535, 65535 + ] + } + }, + { + "rpi.sharpen": { } + }, + { + "rpi.agc": + { + "metering_modes": + { + "centre-weighted": { "weights": [ 3, 3, 3, 2, 2, 2, 2, 1, 1, 1, 1, 0, 0, 0, 0 ] }, + "spot": { "weights": [ 2, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ] }, + "matrix": { "weights": [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ] } + }, + "exposure_modes": + { + "normal": + { + "shutter": [ 100, 10000, 30000, 60000, 120000 ], + "gain": [ 1.0, 2.0, 4.0, 6.0, 6.0 ] + }, + "short": + { + "shutter": [ 100, 5000, 10000, 20000, 120000 ], + "gain": [ 1.0, 2.0, 4.0, 6.0, 6.0 ] + } + }, + "constraint_modes": + { + "normal": [ { "bound": "LOWER", "q_lo": 0.98, "q_hi": 1.0, "y_target": [ 0, 0.5, 1000, 0.5 ] } ], + "highlight": [ + { "bound": "LOWER", "q_lo": 0.98, "q_hi": 1.0, "y_target": [ 0, 0.5, 1000, 0.5 ] }, + { "bound": "UPPER", "q_lo": 0.98, "q_hi": 1.0, "y_target": [ 0, 0.8, 1000, 0.8 ] } + ] + }, + "y_target": [ 0, 0.16, 1000, 0.165, 10000, 0.17 ] + } + } + ] +}