1. Field of the Invention
The invention relates to an image data synchronizer applied for an image scaling device, and more particularly to an image data synchronizer that synchronizes the write clock signals and read clock signals by using a feedback compensation architecture.
2. Description of the Related Art
A conventional technique for image resizing is to upscale an image in both horizontal and vertical directions according to a required output format, and store the image in frame buffers constructed from memories. Then a clock rate and a clock signal are generated that are corresponding to a required time sequence in accordance to the required output format, so as to provide as a basis for reading image data from memories. In this way, data synchronization can be achieved. However, large memories as the frame buffers are required for performing the image resizing calculation processes. The chip manufacturing cost accordingly increases. Moreover, memory output/input clock rates are assumed to be at a constant proportion without considering a difference existing between the input clock rate and the clock signal, so that the resized image tends to instability. In view of the aforesaid drawbacks, an independent circuit that can generate a constant clock rate is used to avoid producing a defective image.
With reference to
The time base converter 52 is coupled to the clock signal generator 51 to receive the DCLK signal. The time base converter 52 also receives source image data and a source clock (SCLK) signal, and then adjusts the DCLK signal to synchronize the DCLK signal with the SCLK signal, so as to output destination image data.
The memory 53 as a line buffer is coupled to the time base converter 52 to store the image data output from the time base converter 53 temporarily. The sequencer and arbitration logic circuit 54 is coupled to a control terminal of the RAM 53 to determine whether the RAM 53 is enabled. The write control logic circuit 55 is coupled to the RAM 53 through the multiplexer 58 to output a write control signal to the RAM 53. Based on the write control signal, the image signal output from the time base converter 52 is transmitted to the memory 53. The read control logic circuit 56 is also coupled to the memory 53 through the multiplexer 58 to output a read control signal to the memory 53. Based on the read control signal, the image data stored in the memory 53 is read and then output to the FIFO 57. The FIFO 57 is controlled by the SAL circuit 54.
The foregoing synchronizer is implemented by writing the image data to the memory 53 temporarily and reading the image data from the memory 53. The operation is mainly controlled by the WCL circuit 55, the RCL circuit 56 and the time base converter 52. However, because the DCLK signal for the time base converter 52 is generated by an independent circuit, the DCLK signal is unable to be varied with the SCLK signals. In addition, if an accuracy design of the circuit is insufficient, the image may be disordered due to overhead in reading the data. Moreover, if the input data format varies, the synchronizer can not provide a feedback compensation and modification effect. Hence the synchronizer can not process an image noise well and even may result in an impaired image display quality.
An image data synchronizer applied for an image scaling device in accordance with the present invention is provided to be coupled to an output terminal of a horizontal scaler. The image data synchronizer achieves an objective of synchronizing the write/read clock signals in accordance with different scales with a feedback compensation architecture, so as to ensure a high image quality.
In order to achieve the above-mentioned objective, the image data synchronizer, also having a vertical image scaling function, comprises a memory, an address write counter, an address read counter, a clock frequency modulator, and an analog/digital mixed value control oscillator.
The horizontal scaler is used to calculate horizontal image pixels and to receive clock signals, and then to generate corresponding scaled horizontal image pixels and clock signals. The image data synchronizer receives write-timing and write clock signals output by the horizontal scaler to synchronize write/read processes for the temporary stored data in the image data synchronizer. In this way, a read data rate of the image data synchronizer can be avoided being higher or lower than the write data rate of an output data rate of the horizontal scaler, so as to prevent a flickering and disordered image due to repetition read.
With reference to
With reference to
The memory 11 is coupled to a data output terminal (WRITE_DATA) and a output timing terminal (WRITE_TIME) of the horizontal scaler 10 and stores image data output (WRITE_DATA) from the horizontal scaler 20.
The address write counter 12 is coupled to an address write terminal (WRITE_ADDR) of the memory 11 to determine an address in the memory 11 for storing data. The address write counter 12 receives the write clock signal output by the horizontal scaler 20. The address read counter 13 is coupled to an address read terminal (READ_ADDR) of the memory 11 to locate a target address when reading data from the memory 11.
Further, the clock frequency modulator 14 is coupled to the address write counter 12 and the address read counter 13 to receive the write address and the read address output respectively by the two counters 12,13. Based on the received write/read addresses as a feedback basis, the clock frequency modulator 14 controls data reading of the memory 11 to achieve write/read synchronization.
If the present invention is applied in an occasion without a vertical scale, a first embodiment of the clock frequency modulator 14 is shown in
Moreover, the analog/digital mixed value control oscillator 15 is coupled to an output terminal of the clock frequency modulator 14. The analog/digital mixed value control oscillator 15 generates an output clock signal as the read clock signal (READ_CLK) for the address read counter 13 based on the clock adjustment value PER, so as to form a feedback architecture.
Under the feedback architecture, the image data synchronizer 10 of the present invention can generate the read clock signal (READ_CLK) corresponding to the write clock signal (WRITE_CLK) that is inputted by the horizontal scaler 20. Therefore the read clock signal (READ_CLK) can change following the write clock signal (WRITE_CLK) to achieve synchronization. Since the write/read processes of the memory 11 can be synchronized, even if the frequency of the write clock signal (WRITE_CLK) of the horizontal scaler 20 changes, the frequency of the read clock signal (READ_CLK) also can change to avoid the disordered image issue due to a large frequency difference between the write clock signal and the read clock signal.
If the present invention is applied in an occasion of a vertical scale, a second embodiment of the clock frequency modulator 14 is shown in
The synchronous point generating unit 142 comprises an output terminal coupled to the input terminal of the adder 141. The control signal generator 143 is coupled to the synchronous point generating unit 142 and the address output terminal (WRITE_ADDR) of the address write counter 12. The register 144 comprises an input terminal coupled to an output terminal (READ_ADDR) of the address read counter 13 for temporary storing the read address in accordance with a chronological control of the control signal generator 143. The register 144 then can output the temporary stored read address to the input terminal of the adder 141. The register 144 can be a flip-flop.
Moreover, the synchronous point generating unit 142 is pre-stored with multiple synchronous adjustment signals for different scales for sequential sending out when triggered, so as to achieve synchronization in the vertical scale occasion. Since the synchronous adjustment signals is designed for different image scales, the read overhead which only occurs when the image is enlarged can be constrained to occur just in a horizontal blanking interval. Thereby the visible image will not be flickering and disordered.
Furthermore, a repetition read can be illustrated in
With reference to
With reference to
Moreover, when processing the vertical downscaled image, a write control signal WRITE_CTRL is used to avoid the repetition read issue. When the synchronous point generating unit 142 generates the synchronous point sync_3, the address write counter 12 of
It can be understood from the above description that the image data synchronizer of the present invention utilizes the write address and the read address of the memory to generate the write clock signal the read clock signal. Then the read clock signal can be assured to be synchronized with the write clock signal by the feedback compensation architecture. Moreover, in addition to synchronize the data reading and writing processes, the present invention further comprises the vertical scaling function by having the frequency of the read clock signal be proportionate to the frequency of the write clock signal. In order to prevent a disordered image due to the repetition read when the frequency varies, the synchronous point generating unit is used to achieve the synchronization when processing the vertical scaling image.
With reference to
While the invention has been described by way of example and in terms of a preferred embodiment, it is to be understood that the invention is not limited thereto. On the contrary, it is intended to cover various modifications and similar arrangements and procedures, and the scope of the appended claims therefore should be accorded the broadest interpretation so as to encompass all such modifications and similar arrangements and procedures.
Number | Date | Country | Kind |
---|---|---|---|
093138666 | Dec 2004 | TW | national |