xref: /OK3568_Linux_fs/external/camera_engine_rkaiq/rkaiq/include/iq_parser_v2/cproc_head.h (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1 /*
2  * cproc_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_CPROC_HEAD_H__
21 #define __CALIBDBV2_CPROC_HEAD_H__
22 
23 #include "rk_aiq_comm.h"
24 
25 RKAIQ_BEGIN_DECLARE
26 
27 // #define M4_BOOL_DESC(ALIAS, DEFAULT, HIDE)
28 
29 // #define M4_ARRAY_DESC(ALIAS, TYPE, SIZE, RANGE, DEFAULT,DIGIT,DYNAMIC, HIDE)
30 
31 // #define M4_NUMBER_DESC(ALIAS, TYPE, RANGE, DEFAULT,DIGIT, HIDE)
32 
33 typedef struct __cproc_param {
34     // M4_BOOL_DESC("enable", "1", 0)
35     bool enable;
36     // M4_NUMBER_DESC("brightness", "u8", M4_RANGE(0,255), "128", M4_DIGIT(0), 0)
37     unsigned char brightness;
38     // M4_NUMBER_DESC("contrast", "u8", M4_RANGE(0,255), "128", M4_DIGIT(0), 0)
39     unsigned char contrast;
40     // M4_NUMBER_DESC("saturation", "u8", M4_RANGE(0,255), "128", M4_DIGIT(0), 0)
41     unsigned char saturation;
42     // M4_NUMBER_DESC("hue", "u8", M4_RANGE(0,255), "128", M4_DIGIT(0), 0)
43     unsigned char hue;
44 } Cproc_Param_t;
45 
46 typedef struct __cproc {
47     // M4_STRUCT_DESC("CprocTuningPara", "normal_ui_style")
48     Cproc_Param_t param;
49 } CalibDbV2_Cproc_t;
50 
51 RKAIQ_END_DECLARE
52 
53 #endif
54