Patch Detail
Show a patch.
GET /api/patches/16793/?format=api
{ "id": 16793, "url": "https://patchwork.libcamera.org/api/patches/16793/?format=api", "web_url": "https://patchwork.libcamera.org/patch/16793/", "project": { "id": 1, "url": "https://patchwork.libcamera.org/api/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": "<20220726143211.517231-2-fsylvestre@baylibre.com>", "date": "2022-07-26T14:32:10", "name": "[libcamera-devel,v3,1/2] ipa: rkisp1: Add support of Filter control", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": false, "hash": "04158448605581ab9cbe040342a858ff59bc5bbc", "submitter": { "id": 123, "url": "https://patchwork.libcamera.org/api/people/123/?format=api", "name": "Florian Sylvestre", "email": "fsylvestre@baylibre.com" }, "delegate": null, "mbox": "https://patchwork.libcamera.org/patch/16793/mbox/", "series": [ { "id": 3327, "url": "https://patchwork.libcamera.org/api/series/3327/?format=api", "web_url": "https://patchwork.libcamera.org/project/libcamera/list/?series=3327", "date": "2022-07-26T14:32:09", "name": "Add Filter and Color Processing control for rkisp1", "version": 3, "mbox": "https://patchwork.libcamera.org/series/3327/mbox/" } ], "comments": "https://patchwork.libcamera.org/api/patches/16793/comments/", "check": "pending", "checks": "https://patchwork.libcamera.org/api/patches/16793/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 A7911BE173\n\tfor <parsemail@patchwork.libcamera.org>;\n\tTue, 26 Jul 2022 14:32:21 +0000 (UTC)", "from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id EA8AA63316;\n\tTue, 26 Jul 2022 16:32:20 +0200 (CEST)", "from mail-wr1-x42b.google.com (mail-wr1-x42b.google.com\n\t[IPv6:2a00:1450:4864:20::42b])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id 776086330E\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tTue, 26 Jul 2022 16:32:18 +0200 (CEST)", "by mail-wr1-x42b.google.com with SMTP id q18so10000807wrx.8\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tTue, 26 Jul 2022 07:32:18 -0700 (PDT)", "from BL087.. ([2a01:e34:eea9:e630:c7b2:2183:8a06:b4dc])\n\tby smtp.gmail.com with ESMTPSA id\n\tk1-20020adff5c1000000b0020fff0ea0a3sm14377177wrp.116.2022.07.26.07.32.16\n\t(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n\tTue, 26 Jul 2022 07:32:17 -0700 (PDT)" ], "DKIM-Signature": [ "v=1; a=rsa-sha256; c=relaxed/simple; d=libcamera.org;\n\ts=mail; t=1658845941;\n\tbh=B15tR4exQ5ad+DVRVzVKa2zOUP8utzDvdEnXK3P6wXs=;\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=BQRiefDl0sdP8CEWIcP2qSYaAzG2n7UiE3heu7i3am8WiAJXp8Ycuz76ZhCV0dm2M\n\tUTSSdDLUbiC289bqYHswgK1/SHdZzQjXy9dYjxWUW9v+C3492zd+pJsVR8hDpGpbUa\n\tsqvVI1u9xY6GJxlXHXuAFm6WYvncGeN/nziecm3nrw+q//x6OFwGMjkEJ+pc+fG4q/\n\tls0IZVI72z3wiVsNi8K9VpoYoa1YE4PfDssItq4ollK0krBtBt2bUiJi3EPQVgfQcP\n\tJCYs0vJ6YQpna62JZSwxy+uRoEsbY8GpJcUA9L3u9TZenad3+a5E92tEk5avuKvQeH\n\t16PEa/vh7gSeA==", "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=baylibre-com.20210112.gappssmtp.com; s=20210112;\n\th=from:to:cc:subject:date:message-id:in-reply-to:references\n\t:mime-version:content-transfer-encoding;\n\tbh=uM93IPim+okWklce49IUeMeEqvQD4hnz2VfGxJMf+jM=;\n\tb=XyAYUawyszE0UWWirnM8Nhn1ksWEe7wviKrLL3ntAQzbUA64NpReomarxio9eNWoFr\n\tLw/soZjbyiZ6CD5+dE6p+8usZFDak0o5QENeI77Y00XsFFmxxLZAnbXhbHdgarwGhKE2\n\tLueiKUAHA/Oyvu1IZpLSxkonSG4ngKB7PthhnQGUMkykPPb5sXBewmlq5wIzzk5GUzH6\n\tyOQW1KYpXNeGaXCm2IiQ/E4LbCXzb2OVKAXj/lO96B12MUqNbK6lEnkRyCNtmCqxc2iD\n\tI0kHiHwR6TiMi4J0qTFpWZfjaJuAv0MQs5X9FR0B65VjvDzniZyn42jwFTAykP9Rly+s\n\txkTQ==" ], "Authentication-Results": "lancelot.ideasonboard.com; dkim=pass (2048-bit key; \n\tunprotected)\n\theader.d=baylibre-com.20210112.gappssmtp.com\n\theader.i=@baylibre-com.20210112.gappssmtp.com header.b=\"XyAYUawy\"; \n\tdkim-atps=neutral", "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20210112;\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=uM93IPim+okWklce49IUeMeEqvQD4hnz2VfGxJMf+jM=;\n\tb=LGj548gJP5SmVBbgQ2OthVLpZ0tiJQwuv+2eCOt+Xrj4jThkwhTNDTraHg8MwK5nXp\n\tzcOnhI426lt6W9Bh7+OhMz1rsiosOtarBRnruukqTwFbbTKf2VjmzvzVu1Qhh5KjVlAX\n\teS+MC3al02jJptoVL7wxhkzuBiv2+aE5opFqfVRf/ykAIyH8xw0/796N9L8QnA7v7zPF\n\tmDNTL81vzZ6+WF9XDyQ7nJ5jFuOYjvwXmnyFX14hwR6dIr6UkRMmP0N9hARTvS97kM4W\n\t4tES6cMh2LsZ5vpa0Ff3PmLkqv6pOcV2jPaZ8BRuAZ1SvC/potQKFGdnhNXiCG+gWGm6\n\tu+Tw==", "X-Gm-Message-State": "AJIora+jUitW4Siqq/FihfkD6kFIm/QxxrYstdZa1AlPFcPfLNKzkMck\n\t3SlPWNKMcfpYf4rMKpxkzRH/3xFb3piWLFP0", "X-Google-Smtp-Source": "AGRyM1s2AJRfT67CNlf+ZyhrFpqg6ecoRfp/v4po4bRTbiifq+NNIAuA/aX0ZR4eJ0SBF5U0d69Mmg==", "X-Received": "by 2002:a05:6000:1c7:b0:21e:68b9:c047 with SMTP id\n\tt7-20020a05600001c700b0021e68b9c047mr11729122wrx.597.1658845937685; \n\tTue, 26 Jul 2022 07:32:17 -0700 (PDT)", "To": "libcamera-devel@lists.libcamera.org", "Date": "Tue, 26 Jul 2022 16:32:10 +0200", "Message-Id": "<20220726143211.517231-2-fsylvestre@baylibre.com>", "X-Mailer": "git-send-email 2.34.1", "In-Reply-To": "<20220726143211.517231-1-fsylvestre@baylibre.com>", "References": "<20220726143211.517231-1-fsylvestre@baylibre.com>", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "Subject": "[libcamera-devel] [PATCH v3 1/2] ipa: rkisp1: Add support of Filter\n\tcontrol", "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": "Florian Sylvestre via libcamera-devel\n\t<libcamera-devel@lists.libcamera.org>", "Reply-To": "Florian Sylvestre <fsylvestre@baylibre.com>", "Errors-To": "libcamera-devel-bounces@lists.libcamera.org", "Sender": "\"libcamera-devel\" <libcamera-devel-bounces@lists.libcamera.org>" }, "content": "Denoise and Sharpness filters will be applied by RKISP1 during the\ndemosaicing step. The denoise filter is responsible to remove noise from the\nimage, while the sharpness filter will enhance its acutance.\n\nAdd filter algorithm with denoise and sharpness values based on user controls.\n\nSigned-off-by: Florian Sylvestre <fsylvestre@baylibre.com>\n---\n src/ipa/rkisp1/algorithms/filter.cpp | 201 +++++++++++++++++++++++\n src/ipa/rkisp1/algorithms/filter.h | 30 ++++\n src/ipa/rkisp1/algorithms/meson.build | 1 +\n src/ipa/rkisp1/data/ov5640.yaml | 1 +\n src/ipa/rkisp1/ipa_context.cpp | 14 ++\n src/ipa/rkisp1/ipa_context.h | 6 +\n src/libcamera/pipeline/rkisp1/rkisp1.cpp | 8 +\n 7 files changed, 261 insertions(+)\n create mode 100644 src/ipa/rkisp1/algorithms/filter.cpp\n create mode 100644 src/ipa/rkisp1/algorithms/filter.h", "diff": "diff --git a/src/ipa/rkisp1/algorithms/filter.cpp b/src/ipa/rkisp1/algorithms/filter.cpp\nnew file mode 100644\nindex 00000000..3a9f9be5\n--- /dev/null\n+++ b/src/ipa/rkisp1/algorithms/filter.cpp\n@@ -0,0 +1,201 @@\n+/* SPDX-License-Identifier: LGPL-2.1-or-later */\n+/*\n+ * Copyright (C) 2021-2022, Ideas On Board\n+ *\n+ * filter.cpp - RkISP1 Filter control\n+ */\n+\n+#include \"filter.h\"\n+\n+#include <cmath>\n+\n+#include <libcamera/base/log.h>\n+\n+#include <libcamera/control_ids.h>\n+\n+/**\n+ * \\file filter.h\n+ */\n+\n+namespace libcamera {\n+\n+namespace ipa::rkisp1::algorithms {\n+\n+/**\n+ * \\class Filter\n+ * \\brief RkISP1 Filter control\n+ *\n+ * Denoise and Sharpness filters will be applied by RKISP1 during the\n+ * demosaicing step. The denoise filter is responsible to remove noise from the\n+ * image, while the sharpness filter will enhance its acutance.\n+ *\n+ * \\todo In current version the denoise and sharpness control is based on user\n+ * controls. In a future version it should be controlled automatically by the\n+ * algorithm.\n+ */\n+\n+LOG_DEFINE_CATEGORY(RkISP1Filter)\n+\n+static constexpr uint32_t kFiltLumWeightDefault = 0x00022040;\n+static constexpr uint32_t kFiltModeDefault = 0x000004f2;\n+\n+/**\n+ * \\copydoc libcamera::ipa::Algorithm::queueRequest\n+ */\n+void Filter::queueRequest(IPAContext &context,\n+\t\t\t [[maybe_unused]] const uint32_t frame,\n+\t\t\t const ControlList &controls)\n+{\n+\tauto &filter = context.frameContext.filter;\n+\n+\tconst auto &sharpness = controls.get(controls::Sharpness);\n+\tif (sharpness) {\n+\t\tfilter.sharpness = std::round(std::clamp(*sharpness, 0.0f, 10.0f));\n+\t\tfilter.updateParams = true;\n+\n+\t\tLOG(RkISP1Filter, Debug) << \"Set sharpness to \" << *sharpness;\n+\t}\n+\n+\tconst auto &denoise = controls.get(controls::draft::NoiseReductionMode);\n+\tif (denoise) {\n+\t\tLOG(RkISP1Filter, Debug) << \"Set denoise to \" << *denoise;\n+\n+\t\tswitch (*denoise) {\n+\t\tcase controls::draft::NoiseReductionModeOff:\n+\t\t\tfilter.denoise = 0;\n+\t\t\tfilter.updateParams = true;\n+\t\t\tbreak;\n+\t\tcase controls::draft::NoiseReductionModeMinimal:\n+\t\t\tfilter.denoise = 1;\n+\t\t\tfilter.updateParams = true;\n+\t\t\tbreak;\n+\t\tcase controls::draft::NoiseReductionModeHighQuality:\n+\t\tcase controls::draft::NoiseReductionModeFast:\n+\t\t\tfilter.denoise = 3;\n+\t\t\tfilter.updateParams = true;\n+\t\t\tbreak;\n+\t\tdefault:\n+\t\t\tLOG(RkISP1Filter, Error)\n+\t\t\t\t<< \"Unsupported denoise value \"\n+\t\t\t\t<< *denoise;\n+\t\t}\n+\t}\n+}\n+\n+/**\n+ * \\copydoc libcamera::ipa::Algorithm::prepare\n+ */\n+void Filter::prepare(IPAContext &context,\n+\t\t rkisp1_params_cfg *params)\n+{\n+\t/* Check if the algorithm configuration has been updated. */\n+\tif (!context.frameContext.filter.updateParams)\n+\t\treturn;\n+\n+\tcontext.frameContext.filter.updateParams = false;\n+\n+\tstatic constexpr uint16_t filt_fac_sh0[] = {\n+\t\t0x04, 0x07, 0x0a, 0x0c, 0x10, 0x14, 0x1a, 0x1e, 0x24, 0x2a, 0x30\n+\t};\n+\n+\tstatic constexpr uint16_t filt_fac_sh1[] = {\n+\t\t0x04, 0x08, 0x0c, 0x10, 0x16, 0x1b, 0x20, 0x26, 0x2c, 0x30, 0x3f\n+\t};\n+\n+\tstatic constexpr uint16_t filt_fac_mid[] = {\n+\t\t0x04, 0x06, 0x08, 0x0a, 0x0c, 0x10, 0x13, 0x17, 0x1d, 0x22, 0x28\n+\t};\n+\n+\tstatic constexpr uint16_t filt_fac_bl0[] = {\n+\t\t0x02, 0x02, 0x04, 0x06, 0x08, 0x0a, 0x0c, 0x10, 0x15, 0x1a, 0x24\n+\t};\n+\n+\tstatic constexpr uint16_t filt_fac_bl1[] = {\n+\t\t0x00, 0x00, 0x00, 0x02, 0x04, 0x04, 0x06, 0x08, 0x0d, 0x14, 0x20\n+\t};\n+\n+\tstatic constexpr uint16_t filt_thresh_sh0[] = {\n+\t\t0, 18, 26, 36, 41, 75, 90, 120, 170, 250, 1023\n+\t};\n+\n+\tstatic constexpr uint16_t filt_thresh_sh1[] = {\n+\t\t0, 33, 44, 51, 67, 100, 120, 150, 200, 300, 1023\n+\t};\n+\n+\tstatic constexpr uint16_t filt_thresh_bl0[] = {\n+\t\t0, 8, 13, 23, 26, 50, 60, 80, 140, 180, 1023\n+\t};\n+\n+\tstatic constexpr uint16_t filt_thresh_bl1[] = {\n+\t\t0, 2, 5, 10, 15, 20, 26, 51, 100, 150, 1023\n+\t};\n+\n+\tstatic constexpr uint16_t stage1_select[] = {\n+\t\t6, 6, 4, 4, 3, 3, 2, 2, 2, 1, 0\n+\t};\n+\n+\tstatic constexpr uint16_t filt_chr_v_mode[] = {\n+\t\t1, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3\n+\t};\n+\n+\tstatic constexpr uint16_t filt_chr_h_mode[] = {\n+\t\t0, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3\n+\t};\n+\n+\tuint8_t denoise = context.frameContext.filter.denoise;\n+\tuint8_t sharpness = context.frameContext.filter.sharpness;\n+\tauto &flt_config = params->others.flt_config;\n+\n+\tflt_config.fac_sh0 = filt_fac_sh0[sharpness];\n+\tflt_config.fac_sh1 = filt_fac_sh1[sharpness];\n+\tflt_config.fac_mid = filt_fac_mid[sharpness];\n+\tflt_config.fac_bl0 = filt_fac_bl0[sharpness];\n+\tflt_config.fac_bl1 = filt_fac_bl1[sharpness];\n+\n+\tflt_config.lum_weight = kFiltLumWeightDefault;\n+\tflt_config.mode = kFiltModeDefault;\n+\tflt_config.thresh_sh0 = filt_thresh_sh0[denoise];\n+\tflt_config.thresh_sh1 = filt_thresh_sh1[denoise];\n+\tflt_config.thresh_bl0 = filt_thresh_bl0[denoise];\n+\tflt_config.thresh_bl1 = filt_thresh_bl1[denoise];\n+\tflt_config.grn_stage1 = stage1_select[denoise];\n+\tflt_config.chr_v_mode = filt_chr_v_mode[denoise];\n+\tflt_config.chr_h_mode = filt_chr_h_mode[denoise];\n+\n+\t/*\n+\t * Combined high denoising and high sharpening requires some\n+\t * adjustments to the configuration of the filters. A first stage\n+\t * filter with a lower strength must be selected, and the blur factors\n+\t * must be decreased.\n+\t */\n+\tif (denoise == 9) {\n+\t\tif (sharpness > 3)\n+\t\t\tflt_config.grn_stage1 = 2;\n+\t} else if (denoise == 10) {\n+\t\tif (sharpness > 5)\n+\t\t\tflt_config.grn_stage1 = 2;\n+\t\telse if (sharpness > 3)\n+\t\t\tflt_config.grn_stage1 = 1;\n+\t}\n+\n+\tif (denoise > 7) {\n+\t\tif (sharpness > 7) {\n+\t\t\tflt_config.fac_bl0 /= 2;\n+\t\t\tflt_config.fac_bl1 /= 4;\n+\t\t} else if (sharpness > 4) {\n+\t\t\tflt_config.fac_bl0 =\n+\t\t\t\tflt_config.fac_bl0 * 3 / 4;\n+\t\t\tflt_config.fac_bl1 /= 2;\n+\t\t}\n+\t}\n+\n+\tparams->module_en_update |= RKISP1_CIF_ISP_MODULE_FLT;\n+\tparams->module_ens |= RKISP1_CIF_ISP_MODULE_FLT;\n+\tparams->module_cfg_update |= RKISP1_CIF_ISP_MODULE_FLT;\n+}\n+\n+REGISTER_IPA_ALGORITHM(Filter, \"Filter\")\n+\n+} /* namespace ipa::rkisp1::algorithms */\n+\n+} /* namespace libcamera */\ndiff --git a/src/ipa/rkisp1/algorithms/filter.h b/src/ipa/rkisp1/algorithms/filter.h\nnew file mode 100644\nindex 00000000..9eb170eb\n--- /dev/null\n+++ b/src/ipa/rkisp1/algorithms/filter.h\n@@ -0,0 +1,30 @@\n+/* SPDX-License-Identifier: LGPL-2.1-or-later */\n+/*\n+ * Copyright (C) 2021-2022, Ideas On Board\n+ *\n+ * filter.h - RkISP1 Filter control\n+ */\n+\n+#pragma once\n+\n+#include <sys/types.h>\n+\n+#include \"algorithm.h\"\n+\n+namespace libcamera {\n+\n+namespace ipa::rkisp1::algorithms {\n+\n+class Filter : public Algorithm\n+{\n+public:\n+\tFilter() = default;\n+\t~Filter() = default;\n+\n+\tvoid queueRequest(IPAContext &context, const uint32_t frame,\n+\t\t\t const ControlList &controls) override;\n+\tvoid prepare(IPAContext &context, rkisp1_params_cfg *params) override;\n+};\n+\n+} /* namespace ipa::rkisp1::algorithms */\n+} /* namespace libcamera */\ndiff --git a/src/ipa/rkisp1/algorithms/meson.build b/src/ipa/rkisp1/algorithms/meson.build\nindex 87007493..dcd24fe0 100644\n--- a/src/ipa/rkisp1/algorithms/meson.build\n+++ b/src/ipa/rkisp1/algorithms/meson.build\n@@ -5,6 +5,7 @@ rkisp1_ipa_algorithms = files([\n 'awb.cpp',\n 'blc.cpp',\n 'dpcc.cpp',\n+ 'filter.cpp',\n 'gsl.cpp',\n 'lsc.cpp',\n ])\ndiff --git a/src/ipa/rkisp1/data/ov5640.yaml b/src/ipa/rkisp1/data/ov5640.yaml\nindex 2315ec43..99529481 100644\n--- a/src/ipa/rkisp1/data/ov5640.yaml\n+++ b/src/ipa/rkisp1/data/ov5640.yaml\n@@ -155,4 +155,5 @@ algorithms:\n rnd-offsets:\n green: 2\n red-blue: 2\n+ - Filter:\n ...\ndiff --git a/src/ipa/rkisp1/ipa_context.cpp b/src/ipa/rkisp1/ipa_context.cpp\nindex 30bb87a9..4b117186 100644\n--- a/src/ipa/rkisp1/ipa_context.cpp\n+++ b/src/ipa/rkisp1/ipa_context.cpp\n@@ -136,6 +136,20 @@ namespace libcamera::ipa::rkisp1 {\n * \\brief Estimated color temperature\n */\n \n+/**\n+ * \\var IPAFrameContext::filter\n+ * \\brief Context for the Filter algorithm\n+ *\n+ * \\struct IPAFrameContext::filter.denoise\n+ * \\brief Denoising level\n+ *\n+ * \\var IPAFrameContext::filter.sharpness\n+ * \\brief Sharpness level\n+ *\n+ * \\var IPAFrameContext::filter.updateParams\n+ * \\brief Indicates if ISP parameters need to be updated\n+ */\n+\n /**\n * \\var IPAFrameContext::sensor\n * \\brief Effective sensor values\ndiff --git a/src/ipa/rkisp1/ipa_context.h b/src/ipa/rkisp1/ipa_context.h\nindex 3bfb262c..3b2f6af1 100644\n--- a/src/ipa/rkisp1/ipa_context.h\n+++ b/src/ipa/rkisp1/ipa_context.h\n@@ -57,6 +57,12 @@ struct IPAFrameContext {\n \t\tdouble temperatureK;\n \t} awb;\n \n+\tstruct {\n+\t\tuint8_t denoise;\n+\t\tuint8_t sharpness;\n+\t\tbool updateParams;\n+\t} filter;\n+\n \tstruct {\n \t\tuint32_t exposure;\n \t\tdouble gain;\ndiff --git a/src/libcamera/pipeline/rkisp1/rkisp1.cpp b/src/libcamera/pipeline/rkisp1/rkisp1.cpp\nindex 99eecd44..4e000d31 100644\n--- a/src/libcamera/pipeline/rkisp1/rkisp1.cpp\n+++ b/src/libcamera/pipeline/rkisp1/rkisp1.cpp\n@@ -968,6 +968,14 @@ int PipelineHandlerRkISP1::createCamera(MediaEntity *sensor)\n \t\t\t\t\t\t hasSelfPath_ ? &selfPath_ : nullptr);\n \n \tControlInfoMap::Map ctrls;\n+\tctrls.emplace(std::piecewise_construct,\n+\t\t std::forward_as_tuple(&controls::Sharpness),\n+\t\t std::forward_as_tuple(0.0f, 10.0f, 1.0f));\n+\n+\tctrls.emplace(std::piecewise_construct,\n+\t\t std::forward_as_tuple(&controls::draft::NoiseReductionMode),\n+\t\t std::forward_as_tuple(controls::draft::NoiseReductionModeValues));\n+\n \tctrls.emplace(std::piecewise_construct,\n \t\t std::forward_as_tuple(&controls::AeEnable),\n \t\t std::forward_as_tuple(false, true));\n", "prefixes": [ "libcamera-devel", "v3", "1/2" ] }