1. Field of the Invention
The invention relates to an image data decoding method of image vertical blanking interval (VBI) and a device to perform the method, and more particularly to an image data decoding method for high-frequency teletext image data of the image vertical blanking interval.
2. Description of the Related Art
When processing an image display, VBI (vertical blanking interval) and HBI (horizontal interval) signals are normally reserved without showing. Conventional VBI data types are mainly three types, TeleText, Closed Caption (CC), and Wide Screen Signal (WSS). With reference to
When processing the VBI data, the VBI data has to be decoded in advance. A decoding method for the teletext-type data is more complicated because the run-in clock signal of the teletext includes a higher frequency than that of the CC or WSS, and also the data volume of the teletext is larger than that of the CC or WSS.
With reference to
Although the described closed phase locked loop circuit is beneficial to adjust different phases of the data in the teletext data lines, the run-in clock signal of the teletext data lines is only a small part of the data, which does not occur frequently. Moreover, the closed phase locked loop needs to take quite some time to be able to accurately lock the run-in clock signal. Since digital data of the teletext data lines is not continuous, a phase error when decoding the teletext data lines can easily occur by using the closed phase locked loop method to track data over a long term.
With reference to
Further, a delay time can be set for the current input digital image data, so the digital input data can be determined whether beyond or below a turning point to complete decoding the digital image data. The decoding method in this patent is rather simple and can save space in a layout area of image processing chips. However, the turning point is not easy to change, which tends to cause an erroneous decoding result when the image processing chips process image signals in an inferior signal environment.
An image data decoding method of an image vertical blanking interval (VBI) and device thereof of the present invention is provided, which can adjust a run-in clock signal of data lines of teletext to be corresponding to a data phase of the data lines of the teletext. Hence the present invention can accurately decode data of the data lines of the teletext to avoid a phase bias and an erroneous decoding result.
To achieve the above-described objective, a main technical method to decode the data of the VBI of the present invention is to extract the data of the teletext data lines to determine corresponding bit logical values of the image data and then to output a decode result and also output a phase adjustment value. The phase adjustment value is used to adjust a read phase value of the extracted image to feedback and adjust a phase of a sampling clock signal to synchronize a data phase in VBI. Therefore, the present invention can achieve the objective to accurately acquire the data of the teletext data lines without the closed phase locked loop (PLL) or a direct digital frequency synthesizer (DDFS).
With reference to
The ADC (10) follows a sampling clock signal to sample and digitize an analog image signal and then to output the digitized image signal. The level adjuster (11) is coupled to an output terminal of the ADC (10) to remove a blanking level and a signal carrier of the analog image signal to convert the digitized image signal to an AC (alternating current) signal.
With further reference to
The phase accumulator (14) is coupled to an output terminal of the data extractor (13) to adjust an accumulated phase based on the phase adjustment value outputted by the data extractor (13) and to feedback to the data extractor (13) to compose a closed circuit with the data extractor (13) to reduce a phase error. The memory (15) is connected to the data extractor (12) for storing the decoded bit data (i.e. the VBI) according to every logical value of the MSB.
With further reference to
An image data decoding method for an image vertical blanking interval (VBI) of the present invention includes steps of converting an input analog image signal to a digital image signal according to a specific sampling timing signal, removing a blanking level of the digital image signal and a DC (direct current) level of a signal carrier by the level adjuster (11), storing the digital data in the delay circuit (12) and extracting the MSB data from the registers (121) of the delay circuit (12) by the data extractor (13) to determine its logical values. Thereby multiple sample points can be acquired. If the specific sampling clock signal makes a bit data signal include 2N+1 sample points, then the delay circuit (12) includes at least 2N+1 registers (121).
Since the data extractor (13) is used to extract the output data of the delay circuit (12) to decode and determine the bit logical value of the extracted data with the logical value of the most significant bit (MSB) of the registers (121), the sampling clock signal for the data extractor (13) must be synchronous with the input signal to ensure an accuracy of a judgment on bit logical values. Thereby the data extractor (13) decodes the MSB logical value and outputs a corresponding phase adjustment value to the phase accumulator (14). When the phase accumulator (14) accumulates to phases of 0° and 180°, a strobe signal is output to the data extractor (13) to make the data extractor (13) adjust the phase of the decoded data bit.
According to the foregoing phase adjustment steps, the data extractor (13) first reads the sampled bit data that is temporarily stored in the delay circuit (12). The valid bit data is determined by the temporarily stored MSB logical values of multiple sample points. When all of the sample points are determined with the logical values, the logical values of the bit data are then acquired.
An example of a determination method follows. Simultaneously, the data extractor (13) determines the phase adjustment values by the logical values of the sample points and outputs to the phase accumulator (14). The phase accumulator (14) can adjust the phases according to the phase adjustment values and also feedback the strobe signal to the data extractor (13) when reaching some specific phases. Hence, the data extractor (13) and the phase accumulator (14) form a closed circuit so the data extractor (13) provides the phase adjustment values according to the latest input image signal, and the phase accumulator (14) will dynamically adjust the accumulated phase value to make the data tractor (13) correctly extract the sample points from the delay circuit (12) according to the phase adjustment values.
With further reference to
An actual implementation method of the data extractor (13) is easily achieved by setting up a look-up table. The look-up table includes the most significant bit extracted from every register (121) in the delay circuit (12), phase adjustment values and decoded bit data. The input image data may be changed. Hence when the data extractor (13) performs sampling, the bit sampling length may be different. With reference to
The look-up tables show that when the data extractor (13) determines a decoded bit data, a corresponding phase adjustment value is also generated and sent to the phase accumulator (14) to adjust the accumulated phase. The data extractor (13) extracting positive half cycle bit data of the corresponding input image signal negative bit data should have been extracted indicates the phase is not synchronous. Thus the accumulated phase can be adjusted to make the data extractor (13) adjust the extracted sampling clock signal of the next row of bit data. Moreover, since the input image data may include noise data, if the data extractor extracts an opposite logical value to a sequence of continuous 1 or continuous 0, the opposite logical value can be determined to be the noise data and ignored.
To conclude, the image data decoding method of the present invention performs a digitizing sampling on an input image signal and converts the digitized image signal into a from of an AC (alternating current) signal. The values of the positive half cycle and the negative half cycle of the AC signal being significantly different provides the basis to the data extractor to determine the decoded bit data and the phase adjustment value. Especially the data extractor and the phase accumulator compose a feedback closed circuit, so that the phase of the sampling clock signal of the data extractor can be adjusted to output accurate decoded bit data. Therefore, the present invention can achieve the objective to accurately acquire the data of the teletext data lines without the closed phase locked loop (PLL) or a direct digital frequency synthesizer (DDFS).
Even though numerous characteristics and advantages of the present invention have been set forth in the foregoing description, together with details of the structure and features of the invention, the disclosure is illustrative only. Changes may be made in the details, especially in matters of shape, size, and arrangement of parts within the principles of the invention to the full extent indicated by the broad general meaning of the terms in which the appended claims are expressed.
Number | Date | Country | Kind |
---|---|---|---|
093138664 | Dec 2004 | TW | national |