hi_isp_ae_stats

Description

Defines AE statistics.

Definition

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

#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

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.
  • The FE statistics before WDR fusion (FE) are affected by gains of the processing modules before FE AE (DG/WB is configured for the procesing modules before FE AE.). The algorithm ensures that FE gain values of the modules are the same as those of the BE. Therefore, you do not need to configure the FE gain separately.
  • When the image width is less than 600 or the image height is less than 200, the zoned statistics are unavailable.