From patchwork Wed Oct 19 20:56:11 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laurent Pinchart X-Patchwork-Id: 17640 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 BF85DC0DA4 for ; Wed, 19 Oct 2022 20:56:41 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 1D26E62E64; Wed, 19 Oct 2022 22:56:41 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=libcamera.org; s=mail; t=1666213001; bh=8bcQbGHuxd9SCxPpV4J/UwuEWrncWSLG3EnkBUGd1yM=; h=To:Date:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=gX2l2mkqaui5OkkB8fk8jWx8pCqdLOdokOhztNbwB4l/olRqJpDTNYuI4PHMUBfmU vHEB3fe8R0gB0TyX5qbtJzCgLDjvetoxcYIc2l9PiDTiVzy/WeII5MwcP0Fh9tA1LE WQ1LLfaeCkGSQerxUTd1gcX1Sl0GS/8NQUa/0J/IQSw2UUDZB0rf14Rsfwm7n/7lCd i9B/S87KpoQSNQtR7jNXtnos+93YPfDZILPIQalHieXXRB2CNCBx4AwaSAyPBJz+6T WDud3hNWPzB9C2dmHUbz6zBjYpZ7IM4hMH3V0443Lm9gHUX1RC8CMX/QVorGPmL1Z0 TDJX3s+/kwQ2Q== Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 2EE2162DFA for ; Wed, 19 Oct 2022 22:56:39 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (1024-bit key; unprotected) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="pPxU8QRN"; dkim-atps=neutral Received: from pendragon.ideasonboard.com (62-78-145-57.bb.dnainternet.fi [62.78.145.57]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 80DF0570 for ; Wed, 19 Oct 2022 22:56:38 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1666212998; bh=8bcQbGHuxd9SCxPpV4J/UwuEWrncWSLG3EnkBUGd1yM=; h=From:To:Subject:Date:From; b=pPxU8QRNPjqrp833s5QIeztRT/K9kGodCnp3Ks0JwfAAVpf3sR9TZlltUzXydDb0E zrlroabDL8n/8zsDSPyuEGUjBzGWI5U+OyR/s/i0yJHxh4ODFAhtEPRR/QhjFkg9np /kcqgaGzoWApu5qwClsCJGtPXu8Z4MSX5hqWIwkQ= To: libcamera-devel@lists.libcamera.org Date: Wed, 19 Oct 2022 23:56:11 +0300 Message-Id: <20221019205614.25751-1-laurent.pinchart@ideasonboard.com> X-Mailer: git-send-email 2.37.3 MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH v2 0/3] ipa: Fill metadata in individual algorithms 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: , X-Patchwork-Original-From: Laurent Pinchart via libcamera-devel From: Laurent Pinchart Reply-To: Laurent Pinchart Errors-To: libcamera-devel-bounces@lists.libcamera.org Sender: "libcamera-devel" Hello, This small patch series improves metadata reporting in IPA modules by making it possible for individual algorithms to report metadata, instead of relying on the top-level IPA module code to do so. Patch 1/3 extends the Algorithm::process() function to take a metadata contro list argument that algorithms should fill with metadata for the frame. Patch 2/3 updates the RkISP1 AGC and AWB algorithms to report their metadata, and patch 3/3 does the same for the IPU3 IPA module. Laurent Pinchart (3): ipa: Pass metadata to Algorithm::process() function ipa: rkisp1: Fill AGC and AWB metadata ipa: ipu3: Fill AGC and AWB metadata in algorithms src/ipa/ipu3/algorithms/af.cpp | 4 +++- src/ipa/ipu3/algorithms/af.h | 3 ++- src/ipa/ipu3/algorithms/agc.cpp | 18 +++++++++++++++++- src/ipa/ipu3/algorithms/agc.h | 3 ++- src/ipa/ipu3/algorithms/awb.cpp | 13 ++++++++++++- src/ipa/ipu3/algorithms/awb.h | 3 ++- src/ipa/ipu3/algorithms/tone_mapping.cpp | 4 +++- src/ipa/ipu3/algorithms/tone_mapping.h | 3 ++- src/ipa/ipu3/ipa_context.cpp | 3 +++ src/ipa/ipu3/ipa_context.h | 1 + src/ipa/ipu3/ipu3.cpp | 19 ++++--------------- src/ipa/libipa/algorithm.cpp | 5 +++-- src/ipa/libipa/algorithm.h | 3 ++- src/ipa/rkisp1/algorithms/agc.cpp | 17 ++++++++++++++++- src/ipa/rkisp1/algorithms/agc.h | 3 ++- src/ipa/rkisp1/algorithms/awb.cpp | 10 +++++++++- src/ipa/rkisp1/algorithms/awb.h | 5 +++-- src/ipa/rkisp1/ipa_context.cpp | 3 +++ src/ipa/rkisp1/ipa_context.h | 1 + src/ipa/rkisp1/rkisp1.cpp | 19 +++++-------------- 20 files changed, 95 insertions(+), 45 deletions(-) base-commit: 376adeb7b7e0b75f2fa90b890fe0203d1e268cdf