CN104168487A - Video signal frame synchronization method and device - Google Patents

Video signal frame synchronization method and device Download PDF

Info

Publication number
CN104168487A
CN104168487A CN201410406902.5A CN201410406902A CN104168487A CN 104168487 A CN104168487 A CN 104168487A CN 201410406902 A CN201410406902 A CN 201410406902A CN 104168487 A CN104168487 A CN 104168487A
Authority
CN
China
Prior art keywords
video signal
frame
new video
new
signal
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
CN201410406902.5A
Other languages
Chinese (zh)
Other versions
CN104168487B (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.)
Zhejiang University ZJU
Original Assignee
Zhejiang University ZJU
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 Zhejiang University ZJU filed Critical Zhejiang University ZJU
Priority to CN201410406902.5A priority Critical patent/CN104168487B/en
Publication of CN104168487A publication Critical patent/CN104168487A/en
Application granted granted Critical
Publication of CN104168487B publication Critical patent/CN104168487B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Television Systems (AREA)

Abstract

The invention discloses a video signal frame synchronization method and device. The method comprises the steps that (1) original video signals are collected, and various frame image pixel data are cached; (2) the cached original video various frame image pixel data are read and processed, and new video signals are generated; (3) computing is carried out in frame cycles, of the original video signals and the new video signals, where the same clock signals are placed; (4) frame cycle difference of the original video signals and the new video signals is obtained by computing; and (5) each row of blanking time of the new video signals is subjected to fine tuning, so that a new video signal frame cycle is identical to an original video signal frame cycle. The invention further discloses the video signal frame synchronization device. Under the situation that an original video caching method and a cache number are not changed, the frame cycles of the new video signals and the original video signals are subjected to synchronization, the phenomena such as new video signal image isolating, frame skipping and blocking are avoided, and the fact that various frame image quality of the new video signals is not damaged is guaranteed.

Description

A kind of vision signal frame synchornization method and device thereof
Technical field
The present invention relates to video signal processing field, be specifically related to a kind of vision signal frame synchornization method and device thereof.
Background technology
Generally speaking, vision signal is made up of the some frame pictures that transmit continuously, and every frame picture is made up of the pixel of the some row of several rows.Transmission time at every frame picture is called the frame period, and the transmission time of each pixel is called pixel period.
Display is to realize by the form of scanning to the demonstration of video pictures, scanning always from the upper left corner of picture, horizontal forward advancing.In the time that scanning element arrives picture right side edge, scanning element fast return left side, restarts to carry out next line scanning below the starting point of previous row, and the return course between row and row is called horizontal blanking.Scanning element has scanned after a frame picture, turn back to from the lower right corner of picture the upper left corner of picture, starts the scanning of a new frame, and this time interval is called field blanking.
Vision signal comprises colouring information, pixel clock, field sync signal (VSYNC signal) and the line synchronizing signal (HSYNC signal) etc. of each pixel conventionally.The transmitting synchronous of pixel clock and pixel, its cycle equals pixel period.Field sync signal appears at vertical blanking period, is the border of each frame, for the beginning of mark one frame picture; Line synchronizing signal appears at row latent period, is the border of each row, for indicating the beginning of one-row pixels.
In video signal processing field, often need to gather frame by frame and process a road raw video signal, and then generate a road new video signal, each frame picture of new video signal and raw video signal all has one-to-one relationship.When new video signal and raw video signal have different resolution, or the pixel clock signal that new video signal adopts and the not homology of pixel clock signal of raw video signal, new video signal often cannot be accomplished accurately consistent with the frame period of raw video signal.Because raw video signal and new video signal are all to transmit continuously frame by frame, along with the increase in transmission time, the frame period missionary society between raw video signal and new video signal progressively accumulates, and produces increasing frame mismatch.In order to improve the efficiency of Video processing, ping-pong buffer is usually used in the processing of vision signal.The method adopts two groups of memories alternately to store each frame picture of original video, every group of original video picture that memory stores one frame is complete, when storage stack deposits original video frame picture in therein, read deposited original video data from another storage stack and process.In the time adopting ping-pong buffer to process between raw video signal and new video signal, if raw video signal is different with the frame period between new video signal, along with poor progressively accumulation of frame period, very possible situation about occurring is, for a certain frame picture of new video signal, the each pixel of its picture derives from respectively the different picture of front and back two frames of raw video signal, cause this frame picture of new video signal to show the partial content in two frame original video pictures simultaneously, cannot mate, produce the serious sense of isolating, video pictures compromised quality.If adopt more buffer memory, as three groups of buffers, successively each frame data of original video data are carried out to buffer memory in order, like this read operation of original video is just had to larger argin, read or repeat to read each pixel in any frame picture that the measures such as present frame can make new video signal by frame-skipping and all derive from corresponding a certain frame picture in original video, eliminate the sense of isolating of the each frame picture of new video signal with this, but due to the poor still existence of frame period of constantly accumulation, the method that frame-skipping reads or repeat to read present frame can cause new video picture to occur the phenomenon of frame-skipping or card, video pictures quality is also impaired.Frame period stationary problem between vision signal more highlights.
Summary of the invention
The object of the invention is to overcome the deficiency of above-mentioned existing scheme, a kind of vision signal frame synchornization method and device thereof are provided, the frame period of the method energy precise synchronization different video signal, the quality that can not lose video pictures simultaneously.
A kind of vision signal frame synchornization method, comprises the steps:
(1) gather raw video signal, its each frame picture pixel data of buffer memory;
(2) read and process the each frame picture pixel of the original video data of buffer memory, generate new video signal;
(3) utilize same clock signal within a frame period of raw video signal and new video signal, to count respectively;
(4) calculate frame period of raw video signal and new video signal poor;
(5) each horizontal blanking interval of new video signal is finely tuned, make the new video signal frame cycle consistent with the raw video signal frame period.
Above-mentioned steps (1)-(5) are cycled to repeat execution.
As preferably, described step (3) utilizes the pixel clock signal of new video signal within a frame period of raw video signal and new video signal, to count respectively.
As preferably, in described step (5), be the pixel clock cycle (T) of M new video signal by the frame period differential conversion of raw video signal and new video signal, M is rational, after M is rounded, be denoted as N, the total line number H with N divided by the every frame of new video signal, obtains integer quotient S and remainder R.If the raw video signal frame period is greater than the new video signal frame cycle, the blanking time that before each new video signal frame picture, R is capable is increased to (S+1) individual pixel clock cycle, the blanking time of all the other each row increases S pixel clock cycle.If the raw video signal frame period is less than the new video signal frame cycle, the blanking time that before each new video signal frame picture, R is capable is reduced to (S+1) individual pixel clock cycle, the blanking time of all the other each row reduces by S pixel clock cycle.
The present invention also provides a kind of vision signal frame-synchronizing device, comprises following part:
Video acquisition module, for gathering raw video signal, and its each frame picture pixel data of buffer memory;
Video processing module, for reading and process the each frame picture pixel of the original video data of buffer memory;
New video generation module, for generating new video signal;
Frame period comparison module, poor for calculating frame period of raw video signal and new video signal.
Video acquisition module is connected with video processing module; Video processing module is connected with new video generation module with video acquisition module; New video generation module is connected with frame period comparison module with video processing module; Frame period comparison module is connected and is connected with new video generation module.
Compared with prior art, the present invention can be in the situation that not changing original video caching method and buffer quantity, realize the frame period precise synchronization of new video signal and raw video signal, make each frame picture of new video signal and each frame picture of raw video signal forever keep corresponding one by one, phenomenon occurs to have avoided that new video signal picture isolates, frame-skipping, card are paused etc., has ensured that the each frame image quality of new video signal is all harmless.
Brief description of the drawings
Fig. 1 is video frame synchronization method flow schematic diagram of the present invention;
Fig. 2 is video frame synchronization apparatus structure schematic diagram of the present invention.
Embodiment
Below in conjunction with embodiment and accompanying drawing, the present invention is described in further detail, but embodiments of the present invention are not limited only to this.
The video frame synchronization method flow of the present embodiment as shown in Figure 1, can utilize the video frame synchronization device based on as shown in Figure 2 to realize.
In the present embodiment, raw video signal resolution is 1024 × 768, the each frame picture of raw video signal is carried out to interpolation amplification processing, obtain resolution and be 1920 × 1080 new video signal, new video signal adopts the clock signal of independent crystal oscillator output as its pixel clock signal, and the cycle of the clock signal of crystal oscillator output has an error allowed band thereby cannot be accurately perfect.Therefore raw video signal has the pixel clock signal of different resolution and non-homology from new video signal, if do not carry out frame synchronization process, the frame period of the two most probably can be accurately not consistent.
The video frame synchronization method of the present embodiment, as shown in Figure 1, comprises following 5 steps.
(1) gather raw video signal, its each frame picture pixel data of buffer memory.
Video acquisition module Real-time Collection raw video signal, and by ping-pong buffer method its each frame picture pixel data of buffer memory one by one.
(2) read and process the each frame picture pixel of the original video data of buffer memory, generate new video signal.
Video processing module reads the each frame picture pixel of the original video data of buffer memory, by interpolation computing method, original video picture is amplified to processing, obtain the pixel data of the each frame picture of new video, transfer to new video generation module, new video generation module by the pixel data output of each new video frame picture, generates new video signal according to certain sequential rule.
(3) utilize same clock signal within a frame period of raw video signal and new video signal, to count respectively.
Frame period comparison module gathers respectively the field sync signal of raw video signal and new video signal, identify the original position of both each frames, utilize the pixel clock signal of new video signal within a frame period of raw video signal and new video signal, to count respectively, be designated as respectively a and b.A and b are integer.
(4) calculate frame period of raw video signal and new video signal poor.
According to the count results obtaining in step (3), the pixel clock cycle of new video signal is T, and the frame period of raw video signal and new video signal is approximately respectively a × T and b × T.Frame period comparison module compares the frame period size of raw video signal and new video signal, calculates the poor M × T of frame period of raw video signal and new video signal.
(5) each horizontal blanking interval of new video signal is finely tuned, make the new video signal frame cycle consistent with the raw video signal frame period.
Frame period of the raw video signal that frame period comparison module calculates and new video signal is poor is M × T, and it is N that M is rounded to postscript, and because a and b are integer, and M should be a and the poor absolute value of b, is also integer, and therefore N equals M here.The result of calculation of new video generation module received frame cycle comparison module, it is N that M is rounded to postscript, the total line number H with N divided by the every frame of new video signal, obtains integer quotient S and remainder R.If the raw video signal frame period be greater than the new video signal frame cycle (be a > b), the blanking time that before each new video signal frame picture, R is capable is increased to (S+1) individual pixel clock cycle, the blanking time of all the other each row increases S pixel clock cycle.If it (is that a≤b),, by minimizing (S+1) individual pixel clock cycle blanking time that before each new video signal frame picture, R is capable, the blanking time of all the other each row reduces by S pixel clock cycle that the raw video signal frame period is less than or equal to the new video signal frame cycle.The size of adjusted (increase or reduce) of per frame period of new video signal is:
After above-mentioned processing, the new video signal frame cycle has reached accurately consistent substantially with the raw video signal frame period.
Due in the processing of each step all taking new video pixel clock cycle T as unit, therefore, through the difference in above-mentioned new video signal frame cycle after treatment and raw video signal frame period within a new video pixel clock cycle.
In video processing procedure, be constantly cycled to repeat and carry out above-mentioned steps (1)-(5), can eliminate the poor accumulation of frame period that a variety of causes causes, to realize the frame period real-time synchronization of new video signal and raw video signal.
Above-described embodiment is preferably execution mode of the present invention; but embodiments of the present invention are not limited by the examples; other any do not deviate from change, the modification done under Spirit Essence of the present invention and principle, substitutes, combination, simplify; all should be equivalent substitute mode, within being included in protection scope of the present invention.

Claims (6)

1. a vision signal frame synchornization method, is characterized in that, comprises the steps:
(1) gather raw video signal, its each frame picture pixel data of buffer memory;
(2) read and process the each frame picture pixel of the original video data of buffer memory, generate new video signal;
(3) utilize same clock signal within a frame period of raw video signal and new video signal, to count respectively;
(4) calculate frame period of raw video signal and new video signal poor;
(5) each horizontal blanking interval of new video signal is finely tuned, make the new video signal frame cycle consistent with the raw video signal frame period.
2. vision signal frame synchornization method as claimed in claim 1, is characterized in that, described each step (1)-(5) are cycled to repeat execution.
3. vision signal frame synchornization method as claimed in claim 1, is characterized in that, described step (3) utilizes the pixel clock signal of new video signal within a frame period of raw video signal and new video signal, to count respectively.
4. vision signal frame synchornization method as claimed in claim 1, it is characterized in that, in described step (5), it is the pixel clock cycle T of M new video signal by the frame period differential conversion of raw video signal and new video signal, M is rational, after M is rounded, be denoted as N, the total line number H with N divided by the every frame of new video signal, obtains integer quotient S and remainder R; If the raw video signal frame period is greater than the new video signal frame cycle, the blanking time that before each new video signal frame picture, R is capable is increased to S+1 pixel clock cycle, the blanking time of all the other each row increases S pixel clock cycle, if the raw video signal frame period is less than the new video signal frame cycle, the blanking time that before each new video signal frame picture, R is capable is reduced to S+1 pixel clock cycle, the blanking time of all the other each row reduces by S pixel clock cycle.
5. a vision signal frame-synchronizing device, is characterized in that, comprises following part:
Video acquisition module, for gathering raw video signal, and its each frame picture pixel data of buffer memory;
Video processing module, for reading and process the each frame picture pixel of the original video data of buffer memory;
New video generation module, for generating new video signal;
Frame period comparison module, poor for calculating frame period of raw video signal and new video signal.
6. vision signal frame-synchronizing device as claimed in claim 5, is characterized in that, described video acquisition module is connected with video processing module; Video processing module is connected with new video generation module with video acquisition module; New video generation module is connected with frame period comparison module with video processing module, and frame period comparison module is connected and is connected with new video generation module.
CN201410406902.5A 2014-08-19 2014-08-19 A kind of vision signal frame synchornization method and its device Active CN104168487B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410406902.5A CN104168487B (en) 2014-08-19 2014-08-19 A kind of vision signal frame synchornization method and its device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410406902.5A CN104168487B (en) 2014-08-19 2014-08-19 A kind of vision signal frame synchornization method and its device

Publications (2)

Publication Number Publication Date
CN104168487A true CN104168487A (en) 2014-11-26
CN104168487B CN104168487B (en) 2017-12-15

Family

ID=51912089

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410406902.5A Active CN104168487B (en) 2014-08-19 2014-08-19 A kind of vision signal frame synchornization method and its device

Country Status (1)

Country Link
CN (1) CN104168487B (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107220019A (en) * 2017-05-15 2017-09-29 努比亚技术有限公司 A kind of rendering intent, mobile terminal and storage medium based on dynamic VSYNC signals
CN108140251A (en) * 2015-10-23 2018-06-08 微软技术许可有限责任公司 Video cycle generation
CN111327789A (en) * 2020-03-05 2020-06-23 珠海亿智电子科技有限公司 Display signal synchronization method and conversion device
CN111669635A (en) * 2020-06-15 2020-09-15 武汉精立电子技术有限公司 Clock transmission and recovery method and device based on video interface
CN111681623A (en) * 2020-06-09 2020-09-18 Tcl华星光电技术有限公司 Time schedule controller, method for generating inter-frame mark of time schedule controller and display device
CN112422888A (en) * 2019-08-23 2021-02-26 浙江宇视科技有限公司 Video splicing method and device, electronic equipment and computer readable storage medium
CN113119866A (en) * 2021-05-12 2021-07-16 中国第一汽车股份有限公司 Rearview mirror display method and device based on streaming media
CN113810645A (en) * 2021-11-16 2021-12-17 北京数字小鸟科技有限公司 System, method and equipment for transmitting custom data of video blanking area
CN116193044A (en) * 2023-04-28 2023-05-30 深圳市微智体技术有限公司 Method, device, equipment and medium for synchronously displaying multiple image frames

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0619678B1 (en) * 1993-04-05 2001-05-23 Canon Kabushiki Kaisha Image processing apparatus
CN101577618A (en) * 2008-05-07 2009-11-11 佳能株式会社 Transmission apparatus and method
CN102170345A (en) * 2011-04-27 2011-08-31 浙江大华技术股份有限公司 High definition camera self-adaption digitization external synchronization method
CN103475691A (en) * 2013-07-03 2013-12-25 广东迅通科技股份有限公司 Video distributed cache transfer system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0619678B1 (en) * 1993-04-05 2001-05-23 Canon Kabushiki Kaisha Image processing apparatus
CN101577618A (en) * 2008-05-07 2009-11-11 佳能株式会社 Transmission apparatus and method
CN102170345A (en) * 2011-04-27 2011-08-31 浙江大华技术股份有限公司 High definition camera self-adaption digitization external synchronization method
CN103475691A (en) * 2013-07-03 2013-12-25 广东迅通科技股份有限公司 Video distributed cache transfer system

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108140251A (en) * 2015-10-23 2018-06-08 微软技术许可有限责任公司 Video cycle generation
CN107220019A (en) * 2017-05-15 2017-09-29 努比亚技术有限公司 A kind of rendering intent, mobile terminal and storage medium based on dynamic VSYNC signals
CN107220019B (en) * 2017-05-15 2021-01-08 固安县朔程燃气有限公司 Rendering method based on dynamic VSYNC signal, mobile terminal and storage medium
CN112422888B (en) * 2019-08-23 2022-07-19 浙江宇视科技有限公司 Video splicing method and device, electronic equipment and computer readable storage medium
CN112422888A (en) * 2019-08-23 2021-02-26 浙江宇视科技有限公司 Video splicing method and device, electronic equipment and computer readable storage medium
CN111327789A (en) * 2020-03-05 2020-06-23 珠海亿智电子科技有限公司 Display signal synchronization method and conversion device
CN111327789B (en) * 2020-03-05 2022-04-26 珠海亿智电子科技有限公司 Display signal synchronous conversion device
CN111681623B (en) * 2020-06-09 2022-04-08 Tcl华星光电技术有限公司 Time schedule controller, method for generating inter-frame mark of time schedule controller and display device
CN111681623A (en) * 2020-06-09 2020-09-18 Tcl华星光电技术有限公司 Time schedule controller, method for generating inter-frame mark of time schedule controller and display device
CN111669635B (en) * 2020-06-15 2022-04-29 武汉精立电子技术有限公司 Clock transmission and recovery method and device based on video interface
CN111669635A (en) * 2020-06-15 2020-09-15 武汉精立电子技术有限公司 Clock transmission and recovery method and device based on video interface
CN113119866A (en) * 2021-05-12 2021-07-16 中国第一汽车股份有限公司 Rearview mirror display method and device based on streaming media
CN113810645A (en) * 2021-11-16 2021-12-17 北京数字小鸟科技有限公司 System, method and equipment for transmitting custom data of video blanking area
CN116193044A (en) * 2023-04-28 2023-05-30 深圳市微智体技术有限公司 Method, device, equipment and medium for synchronously displaying multiple image frames
CN116193044B (en) * 2023-04-28 2023-08-15 深圳市微智体技术有限公司 Method, device, equipment and medium for synchronously displaying multiple image frames

Also Published As

Publication number Publication date
CN104168487B (en) 2017-12-15

Similar Documents

Publication Publication Date Title
CN104168487A (en) Video signal frame synchronization method and device
CN105721818B (en) A kind of signal conversion method and device
CN102905056B (en) Method of video image processing and device
CN103647918A (en) Video synchronization method and device
CN103595924B (en) A kind of image fusion system based on Cameralink and method thereof
JP2015001549A (en) Signal output apparatus, signal output method, and image display apparatus
CN102871637B (en) Electronic endoscope apparatus
CN103248797A (en) Video resolution enhancing method and module based on FPGA (field programmable gate array)
CN106973248A (en) Merge comparator A/D converter to reduce the method and system of noise in imaging sensor using parallel many oblique waves
CN103475894B (en) A kind of 3D laparoscope method for processing video frequency
CN107277295B (en) Audio video synchronization processing unit and method
CN104363383A (en) Image pre-distortion correction method and device
TW201428675A (en) Video generating system and related method thereof
CN104717444A (en) Method of automatically converting video of multiple formats to VESA (Video Electronics Standards Association)-protocol 1920*1440-resolution 75Hz-frame rate video
CN106937063A (en) Method and system for reducing the analog/digital conversion time of dark signal
JP6601020B2 (en) Imaging display device
CN103024430A (en) Control display method and system for simulating red, green and blue (RGB) signal
CN109410894B (en) Method and module for generating differential output signal and display device
CN105430237A (en) Frame missing image processing method and system
CN106534839A (en) High-definition camera video processing system and method
CN103581601A (en) Split screen scanning method for UHD signal sampling and displaying
CN103702073A (en) Integrated camera circuit for synchronization imaging of multi-split imaging sensors
CN107241302A (en) Image data transfer method, device and terminal
CN102769717B (en) Image processing method and device
CN109618074A (en) A kind of Robust Design method to nonstandard input vesa timing

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant