1 /******************************************************************************
2  *
3  * Copyright 2019, Fuzhou Rockchip Electronics Co.Ltd . All rights reserved.
4  * No part of this work may be reproduced, modified, distributed, transmitted,
5  * transcribed, or translated into any language or computer format, in any form
6  * or by any means without written permission of:
7  * Fuzhou Rockchip Electronics Co.Ltd .
8  *
9  *
10  *****************************************************************************/
11 #ifndef __RK_AIQ_TYPES_ADEHAZE_ALGO_STAT_H__
12 #define __RK_AIQ_TYPES_ADEHAZE_ALGO_STAT_H__
13 
14 typedef struct dehaze_stats_v12_s {
15     unsigned int dhaz_pic_sumh;
16     unsigned short dhaz_adp_air_base;
17     unsigned short dhaz_adp_wt;
18     unsigned short dhaz_adp_gratio;
19     unsigned short dhaz_adp_tmax;
20     unsigned short h_rgb_iir[64];
21 } dehaze_stats_v12_t;
22 
23 typedef struct dehaze_stats_v11_duo_s {
24     unsigned int dhaz_pic_sumh_left;
25     unsigned int dhaz_pic_sumh_right;
26     int dhaz_adp_air_base;
27     int dhaz_adp_wt;
28     int dhaz_adp_gratio;
29     int dhaz_adp_tmax;
30     int h_rgb_iir[64];
31 } dehaze_stats_v11_duo_t;
32 
33 typedef struct dehaze_stats_v11_s {
34     int dhaz_adp_air_base;
35     int dhaz_adp_wt;
36     int dhaz_adp_gratio;
37     int dhaz_adp_tmax;
38     int h_rgb_iir[64];
39 } dehaze_stats_v11_t;
40 
41 typedef struct dehaze_stats_v10_s {
42     int dhaz_adp_air_base;
43     int dhaz_adp_wt;
44     int dhaz_adp_gratio;
45     int dhaz_adp_tmax;
46     int h_r_iir[64];
47     int h_g_iir[64];
48     int h_b_iir[64];
49 } dehaze_stats_v10_t;
50 
51 typedef struct rkisp_adehaze_stats_s {
52     bool stats_true;
53 #if RKAIQ_HAVE_DEHAZE_V10
54     dehaze_stats_v10_t dehaze_stats_v10;
55 #endif
56 #if RKAIQ_HAVE_DEHAZE_V11
57     dehaze_stats_v11_t dehaze_stats_v11;
58 #endif
59 #if RKAIQ_HAVE_DEHAZE_V11_DUO
60     dehaze_stats_v11_duo_t dehaze_stats_v11_duo;
61 #endif
62 #if RKAIQ_HAVE_DEHAZE_V12
63     dehaze_stats_v12_t dehaze_stats_v12;
64 #endif
65 } rkisp_adehaze_stats_t;
66 
67 
68 #endif
69