1. Field of the Invention
The present invention relates to an image processing apparatus and method for correcting a variation of an image signal and performing the coding of the image signal, and a computer readable storage medium storing a program for implementing the method.
2. Description of the Related Art
In a conventional method for coding image data using a stable synchronizing signal, an input image signal is input into a time base corrector so as to correct variations in the signal, and then image data in which such a variation has been corrected is coded in an image coding apparatus. The above variations include (i) dispersion of the transmission speed of the input image signal, (ii) disturbances of the synchronizing signal due to switching of scenes in the input image signal.
In
Next, these image data B2 and image-input clock and synchronizing signal B3, including such a variation, are input into a time base corrector A8. In the time base corrector A8, the image writing section A10 writes image data B2 via image memory interface A11 into image memory A9 as image data B7. In this process, an image reading and writing control section A12 controls the data writing operation based on the clock signal (including a variation) output from the image writing section A10.
The image memory A9 has, for example, a storage capacity of 2 frames, and when a frame of image data B7 is written, the image reading section A13 performs the data reading operation and the next frame of image data is written. As the writing operation is accompanied by the reading operation, image data B8 is obtained. This image data B8 is read via image memory interface A11 by an image reading section A13. In this process, the image reading and writing control section A12 controls the data reading operation based on a stabilized clock signal output from a clock generator A19. Therefore, stable image data B9 in which variations of the input image signal are corrected, and a stable image-input clock and synchronous signal B10 are output from the time base corrector A8. The output signals are then input into an image coding apparatus A14.
In the image coding apparatus A14, an image writing section A16 writes the above image data B9 via an image memory interface A17 into an image memory A15 as image data B12. This writing operation is performed using the above clock signal B11. A coding section A18 then reads image data B13 via image memory interface A17 from the image memory A15 by using the clock signal B11, and codes the read data. Here, the reading operation from image memory A15 is executed for each coding unit, for example, for each Macro Block including 16×16 pixels, and the coding section A18 executes the coding operation in Macro-Block units. Accordingly, coded and compressed image data B6 can be obtained.
For writing and reading control of the image memory A9, it is necessary to (i) prevent the writing operation from going ahead of the reading operation and thus deleting necessary data, and (ii) prevent the reading operation from going ahead of the writing operation and thus again reading out a previous frame during the reading of the current frame.
With reference to
Next, with reference to
Japanese Unexamined Patent Application, First Publication, No. Hei 8-223567, discloses an example of the above-explained conventional technique. In the coding apparatus disclosed in this document, a frame synchronizer is connected to a high-efficiency coding section, and each of the frame synchronizer and the high-efficiency coding has an image memory.
As explained above, in the conventional technique, a variation of image data is corrected using a time base corrector, and then the data is coded in an image coding apparatus. Therefore, a set of an image memory, an image writing section, and an image memory interface is necessary for each of the time base corrector and the image coding apparatus. Accordingly, the memory must have a large capacity, and the circuit arrangement must be complicated.
In addition, to provide two image memories causes an increase of the execution number of the data writing and reading operation, thereby increasing the processing time from the image input to the start of the coding.
In consideration of the above circumstances, an objective of the present invention is to provide an image processing apparatus in which a time base corrector and an image coding apparatus are integrated and the capacity of the memory is reduced, thereby realizing a simple circuit arrangement.
Therefore, the present invention provides an image processing apparatus comprising:
an image memory for storing image data; and
a control section for performing control of writing each line of input image data to the image memory in turn while reading image data from the image memory in predetermined coding units, in a manner such that:
According to the above control in the writing and reading of image data into and from the image memory (provided between an image writing section and a coding section), an image coding apparatus and a time base corrector can be integrated, so that the coding operation can be performed using a single memory included in the integrated image coding apparatus. More specifically, deletion or insufficiency of necessary data in a memory in the coding operation can be prevented (such deletion or insufficiency may occur in a conventional image coding apparatus without a time base corrector). In addition, in comparison with the conventional structure in which the image coding apparatus and the time base corrector respectively use different memories, a single memory can be used in common, thereby reducing the memory capacity.
Furthermore, a simple circuit structure can be realized, and the processing time can be reduced.
Preferably, the image data writing operation is performed using a clock signal in synchronism with the input image data; and the image data reading operation is performed using a stabilized clock signal different from the clock signal used in the image data writing operation.
The image processing apparatus may further comprise a coding section for coding the read image data in the predetermined coding units.
The predetermined coding unit may be a Macro Block defined in MPEG.
Typically, a picture corresponds to a frame or a field of image data.
The present invention also provides an image processing method comprising the step of:
performing control of writing each line of input image data to an image memory in turn while reading image data from the image memory in predetermined coding units, in a manner such that:
The present invention also provides a computer readable storage medium storing a program for making a computer execute an operation including the step of:
performing control of writing each line of input image data to an image memory in turn while reading image data from the image memory in predetermined coding units, in a manner such that:
Hereinafter, an embodiment according to the present invention will be explained in detail with reference to the drawings.
In
Next, these image data B2 and image-input clock and synchronizing signal B3 are input into an image processing apparatus A2. An image writing section A3 writes image data B2 via image memory interface A4 into image memory A7 as image data B4. In this process, the image writing section A3 and an image reading and writing control section A5 control the data writing operation based on a clock signal in synchronism with the image-input clock and synchronizing signal B3.
When a frame of image data B4 is first written into the image memory A7, the data reading operation is performed by the image reading and writing control section A5, and then the data reading is continued while the data writing operation is also performed. The read image data B5 is input via the image memory interface A4 into a coding section A6. In this case, the data in image memory A7 is read in coding units (i.e., each data unit corresponding to the coding unit is read in turn). For example, in the case of MPEG, data corresponding to each Macro Block including 16×16 pixels is read, and the coding section A6 codes data in Macro Block units according to a specific coding method such as MPEG2. Accordingly, coded and compressed image data B6 can be obtained.
In addition, the image reading and writing control section A5 performs reading control and coding operation by using a stabilized clock signal B11 supplied by a clock generator A11 which generates reference clock data.
With reference to
Next, with reference to
In the present embodiment, a picture corresponds to a frame. However, a picture may correspond to a field.
As explained above, according to the above embodiment, each line of image data is written into the image memory A7 by using a clock signal in synchronism with an input image signal, and simultaneously, data is written in Macro Block units by using a stabilized clock signal. Here, the writing and reading operation is controlled while the number of written lines is compared with a predetermined threshold, and the number of read Macro Blocks is compared with a predetermined threshold. Therefore, the writing operation does not go ahead of the reading operation, and the reading operation does also not go ahead of the writing operation, and it is possible to prevent the current frame from being erroneously switched to another frame while the current frame is being processed.
In the conventional technique, a plurality of image memory interfaces, image writing section, and the like are necessary. However, in the present embodiment, a common image memory A7 is used, so that such duplication of circuit elements is unnecessary, and it is possible to realize an image coding apparatus having the function of a time base corrector, which has a simple structure and whose processing time is short.
More specifically, it is assumed that in the conventional apparatus as shown in
If an image processing apparatus (as shown in
Number | Date | Country | Kind |
---|---|---|---|
P2000-074859 | Mar 2000 | JP | national |
Number | Name | Date | Kind |
---|---|---|---|
6738425 | Tagawa et al. | May 2004 | B1 |
Number | Date | Country |
---|---|---|
2-103689 | Apr 1990 | JP |
2-203689 | Aug 1990 | JP |
8-223567 | Aug 1996 | JP |
11-98498 | Apr 1999 | JP |
2000-13639 | Jan 2000 | JP |
Number | Date | Country | |
---|---|---|---|
20010022629 A1 | Sep 2001 | US |