From patchwork Tue Feb 23 16:40:38 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jean-Michel Hautbois X-Patchwork-Id: 11366 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 A0A85BD1F1 for ; Tue, 23 Feb 2021 16:40:46 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id F091668A3B; Tue, 23 Feb 2021 17:40:45 +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="NJPJV186"; dkim-atps=neutral Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id A695B689DD for ; Tue, 23 Feb 2021 17:40:43 +0100 (CET) Received: from localhost.localdomain (unknown [IPv6:2a01:e0a:169:7140:d7c9:eb3:c460:c24a]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 3121E58E; Tue, 23 Feb 2021 17:40:43 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1614098443; bh=ggMjxDMsGkf9DtgTp2noNv6g3UtpPIaFjPg1JLmmZjw=; h=From:To:Cc:Subject:Date:From; b=NJPJV186WdaiW0XJnGXsEb5GiRD0WSmr5LsFysRmpcG/mKtKgVY8/Og/osWf5QkSY ftUfdUUl66wtcaAY5yaDZlnR3FUQy8AUa4l1lCVa4QRSbBQQnaN0Ymw1uFbDfyEtC7 GiY/x9+EVhdI3EaXL31sPjStoohXuTMsPW9Wprmo= From: Jean-Michel Hautbois To: libcamera-devel@lists.libcamera.org Date: Tue, 23 Feb 2021 17:40:38 +0100 Message-Id: <20210223164041.49932-1-jeanmichel.hautbois@ideasonboard.com> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 Subject: [libcamera-devel] [RFC PATCH v2 0/3] Implement IPA algorithms and demo with IPU3 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 RFC is really meant to start discussions. It demonstrates on IPU3 a conjunction of automatic exposure (AGC) and automatic white balance (AWB). The skeleton are extracted from RPi controller and probably subject to modifications and discussions : - are the mandatory methods really those ? - how to exchange data between algorithms ? - metadata like RPi? - IPC ? - public methods? - controller API ? - is the controller needed at all ? The implementation in IPU3 is tested on SGo2. It is not perfect but shows a really better behaviour than default ;-). In this v2: - splits AWB and AEC/AGC algorithms. - remove unused Controller - remove unused variables/methods - rename most of the class members Jean-Michel Hautbois (3): WIP: ipa: Add a common interface for algorithm objects WIP: ipa: ipu3: Add support for IPU3 AWB algorithm WIP: ipa: ipu3: Add support for IPU3 AEC/AGC algorithm src/ipa/ipu3/ipu3.cpp | 34 ++++-- src/ipa/ipu3/ipu3_agc.cpp | 171 ++++++++++++++++++++++++++++++ src/ipa/ipu3/ipu3_agc.h | 62 +++++++++++ src/ipa/ipu3/ipu3_awb.cpp | 199 +++++++++++++++++++++++++++++++++++ src/ipa/ipu3/ipu3_awb.h | 47 +++++++++ src/ipa/ipu3/meson.build | 8 +- src/ipa/libipa/algorithm.cpp | 25 +++++ src/ipa/libipa/algorithm.h | 29 +++++ src/ipa/libipa/meson.build | 4 +- 9 files changed, 569 insertions(+), 10 deletions(-) create mode 100644 src/ipa/ipu3/ipu3_agc.cpp create mode 100644 src/ipa/ipu3/ipu3_agc.h create mode 100644 src/ipa/ipu3/ipu3_awb.cpp create mode 100644 src/ipa/ipu3/ipu3_awb.h create mode 100644 src/ipa/libipa/algorithm.cpp create mode 100644 src/ipa/libipa/algorithm.h