diff options
author | Kieran Bingham <kieran.bingham@ideasonboard.com> | 2021-05-10 17:00:57 +0530 |
---|---|---|
committer | Umang Jain <umang.jain@ideasonboard.com> | 2021-06-28 14:12:06 +0530 |
commit | 249b42db7cd39d7ec20094242cd7a8c41ea3b442 (patch) | |
tree | 57fbc62da85337a020e4cf75615b242a7e4fd639 /binary_data.h | |
parent | f21b9306a7893017b9f7e6b95001da9abade30f7 (diff) |
aiq: Provide a BinaryData wrapper
The AIQ class loads data as instances of ia_binary_data.
The data for this structure should be loaded from files, and the
lifetime of the data is managed by the lifetime of the class.
Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Signed-off-by: Umang Jain <umang.jain@ideasonboard.com>
Diffstat (limited to 'binary_data.h')
-rw-r--r-- | binary_data.h | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/binary_data.h b/binary_data.h new file mode 100644 index 0000000..6f7e55a --- /dev/null +++ b/binary_data.h @@ -0,0 +1,37 @@ +/* SPDX-License-Identifier: Apache-2.0 */ +/* + * Copyright (C) 2021, Google Inc. + * + * binary_data.h - AIQ Binary Data Wrapper + */ + +#include <vector> + +#include <ia_imaging/ia_aiq.h> + +#include <libcamera/base/class.h> + +#ifndef __IPA_IPU3_BINARY_DATA__ +#define __IPA_IPU3_BINARY_DATA__ + +namespace libcamera::ipa::ipu3 { + +class BinaryData +{ +public: + BinaryData(); + + int load(const char *filename); + ia_binary_data *data() { return &iaBinaryData_; } + +private: + LIBCAMERA_DISABLE_COPY_AND_MOVE(BinaryData) + + ia_binary_data iaBinaryData_; + std::vector<uint8_t> data_; +}; + +} /* namespace libcamera::ipa::ipu3 */ + +#endif /* __IPA_IPU3_BINARY_DATA__ */ + |