CN104717445B - Automatic switching method of more video formats to BT.656 agreement TSC-system formula videos - Google Patents

Automatic switching method of more video formats to BT.656 agreement TSC-system formula videos Download PDF

Info

Publication number
CN104717445B
CN104717445B CN201310682689.6A CN201310682689A CN104717445B CN 104717445 B CN104717445 B CN 104717445B CN 201310682689 A CN201310682689 A CN 201310682689A CN 104717445 B CN104717445 B CN 104717445B
Authority
CN
China
Prior art keywords
video
agreement
signal
tsc
videos
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
Application number
CN201310682689.6A
Other languages
Chinese (zh)
Other versions
CN104717445A (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.)
AVIC No 631 Research Institute
Original Assignee
AVIC No 631 Research Institute
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 AVIC No 631 Research Institute filed Critical AVIC No 631 Research Institute
Priority to CN201310682689.6A priority Critical patent/CN104717445B/en
Publication of CN104717445A publication Critical patent/CN104717445A/en
Application granted granted Critical
Publication of CN104717445B publication Critical patent/CN104717445B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Television Systems (AREA)

Abstract

Automatic switching method the present invention relates to from more video formats to BT.656 agreement TSC-system formula videos, comprises the following steps:1】Create automated conversion system;2】The vision signal of input is respectively fed in protocol detection module;3】High level enable signal CEn drives the valid pixel of agreement N collecting units collection incoming video signal corresponding with agreement N detection units;4】Control signal amounts of the high level enable signal CEn as multidiameter option switch controller;5】Scaling processing module is scaled 640*480 resolution sizes, while is written into output memory cell;6】The control pixel stream that control module produces ntsc video blanking zone according to BT.656 agreements is sent, realizes conversion of the input video to TSC-system formula 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 by the present invention meets BT.656 agreement TSC-system formula videos, and video format conversion is time-consuming small.

Description

Automatic switching method of more video formats to BT.656 agreement TSC-system formula videos
Technical field
The invention belongs to Video processing, graph image field, and in particular to a kind of more video formats are to BT.656 agreements The automatic switching method of TSC-system formula video.
Background technology
TSC-system formula 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 TSC-system formula for meeting BT.656 agreements;Although occur at present various Video format is to the chip of TSC-system formula Video Quality Metric, but this kind of chip is often only supported to a kind of or a kind of input video Encoding and decoding.
With electronic technology, the development of large scale integrated circuit, using field programmable gate array (FPGA) in reality Existing complicated control and processing function have very big advantage in integration, stability and reliability etc., and research is based on The automatic conversion control method of FPGA various video form to the TSC-system formula video for meeting BT.656 agreements has wide Application prospect.
The content of the invention
The present invention is to solve the video of any protocol type to meeting BT.656 agreement TSC-system formula Video Quality Metrics A kind of integrated sex chromosome mosaicism, it is proposed that automatic switching method of more video formats to BT.656 agreement TSC-system formula videos.
The technical solution of the present invention:
To the automatic switching method of BT.656 agreement TSC-system formula videos, it is characterized in that more video formats, including Following steps:
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 enable signal CEn or low level enable 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 enable signal CEn is inputted to corresponding agreement N collecting units and multidiameter option switch Controller;
Multidiameter option switch controller:For under high level enable signal CEn control, the video that agreement matches to be adopted The effective pixel data that collection module collects buffers into collection memory cell;
Gather memory cell:For caching the effective pixel data of incoming video signal;
Scale processing module:Effective pixel data is read from collection memory cell for real time sequence and uses bilinearity Interpolation algorithm scales it the resolution sizes for 640*480, while sends it to output memory cell;
Export memory cell:For storing the effective pixel data after scaling processing module processing;
And send control module:For producing the control pixel stream of ntsc video blanking zone according to BT.656 agreements, and The pixel data after scaling is sequentially read from output memory cell, the effective pixel region of video data stream is filled into, so as to real Conversion of the existing input video to TSC-system formula video;
2】The vision signal of input is respectively fed into protocol detection module be detected in each protocol detection unit, If the vision signal of input matches with the agreement of agreement N detection units, agreement N detection units produce the enabled of high level Signal CEn, while remaining protocol detection unit produces low level enable signal;
3】High level enable signal CEn drives agreement N collecting units collection input video corresponding with agreement N detection units The valid pixel of signal;Simultaneously low level enable signal make with its corresponding to agreement collecting unit be in reset state;
4】Control signal amounts of the high level enable signal CEn as multidiameter option switch controller so that only agreement Match somebody with somebody agreement N collecting units collection vision signal valid pixel by multidiameter option switch controller cache to gather 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 640*480, while is written into output memory cell;
6】Send control module and the control pixel stream of ntsc video blanking zone is produced according to BT.656 agreements, and deposited from output The pixel data after scaling is sequentially read in storage unit, the effective pixel region of video data stream is filled into, so as to realize that input regards Frequency arrives the conversion of TSC-system formula video.
Each protocol detection unit in protocol detection module works in the way of parallel pipelining process.
Above-mentioned collection memory cell includes buffering area A and buffering area B, specific storing step are:
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 video detecting unit of ITU709 agreements;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】The 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 TSC-system formula video for meeting BT.656 agreements, And video format conversion is time-consuming small;Can dynamic detection video protocols change, can be after input source video protocols change The detection to its protocol type is completed in the time interval of one two field picture input;Detectable protocol type can answer according to specific Independently customized and cut with demand.
Brief description of the drawings
Fig. 1 is automatic switching method schematic diagram of more video formats to BT.656 agreement TSC-system formula videos.
Embodiment
The present invention realizes that more video formats to the automatic switching method of BT.656 agreement TSC-system formula videos, lead to using FPGA Cross and establish many general video protocol data storehouse, the data flow of incoming video signal is analyzed, assisted with various conventional videos Discuss the affiliated protocol type of data flow multilevel iudge, while detection image resolution ratio and frame per second;Designed image frame double buffering A and B, The valid pixel of video stream data frame is stored in buffering area A by the way of ping-pong operation, while according to the resolution ratio pair of image The complete data frame of caching is scaled 640*480 resolution sizes using bilinear interpolation algorithm and is stored in defeated in buffering area B Go out memory cell;The control pixel stream of ntsc video blanking zone is produced according to BT.656 agreements, and it is suitable from output memory cell Sequence reads the pixel data after scaling, the effective pixel region of video data stream is filled into, so as to realize input video to TSC-system The conversion of formula video;
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 The time interval of full frame images expert's field sync signal and the changing rule of blanking zone video data, whether 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 Pixel clock (CLK) cycle count included between adjacent Hsync pulses, the clk cycle meter included in Hsync pulse width ranges Count, the clk cycle pulse number included in valid pixel row in data valid signal (De) pulse width, from Vsync signal arteries and veins Rush saltus step and play the Hsync pulse numbers included between first valid pixel row (field blanking area), in 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 analyze the data flow of input picture frame, detect and calculate 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, is then 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 it corresponding Acquisition module;Other protocol detection modules output simultaneously is low level signal, and makes video acquisition corresponding at its rear end Module is in reset state.
3】A multidiameter option switch controller is designed, using the CEn of each video protocols detection module output as control signal Amount, the video data stream of each video protocols acquisition module collection is input, and gating CEn is collection video data corresponding to high level Stream carries out follow-up caching and scaling processing operation;
4】Double buffering A and B are designed, the valid pixel of the adjacent two field pictures continuously to arrive 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 640*480 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 is stored in transmission output storage list Member;
5】The control pixel stream of ntsc video blanking zone, and the order from output memory cell are produced according to BT.656 agreements The pixel data after scaling is read, the effective pixel region of video data stream is filled into, so as to realize input video to TSC-system formula The conversion of video.
The automatic conversion control method of the present invention successful implementation in certain type test module, can dynamically be examined in real time The vision signal of the agreements such as VESA, RawRGB of various resolution ratio is surveyed, video scaling is automatically performed and handles and be uniformly converted to symbol The NTSC format video of BT.656 agreements is closed, the processing speed of Video Quality Metric is fast, and output is steady and audible.

Claims (6)

  1. Automatic switching method of the video format more than 1. to BT.656 agreement TSC-system formula videos, it is characterised in that including following step Suddenly:
    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 enable 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 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 and detection Unit is corresponded, and the high level enable signal CEn is inputted to corresponding agreement N collecting units and multidiameter option switch control Device;
    Multidiameter option switch controller:For the video acquisition mould that under high level enable signal CEn control, agreement is matched The effective pixel data that block collects buffers into collection memory cell;
    Gather memory cell:For caching the effective pixel data of incoming video signal;
    Scale processing module:Effective pixel data is read from collection memory cell for real time sequence and uses bilinear interpolation Algorithm scales it the resolution sizes for 640*480, while sends it to output memory cell;
    Export memory cell:For storing the effective pixel data after scaling processing module processing;
    And send control module:For producing the control pixel stream of ntsc video blanking zone according to BT.656 agreements, and from defeated Go out and the pixel data after scaling is sequentially read in memory cell, be filled into the effective pixel region of video data stream, it is defeated so as to realize Enter conversion of the video to TSC-system formula video;
    2】The vision signal of input is respectively fed into protocol detection module be detected in each protocol detection unit, if defeated The vision signal entered matches 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 produces low level enable signal;
    3】High level enable signal CEn drives agreement N collecting units collection incoming video signal corresponding with agreement N detection units Valid pixel;Simultaneously low level enable signal make with its corresponding to agreement collecting unit be in reset state;
    4】Control signal amounts of the high level enable signal CEn as multidiameter option switch controller so that only agreement matches 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 640*480, while is written into output memory cell;
    6】The control pixel stream that control module produces ntsc video blanking zone according to BT.656 agreements is sent, and it is single from output storage The pixel data after scaling is sequentially read in member, the effective pixel region of video data stream is filled into, so as to realize that input video arrives The conversion of TSC-system formula video.
  2. 2. more video formats according to claim 1 are to the automatic switching method of BT.656 agreement TSC-system formula videos, its It is characterised by, each protocol detection unit in protocol detection module works in the way of parallel pipelining process.
  3. 3. more video formats according to claim 1 or 2 are to the automatic switching method of BT.656 agreement TSC-system formula videos, Characterized in that, the collection memory cell includes buffering area A and buffering area B, specific storing step are:
    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. 4. more video formats according to claim 3 are to the automatic switching method of BT.656 agreement TSC-system formula videos, its It is characterised by:
    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. 5. more video formats according to claim 4 are to the automatic switching method of BT.656 agreement TSC-system formula videos, its It is characterised by:
    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 Video detecting unit;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 customize and cut out according to concrete application demand Cut.
  6. 6. more video formats according to claim 5 are to the automatic switching method of BT.656 agreement TSC-system formula videos, its It is characterised by,
    The step 2】Concretely comprise the following steps:
    2.1】Real-time synchronization calculates each state parameter of incoming video signal;
    2.2】The 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.
CN201310682689.6A 2013-12-12 2013-12-12 Automatic switching method of more video formats to BT.656 agreement TSC-system formula videos Active CN104717445B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310682689.6A CN104717445B (en) 2013-12-12 2013-12-12 Automatic switching method of more video formats to BT.656 agreement TSC-system formula videos

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310682689.6A CN104717445B (en) 2013-12-12 2013-12-12 Automatic switching method of more video formats to BT.656 agreement TSC-system formula videos

Publications (2)

Publication Number Publication Date
CN104717445A CN104717445A (en) 2015-06-17
CN104717445B true CN104717445B (en) 2017-11-24

Family

ID=53416344

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310682689.6A Active CN104717445B (en) 2013-12-12 2013-12-12 Automatic switching method of more video formats to BT.656 agreement TSC-system formula videos

Country Status (1)

Country Link
CN (1) CN104717445B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108184090B (en) * 2017-12-07 2020-09-22 中国航空工业集团公司西安航空计算技术研究所 Automatic conversion method for multi-resolution VESA video of CMOS camera to BT1120 protocol video
CN112188137B (en) * 2019-07-01 2022-07-08 北京华航无线电测量研究所 Method for converting high frame frequency progressive image to standard definition PAL interlaced image based on FPGA

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1246233A (en) * 1996-12-18 2000-03-01 汤姆森消费电子有限公司 A multiple format video signal processor
JP2002320205A (en) * 2001-04-19 2002-10-31 Nippon Television Network Corp Multi-format system for video signal and program thereof
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
CN102740086A (en) * 2012-06-26 2012-10-17 上海屹芯微电子有限公司 Automatic identification method and device of composite video broadcast signal system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1246233A (en) * 1996-12-18 2000-03-01 汤姆森消费电子有限公司 A multiple format video signal processor
JP2002320205A (en) * 2001-04-19 2002-10-31 Nippon Television Network Corp Multi-format system for video signal and program thereof
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
CN102740086A (en) * 2012-06-26 2012-10-17 上海屹芯微电子有限公司 Automatic identification method and device of composite video broadcast signal system

Also Published As

Publication number Publication date
CN104717445A (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
CN103430210B (en) Information processing system, information processor, filming apparatus and information processing method
CN103428460B (en) The video recording method and recording device of output video signal sequence are recorded for image capture module
WO2015070694A1 (en) Screen splicing system and video data stream processing method
JP2016502126A (en) Video image processing method and apparatus
US9148564B2 (en) Image pickup apparatus, information processing system and image data processing method
CN104469349B (en) A kind of method detecting the MIPI vision signal that video source produces
CN103248797A (en) Video resolution enhancing method and module based on FPGA (field programmable gate array)
JP2015001549A (en) Signal output apparatus, signal output method, and image display apparatus
CN103647918A (en) Video synchronization method and device
WO2023109842A1 (en) Image presentation method and apparatus, and electronic device and storage medium
CN102883120B (en) A kind of double; two picture image display device and control method
TW202213269A (en) Image processing method and apparatus, computer device, and storage medium
CN106063260B (en) The method of work of video processor, video processor
CN104717446B (en) Automatic switching method from many video formats to ITU656 agreement pal modes
CN104717445B (en) Automatic switching method of more video formats to BT.656 agreement TSC-system formula videos
CN107277295A (en) Audio video synchronization processing unit and method
CN105430297B (en) The automatic control system that more video formats are changed to IIDC protocol videos form
CN104836959B (en) Face array CMOS image sensor multimode automatic switching acquisition system based on FPGA
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
CN106713858A (en) Video image display method, apparatus and system based on CameraLink protocol
CN104717443B (en) Automatic switching method from many video formats to SMPTE274 agreement 1080i resolution videos
CN105554592A (en) Method and system for collecting and transmitting high frame rate video image
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