From patchwork Fri Jun 14 07:42:12 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paul Elder X-Patchwork-Id: 20309 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 BE0B9C3237 for ; Fri, 14 Jun 2024 07:42:27 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id B091C6548D; Fri, 14 Jun 2024 09:42:26 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (1024-bit key; unprotected) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="e/qaax7B"; 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 8FE7A65456 for ; Fri, 14 Jun 2024 09:42:25 +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 15B6010C4; Fri, 14 Jun 2024 09:42:08 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1718350930; bh=FPOT0w29rGWUYTzFceAwpibZZMZO6sFnWLqdAXAZdfY=; h=From:To:Cc:Subject:Date:From; b=e/qaax7BVIJnlzGdswO8bjBCjMGeKDnDMseeG9eftEvzR5RJKbfs64EN000y+fn2v PlFavBTPK1USvUzMT+F1fa+xcJFRf3h9JwqUNszMKYiA7mz/OBSfSRgGu2+b20qBhU bpJMqzefx+8IL7xVdHuuiS5ExklSl+slNOHT0MGA= From: Paul Elder To: libcamera-devel@lists.libcamera.org Cc: Paul Elder Subject: [PATCH v6 0/2] ipa: rkisp1: Improve AGC (plumbing) Date: Fri, 14 Jun 2024 16:42:12 +0900 Message-Id: <20240614074214.3600996-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 adds support in the rkisp1 IPA for: - reading histogram weights (metering modes) from tuning file - 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. v3 mainly adds support for both v10 and v12, and fixes a limits issue in when using the exposure mode helper. v4 only has minor changes. v5 only changes PointF to the typedefed version from Vector (see the dependent series for details). v6 removes the piecewise linear function-ization of the luminance target, and some more cleanups. Paul Elder (2): ipa: rkisp1: agc: Read histogram weights from tuning file ipa: rkisp1: agc: Plumb mode-selection and frame duration controls src/ipa/rkisp1/algorithms/agc.cpp | 170 ++++++++++++++++++++++++++++-- src/ipa/rkisp1/algorithms/agc.h | 6 ++ src/ipa/rkisp1/ipa_context.h | 12 ++- 3 files changed, 179 insertions(+), 9 deletions(-)