From patchwork Mon Jul 1 14:38:23 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefan Klug X-Patchwork-Id: 20493 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 4BD71BEFBE for ; Mon, 1 Jul 2024 14:41:39 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 6FE7462E22; Mon, 1 Jul 2024 16:41:38 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (1024-bit key; unprotected) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="TA+2F99r"; dkim-atps=neutral Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id D4B07604C1 for ; Mon, 1 Jul 2024 16:41:36 +0200 (CEST) Received: from ideasonboard.com (unknown [IPv6:2a00:6020:448c:6c00:89b2:f6c7:b29b:4e5c]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id E4003289; Mon, 1 Jul 2024 16:41:09 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1719844870; bh=f3MDSj6MBB8QdlgbLFeltZZJsb9JgHVqTghE+DTBc1o=; h=From:To:Cc:Subject:Date:From; b=TA+2F99rILeLJRlWZyrBNC4nSz6Xm/DRGJEYRa21MfnprxuOev5GvvnO+HvZsknIz z6Pz65pYL+qw+NJiF89FDeffiM09DnMsF+Pnnukx+HKogWQ7cisbEFlPOmz38J+4I2 c+DqTJumcaE53Kwynv8cQ/lyFoyWya038po0eTzY= From: Stefan Klug To: libcamera-devel@lists.libcamera.org Cc: Stefan Klug Subject: [PATCH 0/5] ipa: Add black level to camera sensor helpers Date: Mon, 1 Jul 2024 16:38:23 +0200 Message-ID: <20240701144122.3418955-1-stefan.klug@ideasonboard.com> X-Mailer: git-send-email 2.43.0 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" For the tuning process, the sensor black level needs to be known. Many sensors have either a fixed black level, or the current sensor kernel driver sets a fixed value. It therefore makes sense to keep that information inside libcamera. When the need arises to be more flexible we can extend the sensor drivers to report black level information. This series adds black level support to the camera sensor helpers and the corresponding metadata to the rkisp1 ipa. My tuning series will be rebased on top of this one. Best regards, Stefan Stefan Klug (5): ipa: libipa: Add black levels to camera sensor helper ipa: rkisp1: Move camHelper into IPAContext ipa: rkisp1: blc: Query black levels from camera sensor helper ipa: rkisp1: blc: Report sensor black levels in metadata ipa: rkisp1: data: Update tuning files for imx219 and imx258 src/ipa/libipa/camera_sensor_helper.cpp | 18 ++++++++++ src/ipa/libipa/camera_sensor_helper.h | 6 ++++ src/ipa/rkisp1/algorithms/blc.cpp | 47 ++++++++++++++++++++++--- src/ipa/rkisp1/algorithms/blc.h | 5 ++- src/ipa/rkisp1/data/imx219.yaml | 4 --- src/ipa/rkisp1/data/imx258.yaml | 1 + src/ipa/rkisp1/data/uncalibrated.yaml | 1 + src/ipa/rkisp1/ipa_context.h | 4 +++ src/ipa/rkisp1/rkisp1.cpp | 26 +++++++------- 9 files changed, 89 insertions(+), 23 deletions(-)