From patchwork Thu Jun 11 01:17:16 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laurent Pinchart X-Patchwork-Id: 26865 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 56393C328C for ; Thu, 11 Jun 2026 01:17:26 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 6470461F0B; Thu, 11 Jun 2026 03:17:25 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (1024-bit key; unprotected) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="qS9wi75m"; dkim-atps=neutral Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id DF5356139A for ; Thu, 11 Jun 2026 03:17:23 +0200 (CEST) Received: from killaraus.ideasonboard.com (2001-14ba-70f3-e800--a06.rev.dnainternet.fi [IPv6:2001:14ba:70f3:e800::a06]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 3DF21D0 for ; Thu, 11 Jun 2026 03:16:54 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1781140614; bh=4JlLac1DnljZmRK6e/OVBjHyJIkcOunvT/oXMjDF36A=; h=From:To:Subject:Date:From; b=qS9wi75mU5NFtYv6trlAGYi4cP8YSZ8SJW3pTKdDboc5PAif4OHwGWdjCRIlSlV2S ZhNsh9Q4Eoi+2MnHRvy99yfEbryBDr0x6TE/CRnYy7uZgkNj4nb9v5oRNoqrMq32iN c5G0xP9T66AfQ7TIxO2LdeiDLFAfLt7eRxWFf/xk= From: Laurent Pinchart To: libcamera-devel@lists.libcamera.org Subject: [PATCH 0/6] libcamera: Drop legacy mentions of YAML Date: Thu, 11 Jun 2026 04:17:16 +0300 Message-ID: <20260611011722.1767689-1-laurent.pinchart@ideasonboard.com> X-Mailer: git-send-email 2.53.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" Hello, libcamera uses YAML configuration and tuning files. This used to be apparent through the whole code base as the files were parsed into a tree of YamlObject instances. The YamlObject class has now been turned into a more abstract ValueNode class, which isolates users of configuration and tuning data from the file format. Still, many locations in the code still mention YAML. This series improves the decoupling of the data users from the file format by removing most of those mentions of YAML, in code and documentation. The first four patches address the code. Patch 1/6 drops an unused function declaration, patches 2/6 and 3/6 rename the data validation functions for the Matrix and Vector classes, and patch 4/6 renames variables. The last two patches address documentation, comments and log messages. With this series apply, only one lgeacy usage of YAML remains: the Interpolator::readYaml() function. I wanted to replace that with the ValueNode::Accessor API, but that turned out to be difficult and will require more work. Laurent Pinchart (6): ipa: rkisp1: ccm: Drop unused parseYaml() function declaration libcamera: matrix: Rename data validation function libcamera: vector: Rename data validation function libcamera: Drop 'yaml' prefix from ValueNode variables libcamera: global_configuration: Drop "YAML" from function documentation libcamera: Replace last mentions of YAML include/libcamera/internal/matrix.h | 6 +-- include/libcamera/internal/vector.h | 6 +-- src/android/camera_hal_config.cpp | 6 +-- src/ipa/libipa/agc_mean_luminance.cpp | 12 ++--- src/ipa/libipa/awb.cpp | 6 +-- src/ipa/libipa/lux.cpp | 2 +- src/ipa/libipa/module.cpp | 10 ++-- src/ipa/libipa/module.h | 2 +- src/ipa/libipa/pwl.cpp | 2 +- src/ipa/mali-c55/algorithms/lsc.cpp | 15 +++--- src/ipa/rkisp1/algorithms/agc.cpp | 4 +- src/ipa/rkisp1/algorithms/ccm.h | 1 - src/ipa/rkisp1/algorithms/dpcc.cpp | 2 +- src/ipa/rkisp1/algorithms/lsc.cpp | 57 ++++++++++------------ src/ipa/rpi/controller/rpi/agc_channel.cpp | 4 +- src/libcamera/geometry.cpp | 2 +- src/libcamera/global_configuration.cpp | 6 +-- src/libcamera/matrix.cpp | 4 +- src/libcamera/vector.cpp | 4 +- 19 files changed, 70 insertions(+), 81 deletions(-) base-commit: 7175cce45a8074fea4ef5f803341e4ba320bd8fb