CN102004620B - Image updating method and device - Google Patents
Image updating method and device Download PDFInfo
- Publication number
- CN102004620B CN102004620B CN2010105360804A CN201010536080A CN102004620B CN 102004620 B CN102004620 B CN 102004620B CN 2010105360804 A CN2010105360804 A CN 2010105360804A CN 201010536080 A CN201010536080 A CN 201010536080A CN 102004620 B CN102004620 B CN 102004620B
- Authority
- CN
- China
- Prior art keywords
- vertical synchronizing
- synchronizing signal
- system time
- diff
- refresh
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Fee Related
Links
Images
Landscapes
- Controls And Circuits For Display Device (AREA)
Abstract
The invention discloses an image updating method comprising the following steps of: when vertical synchronization is not started, acquiring the system time t1 of call updating; acquiring system time t2 after the updating is completed; when the vertical synchronization is started, acquiring system time T1 after the updating is completed when vertical synchronization signals arrive for a certain time; calculating system time T_syncl of the arrival of the vertical synchronization signals according to t1, t2 and T1; calculating the time difference T_diff of two adjacent vertical synchronization signals according to screen refresh rate; previously acquiring system time T_syncn of the arrival of the vertical synchronization signals on the basis of T_syncl according to T_diff; and rendering the image data of a plurality of windows to a buffer area when the vertical synchronization arrives every time. The invention also discloses an image updating device. The problem of low image frame rate when images are vertically synchronously updated is solved.
Description
Technical field
The present invention relates to image processing field, relate in particular to a kind of image updating method and device.
Background technology
The flow process that the simple image of computing machine from the video card to the display shows: computer system application calling interface; Video card writes the display buffer to view data; Be transferred to display and read the data in the display buffer, display is responsible for a data presentation on screen.
System " writes " the video card display buffer to view data, and display " reads " view data of display buffer and shows.These two steps are having no under the prerequisite of restriction; The situation that two steps are carried out simultaneously might take place, and at a time, video card is after completion i two field picture " writes " the buffer zone operation; Carry out the i+1 two field picture and " writing " buffer zone when operation; Display is being carried out from the buffer zone read operation synchronously, and the view data that reads of display is exactly the combination image of i frame and i+1 frame so---and promptly a part is the image of i frame, and the part of being left is the image of i+1 frame.Seem to become two parts just as picture break-up.This phenomenon is exactly " picture break-up " phenomenon that image shows.A kind of universal method that the solution figure is torn is " vertical synchronization ".
When application program adopts the vertical synchronization method to come update image, must wait until that vertical synchronizing signal could write view data toward the display buffer, and show that specified frequency is installed draws the clear screen image.The frequency of vertical synchronizing signal equates with the screen-refresh frequency, and promptly two vertical synchronizing signals equated with mistiming between two screen drawings refresh.And have the regular hour poor between vertical synchronizing signal and display drafting refreshed image; Because the powerful graphic capability of modern video card; So should the mistiming enough video cards are accomplished the work that writes of view data; Thereby avoid video card and display to operate the display buffer simultaneously, and then " picture is torn " problem when having solved above-mentioned image update.
But when the refresh rate certain (being assumed to be 60Hz) of screen, multiwindow uses vertical synchronization method update image simultaneously, and the average frame per second of single window is 60/n FPS (Frames Per Second).Promptly along with the rising of window number, the average frame per second of single window is linear to descend.When using the vertical synchronization update image, the frame per second of system's update image data toward the display buffer is certain.As shown in Figure 1; Suppose to have the image of 2 windows to need to upgrade; Owing to the concrete time that does not have the corresponding interface function can obtain vertical synchronizing signal, do not know that when vertical synchronizing signal arrives, and can only block the arrival of waiting for vertical synchronizing signal during renewal; Only upgrade the view data of a window when each vertical synchronizing signal arrives, the performance of video card is not brought into play fully.
Summary of the invention
The invention discloses a kind of image updating method and device, the low problem of image frame per second in the time of can overcoming the vertical synchronization update image.
A kind of image updating method is characterized in that, comprises step:
(1) when not launching vertical synchronization, obtains the system time t1 of application call display interface update image; And obtain the system time t2 after said display interface update image is accomplished;
(2) when opening vertical synchronization, the system time T1 after said display interface update image is accomplished when obtaining certain vertical synchronizing signal arrival;
(3), calculate the system time T_sync1=T1-T0 that said vertical synchronizing signal arrives according to said t1, said t2 and said T1;
(4) calculate the mistiming T_diff of two adjacent vertical synchronizing signals according to screen refresh rate;
(5) be benchmark with said T_sync1, and, calculate the system time T_syncn that each vertical synchronizing signal arrives in advance according to said T_diff;
When (6) each vertical synchronizing signal arrives, be rendered into buffer zone to the view data of a plurality of windows.
The invention also discloses a kind of image update device, it is characterized in that, comprising:
Acquisition module; Be used for when not launching vertical synchronization; Obtain after the system time t1 of application call display interface update image, said display interface update image accomplish system time t2 and when opening vertical synchronization, the system time T1 when obtaining certain vertical synchronizing signal and arriving after the said display interface update image completion;
Computing module, the time and the said T_diff that be used for calculating the mistiming T_diff of two adjacent vertical synchronizing signals, obtain according to acquisition module calculate the system time T_syncn that each vertical synchronizing signal arrives;
Rendering module is used for when each vertical synchronizing signal arrives, being rendered into buffer zone to the view data of a plurality of windows.
Among the present invention through getting access to when not opening vertical synchronization, the system time when application call is upgraded with upgrade the deadline, and then can calculate the required time of frame still image content of renewal; Get access to the renewal deadline when opening vertical synchronization again; And calculate time intervals of two adjacent vertical synchronizing signal times; Because of the system time of each vertical synchronizing signal becomes arithmetic progression, can calculate thus and there emerged a the system time that vertical synchronizing signal arrives; When vertical synchronizing signal arrives, be rendered into buffer zone to the view data of a plurality of windows.Because can know the system time that vertical synchronizing signal arrives in advance; Need not passive wait vertical synchronizing signal arrival carry out playing up of view data again; In mistiming between vertical synchronizing signal arrival and display refreshing image; Be rendered into buffer zone to the view data of a plurality of windows, improved the frame per second of image.
Description of drawings
Fig. 1 is a vertical synchronization image update process flow diagram;
Fig. 2 is a process flow diagram of the inventive method;
Fig. 3 is the image update process flow diagram when not starting vertical synchronization;
Fig. 4 is another vertical synchronization image update process flow diagram;
Fig. 5 is a device synoptic diagram of the present invention.
Embodiment
With reference to figure 2, the invention discloses a kind of image updating method, concrete steps are following:
201, when not launching vertical synchronization, obtain and call t1 and upgrade deadline t2 update time;
When not launching vertical synchronization, obtain the system time t1 of application call display interface update image; And the system time t2 after obtaining the display interface update image and accomplishing;
202, when opening vertical synchronization, obtain and upgrade the time T of accomplishing 1 when certain vertical synchronizing signal arrives;
When opening vertical synchronization, the system time T1 after the display interface update image is accomplished when obtaining certain vertical synchronizing signal arrival.
203,, calculate the system time T_sync1 that vertical synchronizing signal arrives according to t1, t2 and T1;
204, calculate the mistiming T_diff of two adjacent vertical synchronizing signals according to screen refresh rate;
205, calculate the system time T_syncn that each vertical synchronizing signal arrives in advance;
With T_sync1 is benchmark, and according to T_diff, calculates the system time T_syncn that each vertical synchronizing signal arrives in advance.
206, the multiwindow view data is played up.
When each vertical synchronizing signal arrives, be rendered into buffer zone to the view data of a plurality of windows.
Among the present invention through getting access to when not opening vertical synchronization, the system time when application call is upgraded with upgrade the deadline, and then can calculate the required time of frame still image content of renewal; Get access to the renewal deadline when opening vertical synchronization again; And calculate time intervals of two adjacent vertical synchronizing signal times; Because of the system time of each vertical synchronizing signal becomes arithmetic progression, can calculate thus and there emerged a the system time that vertical synchronizing signal arrives; When vertical synchronizing signal arrives, be rendered into buffer zone to the view data of a plurality of windows.Because can know the system time that vertical synchronizing signal arrives; Need not passive wait vertical synchronizing signal arrival carry out playing up of view data again; In mistiming between vertical synchronizing signal arrival and display refreshing image; Be rendered into buffer zone to the view data of a plurality of windows, improved the frame per second of image.
Introduce an embodiment of the inventive method below:
When not opening vertical synchronization,, obtain the system time t1 of application call display interface update image with reference to figure 3; Because the actual system time that begins to upgrade of the system time of application call display interface update image and video card is the same time when not opening vertical synchronization, get access to the system time t2 after this display interface update image is accomplished so after; Just can calculate and upgrade the required time T 0 of a frame still image content; T0=t2-t1;
With reference to figure 4, open under the situation of vertical synchronization the system time T1 after this display interface update image is accomplished when obtaining certain vertical synchronizing signal arrival;
Because T1 was made up of the time of 2 parts: upgrade the time T _ sync1 of required time T of a frame still image content 0 and vertical synchronizing signal arrival, so T_sync1=T1-T0;
Because the frequency of vertical synchronizing signal equates with the refreshing frequency Refresh of screen; And Refresh is known; Two screen-refresh time interval t4=1/Refresh so, the time interval of so adjacent two vertical synchronizing signals is T_diff=t4=1/Refresh;
Because the time interval of per two adjacent vertical synchronizing signals equates, is T_diff=t4=1/Refresh; Becoming tolerance between the system time that each vertical synchronizing signal arrives so is the arithmetic progression of T_diff;
The vertical synchronizing signal that arrives constantly with this T_sync1 is first vertical synchronizing signal, and then the system time of second vertical synchronizing signal arrival is T_sync2=T_sync1+T_diff=(T1-T0)+T_diff=[T1-(t2-t1)]+T_diff; The system time of the 3rd vertical synchronizing signal arrival is that the system time that T_sync3=T_sync2+T_diff=(T_sync1+T_diff)+T_diff={ [T1-(t2-t1)]+T_diff}+T_diff=[T1-(t2-t1)]+n vertical synchronizing signal of 2T_diff...... arrives is T_syncn=T_sync1+ (n-1) T_diff.
Open vertical synchronization, when each vertical synchronization arrives, be rendered into buffer zone to the view data of a plurality of windows.
Among the present invention through getting access to when not opening vertical synchronization, the system time when application call is upgraded with upgrade the deadline, and then can calculate the required time of frame still image content of renewal; Get access to the renewal deadline when opening vertical synchronization again; And calculate time intervals of two adjacent vertical synchronizing signal times; Because of the system time of each vertical synchronizing signal becomes arithmetic progression, can calculate thus and there emerged a the system time that vertical synchronizing signal arrives, system can know the time that each vertical synchronizing signal arrives in advance; And then can initiatively be rendered into buffer zone to the view data of a plurality of windows, improve the frame per second of image.
Fig. 5 is a device synoptic diagram of the present invention, comprises acquisition module 501, computing module 502 and rendering module 503;
Wherein, Acquisition module 501; Be used for when not launching vertical synchronization; System time t2 after the system time t1, display interface update image that obtains application call display interface update image accomplishes and when opening vertical synchronization, the system time T1 when obtaining certain vertical synchronizing signal and arriving after the completion of display interface update image;
Rendering module 503 when being used for each vertical synchronizing signal and arriving, is rendered into buffer zone to the view data of a plurality of windows.
Among the present invention through getting access to when not opening vertical synchronization, the system time when application call is upgraded with upgrade the deadline, and then can calculate the required time of frame still image content of renewal; Get access to the renewal deadline when opening vertical synchronization again; And calculate time intervals of two adjacent vertical synchronizing signal times; Because of the system time of each vertical synchronizing signal becomes arithmetic progression, can calculate thus and there emerged a the system time that vertical synchronizing signal arrives; When vertical synchronizing signal arrives, be rendered into buffer zone to the view data of a plurality of windows.Because can know the system time that vertical synchronizing signal arrives; Need not passive wait vertical synchronizing signal arrival carry out playing up of view data again; In mistiming between vertical synchronizing signal and display refreshing image; Be rendered into buffer zone to the view data of a plurality of windows, like this in the frame per second that guarantees not occur to have improved under the situation of picture break-up image.
Above-described embodiment of the present invention does not constitute the qualification to protection domain of the present invention.Any modification of within spirit of the present invention and principle, being done, be equal to replacement and improvement etc., all should be included within the claim protection domain of the present invention.
Claims (2)
1. an image updating method is characterized in that, comprises step:
(1) when not launching vertical synchronization, obtains the system time t1 of application call display interface update image; And obtain the system time t2 after said display interface update image is accomplished;
(2) when opening vertical synchronization, the system time T1 after said display interface update image is accomplished when obtaining certain vertical synchronizing signal arrival;
(3) according to said t1, said t2 and said T1, calculate the system time T_sync1 that said vertical synchronizing signal arrives, detailed process is: calculate and upgrade a frame still image content required time T0, T0=t2-t1, T_sync1=T1-T0;
(4) calculate the mistiming T_diff of two adjacent vertical synchronizing signals according to screen refresh rate; Detailed process is: the frequency of vertical synchronizing signal equates with the refreshing frequency Refresh of screen; And Refresh is known; Two screen-refresh time interval t4=1/Refresh so, the time interval of adjacent two vertical synchronizing signals is T_diff=t4=1/Refresh;
(5) be benchmark with said T_sync1; And according to said T_diff; Calculate the system time T_syncn that each vertical synchronizing signal arrives in advance; Detailed process is: try to achieve the system time T_syncn that each vertical synchronizing signal arrives with arithmetic progression model T_syncn=T_sync1+ (n-1) T_diff, wherein T_syncn is the system time that n vertical synchronizing signal arrives;
When (6) each vertical synchronizing signal arrives, be rendered into buffer zone to the view data of a plurality of windows.
2. an image update device is characterized in that, comprising:
Acquisition module; Be used for when not launching vertical synchronization; Obtain after the system time t1 of application call display interface update image, said display interface update image accomplish system time t2 and when opening vertical synchronization, the system time T1 when obtaining certain vertical synchronizing signal and arriving after the said display interface update image completion;
Computing module; Time that is used for calculating the mistiming T_diff of two adjacent vertical synchronizing signals, obtains according to acquisition module and said T_diff calculate the system time T_syncn that each vertical synchronizing signal arrives; Detailed process is: calculate and upgrade a frame still image content required time T0; T0=t2-t1; The system time T_sync1=T1-T0 that said certain vertical synchronizing signal arrives, the frequency of vertical synchronizing signal equates with the refreshing frequency Refresh of screen, and Refresh is known; Two screen-refresh time interval t4=1/Refresh so; The time interval of adjacent two vertical synchronizing signals is T_diff=t4=1/Refresh, tries to achieve the system time T_syncn that each vertical synchronizing signal arrives in advance with arithmetic progression model T_syncn=T_sync1+ (n-1) T_diff, and wherein T_syncn is the system time that n vertical synchronizing signal arrives;
Rendering module is used for when each vertical synchronizing signal arrives, being rendered into buffer zone to the view data of a plurality of windows.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2010105360804A CN102004620B (en) | 2010-11-09 | 2010-11-09 | Image updating method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2010105360804A CN102004620B (en) | 2010-11-09 | 2010-11-09 | Image updating method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102004620A CN102004620A (en) | 2011-04-06 |
CN102004620B true CN102004620B (en) | 2012-05-09 |
Family
ID=43812005
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2010105360804A Expired - Fee Related CN102004620B (en) | 2010-11-09 | 2010-11-09 | Image updating method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102004620B (en) |
Families Citing this family (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103856809A (en) * | 2012-12-03 | 2014-06-11 | ***通信集团公司 | Method, system and terminal equipment for multipoint at the same screen |
CN104503564B (en) * | 2014-12-31 | 2017-05-03 | 中科创达软件股份有限公司 | Control method and device for picture refreshing of application program |
CN106484348B (en) * | 2016-09-20 | 2020-09-22 | Tcl科技集团股份有限公司 | Animation drawing method and system based on synchronous signals |
CN106658064B (en) * | 2016-12-28 | 2020-02-18 | 广州华多网络科技有限公司 | Virtual gift display method and device |
CN106843859A (en) * | 2016-12-31 | 2017-06-13 | 歌尔科技有限公司 | The method for drafting and device and a kind of virtual reality device of a kind of virtual reality scenario |
WO2020062069A1 (en) * | 2018-09-28 | 2020-04-02 | Qualcomm Incorporated | Frame composition alignment to target frame rate for janks reduction |
WO2020062052A1 (en) * | 2018-09-28 | 2020-04-02 | Qualcomm Incorporated | Smart and dynamic janks reduction technology |
CN109582196A (en) * | 2018-11-02 | 2019-04-05 | 深圳市创梦天地科技有限公司 | A kind of method and device that information is shown |
CN109992232B (en) * | 2019-04-09 | 2022-02-01 | Oppo广东移动通信有限公司 | Image updating method, device, terminal and storage medium |
WO2021000220A1 (en) * | 2019-07-01 | 2021-01-07 | Qualcomm Incorporated | Methods and apparatus for dynamic jank reduction |
CN111193953B (en) * | 2020-01-14 | 2022-04-15 | 井冈山电器有限公司 | Display system and method for synchronizing videos of multiple spliced display screens |
CN113190315B (en) * | 2021-04-29 | 2022-11-25 | 安徽华米健康医疗有限公司 | Display refreshing method and device |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101667402A (en) * | 2008-09-01 | 2010-03-10 | 奇美电子股份有限公司 | Three-dimensional liquid crystal display system and display method thereof |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP3919767B2 (en) * | 1999-01-29 | 2007-05-30 | キヤノン株式会社 | Image processing device |
US7176870B2 (en) * | 2001-12-27 | 2007-02-13 | Renesas Technology Corp. | Display drive control circuit |
EP1376995A3 (en) * | 2002-06-21 | 2004-03-17 | Samsung Electronics Co., Ltd. | Device and method for displaying data in a mobile terminal equipped with a camera |
FI114882B (en) * | 2003-04-30 | 2005-01-14 | Nokia Corp | Photo Frame Update Sync |
-
2010
- 2010-11-09 CN CN2010105360804A patent/CN102004620B/en not_active Expired - Fee Related
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101667402A (en) * | 2008-09-01 | 2010-03-10 | 奇美电子股份有限公司 | Three-dimensional liquid crystal display system and display method thereof |
Non-Patent Citations (2)
Title |
---|
JP特开2004-295133A 2004.10.21 |
JP特开2009-3457A 2009.01.08 |
Also Published As
Publication number | Publication date |
---|---|
CN102004620A (en) | 2011-04-06 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102004620B (en) | Image updating method and device | |
CN101968728B (en) | Processing method and device after acquiring vertical synchronization time during image update | |
CN109992232B (en) | Image updating method, device, terminal and storage medium | |
CN110018874B (en) | Vertical synchronization method, device, terminal and storage medium | |
CN102117594B (en) | Techniques for aligning frame data | |
KR100947131B1 (en) | Apparatus and method for switching between buffers using a video frame buffer flip queue | |
CN103886849B (en) | Method and apparatus for aligning frame data | |
US8022894B2 (en) | Screen synchronous control apparatus | |
EP1217602A3 (en) | Updating image frames in a display device comprising a frame buffer | |
CN106843859A (en) | The method for drafting and device and a kind of virtual reality device of a kind of virtual reality scenario | |
CN102279692B (en) | The method of realizing preview while dragging object, client | |
EP1278158A2 (en) | Drawing apparatus | |
CN102929415A (en) | Local monitor and mouse display synchronization method for local monitor and remote virtual machine | |
US9019235B2 (en) | Method of driving touch display and touch display capable of increasing signal-to-noise ratio | |
CN115831032A (en) | Chip temperature drift processing method and device | |
CN101453571A (en) | Method and equipment for television image effect comparison | |
CN108769815A (en) | Method for processing video frequency and its device | |
CN102207839B (en) | Method and system for eliminating horizontal image tearing | |
CN103838533B (en) | The synchronous method of figure signal and sync card in computer cluster splice displaying system | |
CN109358830B (en) | Double-screen display method for eliminating AR/VR picture tearing and AR/VR display equipment | |
CN106601187A (en) | Display control device, control card, display device and control method thereof | |
CN202422697U (en) | Big-screen high-definition LED (light-emitting diode) splicing processing device | |
CN112637615B (en) | Method and device for smooth display of intelligent tag in live broadcast scene | |
KR20150071373A (en) | Display driver and image signal processing system including the same | |
CN112445372A (en) | Display device with touch panel and control method thereof |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20120509 Termination date: 20141109 |
|
EXPY | Termination of patent right or utility model |