xref: /OK3568_Linux_fs/external/camera_engine_rkaiq/rkaiq/include/iq_parser_v2/csm_head.h (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1 /*
2  * csm_head.h
3  *
4  *  Copyright (c) 2022 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_CSM_HEAD_H__
21 #define __CALIBDBV2_CSM_HEAD_H__
22 
23 #include "rk_aiq_comm.h"
24 
25 RKAIQ_BEGIN_DECLARE
26 
27 #define RK_AIQ_CSM_COEFF_NUM 9
28 
29 typedef struct __csm_param {
30     // M4_ENUM_DESC("op_mode", "RKAiqOPMode_t", "RK_AIQ_OP_MODE_AUTO")
31     RKAiqOPMode_t op_mode;
32     // M4_BOOL_DESC("full_range", "1", M4_HIDE(0), "1")
33     bool full_range;
34     // M4_NUMBER_DESC("y_offset", "u8", M4_RANGE(0,63), "0", M4_DIGIT(0))
35     uint8_t y_offset;
36     // M4_NUMBER_DESC("c_offset", "u8", M4_RANGE(0,255), "0", M4_DIGIT(0))
37     uint8_t c_offset;
38     // M4_ARRAY_DESC("coeff", "f32", M4_SIZE(3,3), M4_RANGE(-2, 1.992), "0", M4_DIGIT(4), M4_DYNAMIC(0))
39     float coeff[RK_AIQ_CSM_COEFF_NUM];
40 } Csm_Param_t;
41 
42 typedef struct __csm {
43     // M4_STRUCT_DESC("TuningPara", "normal_ui_style")
44     Csm_Param_t TuningPara;
45 } CalibDbV2_csm_t;
46 
47 RKAIQ_END_DECLARE
48 
49 #endif
50