[libcamera-devel,v5,0/3] Introduce YamlParser for YAML files
mbox series

Message ID 20220425144617.2549778-1-hanlinchen@chromium.org
Headers show
Series
  • Introduce YamlParser for YAML files
Related show

Message

Hanlin Chen April 25, 2022, 2:46 p.m. UTC
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