From patchwork Sun Aug 2 14:01:19 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: j4niwzis X-Patchwork-Id: 27541 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 DB8C4C32FE for ; Sun, 2 Aug 2026 14:01:27 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 8BA4A67FEC; Sun, 2 Aug 2026 16:01:27 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (2048-bit key; unprotected) header.d=proton.me header.i=@proton.me header.b="XyYyYKYw"; dkim-atps=neutral Received: from mail-106103.protonmail.ch (mail-106103.protonmail.ch [79.135.106.103]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id DFC5767FC1 for ; Sun, 2 Aug 2026 16:01:25 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=proton.me; s=protonmail; t=1785679285; x=1785938485; bh=QAhbjaqPVyGz0Me3eC/2wmWYDTV7EBMci1VmNR+ZOOo=; h=Date:To:From:Subject:Message-ID:Feedback-ID:From:To:Cc:Date: Subject:Reply-To:Feedback-ID:Message-ID:BIMI-Selector; b=XyYyYKYw1ZAYh7e4yybJKmDCDIkgBIa3lCbXKeRwK3k/ebx1JqnmnNp1a0tfVbFS1 U/EQKdBpiv1aItuMGfLJ2zQW+S6+JE3Xvd1D0wdiWDucWPzJS0ml5zAIgCBQrvYRA6 KB7XD4ZUtbATKXMMWWA/9DNncp/xS3+btcIAmbeA8F7DNE4XO0fNQ6Inpgm2fEM96a 0fxUZi5e/5S33p22yRNvnmmp1XDXQbny5AohsnaG2QyOu+mQkCFGCV1Xz7deMbt2ll kfeaviUYnSbiqFVPpzZJUMo+MGp95UEG4EqNpLpg8FPmQdjUzVXFrRMeFg0inXXGop VNLAAllUIuaSg== Date: Sun, 02 Aug 2026 14:01:19 +0000 To: "libcamera-devel@lists.libcamera.org" From: j4niwzis Subject: [PATCH 3/3] ipa: simple: Add a tuning file for the IMX582 and IMX586 Message-ID: Feedback-ID: 156040633:user:proton X-Pm-Message-ID: bd650ad05445810ed48e09e90ab0b4f8ab9219e5 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" Without a tuning file of its own the sensor falls back to uncalibrated.yaml,which has no colour correction at all, and the picture comes out blue. The matrices here are the generic Sony daylight and tungsten ones, normalised so that each row sums to one; they are not measured on a particular module, but they are much closer than the identity that the uncalibrated file leaves in place.  A module specific profile can be built later from a colour target without touching this file. Signed-off-by: j4niwzis --- -- 2.51.0 diff --git a/src/ipa/simple/data/meson.build b/src/ipa/simple/data/meson.build --- 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([ +    'imx586.yaml',      'uncalibrated.yaml',  ]) diff --git a/src/ipa/simple/data/imx586.yaml b/src/ipa/simple/data/imx586.yaml new file mode 100644 --- /dev/null +++ b/src/ipa/simple/data/imx586.yaml @@ -0,0 +1,20 @@ +# SPDX-License-Identifier: CC0-1.0 +%YAML 1.1 +--- +version: 1 +algorithms: +  - BlackLevel: +  - Awb: +  - Ccm: +      ccms: +        - ct: 2900 +          ccm: [  1.55, -0.44, -0.11, +                 -0.29,  1.61, -0.32, +                 -0.03, -0.72,  1.75 ] +        - ct: 6500 +          ccm: [  1.60, -0.52, -0.08, +                 -0.23,  1.60, -0.37, +                 -0.04, -0.55,  1.59 ] +  - Adjust: +  - Agc: +...