xref: /OK3568_Linux_fs/external/camera_engine_rkaiq/rkaiq/include/iq_parser_v2/cpsl_head.h (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1 /*
2  * cpsl_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_CPSL_HEADER_H__
21 #define __CALIBDBV2_CPSL_HEADER_H__
22 
23 #include <rk_aiq_comm.h>
24 
25 RKAIQ_BEGIN_DECLARE
26 
27 typedef enum Cpsl_LightSource_e {
28   INVALID = -1,
29   LED = 1,
30   IR  = 2,
31   MIX = 3, /*< led and ir mixture */
32   MAX
33 } Cpsl_LightSource_t;
34 
35 typedef struct CalibDbV2_Cpsl_Param_s {
36   // M4_BOOL_DESC("enable", "0")
37   bool enable;
38   // M4_ENUM_DESC("mode", "RKAiqOPMode_t", "RK_AIQ_OP_MODE_AUTO")
39   RKAiqOPMode_t mode;
40   // M4_BOOL_DESC("force_gray", "0")
41   bool force_gray;
42   // M4_ENUM_DESC("light_src", "rk_aiq_cpsls_t", "LED")
43   Cpsl_LightSource_t light_src;
44   // M4_NUMBER_DESC("auto_adjust_sens", "f32", M4_RANGE(0.0,100.0), "50.0", M4_DIGIT(0))
45   float auto_adjust_sens;
46   // M4_NUMBER_DESC("auto_on2off_th", u32, M4_RANGE(0,65535), 3000, 0)
47   uint32_t auto_on2off_th;
48   // M4_NUMBER_DESC("auto_off2on_th", u32, M4_RANGE(0,65535), 100, 0)
49   uint32_t auto_off2on_th;
50   // M4_NUMBER_DESC("auto_sw_interval", u32, M4_RANGE(0,255), 60, 0)
51   uint32_t auto_sw_interval;
52   // M4_BOOL_DESC("manual_on", "0")
53   bool manual_on;
54   // M4_NUMBER_DESC("manual_strength", "f32", M4_RANGE(0.0,100.0), "100.0", M4_DIGIT(2))
55   float manual_strength;
56 
57 } CalibDbV2_Cpsl_Param_t;
58 
59 typedef struct CalibDbV2_Cpsl_s {
60     // M4_STRUCT_DESC("param", "normal_ui_style")
61     CalibDbV2_Cpsl_Param_t param;
62 } CalibDbV2_Cpsl_t;
63 
64 RKAIQ_END_DECLARE
65 
66 #endif
67 
68