JPH0556270A - Reverse quantizing method and image data restoring device - Google Patents

Reverse quantizing method and image data restoring device

Info

Publication number
JPH0556270A
JPH0556270A JP18638991A JP18638991A JPH0556270A JP H0556270 A JPH0556270 A JP H0556270A JP 18638991 A JP18638991 A JP 18638991A JP 18638991 A JP18638991 A JP 18638991A JP H0556270 A JPH0556270 A JP H0556270A
Authority
JP
Japan
Prior art keywords
coefficient
block
address
effective
image data
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
JP18638991A
Other languages
Japanese (ja)
Other versions
JP2918360B2 (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 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

Abstract

PURPOSE:To decrease the wasteful initializing processing by considering the distribution of an effective coefficient at respective quantizing coefficient matrixes of two continuous blocks concerning a reverse quantizing method when an original image is restored from code data by an orthogonal converting system. CONSTITUTION:In a reverse quantizing method to obtain the coefficient matrix from a quantizing coefficient obtained by decoding the code data by an orthogonal converting coding system, at the quantizing coefficient matrix respectively corresponding to respective blocks and the block before them, the difference of the distribution of the effective coefficient having a value except zero is discriminated, the quantizing threshold respectively corresponding to the effective coefficient included in the quantizing coefficient matrix corresponding to respective blocks is multiplied, and the reverse quantizing is selectively performed. The obtained reverse quantizing result is respectively held in accordance with the effective coefficient address, the initializing processing to the equivalent address is performed in accordance with the difference of the distribution of the effective coefficient with the previous block and the coefficient matrix corresponding to respective blocks is restored.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

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

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

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

【0004】[0004]

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

【0005】画像読取装置などによって読み取られた多
値画像は、上述したブロックごとに順次にDCT変換部
611に入力され、このDCT変換部611による2次
元離散コサイン変換(以下、DCT変換と称する)処理
により、空間周波数成分に対応するDCT係数からなる
8行8列の行列(以下、DCT係数Dと称する)に変換
される。図13に、DCT係数Dの例を示す。
A multi-valued image read by an image reading device or the like is sequentially input to the DCT transform unit 611 for each block described above, and the two-dimensional discrete cosine transform (hereinafter referred to as DCT transform) by the DCT transform unit 611. By the processing, it is converted into a matrix of 8 rows and 8 columns (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 quantizer 620 using the corresponding component of the quantization threshold value Q TH . The above-mentioned 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 value is determined in advance based on an experimental result regarding visual sensitivity 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, depending on the image quality required for the restored image,
It is set by the 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-mentioned quantization matrix V TH is, as shown in FIG. 14, the absolute value of the component corresponding to a low spatial frequency, depending on the spatial frequency characteristic of human visual sensitivity. On the contrary, the absolute value of the component corresponding to the high spatial frequency is set to a large value. Therefore, the quantized coefficient D QU obtained by quantizing the DCT coefficient D by the linear quantizer 620 is, as shown in FIG. 15, a component at the upper left corner of the matrix indicating the DC component (hereinafter referred to as the DC component).
In many cases, only a very small number of AC components around the DC component showing low spatial frequency components are effective coefficients having a value other than zero, and most AC components are invalid coefficients having a value of zero. ..

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

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

【0010】この逆量子化部720において、配列復元
部721により、入力されるインデックスとランとから
上述した1次元配列が復元され、この1次元配列の各成
分が順次に乗算器722に入力される。また、量子化閾
値保持部723には、量子化閾値QTHが保持されてお
り、乗算器722への量子化係数の入力に同期して、対
応する量子化閾値が乗算器722に送出されている。こ
のようにして、乗算器723により、量子化係数DQU
各成分が対応する量子化閾値を用いて逆量子化され、D
CT係数Dが復元される。
In the inverse quantizing unit 720, the array restoring unit 721 restores the above-mentioned one-dimensional array from the input index and run, and the respective components of this one-dimensional array are sequentially input to the multiplier 722. It Further, the quantization threshold value holding unit 723 holds the quantization threshold value Q TH , and the corresponding quantization threshold value is sent to the multiplier 722 in synchronization with the input of the quantization coefficient to the multiplier 722. There is. In this way, the multiplier 723 dequantizes each component of the quantized coefficient D QU 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 the inverse DCT conversion unit 731, and the inverse DCT conversion unit 731 performs the inverse D.
The image data of the corresponding block is restored by performing the CT conversion process.

【0012】[0012]

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

【0013】このような無駄な処理を省いて、逆量子化
処理を高速化するための技法として、本出願人は、特願
平1−316708号『画像データ復元方式』を既に出
願している。図18に、この技法による逆量子化処理部
の概略構成を示す。
The present applicant has already filed Japanese Patent Application No. 1-316708 "Image Data Restoration Method" as a technique for speeding up inverse quantization processing by eliminating such wasteful processing. .. 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が復元されてい
る。
According to this technique, the address calculation unit 724 obtains the address of the corresponding effective coefficient from the value of the input run, and the quantization threshold holding unit 723 causes the multiplier 722 to obtain the quantization threshold value corresponding to this address. By sending out and multiplying this quantization threshold value and index by the multiplier 722, only effective coefficients are selectively dequantized.
In this case, the multiplier 72 corresponds to the above-mentioned address.
By holding the multiplication result by 2 in the DCT coefficient holding unit 725, the DCT coefficient D of 8 rows and 8 columns is restored.

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

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

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

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

【0019】[0019]

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

【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 device 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 including a plurality of pixels and quantizing each component of a coefficient matrix including transform coefficients with a corresponding quantization threshold is obtained. Decoding means 101 for continuously inputting coded data by an orthogonal transform coding method for coding, decoding this coded data, and sequentially outputting decoded data representing a quantized coefficient matrix corresponding to each block, and decoding An address calculating unit that calculates, based on the data, an effective coefficient address indicating a position in the quantized coefficient matrix of an effective coefficient having a value other than zero included in the quantized coefficient matrix of each block, and outputs it as the current block address. 111, an inverse quantization unit 112 for inverse quantization by multiplying an effective coefficient by a quantization threshold value indicated by a corresponding current block address, and an inverse quantization Means 1
Transform coefficient storage means 113 for storing the result of dequantization by 12 as a transform coefficient in the current block address, and the current block address are sequentially held, and the effective coefficient address held in the processing of the previous block is the previous block address. Based on the previous block address and the current block address, the current block invalid address that corresponds to the invalid coefficient in each block and the valid coefficient in the previous block is determined. Means 115, an initialization means 116 for writing an initial value to the storage location of the transform coefficient storage means 113 indicated by the current block invalid address for initialization, and a coefficient matrix composed of the transform coefficients stored in the transform coefficient storage means 113. Inverse orthogonal transform means 102 for performing inverse orthogonal transform to restore image data is provided. Characterized in that was.

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

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

【0024】[0024]

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

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

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

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

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

【0029】[0029]

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

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

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

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

【0033】このようにして、各インデックスに対応す
る積算結果として、ジグザグスキャン(図16参照)に
よる走査順序が得られる。この走査順序は、8行8列の
量子化係数DQUにおいて、各インデックスに対応する有
効係数が占める位置を示しているから、この積算回路2
11によって得られた走査順序を現ブロックアドレスと
して送出すればよい。
In this way, the scanning order by zigzag scanning (see FIG. 16) is obtained as the integration result corresponding to each index. Since this scanning order indicates the position occupied by the effective coefficient corresponding to each index in the quantized coefficient D QU of 8 rows and 8 columns, this integration circuit 2
The scanning order obtained by 11 may be sent 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 holding unit 222, and this quantization threshold holding unit 222 corresponds to the scanning order by zigzag scanning. , A quantization threshold value corresponding to each DCT coefficient is held. Therefore, in accordance with the input of the current block address obtained by the address calculation means 111, the quantization threshold holding unit 222 sends the corresponding quantization threshold to the multiplier 221, and the multiplier 221.
However, by multiplying the input index by this quantization threshold, the effective coefficient indicated by the index can be dequantized to obtain the 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 are input to the address calculating means 111 and the dequantizing means 112, respectively. However, the address calculating means 111 and the dequantizing means 112 respectively execute the run and the dequantized data from the decoded data. It may be configured by including means for extracting the index.

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

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

【0038】また、図4において、メモリ241とカウ
ンタ242とは、アドレス保持手段114を形成してお
り、カウンタ242は、メモリ241に有効係数アドレ
スが入力されるたびに計数値を『1』ずつ加算する構成
となっている。また、メモリ241は、このカウンタ2
42の計数値で示されるアドレスに、上述した有効係数
アドレスを保持する構成となっている。
Further, in FIG. 4, the memory 241 and the counter 242 form an address holding means 114, and the counter 242 increments the count value by "1" each time an effective coefficient address is input to the memory 241. It is configured to add. Further, the memory 241 uses the counter 2
The above-mentioned 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 shown by hatching in FIG.
The addresses are held 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 manner is transferred to the memory 251 shown in FIG. 4 in accordance with the detection signal from the block detection unit 212 described above, and is stored as the previous block address by the memory 251. 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. 4 and held by the register 254.

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

【0042】この判別手段115による判別結果は、マ
ルチプレクサ231に入力されており、このマルチプレ
クサ231による入力ポートの選択処理に供されてい
る。また、上述したメモリ251から出力された前ブロ
ックアドレスは、アドレス算出手段111からの現ブロ
ックアドレスとともに、セレクタ255に入力されてお
り、このセレクタ255は、上述した判別手段115に
よる判別結果に応じて、前ブロックアドレスと現ブロッ
クアドレスとのいずれか一方を選択して、バッファ23
2に書込アドレスとして指定する構成となっている。
The discrimination result by the discriminating means 115 is input to the multiplexer 231 and is used for the input port selection processing by the multiplexer 231. The previous block address output from the memory 251 described above is also input to the selector 255 together with the current block address from the address calculation unit 111, and the selector 255 responds to the determination result by the determination unit 115 described above. , The previous block address or the current block address is selected, and the buffer 23
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 in accordance with the discrimination result by the discriminating means 115 to write the numerical value "0" as an initial value in the address indicated by the discrimination result. The configuration of realizing the function of the initializing means 116 is made up of 231 and the selector 255.

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

【0045】この場合は、上述したメモリ251には、
既に、図5(a) に示した量子化係数DQUにおける有効係
数アドレスが前ブロックアドレスとして保持されてい
る。また、図5(c) に示す量子化係数DQUを表す復号デ
ータのインデックスおよびランの組合せの入力に応じ
て、アドレス算出手段111により、上述したようにし
て有効係数アドレスが算出され、現ブロックアドレスと
して、順次にメモリ241および比較器252に入力さ
れている。
In this case, in the memory 251 described above,
The effective coefficient address in the quantized coefficient D QU shown in FIG. 5A has already been held as the previous block address. The address calculation means 111 calculates the effective coefficient address as described above in response to the input of the combination of the index and the run of the decoded data representing the quantized coefficient D QU shown in FIG. 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 flow chart showing the inverse quantization operation. In response to the input of the current block address (step 301), the discrimination processing unit 253 designates 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 the pointer designating the address of the memory 251. This pointer may be set to the head address of the memory 251 when the dequantization process of each block is started, and the pointer may be sequentially advanced.

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

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

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

【0050】ここで、ステップ304において、更新前
のポインタの値がレジスタ254の内容と一致した場合
は、ステップ301で入力された現ブロックアドレス以
降に、前ブロックにおける有効係数が存在しないことを
示している。従って、以後は、現ブロックアドレスの入
力に応じて、該当するアドレスに乗算器221の出力を
格納する処理を行えばよい。
Here, if the value of the pointer before update matches the content of the register 254 in step 304, it means 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, the process of storing the output of the multiplier 221 in the corresponding address may be performed.

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

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

【0053】一方、現ブロックアドレスが前ブロックア
ドレスよりも大きい場合は、この前ブロックアドレス
が、現ブロックにおいて無効係数に対応していることを
示している。つまり、この前ブロックアドレスは、現ブ
ロック無効アドレスである。
On the other hand, if the current block address is larger than the previous block address, this indicates that this previous block address corresponds to the invalid coefficient in the current block. That is, this 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, the second input current block address "3" is determined to be 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 is detected, and the multiplexer 2
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 during the inverse quantization process of the previous block is cleared (step 307). ).

【0055】ところで、上述したステップ305におけ
る否定判定の場合は、上述した前ブロックアドレスで示
される無効係数の他にも、現ブロックレス無効アドレス
が存在する可能性がある。
By the way, in the case of the negative judgment in the above step 305, there is a possibility that the 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 step 307 described above (step 3
08), after instructing the memory 252 to output the next previous block address, the process returns to step 302 and the process of detecting the difference in distribution of effective coefficients between the current block and the previous block may be performed. As a result, the current block invalid address can be detected without exception.

【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 step 303 instead of the pointer update process. According to the input of the current block address, the process of storing the output of the multiplier 221 in the corresponding address may be performed.

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

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

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

【0061】このようにして、逆量子化結果をバッファ
232の現ブロックアドレスに格納するとともに、バッ
ファ232の現ブロック無効アドレスを選択的に初期化
することにより、8行8列のDCT係数Dを復元するこ
とができる。
In this way, 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 between the invalid coefficient and the quantization threshold is reduced, and unnecessary initialization processing for the address corresponding to the invalid coefficient in the previous block and the effective coefficient address in the current block is reduced. It becomes 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), in the quantized coefficient D QU corresponding to two consecutive blocks, the effective coefficient distributions are often similar to each other. ,
In step 305 described above, very few are detected as the current block invalid address. For example, in the quantization coefficient D QU shown in FIG. 5 (c), only three shaded addresses are detected as the current block invalid address 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 write process of the initial value “0” to the above three addresses. Of the quantized coefficients for one block D QU
It is possible to significantly reduce the time required for the inverse quantization process of.

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

【0065】従って、ブロック検出部212からの検出
信号に応じて、判別処理部253が上述した処理を行っ
た後に、DCT係数Dの復元処理が終了した旨を逆DC
T変換部731に通知し、逆DCT変換処理の開始を指
示する構成とすればよい。
Therefore, in response to the detection signal from the block detection unit 212, after the discrimination processing unit 253 has performed the above-mentioned processing, it is indicated that the restoration processing of the DCT coefficient D is completed by the inverse DC.
The configuration may be such that the T conversion unit 731 is notified and the start of the inverse DCT conversion process is instructed.

【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 conventional case.
By performing the inverse DCT conversion process on the T coefficient, 1
The block of image data is restored. Further, by repeating the above-described inverse quantization processing and inverse DCT conversion processing for each block, image data for one screen is restored.

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

【0068】また、各ブロックの逆量子化処理と各ブロ
ックの逆DCT変換処理とは、独立に処理可能であるか
ら、逆量子化処理と逆DCT変換処理とを並行して処理
する構成としてもよい。
Further, since the inverse quantization process of each block and the inverse DCT transform process of each block can be processed independently, the inverse quantization process and the inverse DCT transform process may be processed in parallel. 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 the configuration of an embodiment of the dequantization unit of the image data restoration device of the third aspect. In FIG. 7, the conversion coefficient storage unit 113 has two buffers 233a and 233.
b, selector 234, and multiplexer (MPX) 235
And a pipeline control unit 236, and the output of the multiplexer (MPX) 231 described above is input to the buffers 233a and 233b, respectively. Further, in the conversion coefficient storage means 113, the pipeline control unit 236 causes the buffer 2
33a, 233b, selector 234, and multiplexer 2
35 to control the write operation and the read operation for the buffers 233a and 233b. Hereinafter, the buffers 233a and 233b are generically referred to as the buffer 233.

【0070】この場合は、上述した判別処理部253
が、DCT係数Dを復元する処理が終了した旨の通知を
パイプライン制御部236に送出する構成とし、パイプ
ライン制御部236が、この通知に応じて、DCT係数
Dの書き込みが終了したバッファ233を読出有効状態
とするとともに、他方のバッファ233を書込有効状態
とし、セレクタ234に対して出力ポートの切り換えを
指示すればよい。これに応じて、このセレクタ234に
より、新たに書込有効状態とされたバッファ233にセ
レクタ255からのアドレスが入力され、DCT係数の
書込処理が行われる。
In this case, the discrimination processing unit 253 described above is used.
Is configured to send a notification to the effect that the process of restoring the DCT coefficient D has ended to the pipeline control unit 236, and the pipeline control unit 236, in response to this notification, writes the DCT coefficient D to the buffer 233. Is set to the read valid state, the other buffer 233 is set to the write valid state, and the selector 234 is 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 is newly set to the write valid state, 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 valid state, and instructs the inverse DCT conversion unit 731 to start the inverse DCT conversion process. The decoding unit 711 may be instructed to start the decoding processing of the next block in response to the end notification of.

【0072】このようにして、逆DCT変換処理と並行
して、次のブロックの逆量子化処理を行うことが可能と
なるので、画像データ全体としての復元処理をより高速
化することができる。
In this way, since it is possible to perform the inverse quantization process of the next block in parallel with the inverse DCT transform process, it is possible to further speed up the restoration process for the entire image data.

【0073】ところで、本出願人は、画像全体の復元処
理に要する時間を短縮するための技法として、特願平1
−290304号『画像データ復元方式』を既に出願し
ており、この技法と本発明の逆量子化方法とを併せて実
施することにより、画像データの復元処理をより高速化
することができる。
By the way, the applicant of the present invention has proposed a technique for reducing the time required to restore the entire image in Japanese Patent Application No.
No. 290304 “Image data restoration system” has already been filed, and by implementing this technique together with the inverse quantization method of the present invention, it is possible to further speed up the restoration process of image data.

【0074】特願平1−290304号『画像データ復
元方式』は、量子化係数DQUあるいはDCT係数Dに含
まれる有効係数がDC成分のみであった場合に、そのブ
ロックは有効な交流成分を持たない直流ブロックである
と判断し、逆DCT変換処理を実行する代わりに、DC
成分を定数倍して該当するブロックの画像データを求め
ることにより、画像全体の復元処理の高速化を図るもの
である。
In Japanese Patent Application No. 1-290304 "Image Data Restoration Method", when the effective coefficient contained in the quantized coefficient D QU or DCT coefficient D is only the DC component, the block produces an effective AC component. Instead of executing the inverse DCT conversion process by determining that it is a DC block that does not have DC
By multiplying the components by a constant and obtaining the image data of the corresponding block, 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 the configuration of an embodiment of the image data restoration device of claim 4. 8, the image data restoration device has a configuration in which a comparator 261 corresponding to the block detection means 121 is added to the inverse quantization unit 210 shown in FIG. Further, in FIG. 8, the inverse DCT conversion unit 731, the shift circuit 262, and the multiplexer 263 form an inverse orthogonal conversion 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" according to the input of the detection signal from the block detection unit 212, and the multiplexer. 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 quantization coefficient D QU includes one effective coefficient, this effective coefficient corresponds to the DC component of the DCT coefficient D. That is, the block corresponding to this quantized coefficient D QU is a DC block that does not have a valid AC component, and the image data of this block is all DC described above.
Since it is a value obtained by dividing the component by the constant “8”, the D stored in the buffer 232 by the shift circuit 262 described above.
By shifting the C component to the 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 conversion section 731 and the output of the shift circuit 262 according to the output of the comparator 261, so that the inverse DCT conversion section 731 in the inverse orthogonal transformation means 102. The inverse DCT conversion process can be replaced with the shift process by the shift circuit 262.

【0079】このように、逆量子化部210に、ブロッ
ク検出手段121を設けて直流ブロックを検出する構成
とすることにより、逆直交変換手段102において、有
効な交流成分を持たない直流ブロックに適応した処理を
行うことが可能となり、画像データの復元処理に要する
時間を全体として短縮することができる。
As described above, the inverse quantizing unit 210 is provided with the block detecting means 121 to detect the DC block, so that the inverse orthogonal transforming means 102 is adapted to the DC block having no effective AC component. The processing described above can be performed, and the time required for the restoration processing of the image data can be shortened 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 process, the address corresponding to the AC component of the previous block is initialized to 8
It is not necessary to recover the DCT coefficient D of row 8 column. Therefore,
When a DC block is detected, the initialization process for the address corresponding to the AC component of the block preceding this DC block is skipped, and then the inverse quantization process of the block containing the AC component is performed. 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 accordance with the detection result indicating that the DC block is 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 preceding the DC block is stopped. The effective coefficient address and the number of the effective coefficient address in the above are stored in the memory 251 and the register 254, respectively. In this case, the effective coefficient address held up to the address of the memory 251 indicated by the contents of the register 254 is the previous block when the inverse quantization process of the quantization coefficient D QU of the block having the effective AC component is performed. 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 shortened. Further, the dequantization method of the present invention may be applied to an image data restoration device of a hierarchical restoration system.

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

【0084】階層復元を行う場合には、各階層の1ブロ
ック分の符号として、8行8列の量子化係数DQUの一部
の成分のみを選択的に符号化したものが入力される。例
えば、スペクトラルセレクション方式においては、ま
ず、各ブロックのDC成分のみを選択的に符号化して送
出し、次に、ジグザグスキャンによって2番目および3
番目に走査される成分を選択するというように、順次に
高い空間周波数に対応する成分が選択的に符号化されて
送出される。このため、各階層において、各ブロックの
量子化係数DQUにおける有効係数の分布はほとんど重な
り合っているので、前のブロックにおける有効係数アド
レスであって現ブロックにおいて無効係数に対応してい
る現ブロック無効アドレスは極く少数である。
In the case of performing hierarchical restoration, as a code for one block in each hierarchy, a code obtained by selectively encoding only a part of the components of the quantized coefficient D QU in 8 rows and 8 columns is input. 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 subjected to zigzag scanning.
The components corresponding to higher spatial frequencies are selectively coded and transmitted in sequence, such as selecting the component to be scanned next. Therefore, in each layer, the distributions of the effective coefficients in the quantized coefficients D QU of the respective blocks almost overlap each other, so that the effective coefficient address in the previous block and the invalid coefficient in the current block corresponding to the invalid coefficient are invalid. The address is very small.

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

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

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

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

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

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

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

【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 is completed, and indicates that the corresponding block is an invalid DCT conversion unit. You may notify 731. Further, at this time, similarly to the processing of the DC block described above, from the memory 241 and the counter 242 to the memory 2
The transfer processing to 51 and the register 254 may be stopped, the contents of the memory 251 and the register 254 may be held, and used for the inverse quantization processing of the next block.

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

【0094】このように、逆量子化部210に、ブロッ
ク検出手段131を設けて無効ブロックを検出する構成
とすることにより、逆直交変換手段102において、有
効な情報を含んでいない無効ブロックに適応した処理を
行うことが可能となり、画像データの復元処理に要する
時間を全体として短縮することができる。
As described above, the inverse quantizing unit 210 is provided with the block detecting means 131 to detect an invalid block, so that the inverse orthogonal transforming means 102 adapts to an invalid block which does not include valid information. The processing described above can be performed, and the time required for the restoration processing of the image data can be shortened as a whole.

【0095】[0095]

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

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

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

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

【図1】本発明の逆量子化方法の原理を示す図である。FIG. 1 is a diagram showing the principle of an inverse quantization method according to 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 device according to claims 4 and 5;

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

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

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

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

【図8】請求項4の画像データ復元装置の逆量子化部の
実施例の要部構成を示す図である。
FIG. 8 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 4;

【図9】本発明の逆量子化方法を適用した階層復元方式
の画像データ復元装置の実施例の要部構成を示す図であ
る。
FIG. 9 is a diagram showing a main configuration of an embodiment of an image data restoration device of a hierarchical restoration system 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 device of claim 5;

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

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

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

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

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

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

【図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変換部 101 Decoding Means 102 Inverse Orthogonal Transforming Means 111 Address Calculating Means 112 Inverse Quantizing Means 113 Transform Coefficient Storing Means 114 Address Holding Means 115 Discriminating Means 116 Initializing Means 121, 131 Block Detecting Means 201 Demultiplexer (DMPX) 211 Integrating Circuits 212 Blocks Detection unit 221,722 Multiplier 222,723 Quantization threshold holding unit 231,235,263 Multiplexer (MPX) 232,233 Buffer 234,255 Selector 236 Pipeline control unit 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 conversion 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

Claims (5)

【特許請求の範囲】[Claims] 【請求項1】 原画像をそれぞれが複数の画素からなる
ブロックごとに直交変換し、変換係数からなる係数行列
の各成分を対応する量子化閾値で量子化して得られる量
子化係数行列を符号化する直交変換符号化方式による符
号データから前記原画像を復元する際に、前記符号デー
タを復号して得られる量子化係数から係数行列を得る逆
量子化方法において、 各ブロックとその前のブロックとにそれぞれ対応する量
子化係数行列において、零以外の値を有する有効係数の
分布の違いを判別し、 各ブロックに対応する量子化係数行列に含まれる有効係
数にそれぞれに対応する量子化閾値を乗じて選択的に逆
量子化し、 前記有効係数の前記量子化係数行列における位置を示す
有効係数アドレスに応じて、得られた逆量子化結果をそ
れぞれ保持するとともに、前のブロックとの有効係数の
分布の違いに応じて、該当するアドレスに対する初期化
処理を行って、各ブロックに対応する係数行列を復元す
ることを特徴とする逆量子化方法。
1. 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 value. In the dequantization method for obtaining the coefficient matrix from the quantized coefficients obtained by decoding the code data when restoring the original image from the code data by the orthogonal transform coding method, each block and the block before it In the quantized coefficient matrix corresponding to each, the difference in the distribution of the effective coefficient having a value other than zero is determined, and the effective coefficient included in the quantized coefficient matrix corresponding to each block is multiplied by the corresponding quantization threshold. And selectively dequantize, and hold the obtained dequantization results according to the effective coefficient address indicating the position of the effective coefficient in the quantized coefficient matrix. In both cases, the inverse quantization method is characterized in that the coefficient matrix corresponding to each block is restored by performing initialization processing on the corresponding address according to the difference in distribution of effective coefficients from the previous block.
【請求項2】 原画像をそれぞれが複数の画素からなる
ブロックごとに直交変換し、変換係数からなる係数行列
の各成分を対応する量子化閾値で量子化して得られる量
子化係数行列を符号化する直交変換符号化方式による符
号データが連続して入力され、この符号データを復号し
て、各ブロックに対応する量子化係数行列を表す復号デ
ータを順次に出力する復号手段(101)と、 前記復号データに基づいて、各ブロックの量子化係数行
列に含まれる零以外の値を有する有効係数が前記量子化
係数行列において占める位置を示す有効係数アドレスを
それぞれ求めて、現ブロックアドレスとして出力するア
ドレス算出手段(111)と、 前記有効係数と該当する現ブロックアドレスで示される
量子化閾値とを乗算して逆量子化する逆量子化手段(1
12)と、 前記逆量子化手段(112)による逆量子化結果を前記
現ブロックアドレスに変換係数として格納する変換係数
格納手段(113)と、 前記現ブロックアドレスを順次に保持するとともに、前
のブロックの処理の際に保持した有効係数アドレスを前
ブロックアドレスとして出力するアドレス保持手段(1
14)と、 前記前ブロックアドレスと前記現ブロックアドレスとに
基づいて、各ブロックにおいて無効係数に対応し、か
つ、その前のブロックにおいて有効係数に対応する現ブ
ロック無効アドレスを判別する判別手段(115)と、 前記現ブロック無効アドレスで示される前記変換係数格
納手段(113)の格納場所に初期値を書き込んで初期
化する初期化手段(116)と、 前記変換係数格納手段(113)に格納された変換係数
からなる係数行列を逆直交変換して、画像データを復元
する逆直交変換手段(102)とを備えたことを特徴と
する画像データ復元装置。
2. A quantized coefficient matrix obtained by orthogonally transforming an original image for each block made up of a plurality of pixels and quantizing each component of a coefficient matrix made up of transform coefficients with a corresponding quantization threshold value. Decoding means (101) for continuously inputting coded data by the orthogonal transform coding method, decoding the coded data, and sequentially outputting decoded data representing a quantized coefficient matrix corresponding to each block, An address to be output as the current block address, which is obtained based on the decoded data, and which obtains the effective coefficient address indicating the position in the quantized coefficient matrix of the effective coefficient having a value other than zero included in the quantized coefficient matrix of each block. Inverse quantization means for performing inverse quantization by calculating means (111) and multiplying the effective coefficient by a quantization threshold value indicated by the corresponding current block address. 1
12), a transformation coefficient storage means (113) for storing the dequantization result by the dequantization means (112) in the current block address as a transformation coefficient, and the current block address being sequentially held, and Address holding means (1) that outputs the effective coefficient address held when processing the block as the previous block address
14), and a discrimination means (115) for discriminating the current block invalid address corresponding to the invalid coefficient in each block and corresponding to the valid coefficient in the previous block based on the previous block address and the current block address. ), An initialization unit (116) for initializing by writing an initial value to a storage location of the conversion coefficient storage unit (113) indicated by the current block invalid address, and stored in the conversion coefficient storage unit (113). An image data restoration device, comprising: an inverse orthogonal transformation means (102) that restores image data by performing an inverse orthogonal transformation on a coefficient matrix made up of the transformed coefficients.
【請求項3】 請求項2に記載の画像データ復元装置に
おいて、 変換係数格納手段(113)が、1ブロック分の係数行
列に相当する容量を有する複数の領域を切り換えて、連
続するブロックに対応する係数行列を格納する構成であ
ることを特徴とする画像データ復元装置。
3. The image data restoration device according to claim 2, wherein the transform coefficient storage means (113) switches a plurality of areas having a capacity corresponding to a coefficient matrix for one block to correspond to consecutive blocks. An image data restoration device having a configuration for storing a coefficient matrix for
【請求項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 the quantization coefficient matrix corresponding to each block, The result of this detection is the inverse orthogonal transformation means (102).
Block detecting means (12
An image data restoration device 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 the quantization coefficient matrix corresponding to each block, and this detection is performed. Block detection means (131) for providing the result to the inverse orthogonal transformation processing by the 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 true JPH0556270A (en) 1993-03-05
JP2918360B2 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)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000216685A (en) * 1999-01-26 2000-08-04 Matsushita Electric Ind Co Ltd Data compression recorder
US6987811B2 (en) 2000-06-02 2006-01-17 Matsushita Electric Industrial Co., Ltd. Image processor and image processing method
KR100545065B1 (en) * 1997-03-26 2006-04-21 마츠시타 덴끼 산교 가부시키가이샤 Image decoding apparatus
US7170939B2 (en) 2000-09-29 2007-01-30 Kabushiki Kaisha Toshiba Compression-encoded data decoding apparatus
US11172922B2 (en) 2004-09-20 2021-11-16 Intuitive Surgical Operations, Inc. Apparatus and method for minimally invasive suturing

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100545065B1 (en) * 1997-03-26 2006-04-21 마츠시타 덴끼 산교 가부시키가이샤 Image decoding apparatus
JP2000216685A (en) * 1999-01-26 2000-08-04 Matsushita Electric Ind Co Ltd Data compression recorder
US6987811B2 (en) 2000-06-02 2006-01-17 Matsushita Electric Industrial Co., Ltd. Image processor and image processing method
US7170939B2 (en) 2000-09-29 2007-01-30 Kabushiki Kaisha Toshiba Compression-encoded data decoding apparatus
US11172922B2 (en) 2004-09-20 2021-11-16 Intuitive Surgical Operations, Inc. Apparatus and method for minimally invasive suturing

Also Published As

Publication number Publication date
JP2918360B2 (en) 1999-07-12

Similar Documents

Publication Publication Date Title
JP2891772B2 (en) Digital image coding method using random scanning of image frames
JP5990790B2 (en) Decoding method, computer readable medium storing instructions for decoding, decoding system and decoder
KR20060013021A (en) Context adaptive binary arithmetic decoder method and apparatus
US5371611A (en) Method for and system of decoding compressed continuous-tone digital image data
JP2918360B2 (en) Inverse quantization method and image data restoration device
JP3105906B2 (en) Image processing device
JP2839389B2 (en) Inverse quantization method and image data restoration device
KR100579417B1 (en) High speed image compression apparatus
JP2839392B2 (en) Image data restoration method and apparatus
JPH05316359A (en) Picture data coder
JPH06217273A (en) Method and device for encoding image data
JP2856268B2 (en) Image data restoration device
JPH04271664A (en) Picture data compressor and picture data decoder
KR100246390B1 (en) Block noise removing apparatus in image signal processor
JP3065393B2 (en) Image data restoration method and image data restoration device
JPH05268591A (en) Picture coding method and picture coder
JP2937455B2 (en) Image data compression device and image data decompression device
JPH04255169A (en) Layer decoding system
JPH04211575A (en) Orthogonal convertion operation device
JP2005072847A (en) Image coding system
JPH04220082A (en) Method and device for picture data decoding
JPH04137975A (en) Inverse orthogonal transformation method and circuit
JPH05130580A (en) Variable length encoding and decoding device
JPH04260290A (en) Picture data compression method and picture data compression device and picture data decoder
JPH0514737A (en) Picture processor

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