7 #ifndef __LIBCAMERA_INTERNAL_CONTROL_SERIALIZER_H__
8 #define __LIBCAMERA_INTERNAL_CONTROL_SERIALIZER_H__
18 class ByteStreamBuffer;
44 bool isArray =
false,
unsigned int count = 1);
48 std::vector<std::unique_ptr<ControlId>> controlIds_;
49 std::map<unsigned int, ControlInfoMap> infoMaps_;
50 std::map<const ControlInfoMap *, unsigned int> infoMapHandles_;
Wrap a memory buffer and provide sequential data read and write.
Definition: byte_stream_buffer.h:19
A map of ControlId to ControlInfo.
Definition: controls.h:297
Describe the limits of valid values for a Control.
Definition: controls.h:266
Associate a list of ControlId with their values for an object.
Definition: controls.h:342
Serializer and deserializer for control-related classes.
Definition: control_serializer.h:21
static size_t binarySize(const ControlInfoMap &infoMap)
Retrieve the size in bytes required to serialize a ControlInfoMap.
Definition: control_serializer.cpp:116
T deserialize(ByteStreamBuffer &buffer)
Deserialize an object from a binary buffer.
void reset()
Reset the serializer.
Definition: control_serializer.cpp:88
int serialize(const ControlInfoMap &infoMap, ByteStreamBuffer &buffer)
Serialize a ControlInfoMap in a buffer.
Definition: control_serializer.cpp:173
Abstract type representing the value of a control.
Definition: controls.h:93
Framework to manage controls related to an object.
ControlType
Define the data type of a Control.
Definition: controls.h:23