hi_vi_ldc_attr

Function

Defines the lens distortion correction (LDC) attributes.

Definition

typedef struct {
    hi_bool enable;
    hi_ldc_version ldc_version;
    union {
        hi_ldc_v1_attr ldc_v1_attr;
        hi_ldc_v2_attr ldc_v2_attr;
    }
} hi_vi_ldc_attr;

For details about basic data type hi_bool, see Basic Data Types.

Members

Member

Description

enable

Which to enable LDC.

  • HI_FALSE: Disables this function.
  • HI_TRUE: Enables this function.

ldc_version

LDC version. For details, see hi_ldc_version.

ldc_v1_attr

LDC attributes. This member is valid only when ldc_version is set to HI_LDC_V1. For details, see hi_ldc_v1_attr.

ldc_v2_attr

LDC attribute. This member is valid only when ldc_version is set to HI_LDC_V2 and must be used with the Gyro DIS. For details, see hi_ldc_v2_attr.