hi_hdmi_attr
Description
Defines the HDMI output attributes.
Definition
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 force 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. This parameter must be set to HI_HDMI_VIDEO_FORMAT_VESA_CUSTOMER_DEFINE in the current version. |
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 |
Audio. To enable audio output, set this parameter to HI_TRUE. |
sample_rate |
Audio sampling rate. The configuration of this parameter must be the same as that of the 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, which is the only value supported by the current version. The configuration 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.
The default value is the only value supported by the current version. |
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 in the current version. You can obtain the value by querying the corresponding Video Electronics Standards Association (VESA) standard. |