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:
@@ -26,6 +26,7 @@ public:
|
||||
bool isValid() const;
|
||||
|
||||
const struct IPAModuleInfo &info() const;
|
||||
const std::string &path() const;
|
||||
|
||||
bool load();
|
||||
|
||||
|
||||
@@ -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
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user