blob: 5f595588b428758902ad2b5e480abbb7dc415173 (
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
|
/* SPDX-License-Identifier: Apache-2.0 */
/*
* Copyright (C) 2017 Intel Corporation.
*
* IPAIPU3Stats.cpp: Generate statistics in IA AIQ consumable format.
*/
#ifndef IPA_IPU3_STATS_H
#define IPA_IPU3_STATS_H
#include <linux/intel-ipu3.h>
#include "aiq/aiq_results.h"
namespace libcamera::ipa::ipu3 {
constexpr uint32_t IPU3MaxStatisticsWidth = 80;
constexpr uint32_t IPU3MaxStatisticsHeight = 60;
constexpr uint32_t IPU3MaxStatisticsGridSize =
IPU3MaxStatisticsWidth * IPU3MaxStatisticsHeight;
struct AiqResults;
class IPAIPU3Stats
{
public:
IPAIPU3Stats() = default;
~IPAIPU3Stats() = default;
ia_aiq_statistics_input_params* getInputStatsParams(
int frame,
aiq::AiqResults *results,
const ipu3_uapi_stats_3a *stats);
private:
ia_aiq_statistics_input_params aiqStatsInputParams_ = {};
/*!< ia_aiq_statistics_input_params pointer contents */
const ia_aiq_rgbs_grid* rgbsGridPtr_ = nullptr;
const ia_aiq_af_grid* afGridPtr_ = nullptr;
ia_aiq_rgbs_grid rgbsGrid_ = {};
ia_aiq_af_grid afGrid_ = {};
/*!< ia_aiq_rgbs_grid pointer contents */
rgbs_grid_block rgbsGridBlock_[IPU3MaxStatisticsGridSize] = {};
/*!< ia_aiq_af_grid pointer contents */
int filterResponse1_[IPU3MaxStatisticsGridSize] = {};
int filterResponse2_[IPU3MaxStatisticsGridSize] = {};
};
} /* namespace libcamera::ipa::ipu3 */
#endif /* IPA_IPU3_STATS_H */
|