summaryrefslogtreecommitdiff
path: root/src/qcam
diff options
context:
space:
mode:
authorChristian Rauch <Rauch.Christian@gmx.de>2022-08-02 23:03:24 +0200
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2022-08-09 13:53:29 +0300
commit09c1b081baa215874545eaa35b081be06fea25b6 (patch)
tree4a420d02ffba4c2c2cbadcd3618e4d00f8dd1c4b /src/qcam
parent293e23e21cea5c1eb46df3938ac8b107e43b0c2b (diff)
libcamera: controls: Generate and use fixed-sized Span types
Define Span types explicitly as either variable- or fixed-sized. This introduces a new convention for defining Span dimensions in the property and control value definitions and generates Span types as variable-sized Span<T> or as fixed-sized Span<T,N>. Signed-off-by: Christian Rauch <Rauch.Christian@gmx.de> Reviewed-by: Jacopo Mondi <jacopo@jmondi.org> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'src/qcam')
-rw-r--r--src/qcam/dng_writer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qcam/dng_writer.cpp b/src/qcam/dng_writer.cpp
index 5b94b3f2..b4362537 100644
--- a/src/qcam/dng_writer.cpp
+++ b/src/qcam/dng_writer.cpp
@@ -517,7 +517,7 @@ int DNGWriter::write(const char *filename, const Camera *camera,
const auto &blackLevels = metadata.get(controls::SensorBlackLevels);
if (blackLevels) {
- Span<const int32_t> levels = *blackLevels;
+ Span<const int32_t, 4> levels = *blackLevels;
/*
* The black levels control is specified in R, Gr, Gb, B order.