CN102004620A - Image updating method and device - Google Patents

Image updating method and device Download PDF

Info

Publication number
CN102004620A
CN102004620A CN 201010536080 CN201010536080A CN102004620A CN 102004620 A CN102004620 A CN 102004620A CN 201010536080 CN201010536080 CN 201010536080 CN 201010536080 A CN201010536080 A CN 201010536080A CN 102004620 A CN102004620 A CN 102004620A
Authority
CN
China
Prior art keywords
system time
vertical synchronizing
synchronizing signal
image
vertical synchronization
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.)
Granted
Application number
CN 201010536080
Other languages
Chinese (zh)
Other versions
CN102004620B (en
Inventor
蔡才冠
刘先材
谷新征
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vtron Technologies Ltd
Original Assignee
Vtron Technologies Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Vtron Technologies Ltd filed Critical Vtron Technologies Ltd
Priority to CN2010105360804A priority Critical patent/CN102004620B/en
Publication of CN102004620A publication Critical patent/CN102004620A/en
Application granted granted Critical
Publication of CN102004620B publication Critical patent/CN102004620B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

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

A kind of image updating method and device
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, and the data read in the display buffer is transferred to display, 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 under the prerequisite without any restriction, the situation that two steps are carried out simultaneously might take place, at a time, video card is after finishing the i two field picture and " writing " buffer zone operation, carry out the i+1 two field picture and " writing " buffer zone when operation, display is being carried out synchronously from the buffer zone read operation, 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 enough video cards of mistiming finish 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, system is certain toward the frame per second of display buffer update image data.As shown in Figure 1, suppose to have the image of 2 windows to need to upgrade, owing to there is not the corresponding interface function can obtain the concrete time of vertical synchronizing signal, do not know when vertical synchronizing signal arrives, 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 enabling vertical synchronization, obtains the system time t1 of application call display interface update image; And obtain system time t2 after described display interface update image is finished;
(2) when opening vertical synchronization, the system time T1 after described display interface update image is finished when obtaining certain vertical synchronizing signal arrival;
(3), calculate the system time T_sync1 that described vertical synchronizing signal arrives according to described t1, described t2 and described T1;
(4) calculate the mistiming T_diff of two adjacent vertical synchronizing signals according to screen refresh rate;
(5) be benchmark with described T_sync1, and, calculate the system time T_syncn that each vertical synchronizing signal arrives in advance according to described T_diff;
When (6) each vertical synchronizing signal arrives, the view data of a plurality of windows is rendered into buffer zone.
The invention also discloses a kind of image update device, it is characterized in that, comprising:
Acquisition module, be used for when not enabling vertical synchronization, system time t2 after obtaining the system time t1 of application call display interface update image, described display interface update image and finishing and when opening vertical synchronization, the system time T1 after described display interface update image is finished when obtaining certain vertical synchronizing signal and arriving;
Computing module is used for calculating the mistiming T_diff of two adjacent vertical synchronizing signals, time and the described T_diff that obtains according to acquisition module and calculates the system time T_syncn that each vertical synchronizing signal arrives;
Rendering module is used for when each vertical synchronizing signal arrives the view data of a plurality of windows being rendered into buffer zone.
Among the present invention by getting access to when not opening vertical synchronization, the system time when application call is upgraded and 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, the view data of a plurality of windows is rendered into buffer zone.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, the view data of a plurality of windows is rendered into buffer zone, has 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 as follows:
201, when not enabling vertical synchronization, obtain and call t1 and upgrade deadline t2 update time;
When not enabling 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 finishing;
202, when opening vertical synchronization, obtain and upgrade the time T of finishing 1 when certain vertical synchronizing signal arrives;
When opening vertical synchronization, the system time T1 after the display interface update image is finished 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, the view data of a plurality of windows is rendered into buffer zone.
Among the present invention by getting access to when not opening vertical synchronization, the system time when application call is upgraded and 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, the view data of a plurality of windows is rendered into buffer zone.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, the view data of a plurality of windows is rendered into buffer zone, has 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 finished 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 finished when obtaining certain vertical synchronizing signal arrival;
Because T1 was made up of the time of 2 parts: upgrade time T _ sync1 that required time T 0 of a frame still image content and vertical synchronizing signal arrive, 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 T_sync3=T_sync2+T_diff=(T_sync1+T_diff)+T_diff={[T1-(t2-t1)]+T_diff}+T_diff=[T1-(t2-t1)]+2T_diff ... the system time of n vertical synchronizing signal arrival is T_syncn=T_sync1+(n-1) T_diff.
Open vertical synchronization, when each vertical synchronization arrives, the view data of a plurality of windows is rendered into buffer zone.
Among the present invention by getting access to when not opening vertical synchronization, the system time when application call is upgraded and 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 enabling vertical synchronization, system time t2 after system time t1, the display interface update image of obtaining application call display interface update image finished and when opening vertical synchronization, the system time T1 after the display interface update image is finished when obtaining certain vertical synchronizing signal and arriving;
Computing module 502 is used for calculating the mistiming T_diff of two adjacent vertical synchronizing signals, time and the T_diff that obtains according to acquisition module and calculates the system time T_syncn that each vertical synchronizing signal arrives;
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 by getting access to when not opening vertical synchronization, the system time when application call is upgraded and 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, the view data of a plurality of windows is rendered into buffer zone.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, the view data of a plurality of windows is rendered into buffer zone, 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 being done within the spirit and principles in the present invention, be equal to and replace and improvement etc., all should be included within the claim protection domain of the present invention.

Claims (3)

1. an image updating method is characterized in that, comprises step:
(1) when not enabling vertical synchronization, obtains the system time t1 of application call display interface update image; And obtain system time t2 after described display interface update image is finished;
(2) when opening vertical synchronization, the system time T1 after described display interface update image is finished when obtaining certain vertical synchronizing signal arrival;
(3), calculate the system time T_sync1 that described vertical synchronizing signal arrives according to described t1, described t2 and described T1;
(4) calculate the mistiming T_diff of two adjacent vertical synchronizing signals according to screen refresh rate;
(5) be benchmark with described T_sync1, and, calculate the system time T_syncn that each vertical synchronizing signal arrives in advance according to described T_diff;
When (6) each vertical synchronizing signal arrives, the view data of a plurality of windows is rendered into buffer zone.
2. image updating method according to claim 1 is characterized in that, with arithmetic progression model T_syncn=T_sync1+(n-1) T_diff tries to achieve the system time T_syncn that each vertical synchronizing signal arrives.
3. an image update device is characterized in that, comprising:
Acquisition module, be used for when not enabling vertical synchronization, system time t2 after obtaining the system time t1 of application call display interface update image, described display interface update image and finishing and when opening vertical synchronization, the system time T1 after described display interface update image is finished when obtaining certain vertical synchronizing signal and arriving;
Computing module is used for calculating the mistiming T_diff of two adjacent vertical synchronizing signals, time and the described T_diff that obtains according to acquisition module and calculates the system time T_syncn that each vertical synchronizing signal arrives;
Rendering module is used for when each vertical synchronizing signal arrives the view data of a plurality of windows being rendered into buffer zone.
CN2010105360804A 2010-11-09 2010-11-09 Image updating method and device Expired - Fee Related CN102004620B (en)

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 true CN102004620A (en) 2011-04-06
CN102004620B 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)

Cited By (12)

* Cited by examiner, † Cited by third party
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
CN104503564A (en) * 2014-12-31 2015-04-08 中科创达软件股份有限公司 Control method and device for picture refreshing of application program
CN106484348A (en) * 2016-09-20 2017-03-08 Tcl集团股份有限公司 A kind of animation method for drafting based on synchronizing signal and system
CN106658064A (en) * 2016-12-28 2017-05-10 广州华多网络科技有限公司 Virtual gift showing 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
CN109582196A (en) * 2018-11-02 2019-04-05 深圳市创梦天地科技有限公司 A kind of method and device that information is shown
WO2020062052A1 (en) * 2018-09-28 2020-04-02 Qualcomm Incorporated Smart and dynamic janks reduction technology
WO2020062069A1 (en) * 2018-09-28 2020-04-02 Qualcomm Incorporated Frame composition alignment to target frame rate for janks reduction
CN111193953A (en) * 2020-01-14 2020-05-22 井冈山电器有限公司 Display system and method for synchronizing videos of multiple spliced display screens
WO2020207251A1 (en) * 2019-04-09 2020-10-15 Oppo广东移动通信有限公司 Image update method and apparatus, and terminal and storage medium
WO2021000220A1 (en) * 2019-07-01 2021-01-07 Qualcomm Incorporated Methods and apparatus for dynamic jank reduction
CN113190315A (en) * 2021-04-29 2021-07-30 安徽华米健康医疗有限公司 Display refreshing method and device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030236105A1 (en) * 2002-06-21 2003-12-25 Chae-Whan Lim Device and method for displaying data in mobile terminal equipped with camera
JP2004295133A (en) * 1999-01-29 2004-10-21 Canon Inc Image processing device
US20040239677A1 (en) * 2003-04-30 2004-12-02 Nokia Corporation Synchronization of image frame update
JP2009003457A (en) * 2001-12-27 2009-01-08 Renesas Technology Corp Display system and mobile phone using the same
CN101667402A (en) * 2008-09-01 2010-03-10 奇美电子股份有限公司 Three-dimensional liquid crystal display system and display method thereof

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004295133A (en) * 1999-01-29 2004-10-21 Canon Inc Image processing device
JP2009003457A (en) * 2001-12-27 2009-01-08 Renesas Technology Corp Display system and mobile phone using the same
US20030236105A1 (en) * 2002-06-21 2003-12-25 Chae-Whan Lim Device and method for displaying data in mobile terminal equipped with camera
US20040239677A1 (en) * 2003-04-30 2004-12-02 Nokia Corporation Synchronization of image frame update
CN101667402A (en) * 2008-09-01 2010-03-10 奇美电子股份有限公司 Three-dimensional liquid crystal display system and display method thereof

Cited By (15)

* Cited by examiner, † Cited by third party
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
CN104503564A (en) * 2014-12-31 2015-04-08 中科创达软件股份有限公司 Control method and device for picture refreshing of application program
CN104503564B (en) * 2014-12-31 2017-05-03 中科创达软件股份有限公司 Control method and device for picture refreshing of application program
CN106484348A (en) * 2016-09-20 2017-03-08 Tcl集团股份有限公司 A kind of animation method for drafting based on synchronizing signal and system
CN106658064B (en) * 2016-12-28 2020-02-18 广州华多网络科技有限公司 Virtual gift display method and device
CN106658064A (en) * 2016-12-28 2017-05-10 广州华多网络科技有限公司 Virtual gift showing 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
WO2020207251A1 (en) * 2019-04-09 2020-10-15 Oppo广东移动通信有限公司 Image update method and apparatus, and terminal and storage medium
WO2021000220A1 (en) * 2019-07-01 2021-01-07 Qualcomm Incorporated Methods and apparatus for dynamic jank reduction
CN111193953A (en) * 2020-01-14 2020-05-22 井冈山电器有限公司 Display system and method for synchronizing videos of multiple spliced display screens
CN111193953B (en) * 2020-01-14 2022-04-15 井冈山电器有限公司 Display system and method for synchronizing videos of multiple spliced display screens
CN113190315A (en) * 2021-04-29 2021-07-30 安徽华米健康医疗有限公司 Display refreshing method and device

Also Published As

Publication number Publication date
CN102004620B (en) 2012-05-09

Similar Documents

Publication Publication Date Title
CN102004620B (en) Image updating method and device
CN101976183B (en) Method and device for updating images when simultaneously updating multi-window images
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
CN103886849B (en) Method and apparatus for aligning frame data
CN102117594B (en) Techniques for aligning frame data
CN100580764C (en) Screen synchronization control device
CN102272825B (en) Timing controller capable of switching between graphics processing units
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
JP2007060388A (en) Video processor, video processing method and program
US9019235B2 (en) Method of driving touch display and touch display capable of increasing signal-to-noise ratio
CN102929415A (en) Local monitor and mouse display synchronization method for local monitor and remote virtual machine
CN102426514A (en) Synchronous displaying method and device for large-screen spliced wall
CN115831032A (en) Chip temperature drift processing method and device
CN101453571A (en) Method and equipment for television image effect comparison
CN111796827B (en) Bullet screen drawing method, device, equipment and storage medium
CN103838533B (en) The synchronous method of figure signal and sync card in computer cluster splice displaying system
CN102207839B (en) Method and system for eliminating horizontal image tearing
CN112309311B (en) Display control method, device, display control card and computer readable medium
CN103186917A (en) Method and device of achieving view cartoon display
CN112637615B (en) Method and device for smooth display of intelligent tag in live broadcast scene
CN102184724B (en) Method and device for displaying images

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