hc
2024-05-14 bedbef8ad3e75a304af6361af235302bcc61d06b
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
/* SPDX-License-Identifier: GPL-2.0 */
/* Copyright (c) 2019 Fuzhou Rockchip Electronics Co., Ltd. */
 
#ifndef _RKISP_ISP_STATS_V1X_H
#define _RKISP_ISP_STATS_V1X_H
 
#include <linux/rk-isp1-config.h>
#include <linux/interrupt.h>
#include <linux/kfifo.h>
#include "common.h"
 
struct rkisp_isp_stats_vdev;
 
struct rkisp_stats_v1x_ops {
   void (*get_awb_meas)(struct rkisp_isp_stats_vdev *stats_vdev,
                struct rkisp1_stat_buffer *pbuf);
   void (*get_aec_meas)(struct rkisp_isp_stats_vdev *stats_vdev,
                struct rkisp1_stat_buffer *pbuf);
   void (*get_afc_meas)(struct rkisp_isp_stats_vdev *stats_vdev,
                struct rkisp1_stat_buffer *pbuf);
   void (*get_hst_meas)(struct rkisp_isp_stats_vdev *stats_vdev,
                struct rkisp1_stat_buffer *pbuf);
   void (*get_bls_meas)(struct rkisp_isp_stats_vdev *stats_vdev,
                struct rkisp1_stat_buffer *pbuf);
   void (*get_emb_data)(struct rkisp_isp_stats_vdev *stats_vdev,
                struct rkisp1_stat_buffer *pbuf);
};
 
struct rkisp_stats_v1x_config {
   const int ae_mean_max;
   const int hist_bin_n_max;
};
 
#if IS_ENABLED(CONFIG_VIDEO_ROCKCHIP_ISP_VERSION_V1X)
void rkisp_init_stats_vdev_v1x(struct rkisp_isp_stats_vdev *stats_vdev);
void rkisp_uninit_stats_vdev_v1x(struct rkisp_isp_stats_vdev *stats_vdev);
#else
static inline void rkisp_init_stats_vdev_v1x(struct rkisp_isp_stats_vdev *stats_vdev) {}
static inline void rkisp_uninit_stats_vdev_v1x(struct rkisp_isp_stats_vdev *stats_vdev) {}
#endif
 
#endif /* _RKISP_ISP_STATS_V1X_H */