hi_mpi_vi_set_dev_attr
Applicability
|
Product |
Supported |
|---|---|
|
|
x |
|
|
x |
|
|
√ |
|
|
x |
|
|
x |
Description
Sets the attributes of a VI device.
Before calling this API, ensure that the VI device is disabled. If the VI device is enabled, disable it by calling hi_mpi_vi_disable_dev.
Prototype
hi_s32 hi_mpi_vi_set_dev_attr(hi_vi_dev vi_dev, const hi_vi_dev_attr *dev_attr)
Parameters
|
Parameter |
Input/Output |
Description |
|---|---|---|
|
vi_dev |
Input |
VI device ID. Value range: [0, 4) |
|
dev_attr |
Input |
Pointer to the attributes of the VI device. Static attributes. The dev_attr parameter is used to configure the attributes of a specified VI device, such as video interface mode, data type, image width, and image height, for connecting to peripheral sensors. |
Returns
- 0: success
- Other values: failure. For details, see VI Return Codes.