Display screen refreshing method and device and electronic equipment
During the refreshing process of the display screen of the electronic device, a refresh signal is generated based on the preset conditions of the TE signal, which solves the problem of image overlap and improves the display effect.
Patent Information
- Application Number
- CN202411905616.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-23
- Publication Date
- 2025-04-04
AI Technical Summary
During the refreshing process of the display screen of the electronic device, the image processing module synthesizes the current frame image before the image display of the previous frame is completed, resulting in the image of the previous frame and the current frame at the same time, causing the image of two frames to overlap and affect the display effect.
By obtaining the TE signal output from the display screen and generating a refresh signal when the preset conditions are met, the display screen is controlled to refresh. The specific steps include obtaining the first TE signal and the TE signal of the last N output, and determining whether the preset conditions are met to generate a refresh signal. N is a positive integer.
The frequency of generating refresh signals is reduced, and the phenomenon of overlapping images on the display screen is avoided, thereby improving the display image display effect of electronic devices.
Smart Images

Figure CN119763465A_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the field of image processing technology, and specifically relates to a display screen refreshing method, device and electronic equipment. Background Art
[0002] At present, when the display screen of an electronic device displays an image, the display screen can send a tearing effect (TE) signal to the central processing unit (CPU) to indicate that the image of the current frame has been refreshed and the next frame of the image can be sent. After receiving the TE signal, the CPU can process the TE signal to obtain a hardware vertical synchronization (HW-VSYNC) signal, and report the HW-VSYNC signal to the image processing module in the electronic device, and control the refresh of the display screen through the image processing module. For example, the HW-VSYNC signal can be reported to the display synthesizer (SurfaceFlinger) in the electronic device, so as to control the refresh of the display screen through the SurfaceFlinger.
[0003] However, after the HW-VSYNC signal is reported, if the image processing module synthesizes the current frame image before the previous frame image is displayed, the previous frame image and the current frame image will be displayed on the display screen at the same time, resulting in a phenomenon of two frames of images overlapping on the display screen, thereby resulting in poor image display effect on the display screen of the electronic device. Summary of the invention
[0004] The purpose of the embodiments of the present application is to provide a display screen refreshing method, device and electronic device, which can improve the display effect of an image.
[0005] In a first aspect, an embodiment of the present application provides a method for refreshing a display screen, the method comprising: obtaining a first tearing effect TE signal output by a display screen of an electronic device; generating a first refresh signal based on the first TE signal when the first TE signal and N second TE signals meet preset conditions, the N second TE signals being the TE signals output by the display screen N most recent times before the first TE signal; based on the first refresh signal, controlling the display screen to refresh; wherein N is a positive integer.
[0006] In a second aspect, an embodiment of the present application provides a display screen refreshing device, which includes: an acquisition module and a processing module; the acquisition module is used to acquire a first tearing effect TE signal output by a display screen of an electronic device; the processing module is used to generate a first refresh signal based on the first TE signal when the first TE signal acquired by the acquisition module and N second TE signals meet preset conditions, and the N second TE signals are the TE signals output by the display screen N most recent times before the first TE signal; the processing module is also used to control the display screen to refresh based on the first refresh signal; wherein N is a positive integer.
[0007] In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor and a memory, wherein the memory stores programs or instructions that can be run on the processor, and when the program or instructions are executed by the processor, the steps of the method described in the first aspect are implemented.
[0008] In a fourth aspect, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by a processor, the steps of the method described in the first aspect are implemented.
[0009] In a fifth aspect, an embodiment of the present application provides a chip, comprising a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run a program or instruction to implement the method described in the first aspect.
[0010] In a sixth aspect, an embodiment of the present application provides a computer program product, which is stored in a storage medium and is executed by at least one processor to implement the method described in the first aspect.
[0011] In an embodiment of the present application, a first TE signal output by a display screen of an electronic device is obtained; when the first TE signal and N second TE signals meet a preset condition, a first refresh signal is generated based on the first TE signal, and the N second TE signals are TE signals output by the display screen N times before the first TE signal; based on the first refresh signal, the display screen is controlled to refresh; wherein N is a positive integer. Through this scheme, when a new TE signal is received, it can be determined whether to generate a refresh signal by combining the new TE signal and the N TE signals received before the new TE signal. Thus, the refresh of the display screen can be controlled by generating a refresh signal only when the preset conditions are met, so as to reduce the frequency of generating the refresh signal, so that the frequency of generating the refresh signal can be lower than the frequency of the TE signal. In addition, the phenomenon of overlapping display of two frames of images on the display screen can be avoided. In this way, the image display effect of the display screen of the electronic device is improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0012] Figure 1It is a schematic diagram of a workflow for displaying an image provided by an embodiment of the present application;
[0013] Figure 2 It is a schematic diagram of the output frequency of Fix-TE and Multi-TE provided in an embodiment of the present application;
[0014] Figure 3 This is a schematic diagram of a workflow for simultaneously displaying two frames of images provided in an embodiment of the present application;
[0015] Figure 4 is a flow chart of a display screen refreshing method provided in an embodiment of the present application;
[0016] Figure 5 is a schematic diagram of a generation frequency of a HW-VSYNC signal provided in an embodiment of the present application;
[0017] Figure 6 It is a structural schematic diagram of a display screen refreshing device provided in an embodiment of the present application;
[0018] Figure 7 This is one of the hardware structure diagrams of an electronic device provided in an embodiment of the present application;
[0019] Figure 8 This is the second schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0020] The following will be combined with the drawings in the embodiments of the present application to clearly describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments in the present application belong to the scope of protection of this application.
[0021] The terms "first", "second", etc. in the specification of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the terms used in this way can be interchangeable under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here, and the objects distinguished by "first", "second", etc. are generally of one type, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and / or" in the specification represents at least one of the connected objects, and the character " / " generally indicates that the objects associated with each other are in an "or" relationship.
[0022] The terms "at least one (item)", "at least one of" and the like in the specification of the present application refer to any one, any two or a combination of more than two of the objects contained therein. For example, at least one (item) of a, b, and c can be represented by: "a", "b", "c", "a and b", "a and c", "b and c" and "a, b and c", where a, b, and c can be single or multiple. Similarly, "at least two (items)" refers to two or more, and its meaning is similar to that of "at least one (item)". The logo in the present application is text, symbol, image, etc. used to indicate information, and logos or other containers can be used as carriers for displaying information, including but not limited to text logos, image logos, symbol logos, etc.
[0023] Some terms and nouns involved in the embodiments of the present application are explained below.
[0024] 1. SurfaceFlinger is a graphics processing module in electronic devices, which can receive and process multi-layer image data, synthesize them, and then send them to the display screen of the electronic device.
[0025] 2. The TE signal is a hardware refresh signal output by the display screen of an electronic device. It is used to synchronize the display screen with the CPU of the electronic device to prevent screen tearing.
[0026] 3. HW-VSYNC is the hardware refresh signal received by SurfaceFlinger, which is the result of the electronic device processing the TE signal.
[0027] 4. The Vact area and the Vblank area can be used to indicate the refresh state of the display screen. The Vact area can indicate that the display screen is in the process of line-by-line scanning, and the Vblank area can indicate that the display screen is in an idle state. It can be understood that when the display screen is in the refresh state, the display screen can be refreshed to prevent screen tearing; and when the display screen is in an idle state, the display screen can stop refreshing to save power consumption.
[0028] 5. The display frame rate refers to the number of frames displayed on the display per second. A high frame rate means that the image on the display is updated more quickly, and the corresponding visual experience is also smoother.
[0029] 6. The refresh rate of the display refers to the number of times the display refreshes the image per second. A high refresh rate can reduce image flickering on the display and make the picture more stable.
[0030] The display screen refreshing method, device and electronic device provided by the embodiments of the present application are described in detail below with reference to the accompanying drawings through specific embodiments and their application scenarios.
[0031] The display screen refreshing method, device, and electronic device provided in the embodiments of the present application can be applied to scenarios where an electronic device displays an image through a display screen.
[0032] like Figure 1 The figure shows the workflow of an electronic device displaying an image through a display screen. Each frame of the image needs to be drawn by the application, synthesized by SurfaceFlinger, and finally displayed on the display screen.
[0033] It should be noted that Figure 1 The frame-1 shown in FIG. 1 is used to represent the previous frame image of frame 0.
[0034] In order to optimize the jamming problem caused by execution timeout in the middle of the image processing process, a refresh signal of 360Hz, 480Hz or even higher frequency can be provided to the display so as to receive the frame refresh request of SurfaceFlinger faster and refresh the display screen.
[0035] The high-frequency frame refresh technology mentioned above may include Fix-TE and Multi-TE. Figure 2 As shown in the figure, Fix-TE technology means that the TE frequency is fixed, and its frequency can reach 360Hz or higher regardless of whether the display is in the frame refresh state or the idle state; Multi-TE technology means that the high-frequency TE signal is output in time-sharing mode. The high-frequency TE is not output when the display is refreshing the frame (i.e., the Vact area), and TE is only output at the start and end positions. High-frequency TE is output when the frame is not refreshed (i.e., the Vblank area).
[0036] It should be noted that although the display can output TE signals of 360Hz or higher frequency, its screen refresh frame rate is usually limited to 120Hz at most due to module power consumption and cost limitations, and it is temporarily unable to reach a higher frequency.
[0037] Therefore, since the TE signal frequency output by the display is higher than the display frame rate, if the high-frequency HW-VSYNC with the same TE frequency is directly reported to SurfaceFlinger, such as Figure 3 As shown, it may cause the problem of 2 frames overlapping on the display screen.
[0038] The display screen refresh method, device and electronic device provided in the embodiments of the present application can determine whether to generate a refresh signal when receiving a new TE signal by combining the new TE signal and the N TE signals received before the new TE signal. Thus, the display screen refresh can be controlled by generating a refresh signal only when a preset condition is met, so as to reduce the frequency of generating the refresh signal, so that the frequency of generating the refresh signal can be lower than the frequency of the TE signal. In addition, the phenomenon of overlapping display of two frames of images on the display screen can be avoided. In this way, the image display effect of the display screen of the electronic device is improved.
[0039] The display screen refreshing method provided in the embodiment of the present application may be executed by a display screen refreshing device. Exemplarily, the display screen refreshing device may be an electronic device, or a component in the electronic device, such as an integrated circuit or a chip. The display screen refreshing method provided in the embodiment of the present application will be described below by taking an electronic device as an example.
[0040] The present application provides a display screen refreshing method. Figure 4 FIG. 1 is a flow chart of a display screen refreshing method provided by an embodiment of the present application, which can be applied to electronic devices. Figure 4 As shown, the display screen refreshing method provided in the embodiment of the present application may include the following steps 401 to 403.
[0041] Step 401: The electronic device obtains a first TE signal output by a display screen of the electronic device.
[0042] In some embodiments of the present application, the first TE signal may be the TE signal most recently output by the display screen of the electronic device, or the TE signal currently output. In other words, the first TE signal is the last TE signal output by the display screen of the electronic device at the current moment.
[0043] Step 402: When the first TE signal and N second TE signals meet a preset condition, the electronic device generates a first refresh signal based on the first TE signal.
[0044] The N second TE signals may be TE signals output by the display screen N times before the first TE signal, where N is a positive integer.
[0045] In some embodiments of the present application, the TE signals output N times most recently before the first TE signal may be N TE signals output after the electronic device outputs a refresh signal most recently and before the display screen outputs the first TE signal.
[0046] Exemplarily, taking N=8 as an example, the N second TE signals may be 8 TE signals output after the electronic device outputs a refresh signal most recently and before the display screen outputs a first TE signal.
[0047] In some embodiments of the present application, the first refresh signal may be used to trigger a frame refresh on a display screen of an electronic device.
[0048] Exemplarily, the first refresh signal may be a HW-VSYNC signal.
[0049] For example, Figure 5As shown, the electronic device can determine whether the TE signal currently output by the display screen and the N TE signals previously output meet the preset conditions only when the display screen updates the image, and generate a HW-VSYNC signal based on the currently received TE signal to convert the high-frequency TE signal into a low-frequency fixed-frequency HW-VSYNC signal, thereby solving the screen tearing problem and achieving the purpose of frame stabilization.
[0050] It should be noted that Figure 5 The dotted line in can represent one generation of the HW-VSYNC signal. In other words, Figure 5 The frequency of the HW-VSYNC signal shown in is the same as the display frame rate.
[0051] In some embodiments of the present application, when receiving the first TE signal, the electronic device can first determine whether to generate the first refresh signal in combination with the N TE signals output by the display screen N times before the first TE signal. Thus, the high-frequency TE signal can be converted into a low-frequency fixed-frequency refresh signal without generating the first refresh signal, so as to achieve the purpose of stabilizing the frame and avoid the phenomenon of overlapping display of two frames of images on the display screen.
[0052] Step 403: The electronic device controls the display screen to refresh based on the first refresh signal.
[0053] In some embodiments of the present application, the electronic device may send a first refresh signal to the display screen through an image synthesis module, so that the display screen may refresh frames.
[0054] Exemplarily, the electronic device may send a refresh frame request (ie, a first refresh signal) to the display screen through SurfaceFlinger, so that the display screen may be refreshed based on the refresh frame request.
[0055] In some embodiments of the present application, the above step 403 can be specifically implemented through the following step 403a.
[0056] Step 403a: The electronic device controls the display screen to refresh based on the first refresh signal through the image processing module of the electronic device.
[0057] In some embodiments of the present application, the above-mentioned image processing module may be SurfaceFlinger.
[0058] Exemplarily, take the first refresh signal as an HW-VSYNC signal as an example. During the process of displaying a picture on the display screen of an electronic device, the display screen can send a TE signal to the CPU of the electronic device to indicate that the image of the current frame has been refreshed and the next frame of image can be sent. After receiving the TE signal, the CPU can process the TE signal to obtain an HW-VSYNC signal, and report the HW-VSYNC signal to the SurfaceFlinger in the electronic device, and send a refresh frame request to the display screen through the image processing module to refresh the display screen.
[0059] The display screen refresh method provided in the embodiment of the present application can determine whether to generate a refresh signal when a new TE signal is received, by combining the new TE signal and the N TE signals received before the new TE signal. Thus, the display screen refresh can be controlled by generating a refresh signal only when a preset condition is met, so as to reduce the frequency of generating the refresh signal, so that the frequency of generating the refresh signal can be lower than the frequency of the TE signal. In addition, the phenomenon of overlapping display of two frames of images on the display screen can be avoided. In this way, the image display effect of the display screen of the electronic device is improved.
[0060] In some embodiments of the present application, the method for determining whether to generate the first refresh signal may include a cumulative method and a time window method.
[0061] Among them, the accumulation method can set a threshold, and generate a refresh signal when the number of TE signals obtained reaches or exceeds the threshold; the time window method can determine an effective time window for a refresh signal based on the electronic device display screen, and a refresh signal will only be generated when the obtained TE signal is within the effective time window.
[0062] Furthermore, in the time window method, the electronic device can also modify the effective time window according to the actual generation time of the refresh signal.
[0063] In some embodiments of the present application, before the above step 402, the display screen refreshing method provided by the embodiment of the present application may further include the following step 404, and the above step 402 may include the following step 402a.
[0064] Step 404: When the frequencies of the N second TE signals match, the electronic device obtains a total number (N+1) of the first TE signal and the N second TE signals.
[0065] In some embodiments of the present application, the matching of the frequencies of the N second TE signals mentioned above can be understood as: the frequencies of the N second TE signals output by the display screen of the electronic device are all equal.
[0066] Exemplarily, the electronic device may output N second TE signals at the same frequency in the Fix-TE mode.
[0067] In some embodiments of the present application, the above-mentioned total number may refer to the total number of one first TE signal and N second TE signals obtained, that is, N+1.
[0068] Step 402a: When the total number N+1 reaches a first threshold, the electronic device generates a first refresh signal based on the first TE signal.
[0069] The first threshold may be a ratio of a frequency of a TE signal output by the display screen to a frame rate of the display screen.
[0070] In some embodiments of the present application, after generating a first refresh signal based on a first TE signal, the electronic device may set the number of TE signals to 0 and restart accumulating the number of TE signals output by the display screen, so as to generate a corresponding refresh signal when the total number N+1 of the newly acquired TE signal and the accumulated N TE signals reaches the first threshold again.
[0071] For example, if the display screen outputs TE signals at a frequency of 480 Hz, the display screen frame rate is 60 Hz, and the above frame refresh information is HW-VSYNC, the first threshold is 480 Hz / 60 Hz = 8. In this way, the electronic device can generate a refresh signal after the display screen outputs 8 TE signals, and control the display screen to refresh based on the refresh signal.
[0072] It can be understood that, in this case, for every 8 TE signals output by the display screen, the electronic device can generate a signal and control the display screen based on the signal.
[0073] In this way, since the electronic device can output a refresh signal only after the display screen outputs multiple TE signals based on the ratio of the frequency of the TE signal output by the display screen to the frame rate of the display screen, the frequency of generating the refresh signal can be reduced, thereby avoiding the phenomenon of overlapping display of two frames of images on the display screen. In this way, the image display effect of the display screen of the electronic device is improved.
[0074] In some embodiments of the present application, before the above step 402, the display screen refreshing method provided in the embodiment of the present application may further include the following steps 405 and 406, and the above step 402 may include the following step 402b.
[0075] Step 405: When the frequencies of some of the N second TE signals do not match, the electronic device determines a first output time difference between the first TE signal and the third TE signal.
[0076] The third TE signal may be the last second TE signal among the N second TE signals.
[0077] In some embodiments of the present application, the frequency mismatch of some second TE signals among the N second TE signals may be understood as: the frequencies of some second TE signals among the N second TE signals are different from the frequencies of other second TE signals.
[0078] Exemplarily, in the Multi-TE mode, the electronic device may output a TE signal at a first frequency in the Vact region and output a TE signal at a second frequency in the Vblank region, and the first frequency is different from the second frequency.
[0079] It is understandable that, for the Multi-TE mode, when using the accumulation method, the electronic device needs to distinguish whether the acquired first TE signal belongs to the Vact region or the Vblank region.
[0080] In some embodiments of the present application, the first output time difference may represent an output time difference between two TE signals last output by a display screen of an electronic device.
[0081] Step 406: The electronic device determines a second value based on the first output time difference and the first value.
[0082] The first value may be determined by a display screen frame rate.
[0083] In some embodiments of the present application, the above-mentioned first numerical value may indicate the value of the duration corresponding to the Vact zone.
[0084] Exemplarily, the first value may be half of the time required for each refresh of the display screen. It is understood that the time required for each refresh of the display screen is determined by the frame rate of the display screen.
[0085] Exemplarily, the electronic device may divide 1 by the display frame rate to obtain the time required for each refresh of the display.
[0086] In some embodiments of the present application, after obtaining the first value, the electronic device can determine whether the first TE signal belongs to the Vblank region or the Vact region by comparing the first output time difference and the first value.
[0087] In some embodiments of the present application, the electronic device may determine the second value based on a determination result of whether the first TE signal belongs to the Vblank region or the Vact region.
[0088] In some embodiments of the present application, the above step 406 may include the following step 406a or step 406b.
[0089] Step 406a: When the first output time difference is less than the first value, the electronic device adds 1 to the number N of the second TE signals to obtain a second value.
[0090] In some embodiments of the present application, the first output time difference being less than the first value may indicate that the first TE signal belongs to the Vblank region. Thus, the electronic device may add 1 to the number N of the second TE signal to obtain the second value.
[0091] Step 406b: When the first output time difference is greater than or equal to the first value, the electronic device adds the number N of the second TE signals to the third value to obtain a second value.
[0092] The third value may be a ratio of a frequency of a TE signal output by the display screen to a frame rate of the display screen.
[0093] In some embodiments of the present application, the first output time difference being greater than or equal to the first value may indicate that the first TE signal belongs to the Vact region. Thus, the electronic device may add the number N of the second TE signals to the third value to obtain the second value.
[0094] In some embodiments of the present application, the display screen frame rate may be the maximum frame rate of the display screen.
[0095] Step 402b: When the second value reaches the first threshold, the electronic device generates a first refresh signal based on the first TE signal.
[0096] The first threshold is a ratio of the frequency of the TE signal output by the display screen to the frame rate of the display screen.
[0097] For example, the electronic device is in Multi-TE mode, the maximum frequency of the TE signal is 480Hz, the display frame rate is 60Hz, the maximum frame rate of the display is 120Hz, the first threshold Threshold is 480Hz / 60Hz=8, and the output time of the last second TE signal among N second TE signals is LastTime. After acquiring the first TE signal, the electronic device can record the output time of the first TE signal as CurrentTime, and then the electronic device can calculate the output time difference DeltaTime=CurrentTime-LastTime between the last second TE signal and the first TE signal, and determine whether the first TE signal belongs to the Vact area or the Vblank area based on the DeltaTime.
[0098] When DeltaTime is less than half of the Vact zone, the electronic device can determine that the first TE signal belongs to the Vblank zone, and the electronic device can add 1 to the number N of second TE signals to obtain a second value; when DeltaTime is greater than or equal to half of the Vact zone, the electronic device can determine that the first TE signal belongs to the Vact zone, and the electronic device can add 4, the ratio of 480Hz to 120Hz, to the number N of second TE signals to obtain a second value.
[0099] Then, the electronic device may generate a first refresh signal when the second value is greater than or equal to 8.
[0100] In some embodiments of the present application, after generating the first signal, the electronic device may reset the number of TE signals output by the display screen to 0 to restart counting the TE signals.
[0101] In some embodiments of the present application, when the second value is less than the first threshold, the electronic device may not generate a refresh signal, and when a new TE signal is acquired, it may repeat steps 401 to 406 to generate a first refresh signal when the new second value reaches the first threshold.
[0102] In this way, since the electronic device can output a refresh signal only after the display screen outputs multiple TE signals based on the ratio of the frequency of the TE signal output by the display screen to the frame rate of the display screen, the frequency of generating the refresh signal can be reduced, thereby avoiding the phenomenon of overlapping display of two frames of images on the display screen. In this way, the image display effect of the display screen of the electronic device is improved.
[0103] In some embodiments of the present application, after the above step 402, the display screen refreshing method provided by the embodiment of the present application may further include the following step 407.
[0104] Step 407: The electronic device sets the number of TE signals output by the display screen to the seventh value.
[0105] In some embodiments of the present application, after the electronic device generates a first refresh signal based on the first TE signal, the electronic device can reset the value of the number of TE signals that the display screen has output, and restart accumulating the TE signals that the display screen has output, so that when the display screen outputs a new TE signal again, it can re-determine whether to generate a refresh signal.
[0106] In some embodiments of the present application, the first value may be a default value of the electronic device or may be set by a user. The present application does not specifically limit this.
[0107] Exemplarily, the seventh value may be 0. For example, every time the display screen outputs 8 TE signals, the electronic device may generate a refresh signal and restart the display screen to accumulate the value of the number of TE signals output by the display screen, that is, the number of TE signals output by the display screen is set to 0.
[0108] In this way, by resetting the value of the number of TE signals output by the display screen after generating the refresh signal, it is possible to accurately determine whether to generate the refresh signal based on the currently output TE signal, thereby improving the accuracy of generating the refresh signal.
[0109] In some embodiments of the present application, before the above step 402, the display screen refreshing method provided by the embodiment of the present application may further include the following steps 408 and 409, and the above step 402 may include the following step 402c.
[0110] Step 408: The electronic device obtains a fourth value based on the display screen frame rate.
[0111] The fourth value may be a value of an image refresh period corresponding to a frame rate of the display screen.
[0112] In some embodiments of the present application, the electronic device can calculate the fourth value by using the following formula (1).
[0113]
[0114] The Cycle mentioned above may represent a fourth value, and the FreqSystem mentioned above may represent a display screen frame rate.
[0115] Step 409: The electronic device uses the difference between the fourth value and the fifth value as the lower limit of the interval, and uses the sum of the fourth value and the fifth value as the upper limit of the interval to obtain a first interval.
[0116] The fifth value may be a value of a refresh period corresponding to the frequency of the TE signal output by the display screen.
[0117] In some embodiments of the present application, the electronic device can calculate the fifth value by using the following formula (2).
[0118]
[0119] The CycleTE mentioned above may represent the fifth value, and the FreqTE mentioned above may represent the frequency of the TE signal output by the display screen.
[0120] In some embodiments of the present application, the electronic device may calculate the interval lower limit value EffectiveCycleLow by the following formula (3), and calculate the interval upper limit value EffectiveCycleHigh by the following formula (4) to obtain the first interval EffectiveCycle.
[0121] EffectiveCycleLow=Cycle-CycleTE formula (3)
[0122] EffectiveCycleHigh=Cycle+CycleTE formula (4)
[0123] Step 402c: When the second output time difference is within the first interval, or when the second output time difference is greater than an upper limit value of the first interval, the electronic device generates a first refresh signal based on the first TE signal.
[0124] The second output time difference may be an output time difference between the first TE signal and the second refresh signal, and the second refresh signal may be a refresh signal generated before the display screen outputs the first TE signal.
[0125] In some embodiments of the present application, after the electronic device acquires the first TE signal, the electronic device may use the output time CurrentTime of the first TE signal, and the electronic device may calculate the second output time difference Period by the following formula (5).
[0126] Period=CurrentTime–LastVsyncTime Formula (5)
[0127] The LastVsyncTime mentioned above may represent the generation time of the second refresh signal.
[0128] In some embodiments of the present application, the electronic device may continue to acquire a new TE signal after generating a first refresh signal to determine whether to generate a new refresh signal.
[0129] In this way, since the electronic device can determine whether to output a refresh signal based on whether the TE signal output by the display screen is within the expected time window, the frequency of generating the refresh signal can be reduced by reducing the generation of the refresh signal, thereby avoiding the phenomenon of overlapping display of two frames of images on the display screen. In this way, the image display effect of the display screen of the electronic device is improved.
[0130] In some embodiments of the present application, the display screen refreshing method provided in the embodiments of the present application may further include the following step 410 or step 411.
[0131] Step 410: When the second output time difference is within the first interval, if the second output time difference is greater than the middle value of the first interval, the electronic device adjusts upward the interval upper limit value and the interval lower limit value of the first interval.
[0132] In some embodiments of the present application, the electronic device may correct the time window according to the actual frequency of the refresh signal when the second output time difference is within the first interval, so as to more accurately determine whether to generate a corresponding refresh signal after acquiring the TE signal.
[0133] In some embodiments of the present application, the electronic device may immediately adjust the interval upper limit and interval lower limit of the first interval when the second output time difference is within the first interval; or, when detecting that the second output time differences corresponding to multiple TE signals are within the first interval, calculate the average value of the multiple second output time differences, and adjust the interval upper limit and interval lower limit of the first interval based on the average value.
[0134] For example, taking the case where the electronic device detects that the second output time difference corresponding to 10 TE signals is in the first interval, the electronic device can calculate the average value RealCycleAverage of the output time difference by the following formula (6), and calculate the middle value EffectiveCycleMiddle of the first interval by the following formula (7).
[0135]
[0136] In some embodiments of the present application, if the second output time difference is greater than the middle value of the first interval, it may indicate that the coverage range of the first interval is lower than the period corresponding to the output frequency of the refresh signal. Therefore, the electronic device may correct the coverage range of the first interval by increasing the upper limit value and the lower limit value of the first interval.
[0137] In some embodiments of the present application, the above step 410 may include the following step 410a.
[0138] Step 410a: The electronic device increases the upper limit value and the lower limit value of the first interval by sixth values respectively.
[0139] The sixth value may be a difference between the second output time difference and a middle value of the first interval.
[0140] In some embodiments of the present application, the electronic device can calculate the lower limit value of the first interval after the increase by using the following formula (8), and calculate the upper limit value of the first interval after the increase by using the following formula (9).
[0141] EffectiveCycleLow=EffectiveCycleLow+(RealCycleAverage-EffectiveCycleMiddle) Formula (8)
[0142] EffectiveCycleHigh=EffectiveCycleHigh+(ReakCycleAverage-EffectiveCycleMiddle) Formula (9)
[0143] In this way, since the electronic device can determine whether to output a refresh signal based on whether the TE signal output by the display screen is within the expected time window, the frequency of generating the refresh signal can be reduced by reducing the generation of the refresh signal, thereby avoiding the phenomenon of overlapping display of two frames of images on the display screen. In this way, the image display effect of the display screen of the electronic device is improved.
[0144] Step 411: When the second output time difference is within the first interval, if the second output time difference is less than the middle value of the first interval, the electronic device lowers the interval upper limit value and the interval lower limit value of the first interval.
[0145] In some embodiments of the present application, the above step 410 may include the following step 410a.
[0146] Step 411a: The electronic device adjusts the upper limit value and the lower limit value of the first interval downward by sixth values respectively.
[0147] In some embodiments of the present application, if the second output time difference is smaller than the middle value of the first interval, it may indicate that the coverage range of the first interval is lower than the period corresponding to the output frequency of the refresh signal. Therefore, the electronic device may correct the coverage range of the first interval by lowering the upper limit value and the lower limit value of the first interval.
[0148] In some embodiments of the present application, the electronic device can calculate the lower limit value of the first interval after the adjustment through the following formula (10), and calculate the upper limit value of the first interval after the adjustment through the following formula (11).
[0149] EffectiveCycleLow=EffectiveCycleLow-(EffectiveCycleMiddle-RealCycleAverage) Formula (10)
[0150] EffectiveCycleHigh=EffectiveCycleHigh-(EffectiveCycleMiddle-RealCycleAverage) Formula (11)
[0151] It should be noted that if the second output time difference is equal to the middle value of the first interval, it can be indicated that the coverage range of the first interval matches the period corresponding to the output frequency of the refresh signal.
[0152] In this way, since the electronic device can improve the accuracy of judging whether to generate a refresh signal by adjusting the first cell, the frequency of generating a refresh signal can be reduced by reducing the generation of the refresh signal, thereby avoiding the phenomenon of overlapping display of two frames of images on the display screen. In this way, the image display effect of the display screen of the electronic device is improved.
[0153] In some embodiments of the present application, the display screen refreshing method provided in the embodiments of the present application may further include the following step 412.
[0154] Step 412: When the second output time difference is smaller than the lower limit of the first interval, the electronic device does not generate the first refresh signal.
[0155] In some embodiments of the present application, when the second output time difference is less than the lower limit value of the first interval, the electronic device may not generate a refresh signal, and when a new TE signal is acquired, it may repeat the above steps 401 to 412 to generate a first refresh signal when the new second output time is in the first interval or greater than the upper limit value of the first interval.
[0156] In this way, since the electronic device can determine whether to output a refresh signal based on whether the TE signal output by the display screen is within the expected time window, the frequency of generating the refresh signal can be reduced by reducing the generation of the refresh signal, thereby avoiding the phenomenon of overlapping display of two frames of images on the display screen. In this way, the image display effect of the display screen of the electronic device is improved.
[0157] Each of the above-mentioned method embodiments, or various possible implementation methods in each method embodiment can be executed separately, or any two or more of them can be executed in combination with each other. The specific implementation method can be determined according to actual usage requirements, and the embodiments of the present application do not limit this.
[0158] The display screen refreshing method provided in the embodiment of the present application can be executed by a display screen refreshing device. In the embodiment of the present application, the display screen refreshing method executed by the display screen refreshing device is taken as an example to illustrate the display screen refreshing device provided in the embodiment of the present application.
[0159] Figure 6 FIG. 1 shows a possible structural diagram of a display screen refreshing device involved in an embodiment of the present application. Figure 6 As shown, the display screen refreshing device 60 may include: an acquisition module 61 and a processing module 62 .
[0160] Among them, the acquisition module 61 is used to acquire the first tearing effect TE signal output by the display screen of the electronic device; the processing module 62 is used to generate a first refresh signal based on the first TE signal when the first TE signal acquired by the acquisition module 61 and N second TE signals meet preset conditions, and the N second TE signals are the TE signals output by the display screen for the N most recent times before the first TE signal; and is used to control the display screen to refresh based on the first refresh signal; wherein N is a positive integer.
[0161] In a possible implementation, the acquisition module 61 is further configured to acquire a total number N+1 of the first TE signal and the N second TE signals when the frequencies of the N second TE signals match before the processing module 62 generates the first refresh signal based on the first TE signal;
[0162] The processing module 62 is specifically configured to generate a first refresh signal based on the first TE signal when the total number N+1 reaches a first threshold;
[0163] The first threshold is a ratio of the frequency of the TE signal output by the display screen to the frame rate of the display screen.
[0164] In a possible implementation, the processing module 62 is further used to determine a first output time difference between the first TE signal and a third TE signal before generating the first refresh signal based on the first TE signal, when the frequencies of some of the N second TE signals do not match, the third TE signal being the last second TE signal among the N second TE signals; and further used to determine a second value based on the first output time difference and the first value, the first value being determined by the frame rate of the display screen;
[0165] The processing module 62 is specifically configured to generate a first refresh signal based on the first TE signal when the second value reaches the first threshold;
[0166] The first threshold is a ratio of the frequency of the TE signal output by the display screen to the frame rate of the display screen.
[0167] In a possible implementation, the processing module 62 is specifically configured to:
[0168] When the first output time difference is less than the first value, the number N of the second TE signals is increased by 1 to obtain a second value;
[0169] When the first output time difference is greater than or equal to the first value, the number N of the second TE signals is added to the third value to obtain a second value;
[0170] The third value is the ratio of the frequency of the TE signal output by the display screen to the frame rate of the display screen.
[0171] In a possible implementation, the processing module 62 is further used to obtain a fourth value based on the display screen frame rate before generating the first refresh signal based on the first TE signal, the fourth value being the value of the image refresh period corresponding to the display screen frame rate; and further used to use the difference between the fourth value and the fifth value as the lower limit of the interval, and use the sum of the fourth value and the fifth value as the upper limit of the interval, to obtain the first interval, the fifth value being the value of the refresh period corresponding to the frequency of the display screen outputting the TE signal;
[0172] The processing module 62 is specifically configured to generate a first refresh signal based on the first TE signal when the second output time difference is within the first interval, or when the second output time difference is greater than an upper limit value of the first interval;
[0173] The second output time difference is the output time difference between the first TE signal and the second refresh signal, and the second refresh signal is a refresh signal generated before the display screen outputs the first TE signal.
[0174] In a possible implementation, the above-mentioned processing module 62 is also used to, when the second output time difference is in the first interval, if the second output time difference is greater than the middle value of the first interval, increase the interval upper limit value and the interval lower limit value of the first interval; if the second output time difference is less than the middle value of the first interval, then decrease the interval upper limit value and the interval lower limit value of the first interval.
[0175] In a possible implementation, the processing module 62 is specifically configured to increase the interval upper limit value and the interval lower limit value of the first interval by a sixth value respectively;
[0176] A processing module 62, specifically configured to adjust the interval upper limit value and the interval lower limit value of the first interval downward by a sixth value respectively;
[0177] The sixth value is the difference between the second output time difference and the middle value of the first interval.
[0178] In a possible implementation, the processing module 62 is further configured to not generate the first refresh signal when the second output time difference is smaller than a lower limit value of the first interval.
[0179] In a possible implementation, the processing module 62 is specifically configured to set the number of TE signals output by the display screen to a seventh value.
[0180] In a possible implementation, the processing module 62 is specifically configured to control the display screen to refresh through an image processing module of the electronic device based on the first refresh signal.
[0181] The embodiment of the present application provides a display screen refresh device, which can determine whether to generate a refresh signal when receiving a new TE signal, combining the new TE signal and the N TE signals received before the new TE signal. Thus, the display screen refresh can be controlled by generating a refresh signal only when a preset condition is met, so as to reduce the frequency of generating the refresh signal, so that the frequency of generating the refresh signal can be lower than the frequency of the TE signal. In addition, the phenomenon of overlapping display of two frames of images on the display screen can be avoided. In this way, the image display effect of the display screen of the electronic device is improved.
[0182] The display screen refresh device in the embodiment of the present application can be an electronic device, or a component in the electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal, or it can be other devices other than a terminal. Exemplarily, the electronic device can be a mobile phone, a tablet computer, a laptop computer, a PDA, a vehicle-mounted electronic device, a mobile Internet device (Mobile Internet Device, MID), an augmented reality (augmented reality, AR) / virtual reality (virtual reality, VR) device, a robot, a wearable device, an ultra-mobile personal computer (ultra-mobile personal computer, UMPC), a netbook or a personal digital assistant (personal digital assistant, PDA), etc., and can also be a server, a network attached storage (Network Attached Storage, NAS), a personal computer (personal computer, PC), a television (television, TV), a teller machine or a self-service machine, etc., which is not specifically limited in the embodiment of the present application.
[0183] The display screen refresh device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present application.
[0184] The display screen refreshing device provided in the embodiment of the present application can implement various processes implemented in the above-mentioned display screen refreshing method embodiment and achieve the same technical effect. To avoid repetition, it will not be described here.
[0185] Alternatively, if Figure 7As shown, an embodiment of the present application further provides an electronic device 700, including a processor 701 and a memory 702, wherein the memory 702 stores programs or instructions that can be executed on the processor 701, and when the program or instructions are executed by the processor 701, the various steps of the above-mentioned display screen refreshing method embodiment are implemented, and the same technical effect can be achieved. To avoid repetition, they are not described here.
[0186] It should be noted that the electronic devices in the embodiments of the present application include the mobile electronic devices and non-mobile electronic devices mentioned above.
[0187] Figure 8 A schematic diagram of the hardware structure of an electronic device to implement an embodiment of the present application.
[0188] The electronic device 1000 includes but is not limited to: a radio frequency unit 1001, a network module 1002, an audio output unit 1003, an input unit 1004, a sensor 1005, a display unit 1006, a user input unit 1007, an interface unit 1008, a memory 1009, and a processor 1010 and other components.
[0189] Those skilled in the art will appreciate that the electronic device 1000 may also include a power source (such as a battery) for supplying power to each component, and the power source may be logically connected to the processor 1010 through a power management system, thereby implementing functions such as managing charging, discharging, and power consumption management through the power management system. Figure 8 The electronic device structure shown in the figure does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently, which will not be described in detail here.
[0190] Among them, the processor 1010 is used to obtain a first tearing effect TE signal output by a display screen of an electronic device; and, when the first TE signal obtained by the processor 1010 and N second TE signals meet preset conditions, generate a first refresh signal based on the first TE signal, and the N second TE signals are the TE signals output by the display screen N most recent times before the first TE signal; and, based on the first refresh signal, control the display screen to refresh; wherein N is a positive integer.
[0191] In a possible implementation, the processor 1010 is further configured to obtain a total number N+1 of the first TE signal and the N second TE signals when the frequencies of the N second TE signals match before the processor 1010 generates the first refresh signal based on the first TE signal;
[0192] The processor 1010 is specifically configured to generate a first refresh signal based on the first TE signal when the total number N+1 reaches a first threshold;
[0193] The first threshold is a ratio of the frequency of the TE signal output by the display screen to the frame rate of the display screen.
[0194] In a possible implementation, the processor 1010 is further configured to, before generating the first refresh signal based on the first TE signal, determine a first output time difference between the first TE signal and a third TE signal when frequencies of some of the N second TE signals do not match, the third TE signal being the last second TE signal among the N second TE signals; and, further configured to determine a second value based on the first output time difference and the first value, the first value being determined by a frame rate of the display screen;
[0195] The processor 1010 is specifically configured to generate a first refresh signal based on the first TE signal when the second value reaches the first threshold;
[0196] The first threshold is a ratio of the frequency of the TE signal output by the display screen to the frame rate of the display screen.
[0197] In a possible implementation manner, the processor 1010 is specifically configured to:
[0198] When the first output time difference is less than the first value, the number N of the second TE signals is increased by 1 to obtain a second value;
[0199] When the first output time difference is greater than or equal to the first value, the number N of the second TE signals is added to the third value to obtain a second value;
[0200] The third value is the ratio of the frequency of the TE signal output by the display screen to the frame rate of the display screen.
[0201] In a possible implementation, the processor 1010 is further configured to obtain a fourth value based on a display screen frame rate before generating a first refresh signal based on the first TE signal, where the fourth value is a value of an image refresh period corresponding to the display screen frame rate; and further configured to use a difference between the fourth value and the fifth value as a lower limit of an interval, and use a sum of the fourth value and the fifth value as an upper limit of an interval, to obtain a first interval, where the fifth value is a value of a refresh period corresponding to a frequency at which the display screen outputs a TE signal;
[0202] The processor 1010 is specifically configured to generate a first refresh signal based on the first TE signal when the second output time difference is within the first interval, or when the second output time difference is greater than an upper limit value of the first interval;
[0203] The second output time difference is the output time difference between the first TE signal and the second refresh signal, and the second refresh signal is a refresh signal generated before the display screen outputs the first TE signal.
[0204] In one possible implementation, the processor 1010 is further used to, when the second output time difference is in the first interval, increase the interval upper limit value and the interval lower limit value of the first interval if the second output time difference is greater than the middle value of the first interval; and if the second output time difference is less than the middle value of the first interval, decrease the interval upper limit value and the interval lower limit value of the first interval.
[0205] In a possible implementation, the processor 1010 is specifically configured to increase the interval upper limit value and the interval lower limit value of the first interval by a sixth value respectively;
[0206] The processor 1010 is specifically configured to respectively lower an interval upper limit value and an interval lower limit value of the first interval by a sixth value;
[0207] The sixth value is the difference between the second output time difference and the middle value of the first interval.
[0208] In a possible implementation, the processor 1010 is further configured to not generate the first refresh signal when the second output time difference is smaller than a lower limit value of the first interval.
[0209] In a possible implementation, the processor 1010 is specifically configured to set the number of TE signals output by the display screen to a seventh value.
[0210] In a possible implementation, the processor 1010 is specifically configured to control the display screen to refresh through an image processing module of the electronic device based on the first refresh signal.
[0211] An embodiment of the present application provides an electronic device that can determine whether to generate a refresh signal when receiving a new TE signal by combining the new TE signal and the N TE signals received before the new TE signal. Thus, the refresh of the display screen can be controlled by generating a refresh signal only when a preset condition is met, so as to reduce the frequency of generating the refresh signal, so that the frequency of generating the refresh signal can be lower than the frequency of the TE signal. In addition, the phenomenon of overlapping display of two frames of images on the display screen can be avoided. In this way, the image display effect of the display screen of the electronic device is improved.
[0212] It should be understood that in the embodiment of the present application, the input unit 1004 may include a graphics processor (Graphics Processing Unit, GPU) 10041 and a microphone 10042, and the graphics processor 10041 processes the image data of the static picture or video obtained by the image capture device (such as a camera) in the video capture mode or the image capture mode. The display unit 1006 may include a display panel 10061, and the display panel 10061 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 1007 includes a touch panel 10071 and at least one of other input devices 10072. The touch panel 10071 is also called a touch screen. The touch panel 10071 may include two parts: a touch detection device and a touch controller. Other input devices 10072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which will not be repeated here.
[0213] The memory 1009 can be used to store software programs and various data. The memory 1009 may mainly include a first storage area for storing programs or instructions and a second storage area for storing data, wherein the first storage area may store an operating system, an application program or instructions required for at least one function (such as a sound playback function, an image playback function, etc.), etc. In addition, the memory 1009 may include a volatile memory or a non-volatile memory, or the memory 1009 may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), a static random access memory (SRAM), a dynamic random access memory (DRAM), a synchronous dynamic random access memory (SDRAM), a double data rate synchronous dynamic random access memory (DDRSDRAM), an enhanced synchronous dynamic random access memory (ESDRAM), a synchronous link dynamic random access memory (SLDRAM) and a direct memory bus random access memory (DRRAM). The memory 1009 in the embodiment of the present application includes but is not limited to these and any other suitable types of memory.
[0214] The processor 1010 may include one or more processing units; optionally, the processor 1010 integrates an application processor and a modem processor, wherein the application processor mainly processes operations related to an operating system, a user interface, and application programs, and the modem processor mainly processes wireless communication signals, such as a baseband processor. It is understandable that the modem processor may not be integrated into the processor 1010.
[0215] An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, each process of the above-mentioned display screen refreshing method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0216] The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory ROM, a random access memory RAM, a magnetic disk or an optical disk.
[0217] An embodiment of the present application further provides a chip, which includes a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned display screen refresh method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0218] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.
[0219] An embodiment of the present application provides a computer program product, which is stored in a storage medium. The program product is executed by at least one processor to implement the various processes of the above-mentioned display screen refreshing method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0220] It should be noted that, in this article, the terms "comprise", "include" or any other variant thereof are intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise one..." do not exclude the presence of other identical elements in the process, method, article or device including the element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved, for example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.
[0221] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM / RAM, a disk, or an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present application.
[0222] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.
Claims
1. A display screen refreshing method, characterized in that: The method comprises: Acquire a first tearing effect TE signal output by a display screen of an electronic device; When the first TE signal and N second TE signals meet a preset condition, a first refresh signal is generated based on the first TE signal, and the N second TE signals are TE signals output by the display screen N times before the first TE signal. Based on the first refresh signal, controlling the display screen to refresh; Wherein, N is a positive integer.
2. The method according to claim 1, characterized in that Before generating the first refresh signal based on the first TE signal, the method further includes: In a case where the frequencies of the N second TE signals match, obtaining a total number N+1 of the first TE signal and the N second TE signals; When the first TE signal and the N second TE signals meet a preset condition, generating a first refresh signal based on the first TE signal includes: When the total number N+1 reaches a first threshold, generating the first refresh signal based on the first TE signal; The first threshold is a ratio of a frequency of a TE signal output by the display screen to a frame rate of the display screen.
3. The method according to claim 1, characterized in that Before generating the first refresh signal based on the first TE signal, the method further includes: In the case where the frequencies of some of the N second TE signals do not match, determining a first output time difference between the first TE signal and a third TE signal, the third TE signal being the last second TE signal among the N second TE signals; Determine a second value based on the first output time difference and a first value, wherein the first value is determined by a frame rate of the display screen; When the first TE signal and the N second TE signals meet a preset condition, generating a first refresh signal based on the first TE signal includes: When the second value reaches a first threshold, generating the first refresh signal based on the first TE signal; The first threshold is a ratio of a frequency of a TE signal output by the display screen to a frame rate of the display screen.
4. The method according to claim 3, characterized in that: The determining a second value based on the first output time difference and the first value comprises: When the first output time difference is less than the first value, the number N of second TE signals is increased by 1 to obtain a second value; When the first output time difference is greater than or equal to the first value, the number N of the second TE signals is added to a third value to obtain a second value; The third value is a ratio of a frequency of a TE signal output by the display screen to a frame rate of the display screen.
5. The method according to claim 1, characterized in that Before generating the first refresh signal based on the first TE signal, the method further includes: Based on the display screen frame rate, a fourth value is obtained, where the fourth value is a value of an image refresh period corresponding to the display screen frame rate; The difference between the fourth value and the fifth value is used as the lower limit of the interval, and the sum of the fourth value and the fifth value is used as the upper limit of the interval to obtain a first interval, wherein the fifth value is the value of the refresh period corresponding to the frequency of the TE signal output by the display screen; The step of generating a first refresh signal based on the first TE signal when the first TE signal and N second TE signals meet a preset condition includes: generating the first refresh signal based on the first TE signal when the second output time difference is within the first interval or when the second output time difference is greater than an upper limit of the first interval; The second output time difference is the output time difference between the first TE signal and the second refresh signal, and the second refresh signal is a refresh signal generated before the display screen outputs the first TE signal.
6. The method according to claim 5, characterized in that The method further comprises: When the second output time difference is within the first interval, if the second output time difference is greater than the middle value of the first interval, the upper limit value and the lower limit value of the first interval are increased; If the second output time difference is smaller than the middle value of the first interval, the upper limit value and the lower limit value of the first interval are lowered.
7. The method according to claim 6, characterized in that The step of increasing the upper limit value and the lower limit value of the first interval includes: The upper limit value and the lower limit value of the first interval are respectively increased by a sixth value; The step of lowering the upper limit value and the lower limit value of the first interval includes: The upper limit value and the lower limit value of the first interval are respectively adjusted downward by a sixth value; The sixth value is a difference between the second output time difference and a middle value of the first interval.
8. The method according to claim 5, characterized in that The method further comprises: When the second output time difference is smaller than the interval lower limit value of the first interval, the first refresh signal is not generated.
9. The method according to any one of claims 1 to 8, characterized in that: After generating the first refresh signal based on the first TE signal, the method further includes: The number of TE signals output by the display screen is set to a seventh value.
10. The method according to any one of claims 1 to 8, characterized in that: The step of controlling the display screen to refresh based on the first refresh signal includes: Based on the first refresh signal, the display screen is controlled to be refreshed through an image processing module of the electronic device.
11. A display screen refreshing device, characterized in that: The device comprises: an acquisition module and a processing module; The acquisition module is used to acquire a first tearing effect TE signal output by a display screen of the electronic device; The processing module is used to generate a first refresh signal based on the first TE signal when the first TE signal and N second TE signals acquired by the acquisition module meet a preset condition, and the N second TE signals are TE signals output by the display screen N times most recently before the first TE signal; The processing module is further used to control the display screen to refresh based on the first refresh signal; Wherein, N is a positive integer.
12. The device according to claim 11, characterized in that The acquisition module is further configured to acquire a total number N+1 of the first TE signal and the N second TE signals when the frequencies of the N second TE signals match before the processing module generates a first refresh signal based on the first TE signal; The processing module is specifically configured to generate the first refresh signal based on the first TE signal when the total number N+1 reaches a first threshold; The first threshold is a ratio of a frequency of a TE signal output by the display screen to a frame rate of the display screen.
13. The device according to claim 11, characterized in that The processing module is further configured to determine, before generating a first refresh signal based on the first TE signal, a first output time difference between the first TE signal and a third TE signal when frequencies of some of the N second TE signals do not match, the third TE signal being the last second TE signal among the N second TE signals; The processing module is further used to determine a second value based on the first output time difference and a first value, wherein the first value is determined by a frame rate of the display screen; The processing module is specifically configured to generate the first refresh signal based on the first TE signal when the second value reaches a first threshold; The first threshold is a ratio of a frequency of a TE signal output by the display screen to a frame rate of the display screen.
14. The device according to claim 11, characterized in that The processing module is further configured to obtain a fourth value based on the display screen frame rate before generating the first refresh signal based on the first TE signal, wherein the fourth value is a value of an image refresh period corresponding to the display screen frame rate; The processing module is further used to use the difference between the fourth value and the fifth value as the lower limit of the interval, and use the sum of the fourth value and the fifth value as the upper limit of the interval to obtain the first interval, and the fifth value is the value of the refresh period corresponding to the frequency of the TE signal output by the display screen; The processing module is specifically configured to generate the first refresh signal based on the first TE signal when the second output time difference is within the first interval or when the second output time difference is greater than an interval upper limit value of the first interval; The second output time difference is the output time difference between the first TE signal and the second refresh signal, and the second refresh signal is a refresh signal generated before the display screen outputs the first TE signal.
15. An electronic device, characterized in that: The method comprises a processor and a memory, wherein the memory stores a program or instruction that can be run on the processor, and when the program or instruction is executed by the processor, the steps of the display screen refreshing method according to any one of claims 1 to 8 are implemented.
Citation Information
Patent Citations
Display frame rate adjusting method and device, application processor and electronic equipment
CN115100993A
Image display control method and device, electronic equipment and readable storage medium
CN117095655A
Electronic device, driving method thereof, display driver, and processor
CN118918863A
Electronic device configured to quickly update screen upon receiving input from peripheral device
US20230016948A1