From patchwork Mon Sep 6 19:47:51 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jean-Michel Hautbois X-Patchwork-Id: 13633 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 44A0ABDC71 for ; Mon, 6 Sep 2021 19:48:02 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 8619C6916A; Mon, 6 Sep 2021 21:48:01 +0200 (CEST) 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="dYvPtjHP"; 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 7543560137 for ; Mon, 6 Sep 2021 21:47:59 +0200 (CEST) Received: from tatooine.ideasonboard.com (unknown [IPv6:2a01:e0a:169:7140:eb18:8e30:9b7:f998]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id EF67FDA1; Mon, 6 Sep 2021 21:47:58 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1630957679; bh=RV7x/DHxEjBwM7SXL+OR3gN+fj0FjT10BbVR+hFzL+8=; h=From:To:Cc:Subject:Date:From; b=dYvPtjHPDF/rDKt1Sxd5+sgfPRR989rZhwJ/X+OtB4cI5xjGxxALWWxv2gpSDTdCA Aoda8PXKGnZg2nTQ9XlkHi4IapdyWQF5/OV1ZrnB7HIW8YXrqdo8180ryPE9BNcFnf zpukse1SSRTC/zmqgpsRVvrMofaH/0HvXUQvbP8A= From: Jean-Michel Hautbois To: libcamera-devel@lists.libcamera.org Date: Mon, 6 Sep 2021 21:47:51 +0200 Message-Id: <20210906194755.106953-1-jeanmichel.hautbois@ideasonboard.com> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH v3 0/4] Move and improve AWB structures 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" On the path towards a cleaner and more documented IPA for the IPU3, this series changes the structures used by the AWB algorithm. Patch 1/4 moves the AWB structures to be able to use those from the ipa::ipu3::algorithms namespace (by AGC at least). Patch 2/4 renames the stats region structure to make it clear it is an accumulator structure. Patch 3/4 is improving the Accumulator structure to have the same layout as the IPAFrameContext::awb structure. Patch 4/4 is removing the IPU3AwbCell from libcamera, and uses its definition directly from the kernel header. Jean-Michel Hautbois (4): ipa: ipu3: Move the AWB stats structures ipa: ipu3: Rename IspStatsRegion to Accumulator ipa: ipu3: Change Accumulator structure layout ipa: ipu3: Replace ipa::ipu3::algorithms::Ipu3AwbCell include/linux/intel-ipu3.h | 38 +++++++++++++++----- src/ipa/ipu3/algorithms/agc.cpp | 7 ++-- src/ipa/ipu3/algorithms/awb.cpp | 61 ++++++++++++++++++--------------- src/ipa/ipu3/algorithms/awb.h | 30 ++++++---------- 4 files changed, 78 insertions(+), 58 deletions(-)