From patchwork Fri May 6 09:53:05 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Umang Jain X-Patchwork-Id: 15808 X-Patchwork-Delegate: umang.jain@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 DE669C3256 for ; Fri, 6 May 2022 09:53:24 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 95B0A65649; Fri, 6 May 2022 11:53:24 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=libcamera.org; s=mail; t=1651830804; bh=AHE+nswpanWOjh8KZ4PctKywXT3tnbYVn08WqG0emfU=; 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=BnqE4RBfH24qcw25RLg/EKTqvD4QkU/N31xjB6BZkm1RGRxKOhucWjoBSGdDMxpoN eENRTwGszWLXvekb0JJAsng94OXO9jVzsBBmRhRt8x8lfuhvaXqTDWdjIzB/hP4EIy fHeJXdqXMqXwQT+uZijp9G9E+ScslXF69xMSn6ahDWYP8J4i2PcQr8fSjvvf+JgUKv Fvxa95FD1necGIywtKurtKlcSVA81GwiFmgVNd5UhIw1nBwbyZduTwyt4x9Q96v+BD 5J8BvOgyrbsMsZXLZpJTsWTSi7L5v51eA/Nt5u6X7Nh7xdL6EVSTOVjT0GW1CRburt Ucva+nQgcX8HA== Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 7B69660421 for ; Fri, 6 May 2022 11:53:23 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (1024-bit key; unprotected) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="oUiC77/G"; dkim-atps=neutral Received: from perceval.ideasonboard.com (unknown [103.251.226.91]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 1C6B4487; Fri, 6 May 2022 11:53:21 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1651830803; bh=AHE+nswpanWOjh8KZ4PctKywXT3tnbYVn08WqG0emfU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=oUiC77/GlcA49r9PnM6Di9jgg3cmUncdDxPV5953/1mCQVTLMr9wn7+neMtekl71E TbK43C7y79+VSuc3koW1BCJXKoVwWtOvOb4xR85E2A/4ws1uu+qvY4eS6tgXGJ6sKr B7vBLTSmNP7iyNEPeemBSjSnHzDtToQCjExwa08c= To: libcamera-devel@lists.libcamera.org Date: Fri, 6 May 2022 15:23:05 +0530 Message-Id: <20220506095307.78370-2-umang.jain@ideasonboard.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20220506095307.78370-1-umang.jain@ideasonboard.com> References: <20220506095307.78370-1-umang.jain@ideasonboard.com> MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH v2 1/3] ipa: ipu3: Add a frameCompleted() helper 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: Umang Jain via libcamera-devel From: Umang Jain Reply-To: Umang Jain Errors-To: libcamera-devel-bounces@lists.libcamera.org Sender: "libcamera-devel" IPAIPU3::frameCompleted helper will consolidate all the book-keeping required by the IPA when it has finished processing a particular frame. Signed-off-by: Umang Jain --- src/ipa/ipu3/ipu3.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/ipa/ipu3/ipu3.cpp b/src/ipa/ipu3/ipu3.cpp index dd6cfd79..061dc9f5 100644 --- a/src/ipa/ipu3/ipu3.cpp +++ b/src/ipa/ipu3/ipu3.cpp @@ -161,6 +161,8 @@ private: void setControls(unsigned int frame); void calculateBdsGrid(const Size &bdsOutputSize); + void frameCompleted(const uint32_t frame); + std::map buffers_; ControlInfoMap sensorCtrls_; @@ -505,6 +507,10 @@ void IPAIPU3::unmapBuffers(const std::vector &ids) } } +void IPAIPU3::frameCompleted([[maybe_unused]] const uint32_t frame) +{ +} + /** * \brief Fill and return a buffer with ISP processing parameters for a frame * \param[in] frame The frame number @@ -598,6 +604,8 @@ void IPAIPU3::processStatsBuffer(const uint32_t frame, */ metadataReady.emit(frame, ctrls); + + frameCompleted(frame); } /**