From patchwork Wed May 29 19:32:27 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paul Elder X-Patchwork-Id: 20131 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 8CA75BD87C for ; Wed, 29 May 2024 19:32:46 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 56BCA634BD; Wed, 29 May 2024 21:32:45 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (1024-bit key; unprotected) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="tjtpmW/w"; dkim-atps=neutral Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 28ADA634AF for ; Wed, 29 May 2024 21:32:43 +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 5C9D1149B; Wed, 29 May 2024 21:32:38 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1717011159; bh=mWVT5/K/5XbQRDFne00GgvrXNmLbg1FIQBhgOzA/FM4=; h=From:To:Cc:Subject:Date:From; b=tjtpmW/wXrSP1IbOvQauczX2fctYqkd1LWk8do1bL0r1pAgVJ7cFrzKvl1cCc34cu RanffmZo7YmjpUp5zVu3j9yQW4gN0GEaBsQ8oKReZrGSUuGkRTAtP/iXR1am81HJKN NPd10RAL2fp0wcHat5Xy91Y1sxpR1BbUtlO4nfg4= From: Paul Elder To: libcamera-devel@lists.libcamera.org Cc: Paul Elder Subject: [PATCH v4 0/3] ipa: rkisp1: Improve AGC (plumbing) Date: Thu, 30 May 2024 04:32:27 +0900 Message-Id: <20240529193230.833001-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 v3 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. 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. 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 | 32 ++++-- src/ipa/libipa/agc_mean_luminance.h | 7 +- src/ipa/rkisp1/algorithms/agc.cpp | 146 +++++++++++++++++++++++++- 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, 200 insertions(+), 18 deletions(-)