summaryrefslogtreecommitdiff
path: root/src/ipa/rkisp1/rkisp1.cpp
diff options
context:
space:
mode:
authorJean-Michel Hautbois <jeanmichel.hautbois@ideasonboard.com>2021-11-23 14:25:41 +0100
committerJean-Michel Hautbois <jeanmichel.hautbois@ideasonboard.com>2021-11-29 20:41:37 +0100
commit55c07ed4db5e68752a2bd7f5a19f5999d3b058d3 (patch)
tree18d9251a72decc0a12fbe072aafac2772cdead1e /src/ipa/rkisp1/rkisp1.cpp
parentfdf1426694d8934a0f7c910def43e48eb4a8b959 (diff)
ipa: rkisp1: Use the Algorithm class
Now that libipa offers a templated class for Algorithm, use it in RkISP1. Signed-off-by: Jean-Michel Hautbois <jeanmichel.hautbois@ideasonboard.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Diffstat (limited to 'src/ipa/rkisp1/rkisp1.cpp')
-rw-r--r--src/ipa/rkisp1/rkisp1.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/ipa/rkisp1/rkisp1.cpp b/src/ipa/rkisp1/rkisp1.cpp
index 34c3f9a2..225f1847 100644
--- a/src/ipa/rkisp1/rkisp1.cpp
+++ b/src/ipa/rkisp1/rkisp1.cpp
@@ -25,9 +25,11 @@
#include <libcamera/internal/mapped_framebuffer.h>
-#include "ipa_context.h"
+#include "algorithms/algorithm.h"
#include "libipa/camera_sensor_helper.h"
+#include "ipa_context.h"
+
namespace libcamera {
LOG_DEFINE_CATEGORY(IPARkISP1)
@@ -82,6 +84,9 @@ private:
/* Local parameter storage */
struct IPAContext context_;
+
+ /* Maintain the algorithms used by the IPA */
+ std::list<std::unique_ptr<ipa::rkisp1::Algorithm>> algorithms_;
};
int IPARkISP1::init(const IPASettings &settings, unsigned int hwRevision)