ipa: libipa: algorithm: Add init() function to the Algorithm class
Add the init() function that will be called during algorithm initialization to provide each algorithm the list of algorithms tuning data. Signed-off-by: Florian Sylvestre <fsylvestre@baylibre.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Paul Elder <paul.elder@ideasonboard.com> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
This commit is contained in:
parent
d1934c6490
commit
575ca88544
2 changed files with 21 additions and 0 deletions
|
@ -11,6 +11,8 @@
|
|||
|
||||
namespace libcamera {
|
||||
|
||||
class YamlObject;
|
||||
|
||||
namespace ipa {
|
||||
|
||||
template<typename _Module>
|
||||
|
@ -21,6 +23,12 @@ public:
|
|||
|
||||
virtual ~Algorithm() {}
|
||||
|
||||
virtual int init([[maybe_unused]] typename Module::Context &context,
|
||||
[[maybe_unused]] const YamlObject &tuningData)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
virtual int configure([[maybe_unused]] typename Module::Context &context,
|
||||
[[maybe_unused]] const typename Module::Config &configInfo)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue