[libcamera-devel,v3,0/4] generate and use fixed-sized Span Control types
mbox series

Message ID 20220408014231.231083-1-Rauch.Christian@gmx.de
Headers show
Series
  • generate and use fixed-sized Span Control types
Related show

Message

Christian Rauch April 8, 2022, 1:42 a.m. UTC
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