From patchwork Mon Oct 19 18:45:25 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Barnab=C3=A1s_P=C5=91cze?= X-Patchwork-Id: 28526 Return-Path: X-Original-To: parsemail@patchwork.libcamera.org Delivered-To: parsemail@patchwork.libcamera.org Received: from lancelot.ideasonboard.com (lancelot.ideasonboard.com [92.243.16.209]) by patchwork.libcamera.org (Postfix) with ESMTPS id 681CFC335C for ; Mon, 19 Oct 2026 18:46:04 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id C1FAF68F06; Mon, 19 Oct 2026 20:45:58 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (1024-bit key; unprotected) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="eMfVj2Df"; dkim-atps=neutral Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 8ECB968EE2 for ; Mon, 19 Oct 2026 20:45:35 +0200 (CEST) Received: from pb-laptop.local (185.221.141.235.nat.pool.zt.hu [185.221.141.235]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 6E747593 for ; Mon, 19 Oct 2026 20:43:29 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1792435409; bh=uxeV1N6z/sekiiXO5Cqw0F8qJ8k2XF1QkfGQEzK3UJo=; h=From:To:Subject:Date:In-Reply-To:References:From; b=eMfVj2DfFsyljUt58JbYKtF1KjP55uhIDDwox3z7affwPe5jNBtTxm3ZomuPL2mH5 1rjbgrheBPmPFzlcjuB6rdf7OyNHiLjZ/KZaR9xSBjLRdoRH+TFvqCvAnjFSM/jeLC G8JQZPwF0n4x0lSC8OFA6aFuTgzn6LpfYMm3EW7s= From: =?utf-8?q?Barnab=C3=A1s_P=C5=91cze?= To: libcamera-devel@lists.libcamera.org Subject: [RFC PATCH v3 18/19] ipa: libipa: exposure_mode_helper: Add getter for max exp time Date: Mon, 19 Oct 2026 20:45:25 +0200 Message-ID: <20261019184526.252977-19-barnabas.pocze@ideasonboard.com> X-Mailer: git-send-email 2.56.0 In-Reply-To: <20261019184526.252977-1-barnabas.pocze@ideasonboard.com> References: <20261019184526.252977-1-barnabas.pocze@ideasonboard.com> MIME-Version: 1.0 X-BeenThere: libcamera-devel@lists.libcamera.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: libcamera-devel-bounces@lists.libcamera.org Sender: "libcamera-devel" Add a getter that can be used to retrieve the maximum "static" exposure time (i.e. established by configuration, not by runtime `setLimits()` calls). Signed-off-by: Barnabás Pőcze --- src/ipa/libipa/exposure_mode_helper.cpp | 21 +++++++++++++++++++++ src/ipa/libipa/exposure_mode_helper.h | 2 ++ 2 files changed, 23 insertions(+) diff --git a/src/ipa/libipa/exposure_mode_helper.cpp b/src/ipa/libipa/exposure_mode_helper.cpp index 13dce50c48..6345a47c54 100644 --- a/src/ipa/libipa/exposure_mode_helper.cpp +++ b/src/ipa/libipa/exposure_mode_helper.cpp @@ -10,6 +10,7 @@ #include #include +#include /** * \file exposure_mode_helper.h @@ -382,6 +383,26 @@ ExposureModeHelper::splitExposure(utils::Duration exposure, std::span &stages) { + return stages.back().exposureTime; + }, + }, mode_); +} + } /* namespace ipa */ } /* namespace libcamera */ diff --git a/src/ipa/libipa/exposure_mode_helper.h b/src/ipa/libipa/exposure_mode_helper.h index a6cfb83880..ce140192b5 100644 --- a/src/ipa/libipa/exposure_mode_helper.h +++ b/src/ipa/libipa/exposure_mode_helper.h @@ -50,6 +50,8 @@ public: [[nodiscard]] Result splitExposure(utils::Duration exposure) const; + [[nodiscard]] utils::Duration maxStageExposureTime() const; + private: utils::Duration clampExposureTime(utils::Duration exposureTime, double *quantizationGain = nullptr) const;