CN104168487B - A kind of vision signal frame synchornization method and its device - Google Patents
A kind of vision signal frame synchornization method and its device Download PDFInfo
- Publication number
- CN104168487B CN104168487B CN201410406902.5A CN201410406902A CN104168487B CN 104168487 B CN104168487 B CN 104168487B CN 201410406902 A CN201410406902 A CN 201410406902A CN 104168487 B CN104168487 B CN 104168487B
- Authority
- CN
- China
- Prior art keywords
- video signal
- frame
- new video
- frame period
- 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.)
- Active
Links
Abstract
The invention discloses a kind of vision signal frame synchornization method and its device, comprise the following steps:(1)Raw video signal is gathered, caches its each frame picture pixel data;(2)Read and handle each frame picture pixel data of original video of caching, generate new video signal;(3)Counted respectively within a frame period of raw video signal and new video signal using same clock signal;(4)The frame period that raw video signal and new video signal is calculated is poor;(5)New video signal each horizontal blanking interval is finely adjusted so that the new video signal frame period is consistent with the raw video signal frame period.The invention also discloses a kind of vision signal frame-synchronizing device.The present invention is not in the case where changing original video caching method and buffer quantity, by new video signal and the frame period precise synchronization of raw video signal, avoid new video signal picture isolate, frame-skipping, interim card phenomena such as occur, ensure that each frame image quality of new video signal is lossless.
Description
Technical field
The present invention relates to video signal processing field, and in particular to a kind of vision signal frame synchornization method and its device.
Background technology
In general, vision signal is made up of some frame pictures continuously transmitted, per frame picture by some row several columns
Pixel composition.It is referred to as the frame period in the transmission time of every frame picture, the transmission time of each pixel is referred to as pixel period.
Display of the display to video pictures is realized by the form of scanning, and scanning is always opened from the upper left corner of picture
Begin, horizontal forward traveling.When scanning element reaches picture right side edge, scanning element quickly returns to left side, restarts previous
Next line scanning is carried out below capable starting point, the return course between row and row is referred to as horizontal blanking.Scanning element scans through a frame
After picture, the upper left corner of picture is returned to from the lower right corner of picture, starts the scanning of a new frame, this time interval is referred to as field
Blanking.
Vision signal generally comprises the colouring information, pixel clock, field sync signal of each pixel(VSYNC signals)And row
Synchronizing signal(HSYNC signals)Deng.Pixel clock is synchronous with the transmission of pixel, and its cycle is equal to pixel period.Field synchronization is believed
Number vertical blanking period is appeared in, be the border of each frame, the beginning for mark one frame picture;Line synchronising signal appears in horizontal blanking
Phase, it is the border of each row, for indicating the beginning of one-row pixels.
In video signal processing field, it is often necessary to gather frame by frame and handle raw video signal all the way, and then generate one
Each frame picture of road new video signal, new video signal and raw video signal is respectively provided with one-to-one relationship.When new video is believed
Number there are different resolution ratio from raw video signal, or the pixel clock signal that new video signal uses is believed with original video
Number pixel clock signal it is not homologous, frame period of new video signal and raw video signal can not often accomplish accurate consistent.
Because raw video signal and new video signal are all to continuously transmit frame by frame, with the increase of transmission time, raw video signal
Frame period difference between new video signal can be accumulated progressively, produce increasing frame mismatch.In order to improve the effect of Video processing
Rate, ping-pong buffer are usually used in the processing of vision signal.Each frame that the method alternately stores original video using two groups of memories is drawn
Face, every group of complete original video frame of the frame of memory storage one, wherein during storage stack deposit original video frame picture,
Deposited original video data is read from another storage stack to be handled.Adopted when between raw video signal and new video signal
When being handled with ping-pong buffer, if the frame period between raw video signal and new video signal is different, as frame period difference is progressively accumulated
It is tired, it is more likely that the situation of appearance is that, for a certain frame picture of new video signal, each pixel of its picture is respectively derived from original
The different picture of front and rear two frame of vision signal, cause this frame picture of new video signal while show that two frame original videos are drawn
It partial content in face, can not match, produce serious sense of isolating, video pictures compromised quality.Cached according to more, such as
Three groups of buffers, each frame data of original video data are cached successively in order, the reading behaviour so to original video
Bigger argin is there has been, the measures such as reading present frame are read or repeated by frame-skipping can new video signal
Any one frame picture in each pixel derive from original video corresponding a certain frame picture, new video signal is eliminated with this
Each frame picture isolates sense, but because the frame period difference constantly accumulated still is present, frame-skipping reads or repeated to read present frame
Method new video picture can be caused the phenomenon of frame-skipping or interim card occur, video pictures quality is also damaged.Between vision signal
Frame period stationary problem more highlights.
The content of the invention
It is an object of the invention to overcome the shortcomings of above-mentioned existing scheme, there is provided a kind of vision signal frame synchornization method and its
Device, the frame period of this method energy precise synchronization different video signal, while the quality of video pictures will not be lost.
A kind of vision signal frame synchornization method, comprises the following steps:
(1)Raw video signal is gathered, caches its each frame picture pixel data;
(2)Read and handle each frame picture pixel data of original video of caching, generate new video signal;
(3)Counted respectively within a frame period of raw video signal and new video signal using same clock signal
Number;
(4)The frame period that raw video signal and new video signal is calculated is poor;
(5)New video signal each horizontal blanking interval is finely adjusted so that the new video signal frame period believes with original video
Number frame period is consistent.
Above-mentioned steps(1)—(5)Circulating repetition performs.
Preferably, the step(3)Using new video signal pixel clock signal respectively in raw video signal and
Counted in one frame period of new video signal.
Preferably, the step(5)In, it is M by the frame period differential conversion of raw video signal and new video signal
The pixel clock period of new video signal(T), M is rational, and N is denoted as after being rounded to M, with N divided by new video signal per frame
Total line number H, obtains integer quotient S and remainder R.If the raw video signal frame period is more than the new video signal frame period, will newly regard
The blanking time increase of R rows before each frame picture of frequency signal(S+1)Individual pixel clock period, the blanking time increase S of remaining each row
Individual pixel clock period.If the raw video signal frame period is less than the new video signal frame period, each frame of new video signal is drawn
The blanking time of R rows is reduced in front(S+1)Individual pixel clock period, the blanking time of remaining each row reduce by S pixel clock week
Phase.
Present invention also offers a kind of vision signal frame-synchronizing device, including such as lower part:
Video acquisition module, for gathering raw video signal, and cache its each frame picture pixel data;
Video processing module, each frame picture pixel data of original video for reading and handling caching;
New video generation module, for generating new video signal;
Frame period comparison module, the frame period for calculating raw video signal and new video signal are poor.
Video acquisition module is connected with video processing module;Video processing module generates with video acquisition module and new video
Module is connected;New video generation module is connected with video processing module and frame period comparison module;Frame period comparison module is connected
It is connected with new video generation module.
Compared with prior art, the present invention can not change the situation of original video caching method and buffer quantity
Under, realize the frame period precise synchronization by new video signal and raw video signal so that each frame picture of new video signal with
Each frame picture of raw video signal keeps corresponding forever, avoid new video signal picture isolate, frame-skipping, interim card etc. it is existing
As occurring, it ensure that each frame image quality of new video signal is lossless.
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
With reference to embodiment and accompanying drawing, the present invention is described in further detail, but embodiments of the present invention are not
It is only limitted to this.
The video frame synchronization method flow of the present embodiment is as shown in figure 1, can utilize same based on frame of video as shown in Figure 2
Device is walked to realize.
In the present embodiment, raw video signal resolution ratio is 1024 × 768, and each frame picture of raw video signal is carried out
Interpolation amplification processing, the new video signal that resolution ratio is 1920 × 1080 is obtained, new video signal is using independent crystal oscillator output
Clock signal as its pixel clock signal, cycle of the clock signal of crystal oscillator output have an error allowed band thus nothing
Method is perfect accurate.Therefore raw video signal from new video signal there is different resolution ratio and not homologous pixel clock to believe
Number, if without frame synchronization process, the frame period of the two most probably will not be accurately consistent.
The video frame synchronization method of the present embodiment, as shown in figure 1, including following 5 steps.
(1)Raw video signal is gathered, caches its each frame picture pixel data.
Video acquisition module gathers raw video signal in real time, and caches its each frame picture photo one by one with ping-pong buffer method
Prime number evidence.
(2)Read and handle each frame picture pixel data of original video of caching, generate new video signal.
Video processing module reads each frame picture pixel data of original video of caching, by interpolation computing method to original
Video pictures are amplified processing, obtain the pixel data of each frame picture of new video, transmit to new video generation module, new video
Generation module exports the pixel data of each frame picture of new video according to certain timing planning, generates new video signal.
(3)Counted respectively within a frame period of raw video signal and new video signal using same clock signal
Number.
It is each that frame period comparison module gathers both field sync signals of raw video signal and new video signal, identification respectively
The original position of frame, using the pixel clock signal of new video signal respectively at one of raw video signal and new video signal
Counted in frame period, be designated as a and b respectively.A and b is integer.
(4)The frame period that raw video signal and new video signal is calculated is poor.
According to step(3)In obtained count results, the pixel clock period of new video signal is T, raw video signal
Frame period with new video signal is approximately a × T and b × T respectively.Frame period comparison module compares raw video signal and newly regarded
The frame period size of frequency signal, frame period difference M × T of raw video signal and new video signal is calculated.
(5)New video signal each horizontal blanking interval is finely adjusted so that the new video signal frame period believes with original video
Number frame period is consistent.
The raw video signal and the frame period difference of new video signal that frame period comparison module is calculated are M × T, to M
It is N to round postscript, and because a and b is integer, and M should be the absolute value of a and b differences, and integer, therefore N is equal to M herein.
New video generation module receives the result of calculation of frame period comparison module, and it is N that postscript is rounded to M, every with N divided by new video signal
Total line number H of frame, obtains integer quotient S and remainder R.If the raw video signal frame period is more than the new video signal frame period(That is a >
b), then the blanking time of R rows before each frame picture of new video signal is increased(S+1)Individual pixel clock period, remaining each row disappear
The hidden time increases S pixel clock period.If the raw video signal frame period is less than or equal to the new video signal frame period(That is a
≤b), then the blanking time of R rows before each frame picture of new video signal is reduced(S+1)Individual pixel clock period, remaining each row
Blanking time reduces by S pixel clock period.New video signal is adjusted per the frame period(Increase or decrease)Size be:
After above-mentioned processing, the new video signal frame period has basically reached accurate consistent with the raw video signal frame period.
Due in the processing of each step in units of new video pixel clock period T, therefore, after above-mentioned processing
The difference in new video signal frame period and raw video signal frame period is within a new video pixel clock period.
In video processing procedure, continuous circulating repetition performs above-mentioned steps(1)—(5), a variety of causes can be eliminated and led
The frame period difference accumulation of cause, to realize the frame period real-time synchronization of new video signal and raw video signal.
Above-described embodiment is the preferable embodiment of the present invention, but embodiments of the present invention are not by the embodiment
Limitation, other any Spirit Essences without departing from the present invention with made under principle change, modification, replacement, combine, simplification,
Equivalent substitute mode is should be, is included within protection scope of the present invention.
Claims (2)
1. a kind of vision signal frame synchornization method, it is characterised in that comprise the following steps:
(1)Raw video signal is gathered, caches its each frame picture pixel data;
(2)Read and handle each frame picture pixel data of original video of caching, generate new video signal;
(3)Counted respectively within a frame period of raw video signal and new video signal using same clock signal;
(4)The frame period that raw video signal and new video signal is calculated is poor;
(5)New video signal each horizontal blanking interval is finely adjusted so that new video signal frame period and raw video signal frame
Cycle is consistent;
Each step(1)-(5)Circulating repetition performs;
The step(3)Using the pixel clock signal of new video signal respectively the one of raw video signal and new video signal
Counted in the individual frame period;
The step(5)In, by the picture that the frame period differential conversion of raw video signal and new video signal is M new video signal
Plain clock cycle T, M are rational, and N is denoted as after being rounded to M, with the total line number H of N divided by new video signal per frame, obtain integer
Business S and remainder R;If the raw video signal frame period is more than the new video signal frame period, by R before each frame picture of new video signal
The capable blanking time increases S+1 pixel clock period, and the blanking time of remaining each row increases S pixel clock period, if former
Vision signal frame period beginning is less than the new video signal frame period, then subtracts the blanking time of R rows before each frame picture of new video signal
Few S+1 pixel clock period, the blanking time of remaining each row reduce by S pixel clock period.
2. a kind of vision signal frame-synchronizing device using method as claimed in claim 1, it is characterised in that including such as bottom
Point:
Video acquisition module, for gathering raw video signal, and cache its each frame picture pixel data;
Video processing module, each frame picture pixel data of original video for reading and handling caching;
New video generation module, for generating new video signal;
Frame period comparison module, the frame period for calculating raw video signal and new video signal are poor;
Described video acquisition module is connected with video processing module;Video processing module is given birth to video acquisition module and new video
It is connected into module;New video generation module is connected with video processing module and frame period comparison module, frame period comparison module phase
Company is connected with new video generation module.
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 CN104168487A (en) | 2014-11-26 |
CN104168487B true 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) |
Families Citing this family (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9858965B2 (en) * | 2015-10-23 | 2018-01-02 | Microsoft Technology Licensing, Llc | Video loop generation |
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 |
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 |
CN111669635B (en) * | 2020-06-15 | 2022-04-29 | 武汉精立电子技术有限公司 | Clock transmission and recovery method and device based on video interface |
CN113119866B (en) * | 2021-05-12 | 2022-12-02 | 中国第一汽车股份有限公司 | Rearview mirror display method and device based on streaming media |
CN113810645B (en) * | 2021-11-16 | 2022-02-08 | 北京数字小鸟科技有限公司 | System, method and equipment for transmitting custom data of video blanking area |
CN116193044B (en) * | 2023-04-28 | 2023-08-15 | 深圳市微智体技术有限公司 | Method, device, equipment and medium for synchronously displaying multiple image frames |
Citations (4)
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 |
-
2014
- 2014-08-19 CN CN201410406902.5A patent/CN104168487B/en active Active
Patent Citations (4)
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 |
Also Published As
Publication number | Publication date |
---|---|
CN104168487A (en) | 2014-11-26 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104168487B (en) | A kind of vision signal frame synchornization method and its device | |
CN103647918B (en) | Video synchronization method and device | |
CN105847687B (en) | Signal processing apparatus and camera | |
CN105721818B (en) | A kind of signal conversion method and device | |
WO2020199888A1 (en) | Multi-view naked-eye stereoscopic display, display system, and display method | |
CN102376293A (en) | Image mosaic processor on basis of FPGA (Field Programmable Gata Array) and image mosaic method | |
CN103595924A (en) | Image fusion system based on Cameralink and image fusion method based on Cameralink | |
CN103605210A (en) | Virtual type integrated imaging 3D display device | |
CN104363383B (en) | A kind of method and apparatus of image predistortion correction | |
CN103475894B (en) | A kind of 3D laparoscope method for processing video frequency | |
CN104780329A (en) | Multi-picture separator capable of playing high-definition and standard-definition videos based on FPGA and multi-picture separation method based on FPGA | |
CN103634519A (en) | Image display method and device based on dual-camera head | |
CN102932659A (en) | Method for removing integral imaging three-dimensional displaying crosstalk images | |
CN107277295B (en) | Audio video synchronization processing unit and method | |
CN103607583A (en) | Display method, display device and display system for shutter type three dimensional image | |
CN103313084B (en) | Integrated imaging double-shooting method based on different microlens array parameters | |
CN103024430B (en) | Control display method and system for simulating red, green and blue (RGB) signal | |
CN104581095A (en) | Camera Link video optical transceiver | |
CN108616674A (en) | Two-way video-signal timing sequence generating circuit structure with outer synchronizing function | |
CN105472203A (en) | Genlock system and method | |
CN103796002B (en) | Based on the one-dimensional integrated imaging 3D image pickup method of rectangular projection | |
CN102263972A (en) | 3D Display Control Device and Method Thereof | |
CN103581601A (en) | Split screen scanning method for UHD signal sampling and displaying | |
CN105430237B (en) | A kind of processing method and system of frame missing image | |
CN115695763B (en) | Three-dimensional scanning system |
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 |