hi_isp_init_attr
Description
Defines the AE or AWB initialization parameters when the ISP starts for the first time.
Definition
typedef struct {
hi_bool is_ir_mode;
hi_u32 exp_time;
hi_u32 a_gain;
hi_u32 d_gain;
hi_u32 ispd_gain;
hi_u32 exposure;
hi_u32 init_iso;
hi_u32 lines_per500ms;
hi_u32 piris_fno;
hi_u16 wb_r_gain;
hi_u16 wb_g_gain;
hi_u16 wb_b_gain;
hi_u16 sample_r_gain;
hi_u16 sample_b_gain;
hi_u16 init_ccm[HI_ISP_CCM_MATRIX_SIZE];
hi_bool ae_route_ex_valid;
hi_bool quick_start_en;
hi_isp_ae_route ae_route;
hi_isp_ae_route_ex ae_route_ex;
hi_isp_ae_route ae_route_sf;
hi_isp_ae_route_ex ae_route_sf_ex;
} hi_isp_init_attr;
Members
Member |
Description |
|---|---|
is_ir_mode |
Whether to enable the IR mode when the ISP is started |
exp_time |
Initial exposure time of the AE when the ISP starts for the first time. The unit is µs. In FSWDR mode, this member indicates the exposure time of the shortest frame (VS). Not supported. |
a_gain |
Initial sensor analog gain of the AE when the ISP starts for the first time. The precision is 10 bits. Not supported. |
d_gain |
Initial sensor digital gain of the AE when the ISP starts for the first time. The precision is 10 bits. Not supported. |
ispd_gain |
Initial ISP digital gain of the AE when the ISP starts for the first time. The precision is 10 bits. Not supported. |
exposure |
Initial exposure value of the AE when the ISP starts for the first time. It equals the product of the exposure time and exposure gain. The unit of the exposure time is μs |
init_iso |
Initial AE ISO value when the ISP starts for the first time |
lines_per500ms |
Number of exposure lines in every 500 ms, used for calculating the initial exposure value of the AE. |
piris_fno |
Equivalent gain corresponding to the f-number of the P-Iris. Not supported. |
wb_r_gain |
R channel gain of the AWB when the ISP starts for the first time |
wb_g_gain |
G channel gain of the AWB when the ISP starts for the first time |
wb_b_gain |
B channel gain of the AWB when the ISP starts for the first time |
sample_r_gain |
G/R value of the online AWB parameter calibration of the current sample |
sample_b_gain |
G/B value of the online AWB parameter calibration of the current sample |
init_ccm[HI_ISP_CCM_MATRIX_SIZE] |
CCM value when the ISP starts for the first time. #define HI_ISP_CCM_MATRIX_NUM 7 |
ae_route_ex_valid |
Whether the extended AE allocation route takes effect when the ISP starts for the first time. If the value is HI_TRUE, the extended allocation route is used. Otherwise, the common allocation route is used. |
quick_start_en |
No-light-sensor quick start |
ae_route |
AE allocation route when the ISP starts for the first time. |
ae_route_ex |
Extended AE allocation route when the ISP starts for the first time. |
ae_route_sf |
AE allocation route for short frames when the ISP starts for the first time; used only in WDR mode. |
ae_route_sf_ex |
Extended AE allocation route for short frames when the ISP starts for the first time; used only in WDR mode. |
Restrictions
- Before the ISP is started, set the initial AWB gain and CCM coefficient to improve the color consistency of the previous and next frames.
- Before the ISP is started, set the initial AE route so that after the frame rate is changed, the AE algorithm can retain the initial AE route and make it automatically take effect.