hi_isp_focus_zone

Description

Defines AF statistical parameters.

Definition

typedef struct {
    hi_u16  v1; 
    hi_u16  h1; 
    hi_u16  v2; 
    hi_u16  h2;  
    hi_u16  y;
    hi_u16  hl_cnt; 
} hi_isp_focus_zone;

Members

Member

Description

v1

FIR filter statistics for the AF odd columns in zoned statistics. The value range is [0, 0xFFFF].

h1

IIR filter statistics for the AF odd rows in zoned statistics. The value range is [0, 0xFFFF].

v2

FIR filter statistics for the AF even columns in zoned statistics. The value range is [0, 0xFFFF].

h2

IIR filter statistics for the AF even rows in zoned statistics. The value range is [0, 0xFFFF].

y

AF luminance statistics in zoned statistics (accumulated luminance of each pixel in zones). The value range is [0, 0xFFFF].

hl_cnt

Value of the AF luminance threshold-exceeding counter in zoned statistics. The value range is [0, 0xFFFF].

Restrictions

y is the accumulated value of the Y components of each block. It can be used to work with the AF algorithm. For example, when some blocks have highlight illuminants, the FV value is easily affected. In this case, the impact on the global FV exerted by the block FV can be alleviated based on the luminance. In addition, these blocks can be used to implement a motion detection algorithm to detect the motion interference during focusing. You can use the preceding statistics based on the requirements of your own AF algorithm.