From patchwork Mon Sep 14 14:02:18 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefan Klug X-Patchwork-Id: 28249 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 4FE5AC327D for ; Mon, 14 Sep 2026 14:03:42 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 9248F686B4; Mon, 14 Sep 2026 16:03:41 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (1024-bit key; unprotected) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="Z1Vr1TTF"; dkim-atps=neutral Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [IPv6:2001:4b98:dc2:55:216:3eff:fef7:d647]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 59A5C686B3 for ; Mon, 14 Sep 2026 16:03:40 +0200 (CEST) Received: from ideasonboard.com (unknown [IPv6:2a00:6020:448c:6c00:a279:75fa:1f6c:7f40]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 5A6C1929; Mon, 14 Sep 2026 16:02:00 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1789394520; bh=8sPGJnl0E/oMaJA/vOVQQnyJCC8XZsXHgv+oOgsXwpc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Z1Vr1TTF3lIuuJ0tBsCfUFM9sHvgK+btzOhknndIf6FvzaLZHmnyTuPBePQslhsyr 7juxZ5gdq0U7pP8yQpbJcx0QQOpBy8+lP0V/dBsNnbPWBusEmQQUGm9nX/vSspnrzv ZW6p2KXTbuPr+dTTavvwGxlTyOsxz/e5mXvUSZZI= From: Stefan Klug To: libcamera-devel@lists.libcamera.org Cc: Stefan Klug , Paul Elder Subject: [PATCH v3 05/41] libcamera: delayed_controls: Add maxDelay() function Date: Mon, 14 Sep 2026 16:02:18 +0200 Message-ID: <20260914140309.3354666-6-stefan.klug@ideasonboard.com> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260914140309.3354666-1-stefan.klug@ideasonboard.com> References: <20260914140309.3354666-1-stefan.klug@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 maxDelay() function to be able to query the maximum delay of the sensor. Signed-off-by: Stefan Klug Reviewed-by: Paul Elder --- Changes in v2: - Collected tag --- include/libcamera/internal/delayed_controls.h | 2 ++ src/libcamera/delayed_controls.cpp | 7 +++++++ 2 files changed, 9 insertions(+) diff --git a/include/libcamera/internal/delayed_controls.h b/include/libcamera/internal/delayed_controls.h index c650e672d964..3182ebddd1fa 100644 --- a/include/libcamera/internal/delayed_controls.h +++ b/include/libcamera/internal/delayed_controls.h @@ -35,6 +35,8 @@ public: bool push(uint32_t sequence, const ControlList &controls); ControlList get(uint32_t sequence); + uint32_t maxDelay() const { return maxDelay_; } + void applyControls(uint32_t sequence); private: diff --git a/src/libcamera/delayed_controls.cpp b/src/libcamera/delayed_controls.cpp index 7e3a72e2cb1d..1f4fa6974bde 100644 --- a/src/libcamera/delayed_controls.cpp +++ b/src/libcamera/delayed_controls.cpp @@ -257,6 +257,13 @@ ControlList DelayedControls::get(uint32_t sequence) return out; } +/** + * \fn DelayedControls::maxDelay() + * \brief Get the maximum delay of the sensor + * + * \return The maximum delay of the sensor + */ + /** * \brief Inform DelayedControls of the start of a new frame * \param[in] sequence Sequence number of the frame that started