hi_mpi_hdmi_set_attr
Applicability
|
Product |
Supported |
|---|---|
|
Atlas 350 Accelerator Card |
☓ |
|
|
☓ |
|
|
☓ |
|
|
√ |
|
|
☓ |
|
|
☓ |
Function Description
Sets the HDMI attributes.
Prototype
hi_s32 hi_mpi_hdmi_set_attr(hi_hdmi_id hdmi, const hi_hdmi_attr *attr)
Parameters
|
Parameter |
Input/Output |
Description |
|---|---|---|
|
hdmi |
Input |
HDMI ID. Value range: [0, 2) |
|
attr |
Input |
Pointer to the structure of the HDMI attributes. Some attributes are not supported currently. For details, see the description of hi_hdmi_attr. |
Returns
- 0: success
- Other values: failure. For details, see HDMI Peripheral Return Codes.
Restrictions
- After the HDMI is enabled by calling the hi_mpi_hdmi_open API and before the HDMI is enabled by calling the hi_mpi_hdmi_start API, call this API to set the HDMI attributes. Ensure that the value of hi_hdmi_id in the hi_mpi_hdmi_open API is the same as that in this API.
If the HDMI has been started by calling hi_mpi_hdmi_start, stop the HDMI by calling hi_mpi_hdmi_stop, set the attributes, and then restart the HDMI. The behavior that does not comply with this process is undefined and is not supported currently.
- If only some attributes need to be set, call the hi_mpi_hdmi_get_attr interface to obtain the attributes, assign values to the attributes, and then set the attributes.
- Currently, this API does not support multiple processes.