1 #ifndef __EIS_HEAD_H__ 2 #define __EIS_HEAD_H__ 3 4 #ifdef __cplusplus 5 extern "C" { 6 #endif 7 8 #include <stdint.h> 9 10 typedef enum eis_mode_e { 11 EIS_MODE_IMU_ONLY, 12 EIS_MODE_IMG_ONLY, 13 EIS_MODE_IMU_AND_IMG, 14 } eis_mode_t; 15 16 // clang-format off 17 typedef struct CalibDbV2_Eis_s { 18 // M4_BOOL_DESC("enable", "0") 19 bool enable; 20 // M4_ENUM_DESC("mode", "eis_mode_t", "EIS_MODE_IMU_ONLY") 21 eis_mode_t mode; 22 // M4_STRING_MASK_DESC("debug_xml_path", M4_SIZE(1,1), M4_RANGE(0, 255), "/tmp/eis_cfg.xml", M4_DYNAMIC(1)) 23 const char* debug_xml_path; 24 // M4_NUMBER_DESC("src_image_width", u32, 2593, M4_RANGE(0,65535), 0) 25 uint32_t src_image_width; 26 // M4_NUMBER_DESC("src_image_height", u32, 1944, M4_RANGE(0,65535), 0) 27 uint32_t src_image_height; 28 // M4_NUMBER_DESC("dst_image_width", u32, 2592, M4_RANGE(0,65535), 0) 29 uint32_t dst_image_width; 30 // M4_NUMBER_DESC("dst_image_height", u32, 1944, M4_RANGE(0,65535), 0) 31 uint32_t dst_image_height; 32 // M4_NUMBER_DESC("clip_ratio_x", "f32", M4_RANGE(0,1), "0.1", M4_DIGIT(2)) 33 float clip_ratio_x; 34 // M4_NUMBER_DESC("clip_ratio_y", "f32", M4_RANGE(0,1), "0.1", M4_DIGIT(2)) 35 float clip_ratio_y; 36 // M4_ARRAY_DESC("light_center", "f64", M4_SIZE(1,2), M4_RANGE(0,255), "[1.3511178239999999e+003, 7.3948608000000002e+002]", M4_DIGIT(32), M4_DYNAMIC(0)) 37 double light_center[2]; 38 // M4_ARRAY_DESC("distortion_coeff", "f64", M4_SIZE(1,4), M4_RANGE(0,255), "[-1.8302636074851755e+003, 4.2379512840610002e-004, -2.5076748550000000e-007, 1.2724700000000000e-010]", M4_DIGIT(32), M4_DYNAMIC(0)) 39 double distortion_coeff[4]; 40 } CalibDbV2_Eis_t; 41 // clang-format on 42 43 #ifdef __cplusplus 44 } 45 #endif 46 47 #endif 48