media: rk-isp10: add control exposure of long and short frame for hdr

modify head file to match the change of camera engine

Change-Id: Ia139e733f766cf9cbb02e80ceda81a1817b3acbf
Signed-off-by: Hu Kejun <william.hu@rock-chips.com>
This commit is contained in:
Hu Kejun
2019-03-14 10:48:16 +08:00
committed by Tao Huang
parent df29350c9c
commit 43634de342
2 changed files with 14 additions and 1 deletions

View File

@@ -18,7 +18,7 @@
#define _V4L2_CONFIG_ROCKCHIP_H
#define CAMERA_STRLEN 32
#define CAMERA_METADATA_LEN (2 * PAGE_SIZE)
#define CAMERA_METADATA_LEN (4 * PAGE_SIZE)
#define VALID_FR_EXP_T_INDEX 0
#define VALID_FR_EXP_G_INDEX 1
#define SENSOR_CONFIG_NUM 4
@@ -58,6 +58,10 @@ struct isp_supplemental_sensor_mode_data {
unsigned short gain;
unsigned char max_exp_gain_h;
unsigned char max_exp_gain_l;
int exp_time_l;
unsigned short gain_l;
int exp_time_s;
unsigned short gain_s;
};
struct camera_module_info_s {
@@ -111,12 +115,17 @@ struct frame_timeinfo_s {
};
struct sensor_metadata_s {
unsigned int exp_time_l;
unsigned int exp_time;
unsigned int exp_time_s;
unsigned int gain_l;
unsigned int gain;
unsigned int gain_s;
};
struct v4l2_buffer_metadata_s {
unsigned int frame_id;
unsigned int lights_stat;
struct frame_timeinfo_s frame_t;
struct flash_timeinfo_s flash_t;
struct sensor_metadata_s sensor;

View File

@@ -35,5 +35,9 @@
#define RK_V4L2_CID_AUTO_FPS (V4L2_CID_USER_RK_BASE + 3)
#define RK_V4L2_CID_VTS (V4L2_CID_USER_RK_BASE + 4)
#define RK_V4L2_CID_CLS_EXP (V4L2_CID_USER_RK_BASE + 5)
#define RK_V4L2_CID_L_EXP (V4L2_CID_USER_RK_BASE + 6)
#define RK_V4L2_CID_L_GAIN (V4L2_CID_USER_RK_BASE + 7)
#define RK_V4L2_CID_S_EXP (V4L2_CID_USER_RK_BASE + 8)
#define RK_V4L2_CID_S_GAIN (V4L2_CID_USER_RK_BASE + 9)
#endif