Patch Detail
Show a patch.
GET /api/1.1/patches/26997/?format=api
{ "id": 26997, "url": "https://patchwork.libcamera.org/api/1.1/patches/26997/?format=api", "web_url": "https://patchwork.libcamera.org/patch/26997/", "project": { "id": 1, "url": "https://patchwork.libcamera.org/api/1.1/projects/1/?format=api", "name": "libcamera", "link_name": "libcamera", "list_id": "libcamera_core", "list_email": "libcamera-devel@lists.libcamera.org", "web_url": "", "scm_url": "", "webscm_url": "" }, "msgid": "<20260621-kbingham-awb-saturation-v1-2-b91ea59c6cfb@ideasonboard.com>", "date": "2026-06-20T23:00:29", "name": "[2/7] ipa: rkisp1: awb: Utilise clamp function", "commit_ref": null, "pull_url": null, "state": "new", "archived": false, "hash": "79c6bf82badbd54b8cc127127948f296e7f58b5d", "submitter": { "id": 4, "url": "https://patchwork.libcamera.org/api/1.1/people/4/?format=api", "name": "Kieran Bingham", "email": "kieran.bingham@ideasonboard.com" }, "delegate": null, "mbox": "https://patchwork.libcamera.org/patch/26997/mbox/", "series": [ { "id": 6009, "url": "https://patchwork.libcamera.org/api/1.1/series/6009/?format=api", "web_url": "https://patchwork.libcamera.org/project/libcamera/list/?series=6009", "date": "2026-06-20T23:00:27", "name": "softisp: Fix Saturation and Black level handling", "version": 1, "mbox": "https://patchwork.libcamera.org/series/6009/mbox/" } ], "comments": "https://patchwork.libcamera.org/api/patches/26997/comments/", "check": "pending", "checks": "https://patchwork.libcamera.org/api/patches/26997/checks/", "tags": {}, "headers": { "Return-Path": "<libcamera-devel-bounces@lists.libcamera.org>", "X-Original-To": "parsemail@patchwork.libcamera.org", "Delivered-To": "parsemail@patchwork.libcamera.org", "Received": [ "from lancelot.ideasonboard.com (lancelot.ideasonboard.com\n\t[92.243.16.209])\n\tby patchwork.libcamera.org (Postfix) with ESMTPS id 130ACC3302\n\tfor <parsemail@patchwork.libcamera.org>;\n\tSat, 20 Jun 2026 23:00:43 +0000 (UTC)", "from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id 598B062899;\n\tSun, 21 Jun 2026 01:00:39 +0200 (CEST)", "from perceval.ideasonboard.com (perceval.ideasonboard.com\n\t[213.167.242.64])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id 25516656DD\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tSun, 21 Jun 2026 01:00:36 +0200 (CEST)", "from [192.168.0.240]\n\t(cpc89244-aztw30-2-0-cust6594.18-1.cable.virginm.net [86.31.185.195])\n\tby perceval.ideasonboard.com (Postfix) with ESMTPSA id F16A4CF5;\n\tSun, 21 Jun 2026 00:59:58 +0200 (CEST)" ], "Authentication-Results": "lancelot.ideasonboard.com; dkim=pass (1024-bit key;\n\tunprotected) header.d=ideasonboard.com header.i=@ideasonboard.com\n\theader.b=\"QlU1bJE8\"; dkim-atps=neutral", "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com;\n\ts=mail; t=1781996399;\n\tbh=D509HpL8p5KRn2kdLFIfhcUDFCTpKKZwYkSVgUsRw4I=;\n\th=From:Date:Subject:References:In-Reply-To:To:Cc:From;\n\tb=QlU1bJE8KO652RjW0PBjL2Q4SQNBEocgCFKswvtN72XGq85KFjFwzK2qSP8wfYkbh\n\t0p2nEliHMNmxm+yp1z6v6CfKsLFHwfWZN/VOHKwmJDemdfhca4okMFVRFk76LPTMaE\n\txfqZiWYTC4Y+paOY/8bVrb7mogQ+gJWMbGabJJJ4=", "From": "Kieran Bingham <kieran.bingham@ideasonboard.com>", "Date": "Sun, 21 Jun 2026 00:00:29 +0100", "Subject": "[PATCH 2/7] ipa: rkisp1: awb: Utilise clamp function", "MIME-Version": "1.0", "Content-Type": "text/plain; charset=\"utf-8\"", "Content-Transfer-Encoding": "7bit", "Message-Id": "<20260621-kbingham-awb-saturation-v1-2-b91ea59c6cfb@ideasonboard.com>", "References": "<20260621-kbingham-awb-saturation-v1-0-b91ea59c6cfb@ideasonboard.com>", "In-Reply-To": "<20260621-kbingham-awb-saturation-v1-0-b91ea59c6cfb@ideasonboard.com>", "To": "libcamera-devel@lists.libcamera.org", "Cc": "Kieran Bingham <kieran.bingham@ideasonboard.com>", "X-Mailer": "b4 0.14.2", "X-Developer-Signature": "v=1; a=ed25519-sha256; t=1781996434; l=910;\n\ti=kieran.bingham@ideasonboard.com; s=20260204;\n\th=from:subject:message-id; \n\tbh=D509HpL8p5KRn2kdLFIfhcUDFCTpKKZwYkSVgUsRw4I=;\n\tb=IP+G3XtibBNCcNP/0EsaRmhSxrZI8hmH/nA1xtyItihLYgJMMfdeL9Sk/i8zm/gVu2J/cSkx+\n\tccHvbNZF7uBDdZqOFSSrICFkAqI+prGO3a8MpxXmdDYfwm7WZo05PXS", "X-Developer-Key": "i=kieran.bingham@ideasonboard.com; a=ed25519;\n\tpk=IOxS2C6nWHNjLfkDR71Iesk904i6wJDfEERqV7hDBdY=", "X-BeenThere": "libcamera-devel@lists.libcamera.org", "X-Mailman-Version": "2.1.29", "Precedence": "list", "List-Id": "<libcamera-devel.lists.libcamera.org>", "List-Unsubscribe": "<https://lists.libcamera.org/options/libcamera-devel>,\n\t<mailto:libcamera-devel-request@lists.libcamera.org?subject=unsubscribe>", "List-Archive": "<https://lists.libcamera.org/pipermail/libcamera-devel/>", "List-Post": "<mailto:libcamera-devel@lists.libcamera.org>", "List-Help": "<mailto:libcamera-devel-request@lists.libcamera.org?subject=help>", "List-Subscribe": "<https://lists.libcamera.org/listinfo/libcamera-devel>,\n\t<mailto:libcamera-devel-request@lists.libcamera.org?subject=subscribe>", "Errors-To": "libcamera-devel-bounces@lists.libcamera.org", "Sender": "\"libcamera-devel\" <libcamera-devel-bounces@lists.libcamera.org>" }, "content": "Use the newly introduced 'clamp' operation on the RGB vector type to\nrestrict the raw RGB means.\n\nSigned-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>\n---\n src/ipa/rkisp1/algorithms/awb.cpp | 2 +-\n 1 file changed, 1 insertion(+), 1 deletion(-)", "diff": "diff --git a/src/ipa/rkisp1/algorithms/awb.cpp b/src/ipa/rkisp1/algorithms/awb.cpp\nindex 5ae5b647164329573f0a233ee36d1db7b3683ef9..0eb05c2b6e1ac9e159e050bae3d5c56ec3045299 100644\n--- a/src/ipa/rkisp1/algorithms/awb.cpp\n+++ b/src/ipa/rkisp1/algorithms/awb.cpp\n@@ -332,7 +332,7 @@ void Awb::process(IPAContext &context,\n \t * divisions by zero when computing the raw means in subsequent\n \t * iterations.\n \t */\n-\tawbResult.gains = awbResult.gains.max(1.0 / 256).min(1023.0 / 256);\n+\tawbResult.gains = awbResult.gains.clamp(1.0 / 256, 1023.0 / 256);\n \n \t/* Filter the values to avoid oscillations. */\n \tdouble speed = 0.2;\n", "prefixes": [ "2/7" ] }