summaryrefslogtreecommitdiff
path: root/src/android/camera_hal_config.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/android/camera_hal_config.h')
0 files changed, 0 insertions, 0 deletions
rializer */ #pragma once #include <map> #include <memory> #include <vector> #include <libcamera/controls.h> namespace libcamera { class ByteStreamBuffer; class ControlSerializer { public: enum class Role { Proxy, Worker }; ControlSerializer(Role role); void reset(); static size_t binarySize(const ControlInfoMap &infoMap); static size_t binarySize(const ControlList &list); int serialize(const ControlInfoMap &infoMap, ByteStreamBuffer &buffer); int serialize(const ControlList &list, ByteStreamBuffer &buffer); template<typename T> T deserialize(ByteStreamBuffer &buffer); bool isCached(const ControlInfoMap &infoMap); private: static size_t binarySize(const ControlValue &value); static size_t binarySize(const ControlInfo &info); static void store(const ControlValue &value, ByteStreamBuffer &buffer); static void store(const ControlInfo &info, ByteStreamBuffer &buffer); ControlValue loadControlValue(ByteStreamBuffer &buffer, bool isArray = false, unsigned int count = 1);