xref: /OK3568_Linux_fs/external/camera_engine_rkaiq/rkaiq/include/iq_parser_v2/ablc_head.h (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1 /*
2  * ablc_head.h
3  *
4  *  Copyright (c) 2021 Rockchip Corporation
5  *
6  * Licensed under the Apache License, Version 2.0 (the "License");
7  * you may not use this file except in compliance with the License.
8  * You may obtain a copy of the License at
9  *
10  *      http://www.apache.org/licenses/LICENSE-2.0
11  *
12  * Unless required by applicable law or agreed to in writing, software
13  * distributed under the License is distributed on an "AS IS" BASIS,
14  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15  * See the License for the specific language governing permissions and
16  * limitations under the License.
17  *
18  */
19 
20 #ifndef __CALIBDBV2_ABLC_HEADER_H__
21 #define __CALIBDBV2_ABLC_HEADER_H__
22 
23 #include "rk_aiq_comm.h"
24 
25 RKAIQ_BEGIN_DECLARE
26 
27 #define ABLC_MAX_ISO_LEVEL (13)
28 #define ABLC_MAX_CHANNEL_NUM 4
29 
30 
31 /*****************************************************************************/
32 /**
33  * @brief   ISP2.0 ABLC Config Params
34  */
35 /*****************************************************************************/
36 
37 typedef struct Blc_data_s {
38     // M4_ARRAY_DESC("ISO", "f32", M4_SIZE(1,13), M4_RANGE(0,10000000), "50",M4_DIGIT(4), M4_DYNAMIC(0))
39     float ISO[ABLC_MAX_ISO_LEVEL];
40     // M4_ARRAY_DESC("R_Channel", "f32", M4_SIZE(1,13), M4_RANGE(0,4095), "0",M4_DIGIT(4), M4_DYNAMIC(0))
41     float R_Channel[ABLC_MAX_ISO_LEVEL];
42     // M4_ARRAY_DESC("Gr_Channel", "f32", M4_SIZE(1,13), M4_RANGE(0,4095), "0",M4_DIGIT(4), M4_DYNAMIC(0))
43     float Gr_Channel[ABLC_MAX_ISO_LEVEL];
44     // M4_ARRAY_DESC("Gb_Channel", "f32", M4_SIZE(1,13), M4_RANGE(0,4095), "0",M4_DIGIT(4), M4_DYNAMIC(0))
45     float Gb_Channel[ABLC_MAX_ISO_LEVEL];
46     // M4_ARRAY_DESC("B_Channel", "f32", M4_SIZE(1,13), M4_RANGE(0,4095), "0",M4_DIGIT(4), M4_DYNAMIC(0))
47     float B_Channel[ABLC_MAX_ISO_LEVEL];
48 } Blc_data_t;
49 
50 typedef struct AblcParaV2_s {
51     // M4_BOOL_DESC("enable", "1")
52     bool enable;
53     // M4_ARRAY_TABLE_DESC("BLC_Data", "array_table_ui", "none")
54     Blc_data_t BLC_Data;
55 } AblcParaV2_t;
56 
57 
58 typedef struct CalibDbV2_Ablc_s {
59     // M4_STRUCT_DESC("BlcTuningPara", "normal_ui_style")
60     AblcParaV2_t BlcTuningPara;
61     // M4_STRUCT_DESC("Blc1TuningPara", "normal_ui_style")
62     AblcParaV2_t Blc1TuningPara;
63 } CalibDbV2_Ablc_t;
64 
65 
66 RKAIQ_END_DECLARE
67 
68 #endif
69