Summary of the invention
The invention discloses a kind of signal Synchronization processing method, when the multiple signals splicing was shown, picture synchronization had improved visual effect.
The invention discloses a kind of signal Synchronization processing method, comprise step:
(1) corresponding signal collection passage in each road signal input picture processing server;
(2) each said signal sampling channel is with the signal of the input in the speed acquisition respective signal acquisition channel of first acquisition frame rate, and obtains the actual frame per second of each road input signal;
(3), judge then whether the view data of the present frame that each said signal sampling channel is gathered is the same with the previous frame view data of respective signal acquisition channel collection if the view data that each said signal sampling channel collects is not first frame image data; Said previous frame view data is the nearest frame image data of the view data with said present frame that shows through display;
(4) if the view data of the present frame that first signal sampling channel is gathered is the same with corresponding previous frame view data; The view data of the present frame that the secondary signal acquisition channel is gathered is different with corresponding previous frame view data; The view data of the present frame that perhaps whole said signal sampling channels are gathered is the same with corresponding previous frame view data; Then abandon the view data of the present frame of whole said signal sampling channels collections, return step (2);
(5) if the view data of the present frame that whole said signal sampling channels are gathered is all different with the view data of corresponding previous frame, then show the view data of the present frame of said whole signal sampling channel collections;
In (5), when the actual frame per second of said each road input signal is identical, and said actual frame per second is smaller or equal to said first acquisition frame rate in said step (3), just carries out the step of view data of the present frame on said each road that abandons collection; Inequality when the actual frame per second of said each road input signal, then show the view data of present frame of the collection of all signal sampling channels.
Among the present invention; First two field picture that each signal sampling channel is collected shows; And to the view data that first frame collects later on, in each acquisition channel, compare through display images displayed data with previous frame respectively, if the view data of 2 frames is identical before and after each passage; Then abandon back one two field picture, carry out the collection of next frame and the frame of view data and compare; If the view data through comparing each passage front and back 2 frame is all different, then show the view data that collects through display, through this comparative approach, make that picture synchronization had improved visual experience when the multiple signals splicing showed to Frame.
Embodiment
Of the present invention openly making when multiple signals splice the display image picture, picture synchronization has solved the slack problem of picture that occurs when traditional splicing shows, will combine accompanying drawing to set forth thought of the present invention below.With reference to figure 2,
101, multiple signals input signal acquisition channel;
Corresponding signal collection passage in each road signal input picture processing server.
102, signal sampling channel acquired signal;
Each signal sampling channel is with the signal of the input in the speed acquisition respective signal acquisition channel of first acquisition frame rate, and obtains the actual frame per second of each road input signal.
103 if not first two field picture;
If the view data that signal sampling channel collects is not first frame image data, then forward step 104 to.
104, whether the view data of 2 frames is all the same before and after each passage;
Whether the view data of judging the present frame that each signal sampling channel is gathered is the same with the previous frame view data of respective signal acquisition channel; The previous frame view data is the nearest frame image data of the view data with present frame that shows through display; If the view data of the present frame that first signal sampling channel is gathered is the same with corresponding previous frame view data; And the view data of the present frame that the secondary signal acquisition channel is gathered is different with corresponding previous frame view data; Perhaps all the view data of the present frame of signal sampling channel collection is the same with corresponding previous frame view data, then forwards step 105 to; If the view data of the present frame that each signal sampling channel is gathered is all different with the view data of corresponding previous frame, then forward step 106 to.
105, abandon back one frame image data;
Abandon the view data of the present frame of whole acquisition channels collections, return step 102.
106, the image that shows the present frame that collects.
Among the present invention; First two field picture that each signal sampling channel is collected shows; And to the view data that first frame collects later on, in each acquisition channel, compare through display images displayed data with previous frame respectively, if the view data of 2 frames is identical before and after each passage; Then abandon back one two field picture, carry out the collection of next frame and the frame of view data and compare; If the view data through comparing each passage front and back 2 frame is all different, then show the view data that collects through display, through this comparative approach, make that picture synchronization had improved visual experience when the multiple signals splicing showed to Frame.
Consider,, can do following improvement Fig. 2 embodiment if the too much view data that abandons can influence the display effect of the input picture of high frame per second:
Through the judgement of step 104, if continuous 2 frames, the view data of said first acquisition channel is different, and the view data of said second acquisition channel is the same, then shows the view data of present frame of the collection of all signal sampling channels.Because what can think first acquisition channel and the second acquisition channel collection this moment is not the view data of same signal source.
In addition,, improve the efficient that splicing shows, can Fig. 2 embodiment be done further to improve in order to accelerate the comparison speed of Frame:
The view data of the view data of the present frame that compares in the said step 104 and the previous frame of correspondence is the pixel in 2 width of cloth images of picked at random in present frame and corresponding previous frame.So only certain 2 width of cloth image just can be made judgement in 2 frames of need comparison front and back, and need all images of front and back 2 frames not compared.
Because the frame of 2 frame image datas relatively is to be directed against same signal source before and after carrying out; That is to say; Only need the image data frame in each signal sampling channel of gathering same signal source is compared, to reach the purpose of the same image frame of synchronous tiled demonstration.The actual frame per second of input signal is different, can think not to be same picture, therefore need not carry out frame relatively.Based on above-mentioned purpose, but the foregoing description is done following the improvement:
In said step 104, if the actual frame per second of each road input signal is identical, and actual frame per second is smaller or equal to said first acquisition frame rate, just abandons the step of view data of present frame on each road of collection;
If the actual frame per second of said each road input signal is inequality, then show the view data of present frame of the collection of all signal sampling channels.
After step 102, also comprise:, then show through display if the view data that signal sampling channel collects is first frame image data.
Signal sampling channel is under the resolution of 1920*1200, and high energy is gathered (acquisition time is spaced apart 16ms) with the speed of 60 frame per seconds, and in embodiments of the present invention, just being used as its acquisition rate with this speed is the first above-mentioned acquisition frame rate.
Introduce Synchronous Processing process of the present invention below, at first introduce, identical and should actual frame per second equal the situation of first acquisition frame rate when the actual frame per second of each road input signal, for convenient explanation is example at this with 2 acquisition channels, with reference to figure 3,
2 kinds of signals are arranged: signal 1 and signal 2 (signal 1 and 2 belongs to a signal source); The actual frame per second of 2 kinds of signals equates and is identical with first acquisition frame rate that the data of 2 kinds of signals are sent into signal sampling channel 1 and 2 (being Rgb1 and Rgb2) respectively, and the time interval of signals collecting is 16ms; In Rgb1, Rgb2 gatherer process; At 0ms constantly, what Rgb1 gathered is first two field picture of signal 1, and what Rgb2 gathered is first two field picture of signal 2; Need not carry out view data relatively, show through display; The view data that Rgb1 collects at 16ms constantly is signal 1 Frame 2, and the view data of gathering constantly with 0ms compares, and 2 frame data are different; The view data that Rgb2 collects at 16ms constantly is signal 2 Frames 2, and the view data of gathering constantly with 0ms compares, and 2 frame data are different, then show 2 kinds of view data that signal sampling channel collects at 16ms through display; The view data that Rgb1 collects at 32ms constantly is signal 1 Frame 3, and the view data of gathering constantly with 16ms compares, and 2 frame data are different; The view data that Rgb2 collects at 32ms constantly is signal 2 Frames 3, and the view data of gathering constantly with 16ms compares, and 2 frame data are different; Then show 2 kinds of view data that signal sampling channel collects at 32ms through display; The view data that Rgb1 collects at 48ms constantly is signal 1 Frame 4, and the view data of gathering constantly with 32ms compares, and 2 frame data are different; Rgb2 still is signal 2 Frames 3 in the view data that 48ms collects constantly, and the view data of gathering constantly with 32ms compares, and 2 frame data are the same; Because the view data that Rgb2 gathers at this moment is the same with previous frame; Then view data is carried out Synchronous Processing; Abandon the data that 2 signal sampling channels this time collect, promptly be discarded in 48ms constantly, signal 2 Frames 3 that signal 1 Frame 4 and the Rgb2 that Rgb1 collects collects; The view data that Rgb1 collects at 64ms constantly is signal 1 Frame 5; The view data of gathering constantly with 32ms compares (for signal 1 Frame 5 of Rgb1 in the 64ms collection; Corresponding previous frame is signal 1 Frame of gathering at 32ms 3), 2 frame data are different; The view data that Rgb2 collects at 64ms constantly is signal 2 Frames 5; The view data of gathering constantly with 32ms compares (for signal 2 Frames 5 of Rgb2 in the 64ms collection; Corresponding previous frame is signal 2 Frames of gathering at 32ms 3), 2 frame data are different; The view data of 2 signal sampling channel collections is all different, then shows the view data that 64ms gathers through display.In above Synchronous Processing process, only abandoned the Frame 4 of signal, for the picture of continuous broadcast, abandoning a spot of Frame can not influence visual effect, has reached the purpose of synchronizing picture.
It is the same to introduce the actual frame per second of each input signal below, but actual frame per second is less than the situation of acquisition frame rate, with reference to figure 4,
Be example with 2 signal sampling channels equally; Signal 1 and 2 is the signals that have a signal source to branch away; Actual frame per second when signal 1 is imported with signal 2 is consistent, and the view data that Rgb1 and Rgb2 gather at 0ms constantly is first frame of signal, shows through display; At 16ms constantly; What Rgb1 gathered is signal 1 Frame 1, with previous frame relatively be same data, what Rgb2 gathered is signal 2 Frames 1; With the data of previous frame more also is the same, so Rgb1 and Rgb2 abandon the view data of gathering constantly at 16ms; Rgb1 is the same in the view data that 32ms and 48ms gather constantly with Rgb2; Through being discarded in the view data that 48ms gathers constantly after the Synchronous Processing ... In such cases; Though the frame number that abandons is more; But, can't influence the continuity that image shows like this because the actual frame per second of input signal, makes that almost the data of each frame all have demonstration less than the picking rate of acquisition channel acquired signal.
Like Fig. 5, the actual frame per second of signal 1, signal 2 and signal 3 is different, can think that then these three kinds of signals do not belong to same signal source; Need not make Synchronous Processing; Through after the signals collecting, directly on display, show, the phenomenon that frame staggers and causes picture to be torn can not appear.
Above-described embodiment of the present invention does not constitute the qualification to protection range 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 range of the present invention.