Discrete cosine transformation apparatus, inverse discrete cosine transformation apparatus, and orthogonal transformation apparatus
A discrete cosine transformation apparatus comprises a transposition section that transposes input picture signal of N×N pixels in every N pixels between the one-dimensional processing and the two-dimensional processing and a transformation section that subjects an output of the transposition section to a discrete cosine transformation.
This application is based upon and claims the benefit of priority from the prior Japanese Patent Application No. 11-280673, filed on Sep. 30, 1999, the entire contents of which are incorporated herein by reference.
BACKGROUND OF THE INVENTIONThe present invention relates to a discrete cosine transformation (DCT) apparatus and an inverse discrete cosine transformation (IDCT) apparatus which are often employed for compression and decompression of picture data and particularly to a discrete cosine transformation apparatus and an inverse discrete cosine transformation apparatus for allowing a two-dimensional transformation to be carried out in a one-dimensional transformation circuit.
The discrete cosine transformation is generally used for video compression such as in a digital television broadcast system. Conventionally, the application of higher operating clock frequencies was not easy. As the operating clock in LSIs has successfully been shifted to higher frequencies, two-dimensional transformation is now feasible with the use of a single one-dimensional DCT or IDCT circuit operated two times for video compression/decompression of e.g. a high-definition TV system. Such a scheme of the circuit arrangement contributes to the scale down of the entire circuit size of an LSI, hence permitting the price to be reduced.
However, when one-dimensional processing is shifted to two-dimensional processing over every input of less than eight-point data, such as one-point (one pixel or one coefficient) unit or a two-point unit, it is necessary to provide in the one-dimensional transformation circuit a register for saving the results of intermediate operation between the one-dimensional processing and the two-dimensional processing. The register has a significant size substantially equal to the scale of a two-dimensional transformation circuit, hence failing to minimize the overall circuit size.
In that case, the input and output of data are discontinuous on the basis of two blocks. For smoothing the input and output data to one data per clock period, the memory size of 64 coefficients may be needed for the input and output, respectively.
While switching between the one-dimensional processing and the two-dimensional processing is conducted in every one block or every two blocks, the read and the write are executed at one time. As a result, the transposition RAM area will hardly be decreased or the operational efficiency will be declined. Also, for preventing the input and output of data from being discontinuous constantly, a significant size of the data memory is required. More specifically, while the one-dimensional transformation circuit remains not increased in the size, the transposition memory may increase in the size or its operational efficiency may be declined.
BRIEF SUMMARY OF THE INVENTIONIt is an object of the present invention to provide a orthogonal transformation apparatus, such as a discrete cosine transformation apparatus or an inverse discrete cosine transformation apparatus, in which declination of the operational efficiency can be minimized even when data blocks cannot be input at predetermined intervals and two-dimensional orthogonal transformation can be performed with the use of a small circuit arrangement.
According to the present invention, there is provided a discrete cosine transformation apparatus comprising a transposition section which transposes input picture signal of N×N pixels between one-dimensional processing and two-dimensional processing, and a transformation section which subjects an output of the transposition section to a discrete cosine transformation.
According to the present invention, there is provided an inverse discrete cosine transformation apparatus comprising a transposition section which transposes input DCT coefficients of N×N in every N coefficients between one-dimensional processing and two-dimensional processing, and a transformation section which subjects an output of the transposition section to an inverse discrete cosine transformation.
According to the present invention, there is provided a discrete cosine transformation/inverse discrete cosine transformation apparatus comprising a single N-point transformation processor which switches in every N points between the one-dimensional processing and the two-dimensional processing to perform orthogonal transformation of N×N points.
According to the present invention, there is provided a discrete cosine transformation apparatus comprising an input processor which outputs data input one by one, at a rate of 2M data per clock period for M clock periods, an N-point transformation section which N-point transforms data input at the rate of 2M data per clock period from the input processor and outputs the transformed data at the rate of 2M data per clock period, an output processor which continuously outputs the one-dimensionally transformed data input at the rate of 2M data per clock period from the N-point transformation processor at the rate of 2M data per clock period for every N/2M clock periods while rounding N two-dimensionally transformed data input at the rate of 2M data per clock period in the succeeding N/2M clock periods, and a transposition processor which transposes N×N data input continuously at the rate of 2M data per clock period in every M clock periods and reading them continuously at the rate of 2M data per clock period in every M clock periods.
According to the present invention, the single eight-point transformation processor switches the one-dimensional processing and the two-dimensional processing alternately in every eight points to perform a discrete cosine transformation or an inverse discrete cosine transformation of 8×8 data, hence preventing its overall size from increasing and particularly reducing the circuit arrangement of its transposition RAM to a half.
Additional objects and advantages of the present invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. The objects and advantages of the present invention may be realized and obtained by means of the instrumentalities and combinations particularly pointed out hereinafter.
BRIEF DESCRIPTION OF THE SEVERAL VIEWS OF THE DRAWINGThe accompanying drawings, which are incorporated in and constitute a part of the specification, illustrate presently preferred embodiments of the present invention, and together with the general description given above and the detailed description of the preferred embodiments given below, serve to explain the principles of the invention;
Table 1 illustrates an input sequence of an 8×8 pixel array which is input into the apparatus for DCT processing, where {x0, x1, . . . , x6, x7} represent horizontal pixel positions and {y0, y1, . . . , y6, y7} represent vertical pixel positions. Table 2 illustrates an output sequence of DCT transformed data (an 8×8 array of DCT coefficients) output from the apparatus, where {f0, f1, . . . , f6, f7} represent horizontal frequency components and {g0, g1, . . . , g6, g7} represent vertical frequency components. f0 and g0 are a horizontal DC component and a vertical DC component respectively. f7 and g7 are the largest horizontal frequency component and the largest vertical frequency component of the eight-point DCT respectively. Table 3 illustrates an input sequence of an 8×8 array of DCT coefficients which are input into the apparatus for the IDCT processing. Table 4 illustrates an output sequence of IDCT transformed data (an 8×8 array of pixels) output from the apparatus.
An array of pixels to be subjected to DCT are input in the sequence shown in Table 1 at a rate of one data per clock period into an input terminal 100 of the two-dimensional orthogonal transformation apparatus. For the IDCT processing, DCT coefficients are introduced in the sequence shown in Table 3 at a rate of one data per clock period to the input terminal 100. An input processor 1 outputs data dti[11:0] input from the input terminal 100 by two units of data (ido[31:0]) in every clock period, as shown in
When a one-dimensional DCT/IDCT processor 2, i.e., an eight-point transformation processor in this embodiment receives the two units of data in every one clock period, it outputs eight-point transformed data at a rate of two units of data per clock period. As shown in
An output processor 3 outputs one-dimensional transformed data (odi[31:0]), which have been input at the rate of two units of data per clock period from the eight-point transformation processor 2, as rdi[31:0] at a rate of two units of data per clock period to the transposition processor 4 for four clock periods. Also, the output processor 4 rounds eight two-dimensional transformed data input as two units of data from the eight-point transformation processor 2 and outputs them as dto[11:0] at a rate of one data per clock period from an output terminal 305 for the succeeding four clock periods, the total output being extended for eight clock periods.
The transposition processor 4 transposes 64 units of data written by two units of data (rdi[31:0]) per clock period for four clock periods and outputs transposed data by two units of data per clock period for four clock periods. As shown in
A control processor 5 controls the action of the input processor 1, the eight-point orthogonal transformation processor 2, the output processor 3, and the transposition processor 4 and generates an input/output interface control signal for the two-dimensional orthogonal transformation apparatus. The input/output interface control signal includes a signal dtack (an output terminal 501) and a signal dtosync (an output terminal 502) indicative of the head of output block data. The signal dtack is a signal for not limiting the timing of starting the fetch of data input to the input terminal 100 when all the one-dimension transformed data are completely input to the eight-point orthogonal transformation processor 2 but limiting in every eight clock periods the timing of starting the fetch of data input to the input terminal 100 when all the one-dimensional transformed data are not completely input to the eight-point orthogonal transformation processor 2.
In this embodiment, as the write and the read of the transposition memory in the transposition processor 4 are not executed at the same time, a one-port RAM of 64 data storage capacity can be employed as the transposition memory hence reducing the overall memory circuit size to a half. Also, the eight-point orthogonal transformation processor 2 generates no invalid operation periods when the block data can be continuously input. If the block data can not be continuously input and there is a space of less than 64 clock periods between two units of block data, the timing of starting the input may be limited by eight clock periods. This generates an invalid operation duration of less than eight clock periods. However, the compression and decompression of picture data is commonly performed over a unit of six blocks and no actual drawback in the operation will be expected.
More details of the components are now explained.
Selectors 15a and 15b are arranged responsive to a control signal (idfela) input from the input terminal 102 for selecting the output of the shifter 12 and the output of the selector 14 respectively in every four clock periods. As a result, eight data input by one data per clock period from the input terminal 100 are output by two units of data per clock period in four clock periods. In the succeeding four clock periods, the transposition processor output data (rdo[31:0]) input from the input terminals 104a and 104b are output at the rate of two date per clock period (as denoted by selb[31:16] and selb[15:0] in
The DCT addition/subtraction processor 21 includes DFFs (D ytpe flip-flops) 21a and 21b connected to input terminals 200a and 200b, and adders 213 and 214 connected to the outputs of the two DFFs 21a and 21b respectively. The outputs of the DFFs 21a and 21b are also connected via an AND gate 215 and a NOR gate 216 to the adder 214 and the adder 213, respectively. A control terminal 217 is connected directly to the adder 213 and the AND gate 215 and via an inverter 218 to the NOR gate 216.
For the DCT processing in the DCT addition/subtraction processor 21, for pixel data x(0), x(1), . . . , x(7) input from the input terminals 200a and 200b, DCT intermediate signals z(0), z(1), . . . , z(7) according to the arithmetic operation shown in Table 8 are generated and then output in the sequence shown in Table 9. For the IDCT processing, with one of two inputs of adders controlled to zero, DCT coefficients f(0), f(1), . . . , f(7) input from the input terminals 200a and 200b are directly output in the sequence as shown in Table 10.
For the DCT processing, the sum-of-products processor 22 includes first groups of DFFs 221 and 222 connected to the outputs of the adders 213 and 214 of the DCT addition/subtraction processor 21 and second groups of DFFs 223 and 224. The DFFs 221 and 222 in the first group are connected one another in three steps. The DFFs 223 and 224 of the second groups include DFFs connected to the adders 213 and 214 respectively and the DFFs connected to the outputs of the DFFs of the first group. Also, a control signal edfena is input to the DFFs 223 and 224 of the second groups.
The DFFs 223 and 224 of the second group are selectively connected to selectors (MUX) 225 and 226. More particularly, outputs of the DFF 223 are connected to all inputs of the selectors 225 while outputs of the DFF 224 are connected to three inputs of the selectors 226. The output of the selector 225 is connected via a multiplier 227 to a DFF 229. The output of the selector 226 is connected via a multiplier 228 to one of two inputs of a selector 230 and directly to the other input of the selector 230. A control signal dctsel [1] is input to the selectors 230a and 230b, and a control signal dctsel [0] is input to the selectors 230c and 230d.
The DFF 229a of the DFFs 290 is connected via an OR gate 231a to an adder 232a. The DFF 229b is connected directly to the adder 232a. Similarly, the DFF 229c is connected via an OR gate 231b to an adder 232b while the DFF 229d is connected directly to the adder 232b.
The output of the selector 230 is connected to an input of the DFF 233. The DFF 233b of the DFFs 233 is connected via an OR gate 234a to an adder 235a. The DFF 233a is connected directly to the adder 235a. Similarly, the DFF 233d is connected via an OR gate 234b to an adder 235b while the DFF 233c is connected directly to the adder 235b. The adder 235a is connected directly to an adder 236 while the adder 235b is connected via an OR gate 237 to the adder 236.
The adder 232a is connected directly to an adder 238 while the adder 232b is connected via an OR gate 239 to the adder 238. The outputs of the adders 236 and 238 are connected via bit shifters (SFT) 241 and 240 to adder 243 and 242, respectively.
For the DCT processing in the sum-of-products processor 22, the input DCT intermediate signals z(0), z(1), . . . , z(7) are subjected to the sum-of-products operation shown in Table 11 and the results are output as f(0), f(1), . . . , f(7). As the multiply coefficients of the multipliers are fixed in this arrangement example, the transformation results are output by inputting the DCT intermediate values into the multiplier as shown in Table 12. Table 13 illustrates a control example of selecting the registers for the transformation. For the IDCT processing in the sum-of-products processor 22, the input DCT coefficients f(0), f(1), . . . , f(7) are subjected to the sum-of-products operation shown in Table 14 and the results are output as the transformation intermediate signals z(0), z(1), . . . , z(7). As the multiply coefficients of the multipliers are fixed in this arrangement, the transformation intermediate signals are output by inputting the DCT coefficients f(0), f(1), . . . , f(7) into the corresponding multiplier as shown in Table 15.
Table 16 illustrates a control example of selecting the registers for the transformation intermediate processing. Assuming that the fixed multipliers is designed for converting 16-bit input to 21-bit output and also the selectors 230a, 230b, 230c, and 230d for selectively outputting the input and the output of the fixed multiplier selectively output the fixed multiplier input data with four bits shifted to the left (the lower four bits being zeros) for one-bit code expansion.
Table 17 illustrates a definition example of control signals for selecting the registers. Tables 18 and 19 illustrate a control example of selecting the registers for the DCT and IDCT processings based on the definition. Table 20 shows a pattern of four clock periods of the register selection control signals for the DCT and IDCT processings. Table 21 illustrates a pattern of four clock periods of control signals for addition and subtraction and bit shift processing for the DCT and IDCT processings. In the bit shifters 240 and 241, 16-bit data produced by eliminating the lower six bits of the output of the adder are one-bit code expanded for the DCT processing and, for the IDCT processing, the elimination of the upper two bits and the lower three bits from the output of the adder yields 17-bit data. The adders 242 and 243 are round-off circuits for rounding off the 17-bit data input from the bit shifters 240 and 241 in the positive direction to eliminate the lower one bit and outputting resultant 16-bit data.
The IDCT addition/subtraction processor 23 includes DFFs 251 and 252 connected to the outputs of the adders 242 and 243 of the sum-of-products processor 22 respectively, and adders 253 and 254 connected to the outputs of the DFFs 251 and 252 respectively. Also, the output of the DFF 251 is connected via an AND gate 255 to the adder 254 while the DFF 252 is connected via a NOR gate 256 to the adder 253. A control signal idctl2d is input to the adder 253 and the AND gate 255, and supplied via an inverter 257 to the NOR gate 256.
For the IDCT processing in the IDCT addition/subtraction processor 23, the IDCT intermediate signals z(0), z(1), . . . , z(7) are generated, by the operation shown in Table 22, real signals (of pixel data) x(0), x(1), . . . , x(7) which are the transformation results and are then output in the sequence shown in Table 24. For the DCT processing, one of the inputs of the adder is controlled to zero, the input data f(0), f(1), . . . , f(7) are directly output in the sequence shown in Table 23.
As shown in
The round-off/maximum limiting sections 33a and 33b perform the positive and negative symmetric rounding off and the maximum limiting for the two-dimensional processing result input every clock period via the registers 32a and 32b. Resultant data are output as odo[11:0] and odo[23:12].
A group of registers 34a, 34b, 34c, and 34d are responsive to a control signal (odfena) input from an input terminal 303 for receiving output from the round-off/maximum limiting section 33b and updating each register output in every clock period and saving the data for five clock periods (as denoted by dfb, dfc, dfd, and dfde in
A selector 36 is responsive to a control signal (odfena) input from the input terminal 303 for switching between the output of the round-off/maximum limiting section 33a and the output of the selector 35 in every four clock periods to process eight data input by two units of data per clock period via the registers 32a and 32b for the succeeding four clock periods and outputting them by one data per clock period for eight clock periods via an output register 37 from an output terminal 305 (as selc[11:0] shown in
Because the rounding off and the maximum limiting are carried out prior to smoothing of the output (one data per clock), the number of bits of registers can be reduced as compared with conducting the rounding off and the maximum limiting after the smoothing operation, hence minimizing the overall circuit arrangement.
The address order for writing the data (rdi[31:0]) input from the output processor 3 into the transposition RAM is the same as in the DCT processing and the IDCT processing, the address orders shown in Tables 27 and 28 are used alternately every block. Also, the address order for reading the data from the transposition RAM is the sane as in the DCT processing and the IDCT processing, the address orders shown in Tables 29 and 30 are used alternately every block. The address control patterns are shown in Table 31.
As set forth above, the present invention permits not only the operating circuit to be reduced to substantially a half in the size but also the timing of writing and reading on the transposition memory to be exclusively made over one block area of the transposition RAM size thereby the transposition RAM area to a half. For smoothing the input and output, the registers of 4-word type can be used thus minimizing the overall circuit dimensions. When the single eight-point transformation processor carries out the operation at two pixel per clock period, the distance between block data inputs can be determined over one block in every eight clock periods or over two or more blocks in every one clock period, hence minimizing declination of the operational efficiency.
Although there has been explained that the eight-point orthogonal transformation processor 2 inputs and outputs two units of data in every one clock period, it may equally handle four data per clock period with the one-dimensional processing and the two-dimensional processing switched from one to the other in every two clock periods.
Additional advantages and modifications will readily occur to those skilled in the art. Therefore, the prevent invention in its broader aspects is not limited to the specific details and representative embodiments shown and described herein. Accordingly, various modifications may be made without departing from the spirit or scope of the general inventive concept as defined by the appended claims and their equivalents.
Claims
1. A discrete cosine transformation apparatus comprising:
- a transposition section which transposes data between a one-dimensional processing and a two-dimensional processing in every N pixels of an input picture signal of N×N pixels to produce a transposed output; and
- a transformation section which subjects the transposed output of the transposition section to a discrete cosine transformation.
2. The discrete cosine transformation apparatus according to claim 1, wherein the transposition section transposes the picture signal of 8×8 pixels in every eight pixels.
3. The discrete cosine transformation apparatus according to claim 2, further comprising:
- an input processor which outputs data input in units of L, at a rate of 2M2 L data per clock period for 4(N/M)·N/2 L periods and which, for the succeeding 4(N/M) periods, selects and outputs data output at 2M data per clock period from the transposition section to the transformation section.
4. The discrete cosine transformation apparatus according to claim 3, wherein the transposition section has a transposition memory in which N×N data are written at the rate of 2M data per clock period for 4(N/M)·N/2 L periods, then transposed, and read out at the rate of 2M data per clock period for four clock periods.
5. The discrete cosine transformation apparatus according to claim 1, further comprising a control section which produces control signals including a first signal and a second signal, the first signal being for limiting in every N/M clock periods the timing of starting the fetch of data input at the input terminal when the input of all the one-dimensional transformed data to the transformation section is not completed, but not limiting the timing of starting the fetch of data input to the input terminal when all the one-dimensional transformed data is completely input to the transformation section, and the second signal being indicative of a head of output block data.
6. An inverse discrete cosine transformation apparatus comprising:
- a transposition section which transposes input DCT coefficients of N×N in every N coefficients between one-dimensional processing and two-dimensional processing; and
- a transformation section which subjects an output of the transposition section to an inverse discrete cosine transformation.
7. An inverse discrete cosine transformation apparatus according to claim 6, wherein the transposition section transposes the picture signal of 8×8 pixels in every eight pixels.
8. An inverse discrete cosine transformation apparatus according to claim 6, further comprising:
- an input processor which outputs first data input one by one, at a rate of two units of data per clock period for four clock periods and which, for the succeeding four clock periods, selects and outputs second data output at two units of data per clock period from the transposition section to the transformation section.
9. A discrete cosine transformation/inverse discrete cosine transformation apparatus comprising:
- a single N-point transformation processor which switches in every N points between the one-dimensional processing and the two-dimensional processing to perform orthogonal transformation of N×N points.
10. A discrete cosine transformation/inverse discrete cosine transformation apparatus according to claim 9, wherein the N-point transformation processor incorporates a single eight-pixel transformation processor which switches in every eight pixels between one-dimensional processing and two-dimensional processing to perform orthogonal transformation of 8×8 pixels.
11. (canceled)
12. A discrete cosine transformation/inverse discrete cosine transformation apparatus according to claim 10, wherein the eight-pixel transformation processor comprises a first addition/subtraction processor for the discrete cosine transformation, a sum-of-products processor and a second addition/subtraction processor for the inverse discrete cosine transformation,
- the first addition/subtraction processor includes a section which generates a discrete cosine intermediate signal of the pixel data input from the input terminal for the discrete cosine transformation and directly outputs the discrete cosine coefficients input from the input terminal with one of inputs of the adder controlled to zero for the inverse cosine transformation,
- the sum-of-products processor includes a section which subjects the input discrete cosine intermediate signal to a sum-of-products operation to output a transformed result for the discrete cosine transformation and subjects the input discrete cosine transform coefficients to a sum-of-products operation to output a transformation intermediate signal, and
- the second addition/subtraction processor includes a section which generates a real signal as the transformed result from the inverse discrete cosine intermediate signal for the inverse discrete cosine transformation and directly outputs the input data with one of inputs of the adder controlled to zero for the discrete cosine transformation.
13. (canceled)
14. The discrete cosine transformation/inverse discrete cosine transformation apparatus according to claim 10, wherein the N-point transformation processor incorporates a single eight-coefficient transformation section configured to switch in every eight coefficients between the one-dimensional processing and the two-dimensional processing and subject 8×8 coefficients of data to a discrete cosine transformation or an inverse discrete cosine transformation.
15. A discrete cosine transformation apparatus comprising:
- an input processor which outputs data input one by one, at a rate of L data per clock period for M clock periods;
- an N-point transformation processor which N-point-transforms the data input at the rate of L data per clock period from the input processor and outputs the transformed data at the rate of L data per clock period;
- an output processor which continuously outputs the one-dimensionally transformed data input at the rate of L data per clock period from the N-point transformation processor at the rate of L data per clock period for every M clock periods while rounding N two-dimensionally transformed data input at the rate of L data per clock period in the succeeding M clock periods; and
- a transposition section which transposes N×N data input continuously at the rate of L data per clock period in every M clock periods and reading them continuously at the rate of L data per clock period in every M clock periods.
16. A discrete cosine transformation apparatus according to claim 15, wherein the input processor outputs the data at a rate of two data per clock period, and the N-point transformation processor eight-point transforms the data received at the rate of two data per clock period from the input processor and outputs the transformed data at the rate of two data per clock period.
Type: Application
Filed: Oct 2, 2003
Publication Date: May 26, 2005
Inventor: Yoshiharu Uetani (Kawasaki-shi)
Application Number: 10/676,051