summaryrefslogtreecommitdiff
path: root/src/ipa/libipa/algorithm.h
blob: fd2ffcfbc900b0d0f6c6c55c87c72df1fa3f12e8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
/* SPDX-License-Identifier: LGPL-2.1-or-later */
/*
 * Copyright (C) 2021, Ideas On Board
 *
 * algorithm.h - ISP control algorithm interface
 */
#pragma once

namespace libcamera {

namespace ipa {

template<typename Module>
class Algorithm
{
public:
	virtual ~Algorithm() {}

	virtual int configure([[maybe_unused]] typename Module::Context &context,
			      [[maybe_unused]] const typename Module::Config &configInfo)
	{
		return 0;
	}

	virtual void prepare([[maybe_unused]] typename Module::Context &context,
			     [[maybe_unused]] typename Module::Params *params)
	{
	}

	virtual void process([[maybe_unused]] typename Module::Context &context,
			     [[maybe_unused]] typename Module::FrameContext *frameContext,
			     [[maybe_unused]] const typename Module::Stats *stats)
	{
	}
};

} /* namespace ipa */

} /* namespace libcamera */