The present invention provides a technique for appropriately adjusting a dot clock for video signals by a simple process. A process of adjusting a phase of the dot clock first obtains two image data by two dot clocks having different phases, carries out a certain operation for the two image data to calculate a phase-related index representing the relative phase of the dot clock to a video signal with respect to the two image data, and determines a delay that gives a desirable phase to the dot clock based on these phase-related indexes. A first process of adjusting the frequency of the dot clock first obtains image data by a dot clock that has been generated with a provisional factor, calculates a length of an effective signal area on one line of the image data, and determines a desirable factor based on the ratio of a known length to the measured length of the effective signal area. A second process of adjusting the frequency of the dot clock extracts a beat component included in the sampled image data to determine the difference between a provisional factor and a desirable factor.
|
7. A method of adjusting frequency of a dot clock signal for a video signal, said method comprising the steps of:
(a) multiplying a frequency of a horizontal synchronizing signal of said video signal by a first factor to generate a first dot clock signal; (b) sampling said video signal by said first dot clock signal to obtain image data; (c) obtaining a number of beats over one line of said image data; (d) correcting said first factor with said number of beats, thereby obtaining a desirable second factor; and (e) multiplying the frequency of said horizontal synchronizing signal by said second factor to generate a second dot clock signal that can be used to sample image data without beats, wherein said step (c) comprises the steps of: (i) transforming said image data to transformed image data using a symmetrical monotone transformation function that has a symmetrical output level with respect to a predetermined input level; and (ii) determining said number of beats based on said transformed image data. 14. A method of adjusting frequency of a dot clock signal for a video signal, said method comprising the steps of:
(a) multiplying a frequency of a horizontal synchronizing signal of said video signal by a first factor to generate a first dot clock signal; (b) sampling said video signal by said first dot clock signal to obtain image data; (c) obtaining a number of beats over one line of said image data; (d) correcting said first factor with said number of beats, thereby obtaining a desirable second factor; and (e) multiplying the frequency of said horizontal synchronizing signal by said second factor to generate a second dot clock signal that can be used to sample image data without beats, wherein said step (b) comprises the step of obtaining first image data and second image data by two kinds of said first dot clock signal having a first phase and a second phase that are different from each other; and wherein said step (c) comprising the step of carrying out a correlation analysis on said first image data and said second image data to determine said number of beats. 26. A method of regenerating a dot clock in a video signal display apparatus, said video signal display apparatus comprising: sampling means for sampling a video signal; clock generation means for multiplying a horizontal synchronizing signal by a predetermined frequency division factor to generate a dot clock; driving means for processing an output of said sampling means; a display device for displaying an image in response to an output of said driving means; display timing means for controlling a display timing of said display device; memory means for storing one line of data output from said sampling means; write timing means for outputting a write enable signal to said memory means; and control means for outputting a write arm signal to said write timing means to cause said memory means to store data of a specific line, reading out said data of the specific line stored in said memory means, carrying out a prescribed operation, and setting a factor in said clock generation means based on the result of said prescribed operation, said method comprising the steps of:
processing said data read out from said memory means with a high-pass filter; carrying out a non-linear operation and subsequently performing fast Fourier transform on the data after the high-pass filter processing; obtaining a peak in the result of said fast Fourier transform to determine a frequency of a beat component; and setting a factor in said clock generation means so that a frequency of said beat component becomes equal to zero.
27. A method of regenerating a dot clock in a video signal display apparatus, said video signal display apparatus comprising: sampling means for sampling a video signal; clock generation means for multiplying a horizontal synchronizing signal by a predetermined frequency division value to generate a dot clock; driving means for processing an output of said sampling means; a display device for displaying an image in response to an output of said driving means; display timing means for controlling a display timing of said display device; memory means for storing one line of data output from said sampling means; write timing means for outputting a write enable signal to said memory means; and control means for outputting a write arm signal to said write timing means to cause said memory means to store data of a specific line, reading out said data of the specific line stored in said memory means, carrying out a prescribed operation, and setting a factor in said clock generation means based on the result of said prescribed operation, said method comprising the steps of:
processing the data read out from said memory means with a high-pass filter; carrying out a non-linear operation on the data after said high-pass filter processing and subsequently performing an operation with a plurality of comb filters; determining a frequency of a beat component based on a combination of integral values of the result of said operation with said plurality of comb filters; and setting a factor in said clock generation means so that a frequency of said beat component becomes equal to zero.
29. A method of regenerating a dot clock in a video signal display apparatus, said video signal display apparatus comprising: a PLL circuit for multiplying a horizontal synchronizing signal by a predetermined frequency division factor to generate a dot clock; phase control means for regulating a phase of said dot clock; driving means for processing an output of said sampling means; a display device for displaying an image in response to an output of said driving means; display timing means for controlling a display timing of said display device; memory means for storing one line of data output from said sampling means; write timing means for outputting a write enable signal to said memory means; and control means for outputting a write arm signal to said write timing means to cause said memory means to store data of a specific line, reading out said data of the specific line stored in said memory means, carrying out a prescribed operation, and setting a factor in said clock generation means based on the result of said prescribed operation, said method comprising the steps of:
setting a provisional factor in said PLL circuit, writing data into said memory means, and subsequently reading out first data from said memory means; changing a phase control value in said phase control means, writing data into said memory means, and subsequently reading out second data from said memory means; carrying out a correlation analysis on said first data and said second data; carrying out a factor determining operation for determining a total number of pixels corresponding to one line of said video signal based on the result of said correlation analysis; and setting said total number of pixels as the frequency division factor in said clock generation means.
1. A method of adjusting a phase of a dot clock signal for a video signal, said method comprising the steps of:
(a) sampling said video signal by a plurality of dot clock signals that are expected to have different phase relationships to said video signal, thereby obtaining plural sets of image data; (b) carrying out a prescribed operation for each set of image data to obtain a phase-related representing the phase relationship of said each set of image data, and determining a desirable phase for said dot clock signal based on said phase-related indexes of said plural sets of image data; and (c) applying an optimum delay to said dot clock signal to have the desirable phase; wherein said step (a) comprises the steps of: multiplying a frequency of a horizontal synchronizing signal of said video signal by a first factor to generate a first dot clock signal, said first factor being different from an appropriate second factor that is to be used for multiplying the frequency of said horizontal synchronizing signal to generate said dot clock signal having the desirable phase, said first dot signal including a plurality of signal phases which can be considered as said plurality of dot signals; and sampling said video signal by said first dot clock signal to obtain first image data on a specific line of the screen; and wherein said step (b) comprises the steps of: dividing said first image data into a plurality of first image data blocks; calculating values of said function representing sharpness of said plurality of first image data blocks as said phase-related indexes of said plurality of first image data blocks, respectively; determining the extreme of said values of said function with respect to said plurality of first image data blocks; and selecting a delay corresponding to a specific first image data block related to the extreme of said values of said function as the optimum delay to attain the desirable phase. 25. A dot clock regeneration circuit for regenerating a dot clock signal to be supplied to a sampling circuit for sampling a video signal, said dot clock regeneration circuit comprising:
a PLL circuit for multiplying a frequency of a horizontal synchronizing signal of said video signal by a predetermined factor to generate a reference clock signal; a delay circuit for delaying said reference clock signal by a predetermined time to generate said dot clock signal; memory means for storing at least one line of image data supplied from said sampling circuit; and delay time setting means for controlling a writing process of said image data into said memory means, reading one line of said image data stored in said memory means to carry out a prescribed operation, and setting a delay time in said delay circuit based on the result of said prescribed operation to attain a desirable phase relationship between said video signal and said dot clock signal; addition means for increasing or decreasing said predetermined factor by a preset value to give an offset, wherein said delay time setting means carries out said prescribed operation for each value of the increased or decreased factor and comprises: means for carrying out said prescribed operation on first image data and second image data to determine an optimum delay time to give an optimum phase to said dot clock signal, said first image data being obtained on the basis of a first factor set in said PLL circuit by said addition means, said second image data being obtained on the basis of a second factor set in said PLL circuit; and means for carrying out an interpolating operation on said first image data and said second image data with respect to a pixel position which has an image data value no more than a specified level in said first image data; wherein said prescribed operation is carried out on a plurality of blocks which is divided from said one line of image data by a divisional number, said divisional number being equal to an integral multiple of a quotient obtained by dividing a difference between said first factor and said second factor by the product of a frequency of said dot clock signal and a delay step in said delay circuit. 2. A method in accordance with
3. A method in accordance with
said optimum delay can be adjusted by a predetermined delay step in said step (c); and said step (b) comprises the step of: dividing said first image data over an entirety of said specific line by a divisional number into said plurality of first image data blocks, said divisional number being equal to an integral multiple of a quotient obtained by dividing a difference between said first and second factors by a product of a frequency of said first dot clock signal and the delay step.
4. A method in accordance with
5. A method in accordance with
multiplying the frequency of said horizontal synchronizing signal of said video signal by said second factor to generate a second dot clock signal; and sampling said video signal by said second dot clock signal to obtain second image data on the specific line of the screen; and wherein said step (b) further comprises the steps of: dividing said second image data into a plurality of second image data blocks in the same manner as the division of said first image data; calculating values of said function representing sharpness of said plurality of second image data blocks; and dividing said values of said function for said plurality of first image data blocks by said values of said function for said plurality of second image data blocks, respectively, and setting respective quotients obtained by said dividing as said phase-related indexes corresponding to said plurality of first image data blocks. 6. A method in accordance with
when said plurality of first image data blocks includes a block whose value of said function is less than a threshold value, carrying out an interpolation on the value of said function for said block with respect to said plurality of first image data blocks and said plurality of second image data blocks prior to said dividing said values of said function.
8. A method in accordance with
9. A method in accordance with
10. A method in accordance with
carrying out a filtering process with a high-pass filter prior to said transformation with said transformation function; and wherein said step (ii) comprises the step of: carrying out a filtering process with a low-pass filter for said transformed image data prior to said determination of said number of beats. 11. A method in accordance with
carrying out a frequency analysis on said transformed image data to determine said number of beats.
12. A method in accordance with
13. A method in accordance with
15. A method in accordance with
16. A method in accordance with
(i) allocating a first value to pixel positions having a relatively large difference between said first image data and said second image data while allocating a second value to pixel positions having a relatively small difference between said first image data and said second image data, thereby generating binary data consisting of said first value and said second value; and (ii) processing said binary data to determine said number of beats.
17. A method in accordance with
generating at least one of first binary data, second binary data, and third binary data, wherein said first binary data is to be generated by allocating said first value to pixel positions having a relatively large difference between said first image data and forward-shifted second image data obtained by shifting a pixel position of said second image data forward by one pixel and by allocating said second value to pixel positions having a relatively small difference between said first image data and said forward-shifted second image data; said second binary data is to be generated by allocating said first value to pixel positions having a relatively large difference between said first image data and said second image data and allocating said second value to pixel positions having a relatively small difference between said first image data and said second image data; and said third binary data is to be generated by allocating said first value to pixel positions having a relatively large difference between said first image data and backward-shifted second image data obtained by shifting a pixel position of said second image data backward by one pixel, and by allocating said second value to pixel positions having a relatively small difference between said first image data and said backward-shifted second image data; and wherein said step (ii) comprises the step of determining said number of beats using at least one of said first through third binary data. 18. A method in accordance with
providing a first pair of binary data including said first and second binary data and a second pair of binary data including said second and third binary data; executing a toggle operation, with respect to each of said first and second pairs of binary data, using a rise of one binary data of each pair and a rise of the other of each pair to generate two toggled binary data for said first and second pairs of binary data; selecting one of said two toggled binary data which has an average closer to 0.5; and measuring a number of pulses included in one line of said selected toggled binary data, thereby determining said number of beats.
19. A method in accordance with
20. A method in accordance with
selecting at least one of said first through third binary data, and deleting an interval between a rise and a fall of said selected binary data that is less than a predetermined value, thereby generating modified binary data; selecting at lease least one modified binary data which has an average close to 0.5; and measuring a number of pulses included in one line of said selected modified binary data, thereby determining said number of beats.
21. A method in accordance with
carrying out a one-dimensional expansion process on one line of said selected binary data, for expanding one of said first and second values by a predetermined width; and carrying out a one-dimensional contraction process on said binary data after said one-dimensional expansion process, for contracting said one of said first and seconds value by said predetermined width.
22. A method in accordance with
23. A method in accordance with
24. A method in accordance with
28. A method in accordance with
30. A method in accordance with
31. A method in accordance with
32. A method in accordance with
calculating a mean distance between adjoining variation points of the resulting data of said correlation operation; dividing said provisional factor set in said PLL circuit by twice the mean distance and rounding the result of said division to determine a number of beats included in said one line; and calculating the total number of pixels corresponding to said one line from either of a sum of and a difference between said provisional factor set in said PLL circuit and said number of beats.
33. A method in accordance with
carrying out a first operation in which said second data whose address is less than an address of said first data by one is used, a second operation in which said second data whose address is equal to the address of said first data is used, and a third operation in which said second data whose address is greater than the address of said first data by one is used; inverting a virtual register based on variation points of the result of said first operation and the result of said second operation to generate said third data; inverting another virtual register based on variation points of the result of said second operation and the result of said third operation to generate said fourth data; selecting one of said third and fourth data which has a mean value closer to half a maximum of said third data and said fourth data, as fifth data; and wherein said factor determining operation includes calculating the total number of pixels corresponding to said one line of said video signal from a mean distance between variation points of said fifth data and said provisional factor set in said PLL circuit.
|
This application is a Division of application Ser. No 09/166,421 filed on Oct. 5, 1998 now U.S. Pat. No. 6,304,296, which is a division of application Ser. No. 08/804,06 filed Feb. 21, 1997, now U.S. Pat. No. 6,115,075.
1. Field of the Invention
The present invention relates to a technique of adjusting a dot clock signal for processing a video signal. Especially the invention pertains to a technique of adjusting the phase of a dot clock signal as well as to a technique of adjusting the frequency of the dot clock signal. The video signal in the present invention denotes an image signal supplied from an image signal output device such as a personal computer.
2. Description of the Related Art
The PLL circuit 7 and the delay circuit 10 constitute a dot clock regeneration circuit for regenerating a dot clock signal (dot clock) suitable for the processing of the analog video signal 101, from the horizontal synchronizing signal 102. The factor Nd in the PLL circuit 7 and the delay φ in the delay circuit 10 are adjustable parameters in generating the dot clock 201. In other words, it is desirable to set appropriate values to both the delay φ and the factor Nd, in order to regenerate the dot clock signal suitable for the analog video signal 101. The delay φ of the dot clock signal relates to the phase of the dot clock signal, whereas the factor Nd relates to the frequency of the dot clock signal. There are some problems regarding the adjustment of the delay φ (that is, the adjustment of the phase) and the adjustment of the factor Nd (that is, the adjustment of the frequency) as described below.
The analog video signal 101 output from a video image output apparatus, such as a personal computer, was generated in synchronism with an internal video clock of the video image output apparatus. The signal level thus varies at the cycles of the internal video clock. A dot clock (also referred to a sampling clock) having the same frequency as that of the internal video clock of the video image output apparatus is required in order to carry out appropriate signal processing for displaying a video image corresponding to the analog video signal 101 on the display device 3 or the signal processing for writing the analog video signal 101 into a memory. In the computer system, such as a personal computer, however, no video clock is output to an output terminal of video signals. In the conventional system shown in
FIGS. 41(a)-41(c) are timing charts showing the relationship between the video signal 101 and the dot clock 201. The video signal 101 has a stable range 121 having image information proper to the video signal 101 and a transient range 122 including ringing and rounding generated by the effects of an output circuit of the video image output apparatus and a connection cable. When a dot clock rising in the stable range 121 such as a dot clock 201A shown in FIG. 41(b) is used, a normal video image is displayed on the display device 3. When a dot clock rising in the transient range 122 such as a dot clock 201B shown in FIG. 41(c) is used, on the other hand, the A-D converter 1 samples image information that is not proper to the video signal 101, and the resulting video image displayed on the display device 3 accordingly has undesirable noises or poor sharpness.
FIGS. 42(a)-42(c) are timing charts showing the relationship between the horizontal synchronizing signal 102, the reference clock 200, and the dot clock 201. The reference clock 200 output from the PLL circuit 7 is in phase with the horizontal synchronizing signal 102. Since the relationship between the phase of the horizontal synchronizing signal 102 and that of the video signal 101 is not specifically defined, the phase at a rise of the reference clock 200 may deviate from the phase of the video signal 101. A rise of the dot clock 201 may accordingly exist in the transient range 122 (FIG. 41(a)).
In the conventional system, a user manually adjusts the delay time φ (that is, the phase) of the dot clock 201 shown in FIG. 42(c) to an optimum state while checking a video image on the display device 3 so that the displayed video image has no noise and sufficient sharpness. This manual operation is, however, rather troublesome, and little understanding of the requirement for the adjustment may lead to some misunderstanding that the display device has poor performance or even malfunctions.
A method of automatically adjusting the phase of the dot clock 201 is, for example, disclosed in JAPANESE PATENT LAID-OPEN GAZETTE No. 4-276791. This method comprises the steps of: sampling two sets of image data in synchronism with dot clocks having different phases; storing them into two different memories; and determining an optimum phase of the dot clock so that the two sets of image data read out of the memories coincide with each other. When the video signal includes ringing and rounding and has a narrow stable range, only a little shift of the phase causes a difference in the resulting image data. Potential noise also slightly changes the image data. The two sets of image data obtained with the dot clocks with different phases thus hardly coincide with each other actually, and it is rather difficult to determine the optimum phase of the dot clock. This method also requires two high-speed line memories to process high-speed video signals, thereby undesirably raising the equipment cost.
The adjustment of the factor Nd in the PLL circuit 7 (FIG. 40), that is, the adjustment of the frequency of the dot clock, also has the following problem.
In personal computers, there are several standard sizes for the effective signal area 301. Typical standards include VGA (640 pixels (dots) in the horizontal direction×480 pixels in the vertical direction), SVGA (800 pixels×600 pixels), XGA (1024 pixels×768 pixels), and SXGA (1280 pixels×1024 pixels). The specific standard applied to the video signal can be identified from the frequencies of the horizontal synchronizing signal and the vertical synchronizing signal of the video signal.
These standard sizes represent the number of pixels included in the effective signal area 301 of FIG. 43 and do not define the total number of pixels in one scanning line including both the blanking area 302 and the effective signal area 301. A variety of arbitrary values are actually used as the total number of pixels for one line. While the number of pixels in the effective signal area 301 can be determined from the synchronizing signals, the total number of pixels for one line is unknown, and therefore the optimum factor Nd to be set in the PLL circuit is unknown.
FIGS. 44(a-1)-44(a-3) and FIGS. 44(b-1)-44(b-3) are timing charts showing the relationship between the analog video signal 101, the dot clock 201, and the digital video signal 110. The digital video signal 110 is shown in the analog form for the clarity of explanation. FIGS. 44(a-1) through 44(a-3) show the case in which the factor Nd in the PLL circuit 7 is equal to a frequency division ratio used for generating the horizontal synchronizing signal from the video clock in the video image output apparatus that generates the video signal 101. In this case, the phase of the dot clock 201 relative to the variation points of the video signal 101 is fixed. The resulting digital video signal 110 appropriately reproduces the video signal 101 and enables a proper video image to be displayed on the display device 3.
If the factor Nd in the PLL circuit 7 is different from the frequency division ratio in the video image output apparatus, on the other hand, the phase of the dot clock 201 relative to the video signal 101 varies with respect to each position in the horizontal direction as shown in FIGS. 44(b-1) through 44(b-3). In this case, the amplitude of the digital video signal 110 varies according to the pixel position, and thus shows "beats". A resulting video image displayed on the display device 3 shows vertical lines due to the small amplitude portion of the beats and may suffer from a loss of some image information.
In the conventional video image display apparatus, appropriate factors Nd for the commercially-available popular personal computers may be registered in advance. The type of the video image output apparatus is identified according to the frequencies and the polarities of the horizontal synchronizing signal 102 and the vertical synchronizing signal 103. The optimum factor Nd for the video image output apparatus is then selected from the preset alternatives and set in the PLL circuit 7. In case that the appropriate factor Nd has not been registered for a specific video image output apparatus, the user has to manually set the optimum factor Nd while monitoring the screen of the display device.
Known methods for automatically determining the unknown factor Nd are, for example, disclosed in JAPANESE PATENT LAID-OPEN GAZETTE No. 3-295367 and No. 5-66752.
The method disclosed in JAPANESE PATENT LAID-OPEN GAZETTE No. 3-295367 stores the sampled video signals in a compressed form and checks whether or not the data are stable with respect to a plurality of inputs, thereby detecting a deviation of the factor.
This method only detects whether the factor is deviated or not, and cannot determine the degree of the deviation. This method would repeat the comparison while varying the factor and thus requires a relatively long time for determining the optimum factor. Further, if the phase of the dot clock (that is, the delay φ in the delay circuit 10) is improper, this conventional method cannot determine the optimum factor.
Another known method disclosed in JAPANESE PATENT LAID-OPEN GAZETTE No. 5-66752 detects a dot cycle from the edge component of the video signals: detects a scanning cycle from the horizontal synchronizing signal; and compares the dot cycle with the scanning cycle to determine the factor in the PLL circuit.
This method, however, requires another clock signal having a significantly higher frequency than that of the dot clock to measure the dot cycle. An extremely high dot clock frequency would be required for signals having a large total number of pixels. This method is accordingly not practical.
An object of the present invention is thus to provide a technique for appropriately adjusting a dot clock for video signals by a simple process.
The present invention is directed to a method of adjusting a phase of a dot clock signal for a video signal. The method comprises the steps of (a) sampling the video signal by a plurality of dot clock signals that are expected to have different phase relationships to the video signal, thereby obtaining plural sets of image data; (b) carrying out a prescribed operation for each set of image data to obtain a phase-related index representing the phase relationship of the each set of image data, and determining a desirable phase for the dot clock signal based on the phase-related indexes of the plural sets of image data; and (c) applying an optimum delay to the dot clock signal to have the desirable phase.
Since the phase-related index indicates whether the phase relationship between the dot clock signal and the video signal is appropriate or not, a desirable phase can be determined on the basis of the phase-related index. The delay of the dot clock can be adjusted so that the dot clock has the desirable phase accordingly.
According to one embodiment of the present invention, the step (a) comprises the step of: applying a plurality of different delays to a reference clock to generate the plurality of dot clock signals, and sampling the video signal by each dot clock signal to obtain the plural sets of image data respectively representing images at an identical position on a screen; and
wherein the step (b) comprises the steps of: (1) calculating values of a function representing sharpness of the plural sets of image data as the phase-related indexes corresponding to the plurality of delays; (2) determining an extreme of the values of the function against the plurality of delays; and (3) selecting a delay among the plurality of delays as the optimum delay to attain the desirable phase, the selected delay corresponding to the extreme of the values of the function.
Whether the phase relationship between the video signal and the dot clock signal is appropriate or not can be judged on the basis of sharpness of the image data to be sampled by the dot clock. Therefore, a value of a function representing sharpness of image data may be used as the phase-related index. The value of the function will become different for a plurality of dot clock signals which are generated by different delay times and which have different phase relationship with the video signal accordingly. Further, the value of the function should have a maximum at a specific delay corresponding to a desired phase relationship. An appropriate delay for attaining the desirable phase relationship can be obtained by determining a maximum of the value of the function.
In another preferred embodiment of the present invention, the step (a) comprises the steps of: multiplying a frequency of a horizontal synchronizing signal of the video signal by a first factor to generate a first dot clock signal, the first factor being different from an appropriate second factor that is to be used for multiplying the frequency of the horizontal synchronizing signal to generate the dot clock signal having the desirable phase, the first dot signal including a plurality of signal phases which can be considered as the plurality of dot signals; and sampling the video signal by the first dot clock signal to obtain first image data on a specific line of the screen. Further, the step (b) comprises the steps of: dividing the first image data into a plurality of first image data blocks; calculating values of the function representing sharpness of the plurality of first image data blocks as the phase-related indexes of the plurality of first image data blocks, respectively; determining the extreme of the values of the function with respect to the plurality of first image data blocks; and selecting a delay corresponding to a specific first image data block related to the extreme of the values of the function as the optimum delay to attain the desirable phase.
The image data sampled by the first dot clock signal will includes a portion whose phase matches with the video signal and other portion whose phase does not. A desirable delay can be determined from the value of the function representing sharpness for a plurality of image data blocks which are divided from the image data for at lease one line.
The present invention is also directed to an apparatus for adjusting a phase of a dot clock signal for a video signal. The apparatus comprises: sampling means for sampling the video signal by a plurality of dot clock signals that are expected to have different phase relationships to the video signal, thereby obtaining plural sets of image data; phase determining means for carrying out a prescribed operation for each set of image data to obtain a phase-related index representing the phase relationship of the each set of image data, and determining a desirable phase for the dot clock signal based on the phase-related indexes of the plural sets of image data; and delay setting means for applying an optimum delay to the dot clock signal to have the desirable phase.
The present invention is further directed to a method of adjusting a frequency of a dot clock signal for a video signal. The method comprises the steps of: (a) multiplying a frequency of a horizontal synchronizing signal of the video signal by a first factor to generate a first dot clock signal; (b) sampling the video signal by the first dot clock signal to obtain image data: (c) analyzing the image data to determine a first value representing a length of an effective signal area on one line of the image data; (d) carrying out an operation using the first value representing the length of the effective signal area and a known second value representing a true length of the effective signal area, thereby determining a desirable second factor; and (e) multiplying the frequency of the horizontal synchronizing signal by the second factor to generate a desirable second dot clock signal.
The first value of the effective signal area of the image data can be determined by analyzing the image data. If a true length of the effective signal area, or the second value, is known, a desirable second factor can be determined so that the effective signal area has the second value. The desirable second dot clock will be generated with the second factor.
The present invention is also directed to an apparatus for adjusting a frequency of a dot clock signal for a video signal. The apparatus comprises: dot clock generation means for multiplying a frequency of a horizontal synchronizing signal of the video signal by a first factor to generate a first dot clock signal; sampling means for sampling the video signal by the first dot clock signal to obtain image data; first operation means for analyzing the image data to determine a first value representing a length of an effective signal area on one line of the image data; second operation means for carrying out an operation using the first value representing the length of the effective signal area and a known second value representing a true length of the effective signal area, thereby determining a desirable second factor; and factor setting unit for setting the desirable second factor in the dot clock generation means and thereby enabling the dot clock generation means to multiply the frequency of the horizontal synchronizing signal by the second factor to generate a desirable second dot clock signal.
According to an aspect of the present invention, the method of adjusting a frequency of a dot clock signal for a video signal comprises the steps of: (a) multiplying a frequency of a horizontal synchronizing signal of the video signal by a first factor to generate a first dot clock signal; (b) sampling the video signal by the first dot clock signal to obtain image data; (c) obtaining a number of beats over one line of the image data; (d) correcting the first factor with the number of beats, thereby obtaining a desirable second factor; and (e) multiplying the frequency of the horizontal synchronizing signal by the second factor to generate a second dot clock signal that can be used to sample image data without beats.
Image data will include some beats if sampled by the first dot clock having a non-appropriate frequency. A desirable second factor can be obtained by measuring the number of beats over one line of the image data and by correcting the first factor with the number of beats. Using the second factor, the second dot clock signal will be generated to sample image data without any beats. It should be noted that the second dot clock signal can be used in various purposes other than sampling a video signal.
According to another aspect of the present invention, the apparatus for adjusting a frequency of a dot clock signal for a video signal comprises: dot clock generation means for multiplying a frequency of a horizontal synchronizing signal of the video signal by a first factor to generate a first dot clock signal; sampling means for sampling the video signal by the first dot clock signal to obtain image data; first operation means for obtaining a number of beats over one line of the image data; second operation means for correcting the first factor with the number of beats, thereby obtaining a desirable second factor; and factor setting means for setting the second factor in the dot clock generation means and thereby enabling the dot clock generation means to multiply the frequency of the horizontal synchronizing signal by the second factor to generate a second dot clock signal that can be used to sample image data without beats.
The present invention is further directed to a dot clock regeneration circuit for regenerating a dot clock signal to be supplied to a sampling circuit for sampling a video signal. The dot clock regeneration circuit comprises: a PLL circuit for multiplying a frequency of a horizontal synchronizing signal of the video signal by a predetermined factor to generate a reference clock signal; a delay circuit for delaying the reference clock signal by a predetermined time to generate the dot clock signal; memory means for storing at least one line of image data supplied from the sampling circuit; and delay time setting means for controlling a writing process of the image data into the memory means, reading one line of the image data stored in the memory means to carry out a prescribed operation, and setting a delay time in the delay circuit based on the result of the prescribed operation to attain a desirable phase relationship between the video signal and the dot clock signal.
The present invention is further directed to a video signal display apparatus. The video signal display apparatus comprises: sampling means for sampling a video signal; clock generation means for multiplying a horizontal synchronizing signal by a predetermined frequency division factor to generate a dot clock; driving means for processing an output of the sampling means; a display device for displaying an image in response to an output of the driving means; display timing means for controlling a display timing of the display device; memory means for storing one line of data output from the sampling means; write timing means for outputting a write enable signal to the memory means; and control means for outputting a write arm signal to the write timing means to cause the memory means to store data of a specific line, reading out the data of the specific line stored in the memory means, carrying out a prescribed operation, and setting a factor in the clock generation means based on the result of the prescribed operation.
The present invention is also directed to a method of regenerating a dot clock in a video signal display apparatus. The method comprises the steps of: setting a provisional factor in the PLL circuit and storing data into the memory means; comparing a difference between the data read out of the memory means at adjoining addresses with a predetermined threshold value to determine a starting address and a terminal address of an effective signal area of the video signal stored in the memory means; determining a number of dot clocks corresponding to one line of the video signal from a difference between the starting address and the terminal address and the provisional factor; and setting the number of dot clocks as the frequency division factor in the clock generation means.
According to an aspect of the present invention, the method of regenerating a dot clock signal comprises the steps of: processing the data read out from the memory means with a high-pass filter; carrying out a non-linear operation and subsequently performing fast Fourier transform on the data after the high-pass filter processing; obtaining a peak in the result of the fast Fourier transform to determine a frequency of a beat component; and setting a factor in the clock generation means so that a frequency of the beat component becomes equal to zero.
According to another aspect of the present invention, the method of regenerating a dot clock signal comprises the steps of: processing the data read out from the memory means with a high-pass filter; carrying out a non-linear operation on the data after the high-pass filter processing and subsequently performing an operation with a plurality of comb filters; determining a frequency of a beat component based on a combination of integral values of the result of the operation with the plurality of comb filters; and setting a factor in the clock generation means so that a frequency of the beat component becomes equal to zero.
These and other objects, features, aspects, and advantages of the present invention will become more apparent from the following detailed description of the preferred embodiments with the accompanying drawings.
FIGS. 8(a)-8(e) are timing charts showing the process of determining the phase-related index V1 at step S3 in the flowchart of
FIGS. 9(a)-9(h) are timing charts showing the process of determining the phase-related index V1 at step S3 in the flowchart of
FIGS. 11(A) and 11(B) are graphs showing a result of the operation for calculating the phase-related index V1 with a variation in delay time φ of the dot clock 201;
FIGS. 16(A)-16(C) are graphs showing the phase-related index V3 obtained for the forty blocks #1 through #40 on one line;
FIGS. 18(a) and 18(b) shows a process of determining the appropriate factor Nd to be set in the PLL circuit 7 in the third embodiment;
FIGS. 20(a)-20(d) show the details of the processing executed at steps T3 through T6 in the flowchart of
FIGS. 25(a) and 25(b) show the contents of a non-linear operation in the fourth embodiment;
FIGS. 26(a) and 26(b) are graphs showing functions applicable for the non-linear operation;
FIGS. 33(a) and 33(b) are graphs showing the relationship between the address AD in the line memory 4 and the deviation of the address of the image data PD(AD) (or PE(AD));
FIGS. 34(a)-34(g) show a variety of image data processed in the sixth embodiment;
FIGS. 35(a)-35(c) show the phase relationship between the video signal and the dot clocks in the sixth embodiment;
FIGS. 37(a)-37(e) show the relationship between level changes of the two binary data PF(AD) and PG(AD) and the output of the exclusive OR operation in the sixth embodiment;
FIGS. 41(a)-41(c) are timing charts showing the relationship between the video signal 101 and the dot clock 201;
FIGS. 42(a)-42(c) are timing charts showing the relationship between the horizontal synchronizing signal 102, the reference clock 200, and the dot clock 201;
FIGS. 44(a-1)-44(a-3) and 44(b-1)-44(b-3) are timing charts showing the relationship between the analog video signal 101, the dot clock 201, and the digital video signal 110.
A. First Embodiment
The video image display apparatus includes an A-D converter 1, a driving circuit 2, a display device 3, a line memory 4, a display timing control circuit 5, a write timing control circuit 6, a PLL circuit 7, a CPU 8, a RAM 9, a delay circuit 10, a main memory 12, and a nonvolatile memory 14.
The PLL circuit 7 multiplies the frequency of a horizontal synchronizing signal 102 for an analog video signal 101 by a predetermined factor Nd to generate a reference clock signal 200. The delay circuit 10 gives a delay φ to the reference clock signal 200 to generate a dot clock (or dot clock signal) 201. The analog video signal 101 is sampled by an A-D converter 1 at a rise of the dot clock 201 and converted to a digital video signal 110. The driving circuit 2 executes a signal processing on the digital video signal 110 to make it suitable for the display device 3, and supplies a processed video signal to the display device 3 for display of a resulting video image. The dot clock signal 201 is also given to the driving circuit 2, the display device 3, the line memory 4, the display timing control circuit 5, and the write timing control circuit 6. The display timing control circuit 5 and the write timing control circuit 6 further receive the horizontal synchronizing signal 102. The display timing control circuit 5 controls the display timing of the display device 3 in response to the horizontal synchronizing signal 102 and the dot clock 201. The write timing control circuit 6 controls the timing of writing image data into the line memory 4 in response to the horizontal synchronizing signal 102 and the dot clock 201.
The CPU 8 executes a computer program stored in the main memory 12 to implement functions of a phase determination unit 15 and a delay setting unit 16. The phase determination unit 15 carries out a prescribed operation on the image data stored in the line memory 4 and determines a delay φ that gives a desirable phase to the dot clock 201. The delay setting unit 16 then sets the delay φ determined by the phase determination unit 15 in the delay circuit 10. Detailed functions of the phase determination unit 15 and the delay setting unit 16 will be described later.
A matrix-type display device such as a liquid-crystal display or a plasma display is applicable for the display device 3. The driving circuit 2 carries out a variety of processes, such as gamma correction, amplification, multiplexing, and alternate-current inversion.
An output 110 of the A-D converter 1 is given to the line memory 4. The line memory 4 is connected to the CPU 8 and has a capacity for storing image data of at least one scanning line. Digital video signals of at least one scanning line are stored in the line memory 4, and the CPU 8 reads out the image data from the line memory 4.
The nonvolatile memory 14 stores various standard values and default values to be used in the adjustment of the dot clock signal. The nonvolatile memory 14 can be implemented by various solid memory elements, such as a flash memory, EEPROM, and a memory card.
In the first embodiment, it is assumed that the appropriate factor Nd for obtaining the reference clock 200 and the dot clock 201 having a proper frequency is a known value. An appropriate dot clock 201 having a desirable phase is accordingly obtained simply by adjusting the delay φ in the delay circuit 10 (FIG. 1).
When the program enters the processing routine of
At subsequent step S2, the CPU 8 sends a write arm signal 701 to instruct the write timing control circuit 6 to write image data for one scanning line into the line memory 4. The write timing control circuit 6 and the line memory 4 fall in a write wait state in response to the write arm signal 701. The write timing control circuit 6 counts the number of pulses (that is, the number of lines) of the horizontal synchronizing signal 102 using an internal line counter (not shown). A specific line position to enable a write process is set in advance in the write timing control circuit 6. The write timing control circuit 6 enables a write process in the line memory 4 when the line position of the video signal reaches the specific line position. The digital video signals 110 for one scanning line are then written into the line memory 4 at the rise timing of the dot clock 201. The line memory 4 should have the capacity for storing image data of at least one line, but may have the capacity for storing image data of plural lines.
The program then proceeds to step S3, at which the CPU 8 reads out the image data written in the line memory 4, temporarily registers the image data into the RAM 9 included in the CPU 8, and carries out an operation defined by Equation 1 given below to determine a phase-related index V1(φ):
wherein PD(i) denotes image data (also referred to as pixel data) at an i-th address (or pixel position); Nd denotes the factor in the PLL circuit 7 (that is, the total number of pixels included in one line); and φ denotes a delay in the delay circuit 10. It should be noted that PD(i+1) and PD(i) depend on the delay φ in the delay circuit 10. Namely the phase-related index V1(φ) defined by Equation 1 is the sum of the squared differences between image data at adjoining pixel positions on the same line. This value indicates the relationship between the phase of the analog video signal 101 and the phase of the dot clock 201 and is thereby called `phase-related index`. The value of the phase-related index V1(φ) depends upon the delay φ in the delay circuit 10.
Another phase-related index V2 may be calculated according to Equation 2 given below, in place of Equation 1:
The phase-related index V2(φ) is the sum of the absolute values of the differences between image data at adjoining pixel positions on the same line. In general, the function expressing the phase-related index is an unequivocal, monotone function with respect to the sum of the squared differences between image data at adjoining pixel positions. When Equation 2 is used to determine the phase-related index, the multiplier 403 in the circuit of
FIGS. 8(a)-8(e) and 9(a)-9(h) are timing charts showing the process of determining the phase-related index V1 at step S3 in the flowchart of
FIGS. 9(a)-9(h) show the operation on the image data thus stored. A line memory output 110a of FIG. 9(a) represents the A-D converter output 110a of FIG. 8(c) that has been written once into the line memory 4 and then read out from the line memory 4. A signal 221a of FIG. 9(b) is obtained by giving a delay of one clock to the signal of FIG. 9(a). A signal 222a of FIG. 9(c) represents a difference between the signals of FIGS. 9(a) and 9(b), and a signal 223a of FIG. 9(d) shows the square of the signal 222a. Calculating the difference between the line memory output 110a and the signal 221a delayed by one clock is equivalent to calculating the difference between the data at the current address i and the data at the next address (i+1) at step S32 in the flowchart of FIG. 5.
A line memory output 110b of FIG. 9(e) represents the A-D converter output 110b of FIG. 8(e) that has been written once into the line memory 4 and then read out from the line memory 4. The signals of FIGS. 9(f) through 9(h) are obtained from the signal 110b and respectively correspond to those of FIGS. 9(b) through 9(d).
In the time range shown in FIGS. 9(a)-9(h), the sum of the values of the signal 223a shown in FIG. 9(d) is equal to 4, whereas the sum of the values of the signal 223b shown in FIG. 9(h) is equal to 1.5. This means that the A-D converter output 110a obtained by sampling the video signal 101 in the stable ranges gives a greater value as the sum of the squared differences between adjacent pixel data (that is, a greater value for the phase-related index V1).
Comparison between the line memory outputs 110a and 110b of FIGS. 9(a) and 9(e) indicates that the output 110a of FIG. 9(a) clearly has a greater edge component, which results in a greater phase-related index V1 (or V2). Namely the processing for determining the phase-related index V1 (or V2) has the high-pass filter characteristics as shown in FIG. 6. The edge component of the line memory output 110 increases with an increase in sharpness of the sampled video image. The phase-related index V1 (or V2) can thus be regarded as an index indicating sharpness of the sampled video image.
The phase-related index V1(φ) (or V2(φ)) determined for each delay φ using the image data for one line is stored in the RAM 9 of the CPU 8.
Referring back to the flowchart of
FIG. 11(A) is a graph showing the relationship between the delay time φ of the dot clock 201 and the phase-related index V1. The delay time φ is plotted as abscissa and the phase-related index V1 as ordinate. The phase related index V1 of FIG. 11(A) includes a noise due to the contents of the video signal. Referring back again to the flowchart of
At step S7 in the flowchart of
As shown in FIG. 11(B), the maximum position 241 repeatedly appears at plural delay times φ, which are separated by one cycle of the dot clock 201. Since these delay times give an equivalent phase to the dot clock 201, the shortest delay time can be selected among the delay times of these maximum positions.
The above first embodiment automatically adjusts the delay φ of the dot clock 201 so that the dot clock 201 has an optimum phase for obtaining the most stable sampling results even when the video signal 101 has rounding or distortion.
If the driving circuit 2 has an internal memory, the line memory 4 may be replaced by this memory and thereby omitted. The line memory 4 works at the frequency of the dot clock 201 and is thus required to have the cycle time of not greater than 20 ns in this embodiment. The speed of the operations executed by the CPU 8 is, however, totally independent of the frequency of the dot clock, and a low-speed CPU can be sufficiently applied for the CPU 8.
The CPU 8 is not required to be specifically used for the controls and the operations described above, but its functions may be implemented by any suitable microprocessors, such as those for adjusting the screen conditions of the display device.
In the first embodiment, the maximum position is determined after the calculation of the phase-related index is completed for all of the plurality of delays φ. In accordance with another preferable embodiment, the processing for finding the maximum may be carried out every time when the phase-related index is obtained for each delay φ, and is stopped when the maximum is obtained. This alternative method does not require the processing for all of the delays, thereby shortening the overall processing time.
Not all of the image data for one line are required to be processed to obtain the phase-related index, but image data for only part of one line may be subjected to the processing. This shortens the processing time. On the contrary, image data for a plurality of lines may be subjected to the processing. This improves the accuracy of the phase adjustment of a dot clock signal.
B. Second Embodiment
In case that the offset value Noff added to the factor Nd is equal to +1, the phase deviation varies in the range of 0 to 2π, which corresponds to one cycle of the clock. When the offset value Noff is negative, the resulting waveform has a slope reversed to that shown in FIG. 14.
The abscissa of
At subsequent step S103, the CPU 8 sends the write arm signal 701 to the write timing control circuit 6 to store image data for one line into the line memory 4. The graph of
Referring back to the flowchart of
This operation first divides the image data obtained for the known total number of pixels Nd (=1040) for one line into a plurality of blocks, based on a minimum resolving power required for the phase adjustment. The minimum resolving power required for the phase adjustment corresponds to one delay step (or minimum delay difference) in the delay circuit 10. When one delay step in the delay circuit 10 is equal to 1 ns, for example, the resolving power for the phase adjustment can be set to 1 ns or one-to-an integer of 1 ns. The dot clock has the frequency of 50 MHz and the period of 20 ns as mentioned above. In the second embodiment, the total number of cycles of the dot clock for one line is increased by two, and the phase deviation over one line (the deviation of 4π shown in
Namely it is preferable that the divisor of one line is set equal to an integral multiple of a rounded quotient obtained by dividing the offset value Noff (for example, 2), which is added to the factor Nd, by the product of the clock frequency (for example, 50 MHz) and the minimum delay step (for example, 1 ns) in the delay circuit 10. One or more blocks are mapped to the minimum delay step in the delay circuit 10 accordingly.
At step S104 in the flowchart of
wherein #k denote a block number, PD(j)denotes image data at a j-th pixel position in the k-th block, and Mb denotes the number of pixels included in the k-th block. In the above example, since one line is divided into 40 blocks, k ranges 1 to 40 and Mb is about 26. The phase-related index V3 corresponds to the phase-related index V1 obtained for each block according to Equation 1 in the first embodiment. The process of determining the phase-related index V3 accordingly follows the routine shown in the flowchart of FIG. 4.
In accordance with an alternative application, Equation 4 given below may be used, in place of Equation 3, to calculate a phase-related index V4 that corresponds to the second phase-related index V2 in the first embodiment:
The phase-related index V3 (or V4) thus obtained for each block is hereinafter also referred to as `real data`. The phase-related index V3 for each block is stored in the RAM 9 of the CPU 8.
FIG. 16(A) is a graph showing the phase-related index V3 obtained for the forty blocks #1 to #40 on one line. As shown on the abscissa of
In case that the video signal 101 represents a striped image, wherein two different image levels (for example, black and white) periodically alternate with each other, the difference in phase-related index V3 between the respective blocks in FIG. 16(A) depends upon only the phase deviation in the video image portions of the respective blocks. If the video signal 101 does not represent such a striped image, on the other hand, the phase-related index V3 for each block includes an effect due to the contents of the video signal 101. Taking into account this fact, the second embodiment utilizes correction data shown in FIG. 16(B), in order to correct the real data shown in FIG. 16(A) and remove the effect due to the contents of the video signal 101, as described below. In case that the analog video signal 101 represents a striped image, wherein two different image levels periodically alternate with each other, the following correction process with the correction data may not be required. In this case, the delay φ for giving the optimum phase can be directly determined from the phase-related index V3.
Referring back to the flowchart of
In the correction data 82 (or phase-related index V3') shown in FIG. 16(B), the frequency of the dot clock signal or dot clock 201 coincides with the frequency of the video clock used for generating video signals. While the phase relationship between the video signal 101 and the dot clock 201 is not defined, the phase of the dot clock 201 and its deviation from the optimum phase are fixed for one line. The correction data 82 accordingly includes a component caused by a variation in the contents of a video image expressed by the video signal 101 and another component caused by the fixed phase deviation. The component caused by the phase deviation is constant for one line and can thus be neglected. Namely the correction data 82 can be regarded to include only the component caused by the variation in contents of the video image over the line.
In case that the video signal 101 includes a solid image portion which shows no variation in signal level, both the real data 81 and the correction data 82 have the output levels substantially equal to zero, such as non-output portions 311 and 312 shown in FIGS. 16(A) and 16(B). The correcting operation with the correction data 82 cannot be carried out for these portions. Referring back to the flowchart of
At subsequent step S109, the CPU 8 divides the interpolated real data by the interpolated correction data, thereby to generate corrected data which includes only the information on the phase deviation from the optimum phase.
Since the corrected data thus obtained may include a noise component, the filtering process is executed at step S110 to remove the noise component and take out only a low-band component of the corrected data. The filtering process is realized by a convolution operation using a conventional low-pass filter. FIG. 16(C) shows corrected data 83 after the filtering. The corrected data 83 shown in FIG. 16(C) can be used as the phase-related index showing the degree of the phase deviation in each block. The filtering process of step S110 may be omitted in some cases. The filtering process, however, determines the delay time giving the optimum phase of the dot clock 201 with a higher accuracy.
At step S111 in the flowchart of
At subsequent step S112, a delay φop [ns] to be set in the delay circuit 10 is calculated from the phase deviation θop thus obtained. For example, when one period of the dot clock, that is, the phase of 2π, corresponds to 20 ns, the delay φop is given by Equation 6 below:
The delay φop given by Equations 5 and 6 may be calculated directly from the block number j of the block in which the phase-related index has the maximum value. The video signals 101 can be sampled at the optimum phase with the dot clock 201 delayed by the delay time φop. The program subsequently proceeds to step S113, at which the CPU 8 outputs the delay control signal 105 to set the delay φop in the delay circuit 10. The delay circuit 10 accordingly generates the dot clock 201 having the optimum phase.
Since the offset value Noff added to the factor Nd in response to the addition signal 106 is equal to +2 in the second embodiment, the corrected data 83 shown in FIG. 16(C) potentially has two peaks. Even when one of the peaks exists in the blanking area of the video signal, the other peak always exists outside the blanking area. This enables the delay time giving the optimum phase to be always determined.
Although the offset value Noff added to the factor Nd is equal to +2 in the above embodiment, the offset value may be set at any integer such as -2, +1, and -1; the delay time giving the optimum phase can also be determined in the same manner regardless of the offset value. When the offset value is set equal to either +1 or -1, the peak may exist in the blanking area and cannot be detected in some cases. In this case, the peak position is specified by giving a predetermined bias to the delay time and shifting the peak position. The delay time giving the optimum phase is then determined by removing the bias from the delay time corresponding to the specified peak position.
When the absolute value of the offset Noff added to the factor Nd is two or more, the corrected data 83 always has at least one peak outside the blanking area. The above adjustment with a bias is accordingly not required in these cases. From that point of view, it is preferable that the absolute value of the offset is at lease two. When the offset value is set equal to +2 or -2, a relatively large number of pixels are included in each block, and the corrected data 83 (that is, the phase-related index) can thus be determined with a relatively high accuracy. Based on these facts, the most preferable offset value is either +2 or -2. If the corrected data 83 has two or more peaks, the shortest delay time can be selected, for example.
Even when the video signal has rounding or distortion, the second embodiment can automatically adjust the phase of the dot clock to obtain the most stable sampling results.
The following describes some possible modifications of the first and the second embodiments described above.
The phase-related index is not restricted to those defined by Equations 1 through 4, but may by any index representing the sharpness of the sampled image data. By way of example, a statistic variance or a standard deviation of the sampled image data may be used as the phase-related index, in place of those specified by Equations 1 through 4.
When the appropriate factor Nd used for generating the dot clock 201 is unknown, the appropriate factor Nd can be determined first according to one of the embodiments described below before the adjustment of the phase is carried out according to either the first embodiment or the second embodiment. This procedure automatically adjusts both the frequency and the phase of the dot clock.
C. Third Embodiment
The purpose of the third embodiment is to set the frequency of the dot clock 201 (that is, the factor Nd in the PLL circuit 7) automatically to an appropriate value. FIGS. 18(a) and 18(b) show a process of determining the appropriate factor Nd in the third embodiment. FIG. 18(a) shows a horizontal synchronizing signal 102, and FIG. 18(b) shows a video signal 101 for one line in the horizontal direction.
The object here is to determine a desirable factor Nd (or the total number of pixels for one line in the horizontal direction) that is used for multiplying the frequency of the horizontal synchronizing signal 102. The process first sets a provisional factor Nk in the PLL circuit 7 and samples the video signals 101 using a dot clock generated with the factor Nk. The process then analyzes the sampled video signals and determines a length or a width ΔADk of an effective signal area. The length ΔADk is calculated as a difference between an address ADs at a starting position of the effective signal area and an address ADt at a terminal position thereof The starting position and the terminal position of the effective signal area are detected as the positions where a level of the video signal changes by no less than a predetermined threshold value.
The provisional factor Nk and the length ΔADk of the effective signal area are related to a desirable factor Nd and a true length ΔAD of the effective signal area as shown in Equation 7 given below:
wherein the true length ΔAD of the effective signal area is a known value. For example, ΔAD=640 [pixels] for VGA, ΔAD=800 [pixels] for SVGA, ΔAD=1024 [pixels] for XGA, and ΔAD=1280 [pixels] for SXGA. Equation 7 can be written as Equation 8 to give the desirable factor Nd:
The desirable factor Nd is obtained by multiplying the provisional factor Nk by the ratio of the known length ΔAD of the effective signal area to the measured length ΔADk.
At step T2, the CPU 8 clears the contents of the internal RAM 9. The addresses in the RAM 9 are one-to-one mapped to the addresses in the line memory 4.
At subsequent step T3, the CPU 8 instructs the write timing control circuit 6 to set the line number of the digital video signals 110 to be written into the line memory 4.
At step T4, the CPU 8 sends the write arm signal 701 to the write timing control circuit 6. The write timing control circuit 6 outputs a write enable signal 502 at the timing when the line position of the digital video signals 110 coincides with the line number set at step T3, so as to start the writing operation into the line memory 4. Image data at the scanning line of the line number are thereby stored into the line memory 4.
The CPU 8 obtains and stores a maximum value at each pixel position with respect to image data for a plurality of lines at step T5, and determines whether the processing of steps T3 through T5 has been completed for a predetermined number of lines at step T6. When not completed, the program returns to step T3.
FIGS. 20(a)-20(d) show the details of the processing executed at steps T3 through T6 in the flowchart of FIG. 19. The processing of steps T3 through T6 obtains a maximum value of image data at each position of identical ordinal number from the starting end of each line over a plurality of lines (that is, at each address position over a plurality of lines). The maximum values are to be obtained for two range in the horizontal direction: a first range of address ADa to ADb including a starting address ADs of an effective signal area, and a second range of address ADc to ADd including a terminal address ADt of the effective signal area as shown in FIG. 20(b). The reasons why the ranges of interest for the operation of obtaining the maximum values are specified are that the final objects are only the starting address ADs and the terminal address Adt, and that the processing only in the vicinities of these positions is required and sufficient for the purpose. The starting address ADs and the terminal address ADt of the effective signal area are not precisely known in advance, but can be estimated from the known length ΔAD of the effective signal area. The processing of steps T3 through T6 determines the first range of ADa to ADb and the second range of ADc to ADd respectively including the estimated positions of the starting address ADs and the terminal address ADt.
In this third embodiment, the image data for a plurality of lines are used for the processing. In principle, the effective signal area can be identified from a level change of image data for one line. If there is no distinct level change in the vicinities of the starting address ADs and the terminal address ADt of the effective signal area, however, it may be rather difficult to determine the starting address ADs and the terminal address ADt with a high accuracy based on the image data for only one line. Referring to FIGS. 20(c) and 20(d), the third embodiment accordingly obtains the maximum value at each pixel position for the image data of a plurality of lines. This procedures gives data that can readily identify the level changes at the starting address ADs and the terminal address ADt of the effective signal area.
If the image data for one line is sufficient for identifying the starting address ADs and the terminal address ADt of the effective signal area, the process of determining the maximum value at each pixel for the image data of a plurality of lines may be omitted.
When the program enters the routine of
The CPU 8 successively reads out the image data of each pixel stored in the line memory 4 at step T52, and compares the maximum data stored in the RAM 9 of the CPU 8 with the image data at the corresponding address in the line memory 4 at step T53. The CPU 8 then overwrites the maximum data into the same address in the RAM 9 at step T54. This procedure is repeatedly executed for a predetermined number of lines (for example, 5 lines), so as to obtain the maximum value for each pixel.
Referring back to the flowchart of
The processing of steps T3 through T6 is repeated a plurality of times, while the different line numbers are sequentially set at step T3. This procedures gives the data from which the starting address ADs and the terminal address ADt can be determined with a high accuracy. For example, in a video signal representing a black and white video image having a checker flag pattern, the positions of white levels and black levels differ from line to line. The maximum data eventually stored in the RAM 9 for such an image are accordingly those data in which most pixels in the effective signal area represent white levels. As to another video signal which displays a specific video image in a window against a background of a geometric pattern, one or more pixels in the vicinity of a left end (starting position) or a right end (terminal position) of the effective signal area may represent black levels in some lines. In this case, however, if some of the plurality of lines have a non-black level at the left end, and others at the right end of the effective signal area, the maximum data eventually stored in the RAM 9 have non-black levels at the left end and the right end of the effective signal area. The starting address ADs and the terminal address ADt of the effective signal area can thus be readily specified from these maximum data according to the steps described below.
Referring back to the flowchart of
At step T71, the CPU 8 successively increases the address of the RAM 9 by one from the starting point ADa to the terminal point ADb of the first range (FIG. 20(b)), in which the starting address is to be identified. For example, the starting point ADa is equal to zero and the terminal point ADb is equal to 250. As mentioned above, the addresses in the RAM 9 coincide with the addresses in the line memory 4.
At subsequent step T72, the CPU 8 subtracts the data at a current address from another data at the next address to the right-hand side to obtain their difference. When the data at the next address is greater than that at the current address, the difference is positive. A greater variation in data results in a larger difference.
The program then proceeds to step T73, at which the difference is compared with a predetermined threshold value. When the difference is smaller than the threshold value, the program determines that the difference represents a blanking area 302 of the video signal 101 (
At step T8 of
When the program enters the routine of
The address range of ADf to ADg set at step T81 may be coincident with the second range of ADc to ADd shown in FIG. 20(b). The use of the estimated range of ADf to ADg estimated from the starting address ADs of the effective signal area would reduce the range to be processed and therefore shorten the required processing time.
At subsequent step T82, the CPU 8 subtracts the data at a current address from another data at the preceding address to the left-hand side to obtain a difference. When the data at the preceding address is greater than that at the current address, the difference is positive. A greater variation in data results in a larger difference.
The program then proceeds to step T83, at which the difference is compared with a predetermined threshold value. When the difference is smaller than the threshold value, the program determines that the difference represents a blanking area 302 of the video signal 101 (
As described above, the third embodiment detects the positions at which the level change of the image data becomes equal to or greater than the respective threshold values, thereby detecting the starting position and the terminal position of the effective signal area.
Referring back to the flowchart of
In the above procedure, the video signal 101 representing an effective signal area of 800 pixels has been sampled by the dot clock generated with the provisional factor Nk; the sampled image data have been written into the line memory 4; and the starting address ADs and the terminal address ADt of the effective signal area have been detected based on the image data read out of the line memory 4. The width of the effective signal area can be calculated to be (ADt-ADs+1) pixels from these addresses ADs and ADt. Note that the true width of the effective signal area for this video signal is known to be 800 pixels.
The total number of pixels Nd for one horizontal line of the video signal 101 is calculated by Equation 9 given below:
wherein the operator INT represents the operation of taking integral part of the result while omitting the decimal part. Equation 9 is equivalent to Equation 8 given above. Since the value of 0.5 is added in the brackets at the right-hand side, Equation 9 includes a rounding operation for rounding the result to the nearest whole number. The rounding operation further improves the accuracy of the total number of pixels Nd thus determined, although it may be omitted.
Equation 9 determines the total number of pixels Nd when the effective signal area includes 800 pixels. In general, the following Equation 10 is applied to determine the total number of pixels Nd, wherein ΔAD represents the number of pixels included in the effective signal area:
The value Nd obtained here corresponds to the total number of pixels of the video signal 101 in the horizontal direction. The value Nd is then set as the factor Nd in the PLL circuit 7. A resulting video image displayed on the display device 3 will not show any vertical stripes due to the beats.
Referring back again to the flowchart of
At subsequent step T11, an actual starting position of the effective signal area is calculated from the starting address ADs. Since the starting address ADs represents the address at a starting position set for the provisional factor Nk, some correction is required to determine the actual starting position for the true factor Nd. An address ADp at the actual starting position of the effective signal area set for the true factor Nd is calculated according to Equation 11 given below:
In other words, the desirable address ADp of the starting position is obtained by multiplying the address ADs of the starting position set for the provisional factor Nk by a ratio (Nd/Nk) of the desirable factor Nd to the provisional factor Nk. The rounding operation in Equation 11 further improves the accuracy of the address ADp thus determined.
The program then proceeds to step T12, at which the CPU 8 sets the obtained starting position ADp in the display timing control circuit 5 that functions as the display timing means. This procedure makes a video image represented by the video signal 101 to be displayed at an optimum position in the horizontal direction on the display device 3.
If the driving circuit 2 has a internal memory, the line memory 4 may be replaced by this memory and thereby omitted.
The storage capacity of the line memory 4 may be less than the number of pixels of the display device 3 in the horizontal direction as long as the starting position and the terminal position of the effective signal area in the horizontal direction can be detected. The line memory 4 is required to have the capacity for storing at least image data of the first range ADa to ADb and the second range ADc to ADd shown in FIG. 20(b). The RAM 9 can thus be readily integrated with other circuits on one LSI.
Since the variety of operations in the flowchart of
The CPU 8 is not required to be a specific processor for carrying out the various operations and setting the factor as described above, but may be replaced by any microprocessor, such as those for adjusting the screen conditions including brightness and contrast of the display device.
In the third embodiment described above, the length (or width) of the effective signal area is calculated from the starting position and the terminal position of the effective signal area. Alternatively, the length of the effective signal area may be directly determined without obtaining the addresses of the starting position and the terminal position of the effective signal area. The alternative method may check the level change of each pixel on one line, and start the counting-up of pixels at the starting position of the effective signal area and terminate the counting-up at the terminal position of the effective signal area based on the level change, thereby determining the length of the effective signal area.
As described above, the third embodiment can automatically determine the total number of pixels Nd in the horizontal direction without any specific hardware structure but by simply analyzing the sampled image data, even when the blanking area and the total number of pixels Nd of the effective signal area in the horizontal direction are unknown. A dot clock can be generated by multiplying the frequency of the horizontal synchronizing signal by the total number of pixels Nd so that the sampled video image will not shows any vertical stripes due to the beats.
D. Fourth Embodiment
At step T102, the CPU 8 instructs the write timing control circuit 6 to set the line number of the digital video signals 110 to be written into the line memory 4.
The program then proceeds to step T103, at which the CPU 8 sends the write arm signal 701 to the write timing control circuit 6. The write timing control circuit 6 outputs the write enable signal 502 at a timing when the line position of the digital video signals 110 coincides with the line number set at step T102, so as to start the writing of image data into the line memory 4. Image data corresponding to the line number are thereby stored into the line memory 4.
At subsequent step T104, the CPU 8 reads the image data stored in the line memory 4 and removes a low-band component of the image data through a high-pass filtering process, thus enabling the frequency component of the beats to be readily separated from the image data. The image data after the filtering process are written at the corresponding address in the RAM 9. The high-pass filtering process is realized by a convolution operation with filtering coefficients of, for example, (-0.25, 0.5,-0.25). The convolution operation is executed by: multiplying the image data at the current address by the coefficient of 0.5; multiplying the image data at the preceding and next addresses by the coefficient of -0.25, respectively; summing up the three resulting data; and setting the sum as the new image data at the current address.
The program then proceeds to step T105, at which a non-linear operation described below is used to process the image data stored in the RAM 9. FIGS. 25(a) and 25(b) show the contents of the non-linear operation. Closed circles in FIG. 25(a) represent image data 802 sampled by the dot clock 201, which has a non-appropriate frequency, from the analog video signal 101 representing an image alternately varying in white and black by every two pixels. In the drawing of FIG. 25(a), thin vertical lines represent sequence of the pixels, and thick wave-like lines represent beats 801 observed in a video image displayed on the display device 3. The data levels in FIGS. 25(a) and 25(b) are expressed in the analog form for clear understanding.
Although the actual image data varies in sequence following the closed circles of the sampled data 802, a luminance distribution of the beats 801 having a longer period indicated by the thick lines would be conspicuous in the video image displayed on the display device 3.
The number of beats 801 shown in FIG. 25(a) is equal to the difference between the desirable factor Nd for regenerating the appropriate dot clock 201 and the provisional factor Nk. It is accordingly desirable to extract the number of beats 801 (or the frequency of the beats 801) from the sampled data 802 in FIG. 25(a).
As clearly seen from FIG. 25(a), not the data of adjoining pixel positions but the data of separated pixel positions generate the beats 801. Accordingly, a simple low-pass filtering process for the sampled data 802 would not be useful because it would reduce the beat component 801 as well as the high-frequency component of the sampled data 802.
At step T105 in the flowchart of
wherein y and x respectively denote an output (data after the operation) and an input (data before the operation). The non-linear operation according to Equation 12 doubles the level of each data and changes the sign of the minus-level data to plus. Equation 12 is not linear as a whole, although the input-output relationship is linear on either sides of the 0-input level as shown in FIG. 26(a). The term `non-linear` in this specification implies that the input-output relationship is not linear as a whole. Data after the non-linear operation shown by the closed circles in FIG. 25(b) are results of the non-linear operation according to Equation 12.
Referring back to the flowchart of
A quadratic function defined by Equation 13 given below and shown in FIG. 26(b) may be used for the non-linear operation executed at step T105.
If one of the two waveforms of the beats 801 shown in FIG. 25(a) is expressed as x=cosθ, the data after the non-linear operation according to the function of Equation 13 is given as y=2(1+cos 2θ). The data y after the non-linear operation according to the quadratic function advantageously includes only the frequency component that is twice the frequency of the beats 801 and has no undesired higher harmonic components.
A variety of monotone transformation functions having a symmetrical output level across a predetermined input level are applicable for the non-linear operation to transform the sampled data 802 shown in FIG. 25(a). Both the first transformation function defined by Equation 12 and FIG. 26(a) and the second transformation function defined by Equation 13 and FIG. 26(b) are monotone functions having a symmetrical output with respect to the 0-level input. The input level which is the center of symmetry of the transformation function may be set at any level other than the zero level. For example, the mean value of the maximum and the minimum of the sampled data 802 may be set as the center of symmetry of the transformation function.
In the fourth embodiment, the fast Fourier transform is carried out to process the data shown in FIG. 25(b) to obtain the frequency of the beat component (that is, the number of beats) as described below. The number of beats on one scanning line is equal to the difference between the total number of pixels Nd of the analog video signal 101 in the horizontal direction and the provisional factor Nk set at step T101 in the flowchart of FIG. 24. Since the provisional factor Nk is selected from a plurality of proper values for various representative apparatuses, the number of beats would be about 30 or smaller. In order to obtain the number of beats, the fast Fourier transform (FFT) should be carried out for the data at least twice the number of beats. If the number of beats is in a range of about 20 to 30, the sufficient number of data to be processed by FFT is either 64 or 128. Referring back to the flowchart of
At step T108 in the flowchart of
At subsequent step T109, the CPU 8 determines the frequency at which the FFT spectrum shows a maximum. This frequency is twice the number of beats Nb, which is equal to the difference between the total number of pixels Nd for one horizontal line and the provisional factor Nk.
The program then proceeds to step T110, at which the factor setting unit 18 corrects the provisional factor Nk with the number of beats Nb to obtain an optimum factor, and outputs the factor setting signal 703 to the frequency divider 64 in the PLL circuit 7 to set the optimum factor thus obtained. The `optimum factor` here implies the factor for generating the desirable dot clock 201 used to sample the image data having no beats.
It is unknown whether the deviation of the provisional factor Nk from the optimum factor is positive or negative. Namely, it is unknown whether the number of beats Nb determined at step T109 is to be added to or subtracted from the provisional factor Nk. In a typical process, for example, the factor (Nk+Nb) is set in the frequency divider 64 and repeats the processing of steps T108 and T109. If the factor (Nk+Nb) is not the optimum factor, the FFT spectrum has a peak at the frequency corresponding to twice the number of beats Nb. In this case, the factor (Nk-Nb) is set as the optimum factor in the frequency divider 64.
As described above, the fourth embodiment carries out the fast Fourier transform to obtain the number of beats (that is, the frequency of the beats) included in the image data that are sampled by the dot clock generated with the provisional factor Nk, and determines the factor Nd for sampling the desirable image data having no beat. Accordingly, a video image without vertical stripes due to the beats will be displayed on the display device 3.
E. Fifth Embodiment
J-th comb filter has a delay of C(j), which is defined by Equations 14 given below:
wherein N is a natural number.
The comb filters are realized by a convolution operation. The value of the natural number N is determined so as to make the largest delay C(3) of the passing band equal to or less than half the number of data sampled for one line (that is, the provisional factor Nk). In the fifth embodiment, the number of sampled data is 1040, and the natural number N is set equal to 65. A peak frequency of the passing band of the comb filter is given by the provisional factor Nk divided by twice the delay C(j).
At step T122 in the flowchart of
As described above, the fifth embodiment carries out the comb filtering process to determine the number of beats (that is, the frequency of the beats) included in the data sampled for one line, and corrects the provisional factor Nk with the number of beats Nb, thereby determining the desirable factor Nd. Like the fourth embodiment, a video image without vertical stripes due to the beats will be displayed on the display device 3 according to the fifth embodiment.
The fourth embodiment and the fifth embodiment described above respectively adopt the techniques of the fast Fourier transform and the comb filtering process for the frequency analysis. A variety of other frequency analyzing techniques may, however, be applied to determine the number of beats included in the sampled data.
F. Sixth Embodiment
At subsequent step U4, the CPU 8 reads out image data PD(AD) from the line memory 4 and stores the image data PD(AD) into the RAM 9, wherein AD denotes the address in the line memory 4. The RAM 9 has the addresses one-to-one mapped to the addresses in the line memory 4. The image data PD(AD) stored in the line memory 4 is sampled by the dot clock, which is generated with the non-desirable provisional factor Nk. The image data PD(AD) accordingly have a phase deviated from that of desirable image data sampled by a desirable dot clock.
FIG. 33(a) is a graph where the phase deviation shown in
FIGS. 34(a)-34(g) show a variety of image data processed in the sixth embodiment. FIG. 34(a) shows a level change of the image data PD(AD) stored in the RAM 9 at step U4 in the flowchart of FIG. 31. The image data PD(AD) have been sampled from a video signal representing characters created in a personal computer. There are some "beats" seen in FIG. 34(a). Although the beats are generated such that its number is equal to the difference between the desirable factor Nd and the provisional factor Nk, FIG. 34(a) only shows some beats in the effective signal area. The total number of pixels in the horizontal direction, that is, the optimum factor Nd, can be obtained by counting the number of beats over one line including the blanking area.
Referring back to the flowchart of
FIG. 33(b) is a graph showing the address deviation with respect to the image data PE(AD) obtained at step U7. Comparison of FIGS. 33(a) and 33(b) at a specific address ADs1 will indicate the following facts. The image data PD(AD) at a point 203 in the graph of FIG. 33(a) is obtained by sampling the stable range of the video signal 101 at a rise of the dot clock as shown in FIG. 35(b) while the image data PE(AD) at a point 204 in the graph of FIG. 33(b) is, on the other hand, obtained by sampling the transient range of the video signal 101 at a rise of the dot clock as shown in FIG. 35(c). At another specific address ADs2, on the contrary, the image data PD(AD) at a point 205 in the graph of FIG. 33(a) is obtained by sampling the transient range of the video signal 101 while the image data PE(AD) at a point 206 in the graph of FIG. 33(b) is obtained by sampling the stable range of the video signal 101.
The image data PD(AD) shown in FIG. 34(a) appears to have two sets of intersecting data. This is ascribed to a decrease in amplitude that is caused by sampling the transient range of the video signal 101 like the point 205 in the graph of FIG. 33(a). The same phenomenon is observed in the image data PE(AD) of FIG. 34(b). The intersection are observed as noises like vertical lines in the video image displayed on the display device 3.
At step U8 in the flowchart of
When the program enters the routine of
At step U22, the CPU 8 obtains an exclusive OR of the two binary data PF(AD) and PG(AD). When the two binary data PF(AD) and PG(AD) coincide with each other for each address AD, the value of zero is output. Otherwise the value of one is output. In other words, when data regarding a certain pixel of the analog video signal 101 are written at an identical address position in the image data PD(AD) and PE(AD), the output of the exclusive OR operation is equal to zero at the address position. When the data are written at different address positions, on the contrary, the output of the exclusive OR operation is equal to one. In the latter case, if data regarding the adjoining pixels of the analog video signal 101 incidentally coincide with each other, the output of the exclusive OR operation is equal to zero.
FIGS. 37(a)-37(e) show the relationship between level changes of the two binary data PF(AD) and PG(AD) and the output of the exclusive OR operation. Like the graph of
The waveforms of the two dot clocks shown in FIGS. 37(c) and 37(d) have a phase deviation of π. The first output value of the exclusive OR operation shown in FIG. 37(e) is equal to one because it is based on the two binary data PF(AD) and PG(AD) which have been obtained by sampling different pixels of the video signal, respectively. The second output of the exclusive OR operation in FIG. 37(e) is equal to zero because it is based on the binary data PF(AD) and PG(AD) both obtained by sampling an identical pixel of the video signal 101. The third output of the exclusive OR operation in FIG. 37(e) has the same result. Comparison between FIGS. 37(b) and 37(c) shows that the phase of the dot clock gradually deviates from the phase of the video signal 101 in proportion to the address AD. The correlation of the binary data PF(AD) with PG(AD) (that is, the output of the exclusive OR operation in this embodiment) accordingly varies with the address AD. A starting point and a terminal point of an address range corresponding to the phase deviation of 2π as shown in FIG. 37(a) show an identical phase relationship between the video signal 101 (FIG. 37(b)) and the dot clocks (FIGS. 37(c) and 37(d)) while the phase relationship linearly varies with the address AD within the specified address range. An output pattern of the exclusive OR operation shown in FIG. 37(e) depends on the content of the video signal, but it includes the same cycle as that of the beat component included in the image data PD(AD) (or PE(AD)).
Since the phase relationship between the analog video signal 101 and the horizontal synchronizing signal 102 is not defined, the relative phase of the dot clock 202 generated from the horizontal synchronizing signal 102 relative to the digital video signal 110 is also not defined. Accordingly, as shown by the broken lines in FIGS. 33(a) and 33(b), the address deviation of the image data PD(AD) and PE(AD) may be shifted by +1 or -1.
Referring back to the flowchart of
These outputs of the exclusive OR operation, A(AD), B(AD), and C(AD), represent the correlation of the two image data PD(AD) with PE(AD), and thereby can also be referred to as `correlation data`.
FIGS. 34(c) through 34(e) show examples of these three outputs of the exclusive OR operation, A(AD), B(AD), and C(AD). The output A(AD) shown in FIG. 34(c) is not related to the beats of the image data PD(AD) and PE(AD) shown in FIGS. 34(a) and 34(b), and it has 0-levels only when the image data PD(AD) and PE(AD) happen to coincide with each other.
The outputs B(AD) and C(AD) shown in FIGS. 34(d) and 34(e), on the other hand, have 0-level ranges at the positions corresponding to the beats of the image data PD(AD) and PE(AD). One-level ranges tend to appear in the same cycle as the 0-level output ranges, but incidental coincidence of the image data PD(AD) and PE(AD) cuts the continuation of the 1-level range. An incidental 0-level range sometimes appears in the middle of a 1-level output range accordingly.
The number of beats included in the two image data PD(AD) and PE(AD) is determined by analyzing at least either one of the two outputs of the exclusive OR operation, B(AD) and C(AD), shown in FIGS. 34(d) and 34(e) and detecting the cycle (or frequency) of appearance of the 0-level ranges and the 1-level ranges. The number of beats (that is, the frequency of beats) can be determined relatively easily from the two outputs of the exclusive OR operation, B(AD), and C(AD), as described below.
Referring back to the flowchart of
It is unknown which one of the three outputs of the exclusive OR operation, A(AD), B(AD), and C(AD), obtained at step U22 has a pattern representing the beats. It is thus preferable to provide two registers, into which the result of the toggle operation is written. A first register output Q1(AD) shown in FIG. 34(f) is alternately inverted at rises of the first and the second outputs of the exclusive OR operation, A(AD) and B(AD). A second register output Q2(AD) shown in FIG. 34(g) is, on the other hand, alternately inverted at rises of the second and the third outputs of the exclusive OR operation, B(AD), and C(AD).
As shown in FIG. 34(g), the second register output Q2(AD) has a pattern representing the beats. Referring back again to the flowchart of
It is required to determine which of the two register outputs Q1(AD) and Q2(AD) shown in FIGS. 34(f) and 34(g) has a pattern representing the beats. Observation of FIGS. 34(f) and 34(g) proves that the mean value of the output level is close to 0.5 when the waveform of the register output has a level pattern varying in the cycle of the beats. When the level pattern does not represent the beats, on the other hand, either setting or resetting of the register is caused at a significantly higher frequency, and the mean value of the output level is accordingly close to either 1 or 0.
Referring back again to the flowchart of
Even when the register output Q2(AD) (or Q1(AD)) has the waveform corresponding to the cycle of the beats, level inversion may occur in as small as one tenth the cycle of the beats in the transient area where the stepwise address deviation occurs. Taking into account such possible level inversion, it is preferable to perform the steps of: calculating the mean value of the distances between the adjoining inverted points at step U24 in the flowchart of FIG. 36: setting a mask to invalidate those setting and resetting operations where an address difference between the adjacent setting and resetting points is smaller than about one fifth the mean value; and repeating the processing of steps U23 and U24. This procedure effectively prevents the cycle of the beats from being mistakenly determined.
Referring back to the flowchart of
wherein Nb denotes the number of beats, Lav denotes the mean value of the distances between the adjoining inverting points, and INT[ ] denotes a operation taking an integral-part of the figure while omitting its decimal part. The value of 0.5 is added within the brackets for the rounding operation, which rounds the result to the nearest whole number. The integral-part taking operation of simply omitting the decimal part may be used without the rounding operation.
The desirable factor Nd is obtained by correcting the provisional factor Nk (=1034) with the number of beats Nb (=6), that is, by adding or subtracting Nb to or from Nk. In this example, the desirable factor will be equal to 1040 or 1028. At subsequent step U10 in the flowchart of
Since two values of 1028 and 1040 are obtained at step U9 as the possible optimum factor Nd, the CPU 8 sets one of the two values in the PLL circuit 7 and repeats the processing of steps U2 through U9 again. Determination of the optimum factor is not difficult because the non-optimum factor would double the number of beats in the sampled image data. When the selected factor is not optimum, the other factor is set in the PLL circuit 7.
As described above, the sixth embodiment carries out the correlation analysis operation on the two image data respectively sampled by the two dot clocks having the inverted phases, thereby determining the number of beats (or the frequency of beats) in one line. Correction of the provisional factor Nk with the number of beats gives the desirable factor Nd for generating an appropriate dot clock for sampling the video signals 101.
G. Seventh Embodiment
A seventh embodiment according to the present invention carries out the processing of steps U1 through U7 and U9 of the sixth embodiment shown in the flowchart of
As described previously in the sixth embodiment, the phase relationship between the analog video signal 101 and the horizontal synchronizing signal 102 is not defined, and the relative phase of the dot clock 202 to the digital video signal 110 is also not defined. As shown by broken lines in FIGS. 33(a) and 33(b), the address deviation of the image data PD(AD) and PE(AD) might be actually shifted by +1 or -1.
Referring back to the flowchart of
At subsequent step U32, the CPU 8 executes binary coding on the three difference data F(AD), G(AD), and H(AD) obtained at step U31 to generate three binary data A'(AD), B'(AD), and C'(AD).
The three difference data A'(AD), B'(AD), and C'(AD) thus obtained are correlation data equivalent to the three output data of the exclusive OR operation, A(AD), B(AD), and C(AD) obtained in the sixth embodiment. Namely the three difference data A'(AD), B'(AD), and C'(AD) have substantially the same patterns as those shown in FIGS. 34(c), 34(d), and 34(e).
Steps U33 through U35 in the flowchart of
The seventh embodiment (
In both of the sixth and the seventh embodiments described above, the two combinations among the three correlation data A(AD), B(AD), and C(AD) shown in FIGS. 34(c), 34(d), and 34(e) are used to determine the number of beats Nb. The determination of the number of beats Nb may, however, be based on at least one of the three correlation data A(AD), B(AD), and C(AD).
For example, an alternative process includes the steps of: considering the first correlation data A(AD) as binary image data for one line, and expanding pixels having a level of one by a predetermined width (for example, 10 pixels); and choking the same pixels by the same predetermined width. This procedure eliminates small level variations in the correlation data A(AD). The process then calculates the mean distance between the adjoining inverting points in the level pattern from the correlation data thus obtained, in the same manner as step U24 in the flowchart of
Another possible process for determining the number of beats Nb neglects level variations equal to or less than a predetermined interval (for example 10 pixels) in the first correlation data A(AD), thereby extracting only the level variations greater than the predetermined interval. This procedure is a kind of filtering process in a broader sense. This alternative process then calculates the mean distance between the adjoining inverted points in the level pattern from the correlation data thus obtained, in the same manner as step U24 in the flowchart of
The sixth and the seventh embodiments described above can automatically determine the optimum multiplication factor in the PLL circuit by processing the image data even when the total number of pixels for one scanning line (that is, the total number of pixels in the horizontal direction including the number of pixels of the blanking area and that of the effective signal area) is unknown, and subsequently generate the desirable dot clock based on the optimum multiplication factor. By sampling the analog video signals 101 by the desirable dot clock, a favorable video image can be displayed on the display device 3 without undesired vertical lines due to the beats or a lack of information.
The above embodiments can be further modified as follows.
A part of the elements realized by hardware in the above embodiments may be implemented by software. Alternatively, a part of the elements realized by software may be implemented by hardware.
The present invention is not restricted to adjustment of the dot clock used for displaying video images represented by the video signals 101 on the display device 3, but it is also applicable to a variety of adjustment procedures of dot clock signals used for processing video signals. For example, the present invention can be applied to adjustment of a dot clock signal used for storing video signals into a memory and to adjustment of a dot clock signal used for outputting video images represented by video signals to a printer.
The phase adjustment process of the dot clock described in the first and the second embodiments and the frequency adjustment process of the dot clock described in the third through the seventh embodiments may be executed separately or in combination. If the phase adjustment process and the frequency adjustment process are to be combined, a preferable procedure first carries out the frequency adjustment process to generate the dot clock having a desirable frequency and then performs the phase adjustment process. This procedure can automatically set the appropriate frequency and phase of the dot clock based on the image data sampled by the dot clock.
The desirable phase of the dot clock depends upon environmental conditions of the apparatus, such as a temperature. The environmental conditions of the apparatus significantly varies especially at the time of starting the apparatus, and the desirable phase of the dot clock varies accordingly. In one preferable embodiment, the phase adjustment process is automatically carried out at constant time intervals (for example, 10 minutes) for a predetermined time period (for example, 30 minutes) after the start of the apparatus. This enables the phase of the dot clock to be automatically re-adjusted with a variation in environmental conditions of the apparatus.
It should be clearly understood that the above embodiments are only illustrative and not restrictive in any sense. The scope and spirit of the present invention are limited only by the terms of the appended claims.
Patent | Priority | Assignee | Title |
7136109, | Mar 22 2002 | Pelco | Self-adjusting pixel clock and method therefor |
7257499, | Nov 21 2002 | ENTROPIC COMMUNICATIONS, INC ; Entropic Communications, LLC | Method and apparatus for determining a frequency for the sampling of an analog signal |
7319464, | Feb 22 1996 | Seiko Epson Corporation | Method and apparatus for adjusting dot clock signal |
7333151, | May 28 2004 | LAPIS SEMICONDUCTOR CO , LTD | Dot clock synchronization generator circuit |
7898539, | Mar 03 2006 | Samsung Electronics Co., Ltd. | Display drive integrated circuit and method for generating system clock signal |
8525771, | Jun 30 2006 | NEC Display Solutions, Ltd. | Image display apparatus and method of adjusting clock phase using delay evaluation signal |
9262989, | Jun 30 2006 | NEC Display Solutions, Ltd. | Image display apparatus and method of adjusting clock phase using a delay evaluation signal |
9814106, | Oct 30 2013 | Apple Inc | Backlight driver chip incorporating a phase lock loop (PLL) with programmable offset/delay and seamless operation |
Patent | Priority | Assignee | Title |
4291332, | Apr 10 1980 | Tokyo Shibaura Denki Kabushiki Kaisha | Phase-locked circuit |
4635097, | Feb 14 1984 | Sony Corporation | Method and system for processing digital video signal incorporating phase-correction feature |
4780759, | Oct 01 1985 | SEIKO INSTRUMENTS & ELECTRONICS LTD | Sampling clock generation circuit of video signal |
4922118, | Jul 08 1988 | Mitsubishi Denki Kabushiki Kaisha | Apparatus for increasing number of scanning lines |
4998169, | Nov 21 1986 | Mitsubishi Denki Kabushiki Kaisha | Flat-panel display unit for displaying image data from personal computer or the like |
5223930, | Oct 18 1991 | LG Electronics Inc | Data recovery system using dot clock counting |
5396295, | Jan 23 1992 | Fanuc Ltd. | Phase control circuit for controlling phase of video signal and sampling clock signal |
5404173, | Mar 10 1993 | THE BANK OF NEW YORK TRUST COMPANY, N A | Method to synchronize video modulation using a constant time base |
5539473, | Mar 31 1994 | HTC Corporation | Dot clock generation with minimal clock skew |
5657089, | Oct 14 1994 | HTC Corporation | Video signal processing device for sampling TV signals to produce digital data with interval control |
5717469, | Jun 30 1994 | AGFA HEALTHCARE N V | Video frame grabber comprising analog video signals analysis system |
5731843, | Sep 30 1994 | Apple Computer, Inc.; Apple Computer, Inc | Apparatus and method for automatically adjusting frequency and phase of pixel sampling in a video display |
5764299, | Jun 30 1994 | AGFA HEALTHCARE N V | Video frame grabber comprising analog video signals analysis system |
5786866, | Oct 15 1996 | Fairchild Semiconductor Corporation | Video color subcarrier signal generator |
5940136, | May 06 1997 | MATSUSHITA ELECTRIC INDUSTRIAL CO , LTD | Dot clock reproducing method and dot clock reproducing apparatus using the same |
5959691, | Jul 12 1996 | SAMSUNG ELECTRONICS CO , LTD | Digital display apparatus having image size adjustment |
5978040, | Apr 24 1995 | RCA Thomson Licensing Corporation | Deflection circuits for wide screen displays |
5990968, | Jul 27 1995 | Hitachi Maxell, Ltd | Video signal processing device for automatically adjusting phase of sampling clocks |
6005557, | Jun 07 1996 | Xylon LLC | Image display stabilization apparatus and method |
6097440, | Nov 17 1995 | Sony Corporation | Synchronous processing device |
EP303494, | |||
EP522181, | |||
EP577841, | |||
EP662680, | |||
JP1237689, | |||
JP1270470, | |||
JP2124691, | |||
JP3295367, | |||
JP4276791, | |||
JP4291390, | |||
JP496093, | |||
JP5199481, | |||
JP5204329, | |||
JP5347768, | |||
JP566752, | |||
JP6282349, | |||
JP7135633, | |||
JP7175437, | |||
JP7212616, | |||
JP7219485, | |||
JP756553, |
Executed on | Assignor | Assignee | Conveyance | Frame | Reel | Doc |
Oct 12 2001 | Seiko Epson Corporation | (assignment on the face of the patent) | / |
Date | Maintenance Fee Events |
Jun 09 2005 | ASPN: Payor Number Assigned. |
Jun 09 2005 | RMPN: Payer Number De-assigned. |
Oct 12 2007 | M1551: Payment of Maintenance Fee, 4th Year, Large Entity. |
Sep 19 2011 | M1552: Payment of Maintenance Fee, 8th Year, Large Entity. |
Oct 21 2015 | M1553: Payment of Maintenance Fee, 12th Year, Large Entity. |
Date | Maintenance Schedule |
May 04 2007 | 4 years fee payment window open |
Nov 04 2007 | 6 months grace period start (w surcharge) |
May 04 2008 | patent expiry (for year 4) |
May 04 2010 | 2 years to revive unintentionally abandoned end. (for year 4) |
May 04 2011 | 8 years fee payment window open |
Nov 04 2011 | 6 months grace period start (w surcharge) |
May 04 2012 | patent expiry (for year 8) |
May 04 2014 | 2 years to revive unintentionally abandoned end. (for year 8) |
May 04 2015 | 12 years fee payment window open |
Nov 04 2015 | 6 months grace period start (w surcharge) |
May 04 2016 | patent expiry (for year 12) |
May 04 2018 | 2 years to revive unintentionally abandoned end. (for year 12) |