Summary of the invention
In order to address the above problem, the invention provides a kind of video forwarding unit and corresponding video retransmission method of AXI bus, can realize no time-delay, the short time delay of video, the forwarding of long delay.
The present invention at first provides a kind of triple channel video forwarding unit; It is characterized in that; This equipment comprises: video reception module S1, triple channel are transmitted processing module S2, vision signal sending module S3, channel register 301 and weak point/long delay register 307, wherein
Video reception module S1 transmits processing module with triple channel respectively and is connected with the vision signal sending module; Be used for receiving video signals; Vision signal handled obtain video synchronizing information and color data; And video synchronizing information outputed to the vision signal sending module, color data is outputed to triple channel transmit processing module;
Channel register 301 is used for the delay requirement different according to video data, selects in the triple channel one of them;
Triple channel is transmitted processing module S2 and is connected S3 with video reception module S1 with the vision signal sending module respectively; Be used for setting, will require to be forwarded to vision signal sending module S3 according to different time delay from the color data that video reception module S1 receives according to channel register 301;
Weak point/long delay register 307 is used for storage time-delay settings;
Vision signal sending module S3 transmits processing module S2 with video reception module S1 with triple channel respectively and is connected; Be used for the video synchronizing information of storing according to video reception module S1, the information of channel register 301 and the information of weak point/long delay register 307; Generation does not have/has the synchronous sequence of time-delay; It is combined with the color data that receives from triple channel forwarding processing module S2, generate new vision signal, send to video signal receiving apparatus.
The present invention also provides a kind of vision signal is carried out the method that triple channel is transmitted, and it is characterized in that this method may further comprise the steps:
Step 1, receiving video signals;
Step 2 extracts color data from said vision signal;
Step 3 selects a passage to transmit said color data for the requirement of time delay according to vision signal from nothing time-delay forwarding passage 1, short time delay forwarding passage 2 and long delay forwarding passage 3 these three forwarding passages;
Step 4 produces synchronous sequence according to selected forwarding passage;
Step 5 combines synchronous sequence that is produced and the color data that from vision signal, extracts, and forms new vision signal;
Step 6 forwards said new vision signal.
Video forwarding unit provided by the present invention and triple channel retransmission method can be realized no time-delay, the short time delay of video, the forwarding of long delay, in conjunction with user's Video processing characteristics, and time delay that can its forwarding of flexible configuration.To no Video Applications, use the video that time delay can obtain transmitting through configuration, reduced the complexity of this type application effectively.Adopt this equipment, then the user can more be absorbed in its Video Applications of completion, and need not pay close attention to the details of forwarding.
Embodiment
For making the object of the invention, technical scheme and advantage clearer, below in conjunction with specific embodiment, and with reference to accompanying drawing, to further explain of the present invention.
In Video processing; Usually need carry out some reprocessings to image; Such as denoising point, Filtering Processing, estimation etc., these are handled all needs the regular hour to accomplish, and therefore the present invention is directed to the difference of video reprocessing duration; Designed and had three-channel video forwarding unit, to satisfy the different demands of video reprocessing.
The vision signal that the present invention transmits can be digital visual interface (Digital Visual Interface, DVI) vision signal or HDMI (High Definition Multimedia Interface, the HDMI) video component of signal.
Fig. 1 is the application system sketch map of triple channel video forwarding unit.As shown in Figure 1, triple channel video forwarding unit of the present invention is that central processing unit and video equipment for after-treatment provide video data source through the AXI system bus.Wherein a kind of application scenarios is: video stores in the internal memory through the triple channel forwarding unit; The processing address of central processing unit configuration post-processing module and triple channel forwarding unit is consistent then; Dispose the delay duration of triple channel forwarding unit simultaneously, guarantee that the data that post-processing module is finished dealing with are forwarded.
Fig. 2 is that triple channel video forwarding unit structural representation and triple channel are transmitted DFD; As shown in Figure 2; Triple channel video forwarding unit proposed by the invention comprises: video reception module S1, triple channel are transmitted processing module S2, vision signal sending module S3, channel register 301 and weak point/long delay register 307; Wherein:
Video reception module S1 transmits processing module S2 with triple channel respectively and is connected S3 with the vision signal sending module; Be used for receiving video signals; Vision signal handled obtain video synchronizing information and color data; And video synchronizing information outputed to vision signal sending module S3, color data is outputed to triple channel transmit processing module S2;
Channel register 301; Be used for the delay requirement different according to video data; Select one of them passage in the triple channel, the value that in the processing module of passage 1,2,3 and sending module, all will check this register, the value that channel register 301 is preserved is that 001 expression selects not have time-delay passage 1; Value is that to represent to select short time delay passage 2, value at 002 o'clock be to represent to select long delay passage 3 at 003 o'clock.
Triple channel is transmitted processing module S2 and is connected S3 with video reception module S1 with the vision signal sending module respectively; Be used for setting, will require to be forwarded to vision signal sending module S3 according to different time delay from the color data that video reception module S1 receives according to channel register 301;
Weak point/long delay register 307; Be used for storage time-delay settings; The register multiplexing that be short time delay passage 2 with long delay passage 3; When the value of channel register 301 was 002, it was used for short time delay passage 2, and short time delay passage 2 produces the result of short time delay according to the value of storage in weak point/long delay register 307; When the value of channel register 301 is 003, be used for long delay passage 3, long delay passage 3 produces the result of long delay according to the value of storage in weak point/long delay register 307;
Vision signal sending module S3 transmits processing module S2 with video reception module S1 with triple channel respectively and is connected; Be used for the video synchronizing information of storing according to video reception module S1, the information of channel register 301 and the information of weak point/long delay register 307; Generation does not have/has the synchronous sequence of time-delay; Combination is transmitted the color data that processing module S2 receives from triple channel, generates new vision signal, sends to video signal receiving apparatus.
Said video reception module S1 further comprises: synchronizing signal statistical module 303, synchronizing signal registers group 304 and color data input registers group 306, wherein:
Synchronizing signal statistical module 303 is used for the video synchronization signal of receiving video signals, and video synchronization signal added up obtains video synchronizing information;
Synchronizing signal registers group 304 is used to store the video synchronizing information that synchronizing signal statistical module 303 statistics obtain;
Color data input registers group 302 is used for the color data of stored video signal.
Synchronizing signal statistical module 303 further comprises video frame synchronization signal statistics module and video line synchronizing signal statistical module, wherein:
Video frame synchronization signal statistics module is used for the lasting line number of statistics frame signal, the vertical resolution (being the effective number of times of data) of blanking zone line number, the blanking zone line number behind the frame and color signal before the frame;
Video line synchronizing signal statistical module is used to add up the lasting clock periodicity of capable signal, the clock periodicity of the preceding blanking zone of row, the clock periodicity and the horizontal resolution (being that data effectively continue clock periodicities) in row final blanking district.
Said triple channel processing module S2 further comprises: there are not time-delay passage 1, short time delay passage 2 and long delay passage 3, wherein:
There is not time-delay passage 1; Be used for color data with video reception module S1 output; Be specially the color data of storing in the color data input receiving register group 302 of video reception module S1; Be forwarded among the vision signal sending module S3 through straight-through control module 308, be specially in the color signal transmitter register group 306 of vision signal sending module S3, transmit with the nothing time-delay of carrying out vision signal;
Short time delay passage 2: be used for color data with video reception module S1 output; Being specially the color data of storing in the color data input receiving register group 302 of video reception module S1 is forwarded among the vision signal sending module S3 through two FIFO and control module; Be specially in the color signal transmitter register group 306 of vision signal sending module S3, transmit with the short time delay that carries out vision signal;
Long delay passage 3; Be used for color data with video reception module S1 output; Being specially the color data of storing in the color data input receiving register group 302 of video reception module S1 is forwarded among the vision signal sending module S3 through two FIFO, control module and external memory spaces; Be specially in the color signal transmitter register group 306 of vision signal sending module S3, transmit with the long delay that carries out vision signal.
Particularly, for short time delay passage 2, for the short time delay of realizing color data is transmitted, the color data that at first will from color data input receiving register group 302, be stored by DATA2FIFO control module 309 is written among the input metadata cache FIFO310; The content that to import among the metadata cache FIFO310 of FIFO2FIFO control module 311 is read then, is written among the dateout buffer memory FIFO312; Last FIFO2DATA control module 313 is written to the content among the dateout buffer memory FIFO312 in the color data output registers group 306 in the vision signal sending module (S3); The moment of FIFO2DATA control module 313 reading of data receives the control of the synchronous sequence that the vision signal sending module produced; That is to say; Satisfying under the condition of synchronous sequence, FIFO2DATA control module 313 just is read into the content among the dateout buffer memory FIFO312 in the color data output registers group 306.
Particularly; For long delay passage 3; For the long delay of realizing color data is transmitted; The color data that at first will from color data input receiving register group 302, be stored by DATA2FIFO control module 309 is written among the input metadata cache FIFO310, and this data forwarding process is identical with short time delay passage 2; The content that to import among the metadata cache FIFO310 of FIFO2AXI control module 314 is read then; In the description of equipment application scenarios Fig. 1; Be to store video data into external memory space such as in the DDR memory; The actual position that can store needs according to user's needs into, FIFO2AXI control module 314 initiates to write the request in DDR controller data space to the AXI system bus in this embodiment, after request obtains agreeing; FIFO2AXI control module 314 sends to the AXI system bus with color data successively, by the DDR controller that connects on the AXI system bus color data is deposited among the external memory space DDR; The request that AXI2FIFO control module 315 reads the DDR memory space to the initiation of AXI system bus; If exterior storage medium allows reading of data; The request of reading will obtain agreeing; After request obtained agreeing, AXI2FIFO control module 315 was read data successively from the AXI system bus, write then among the dateout buffer memory FIFO312; At last; FIFO2DATA control module 313 is written to the content among the dateout buffer memory FIFO312 in the color data output registers group 306 of vision signal sending module S3; Identical with short time delay passage 2, the moment of FIFO2DATA control module 313 reading of data also receives the control of the synchronous sequence that the vision signal sending module produced.By on can find out that DATA2FIFO control module 309 is that long delay passage 3 is shared with short time delay passage 2 with FIFO2DATA control module 313.
Particularly; The address read write method sketch map of long delay passage as shown in Figure 3; Data read-write control method comprises in the long delay passage 3: FIFO2AXI control module 314 begins to write video data from the address of video image 1 all the time, and the address that AXI2FIFO control module 315 reads then is to confirm according to the size of weak point/long delay register 307 and frame buffer space sized registers 613, if frame buffer space sized registers 613 is set to the N frame; It is the memory space that has the N frame on the DDR memory at least; This equipment has used the memory space of N frame to be used for the access of video image, and weak point/long delay register is set to M, and M<N is arranged; Then with the back M frame of DDR memory; Just the N-M+1 frame is made as invalid frame to the N frame, and such as blank frame, pre-stored image frame etc., the address of initially reading of AXI2FIFO control module 315 is (N-M+1); FIFO2AXI control module 314 and AXI2FIFO control module 315 are by the circulate storage and reading of frame 1 the mode of adding up separately then.The preceding M two field picture that read of AXI2FIFO control module 315 is the image that prestores like this, and real video input signals has then been delayed time and just sent behind the M frame.
Frame buffer space sized registers 316 is used at long delay passage 3, reads the boundary limitation of address when write address boundary limitation when FIFO2AXI control module 314 is initiated the write address request and AXI2FIFO control module 315 are initiated to read Address requests.Two control modules are consistent for the position that can write and can read.
Said vision signal sending module further comprises: synchronizing signal generation module 305, color data output registers group 306, wherein,
Synchronizing signal generation module 305 is used for the video synchronizing information of storing according to the video reception module, the information of channel register 301 and the information of weak point/long delay register 307, produces the synchronous sequence that does not have/have time-delay;
Color data output registers group 306 is used for the temporary color data that receives from triple channel forwarding processing module.
The method that synchronizing signal generation module 305 produces synchronous sequence is:
Synchronous sequence production method when channel register is set to not have time-delay passage 1: for there not being time-delay passage 1; Color data is from being input to output through color data input registers group 302 and color data output registers group 306; Move after two clock cycle of generation; Therefore, synchronizing signal generation module 305 produces two clock sync signals of skew.Two clock signals are quite short, and can be considered does not have time-delay.
Synchronous sequence production method when channel register is set to short time delay passage 2: for short time delay passage 2; Color data is through two-stage FIFO (input metadata cache FIFO310 and dateout buffer memory FIFO312); The degree of depth of FIFO is set to the twice of the capable resolution of HD video; Be 1920*2=3840,, can produce the delay of 4 row at most therefore for high-definition video signal.If weak point/long delay register is provided with 4, show it is short time delay 4 row, then synchronizing signal generation module 305 produces the synchronous sequence that postpones 4 row according to the synchronous signal information of statistics.
Synchronous sequence production method when channel register is set to long delay passage 3: for long delay passage 3; Synchronizing signal generation module 305 directly produces sequential according to the statistics video synchronizing information of the incoming video signal of synchronizing signal registers group 304 storages; Cooperate the data among the dateout buffer memory FIFO312 to send, the control of its long delay is that storage and the read operation through FIFO2AXI control module 314 and AXI2FIFO control module 315 produces.
The present invention also proposes a kind of method that vision signal is carried out the triple channel forwarding, and the flow chart of this method is as shown in Figure 4.Three passages shown in Fig. 4 are respectively not have time-delay passage 1, short time delay passage 2 and long delay passage 3.
As shown in Figure 4, proposed by the inventionly a kind ofly vision signal is carried out the method that triple channel transmits may further comprise the steps:
Step 1, receiving video signals;
Step 2 extracts color data from said vision signal;
Step 3 selects a passage to transmit said color data for the requirement of time delay according to vision signal from three forwarding passages; Said three forwarding passages are respectively: do not have time-delay and transmit passage 1, short time delay forwarding passage 2 and long delay forwarding passage 3; As long as said nothing time-delay forwarding passage 1 has detected vision signal and has just transmitted this vision signal immediately; Said short time delay is transmitted passage 2 and is delayed time but the not too big forwarding passage of time-delay for producing, and the time of its maximum delay can change delay time through disposing weak point/long delay register by the degree of depth decision of inner buffer FIFO; Said long delay transmit passage 3 for producing time-delay but time-delay can be bigger the forwarding passage; The time of its maximum delay can change delay time through disposing weak point/long delay register by the decision that is provided with of the memory size of outside and weak point/long delay register;
Step 4 produces synchronous sequence according to selected forwarding passage;
Step 5 combines synchronous sequence that is produced and the color data that from vision signal, extracts, and forms new vision signal;
Step 6, the vision signal that this is new forwards.
Above-described specific embodiment; The object of the invention, technical scheme and beneficial effect have been carried out further explain, and institute it should be understood that the above is merely specific embodiment of the present invention; Be not limited to the present invention; All within spirit of the present invention and principle, any modification of being made, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.