1 /*
2  *rk_aiq_types_adehaze_algo_int.h
3  *
4  *  Copyright (c) 2019 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 _RK_AIQ_TYPE_ADEHAZE_ALGO_INT_H_
21 #define _RK_AIQ_TYPE_ADEHAZE_ALGO_INT_H_
22 #include "RkAiqCalibDbTypes.h"
23 #include "adehaze/rk_aiq_types_adehaze_algo.h"
24 #include "adehaze_head.h"
25 #include "adehaze_uapi_head.h"
26 
27 #define DEHAZE_DEFAULT_LEVEL         (50)
28 #define DEHAZE_DEFAULT_CFG_WT_STEP   (1)
29 #define DEHAZE_DEFAULT_CFG_AIR_STEP  (1)
30 #define DEHAZE_DEFAULT_CFG_TMAX_STEP (5)
31 #define ENHANCE_DEFAULT_LEVEL        (50)
32 #define ENHANCE_VALUE_DEFAULT_STEP   (80)
33 #define ENH_LUMA_DEFAULT_STEP        (5)
34 
35 typedef struct AdehazeOBResV12_s {
36     bool blc_ob_enable;
37     float isp_ob_predgain;
38 } AdehazeOBResV12_t;
39 
40 typedef enum dehaze_api_mode_s {
41     DEHAZE_API_AUTO   = 0, /**< run atuo mode */
42     DEHAZE_API_MANUAL = 1, /**< run manual mode*/
43 } dehaze_api_mode_t;
44 
45 // dehaze v10
46 typedef struct adehaze_sw_v10_s {
47 } adehaze_sw_v10_t;
48 
49 // dehaze v11
50 typedef struct adehaze_sw_v11_s {
51     rk_aiq_uapi_sync_t sync;
52 
53     dehaze_api_mode_t mode;
54     CalibDbV2_dehaze_v11_t stAuto;
55     mDehazeAttrV11_t stManual;
56     mDehazeAttrInfoV11_t Info;
57 } adehaze_sw_v11_t;
58 
59 // dehaze v12
60 typedef struct adehaze_sw_v12_s {
61     rk_aiq_uapi_sync_t sync;
62 
63     dehaze_api_mode_t mode;
64     CalibDbV2_dehaze_v12_t stAuto;
65     mDehazeAttrV12_t stManual;
66     mDehazeAttrInfoV11_t Info;
67 } adehaze_sw_v12_t;
68 
69 #endif
70