hi_hdmi_attr
Description
Defines the HDMI output attributes.
Prototype
typedef struct {
hi_bool hdmi_en;
hi_hdmi_video_format video_format;
hi_hdmi_deep_color deep_color_mode;
hi_bool audio_en;
hi_hdmi_sample_rate sample_rate;
hi_hdmi_bit_depth bit_depth;
hi_bool auth_mode_en;
hi_bool deep_color_adapt_en;
hi_u32 pix_clk;
} hi_hdmi_attr;
Members
Member |
Description |
|---|---|
hdmi_en |
Whether to forcibly output video over the HDMI
This field must be set to HI_TRUE in the current version. |
video_format |
Video standard. You are advised to set this parameter to the standard supported by the sink capability set. In the current version, this parameter can only be set to HI_HDMI_VIDEO_FORMAT_VESA_CUSTOMER_DEFINE. |
deep_color_mode |
Deep color output mode. The default value is HI_HDMI_DEEP_COLOR_24BIT (HI_HDMI_DEEP_COLOR_OFF). Some sinks do not support HI_HDMI_DEEP_COLOR_30BIT and HI_HDMI_DEEP_COLOR_36BIT. Setting this deep color may cause exceptions. Therefore, you need to set this deep color to the default value. |
audio_en |
Whether to enable the audio: It must be set to HI_TRUE when the audio output is used. |
sample_rate |
Audio sampling rate. The value of this parameter must be the same as that of AO. 48 kHz is the only sampling rate supported by the current version. You are advised to set the sampling rate to a value supported by the sink capability set. |
bit_depth |
Audio bit width. The default value is 16. In the current version, the value cannot be changed to a non-default value. (The value of this parameter must be the same as that of the AO.) |
auth_mode_en |
HDMI force output mode. If this mode is enabled, adaptive adjustment is not made based on the Extended Display Identification Data (EDID) of the display or authentication device. This mode mainly applies to authentication.
In the current version, this parameter cannot be set to a non-default value. |
deep_color_adapt_en |
In the current version, this parameter can only be set to HI_TRUE. |
pix_clk |
Pixel clock. The parameter value must be the same as the pixel clock corresponding to the input timing standard configured by the VO module. The value can be obtained by querying the corresponding VESA standard. In the current version, the value cannot be changed to one different from the pixel clock of the input timing configured for the VO. |