From patchwork Wed Oct 16 17:03:41 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jacopo Mondi X-Patchwork-Id: 21644 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 89B2AC32FA for ; Wed, 16 Oct 2024 17:04:02 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 9A25865385; Wed, 16 Oct 2024 19:04:00 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (1024-bit key; unprotected) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="BH1m0EFa"; 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 5BCBF6537E for ; Wed, 16 Oct 2024 19:03:58 +0200 (CEST) Received: from ideasonboard.com (unknown [5.179.178.254]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 2BEA3A57; Wed, 16 Oct 2024 19:02:15 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1729098135; bh=2KNyumoK5uBqhoETs8KH0xZVn7zbrP08UGP3kaCrauU=; h=From:To:Cc:Subject:Date:From; b=BH1m0EFa4tJ2+yfk1wSumUimd9e4cPxHwnllFTT9VaqV29vd0J5JJ/+8rpmH9Ux6W bg4rD2gk+eWDqKzo6DAzGX5MuC9pYTgQh2hEYuNMV1G8Kgos1u9lETyVnm5EoWJMfO MYG435+5+PwpKEE6qK+VRh8r9Eu7mv8NrF5nuuh8= From: Jacopo Mondi To: libcamera-devel@lists.libcamera.org Cc: Jacopo Mondi , Paul Elder Subject: [PATCH 0/4] libipa: Initialize FrameContext with ActiveState Date: Wed, 16 Oct 2024 19:03:41 +0200 Message-ID: <20241016170348.715993-1-jacopo.mondi@ideasonboard.com> X-Mailer: git-send-email 2.47.0 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 allows IPA modules to override the FrameContext initialization to allow them to be default-initialized with the most recent algorithms' state provided in ActiveState. My use case is explained in detail in commit message 4/4 but I wonder if this is useful for Paul's algorithm seeding work as well. Jacopo Mondi (4): libipa: FrameContext: Move init() to FrameContext libipa: FCQueue: Make sure FrameContext#0 is initialized libipa: FCQueue: Initialize FrameContext with activeState ipa: rkisp1: Initialize FrameContext.agc.meteringMode src/ipa/ipu3/ipa_context.h | 2 +- src/ipa/ipu3/ipu3.cpp | 9 ++++-- src/ipa/libipa/fc_queue.cpp | 20 +++++++++++-- src/ipa/libipa/fc_queue.h | 48 ++++++++++++++++++++++++------- src/ipa/rkisp1/algorithms/agc.cpp | 2 ++ src/ipa/rkisp1/ipa_context.cpp | 11 +++++++ src/ipa/rkisp1/ipa_context.h | 5 +++- src/ipa/rkisp1/rkisp1.cpp | 12 +++++--- src/ipa/simple/ipa_context.h | 2 +- src/ipa/simple/soft_simple.cpp | 9 ++++-- 10 files changed, 93 insertions(+), 27 deletions(-) Reviewed-by: Paul Elder --- 2.47.0