From patchwork Tue Nov 16 16:26:10 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laurent Pinchart X-Patchwork-Id: 14616 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 5E99ABDB1C for ; Tue, 16 Nov 2021 16:26:46 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 6E4A4603C9; Tue, 16 Nov 2021 17:26:45 +0100 (CET) Authentication-Results: lancelot.ideasonboard.com; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="eGaBJzXy"; 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 B30AE60120 for ; Tue, 16 Nov 2021 17:26:42 +0100 (CET) Received: from localhost.localdomain (117.145-247-81.adsl-dyn.isp.belgacom.be [81.247.145.117]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 4A2EEE7 for ; Tue, 16 Nov 2021 17:26:42 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1637080002; bh=fdrzz7JltGLK7HfhMJFnMT5n18X0RI4yO0Aa2iaGt4g=; h=From:To:Subject:Date:From; b=eGaBJzXyfW2sQnKIUcbmwi8s8+9Qrqk0wJG+R2/ncgUC3qGRyOfCBT1PKxFeeaeG+ 6skqjOEz0wZCFERm2VOp+EqVRUJq/lXZljFBCZka/aml/iqPHeGVV17Z/Na3Qjbw1p 6H6FmPwWwqWwBReuJ334ol8sjh78lEcoHw12b4oE= From: Laurent Pinchart To: libcamera-devel@lists.libcamera.org Date: Tue, 16 Nov 2021 18:26:10 +0200 Message-Id: <20211116162615.27777-1-laurent.pinchart@ideasonboard.com> X-Mailer: git-send-email 2.32.0 MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH 0/5] ipa: ipu3: agc: Misc improvements 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" Hello, Here's a set of assorted patches for the IPU3 IPA AGC, triggered by the series that was recently integrated. The first four patches are refactoring and small cleanups (including variable naming and documentation improvements), and the last patch fixes what I believe to be a bug. None of this has been tested on a device as I won't have access to hardware for two more days. Laurent Pinchart (5): ipa: ipu3: agc: Drop kMaxLuminance constant ipa: ipu3: agc: Standardize vocabulary on "relative luminance" ipa: ipu3: agc: Rename currentYGain ipa: ipu3: agc: Return the inter-quantile mean from measureBrightness() ipa: ipu3: agc: Saturate the averages when computing relative luminance src/ipa/ipu3/algorithms/agc.cpp | 136 +++++++++++++++++--------------- src/ipa/ipu3/algorithms/agc.h | 17 ++-- 2 files changed, 82 insertions(+), 71 deletions(-) base-commit: d9a2a1f703273a28b001dee40fddd378bba7a1b6