hi_vi_dev_attr

Function

Defines the attributes of a VI device.

Definition

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;

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

Members

Member

Description

intf_mode

Interface mode.

For details, see hi_vi_intf_mode.

scan_mode

Input scanning mode (progressive or interlaced). Currently, only progressive scanning is supported.

For details, see hi_vi_scan_mode.

data_seq

Input sequence of the YUV data. Only the YUV format is supported, such as VUVU or UVUV.

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

For details, see hi_vi_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.

For details, see hi_vi_data_type.

in_size

Height and width of the image that can be captured by the VI device. For details, see hi_size.

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

Width: [120, 16384]

Height: [120, 16384]

wdr_addr

WDR attribute.

For details, see hi_vi_wdr_attr.

data_rate

Device rate: one pixel per cycle or two pixels per cycle. Only one pixel per cycle is supported.

For details, see hi_data_rate.

reserved

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