blob: 032a05b56635e3f292afd7d71bf315f4efc30994 (
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
40
|
/* 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 Context, typename FrameContext, typename Config,
typename Params, typename Stats>
class Algorithm
{
public:
virtual ~Algorithm() {}
virtual int configure([[maybe_unused]] Context &context,
[[maybe_unused]] const Config &configInfo)
{
return 0;
}
virtual void prepare([[maybe_unused]] Context &context,
[[maybe_unused]] Params *params)
{
}
virtual void process([[maybe_unused]] Context &context,
[[maybe_unused]] FrameContext *frameContext,
[[maybe_unused]] const Stats *stats)
{
}
};
} /* namespace ipa */
} /* namespace libcamera */
|