| Message ID | 20261109161246.513264-1-barnabas.pocze@ideasonboard.com |
|---|---|
| Headers | show
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 [92.243.16.209]) by patchwork.libcamera.org (Postfix) with ESMTPS id 1FE22C3304 for <parsemail@patchwork.libcamera.org>; Mon, 9 Nov 2026 16:12:54 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 632466A7D1; Mon, 9 Nov 2026 17:12:51 +0100 (CET) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (1024-bit key; unprotected) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="JymtP7Ty"; dkim-atps=neutral Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 9C3B7691DA for <libcamera-devel@lists.libcamera.org>; Mon, 9 Nov 2026 17:12:49 +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 CAA65C23 for <libcamera-devel@lists.libcamera.org>; Mon, 9 Nov 2026 17:10:27 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1794240627; bh=ipEAebsd/WzYs065SkmXI8xhswJ47gIPVR61WJICm7w=; h=From:To:Subject:Date:From; b=JymtP7Tys9fHc95pBRC0xrp+nfRUaSMLIItAAs6iymWJH4tzWyo5kCY9BUpKJhQkw vZlG7yCHRtkJ6z5WC+hoOKQVLdLjo4PHOgyI+kFpS7/FjZkHoezXopfXQb/kq55wVS Xr88nUMceOKDro0t2y65I0P631OG5iZCr3j6if/M= From: =?utf-8?q?Barnab=C3=A1s_P=C5=91cze?= <barnabas.pocze@ideasonboard.com> To: libcamera-devel@lists.libcamera.org Subject: [PATCH v8 00/18] ipa: libipa: agc: Take exposure margin into account Date: Mon, 9 Nov 2026 17:12:27 +0100 Message-ID: <20261109161246.513264-1-barnabas.pocze@ideasonboard.com> X-Mailer: git-send-email 2.56.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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>, <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>, <mailto:libcamera-devel-request@lists.libcamera.org?subject=subscribe> Errors-To: libcamera-devel-bounces@lists.libcamera.org Sender: "libcamera-devel" <libcamera-devel-bounces@lists.libcamera.org> |
| Series |
|
| Related |
show
|
The maximum available exposure depends on the frame duration, but this is not considered by the current agc implementation, it fixes the maximum exposure time based on whatever configuration was used to configure the algorithm. This means that in certain situations the full exposure range might not be used, even in dark scenes. This an eight attempt at adapting https://patchwork.libcamera.org/project/libcamera/list/?series=5590 on the current master branch. But now that the agc handling is largely unified, fewer changes are needed to make this work on every platform. So effectively only patch 7 is taken directly, but only the exposure margin introduction part of it. This was mainly tested on rkisp1+imx219, softisp+ov2740, rppx1+imx708. changes in v8: * keep parsing in agc_mean_luminance.cpp changes in v7: * drop "Maximize" * [2/22] add link to https://gitlab.freedesktop.org/camera/libcamera/-/work_items/373 * [6/22] keep `lastStageGain` but still restructure to avoid double clamp * drop "ipa: libipa: agc: Take parameters from active state for calculation" due to regression changes in v6: * rebase changes in v5: * [4/24] clarify that the stage gain only constrains the analogue gain * [6/24] adjust documentation as well * [6-7/24] split the moving of the tuning file parsing code * [10/24] avoid clamping the last stage params twice * [23/24] rename `hasExposureStages` -> `hasExposureModes` * [24/24] clamp manual exposure time when it is propagated to a frame and in `process()` changes in v4: * only add "maximize" exposure mode * it is "overridable" by the tuning file * only added implicitly if the tuning file has no stages * keep frame duration below 30 fps by default * keep frame duration above 15 fps by default if no stages are provided changes in v3: * last stage is hard limit * two new exposure modes: "maximize", "minimize" * no slower than 10 fps changes in v2: * report `FrameDurationLimits` in metadata * add exposure margin to more sensor helpers v7: https://patchwork.libcamera.org/cover/28798/ v6: https://patchwork.libcamera.org/cover/28735/ v5: https://patchwork.libcamera.org/cover/28666/ v4: https://patchwork.libcamera.org/cover/28617/ v3: https://patchwork.libcamera.org/cover/28367/ v2: https://patchwork.libcamera.org/cover/28367/ v1: https://patchwork.libcamera.org/cover/28111/ Barnabás Pőcze (17): ipa: libipa: exposure_mode_helper: Remove defaulted destructor ipa: libipa: exposure_mode_helper: Keep stage params together ipa: libipa: exposure_mode_helper: Remove limit getters ipa: libipa: agc_mean_luminance: Split tuning file parsing ipa: libipa: exposure_mode_helper: Consider last stage as hard-limit ipa: libipa: agc: Do not report auto controls if not available ipa: libipa: agc: Keep frame duration limits ordered ipa: libipa: agc: Retrieve `FrameDurationLimits` earlier ipa: libipa: agc: Report `FrameDurationLimits` ipa: libipa: agc: Calculate vblank and frame duration sooner ipa: libipa: agc: Better respect frame duration limits libcamera: pipeline: Set vblank on more platforms ipa: libipa: agc: Rework frame duration limit calculation ipa: libipa: agc: Move control info map setup ipa: libipa: agc: Do not run faster than 30fps by default ipa: libipa: agc: Do not run slower than 15fps by default ipa: libipa: agc: Take exposure margin into account Jacopo Mondi (1): ipa: camera_sensor_helper: Introduce exposure margin src/ipa/ipu3/algorithms/agc.cpp | 2 +- src/ipa/ipu3/ipu3.cpp | 3 +- src/ipa/libipa/agc.cpp | 311 +++++++++++-------- src/ipa/libipa/agc.h | 22 +- src/ipa/libipa/agc_mean_luminance.cpp | 220 +++++++------ src/ipa/libipa/agc_mean_luminance.h | 24 +- src/ipa/libipa/camera_sensor_helper.cpp | 68 ++++ src/ipa/libipa/camera_sensor_helper.h | 2 + src/ipa/libipa/exposure_mode_helper.cpp | 81 ++--- src/ipa/libipa/exposure_mode_helper.h | 18 +- src/ipa/mali-c55/algorithms/agc.cpp | 2 +- src/ipa/mali-c55/mali-c55.cpp | 3 +- src/ipa/rkisp1/algorithms/agc.cpp | 2 +- src/ipa/rkisp1/rkisp1.cpp | 4 +- src/ipa/softisp/algorithms/agc.cpp | 2 +- src/ipa/softisp/softisp.cpp | 3 +- src/libcamera/pipeline/ipu3/ipu3.cpp | 1 + src/libcamera/pipeline/mali-c55/mali-c55.cpp | 1 + src/libcamera/pipeline/simple/simple.cpp | 1 + 19 files changed, 459 insertions(+), 311 deletions(-) -- 2.56.0