From patchwork Fri Apr 12 09:16:57 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paul Elder X-Patchwork-Id: 19864 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 D1844C3213 for ; Fri, 12 Apr 2024 09:17:15 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 22D5D63360; Fri, 12 Apr 2024 11:17:15 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (1024-bit key; unprotected) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="morOXje5"; dkim-atps=neutral Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 2FA766334D for ; Fri, 12 Apr 2024 11:17:13 +0200 (CEST) Received: from pyrite.hamster-moth.ts.net (h175-177-049-156.catv02.itscom.jp [175.177.49.156]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 9B036A68; Fri, 12 Apr 2024 11:16:28 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1712913389; bh=Lkf1zU+2tV5JYRuq1tWyy4OMi37mJGi1EOvIFz+4LiY=; h=From:To:Cc:Subject:Date:From; b=morOXje5gJ5DLv2E8ftj76Y11jwexCYbgZ9GGENG44K2BetAYlE/Zh+sl5jblapDy FPCIZ6mOHJPnYKJolzYvTBr046NgSOzYQfwgIXfuH7cz0ncHNfmn4uWYl5d9T59iKw ZkVSicUWqMO6YRH2J+4io3QsCVTtOUf0xvdvRJgY= From: Paul Elder To: libcamera-devel@lists.libcamera.org Cc: Paul Elder Subject: [PATCH 0/3] ipa: rkisp1: Add lux estimation Date: Fri, 12 Apr 2024 18:16:57 +0900 Message-Id: <20240412091700.1817754-1-paul.elder@ideasonboard.com> X-Mailer: git-send-email 2.39.2 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 adds a lux algorithm module to libipa and rkisp1. It is modeled/copied from Raspberry Pi's, and estimates the lux level of the image. This is used (so far only) by agc. As there is no tuning support yet, this won't run (as in, you'll get "missing tuning parameter" errors) and won't be merged until tuning support is in so I'm just sending this in early for review. Paul Elder (3): ipa: libipa: Add Lux helper ipa: rkisp1: Add Lux algorithm module ipa: rkisp1: agc: Plumb lux src/ipa/libipa/lux.cpp | 119 ++++++++++++++++++++++++++ src/ipa/libipa/lux.h | 45 ++++++++++ src/ipa/libipa/meson.build | 2 + src/ipa/rkisp1/algorithms/agc.cpp | 3 +- src/ipa/rkisp1/algorithms/lux.cpp | 76 ++++++++++++++++ src/ipa/rkisp1/algorithms/lux.h | 39 +++++++++ src/ipa/rkisp1/algorithms/meson.build | 1 + src/ipa/rkisp1/ipa_context.h | 1 + 8 files changed, 284 insertions(+), 2 deletions(-) create mode 100644 src/ipa/libipa/lux.cpp create mode 100644 src/ipa/libipa/lux.h create mode 100644 src/ipa/rkisp1/algorithms/lux.cpp create mode 100644 src/ipa/rkisp1/algorithms/lux.h