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 a video over the HDMI.
This parameter must be set to HI_TRUE in the current version. |
video_format |
Video standard. You are advised to set this parameter to a 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 |
DeepColor 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 |
Audio enable. To enable audio output, set this parameter to HI_TRUE. |
sample_rate |
Audio sampling rate. This parameter needs to be consistent with that of the AO. The current version does not support sampling rates except 48 kHz. 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 one. This parameter needs to be consistent with that of the AO. |
auth_mode_en |
HDMI forcible output mode enable. If this mode is enabled, adaptive adjustment is not made based on the EDID information of the display or authentication device. This mode mainly applies to the authentication scenario.
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 value of this parameter must be the same as the pixel clock of the input timing configured for the VO. You can obtain the value 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. |