[0/6] libcamera: Drop legacy mentions of YAML
mbox series

Message ID 20260611011722.1767689-1-laurent.pinchart@ideasonboard.com
Headers show
Series
  • libcamera: Drop legacy mentions of YAML
Related show

Message

Laurent Pinchart June 11, 2026, 1:17 a.m. UTC
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