[libcamera-devel] [PATCH v3 0/4] generate and use fixed-sized Span Control types
Christian Rauch
Rauch.Christian at gmx.de
Fri Apr 8 03:42:27 CEST 2022
Hello,
This is version 3 of my fixed-sized Span patch set. It reverts my earlier changes to the Span constructors in order to keep compatibility with std::span. Since this prevents the default construction of fixed-sized Span, I am introducing std::optional<> to handle failure causes (when a requested ControlValue does not exist).
Best,
Christian
Christian Rauch (4):
libcamera: controls: Define size of array controls as a shape vector
generate fixed- and variable-sized Span Controls
apply explicit fixed-sized Span type casts
use std::optional to handle invalid control values
include/libcamera/controls.h | 6 ++--
src/cam/main.cpp | 4 +--
src/ipa/raspberrypi/raspberrypi.cpp | 20 ++++++------
src/libcamera/control_ids.yaml | 2 +-
src/libcamera/pipeline/ipu3/ipu3.cpp | 9 +++---
.../pipeline/raspberrypi/raspberrypi.cpp | 9 +++---
src/libcamera/property_ids.yaml | 4 +--
src/qcam/dng_writer.cpp | 15 +++++----
utils/gen-controls.py | 32 +++++++++++++------
9 files changed, 58 insertions(+), 43 deletions(-)
--
2.25.1
More information about the libcamera-devel
mailing list