From patchwork Thu Jul 21 12:13:10 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kieran Bingham X-Patchwork-Id: 16724 X-Patchwork-Delegate: kieran.bingham@ideasonboard.com 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 52A5EC3274 for ; Thu, 21 Jul 2022 12:13:28 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id EBBBB63331; Thu, 21 Jul 2022 14:13:27 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=libcamera.org; s=mail; t=1658405608; bh=IiWy8sLuefx8n77tSE4lJXPzHFE5gucSi08EqBnmJFM=; h=To:Date:In-Reply-To:References:Subject:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To: From; b=GN6wZIB2/s7AjWoHaDJZ84qul8VPP/Ql7DUVYwcX2XUTZl1cYHgIwGTQC7PEdHKnl 9Z8BbdyeBQpCi8+iJF3GYnLWGAsTZyrDc/J/ob9TxA4gRgkaF9BB4QAboAWUM0snp6 B+CMoK7P1BdaMnvAXM+QUXdbJHFkhDD2dp0vN7Fd2P8sy8ht+TjOhiceMY4XbB9n9L 8NYKQYp/I1DM86/kMUpVKwetb54Lspkateb2rZ1itqboDI8aHwfAOwkaUIanp0YbvY tacePHUpzQFg3kMHRXUPZF3oWc1A8wf2vPbHd1pyQMS4DOUoofcH1JM6Cp/Uc4WEeP C/ycm7eAUmgvA== Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id DF86D63311 for ; Thu, 21 Jul 2022 14:13:16 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (1024-bit key; unprotected) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="e+hVOipS"; dkim-atps=neutral Received: from Monstersaurus.local (cpc89244-aztw30-2-0-cust3082.18-1.cable.virginm.net [86.31.172.11]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 74A49496; Thu, 21 Jul 2022 14:13:16 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1658405596; bh=IiWy8sLuefx8n77tSE4lJXPzHFE5gucSi08EqBnmJFM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=e+hVOipSQmnZfLe/ohLz/acV7iO6CJEPoIXjuvIilIYty+TrO+T7Ka1B89IZge+Ph MLZ/jwSca9wnYy/1LusHDZCfrCnijHCiccZl8MPt+4o+PWABB+BRVYXI/iK6Q6rQuF BsV/rbcH8WR5U2/WHpIR1RLNE3BuvbdLmmDQyXoM= To: libcamera devel Date: Thu, 21 Jul 2022 13:13:10 +0100 Message-Id: <20220721121310.1286862-13-kieran.bingham@ideasonboard.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220721121310.1286862-1-kieran.bingham@ideasonboard.com> References: <20220721121310.1286862-1-kieran.bingham@ideasonboard.com> MIME-Version: 1.0 Subject: [libcamera-devel] [RFC PATCH 12/12] ipa: ipu3: Transfer queueRequest() call to each algorithm 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: Kieran Bingham via libcamera-devel From: Kieran Bingham Reply-To: Kieran Bingham Errors-To: libcamera-devel-bounces@lists.libcamera.org Sender: "libcamera-devel" Implement the IPU3 queueRequest() function to allow each algorithm to process the user controls that it supports. Signed-off-by: Kieran Bingham --- src/ipa/ipu3/ipu3.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/ipa/ipu3/ipu3.cpp b/src/ipa/ipu3/ipu3.cpp index 4d7a54f8d1a5..ee28044fc40e 100644 --- a/src/ipa/ipu3/ipu3.cpp +++ b/src/ipa/ipu3/ipu3.cpp @@ -620,12 +620,10 @@ void IPAIPU3::processStatsBuffer(const uint32_t frame, */ void IPAIPU3::queueRequest(const uint32_t frame, const ControlList &controls) { - /* \todo Start processing for 'frame' based on 'controls'. */ IPU3FrameContext &frameContext = context_.frameContexts.initialise(frame); - /* \todo Implement queueRequest to each algorithm. */ - (void)frameContext; - (void)controls; + for (auto const &algo : algorithms_) + algo->queueRequest(context_, frame, frameContext, controls); } /**