From 96dfda8e4b4ef3021f025ea295c10fec49e081d8 Mon Sep 17 00:00:00 2001 From: Jean-Michel Hautbois Date: Thu, 19 Aug 2021 09:03:37 +0200 Subject: ipa: ipu3: Introduce modular algorithm Implement a new modular framework for algorithms with a common context structure that is passed to each algorithm through a common API. This patch: - removes all the local references from IPAIPU3 and uses IPAContext - implements the list of pointers and the loop at configure call on each algorithm - loops in fillParams on each prepare() call on the algorithm list - loops in prepareStats on each process() call on the algorithm list Signed-off-by: Jean-Michel Hautbois Reviewed-by: Kieran Bingham Reviewed-by: Laurent Pinchart --- src/ipa/ipu3/ipa_context.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/ipa/ipu3/ipa_context.h') diff --git a/src/ipa/ipu3/ipa_context.h b/src/ipa/ipu3/ipa_context.h index 2706d3ca..a031ab83 100644 --- a/src/ipa/ipu3/ipa_context.h +++ b/src/ipa/ipu3/ipa_context.h @@ -10,11 +10,17 @@ #include +#include + namespace libcamera { namespace ipa::ipu3 { struct IPASessionConfiguration { + struct { + ipu3_uapi_grid_config bdsGrid; + Size bdsOutputSize; + } grid; }; struct IPAFrameContext { -- cgit v1.2.1