libcamera: yaml_parser: Move Size handling to geometry.cpp

The YamlObject::Accessor structure is designed to extend the YamlObject
class with new getter and setter types without modifying
yaml_parser.cpp. This feature is used for various libcamera classes,
while standard C++ types are handled in yaml_parser.cpp.

The Size class is an outlier: it is a libcamera class, but is handled in
yaml_parser.cpp. Move it to geometry.cpp. Drop the std::vector<Size>
specialization as it is currently unused.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Barnabás Pőcze <barnabas.pocze@ideasonboard.com>
Reviewed-by: Isaac Scott <isaac.scott@ideasonboard.com>
This commit is contained in:
Laurent Pinchart
2025-10-19 02:42:35 +03:00
parent 2894f2c14b
commit bc0318e8c8
5 changed files with 33 additions and 24 deletions

View File

@@ -14,6 +14,8 @@
#include <libcamera/base/file.h>
#include <libcamera/base/utils.h>
#include <libcamera/geometry.h>
#include "libcamera/internal/yaml_parser.h"
#include "test.h"