Search

CN-120472797-B - Display method, electronic device and readable storage medium

CN120472797BCN 120472797 BCN120472797 BCN 120472797BCN-120472797-B

Abstract

The application relates to the field of display, and discloses a display method, electronic equipment and a readable storage medium. In the method, after the electronic device with the display screen detects a mode switching command in a command mode, a first moment when a first VSync signal of a video mode is to be sent can be determined according to a refresh rate, and TE signals sent by the display screen are controlled to be switched to a high-level state at the first moment. Further, based on the fact that the TE signal switched to the high level state is detected at the first moment, a first VSync signal of the video mode is triggered to be sent at the first moment, and the refresh period of the video mode is instructed to start. Wherein, the sending time of the first VSync signal of the video mode may be equal to or later than the first time. Therefore, the first VSync signal of the video mode is not sent out in advance of the first moment, and display screen flash caused by different pixel light-emitting time lengths before and after the display mode is switched is avoided.

Inventors

  • SU YI
  • HE HAIMING

Assignees

  • 荣耀终端股份有限公司

Dates

Publication Date
20260505
Application Date
20240930

Claims (11)

  1. 1. A display method, applied to an electronic device, the electronic device including a display screen, the method comprising: a mode switch command is detected during a first refresh period of the command mode, controlling the first TE signal to switch from a low state to a high state at a first instant, wherein, The first TE signal is configured to instruct the image frame in the first refresh period to complete display, where the first time is an end time of the first refresh period, and the first time is a start time of a second refresh period corresponding to a video mode, and the first time is related to a screen refresh rate of the display screen; And based on the first TE signal, a vertical synchronous signal is sent at the first moment, the display screen is switched from a command mode to the video mode, and image frames corresponding to the video mode are displayed in the second refresh period corresponding to the video mode.
  2. 2. The method of claim 1, wherein prior to displaying the image frame corresponding to the video mode within the second refresh period corresponding to the video mode, the method further comprises: The first TE signal is switched from a high state to a low state.
  3. 3. The method of claim 1, wherein the content displayed in the command mode comprises a still picture or a moving picture and the content displayed in the video mode comprises video.
  4. 4. A display method, applied to an electronic device, the electronic device including a display screen, the method comprising: Detecting that a first buffer period of a command mode starts at a first moment and ends at a second moment, wherein the first moment is the ending moment of a first refresh period of the command mode, the first buffer period is smaller than or equal to the first refresh period, and the first refresh period is N times of the first buffer period and N epsilon is a positive integer; Detecting that a second refresh period of the command mode starts at the second moment and ends at a third moment, and controlling a second TE signal to switch from a low level state to a high level state at the third moment, corresponding to detecting a mode switching command in the second refresh period of the command mode; The second TE signal is configured to indicate that the image frame in the second refresh period of the command mode is displayed, the third time is an end time of the second refresh period of the command mode, and the third time is a start time of the third refresh period of the corresponding video mode; And based on the second TE signal, a vertical synchronous signal is sent at the third moment, the display screen is switched from a command mode to a video mode, and image frames corresponding to the video mode are displayed in the third refresh period corresponding to the video mode.
  5. 5. The method of claim 4, wherein prior to displaying the image frame corresponding to the video mode within the third refresh period corresponding to the video mode, the method further comprises: The second TE signal is switched from a high state to a low state.
  6. 6. A display method, applied to an electronic device, the electronic device including a display screen, the method comprising: detecting that a second buffer period of a command mode starts at a first moment and ends at a fourth moment, wherein the first moment is the ending moment of a first refresh period of the command mode, the second buffer period is smaller than or equal to the first refresh period, and the first refresh period and the second buffer period are in a multiple relation; detecting a mode switching command in the second buffering period; controlling a third TE signal to switch from a low level state to a high level state at the fourth time corresponding to the detection of the end of the second buffering period at the fourth time, wherein the fourth time is the end time of the second buffering period of the command mode and the fourth time is the start time of the second refresh period of the corresponding video mode; And based on the third TE signal, a vertical synchronous signal is sent at the fourth time, the display screen is switched from a command mode to a video mode, and image frames corresponding to the video mode are displayed in the second refresh period corresponding to the video mode.
  7. 7. The method of claim 6, wherein prior to displaying the image frame corresponding to the video mode within the second refresh period corresponding to the video mode, the method further comprises: The third TE signal is switched from a high state to a low state.
  8. 8. A display method, applied to an electronic device, the electronic device including a display screen, the method comprising: detecting a mode switching command in a first refresh period of a command mode, and controlling a first TE signal to be switched from a low level state to a high level state at a first moment, wherein the first moment is the ending moment of the first refresh period of the command mode; Detecting that a second refresh period of the command mode starts at the first moment and ends at a fifth moment, and controlling the first TE signal to be switched from a low level state to a high level state at the fifth moment; And based on the first TE signal, a vertical synchronous signal is sent at the fifth moment, and the display screen is controlled to be switched from the command mode to the video mode at the fifth moment.
  9. 9. An electronic device comprising a processor and a memory, the memory comprising physical memory and external memory for storing instructions for execution by one or more processors of the electronic device, and the processor for executing the instructions to cause the electronic device to implement the display method of any one of claims 1-8.
  10. 10. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program which, when executed by an electronic device, causes the electronic device to implement the display method of any one of claims 1 to 8.
  11. 11. A computer program product comprising computer programs/instructions which, when run on an electronic device, cause the electronic device to implement the display method of any of claims 1 to 8.

Description

Display method, electronic device and readable storage medium Technical Field The present application relates to the field of display, and in particular, to a display method, an electronic device, and a readable storage medium. Background The refresh rate indicates the number of times the display screen refreshes a frame of images per second, for example, a refresh rate of 120Hz indicates that the display screen refreshes 120 times per second, and the refresh period is 8.3ms (i.e., 1000 ms/120=8.3 ms), i.e., the display screen sends an external vertical synchronization (VSync) signal every 8.3ms to refresh a frame of images. In order to maintain uniformity of screen brightness of the display screen, an emission signal (hereinafter, referred to as an EM signal) corresponding to each refresh period is the same, wherein the EM signal is a signal for controlling pixel emission or pixel extinction of the display screen. For example, three identical EM signals with a period of 2.7ms may be included in each refresh period of 8.3ms, and the light emitting duration of the pixel corresponding to each EM signal is the same. In addition, the display frame rate represents the number of frames of images that the graphics processor (graphics processing unit, GPU) renders per second, e.g., a display frame rate of 120fps represents the GPU rendering 120 frames of images per second, and the rendering period is 8.3ms, i.e., the GPU sends out an internal vertical synchronization (VSync) signal every 8.3ms to indicate that the rendering of one frame of images is complete. It will be appreciated that the refresh rate and the display frame rate are typically kept in synchronization, i.e., the external VSync signal sent by the display screen and the internal VSync signal sent by the GPU are kept in synchronization, so as to ensure that each frame of image is synchronously displayed on the display screen after rendering is completed, thereby providing a smoother viewing experience. However, when the display screen is switched from the command mode (the display mode adopted for displaying the still image or text) to the video mode (the display mode adopted for displaying the dynamic video) based on the mode switching command, the rendering speed of the image frame to be displayed corresponding to the video mode is faster, so that the starting time of the first internal VSync signal of the video mode is advanced, that is, the first refresh period of the video mode is advanced. Based on this, the end time of the last refresh period of the command mode before the first refresh period of the video mode is also advanced, which causes the adjacent refresh periods before and after switching to be different, and the pixel light-emitting time associated with the refresh period to be different, resulting in the display screen having a flicker problem. Disclosure of Invention In order to solve the above problems, the present application provides a display method, an electronic device, and a readable storage medium. The application provides a display method, which is applied to electronic equipment, and comprises the steps of detecting a mode switching command in a first refresh period of a command mode, controlling a first TE signal to switch from a low level state to a high level state at a first moment, wherein the first TE signal is used for indicating that image frames in the first refresh period are displayed, the first moment is the ending moment of the first refresh period and is the starting moment of a second refresh period corresponding to a video mode, the first moment is related to the screen refresh rate of the display screen, and based on the first TE signal, sending a vertical synchronous signal at the first moment, switching the command mode into the video mode by the display screen, and displaying the image frames corresponding to the video mode in the second refresh period corresponding to the video mode. It will be appreciated that the first refresh period of the command mode may refer to time t0 to time t1 shown in fig. 7 mentioned in the embodiment of the present application. The first time may refer to time t1 shown in fig. 7 mentioned in the embodiment of the present application. The second refresh period corresponding to the video mode may refer to time t1 to time t2 shown in fig. 7 mentioned in the embodiment of the present application. The transmission of the vertical synchronization signal at the first time may refer to the internal Vsync signal transmitted at the first time mentioned in the embodiment of the present application. The image frame corresponding to the video mode may refer to the image frame n+1 shown in fig. 7 mentioned in the embodiment of the present application. By the method, the first moment when the first VSync signal corresponding to the video mode is transmitted is determined, and the first moment is also the moment when the first refresh period of the command mode is ended. And the first TE si