From patchwork Mon Dec 16 09:49:31 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paul Elder X-Patchwork-Id: 22340 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 B9CC3C32F9 for ; Mon, 16 Dec 2024 09:49:45 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 049CB67F46; Mon, 16 Dec 2024 10:49:45 +0100 (CET) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (1024-bit key; unprotected) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="ooILGdtq"; 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 03B6360136 for ; Mon, 16 Dec 2024 10:49:43 +0100 (CET) Received: from neptunite.flets-east.jp (unknown [IPv6:2404:7a81:160:2100:c11a:e451:861f:3d32]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 1843413C; Mon, 16 Dec 2024 10:49:05 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1734342547; bh=xUhEqTWJInucchcZNR3RE1/Sk2uY4bKJg9RRX9a8U9s=; h=From:To:Cc:Subject:Date:From; b=ooILGdtqzUmOIpbJ4V+EqAnjbp2EpywKqJv3Xqsb5Lxb3BbIcz1C5dKkIPzE6Q4m1 FAdhlVWh1p9nWjZHH/Vxp9iKVe3+e85vvfWEbQXZa0s4Oec7eUlh0YSFug66YmwDJ0 x16qWz57hxj50OgFnvtcXtIZZrWPNsfvxmi/YNfs= From: Paul Elder To: libcamera-devel@lists.libcamera.org, laurent.pinchart@ideasonboard.com, stefan.klug@ideasonboard.com Cc: Paul Elder Subject: [PATCH v2 0/2] ipa: rkisp1: Add lux estimation Date: Mon, 16 Dec 2024 18:49:31 +0900 Message-Id: <20241216094933.198027-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. Paul Elder (2): ipa: libipa: Add Lux helper ipa: rkisp1: Add Lux algorithm module src/ipa/libipa/lux.cpp | 183 ++++++++++++++++++++++++++ src/ipa/libipa/lux.h | 48 +++++++ src/ipa/libipa/meson.build | 2 + 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 + 7 files changed, 350 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