Patch Detail
Show a patch.
GET /api/1.1/patches/17538/?format=api
{ "id": 17538, "url": "https://patchwork.libcamera.org/api/1.1/patches/17538/?format=api", "web_url": "https://patchwork.libcamera.org/patch/17538/", "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": "<20221006120105.3861831-6-paul.elder@ideasonboard.com>", "date": "2022-10-06T12:01:03", "name": "[libcamera-devel,5/7] utils: tuning: Add alsc-only libtuning raspberrypi tuning script", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": false, "hash": "dd020b53c540206d5686bf0b3cfb2e054d539343", "submitter": { "id": 17, "url": "https://patchwork.libcamera.org/api/1.1/people/17/?format=api", "name": "Paul Elder", "email": "paul.elder@ideasonboard.com" }, "delegate": null, "mbox": "https://patchwork.libcamera.org/patch/17538/mbox/", "series": [ { "id": 3536, "url": "https://patchwork.libcamera.org/api/1.1/series/3536/?format=api", "web_url": "https://patchwork.libcamera.org/project/libcamera/list/?series=3536", "date": "2022-10-06T12:00:58", "name": "utils: tuning: Add a new tuning infrastructure", "version": 1, "mbox": "https://patchwork.libcamera.org/series/3536/mbox/" } ], "comments": "https://patchwork.libcamera.org/api/patches/17538/comments/", "check": "pending", "checks": "https://patchwork.libcamera.org/api/patches/17538/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 53A7DC0DA4\n\tfor <parsemail@patchwork.libcamera.org>;\n\tThu, 6 Oct 2022 12:01:30 +0000 (UTC)", "from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id 14BB062D01;\n\tThu, 6 Oct 2022 14:01:30 +0200 (CEST)", "from perceval.ideasonboard.com (perceval.ideasonboard.com\n\t[IPv6:2001:4b98:dc2:55:216:3eff:fef7:d647])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id DF50F62D01\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tThu, 6 Oct 2022 14:01:27 +0200 (CEST)", "from pyrite.rasen.tech (h175-177-042-159.catv02.itscom.jp\n\t[175.177.42.159])\n\tby perceval.ideasonboard.com (Postfix) with ESMTPSA id 692B94DD;\n\tThu, 6 Oct 2022 14:01:26 +0200 (CEST)" ], "DKIM-Signature": [ "v=1; a=rsa-sha256; c=relaxed/simple; d=libcamera.org;\n\ts=mail; t=1665057690;\n\tbh=OD3pHQLn5o9+nGWkB9nOeKv2ZxjIZctNvJLiT2moTIM=;\n\th=To:Date:In-Reply-To:References:Subject:List-Id:List-Unsubscribe:\n\tList-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:\n\tFrom;\n\tb=hFNSHYuKIipMxNL9/A+d9TJAEMWuf8nlOf2nvMbCQIZ94hiRPbn+QvY4G3+f42erq\n\tvonYR9FCU+YzjR4wjLyLR+X+Jsv1bpez+m9ckuyl0NDTRARD57to4ZTbEwYSzinJU3\n\t33PZV3h/+U1MN/QazQieaZsgnp1+KZzhqHUdSLJDJ+trEJCEqy7cCP4IewC8WVEKE+\n\tTDF8tDNngyo2GQFzeKB+oSlIFQFwme8acc6thcyHRBnUTqjVisiogyvRr2P5oed1l0\n\tAtB+ojIh4o1OeK23JZ6hOeiObv34zNuiJpXk+bTlAbs1c2UIjUGd+0O8mFxR/G0uYU\n\tI2G16kGGiq2bQ==", "v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com;\n\ts=mail; t=1665057687;\n\tbh=OD3pHQLn5o9+nGWkB9nOeKv2ZxjIZctNvJLiT2moTIM=;\n\th=From:To:Cc:Subject:Date:In-Reply-To:References:From;\n\tb=UUN5ntTWH9lLVb30AVw9zKtREItN9PuwAF+IIrhlVj5UDdp2ttuMaDQN9WU23Z7Yd\n\tW1J4U3iipY3wgOlOn7iADnYlTGdRO1MMA0dNY8rl/+ZK/g/eJWWm/TKA4hpAivs0/d\n\t7s5kIZ5yzKbG8ntvHeK2N1vzwVPxnVAE/P+AxTxQ=" ], "Authentication-Results": "lancelot.ideasonboard.com; dkim=pass (1024-bit key; \n\tunprotected) header.d=ideasonboard.com\n\theader.i=@ideasonboard.com\n\theader.b=\"UUN5ntTW\"; dkim-atps=neutral", "To": "libcamera-devel@lists.libcamera.org", "Date": "Thu, 6 Oct 2022 21:01:03 +0900", "Message-Id": "<20221006120105.3861831-6-paul.elder@ideasonboard.com>", "X-Mailer": "git-send-email 2.30.2", "In-Reply-To": "<20221006120105.3861831-1-paul.elder@ideasonboard.com>", "References": "<20221006120105.3861831-1-paul.elder@ideasonboard.com>", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "Subject": "[libcamera-devel] [PATCH 5/7] utils: tuning: Add alsc-only\n\tlibtuning raspberrypi tuning script", "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>", "From": "Paul Elder via libcamera-devel <libcamera-devel@lists.libcamera.org>", "Reply-To": "Paul Elder <paul.elder@ideasonboard.com>", "Errors-To": "libcamera-devel-bounces@lists.libcamera.org", "Sender": "\"libcamera-devel\" <libcamera-devel-bounces@lists.libcamera.org>" }, "content": "Add a tuning script for raspberrypi for alsc only, that uses libtuning.\nSince there will also be a tuning script for raspberrypi that has more\nmodules, put the libtuning alsc module definition in a separate file so\nthat it can be reused later.\n\nSigned-off-by: Paul Elder <paul.elder@ideasonboard.com>\n---\n utils/tuning/raspberrypi/__init__.py | 0\n utils/tuning/raspberrypi/alsc.py | 18 ++++++++++++++++++\n utils/tuning/raspberrypi_alsc_only.py | 18 ++++++++++++++++++\n 3 files changed, 36 insertions(+)\n create mode 100644 utils/tuning/raspberrypi/__init__.py\n create mode 100644 utils/tuning/raspberrypi/alsc.py\n create mode 100755 utils/tuning/raspberrypi_alsc_only.py", "diff": "diff --git a/utils/tuning/raspberrypi/__init__.py b/utils/tuning/raspberrypi/__init__.py\nnew file mode 100644\nindex 00000000..e69de29b\ndiff --git a/utils/tuning/raspberrypi/alsc.py b/utils/tuning/raspberrypi/alsc.py\nnew file mode 100644\nindex 00000000..dd92cb8b\n--- /dev/null\n+++ b/utils/tuning/raspberrypi/alsc.py\n@@ -0,0 +1,18 @@\n+import libtuning as lt\n+from libtuning.modules import ALSC\n+\n+RaspberryPiALSC = \\\n+ ALSC(do_color=lt.param('do_alsc_colour', lt.param.mode.Optional, True),\n+ debug=[lt.debug.Plot],\n+ luminance_strength=lt.param('luminance_strength', lt.param.mode.Optional, 0.5),\n+ sector_shape=(16, 12),\n+ sector_x_gradient=lt.gradient.Linear,\n+ sector_y_gradient=lt.gradient.Linear,\n+ sector_x_remainder=lt.remainder.DistributeFront,\n+ sector_y_remainder=lt.remainder.DistributeFront,\n+ sector_average_function=lt.average_functions.Mean,\n+ smoothing_function=lt.smoothing.MedianBlur,\n+ output_type=float,\n+ output_color_channels=[lt.color.R, lt.color.G, lt.color.B],\n+ output_range=(0, 3.999)\n+ )\ndiff --git a/utils/tuning/raspberrypi_alsc_only.py b/utils/tuning/raspberrypi_alsc_only.py\nnew file mode 100755\nindex 00000000..e1e7b6e3\n--- /dev/null\n+++ b/utils/tuning/raspberrypi_alsc_only.py\n@@ -0,0 +1,18 @@\n+#!/usr/bin/env python3\n+\n+import sys\n+\n+import libtuning as lt\n+from libtuning.modules import ALSC\n+from libtuning.parsers import RaspberryPiParser\n+from libtuning.generators import RaspberryPiOutput\n+\n+from raspberrypi.alsc import ALSC as RaspberryPiALSC\n+\n+tuner = lt.Camera('Raspberry Pi (ALSC only)')\n+tuner.add(RaspberryPiALSC)\n+tuner.setInputType(RaspberryPiParser)\n+tuner.setOutputType(RaspberryPiOutput)\n+tuner.setOutputOrder([ALSC])\n+\n+tuner.run(sys.argv)\n", "prefixes": [ "libcamera-devel", "5/7" ] }