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>
This commit is contained in:
Paul Elder
2019-06-05 16:47:23 -04:00
parent 0c2f97a0ab
commit 83e3300a2d
2 changed files with 14 additions and 0 deletions

View File

@@ -26,6 +26,7 @@ public:
bool isValid() const;
const struct IPAModuleInfo &info() const;
const std::string &path() const;
bool load();

View File

@@ -321,6 +321,19 @@ const struct IPAModuleInfo &IPAModule::info() const
return info_;
}
/**
* \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
*