blob: d7b9e1039059d16e423192dec6addfb2057cd9a8 (
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
47
48
49
50
51
52
53
54
55
56
57
|
/* SPDX-License-Identifier: Apache-2.0 */
/*
* Incorporate equivalent structures for the AIC algorithms without requiring
* all of the header based implementation provided by the IA AIQ library
* headers.
*/
#include <string>
#include <libcamera/geometry.h>
#include <libcamera/ipa/ipu3_ipa_interface.h>
#include <linux/intel-ipu3.h>
#include "kbl_aic.h"
#include "aiq/aiq_results.h"
#include "binary_data.h"
#include "ipu3_isp_pipe.h"
#ifndef IPA_IPU3_AIC_H
#define IPA_IPU3_AIC_H
namespace libcamera::ipa::ipu3::aic {
class AIC
{
public:
~AIC();
int init(BinaryData &aiqb);
void reset();
int run(ipu3_uapi_params *params);
aic_config_t *GetAicConfig();
void updateRuntimeParams(aiq::AiqResults &results);
std::string version();
int configure(const struct IPAConfigInfo &configInfo);
private:
/** \todo: Only a single AIC_MODE is supported currently. */
std::unique_ptr<KBL_AIC> skyCam_;
std::unique_ptr<IPU3ISPPipe> pipe_;
ia_cmc_t *iaCmc_;
/* IPU3AICRuntimeParams pointer contents */
ia_aiq_output_frame_parameters_t runtimeOutFrameParams_;
aic_resolution_config_parameters_t runtimeResCfgParams_;
aic_input_frame_parameters_t runtimeInFrameParams_;
ia_rectangle runtimeParamsRec_;
IPU3AICRuntimeParams runtimeParams_;
};
} /* namespace libcamera::ipa::ipu3::aic */
#endif /* IPA_IPU3_AIC_H */
|