{"id":17490,"url":"https://patchwork.libcamera.org/api/1.1/patches/17490/?format=json","web_url":"https://patchwork.libcamera.org/patch/17490/","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":"<20221003083934.31629-4-naush@raspberrypi.com>","date":"2022-10-03T08:39:29","name":"[libcamera-devel,v1,3/9] ipa: raspberrypi: Pass lineLength into the CamHelper API","commit_ref":null,"pull_url":null,"state":"changes-requested","archived":false,"hash":"3ced59b66fbd4174f54175fd16755eaac901abb5","submitter":{"id":34,"url":"https://patchwork.libcamera.org/api/1.1/people/34/?format=json","name":"Naushir Patuck","email":"naush@raspberrypi.com"},"delegate":null,"mbox":"https://patchwork.libcamera.org/patch/17490/mbox/","series":[{"id":3523,"url":"https://patchwork.libcamera.org/api/1.1/series/3523/?format=json","web_url":"https://patchwork.libcamera.org/project/libcamera/list/?series=3523","date":"2022-10-03T08:39:26","name":"Raspberry Pi: Horizontal blanking control","version":1,"mbox":"https://patchwork.libcamera.org/series/3523/mbox/"}],"comments":"https://patchwork.libcamera.org/api/patches/17490/comments/","check":"pending","checks":"https://patchwork.libcamera.org/api/patches/17490/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 20BE0C3285\n\tfor <parsemail@patchwork.libcamera.org>;\n\tMon,  3 Oct 2022 08:40:04 +0000 (UTC)","from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id E3A7E62CE7;\n\tMon,  3 Oct 2022 10:40:02 +0200 (CEST)","from mail-wm1-x334.google.com (mail-wm1-x334.google.com\n\t[IPv6:2a00:1450:4864:20::334])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id 18E0161F74\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tMon,  3 Oct 2022 10:40:00 +0200 (CEST)","by mail-wm1-x334.google.com with SMTP id\n\tn35-20020a05600c502300b003b4924c6868so6731728wmr.1\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tMon, 03 Oct 2022 01:39:59 -0700 (PDT)","from naush-laptop.localdomain ([93.93.133.154])\n\tby smtp.gmail.com with ESMTPSA id\n\ti13-20020a5d55cd000000b0022ae59d472esm8922787wrw.112.2022.10.03.01.39.58\n\t(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n\tMon, 03 Oct 2022 01:39:58 -0700 (PDT)"],"DKIM-Signature":["v=1; a=rsa-sha256; c=relaxed/simple; d=libcamera.org;\n\ts=mail; t=1664786402;\n\tbh=D+O3A92GH+pY7AyNAjsM9mtZeLOyaplKIjW+yl5Z+/Q=;\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=QbFV2BFSj8xhrjotiP3z34pd9j45YURUMqwx+/bbCAXRwz7wFNp3swRe5g8vYeSAz\n\tBeLRK+Jl29LxSvXA5Fu8c2yFGtwizHkvLVuBgLo1Ovnm2eN+I9ml6uzGREVcNvzUq7\n\tDAl4QqaAjtHgKuTCOEkeVsV0PYL1duIIRrRmrIygRZsuOzDxROrzL6G+9Joo/parS5\n\txAE3kHbHS0mFaXXP9Ja2feMYY/wtK67787dUleG11Vpvj3n50LFoOWgyuuVqyuWO3P\n\twjdKg1bk5UdeRQTPBvFETWn6oHx31/K2wPnAuv7ewChP/aEdYMUhfJs5sy5tGwVeZB\n\tspjneakH8ICSg==","v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=raspberrypi.com; s=google;\n\th=content-transfer-encoding:mime-version:references:in-reply-to\n\t:message-id:date:subject:cc:to:from:from:to:cc:subject:date;\n\tbh=tlMV8G5wGt0Z/9WlSigS1mH/aBSMhPPT2FEqWU+4Qx4=;\n\tb=Cbf0RYlErHLSczlpGUKVLhA5msEwM1YWEDFrclBsaN5z1j+3MwJfQan7/EHWoqMn2N\n\tsH35PXT6NWb+xWz4CldjYvT1Y8x1SYl1TAZ3xT5YkY6OAIPSf17Ucj+V6C+O/8IBJlvK\n\tbOeLqp602SQFYuMoEmhFpLLrOcxHsxNrw91B2Zl8qwiYWFC4tjtReZuOswGKjwLKMEwR\n\tK2zkxlDOpUrmGUKKkUuvN9YXBlAkNpJLkMg+7PBvCwSRzXom8C7rYwm4CJPjudfqq6zn\n\tp2/loEgFPKt0kskSPzGC2IHo/CfIOaFA8Kn9skEiVALe/y5w83cCHsVF4V/HyTlfOkCt\n\tp/zQ=="],"Authentication-Results":"lancelot.ideasonboard.com; dkim=pass (2048-bit key; \n\tunprotected) header.d=raspberrypi.com\n\theader.i=@raspberrypi.com\n\theader.b=\"Cbf0RYlE\"; dkim-atps=neutral","X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20210112;\n\th=content-transfer-encoding:mime-version:references:in-reply-to\n\t:message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc\n\t:subject:date;\n\tbh=tlMV8G5wGt0Z/9WlSigS1mH/aBSMhPPT2FEqWU+4Qx4=;\n\tb=SHscvuMtGBJLOyv1gZCAjird0eD8a7t7dh4zxXbVRan0NicXpZ4rPh+c4064eR8i7z\n\txNQ/XMDMrQTOpTnK5ZIEZCe7EcIH3QDMaT5fwjnw2EmUGROWXIFmyvBrCn8259vde+NA\n\tdBGAB0xae8dP7QUGAx6H2i4mvlKpuMRseTogJuxOUijrZIx9x41JEI/in/sDBfvxRAAa\n\tXCOtaohN3KcYewh7WVu944uQ1qQzu95TDCEnzS4aSwqzx3GfaqeGyo8CDzNJJwdC8reA\n\t38NEz6lgWHVzQjDwPthY8vUZuuTJL3ofxRWnv/FbcWs/FDOlBq9oTSGudvCenNzsZBSb\n\tGGbQ==","X-Gm-Message-State":"ACrzQf3v0LvpYVDtRXHm0gtD9iUxcdGYwtDP87g63Q2dF693GgmqSJmX\n\t+qs4Q0D0WaSZkpHR0h4V4itebgdduTgi6A==","X-Google-Smtp-Source":"AMsMyM4ziDz6LBKzGH4NjxC0DFzwaF13IpUOtmhsm0A4lvtx1TMjOs6ZpLire2IkH8Ry+gbYj9IRtQ==","X-Received":"by 2002:a05:600c:4e15:b0:3b4:a621:b54e with SMTP id\n\tb21-20020a05600c4e1500b003b4a621b54emr6057678wmq.47.1664786399287; \n\tMon, 03 Oct 2022 01:39:59 -0700 (PDT)","To":"libcamera-devel@lists.libcamera.org","Date":"Mon,  3 Oct 2022 09:39:29 +0100","Message-Id":"<20221003083934.31629-4-naush@raspberrypi.com>","X-Mailer":"git-send-email 2.25.1","In-Reply-To":"<20221003083934.31629-1-naush@raspberrypi.com>","References":"<20221003083934.31629-1-naush@raspberrypi.com>","MIME-Version":"1.0","Content-Transfer-Encoding":"8bit","Subject":"[libcamera-devel] [PATCH v1 3/9] ipa: raspberrypi: Pass lineLength\n\tinto the CamHelper API","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":"Naushir Patuck via libcamera-devel\n\t<libcamera-devel@lists.libcamera.org>","Reply-To":"Naushir Patuck <naush@raspberrypi.com>","Errors-To":"libcamera-devel-bounces@lists.libcamera.org","Sender":"\"libcamera-devel\" <libcamera-devel-bounces@lists.libcamera.org>"},"content":"Update CamHelper::exposureLines() and CamHelper::exposure() to take a\nline length duration parameter for use in the exposure calculations.\n\nFor now, only use the minimum line length for all the calculations to match\nthe existing IPA behavior.\n\nSigned-off-by: Naushir Patuck <naush@raspberrypi.com>\n---\n src/ipa/raspberrypi/cam_helper.cpp           | 12 ++++++------\n src/ipa/raspberrypi/cam_helper.h             |  6 ++++--\n src/ipa/raspberrypi/cam_helper_imx219.cpp    |  3 ++-\n src/ipa/raspberrypi/cam_helper_imx296.cpp    | 10 ++++++----\n src/ipa/raspberrypi/cam_helper_imx477.cpp    |  7 ++++---\n src/ipa/raspberrypi/cam_helper_imx519.cpp    |  7 ++++---\n src/ipa/raspberrypi/controller/camera_mode.h |  2 +-\n src/ipa/raspberrypi/raspberrypi.cpp          |  8 ++++----\n 8 files changed, 31 insertions(+), 24 deletions(-)","diff":"diff --git a/src/ipa/raspberrypi/cam_helper.cpp b/src/ipa/raspberrypi/cam_helper.cpp\nindex 42251ba29682..fd3527b94501 100644\n--- a/src/ipa/raspberrypi/cam_helper.cpp\n+++ b/src/ipa/raspberrypi/cam_helper.cpp\n@@ -61,16 +61,16 @@ void CamHelper::process([[maybe_unused]] StatisticsPtr &stats,\n {\n }\n \n-uint32_t CamHelper::exposureLines(const Duration exposure) const\n+uint32_t CamHelper::exposureLines(const Duration exposure, const Duration lineLength) const\n {\n \tassert(initialized_);\n-\treturn exposure / mode_.minLineLength;\n+\treturn exposure / lineLength;\n }\n \n-Duration CamHelper::exposure(uint32_t exposureLines) const\n+Duration CamHelper::exposure(uint32_t exposureLines, const Duration lineLength) const\n {\n \tassert(initialized_);\n-\treturn exposureLines * mode_.minLineLength;\n+\treturn exposureLines * lineLength;\n }\n \n uint32_t CamHelper::getVBlanking(Duration &exposure,\n@@ -78,7 +78,7 @@ uint32_t CamHelper::getVBlanking(Duration &exposure,\n \t\t\t\t Duration maxFrameDuration) const\n {\n \tuint32_t frameLengthMin, frameLengthMax, vblank;\n-\tuint32_t exposureLines = CamHelper::exposureLines(exposure);\n+\tuint32_t exposureLines = CamHelper::exposureLines(exposure, mode_.minLineLength);\n \n \tassert(initialized_);\n \n@@ -94,7 +94,7 @@ uint32_t CamHelper::getVBlanking(Duration &exposure,\n \t * re-calculate if it has been clipped.\n \t */\n \texposureLines = std::min(frameLengthMax - frameIntegrationDiff_, exposureLines);\n-\texposure = CamHelper::exposure(exposureLines);\n+\texposure = CamHelper::exposure(exposureLines, mode_.minLineLength);\n \n \t/* Limit the vblank to the range allowed by the frame length limits. */\n \tvblank = std::clamp(exposureLines + frameIntegrationDiff_,\ndiff --git a/src/ipa/raspberrypi/cam_helper.h b/src/ipa/raspberrypi/cam_helper.h\nindex 70d62719da86..9b5e602689f3 100644\n--- a/src/ipa/raspberrypi/cam_helper.h\n+++ b/src/ipa/raspberrypi/cam_helper.h\n@@ -78,8 +78,10 @@ public:\n \tvirtual void prepare(libcamera::Span<const uint8_t> buffer,\n \t\t\t     Metadata &metadata);\n \tvirtual void process(StatisticsPtr &stats, Metadata &metadata);\n-\tvirtual uint32_t exposureLines(libcamera::utils::Duration exposure) const;\n-\tvirtual libcamera::utils::Duration exposure(uint32_t exposureLines) const;\n+\tvirtual uint32_t exposureLines(const libcamera::utils::Duration exposure,\n+\t\t\t\t       const libcamera::utils::Duration lineLength) const;\n+\tvirtual libcamera::utils::Duration exposure(uint32_t exposureLines,\n+\t\t\t\t\t\t    const libcamera::utils::Duration lineLength) const;\n \tvirtual uint32_t getVBlanking(libcamera::utils::Duration &exposure,\n \t\t\t\t      libcamera::utils::Duration minFrameDuration,\n \t\t\t\t      libcamera::utils::Duration maxFrameDuration) const;\ndiff --git a/src/ipa/raspberrypi/cam_helper_imx219.cpp b/src/ipa/raspberrypi/cam_helper_imx219.cpp\nindex 7ded07a213cd..98a3b31956ec 100644\n--- a/src/ipa/raspberrypi/cam_helper_imx219.cpp\n+++ b/src/ipa/raspberrypi/cam_helper_imx219.cpp\n@@ -94,7 +94,8 @@ void CamHelperImx219::populateMetadata(const MdParser::RegisterMap &registers,\n {\n \tDeviceStatus deviceStatus;\n \n-\tdeviceStatus.shutterSpeed = exposure(registers.at(expHiReg) * 256 + registers.at(expLoReg));\n+\tdeviceStatus.shutterSpeed = exposure(registers.at(expHiReg) * 256 + registers.at(expLoReg),\n+\t\t\t\t\t     mode_.minLineLength);\n \tdeviceStatus.analogueGain = gain(registers.at(gainReg));\n \tdeviceStatus.frameLength = registers.at(frameLengthHiReg) * 256 + registers.at(frameLengthLoReg);\n \ndiff --git a/src/ipa/raspberrypi/cam_helper_imx296.cpp b/src/ipa/raspberrypi/cam_helper_imx296.cpp\nindex ab1d157aaf45..74361ffe7cc2 100644\n--- a/src/ipa/raspberrypi/cam_helper_imx296.cpp\n+++ b/src/ipa/raspberrypi/cam_helper_imx296.cpp\n@@ -21,8 +21,8 @@ public:\n \tCamHelperImx296();\n \tuint32_t gainCode(double gain) const override;\n \tdouble gain(uint32_t gainCode) const override;\n-\tuint32_t exposureLines(Duration exposure) const override;\n-\tDuration exposure(uint32_t exposureLines) const override;\n+\tuint32_t exposureLines(const Duration exposure, const Duration lineLength) const override;\n+\tDuration exposure(uint32_t exposureLines, const Duration lineLength) const override;\n \n private:\n \tstatic constexpr uint32_t maxGainCode = 239;\n@@ -51,12 +51,14 @@ double CamHelperImx296::gain(uint32_t gainCode) const\n \treturn std::pow(10.0, gainCode / 200.0);\n }\n \n-uint32_t CamHelperImx296::exposureLines(Duration exposure) const\n+uint32_t CamHelperImx296::exposureLines(const Duration exposure,\n+\t\t\t\t\t[[maybe_unused]] const Duration lineLength) const\n {\n \treturn (exposure - 14.26us) / timePerLine;\n }\n \n-Duration CamHelperImx296::exposure(uint32_t exposureLines) const\n+Duration CamHelperImx296::exposure(uint32_t exposureLines,\n+\t\t\t\t   [[maybe_unused]] const Duration lineLength) const\n {\n \treturn exposureLines * timePerLine + 14.26us;\n }\ndiff --git a/src/ipa/raspberrypi/cam_helper_imx477.cpp b/src/ipa/raspberrypi/cam_helper_imx477.cpp\nindex aa306d6661c6..71529bdd3034 100644\n--- a/src/ipa/raspberrypi/cam_helper_imx477.cpp\n+++ b/src/ipa/raspberrypi/cam_helper_imx477.cpp\n@@ -144,9 +144,9 @@ uint32_t CamHelperImx477::getVBlanking(Duration &exposure,\n \tif (shift) {\n \t\t/* Account for any rounding in the scaled frame length value. */\n \t\tframeLength <<= shift;\n-\t\texposureLines = CamHelperImx477::exposureLines(exposure);\n+\t\texposureLines = CamHelperImx477::exposureLines(exposure, mode_.minLineLength);\n \t\texposureLines = std::min(exposureLines, frameLength - frameIntegrationDiff);\n-\t\texposure = CamHelperImx477::exposure(exposureLines);\n+\t\texposure = CamHelperImx477::exposure(exposureLines, mode_.minLineLength);\n \t}\n \n \treturn frameLength - mode_.height;\n@@ -170,7 +170,8 @@ void CamHelperImx477::populateMetadata(const MdParser::RegisterMap &registers,\n {\n \tDeviceStatus deviceStatus;\n \n-\tdeviceStatus.shutterSpeed = exposure(registers.at(expHiReg) * 256 + registers.at(expLoReg));\n+\tdeviceStatus.shutterSpeed = exposure(registers.at(expHiReg) * 256 + registers.at(expLoReg),\n+\t\t\t\t\t     mode_.minLineLength);\n \tdeviceStatus.analogueGain = gain(registers.at(gainHiReg) * 256 + registers.at(gainLoReg));\n \tdeviceStatus.frameLength = registers.at(frameLengthHiReg) * 256 + registers.at(frameLengthLoReg);\n \tdeviceStatus.sensorTemperature = std::clamp<int8_t>(registers.at(temperatureReg), -20, 80);\ndiff --git a/src/ipa/raspberrypi/cam_helper_imx519.cpp b/src/ipa/raspberrypi/cam_helper_imx519.cpp\nindex 54e104e7659a..2c120dad1680 100644\n--- a/src/ipa/raspberrypi/cam_helper_imx519.cpp\n+++ b/src/ipa/raspberrypi/cam_helper_imx519.cpp\n@@ -144,9 +144,9 @@ uint32_t CamHelperImx519::getVBlanking(Duration &exposure,\n \tif (shift) {\n \t\t/* Account for any rounding in the scaled frame length value. */\n \t\tframeLength <<= shift;\n-\t\texposureLines = CamHelperImx519::exposureLines(exposure);\n+\t\texposureLines = CamHelperImx519::exposureLines(exposure, mode_.minLineLength);\n \t\texposureLines = std::min(exposureLines, frameLength - frameIntegrationDiff);\n-\t\texposure = CamHelperImx519::exposure(exposureLines);\n+\t\texposure = CamHelperImx519::exposure(exposureLines, mode_.minLineLength);\n \t}\n \n \treturn frameLength - mode_.height;\n@@ -170,7 +170,8 @@ void CamHelperImx519::populateMetadata(const MdParser::RegisterMap &registers,\n {\n \tDeviceStatus deviceStatus;\n \n-\tdeviceStatus.shutterSpeed = exposure(registers.at(expHiReg) * 256 + registers.at(expLoReg));\n+\tdeviceStatus.shutterSpeed = exposure(registers.at(expHiReg) * 256 + registers.at(expLoReg),\n+\t\t\t\t\t     mode_.minLineLength);\n \tdeviceStatus.analogueGain = gain(registers.at(gainHiReg) * 256 + registers.at(gainLoReg));\n \tdeviceStatus.frameLength = registers.at(frameLengthHiReg) * 256 + registers.at(frameLengthLoReg);\n \ndiff --git a/src/ipa/raspberrypi/controller/camera_mode.h b/src/ipa/raspberrypi/controller/camera_mode.h\nindex b7e73aae4698..cda6ac4e200a 100644\n--- a/src/ipa/raspberrypi/controller/camera_mode.h\n+++ b/src/ipa/raspberrypi/controller/camera_mode.h\n@@ -31,7 +31,7 @@ struct CameraMode {\n \tdouble scaleX, scaleY;\n \t/* scaling of the noise compared to the native sensor mode */\n \tdouble noiseFactor;\n-\t/* line time */\n+\t/* minimum and maximum line times */\n \tlibcamera::utils::Duration minLineLength, maxLineLength;\n \t/* any camera transform *not* reflected already in the camera tuning */\n \tlibcamera::Transform transform;\ndiff --git a/src/ipa/raspberrypi/raspberrypi.cpp b/src/ipa/raspberrypi/raspberrypi.cpp\nindex 67326bcf4a14..13807f4d47f7 100644\n--- a/src/ipa/raspberrypi/raspberrypi.cpp\n+++ b/src/ipa/raspberrypi/raspberrypi.cpp\n@@ -477,7 +477,7 @@ int IPARPi::configure(const IPACameraSensorInfo &sensorInfo,\n \tconst uint32_t exposureMin = sensorCtrls_.at(V4L2_CID_EXPOSURE).min().get<int32_t>();\n \n \tctrlMap[&controls::ExposureTime] =\n-\t\tControlInfo(static_cast<int32_t>(helper_->exposure(exposureMin).get<std::micro>()),\n+\t\tControlInfo(static_cast<int32_t>(helper_->exposure(exposureMin, mode_.minLineLength).get<std::micro>()),\n \t\t\t    static_cast<int32_t>(maxShutter.get<std::micro>()));\n \n \tresult->controlInfo = ControlInfoMap(std::move(ctrlMap), controls::controls);\n@@ -550,7 +550,7 @@ void IPARPi::reportMetadata()\n \t\t\t\t       deviceStatus->shutterSpeed.get<std::micro>());\n \t\tlibcameraMetadata_.set(controls::AnalogueGain, deviceStatus->analogueGain);\n \t\tlibcameraMetadata_.set(controls::FrameDuration,\n-\t\t\t\t       helper_->exposure(deviceStatus->frameLength).get<std::micro>());\n+\t\t\t\t       helper_->exposure(deviceStatus->frameLength, mode_.minLineLength).get<std::micro>());\n \t\tif (deviceStatus->sensorTemperature)\n \t\t\tlibcameraMetadata_.set(controls::SensorTemperature, *deviceStatus->sensorTemperature);\n \t}\n@@ -1106,7 +1106,7 @@ void IPARPi::fillDeviceStatus(const ControlList &sensorControls)\n \tint32_t gainCode = sensorControls.get(V4L2_CID_ANALOGUE_GAIN).get<int32_t>();\n \tint32_t vblank = sensorControls.get(V4L2_CID_VBLANK).get<int32_t>();\n \n-\tdeviceStatus.shutterSpeed = helper_->exposure(exposureLines);\n+\tdeviceStatus.shutterSpeed = helper_->exposure(exposureLines, mode_.minLineLength);\n \tdeviceStatus.analogueGain = helper_->gain(gainCode);\n \tdeviceStatus.frameLength = mode_.height + vblank;\n \n@@ -1198,7 +1198,7 @@ void IPARPi::applyAGC(const struct AgcStatus *agcStatus, ControlList &ctrls)\n \t/* getVBlanking might clip exposure time to the fps limits. */\n \tDuration exposure = agcStatus->shutterTime;\n \tint32_t vblanking = helper_->getVBlanking(exposure, minFrameDuration_, maxFrameDuration_);\n-\tint32_t exposureLines = helper_->exposureLines(exposure);\n+\tint32_t exposureLines = helper_->exposureLines(exposure, mode_.minLineLength);\n \n \tLOG(IPARPI, Debug) << \"Applying AGC Exposure: \" << exposure\n \t\t\t   << \" (Shutter lines: \" << exposureLines << \", AGC requested \"\n","prefixes":["libcamera-devel","v1","3/9"]}