From patchwork Thu May 9 17:55:52 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paul Elder X-Patchwork-Id: 20031 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 8346FC3226 for ; Thu, 9 May 2024 17:56:12 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 08F9B63460; Thu, 9 May 2024 19:56:11 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (1024-bit key; unprotected) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="s0p+ieG1"; 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 44B41633FA for ; Thu, 9 May 2024 19:56:09 +0200 (CEST) Received: from neptunite.hamster-moth.ts.net (h175-177-049-156.catv02.itscom.jp [175.177.49.156]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 71D7FCC8; Thu, 9 May 2024 19:56:04 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1715277365; bh=B5wGila7KUwbpmHStDjSJSkfWtLMVkOiM4YwEebyhtM=; h=From:To:Cc:Subject:Date:From; b=s0p+ieG1QK73inbPCsN/tP94j2pS3dTenCd98EBKw8n3JHX11H8BYEm9i3uWafYGB b7eK+q2VwsWhgyLDxtSOPzoMZQfg7Ep9wSA3l68reMx29yYNYT/26yZ1SEC9fdDG8M /vAj8PT9fJpUm5AzKvJfEdB8/HSb4YUe1Ny/qaus= From: Paul Elder To: libcamera-devel@lists.libcamera.org Cc: Paul Elder Subject: [PATCH v2 0/3] ipa: rkisp1: Improve AGC (plumbing) Date: Fri, 10 May 2024 02:55:52 +0900 Message-Id: <20240509175555.43121-1-paul.elder@ideasonboard.com> X-Mailer: git-send-email 2.39.2 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" This series depends on v2 of the series "ipa: Move Pwl from Raspberry Pi to libipa". This series adds support in the rkisp1 IPA for: - reading histogram weights (metering modes) from tuning file - expands luminance target from a scalar value to piecewise linear function, controlled by lux - plumbs controls for setting metering mode, exposure mode, constraint mode, and frame duration As of v2, defaults have been added such that the rkisp1 pipeline will no longer break with non-existent/erroneous tuning files. Paul Elder (3): ipa: rkisp1: agc: Read histogram weights from tuning file ipa: libipa: agc: Change luminance target to piecewise linear function ipa: rkisp1: agc: Plumb mode-selection and frame duration controls src/ipa/ipu3/algorithms/agc.cpp | 5 +- src/ipa/libipa/agc_mean_luminance.cpp | 31 ++++-- src/ipa/libipa/agc_mean_luminance.h | 7 +- src/ipa/rkisp1/algorithms/agc.cpp | 148 +++++++++++++++++++++++++- src/ipa/rkisp1/algorithms/agc.h | 6 ++ src/ipa/rkisp1/algorithms/algorithm.h | 2 + src/ipa/rkisp1/ipa_context.h | 10 +- src/ipa/rkisp1/rkisp1.cpp | 10 ++ 8 files changed, 201 insertions(+), 18 deletions(-)