Patch Detail
Show a patch.
GET /api/1.1/patches/11013/?format=api
{ "id": 11013, "url": "https://patchwork.libcamera.org/api/1.1/patches/11013/?format=api", "web_url": "https://patchwork.libcamera.org/patch/11013/", "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": "<20210126162412.824033-5-naush@raspberrypi.com>", "date": "2021-01-26T16:24:10", "name": "[libcamera-devel,v4,4/6] ipa: raspberrypi: Rename SdnStatus to DenoiseStatus", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": false, "hash": "705c4ce75834921bfaa0ccb1470c8dde91f102bd", "submitter": { "id": 34, "url": "https://patchwork.libcamera.org/api/1.1/people/34/?format=api", "name": "Naushir Patuck", "email": "naush@raspberrypi.com" }, "delegate": null, "mbox": "https://patchwork.libcamera.org/patch/11013/mbox/", "series": [ { "id": 1611, "url": "https://patchwork.libcamera.org/api/1.1/series/1611/?format=api", "web_url": "https://patchwork.libcamera.org/project/libcamera/list/?series=1611", "date": "2021-01-26T16:24:06", "name": "Raspberry Pi: Colour denoise", "version": 4, "mbox": "https://patchwork.libcamera.org/series/1611/mbox/" } ], "comments": "https://patchwork.libcamera.org/api/patches/11013/comments/", "check": "pending", "checks": "https://patchwork.libcamera.org/api/patches/11013/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 AB508C0F2B\n\tfor <parsemail@patchwork.libcamera.org>;\n\tTue, 26 Jan 2021 16:24:26 +0000 (UTC)", "from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id 347BA68327;\n\tTue, 26 Jan 2021 17:24:26 +0100 (CET)", "from mail-wm1-x32f.google.com (mail-wm1-x32f.google.com\n\t[IPv6:2a00:1450:4864:20::32f])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id C14C268317\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tTue, 26 Jan 2021 17:24:21 +0100 (CET)", "by mail-wm1-x32f.google.com with SMTP id u14so2957052wml.4\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tTue, 26 Jan 2021 08:24:21 -0800 (PST)", "from naushir-VirtualBox.patuck.local ([88.97.76.4])\n\tby smtp.gmail.com with ESMTPSA id\n\tm18sm8725809wrx.17.2021.01.26.08.24.20\n\t(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n\tTue, 26 Jan 2021 08:24:20 -0800 (PST)" ], "Authentication-Results": "lancelot.ideasonboard.com;\n\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n\tunprotected) header.d=raspberrypi.com header.i=@raspberrypi.com\n\theader.b=\"eL9eQEv6\"; dkim-atps=neutral", "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=raspberrypi.com; s=google;\n\th=from:to:cc:subject:date:message-id:in-reply-to:references\n\t:mime-version:content-transfer-encoding;\n\tbh=r60/x9D2wFvPc1qF59Lv1Xv7mQ0M3HtfAuQgufi2E88=;\n\tb=eL9eQEv6EUb+iqTyv5wWf9Y34pZ0WTOigRwMAJgab/JBz3YKRTYW69+y5cExhtlfHN\n\tLWUbsaI0WC/IyNcPPLIhPKXHsEKIGPPwIzElygtecC6SEdGx9fysYgjvrHb4PzgFXY6L\n\teg8+/1YVOeFjx3efDLOknBywDZAlO+jtjI4ZjkQ/r5DZx70XtJg1oj1Vc1szL0Yl3AWE\n\t1tghjH+sOoR//Nift+Lxalnq23CgkeCT5++7KKlk/Gz01xlEvTLvDxpkMhTCjPey13Hh\n\t3LBz+Vla5mg0tsaTP6DiDucJFGD9X7evRRnCuQfNqKe7ARIxCvqm9lx3HAQJ6xOlp4Dx\n\t/ugA==", "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to\n\t:references:mime-version:content-transfer-encoding;\n\tbh=r60/x9D2wFvPc1qF59Lv1Xv7mQ0M3HtfAuQgufi2E88=;\n\tb=nZKgAyls0DepXkN4YPCMJpUh/hU119E1YZf12GuANZQnCVaM8iUhcEzp5lrdfsTlH4\n\tzSZpr32AEiWp+VHsr0zel8/afTalHIoJD+yc3ysMPVk7my6fgYRvP8/wRBNBFFrcFCCR\n\ti5k2I2iUvneFvl6Uba37Rq0fkP9SsiVfurI4SzUej54ybGQyXpd3LONIDEm/YQ9nMPKl\n\tHCb5VUWpGRlMaL9dfQnHcm/g03+KlUJ3DvU1iLC1T1lxJbuyoJ7pb/EOsLUiG5iQbb4e\n\tjGb0rS22EVqxenc3j4z3SnbpbV+KS8/mgB72VbnEbHe2jubuDbmqn0+/48yzHXw890vP\n\tCjkg==", "X-Gm-Message-State": "AOAM531LB7ID7HGlzYVBO8lLMB1IxU4HqPy00IVp/Po8APUAJLBgHaTf\n\tHFQDIZspk4Fs3futYFZJbyIbziQKXYKPVCpM", "X-Google-Smtp-Source": "ABdhPJxytg8d9vOIWRIBtakDlZZrnvHCcUk8tM2FGCDWgZbxr532Osa9jSx18jHBWc8vGz+DSBDnhg==", "X-Received": "by 2002:a05:600c:4ec6:: with SMTP id\n\tg6mr519081wmq.2.1611678261274; \n\tTue, 26 Jan 2021 08:24:21 -0800 (PST)", "From": "Naushir Patuck <naush@raspberrypi.com>", "To": "libcamera-devel@lists.libcamera.org", "Date": "Tue, 26 Jan 2021 16:24:10 +0000", "Message-Id": "<20210126162412.824033-5-naush@raspberrypi.com>", "X-Mailer": "git-send-email 2.25.1", "In-Reply-To": "<20210126162412.824033-1-naush@raspberrypi.com>", "References": "<20210126162412.824033-1-naush@raspberrypi.com>", "MIME-Version": "1.0", "Subject": "[libcamera-devel] [PATCH v4 4/6] ipa: raspberrypi: Rename SdnStatus\n\tto DenoiseStatus", "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>", "Content-Type": "text/plain; charset=\"us-ascii\"", "Content-Transfer-Encoding": "7bit", "Errors-To": "libcamera-devel-bounces@lists.libcamera.org", "Sender": "\"libcamera-devel\" <libcamera-devel-bounces@lists.libcamera.org>" }, "content": "This change is in anticipation of the addition of a DenoiseAlgorithm\nbase class which the SDN class will derive from. We want to match the\nmetadata object name with the base class algorithm name.\n\nThis renames:\n- SdnStatus metadata object to DenoiseStatus\n- \"sdn.status\" metadata string key to \"denoise.status\"\n- sdn_status.h header file to denoise_status.h\n\nSigned-off-by: Naushir Patuck <naush@raspberrypi.com>\nReviewed-by: David Plowman <david.plowman@raspberrypi.com>\nReviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>\n---\n .../controller/{sdn_status.h => denoise_status.h} | 6 +++---\n src/ipa/raspberrypi/controller/rpi/sdn.cpp | 6 +++---\n src/ipa/raspberrypi/raspberrypi.cpp | 8 ++++----\n 3 files changed, 10 insertions(+), 10 deletions(-)\n rename src/ipa/raspberrypi/controller/{sdn_status.h => denoise_status.h} (65%)", "diff": "diff --git a/src/ipa/raspberrypi/controller/sdn_status.h b/src/ipa/raspberrypi/controller/denoise_status.h\nsimilarity index 65%\nrename from src/ipa/raspberrypi/controller/sdn_status.h\nrename to src/ipa/raspberrypi/controller/denoise_status.h\nindex 871e0b62af1f..06d7cfb91ae8 100644\n--- a/src/ipa/raspberrypi/controller/sdn_status.h\n+++ b/src/ipa/raspberrypi/controller/denoise_status.h\n@@ -1,8 +1,8 @@\n /* SPDX-License-Identifier: BSD-2-Clause */\n /*\n- * Copyright (C) 2019, Raspberry Pi (Trading) Limited\n+ * Copyright (C) 2019-2021, Raspberry Pi (Trading) Limited\n *\n- * sdn_status.h - SDN (spatial denoise) control algorithm status\n+ * denoise_status.h - Spatial Denoise control algorithm status\n */\n #pragma once\n \n@@ -12,7 +12,7 @@\n extern \"C\" {\n #endif\n \n-struct SdnStatus {\n+struct DenoiseStatus {\n \tdouble noise_constant;\n \tdouble noise_slope;\n \tdouble strength;\ndiff --git a/src/ipa/raspberrypi/controller/rpi/sdn.cpp b/src/ipa/raspberrypi/controller/rpi/sdn.cpp\nindex aa82830b02b4..d8c1521a6633 100644\n--- a/src/ipa/raspberrypi/controller/rpi/sdn.cpp\n+++ b/src/ipa/raspberrypi/controller/rpi/sdn.cpp\n@@ -5,8 +5,8 @@\n * sdn.cpp - SDN (spatial denoise) control algorithm\n */\n \n+#include \"../denoise_status.h\"\n #include \"../noise_status.h\"\n-#include \"../sdn_status.h\"\n \n #include \"sdn.hpp\"\n \n@@ -44,11 +44,11 @@ void Sdn::Prepare(Metadata *image_metadata)\n \tRPI_LOG(\"Noise profile: constant \" << noise_status.noise_constant\n \t\t\t\t\t << \" slope \"\n \t\t\t\t\t << noise_status.noise_slope);\n-\tstruct SdnStatus status;\n+\tstruct DenoiseStatus status;\n \tstatus.noise_constant = noise_status.noise_constant * deviation_;\n \tstatus.noise_slope = noise_status.noise_slope * deviation_;\n \tstatus.strength = strength_;\n-\timage_metadata->Set(\"sdn.status\", status);\n+\timage_metadata->Set(\"denoise.status\", status);\n \tRPI_LOG(\"Sdn: programmed constant \" << status.noise_constant\n \t\t\t\t\t << \" slope \" << status.noise_slope\n \t\t\t\t\t << \" strength \"\ndiff --git a/src/ipa/raspberrypi/raspberrypi.cpp b/src/ipa/raspberrypi/raspberrypi.cpp\nindex 5ccc7a6551f5..220cf174aa4f 100644\n--- a/src/ipa/raspberrypi/raspberrypi.cpp\n+++ b/src/ipa/raspberrypi/raspberrypi.cpp\n@@ -43,13 +43,13 @@\n #include \"contrast_algorithm.hpp\"\n #include \"contrast_status.h\"\n #include \"controller.hpp\"\n+#include \"denoise_status.h\"\n #include \"dpc_status.h\"\n #include \"focus_status.h\"\n #include \"geq_status.h\"\n #include \"lux_status.h\"\n #include \"metadata.hpp\"\n #include \"noise_status.h\"\n-#include \"sdn_status.h\"\n #include \"sharpen_algorithm.hpp\"\n #include \"sharpen_status.h\"\n \n@@ -109,7 +109,7 @@ private:\n \tvoid applyBlackLevel(const struct BlackLevelStatus *blackLevelStatus, ControlList &ctrls);\n \tvoid applyGamma(const struct ContrastStatus *contrastStatus, ControlList &ctrls);\n \tvoid applyGEQ(const struct GeqStatus *geqStatus, ControlList &ctrls);\n-\tvoid applyDenoise(const struct SdnStatus *denoiseStatus, ControlList &ctrls);\n+\tvoid applyDenoise(const struct DenoiseStatus *denoiseStatus, ControlList &ctrls);\n \tvoid applySharpen(const struct SharpenStatus *sharpenStatus, ControlList &ctrls);\n \tvoid applyDPC(const struct DpcStatus *dpcStatus, ControlList &ctrls);\n \tvoid applyLS(const struct AlscStatus *lsStatus, ControlList &ctrls);\n@@ -899,7 +899,7 @@ void IPARPi::prepareISP(unsigned int bufferId)\n \t\tif (geqStatus)\n \t\t\tapplyGEQ(geqStatus, ctrls);\n \n-\t\tSdnStatus *denoiseStatus = rpiMetadata_.GetLocked<SdnStatus>(\"sdn.status\");\n+\t\tDenoiseStatus *denoiseStatus = rpiMetadata_.GetLocked<DenoiseStatus>(\"denoise.status\");\n \t\tif (denoiseStatus)\n \t\t\tapplyDenoise(denoiseStatus, ctrls);\n \n@@ -1083,7 +1083,7 @@ void IPARPi::applyGEQ(const struct GeqStatus *geqStatus, ControlList &ctrls)\n \tctrls.set(V4L2_CID_USER_BCM2835_ISP_GEQ, c);\n }\n \n-void IPARPi::applyDenoise(const struct SdnStatus *denoiseStatus, ControlList &ctrls)\n+void IPARPi::applyDenoise(const struct DenoiseStatus *denoiseStatus, ControlList &ctrls)\n {\n \tbcm2835_isp_denoise denoise;\n \n", "prefixes": [ "libcamera-devel", "v4", "4/6" ] }