JPH04137975A - Inverse orthogonal transformation method and circuit - Google Patents

Inverse orthogonal transformation method and circuit

Info

Publication number
JPH04137975A
JPH04137975A JP2259484A JP25948490A JPH04137975A JP H04137975 A JPH04137975 A JP H04137975A JP 2259484 A JP2259484 A JP 2259484A JP 25948490 A JP25948490 A JP 25948490A JP H04137975 A JPH04137975 A JP H04137975A
Authority
JP
Japan
Prior art keywords
result
transformation
column
conversion
inverse
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP2259484A
Other languages
Japanese (ja)
Other versions
JP2802158B2 (en
Inventor
Masahiro Fukuda
昌弘 福田
Tsuguo Noda
嗣男 野田
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fujitsu Ltd
Original Assignee
Fujitsu Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP25948490A priority Critical patent/JP2802158B2/en
Priority to DE69131808T priority patent/DE69131808T2/en
Priority to EP91306971A priority patent/EP0469855B1/en
Priority to US07/738,236 priority patent/US5416854A/en
Priority to CA002048204A priority patent/CA2048204C/en
Priority to KR1019910013213A priority patent/KR960003648B1/en
Publication of JPH04137975A publication Critical patent/JPH04137975A/en
Priority to US08/248,516 priority patent/US7142720B1/en
Priority to US08/828,562 priority patent/US5875266A/en
Priority to US08/834,769 priority patent/US5933538A/en
Priority to US08/832,962 priority patent/US5933533A/en
Application granted granted Critical
Publication of JP2802158B2 publication Critical patent/JP2802158B2/en
Priority to US09/246,966 priority patent/US6549667B1/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T9/00Image coding
    • G06T9/007Transform coding, e.g. discrete cosine transform

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Discrete Mathematics (AREA)
  • Multimedia (AREA)
  • Theoretical Computer Science (AREA)
  • Image Processing (AREA)
  • Compression Or Coding Systems Of Tv Signals (AREA)

Abstract

PURPOSE:To attain high speed processing with a small sized circuit by applying orthogonal transformation processing only to a partial column including a valid coefficient extracted from a matrix whose elements are DCT coefficients. CONSTITUTION:In the case of the inverse orthogonal transformation method for a decoder, in which a picture data is subject to 2-dimension orthogonal transformation to each block comprising NXN picture elements, the result is quantized and coded and the obtained input code is decoded and subject to inverse quantization and 2-dimension inverse orthogonal transformation, each column of a coefficient matrix comprising N-row and N-column being the result of 2-dimension orthogonal transformation of a block of the picture data is divided into a partial column including a prescribed number of components respectively and a partial column including a valid coefficient having a value other than zero is extracted among the divided partial columns, the operation equivalent to linear orthogonal transformation is implemented to each component of the extracted partial column, the result of the operation corresponding to the extracted partial column is outputted as a component of a column corresponding to the result of linear inverse transformation and the 2nd-dimension orthogonal transformation is implemented to the result of the linear inverse transformation to obtain the picture data.

Description

【発明の詳細な説明】 〔目 次〕 概要 産業上の利用分野 従来の技術(第10図〜第16図) 発明が解決しようとする課題 課題を解決するための手段(第1図) 作用 実施例(第2図〜第9図) 発明の効果 〔概 要] 例えば中間階調画像やカラー画像などの多値画像の圧縮
に用いられる適応2次元離散コサイン変換符号化方弐に
よる符号に基づいて、画像データを復元する画像データ
復元装置に用いられる逆直交変換方法および逆直交変換
回路に関し、小型の回路で高速処理を可能とすることを
目的とし、 N×N画素からなるブロックごとに画像データを2次元
直交変換した結果を量子化した後に符号化して得られた
入力符号を復号し、逆量子化し、2次元逆直交変換して
、画像データを復元する復元装置の逆直交変換方法にお
いて、画像データのブロックの2次元直交変換結果であ
るN行N列の係数行列の各列をそれぞれ所定の数の成分
を含む部分列に分割し、部分列の中から、零以外の値を
有する有効係数を含む部分列を抽出し、抽出された部分
列の各成分に対して、1次元直交変換に相当する演算を
行い、抽出された部分列に対応する演算結果を1次元逆
変換結果の対応する列の成分として出力し、この1次元
逆変換結果に対して、2次元目の直交変換を行って画像
データを得る方法である。
[Detailed description of the invention] [Table of contents] Overview Industrial field of application Prior art (Figures 10 to 16) Means for solving the problem to be solved by the invention (Figure 1) Operation implementation Example (Figures 2 to 9) Effects of the invention [Summary] Based on a code using adaptive two-dimensional discrete cosine transform encoding method 2, which is used for compressing multivalued images such as halftone images and color images. , regarding an inverse orthogonal transform method and an inverse orthogonal transform circuit used in an image data restoration device that restores image data, the purpose is to enable high-speed processing with a small circuit. In an inverse orthogonal transform method of a restoration device, the input code obtained by quantizing and encoding the result of two-dimensional orthogonal transform is decoded, dequantized, and two-dimensional inverse orthogonal transform is performed to restore image data. Each column of an N-by-N coefficient matrix, which is the result of two-dimensional orthogonal transformation of a block of image data, is divided into sub-sequences each containing a predetermined number of components, and from among the sub-sequences, valid elements with values other than zero are selected. A subsequence containing coefficients is extracted, an operation equivalent to one-dimensional orthogonal transformation is performed on each component of the extracted subsequence, and the operation result corresponding to the extracted subsequence is converted into a correspondence with the one-dimensional inverse transformation result. In this method, image data is obtained by outputting the image data as a column component, and performing a second-dimensional orthogonal transformation on this one-dimensional inverse transformation result.

〔産業上の利用分野〕[Industrial application field]

本発明は、例えば中間階調画像やカラー画像などの多値
画像の圧縮に用いられる適応2次元離散コサイン変換符
号化方式による符号に基づいて、画像データを復元する
画像復元装置の逆直交変換方法および逆直交変換回路に
関するものである。
The present invention provides an inverse orthogonal transform method for an image restoration device that restores image data based on a code based on an adaptive two-dimensional discrete cosine transform encoding method used for compressing multivalued images such as halftone images and color images. and an inverse orthogonal transform circuit.

中間階調画像やカラー画像などの多値画像を表す画像デ
ータをその特徴を損なうことなく圧縮する符号化方式と
して、直交変換を利用した適応離散コサイン変換符号化
方式(^daptive DiscreteCosin
e Transfor+n、以下ADCT方式と称する
)が広く用いられている。
An adaptive discrete cosine transform coding method (^adaptive DiscreteCosin) that uses orthogonal transform is used as a coding method to compress image data representing multivalued images such as halftone images and color images without losing their characteristics.
e Transfer+n (hereinafter referred to as ADCT method) is widely used.

このADCT方式を用いた画像圧縮装置においては、多
値画像を例えば8画素×8画素のブロックに分割し、こ
れらのブロックのそれぞれと所定の変換定数からなる行
列との乗算を行い、この直交変換結果を符号化している
。従って、この符号から元の画像を復元するためには、
この符号を復号して得られる直交変換結果を別の変換定
数からなる行列を用いて再び直交変換を行うことにより
、逆変換する必要がある。
In an image compression device using this ADCT method, a multivalued image is divided into blocks of, for example, 8 pixels x 8 pixels, each of these blocks is multiplied by a matrix consisting of a predetermined transformation constant, and this orthogonal transformation is performed. The result is encoded. Therefore, in order to restore the original image from this code,
It is necessary to inverse transform the orthogonal transform result obtained by decoding this code by performing orthogonal transform again using a matrix consisting of another transform constant.

〔従来の技術〕[Conventional technology]

第11図に、ADCT方式を適用した画像圧縮装置の構
成を示す。また、第12図に、多値画像を分割して得ら
れるブロックの例を示す。
FIG. 11 shows the configuration of an image compression device to which the ADCT method is applied. Further, FIG. 12 shows an example of blocks obtained by dividing a multivalued image.

DCT変換部711は、入力されるブロックと上述した
変換定数の行列との乗算を行うことにより、2次元離散
コサイン変換(以下、DCTと称する)処理を行う。こ
れにより、各ブロックの画像の空間周波数分布を表すD
CT係数りとして、第13図に示すような8行8列の行
列が生成される。
The DCT transformation unit 711 performs two-dimensional discrete cosine transformation (hereinafter referred to as DCT) processing by multiplying the input block by the matrix of transformation constants described above. As a result, D represents the spatial frequency distribution of the image of each block.
As the CT coefficients, a matrix of 8 rows and 8 columns as shown in FIG. 13 is generated.

このDCT係数りの各成分は、線型量子化部721にお
いて、各空間周波数成分に対する視覚の感度に基づいて
求められた量子化閾値QTHを用いて量子化され、量子
化係数I)ouが算出される。この量子化閾値Q T 
Hは、実験結果に基づいて決められた量子化マトリクス
■、Hに所定の係数を乗じたものである。
Each component of this DCT coefficient is quantized in a linear quantization unit 721 using a quantization threshold QTH determined based on visual sensitivity to each spatial frequency component, and a quantization coefficient I)ou is calculated. Ru. This quantization threshold Q T
H is a quantization matrix (2) determined based on experimental results, and H is multiplied by a predetermined coefficient.

−gに、低い空間周波数に対する視覚の感度は高く、高
い空間周波数に対する視覚の感度は低いので、第14図
に示すように、低い空間周波数に対応する量子化マトリ
クスVtHの成分の絶対値は小さく、逆に、高く空間周
波数に対応する成分の絶対値は大きい。このため、量子
化係数I)ouは、第15図に示すように、DC成分を
示す行列の左上隅の成分と低い空間周波数成分を示す極
く少数のAC成分のみが、数値rO」以外の値を有する
有効係数となり、大部分のAC成分は値がrQJである
無効係数となる場合が多い。
-g, the visual sensitivity to low spatial frequencies is high and the visual sensitivity to high spatial frequencies is low, so as shown in Figure 14, the absolute value of the component of the quantization matrix VtH corresponding to low spatial frequencies is small. , conversely, the absolute value of the component corresponding to a high spatial frequency is large. Therefore, as shown in Fig. 15, the quantization coefficient I Most AC components are effective coefficients having a value rQJ, and most AC components are often invalid coefficients having a value rQJ.

この量子化係数D0の各成分は、第16図に示すような
ジグザグスキャンと呼ばれる走査順序に従って1次元デ
ータに変換され、符号化部731に人力される。この符
号化部731によって、各有効係数の値とその有効係数
の前の有効係数との間にある無効係数の数との組を符号
化することにより、1ブロツクに対応する量子化係数I
)ouが圧縮符号化される。
Each component of this quantization coefficient D0 is converted into one-dimensional data according to a scanning order called zigzag scan as shown in FIG. The encoding unit 731 encodes the set of the value of each effective coefficient and the number of invalid coefficients between the effective coefficient before that effective coefficient, thereby obtaining the quantized coefficient I corresponding to one block.
)ou is compression encoded.

上述した動作を1画面を構成する各ブロックについて繰
り返すことにより、1画面の画像データの符号化処理が
行われ、この符号化データがディスク装置などに蓄積さ
れ、あるいは伝送路などを介して伝送される。
By repeating the above operations for each block that makes up one screen, the image data for one screen is encoded, and this encoded data is stored in a disk device or transmitted via a transmission path. Ru.

このような符号化データは、第17図に示す復元装置に
よって、画像データに復元される。
Such encoded data is restored to image data by a restoration device shown in FIG.

復元装置の復号部811は、入力される符号化データを
復号して量子化係数D0を復元し、逆量子化部821は
、この量子化係数DQL+の各成分に量子化閾値Q t
 oの対応する成分を乗することにより、DCT係数り
を復元する。また、逆DCT変換部831は、各ブロッ
クに対応するDCT係数りに対して、2次元逆DCT変
換処理を行うことにより、各ブロックの画像データを復
元する。
The decoding unit 811 of the restoration device decodes the input encoded data to restore the quantization coefficient D0, and the dequantization unit 821 sets a quantization threshold Q t to each component of this quantization coefficient DQL+.
The DCT coefficients are restored by multiplying the corresponding components of o. Further, the inverse DCT transform unit 831 restores the image data of each block by performing two-dimensional inverse DCT transform processing on the DCT coefficients corresponding to each block.

ここで、逆DCT変換処理は、上述したDCT係数りと
所定の変換定数からなる行列A(以下、変換定数Aと称
する)との乗算により1次元逆DCT変換結果を求め、
この変換結果の行と列とを入れ換えた転置行列と上述し
た変換定数Aとを乗算し、この乗算結果を再び転置する
処理である。
Here, in the inverse DCT transformation process, a one-dimensional inverse DCT transformation result is obtained by multiplying the above-mentioned DCT coefficients by a matrix A (hereinafter referred to as transformation constant A) consisting of a predetermined transformation constant.
This is a process in which the transposed matrix obtained by interchanging the rows and columns of this conversion result is multiplied by the above-mentioned conversion constant A, and this multiplication result is transposed again.

上述した1次元逆DCT変換結果の第i列Yは、上述し
た変換定数AとDCT係数りの第i列Xとを用いて式(
1)で表される。また、1次元逆DCT変換結果の第i
列Yの各成分は、式(2)〜式(9)で表される。
The i-th column Y of the above-mentioned one-dimensional inverse DCT transformation result is calculated using the equation (
1). Also, the i-th of the one-dimensional inverse DCT transformation result
Each component of column Y is expressed by equations (2) to (9).

Y=A −X Y+  =  (AzXX +A、、XX。Y=A-X Y+ = (AzXX +A,,XX.

+A、7XX。+A, 7XX.

Yz  −(Az+xX + A z a xχ4 十A2.XX。Yz -(Az+xX +Az a xχ4 Ten A2. XX.

Y :l  =  (A :l I X X ++ A
 x a X X a + A :r 7 X X t Y4  =  (A41XXI +A44XX4 +A 47X X7 Ys  =  (As+X X+ ” A s s X X a +AS?XXT Y6  =  (A61XX +A6.XX4 + A b 7 X X 7 +A、□×X2 十A、5XX。
Y: l = (A: l I X X ++ A
x a X X a + A :r 7 X X t Y4 = (A41XXI +A44XX4 +A 47X X7 Ys = (As+X +A, □×X2 10A, 5XX.

+ A IeX Xe +A22XXZ + A zs X X s ±AzsXXe +A3□×X2 十A y s X X s +A ff5X Xs +A4□×X2 + A a s X X s + A 4 s X X Il + A s z X X 2 十A ss X X s +As5XXa + A b 2 X X z + A 6 S X X S +A6IIxX8 +A、、XX2 + A+bXχ6 )     ・・・ (2) + A 23 X X 2 + A z b X X b )     ・・・ (3) +A33Xχ2 十A 3b X X b )    ・・・ (4) +A、3xX2 +A、、Xχ6 )     ・・・ (5) +AS3×X2 +A9.XX6 )     ・・・ (6) +A6:l×χ2 + A b b X X b )      ・・・  (力 Y 7  =  (A?1 X X +  + A41
XXI  +At:+XXz+A?4X Xa +At
5X Xs +A?、X Xb+A??X Xq  +
A71X Xs  )     ・・・ (8)Ye 
 =  (A11xxl  +AezXXz  +Aa
3XXz+Al4X Xa  +As5X XS  +
Aa&X Xi+A*tX X?  +A11IX X
s  )     ・・・(9)従来は、これらの式(
2)〜式(9)のそれぞれに対応する演算を行う8組の
演算回路を備えて、復元装置の逆DCT変換部831を
ハードウェア化し、これらの演算回路を並行動作させる
ことにより、1次元DCT変換処理の高速化を図ってい
た。
+ A IeX Xe +A22XXZ + A zs X X s ±AzsXXe +A3□×X2 10A y s z X 2 ten A ss X X s +As5XXa + A b 2 X X z + A 6 S X X S +A6IIxX8 +A,, XX2 + A+b ) ... (3) +A33Xχ2 10A 3b X X b) ... (4) +A, 3xX2 +A,,Xχ6) ... (5) +AS3xX2 +A9. XX6 ) ... (6) +A6:l×χ2 + A b b X X b ) ... (Force Y 7 = (A?1 X X + + A41
XXI +At:+XXz+A? 4X Xa +At
5X Xs +A? ,X Xb+A? ? X Xq +
A71X Xs ) ... (8) Ye
= (A11xxl +AezXXz +Aa
3XXz+Al4X Xa +As5X XS +
Aa&X Xi+A*tX X? +A11IX
s )...(9) Conventionally, these formulas (
2) The inverse DCT transform unit 831 of the restoration device is equipped with eight sets of calculation circuits that perform calculations corresponding to each of equations (9), and by operating these calculation circuits in parallel, one-dimensional The aim was to speed up DCT conversion processing.

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

ところで、上述したように、8組の演算回路を備えて逆
DCT変換部831を構成すれば、高速処理が可能であ
るが、逆DCT変換部831の回路規模が大きくなり、
復元装置が大型化してしまうという問題点があった。
By the way, as described above, if the inverse DCT transformer 831 is configured with eight sets of arithmetic circuits, high-speed processing is possible, but the circuit scale of the inverse DCT transformer 831 becomes large.
There was a problem in that the restoration device became large.

一方、単に、乗算器および加算器の数を削減したのでは
、1次元逆DCT変換処理に要する時間が長くなり、復
元処理に要する時間を短縮したいという要望に応えるこ
とができない。
On the other hand, simply reducing the number of multipliers and adders increases the time required for one-dimensional inverse DCT transformation processing, and cannot meet the demand for shortening the time required for restoration processing.

本発明は、このような点にかんがみて創作されたもので
あり、小型の回路で、高速処理を可能とする直交変換装
置を提供することを目的とする。
The present invention was created in view of these points, and an object of the present invention is to provide an orthogonal transform device that is a small circuit and enables high-speed processing.

〔課題を解決するだめの手段〕[Failure to solve the problem]

第1図は、本発明の原理ブロック図である。 FIG. 1 is a block diagram of the principle of the present invention.

第1図(A)において、請求項1の発明は、N×N画素
からなるブロックごとに画像データを2次元直交変換し
た結果を量子化した後に符号化して得られた入力符号を
復号し、逆量子化し、2次元逆直交変換して、画像デー
タを復元する復元装置の逆直交変換方法において、画像
データのブロックの2次元直交変換結果であるN行N列
の係数行列の各列をそれぞれ所定の数の成分を含む部分
列に分割し、これらの部分列の中から、零以外の値を有
する有効係数を含む部分列を抽出し、抽出された部分列
の各成分に対して、1次元直交変換に相当する演算を行
い、抽出された部分列に対応する演算結果を1次元の逆
変換結果の対応する列の成分として出力し、この1次元
の逆変換結果に対して、2次元目の直交変換を行って画
像データを得る。
In FIG. 1(A), the invention of claim 1 decodes the input code obtained by quantizing and encoding the result of two-dimensional orthogonal transformation of image data for each block consisting of N×N pixels, In the inverse orthogonal transform method of a restoration device that restores image data by inverse quantization and two-dimensional inverse orthogonal transform, each column of an N-by-N coefficient matrix that is the result of two-dimensional orthogonal transform of a block of image data is Divide into subsequences containing a predetermined number of components, extract subsequences containing effective coefficients with non-zero values from these subsequences, and calculate 1 for each component of the extracted subsequences. An operation equivalent to dimensional orthogonal transformation is performed, the operation result corresponding to the extracted subsequence is output as a component of the corresponding column of the one-dimensional inverse transformation result, and two-dimensional Obtain image data by performing orthogonal transformation of the eyes.

第1図(A)において、請求項2の発明は、請求項1記
載の逆直交変換方法において、各列の1次元の逆変換結
果を転置行列の対応する行の成分として出力する。
In FIG. 1A, the invention according to claim 2 is the inverse orthogonal transform method according to claim 1, in which a one-dimensional inverse transform result of each column is output as a component of a corresponding row of a transposed matrix.

第1図(B)において、請求項3の発明は、N×N画素
からなるブロックごとに画像データを2次元直交変換し
た結果を量子化した後に符号化して得られた入力符号を
復号し、逆量子化し、2次元逆直交変換して、画像デー
タを復元する復元装置の逆直交変換回路における係数格
納手段111は、入力される係数行列の各成分をN行N
列の行列として格納する。
In FIG. 1(B), the invention of claim 3 decodes the input code obtained by quantizing and encoding the result of two-dimensional orthogonal transformation of image data for each block consisting of N×N pixels, The coefficient storage means 111 in the inverse orthogonal transform circuit of the restoration device that performs inverse quantization, two-dimensional inverse orthogonal transform, and restores image data stores each component of the input coefficient matrix in N rows and N
Store as a matrix of columns.

読出制御手段120は、係数格納手段111に入力され
る係数行列の各列を構成する部分列のそれぞれが有効係
数を含む有効部分列であるか否かを判定する判定手段1
21と、判定手段121によって有効部分列であるとさ
れた部分列に対応する係数格納手段111のアドレスを
保持するアドレス保持手段122とを有し、このアドレ
ス保持手段122に保持されたアドレスに基づいて、係
数格納手段111に対して有効部分列に含まれる各成分
の出力を指示する。
The read control means 120 includes a determination means 1 for determining whether each of the subsequences constituting each column of the coefficient matrix input to the coefficient storage means 111 is an effective subsequence containing an effective coefficient.
21, and address holding means 122 that holds the address of the coefficient storage means 111 corresponding to the subsequence determined to be a valid subsequence by the determination means 121, and based on the address held in this address holding means 122, Then, the coefficient storage means 111 is instructed to output each component included in the effective subsequence.

変換定数格納手段131は、係数行列の各成分に対応す
る変換定数からなるN行N列の定数行列を格納しており
、係数格納手段】11によって出力される係数行列の成
分に対応する定数行列の列に含まれる変換定数を出力す
る。
The conversion constant storage means 131 stores a constant matrix of N rows and N columns consisting of conversion constants corresponding to each component of the coefficient matrix. Outputs the conversion constant contained in the column.

第1変換手段132は、人力される係数行列の成分のそ
れぞれと変換定数格納手段131から出力される変換定
数とに対して直交変換に相当する演算を行い、係数行列
の各列に含まれる有効部分列の全てに対応する演算が終
了したときに、演算結果を該当する列の1次元逆変換結
果として出力する。
The first transformation means 132 performs an operation equivalent to orthogonal transformation on each of the components of the coefficient matrix entered manually and the transformation constant output from the transformation constant storage means 131, and performs an operation equivalent to orthogonal transformation on each component of the coefficient matrix entered manually and on the transformation constant outputted from the transformation constant storage means 131. When the calculations corresponding to all the subsequences are completed, the calculation results are output as the one-dimensional inverse transformation results of the corresponding sequences.

変換結果保持手段141は、第1変換手段132の出力
を保持する。
The conversion result holding means 141 holds the output of the first conversion means 132.

書込制御手段142は、アドレス保持手段122に保持
されたアドレスに応じて、係数行列の該当する列に対応
する1次元逆変換結果の変換結果保持手段141におけ
る格納場所を指定する。
The write control means 142 specifies, in accordance with the address held in the address holding means 122, a storage location in the transformation result holding means 141 of the one-dimensional inverse transformation result corresponding to the corresponding column of the coefficient matrix.

第2変換手段151は、変換結果保持手段141に保持
された1次元逆変換結果に基づいて、2次元目の直交変
換を行う。
The second transformation means 151 performs a second-dimensional orthogonal transformation based on the one-dimensional inverse transformation result held in the transformation result holding means 141.

第1図(B)において、請求項4の発明は、請求項3記
載の逆直交変換回路における係数格納手段111が、2
つのブロックのそれぞれに対応する係数行列を格納する
容量を有し、係数格納手段111への係数行列の入力と
並行して、第1変換手段132が1次元逆変換動作を行
う構成となっている。
In FIG. 1(B), the invention according to claim 4 provides that the coefficient storage means 111 in the inverse orthogonal transform circuit according to claim 3 has two
The first transformation means 132 has a capacity to store coefficient matrices corresponding to each of the two blocks, and the first transformation means 132 performs a one-dimensional inverse transformation operation in parallel with the input of the coefficient matrices to the coefficient storage means 111. .

第1図(B)において、請求項5の発明は、請求項3記
載の逆直交変換回路において、判定手段121は、それ
ぞれN/2個の成分から形成される部分列が有効部分列
であるか否かを判定する構成とし、変換定数格納手段1
31は、係数行列の各成分の出力に応じて、対応する列
の前半のN/2個の変換定数と後半のN/2個の変換定
数とを交互に出力する構成とし、第1変換手段132は
、変換定数格納手段131から同時に出力されるN/2
個の変換定数のそれぞれに対応してN/2個の演算手段
133を備えて構成されている。
In FIG. 1(B), the invention according to claim 5 is the inverse orthogonal transform circuit according to claim 3, in which the determining means 121 determines that each subsequence formed from N/2 components is an effective subsequence. The conversion constant storage means 1 is configured to determine whether or not
31 is configured to alternately output N/2 conversion constants in the first half and N/2 conversion constants in the second half of the corresponding column according to the output of each component of the coefficient matrix, and the first conversion means 132 is N/2 simultaneously output from the conversion constant storage means 131.
It is configured to include N/2 calculation means 133 corresponding to each of the conversion constants.

また、N/2個の演算手段133のそれぞれは、入力さ
れる係数行列の成分と、この成分に対応して変換定数格
納手段131から交互に出力される各変換定数のそれぞ
れとの乗算を行う乗算手段134と、乗算手段134に
よって得られた乗算結果のそれぞれを積算する積算手段
135と、積算手段135によって得られた積算結果の
それぞれを保持する保持手段136とを有して構成され
ている。
Further, each of the N/2 calculation means 133 multiplies the input coefficient matrix component by each of the conversion constants alternately outputted from the conversion constant storage means 131 corresponding to this component. It is constituted by a multiplication means 134, an integration means 135 for integrating each of the multiplication results obtained by the multiplication means 134, and a holding means 136 for holding each of the integration results obtained by the integration means 135. .

第1図(B)において、請求項6の発明は、請求項5記
載の逆直交変換回路において、第1変換手段132に、
アドレス保持手段122に保持された係数行列の各列に
含まれる有効部分列のアドレスに応じて、乗算手段13
4と積算手段135とによる演算処理の実行回数を制御
する演算制御手段137を備えて構成されている。
In FIG. 1(B), the invention according to claim 6 provides that in the inverse orthogonal transform circuit according to claim 5, the first transform means 132:
The multiplication means 13
4 and the integration means 135.

第1図(B)において、請求項7の発明は、請求項3記
載の逆直交変換回路において、書込制御手段142に、
第1変換手段132によって得られる演算結果に対応じ
て、1次元逆変換結果からなる行列を転置した転置行列
の該当する行に対応する変換結果保持手段141のアド
レスを生成するアドレス生成手段143を備えて構成さ
れている。
In FIG. 1(B), the invention according to claim 7 provides the inverse orthogonal transform circuit according to claim 3, in which the write control means 142:
An address generation means 143 for generating an address of the transformation result holding means 141 corresponding to a corresponding row of a transposed matrix obtained by transposing a matrix consisting of a one-dimensional inverse transformation result in accordance with the calculation result obtained by the first transformation means 132. Configured with the necessary features.

第1図(B)において、請求項8の発明は、請求項7記
載の逆直交変換回路に、変換結果保持手段141に入力
される1次元逆変換結果の各成分から零以外の値を有す
る有効係数を検出する検出手段144と、検出手段14
4による検出結果に応じて、変換結果保持手段141に
対して、1次元逆変換結果の行列の各列の中から有効係
数を含む部分列の出力を指示する出力指示手段145と
を付加し、第2変換手段151が、変換結果保持手段1
41から出力された部分列に対して、2次元目の直交変
換処理を行う構成となっている。
In FIG. 1(B), the invention according to claim 8 provides that the inverse orthogonal transform circuit according to claim 7 has a value other than zero from each component of the one-dimensional inverse transform result inputted to the transform result holding means 141. detection means 144 for detecting an effective coefficient;
4, an output instruction means 145 is added for instructing the conversion result holding means 141 to output a subsequence containing an effective coefficient from each column of the matrix of the one-dimensional inverse transformation result, The second conversion means 151 is the conversion result holding means 1
The partial sequence outputted from 41 is configured to undergo second-dimensional orthogonal transformation processing.

第1図(C)において、請求項9の発明は、請求項7記
載の逆直交変換回路における第2変換手段151に代え
て、変換結果保持手段141に格納された1次元逆変換
結果を第1変換手段132に入力するとともに、変換定
数格納手段13】に対して対応する変換定数の出力を指
示する入力手段161を備えた構成となっている。
In FIG. 1(C), the invention according to claim 9 stores the one-dimensional inverse transform result stored in the transform result holding means 141 in place of the second transform means 151 in the inverse orthogonal transform circuit according to claim 7. 1 conversion means 132 and input means 161 for instructing conversion constant storage means 13 to output a corresponding conversion constant.

第1図(C)において、請求項10の発明は、請求項9
記載の逆直交変換回路に、変換結果保持手段141に入
力される1次元逆変換結果の各成分から零以外の値を有
する有効係数を検出する検出手段144と、検出手段1
44による検出結果に応じて、変換結果保持手段141
に対して、1次元逆変換結果の行列の各列の中から有効
係数を含む部分列の出力を指示する出力指示手段145
とを付加し、入力手段161が、変換結果保持手段14
1によって出力された部分列を第1変換手段132に入
力する構成となっている。
In FIG. 1(C), the invention of claim 10 is the invention of claim 9.
The described inverse orthogonal transform circuit includes a detecting means 144 for detecting an effective coefficient having a value other than zero from each component of the one-dimensional inverse transform result inputted to the transform result holding means 141, and a detecting means 1.
44, the conversion result holding means 141
Output instruction means 145 for instructing output of a subsequence containing effective coefficients from each column of the matrix of the one-dimensional inverse transformation result.
and the input means 161 inputs the conversion result holding means 14
The partial sequence outputted by 1 is input to the first conversion means 132.

〔作 用〕[For production]

請求項1の発明にあっては、係数行列の各列を分割して
得られる部分列の中から有効係数を含む部分列を抽出し
、抽出した部分列の各成分に対する演算のみを行い、こ
の演算結果をこれらの部分列が属する列に対応する1次
元の逆変換結果として出力する。
In the invention of claim 1, a subsequence including an effective coefficient is extracted from subsequences obtained by dividing each column of a coefficient matrix, and only arithmetic operations are performed on each component of the extracted subsequence. The calculation results are output as one-dimensional inverse transformation results corresponding to the columns to which these subsequences belong.

ここで、上述した式(2)〜式(9)から分かるように
、係数行列の各列を直交変換する場合に、この列に含ま
れる値が零である無効係数についての演算結果は、直交
変換結果に寄与しない。従って、各列に含まれる有効部
分列に対する演算結果は、係数行列の該当する列を直交
変換した結果と等価となり、1次元逆直交変換結果を得
るために要する計算量を削減することが可能となる。
Here, as can be seen from equations (2) to (9) above, when each column of the coefficient matrix is orthogonally transformed, the calculation result for the invalid coefficient whose value included in this column is zero is orthogonal. Does not contribute to the conversion result. Therefore, the calculation result for the effective subsequence included in each column is equivalent to the result of orthogonal transformation of the corresponding column of the coefficient matrix, and it is possible to reduce the amount of calculation required to obtain the one-dimensional inverse orthogonal transformation result. Become.

また、請求項2の発明にあっては、抽出された部分列に
対応する演算結果は、1次元逆変換結果の行列の行と列
とを入れ換えて転置した転置行列の成分として出力され
る。従って、2次元目の直交変換処理において、1次元
逆変換結果を転置する処理を省くことができる。
Further, in the invention of claim 2, the calculation result corresponding to the extracted subsequence is output as a component of a transposed matrix obtained by interchanging the rows and columns of the matrix resulting from the one-dimensional inverse transformation. Therefore, in the second-dimensional orthogonal transformation process, the process of transposing the one-dimensional inverse transformation result can be omitted.

また、請求項3の発明にあっては、判定手段121とア
ドレス保持手段122とを有する読出制御手段120に
より、係数格納手段111に格納された係数行列の中の
有効部分列が抽出され、これらの有効部分列に含まれる
各成分と変換定数格納手段131から出力される1列分
の変換定数とに対して、第1変換手段132により、1
次元直交変換に相当する演算が行われる。また、この第
1変換手段132の出力は、書込制御手段142による
指示に応じて、該当する有効部分列が属する係数行列の
列に対応する1次元逆変換結果として、変換結果保持部
141に保持され、第2変換手段151に渡される。
Further, in the invention of claim 3, the read control means 120 having the determination means 121 and the address holding means 122 extracts effective subsequences from the coefficient matrix stored in the coefficient storage means 111. For each component included in the effective subsequence of and the conversion constant for one column output from the conversion constant storage means 131, the first conversion means 132
An operation corresponding to dimensional orthogonal transformation is performed. Further, the output of the first transformation means 132 is stored in the transformation result holding unit 141 as a one-dimensional inverse transformation result corresponding to the column of the coefficient matrix to which the relevant effective subsequence belongs, in accordance with instructions from the write control means 142. It is held and passed to the second conversion means 151.

このようにして、読出制御手段120において抽出され
た有効部分列についてのみ、第1変換手段132による
演算処理を行うことにより、係数行列の全ての列につい
ての演算処理を行った場合と等価な1次元逆変換結果を
得ることができ、計算量を削減して、1次元逆直交変換
処理に要する時間を短縮することが可能となる。
In this way, by performing arithmetic processing by the first converting means 132 only on the effective subsequence extracted by the readout control means 120, the calculation processing is performed on all columns of the coefficient matrix. A dimensional inverse transform result can be obtained, the amount of calculation can be reduced, and the time required for one-dimensional inverse orthogonal transform processing can be shortened.

請求項4の発明にあっては、係数格納手段111への新
しい係数行列の入力動作と並行して、第1変換手段13
2により、既に係数格納手段111に格納されている係
数行列に対する1次元直交変換動作を実行することがで
きる。これにより、複数のブロックに対応する係数行列
の1次元逆変換処理に要する時間を全体として短縮する
ことが可能となる。
In the invention of claim 4, in parallel with the operation of inputting a new coefficient matrix to the coefficient storage means 111, the first conversion means 13
2, it is possible to perform a one-dimensional orthogonal transformation operation on the coefficient matrix already stored in the coefficient storage means 111. This makes it possible to reduce the overall time required for one-dimensional inverse transform processing of coefficient matrices corresponding to a plurality of blocks.

請求項5の発明にあっては、部分列を形成する成分の数
をN/2個とし、変換定数格納手段131は、定数行列
の該当する列の成分を前半のN/2個と後半のN/2個
とに分けて出力し、第1変換手段132のN/2個の演
算手段133のそれぞれに入力する。また、これらの演
算手段133のそれぞれにおいて、1次元直交変換に相
当する演算処理は、乗算手段134による乗算動作と積
算手段135による積算動作と保持手段136による保
持動作とに分割して行われる。
In the invention of claim 5, the number of components forming a subsequence is N/2, and the conversion constant storage means 131 stores N/2 components in the first half and N/2 components in the second half of the corresponding column of the constant matrix. It is divided into N/2 pieces and outputted, and input to each of the N/2 calculation means 133 of the first conversion means 132. Further, in each of these calculation means 133, the calculation processing corresponding to the one-dimensional orthogonal transformation is divided into a multiplication operation by the multiplication means 134, an integration operation by the integration means 135, and a holding operation by the holding means 136.

ここで、これらの各動作と上述した演算手段133への
係数行列の成分および変換定数の入力動作および各演算
手段133による演算結果の出力動作とは、それぞれ独
立に実行可能であるから、これらの動作をバイブライン
化して高速処理を可能とすることができる。また、N/
2個の演算手段133を用いて第1変換手段132が構
成されるので、回路規模の小型化を図ることもできる。
Here, each of these operations, the operation of inputting the components of the coefficient matrix and the conversion constant to the arithmetic means 133, and the operation of outputting the arithmetic results by each arithmetic means 133 can be executed independently. It is possible to perform high-speed processing by vibrating the operation. Also, N/
Since the first conversion means 132 is configured using two calculation means 133, it is also possible to reduce the size of the circuit.

請求項6の発明にあっては、演算制御手段137によっ
て、乗算手段134および積算手段135による演算処
理の実行回数が制御され、係数行列の各列に含まれる有
効部分列の数に応した演算回数で各列の1次元逆変換結
果を得ることができる。
In the invention of claim 6, the calculation control means 137 controls the number of executions of the calculation processing by the multiplication means 134 and the integration means 135, and performs calculations according to the number of effective subsequences included in each column of the coefficient matrix. The one-dimensional inverse transformation result of each column can be obtained by the number of times.

請求項7の発明にあっては、アドレス生成手段143に
よって生成されたアドレスを第1変換手段132の格納
場所として指示することにより、変換結果保持手段14
1には、1次元逆変換結果の行列を転置した転置行列が
格納される。従って、第2変換手段151において、1
次元逆変換結果を転置する処理を不要とすることができ
る。
In the invention of claim 7, by instructing the address generated by the address generation means 143 as the storage location of the first conversion means 132, the conversion result holding means 14
1 stores a transposed matrix obtained by transposing a matrix resulting from one-dimensional inverse transformation. Therefore, in the second conversion means 151, 1
It is possible to eliminate the need for transposing the dimensional inverse transformation results.

請求項8の発明にあっては、検出手段144と出力指示
手段145とにより、変換結果保持手段141に保持さ
れた1次元逆変換結果から有効係数を含む有効部分列を
抽出して第2変換手段151に入力することにより、第
2変換手段151における計算量を削減することができ
る。
In the invention of claim 8, the detection means 144 and the output instruction means 145 extract an effective subsequence including an effective coefficient from the one-dimensional inverse transformation result held in the transformation result holding means 141, and perform the second transformation. By inputting it to the means 151, the amount of calculation in the second converting means 151 can be reduced.

請求項9の発明にあっては、入力手段161によって、
変換結果保持手段141に保持された1次元逆変換結果
を第1変換手段132に入力し、この第1変換手段13
2により、再び直交変換に相当する演算を行うことによ
り、第2変換手段151を不要として、逆直交変換回路
の全体としての回路規模の削減を図っている。
In the invention of claim 9, the input means 161:
The one-dimensional inverse transformation result held in the transformation result holding means 141 is input to the first transformation means 132, and the first transformation means 13
2, by performing the calculation equivalent to the orthogonal transformation again, the second transformation means 151 is made unnecessary, and the overall circuit scale of the inverse orthogonal transformation circuit is reduced.

請求項10の発明にあっては、検出手段144と出力指
示手段145とにより、変換結果保持手段141に保持
された1次元逆変換結果から有効係数を含む有効部分列
を抽出し、入力手段161により、この抽出された有効
部分列を第1変換手段132に入力している。これによ
り、回路規模を縮小するとともに、第1変換手段132
によって行われる2次元目の直交変換処理における計算
量を削減することができる。
In the invention of claim 10, the detection means 144 and the output instruction means 145 extract an effective subsequence including effective coefficients from the one-dimensional inverse transformation result held in the transformation result holding means 141, and the input means 161 This extracted effective subsequence is input to the first conversion means 132. As a result, the circuit scale is reduced and the first conversion means 132
It is possible to reduce the amount of calculation in the second-dimensional orthogonal transformation process performed by .

〔実施例〕〔Example〕

以下、図面に基づいて本発明の実施例について詳細に説
明する。
Hereinafter, embodiments of the present invention will be described in detail based on the drawings.

第2図は、本発明の逆直交変換回路を用いた画像データ
復元装置の実施例構成を示す。
FIG. 2 shows the configuration of an embodiment of an image data restoration device using the inverse orthogonal transform circuit of the present invention.

第3図は、本発明の逆直交変換回路の実施例である逆D
CT変換部の1次元目の直交変換部の実施例構成を示す
FIG. 3 shows an inverse D transform circuit according to an embodiment of the present invention.
An embodiment of the configuration of the first-dimensional orthogonal transform unit of the CT transform unit is shown.

第5図は、本発明の第1変換手段の実施例である演算処
理部の詳細構成を示す。
FIG. 5 shows a detailed configuration of an arithmetic processing section which is an embodiment of the first conversion means of the present invention.

第9図は、本発明の逆直交変換回路の実施例である逆D
CT変換部の2次元目の直交変換部の実施例構成を示す
FIG. 9 shows an inverse D transform circuit according to an embodiment of the present invention.
An example configuration of a second-dimensional orthogonal transform unit of the CT transform unit is shown.

第10図は、本発明の逆直交変換回路の別実施例である
逆DCT変換部の構成を示す。
FIG. 10 shows the configuration of an inverse DCT transform section which is another embodiment of the inverse orthogonal transform circuit of the present invention.

ここで、第1図と実施例との対応関係について説明して
おく。
Here, the correspondence between FIG. 1 and the embodiment will be explained.

係数格納手段111は、バッファ233に相当する。The coefficient storage means 111 corresponds to the buffer 233.

読出制御手段120は、読出制御部313に相当する。The read control means 120 corresponds to the read control section 313.

判定手段121は、零検出部331に相当する。The determining means 121 corresponds to the zero detecting section 331.

アドレス保持手段122は、列アドレス保持部332に
相当する。
The address holding means 122 corresponds to the column address holding section 332.

変換定数格納手段131は、定数メモリ311に相当す
る。
The conversion constant storage means 131 corresponds to the constant memory 311.

第1変換手段132は、演算処理部312に相当する。The first conversion means 132 corresponds to the arithmetic processing section 312.

演算手段133は、演算回路401に相当する。The calculation means 133 corresponds to the calculation circuit 401.

乗算手段134は、乗算器421に相当する。Multiplying means 134 corresponds to multiplier 421.

積算手段135は、加算器431とレジスタ432.4
33とマルチプレクサ434とに相当する。
The integrating means 135 includes an adder 431 and a register 432.4.
33 and multiplexer 434.

保持手段136は、レジスタ441,442に相当する
The holding means 136 corresponds to the registers 441 and 442.

演算制御手段137は、変換制御部405に相当する。The calculation control means 137 corresponds to the conversion control section 405.

変換結果保持手段141は、バッファ234に相当する
The conversion result holding means 141 corresponds to the buffer 234.

書込制御手段142は、書込制御部314に相当する。The write control means 142 corresponds to the write control section 314.

アドレス生成手段143は、アドレスラッチ341と書
込アドレス生成部342とに相当する。
Address generation means 143 corresponds to address latch 341 and write address generation section 342.

検出手段144は、読出制御部513の零検出部531
に相当する。
The detection means 144 is a zero detection unit 531 of the readout control unit 513.
corresponds to

出力指示手段145は、読出制御部513に相当する。The output instruction means 145 corresponds to the readout control section 513.

第2変換手段151は、直交変換部232に相当する。The second transformation means 151 corresponds to the orthogonal transformation section 232.

入力手段161は、セレクタ601および読出制御部5
13に相当する。
The input means 161 includes the selector 601 and the read control unit 5
It corresponds to 13.

以上のような対応関係があるものとして、以下実施例の
構成および動作について説明する。
Assuming that the above-mentioned correspondence exists, the configuration and operation of the embodiment will be described below.

第2図において、画像データ復元装置は、復号表211
を備えた復号部210と、量子化マトリクス格納部22
1を備えた逆量子化部220と、1次元目の直交変換部
231と2次元目の直交変換部232を備えた逆DCT
変換部230とを備え、入力される符号化データに基づ
いて、8画素×8画素のブロックごとに画像データの復
元を行う構成となっている。
In FIG. 2, the image data restoration device includes a decoding table 211
a decoding unit 210 equipped with a quantization matrix storage unit 22
1, an inverse DCT including a first-dimensional orthogonal transform unit 231, and a second-dimensional orthogonal transform unit 232.
The converting unit 230 is configured to restore image data for each block of 8 pixels×8 pixels based on the input encoded data.

上述した復号部210は、復号表211に格納された符
号化データと復号データとの対応関係に基づいて符号化
データを復号し、量子化係数DQt+を8行8列の行列
として復元して逆量子化部220に入力する。
The decoding unit 210 described above decodes the encoded data based on the correspondence between the encoded data and the decoded data stored in the decoding table 211, restores the quantization coefficient DQt+ as an 8-by-8 matrix, and performs the inverse The signal is input to the quantization section 220.

この逆量子化部220は、量子化マトリクス格納部22
1に格納された量子化マトリクスVyH(第13図参照
)に基づいて、量子化係数DQLIの各成分の逆量子化
処理を行ってDCT係数りを復元し、このOCT係数り
の各成分を順次に逆DCT変換部230に入力する。こ
のとき、逆量子化部220は、DCT係数りの第1列か
ら順次に、各列の成分を第1行に対応する成分から順次
に出力して、逆DCT変換部230に入力する。
This inverse quantization unit 220 includes a quantization matrix storage unit 22
Based on the quantization matrix VyH (see Figure 13) stored in 1, the DCT coefficients are restored by dequantizing each component of the quantization coefficient DQLI, and each component of this OCT coefficient is sequentially is input to the inverse DCT transform unit 230. At this time, the inverse quantization section 220 sequentially outputs the components of each column starting from the first column of the DCT coefficients, starting from the component corresponding to the first row, and inputs them to the inverse DCT transformation section 230.

逆DCT変換部230の1次元目の直交変換部231に
は、バッファ233を介して、上述したDCT係数りが
入力される。また、この1次元目の直交変換部231に
よる変換結果は、バッファ234を介して2次元目の直
交変換部232に入力され、2次元目の直交変換部23
2による変換結果は、バッファ235を介して、1ブロ
ック分の画像データとして出力される構成となっている
The above-described DCT coefficients are input to the first-dimensional orthogonal transform unit 231 of the inverse DCT transform unit 230 via the buffer 233 . Further, the transformation result by the first-dimensional orthogonal transformation unit 231 is input to the second-dimensional orthogonal transformation unit 232 via the buffer 234, and the second-dimensional orthogonal transformation unit 23
The conversion result obtained by step 2 is output as one block of image data via the buffer 235.

上述したバッファ233は、DCT係数りの各成分を列
番号と行番号とで指定されるアドレスに格納する構成と
なっている。また、バッファ234およびバッファ23
5は、同様に、1次元目の直交変換部231による変換
結果および2次元目の直交変換部232による変換結果
の各成分をそれぞれの列番号と行番号とで指定されるア
ドレスに格納する構成となっている。
The buffer 233 described above is configured to store each component of the DCT coefficient at an address specified by a column number and a row number. In addition, the buffer 234 and the buffer 23
Similarly, 5 is a configuration in which each component of the transformation result by the first-dimensional orthogonal transformation unit 231 and the transformation result by the second-dimensional orthogonal transformation unit 232 is stored at an address specified by the respective column number and row number. It becomes.

以下、行列の1列分の成分が格納されている領域を示す
アドレスを列アドレスと称し、1行分の成分が格納され
ている領域を示すアドレスを行アドレスと称する。
Hereinafter, an address indicating an area in which components for one column of a matrix are stored will be referred to as a column address, and an address indicating an area in which components for one row are stored will be referred to as a row address.

第3図に、1次元目の直交変換部231の構成図を示す
FIG. 3 shows a configuration diagram of the first-dimensional orthogonal transform unit 231.

第3図において、定数メモリ311は、上述した変換定
数Aを格納しており、バッファ233から読み出された
DCT係数りの各成分と、この定数メモリ311から読
み出された変換定数Aの対応する成分とが演算処理部3
12に入力される構成となっている。また、零検出部3
31と列アドレス保持部332とカウンタ333と読出
アドレス生成部334とは、読出制御部313を構成し
ており、この読出制御部313により、上述したバッフ
ァ233および定数メモリ311からのデータの読出動
作が制御される。また、アドレスラッチ341と書込ア
ドレス生成部342とは、書込制御部314を構成して
おり、この書込制御部314により、上述した演算処理
部312の出力をバッファ234に書き込む動作の制御
が行われる。また、上述した読出制御部313および書
込制御部314は、演算処理部312からの指示に応じ
て動作する構成となっている。
In FIG. 3, a constant memory 311 stores the above-mentioned conversion constant A, and there is a correspondence between each component of the DCT coefficient read out from the buffer 233 and the conversion constant A read out from the constant memory 311. The component to be calculated is the arithmetic processing unit 3.
12. In addition, the zero detection section 3
31, column address holding section 332, counter 333, and read address generation section 334 constitute a read control section 313, and this read control section 313 controls the read operation of data from the buffer 233 and constant memory 311 described above. is controlled. Further, the address latch 341 and the write address generation section 342 constitute a write control section 314, and the write control section 314 controls the operation of writing the output of the arithmetic processing section 312 described above to the buffer 234. will be held. Further, the above-described read control section 313 and write control section 314 are configured to operate according to instructions from the arithmetic processing section 312.

読出制御部313の零検出部331は、上述したバッフ
ァ233へのDCT係数りの各成分の入力と並行して動
作し、DCT係数りの各列を第1行〜第4行に対応する
前半部の成分と第5行〜第8行に対応する後半部の成分
とに分け、前半部と後半部とのそれぞれについて「0」
検出を行う構成となっている。また、この零検出部33
1は、各列の検出結果として、少なくとも1つの有効係
数が含まれているか否かを示す1ビツトの情報と、後半
部に有効係数が含まれているか否かを示す1ビツトの情
報とを出力する。例えば、前半部と後半部との両方の成
分の全てが無効係数である場合に検出結果” 01 ”
を出力し、後半部の成分の全てが無効係数である場合に
“’ 11 ”を出力し、他の場合に10”を出力すれ
ばよい。
The zero detection unit 331 of the readout control unit 313 operates in parallel with inputting each component of the DCT coefficient to the buffer 233 described above, and inputs each column of the DCT coefficient to the first half corresponding to the first to fourth rows. The first half component and the second half component corresponding to the fifth to eighth rows are divided, and "0" is set for each of the first half and the second half.
It is configured to perform detection. In addition, this zero detection section 33
1 contains 1-bit information indicating whether or not at least one effective coefficient is included as a detection result for each column, and 1-bit information indicating whether or not the latter half contains an effective coefficient. Output. For example, if all the components in both the first half and the second half are invalid coefficients, the detection result is "01".
If all the components in the second half are invalid coefficients, "'11" may be output, and in other cases, "10" may be output.

この零検出部331による検出結果は、列アドレス保持
部332に入力され、この列アドレス保持部332によ
り、少なくとも1つの有効係数を含むDCT係数りの列
に対応するバッファ233の列アドレスと該当する列の
後半部の成分が全て無効係数であるか否かを示すフラグ
が保持される。
The detection result by the zero detection unit 331 is input to the column address holding unit 332, and the column address holding unit 332 determines which column address corresponds to the column address of the buffer 233 corresponding to the column of DCT coefficients including at least one effective coefficient. A flag indicating whether all the components in the latter half of the column are invalid coefficients is held.

例えば、この列アドレス保持部332は、上述した検出
結果の第1ビツトとして論理“1”が入力されたときに
、DCT係数りの該当する列が格納されたバッファ23
3の領域を示す列アドレスを保持するとともに検出結果
の第2ビツトをフラグとして保持すればよい。
For example, when a logic "1" is input as the first bit of the detection result described above, the column address holding section 332 stores the corresponding column of the DCT coefficient in the buffer 232.
It is sufficient to hold the column address indicating the area No. 3 and the second bit of the detection result as a flag.

また、上述した零検出部331の出力は、カウンタ33
3に入力されており、このカウンタ333により、少な
くとも1つの有効係数を含むDCT係数りの列の数が計
数される。例えば、このカウンタ333は、上述した検
出結果の第1ビ、ントに応じて、計数値を加算する動作
を行う構成とすればよい。
Further, the output of the zero detection section 331 described above is transmitted to the counter 33.
3, and this counter 333 counts the number of columns of DCT coefficients that include at least one effective coefficient. For example, this counter 333 may be configured to perform an operation of adding a counted value in accordance with the first bit of the detection result described above.

このようにして、バッファ233への1ブロック分のD
CT係数りの入力動作と並行して、有効係数を含む列の
計数動作と該当する列に対応する列アドレスとフラグと
の保持動作とが行われる。
In this way, one block of D is sent to the buffer 233.
In parallel with the input operation of CT coefficients, an operation of counting columns including valid coefficients and an operation of holding column addresses and flags corresponding to the corresponding columns are performed.

例えば、第15図に示した量子化係数1)ouに対応す
る符号化データを復号部210によって復号し、逆量子
化部220によって逆量子化することにより、第4図に
示すDCT係数りが復元される。
For example, by decoding the encoded data corresponding to the quantization coefficient 1) ou shown in FIG. will be restored.

このDCT係数りの各成分が順次にバッファ233に入
力された場合には、上述した零検出部331により、第
1列に対応して検出結果” 10 ”が出力され、第2
列に対応して検出結果“11°゛が出力され、第3列〜
第8列に対応して検出結果“°01”が出力される。こ
の場合は、第1表に示すように、第1列に対応する列ア
ドレスC1と第2列に対応する列アドレスC2とが、列
アドレス保持部332に保持され、また、カウンタ33
3の計数値はr2Jとなる。
When each component of this DCT coefficient is sequentially input to the buffer 233, the above-mentioned zero detection unit 331 outputs the detection result "10" corresponding to the first column, and the second
The detection result “11°” is output corresponding to the column, and the third column ~
The detection result “°01” is output corresponding to the eighth column. In this case, as shown in Table 1, the column address C1 corresponding to the first column and the column address C2 corresponding to the second column are held in the column address holding unit 332, and the counter 33
The count value of 3 is r2J.

第1表 バッファ233に1ブロック分のDCT係数りを格納す
る動作の終了に応じて、演算処理部312が動作を開始
し、データ要求信号REDを出力して、読出制御部31
3に対して読出動作の開始を指示する。
Upon completion of the operation of storing one block worth of DCT coefficients in the first table buffer 233, the arithmetic processing unit 312 starts operating, outputs the data request signal RED, and the read control unit 31
3 to start the read operation.

これに応じて、読出制御部313の読出アドレス生成部
334は、まず、列アドレス保持部332に保持された
最初の列アドレスとフラグを読み出すとともに、このフ
ラグを上述した演算処理部312に入力する。
In response to this, the read address generation unit 334 of the read control unit 313 first reads out the first column address and flag held in the column address holding unit 332, and inputs this flag to the arithmetic processing unit 312 described above. .

次に、読出アドレス生成部334は、上述したデータ要
求信号REDの入力に応じて、バッファ233の各行を
指定する行アドレスを順次に生成し、列アドレス保持部
332から読み出した列アドレスにこの行アドレスを付
加して出力し、バッファ233に入力する。これに応じ
て、バッファ233に格納されたDCT係数りの該当す
る列の各成分が、順次にバッファ233から出力され、
演算処理部312に入力される。
Next, the read address generation unit 334 sequentially generates a row address specifying each row of the buffer 233 in response to the input of the data request signal RED described above, and assigns the column address read from the column address holding unit 332 to this row. The address is added and output, and input to the buffer 233. In response, each component of the corresponding column of DCT coefficients stored in the buffer 233 is sequentially output from the buffer 233,
The data is input to the arithmetic processing unit 312.

また、このとき、読出アドレス生成部334は、定数メ
モリ311に格納されている変換定数Aの各列を指定す
る列アドレスを順次に生成し、上述したデータ要求信号
REDに同期して、定数メモ+7311に入力する。こ
れに応じて、定数メモリ311に格納されている変換定
数Aの各列が順次に読み出され、この1列分の成分から
なるベクトルa(以下、列成分aと称する)が演算処理
部312に入力される。
Also, at this time, the read address generation unit 334 sequentially generates column addresses specifying each column of the conversion constant A stored in the constant memory 311, and in synchronization with the data request signal RED described above, reads the constant memory Enter +7311. Accordingly, each column of the conversion constant A stored in the constant memory 311 is read out sequentially, and a vector a (hereinafter referred to as column component a) consisting of the components of this one column is sent to the arithmetic processing unit 312. is input.

このようにして、データ要求信号REDに応じて、バッ
ファ233からDCT係数りの上述した列アドレスに該
当する列の成分が1つずつ順次に読み出され、定数メモ
リ311から変換定数Aの各列が第1列から順次に読み
出される。
In this way, in response to the data request signal RED, the column components corresponding to the above-mentioned column addresses of the DCT coefficients are sequentially read out one by one from the buffer 233, and each column of the conversion constant A is read out from the constant memory 311. are read out sequentially starting from the first column.

また、読出アドレス生成部334は、上述した列アドレ
ス保持部332から読み出したフラグが論理“1゛であ
る場合は、上述した動作を4回繰り返したときに、DC
T係数りの該当する列についての読出アドレスの生成動
作を終了する。従って、この場合は、DCT係数りの該
当する列の前半の4つの成分のみがバッファ233から
読み出され、変換定数六〇対応する列成分aとともに演
算処理部312に入力される。
Further, if the flag read from the column address holding unit 332 described above is logic “1”, the read address generation unit 334 generates a DC signal when the above-described operation is repeated four times.
The operation of generating read addresses for the corresponding columns of T coefficients is completed. Therefore, in this case, only the first four components of the corresponding column of DCT coefficients are read out from the buffer 233 and input to the arithmetic processing unit 312 along with the column component a corresponding to the conversion constant 60.

一方、フラグが論理“0″である場合は、読出アドレス
生成部334は、上述した動作を8回繰り返したときに
、DCT係数りの該当する列の読出動作を終了する。従
って、この場合は、DCT係数りの該当する列の8つの
成分の全てがバッファ233から読み出され、変換定数
Aの対応する列成分aとともに演算処理部312に入力
される。
On the other hand, if the flag is logic "0", the read address generation unit 334 completes the read operation of the corresponding column of DCT coefficients after repeating the above operation eight times. Therefore, in this case, all eight components of the corresponding column of the DCT coefficients are read out from the buffer 233 and input to the arithmetic processing unit 312 along with the corresponding column component a of the conversion constant A.

このようにして、DCT係数りの該当する列の読出動作
が終了した後、読出アドレス生成部334は、列アドレ
ス保持部332から次の列アドレスとフラグとの読出動
作を行い、同様にして、バッファ233および定数メモ
リ311への読出アドレスを生成する。
In this way, after the read operation of the corresponding column of DCT coefficients is completed, the read address generation section 334 performs the read operation of the next column address and flag from the column address holding section 332, and similarly, A read address to buffer 233 and constant memory 311 is generated.

また、カウンタ333は、上述したようにして、列アド
レスが読み出される度に計数値の減算を行い、計数値が
101となったときに、終了信号LENDを出力して、
1ブロック分の読出動作が終了した旨を演算処理部31
2に通知する。
Further, as described above, the counter 333 subtracts the count value every time the column address is read out, and when the count value reaches 101, outputs the end signal LEND.
The arithmetic processing unit 31 indicates that the reading operation for one block has been completed.
Notify 2.

従って、演算処理部312には、1ブロック分のDCT
係数りの中の有効係数を含む列の成分のみが入力される
Therefore, the arithmetic processing unit 312 has one block worth of DCT.
Only the components of the columns containing significant coefficients in the coefficients are input.

第5図に、上述した演算処理部312の詳細構成を示す
FIG. 5 shows a detailed configuration of the arithmetic processing section 312 described above.

第5図において、レジスタ411と乗算器421とレジ
スタ422と加算器431とレジスタ432.433と
マルチプレクサ434とレジスタ44、442とは、演
算回路401aを構成している。また、演算回路401
b、401c、401dのそれぞれは、この演算回路4
01aと同様に構成されている。
In FIG. 5, a register 411, a multiplier 421, a register 422, an adder 431, registers 432, 433, a multiplexer 434, and registers 44 and 442 constitute an arithmetic circuit 401a. In addition, the arithmetic circuit 401
b, 401c, and 401d are each of this arithmetic circuit 4
It is configured similarly to 01a.

但し、図においては、レジスタ411,422432.
433,441,442を記号Rで示した。
However, in the figure, registers 411, 422432 .
433, 441, and 442 are indicated by the symbol R.

上述したバッファ233から読み出されたDCT係数り
の各成分は、レジスタ402を介して、上述した演算回
路401 a、・・・、401dのそれぞれに入力され
る。また、定数メモリ311から読み出された変換定数
AO1列分の成分からなる列成分aの前半部の4つの成
分は、セレクタ403のボート1に入力され、後半部の
4つの成分はボート2に入力されている。このセレクタ
403は、ボート、2のいずれかへの入力を選択する構
成となっており、選択された各成分が、上述した4つの
演算回路401a、・・・、401dのそれぞれのレジ
スタ411に入力される。
Each component of the DCT coefficient read from the buffer 233 described above is inputted to each of the arithmetic circuits 401a, . . . , 401d described above via the register 402. Furthermore, the first four components of column component a, which is made up of one column of conversion constant AO components read from constant memory 311, are input to boat 1 of selector 403, and the latter four components are input to boat 2. It has been entered. This selector 403 is configured to select input to either port 2, and each selected component is input to each register 411 of the four arithmetic circuits 401a, . . . , 401d described above. be done.

また、上述した演算回路401a、・・・、401dの
それぞれのレジスタ441,442の出力は、マルチプ
レクサ404に入力されており、このマルチプレクサ4
04の出力が、演算処理部312の出力として、バッフ
ァ234に入力される。
Furthermore, the outputs of the respective registers 441 and 442 of the above-mentioned arithmetic circuits 401a, . . . , 401d are input to a multiplexer 404.
The output of 04 is input to the buffer 234 as the output of the arithmetic processing section 312.

これらの演算回路401a、・・・、401dのそれぞ
れと、上述したセレクタ403と、マルチプレクサ40
4とは、変換制御部405からの指示に応じて動作する
構成となっている。
Each of these arithmetic circuits 401a, . . . , 401d, the above-mentioned selector 403, and multiplexer 40
4 is configured to operate in response to instructions from the conversion control unit 405.

また、以下、演算回路401a、−,401dのそれぞ
れにおいて、レジスタ411に変換定数Aの該当する成
分を入力する動作をステージ■の動作と称し、乗算器4
21による乗算動作をステージ■の動作と称し、加算器
431とレジスタ432.433による累積加算動作を
ステージ■の動作と称し、この累積加算結果をレジスタ
441゜442に格納する動作をステージ■の動作と称
する。また、上述したマルチプレクサ404が、レジス
タ441および442のいずれかを選択して出力する動
作をステージ■の動作と称する。
In addition, hereinafter, in each of the arithmetic circuits 401a, -, 401d, the operation of inputting the corresponding component of the conversion constant A to the register 411 will be referred to as the operation of stage (2), and the multiplier 4
The multiplication operation by the adder 431 and the registers 432 and 433 is called the operation of stage ■, and the operation of storing the cumulative addition result in the registers 441 and 442 is called the operation of stage ■. It is called. Further, the operation in which the multiplexer 404 selects and outputs either of the registers 441 and 442 is referred to as the operation of stage (2).

第6図に、この演算処理部312による演算処理の流れ
図を示す。
FIG. 6 shows a flowchart of arithmetic processing by this arithmetic processing section 312.

ここで、演算処理部312が演算処理を開始する際には
、各演算回路401a、・・・、401dのレジスタ4
32とレジスタ433と上述したバ・ンファ234との
内容はクリアされている。
Here, when the arithmetic processing unit 312 starts arithmetic processing, the register 4 of each arithmetic circuit 401a, . . . , 401d
The contents of 32, register 433, and buffer 234 mentioned above have been cleared.

まず、変換制御部405は、データ要求信号REDを出
力して、DCT係数りの成分とこの成分に対応する変換
定数Aの列成分aを入力する(ステップ501)。この
とき、変換制御部405は、セレクタ403にボート1
の選択を指示し、これに応じて、上述した列成分aの前
半の4つの変換定数が、各演算回路401 a、・・・
、401dに入力される(ステップ502)。
First, the conversion control unit 405 outputs the data request signal RED and inputs the DCT coefficient component and the column component a of the conversion constant A corresponding to this component (step 501). At this time, the conversion control unit 405 sets the boat 1 to the selector 403.
In response, the first four conversion constants of the column component a described above are selected by each calculation circuit 401a, . . .
, 401d (step 502).

次に、各演算回路401a、・・・、401dの乗算器
421は、対応するレジスタ411に保持された4つの
変換定数のそれぞれと、レジスタ402に保持されたD
CT係数との乗算を行い、乗算結果を対応するレジスタ
422に格納する(ステップ503)。
Next, the multiplier 421 of each arithmetic circuit 401a, ..., 401d uses each of the four conversion constants held in the corresponding register 411 and the D
Multiplication with the CT coefficient is performed, and the multiplication result is stored in the corresponding register 422 (step 503).

このようにして、DCT係数りの第1列のj番目の成分
d jiと、変換定数Aの第j列の前半部の各成分(A
r = 、・・・、A4J)のそれぞれとの乗算が行わ
れ、上述した式(2)〜式(5)のj番目の項の計算が
行われる。
In this way, the j-th component d ji of the first column of the DCT coefficients and each component (A
r = , .

次に、変換制御部405は、各演算回路401a、・・
・、401dのマルチプレクサ434にレジスタ432
の選択を指示する。従って、各演算回路401a、 ・
−2401dの加算器431により、レジスタ422に
格納された乗算結果と、レジスタ432の内容との加算
が行われ、この加算結果がレジスタ432に格納される
(ステップ504)。
Next, the conversion control unit 405 controls each arithmetic circuit 401a,...
・The register 432 is added to the multiplexer 434 of 401d.
Instruct the selection. Therefore, each arithmetic circuit 401a,
-2401d adder 431 adds the multiplication result stored in register 422 and the contents of register 432, and stores this addition result in register 432 (step 504).

次に、変換制御部405は、セレクタ403にボート2
の選択を指示し、これに応じて、上述した列成分aの後
半部の4つの変換定数のそれぞれが、各演算回路401
 a、・・・、40]dに入力される(ステップ505
)。また、各演算回路401a、・・・、401dの乗
算器421により、上述したステップ503と同様にし
て乗算処理が行われる(ステップ506)。
Next, the conversion control unit 405 sends the boat 2 to the selector 403.
In response, each of the four conversion constants in the second half of column component a described above is selected in each arithmetic circuit 401.
a,...,40]d (step 505
). Further, the multiplier 421 of each arithmetic circuit 401a, . . . , 401d performs multiplication processing in the same manner as step 503 described above (step 506).

このようにして、DCT係数りの第1列のj番目の成分
d jiと、変換定数Aの第j列の後半部の4つの成分
(A s = 、・・・、Asj)との乗算が行われ、
上述した式(6)〜式(9)のj番目の項の計算が行わ
れる。
In this way, the j-th component d ji of the first column of the DCT coefficient is multiplied by the four components (A s = , ..., Asj) in the second half of the j-th column of the conversion constant A. carried out,
The j-th term of equations (6) to (9) described above is calculated.

また、このとき、変換制御部405は、各演算回路40
1 a、・・・、401dのマルチプレクサ434にレ
ジスタ433の選択を指示する。これにより、各演算回
路−4ula、・・・、401dの加算器431により
、レジスタ422の内容と、レジスタ433の内容との
加算が行われ、この加算結果がレジスタ433に格納さ
れる(ステップ507)。
Also, at this time, the conversion control unit 405 controls each arithmetic circuit 40
Instructs the multiplexer 434 of 1a, . . . , 401d to select the register 433. As a result, the adder 431 of each arithmetic circuit 4ula, . ).

次に、変換制御部405は、読出制御部313から入力
されたフラグが論理“1“°であるか否かを判定しくス
テップ508)、このステップ508における肯定判定
の場合は、ステップ509に進み、上述したステップ5
01〜ステツプ508を1ブロツクの行数の半分に相当
する回数(4回)だけ繰り返したか否かを判定する。一
方、ステップ508における否定判定の場合は、ステッ
プ510に進み、上述したステップ501〜ステツプ5
08を1ブロツクの行数に相当する回数(8回)だけ繰
り返したか否かを判定する。
Next, the conversion control unit 405 determines whether or not the flag input from the readout control unit 313 is a logic "1" degree (step 508), and in the case of an affirmative determination in this step 508, the process proceeds to step 509. , step 5 mentioned above
It is determined whether steps 01 to 508 have been repeated a number of times (four times) corresponding to half the number of lines in one block. On the other hand, in the case of a negative determination in step 508, the process proceeds to step 510, and the steps 501 to 5 described above are performed.
It is determined whether or not step 08 has been repeated a number of times (eight times) corresponding to the number of rows in one block.

上述したステップ509およびステップ510における
否定判定の場合は、ステップ501に戻り、次のDCT
係数りの成分およびこの成分に対応する変換定数Aの列
成分aを読み込んで、上述した演算処理を繰り返す。
In the case of a negative determination in step 509 and step 510 described above, return to step 501 and perform the next DCT.
The component of the coefficient and the column component a of the conversion constant A corresponding to this component are read, and the above-mentioned arithmetic processing is repeated.

このようにして、上述した式(2)〜式(5)の各項と
式(6)〜式(9)の各項とが交互に算出され、これら
の各項が交互に累積加算される。
In this way, each term of formulas (2) to (5) and each term of formulas (6) to (9) described above are calculated alternately, and these terms are cumulatively added alternately. .

一方、上述したステップ509とステップ510におけ
る肯定判定の場合は、変換制御部405は、各演算回路
401 a、・・・、401dのレジスタ432.43
3の内容を対応するレジスタ44、442に格納する(
ステップ511)。
On the other hand, in the case of affirmative determination in step 509 and step 510 described above, the conversion control unit 405 controls the registers 432, 43 of each arithmetic circuit 401a, . . . , 401d.
Store the contents of 3 in the corresponding registers 44 and 442 (
Step 511).

また、変換制御部405は、マルチプレクサ404に対
して、まず、各演算回路401a、・・・401dのレ
ジスタ441の内容の出力を順次に指示し、その後、同
様にしてレジスタ442の出力を指示する。これに応じ
て、マルチプレクサ404により、まず、上述した式(
2)〜(5)に対応する演算結果が出力され、次いで、
式(6)〜(9)に対応する演算結果が出力される(ス
テップ512)。
Furthermore, the conversion control unit 405 first instructs the multiplexer 404 to sequentially output the contents of the register 441 of each arithmetic circuit 401a, . . Accordingly, the multiplexer 404 first uses the above-mentioned equation (
The calculation results corresponding to 2) to (5) are output, and then
The calculation results corresponding to equations (6) to (9) are output (step 512).

ここで、フラグが論理“′1°゛である場合は、DCT
係数りの該当する列の後半部の成分は全て無効係数であ
る。従って、上述したステップ501〜ステツプ507
を4回だけ繰り返して実行し、この列の前半部の成分に
ついての演算を行うことにより、DCT係数りのこの列
を1次元DCT逆変換した結果を得ることができる。
Here, if the flag is logic "'1°", DCT
All the components in the latter half of the corresponding column of coefficients are invalid coefficients. Therefore, steps 501 to 507 described above
By repeating this four times and performing calculations on the components in the first half of this sequence, it is possible to obtain the result of one-dimensional DCT inverse transformation of this sequence of DCT coefficients.

一方、フラグが論理“′0°゛である場合は、上述した
ステップ501〜ステツプ507を8回繰り返して実行
することにより、式(2)〜式(9)に相当する演算が
行われる。
On the other hand, when the flag is at the logic "'0°", the operations corresponding to equations (2) to (9) are performed by repeating steps 501 to 507 described above eight times.

従って、上述したステップ509およびステップ510
における肯定判定の場合におけるレジスタ432および
レジスタ433の内容は、上述した式(2)〜式(9)
のそれぞれの式の値となっており、これらのDCT係数
りの第1列の1次元逆DCT変換結果が、ステップ51
2において順次に出力される。また、このとき、変換制
御部405は、上述した変換結果の出力に同期して、書
込信号WRTを出力して、書込制御部314にバッファ
234への書込動作を指示する。
Therefore, steps 509 and 510 described above
The contents of the register 432 and the register 433 in the case of an affirmative determination in are expressed by the above formulas (2) to (9).
The one-dimensional inverse DCT transform result of the first column of these DCT coefficients is the value of each equation.
2 are sequentially output. Also, at this time, the conversion control unit 405 outputs a write signal WRT in synchronization with the output of the conversion result described above, and instructs the write control unit 314 to perform a write operation to the buffer 234.

次に、変換制御部405は、読出制御部313のカウン
タ333からの終了信号LENDが論理“1”′となっ
ているか否かを判定する(ステップ513)。
Next, the conversion control unit 405 determines whether the end signal LEND from the counter 333 of the read control unit 313 is at logic "1"' (step 513).

このステップ513における否定判定の場合に、変換制
御部405は、各演算回路401a、・・・401dの
レジスタ432およびレジスタ433に初期値rOJを
設定しくステップ514)、ステップ501に戻って、
次の列の変換処理を開始する。一方、ステップ513に
おける肯定判定の場合は、1ブロツク分の変換処理が終
了したと判断し、処理を終了する。
In the case of a negative determination in step 513, the conversion control unit 405 sets the initial value rOJ in the register 432 and register 433 of each arithmetic circuit 401a, . . . 401d (step 514), and returns to step 501.
Starts conversion processing for the next column. On the other hand, in the case of an affirmative determination in step 513, it is determined that the conversion process for one block has been completed, and the process is terminated.

ここで、上述したステージ■〜■の動作のそれぞれは、
互いに独立に実行可能である。従って、上述したステッ
プ502〜ステツプ504の各ステップおよびステップ
505〜ステツプ507の各ステップとステップ511
とステップ512とをパイプライン化して制御すること
ができる。
Here, each of the operations of stages ■ to ■ mentioned above is
can be executed independently of each other. Therefore, each step of Step 502 to Step 504, each step of Step 505 to Step 507, and Step 511 described above are performed.
and step 512 can be pipelined and controlled.

第7図に、第4図に示したDCT係数りを1次元逆DC
T変換する場合について、上述したステージ■〜ステー
ジ■の各動作をパイプライン化して処理する様子を示す
Figure 7 shows the DCT coefficients shown in Figure 4 as one-dimensional inverse DC
In the case of T-transformation, the manner in which each of the operations from stage 1 to stage 2 described above is pipelined and processed will be described.

第7図において、左端の欄の数字は、パイプラインのス
テップ数を示している。また、記号ROIはレジスタ4
01を示し、記号R11,・・・、R14および記号R
21,・・・5 R24は、各演算回路401a、−,
401dのレジスタ411およびレジスタ422のそれ
ぞれを示す。また、同様に、記号R31,・・・、R3
4および記号R35・・・、R38は、レジスタ432
およびレジスタ433を示し、記号R41,・・・、R
44および記号R45,・・・、R48は、レジスタ4
41およびレジスタ442を示す。
In FIG. 7, the numbers in the leftmost column indicate the number of steps in the pipeline. Also, the symbol ROI is register 4
01, symbol R11,..., R14 and symbol R
21,...5 R24 represents each arithmetic circuit 401a, -,
Each of register 411 and register 422 of 401d is shown. Similarly, symbols R31,..., R3
4 and symbols R35..., R38 are registers 432
and registers 433, symbols R41,..., R
44 and symbols R45,..., R48 are register 4
41 and register 442 are shown.

第7図のステージ■に対応する欄に示すように、奇数番
号のステップにおいて、DCT係数りの各成分が入力さ
れるとともに、各演算回路401a・・・、401dの
レジスタ411に、変換定数Aの対応する列成分aの前
半部の各成分が入力され、偶数番号のステップにおいて
、この列成分aの後半部の各成分が入力される。
As shown in the column corresponding to stage (2) in FIG. 7, in the odd-numbered steps, each component of the DCT coefficient is input, and the conversion constant A Each component in the first half of the corresponding column component a is inputted, and each component in the second half of this column component a is inputted in an even-numbered step.

また、第2ステツプ以降は、ステージ■に対応する欄に
示すように、ステージ■の動作と並行して、上述したス
テップ503の乗算処理とステップ506の乗算処理と
が交互に行われる。
Further, from the second step onwards, as shown in the column corresponding to stage (2), the multiplication process of step 503 and the multiplication process of step 506 described above are performed alternately in parallel with the operation of stage (2).

また、第3ステツプ以降は、ステージ■に対応する欄に
示すように、奇数番号のステップにおいては、上述した
ステップ504の加算処理が行われ、偶数番号のステッ
プにおいては、上述したステップ507の加算処理が、
ステージ■およびステージ■の動作と並行して行われる
In addition, from the third step onward, as shown in the column corresponding to stage (2), in the odd-numbered steps, the addition process of step 504 described above is performed, and in the even-numbered steps, the addition process of step 507 described above is performed. The processing is
This is carried out in parallel with the operations of stage ■ and stage ■.

第1表に示したように、第4図に示したDCT係数りの
第1列に対応するフラグは論理“0“であるから、上述
したステップ501〜ステツプ507が1ブロツクの行
数骨繰り返され、第1列の8個の成分が全て入力される
As shown in Table 1, the flag corresponding to the first column of the DCT coefficients shown in FIG. All eight components of the first column are input.

この場合は、DCT係数りの第1列の8番目の成分DI
l+についての乗算処理および加算処理は、DCT係数
りの第2列の成分および変換定数Aの入力と並行して行
われ、第17ステツプおよび第18ステツプにおいて、
1次元逆DCT変換結果が、各演算回路401 a、・
・・、401dのレジスタ441およびレジスタ442
にセットされる(ステップ51、第7図ステージ■参照
)。
In this case, the 8th component DI in the first column of the DCT coefficient
The multiplication processing and addition processing for l+ are performed in parallel with the input of the second column component of the DCT coefficient and the conversion constant A, and in the 17th step and the 18th step,
The one-dimensional inverse DCT transformation results are sent to each arithmetic circuit 401a, .
..., register 441 and register 442 of 401d
(Step 51, see stage ① in Figure 7).

また、第18ステンプ〜第25ステツプにおいて、ステ
ップ512における出力処理が行われ、1次元逆DCT
変換結果(y、、、・・・、Y、、)が順次に出力され
る(第7図ステージ■参照)。
Further, in the 18th step to the 25th step, the output processing in step 512 is performed, and the one-dimensional inverse DCT
The conversion results (y, . . . , Y, .) are sequentially output (see stage 3 in FIG. 7).

同様にして、DCT係数りの第2列の1次元逆DCT変
換処理が行われ、第25ステツプおよび第26ステツプ
において、ステージ■の動作が行われ、第26ステツプ
〜第33ステツプにおいてステージ■の動作が行われる
Similarly, a one-dimensional inverse DCT transform process is performed on the second column of DCT coefficients, and in the 25th and 26th steps, the operation of stage (2) is performed, and in the 26th to 33rd steps, the operation of stage (2) is performed. An action is taken.

以下、このようにして算出された変換結果Hの行と列と
を転置した転置行列1(TIをバッファ234に格納す
る方法について説明する。
A method for storing the transposed matrix 1 (TI) obtained by transposing the rows and columns of the transformation result H calculated in this manner in the buffer 234 will be described below.

第3図に示した読出アドレス生成部334によって、列
アドレス保持部332から読み出された列アドレスは、
書込制御部314のアドレスラ、。
The column address read from the column address holding unit 332 by the read address generation unit 334 shown in FIG.
addressr of the write control unit 314;

チ341によって保持される。また、上述した書込信号
WRTの入力に応じて、書込アドレス生成部342は、
上述したアドレスラッチ341に保持された列アドレス
に基づいて、書込アドレスを生成する。
341. Further, in response to the input of the write signal WRT described above, the write address generation unit 342
A write address is generated based on the column address held in the address latch 341 described above.

この書込アドレス生成部342は、まず、上述した列ア
ドレスをこの列アドレスζこ対応する列番号と等しい番
号の行に対応する行アドレスに変換する。また、書込ア
ドレス生成部342は、上述した書込信号WRTに同期
して各列を指定する列アドレス生成し、この列アドレス
を上述した行アドレスに付加して書込アドレスを生成し
、バッファ234に入力する。
This write address generation unit 342 first converts the above-mentioned column address into a row address corresponding to a row having the same number as the column number corresponding to this column address ζ. In addition, the write address generation unit 342 generates a column address that specifies each column in synchronization with the write signal WRT described above, adds this column address to the row address described above to generate a write address, and buffers the buffer. 234.

従って、演算処理部312によって出力されるDCT係
数りの第1列に対応する変換結果は、バッファ234の
第1行に対応する領域に順次に格納される。
Therefore, the conversion results corresponding to the first column of DCT coefficients output by the arithmetic processing unit 312 are sequentially stored in the area corresponding to the first row of the buffer 234.

このようにして、変換結果H1の転置行列H1がバッフ
ァ234に格納され、2次元目の直交変換部232に渡
される。
In this way, the transposed matrix H1 of the transformation result H1 is stored in the buffer 234 and passed to the second-dimensional orthogonal transformation unit 232.

第8図に、第4図に示したDCT係数りに対応する転置
行列HT1を示す。第8図において、転置行列H”に含
まれる有効係数を記号りに列番号と行番号とを示す添字
を付けて示したように、転置行列H”においては、DC
T係数りの有効係数を含む列に対応する行のみが、有効
係数を含む行となっている。
FIG. 8 shows a transposed matrix HT1 corresponding to the DCT coefficients shown in FIG. In FIG. 8, the effective coefficients included in the transposed matrix H'' are shown with subscripts indicating column numbers and row numbers; in the transposed matrix H'', DC
Only rows corresponding to columns containing T coefficients of effective coefficients are rows containing effective coefficients.

2次元目の直交変換部232は、第9図に示すように、
第3図に示した1次元目の直交変換部231の零検出部
331に代えて別の零検出部531を存する読出制御部
513を備えて構成されている。
The second-dimensional orthogonal transform unit 232, as shown in FIG.
The reading control section 513 includes another zero detection section 531 in place of the zero detection section 331 of the first-dimensional orthogonal transformation section 231 shown in FIG.

この零検出部531は、上述したバッファ234への変
換結果H,の各列の入力に並行して零検出を行い、この
変換結果H1の転置行列1(”の各列について、上述し
た零検出部331と同様の検出結果を出力する構成とな
っている。
This zero detection unit 531 performs zero detection in parallel with the input of each column of the transformation result H, to the buffer 234 described above, and performs the zero detection described above for each column of the transposed matrix 1('' of the transformation result H1). It is configured to output a detection result similar to that of the section 331.

例えば、変換結果H1の各列の成分のそれぞれの値が「
0」であるか否かを示すビットマツプを作成し、このビ
ットマツプの論理和を順次に求め、この結果を転置行列
HT′の各列に有効係数が含まれているか否かを示す検
出結果として出力する。
For example, each value of the component in each column of the conversion result H1 is "
0'' is created, the logical sum of this bitmap is sequentially calculated, and this result is output as a detection result indicating whether each column of the transposed matrix HT' contains an effective coefficient. do.

また、同様にして、変換結果H3の第5列〜第8列に対
応するビットマツプの論理和を求め、この結果の反転論
理を転置行列H71の各列の後半部に有効係数が含まれ
ているか否かを示す検出結果として出力すればよい。こ
の場合は、上述した零検出部331と同様に、零検出部
531により、前半部と後半部との両方の成分の全てが
無効係数であるときに検出結果“01”が出力され、後
半部の成分の全てが無効係数であるときに°’11”が
出力され、他の場合に“’i o’”が出力される。
Similarly, the logical sum of the bitmaps corresponding to the 5th to 8th columns of the conversion result H3 is calculated, and the inverted logic of this result is calculated to determine whether the effective coefficient is included in the latter half of each column of the transposed matrix H71. What is necessary is to output it as a detection result indicating whether or not. In this case, similarly to the zero detecting unit 331 described above, the zero detecting unit 531 outputs a detection result of “01” when all of the components in both the first half and the second half are invalid coefficients; When all the components of are invalid coefficients, °'11' is output, and in other cases, 'i o' is output.

例えば、第8図に示した転置行列H”について、この零
検出部531による零検出処理を行った場合は、第2表
に示すように、第1列〜第8列のそれぞれに対応する列
アドレス01〜C8と、これらの各列の後半部の全ての
成分が無効係数であることを示ずフラグ“1°゛とが、
列アドレス保持部332に保持され、また、カウンタ3
33の計数値はFB、となる。
For example, when the zero detection unit 531 performs zero detection processing on the transposed matrix H'' shown in FIG. Addresses 01 to C8 and the flag “1°” indicating that all components in the latter half of each column are invalid coefficients,
It is held in the column address holding unit 332, and also stored in the counter 3.
The count value of 33 is FB.

第2表 このようにして列アドレス保持部332に保持された列
アドレスに基づいて、読出アドレス生成部334により
、読出アドレスが生成され、上述した工次元目の直交変
換処理と同様にして、演算処理部312により、2次元
目の直交変換処理が行われる。また、上述した1次元目
の直交変換処理と同様にして、書込制御部314により
、この演算処理部312による演算結果をバッファ23
5に書き込む動作を制御することにより、このバッファ
235に、2次元逆DCT変換結果H2の転置行列((
T2が格納され、復元データとして出力される。
Table 2 Based on the column addresses held in the column address holding unit 332 in this way, a read address is generated by the read address generation unit 334, and the calculation is performed in the same manner as the orthogonal transformation process for the engineering dimension. The processing unit 312 performs second-dimensional orthogonal transformation processing. In addition, in the same manner as the first-dimensional orthogonal transformation processing described above, the write control unit 314 transfers the calculation result by the calculation processing unit 312 to the buffer 23.
5, the transposed matrix ((
T2 is stored and output as restored data.

上述したように、それぞれ独立に動作する乗算器と加算
器とこれらを接続するレジスタとを備えた演算回路40
1を4組備えて、1次元逆DCT変換処理を行う演算処
理部312を構成する。また、零検出部331により、
DCT係数りの1列の成分の半分を単位として零検出を
行い、この検出結果に基づいて、バッファ233および
定数メモリ311からの読出動作を制御する。
As described above, the arithmetic circuit 40 includes a multiplier and an adder that operate independently, and a register that connects them.
1 constitutes an arithmetic processing unit 312 that performs one-dimensional inverse DCT transformation processing. In addition, the zero detection unit 331
Zero detection is performed in units of half of the components of one column of DCT coefficients, and based on this detection result, the read operation from buffer 233 and constant memory 311 is controlled.

これにより、1ブロック分のDCT係数りの中の有効係
数を含む列のみを1列の半分を単位として演算処理部3
12に入力しで、演算処理部312において、ステージ
■〜ステージ■の動作を各ステージの相互間で待ち時間
を生じることなく、効率良くパイプライン化して処理す
ることができる。例えば、第4図に示したDCT係数り
を1次元逆DCT変換した場合に、演算処理部312の
パイプライン処理に要するステップの総数は33となり
、計算量を大幅に削減することができる(第7図参照)
As a result, only the columns containing effective coefficients in one block of DCT coefficients are processed by the arithmetic processing unit in half of one column.
12, the arithmetic processing unit 312 can efficiently pipeline and process the operations of stages 1 to 2 without causing any waiting time between the stages. For example, when the DCT coefficients shown in FIG. (See Figure 7)
.

このようにして、小規模の直交変換回路を用いて、高速
に直交変換処理を行うことが可能となり、画像データ復
元装置の小型化および復元処理の高速化を図ることがで
きる。
In this way, it is possible to perform orthogonal transformation processing at high speed using a small-scale orthogonal transformation circuit, and it is possible to downsize the image data restoration device and speed up the restoration processing.

なお、第2図に示したバッファ233を2ブロック分の
DCT係数りのデータ量に相当する容量とすれば、バッ
ファ233に次のブロックのDCT係数りを入力する動
作と並行して、前に人力したDCT係数りについての1
次元目の直交変換動作を行うことができ、復元処理に要
する時間を更に短縮することができる。
Note that if the buffer 233 shown in FIG. 1 about manually calculated DCT coefficients
It is possible to perform orthogonal transformation operation for the dimension, and the time required for restoration processing can be further shortened.

また、同様に、バッファ234を2ブロック分の変換結
果のデータ量に相当する容量とすれば、バッファ234
への変換結果の入力動作と2次元目の直交変換処理とを
並行して行うことができ、復元処理に要する時間を更に
短縮することができる。
Similarly, if the buffer 234 has a capacity corresponding to the data amount of the conversion result for two blocks, the buffer 234
The input operation of the transformation result and the second-dimensional orthogonal transformation process can be performed in parallel, and the time required for the restoration process can be further shortened.

また、逆DCT変換部230において、バッファ234
に格納された1次元目の変換結果を再び演算処理部31
2に入力し、1次元目の直交変換処理と2次元目の直交
変換処理とを1つの演算処理部312を用いて行う構成
としてもよい。
Furthermore, in the inverse DCT conversion section 230, the buffer 234
The first-dimensional conversion result stored in the arithmetic processing unit 31
2, and one arithmetic processing unit 312 may be used to perform the first-dimensional orthogonal transformation processing and the second-dimensional orthogonal transformation processing.

例えば、第10図に示すように、第3図に示した1次元
目の直交変換部231に、第9図に示した2次元目の直
交変換部232の読出制御部513を付加し、セレクタ
601により、バッファ234とバッファ233とのい
ずれか一方の出力を演算処理部312に入力する構成と
すればよい。
For example, as shown in FIG. 10, the readout control section 513 of the second-dimensional orthogonal transform section 232 shown in FIG. 9 is added to the first-dimensional orthogonal transform section 231 shown in FIG. 601, the output of either the buffer 234 or the buffer 233 may be input to the arithmetic processing unit 312.

この場合は、セレクタ601により、バッファ233と
演算処理部312とが接続された状態で1次元目の直交
変換処理を行い、この1次元目の直交変換処理の終了後
に、セレクタ601を切り換えてバッファ234と演算
処理部312とを接続する。また、読出制御部513に
よって、バッファ234および定数メモリ311からの
データの読出動作を制御して、変換結果[4”の各成分
と対応する変換定数とを演算処理部312に人力して2
次元目の直交変換処理を行い、この2次元目の直交変換
処理の終了後に、次のブロックのDCT係数の処理を行
う。
In this case, the selector 601 performs the first-dimensional orthogonal transformation processing with the buffer 233 and the arithmetic processing unit 312 connected, and after the first-dimensional orthogonal transformation processing is completed, the selector 601 is switched to 234 and the arithmetic processing unit 312 are connected. Further, the read control unit 513 controls the read operation of data from the buffer 234 and the constant memory 311, and manually inputs each component of the conversion result [4” and the corresponding conversion constant to the arithmetic processing unit 312.
Orthogonal transformation processing for the second dimension is performed, and after completion of the orthogonal transformation processing for the second dimension, the DCT coefficients of the next block are processed.

このように、1次元目の直交変換処理と2次元目の直交
変換処理とを1つの演算処理部312を用いて行う構成
とすることにより、更に、逆DCT変換部の回路規模を
縮小することができる。
In this way, by configuring the first-dimensional orthogonal transformation process and the second-dimensional orthogonal transformation process using one arithmetic processing unit 312, it is possible to further reduce the circuit scale of the inverse DCT transformation unit. I can do it.

〔発明の効果〕〔Effect of the invention〕

上述したように、本発明によれば、DCT係数からなる
行列の中から、有効係数を含む部分列を抽出し、これら
の部分列についてのみ直交変換処理を行うことにより、
逆DCT変換処理の計算量を削減し、小型の回路によっ
て逆DCT変換処理を高速に実行することが可能となり
、画像データ復元装置の小型化を図るとともに、復元処
理に要する時間を短縮することができる。
As described above, according to the present invention, subsequences including effective coefficients are extracted from a matrix consisting of DCT coefficients, and orthogonal transformation processing is performed only on these subsequences.
It is possible to reduce the amount of calculation for inverse DCT transformation processing, and to execute inverse DCT transformation processing at high speed with a small circuit, thereby making it possible to downsize the image data restoration device and shorten the time required for restoration processing. can.

【図面の簡単な説明】[Brief explanation of drawings]

第1図は本発明の原理ブロック図、 第2図は本発明の逆直交変換回路を用いた画像データ復
元装置の実施例構成図、 第3図は本発明の逆直交変換回路の実施例である逆DC
T変換部の1次元目の直交変換部の構成図、 第4図は復元されたDCT係数りの例を示す図、第5図
は本発明の第1変換手段の実施例である演算処理部の詳
細構成図、 第6図は演算処理を表す流れ図、 第7図はパイプライン処理の説明図、 第8図は変換結果HT+の例を示す図、第9図は本発明
の逆直交変換回路の実施例である逆DCT変換部の2次
元目の直交変換部の構成図、 第10図は本発明の逆直交変換回路の別実施例である逆
DCT変換部の構成図、 第11図は画像圧縮装置の構成図、 第12図はブロックの説明図、 第13図はDCT係数りを示す図、 第14図は量子化マトリクスVTHを示す図、第15図
は量子化係数I)ouを示す図、第16図はジグザグス
キャンの説明図、第17図は従来の復元装置の構成図で
ある。 図において、 】11は係数格納手段、 120は読出制御手段、 121は判定手段、 122はアドレス保持手段、 131は変換定数格納手段、 132は第1変換手段、 133は演算手段、 134は乗算手段、 135は積算手段、 136は保持手段、 137は演算制御手段、 141は変換結果保持手段、 142は書込制御手段、 143は検出手段、 144はアドレス生成手段、 151は第2変換手段、 161は入力手段、 210.811は復号部、 211は復号表、 220.821は逆量子化部、 221は量子化マトリクス格納部、 230.831は逆DCT変換部、 23、232は直交変換部、 233.234.235はバッファ、 311は定数メモリ、 312は演算処理部、 313.513は読出制御部、 314は書込制御部、 33、531は零検出部、 332は列アドレス保持部、 333はカウンタ、 334は読出アドレス生成部、 341はアドレスラッチ、 342は書込アドレス生成部、 401は演算回路、 402.411,422,432,433゜、442は
レジスタ、 403 601はセレクタ、 404.434はマルチプレクサ、 405は変換制御部、 1はDCT変換部、 1は線型量子化部、 1は符号化部である。
Fig. 1 is a block diagram of the principle of the present invention, Fig. 2 is a block diagram of an embodiment of an image data restoration device using the inverse orthogonal transform circuit of the present invention, and Fig. 3 is an embodiment of the inverse orthogonal transform circuit of the present invention. A certain reverse DC
A configuration diagram of the first-dimensional orthogonal transform section of the T transform section, FIG. 4 is a diagram showing an example of restored DCT coefficients, and FIG. 5 is a calculation processing section that is an embodiment of the first transform means of the present invention. 6 is a flowchart showing arithmetic processing, FIG. 7 is an explanatory diagram of pipeline processing, FIG. 8 is a diagram showing an example of the transform result HT+, and FIG. 9 is an inverse orthogonal transform circuit of the present invention. FIG. 10 is a block diagram of the second-dimensional orthogonal transform section of the inverse DCT transform circuit which is an embodiment of the present invention. FIG. 11 is a block diagram of the inverse DCT transform section which is another embodiment of the inverse orthogonal transform circuit of the present invention. The configuration diagram of the image compression device, Figure 12 is an explanatory diagram of the blocks, Figure 13 is a diagram showing DCT coefficients, Figure 14 is a diagram showing quantization matrix VTH, and Figure 15 is a diagram showing quantization coefficients I)ou. FIG. 16 is an explanatory diagram of a zigzag scan, and FIG. 17 is a configuration diagram of a conventional restoration device. In the figure, 11 is coefficient storage means, 120 is readout control means, 121 is determination means, 122 is address holding means, 131 is conversion constant storage means, 132 is first conversion means, 133 is calculation means, 134 is multiplication means , 135 is an integration means, 136 is a holding means, 137 is an arithmetic control means, 141 is a conversion result holding means, 142 is a write control means, 143 is a detection means, 144 is an address generation means, 151 is a second conversion means, 161 is an input means, 210.811 is a decoding unit, 211 is a decoding table, 220.821 is an inverse quantization unit, 221 is a quantization matrix storage unit, 230.831 is an inverse DCT transformation unit, 23 and 232 are orthogonal transformation units, 233, 234, and 235 are buffers, 311 is a constant memory, 312 is an arithmetic processing unit, 313, 513 is a read control unit, 314 is a write control unit, 33 and 531 are zero detection units, 332 is a column address holding unit, 333 is a counter, 334 is a read address generation section, 341 is an address latch, 342 is a write address generation section, 401 is an arithmetic circuit, 402, 411, 422, 432, 433 degrees, 442 is a register, 403, 601 is a selector, 404. 434 is a multiplexer, 405 is a conversion control unit, 1 is a DCT conversion unit, 1 is a linear quantization unit, and 1 is an encoding unit.

Claims (1)

【特許請求の範囲】 1)N×N画素からなるブロックごとに画像データを2
次元直交変換した結果を量子化した後に符号化して得ら
れた入力符号を復号し、逆量子化し、2次元逆直交変換
して、画像データを復元する復元装置の逆直交変換方法
において、 前記画像データのブロックの2次元直交変換結果である
N行N列の係数行列の各列をそれぞれ所定の数の成分を
含む部分列に分割し、 前記部分列の中から、零以外の値を有する有効係数を含
む部分列を抽出し、 抽出された前記部分列の各成分に対して、1次元直交変
換に相当する演算を行い、 抽出された前記部分列に対応する演算結果を1次元の逆
変換結果の対応する列の成分として出力し、 前記1次元の逆変換結果に対して、2次元目の直交変換
を行って画像データを得る ことを特徴とする逆直交変換方法。 (2)請求項1記載の逆直交変換方法において、各列の
1次元の逆変換結果を転置行列の対応する行の成分とし
て出力することを特徴とする逆直交変換方法。 (3)N×N画素からなるブロックごとに画像データを
2次元直交変換した結果を量子化した後に符号化して得
られた入力符号を復号し、逆量子化し、2次元逆直交変
換して、画像データを復元する復元装置の逆直交変換回
路において、 入力される前記係数行列の各成分をN行N列の行列とし
て格納する係数格納手段(111)と、前記係数格納手
段(111)に入力される前記係数行列の各列を構成す
る部分列のそれぞれが有効係数を含む有効部分列である
か否かを判定する判定手段(121)と、前記判定手段
(121)によって有効部分列であるとされた部分列に
対応する前記係数格納手段(111)のアドレスを保持
するアドレス保持手段(122)とを有し、このアドレ
ス保持手段(122)に保持されたアドレスに基づいて
、前記係数格納手段(111)に対して有効部分列に含
まれる各成分の出力を指示する読出制御手段(120)
と、 前記係数行列の各成分に対応する変換定数からなるN行
N列の定数行列を格納しており、前記係数格納手段(1
11)によって出力される係数行列の成分に対応する定
数行列の列に含まれる変換定数を出力する変換定数格納
手段(131)と、入力される係数行列の成分のそれぞ
れと前記変換定数格納手段(131)から出力される変
換定数とに対して直交変換に相当する演算を行い、前記
係数行列の各列に含まれる有効部分列の全てに対応する
演算が終了したときに、演算結果を該当する列の1次元
逆変換結果として出力する第1変換手段(132)と、 前記第1変換手段(132)の出力を保持する変換結果
保持手段(141)と、 前記アドレス保持手段(122)に保持されたアドレス
に応じて、前記係数行列の該当する列に対応する1次元
逆変換結果の前記変換結果保持手段(141)における
格納場所を指定する書込制御手段(142)と、 前記変換結果保持手段(141)に保持された1次元逆
変換結果に基づいて、2次元目の直交変換を行う第2変
換手段(151)と を備えることを特徴とする逆直交変換回路。 (4)請求項3記載の逆直交変換回路において、前記係
数格納手段(111)が、2つの前記ブロックのそれぞ
れに対応する係数行列を格納する容量を有し、 前記係数格納手段(111)への係数行列の入力と並行
して、前記第1変換手段(132)が1次元逆変換動作
を行う構成とする ことを特徴とする逆直交変換回路。 (5)請求項3記載の逆直交変換回路において、判定手
段(121)は、それぞれN/2個の成分から形成され
る部分列が有効部分列であるか否かを判定する構成とし
、 前記変換定数格納手段(131)は、前記係数行列の各
成分の出力に応じて、対応する列の前半のN/2個の変
換定数と後半のN/2個の変換定数とを交互に出力する
構成とし、前記第1変換手段(132)は、前記変換定
数格納手段(131)から同時に出力されるN/2個の
変換定数のそれぞれに対応するN/2個の演算手段(1
33)を備え、 前記N/2個の演算手段(133)のそれぞれは、 入力される係数行列の成分と、この成分に対応して前記
変換定数格納手段(131)から交互に出力される各変
換定数のそれぞれとの乗算を行う乗算手段(134)と
、 前記乗算手段(134)によって交互に得られた乗算結
果のそれぞれを積算する積算手段(135)と、 前記積算手段(135)によって得られた各積算結果の
それぞれを保持する保持手段(136)とを有する構成
とする ことを特徴とする逆直交変換回路。 (6)請求項5記載の逆直交変換回路において、前記第
1変換手段(132)が、前記アドレス保持手段(12
2)に保持された前記係数行列の各列に含まれる有効部
分列のアドレスに応じて、前記乗算手段(134)と前
記積算手段(135)とによる演算処理の実行回数を制
御する演算制御手段(137)を備える ことを特徴とする逆直交変換回路。 (7)請求項3記載の逆直交変換回路において、前記書
込制御手段(142)が、前記第1変換手段(132)
によって得られる演算結果に対応して、前記1次元逆変
換結果からなる行列を転置した転置行列の該当する行に
対応する前記変換結果保持手段(141)のアドレスを
生成するアドレス生成手段(143)を備える ことを特徴とする逆直交変換回路。 (8)請求項7記載の逆直交変換回路において、前記変
換結果保持手段(141)に入力される前記1次元逆変
換結果の各成分から零以外の値を有する有効係数を検出
する検出手段(144)と、前記検出手段(144)に
よる検出結果に応じて、前記変換結果保持手段(141
)に対して、前記1次元逆変換結果の行列の各列の中か
ら有効係数を含む部分列の出力を指示する出力指示手段
(145)とを備え、 前記第2変換手段(151)が、前記変換結果保持手段
(141)から出力された部分列に対して、2次元目の
直交変換処理を行う構成とすることを特徴とする逆直交
変換回路。(9)請求項7記載の逆直交変換回路におい
て、前記第2変換手段(151)に代えて、前記変換結
果保持手段(141)に格納された1次元逆変換結果を
前記第1変換手段(132)に入力するとともに、前記
変換定数格納手段(131)に対して対応する変換定数
の出力を指示する入力手段(161)を備えた ことを特徴とする逆直交変換回路。 (10) 請求項9記載の逆直交変換回路において、前
記変換結果保持手段(141)に入力される前記1次元
逆変換結果の各成分から零以外の値を有する有効係数を
検出する検出手段(144)と、前記検出手段(144
)による検出結果に応じて、前記変換結果保持手段(1
41)に対して、前記1次元逆変換結果の行列の各列の
中から有効係数を含む部分列の出力を指示する出力指示
手段(145)とを備え、 前記入力手段(161)が、前記変換結果保持手段(1
41)によって出力された部分列を前記第1変換手段(
132)に入力する構成とすることを特徴とする逆直交
変換回路。
[Claims] 1) Image data is divided into two blocks for each block consisting of N×N pixels.
In an inverse orthogonal transform method of a restoration device, the image data is restored by decoding an input code obtained by quantizing and then encoding a result of dimensional orthogonal transform, inversely quantizing it, and performing two-dimensional inverse orthogonal transform to restore image data. Divide each column of an N-by-N coefficient matrix, which is the result of two-dimensional orthogonal transformation of a block of data, into subsequences each containing a predetermined number of components, and from among the subsequences, select valid ones with values other than zero. Extract a subsequence containing coefficients, perform an operation equivalent to one-dimensional orthogonal transformation on each component of the extracted subsequence, and apply one-dimensional inverse transformation to the operation result corresponding to the extracted subsequence. An inverse orthogonal transformation method, characterized in that the result is output as a component of a corresponding column, and image data is obtained by performing a second-dimensional orthogonal transformation on the one-dimensional inverse transformation result. (2) The inverse orthogonal transform method according to claim 1, wherein the one-dimensional inverse transform result of each column is output as a component of a corresponding row of a transposed matrix. (3) Decode the input code obtained by quantizing and encoding the result of two-dimensional orthogonal transformation of image data for each block of N×N pixels, dequantizing it, and performing two-dimensional inverse orthogonal transformation, In an inverse orthogonal transform circuit of a restoration device that restores image data, a coefficient storage means (111) stores each component of the input coefficient matrix as a matrix of N rows and N columns, and input to the coefficient storage means (111). determining means (121) for determining whether each of the subsequences constituting each column of the coefficient matrix is an effective subsequence including an effective coefficient; and an address holding means (122) for holding an address of the coefficient storage means (111) corresponding to the subsequence set as readout control means (120) for instructing the means (111) to output each component included in the effective subsequence;
and a constant matrix of N rows and N columns consisting of transformation constants corresponding to each component of the coefficient matrix, and the coefficient storage means (1
conversion constant storage means (131) for outputting the conversion constants included in the columns of the constant matrix corresponding to the components of the coefficient matrix output by step 11); 131) performs an operation equivalent to orthogonal transformation on the transformation constant output from a first conversion means (132) that outputs a one-dimensional inverse conversion result of a column; a conversion result holding means (141) that holds the output of the first conversion means (132); and a conversion result holding means (141) that holds the output of the first conversion means (132); a write control means (142) for specifying a storage location in the transformation result holding means (141) of a one-dimensional inverse transformation result corresponding to a corresponding column of the coefficient matrix according to the address of the coefficient matrix; An inverse orthogonal transform circuit comprising: second transform means (151) that performs second-dimensional orthogonal transform based on the one-dimensional inverse transform result held in the means (141). (4) In the inverse orthogonal transform circuit according to claim 3, the coefficient storage means (111) has a capacity to store coefficient matrices corresponding to each of the two blocks, and the coefficient storage means (111) An inverse orthogonal transform circuit characterized in that the first transform means (132) performs a one-dimensional inverse transform operation in parallel with the input of the coefficient matrix. (5) In the inverse orthogonal transform circuit according to claim 3, the determining means (121) is configured to determine whether or not each subsequence formed from N/2 components is a valid subsequence; The conversion constant storage means (131) alternately outputs N/2 conversion constants in the first half and N/2 conversion constants in the latter half of the corresponding column in accordance with the output of each component of the coefficient matrix. The first conversion means (132) has N/2 calculation means (1
33), each of the N/2 arithmetic means (133) has the following functions: an input coefficient matrix component and each component alternately outputted from the conversion constant storage means (131) corresponding to the input coefficient matrix component. a multiplication means (134) that multiplies each of the conversion constants; an integration means (135) that integrates each of the multiplication results alternately obtained by the multiplication means (134); 1. An inverse orthogonal transform circuit comprising: a holding means (136) for holding each of the obtained integration results. (6) In the inverse orthogonal transformation circuit according to claim 5, the first transformation means (132) comprises the address holding means (12).
2) arithmetic control means for controlling the number of executions of arithmetic processing by the multiplication means (134) and the accumulation means (135) according to the address of the effective subsequence included in each column of the coefficient matrix held in (137) An inverse orthogonal transform circuit characterized by comprising: (137). (7) In the inverse orthogonal transform circuit according to claim 3, the write control means (142) includes the first transform means (132).
Address generation means (143) for generating an address of the transformation result holding means (141) corresponding to a corresponding row of a transposed matrix obtained by transposing the matrix consisting of the one-dimensional inverse transformation result, in accordance with the operation result obtained by An inverse orthogonal transform circuit comprising: (8) In the inverse orthogonal transform circuit according to claim 7, a detection means ( 144), and the conversion result holding means (141) according to the detection result by the detection means (144).
), the second transformation means (151) comprises: An inverse orthogonal transform circuit characterized in that it is configured to perform a second-dimensional orthogonal transform process on the partial sequence output from the transform result holding means (141). (9) In the inverse orthogonal transform circuit according to claim 7, the one-dimensional inverse transform result stored in the transform result holding means (141) is transferred to the first transform means (instead of the second transform means (151)). 132) and input means (161) for instructing the transformation constant storage means (131) to output a corresponding transformation constant. (10) The inverse orthogonal transform circuit according to claim 9, further comprising detecting means ( 144), and the detection means (144);
), the conversion result holding means (1
41), the input means (161) comprises an output instruction means (145) for instructing the output of a subsequence including an effective coefficient from each column of the matrix of the one-dimensional inverse transformation result, and the input means (161) Conversion result holding means (1
41), the subsequence outputted by the first converting means (
132).
JP25948490A 1990-07-31 1990-09-28 Inverse orthogonal transform method and inverse orthogonal transform circuit Expired - Fee Related JP2802158B2 (en)

Priority Applications (11)

Application Number Priority Date Filing Date Title
JP25948490A JP2802158B2 (en) 1990-09-28 1990-09-28 Inverse orthogonal transform method and inverse orthogonal transform circuit
DE69131808T DE69131808T2 (en) 1990-07-31 1991-07-30 Process and device for image data processing
EP91306971A EP0469855B1 (en) 1990-07-31 1991-07-30 Image data processing method and apparatus
US07/738,236 US5416854A (en) 1990-07-31 1991-07-30 Image data processing method and apparatus
CA002048204A CA2048204C (en) 1990-07-31 1991-07-31 Image data processing method and apparatus
KR1019910013213A KR960003648B1 (en) 1990-07-31 1991-07-31 Devices and method of dealing picture data
US08/248,516 US7142720B1 (en) 1990-07-31 1994-05-24 Image data processing method and apparatus
US08/828,562 US5875266A (en) 1990-07-31 1997-03-31 Image data processing a method and apparatus
US08/834,769 US5933538A (en) 1990-07-31 1997-04-03 Image data processing method and apparatus
US08/832,962 US5933533A (en) 1990-07-31 1997-04-04 Image data processing method and apparatus
US09/246,966 US6549667B1 (en) 1990-07-31 1999-02-09 Image data encoding method and apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP25948490A JP2802158B2 (en) 1990-09-28 1990-09-28 Inverse orthogonal transform method and inverse orthogonal transform circuit

Publications (2)

Publication Number Publication Date
JPH04137975A true JPH04137975A (en) 1992-05-12
JP2802158B2 JP2802158B2 (en) 1998-09-24

Family

ID=17334726

Family Applications (1)

Application Number Title Priority Date Filing Date
JP25948490A Expired - Fee Related JP2802158B2 (en) 1990-07-31 1990-09-28 Inverse orthogonal transform method and inverse orthogonal transform circuit

Country Status (1)

Country Link
JP (1) JP2802158B2 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5907635A (en) * 1994-07-28 1999-05-25 Nec Corporation Picture data decompression apparatus
JP2014078891A (en) * 2012-10-11 2014-05-01 Canon Inc Image processing apparatus and image processing method

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5907635A (en) * 1994-07-28 1999-05-25 Nec Corporation Picture data decompression apparatus
US6363176B1 (en) 1994-07-28 2002-03-26 Nec Corporation Picture data decompression apparatus
JP2014078891A (en) * 2012-10-11 2014-05-01 Canon Inc Image processing apparatus and image processing method

Also Published As

Publication number Publication date
JP2802158B2 (en) 1998-09-24

Similar Documents

Publication Publication Date Title
KR960003648B1 (en) Devices and method of dealing picture data
US5649077A (en) Modularized architecture for rendering scaled discrete cosine transform coefficients and inverse thereof for rapid implementation
AU2005237142A1 (en) Reversible transform for lossy and lossless 2-D data compression
JPH09198373A (en) Inverse discrete cosine transformation processor and mpeg decoder
JPH11225334A (en) Dispersion value calculation accelerator for mpeg-2 image decoder
JPH09198371A (en) Parallel data word/serial word conversion device and distribution arithmetic unit
JPH07143488A (en) Method and device for decoding image data
JPH04137975A (en) Inverse orthogonal transformation method and circuit
JP2839389B2 (en) Inverse quantization method and image data restoration device
JP2839392B2 (en) Image data restoration method and apparatus
JPH08180194A (en) Method and device for coding
JP3385866B2 (en) Inverse quantization and inverse DCT circuit
JPH0556270A (en) Reverse quantizing method and image data restoring device
JP3394619B2 (en) Image compression system
JP2887843B2 (en) Image data restoration method and apparatus
JP2753091B2 (en) Image data expansion circuit
JP3366033B2 (en) Address conversion circuit and orthogonal conversion circuit having the same
JP2923527B2 (en) Image data encoding / decompression device
JP2507654B2 (en) Matrix operation circuit of image data orthogonal transform processor
JPH04220082A (en) Method and device for picture data decoding
JPH04178087A (en) Orthogonal transformation method and orthogonal transformation circuit
JPH04274674A (en) Data converter
JPH04271664A (en) Picture data compressor and picture data decoder
JPH1032817A (en) Image decoding device and method therefor
JP2809798B2 (en) Matrix operation processing method of image data orthogonal transformation device

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees