JP2918360B2 - Inverse quantization method and image data restoration device - Google Patents

Inverse quantization method and image data restoration device

Info

Publication number
JP2918360B2
JP2918360B2 JP18638991A JP18638991A JP2918360B2 JP 2918360 B2 JP2918360 B2 JP 2918360B2 JP 18638991 A JP18638991 A JP 18638991A JP 18638991 A JP18638991 A JP 18638991A JP 2918360 B2 JP2918360 B2 JP 2918360B2
Authority
JP
Japan
Prior art keywords
block
coefficient
address
quantization
effective
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.)
Expired - Lifetime
Application number
JP18638991A
Other languages
Japanese (ja)
Other versions
JPH0556270A (en
Inventor
昌弘 福田
嗣男 野田
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 JP18638991A priority Critical patent/JP2918360B2/en
Publication of JPH0556270A publication Critical patent/JPH0556270A/en
Application granted granted Critical
Publication of JP2918360B2 publication Critical patent/JP2918360B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【産業上の利用分野】本発明は、符号データから原画像
を復元する画像データ復元装置において、符号データを
復号して得られる量子化係数を逆量子化する逆量子化方
法およびこの逆量子化方法を適用した画像データ復元装
置に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image data restoration apparatus for restoring an original image from code data, and to an inverse quantization method for inverse quantization of a quantized coefficient obtained by decoding code data, and an inverse quantization method for the same. The present invention relates to an image data restoration apparatus to which the method is applied.

【0002】中間階調画像やカラー画像などの多値画像
をその特徴を損なうことなくデータ量を圧縮する符号化
方式として、2次元直交変換を利用した適応離散コサイ
ン変換符号化方式(Adaptive Discrete Cosine Transfo
rm,以下ADCT方式と称する)が広く用いられてい
る。
[0002] Adaptive Discrete Cosine Transform Coding Method Using Two-Dimensional Orthogonal Transform As an encoding method for compressing a data amount of a multi-valued image such as a halftone image or a color image without deteriorating its characteristics. Transfo
rm, hereinafter referred to as ADCT method) is widely used.

【0003】このADCT方式は、多値画像をそれぞれ
所定数の画素(例えば8×8画素)からなるブロックに
分割し、このブロックごとに画像データを直交変換して
変換係数(以下、DCT係数と称する)からなる行列を
求め、この行列の各成分をそれぞれ対応する視覚適応閾
値(後述する)を用いて量子化してから可変長符号化す
ることにより、データ量を圧縮するものである。
In the ADCT method, a multi-valued image is divided into blocks each having a predetermined number of pixels (for example, 8 × 8 pixels), and image data is orthogonally transformed for each block to obtain a transform coefficient (hereinafter referred to as DCT coefficient). ) Is obtained, and each component of the matrix is quantized using a corresponding visual adaptation threshold value (described later) and then subjected to variable-length coding, thereby compressing the data amount.

【0004】[0004]

【従来の技術】図11に、従来のADCT方式を適用し
た画像データ圧縮装置の構成を示す。また、図12に、
多値画像を分割して得られるブロックの例を示す。
2. Description of the Related Art FIG. 11 shows a configuration of an image data compression apparatus to which a conventional ADCT method is applied. Also, in FIG.
An example of a block obtained by dividing a multi-valued image will be described.

【0005】画像読取装置などによって読み取られた多
値画像は、上述したブロックごとに順次にDCT変換部
611に入力され、このDCT変換部611による2次
元離散コサイン変換(以下、DCT変換と称する)処理
により、空間周波数成分に対応するDCT係数からなる
8行8列の行列(以下、DCT係数Dと称する)に変換
される。図13に、DCT係数Dの例を示す。
[0005] A multi-valued image read by an image reading device or the like is sequentially input to the DCT converter 611 for each block described above, and the DCT converter 611 performs a two-dimensional discrete cosine transform (hereinafter referred to as DCT transform). Through the processing, the matrix is converted into an 8 × 8 matrix (hereinafter, referred to as DCT coefficient D) including DCT coefficients corresponding to the spatial frequency components. FIG. 13 shows an example of the DCT coefficient D.

【0006】このDCT係数Dの各成分は、線型量子化
部620により、それぞれ量子化閾値QTHの対応する成
分を用いて量子化される。上述した量子化閾値QTHは、
各空間周波数に対応する視覚適応閾値と量子化制御パラ
メータSFとから得られるものである。この視覚適応閾値
は、各空間周波数成分に対する視覚の感度に関する実験
結果に基づいて予め定められており、量子化マトリクス
TH(図14参照)として与えられている。また、量子
化制御パラメータSFは、画像の量子化精度を決定する係
数であり、復元画像に対して要求される画質に応じて、
操作者が1画面分の画像データの符号化処理に先立って
設定するものである。
Each component of the DCT coefficient D is quantized by the linear quantization unit 620 using a component corresponding to the quantization threshold value Q TH . The above-described quantization threshold Q TH is
It is obtained from the visual adaptation threshold value corresponding to each spatial frequency and the quantization control parameter SF. This visual adaptation threshold is predetermined based on an experimental result regarding the sensitivity of visual perception to each spatial frequency component, and is given as a quantization matrix V TH (see FIG. 14). Further, the quantization control parameter SF is a coefficient that determines the quantization accuracy of the image, and according to the image quality required for the restored image,
The setting is performed by an operator prior to the encoding process of the image data for one screen.

【0007】ここで、上述した量子化マトリクスVTH
各成分の値は、人間の視覚感度の空間周波数特性に応じ
て、図14に示すように、低い空間周波数に対応する成
分の絶対値は小さく、逆に、高い空間周波数に対応する
成分の絶対値は大きく設定されている。このため、線型
量子化部620によってDCT係数Dを量子化して得ら
れる量子化係数DQUは、図15に示すように、直流成分
を示す行列の左上隅の成分(以下、DC成分と称する)
とこのDC成分の周囲にある低い空間周波数成分を示す
極く少数のAC成分のみが零以外の値を有する有効係数
となり、大部分のAC成分は値が零である無効係数とな
る場合が多い。
Here, the value of each component of the above-described quantization matrix V TH is determined by the absolute value of the component corresponding to the low spatial frequency as shown in FIG. On the contrary, the absolute value of the component corresponding to the high spatial frequency is set to be large. For this reason, the quantization coefficient D QU obtained by quantizing the DCT coefficient D by the linear quantization unit 620 is, as shown in FIG. 15, a component at the upper left corner of a matrix indicating a DC component (hereinafter, referred to as a DC component).
And only a very small number of AC components indicating low spatial frequency components around this DC component are effective coefficients having a value other than zero, and most AC components are often invalid coefficients having a value of zero. .

【0008】このようにして得られた量子化係数DQU
図16に示すジグザスキャンと呼ばれる走査順序を用い
て走査すると、一連の有効係数に続いて、無効係数が連
続している1次元配列が得られる。この1次元配列を符
号化部631によって有効係数(インデックス)とこの
インデックスの前に連続している無効係数の連続長(ラ
ン)との組合せに変換し、符号表632に基づいて、各
組合せをその出現頻度に対応する符号にそれぞれ置き換
えて可変長符号化することにより、画像データを圧縮し
ている。
When the quantized coefficients D QU obtained in this manner are scanned by using a scanning sequence called zigza scan shown in FIG. 16, a one-dimensional array in which a series of effective coefficients are followed by invalid coefficients. Is obtained. The one-dimensional array is converted by the encoding unit 631 into a combination of an effective coefficient (index) and a continuous length (run) of an invalid coefficient continuing before the index, and each combination is converted based on the code table 632. Image data is compressed by substituting codes corresponding to the frequencies of occurrence and performing variable-length coding.

【0009】また、このようにして得られた符号化デー
タは、図17に示す画像データ復元装置によって画像デ
ータに復元される。画像データ復元装置の復号部711
は、上述した符号表632とは逆に、符号に対応するラ
ンとインデックスとの組合せを示す復号表712を備え
ており、順次に入力される符号を復号してインデックス
とランとの組合せを求めて、逆量子化部720に入力す
る。
The coded data obtained in this way is restored to image data by the image data restoration device shown in FIG. Decoding unit 711 of image data restoration device
Is provided with a decoding table 712 indicating a combination of a run and an index corresponding to a code, which is opposite to the above-described code table 632, and decodes sequentially input codes to obtain a combination of an index and a run. And input to the inverse quantization unit 720.

【0010】この逆量子化部720において、配列復元
部721により、入力されるインデックスとランとから
上述した1次元配列が復元され、この1次元配列の各成
分が順次に乗算器722に入力される。また、量子化閾
値保持部723には、量子化閾値QTHが保持されてお
り、乗算器722への量子化係数の入力に同期して、対
応する量子化閾値が乗算器722に送出されている。こ
のようにして、乗算器723により、量子化係数DQU
各成分が対応する量子化閾値を用いて逆量子化され、D
CT係数Dが復元される。
In the inverse quantization unit 720, the above-described one-dimensional array is restored from the input index and run by the array restoring unit 721, and each component of the one-dimensional array is sequentially input to the multiplier 722. You. The quantization threshold holding unit 723 holds the quantization threshold Q TH , and the corresponding quantization threshold is sent to the multiplier 722 in synchronization with the input of the quantization coefficient to the multiplier 722. I have. Thus, each component of the quantization coefficient D QU is inversely quantized by the multiplier 723 using the corresponding quantization threshold, and D
The CT coefficient D is restored.

【0011】次に、このDCT係数Dを逆DCT変換部
731に入力し、この逆DCT変換部731による逆D
CT変換処理を行うことによって、該当するブロックの
画像データが復元される。
Next, the DCT coefficient D is input to an inverse DCT conversion section 731, and the inverse DT
By performing the CT conversion process, the image data of the corresponding block is restored.

【0012】[0012]

【発明が解決しようとする課題】ところで、上述した従
来方式においては、全ての量子化係数に量子化閾値を乗
じて、逆量子化処理を行っている。しかしながら、値が
零である無効係数と量子化閾値との乗算処理は、乗算結
果が予め分かっている無駄な処理である。つまり、従来
は、無駄な処理であるか否かにかかわらず、1ブロック
の量子化係数DQUの逆量子化処理のために、64回の乗
算処理を行っており、このため、逆量子化処理に要する
時間が長かった。
By the way, in the above-mentioned conventional system, inverse quantization processing is performed by multiplying all quantization coefficients by a quantization threshold. However, the multiplication process of the invalid coefficient whose value is zero and the quantization threshold is a useless process in which the multiplication result is known in advance. That is, conventionally, regardless of whether the processing is useless or not, 64 times of multiplication processing is performed for the inverse quantization of the quantization coefficient D QU of one block. Processing time was long.

【0013】このような無駄な処理を省いて、逆量子化
処理を高速化するための技法として、本出願人は、特願
平1−316708号『画像データ復元方式』を既に出
願している。図18に、この技法による逆量子化処理部
の概略構成を示す。
As a technique for eliminating such useless processing and speeding up the inverse quantization processing, the present applicant has already filed an application for Japanese Patent Application No. 1-316708 "Image Data Restoration Method". . FIG. 18 shows a schematic configuration of an inverse quantization processing unit according to this technique.

【0014】この技法は、アドレス算出部724が、入
力されるランの値から対応する有効係数のアドレスを求
め、量子化閾値保持部723が、このアドレスに対応す
る量子化閾値を乗算器722に送出し、この量子化閾値
とインデックスとを乗算器722で乗算することによ
り、有効係数のみを選択的に逆量子化するものである。
この場合は、上述したアドレスに対応して、乗算器72
2による乗算結果をDCT係数保持部725に保持する
ことにより、8行8列のDCT係数Dが復元されてい
る。
In this technique, an address calculation unit 724 obtains an address of a corresponding effective coefficient from an input run value, and a quantization threshold value holding unit 723 stores a quantization threshold value corresponding to this address in a multiplier 722. The effective coefficient is only inversely quantized by multiplying the quantized threshold value and the index by the multiplier 722.
In this case, the multiplier 72 corresponds to the address described above.
By storing the result of multiplication by 2 in the DCT coefficient storage unit 725, the DCT coefficient D of 8 rows and 8 columns is restored.

【0015】この技法においては、各ブロックの逆量子
化処理では、DCT係数保持部725の有効係数に対応
するアドレスにのみ逆量子化結果が書き込まれるので、
次のブロックの逆量子化処理を行う前に、前のブロック
の逆量子化処理で得られたDCT係数をクリアする初期
化処理を行う必要がある。例えば、DCT係数保持部7
25の64個のアドレス全てに初期値『0』を書き込め
ばよい。
According to this technique, in the inverse quantization process of each block, the inverse quantization result is written only at the address corresponding to the effective coefficient of the DCT coefficient holding unit 725.
Before performing the inverse quantization process on the next block, it is necessary to perform an initialization process for clearing the DCT coefficients obtained by the inverse quantization process on the previous block. For example, the DCT coefficient holding unit 7
It is sufficient to write the initial value "0" in all the 64 addresses of 25.

【0016】しかし、前のブロックの無効係数に対応し
ていたアドレスの内容は零であるから、初期化処理によ
って改めて零を書き込むことは無駄な処理である。ま
た、次のブロックの量子化係数DQUの有効係数に対応す
るアドレスは、次のブロックの逆量子化処理の際に該当
する有効係数を書き込むことによって更新されるので、
これらのアドレスを予め初期化しておく必要はない。
However, since the content of the address corresponding to the invalid coefficient of the previous block is zero, it is useless to write zero again by the initialization process. Also, since the address corresponding to the effective coefficient of the quantization coefficient D QU of the next block is updated by writing the corresponding effective coefficient at the time of the inverse quantization processing of the next block,
It is not necessary to initialize these addresses in advance.

【0017】つまり、連続する2つのブロックに対応す
る量子化係数DQUにおける有効係数の分布の一致あるい
は不一致にかかわらず、64個のアドレス全てに対する
初期化処理を行ったのでは、上述したような不要な初期
化処理に要する時間のために、無駄な乗算処理を削減し
たことによる逆量子化処理の時間短縮効果が失われてし
まう。
That is, regardless of whether the distribution of the effective coefficients in the quantized coefficients D QU corresponding to two consecutive blocks coincides or does not coincide, the initialization processing for all 64 addresses is performed as described above. Because of the time required for unnecessary initialization processing, the effect of shortening the time required for the inverse quantization processing by reducing unnecessary multiplication processing is lost.

【0018】本発明は、無駄な乗算処理を削減するとと
もに、連続する2つのブロックそれぞれの量子化係数行
列における有効係数の分布を考慮して無駄な初期化処理
の削減を可能とする逆量子化方法および画像データ復元
装置を提供することを目的とする。
The present invention reduces the useless multiplication processing and also reduces the useless initialization processing in consideration of the distribution of effective coefficients in the quantization coefficient matrix of each of two consecutive blocks. It is an object to provide a method and an image data restoration device.

【0019】[0019]

【課題を解決するための手段】図1に、本発明の逆量子
化方法の原理を示す。請求項1の発明は、原画像をそれ
ぞれが複数の画素からなるブロックごとに直交変換し、
変換係数からなる係数行列の各成分を対応する量子化閾
値で量子化して得られる量子化係数行列を符号化する直
交変換符号化方式による符号データから原画像を復元す
る際に、符号データを復号して得られる量子化係数から
係数行列を得る逆量子化方法において、各ブロックとそ
の前のブロックとにそれぞれ対応する量子化係数行列に
おいて、零以外の値を有する有効係数の分布の違いを判
別し、各ブロックに対応する量子化係数行列に含まれる
有効係数にそれぞれに対応する量子化閾値を乗じて選択
的に逆量子化し、有効係数の量子化係数行列における位
置を示す有効係数アドレスに応じて、得られた逆量子化
結果をそれぞれ保持するとともに、各ブロックにおいて
無効係数に対応し、かつ、その前のブロックにおいて有
効係数に対応する現ブロック無効アドレスに対する初期
化処理を行って、各ブロックに対応する係数行列を復元
することを特徴とする。
FIG. 1 shows the principle of an inverse quantization method according to the present invention. According to the first aspect of the present invention, the original image is orthogonally transformed into blocks each including a plurality of pixels,
Decode the code data when restoring the original image from the code data by the orthogonal transform coding method that codes the quantization coefficient matrix obtained by quantizing each component of the coefficient matrix composed of the conversion coefficient with the corresponding quantization threshold. In the inverse quantization method of obtaining a coefficient matrix from the quantized coefficients obtained by the above, in the quantization coefficient matrices corresponding to each block and the block before it, a difference in distribution of effective coefficients having a value other than zero is determined. Then, the effective coefficients included in the quantization coefficient matrix corresponding to each block are multiplied by the corresponding quantization threshold to selectively inverse quantize, and according to the effective coefficient address indicating the position of the effective coefficient in the quantization coefficient matrix. In addition to holding the obtained inverse quantization results ,
Corresponds to the invalid coefficient and exists in the previous block.
The initialization process is performed on the current block invalid address corresponding to the effective coefficient, and the coefficient matrix corresponding to each block is restored.

【0020】図2に、請求項2および請求項3の画像デ
ータ復元装置の構成を示す。請求項2の発明は、原画像
をそれぞれが複数の画素からなるブロックごとに直交変
換し、変換係数からなる係数行列の各成分を対応する量
子化閾値で量子化して得られる量子化係数行列を符号化
する直交変換符号化方式による符号データが連続して入
力され、この符号データを復号して、各ブロックに対応
する量子化係数行列を表す復号データを順次に出力する
復号手段101と、復号データに基づいて、各ブロック
の量子化係数行列に含まれる零以外の値を有する有効係
数が量子化係数行列において占める位置を示す有効係数
アドレスをそれぞれ求めて、現ブロックアドレスとして
出力するアドレス算出手段111と、有効係数と該当す
る現ブロックアドレスで示される量子化閾値とを乗算し
て逆量子化する逆量子化手段112と、逆量子化手段1
12による逆量子化結果を現ブロックアドレスに変換係
数として格納する変換係数格納手段113と、現ブロッ
クアドレスを順次に保持するとともに、前のブロックの
処理の際に保持した有効係数アドレスを前ブロックアド
レスとして出力するアドレス保持手段114と、前ブロ
ックアドレスと現ブロックアドレスとに基づいて、各ブ
ロックにおいて無効係数に対応し、かつ、その前のブロ
ックにおいて有効係数に対応する現ブロック無効アドレ
スを判別する判別手段115と、現ブロック無効アドレ
スで示される変換係数格納手段113の格納場所に初期
値を書き込んで初期化する初期化手段116と、変換係
数格納手段113に格納された変換係数からなる係数行
列を逆直交変換して、画像データを復元する逆直交変換
手段102とを備えたことを特徴とする。
FIG. 2 shows the configuration of the image data restoration apparatus according to the second and third aspects. According to a second aspect of the present invention, a quantized coefficient matrix obtained by orthogonally transforming an original image for each block composed of a plurality of pixels and quantizing each component of a coefficient matrix composed of transform coefficients with a corresponding quantization threshold is used. Decoding means 101 for continuously receiving code data according to an orthogonal transform coding scheme to be decoded, decoding the code data, and sequentially outputting decoded data representing a quantization coefficient matrix corresponding to each block; Address calculating means for obtaining effective coefficient addresses indicating positions occupied by the effective coefficient having a value other than zero included in the quantization coefficient matrix of each block in the quantization coefficient matrix based on the data, and outputting the effective coefficient address as a current block address. An inverse quantization unit 112 for performing inverse quantization by multiplying the effective coefficient by a quantization threshold indicated by the corresponding current block address; Means 1
12, a transform coefficient storage unit 113 for storing the result of inverse quantization as a transform coefficient in the current block address, and sequentially storing the current block address and storing the effective coefficient address held in the processing of the previous block in the previous block address. And an address holding unit 114 which outputs a current block invalid address corresponding to an invalid coefficient in each block and a current block invalid address corresponding to a valid coefficient in the previous block based on the previous block address and the current block address. Means 115, an initializing means 116 for writing and initializing an initial value in a storage location of the transform coefficient storage means 113 indicated by the current block invalid address, and a coefficient matrix composed of the transform coefficients stored in the transform coefficient storage means 113. Inverse orthogonal transformation means 102 for performing inverse orthogonal transformation and restoring image data; Characterized in that was.

【0021】請求項3の発明は、請求項2に記載の画像
データ復元装置において、変換係数格納手段113が、
1ブロック分の係数行列に相当する容量を有する複数の
領域を切り換えて、連続するブロックに対応する係数行
列を格納する構成であることを特徴とする。
According to a third aspect of the present invention, in the image data restoring apparatus according to the second aspect, the transform coefficient storage means 113 comprises:
A plurality of areas having a capacity corresponding to a coefficient matrix for one block are switched to store a coefficient matrix corresponding to a continuous block.

【0022】図3に、請求項4および請求項5の画像デ
ータ復元装置の構成を示す。請求項4の発明は、請求項
2に記載の画像データ復元装置において、各ブロックに
対応する量子化係数行列に含まれる有効係数の数に基づ
いて、直流成分のみで表される直流ブロックを検出し、
この検出結果を逆直交変換手段102による逆直交変換
処理に供するブロック検出手段121を備えたことを特
徴とする。
FIG. 3 shows the construction of the image data restoring device according to the fourth and fifth aspects. According to a fourth aspect of the present invention, in the image data restoration apparatus according to the second aspect, a DC block represented only by a DC component is detected based on the number of effective coefficients included in a quantization coefficient matrix corresponding to each block. And
It is characterized by including a block detection means 121 for subjecting this detection result to inverse orthogonal transformation processing by the inverse orthogonal transformation means 102.

【0023】請求項5の発明は、請求項2に記載の画像
データ復元装置において、各ブロックに対応する量子化
係数行列に含まれる有効係数の数に基づいて、有効係数
を含まない無効ブロックを検出し、この検出結果を逆直
交変換手段102による逆直交変換処理に供するブロッ
ク検出手段131を備えたことを特徴とする。
According to a fifth aspect of the present invention, in the image data restoring apparatus according to the second aspect, based on the number of effective coefficients included in the quantization coefficient matrix corresponding to each block, an invalid block including no effective coefficient is determined. It is characterized by including a block detection means 131 for detecting the detection result and subjecting the detection result to inverse orthogonal transformation processing by the inverse orthogonal transformation means 102.

【0024】[0024]

【作用】請求項1の発明は、各ブロックに対応する量子
化係数行列の有効係数のみを選択的に逆量子化して、そ
れぞれ対応する有効係数アドレスに保持し、連続する2
つのブロックの量子化係数行列における有効係数の分布
を考慮しながら初期化処理を行うことができる。これに
より、前のブロックと有効係数アドレスが一致している
場合や、前のブロックにおいて無効係数に対応するアド
レスに対する無駄な初期化処理を削減することが可能と
なる。
According to the first aspect of the present invention, only the effective coefficients of the quantized coefficient matrix corresponding to each block are selectively inversely quantized and held at the corresponding effective coefficient addresses.
The initialization process can be performed while considering the distribution of effective coefficients in the quantization coefficient matrix of one block. This makes it possible to reduce unnecessary initialization processing for the case where the previous block and the effective coefficient address match or for the address corresponding to the invalid coefficient in the previous block.

【0025】請求項2の発明は、復号手段101によっ
て得られる復号データに基づいて、アドレス算出手段1
11と逆量子化手段112とによって、各ブロックの量
子化係数行列に含まれる有効係数を選択的に逆量子化
し、変換係数格納手段113にそれぞれ有効係数アドレ
スに応じて格納する。また、アドレス保持手段114と
判別手段115とによって、現ブロック無効アドレスを
判別し、変換係数格納手段113の現ブロック無効アド
レスで示される格納場所に、初期化手段116が初期値
を書き込むことにより、各ブロックに対応する係数行列
を復元し、逆直交変換手段102による逆直交変換処理
に供することができる。
According to a second aspect of the present invention, there is provided an address calculating means based on the decoded data obtained by the decoding means.
11 and the inverse quantization means 112 selectively inverse quantizes the effective coefficients included in the quantized coefficient matrix of each block, and stores them in the transform coefficient storage means 113 according to the effective coefficient addresses. Further, the address holding unit 114 and the determination unit 115 determine the current block invalid address, and the initialization unit 116 writes the initial value in the storage location of the transform coefficient storage unit 113 indicated by the current block invalid address. The coefficient matrix corresponding to each block can be restored and subjected to inverse orthogonal transform processing by the inverse orthogonal transform means 102.

【0026】これにより、連続する2つのブロックそれ
ぞれの量子化係数行列における有効係数の分布を考慮し
て、無駄な初期化処理を省略することが可能となる。請
求項3の発明は、変換係数格納手段113の複数の領域
のいずれかに変換係数を格納する処理と、他の領域に格
納された係数行列に対する逆直交変換処理とを並行して
行うことができる。
This makes it possible to omit useless initialization processing in consideration of the distribution of effective coefficients in the quantization coefficient matrix of each of two consecutive blocks. According to the third aspect of the present invention, the process of storing the transform coefficient in any one of the plurality of regions of the transform coefficient storage unit 113 and the inverse orthogonal transform process on the coefficient matrix stored in another region can be performed in parallel. it can.

【0027】請求項4の発明は、ブロック検出手段12
1により、直流ブロックが検出されるので、逆直交変換
手段102は、このブロック検出手段121による検出
結果に応じて、直流ブロックに適応した処理を行うこと
ができる。
According to a fourth aspect of the present invention, the block detecting means 12
1, the DC block is detected, so that the inverse orthogonal transform unit 102 can perform processing suitable for the DC block according to the detection result of the block detection unit 121.

【0028】請求項5の発明は、ブロック検出手段13
1により、無効ブロックが検出されるので、逆直交変換
手段102は、このブロック検出手段131による検出
結果に応じて、無効ブロックに適応した処理を行うこと
ができる。
According to a fifth aspect of the present invention, the block detecting means 13
Since the invalid block is detected by 1, the inverse orthogonal transform unit 102 can perform a process adapted to the invalid block according to the detection result by the block detecting unit 131.

【0029】[0029]

【実施例】以下、図面に基づいて本発明の実施例につい
て詳細に説明する。図4は、請求項2の画像データ復元
装置の実施例構成を示す。
Embodiments of the present invention will be described below in detail with reference to the drawings. FIG. 4 shows an embodiment of the image data restoring apparatus according to the second aspect.

【0030】図4において、復号部711と復号表71
2とは、復号手段101に相当するものであり、従来と
同様に、各符号の入力に応じて、復号部711が復号表
712から対応するインデックスとランとの組合せを検
索し、得られた検索結果を復号データとして逆量子化部
210に送出する構成となっている。
In FIG. 4, the decoding unit 711 and the decoding table 71
2 corresponds to the decoding means 101, and the decoding unit 711 searches the decoding table 712 for the corresponding combination of the index and the run in accordance with the input of each code, as in the related art, and is obtained. The search result is transmitted to the inverse quantization unit 210 as decoded data.

【0031】この逆量子化部210において、上述した
復号データは、デマルチプレクサ201により、ランと
インデックスとに分離され、それぞれアドレス算出手段
111と逆量子化手段112とに送出されている。
In the inverse quantization unit 210, the decoded data described above is separated into a run and an index by the demultiplexer 201 and sent to the address calculation unit 111 and the inverse quantization unit 112, respectively.

【0032】このアドレス算出手段111は、積算回路
211とブロック検出部212とから構成されており、
積算回路211が、ランの値に数値『1』を加算したも
のを順次に積算する構成となっている。また、ブロック
検出部212には、ランが入力されており、ブロックの
最後を示すラン『REOB 』の入力に応じて、ブロックの
終わりを検出した旨の検出信号を出力して、積算回路2
11の積算値を初期値『0』にリセットする構成となっ
ている。
The address calculating means 111 comprises an integrating circuit 211 and a block detecting section 212.
The integrating circuit 211 is configured to sequentially integrate the value obtained by adding the numerical value “1” to the run value. Also, the run is input to the block detection unit 212, and in response to the input of the run “R EOB ” indicating the end of the block, a detection signal indicating that the end of the block has been detected is output.
The integrated value of 11 is reset to an initial value “0”.

【0033】このようにして、各インデックスに対応す
る積算結果として、ジグザグスキャン(図16参照)に
よる走査順序が得られる。この走査順序は、8行8列の
量子化係数DQUにおいて、各インデックスに対応する有
効係数が占める位置を示しているから、この積算回路2
11によって得られた走査順序を現ブロックアドレスと
して送出すればよい。
In this way, a scanning order by zigzag scanning (see FIG. 16) is obtained as an integration result corresponding to each index. This scanning order indicates the position occupied by the effective coefficient corresponding to each index in the quantization coefficient D QU of 8 rows and 8 columns.
The scanning order obtained by 11 may be transmitted as the current block address.

【0034】図4において、逆量子化手段112は、乗
算器221と量子化閾値保持部222とから構成されて
おり、この量子化閾値保持部222には、ジグザグスキ
ャンによる走査順序に対応して、各DCT係数に対応す
る量子化閾値が保持されている。従って、上述したアド
レス算出手段111によって得られた現ブロックアドレ
スの入力に応じて、量子化閾値保持部222が、対応す
る量子化閾値を乗算器221に送出し、乗算器221
が、入力されるインデックスとこの量子化閾値との乗算
を行うことにより、インデックスで示される有効係数を
逆量子化してDCT係数を得ることができる。
In FIG. 4, the inverse quantization means 112 is composed of a multiplier 221 and a quantization threshold value holding section 222. The quantization threshold value holding section 222 has a function corresponding to the scanning order by zigzag scanning. , A quantization threshold value corresponding to each DCT coefficient is held. Therefore, in response to the input of the current block address obtained by the above-described address calculation unit 111, the quantization threshold holding unit 222 sends the corresponding quantization threshold to the multiplier 221 and the multiplier 221
By multiplying the input index by the quantization threshold, the effective coefficient indicated by the index is inversely quantized to obtain a DCT coefficient.

【0035】なお、ここでは、デマルチプレクサ201
により、予めランとインデックスとを分離して、それぞ
れアドレス算出手段111と逆量子化手段112とに入
力する構成としたが、アドレス算出手段111および逆
量子化手段112が、復号データからそれぞれランおよ
びインデックスを抽出する手段を備えて構成してもよ
い。
In this case, the demultiplexer 201
Thus, the run and the index are separated in advance and input to the address calculation unit 111 and the inverse quantization unit 112, respectively. However, the address calculation unit 111 and the inverse quantization unit 112 It may be configured to include means for extracting an index.

【0036】また、図4において、上述した逆量子化手
段112によって得られたDCT係数は、マルチプレク
サ231の入力ポートの一方に入力されており、このマ
ルチプレクサ231の他方の入力ポートには、数値
『0』が入力されている。つまり、このマルチプレクサ
231が後述する切換指示に応じて、上述した乗算器2
21の出力と数値『0』とのいずれかを選択して、バッ
ファ232に送出する構成となっている。
In FIG. 4, the DCT coefficient obtained by the above-described inverse quantization means 112 is input to one of the input ports of the multiplexer 231, and the other input port of the multiplexer 231 has a numerical value “ 0 ”has been entered. That is, the multiplexer 231 responds to a switching instruction described later, and
In this configuration, any one of the output of S <b> 21 and the numerical value “0” is selected and sent to the buffer 232.

【0037】このバッファ232は、変換係数格納手段
113に相当するものであり、マルチプレクサ231を
介して入力されるデータを指定されたアドレスに格納す
る構成となっている。
The buffer 232 corresponds to the transform coefficient storage means 113, and is configured to store data input via the multiplexer 231 at a specified address.

【0038】また、図4において、メモリ241とカウ
ンタ242とは、アドレス保持手段114を形成してお
り、カウンタ242は、メモリ241に有効係数アドレ
スが入力されるたびに計数値を『1』ずつ加算する構成
となっている。また、メモリ241は、このカウンタ2
42の計数値で示されるアドレスに、上述した有効係数
アドレスを保持する構成となっている。
In FIG. 4, the memory 241 and the counter 242 form an address holding means 114. The counter 242 increments the count value by "1" each time a valid coefficient address is input to the memory 241. It is configured to add. The memory 241 stores the counter 2
The effective coefficient address is held at the address indicated by the count value of 42.

【0039】例えば、図5(a) に斜線を付して示した有
効係数に対応するアドレスが、図5(b) に示すように、
それぞれ入力順に対応するメモリ241のアドレスに保
持される。
For example, as shown in FIG. 5B, the address corresponding to the effective coefficient indicated by hatching in FIG.
The addresses are stored in the addresses of the memory 241 corresponding to the input order.

【0040】このようにしてメモリ241に保持された
有効係数アドレスは、上述したブロック検出部212に
よる検出信号に応じて、図4に示すメモリ251に転送
され、このメモリ251により、前ブロックアドレスと
して保持される構成となっている。また、このとき、カ
ウンタ242の計数値が、図4に示すレジスタ254に
転送され、このレジスタ254によって保持される。
The effective coefficient address held in the memory 241 in this way is transferred to the memory 251 shown in FIG. 4 in accordance with the detection signal from the above-described block detection section 212. It is configured to be retained. At this time, the count value of the counter 242 is transferred to the register 254 shown in FIG.

【0041】上述したメモリ251と比較器252と判
別処理部253とレジスタ254とは、判別手段115
を形成しており、比較器252が、メモリ251に保持
された前ブロックアドレスとアドレス算出手段111か
らの現ブロックアドレスとを比較し、この比較結果に基
づいて、判別処理部253が、後述する分布判別処理を
行う構成となっている。
The above-mentioned memory 251, comparator 252, discrimination processing unit 253 and register 254 are connected to discrimination means 115.
The comparator 252 compares the previous block address stored in the memory 251 with the current block address from the address calculation unit 111, and based on the result of the comparison, the discrimination processing unit 253 described later. It is configured to perform distribution determination processing.

【0042】この判別手段115による判別結果は、マ
ルチプレクサ231に入力されており、このマルチプレ
クサ231による入力ポートの選択処理に供されてい
る。また、上述したメモリ251から出力された前ブロ
ックアドレスは、アドレス算出手段111からの現ブロ
ックアドレスとともに、セレクタ255に入力されてお
り、このセレクタ255は、上述した判別手段115に
よる判別結果に応じて、前ブロックアドレスと現ブロッ
クアドレスとのいずれか一方を選択して、バッファ23
2に書込アドレスとして指定する構成となっている。
The result of the determination by the determination means 115 is input to the multiplexer 231 and is used for the input port selection processing by the multiplexer 231. Further, the previous block address output from the memory 251 is input to the selector 255 together with the current block address from the address calculation unit 111. The selector 255 responds to the determination result by the determination unit 115 described above. , One of the previous block address and the current block address, and
2 is designated as a write address.

【0043】すなわち、判別手段115による判別結果
に応じて、マルチプレクサ231とセレクタ255とが
動作して、判別結果で示されるアドレスに数値『0』を
初期値として書き込む構成となっており、このマルチプ
レクサ231とセレクタ255とによって、初期化手段
116の機能を実現する構成となっている。
That is, the multiplexer 231 and the selector 255 operate according to the result of the determination by the determination means 115, and write a numerical value "0" as an initial value in the address indicated by the result of the determination. The function of the initialization means 116 is realized by the 231 and the selector 255.

【0044】次に、図4に示した逆量子化部210によ
る逆量子化動作について、図5(a),(c) に示す量子化係
数DQUを表す復号データが連続して入力された場合を例
として詳細に説明する。
Next, regarding the inverse quantization operation by the inverse quantization unit 210 shown in FIG. 4, decoded data representing the quantized coefficient D QU shown in FIGS. 5A and 5C is continuously input. The case will be described in detail as an example.

【0045】この場合は、上述したメモリ251には、
既に、図5(a) に示した量子化係数DQUにおける有効係
数アドレスが前ブロックアドレスとして保持されてい
る。また、図5(c) に示す量子化係数DQUを表す復号デ
ータのインデックスおよびランの組合せの入力に応じ
て、アドレス算出手段111により、上述したようにし
て有効係数アドレスが算出され、現ブロックアドレスと
して、順次にメモリ241および比較器252に入力さ
れている。
In this case, the above-mentioned memory 251 stores
The effective coefficient address in the quantized coefficient D QU shown in FIG. 5A has already been held as the previous block address. Further, in accordance with the input of the combination of the index and the run of the decoded data representing the quantized coefficient D QU shown in FIG. 5C, the effective coefficient address is calculated by the address calculating means 111 as described above, and the current block is calculated. The addresses are sequentially input to the memory 241 and the comparator 252.

【0046】図6に、逆量子化動作を表す流れ図を示
す。現ブロックアドレスの入力(ステップ301)に応
じて、判別処理部253は、メモリ251のアドレスを
指定して、前ブロックアドレスの出力を指示する。例え
ば、判別処理部253が、メモリ251のアドレスを指
定するポインタを制御する構成とすればよい。このポイ
ンタは、各ブロックの逆量子化処理を開始する際に、メ
モリ251の先頭アドレスにセットし、順次にポインタ
を進める構成とすればよい。
FIG. 6 is a flowchart showing the inverse quantization operation. In response to the input of the current block address (step 301), the determination processing unit 253 specifies the address of the memory 251 and instructs the output of the previous block address. For example, the determination processing unit 253 may be configured to control a pointer that specifies an address of the memory 251. The pointer may be set at the start address of the memory 251 when the inverse quantization process of each block is started, and the pointer may be sequentially advanced.

【0047】次に、比較器252により、現ブロックア
ドレス(現AD)と前ブロックアドレス(前AD)とを
比較し、この比較結果に基づいて、まず、現ブロックと
前ブロックとで同じ位置に有効係数が分布しているか否
かを判定する(ステップ302)。
Next, the current block address (current AD) and the previous block address (previous AD) are compared by the comparator 252, and based on the result of the comparison, first, the current block and the previous block are located at the same position. It is determined whether the effective coefficients are distributed (step 302).

【0048】例えば、最初に入力される現ブロックアド
レスと前ブロックアドレスとは、両方ともDC成分に対
応するアドレス『0』であるから、比較器252によ
り、現ブロックアドレスと前ブロックアドレスとが一致
する旨の比較結果が得られる。この場合は、現ブロック
と前ブロックとの両方において、該当するアドレスに対
応して有効係数が分布していると判断し、ステップ30
2における肯定判定とすればよい。
For example, since the current block address and the previous block address which are input first are both addresses "0" corresponding to the DC component, the comparator 252 makes the current block address and the previous block address coincide. Is obtained. In this case, in both the current block and the previous block, it is determined that effective coefficients are distributed corresponding to the corresponding address, and step 30 is performed.
The determination may be affirmative in step 2.

【0049】この場合に、判別処理部253は、マルチ
プレクサ231に乗算器221の出力の選択を指示する
とともに、セレクタ255に現ブロックアドレスの選択
を指示する。これにより、バッファ232の現ブロック
アドレス(例えば、DC成分に対応するアドレス)に乗
算器221によって得られたDCT係数が格納される
(ステップ303)。また、このとき、判別処理部25
3は、メモリ251のアドレスを指定するポインタを更
新し(ステップ304)、メモリ251に次の有効係数
アドレスの出力を指示した後に、次の復号データの処理
を行えばよい。
In this case, the determination processing unit 253 instructs the multiplexer 231 to select the output of the multiplier 221 and instructs the selector 255 to select the current block address. As a result, the DCT coefficient obtained by the multiplier 221 is stored in the current block address (for example, the address corresponding to the DC component) of the buffer 232 (Step 303). At this time, the discrimination processing unit 25
3 updates the pointer designating the address of the memory 251 (step 304), and after instructing the memory 251 to output the next effective coefficient address, performs the processing of the next decoded data.

【0050】ここで、ステップ304において、更新前
のポインタの値がレジスタ254の内容と一致した場合
は、ステップ301で入力された現ブロックアドレス以
降に、前ブロックにおける有効係数が存在しないことを
示している。従って、以後は、現ブロックアドレスの入
力に応じて、該当するアドレスに乗算器221の出力を
格納する処理を行えばよい。
If the value of the pointer before update matches the content of the register 254 in step 304, it indicates that there is no effective coefficient in the previous block after the current block address input in step 301. ing. Therefore, after that, according to the input of the current block address, a process of storing the output of the multiplier 221 at the corresponding address may be performed.

【0051】一方、ステップ302における否定判定の
場合は、現ブロックと前ブロックとで有効係数の分布に
相違があると判断し、現ブロックアドレスが前ブロック
アドレスよりも小さいか否かを判定する(ステップ30
5)。
On the other hand, if a negative determination is made in step 302, it is determined that there is a difference in the distribution of effective coefficients between the current block and the previous block, and it is determined whether the current block address is smaller than the previous block address ( Step 30
5).

【0052】ここで、現ブロックアドレスが前ブロック
アドレスよりも小さい場合は、この現ブロックアドレス
が、前ブロックにおいて無効係数に対応していることを
示している。従って、このステップ305における肯定
判定の場合に、判別処理部253は、上述したステップ
303と同様に、マルチプレクサ231とセレクタ25
5とを制御して、バッファ232の現ブロックアドレス
にDCT係数を格納し(ステップ306)、次の復号デ
ータの処理を行えばよい。
Here, when the current block address is smaller than the previous block address, it indicates that the current block address corresponds to the invalid coefficient in the previous block. Accordingly, in the case of an affirmative determination in step 305, the determination processing unit 253 determines whether the multiplexer 231 and the selector 25
5, the DCT coefficient is stored in the current block address of the buffer 232 (step 306), and the processing of the next decoded data may be performed.

【0053】一方、現ブロックアドレスが前ブロックア
ドレスよりも大きい場合は、この前ブロックアドレス
が、現ブロックにおいて無効係数に対応していることを
示している。つまり、この前ブロックアドレスは、現ブ
ロック無効アドレスである。
On the other hand, if the current block address is larger than the previous block address, it indicates that the previous block address corresponds to the invalid coefficient in the current block. That is, the previous block address is a current block invalid address.

【0054】例えば、2番目に入力される現ブロックア
ドレス『3』は、2番目の前ブロックアドレス『2』よ
りも大きいと判定され、ステップ305における否定判
定となる。この場合に、判別処理部253は、現ブロッ
ク無効アドレスを検出したと判断し、マルチプレクサ2
31に数値『0』の選択を指示するとともに、セレクタ
255に前ブロックアドレスの選択を指示する。これに
より、バッファ232の該当するアドレス(例えば、前
ブロックアドレス『2』)に数値『0』が格納され、前
ブロックの逆量子化処理の際に書き込まれた有効係数が
クリアされる(ステップ307)。
For example, it is determined that the current block address “3” input second is larger than the second previous block address “2”, and a negative determination is made in step 305. In this case, the determination processing unit 253 determines that the current block invalid address has been detected, and
31 is instructed to select the numerical value “0”, and the selector 255 is instructed to select the previous block address. As a result, the numerical value “0” is stored in the corresponding address of the buffer 232 (for example, the previous block address “2”), and the effective coefficient written in the inverse quantization processing of the previous block is cleared (step 307). ).

【0055】ところで、上述したステップ305におけ
る否定判定の場合は、上述した前ブロックアドレスで示
される無効係数の他にも、現ブロックレス無効アドレス
が存在する可能性がある。
In the case of a negative determination in step 305 described above, there is a possibility that a current blockless invalid address exists in addition to the invalid coefficient indicated by the previous block address.

【0056】従って、判別処理部253は、上述したス
テップ307の終了後にポインタを更新し(ステップ3
08)、メモリ252に次の前ブロックアドレスの出力
を指示した後に、再び、ステップ302に戻って、現ブ
ロックと前ブロックとの有効係数の分布の相違を検出す
る処理を行えばよい。これにより、現ブロック無効アド
レスをもれなく検出することができる。
Therefore, the discrimination processing unit 253 updates the pointer after the end of the above-described step 307 (step 3).
08), after instructing the memory 252 to output the next previous block address, the process may return to step 302 again to perform a process of detecting a difference in distribution of effective coefficients between the current block and the previous block. As a result, the current block invalid address can be detected without fail.

【0057】また、上述したステップ308において、
更新前のポインタがレジスタ254に設定された最終ア
ドレスと一致している場合は、ポインタの更新処理に代
えて、ステップ303と同様にして、現ブロックアドレ
スにDCT係数を格納する処理を行い、以後は、現ブロ
ックアドレスの入力に応じて、該当するアドレスに乗算
器221の出力を格納する処理を行えばよい。
In step 308 described above,
If the pointer before update matches the final address set in the register 254, the process of storing the DCT coefficient in the current block address is performed in the same manner as in step 303, instead of the pointer update process. May be performed in accordance with the input of the current block address to store the output of the multiplier 221 at the corresponding address.

【0058】上述したステップ301〜ステップ308
を繰り返すことにより、現ブロックの量子化係数DQU
含まれる有効係数に対応する有効係数アドレスよりも前
の部分のDCT係数Dが順次に復元される。
Steps 301 to 308 described above
Is repeated, the DCT coefficients D in the portion before the effective coefficient address corresponding to the effective coefficient included in the quantization coefficient D QU of the current block are sequentially restored.

【0059】また、ブロック検出部212からの検出信
号に応じて、最後の前ブロックアドレスと最後の現ブロ
ックアドレスとを比較し、判別処理部253が、この比
較結果に応じて以下の処理を行うことにより、最後の現
ブロックアドレス以降のDCT係数Dの部分が復元され
る。
Further, according to the detection signal from the block detection section 212, the last previous block address is compared with the last current block address, and the determination processing section 253 performs the following processing according to the comparison result. Thus, the portion of the DCT coefficient D after the last current block address is restored.

【0060】最後の前ブロックアドレスが最後の現ブロ
ックアドレスよりも大きいとされた場合は、最後の現ブ
ロックアドレス以降に、前ブロックにおける有効係数ア
ドレスが存在している。この場合は、判別処理部253
が、レジスタ254の内容とポインタとが一致するまで
メモリ251の内容を順次に読み出し、上述したステッ
プ307と同様にして、バッファ232のこれらの各ア
ドレスに対する初期化処理を行えばよい。他の場合は、
上述したステップ304あるいはステップ308におい
て処理されているので、そのまま終了すればよい。
If the last previous block address is larger than the last current block address, a valid coefficient address in the previous block exists after the last current block address. In this case, the determination processing unit 253
However, the contents of the memory 251 may be sequentially read out until the contents of the register 254 and the pointer match, and the initialization process for each of these addresses in the buffer 232 may be performed in the same manner as in step 307 described above. In other cases,
Since the processing is performed in step 304 or step 308 described above, the processing may be ended as it is.

【0061】このようにして、逆量子化結果をバッファ
232の現ブロックアドレスに格納するとともに、バッ
ファ232の現ブロック無効アドレスを選択的に初期化
することにより、8行8列のDCT係数Dを復元するこ
とができる。
As described above, the inverse quantization result is stored in the current block address of the buffer 232, and the current block invalid address of the buffer 232 is selectively initialized, so that the DCT coefficient D of 8 rows and 8 columns is obtained. Can be restored.

【0062】これにより、無効係数と量子化閾値との無
駄な乗算処理を削減するとともに、前ブロックにおいて
無効係数に対応していたアドレスおよび現ブロックにお
ける有効係数アドレスに対する無駄な初期化処理とを削
減することが可能となる。
As a result, unnecessary multiplication processing of the invalid coefficient and the quantization threshold is reduced, and useless initialization processing for the address corresponding to the invalid coefficient in the previous block and the valid coefficient address in the current block is also reduced. It is possible to do.

【0063】ここで、図5(a),(c) に示したように、連
続する2つのブロックに対応する量子化係数DQUにおい
ては、有効係数の分布は類似している場合が多いので、
上述したステップ305において、現ブロック無効アド
レスとして検出されるものは極くわずかである。例え
ば、図5(c) に示した量子化係数DQUにおいては、斜線
を付して示した3つのアドレスのみが、初期化処理を要
する現ブロック無効アドレスとして検出される。従っ
て、この量子化係数DQUの逆量子化処理に要する時間
は、7個の有効係数についての乗算処理に要する時間と
上述した3つのアドレスへの初期値『0』の書込処理に
要する時間の和となり、1ブロック分の量子化係数DQU
の逆量子化処理に要する時間を大幅に短縮することがで
きる。
Here, as shown in FIGS. 5 (a) and 5 (c), the effective coefficient distribution is often similar in the quantized coefficients D QU corresponding to two consecutive blocks. ,
In step 305 described above, only a very small number are detected as the current block invalid address. For example, in the quantized coefficient D QU shown in FIG. 5C, only three hatched addresses are detected as current block invalid addresses requiring initialization processing. Therefore, the time required for the inverse quantization process of the quantized coefficient D QU is the time required for the multiplication process for the seven effective coefficients and the time required for the process of writing the initial value “0” to the above three addresses. And the quantization coefficient D QU for one block
Can be greatly reduced.

【0064】また、上述したように、乗算器221によ
って得られるDCT係数をバッファ232に書き込む過
程で、ステップ306で検出されたアドレスに対して初
期値『0』を書き込む処理を行うので、1ブロック分の
逆量子化処理が終了した後に改めて初期化処理を行う必
要がない。
As described above, in the process of writing the DCT coefficient obtained by the multiplier 221 to the buffer 232, the process of writing the initial value “0” to the address detected in step 306 is performed, so that one block There is no need to perform the initialization process again after the minute inverse quantization process ends.

【0065】従って、ブロック検出部212からの検出
信号に応じて、判別処理部253が上述した処理を行っ
た後に、DCT係数Dの復元処理が終了した旨を逆DC
T変換部731に通知し、逆DCT変換処理の開始を指
示する構成とすればよい。
Accordingly, in response to the detection signal from the block detection section 212, the discrimination processing section 253 performs the above-described processing, and then indicates that the restoration processing of the DCT coefficient D has been completed.
What is necessary is just to set it as the structure which notifies to the T conversion part 731 and instructs the start of an inverse DCT conversion process.

【0066】この開始指示に応じて、逆DCT変換部7
31が、従来と同様にバッファ232に格納されたDC
T係数に対して逆DCT変換処理を行うことにより、1
ブロック分の画像データが復元される。また、上述した
逆量子化処理および逆DCT変換処理を各ブロックにつ
いて繰り返すことにより、1画面分の画像データが復元
される。
In response to this start instruction, the inverse DCT converter 7
31 is the DC stored in the buffer 232 as in the prior art.
By performing the inverse DCT transform processing on the T coefficient, 1
The image data for the block is restored. Further, by repeating the above-described inverse quantization process and inverse DCT transform process for each block, image data for one screen is restored.

【0067】なお、現ブロックの全ての有効係数をバッ
ファ232の現ブロックアドレスに格納した後に、バッ
ファ232の現ブロック無効アドレスに対する初期化処
理を行ってもよい。例えば、64個のアドレスを有する
メモリ241,251を設けて、現ブロックおよび前ブ
ロックそれぞれの量子化係数DQUについて、各アドレス
が有効係数であるか否かを示す情報を格納して、それぞ
れ有効係数の分布を表すマップを作り、このマップの比
較結果から現ブロック無効アドレスを求めて初期処理を
行えばよい。
After all the valid coefficients of the current block have been stored in the current block address of the buffer 232, the initialization processing for the current block invalid address of the buffer 232 may be performed. For example, memories 241 and 251 having 64 addresses are provided, and for each of the quantization coefficient D QU of the current block and the previous block, information indicating whether or not each address is a valid coefficient is stored, and each is stored in a valid state. A map representing the distribution of coefficients may be created, and the current block invalid address may be obtained from the comparison result of this map to perform the initial processing.

【0068】また、各ブロックの逆量子化処理と各ブロ
ックの逆DCT変換処理とは、独立に処理可能であるか
ら、逆量子化処理と逆DCT変換処理とを並行して処理
する構成としてもよい。
Further, since the inverse quantization process of each block and the inverse DCT transform process of each block can be performed independently, a configuration in which the inverse quantization process and the inverse DCT transform process are performed in parallel is also possible. Good.

【0069】図7に、請求項3の画像データ復元装置の
逆量子化部の実施例構成を示す。図7において、変換係
数格納手段113は、2つのバッファ233a,233
bとセレクタ234とマルチプレクサ(MPX)235
とパイプライン制御部236とから形成されており、上
述したマルチプレクサ(MPX)231の出力は、バッ
ファ233a,233bにそれぞれ入力される構成とな
っている。また、この変換係数格納手段113におい
て、パイプライン制御部236は、これらのバッファ2
33a,233bとセレクタ234とマルチプレクサ2
35とを制御して、バッファ233a,233bに対す
る書込動作および読出動作を制御する構成となってい
る。以下、バッファ233a,233bを総称する際
は、単にバッファ233と称する。
FIG. 7 shows an embodiment of the inverse quantization unit of the image data restoration apparatus according to the third aspect. In FIG. 7, the conversion coefficient storage unit 113 includes two buffers 233a and 233.
b, selector 234 and multiplexer (MPX) 235
And the pipeline control unit 236. The output of the multiplexer (MPX) 231 is input to the buffers 233a and 233b. In the conversion coefficient storage unit 113, the pipeline control unit 236
33a, 233b, selector 234, and multiplexer 2
35 to control the write operation and the read operation for the buffers 233a and 233b. Hereinafter, when the buffers 233a and 233b are collectively referred to, they are simply referred to as a buffer 233.

【0070】この場合は、上述した判別処理部253
が、DCT係数Dを復元する処理が終了した旨の通知を
パイプライン制御部236に送出する構成とし、パイプ
ライン制御部236が、この通知に応じて、DCT係数
Dの書き込みが終了したバッファ233を読出有効状態
とするとともに、他方のバッファ233を書込有効状態
とし、セレクタ234に対して出力ポートの切り換えを
指示すればよい。これに応じて、このセレクタ234に
より、新たに書込有効状態とされたバッファ233にセ
レクタ255からのアドレスが入力され、DCT係数の
書込処理が行われる。
In this case, the above-described discrimination processing unit 253
Transmits a notification to the effect that the processing for restoring the DCT coefficient D has been completed to the pipeline control unit 236, and the pipeline control unit 236 responds to the notification by writing the buffer 233 in which the writing of the DCT coefficient D has been completed. Is set to the read valid state, the other buffer 233 is set to the write valid state, and the selector 234 may be instructed to switch the output port. In response to this, the selector 234 inputs the address from the selector 255 to the buffer 233 which has been newly written, and the DCT coefficient writing process is performed.

【0071】また、このとき、パイプライン制御部23
6は、マルチプレクサ235に対して、読出有効状態と
したバッファ233に対応する入力ポートの選択を指示
するとともに、逆DCT変換部731に逆DCT変換処
理の開始を指示し、逆DCT変換部731からの終了通
知に応じて、復号部711に次のブロックの復号処理の
開始を指示すればよい。
At this time, the pipeline control unit 23
6 instructs the multiplexer 235 to select the input port corresponding to the buffer 233 in the read enabled state, and instructs the inverse DCT transform unit 731 to start the inverse DCT transform process. May be instructed to the decoding unit 711 to start the decoding processing of the next block in response to the end notification.

【0072】このようにして、逆DCT変換処理と並行
して、次のブロックの逆量子化処理を行うことが可能と
なるので、画像データ全体としての復元処理をより高速
化することができる。
As described above, since the inverse quantization processing of the next block can be performed in parallel with the inverse DCT transformation processing, the restoration processing of the entire image data can be further speeded up.

【0073】ところで、本出願人は、画像全体の復元処
理に要する時間を短縮するための技法として、特願平1
−290304号『画像データ復元方式』を既に出願し
ており、この技法と本発明の逆量子化方法とを併せて実
施することにより、画像データの復元処理をより高速化
することができる。
As a technique for shortening the time required for restoring the entire image, the present applicant has disclosed a technique disclosed in Japanese Patent Application No. Hei.
No. -290304, "Image Data Restoration Method" has already been filed, and by implementing this technique in combination with the inverse quantization method of the present invention, the image data restoration processing can be further speeded up.

【0074】特願平1−290304号『画像データ復
元方式』は、量子化係数DQUあるいはDCT係数Dに含
まれる有効係数がDC成分のみであった場合に、そのブ
ロックは有効な交流成分を持たない直流ブロックである
と判断し、逆DCT変換処理を実行する代わりに、DC
成分を定数倍して該当するブロックの画像データを求め
ることにより、画像全体の復元処理の高速化を図るもの
である。
In Japanese Patent Application No. 1-290304, "Image Data Restoration Method", when the effective coefficient included in the quantization coefficient D QU or DCT coefficient D is only the DC component, the block contains the effective AC component. It is determined that the DC block does not have the DC block, and instead of performing the inverse DCT transform processing,
By obtaining the image data of the corresponding block by multiplying the component by a constant, the restoration processing of the entire image is speeded up.

【0075】図8に、請求項4の画像データ復元装置の
実施例構成を示す。図8において、画像データ復元装置
は、図4に示した逆量子化部210に、ブロック検出手
段121に相当する比較器261を付加した構成となっ
ている。また、図8において、逆DCT変換部731と
シフト回路262とマルチプレクサ263とは、逆直交
変換手段102を形成している。
FIG. 8 shows an embodiment of the image data restoring apparatus according to the fourth aspect. 8, the image data restoration apparatus has a configuration in which a comparator 261 corresponding to the block detection unit 121 is added to the inverse quantization unit 210 shown in FIG. 8, the inverse DCT transform unit 731, the shift circuit 262, and the multiplexer 263 form the inverse orthogonal transform unit 102.

【0076】上述した比較器261は、ブロック検出部
212からの検出信号の入力に応じて、アドレス保持手
段114のカウンタ242の計数値と閾値『1』とを比
較する構成となっており、マルチプレクサ263は、こ
の比較結果に応じて動作する構成となっている。
The above-mentioned comparator 261 is configured to compare the count value of the counter 242 of the address holding means 114 with the threshold value “1” in response to the input of the detection signal from the block detection section 212. 263 is configured to operate according to the comparison result.

【0077】ここで、比較器261により、量子化係数
QUに含まれる有効係数が1個であったとされた場合
は、この有効係数はDCT係数DのDC成分に対応する
ものである。すなわち、この量子化係数DQUに対応する
ブロックは、有効な交流成分を持たない直流ブロックで
あり、このブロックの画像データは、全て上述したDC
成分を定数『8』で除算した値であるから、上述したシ
フト回路262により、バッファ232に格納されたD
C成分を3ビットだけ右にシフトすることによって、こ
のブロックの画像データを求めることができる。
Here, when the comparator 261 determines that the number of effective coefficients included in the quantization coefficient D QU is one, the effective coefficient corresponds to the DC component of the DCT coefficient D. That is, the block corresponding to the quantization coefficient D QU is a DC block having no effective AC component, and the image data of this block is all the DC data described above.
Since the value is obtained by dividing the component by the constant “8”, the shift circuit 262 described above stores the D value stored in the buffer 232.
By shifting the C component right by 3 bits, the image data of this block can be obtained.

【0078】つまり、比較器261の出力に応じて、マ
ルチプレクサ263が、逆DCT変換部731の出力と
シフト回路262の出力とを切り換えることにより、逆
直交変換手段102において、逆DCT変換部731に
よる逆DCT変換処理をシフト回路262によるシフト
処理に置き換えることができる。
That is, the multiplexer 263 switches between the output of the inverse DCT converter 731 and the output of the shift circuit 262 according to the output of the comparator 261, so that the inverse orthogonal transform means 102 The inverse DCT transform processing can be replaced with shift processing by the shift circuit 262.

【0079】このように、逆量子化部210に、ブロッ
ク検出手段121を設けて直流ブロックを検出する構成
とすることにより、逆直交変換手段102において、有
効な交流成分を持たない直流ブロックに適応した処理を
行うことが可能となり、画像データの復元処理に要する
時間を全体として短縮することができる。
As described above, by providing the inverse quantization unit 210 with the block detecting means 121 and detecting the DC block, the inverse orthogonal transform means 102 can adapt to the DC block having no effective AC component. This makes it possible to reduce the time required for image data restoration processing as a whole.

【0080】また、この場合は、DCT係数DのDC成
分のみが画像データの復元処理に用いられるので、前の
ブロックの交流成分に対応するアドレスを初期化して8
行8列のDCT係数Dを復元する必要はない。従って、
直流ブロックが検出されたときは、この直流ブロックの
前のブロックの交流成分に対応するアドレスについての
初期化処理をスキップし、次に、交流成分を含んだブロ
ックの逆量子化処理を行う際に、該当する交流成分のア
ドレスを前ブロックアドレスとして、上述したようにし
て逆量子化処理を行えばよい。
In this case, since only the DC component of the DCT coefficient D is used for the image data restoration processing, the address corresponding to the AC component of the previous block is initialized to 8
There is no need to restore the DCT coefficients D in row 8 column. Therefore,
When a DC block is detected, the initialization process for the address corresponding to the AC component of the block before this DC block is skipped, and then, when performing the inverse quantization process of the block including the AC component, The inverse quantization process may be performed as described above, using the address of the corresponding AC component as the previous block address.

【0081】例えば、直流ブロックを検出した旨の検出
結果に応じて、メモリ241からメモリ251への転送
動作およびカウンタ242の計数値のレジスタ254へ
の転送動作を中止し、直流ブロックの前のブロックにお
ける有効係数アドレスおよびその数をメモリ251およ
びレジスタ254にそれぞれ保持しておけばよい。この
場合は、有効な交流成分を有するブロックの量子化係数
QUの逆量子化処理の際に、このレジスタ254の内容
で示されるメモリ251のアドレスまでに保持された有
効係数アドレスが、前ブロックアドレスとして用いら
れ、上述したようにして、該当するブロックに対応する
DCT係数Dが復元される。
For example, in response to a detection result indicating that a DC block has been detected, the transfer operation from the memory 241 to the memory 251 and the transfer operation of the count value of the counter 242 to the register 254 are stopped, and the block before the DC block is stopped. May be stored in the memory 251 and the register 254, respectively. In this case, at the time of inverse quantization of the quantization coefficient D QU of the block having an effective AC component, the effective coefficient address held up to the address of the memory 251 indicated by the contents of the register 254 is replaced with the previous block. The DCT coefficient D used as an address and corresponding to the corresponding block is restored as described above.

【0082】これにより、初期化処理を実行する回数を
最少限度に抑えることが可能となるので、逆量子化処理
に要する時間をより短縮することができる。また、本発
明の逆量子化方法を階層復元方式の画像データ復元装置
に適用してもよい。
As a result, the number of times the initialization process is executed can be suppressed to the minimum limit, so that the time required for the inverse quantization process can be further reduced. Further, the inverse quantization method of the present invention may be applied to a hierarchical restoration type image data restoration apparatus.

【0083】図9に、本発明の逆量子化方法を適用した
階層復元型の画像データ復元装置の実施例構成を示す。
図9において、画像データ復元装置は、図4に示した画
像データ復元装置に、階層復元処理部270を付加して
構成されており、上述した復号部711と逆量子化部2
10と逆DCT変換部731とによって、入力される符
号データから各階層における画像を復元し、得られた画
像と前の階層の画像とに基づいて、階層復元処理部27
0が、現階層までの全ての情報を含んだ画像を復元する
構成となっている。この階層復元処理部270は、例え
ば、前の階層の画像データを保持しておき、この画像デ
ータと逆DCT変換部731で得られた画像データとを
加算して、現階層までの全ての情報を含んだ画像データ
を得る構成とすればよい。
FIG. 9 shows an embodiment of a hierarchical restoration type image data restoration apparatus to which the inverse quantization method of the present invention is applied.
9, the image data restoration apparatus is configured by adding a layer restoration processing unit 270 to the image data restoration apparatus shown in FIG. 4, and includes the decoding unit 711 and the inverse quantization unit 2 described above.
10 and the inverse DCT transform unit 731 restore the image in each layer from the input code data, and based on the obtained image and the image of the previous layer, the layer restoration processing unit 27
0 restores an image including all information up to the current hierarchy. The hierarchy restoration processing unit 270 holds, for example, image data of the previous hierarchy, adds the image data to the image data obtained by the inverse DCT transform unit 731, and obtains all information up to the current hierarchy. May be obtained so as to obtain image data including.

【0084】階層復元を行う場合には、各階層の1ブロ
ック分の符号として、8行8列の量子化係数DQUの一部
の成分のみを選択的に符号化したものが入力される。例
えば、スペクトラルセレクション方式においては、ま
ず、各ブロックのDC成分のみを選択的に符号化して送
出し、次に、ジグザグスキャンによって2番目および3
番目に走査される成分を選択するというように、順次に
高い空間周波数に対応する成分が選択的に符号化されて
送出される。このため、各階層において、各ブロックの
量子化係数DQUにおける有効係数の分布はほとんど重な
り合っているので、前のブロックにおける有効係数アド
レスであって現ブロックにおいて無効係数に対応してい
る現ブロック無効アドレスは極く少数である。
When performing hierarchical reconstruction, a code obtained by selectively encoding only a part of the components of the quantization coefficient D QU of 8 rows and 8 columns is input as a code for one block of each hierarchy. For example, in the spectral selection method, first, only the DC component of each block is selectively encoded and transmitted, and then the second and third components are zigzag scanned.
Components corresponding to sequentially higher spatial frequencies are selectively encoded and transmitted, such as selecting a component to be scanned first. For this reason, in each hierarchy, the distribution of the effective coefficients in the quantization coefficient D QU of each block almost overlaps, so that the effective block address corresponding to the invalid coefficient in the current block is the effective coefficient address in the previous block. The addresses are very few.

【0085】従って、階層復元方式の画像データ復元装
置に本発明の逆量子化方法を適用した場合は、各ブロッ
クに対応する量子化係数DQUの逆量子化処理に要する時
間を短縮する効果が特に大きい。
Therefore, when the inverse quantization method of the present invention is applied to the image data restoration apparatus of the hierarchical restoration method, the effect of reducing the time required for the inverse quantization processing of the quantization coefficient D QU corresponding to each block is obtained. Especially large.

【0086】また、階層復元の際に、画像データ全体の
復元処理に要する時間を短縮する技法として、本出願人
は、既に、特願平2−180473号を出願している。
この技法は、量子化係数DQUが有効係数を含んでいない
無効ブロックを検出し、この無効ブロックについての逆
DCT変換処理および画像データの更新処理を省略し
て、画像データ全体の復元処理の高速化を図るものであ
る。
The present applicant has already filed Japanese Patent Application No. 2-180473 as a technique for shortening the time required for restoring the entire image data at the time of hierarchical restoration.
This technique detects an invalid block in which the quantization coefficient D QU does not include a valid coefficient, omits the inverse DCT transform processing and the update processing of the image data for the invalid block, and achieves high-speed restoration processing of the entire image data. It is intended to make it.

【0087】図10に、請求項5の画像データ復元装置
の実施例構成を示す。図10において、画像データ復元
装置は、図9に示した画像データ復元装置に、ブロック
検出手段131に相当する比較器271を付加した構成
となっており、逆DCT変換部731と階層復元処理部
270とから逆直交変換手段102が構成されている。
FIG. 10 shows an embodiment of the image data restoring apparatus according to the fifth aspect. 10, the image data restoration apparatus has a configuration in which a comparator 271 corresponding to the block detection means 131 is added to the image data restoration apparatus shown in FIG. 9, and an inverse DCT transform unit 731 and a hierarchical restoration processing unit 270 constitutes the inverse orthogonal transform means 102.

【0088】また、上述した比較器271は、ブロック
検出部212からの検出信号の入力に応じて、アドレス
保持手段114のカウンタ242の計数値と閾値『0』
とを比較し、一致した場合に、該当するブロックの量子
化係数DQUに有効係数が含まれていない旨を示す無効ブ
ロック信号を出力する構成となっている。
The above-mentioned comparator 271 receives the count value of the counter 242 of the address holding means 114 and the threshold “0” in response to the input of the detection signal from the block detection section 212.
Are compared, and when they match, an invalid block signal indicating that the effective coefficient is not included in the quantization coefficient D QU of the corresponding block is output.

【0089】例えば、スペクトラルセレクション方式に
おいては、上述したように順次に高い空間周波数に対応
する成分が送出されるので、高い次数の階層では、選択
される成分が全て無効係数である場合がある。
For example, in the spectral selection method, since components corresponding to high spatial frequencies are sequentially transmitted as described above, in a high-order hierarchy, all the selected components may be invalid coefficients.

【0090】このような場合には、1ブロック分の符号
として、1ブロック分の符号が終了したことを示す『E
OB』符号のみが入力され、これに応じて、上述した比
較器271により無効ブロック信号が出力される。
In such a case, as the code for one block, "E" indicating that the code for one block is completed.
Only the “OB” code is input, and in response to this, the comparator 271 outputs an invalid block signal.

【0091】この場合は、該当するブロックに対応する
量子化係数DQUの成分は全て無効係数であり、従って、
対応するDCT係数Dの成分も全て無効係数であるか
ら、このブロックについての逆量子化処理および逆DC
T変換処理は、無駄な演算処理である。また、この場合
は、現階層の画像に関する新しい情報が入力されないの
だから、上述した階層復元処理部270により、前の階
層までの情報を含んだ画像を更新する必要はない。
In this case, all the components of the quantization coefficient D QU corresponding to the corresponding block are invalid coefficients.
Since all the components of the corresponding DCT coefficients D are also invalid coefficients, the inverse quantization process and the inverse DC
The T conversion process is a useless calculation process. In this case, since new information relating to the image of the current layer is not input, it is not necessary for the above-described layer restoration processing unit 270 to update the image including information up to the previous layer.

【0092】例えば、上述した無効ブロック信号に応じ
て、判別処理部253が、DCT係数Dの復元処理が終
了した旨の通知に代えて、該当するブロックが無効ブロ
ックである旨を逆DCT変換部731に通知すればよ
い。また、このとき、上述した直流ブロックの処理と同
様に、メモリ241およびカウンタ242からメモリ2
51およびレジスタ254への転送処理を中止し、メモ
リ251およびレジスタ254の内容を保持して、次の
ブロックの逆量子化処理に用いる構成とすればよい。
For example, in response to the above-mentioned invalid block signal, the discrimination processing unit 253 replaces the notification that the restoration processing of the DCT coefficient D has been completed, and informs the inverse DCT conversion unit that the corresponding block is an invalid block. 731. At this time, similarly to the processing of the DC block described above, the memory 2
The transfer processing to the register 51 and the register 254 may be stopped, and the contents of the memory 251 and the register 254 may be retained and used for the inverse quantization processing of the next block.

【0093】また、逆DCT変換部731は、無効ブロ
ックである旨の通知に応じて、逆DCT変換処理をスキ
ップするとともに、この通知を階層復元処理部270に
中継し、これに応じて、階層復元処理部270が、上述
した階層復元処理をスキップして、前の階層の画像デー
タをそのまま出力する構成とすればよい。
In addition, inverse DCT transform section 731 skips the inverse DCT transform processing in response to the notification that the block is an invalid block, and relays this report to hierarchical restoration processing section 270, and in response to this, The restoration processing unit 270 may skip the above-described hierarchy restoration processing and output the image data of the previous hierarchy as it is.

【0094】このように、逆量子化部210に、ブロッ
ク検出手段131を設けて無効ブロックを検出する構成
とすることにより、逆直交変換手段102において、有
効な情報を含んでいない無効ブロックに適応した処理を
行うことが可能となり、画像データの復元処理に要する
時間を全体として短縮することができる。
As described above, by providing the inverse quantization unit 210 with the block detecting means 131 to detect invalid blocks, the inverse orthogonal transform means 102 can adapt to invalid blocks that do not contain valid information. This makes it possible to reduce the time required for image data restoration processing as a whole.

【0095】[0095]

【発明の効果】以上説明したように本発明は、有効係数
を選択的に逆量子化して係数行列を復元する際に、連続
する2つのブロックに対応する量子化係数行列における
有効係数の分布を考慮しながら初期化処理を行うことに
より、前のブロックの無効係数に対応するアドレスや現
ブロックで有効係数に対応するアドレスに対する無駄な
初期化処理を削減することが可能となるので、逆量子化
処理に要する時間を短縮することができ、画像データの
復元処理の高速化を図ることができる。
As described above, according to the present invention, when the effective coefficient is selectively dequantized and the coefficient matrix is restored, the distribution of the effective coefficient in the quantized coefficient matrix corresponding to two consecutive blocks is determined. By performing the initialization processing while taking into account, it is possible to reduce unnecessary initialization processing for the address corresponding to the invalid coefficient of the previous block and the address corresponding to the valid coefficient in the current block, so that the inverse quantization is performed. The time required for the processing can be reduced, and the speed of the restoration processing of the image data can be increased.

【0096】更に、逆量子化処理および初期化処理と逆
DCT変換処理とを並行して行うことにより、1ブロッ
ク当たりの処理時間を短縮して、より高速に復元処理を
行うことができる。
Further, by performing the inverse quantization and initialization processing and the inverse DCT transform processing in parallel, the processing time per block can be reduced and the restoration processing can be performed at higher speed.

【0097】また、直流ブロックおよび無効ブロックを
検出し、逆直交変換手段においてこれらのブロックに適
応する処理を行うことにより、各ブロックの逆量子化処
理に要する時間を短縮するとともに、画像全体の復元処
理に要する時間を大幅に短縮することができる。
Further, by detecting a DC block and an invalid block and performing processing adapted to these blocks by the inverse orthogonal transform means, the time required for the inverse quantization processing of each block is reduced, and the entire image is restored. The time required for processing can be significantly reduced.

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

【図1】本発明の逆量子化方法の原理を示す図である。FIG. 1 is a diagram showing the principle of the inverse quantization method of the present invention.

【図2】請求項2および請求項3の画像データ復元装置
の構成を示す図である。
FIG. 2 is a diagram showing a configuration of an image data restoration device according to claims 2 and 3;

【図3】請求項4および請求項5の画像データ復元装置
の構成を示す図である。
FIG. 3 is a diagram showing a configuration of an image data restoration apparatus according to claims 4 and 5;

【図4】請求項2の画像データ復元装置の実施例構成を
示す図である。
FIG. 4 is a diagram showing a configuration of an embodiment of an image data restoration apparatus according to claim 2;

【図5】有効係数アドレスの説明図である。FIG. 5 is an explanatory diagram of an effective coefficient address.

【図6】逆量子化処理を表す流れ図である。FIG. 6 is a flowchart illustrating an inverse quantization process.

【図7】請求項3の画像データ復元装置の逆量子化部の
実施例の要部構成を示す図である。
FIG. 7 is a diagram showing a configuration of a main part of an embodiment of an inverse quantization unit of the image data restoration device according to claim 3;

【図8】請求項4の画像データ復元装置の逆量子化部の
実施例の要部構成を示す図である。
FIG. 8 is a diagram showing a main configuration of an embodiment of an inverse quantization unit of the image data restoration apparatus according to claim 4;

【図9】本発明の逆量子化方法を適用した階層復元方式
の画像データ復元装置の実施例の要部構成を示す図であ
る。
FIG. 9 is a diagram showing a main configuration of an embodiment of an image data restoration apparatus of a hierarchical restoration method to which the inverse quantization method of the present invention is applied.

【図10】請求項5の画像データ復元装置の逆量子化部
の実施例の要部構成を示す図である。
FIG. 10 is a diagram showing a main configuration of an embodiment of an inverse quantization unit of the image data restoration apparatus according to claim 5;

【図11】従来の画像データ圧縮装置の構成図である。FIG. 11 is a configuration diagram of a conventional image data compression device.

【図12】ブロックの例を示す図である。FIG. 12 is a diagram illustrating an example of a block.

【図13】DCT係数Dの例を示す図である。FIG. 13 is a diagram illustrating an example of a DCT coefficient D.

【図14】量子化マトリクスを示す図である。FIG. 14 is a diagram showing a quantization matrix.

【図15】量子化係数DQUを示す図である。FIG. 15 is a diagram illustrating a quantization coefficient D QU .

【図16】ジグザグスキャンの説明図である。FIG. 16 is an explanatory diagram of a zigzag scan.

【図17】従来の画像データ復元装置の構成図である。FIG. 17 is a configuration diagram of a conventional image data restoration device.

【図18】従来の逆量子化処理部の概略構成図である。FIG. 18 is a schematic configuration diagram of a conventional inverse quantization processing unit.

【符号の説明】[Explanation of symbols]

101 復号手段 102 逆直交変換手段 111 アドレス算出手段 112 逆量子化手段 113 変換係数格納手段 114 アドレス保持手段 115 判別手段 116 初期化手段 121,131 ブロック検出手段 201 デマルチプレクサ(DMPX) 211 積算回路 212 ブロック検出部 221,722 乗算器 222,723 量子化閾値保持部 231,235,263 マルチプレクサ(MPX) 232,233 バッファ 234,255 セレクタ 236 パイプライン制御部 241,251 メモリ 242 カウンタ 252,261,271 比較器 253 判別処理部 254 レジスタ 262 シフト回路 270 階層復元処理部 611 DCT変換部 620 線型量子化部 631 符号化部 632 符号表 711 復号部 712 復号表 720 逆量子化部 721 配列復元部 724 アドレス算出部 725 DCT係数保持部 731 逆DCT変換部 Reference Signs List 101 decoding means 102 inverse orthogonal transformation means 111 address calculation means 112 inverse quantization means 113 transform coefficient storage means 114 address holding means 115 discrimination means 116 initialization means 121, 131 block detection means 201 demultiplexer (DMPX) 211 integration circuit 212 block Detector 221, 722 Multiplier 222, 723 Quantization threshold holding unit 231, 235, 263 Multiplexer (MPX) 232, 233 Buffer 234, 255 Selector 236 Pipeline controller 241, 251 Memory 242 Counter 252, 261, 271 Comparator 253 Discrimination processing unit 254 Register 262 Shift circuit 270 Hierarchical restoration processing unit 611 DCT transformation unit 620 Linear quantization unit 631 Encoding unit 632 Code table 711 Decoding unit 712 Decoding table 20 inverse quantization unit 721 sequences restorer 724 address calculating unit 725 DCT coefficient holding unit 731 inverse DCT unit

フロントページの続き (56)参考文献 特開 平3−177163(JP,A) 特開 平3−151763(JP,A) 特開 平4−70060(JP,A) 特開 平3−293865(JP,A) (58)調査した分野(Int.Cl.6,DB名) H04N 1/41 - 1/419 H04N 7/24 - 7/68 Continuation of front page (56) References JP-A-3-177163 (JP, A) JP-A-3-151176 (JP, A) JP-A-4-70060 (JP, A) JP-A-3-293865 (JP) , A) (58) Field surveyed (Int. Cl. 6 , DB name) H04N 1/41-1/419 H04N 7/24-7/68

Claims (5)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 原画像をそれぞれが複数の画素からなる
ブロックごとに直交変換し、変換係数からなる係数行列
の各成分を対応する量子化閾値で量子化して得られる量
子化係数行列を符号化する直交変換符号化方式による符
号データから前記原画像を復元する際に、前記符号デー
タを復号して得られる量子化係数から係数行列を得る逆
量子化方法において、 各ブロックとその前のブロックとにそれぞれ対応する量
子化係数行列において、零以外の値を有する有効係数の
分布の違いを判別し、 各ブロックに対応する量子化係数行列に含まれる有効係
数にそれぞれに対応する量子化閾値を乗じて選択的に逆
量子化し、 前記有効係数の前記量子化係数行列における位置を示す
有効係数アドレスに応じて、得られた逆量子化結果をそ
れぞれ保持するとともに、各ブロックにおいて無効係数
に対応し、かつ、その前のブロックにおいて有効係数に
対応する現ブロック無効アドレスに対する初期化処理を
行って、各ブロックに対応する係数行列を復元すること
を特徴とする逆量子化方法。
1. A quantization coefficient matrix obtained by orthogonally transforming an original image for each block composed of a plurality of pixels and quantizing each component of a coefficient matrix composed of transform coefficients with a corresponding quantization threshold. When restoring the original image from code data according to the orthogonal transform coding method, in the inverse quantization method of obtaining a coefficient matrix from quantization coefficients obtained by decoding the code data, each block and the previous block In the quantization coefficient matrix corresponding to each block, a difference in distribution of effective coefficients having a value other than zero is determined, and the effective coefficients included in the quantization coefficient matrix corresponding to each block are multiplied by the corresponding quantization threshold. And selectively inversely quantize, according to an effective coefficient address indicating a position of the effective coefficient in the quantization coefficient matrix, and holding the obtained inverse quantization result. Both are invalid coefficients in each block
And the effective coefficient in the previous block
An inverse quantization method, wherein initialization processing is performed on a corresponding current block invalid address to restore a coefficient matrix corresponding to each block.
【請求項2】 原画像をそれぞれが複数の画素からなる
ブロックごとに直交変換し、変換係数からなる係数行列
の各成分を対応する量子化閾値で量子化して得られる量
子化係数行列を符号化する直交変換符号化方式による符
号データが連続して入力され、この符号データを復号し
て、各ブロックに対応する量子化係数行列を表す復号デ
ータを順次に出力する復号手段(101)と、 前記復号データに基づいて、各ブロックの量子化係数行
列に含まれる零以外の値を有する有効係数が前記量子化
係数行列において占める位置を示す有効係数アドレスを
それぞれ求めて、現ブロックアドレスとして出力するア
ドレス算出手段(111)と、 前記有効係数と該当する現ブロックアドレスで示される
量子化閾値とを乗算して逆量子化する逆量子化手段(1
12)と、 前記逆量子化手段(112)による逆量子化結果を前記
現ブロックアドレスに変換係数として格納する変換係数
格納手段(113)と、 前記現ブロックアドレスを順次に保持するとともに、前
のブロックの処理の際に保持した有効係数アドレスを前
ブロックアドレスとして出力するアドレス保持手段(1
14)と、 前記前ブロックアドレスと前記現ブロックアドレスとに
基づいて、各ブロックにおいて無効係数に対応し、か
つ、その前のブロックにおいて有効係数に対応する現ブ
ロック無効アドレスを判別する判別手段(115)と、 前記現ブロック無効アドレスで示される前記変換係数格
納手段(113)の格納場所に初期値を書き込んで初期
化する初期化手段(116)と、 前記変換係数格納手段(113)に格納された変換係数
からなる係数行列を逆直交変換して、画像データを復元
する逆直交変換手段(102)とを備えたことを特徴と
する画像データ復元装置。
2. A quantization coefficient matrix obtained by orthogonally transforming an original image for each block composed of a plurality of pixels and quantizing each component of a coefficient matrix composed of transform coefficients with a corresponding quantization threshold value. Decoding means (101) for successively inputting code data according to the orthogonal transform coding scheme, decoding the code data, and sequentially outputting decoded data representing a quantization coefficient matrix corresponding to each block; Based on the decoded data, an effective coefficient address indicating a position occupied by the effective coefficient having a value other than zero included in the quantization coefficient matrix of each block in the quantization coefficient matrix is obtained, and an address to be output as a current block address. Calculating means for multiplying the effective coefficient by a quantization threshold indicated by a corresponding current block address to perform inverse quantization; 1
12), transform coefficient storage means (113) for storing the result of inverse quantization by the inverse quantization means (112) in the current block address as a transform coefficient, and sequentially storing the current block address, Address holding means (1) for outputting the effective coefficient address held during the processing of the block as the previous block address.
14) determining means for determining, based on the previous block address and the current block address, a current block invalid address corresponding to an invalid coefficient in each block and a valid coefficient in a preceding block; ), Initialization means (116) for writing and initializing an initial value in a storage location of the conversion coefficient storage means (113) indicated by the current block invalid address, and stored in the conversion coefficient storage means (113). An inverse orthogonal transform unit (102) for inversely orthogonally transforming a coefficient matrix including the transformed coefficients to restore image data.
【請求項3】 請求項2に記載の画像データ復元装置に
おいて、 変換係数格納手段(113)が、1ブロック分の係数行
列に相当する容量を有する複数の領域を切り換えて、連
続するブロックに対応する係数行列を格納する構成であ
ることを特徴とする画像データ復元装置。
3. The image data restoration device according to claim 2, wherein the conversion coefficient storage means (113) switches a plurality of areas having a capacity corresponding to a coefficient matrix for one block to correspond to a continuous block. An image data restoring apparatus characterized by storing a coefficient matrix to be processed.
【請求項4】 請求項2に記載の画像データ復元装置に
おいて、 各ブロックに対応する量子化係数行列に含まれる有効係
数の数に基づいて、直流成分のみで表される直流ブロッ
クを検出し、この検出結果を逆直交変換手段(102)
による逆直交変換処理に供するブロック検出手段(12
1)を備えたことを特徴とする画像データ復元装置。
4. The image data restoration device according to claim 2, wherein a DC block represented by only a DC component is detected based on the number of effective coefficients included in a quantization coefficient matrix corresponding to each block, This detection result is converted into an inverse orthogonal transform means (102)
Block detecting means (12
An image data restoring apparatus characterized by comprising (1).
【請求項5】 請求項2に記載の画像データ復元装置に
おいて、 各ブロックに対応する量子化係数行列に含まれる有効係
数の数に基づいて、有効係数を含まない無効ブロックを
検出し、この検出結果を逆直交変換手段(102)によ
る逆直交変換処理に供するブロック検出手段(131)
を備えたことを特徴とする画像データ復元装置。
5. The image data restoration device according to claim 2, wherein an invalid block containing no effective coefficient is detected based on the number of effective coefficients included in a quantization coefficient matrix corresponding to each block, and the detection is performed. Block detection means (131) for subjecting the result to inverse orthogonal transformation processing by inverse orthogonal transformation means (102)
An image data restoration device comprising:
JP18638991A 1991-07-25 1991-07-25 Inverse quantization method and image data restoration device Expired - Lifetime JP2918360B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP18638991A JP2918360B2 (en) 1991-07-25 1991-07-25 Inverse quantization method and image data restoration device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP18638991A JP2918360B2 (en) 1991-07-25 1991-07-25 Inverse quantization method and image data restoration device

Publications (2)

Publication Number Publication Date
JPH0556270A JPH0556270A (en) 1993-03-05
JP2918360B2 true JP2918360B2 (en) 1999-07-12

Family

ID=16187541

Family Applications (1)

Application Number Title Priority Date Filing Date
JP18638991A Expired - Lifetime JP2918360B2 (en) 1991-07-25 1991-07-25 Inverse quantization method and image data restoration device

Country Status (1)

Country Link
JP (1) JP2918360B2 (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE69806297T3 (en) * 1997-03-26 2007-03-29 Matsushita Electric Industrial Co., Ltd., Kadoma Bilddekodiergerät
JP3578445B2 (en) * 1999-01-26 2004-10-20 松下電器産業株式会社 Data compression recorder
DE60144228D1 (en) 2000-06-02 2011-04-28 Panasonic Corp PROCESS AND DEVICE FOR IMAGE PROCESSING
JP2002112268A (en) 2000-09-29 2002-04-12 Toshiba Corp Compressed image data decoding apparatus
US8123764B2 (en) 2004-09-20 2012-02-28 Endoevolution, Llc Apparatus and method for minimally invasive suturing

Also Published As

Publication number Publication date
JPH0556270A (en) 1993-03-05

Similar Documents

Publication Publication Date Title
US6351570B1 (en) Image coding and decoding apparatus, method of image coding and decoding, and recording medium for recording program for image coding and decoding
US5473704A (en) Apparatus for substituting character data for image data using orthogonal conversion coefficients
JP3356663B2 (en) Image encoding device, image encoding method, and recording medium recording image encoding program
US5371611A (en) Method for and system of decoding compressed continuous-tone digital image data
JP2918360B2 (en) Inverse quantization method and image data restoration device
JP2839389B2 (en) Inverse quantization method and image data restoration device
JP3105906B2 (en) Image processing device
US5784011A (en) Multiplier circuit for performing inverse quantization arithmetic
JPH06334872A (en) Picture processing unit
JP3170312B2 (en) Image processing device
JP2839392B2 (en) Image data restoration method and apparatus
JP3170313B2 (en) Image processing device
JPH04220081A (en) Method and device for picture data decoding
JP3027605B2 (en) Image processing device
JP2856268B2 (en) Image data restoration device
KR100246390B1 (en) Block noise removing apparatus in image signal processor
JP2571274B2 (en) Code data storage / readout method
JP3065393B2 (en) Image data restoration method and image data restoration device
JP2937455B2 (en) Image data compression device and image data decompression device
JP2000138933A (en) Image coder
JPH06113142A (en) Method and device for processing picture
JPH04271664A (en) Picture data compressor and picture data decoder
JPH05219358A (en) Compressed picture data extraction device
JPH06152988A (en) Decoder for variable length encoding
JPH04211575A (en) Orthogonal convertion operation device

Legal Events

Date Code Title Description
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 19990323