Display processing method, device and electronic equipment

By determining the appropriate durations T1 and T2 in the electronic device, it is ensured that the modification of the porch operation and the DSI response to the cmd command are completed within the same frame, which solves the problem of screen blur when the frame rate changes and improves the stability of the display effect.

CN117746762BActive Publication Date: 2024-10-11HONOR DEVICE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311777273.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-12-21
Publication Date
2024-10-11
Estimated Expiration
2043-12-21

AI Technical Summary

Technical Problem

When electronic devices exit the standby state, screen blur is likely to occur when the frame rate changes, affecting the display effect.

Method used

By determining the first duration T1 and the second duration T2, it is ensured that the modification of the porch operation and the hardware interface DSI response to the cmd command are completed within the same frame, thereby avoiding screen distortion. The specific method includes performing a modified porch operation at t4 when T2 < V1, or performing a modified porch operation at t6 in the third frame when T2 ≥ V1 to ensure that the operation is completed within an appropriate time window.

Benefits of technology

It effectively avoids the screen blur phenomenon when the frame rate changes when the electronic device exits the standby state, ensuring the stability of the display effect.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117746762B_ABST
    Figure CN117746762B_ABST
Patent Text Reader

Abstract

The present application discloses a display processing method, device and electronic device. When the electronic device exits the idle state, the first duration T1 is determined, the starting point t1 of T1 is the timestamp corresponding to the vertical synchronization Vsync signal of the first frame, and the end point t2 of T1 is the timestamp corresponding to the earliest moment when the display driver can modify the blanking area porch in the second frame; T2 is determined according to T1; T1 = n*T+T2, T = 1 / f1; when T2 < V1, the operation of modifying the porch is performed at time t4; V1 is the duration corresponding to the latest moment t3 of modifying the porch and the timestamp corresponding to the Vsync signal of the second frame when both the modification of the porch and the hardware interface DSI response to the cmd command are completed within the second frame; t2≤t4≤t3. Based on the solution of the present application, the electronic device can avoid screen distortion when exiting the idle state and the frame rate of the image to be displayed changes.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of video playback technology, and more specifically, to a display processing method, device and electronic device. Background Art

[0002] Screen distortion refers to the phenomenon that irregular stripes, snowflakes or other abnormal images appear on the display screen. When an electronic device exits the idle state and the frequency of the image to be displayed is different from the frequency in the idle state, the display screen of the electronic device sometimes shows screen distortion, affecting the display effect.

[0003] Therefore, how to avoid screen distortion is an urgent problem to be solved. Summary of the invention

[0004] The present application provides a display processing method, device and electronic device, which can avoid screen distortion when the electronic device exits a standby state and the rate changes.

[0005] In a first aspect, a display processing method is provided, which is applied to an electronic device, wherein a display screen of the electronic device is in a standby idle state at a first frame rate f1, and the method comprises: when an image is updated, exiting the idle state, the frame rate corresponding to the updated image is a second frame rate f2, and f2≠f1; determining a first duration T1, wherein the starting point t1 of T1 is a timestamp corresponding to a vertical synchronization Vsync signal of a first frame, and the first frame is the frame in which the electronic device enters the idle state; and the end point t2 of T1 is the earliest time in the second frame when a display driver can modify a blanking area porch. The timestamp corresponding to the porch is obtained, and the second frame is the frame in which the electronic device exits the idle state; T2 is determined according to T1; wherein T1=n*T+T2, T=1 / f1, n is an integer, n≥0, 0<T2<T; when T2<V1, the operation of modifying the porch is performed at time t4; V1 is the duration corresponding to the latest time t3 of modifying the porch and the timestamp corresponding to the Vsync signal of the second frame when both the modification of the porch and the hardware interface DSI response to the cmd command are completed within the second frame; wherein t2≤t4≤t3.

[0006] When this technical solution is used for display processing, the operation of modifying the porch and the DSI response to the cmd command are completed in the same frame, so that the screen can be prevented from being distorted when the electronic device exits the standby state and the frame rate of the image to be displayed changes.

[0007] In another possible implementation manner, the method further includes: when T2<V1, in a frame next to the second frame, causing the display screen to display an image at f2.

[0008] In another possible implementation, when T2≥V1, the operation of modifying the porch is performed at time t6, wherein t6 is within the third frame, the third frame is the next frame adjacent to the second frame, and the timestamp corresponding to the Vsync signal of the third frame is t5, t5=t3+(T-V1); t6=t5+T3, wherein T VSYNC +T VBP <T3<V1, the T VSYNC is the duration of the Vsync signal of the third frame, and the T VBP It is the duration corresponding to the back porch of the vertical blanking area of ​​the third frame.

[0009] In another possible implementation manner, the method further includes: when T2≥V1, in a frame next to the third frame, causing the display screen to display an image at f2.

[0010] In another possible implementation, determining T2 based on T1 includes: determining that the greatest common divisor of f1 and 1000 is x, y=1000 / x; determining T2=(b%(y*1000))%T, wherein T1=a (seconds)+b (microseconds); in the step after determining T2 based on T1, the value of T2 uses the value of T2 determined in this step.

[0011] In a second aspect, a display processing device is provided, which is applied to an electronic device, wherein a display screen of the electronic device is in a standby idle state at a first frame rate f1, and the device comprises: a first processing unit, which is used to exit the idle state when an image is updated, and the frame rate corresponding to the updated image is a second frame rate f2, and f2≠f1; a first determination unit, which is used to determine a first duration T1, wherein the starting point t1 of T1 is a timestamp corresponding to a vertical synchronization Vsync signal of a first frame, and the first frame is the frame in which the electronic device enters the idle state; and the end point t2 of T1 is a time stamp corresponding to the earliest moment in the second frame when the display driver can modify the blanking area porch. timestamp, the second frame is the frame in which the electronic device exits the idle state; a second determining unit is used to determine T2 according to T1; wherein, theoretically, T1=n*T+T2, T=1 / f1, n is an integer, n≥0, 0<T2<T; a modifying unit is used to perform the operation of modifying the porch at time t4 when T2<V1; V1 is the duration corresponding to the latest time t3 of modifying the porch and the timestamp corresponding to the Vsync signal of the second frame when both the modification of the porch and the hardware interface DSI response to the cmd command are completed within the second frame; wherein t2≤t4≤t3.

[0012] In another possible implementation manner, the device further includes: a first display unit, configured to display an image at f2 in a frame next to the second frame when T2<V1.

[0013] In another possible implementation, the modification unit is further configured to, when T2 ≥ V1, perform the operation of modifying the porch at time t6, wherein t6 is within the third frame, the third frame is the next frame adjacent to the second frame, and the timestamp corresponding to the Vsync signal of the third frame is t5, t5 = t3 + (T-V1); t6 = t5 + T3, wherein T VSYNC +T VBP <T3<V1, the T VSYNC is the duration of the Vsync signal of the third frame, and the T VBP It is the duration corresponding to the back porch of the vertical blanking area of ​​the third frame.

[0014] In another possible implementation, the device further includes: a second display unit, configured to display an image at f2 in a frame next to the third frame when T2≥V1.

[0015] In another possible implementation, in determining T2 based on T1, the second determination unit is specifically used to determine that the greatest common divisor of f1 and 1000 is x, y=1000 / x; determine T2=(b%(y*1000))%T, where T1=a(seconds)+b(microseconds); the value of T2 in the modification unit uses the value of T2 determined in this step.

[0016] In a third aspect, an electronic device is provided, comprising a processor, a display and a memory, wherein the memory is used to store a computer program, the display is used to display an image, and the processor is used to call and run the computer program from the memory, so that the processor executes the display processing method described in the first aspect or any possible implementation of the first aspect.

[0017] In a fourth aspect, a chip is provided, comprising a processor. When the processor executes an instruction, the processor performs the display processing method as described in the first aspect or any possible implementation manner of the first aspect.

[0018] In a fifth aspect, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores a computer program. When the computer program is executed by a processor, the processor executes the display processing method described in the first aspect or any possible implementation of the first aspect.

[0019] In an embodiment of the present application, when the electronic device is performing display processing, the display screen of the electronic device is in a standby idle state at a first frame rate f1. When an image is updated, the idle state is exited, and the frame rate corresponding to the updated image becomes f2, f2≠f1; then, the first duration T1 is determined, the starting point t1 of T1 is the timestamp corresponding to the vertical synchronization Vsync signal of the first frame, and the first frame is the frame in which the electronic device enters the idle state; the end point t2 of T1 is the earliest time in the second frame when the display driver can modify the blanking area porch timestamp, the second frame is the frame when the electronic device exits the idle state; T2 is determined according to T1; T1 = n*T+T2, T = 1 / f1, n is an integer, n≥0, 0<T2<T; when T2<V1, the operation of modifying the porch is performed at time t4; V1 is the duration corresponding to the timestamp corresponding to the Vsync signal of the second frame at the latest time t3 of modifying the porch when both the modification of the porch and the hardware interface DSI response to the cmd command are completed within the second frame; t2≤t4≤t3, V3≤V2. When this solution is adopted, since the operation of modifying the porch and the DSI response to the cmd command are completed within the same frame, the electronic device can avoid screen distortion when it exits the standby state and the frame rate of the image to be displayed changes. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] Figure 1 It is a schematic diagram of a screen distortion of an electronic device in the prior art;

[0021] Figure 2A It is a schematic diagram of the durations corresponding to the back shoulder of the blanking area, the effective area, and the front shoulder of the blanking area in the vertical direction of each frame of the image;

[0022] Figure 2B This is a schematic diagram of the Video screen processing flow;

[0023] Figure 3A is a flowchart of a display processing method provided by an embodiment of the present application;

[0024] Figure 3B is a flowchart of a display processing method provided by another embodiment of the present application;

[0025] Figure 4A is a flowchart of a display processing method provided by another embodiment of the present application;

[0026] Figure 4B is a flowchart of a display processing method provided by another embodiment of the present application;

[0027] Figure 5A It is a timing diagram including relevant time nodes corresponding to the display processing method provided in an embodiment of the present application;

[0028] Figure 5B It is a timing diagram including relevant time nodes corresponding to the display processing method provided in an embodiment of the present application;

[0029] Figure 5C It is a timing diagram including relevant time nodes corresponding to the display processing method provided in an embodiment of the present application;

[0030] Figure 5D It is a timing diagram including relevant time nodes corresponding to the display processing method provided in an embodiment of the present application;

[0031] Figure 6 is a schematic diagram of the structure of an electronic device that executes the display processing method provided in an embodiment of the present application;

[0032] Figure 7 A schematic diagram of a software system of an electronic device that executes the display processing method provided in an embodiment of the present application. DETAILED DESCRIPTION

[0033] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0034] First, the application scenarios of the display processing method provided in the embodiments of the present application are introduced with reference to the accompanying drawings.

[0035] The display processing method provided in the embodiment of the present application can be applied to electronic devices with a video screen, such as mobile phones. In the embodiment of the present application, the electronic device is described using a mobile phone as an example. It can be understood that the electronic device that executes the display processing method provided by the present application is not limited to a mobile phone, but may also be other terminals with a video screen. The specific type of the electronic device is not limited here.

[0036] When the phone is not operated for a preset period of time, it enters the standby state to save power. In the standby state, if a preset idle exit event is detected, such as the user sliding the phone screen, the electronic device exits the standby state. When exiting the idle state, the phone may occasionally have a short screen distortion phenomenon. When the screen distortion occurs, the image displayed in the phone display area is as follows: Figure 1 shown.

[0037] like Figure 2A As shown, the vertical synchronization signal of each frame is Vsync, the period is T, the duration of the back shoulder of the blanking area, the effective area, and the front shoulder of the blanking area are T respectively. VBP 、TDE 、T VFP .

[0038] like Figure 2B As shown, the process of displaying images on a mobile phone usually includes the following steps: the application (Application, APP) obtains the content to be displayed, the Surfaceflinger service synthesizes the content to be displayed into a page to be displayed, the hardware composer (HWC) converts the format of the display page, and sends the output to the display driver. The display driver performs some underlying encoding, decoding, compression and other operations to load the image and store it in its buffer, and then sends it to the display driver chip (Display Driver IC, DDIC) through the mobile industry processor interface (Mobile Industry Processor Interface, mipi) of the display serial interface (Display serial interface, dsi). Vsync is the frame synchronization signal of each frame. After displaying the image numbered 1, the image numbered 2 is displayed. After displaying the image numbered 2, if the mobile phone is in standby mode, the upper layer will no longer transmit new images, and the dsi hardware will continue to transmit the image numbered 2 stored in the cache to the DDIC. After the standby mode ends, the upper layer will continue to receive new images and transmit and display them.

[0039] It should be noted that when the frame rate of the video screen changes, the display of the video screen changes accordingly. In the specific implementation, there are two methods, one is high switching and the other is real switching. In order to reduce power consumption, this application adopts real switching. When switching the frame rate, it is necessary to complete the modification of porch and send cmd commands.

[0040] Figure 3A is a flow chart of the display processing method provided in the embodiment of the present application. Figure 3A As shown, the display processing method provided in the embodiment of the present application includes steps: 301 to 304. Below, steps 301 to 304 are described in detail. This embodiment is applied to an electronic device, and the display screen of the electronic device is in an idle state at a first frame rate f1. The method includes:

[0041] 301. When there is an image update, exit the idle state, the frame rate corresponding to the updated image is a second frame rate f2, and f2≠f1.

[0042] 302. Determine a first duration T1, where the starting point t1 of T1 is the timestamp corresponding to the vertical synchronization Vsync signal of the first frame, and the first frame is the frame in which the electronic device enters the idle state; the end point t2 of T1 is the timestamp corresponding to the earliest moment in the second frame when the display driver can modify the blanking area porch, and the second frame is the frame in which the electronic device exits the idle state.

[0043] 303. Determine T2 based on T1; wherein, T1=n*T+T2, T=1 / f1, n is an integer, n≥0, 0<T2<T.

[0044] Since computers use floating point calculations, it is impossible to be accurate to an infinite number of digits. Therefore, in actual calculations, T1=n*T+T2 is a theoretical value. When T is an infinite number of cycles or an infinite number of cycles, the larger the value of n, the greater the cumulative error. In order to reduce the error, T2 can be determined in the following way. Determine the greatest common divisor of f1 and 1000 as x, y=1000 / x; determine T2=(b%(y*1000))%T, where T1=a(seconds)+b(microseconds); in the step after determining T2 based on T1, the value of T2 determined in this step is used.

[0045] 304. When T2<V1, the operation of modifying the porch is performed at time t4; V1 is the duration corresponding to the timestamp corresponding to the Vsync signal of the second frame at the latest time t3 of modifying the porch when both the modification of the porch and the hardware interface DSI response cmd command are completed within the second frame; wherein, t2≤t4≤t3.

[0046] For example, in one possible implementation, Figure 5A As shown, in this embodiment, T2<V1, t4=t2, and in this embodiment, modifying porch and hardware interface DSI responding to cmd command are both completed in the same frame.

[0047] For example, in another possible implementation, Figure 5B As shown, in this embodiment, T2<V1, t4=t3, and in this embodiment, modifying porch and hardware interface DSI responding to cmd command are both completed in the same frame.

[0048] For example, in another possible implementation, Figure 5C As shown, in this embodiment, T2<V1, t2<t4<t3, in this embodiment, modifying porch and hardware interface DSI responding to cmd command are completed in the same frame.

[0049] When this technical solution is used for display processing, the operation of modifying the porch and the DSI response to the cmd command are completed in the same frame, so that the screen can be prevented from being distorted when the electronic device exits the standby state and the frame rate of the image to be displayed changes.

[0050] See also Figure 3B , Figure 3B FIG. 1 is a flow chart of a display processing method provided by another embodiment of the present application. Figure 3B As shown, the display processing method provided by the embodiment of the present application includes steps 301 to 305. Steps 301 to 305 are described in detail below.

[0051] 301. When there is an image update, exit the idle state, the frame rate corresponding to the updated image is a second frame rate f2, and f2≠f1.

[0052] 302. Determine a first duration T1, where the starting point t1 of T1 is the timestamp corresponding to the vertical synchronization Vsync signal of the first frame, and the first frame is the frame in which the electronic device enters the idle state; the end point t2 of T1 is the timestamp corresponding to the earliest moment in the second frame when the display driver can modify the blanking area porch, and the second frame is the frame in which the electronic device exits the idle state.

[0053] 303. Determine T2 based on T1; wherein, T1=n*T+T2, T=1 / f1, n is an integer, n≥0, 0<T2<T.

[0054] Since computers use floating point calculations, it is impossible to be accurate to an infinite number of digits. Therefore, in actual calculations, T1=n*T+T2 is a theoretical value. When T is an infinite number of cycles or an infinite number of cycles, the larger the value of n, the greater the cumulative error. In order to reduce the error, T2 can be determined in the following way. Determine the greatest common divisor of f1 and 1000 as x, y=1000 / x; determine T2=(b%(y*1000))%T, where T1=a(seconds)+b(microseconds); in the step after determining T2 based on T1, the value of T2 determined in this step is used.

[0055] 304. When T2<V1, the operation of modifying the porch is performed at time t4; V1 is the duration corresponding to the timestamp corresponding to the Vsync signal of the second frame at the latest time t3 of modifying the porch when both the modification of the porch and the hardware interface DSI response cmd command are completed within the second frame; wherein, t2≤t4≤t3.

[0056] For example, in one possible implementation, Figure 5AAs shown, in this embodiment, T2<V1, t4=t2, and in this embodiment, modifying porch and hardware interface DSI responding to cmd command are both completed in the same frame.

[0057] For example, in another possible implementation, Figure 5B As shown, in this embodiment, T2<V1, t4=t3, and in this embodiment, modifying porch and hardware interface DSI responding to cmd command are both completed in the same frame.

[0058] For example, in another possible implementation, Figure 5C As shown, in this embodiment, T2<V1, t2<t4<t3, in this embodiment, modifying porch and hardware interface DSI responding to cmd command are completed in the same frame.

[0059] 305. When T2<V1, in the next frame of the second frame, the display screen displays the image at the frame rate f2.

[0060] When this technical solution is used for display processing, the operation of modifying the porch and the DSI response to the cmd command are completed within the same frame, so that the screen can be prevented from being distorted when the electronic device exits the standby state and the frame rate of the image to be displayed changes; in addition, in the next frame of the second frame, the display screen displays the image at a frame rate of f2, so that the display screen can display the image at the new frame rate as soon as possible.

[0061] See also Figure 4A , Figure 4A FIG. 1 is a flow chart of a display processing method provided by another embodiment of the present application. Figure 4A As shown, the display processing method provided by the embodiment of the present application includes steps: 401 to 406. Below, steps 401 to 406 are described in detail.

[0062] 401. When there is an image update, exit the idle state, the frame rate corresponding to the updated image is a second frame rate f2, and f2≠f1.

[0063] 402. Determine a first duration T1, where the starting point t1 of T1 is the timestamp corresponding to the vertical synchronization Vsync signal of the first frame, and the first frame is the frame in which the electronic device enters the idle state; the end point t2 of T1 is the timestamp corresponding to the earliest moment in the second frame when the display driver can modify the blanking area porch, and the second frame is the frame in which the electronic device exits the idle state.

[0064] 403. Determine T2 based on T1; wherein, T1=n*T+T2, T=1 / f1, n is an integer, n≥0, 0<T2<T.

[0065] Since computers use floating point calculations, it is impossible to be accurate to an infinite number of digits. Therefore, in actual calculations, T1=n*T+T2 is a theoretical value. When T is an infinite number of cycles or an infinite number of cycles, the larger the value of n, the greater the cumulative error. In order to reduce the error, T2 can be determined in the following way. Determine the greatest common divisor of f1 and 1000 as x, y=1000 / x; determine T2=(b%(y*1000))%T, where T1=a(seconds)+b(microseconds); in the step after determining T2 based on T1, the value of T2 determined in this step is used.

[0066] 404. Determine whether T2 is less than V1.

[0067] If the judgment result is yes, then execute step 405. If the judgment result is no, then execute step 406.

[0068] 405. Execute the operation of modifying the porch at time t4; V1 is the duration corresponding to the timestamp corresponding to the Vsync signal of the second frame and the latest time t3 of modifying the porch when both the modification of the porch and the hardware interface DSI response cmd command are completed within the second frame; t2≤t4≤t3.

[0069] For example, in one possible implementation, Figure 5A As shown, in this embodiment, T2<V1, t4=t2, and in this embodiment, modifying porch and hardware interface DSI responding to cmd command are both completed in the same frame.

[0070] For example, in another possible implementation, Figure 5B As shown, in this embodiment, T2<V1, t4=t3, and in this embodiment, modifying porch and hardware interface DSI responding to cmd command are both completed in the same frame.

[0071] For example, in another possible implementation, Figure 5C As shown, in this embodiment, T2<V1, t2<t4<t3, in this embodiment, modifying porch and hardware interface DSI responding to cmd command are completed in the same frame.

[0072] 406. The operation of modifying the porch is performed at time t6. t6 is in the third frame. The third frame is the next frame adjacent to the second frame. The timestamp corresponding to the Vsync signal of the third frame is t5. t5=t3+(T-V1); t6=t5+T3, T VSYNC +T VBP <T3<V1,T VSYNC is the duration of the Vsync signal of the third frame, T VBP It is the duration corresponding to the back porch of the vertical blanking area of ​​the third frame.

[0073] For example, in one possible implementation, Figure 5D As shown, in this embodiment, T2>V1, in the third frame, the third frame is the next frame adjacent to the second frame, and the timestamp corresponding to the Vsync signal of the third frame is t5, t5=t3+(T-V1); t6=t5+T3, T VSYNC +T VBP <T3<V1,T VSYNC is the duration of the Vsync signal of the third frame, T VBP It is the duration corresponding to the back porch of the vertical blanking area of ​​the third frame. In this embodiment, the modification of porch and the hardware interface DSI response to the cmd command are both completed within the third frame.

[0074] When this technical solution is used for display processing, the operation of modifying the porch and the DSI response to the cmd command are completed in the same frame, so that the screen can be prevented from being distorted when the electronic device exits the standby state and the frame rate of the image to be displayed changes.

[0075] See also Figure 4B , Figure 4B FIG. 1 is a flow chart of a display processing method provided by another embodiment of the present application. Figure 4B As shown, the display processing method provided by the embodiment of the present application includes steps: 401 to 406. Below, steps 401 to 408 are described in detail.

[0076] 401. When there is an image update, exit the idle state, and the frame rate corresponding to the updated image is the second frame rate f2, f2≠f1.

[0077] 402. Determine a first duration T1, where the starting point t1 of T1 is the timestamp corresponding to the vertical synchronization Vsync signal of the first frame, and the first frame is the frame in which the electronic device enters the idle state; the end point t2 of T1 is the timestamp corresponding to the earliest moment in the second frame when the display driver can modify the blanking area porch, and the second frame is the frame in which the electronic device exits the idle state.

[0078] 403. Determine T2 based on T1; wherein, T1=n*T+T2, T=1 / f1, n is an integer, n≥0, 0<T2<T.

[0079] Since computers use floating point calculations, it is impossible to be accurate to an infinite number of digits. Therefore, in actual calculations, T1=n*T+T2 is a theoretical value. When T is an infinite number of cycles or an infinite number of cycles, the larger the value of n, the greater the cumulative error. In order to reduce the error, T2 can be determined in the following way. Determine the greatest common divisor of f1 and 1000 as x, y=1000 / x; determine T2=(b%(y*1000))%T, where T1=a(seconds)+b(microseconds); in the step after determining T2 based on T1, the value of T2 determined in this step is used.

[0080] 404. Determine whether T2 is less than V1.

[0081] If the judgment result is yes, then execute step 405. If the judgment result is no, then execute step 406.

[0082] 405. Execute the operation of modifying the porch at time t4; V1 is the duration corresponding to the timestamp corresponding to the Vsync signal of the second frame and the latest time t3 of modifying the porch when both the modification of the porch and the hardware interface DSI response cmd command are completed within the second frame; t2≤t4≤t3.

[0083] For example, in one possible implementation, Figure 5A As shown, in this embodiment, T2<V1, t4=t2, and in this embodiment, modifying porch and hardware interface DSI responding to cmd command are both completed in the same frame.

[0084] For example, in another possible implementation, Figure 5B As shown, in this embodiment, T2<V1, t4=t3, and in this embodiment, modifying porch and hardware interface DSI responding to cmd command are both completed in the same frame.

[0085] For example, in another possible implementation, Figure 5C As shown, in this embodiment, T2<V1, t2<t4<t3, in this embodiment, the modification of porch and the hardware interface DSI response cmd command are completed in the same frame. Then, step 407 is executed.

[0086] 406. The operation of modifying the porch is performed at time t6. t6 is in the third frame. The third frame is the next frame adjacent to the second frame. The timestamp corresponding to the Vsync signal of the third frame is t5. t5=t3+(T-V1); t6=t5+T3, T VSYNC +T VBP <T3<V1,T VSYNC is the duration of the Vsync signal of the third frame, T VBPIt is the duration corresponding to the back porch of the vertical blanking area of ​​the third frame.

[0087] For example, in one possible implementation, Figure 5D As shown, in this embodiment, T2>V1, in the third frame, the third frame is the next frame adjacent to the second frame, and the timestamp corresponding to the Vsync signal of the third frame is t5, t5=t3+(T-V1); t6=t5+T3, T VSYNC +T VBP <T3<V1,T VSYNC is the duration of the Vsync signal of the third frame, T VBP It is the duration corresponding to the back porch of the vertical blanking area of ​​the third frame. In this embodiment, the modification of porch and the hardware interface DSI response to the cmd command are completed within the third frame, and then step 408 is executed.

[0088] 407. In the next frame of the second frame, the display screen displays the image at the frame rate f2.

[0089] 408. In the next frame of the third frame, the display screen displays the image at the frame rate f2.

[0090] When this technical solution is used for display processing, the operation of modifying the porch and the DSI response to the cmd command are completed within the same frame, so that the screen can be prevented from being distorted when the electronic device exits the standby state and the frame rate of the image to be displayed changes; in addition, in the next frame of the second frame, the display screen displays the image at a frame rate of f2, so that the display screen can display the image at the new frame rate as soon as possible.

[0091] Corresponding to the previous method embodiment, the embodiment of the present application also provides a display processing device, which is applied to an electronic device, and the display screen of the electronic device is in a standby idle state at a first frame rate f1. The device includes: a first processing unit, a first determination unit, a second determination unit and a modification unit. Wherein, the first processing unit is used to exit the idle state when there is an image update, and the frame rate corresponding to the updated image is the second frame rate f2, f2≠f1; the first determining unit is used to determine the first duration T1, the starting point t1 of T1 is the timestamp corresponding to the vertical synchronization Vsync signal of the first frame, and the first frame is the frame in which the electronic device enters the idle state; the end point t2 of T1 is the timestamp corresponding to the earliest moment when the display driver can modify the blanking area porch in the second frame, and the second frame is the frame in which the electronic device exits the idle state; the second determining unit is used to determine T2 according to T1; wherein, T1=n*T+T2, T=1 / f1, n is an integer, n≥0, 0<T2<T; the modifying unit is used to perform the operation of modifying the porch at time t4 when T2<V1; V1 is the duration corresponding to the latest moment t3 of modifying the porch and the timestamp corresponding to the Vsync signal of the second frame when both the modification of the porch and the hardware interface DSI response cmd command are completed within the second frame; wherein, t2≤t4≤t3.

[0092] In a possible implementation, the display processing device further includes: a first display unit, configured to display the image at 2 in a frame next to the second frame when T2<V1.

[0093] In a possible implementation, the modification unit is further configured to, when T2 ≥ V1, perform an operation of modifying the porch at time t6, wherein t6 is within the third frame, the third frame is the next frame adjacent to the second frame, and the timestamp corresponding to the Vsync signal of the third frame is t5, t5 = t3 + (T-V1); t6 = t5 + T3, wherein T VSYNC +T VBP <T3<V1, the T VSYNC is the duration of the Vsync signal of the third frame, and the T VBP It is the duration corresponding to the back porch of the vertical blanking area of ​​the third frame.

[0094] In a possible implementation, the display processing device further includes: a second display unit, configured to display an image at f2 in a frame next to the third frame when T2 ≥ V1.

[0095] In one possible implementation, in determining T2 based on T1, the second determination unit is specifically used to determine that the greatest common divisor of f1 and 1000 is x, y=1000 / x; determine T2=(b%(y*1000))%T, where T1=a(seconds)+b(microseconds); and modify the value of T2 in the unit using the value of T2 determined by the second determination unit.

[0096] When this technical solution is used for display processing, the operation of modifying the porch and the DSI response to the cmd command are completed within the same frame, so that the screen can be prevented from being distorted when the electronic device exits the standby state and the frame rate of the image to be displayed changes; in addition, in the next frame of the second frame, the display screen displays the image at a frame rate of f2, so that the display screen can display the image at the new frame rate as soon as possible.

[0097] See also Figure 6 The embodiment of the present application also provides an electronic device 600 for implementing the above display processing method, such as Figure 6 As shown, the electronic device 600 may include a processor 610, an external memory interface 620, an internal memory 621, a universal serial bus (USB) interface 630, a charging management module 640, a power management module 641, a battery 642, an antenna 1, an antenna 2, a mobile communication module 650, a wireless communication module 660, an audio module 670, a speaker 670A, a receiver 670B, a microphone 670C, an earphone interface 670D, a sensor module 680, a button 690, a motor 691, an indicator 692, a camera 693, a screen 694, and a subscriber identification module (SIM) card interface 695, etc. Among them, the sensor module 680 may include a pressure sensor 680A, a gyroscope sensor 680B, an air pressure sensor 680C, a magnetic sensor 680D, an acceleration sensor 680E, a distance sensor 680F, a proximity light sensor 680G, a fingerprint sensor 680H, a temperature sensor 680J, a touch sensor 680K, an ambient light sensor 680L, a bone conduction sensor 680M, etc.

[0098] The processor 610 may include one or more processing units, for example, the processor 610 may include an AP, a CP, a modem processor, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a memory, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. Different processing units may be independent devices or integrated into one or more processors.

[0099] The controller may be the nerve center and command center of the electronic device 600. The controller may generate an operation control signal according to the instruction operation code and the timing signal to complete the control of fetching and executing instructions.

[0100] The processor 610 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 610 is a cache memory. The memory may store instructions or data that the processor 610 has just used or circulated. If the processor 610 needs to use the instruction or data again, it may be directly called from the memory. Repeated access is avoided, the waiting time of the processor 610 is reduced, and the efficiency of the system is improved. The processor may also be provided with a low-power memory (e.g., Island low power consumption, etc.) to reduce power consumption.

[0101] The electronic device 600 implements the display function through a GPU, a screen 694, and an application processor. The GPU is a microprocessor for image processing, which connects the screen 694 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 610 may include one or more GPUs, which execute program instructions to generate or change display information.

[0102] The screen 694 is used to display images, videos, etc. The screen 694 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light emitting diode or an active-matrix organic light emitting diode (AMOLED), a flexible light-emitting diode (FLED), Miniled, MicroLed, Micro-OLED, a quantum dot light emitting diode (QLED), etc. In some embodiments, the electronic device 600 may include 1 or N screens 694, where N is an integer greater than 1.

[0103] The electronic device 600 can realize the shooting function through ISP, camera 693, video codec, GPU, screen 694 and application processor.

[0104] ISP is used to process the data fed back by camera 693. For example, when taking a photo, the shutter is opened, and the light is transmitted to the camera photosensitive element through the lens. The light signal is converted into an electrical signal, and the camera photosensitive element transmits the electrical signal to ISP for processing and converts it into an image visible to the naked eye. ISP can also perform algorithm optimization on the noise, brightness, and skin color of the image. ISP can also optimize the exposure, color temperature and other parameters of the shooting scene. In some embodiments, ISP can be set in camera 693.

[0105] The camera 693 is used to capture still images or videos. The object generates an optical image through the lens and projects it onto the photosensitive element. The photosensitive element can be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the optical signal into an electrical signal, and then passes the electrical signal to the ISP to be converted into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into an image signal in a standard RGB, YUV or other format. In some embodiments, the electronic device 600 may include 1 or N cameras 693, where N is an integer greater than 1.

[0106] The external memory interface 620 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 600. The external memory card communicates with the processor 610 through the external memory interface 620 to implement a data storage function, such as storing music, video and other files in the external memory card.

[0107] The internal memory 621 can be used to store computer executable program codes, which include instructions. The processor 610 executes various functional applications and data processing of the electronic device 600 by running the instructions stored in the internal memory 621. The internal memory 621 may include a program storage area and a data storage area. Among them, the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc. The data storage area may store data (such as audio data, a phone book, etc.) created by the electronic device 600 during use. In addition, the internal memory 621 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc.

[0108] The acceleration sensor 680E can detect the magnitude of the acceleration of the electronic device 600 in all directions (generally three axes). When the electronic device 600 is stationary, the magnitude and direction of gravity can be detected. The acceleration sensor 680E can also be used to identify the posture of the electronic device 600, and is applied to applications such as horizontal and vertical screen switching and pedometers. Of course, the acceleration sensor 680E can also be combined with the gyroscope sensor 680B to identify the posture of the electronic device 600, and is applied to horizontal and vertical screen switching.

[0109] The gyroscope sensor 680B can be used to determine the motion posture of the electronic device 400. In some embodiments, the angular velocity of the electronic device 600 around three axes (i.e., x, y, and z axes) can be determined by the gyroscope sensor 680B. The gyroscope sensor 680B can be used for anti-shake shooting. Exemplarily, when the shutter is pressed, the gyroscope sensor 680B detects the angle of the electronic device 600 shaking, calculates the distance that the lens module needs to compensate based on the angle, and allows the lens to offset the shaking of the electronic device 600 through reverse movement to achieve anti-shake. The gyroscope sensor 680B can also be used for horizontal and vertical screen switching, navigation, and somatosensory game scenes.

[0110] It is to be understood that the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the electronic device 600. In other embodiments of the present application, the electronic device 600 may include more or fewer components than shown in the figure, or combine some components, or split some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.

[0111] The electronic device provided in the embodiment of the present application may be a user equipment (UE), such as a mobile terminal (such as a mobile phone) and other devices.

[0112] In addition, an operating system runs on the above components, such as the Android open source operating system developed by Google.

[0113] The software system of the electronic device may adopt a layered architecture, an event-driven architecture, a micro-core architecture, a micro-service architecture, or a cloud architecture, etc. In order to more clearly illustrate the touch operation recognition method provided in the embodiment of the present application, the embodiment of the present application takes the Android system of the layered architecture as an example to exemplify the software system of the electronic device.

[0114] Above Figure 6 This is just an example of the composition of an electronic device. Figure 7 , which is another composition example of an electronic device provided in an embodiment of the present application.

[0115] In this example, the software system of the electronic device can adopt a layered architecture, an event-driven architecture, a micro-core architecture, a micro-service architecture, or a cloud architecture. Taking the system as an example, the software structure of the electronic device is illustrated.

[0116] The layered architecture divides the software into several layers, each with a clear role and division of labor. The layers communicate with each other through software interfaces. The system is divided into five layers, from top to bottom: application layer, application framework layer, Android runtime (ART) and native C / C++ library, hardware abstraction layer (HAL) and kernel layer.

[0117] The application layer can include a series of application packages.

[0118] like Figure 7As shown, the electronic device may include a hardware layer and a software layer, wherein the Android system of the layered architecture may include an application layer, an application framework layer, a system library layer and a kernel layer. In some optional embodiments, the system of the electronic device may also include a layer not mentioned in the above technical architecture, such as Android Runtime. The application layer may include a series of application packages, such as navigation applications, music applications, video applications, and knuckle tapping screen applications. The application package may include applications such as video and chat, and a system user interface (SystemUI), and the knuckle tapping screen application may be used for screenshots, screen recording, long screenshots, regional screenshots, etc. In this example, the application package also includes applications such as contact search.

[0119] Video, chat and other applications are used to provide corresponding services to users. For example, users use video applications to watch videos, use chat applications to chat with other users, use music applications to listen to music, and use video synthesis to generate memory videos using existing images and videos.

[0120] SystemUI is used to manage the human-computer interaction interface (user interface, UI) of the electronic device. In the embodiment of the present application, SystemUI is used to monitor the touch operation on the touch screen.

[0121] The application framework layer provides application programming interface (API) and programming framework for the applications in the application layer. The application framework layer includes some predefined functions. The application framework layer can include window management service module (window manage service, WMS), display rotation module (also known as DisplayRotation), application management service module (activity manage service, AMS), input management module (also known as Input) and image processing module, etc.

[0122] WMS is used to manage window programs. The window manager can obtain the screen size, determine whether there is a status bar, cut out the image on the screen, capture the screen, etc. In the embodiment of the present application, WMS can create and manage the window corresponding to the application.

[0123] The display rotation module is used to control the screen rotation so that the screen presents a vertical or horizontal layout. For example, when it is determined that the screen needs to be rotated, Surfaceflinger is notified to switch the horizontal and vertical screens of the application interface.

[0124] AMS is used to start specific applications based on user operations. For example, when the image is synthesized, the image is triggered to be displayed on the main screen. After the image is displayed, the image that needs to be cut out is triggered to perform a cutout operation, and an application stack corresponding to the video application is created so that the video application can run normally.

[0125] The system library layer can include multiple functional modules, such as sensor module (also known as sensor) and SurfaceFlinger.

[0126] The sensor module is used to obtain data collected by the sensor, such as collecting ambient light under the screen. Collecting the gravity direction information of the electronic device. Alternatively, the sensor module can also adjust the brightness of the screen according to the ambient light, and determine the horizontal or vertical screen state information of the electronic device according to the gravity direction information of the electronic device. The horizontal or vertical screen state information is used to indicate whether the electronic device is in the horizontal screen state or the vertical screen state.

[0127] Surfaceflinger is a system service used for layer creation, control, and management.

[0128] In addition, the system library layer can also include: surface manager, media library, 3D graphics processing library (such as OpenGL ES), 2D graphics engine (such as SGL), etc. The surface manager is used to manage the display subsystem and provide fusion of 2D and 3D layers for multiple applications. The media library supports playback and recording of a variety of commonly used audio and video formats, as well as static image files, etc. The media library can support a variety of audio and video encoding formats, such as MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc. The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, synthesis, and layer processing, etc. The 2D graphics engine is a drawing engine for 2D drawing.

[0129] The kernel layer is a layer between hardware and software. In the embodiment of the present application, the kernel layer at least includes a touch driver module and a display driver module.

[0130] The display driver module is used to display the synthesized image on the screen according to the image data provided by the modules of the application framework layer and the application program of the application layer. For example, the video application passes the image data of a frame of the video to the display driver module, and the display driver module displays the image of a frame in the video on the touch screen according to the image data. SystemUI passes the image data to the display driver module, and the display driver module displays the synthesized image on the screen.

[0131] The touch driver module is used to monitor the capacitance data of each area of ​​the touch screen. When the user clicks or slides on the touch screen, the capacitance value of the clicked or slid area will change. The touch driver module can monitor the change of the capacitance value of each area on the touch screen and send a capacitance value change message to the input management module. The capacitance value data change message carries information such as the change amplitude of the capacitance value of each area of ​​the touch screen and the time of change.

[0132] The input management module can determine the touch operation based on the reported capacitance value change message, and then send the identified touch operation to other modules. The touch operation here can include knuckle tapping, clicking, dragging, and specific gesture operations (such as swiping up, swiping sideways, etc.).

[0133] The hardware layer includes the screen and ambient light sensor, etc. The ambient light sensor is used to detect the ambient light information under the screen, etc. The application processor monitors the touch operation on the touch screen, the baseband processor monitors the acceleration data and stores the monitored acceleration data in the storage module, when the AP monitors the touch operation, the CP identifies whether the touch operation is a knuckle tapping action based on the acceleration data stored in the storage module; the CP sends the identification result to the AP.

[0134] The above technical architecture lists the modules and devices that may be involved in this application in the electronic device. In practical applications, the electronic device may include all or part of the modules and devices of the above technical architecture, as well as other modules and devices not mentioned in the above technical architecture. Of course, it may also include only the modules and devices of the above technical architecture, which is not limited in this embodiment.

[0135] An embodiment of the present application also provides an electronic device, which includes a processor, a display and a memory, wherein the memory is used to store a computer program, the display is used to display an image, and the processor is used to call and run the computer program from the memory, so that the processor executes the display processing method described in any of the previous method embodiments.

[0136] An embodiment of the present application further provides a chip, including a processor. When the processor executes an instruction, the processor executes the display processing method as described in any of the foregoing method embodiments.

[0137] An embodiment of the present application further provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the steps in the above-mentioned method embodiments can be implemented.

[0138] An embodiment of the present application provides a computer program product, which includes a computer program. When the computer program is executed by a processor, the steps in the above-mentioned method embodiments can be implemented.

[0139] The present application implements all or part of the processes in the above-mentioned embodiment method, which can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a computer-readable storage medium. When the computer program is executed by the processor, the steps of each of the above-mentioned method embodiments can be implemented. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may at least include: any entity or device that can carry the computer program code to a camera / electronic device, a recording medium, a computer memory, a read-only memory (ROM), a random access memory (RAM), an electric carrier signal, a telecommunication signal, and a software distribution medium. For example, a USB flash drive, a mobile hard disk, a magnetic disk or an optical disk. In some jurisdictions, according to legislation and patent practice, computer-readable media cannot be electric carrier signals and telecommunication signals.

[0140] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0141] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0142] In the embodiments provided in the present application, it should be understood that the disclosed methods and electronic devices can be implemented in other ways. For example, the device / network device embodiments described above are merely schematic. For example, the division of the modules or units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0143] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0144] It should be understood that when used in the present specification and the appended claims, the term "comprising" indicates the presence of described features, wholes, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or combinations thereof.

[0145] It should also be understood that the term “and / or” used in the specification and appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes these combinations.

[0146] References to "one embodiment" or "some embodiments" etc. described in the specification of this application mean that one or more embodiments of the present application include specific features, structures or characteristics described in conjunction with the embodiment. Therefore, the statements "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. that appear in different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in other ways.

[0147] The embodiments described above are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, a person skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.

Claims

1. A display processing method, characterized in that: Applied to an electronic device, the display screen of the electronic device is in an idle state at a first frame rate f1, and the method includes: When there is an image update, exit the idle state, the frame rate corresponding to the updated image is a second frame rate f2, and f2≠f1; Determine a first duration T1, wherein the starting point t1 of T1 is a timestamp corresponding to a vertical synchronization Vsync signal of a first frame, and the first frame is a frame in which the electronic device enters an idle state; the end point t2 of T1 is a timestamp corresponding to a moment in a second frame when a display driver can modify a blanking area porch at the earliest, and the second frame is a frame in which the electronic device exits an idle state; Determine T2 according to T1; wherein T1=n*T+T2, T=1 / f1, n is an integer, n≥0, 0<T2<T; When T2<V1, the operation of modifying the porch is performed at time t4; V1 is the duration corresponding to the latest time t3 of modifying the porch and the timestamp corresponding to the Vsync signal of the second frame when both the modification of the porch and the hardware interface DSI response cmd command are completed within the second frame; wherein t2≤t4≤t3.

2. The method according to claim 1, characterized in that The method further comprises: When T2<V1, in the next frame of the second frame, the display screen displays an image at f2.

3. The method according to claim 1, characterized in that When T2≥V1, the operation of modifying the porch is performed at time t6, wherein t6 is within the third frame, the third frame is the next frame adjacent to the second frame, and the timestamp corresponding to the Vsync signal of the third frame is t5, t5=t3+(T-V1); t6=t5+T3, wherein T VSYNC +T VBP <T3<V1, the T VSYNC is the duration of the Vsync signal of the third frame, and the T VBP It is the duration corresponding to the back porch of the vertical blanking area of ​​the third frame.

4. The method according to claim 3, characterized in that The method further comprises: When T2≥V1, in the next frame of the third frame, the display screen displays an image at f2.

5. The method according to any one of claims 1 to 4, characterized in that: Determining T2 according to T1 includes: determining that the greatest common divisor of f1 and 1000 is x, y=1000 / x; determining T2=(b%(y*1000))%T, wherein T1=a (seconds)+b (microseconds); In the step after determining T2 according to T1, the value of T2 is the value of T2 determined in this step.

6. A display processing device, characterized in that: Applied to an electronic device, the display screen of the electronic device is in an idle state at a first frame rate f1, and the device comprises: A first processing unit, configured to exit an idle state when an image is updated, wherein a frame rate corresponding to the updated image is a second frame rate f2, and f2≠f1; A first determining unit is used to determine a first duration T1, wherein the starting point t1 of T1 is a timestamp corresponding to a vertical synchronization Vsync signal of a first frame, and the first frame is a frame in which the electronic device enters an idle state; the end point t2 of T1 is a timestamp corresponding to a moment in a second frame when a display driver can modify a blanking area porch at the earliest, and the second frame is a frame in which the electronic device exits an idle state; A second determining unit is used to determine T2 according to T1; wherein T1=n*T+T2, T=1 / f1, n is an integer, n≥0, 0<T2<T; A modification unit is used to perform the operation of modifying the porch at time t4 when T2<V1; V1 is the duration corresponding to the latest time t3 of modifying the porch and the timestamp corresponding to the Vsync signal of the second frame when both the modification of the porch and the hardware interface DSI response cmd command are completed within the second frame; wherein t2≤t4≤t3.

7. The device according to claim 6, characterized in that The device also includes: The first display unit is used to display an image at the f2 in a frame next to the second frame when T2<V1.

8. The device according to claim 6, characterized in that The modification unit is further configured to, when T2≥V1, perform the operation of modifying the porch at time t6, wherein t6 is within a third frame, the third frame is a next frame adjacent to the second frame, and a timestamp corresponding to a Vsync signal of the third frame is t5, t5=t3+(T-V1); t6=t5+T3, wherein T VSYNC +T VBP <T3<V1, the T VSYNC is the duration of the Vsync signal of the third frame, and the T VBP It is the duration corresponding to the back porch of the vertical blanking area of ​​the third frame.

9. The device according to claim 8, characterized in that The device also includes: The second display unit is used to display an image at the f2 in a frame next to the third frame when T2≥V1.

10. The device according to any one of claims 6 to 9, characterized in that In determining T2 according to T1, the second determining unit is specifically used to determine that the greatest common divisor of f1 and 1000 is x, y=1000 / x; determine T2=(b%(y*1000))%T, wherein T1=a (seconds)+b (microseconds); The value of T2 in the modification unit uses the value of T2 determined in this step.

11. An electronic device, characterized in that: The electronic device includes a processor, a display and a memory, the memory is used to store a computer program, the display is used to display an image, and the processor is used to call and run the computer program from the memory, so that the processor executes the display processing method described in any one of claims 1 to 5.

12. A chip, characterized in that: The device comprises a processor, and when the processor executes instructions, the processor performs the display processing method according to any one of claims 1 to 5.

13. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the processor executes the display processing method according to any one of claims 1 to 5.