[libcamera-devel] [PATCH v5 0/3] Introduce YamlParser for YAML files

Han-Lin Chen hanlinchen at chromium.org
Mon Apr 25 16:46:14 CEST 2022


Hi,

Patch v5 including following changes:

1. Add unit test for YamlParser.
2. Remove the peek semantic for event and always consume next event
3. Remove assert for invalid operations. Change it to return an empty
object.
4. Resolving other comments.

Han-Lin Chen (3):
  libcamera: Introduce YamlParser as a helper to parse yaml files
  test: Add YamlParser test
  android: camera_hal_config: Use YamlParser to parse android HAL config

 README.rst                               |   4 +-
 include/libcamera/internal/meson.build   |   1 +
 include/libcamera/internal/yaml_parser.h |  87 +++
 src/android/camera_hal_config.cpp        | 334 +++--------
 src/android/meson.build                  |   1 -
 src/libcamera/meson.build                |   3 +
 src/libcamera/yaml_parser.cpp            | 679 +++++++++++++++++++++++
 test/meson.build                         |   1 +
 test/yaml-parser.cpp                     | 496 +++++++++++++++++
 9 files changed, 1343 insertions(+), 263 deletions(-)
 create mode 100644 include/libcamera/internal/yaml_parser.h
 create mode 100644 src/libcamera/yaml_parser.cpp
 create mode 100644 test/yaml-parser.cpp

-- 
2.36.0.rc2.479.g8af0fa9b8e-goog



More information about the libcamera-devel mailing list