static struct imgsensor_info_struct imgsensor_info = {
.sensor_id = OV20B40_AAC_FRONT_SENSOR_ID,
.checksum_value = 0xe5d32119,
.pre = { //01_OV20B40_4C1_2592x1944_30fps_DPHY_4Lane_850M_24M
.pclk = 50000000,
.linelength = 500,
.framelength = 3333,
.startx = 0,
.starty = 0,
.grabwindow_width = 2592,
.grabwindow_height = 1944,
.mipi_data_lp2hs_settle_dc = 10,
.mipi_pixel_rate = 436800000,
.max_framerate = 300,
},
.cap = { //01_OV20B40_4C1_2592x1944_30fps_DPHY_4Lane_850M_24M
.pclk = 50000000,
.linelength = 500,
.framelength = 3333,
.startx = 0,
.starty = 0,
.grabwindow_width = 2592,
.grabwindow_height = 1944,
.mipi_data_lp2hs_settle_dc = 10,
.mipi_pixel_rate = 436800000,
.max_framerate = 300,
},
.normal_video = { //02_OV20B40_4C1_2592x1464_30fps_DPHY_4Lane_850M_24M
.pclk = 50000000,
.linelength = 500,
.framelength = 3333,
.startx = 0,
.starty = 0,
.grabwindow_width = 2592,
.grabwindow_height = 1464,
.mipi_data_lp2hs_settle_dc = 10,
.mipi_pixel_rate = 436800000,
.max_framerate = 300,
},
.hs_video = { //03_OV20B40_4C1_V2aH2d_1280x720_120fps_DPHY_4Lane_850M_24M
.pclk = 50000000,
.linelength = 500,
.framelength = 833,
.startx = 0,
.starty = 0,
.grabwindow_width = 1280,
.grabwindow_height = 720,
.mipi_data_lp2hs_settle_dc = 10,
.mipi_pixel_rate = 436800000,
.max_framerate = 1200,
},
.slim_video = { // 02_OV20B40_4C1_2592x1464_30fps_DPHY_4Lane_850M_24M
.pclk = 50000000,
.linelength = 500,
.framelength = 3333,
.startx = 0,
.starty = 0,
.grabwindow_width = 2592,
.grabwindow_height = 1464,
.mipi_data_lp2hs_settle_dc = 10,
.mipi_pixel_rate = 436800000,
.max_framerate = 300,
},
.custom1 = { // 01_OV20B40_4C1_2592x1944_30fps_DPHY_4Lane_850M_24M
.pclk = 50000000,
.linelength = 500,
.framelength = 3333,
.startx = 0,
.starty = 0,
.grabwindow_width = 2592,
.grabwindow_height = 1944,
.mipi_data_lp2hs_settle_dc = 10,
.mipi_pixel_rate = 436800000,
.max_framerate = 300,
},
.custom2 = { // 01_OV20B40_4C1_2592x1944_30fps_DPHY_4Lane_850M_24M
.pclk = 50000000,
.linelength = 500,
.framelength = 3333,
.startx = 0,
.starty = 0,
.grabwindow_width = 2592,
.grabwindow_height = 1944,
.mipi_data_lp2hs_settle_dc = 10,
.mipi_pixel_rate = 436800000,
.max_framerate = 300,
},
.custom3 = { // 02_OV20B40_4C1_2592x1464_30fps_DPHY_4Lane_850M_24M
.pclk = 50000000,
.linelength = 500,
.framelength = 1666,
.startx = 0,
.starty = 0,
.grabwindow_width = 1920,
.grabwindow_height = 1080,
.mipi_data_lp2hs_settle_dc = 10,
.mipi_pixel_rate = 436800000,
.max_framerate = 600,
},
.margin = 4,
.min_shutter = 2,
.min_gain = 64,/* 1x */
.max_gain = 15.96875*64,
.min_gain_iso = 50,
.exp_step = 1,
.gain_step = 1,
.gain_type = 1,
.max_frame_length = 0xffff,
.ae_shut_delay_frame = 0,
.ae_sensor_gain_delay_frame = 0,
.ae_ispGain_delay_frame = 2, /* isp gain delay frame for AE cycle */
.ihdr_support = 0, /* 1, support; 0,not support */
.ihdr_le_firstline = 0, /* 1, le first ; 0, se first */
.temperature_support = 0,/* 1, support; 0, not support */
.sensor_mode_num = 8, /* support sensor mode num */
.cap_delay_frame = 2, /* enter capture delay frame num */
.pre_delay_frame = 2, /* enter preview delay frame num */
.video_delay_frame = 2, /* enter video delay frame num */
.hs_video_delay_frame = 2,
.slim_video_delay_frame = 2, /* enter slim video delay frame num */
.custom1_delay_frame = 2,
.custom2_delay_frame = 2,
.custom3_delay_frame = 2,
.frame_time_delay_frame = 2,
.isp_driving_current = ISP_DRIVING_4MA,
.sensor_interface_type = SENSOR_INTERFACE_TYPE_MIPI,
.mipi_sensor_type = MIPI_OPHY_NCSI2,
.mipi_settle_delay_mode = MIPI_SETTLEDELAY_AUTO,
.sensor_output_dataformat = SENSOR_OUTPUT_FORMAT_RAW_B,
.mclk = 24,
.mipi_lane_num = SENSOR_MIPI_4_LANE,
.i2c_addr_table = {0x20,0x21,0xff},
/* record sensor support all write id addr,
* only supprt 4 must end with 0xff
*/
.i2c_speed = 400,
};
这个是什么的模式,代表什么意思