ipa: libipa: Introduce a Module class template
libipa defines an abstract Algorithm class template that is specialized by IPA modules. IPA modules then instantiate and manage algorithms internally, without help from libipa. With ongoing work on tuning data support for the RkISP1, and future similar work for the IPU3, more code duplication for algorithms management is expected. To address this and share code between multiple IPA modules, introduce a new Module class template that will define and manage top-level concepts for the IPA module. The Module class template needs to be specialized with the same types as the Algorithm class. To avoid manual specialization of both classes, store the types in the Module class, and replace the template arguments of the Algorithm class with a single Module argument from which the other types are retrieved. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Paul Elder <paul.elder@ideasonboard.com>
This commit is contained in:
parent
9dacde0d65
commit
83df785493
9 changed files with 183 additions and 31 deletions
|
@ -7,19 +7,15 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include <libcamera/ipa/ipu3_ipa_interface.h>
|
||||
|
||||
#include <libipa/algorithm.h>
|
||||
|
||||
#include "ipa_context.h"
|
||||
#include "module.h"
|
||||
|
||||
namespace libcamera {
|
||||
|
||||
namespace ipa::ipu3 {
|
||||
|
||||
using Algorithm = libcamera::ipa::Algorithm<IPAContext, IPAFrameContext,
|
||||
IPAConfigInfo, ipu3_uapi_params,
|
||||
ipu3_uapi_stats_3a>;
|
||||
using Algorithm = libcamera::ipa::Algorithm<Module>;
|
||||
|
||||
} /* namespace ipa::ipu3 */
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue