Background technology
In field of video processing, some signals are used to deal with data.For example, described frame rate is the frame of per second institute's projection or demonstration or the number of image.No matter frame rate is the isochronous audio and the picture of film, TV or video if being used for.The frame rate of 24,25 and 30 frames of per second is comparatively common.In computer video stream, described frame rate is described the playback rate of AVI and QuickTime film.The described video playback speed of one AVI and QuickTime film is directly relevant with the fluency of being felt of its broadcast.The actual frame rate of a plurality of factor affecting one computers, and modern PC is not having under the situation of acceleration per second only can play 10-15 frame.
In graphic process unit, also there are the various clock signals that are used for processing video data.Described signal comprises that one is used for department of computer science unify system clock, a reference clock and a pixel clock as the reference of other video clock signal and operation of graphic process unit, its horizontal line with video is divided into pixel makes that the frequency of described pixel clock is high more, and the pixel that will occur on display is many more.
One of major function of graphics process is for to convert an incoming video signal with a special frames speed and resolution to an outputting video signal with different frame rates and video resolution.When being the integral multiple of described input frame speed, described frame rate of display will can not go wrong.Yet this generally the time when not being in, frame inserts or frame deletion causes motion artifacts with the mismatch of compensation along with the time.
Prior art has attempted to solve this problem by described frame rate is locked onto described input clock.If described demonstration has the resolution identical with input, can finish frame lock by using described input clock or a plurality of input clock so.Yet, if described input clock instability uses described input clock problematic so.Particularly, any shake will propagate into display.Equally, when described display resolution was different from described input resolution, using clock was not unique selection.
Therefore, needed is a kind of method and system of pixel clock that is locked into the input frame speed of a vision signal that is used to produce.
Embodiment
The present invention is directed to a kind of method and system of pixel clock that is locked into the input frame speed of a vision signal that is used to produce.The present invention is especially favourable, because it utilizes a high stable reference clock that produces a clock and a sigma-delta phase-locked loop such as crystal to think that the input frame speed coupling produces display pixel clock.As shown in Figure 1, one first embodiment of device 100 comprises a phase-locked loop 102, a sigma-delta modulator 104 and one frame rate/pixel rate generator 106.
Described phase-locked loop 102 has one first input, one second input and an output.Described phase-locked loop 102 is a general type, and is one to have one and constantly regulated with the electronic circuit with the oscillator of (and the therefore locked) frequency input signal that is complementary.Described phase-locked loop 102 produces one and has more low noise and the more signal of high stability.Described phase-locked loop 102 is preferably an analog PLL.In an alternate embodiment, described phase-locked loop 102 is the part of an integrated circuit.First input of described phase-locked loop 102 preferably is couple to holding wire 110 to receive a reference clock signal.For example, described reference clock signal can be a high stable reference clock, as the known crystal clocking of those skilled in the art.Second input of described phase-locked loop 102 is couple to the output of sigma-delta modulator 104 with the feedback signal on the received signal line 118.Described phase-locked loop 102 also has one and is couple to the output of described sigma-delta modulator 104 by holding wire 116.The output of described phase-locked loop 102 is couple to holding wire 120 so that the described pixel clock that is locked into described input frame speed to be provided.
Described sigma-delta modulator 104 has one first input, one second input and an output.Described sigma-delta modulator 104 is operating as an oscillator.The output of described sigma-delta modulator 104 is provided on the holding wire 118 as an input to described phase-locked loop 102.First input of described sigma-delta modulator 104 is couple to holding wire 112 to receive the output of described frame rate/pixel rate generator 106.Another input of described sigma-delta modulator 104 is couple to holding wire 116 to receive a load divider signal.
Described frame rate/pixel rate generator 106 is couple to line 110 to receive a reference clock signal, is couple to line 124 receiving a frame rate signal, and is couple to line 122 to receive a pixel resolution signal.Use these input signals, described frame rate/pixel rate generator 106 produces the signal of the ratio of an expression display pixel clock and reference clock.The output of described frame rate/pixel rate generator 106 is couple to holding wire 112 and it is provided to described sigma-delta modulator 104 as input.
Referring now to Fig. 2,, shows frame rate/pixel rate generator 106 in greater detail.In first embodiment, described frame rate/pixel rate generator 106 further comprises a counter 202 and a multiplier 204.The clock that preferably will be input to described counter 202 is couple to holding wire 110 to receive described reference clock signal.Therefore, described counter 202 every experience its reference clock signals of one-period increase progressively.The input that resets of described counter 202 is couple to holding wire 124 to receive described frame rate signal.For example, described frame rate signal is conventional VSYNC signal, and it is provided to a vision signal is divided into frame.Whenever described frame rate signal is determined, counter 202 resets and begins up to next frame.This has guaranteed that the arbitrary signal by 106 outputs of frame rate/pixel rate generator will be many times of reference clock signal, and with the beginning of described frame or finish synchronously.The output of described counter 202 is couple to the input of described multiplier 204.Another input of described multiplier 204 is couple to line 122 to receive a pixel resolution signal.Pixel resolution signal among embodiment preferably includes the indication of the pixel wide and the pixels tall of described video data.Described multiplier 204 is preferably determined described ratio by the number of reference clock in use indication one frame and with its output divided by the counter 202 of display width and demonstration height.Then, described value or ratio are exported on holding wire 112 by multiplier 204 and in order to control described sigma-delta modulator 104 and described phase-locked loop 102.
Referring now to Fig. 3,, shown to be used to produce one second embodiment of device 300 of pixel clock that is locked into the input frame speed of a vision signal.For understand easily and convenient for the purpose of, for assembly like the above component class of having described, use similar terms and reference number among Fig. 3.As shown in Figure 3, second embodiment of described device 300 preferably comprises: a phase-locked loop 102, a sigma-delta modulator 104, a counter 302, clock multiplication calculator (clock multiplier calculator) 304, one average filter 306 and a frequency limitation controller 308.
More than describe a phase-locked loop 102 and a sigma-delta modulator 104 in detail referring to Fig. 1.For second embodiment of Fig. 3, it has similar coupling and function, so no longer be repeated in this description at this.
Described counter 302 is a general type, and in order to produce a reference clock count signal.The number of the reference clock cycle in this signal indication one frame.The clock input of described counter 302 is couple to holding wire 110 to receive described reference clock signal.Therefore, described counter 302 every experience its reference clock signals of one-period increase progressively once.The input that resets of described counter 302 is couple to a holding wire 310 to receive described frame rate signal.For example, described frame rate signal is conventional VSYNC signal, and it is provided to a vision signal is divided into frame.Whenever described VSYNC signal is determined, counter 302 resets and begins up to next frame.Described counter 302 is output as described reference clock count signal.
Described multiplied clock calculator 304 has a plurality of inputs and an output.The clock input of described multiplied clock calculator 304 is couple to holding wire 110 to receive described reference clock signal.First data input of described multiplied clock calculator 304 is couple to the output of counter 302 to receive the reference clock count signal.Two residue inputs of described multiplied clock calculator 304 are coupled to receive a demonstration altitude signal and a display width signal.In an one exemplary embodiment, described demonstration height and display width signal are produced by the configuration register (not shown).The described known parameters that shows that height and display width are user-programmable in the configuration register of described device.The described multiplied clock calculator 304 preferred clock multiplication signals (clock multiplication signal) that produce.The ratio of described multiplied clock signal indication display pixel clock and reference clock.In an one exemplary embodiment, described multiplied clock signal equals described reference clock count signal divided by described display pixel width and described display pixel height.The load input of described multiplied clock calculator 304 is couple to holding wire 310 to receive described VSYNC signal, makes the value of described counter 302 be written into described multiplied clock calculator 304 at each frame end place.At each reference clock signal place, described multiplied clock calculator 304 output reference clock count signals are divided by the value of the display pixel width and the display pixel height of present load.Multiplied clock calculator 304 is output as described multiplied clock signal.
Average filter 306 has one and is couple to the output of described multiplied clock calculator 304 to receive the input of described multiplied clock signal.The value of described average filter 306 n past frames of storage (past frame), and it is averaged together to produce the multiplied clock signal once filtering.In one embodiment, described average filter 306 comprises the circular buffer of n multiplied clock signal value of a storage, and one in the described value is used for each past frame.In one embodiment, the value of last four frames is averaged.In another embodiment, the value of 40 past frames is averaged.The present invention advantageously asks the mean value of the value of the multiplied clock signal on a plurality of frames to quantize caused error to guarantee its stability and cancellation by shake and sampling.The clock input of described average filter 306 is couple to reference clock signal, makes to produce the described mean value of signal in the past according to each reference clock signal.The load coupled that is input to average filter 306 is arrived line 310 to receive VSYNC.This is at described frame end place's load one clock multiplication signal.In an one exemplary embodiment, described average filter 306 can comprise that a circular buffer loads to the next position in the described circular buffer with the new value with the multiplied clock signal at described frame end place.The output of average filter 306 provides the multiplied clock signal through filtering.
Frequency limitation controller 308 has a plurality of inputs and an output.Described frequency limitation controller 308 is in order to the value through the multiplied clock signal of filtering output on the limiting signal line 112 and that send to sigma-delta modulator 104.The present invention uses the minimum and the maximum multiplication value that are input to described frequency limitation controller 308 advantageously to limit described read clock variation under the situation that does not have stabilization signal.Described frequency limitation controller 308 have one be couple to average filter 306 output first the input.The second and the 3rd input of described frequency limitation controller 308 is coupled to receive a maximum multiplication signal and a minimum multiplication signal respectively.These similar signals of height and width that show can be stored in the configuration register (not shown).Value in the described minimum and maximum doubling register is limited in the described digital dock multiplier signal that outputs to sigma-delta modulator 104 on the holding wire 112.The clock input of described frequency limitation controller 308 is couple to holding wire 110 to receive described reference clock signal.
The present invention also comprises a kind of method of pixel clock that is locked into the input frame speed of a vision signal that is used to produce.Described method preferably comprises following steps:
1) use described reference clock to measure described input perpendicular separation to produce a reference clock counting as the some reference clock vibrations between the frame.
2) use following formula to calculate the ratio of display pixel clock and reference clock: multiplied clock=reference clock counting ÷ display width+demonstration height.Described height and the display width of showing is the known parameters that is programmed in the configuration register of described device.
3) ask the mean value of the ratio of a plurality of perpendicular separations to quantize caused error by shake and sampling to guarantee its stability and cancellation.
4) under the situation that does not have stabilization signal, ratio that described warp is average or read clock change the value that is restricted to from minimum and maximum register, thereby limit described digital dock multiplier.
5) with described average ratio (it is the high-precision numeral of an expression obatained score) through restriction with accomplishing the input of a sigma-delta oscillator and simulaed phase locked loop, to produce a pixel clock that is locked into the described input frame speed of a vision signal.
Although described the present invention with reference to some preferred embodiment, those skilled in the art will realize that to provide various modifications.For example, principle of the present invention is extensible and be applied to other clock system.The invention provides variation and modification to described preferred embodiment.