xref: /OK3568_Linux_fs/external/camera_engine_rkaiq/rkaiq/include/algos/alsc/rk_aiq_types_alsc_common.h (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1 #ifndef __RK_AIQ_TYPES_ALSC_COMMON_H__
2 #define __RK_AIQ_TYPES_ALSC_COMMON_H__
3 
4 #include "rk_aiq_comm.h"
5 
6 #ifdef __cplusplus
7 extern "C" {
8 #endif
9 
10 #ifndef LSC_NAME
11 #define LSC_NAME (32U)
12 #endif
13 
14 #define LSC_MAX_RESOLUTION 2
15 #define LSC_MAX_ILLUMINANT 7
16 
17 typedef struct lsc_name_s {
18     // M4_STRING_DESC("name", M4_SIZE(1,1), M4_RANGE(0, 32), "default", M4_DYNAMIC(0))
19     char name[LSC_NAME];
20 } lsc_name_t;
21 
22 typedef struct CalibDbV2_LscTableProfile_s {
23     // M4_STRING_DESC("name", M4_SIZE(1,1), M4_RANGE(0, 32), "default", M4_DYNAMIC(0))
24     char name[LSC_NAME];
25     // M4_STRING_DESC("resolution", M4_SIZE(1,1), M4_RANGE(0, 32), "default", M4_DYNAMIC(0))
26     char resolution[LSC_NAME];
27     // M4_STRING_DESC("illumination", M4_SIZE(1,1), M4_RANGE(0, 32), "default", M4_DYNAMIC(0))
28     char illumination[LSC_NAME];
29     // M4_NUMBER_DESC("vignetting", "f32", M4_RANGE(0,100), "100", M4_DIGIT(0))
30     float vignetting;
31 
32     // M4_STRUCT_DESC("lsc_samples_red", "normal_ui_style")
33     Cam17x17UShortMatrix_t lsc_samples_red;
34     // M4_STRUCT_DESC("lsc_samples_greenR", "normal_ui_style")
35     Cam17x17UShortMatrix_t lsc_samples_greenR;
36     // M4_STRUCT_DESC("lsc_samples_greenB", "normal_ui_style")
37     Cam17x17UShortMatrix_t lsc_samples_greenB;
38     // M4_STRUCT_DESC("lsc_samples_blue", "normal_ui_style")
39     Cam17x17UShortMatrix_t lsc_samples_blue;
40 } CalibDbV2_LscTableProfile_t;
41 
42 #ifdef __cplusplus
43 }
44 #endif
45 
46 #endif /*__RK_AIQ_TYPES_ALSC_COMMON_H__*/
47