summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/libcamera/controls.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/libcamera/controls.h b/include/libcamera/controls.h
index 2a665712..4b2e7e9c 100644
--- a/include/libcamera/controls.h
+++ b/include/libcamera/controls.h
@@ -115,6 +115,7 @@ public:
bool isArray() const { return isArray_; }
std::size_t numElements() const { return numElements_; }
Span<const uint8_t> data() const;
+ Span<uint8_t> data();
std::string toString() const;
@@ -174,6 +175,9 @@ public:
value.data(), value.size(), sizeof(typename T::value_type));
}
+ void reserve(ControlType type, bool isArray = false,
+ std::size_t numElements = 1);
+
private:
ControlType type_ : 8;
bool isArray_;