From patchwork Wed Dec 18 07:45:59 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paul Elder X-Patchwork-Id: 22388 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 E0CD1C3301 for ; Wed, 18 Dec 2024 07:46:22 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 28C9F6807F; Wed, 18 Dec 2024 08:46:22 +0100 (CET) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (1024-bit key; unprotected) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="QZYKwcD2"; 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 87D8F61898 for ; Wed, 18 Dec 2024 08:46:20 +0100 (CET) Received: from neptunite.hamster-moth.ts.net (unknown [IPv6:2404:7a81:160:2100:6d4:c4ff:fe49:f0b3]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 3658F34D; Wed, 18 Dec 2024 08:45:40 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1734507942; bh=eQVIo4Dni+7oqTCsJQWB0kLxaXmPlrPZQLkAfIaNQCI=; h=From:To:Cc:Subject:Date:From; b=QZYKwcD29QID9sbBkeofaoYRTEsUSCyd9NtGFZ5Vp3R3o2YyyTvfp0JBWJxWKuHSo IfxwFLluKGGHrTkmUEzypAXG1ZBUpedA3mXRQKjq97ZKhK23qCiP04HARhNTc2mxPm aRBqpyq9vzo5AvVI2Zw4dWM4DekZgtjuCzF2t9f4= From: Paul Elder To: libcamera-devel@lists.libcamera.org, laurent.pinchart@ideasonboard.com, stefan.klug@ideasonboard.com Cc: Paul Elder Subject: [PATCH v3 0/2] ipa: rkisp1: Add lux estimation Date: Wed, 18 Dec 2024 16:45:59 +0900 Message-Id: <20241218074601.3552093-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. Originally this was meant only to be used by agc, and thus wasn't seen as required as it could just be built in to agc. However, there seems to now be demand for it for bayesian awb, so this series has been brought out of bitrot. v3 only has minor formatting (both text and code) fixes. Paul Elder (2): ipa: libipa: Add Lux helper ipa: rkisp1: Add Lux algorithm module src/ipa/libipa/lux.cpp | 181 ++++++++++++++++++++++++++ src/ipa/libipa/lux.h | 42 ++++++ src/ipa/libipa/meson.build | 2 + src/ipa/rkisp1/algorithms/lux.cpp | 80 ++++++++++++ src/ipa/rkisp1/algorithms/lux.h | 36 +++++ src/ipa/rkisp1/algorithms/meson.build | 1 + src/ipa/rkisp1/ipa_context.h | 4 + 7 files changed, 346 insertions(+) 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