diff options
author | Paul Elder <paul.elder@ideasonboard.com> | 2019-06-05 16:47:23 -0400 |
---|---|---|
committer | Paul Elder <paul.elder@ideasonboard.com> | 2019-07-02 23:18:03 +0900 |
commit | 83e3300a2df2360b69760614084826793c64e769 (patch) | |
tree | ae255ee565892fab158bf44471d6650a9f20a94a | |
parent | 0c2f97a0aba1fc144a33a4769e0b96373bb26318 (diff) |
libcamera: ipa_module: add path getter
Add a method to IPAModule to get the path of the IPA module shared
object that the IPAModule was constructed from.
Signed-off-by: Paul Elder <paul.elder@ideasonboard.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
-rw-r--r-- | src/libcamera/include/ipa_module.h | 1 | ||||
-rw-r--r-- | src/libcamera/ipa_module.cpp | 13 |
2 files changed, 14 insertions, 0 deletions
diff --git a/src/libcamera/include/ipa_module.h b/src/libcamera/include/ipa_module.h index fec42371..b88ae5d2 100644 --- a/src/libcamera/include/ipa_module.h +++ b/src/libcamera/include/ipa_module.h @@ -26,6 +26,7 @@ public: bool isValid() const; const struct IPAModuleInfo &info() const; + const std::string &path() const; bool load(); diff --git a/src/libcamera/ipa_module.cpp b/src/libcamera/ipa_module.cpp index 2663b9ef..58e8d1d8 100644 --- a/src/libcamera/ipa_module.cpp +++ b/src/libcamera/ipa_module.cpp @@ -322,6 +322,19 @@ const struct IPAModuleInfo &IPAModule::info() const } /** + * \brief Retrieve the IPA module path + * + * The IPA module path is the file name and path of the IPA module shared + * object from which the IPA module was created. + * + * \return The IPA module path + */ +const std::string &IPAModule::path() const +{ + return libPath_; +} + +/** * \brief Load the IPA implementation factory from the shared object * * The IPA module shared object implements an IPAInterface class to be used |