diff options
Diffstat (limited to 'src/libcamera/include/ipa_module.h')
-rw-r--r-- | src/libcamera/include/ipa_module.h | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/src/libcamera/include/ipa_module.h b/src/libcamera/include/ipa_module.h new file mode 100644 index 00000000..a4c6dbdf --- /dev/null +++ b/src/libcamera/include/ipa_module.h @@ -0,0 +1,36 @@ +/* SPDX-License-Identifier: LGPL-2.1-or-later */ +/* + * Copyright (C) 2019, Google Inc. + * + * ipa_module.h - Image Processing Algorithm module + */ +#ifndef __LIBCAMERA_IPA_MODULE_H__ +#define __LIBCAMERA_IPA_MODULE_H__ + +#include <string> + +#include <libcamera/ipa/ipa_module_info.h> + +namespace libcamera { + +class IPAModule +{ +public: + explicit IPAModule(const std::string &libPath); + + bool isValid() const; + + const struct IPAModuleInfo &info() const; + +private: + struct IPAModuleInfo info_; + + std::string libPath_; + bool valid_; + + int loadIPAModuleInfo(); +}; + +} /* namespace libcamera */ + +#endif /* __LIBCAMERA_IPA_MODULE_H__ */ |