From patchwork Mon Oct 26 13:20:23 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: 28618 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 422C3C324C for ; Mon, 26 Oct 2026 13:20:57 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 01C6D68FDD; Mon, 26 Oct 2026 14:20:51 +0100 (CET) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (1024-bit key; unprotected) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="P7UNJI1f"; 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 95B0A68FD5 for ; Mon, 26 Oct 2026 14:20:48 +0100 (CET) Received: from pb-laptop.local (185.221.143.99.nat.pool.zt.hu [185.221.143.99]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 6DF0E268 for ; Mon, 26 Oct 2026 14:18:37 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1793020717; bh=AjmMdgyQ8Hryg4uIiv3IseyyJoJCwSuEB2er3sbatQA=; h=From:To:Subject:Date:In-Reply-To:References:From; b=P7UNJI1f4WkgvDafTz4HLqOuJ8ijBjWWH9vjtiyAnxqsRkO10vau+efa9R+pWlowS cA4oQ9iL6GL9+qlc23ND0pJqaByIL7typ1syu/bZ/j1xZuNjWO+wayHNB3iiPZ55+F Ky5dtfDFo343hjPrTAsAZnn2JABKthO+yg/yQASc= From: =?utf-8?q?Barnab=C3=A1s_P=C5=91cze?= To: libcamera-devel@lists.libcamera.org Subject: [RFC PATCH v4 01/23] libcamera: controls: AeExposureMode: Add ExposureMaximize Date: Mon, 26 Oct 2026 14:20:23 +0100 Message-ID: <20261026132045.269007-2-barnabas.pocze@ideasonboard.com> X-Mailer: git-send-email 2.56.0 In-Reply-To: <20261026132045.269007-1-barnabas.pocze@ideasonboard.com> References: <20261026132045.269007-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 new exposure mode that is intended to make the full capabilities of a sensor available for applications, potentially allowing multi-second exposure times and maximal analogue gain. Signed-off-by: Barnabás Pőcze --- src/libcamera/control_ids_core.yaml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/src/libcamera/control_ids_core.yaml b/src/libcamera/control_ids_core.yaml index 89991d03d7..acd8ffd85a 100644 --- a/src/libcamera/control_ids_core.yaml +++ b/src/libcamera/control_ids_core.yaml @@ -188,6 +188,25 @@ controls: - name: ExposureCustom value: 3 description: Custom exposure mode. + - name: ExposureMaximize + value: 4 + description: | + Exposure mode allowing very large exposure times and gains. + + This mode is intended to make the full capabilities of the sensor + available. In practice this allows multi-second exposures and + maximum available analogue gain. In contrast to other modes, + it is generally expected that the exposure time is maximized first, + and only then is gain used to achieve the target exposure. Note, + that this mode can be customized in tuning files, thus the behaviour + might differ slightly. + + Such behaviour can be useful for mostly static scenes where the + lighting changes drastically over a period of time (e.g. capturing + the sky 24 hours a day). + + Be aware that FrameDurationLimits will always apply, potentially reducing + the maximum achievable exposure time. - ExposureValue: type: float