hi_dis_attr

Description

Defines the DIS attribute.

Prototype

typedef struct {
    hi_bool enable;
    hi_bool gdc_bypass;
    hi_u32  moving_subject_level;
    hi_s32  rolling_shutter_coef;
    hi_s32  timelag;
    hi_u32  view_angle;
    hi_u32  horizontal_limit;
    hi_u32  vertical_limit;
    hi_bool still_crop;
    hi_u32  strength;
} hi_dis_attr;

Members

Member

Description

enable

Specifies whether to enable the DIS function.

  • HI_FALSE: disabled;
  • HI_TRUE: enabled.

gdc_bypass

Whether to enable GDC bypass in the DIS function.

  • HI_FALSE: disables bypass GDC. The GDC is used for project mapping function (PMF) correction.
  • HI_TRUE: enables bypass GDC. The GDC is bypassed and not used for PMF correction.

moving_subject_level

Level used to determine whether an object is moving. A smaller value indicates more stable motion but more likely offset. A larger value indicates weaker image stabilization effect and greater background jitter during motion. However, image offset can be reduced.

Value range: [0, 6]

rolling_shutter_coef

Correction parameter for correcting the rolling shutter effect.

Value range: [0, 1000]

timelag

Time difference between the frame start time and gyroscope data collection time, in microseconds.

Value range: [–2000000, 2000000].

view_angle

Reserved

horizontal_limit

Horizontal offset limit. When the horizontal offset of the background drag caused by a large object exceeds a certain amplitude, the DIS is not performed. The offset amplitude is calculated as follows: 2047 x horizontal_limit/1000.

Value range: [0, 1000]

vertical_limit

Vertical offset limit. When the vertical offset of the background drag caused by a large object exceeds a certain amplitude, the DIS is not performed. The offset amplitude is calculated as follows: 2047 x vertical_limit/1000.

Value range: [0, 1000]

still_crop

The DIS effect is disabled, but the picture is still cropped based on the configured ratio.

strength

Gyro-based DIS strength. This parameter is valid only in GYRO mode and is invalid in GME mode. The default strength is 1024.

Value range: [0, 1024].