hi_isp_ae_stats
Description
Defines AE statistics.
Definition
#define HI_ISP_WDR_MAX_FRAME_NUM 4
#define HI_ISP_HIST_NUM 1024
#define HI_ISP_BAYER_CHN_NUM 4
#define HI_ISP_AE_ZONE_ROW 15
#define HI_ISP_AE_ZONE_COLUMN 17
typedef struct {
hi_u32 fe_hist1024_value[HI_ISP_WDR_MAX_FRAME_NUM][HI_ISP_HIST_NUM];
hi_u16 fe_global_avg[HI_ISP_WDR_MAX_FRAME_NUM][HI_ISP_BAYER_CHN_NUM];
hi_u16 fe_zone_avg[HI_ISP_WDR_MAX_FRAME_NUM][HI_ISP_AE_ZONE_ROW][HI_ISP_AE_ZONE_COLUMN][HI_ISP_BAYER_CHN_NUM];
hi_u32 be_hist1024_value[HI_ISP_HIST_NUM];
hi_u16 be_global_avg[HI_ISP_BAYER_CHN_NUM];
hi_u16 be_zone_avg[HI_ISP_AE_ZONE_ROW][HI_ISP_AE_ZONE_COLUMN][HI_ISP_BAYER_CHN_NUM]; hi_isp_ae_grid_info fe_grid_info;
hi_isp_ae_grid_info be_grid_info;
} hi_isp_ae_stats;
Members
Member |
Description |
|---|---|
fe_hist1024_value |
Global 1024-segment histogram information in the FE. Value range: [0x0, 0xFFFFFFFF] |
fe_global_avg |
Average value of FE global statistics, indicating the average values of components R, Gr, Gb, and B respectively in sequence. Value range: [0x0, 0xFFFF] |
fe_zone_avg |
Average value of FE zoned statistics, indicating the average values of components R, Gr, Gb, and B respectively in sequence. Value range: [0x0, 0xFFFF] |
be_hist1024_value |
Global 1024-segment histogram information in the BE. Value range: [0x0, 0xFFFFFFFF] |
be_global_avg |
Average value of BE global statistics, indicating the average values of components R, Gr, Gb, and B respectively in sequence. Value range: [0x0, 0xFFFF] |
be_zone_avg |
Average value of BE zoned statistics, indicating the average values of components R, Gr, Gb, and B respectively in sequence. Value range: [0x0, 0xFFFF] |
fe_grid_info |
Coordinates of the FE zoned statistics. |
be_grid_info |
Coordinates of the BE zoned statistics. |
Restrictions
- In WDR mode, the statistics of all long and short frames can be obtained only in the main channel, namely the pipe where the shortest frame is located. Take 2-to-1 WDR mode as an example. The subscript of HI_ISP_WDR_MAX_FRAME_NUM is set to 0, indicating the short frame statistics; if the subscript is 1, it indicates the long frame statistics.
- Before WDR combination (FE), statistics are affected by the gains of the processing modules before the FE AE. (The processing modules before the FE AE are DG and WB.) The FE gain values of these modules are the same as the gain value of the BE, which is implemented using algorithms. Therefore, they do not need to be separately configured.
- When the image width is less than 600 or the image height is less than 200, zoned statistics are unavailable.