hi_ldc_v1_attr
Description
Defines the LDC attributes of the HI_LDC_V1 version.
Prototype
typedef struct {
hi_bool aspect;
hi_s32 x_ratio;
hi_s32 y_ratio;
hi_s32 xy_ratio;
hi_s32 center_x_offset;
hi_s32 center_y_offset;
hi_s32 distortion_ratio;
} hi_ldc_v1_attr;
Members
Member |
Description |
|---|---|
aspect |
LDC mode. The options are as follows:
|
x_ratio |
Horizontal FoV. Value range: [0, 100]. This member is valid only when aspect is set to HI_FALSE. The value falls within the ratio range of the minimum horizontal FoV to the maximum horizontal FoV. |
y_ratio |
Vertical FoV. Value range: [0, 100]. This member is valid only when aspect is set to HI_FALSE. The value falls within the ratio range of the minimum vertical FoV to the maximum vertical FoV. |
xy_ratio |
Overall FoV, including the horizontal FoV and vertical FoV. Value range: [0, 100]. This member is valid when aspect is set to HI_FALSE. The value falls within the ratio range of the minimum overall FoV to the maximum overall FoV. |
center_x_offset |
Horizontal offset of the distortion center relative to the image center. Value range: [–511, +511]. |
center_y_offset |
Vertical offset of the distortion center relative to the image center. Value range: [–511, +511]. |
distortion_ratio |
Distortion ratio. Value range: [-300, 500]. A negative value indicates the pillow type, and a positive value indicates the barrel type. |