From 575ca8854433043a1149286878bb5ef7029ba681 Mon Sep 17 00:00:00 2001 From: Florian Sylvestre Date: Fri, 17 Jun 2022 11:23:12 +0200 Subject: 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 Reviewed-by: Laurent Pinchart Reviewed-by: Paul Elder Signed-off-by: Laurent Pinchart --- src/ipa/libipa/algorithm.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/ipa/libipa/algorithm.h') diff --git a/src/ipa/libipa/algorithm.h b/src/ipa/libipa/algorithm.h index cfbe4ed8..2a8871d8 100644 --- a/src/ipa/libipa/algorithm.h +++ b/src/ipa/libipa/algorithm.h @@ -11,6 +11,8 @@ namespace libcamera { +class YamlObject; + namespace ipa { template @@ -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) { -- cgit v1.2.1