Abstract:
A discrete cosine transform (DCT) circuit providing DCT and inverse DCT results, receiving N input data and a selection signal, includes a first switch for selecting input data or accumulation data, a combining circuit transforming N input data into N/2 combination data, an adding/substracting circuit producing N subtraction and addition data from the combination data, a second switch for selecting one of the input data and the accumulation data, a permutation circuit producing permutated data based on the input data, a third switch for selecting one of the addition and subtraction data and the permutated data, a plurality of transforming circuits coupled to the third switch for transforming and accumulating data to produce the accumulation data, a fourth switch selecting one of the addition and substraction data and the permutated data and a selector circuit operatively coupled to the first and second switches for selecting the outputs of the transforming circuits in a predetermined order. According to one aspect of the invention one of a DCT result and an inverse DCT result are produced in the DCT circuit based on the selection signal. Both one and two dimension DCT results can be produced by the DCT circuit. A DCT circuit producing two-dimensional DCT results further includes a transposition memory device.

Description:
BACKGROUND OF THE INVENTION 
     The present invention relates to a circuit for performing discrete cosine transform (DCT) and, more particularly, to a DCT circuit suitable for integrated circuit implementation and readily applicable to inverse DCT (IDCT) and two-dimensional DCT as well. 
     DCT belongs to a family of orthogonal transform techniques and achieves highly efficient coding of moving picture signals such as a television signal. Since a DCT circuit needs a rapid convolution operation capability, it in most cases has been implemented with a digital signal processor (DSP) or similar signal processing LSI. Today, exclusive LSI&#39;s for DCT operations (DCT LSI) in the form of chips are in development with the help of advancing device fabrication technologies, extended studies on DCT high-speed operation algorithm, etc. Such a DCT LSI was reported by J. C. Carlach et al. in a paper entitled &#34;TCAD: a 27 MHz 8×8 Discrete Cosine Transform Chip&#34; at ICASSP &#39;89 held in Glasgow, Scotland in May 23-26, 1989. The DCT LSI disclosed in this paper executes 8-point one-dimensional DCT by Duhamel Algorithm which will be described. Specifically, this DCT LSI transforms eight input data (assume data x 0  to x 7 ) into eight terms (x 0  ±x 7 ), (x 1  ±x 6 ), (x 2  ±x 5 ) and (x 3  ±x 4 ) by addition and subtraction, thereby halving the required number of times of multiplication by DCT coefficients. Further, the DCT LST converts the value of each term into an read address by a decoder to address a ROM which has stored operation results beforehand, the ROM thus serving as a multiplier. The drawback with the DCT LSI proposed by Carlach et al. is that regarding 8-point DCT, it inputs eight input data x 0  to x 7  at the same time and, therefore, needs complicated circuitry for generating the above-mentioned eight terms (referred to as &#34;shuffling stage&#34; in the paper). Moreover, the paper does not describe any specific circuitry for using DCT LSI as IDCT LSI. 
     SUMMARY OF THE INVENTION 
     It is therefore an object of the present invention to provide a DCT circuit readily operable in either one of DCT and IDCT modes, as desired. 
     It is another object of the present invention to provide a DCT circuit operable in a two-dimensional DCT mode and a circuit for executing DCT operations at high speed. 
     A discrete cosine transform (DCT) circuit of the invention for performs DCT or inverse DCT (IDCT) with N (N=2 x  where x is a natural number) input data in response to a selection signal fed from the outside so as to produce transformed data, comprises a first switch circuit for producing first selected input data by selecting, in response to the selection signal, either one of input data and selected accumulation data produced in said DCT circuit. A combining circuit transforms N of the first selected input data into N/2 combination data each comprising a combination of two predetermined data. An adding and substracting circuit produce N subtraction and addition data by adding first and second data of each of the combination data and subtracting the second data from the first data. A second switch circuit produces second selected input data by selecting, in response to the selection signal, either one of said input data and the selected accumulation data. A permutation circuit outputs permutated data by permutating N of the second selected input data in a predetermined order. A third switch circuit outputs data to be transformed by selecting, in response to the selection signal, either one of the addition and subtraction data and the permutated data. A fourth switch circuit outputs the transformed data by selecting, in response to the selection signal, the other of the permutated data and the addition and subtraction data. An N/2 transforming circuit has an identical construction and performs DCT operations. Each of the N/2 transforming circuit includes a coefficient memory for storing DCT coefficients and IDCT coefficients, a multiplier for reading, in response to the selection signal, either one of the DCT coefficients and the IDCT coefficients out of the memory and multiplying the data to be transformed by the coefficients to produce multiplication data, and an accumulator for accumulating the multiplication data a predetermined number of times to output accumulated data. The DCT circuit of the invention further comprises a selector for selecting the accumulated data from the N/2 transforming circuit in a predetermined order and feeding the selected accumulated data to the first and second switch means as selected accumulated data. 
    
    
     BRIEF DESCRIPTION OF THE DRAWINGS 
     The above and other objects, features and advantages of the present invention will become more apparent from the following detailed description taken with the accompanying drawings in which: 
     FIG. 1 is a block diagram showing a DCT circuit embodying the present invention; 
     FIG. 2 is a block diagram showing an alternative embodiment of the present invention; 
     FIG. 3 is a block diagram showing another alternative embodiment of the present invention; 
     FIG. 4 is a block diagram showing an IDCT circuit implemented with the embodiment of FIG. 3; 
     FIG. 5 is a block diagram showing another alternative embodiment of the present invention; 
     FIGS. 6 and 7 are block diagrams each showing a specific method of constructing a two-dimensional DCT circuit; 
     FIG. 8 is a block diagram showing a two-dimensional DCT circuit using the arrangement of FIG. 6; 
     FIG. 9 is a block diagram showing a specific construction of a preprocess circuit included in the circuit of FIG. 8; and 
     FIG. 10 is a block diagram showing a specific construction of a postprocess circuit also included in the circuit of FIG. 8. 
    
    
     DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS 
     To better understand the present invention, Duhamel Algorithm which the present invention adopts for DCT and IDCT will be outlined. Duhamel Algorithm was presented by the title of &#34;NEW 2 n  DCT ALGORITHMS SUITABLE FOR VLSI IMPLEMENTATION&#34; in ICASSP &#39;87 held in Apr. 6-9, 1987 at Registry Hotel, Texas, U.S.A. Paying attention to the symmetry of DCT coefficients, this algorithm decomposes DCT into polynomial products and then evaluates them by Distributed Arithmetic. Assuming that N (N=2 n  : n is a natural number)-point one-dimensional DCT input data is x j  and output data is y i , the output data y i  is expressed as: ##EQU1## 
     The above equation (1) is represented by a matrix, as follows: 
     
         y=Cx                                                       (2) 
    
     where x is N×1 input data vectors and given by ##EQU2## 
     y is N×1 output data vectors and given by ##EQU3## 
     C is an N×N DCT coefficient matrix and given by ##EQU4## 
     The individual factors C i ,j of the coefficient matrix C is: ##EQU5## 
     The individual factors of the DCT coefficient matrix are related as: 
     
         C.sub.i,j =(-1).sup.i ·C.sub.i, (N-j-1)           (4) 
    
     Assuming that N is &#34;8&#34;, for example, then the equation (2) may be modified by using the above relation, as follows: ##STR1## 
     As the equation (5) indicates, N-point one-dimensional DCT is such that, in an vector x having N data (x 0 , . . . , X N-1 ) as components, N input data are transformed into data combinations (x 0 , x N-1 ), (x 1 , x N-2 ), . . . , (x N/2-1 , x N/2 ), and then the data constituting the combinations are added and subtracted each other to use the results as input data vectors. This is successful in replacing a part of the DCT coefficients with zero and thereby halving the required number of times of multiplication of DCT coefficients and input data vector factors. Likewise, regarding IDCT, assuming that an input data vector and an output data vector are y(y 0 , y 1 , . . . , y N-1 ) and x(x 0 , x 1 , . . . , x N-1 ), and that the N×N IDCT coefficient matrix is D, then ##STR2## 
     As the equations (6a) and (6b) indicate, in N-point one-dimensional IDCT, separating the N components (y 0 , y 1 , . . . , y N-1 ) of the input data vector into even components and odd components is successful in replacing one half of the IDCT coefficients with zero and thereby halving the required number of times of multiplication of IDCT coefficients and input data vector. By combining the convolution results of IDCT coefficients and individual components y 0  to y 7  and then adding and subtracting the elements constituting each combination data, it is possible to produce x 0  to x 7  which are the IDCT results. 
     Referring to FIG. 1 of the drawings, a DCT circuit embodying the present invention will be described. As shown, the DCT circuit has a data input terminal 300, a first to a fourth switch 306 to 309, a first to a fourth convolution operation circuit 310 to 313, a first and a second register 303 and 305, an adder/subtractor 302, a combining circuit 301, a permutation circuit 304, a selector 390, and a data output terminal 391. This embodiment is configured to execute 8-point one-dimensional DCT and IDCT. In a DCT mode, input data having a predetermined number of bits is applied via the data input terminal 300 to one input terminal of the first and second switches 306 and 307. The results of convolution operations are fed to the other input terminal of the switches 306 and 307 from the selector 390, as will be described. Controlled by a controller, not shown, the switches 306 and 307 each selects one of such two different inputs at a time. Specifically, as shown FIG. 1, the switch 306 selects one input terminal to feed the input data to the combining circuit 301 while the switch 307 selects the other input terminal to feed a result of convolution operation from the selector 390 to the permutation circuit 304. Conversely, in an IDCT mode, the switches 306 and 307 select the result of convolution operations and input data, respectively. The combining circuit 301 is implemented with, for example, a shift register, a selector and a ROM storing combination information and outputs each two input data in a predetermined combination at a time. Specifically, receiving the input data x 0  to x 7 , the combining circuit 301 sequentially delivers (x 0 , x 7 ), (x 1 , x 6 ), (x 2 , x 5 ), (x 3 , x 4 ), (x 0 , x 7 ), (x 1 , x 6 ), (x 2 , x 5 ) and (x 3 , x 4 ) in this order to the adder/subtractor 302. In response, the adder/subtractor 302 performs, for example, addition with each of the preceding four combinations of data and subtraction with each of the succeeding combinations of data, feeding the results to the first register 303 one after another. As a result, the register 303 sequentially memorizes eight sum data and difference data, i.e., (x 0  +x 7 ), (x 1  +x 6 ), (x 2  +x 5 ), (x 3  +x 4 ), (x 0  -x 7 ), (x 1  -x 6 ), (x 2  -x 5 ) and (x 3  -x 4 ) while sequentially feeding them to one input terminal of the third and fourth switches 308 and 309. In a DCT mode, the switch 308 selects one input terminal thereof to deliver the sum and difference data to the first to fourth convolution operation circuits 310 to 313 having an identical construction. Specifically, the convolution operation circuits 310 to 313 perform convolution operations with the first to fourth sum data {(x 0  +x 7 ), (x 1  +x 6 ), (x 2  -x 5 ), (x 3  +x 4 )} by using DCT coefficients stored in individual memories. The resultant first to fourth convolution data (y 0 , y 2 , y 4 , y 6 ) are fed from the circuits 310 to 313 to the selector 390. The selector 390 selects one of such first to fourth convolution data at a time and feeds it to the permutation circuit 304 via the switch 307. Subsequently, the circuits 310 to 313 perform convolution operations with the fifth to eighth data or substraction data {(x 0  -x 7 ), (x 1  -x 6 ), (x 2  -x 5 ), (x 3  -x 4 )} as with the first to fourth data. The resultant fifth to eighth convolution data (y 1 , y 3 , y 5 , y 7 ) are also sequentially fed from the circuits 310 to 313 to the permutation circuit 304 via the selector 390. The permutation circuit 304 has, for example, a registor, a selector and a ROM storing selection information meant for the selector and permutates the first to eight data fed thereto from the selector 390 as mentioned above. The permutated data, i.e., DCT results y 0  to y 7  are fed out from the permutation circuit 304 one after another. The DCT results each is temporarily stored in the second register 305 and then fed out via the fourth switch 309 and output terminal 391. 
     In an IDCT mode, the switches 306 to 309 each is switched to the opposite state to the state shown in FIG. 1. Then, input data from the input terminal 300 is routed to the permutation circuit 304. At this time, the permutation circuit 304 permutates the first and eighth input data y 0  to y 7  as (y 0 , y 2 , y 4 , y 6 , y 1 , y 3 , y 5 , y 7 ) and delivers them to the convolution operation circuits 310 to 313 via the register 305 and switch 308. By reading IDCT coefficients out of individual coefficient memories, the circuits 310 to 313 perform convolution operations with the data y 0 , y 2 , y 4  and y 6  to feed the resultant first to fourth convolution data z 0 , z 2 , z 4  and z 6  to the selector 390. In response, the selector 390 sequentially delivers the data z 0  to z 6  to the combining circuit 301 via the switch 306. Subsequently, the circuits 310 to 313 perform convolution operations with the data y 1 , y 3 , y 5  and y 7  and feeds the resultant fifth to eighth convolution data z 1 , z 3 , z 5  and z 7  to the selector 390. Again, the selector 390 delivers such data z 1 , z 3 , z 5 , z 7  one by one to the combining circuit 301 via the switch 306. The combining circuit 301 combines the first to eighth convolution data z 0  to z 7  to produce first to fourth combination data (z 0 , z 1 ), (z 2 , z 3  ), (z 4 , z 5 ) and (z 6 , z 7 ) and sequentially feeds them to the adder/subtractor 302. Then, the adder/subtractor 302 performs addition and subtraction with each of the first to fourth combination data to produce (z 0  +z 1 ), (z 2  +z 3 ), (z 4  +z 5 ), (z 6  +z 7 ), (z 0  -z 1 ), (z 2  -z 3 ), (z 4  -z 5 ) and (z 6  -z 7 ). These sum and difference data are sequentially fed out via the register 303, switch 309 and output terminal 391 as IDCT results (x 0  to x 7 ) each being associated with respective one of the input data (y 0  to y 7 ). 
     A specific construction of the first convolution operation circuit 310 is shown in FIG. 1. It is to be noted that the construction and operation which will be described is also true with the second to fourth convolution operation circuits 311 to 313. As shown, the convolution operation circuit 310 is made up of a coefficient memory 320 in which DCT coefficients and IDCT coefficients are stored beforehand, a multiplier 330, a third and a fourth register 340 and 370, an adder 350, and an accumulator 360. The multiplier 330 is connected at one input terminal to the switch 308 and at the other input terminal to the coefficient memory 320. In a DCT mode, the multiplier 330 multiplies sum and difference data from the register 303 and DCT coefficients read out of the coefficient memory 320 while, in an IDCT mode, it multiplies permutated input data from the register 305 and IDCT coefficients read out of the memory 320. The result of multiplication is fed to one input terminal of the adder 350 via the register 340. The adder 350 adds the result of multiplication fed from the register 340 and the cumulative value fed from the accumulator 360 and applies the sum to the accumulator 360 as a new cumulative value. The accumulator 360 temporarily stores the cumulative value fed from the adder 350 and, in synchronism with the data output from the register 340, delivers the cumulative value to the other input terminal of the adder 350. The output value of the accumulator 360 is also applied to the register 370. The register 370 memorizes the cumulative value of the accumulator 360 at a predetermined period, i.e., every time the convolution operation is effected a predetermined number of times and feeds it to the selector 390 as convolution data. In the illustrative embodiment, in both of the DCT and IDCT modes, desired data is produced by four consecutive times of convolution operation. For example, the component Y 0  of the output data vector y is produced by C 0 ,0 x (x 0  +x 7 )+C 0 ,1 x (x 1  +x 6 )+C 0 ,2 x (x 2  +x 5 )+C 0 ,3 x (x 3  +x 4 ), as seen from the equation (5). Hence, the register 370 latches the cumulative value of the accumulator 360 every time the convolution operation is executed four times, while delivering it to the selector 390 as convolution data. At this instant, the accumulator 360 is cleared to perform another convolution operation. Such a sequences of steps is executed in parallel by all of the four convolution operation circuits 310 to 313. A control circuit, not shown, operates the switches 306 to 309, conditions the adder/subtractor 302 selectively for addition or subtraction, controls the combining circuit 301 and permutation circuit 304, controls the operation timings of registers 303, 305, 340 and 370, controls the read-out of data out of the coefficient memories 320, clears the accumulators 360, and controls the selector 390. In summary, the embodiment of FIG. 1 has the switches 306 to 309 to set up particular data paths for each of a DCT mode and an IDCT mode and changes over the characteristics of the combining circuits 301 and permutation circuit 304 as well as the read addresses of the coefficient memories 320. The embodiment, therefore, implements a simple DCT circuit having both of DCT and IDCT capabilities. 
     FIG. 2 shows an alternative embodiment of the present invention which additionally achieves the function of an FIR (Finite Impulse Response) filter by use of the convolution operation circuits 310 to 313, FIG. 1. In the figures, the same or similar components are designated by like reference numerals, and redundant description will be avoided for simplicity. This embodiment differs from the previous embodiment as to the arrangement of a third and a fourth switch 408 and 409 and the construction of the first to fourth convolution operation circuits 410 to 413. Since the convolution operation circuits 410 and 413 are identical in construction, let the following description concentrate on the circuit 410. As shown, the circuit 410 has a second selector 480 between the accumulator 360 and the adder 350. The second selector 480 is connected at one input terminal to the accumulator 360 and at the other input terminal to the accumulator of the adjacent convolution operation circuit (in this case, the circuit 411). Controlled by a controller, not shown, the selector 480 selects either one of the outputs of the two accumulators and feeds it to the adder 350. In this embodiment, each of the third and the fourth switches 408 and 409 has a first to a third input terminal, as shown FIG. 2. Specifically, in a DCT on IDCT mode, the third and the fourth switches select second or third input terminals, respectively, and in both modes, the selector 480 selects the output of the accumulator 360 belonging to the same circuit 410 as the selector 480, thereby implementing the function discussed with reference to FIG. 1. On the other hand, in an FIR filter mode, the selector 48 selects the output of the accumulator of the adjacent convolution operation circuit. At this instant, as shown in FIG. 2, the third and fourth switches 408 and 409 select the first input terminal. Specifically, the switch 408 selects the output terminal 300 to feed the input data directly to the convolution operation circuits 410 to 413, while the switch 409 selects the output of the accumulator 360 of the circuit 310 to deliver it to the output terminal 391. The coefficient memory 320 stores filter coefficients so that, in an FIR filter mode, the filter coefficients may be read thereoutof to effect multiplication. DCT and IDCT mode operations are the same as in the previous embodiment and, therefore, will not be described for simplicity. 
     Another alternative embodiment of the present invention which realizes fast DCT is shown in FIG. 3. In the embodiments shown in FIGS. 1 and 2, 8-point one-dimensional inverse DCT (IDCT) operation is implemented by four convolution operation circuits and by producing eight different results of transform, or components, in two consecutive stages. This, however, requires a substantial operating time although reducing the circuit scale. In this particular embodiment, the same number of convolution operation circuits as the point are used to effect parallel procesing and thereby to enhance fast operations. FIG. 3 shows an 8-point one-dimensional DCT circuit in which the combining circuit 301 combines input data (x 0  to x 7 ) from the input terminal 300 to produce four combination data (x 0 , x 7 ), (x 1 , x 6 ), (x 2 , x 5 ) and (x 3 , x 4 ), as in the embodiments of FIGS. 1 and 2. These four combination data are applied to an adder 102 and a subtractor 103 which are independent of each other, whereby an addition term and a subtraction term are produced at the same time. The adder 102 delivers the addition term to, for example, the first to fourth convolution operation circuits 310 to 313, while the subtractor 103 feeds the subtraction term to a fifth to an eighth convolution operation circuit 314 to 317. The convolution operation circuits 310 to 317 each performs the convolution operation with the addition term or the subtraction term by reading a DCT coefficient out of the coefficient memory 320 thereof. The convolution results are fed from the individual circuits 310 to 317 to a selector 180. Each of these circuits 310 to 317 is constructed in the same manner as shown in FIG. 1, and redundant description will be avoided for simplicity. The selector 180 sequentially selects the first to eighth convolution data and delivers them to the output terminal 391 as DCT results y 0  to y 7 . The addition term and subtraction term and the DCT coefficients are related, as follows. The combining circuit 301 outputs data (x 0 , x 7 ) first. Then, adder 102 and the substractor 103 produce (x 0  +x 7 ) and (x 0  -x 7 ), respectively. The first to fourth convolution circuits 310 to 313 read respectively DCT coefficients C 0 ,0, C 2 ,0, C 4 ,0 and C 6 ,0 (see equation (5)) out their DCT memories and multiply (x 0  +x 7 ) by them. Likewise, the fifth to eighth convolution operation circuits 314 to 317 read respectively DCT coefficients C 1 ,0, C 3 ,0, C 5 ,0 and C 7 ,0 out of their DCT memories and multiply (x 0  -x 7 ) by them. Thus, all that is required is storing the elements on the first to eight lines of the 8×8 DCT coefficient matrix of the equation (5) except for &#34; 0&#34; in the coefficient memories of the first to eighth circuits 310 to 317, respectively, sequentially reading them out in response to the changes in the addition term (subtraction term), multiplying the addition term (substraction term) by the DCT coefficients by the multiplier 330, and accumulating the result of multiplication in the accumulator 360. Obviously, therefore, the construction shown in FIG. 3 halves the required operating time, compared to the construction of FIGS. 1 or 2. 
     FIG. 4 is a block diagram schematically showing an IDCT circuit implemented with the construction of FIG. 3. In the figure, the combining circuit 301 combines input data (y 0  to y 7 ) fed from the input terminal 300 to produce combination data (y 0 , y 1 ), (y 2 , y 3 ), (y 4 , y 5 ) and (y 6 , y 7 ). Assume that the first elements and the second elements of the individual combination data are applied to the first to fourth and the fifth to eighth convolution operation circuits 310 to 313 and 314 to 317, respectively. The coefficient memories of the first to eighth circuits 310 to 317 store respectively the IDCT coefficients other than &#34;0&#34; which constitute the 8×8 IDCT coefficient matrix of the equation (6) (e.g. the coefficient memory 320 of the first circuit 310 stores (d 0 ,0, d 0 ,2, d 0 ,4, d 0 ,6)), so that convolution operation may be performed as in the DCT circuit of FIG. 3. As a result, first to fourth convolution data z 0 , z 2 , z 4  and z 6  are fed to a first selector 280 while fifth to eighth convolution data z 1 , z 3 , z 5  and z 7  are fed to a second selector 281. The selector 280 sequentially selects z 0 , z 2 , z 4  and z 6  in this order while the selector 281 sequentially selects z 1 , z 3 , z 5  and z 7  in this order. The outputs of the selectors 280 and 281 are applied to both of an adder 282 and a subtractor 283. In response, the adder 282 and the subtractor 283 produce respectively x 0  =z 0  +z 1  and x 4  =z 0  -z 1  and deliver them to a permutation circuit 284. Thereafter, the adder 282 and the subtractor 282 deliver respectively x 1 , x 2  and x 3  and x 5 , x 6  and x 7  to the permutation circuit 284 in this order. On receiving all of the data x 0  to x 7 , the permutation circuit 284 sequentially selects them in the same order while feeding them out via a terminal 285. 
     FIG. 5 shows a DCT/IDCT circuit which is the combination of the DCT circuit of FIG. 3 and the IDCT circuit of FIG. 4. In the figure, input data (x 0  to x 7  in a DCT mode or Y 0  to Y 7  in an IDCT mode and collectively represented by s 0  to s 7  hereinafter) are applied to a first and a second combining circuit 307 and 301 in parallel. In response, the combining circuit 307 produce four combination data (s 0 , s 1 ), (s 2 , s 3 ), (s 4 , s 5 ) and (s 6 , s 7 ) and feeds the first and second members of each data to a first and a second selector 305, respectively. On the other hand, the combining circuit 301 produces four combination data (s 0 , s 7 ), (s 1 , s 6 ), (s 2 , s 5 ) and (s 3 , s 4 ) and delivers them to an adder 302 and a subtractor 303. The adder 302 and the subtractor 303 in turn produce an addition term {(s 0  +s.sub. 7), (s 1  +s 6 ), (s 2  +s 3 ), (s 3  +s 4 )} and a subtraction term {(s 0  -s 7 ), (s 1  -s 6 ), (s 2  -s 5 ), (s 3  -s 4 )}, respectively. The addition output of the adder 302 is fed to the selector 305, for example, while the subtraction output of the subtractor 303 is fed to the selector 306. In a DCT mode, the selectors 305 and 306 select, for example, the addition term and the subtraction term outputted by the adder 302 and the subtractor 303, respectively. In an IDCT mode, the selectors 305 and 306 select respectively the first members and the second members of the combination data outputted by the combining circuit 307. The data selected by the selector 305 and the data selected by the selector 306 are applied to a first to a fourth convolution operation circuit 310 to 313 and a fifth to an eighth convolution operation circuit 314 to 317, respectively. The circuits 310 to 317 read DCT coefficients or IDCT coefficients out of the individual coefficient memories, perform convolution operations, and output the resulted first to eighth convolution data m 0  to m 7 , respectively, as in the specific configuration shown in FIGS. 3 or 4. The first to fourth convolution data m 0  to m 3  and the fifth to eighth convolution data m 4  to m 7  are applied to a third and a fourth selector 380 and 381, respectively. Selecting respectively the first to fourth data and the fifth to eighth data in this order, the selectors 380 and 381 feed them to a second adder 382, a second subtractor 383, and a permutation/selection circuit 384. In a DCT mode, since the first to eighth convolution data m 0  to m 7  correspond respectively to Y 0 , Y 2 , Y 4 , Y 6 , Y 1 , Y 3 , Y 5  and Y 7  of the equation (5), the permutation/selection circuit 384 directly receives selection outputs of the selectors 380 and 381 and outputs Y 0  to Y 7  in this order. In an IDCT mode, the first to eighth convolution data m 0  to m 7  correspond respectively to z 0 , z 2 , z 4 , z 6 , z 1 , z 3 , z 5  and z 7  of the equation (6). Hence, the permutation/selection circuit 384 permutates the outputs x 0  to x 3  of the adder 382 and the outputs x 4  to x 7  of the subtractor 383 and feed them out in the order of x 0 , x 1 , x 2 , x 3 , x 4 , x 5 , x 6  and x 7 . The specific construction shown in FIG. 5 implements a combined rapid DCT/IDCT circuit. In the embodiments of FIGS. 3 through 5, thr DCT/IDCT switching, combining circuits, permutating circuits and memories are controlled by a controller, not shown, in the same manner as in the embodiments of FIGS. 1 and 2. 
     All the DCT (or IDCT or combined DCT/IDCT) circuits described above are directed toward one-dimensional DCT. A two-dimensional transform circuit may be implemented with any one of such one-dimensional transform circuit, as follows. FIG. 6 shows a specific construction of a two-dimensional transform circuit using one-dimensional transform circuits. 
     Two-dimensional DCT is achievable by transpositioning the result of one-dimensional DCT and again subjecting it to one-dimensional DCT, as well known in the art. The circuitry of FIG. 6, therefore, has a first one-dimensional DCT circuit 600 for performing DCT with input data coming in through a terminal 600, a transposition memory 602 for transpositioning the result of transform, and a second one-dimensional DCT circuit 603 for subjecting the output of the memory 602 again to one-dimensional DCT. 
     FIG. 7 shows another specific construction of the two-dimensional DCT circuit. The circuitry of FIG. 6 has two one-dimensional DCT circuits 601 and 603, but it does not use them at the same time. By contract, the circuitry of FIG. 7 implements two-dimensional DCT by use of a single one-dimensional DCT circuit. Specifically, input data applied to a terminal 500 is routed through a first switch 501 to a one-dimensional DCT circuit 502 and thereby subjected to the first one-dimensional DCT. The result of transform is delivered to a transposition memory 504 via a second switch 503. In response, the memory 504 transpositions the result of transform represented by a matrix and outputs it as transposition data. For the transposition, data may be written to the memory 504 in the row direction and read thereout of in the column direction. On the completion of the first one-dimensional DCT, the input of the switch 501 is connected to the memory 504 while the output of the switch 503 is connected to an output terminal 505. As a result, the transposition data is routed through the switch 501 to the DCT circuit 502 to undergo second one-dimensional DCT. The DCT circuit 502 feeds the result of second DCT as a two-dimensional DCT result to the output terminal 505. Of course, the one-dimensional DCT circuit or circuits shown in FIGS. 7 or 6 may be replaced with a one-dimensional IDCT circuit or circuits to effect two-dimensional IDCT. Further, any of the circuits shown in FIGS. 1 through 5 may be used to construct combined one-dimensional DCT/IDCT circuitry. 
     Referring to FIG. 8, combined two-dimensional DCT/IDCT circuitry using the construction of FIG. 6 is shown. As shown, the circuitry has a first and a second one-dimensional DCT/IDCT circuit 510 and 520, a first and a second transposition memory 530 and 540, and a first and a second control circuit 550 and 560 for controlling various sections associated therewith. The first one-dimensional DCT/IDCT circuit 510 has a preprocess circuit 511, a convolution operator 512, a postprocess circuit 514, a rounding circuit 515, and a coefficient memory 513. The preprocess circuit 511 and postprocess circuit 514 each includes the combining circuit, adder/subtractor and permutation circuit which have been described with reference to FIGS. 1 and 2, for example. Either one of these circuits 511 and 514 is selected depending on the operation mode set up, i.e., DCT mode or IDCT mode. The convolution operator 512 and coefficient memory 513 constitute the convolution operation circuit shown in any of FIGS. 1 through 5. The rounding circuit 515 rounds off the DCT/IDCT result to a desired number of bits which is dependent on the number of bits of input data, the number of bits of DCT/IDCT coefficient, the required accuracy of transform result, etc. The second DCT/IDCT circuit 520 is identical in construction with the first DCT/IDCT circuit 510. The first transposition memory 530 corresponds to the transposition memory shown in FIGS. 6 and 7 while the second transposition memory 540 functions to transposition the two-dimensional DCT/IDCT result. In the two-dimensional DCT/IDCT circuitry shown in FIGS. 6 or 7, the transformed data resulted from two-dimensional DCT/IDCT have a transpositional relation with input data. Therefore, this embodiment has the second transposition memory 540 for matching the input data and the two-dimensional DCT/IDCT result associated therewith. However, this memory 540 is not necessary in the case that the transpositioned DCT/IDCT result is used by the succeeding circuitry as it is. The first control circuit 550 performs control relating to the first one-dimensional DCT/IDCT circuit 510 and first transposition memory 530, while the second control circuit 560 performs control relating to the second one-dimensional DCT/IDCT circuit 520 and second transposition memory 540. The one-dimensional DCT/IDCT circuits 510 and 520 each is operated in the same manner as the combined DCT/IDCT circuitry of FIGS. 1 or 5, and they cooperate as two-dimensional DCT/IDCT circuitry in the manner described with reference to FIG. 6. Briefly, in a two-dimensional DCT mode, the preprocess circuits 511 and 521 each plays the role of a combining circuit and an adder/subtractor, while the postprocess circuits 514 and 524 each serves the function of a permutation circuit. The control circuits 550 and 560 perform various kinds of control such as the control over the read-out of DCT coefficients from the associated coefficient memories 513 and 523 and suitable for the associated convolution operators, the control over the write-in and read-out of transform results from the associated transposition memories 530 and 540. On the other hand, in a two-dimensional IDCT mode, the preprocess circuits 511 and 521 each serves as a permutation circuit while the postprocess circuits 514 and 524 each serves as a combining circuit and an adder/subtractor. In this mode of operation, the control circuits 550 and 560 causes IDCT coefficients to be read out of the associated coefficient memories and fed to the convolution operators 512 and 522 in place of DCT coefficients. 
     FIG. 9 shows a specific construction of any of the proprocess circuits 511 and 521 of FIG. 8, which implements 8×8 two-dimensional DCT/IDCT. It is to be noted that 8×8 two-dimensional DCT/IDCT allows eight times of 8×1 (8-point one-dimensional) DCT/IDCT to be handled collectively and, therefore, the operation is the same as the operation to be performed by the combining circuit and permutation circuit included in an 8-point one-dimensional DCT/IDCT circuit. In FIG. 9, the preprocess circuit 511 has a first to a seventeenth register 610 to 621, 625 to 627, 629 and 630, a first to a fourth selector 622 to 624 and 631, and an adder/subtractor 628. Constituting a 12-stage shift register in combination, the registers 610 to 621 each delays an input thereto by one period of a fundamental clock which is fed from a clock signal source, not shown. Such a shift register cooperates with the first and second selectors 622 and 623 and the thirteenth and fourteenth registers 625 and 626 to constitute a combining circuit. Likewise, the shift register cooperates with the third selector 624 and fifteenth register 627 to constitute a permutation circuit. The adder/subtractor 628, like the adder/subtractor 301 of FIG. 1, outputs an addition term and a subtraction term by using combined data fed thereto from the registers 625 and 626. The sixteenth and seventeenth registers 629 and 630 are timing adjusting registers for causing the addition and subtraction terms from the adder/subtractor 628 and the selected data from the fifteenth register 627 to reach the fourth selector 631 at the same time. The selector 631 selects, in a DCT mode, the addition and subtraction terms from the register 629 or selects, in an IDCT mode, permutated data from the register 630, delivering it to the convolution operator 512. Input data such as x 0  to x 7  are constantly shifted in the registers, or shift register, 610 to 621. Assume that x 0  to x 7  exist respectively in the registers 617 to 610 at a given timing. Then, at the next timing, x 0  to x 7   are bodily moved to the right direction with the result that x 0  and x 7  are stored in the registers 618 and 611, respectively. At this instant, the leading data of the next input data vector (x&#39; 0 , x&#39; 1 , . . . , x&#39; 7 ), i.e., x&#39; 0  is stored in the register 610. In this manner, the data stored in the registers 610 to 621 constantly change every period of the fundamental clock. What and when the selectors 622 and 624 should select is controlled by the control circuit 550. 
     FIG. 10 shows a specific construction of the postprocess circuit 514 associated with the preprocess circuit of FIG. 9. As shown, the postprocess circuit 514, like the preprocess circuit, has a first to a twelfth register 710 to 720 constituting a 12-stage shift register, a first to a fourth selector 722 to 724 and 731, an adder/subtractor 728, and a thirteenth to seventeenth register 725 to 727, 729 and 730. The selector 722, register 725 and shift register constitute a permutation circuit while the selectors 723 and 724, register 726 and shift register constitute a combining circuit. The postprocess circuit 514 operates in the same manner as the preprocess circuit of FIG. 9 except that it selects the permutated data from the register 729 in a DCT mode or the addition and subtraction results from the register 730 in an IDCT mode. Selection commands meant for the selectors 722 to 724 are also fed from the control circuit 550. 
     In summary, the present invention provides a simple DCT/IDCT circuit capable of executing either one of DCT and IDCT with input data selectively and at high speed. In addition, the present invention readily implements the application of such a DCT/IDCT circuit to a two-dimensional DCT/IDCT circuit. 
     Various modifications will become possible for those skilled in the art after receiving the teachings of the present disclosure without departing from the scope thereof.