summaryrefslogtreecommitdiff
path: root/src/ipa/ipa_dummy.cpp
blob: 9d0cbdc8b1ad55651d5e84828a3a54ba93883de9 (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
41
42
43
44
45
46
/* SPDX-License-Identifier: LGPL-2.1-or-later */
/*
 * Copyright (C) 2019, Google Inc.
 *
 * ipa_dummy.cpp - Dummy Image Processing Algorithm module
 */

#include <iostream>

#include <ipa/ipa_interface.h>
#include <ipa/ipa_module_info.h>

namespace libcamera {

class IPADummy : public IPAInterface
{
public:
	int init();
};

int IPADummy::init()
{
	std::cout << "initializing dummy IPA!" << std::endl;
	return 0;
}

/*
 * External IPA module interface
 */

extern "C" {
const struct IPAModuleInfo ipaModuleInfo = {
	IPA_MODULE_API_VERSION,
	0,
	"PipelineHandlerVimc",
	"Dummy IPA for Vimc",
	LICENSE,
};

IPAInterface *ipaCreate()
{
	return new IPADummy();
}
};

}; /* namespace libcamera */