hi_isp_ae_accuracy_type

Description

Defines the accuracy type of the exposure time and gain.

Definition

typedef enum {
    HI_ISP_AE_ACCURACY_DB = 0,
    HI_ISP_AE_ACCURACY_LINEAR,
    HI_ISP_AE_ACCURACY_TABLE,
    HI_ISP_AE_ACCURACY_BUTT,
} hi_isp_ae_accuracy_type;

Members

Member

Description

HI_ISP_AE_ACCURACY_DB

DB accuracy type.

DB accuracy refers to the gain increases in the form of multiplication. For example, if the sensor-supported again is 0 db, 0.3 db, or 0.6 db, the accuracy type can be set to HI_ISP_AE_ACCURACY_DB, and the value can be set to 0.3. In this case, if again is 80, it indicates that 80 x 0.3 db = 24 db, and 24 db is 16x gain. For another example, if the sensor-supported again is 1x, 2x, 4x, or 8x, the corresponding db is 0 db, 6 db, 12 db, or 18 db. Therefore, the accuracy type is set to HI_ISP_AE_ACCURACY_DB, and the value is set to 6. A computation accuracy error occurs when the AE algorithm implements linear-to-DB conversion. When the DB accuracy is high (less than 1), the table accuracy is recommended.

HI_ISP_AE_ACCURACY_LINEAR

Linear accuracy type.

Linear accuracy means that the gain increases evenly. For example, if the sensor-supported again is 1x, 1(1 + 1/16), or 1(1 + 2/16), the accuracy type can be set to HI_ISP_AE_ACCURACY_LINEAR, and the accuracy value can be set to 0.0625, if again is 32, the gain is 32 x 0.0625 = 2.

HI_ISP_AE_ACCURACY_TABLE

Table accuracy type

The table accuracy indicates that the gain multiple is obtained by querying the table. The table uses the 10-bit accuracy, so 1024 indicates 1x gain. When the gain values of some sensors increase irregularly or the DB accuracy is high, you can use the table accuracy mode. The AE algorithm computes the required analog gain or digital gain, and uses the closest value in the sensor gain table as the digital gain or analog gain.

When this mode is used, the callback function in the corresponding initialization callback structure hi_isp_ae_sensor_exp_func is required.