{"id":19586,"url":"https://patchwork.libcamera.org/api/1.1/patches/19586/?format=json","web_url":"https://patchwork.libcamera.org/patch/19586/","project":{"id":1,"url":"https://patchwork.libcamera.org/api/1.1/projects/1/?format=json","name":"libcamera","link_name":"libcamera","list_id":"libcamera_core","list_email":"libcamera-devel@lists.libcamera.org","web_url":"","scm_url":"","webscm_url":""},"msgid":"<20240229183654.7206-18-hdegoede@redhat.com>","date":"2024-02-29T18:36:28","name":"[v4,17/18] libcamera: software_isp: Apply black level compensation","commit_ref":null,"pull_url":null,"state":"superseded","archived":false,"hash":"8b727bc9b7fc03dfb7bea5e08be15ed5ad97e862","submitter":{"id":102,"url":"https://patchwork.libcamera.org/api/1.1/people/102/?format=json","name":"Hans de Goede","email":"hdegoede@redhat.com"},"delegate":null,"mbox":"https://patchwork.libcamera.org/patch/19586/mbox/","series":[{"id":4195,"url":"https://patchwork.libcamera.org/api/1.1/series/4195/?format=json","web_url":"https://patchwork.libcamera.org/project/libcamera/list/?series=4195","date":"2024-02-29T18:36:11","name":"libcamera: introduce Software ISP and Software IPA","version":4,"mbox":"https://patchwork.libcamera.org/series/4195/mbox/"}],"comments":"https://patchwork.libcamera.org/api/patches/19586/comments/","check":"pending","checks":"https://patchwork.libcamera.org/api/patches/19586/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 0C6CBBD160\n\tfor <parsemail@patchwork.libcamera.org>;\n\tThu, 29 Feb 2024 18:37:29 +0000 (UTC)","from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id C8911628AC;\n\tThu, 29 Feb 2024 19:37:28 +0100 (CET)","from us-smtp-delivery-124.mimecast.com\n\t(us-smtp-delivery-124.mimecast.com [170.10.133.124])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id 2F87B62867\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tThu, 29 Feb 2024 19:37:24 +0100 (CET)","from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com\n\t[66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS\n\t(version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id\n\tus-mta-632-R-MKXmEMMIKeZs-pPB01xQ-1; Thu, 29 Feb 2024 13:37:21 -0500","from smtp.corp.redhat.com\n\t(int-mx07.intmail.prod.int.rdu2.redhat.com [10.11.54.7])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\tkey-exchange X25519 server-signature RSA-PSS (2048 bits)\n\tserver-digest SHA256) (No client certificate requested)\n\tby mimecast-mx02.redhat.com (Postfix) with ESMTPS id 1634E185A784;\n\tThu, 29 Feb 2024 18:37:21 +0000 (UTC)","from shalem.redhat.com (unknown [10.39.192.10])\n\tby smtp.corp.redhat.com (Postfix) with ESMTP id 190E31C06712;\n\tThu, 29 Feb 2024 18:37:19 +0000 (UTC)"],"Authentication-Results":"lancelot.ideasonboard.com;\n\tdkim=fail reason=\"signature verification failed\" (1024-bit key;\n\tunprotected) header.d=redhat.com header.i=@redhat.com\n\theader.b=\"ayDrZl/D\"; dkim-atps=neutral","DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com;\n\ts=mimecast20190719; t=1709231843;\n\th=from:from:reply-to:subject:subject:date:date:message-id:message-id:\n\tto:to:cc:cc:mime-version:mime-version:content-type:content-type:\n\tcontent-transfer-encoding:content-transfer-encoding:\n\tin-reply-to:in-reply-to:references:references;\n\tbh=wgPRdehWi6kccte0Z0xpn+NNJauwwVsVp7eyKHNl4Ck=;\n\tb=ayDrZl/DFezgHRgVehv1mNe43h+6YgqFpTeK1zRJMk3Rq+KLhsBhGqbqJhPm1byCaXbY3p\n\t4oQT4e9CknmYPoWSa+12N1qFGSL/cRild3RzK/Qzc/cRy0aFEQgFwstrNz8VIkPk/ApsCc\n\tR+Zd9NY3YGPfso3a0vMEo/KcVv3ixf4=","X-MC-Unique":"R-MKXmEMMIKeZs-pPB01xQ-1","From":"Hans de Goede <hdegoede@redhat.com>","To":"libcamera-devel@lists.libcamera.org","Subject":"[PATCH v4 17/18] libcamera: software_isp: Apply black level\n\tcompensation","Date":"Thu, 29 Feb 2024 19:36:28 +0100","Message-ID":"<20240229183654.7206-18-hdegoede@redhat.com>","In-Reply-To":"<20240229183654.7206-1-hdegoede@redhat.com>","References":"<20240229183654.7206-1-hdegoede@redhat.com>","MIME-Version":"1.0","X-Scanned-By":"MIMEDefang 3.4.1 on 10.11.54.7","X-Mimecast-Spam-Score":"0","X-Mimecast-Originator":"redhat.com","Content-Transfer-Encoding":"8bit","Content-Type":"text/plain; charset=\"US-ASCII\"; x-default=true","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>","Cc":"Maxime Ripard <mripard@redhat.com>, Pavel Machek <pavel@ucw.cz>,\n\tBryan O'Donoghue <bryan.odonoghue@linaro.org>","Errors-To":"libcamera-devel-bounces@lists.libcamera.org","Sender":"\"libcamera-devel\" <libcamera-devel-bounces@lists.libcamera.org>"},"content":"From: Milan Zamazal <mzamazal@redhat.com>\n\nBlack may not be represented as 0 pixel value for given hardware, it may be\nhigher.  If this is not compensated then various problems may occur such as low\ncontrast or suboptimal exposure.\n\nThe black pixel value can be either retrieved from a tuning file for the given\nhardware, or automatically on fly.  The former is the right and correct method,\nwhile the latter can be used when a tuning file is not available for the given\nhardware.  Since there is currently no support for tuning files in software ISP,\nthe automatic, hardware independent way, is always used.  Support for tuning\nfiles should be added in future but it will require more work than this patch.\n\nThe patch looks at the image histogram and assumes that black starts when pixel\nvalues start occurring on the left.  A certain amount of the darkest pixels is\nignored; it doesn't matter whether they represent various kinds of noise or are\nreal, they are better to omit in any case to make the image looking better.  It\nalso doesn't matter whether the darkest pixels occur around the supposed black\nlevel or are spread between 0 and the black level, the difference is not\nimportant.\n\nAn arbitrary threshold of 2% darkest pixels is applied; there is no magic about\nthat value.\n\nThe patch assumes that the black values for different colors are the same and\ndoesn't attempt any other non-primitive enhancements.  It cannot completely\nreplace tuning files and simplicity, while providing visible benefit, is its\ngoal.  Anything more sophisticated is left for future patches.\n\nA possible cheap enhancement, if needed, could be setting exposure + gain to\nminimum values temporarily, before setting the black level.  In theory, the\nblack level should be fixed but it may not be reached in all images.  For this\nreason, the patch updates black level only if the observed value is lower than\nthe current one; it should be never increased.\n\nThe purpose of the patch is to compensate for hardware properties.  General\nimage contrast enhancements are out of scope of this patch.\n\nStats are still gathered as an uncorrected histogram, to avoid any confusion and\nto represent the raw image data.  Exposure must be determined after the black\nlevel correction -- it has no influence on the sub-black area and must be\ncorrect after applying the black level correction.  The granularity of the\nhistogram is increased from 16 to 64 to provide a better precision (there is no\ntheory behind either of those numbers).\n\nSigned-off-by: Milan Zamazal <mzamazal@redhat.com>\n---\n .../internal/software_isp/debayer_params.h    |  4 +\n .../internal/software_isp/swisp_stats.h       | 10 ++-\n src/ipa/simple/black_level.cpp                | 84 +++++++++++++++++++\n src/ipa/simple/black_level.h                  | 28 +++++++\n src/ipa/simple/meson.build                    |  7 +-\n src/ipa/simple/soft_simple.cpp                | 28 +++++--\n src/libcamera/software_isp/debayer_cpu.cpp    | 13 ++-\n src/libcamera/software_isp/debayer_cpu.h      |  1 +\n src/libcamera/software_isp/software_isp.cpp   |  2 +-\n 9 files changed, 160 insertions(+), 17 deletions(-)\n create mode 100644 src/ipa/simple/black_level.cpp\n create mode 100644 src/ipa/simple/black_level.h","diff":"diff --git a/include/libcamera/internal/software_isp/debayer_params.h b/include/libcamera/internal/software_isp/debayer_params.h\nindex 98e7fc92..0bd46add 100644\n--- a/include/libcamera/internal/software_isp/debayer_params.h\n+++ b/include/libcamera/internal/software_isp/debayer_params.h\n@@ -43,6 +43,10 @@ struct DebayerParams {\n \t * \\brief Gamma correction, 1.0 is no correction\n \t */\n \tfloat gamma;\n+\t/**\n+\t * \\brief Level of the black point, 0..255, 0 is no correction.\n+\t */\n+\tunsigned int blackLevel;\n };\n \n } /* namespace libcamera */\ndiff --git a/include/libcamera/internal/software_isp/swisp_stats.h b/include/libcamera/internal/software_isp/swisp_stats.h\nindex afe42c9a..25cd5abd 100644\n--- a/include/libcamera/internal/software_isp/swisp_stats.h\n+++ b/include/libcamera/internal/software_isp/swisp_stats.h\n@@ -7,6 +7,8 @@\n \n #pragma once\n \n+#include <array>\n+\n namespace libcamera {\n \n /**\n@@ -28,11 +30,15 @@ struct SwIspStats {\n \t/**\n \t * \\brief Number of bins in the yHistogram.\n \t */\n-\tstatic constexpr unsigned int kYHistogramSize = 16;\n+\tstatic constexpr unsigned int kYHistogramSize = 64;\n+\t/**\n+\t * \\brief Type of the histogram.\n+\t */\n+\tusing histogram = std::array<unsigned int, kYHistogramSize>;\n \t/**\n \t * \\brief A histogram of luminance values.\n \t */\n-\tstd::array<unsigned int, kYHistogramSize> yHistogram;\n+\thistogram yHistogram;\n };\n \n } /* namespace libcamera */\ndiff --git a/src/ipa/simple/black_level.cpp b/src/ipa/simple/black_level.cpp\nnew file mode 100644\nindex 00000000..ab45d5f9\n--- /dev/null\n+++ b/src/ipa/simple/black_level.cpp\n@@ -0,0 +1,84 @@\n+/* SPDX-License-Identifier: LGPL-2.1-or-later */\n+/*\n+ * Copyright (C) 2024, Red Hat Inc.\n+ *\n+ * black_level.cpp - black level handling\n+ */\n+\n+#include \"black_level.h\"\n+\n+#include <numeric>\n+\n+#include <libcamera/base/log.h>\n+\n+namespace libcamera {\n+\n+LOG_DEFINE_CATEGORY(IPASoftBL)\n+\n+/**\n+ * \\class BlackLevel\n+ * \\brief Object providing black point level for software ISP\n+ *\n+ * Black level can be provided in hardware tuning files or, if no tuning file is\n+ * available for the given hardware, guessed automatically, with less accuracy.\n+ * As tuning files are not yet implemented for software ISP, BlackLevel\n+ * currently provides only guessed black levels.\n+ *\n+ * This class serves for tracking black level as a property of the underlying\n+ * hardware, not as means of enhancing a particular scene or image.\n+ *\n+ * The class is supposed to be instantiated for the given camera stream.\n+ * The black level can be retrieved using BlackLevel::get() method. It is\n+ * initially 0 and may change when updated using BlackLevel::update() method.\n+ */\n+\n+BlackLevel::BlackLevel()\n+\t: blackLevelHistIdx_(255), blackLevelSet_(false)\n+{\n+}\n+\n+/**\n+ * \\brief Return the current black level\n+ *\n+ * \\return The black level, in the range from 0 (minimum) to 255 (maximum).\n+ * If the black level couldn't be determined yet, return 0.\n+ */\n+unsigned int BlackLevel::get()\n+{\n+\treturn blackLevelSet_ ? blackLevelHistIdx_ * (256 / SwIspStats::kYHistogramSize) : 0;\n+}\n+\n+/**\n+ * \\brief Update black level from the provided histogram\n+ * \\param[in] yHistogram The histogram to be used for updating black level\n+ *\n+ * The black level is property of the given hardware, not image. It is updated\n+ * only if it has not been yet set or if it is lower than the lowest value seen\n+ * so far.\n+ */\n+void BlackLevel::update(SwIspStats::histogram &yHistogram)\n+{\n+\t// The constant is selected to be \"good enough\", not overly conservative or\n+\t// aggressive. There is no magic about the given value.\n+\tconstexpr float ignoredPercentage_ = 0.02;\n+\tconst unsigned int total =\n+\t\tstd::accumulate(begin(yHistogram), end(yHistogram), 0);\n+\tconst unsigned int pixelThreshold = ignoredPercentage_ * total;\n+\n+\tfor (unsigned int i = 0, seen = 0;\n+\t     i < blackLevelHistIdx_ && i < SwIspStats::kYHistogramSize;\n+\t     i++) {\n+\t\tseen += yHistogram[i];\n+\t\tif (seen >= pixelThreshold) {\n+\t\t\tblackLevelHistIdx_ = i;\n+\t\t\tblackLevelSet_ = true;\n+\t\t\tLOG(IPASoftBL, Debug)\n+\t\t\t\t<< \"Auto-set black level: \"\n+\t\t\t\t<< blackLevelHistIdx_ << \"/\" << SwIspStats::kYHistogramSize\n+\t\t\t\t<< \" (\" << 100 * (seen - yHistogram[i]) / total << \"% below, \"\n+\t\t\t\t<< 100 * seen / total << \"% at or below)\";\n+\t\t\tbreak;\n+\t\t}\n+\t};\n+}\n+} // namespace libcamera\ndiff --git a/src/ipa/simple/black_level.h b/src/ipa/simple/black_level.h\nnew file mode 100644\nindex 00000000..c8f5ec73\n--- /dev/null\n+++ b/src/ipa/simple/black_level.h\n@@ -0,0 +1,28 @@\n+/* SPDX-License-Identifier: LGPL-2.1-or-later */\n+/*\n+ * Copyright (C) 2024, Red Hat Inc.\n+ *\n+ * black_level.h - black level handling\n+ */\n+\n+#pragma once\n+\n+#include <array>\n+\n+#include \"libcamera/internal/software_isp/swisp_stats.h\"\n+\n+namespace libcamera {\n+\n+class BlackLevel\n+{\n+public:\n+\tBlackLevel();\n+\tunsigned int get();\n+\tvoid update(std::array<unsigned int, SwIspStats::kYHistogramSize> &yHistogram);\n+\n+private:\n+\tunsigned int blackLevelHistIdx_;\n+\tbool blackLevelSet_;\n+};\n+\n+} // namespace libcamera\ndiff --git a/src/ipa/simple/meson.build b/src/ipa/simple/meson.build\nindex 3e863db7..44b5f1d7 100644\n--- a/src/ipa/simple/meson.build\n+++ b/src/ipa/simple/meson.build\n@@ -2,8 +2,13 @@\n \n ipa_name = 'ipa_soft_simple'\n \n+soft_simple_sources = files([\n+    'soft_simple.cpp',\n+    'black_level.cpp',\n+])\n+\n mod = shared_module(ipa_name,\n-                    ['soft_simple.cpp', libcamera_generated_ipa_headers],\n+                    [soft_simple_sources, libcamera_generated_ipa_headers],\n                     name_prefix : '',\n                     include_directories : [ipa_includes, libipa_includes],\n                     dependencies : libcamera_private,\ndiff --git a/src/ipa/simple/soft_simple.cpp b/src/ipa/simple/soft_simple.cpp\nindex 312df4ba..ac027568 100644\n--- a/src/ipa/simple/soft_simple.cpp\n+++ b/src/ipa/simple/soft_simple.cpp\n@@ -22,6 +22,8 @@\n #include \"libcamera/internal/software_isp/debayer_params.h\"\n #include \"libcamera/internal/software_isp/swisp_stats.h\"\n \n+#include \"black_level.h\"\n+\n namespace libcamera {\n \n LOG_DEFINE_CATEGORY(IPASoft)\n@@ -33,7 +35,8 @@ class IPASoftSimple : public ipa::soft::IPASoftInterface\n public:\n \tIPASoftSimple()\n \t\t: params_(static_cast<DebayerParams *>(MAP_FAILED)),\n-\t\t  stats_(static_cast<SwIspStats *>(MAP_FAILED)), ignore_updates_(0)\n+\t\t  stats_(static_cast<SwIspStats *>(MAP_FAILED)),\n+\t\t  blackLevel_(BlackLevel()), ignore_updates_(0)\n \t{\n \t}\n \n@@ -63,6 +66,7 @@ private:\n \tSharedFD fdParams_;\n \tDebayerParams *params_;\n \tSwIspStats *stats_;\n+\tBlackLevel blackLevel_;\n \n \tint32_t exposure_min_, exposure_max_;\n \tint32_t again_min_, again_max_;\n@@ -196,6 +200,10 @@ void IPASoftSimple::processStats(const ControlList &sensorControls)\n \tparams_->gainG = 256;\n \tparams_->gamma = 0.5;\n \n+\tif (ignore_updates_ > 0)\n+\t\tblackLevel_.update(stats_->yHistogram);\n+\tparams_->blackLevel = blackLevel_.get();\n+\n \tsetIspParams.emit(0);\n \n \t/*\n@@ -211,18 +219,19 @@ void IPASoftSimple::processStats(const ControlList &sensorControls)\n \t * Calculate Mean Sample Value (MSV) according to formula from:\n \t * https://www.araa.asn.au/acra/acra2007/papers/paper84final.pdf\n \t */\n-\tconstexpr unsigned int yHistValsPerBin =\n-\t\tSwIspStats::kYHistogramSize / kExposureBinsCount;\n-\tconstexpr unsigned int yHistValsPerBinMod =\n-\t\tSwIspStats::kYHistogramSize /\n-\t\t(SwIspStats::kYHistogramSize % kExposureBinsCount + 1);\n+\tconst unsigned int blackLevelHistIdx =\n+\t\tparams_->blackLevel / (256 / SwIspStats::kYHistogramSize);\n+\tconst unsigned int histogramSize = SwIspStats::kYHistogramSize - blackLevelHistIdx;\n+\tconst unsigned int yHistValsPerBin = histogramSize / kExposureBinsCount;\n+\tconst unsigned int yHistValsPerBinMod =\n+\t\thistogramSize / (histogramSize % kExposureBinsCount + 1);\n \tint ExposureBins[kExposureBinsCount] = {};\n \tunsigned int denom = 0;\n \tunsigned int num = 0;\n \n-\tfor (unsigned int i = 0; i < SwIspStats::kYHistogramSize; i++) {\n+\tfor (unsigned int i = 0; i < histogramSize; i++) {\n \t\tunsigned int idx = (i - (i / yHistValsPerBinMod)) / yHistValsPerBin;\n-\t\tExposureBins[idx] += stats_->yHistogram[i];\n+\t\tExposureBins[idx] += stats_->yHistogram[blackLevelHistIdx + i];\n \t}\n \n \tfor (unsigned int i = 0; i < kExposureBinsCount; i++) {\n@@ -256,7 +265,8 @@ void IPASoftSimple::processStats(const ControlList &sensorControls)\n \n \tLOG(IPASoft, Debug) << \"exposureMSV \" << exposureMSV\n \t\t\t    << \" exp \" << exposure_ << \" again \" << again_\n-\t\t\t    << \" gain R/B \" << params_->gainR << \"/\" << params_->gainB;\n+\t\t\t    << \" gain R/B \" << params_->gainR << \"/\" << params_->gainB\n+\t\t\t    << \" black level \" << params_->blackLevel;\n }\n \n void IPASoftSimple::updateExposure(double exposureMSV)\ndiff --git a/src/libcamera/software_isp/debayer_cpu.cpp b/src/libcamera/software_isp/debayer_cpu.cpp\nindex 215ca615..b221bc07 100644\n--- a/src/libcamera/software_isp/debayer_cpu.cpp\n+++ b/src/libcamera/software_isp/debayer_cpu.cpp\n@@ -35,7 +35,7 @@ namespace libcamera {\n  * \\param[in] stats Pointer to the stats object to use.\n  */\n DebayerCpu::DebayerCpu(std::unique_ptr<SwStatsCpu> stats)\n-\t: stats_(std::move(stats)), gamma_correction_(1.0)\n+\t: stats_(std::move(stats)), gamma_correction_(1.0), blackLevel_(0)\n {\n #ifdef __x86_64__\n \tenableInputMemcpy_ = false;\n@@ -676,11 +676,16 @@ void DebayerCpu::process(FrameBuffer *input, FrameBuffer *output, DebayerParams\n \t}\n \n \t/* Apply DebayerParams */\n-\tif (params.gamma != gamma_correction_) {\n-\t\tfor (unsigned int i = 0; i < kGammaLookupSize; i++)\n-\t\t\tgamma_[i] = UINT8_MAX * powf(i / (kGammaLookupSize - 1.0), params.gamma);\n+\tif (params.gamma != gamma_correction_ || params.blackLevel != blackLevel_) {\n+\t\tconst unsigned int blackIndex =\n+\t\t\tparams.blackLevel * kGammaLookupSize / 256;\n+\t\tstd::fill(gamma_.begin(), gamma_.begin() + blackIndex, 0);\n+\t\tconst float divisor = kGammaLookupSize - blackIndex - 1.0;\n+\t\tfor (unsigned int i = blackIndex; i < kGammaLookupSize; i++)\n+\t\t\tgamma_[i] = UINT8_MAX * powf((i - blackIndex) / divisor, params.gamma);\n \n \t\tgamma_correction_ = params.gamma;\n+\t\tblackLevel_ = params.blackLevel;\n \t}\n \n \tif (swapRedBlueGains_)\ndiff --git a/src/libcamera/software_isp/debayer_cpu.h b/src/libcamera/software_isp/debayer_cpu.h\nindex b9e5f3fd..88b15ac7 100644\n--- a/src/libcamera/software_isp/debayer_cpu.h\n+++ b/src/libcamera/software_isp/debayer_cpu.h\n@@ -147,6 +147,7 @@ private:\n \tbool enableInputMemcpy_;\n \tbool swapRedBlueGains_;\n \tfloat gamma_correction_;\n+\tunsigned int blackLevel_;\n \tunsigned int measuredFrames_;\n \tint64_t frameProcessTime_;\n \t/* Skip 30 frames for things to stabilize then measure 30 frames */\ndiff --git a/src/libcamera/software_isp/software_isp.cpp b/src/libcamera/software_isp/software_isp.cpp\nindex 388b4496..9b49be41 100644\n--- a/src/libcamera/software_isp/software_isp.cpp\n+++ b/src/libcamera/software_isp/software_isp.cpp\n@@ -64,7 +64,7 @@ LOG_DEFINE_CATEGORY(SoftwareIsp)\n  */\n SoftwareIsp::SoftwareIsp(PipelineHandler *pipe, const ControlInfoMap &sensorControls)\n \t: debayer_(nullptr),\n-\t  debayerParams_{ DebayerParams::kGain10, DebayerParams::kGain10, DebayerParams::kGain10, 0.5f },\n+\t  debayerParams_{ DebayerParams::kGain10, DebayerParams::kGain10, DebayerParams::kGain10, 0.5f, 0 },\n \t  dmaHeap_(DmaHeap::DmaHeapFlag::Cma | DmaHeap::DmaHeapFlag::System)\n {\n \tif (!dmaHeap_.isValid()) {\n","prefixes":["v4","17/18"]}