hi_isp_ae_stitch_stats

Description

Defines AE statistics in stitching mode.

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_MAX_PIPE_NUM][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_MAX_PIPE_NUM][HI_ISP_AE_ZONE_ROW][HI_ISP_AE_ZONE_COLUMN][HI_ISP_BAYER_CHN_NUM]; 
}hi_isp_ae_stitch_stats;

Members

Member

Description

fe_hist1024_value[HI_ISP_WDR_MAX_FRAME_NUM][HI_ISP_HIST_NUM]

Global 1024-segment histogram information in the FE.

Value range: [0x0, 0xFFFFFFFF]

#define HI_ISP_WDR_MAX_FRAME_NUM 	4
#define HI_ISP_HIST_NUM  1024

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[HI_ISP_MAX_PIPE_NUM]

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[HI_ISP_HIST_NUM]

Global 1024-segment histogram information in the BE.

Value range: [0x0, 0xFFFFFFFF]

#define HI_ISP_HIST_NUM 1024

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[HI_ISP_MAX_PIPE_NUM]

Average value of BE zoned statistics, indicating the average values of components R, Gr, Gb, and B respectively in sequence.

Value range: [0x0, 0xFFFF]

#define HI_ISP_MAX_PHY_PIPE_NUM 	4
#define HI_ISP_MAX_VIR_PIPE_NUM 	0
#define HI_ISP_MAX_PIPE_NUM 	(HI_ISP_MAX_PHY_PIPE_NUM + HI_ISP_MAX_VIR_PIPE_NUM)

Restrictions

  • The statistics after stitching take effect only in stitching mode and can be obtained only in the main channel.
  • After stitching, only average values of zoned statistics of pipes in stitching are valid, and the average values of other pipes are invalid. For example, if pipe 0 and pipe 1 are stitched, fe_zone_avg and be_zone_avg have valid statistics only when the subscript of HI_ISP_MAX_PIPE_NUM is 0 or 1.
  • In WDR mode, the statistics of all long and short frames can be obtained only in the main channel for stitching, 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.