The present application discloses a method for converting a DP interface to an
HDMI interface and an interface converter, comprising: receiving the main
data stream attribute MSA sent by the DP interface;
parsing the MSA to obtain the total number of horizontal lines occupied by the vertical synchronization Vsync
signal and the vertical back
porch VBP; delaying the sending of the
data stream sent by the DP interface to the
HDMI interface, and the number of horizontal lines occupied by the delayed sending in the
time domain is a total of X; when a data enable DE flag is detected in the
data stream sent by the DP interface, sending a Vsync
signal to the
HDMI interface. In this way, the data
stream of the HDMI interface is staggered by X horizontal lines compared to the data
stream of the DP interface, and the
time domain position of the Vsync
signal is overlapped with the position of the DE flag. Furthermore, when the DE flag is detected, the Vsync signal is sent, which ensures the
standardization of the data
stream sent to the HDMI interface and improves the compatibility of the DP interface to the HDMI interface. Compared with adapting the
graphics card's
software and hardware to enable it to have the ability to send AS-SDP, the resource overhead of the present application is small, which reduces the implementation cost.