From patchwork Mon Jan 3 17:09:52 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Umang Jain X-Patchwork-Id: 15234 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 B2899BE080 for ; Mon, 3 Jan 2022 17:10:07 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id B560C604F6; Mon, 3 Jan 2022 18:10:06 +0100 (CET) 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="PbzsBv66"; 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 08C3A604F4 for ; Mon, 3 Jan 2022 18:10:05 +0100 (CET) Received: from perceval.ideasonboard.com (unknown [IPv6:2401:4900:1f3e:193e:9a73:f356:8c6a:a1aa]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id A4475CC; Mon, 3 Jan 2022 18:10:03 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1641229804; bh=HsJdoGZD2DhhA+Ap/NY2vvYMa/9h4hKtZ40IGk4J/Dk=; h=From:To:Cc:Subject:Date:From; b=PbzsBv66PAmd9j7QdQsfRiqbYm02R0VdcAPAkIStLBD4CEGYFt7uG00NqgQjHzk0D KlZnc57gI1XGqfEoFRh+sCWAb+DngXhpwDL5pKeR9ldlONZeu/0MMMvw/ZnPu4ohxR 55v08spy31VloIfd99vpbAShevPPT+fPJ/Lk5fo8= From: Umang Jain To: libcamera-devel@lists.libcamera.org Date: Mon, 3 Jan 2022 22:39:52 +0530 Message-Id: <20220103170956.323025-1-umang.jain@ideasonboard.com> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH 0/4] IPAIPU3 - Rework interface and introduce context 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 patchset has been grown out of: [PATCH v2] ipa: ipu3: Add a IPAFrameContext queue and now consolidates that change here itself. The main changes are : - Remove event passing b/w PH <> IPA and use dedicated functions 2/4 - Introduce a queue-lookup for preserved frame-contexts 4/4 Patch 3/4 has been manually cherry-picked by JM's earlier work. Series has been CTS-verified on LIMITED level. No regressions seen. Jean-Michel Hautbois (1): ipa: ipu3: Mark the beginning and end of a frame Umang Jain (3): libipa: algorithm: Pass frame number to prepare() and process() ipa: ipu3: Replace event-based operations with dedicated functions ipa: ipu3: Add a IPAFrameContext queue include/libcamera/ipa/ipu3.mojom | 36 +---- src/ipa/ipu3/algorithms/agc.cpp | 21 +-- src/ipa/ipu3/algorithms/agc.h | 4 +- src/ipa/ipu3/algorithms/awb.cpp | 22 +-- src/ipa/ipu3/algorithms/awb.h | 4 +- src/ipa/ipu3/algorithms/blc.cpp | 6 +- src/ipa/ipu3/algorithms/blc.h | 2 +- src/ipa/ipu3/algorithms/tone_mapping.cpp | 18 ++- src/ipa/ipu3/algorithms/tone_mapping.h | 4 +- src/ipa/ipu3/ipa_context.cpp | 57 +++++++- src/ipa/ipu3/ipa_context.h | 13 +- src/ipa/ipu3/ipu3-ipa-design-guide.rst | 19 ++- src/ipa/ipu3/ipu3.cpp | 179 ++++++++++++++--------- src/ipa/libipa/algorithm.cpp | 2 + src/ipa/libipa/algorithm.h | 6 +- src/libcamera/pipeline/ipu3/ipu3.cpp | 123 +++++++--------- 16 files changed, 298 insertions(+), 218 deletions(-)