hi_mpi_hdmi_get_attr
The
The
Description
Obtains the HDMI attributes.
Restrictions
- After enabling an HDMI by calling hi_mpi_hdmi_open, call this API to obtain the HDMI attributes. Ensure that the value of hi_hdmi_id in hi_mpi_hdmi_open is the same as that in this API.
- Currently, this API does not support multiple processes.
Prototype
hi_s32 hi_mpi_hdmi_get_attr(hi_hdmi_id hdmi, 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 hi_hdmi_attr. |
Returns
- 0: success
- Other values: failure. For details, see HDMI Peripheral Return Codes.
Parent topic: HDMI Peripherals