CN104717446B - Automatic switching method from many video formats to ITU656 agreement pal modes - Google Patents
Automatic switching method from many video formats to ITU656 agreement pal modes Download PDFInfo
- Publication number
- CN104717446B CN104717446B CN201310682894.2A CN201310682894A CN104717446B CN 104717446 B CN104717446 B CN 104717446B CN 201310682894 A CN201310682894 A CN 201310682894A CN 104717446 B CN104717446 B CN 104717446B
- Authority
- CN
- China
- Prior art keywords
- video
- agreement
- signal
- itu656
- pixel
- 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
Landscapes
- Television Systems (AREA)
Abstract
The present invention relates to many video formats to the automatic switching method of ITU656 agreement pal modes, comprise the following steps:1】Create automated conversion system;2】The vision signal of input is respectively fed in protocol detection module;3】High level enables the valid pixel that signal CEn drives agreement N collecting units corresponding with agreement N detection units to gather incoming video signal;4】High level enables signal CEn as the control signal amount of multidiameter option switch controller;5】Scaling processing module is scaled 720*576 resolution sizes, while being written into output memory cell;6】The control pixel stream that control module produces pal mode video blanking area according to ITU656 agreements is sent, realizes input video to the conversion of pal mode video.The present invention solves the integrated sex chromosome mosaicism that the video of any protocol type is changed to pal mode, and the video of any protocol type and resolution ratio can be automatically converted to the PAL format video for meeting ITU656 agreements by the present invention, and video format conversion is time-consuming small.
Description
Technical field
The invention belongs to Video processing, graph image field, and in particular to a kind of many video formats are to ITU656 agreements PAL
The automatic switching method of standard.
Background technology
Pal mode analog video is a kind of classical video format, usually as video frequency output in numerous application scenarios
Standard interface.But for existing vision sensor, the video protocols that it is exported are different, therefore generally require to pass vision
The Video Quality Metric of the various agreements of sensor output is the pal mode for meeting ITU656 agreements;Although having occurred in that at present various
The chip that video format is changed to pal mode, but this kind of chip is often only supported to a kind of or a class input video volume solution
Code.
With electronic technology, the development of large scale integrated circuit, realized using field programmable gate array (FPGA)
Complicated control and processing function has very big advantage in terms of integration, stability and reliability, and research is based on
It is wide that the automatic conversion control method of FPGA various video form to the pal mode video for meeting ITU656 agreements has
Application prospect.
The content of the invention
The present invention is to solve the integrated sex chromosome mosaicism that the video of any protocol type is changed to pal mode, it is proposed that one
Plant automatic switching method of many video formats to ITU656 agreement pal modes.
The technical solution of the present invention:
Many video formats are to the automatic switching method of ITU656 agreement pal modes, and it is characterized in that, including following step
Suddenly:
1】Create automated conversion system:
Including protocol detection module:Height is produced for carrying out agreement matching to incoming video signal, and according to matching result
Level enables signal CEn or low level enables signal, including the detection unit of agreement 1, the detection unit ... of agreement 2 and agreement N
Detection unit;
Video acquisition module:The valid pixel of incoming video signal to matching by protocol detection module is adopted
Collection, including the collecting unit of agreement 1, the collecting unit ... of agreement 2 and agreement N collecting units;The collecting unit of various agreements with
Detection unit is corresponded, and the high level enables signal CEn and inputted to corresponding agreement N collecting units and multidiameter option switch
Controller;
Multidiameter option switch controller:For under the control that high level enables signal CEn, the video that agreement is matched to be adopted
The effective pixel data that collection module is collected buffers into collection memory cell;
Gather memory cell:Effective pixel data for caching incoming video signal;
Scale processing module:Effective pixel data is read from collection memory cell and use bilinearity for real time sequence
Interpolation algorithm scales it the resolution sizes for 720*576, while sending it to output memory cell;
Export memory cell:For storing the effective pixel data after scaling processing module processing;
And send control module:Control pixel stream for producing pal mode video blanking area according to ITU656 agreements,
And the pixel data after scaling is sequentially read from output memory cell between the SAV and EAV of pixel stream, it is filled into ITU656
The effective pixel region of pixel stream, so as to realize input video to the conversion of pal mode video;
2】The vision signal of input is respectively fed into protocol detection module to be detected in each protocol detection unit,
If the vision signal of input is matched with the agreement of agreement N detection units, agreement N detection units produce the enable of high level
Signal CEn, while remaining protocol detection unit, which produces low level, enables signal;
3】High level enables signal CEn and drives agreement N collecting units collection input video corresponding with agreement N detection units
The valid pixel of signal;Low level enables signal and makes to be in reset state with the agreement collecting unit corresponding to it simultaneously;
4】High level enables signal CEn as the control signal amount of multidiameter option switch controller so that there was only agreement
The valid pixel of the vision signal for the agreement N collecting units collection matched somebody with somebody is by multidiameter option switch controller cache to gathering storage
Unit;
5】Scale processing module and read the effective pixel data of whole frame from collection memory cell order, and use bilinearity
Interpolation algorithm scales it the resolution sizes for 720*576, while being written into output memory cell;
6】The control pixel stream that control module produces pal mode video blanking area according to ITU656 agreements is sent, and in picture
The effective pixel data after scaling is sequentially read between the SAV and EAV of element stream from output memory cell, ITU656 pictures are filled into
The effective pixel region of element stream, so as to realize input video to the conversion of pal mode video.
Each protocol detection unit works in the way of parallel pipelining process in protocol detection module.
Above-mentioned collection memory cell includes buffering area A and buffering area B, and specific storing step is:
During current video frame data Cun Chudao buffering area A, the previous frame video data that storage is read from buffering area B is sent
Give scaling processing module;
When the storage of next frame video data is to buffering B, the data that current video frame is read from buffering area A are sent to scaling
Processing module.
Above-mentioned protocol detection module is analyzed and calculates the following protocol status parameter of input video stream in real time:Adjacent field synchronization
The line synchronising signal Hsync pulse numbers included between signal Vsync pulses;Field sync signal Vsync pulse width ranges
The line synchronising signal Hsync pulse numbers inside included;The pixel clock CLK included between adjacent line synchronising signal Hsync pulses
Number of cycles;The pixel clock clk cycle number included in line synchronising signal Hsync pulse width ranges;In valid pixel row
The pixel clock clk cycle number included in data valid signal De pulse widths;From field sync signal Vsync impulse hits
To the line synchronising signal Hsync pulse numbers included between first valid pixel row;From the synchronous letter of row in valid pixel row
Feel the pulse to rush Hsync saltus steps and play the pixel clock clk cycle that is included between data valid signal De and count.
The VESA protocol videos detection unit of above-mentioned protocol detection module including various resolution ratio, various resolution ratio
RawRGB format videos detection unit, meet the video detecting unit of SMPTE274 agreements, meet ITU601, ITU656 and
The detection unit of ITU709 protocol videos;The VESA protocol videos collection that the video acquisition module includes various resolution ratio is single
The RawRGB format videos collecting unit of first, various resolution ratio, meet the video acquisition unit of SMPTE274 agreements, meet
The video acquisition unit of ITU601, ITU656 and ITU709 agreement;And detectable protocol type can be according to concrete application need
Ask autonomous customization and cut;
Above-mentioned steps 2】Concretely comprise the following steps:
2.1】Real-time synchronization calculates each state parameter of incoming video signal;
2.2】Each state parameter calculated is contrasted with the state parameter of each agreement of corresponding protocol detection module:
If state parameter is consistent, inputting video data belongs to this kind of agreement;Otherwise, then it is not belonging to this kind of agreement.
The beneficial effects of the invention are as follows:
The video of any protocol type and resolution ratio can be automatically converted to the PAL format for meeting ITU656 agreements by the present invention
Video, and video format conversion is time-consuming small;Can dynamic detection video protocols change, when input source video protocols change
Afterwards, the detection to its protocol type can be completed in the time interval that a two field picture is inputted;Detectable protocol type can root
According to independently customization and the cutting of concrete application demand.
Brief description of the drawings
Fig. 1 is automatic conversion control method schematic diagram of the various video agreement to pal mode video.
Embodiment
The present invention realizes various video form to the automatic conversion for the pal mode video for meeting ITU656 agreements using FPGA
Method, by setting up many general video protocol data storehouse, the data flow to incoming video signal is analyzed, and is commonly used with various
The affiliated protocol type of video protocol data stream multilevel iudge, while detection image resolution ratio and frame per second;Designed image frame double buffering
Area A and B, buffering area A is stored in by the way of ping-pong operation by the valid pixel of video stream data frame, while according to point of image
Resolution is scaled 720*576 resolution sizes simultaneously to the complete data frame cached in buffering area B using bilinear interpolation algorithm
Deposit output memory cell;According to YCbCr 4:2:2 ITU656 agreements produce control pixel stream, are read from output memory cell
The view data after scaling is taken to be filled into the effective pixel region of ITU656 pixel streams, so as to realize the conversion of PAL video protocols.
Realize that details is specific as follows:
1】Design is for various conventional video protocols (including the VESA agreements of various resolution ratio, various resolution ratio
RawRGB forms, ITU601, ITU656, ITU709 and SMPTE274 agreement) detection module, detection module pass through analyze one
Whether the time interval of full frame images expert's field sync signal and the changing rule of blanking zone video data, judge input video
Belong to this kind of agreement;
Detection module sets the state parameter of following video protocols, is respectively:Adjacent field sync signal (Vsync) pulse it
Between line synchronising signal (Hsync) pulse number for being included, the Hsync pulse numbers included in Vsync pulse width ranges, phase
The clk cycle meter included in pixel clock (CLK) cycle count included between adjacent Hsync pulses, Hsync pulse width ranges
The clk cycle pulse number included in number, valid pixel row in data valid signal (De) pulse width, from Vsync signal arteries and veins
Rush saltus step play in the Hsync pulse numbers that (field blanking area) between first valid pixel row is included, valid pixel row from
Hsync signal pulse saltus steps play De signals it is effective between (horizontal blanking area) clk cycle for being included count;
2】The data of input video and control signal wire (CLK, Hsync, Vsync and De) are respectively fed to each video protocols
Detection module, detection module analyzes the data flow of input picture frame, detects and calculates above-mentioned state parameter, if the parameter detected
It is consistent with the state parameter of agreement to be detected, then it is assumed that input video belongs to this kind of agreement, otherwise, then it is not belonging to this kind of agreement;
If certain agreement matches input video, the detection module of this kind of agreement produces the enable signal CEn of high level, drives its correspondence
Acquisition module;Other protocol detection modules are output as low level signal simultaneously, and make corresponding video acquisition at its rear end
Module is in reset state;
3】A multidiameter option switch controller is designed, the CEn using the output of each video protocols detection module is control signal
Amount, the video data stream of each video protocols acquisition module collection is input, and gating CEn is the corresponding collection video data of high level
The follow-up caching of stream progress and scaling processing operation;
4】Double buffering A and B are designed, the valid pixel of the adjacent two field pictures continuously arrived is cached, to buffering area A and B
Ping-pong operation is carried out, when current frame image is filled into buffering area A, bilinear interpolation is used to the previous frame image cached in B
Algorithm is scaled 720*576 and differentiates size, and is filled into transmission output memory cell;In subsequent time period, by next frame
Image buffer storage enters buffering area B and bilinear interpolation processing is carried out to the picture frame in buffering area A and transmission output storage list is stored in
Member;
5】Produce the control pixel stream in pal mode video blanking area according to ITU656 agreements, and pixel stream SAV and
The pixel data after scaling is sequentially read between EAV from output memory cell, the valid pixel of ITU656 pixel streams is filled into
Area, so as to realize input video to the conversion of pal mode video.
The automatic conversion control method of the present invention successful implementation in certain project, can be realized to infrared, laser
And the video automatic detection of the various protocols of visible light sensor collection, complete video scaling processing and be uniformly converted to meet
The PAL format video of ITU656 agreements, the processing speed of Video Quality Metric is fast, exports steady and audible.
Claims (6)
1. more than automatic switching method from video format to ITU656 agreement pal modes, it is characterised in that comprise the following steps:
1】Create automated conversion system:
Including protocol detection module:High level is produced for carrying out agreement matching to incoming video signal, and according to matching result
Enable signal CEn or low level enables signal, including the detection unit of agreement 1, the detection unit ... of agreement 2 and agreement N detections
Unit;
Video acquisition module:The valid pixel of incoming video signal to matching by protocol detection module is acquired, and is wrapped
Include the collecting unit of agreement 1, the collecting unit ... of agreement 2 and agreement N collecting units;The collecting unit of various agreements is single with detection
Member is corresponded, and the high level enables signal CEn and inputted to corresponding agreement N collecting units and multidiameter option switch control
Device;
Multidiameter option switch controller:For under the control that high level enables signal CEn, the video acquisition mould that agreement is matched
The effective pixel data that block is collected buffers into collection memory cell;
Gather memory cell:Effective pixel data for caching incoming video signal;
Scale processing module:Effective pixel data is read from collection memory cell and use bilinear interpolation for real time sequence
Algorithm scales it the resolution sizes for 720*576, while sending it to output memory cell;
Export memory cell:For storing the effective pixel data after scaling processing module processing;
And send control module:Control pixel stream for producing pal mode video blanking area according to ITU656 agreements, and
The pixel data after scaling is sequentially read between the SAV and EAV of pixel stream from output memory cell, ITU656 pixels are filled into
The effective pixel region of stream, so as to realize input video to the conversion of pal mode video;
2】The vision signal of input is respectively fed into protocol detection module to be detected in each protocol detection unit, if defeated
The vision signal entered is matched with the agreement of agreement N detection units, then agreement N detection units produce the enable signal of high level
CEn, while remaining protocol detection unit, which produces low level, enables signal;
3】High level enables signal CEn and drives agreement N collecting units collection incoming video signal corresponding with agreement N detection units
Valid pixel;Low level enables signal and makes to be in reset state with the agreement collecting unit corresponding to it simultaneously;
4】High level enables signal CEn as the control signal amount of multidiameter option switch controller so that only agreement is matched
The valid pixel of the vision signal of agreement N collecting units collection is single to storage is gathered by multidiameter option switch controller cache
Member;
5】Scale processing module and read the effective pixel data of whole frame from collection memory cell order, and use bilinear interpolation
Algorithm scales it the resolution sizes for 720*576, while being written into output memory cell;
6】The control pixel stream that control module produces pal mode video blanking area according to ITU656 agreements is sent, and in pixel stream
SAV and EAV between from output memory cell in sequentially read scaling after effective pixel data, be filled into ITU656 pixel streams
Effective pixel region, so as to realize input video to the conversion of pal mode video.
2. many video formats according to claim 1 exist to the automatic switching method of ITU656 agreement pal modes, its feature
In:Each protocol detection unit works in the way of parallel pipelining process in protocol detection module.
3. many video formats according to claim 1 or 2 are to the automatic switching method of ITU656 agreement pal modes, it is special
Levy and be, the collection memory cell includes buffering area A and buffering area B, and specific storing step is:
During current video frame data Cun Chudao buffering area A, the previous frame video data that storage is read from buffering area B is sent to contracting
Put processing module;
When the storage of next frame video data is to buffering B, the data that current video frame is read from buffering area A are sent to scaling processing
Module.
4. many video formats according to claim 3 exist to the automatic switching method of ITU656 agreement pal modes, its feature
In,
The protocol detection module is analyzed and calculates the following protocol status parameter of input video stream in real time:Adjacent field sync signal
The line synchronising signal Hsync pulse numbers included between Vsync pulses;Wrapped in field sync signal Vsync pulse width ranges
The line synchronising signal Hsync pulse numbers contained;The pixel clock clk cycle included between adjacent line synchronising signal Hsync pulses
Number;The pixel clock clk cycle number included in line synchronising signal Hsync pulse width ranges;Data in valid pixel row
The pixel clock clk cycle number included in useful signal De pulse widths;Is played from field sync signal Vsync impulse hits
The line synchronising signal Hsync pulse numbers included between one valid pixel row;From line synchronising signal arteries and veins in valid pixel row
Rush Hsync saltus steps and play the pixel clock clk cycle counting included between data valid signal De.
5. many video formats according to claim 4 exist to the automatic switching method of ITU656 agreement pal modes, its feature
In:
The protocol detection module includes the VESA protocol videos detection unit of various resolution ratio, the RawRGB lattice of various resolution ratio
Formula video detecting unit, the video detecting unit for meeting SMPTE274 agreements, meet ITU601, ITU656 and ITU709 agreement and regard
The detection unit of frequency;The video acquisition module includes the VESA protocol videos collecting unit of various resolution ratio, various resolution ratio
RawRGB format videos collecting unit, meet the video acquisition unit of SMPTE274 agreements, meet ITU601, ITU656 and
The video acquisition unit of ITU709 agreements;And detectable protocol type independently can be customized and cut out according to concrete application demand
Cut.
6. many video formats according to claim 5 exist to the automatic switching method of ITU656 agreement pal modes, its feature
In,
The step 2】Concretely comprise the following steps:
2.1】Real-time synchronization calculates each state parameter of incoming video signal;
2.2】Each state parameter calculated is contrasted with the state parameter of each agreement of corresponding protocol detection module:If
State parameter is consistent, then inputting video data belongs to this kind of agreement;Otherwise, then it is not belonging to this kind of agreement.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310682894.2A CN104717446B (en) | 2013-12-12 | 2013-12-12 | Automatic switching method from many video formats to ITU656 agreement pal modes |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310682894.2A CN104717446B (en) | 2013-12-12 | 2013-12-12 | Automatic switching method from many video formats to ITU656 agreement pal modes |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104717446A CN104717446A (en) | 2015-06-17 |
CN104717446B true CN104717446B (en) | 2017-10-24 |
Family
ID=53416345
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310682894.2A Active CN104717446B (en) | 2013-12-12 | 2013-12-12 | Automatic switching method from many video formats to ITU656 agreement pal modes |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104717446B (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105430297B (en) * | 2015-12-11 | 2018-03-30 | 中国航空工业集团公司西安航空计算技术研究所 | The automatic control system that more video formats are changed to IIDC protocol videos form |
CN113438474B (en) * | 2021-06-28 | 2023-03-14 | 杭州加速科技有限公司 | Camera module testing device and control method thereof |
CN114268794B (en) * | 2021-11-25 | 2024-05-03 | 兰州空间技术物理研究所 | Russian nonstandard display system |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101006719A (en) * | 2004-06-18 | 2007-07-25 | 皇家飞利浦电子股份有限公司 | Video format detector and integrated circuit comprising such video format detector as well as method for distinguishing different standards and/or types of video formats |
US20110149032A1 (en) * | 2009-12-17 | 2011-06-23 | Silicon Image, Inc. | Transmission and handling of three-dimensional video content |
CN101853309B (en) * | 2010-06-18 | 2012-11-07 | 中国石油化工集团公司 | Log data format automatic identification and conversion method based on database |
CN102630059B (en) * | 2012-03-23 | 2015-09-30 | 深圳创维数字技术有限公司 | A kind of method and device realizing FLV video playback |
-
2013
- 2013-12-12 CN CN201310682894.2A patent/CN104717446B/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN104717446A (en) | 2015-06-17 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104717442B (en) | Automatic switching method of more video formats to VESA agreement 1600X1200 resolution ratio 60Hz frame-rate videos | |
CN104717444B (en) | Automatic switching method of more video formats to VESA agreement 1920X1440 resolution ratio 75Hz frame-rate videos | |
CN107249101B (en) | High-resolution image acquisition and processing device | |
CN103595924B (en) | A kind of image fusion system based on Cameralink and method thereof | |
CN103797790B (en) | Mobile image capturing devices, information processing system, messaging device and image processing method | |
US9148564B2 (en) | Image pickup apparatus, information processing system and image data processing method | |
CN104168487B (en) | A kind of vision signal frame synchornization method and its device | |
JP2016502126A (en) | Video image processing method and apparatus | |
CN104717446B (en) | Automatic switching method from many video formats to ITU656 agreement pal modes | |
TW202213269A (en) | Image processing method and apparatus, computer device, and storage medium | |
JP2015001549A (en) | Signal output apparatus, signal output method, and image display apparatus | |
CN102857703A (en) | High-definition video character superimposing system and control method | |
CN106134173A (en) | Display control unit and display device | |
CN107277295A (en) | Audio video synchronization processing unit and method | |
CN106068642A (en) | Imaging device, image processing apparatus, display control unit and imaging display apparatus | |
CN105430297B (en) | The automatic control system that more video formats are changed to IIDC protocol videos form | |
CN104717445B (en) | Automatic switching method of more video formats to BT.656 agreement TSC-system formula videos | |
CN105118077A (en) | Method for improving file shooting fluency and system for improving file shooting fluency | |
CN104836959B (en) | Face array CMOS image sensor multimode automatic switching acquisition system based on FPGA | |
CN106713858A (en) | Video image display method, apparatus and system based on CameraLink protocol | |
CN102118289A (en) | Real-time image segmentation processing system and high-speed intelligent unified bus interface method based on Institute of Electrical and Electronic Engineers (IEEE) 1394 interface | |
CN104717443B (en) | Automatic switching method from many video formats to SMPTE274 agreement 1080i resolution videos | |
CN109587421A (en) | A kind of HD-SDI/3G-SDI transmitting-receiving and real-time picture-in-picture switch output processing method | |
CN102073858A (en) | Fingerprint and palmprint acquisition instrument and acquisition method thereof | |
CN204131656U (en) | Be applied to the assistant images processing unit of augmented reality 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 |