hi_mpi_hdmi_set_attr

Applicable Products

Product

Supported

Ascend 950PR / Ascend 950DT

☓

Atlas A3 training products / Atlas A3 inference products

☓

Atlas A2 training products / Atlas A2 inference products

☓

Atlas 200I/500 A2 inference products

√

Atlas inference products

☓

Atlas training products

☓

Function

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 hi_hdmi_attr.

Returns

Restrictions

  • After calling hi_mpi_hdmi_open to enable an HDMI and before calling hi_mpi_hdmi_start to start the HDMI, call this API to set the HDMI attributes. Ensure that the value of hi_hdmi_id in hi_mpi_hdmi_open is the same as that in this API.

    If hi_mpi_hdmi_start has been called to start the HDMI, call hi_mpi_hdmi_stop to stop the HDMI first, 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, obtain the attributes by calling hi_mpi_hdmi_get_attr, assign values to these attributes, and then set them.
  • Currently, this API does not support multiple processes.

Reference

For the API call sequence, see Video Decoding, Processing, and Display (NVR Scenario).