hi_vi_dev_attr

Description

Defines the attributes of a VI device.

Prototype

typedef struct {
    hi_vi_intf_mode      intf_mode;
    hi_vi_scan_mode      scan_mode;
    hi_vi_data_seq       data_seq;
    hi_vi_data_type      data_type;
    hi_size              in_size;
    hi_vi_wdr_attr       wdr_attr;
    hi_data_rate         data_rate;
    hi_u32               reserved[30];
} hi_vi_dev_attr;

Members

Member

Description

intf_mode

Interface mode.

scan_mode

Input scanning mode (progressive or interlaced). Supports only the progressive scanning mode.

data_seq

Input sequence of the YUV data. Supports only the YUV format (such as VUVU or UVUV).

If data_type is set to HI_VI_DATA_TYPE_YUV, you need to configure data_seq.

data_type

Input data type. Generally, the sensor input is raw data. The sensor input of some embedded ISPs can also be YUV.

in_size

Height and width of the picture that can be captured by the VI device.

The value ranges of the width and height for the captured picture are shown as follows:

Width: [120, 16384]

Height: [120, 16384]

data_rate

Device rate: one pixel per cycle or two pixels per cycle. Supports only one pixel per cycle.

wdr_addr

WDR attribute.

reserved

Reserved. To ensure compatibility in later versions, use the memset struct for resetting and initialization. Do not explicitly access the reserved field in the code.