Summary of the invention
The objective of the invention is to propose a kind of multiwindow frame method of flicker synchronously, the data interaction between reduction processor node and synchronization server, reduction are to the requirement of network, the practicality that improves system reliability and improve system.
The synchronous flickering method of a kind of multiwindow frame comprises step:
Preestablish frame and show time span and the hiding time span of frame;
The system time of synchronous each processor node;
Obtain the current system time of said each processor node;
Show time span and the hiding time span of said frame according to said current system time, said frame, judge whether the corresponding window border of each processor node shows at said current system time; If then show the window border that said each processor node is corresponding and return the said step of obtaining system time; If not, the window border that then hiding said each processor node is corresponding also returns the said step of obtaining system time.
Time span and the hiding time span of frame that the present invention shows through frame is set in each processor node in advance; Through the system time of synchronous each processor node of synchronization server, each processor node judges it is display bezel or hiding frame according to the time span of the frame demonstration of current system time, setting in advance and the time span that frame is hidden; In the present invention program, each processor node does not disturb mutually, compares with traditional scheme, has improved the practicality and the reliability of system, and the interaction amount of data is little in the present invention, less demanding to network.
The present invention also aims to propose a kind of multiwindow frame device of flicker synchronously, the data interaction between reduction processor node and synchronization server, reduction are to the requirement of network, the practicality that improves system reliability and improve system.
The synchronous flashing device of a kind of multiwindow frame comprises:
Initialization unit is used to preestablish frame and shows time span and the hiding time span of frame;
Lock unit is used for the system time of each processor node synchronously;
Acquiring unit obtains the current system time of said processor node;
Judging unit is used for showing time span and the hiding time span of said frame according to said current system time, said frame, judges whether the corresponding window border of each processor node shows at said current system time; If then notify the display unit display bezel and notify said acquiring unit to continue to obtain system time; If not, then notify the hiding frame of hidden unit and notify said acquiring unit to continue to obtain system time;
Said display unit is used to the frame that shows that said processor node is corresponding;
Said hidden unit is used for hiding the corresponding frame of said processor node.
The present invention is provided with time span and the hiding time span of frame that frame shows in advance through initialization unit; Through the system time of synchronous each processor node of lock unit, judging unit judges it is display bezel or hiding frame according to the time span of the frame demonstration of current system time, setting in advance and the time span that frame is hidden; If need to show, then the display unit display bezel is hidden as if needing, and then hidden unit is hidden frame; In the present invention program, each processor node does not disturb mutually, compares with traditional scheme, has improved the practicality and the reliability of system, and the interaction amount of data is little in the present invention, less demanding to network.
Embodiment
For ease of understanding the present invention, will combine accompanying drawing to set forth below.
At first introduce method of the present invention, please refer to Fig. 1, the synchronous flickering method of a kind of multiwindow frame comprises step:
101, initialization;
Preestablish each window border and show time span and the hiding time span of frame.
102, the synchro system time;
The system time of synchronous each processor node; Concrete, processor node can be computing machine.
103, obtain current system time;
Obtain the current system time of each processor node.
104, judge whether display bezel;
Current system time, frame according to each processor node show time span and the hiding time span of frame, judge whether the corresponding window border of each processor node shows at current system time; If then carry out step 105; If not, then carry out step 106.
105, display bezel;
Show the window border that each processor node is corresponding and return above-mentioned steps 102.
106, hide frame.
Hide the corresponding window border of each processor node and return above-mentioned steps 102.
Time span and the hiding time span of frame that the present invention shows through frame is set in each processor node in advance; Through the system time of synchronous each processor node of synchronization server, each processor node judges it is display bezel or hiding frame according to the time span of the frame demonstration of current system time, setting in advance and the time span that frame is hidden; In the present invention program, each processor node does not disturb mutually, compares with traditional scheme, has improved the practicality and the reliability of system, and the interaction amount of data is little in the present invention, less demanding to network.
As preferred embodiment a kind of, above-mentioned steps 104 is specially:
Show that according to frame time span and the hiding time span calculating of frame frame show the transformation period of hiding; Equal transformation period of show hiding frame show time span and frame hide time span and;
Obtain remainder the transformation period that the system time of each processor node is hidden divided by the frame demonstration;
Remainder and frame are shown contrast transformation period of hiding, show in the time span, then judge the frame that shows that when current system time each processor node is corresponding if remainder is in frame; If remainder is in frame and hides in the time span, then when system time, hide the corresponding frame of each processor node.
Preferably; Can be according to different application scenes or user's request; The hiding time span of the demonstration time span of window border and window border is arranged to the same long, perhaps, the demonstration time span of window border is longer than the hiding time span of window border; Perhaps, the demonstration time span of window border is than the hiding time span section of window border.
Concrete, in order to reach better flicker effect, in the time of can the hiding time span of the demonstration time span of window border and window border being arranged to the same growing; Please refer to Fig. 4; If one shows that hiding the change-over period is T, with 0 expression hide window frame, 1 expression display window frame; Like the demonstration time span of Fig. 4 its visibility window frame and the hiding time span of window border all is T/2; The current system time of the processor node that obtain this moment is 5T/4; Then 5T/4 is obtained remainder T/4 divided by T, comparison diagram 4 can know that remainder T/4 is in window border and hides in the time span; So when current system time 5T/4, the hide window frame.
When the demonstration time span that window border is set is longer than the hiding time span of window border, please refer to Fig. 5, establish one and show that hiding the change-over period is T, with 0 expression hide window frame, 1 expression display window frame; Demonstration time span like Fig. 5 its visibility window frame is 3T/4; The hiding time span of window border is T/4, and the current system time of the processor node that obtain this moment is 5T/2, and 5T/2 is obtained remainder T/2 divided by T; Comparison diagram 5 can be known; Remainder T/2 is in window border and hides in the time span, so when current system time 5T/2, the display window frame.
When the demonstration time span that window border is set than the hiding time span of window border in short-term, similar with Fig. 4 and Fig. 5 embodiment, repeat no more here.
In order to control the frame flicker flexibly synchronously, can do further improvement to above embodiment:
Before the step of the synchronous system time of each processor node, comprise step: trigger the SBR that processor node gets into the frame flicker;
After the step that shows the frame that each processor node is corresponding, comprise step: trigger processor node and finish the frame flicker;
Comprise step after the step of the frame that perhaps, hiding each processor node is corresponding: trigger processor node end frame and hide.
Preferably, above-mentioned triggering is for receiving outer triggering signal or satisfying the internal trigger that preset triggering conditions is carried out.
Because the crystal oscillator of each processor node is not quite similar; After synchronous a period of time of time, again may the generation time error, this just needs the system time to each processor node repeatedly to carry out synchronously; Based on this purpose, the foregoing description is done further improvement:
Be set the working time of each processor node system time operation synchronously in advance; If arrive working time, carry out the step of the system time of each processor node synchronously.
For the better variation of call user's attention window, can, window border send phonic warning simultaneously when glimmering.
Then introduce device of the present invention, please refer to Fig. 2, the synchronous flashing device of a kind of multiwindow frame comprises:
Initialization unit T1 is used to preestablish frame and shows time span and the hiding time span of frame;
Lock unit T2 is used for the system time of each processor node synchronously;
Acquiring unit T3 obtains the current system time of processor node;
Judging unit T4 is used for showing time span and the hiding time span of frame according to current system time, frame, judges whether the corresponding window border of each processor node shows at current system time; If then notify display unit T5 display bezel and notify acquiring unit T3 to continue to obtain system time; If not, then notify the hiding frame of hidden unit T6 and notify acquiring unit T3 to continue to obtain system time;
Display unit T5 is used for the corresponding frame of video-stream processor node;
Hidden unit T6 is used for hiding the corresponding frame of processor node.
The present invention is provided with time span and the hiding time span of frame that frame shows in advance through initialization unit; Through the system time of synchronous each processor node of lock unit, judging unit judges it is display bezel or hiding frame according to the time span of the frame demonstration of current system time, setting in advance and the time span that frame is hidden; If need to show, then the display unit display bezel is hidden as if needing, and then hidden unit is hidden frame; In the present invention program, each processor node does not disturb mutually, compares with traditional scheme, has improved the practicality and the reliability of system, and the interaction amount of data is little in the present invention, less demanding to network.
In order to control the operation of the synchronous flashing device of frame flexibly, can do further improvement to Fig. 2 embodiment, increase by three trigger elements, please refer to Fig. 3:
The first trigger element T7 is used to receive outer triggering signal and perhaps satisfies preset triggering conditions and carry out the system time synchronous operation that triggering synchronous unit T2 carries out each processor node;
The second trigger element T8 is used to receive outer triggering signal and perhaps satisfies preset triggering conditions and trigger the flicker of display unit T5 end frame;
The 3rd trigger element T9 is used to receive outer triggering signal and perhaps satisfies preset triggering conditions and trigger hidden unit T6 end frame hiding.
Preferably; Can be according to different application scenes or user's request; The hiding time span of the demonstration time span of window border and window border is arranged to the same long, perhaps, the demonstration time span of window border is longer than the hiding time span of window border; Perhaps, the demonstration time span of window border is than the hiding time span section of window border.
Particularly, the concrete operations of judging unit T4 are:
(A) show that according to frame time span and the hiding time span calculating of frame frame show the transformation period of hiding;
(B) system time of each processor node the transformation period of show hiding divided by frame obtains remainder;
(C) remainder and frame are shown contrast transformation period of hiding, show in the time span, then notify display unit T5 to show the window border that each processor node is corresponding if remainder is in frame; If remainder is in frame and hides in the time span, then notify hidden unit T6 to hide the corresponding window border of each processor node.
Because the crystal oscillator of each processor node is not quite similar; After synchronous a period of time of time, again may the generation time error, this just needs the system time to each processor node repeatedly to carry out synchronously; Based on this purpose, the foregoing description is done further improvement:
Initialization unit T1 also is used for being provided with in advance lock unit T2 and carries out the working time of each processor node system time operation synchronously;
Arrive working time, and then lock unit T2 carries out the operation of the system time of each processor node synchronously.
Introduce a concrete application examples of the present invention below, please refer to Fig. 6, comprise time server Q1, computing machine Q21, computing machine Q22 and computing machine Q23; 2 display windows of every computing machine coupling; Computing machine Q21 coupling display window Q31 and Q32; Computing machine Q22 coupling display window Q33 and Q34; Computing machine Q23 coupling display window Q35 and Q36; The demonstration time span of window border and the hiding time span of window border are set in each computing machine in advance; Start-up system after receiving trigger message; Unifiedly calculate the system time of machine Q21, computing machine Q22 and computing machine Q23 by time server Q1; Computing machine Q21, computing machine Q22 and computing machine Q23 obtain the current system time of oneself separately; According to current system time and the demonstration time span of the window border of presetting and the hiding time span of window border, judge it is display window frame or hide window frame then this moment.After display window is accomplished display bezel or is hidden frame, the operation that continues to obtain the current system time of computing machine, and carry out subsequent step, the work of ends with system after receiving the order that finishes flicker synchronously.
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.