JPH06209469A - Picture coder, picture coding method, picture decoder, picture decoding method and picture recording medium - Google Patents

Picture coder, picture coding method, picture decoder, picture decoding method and picture recording medium

Info

Publication number
JPH06209469A
JPH06209469A JP1936993A JP1936993A JPH06209469A JP H06209469 A JPH06209469 A JP H06209469A JP 1936993 A JP1936993 A JP 1936993A JP 1936993 A JP1936993 A JP 1936993A JP H06209469 A JPH06209469 A JP H06209469A
Authority
JP
Japan
Prior art keywords
data
image
block
quantization width
representative value
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.)
Pending
Application number
JP1936993A
Other languages
Japanese (ja)
Inventor
Yoichi Yagasaki
陽一 矢ヶ崎
Motoki Kato
元樹 加藤
Toru Okazaki
透 岡崎
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.)
Sony Corp
Original Assignee
Sony Corp
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 Sony Corp filed Critical Sony Corp
Priority to JP1936993A priority Critical patent/JPH06209469A/en
Publication of JPH06209469A publication Critical patent/JPH06209469A/en
Pending legal-status Critical Current

Links

Landscapes

  • Television Signal Processing For Recording (AREA)
  • Compression Or Coding Systems Of Tv Signals (AREA)

Abstract

PURPOSE:To improve the bit precision by applying conversion processing to quantization data of a difference between picture data and representative data for each prescribed block. CONSTITUTION:When the motion compensation mode is the in-picture prediction mode and a dynamic range of a block of picture data in 10-bit precision from a computing element 4 exceeds 8 bits, a block quantization device 7 converts a 10-bit block into data of 8-bit precision from the computing element 4 and outputted to a difference signal coder 8. On the other hand, in the case of the inter-picture prediction mode, a representative value calculation circuit 5 detects a maximum value and a minimum value of an arithmetic operation output of the computing element 3 and its mean value is outputted to computing elements 4, 11 as representative data of a block of the picture data in 10-bit precision outputted from the computing element 3. A difference between the block of the picture data in 10-bit precision from the computing element 3 and a mean value of the block from the circuit 5 is taken and outputted to a quantization device 7. Thus, the picture signal with high precision is coded and decoded.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、画像信号を、例えば光
磁気ディスクや磁気テープなどの記録媒体に記録し、こ
れを再生する場合などに用いて好適な画像符号化装置、
画像符号化方法、画像復号化装置、画像復号化方法、並
びに画像記録媒体に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image coding apparatus suitable for use in recording an image signal on a recording medium such as a magneto-optical disk or a magnetic tape and reproducing it.
The present invention relates to an image coding method, an image decoding device, an image decoding method, and an image recording medium.

【0002】[0002]

【従来の技術】例えば、テレビ会議システム、テレビ電
話システムなどのように、動画像信号を遠隔地に伝送す
るシステムにおいては、伝送路を効率良く利用するた
め、画像信号のライン相関やフレーム(またはフィール
ド)間相関を利用して、画像信号を圧縮符号化するよう
になされている。
2. Description of the Related Art In a system for transmitting a moving image signal to a remote place such as a video conference system or a video telephone system, for example, line correlation or frame (or frame) of an image signal (or The image signal is compressed and encoded by utilizing the correlation between fields.

【0003】ライン相関(2次元相関性)を利用する
と、画像信号を、例えばDCT(離散コサイン変換)処
理するなどして、特定の周波数成分に信号電力を集中さ
せることができ、これにより圧縮することができる。
By utilizing the line correlation (two-dimensional correlation), the image signal can be subjected to DCT (discrete cosine transform) processing, for example, to concentrate the signal power on a specific frequency component, thereby compressing. be able to.

【0004】また、フレーム(またはフィールド)間相
関を利用すると、画像信号をさらに圧縮して符号化する
ことが可能となる。即ち、通常、時間的に隣接するフレ
ームの画像は、それ程大きな変化を有していないため、
両者の差を演算すると、その差分信号は小さな値のもの
となる。そこで、この差分信号を符号化すれば、符号量
を圧縮することができる。
Further, by utilizing the correlation between frames (or fields), it becomes possible to further compress and encode the image signal. That is, since the images of frames that are temporally adjacent do not usually have such a large change,
When the difference between the two is calculated, the difference signal has a small value. Therefore, if this difference signal is encoded, the code amount can be compressed.

【0005】しかしながら、差分信号のみを伝送したの
では、元の画像を復元することができない。そこで、各
フレームの画像を、Iピクチャ、PピクチャまたはBピ
クチャの3種類のピクチャのいずれかのピクチャとし、
画像信号を圧縮符号化するようにしている。
However, the original image cannot be restored by transmitting only the difference signal. Therefore, the image of each frame is set to any one of three types of pictures of I picture, P picture, and B picture,
The image signal is compressed and encoded.

【0006】即ち、例えばフレームF1乃至F17まで
の17フレームの画像信号をグループオブピクチャ(Gr
oup Of Picture、以下GOPと記載する)とし、処理の
1単位とする。そして、その先頭のフレームF1の画像
信号はIピクチャとして符号化し、第2番目のフレーム
F2はBピクチャとして、また第3番目のフレームF3
はPピクチャとして、それぞれ処理する。以下、第4番
目以降のフレームF4乃至F17は、Bピクチャまたは
Pピクチャとして交互に処理する。
That is, for example, image signals of 17 frames from frames F1 to F17 are grouped into a group of pictures (Gr
oup of picture, hereinafter referred to as GOP), and is a unit of processing. The image signal of the first frame F1 is encoded as an I picture, the second frame F2 is a B picture, and the third frame F3 is
Are processed as P pictures respectively. Hereinafter, the fourth and subsequent frames F4 to F17 are alternately processed as a B picture or a P picture.

【0007】Iピクチャの画像信号としては、その1フ
レーム(またはフィールド)分の画像信号をそのまま伝
送する。これに対して、Pピクチャの画像信号として
は、基本的には、それより時間的に先行するIピクチャ
またはPピクチャの画像信号からの差分を伝送する。さ
らにBピクチャの画像信号としては、基本的には、時間
的に先行するフレームまたは後行するフレームの両方の
平均値からの差分を求め、その差分を符号化する。
As the image signal of the I picture, the image signal for one frame (or field) is transmitted as it is. On the other hand, as the image signal of the P picture, basically, the difference from the image signal of the I picture or P picture that precedes it in time is transmitted. Further, as the image signal of the B picture, basically, the difference from the average value of both the temporally preceding frame and the subsequent frame is obtained, and the difference is encoded.

【0008】以上のようにして、動画像信号を符号化す
る場合、最初のフレームF1はIピクチャとして処理さ
れるため、そのまま伝送データとして伝送路に伝送され
る(画像内符号化)。これに対して、第2のフレームF
2は、Bピクチャとして処理されるため、時間的に先行
するフレームF1と、時間的に後行するフレームF3の
平均値との差分が演算され、その差分が伝送データとし
て伝送される。
As described above, when the moving image signal is encoded, the first frame F1 is processed as an I picture, and therefore, is transmitted as it is to the transmission path as transmission data (intra-picture encoding). On the other hand, the second frame F
Since 2 is processed as a B picture, the difference between the frame F1 temporally preceding and the average value of the frame F3 temporally following is calculated, and the difference is transmitted as transmission data.

【0009】但し、このBピクチャとしての処理は、さ
らに細かく説明すると、4種類存在する。その第1の処
理は、元のフレームF2のデータをそのまま伝送データ
として伝送するものであり(イントラ符号化)(画像内
予測符号化)、Iピクチャにおける場合と同様の処理と
なる。第2の処理は、時間的に後のフレームF3からの
差分を演算し、その差分を伝送するものである(後方予
測符号化)。第3の処理は、時間的に先行するフレーム
F1との差分を伝送するものである(前方予測符号
化)。さらに第4の処理は、時間的に先行するフレーム
F1と後行するフレームF3の平均値との差分を生成
し、これを伝送データとして伝送するものである(両方
向予測符号化)。
However, there are four types of processing as the B picture, which will be described in more detail. The first process is to transmit the data of the original frame F2 as it is as transmission data (intra coding) (intra-picture prediction coding), and is the same process as in the I picture. The second process is to calculate the difference from the frame F3 that is temporally later and transmit the difference (backward predictive coding). The third process is to transmit the difference from the frame F1 that precedes in time (forward predictive coding). Further, the fourth processing is to generate a difference between an average value of a temporally preceding frame F1 and a temporally subsequent frame F3 and transmit this as transmission data (bidirectional predictive coding).

【0010】この4つの方法のうち、伝送データが最も
少なくなる方法が採用される。
Of these four methods, the method with the least amount of transmission data is adopted.

【0011】なお、差分データを伝送するとき、差分を
演算する対象となるフレームの画像(予測画像)との間
の動きベクトルx1(フレームF1とF2の間の動きベ
クトル)(前方予測の場合)、もしくはx2(フレーム
F3とF2の間の動きベクトル)(後方予測の場合)、
またはx1とx2の両方(両方向予測の場合)が、差分
データとともに伝送される。
When transmitting the difference data, the motion vector x1 between the image of the frame (prediction image) for which the difference is to be calculated (motion vector between the frames F1 and F2) (in the case of forward prediction). , Or x2 (motion vector between frames F3 and F2) (for backward prediction),
Or both x1 and x2 (for bidirectional prediction) are transmitted with the difference data.

【0012】また、PピクチャのフレームF3は、時間
的に先行するフレームF1を予測画像として、このフレ
ームとの差分信号と、動きベクトルx3が演算され、こ
れが伝送データとして伝送される(前方予測符号化)。
あるいはまた、元のフレームF3のデータがそのまま伝
送データとして伝送される(イントラ符号化)(画像内
予測符号化)。いずれの方法により伝送されるかは、B
ピクチャにおける場合と同様に、伝送データがより少な
くなる方が選択される。
In the frame F3 of the P picture, the frame F1 temporally preceding is used as a prediction image, the differential signal from this frame and the motion vector x3 are calculated, and this is transmitted as transmission data (forward prediction code). )).
Alternatively, the data of the original frame F3 is directly transmitted as transmission data (intra coding) (intra-picture predictive coding). Which method is used for transmission is B
As with pictures, the one with less transmitted data is selected.

【0013】図20は、上述した原理に基づいて、動画
像信号を符号化する従来の画像符号化装置の一例の構成
を示すブロック図である。まず、例えば8×8画素や1
6×16画素などのブロックに分割された、8ビット精
度の画像データが、ブロック単位でフィールドメモリ群
115に入力されて記憶される。
FIG. 20 is a block diagram showing the structure of an example of a conventional image coding apparatus for coding a moving image signal based on the above-mentioned principle. First, for example, 8 × 8 pixels or 1
The 8-bit precision image data divided into blocks of 6 × 16 pixels is input to and stored in the field memory group 115 in block units.

【0014】すると、動き予測回路2は、予め設定され
ている所定のシーケンスに従って、フィールドメモリ群
115に記憶された各フレーム(またはフィールド)の
画像データを、Iピクチャ、Pピクチャ、またはBピク
チャとして処理する。シーケンシャルに入力される各フ
レームの画像を、I,P,Bのいずれのピクチャとして
処理するかは、予め定められている(例えば、上述した
ように、フレームF1乃至F17により構成されるGO
Pが、I,B,P,B,P,・・・B,Pとして処理さ
れる)。
Then, the motion prediction circuit 2 uses the image data of each frame (or field) stored in the field memory group 115 as an I picture, a P picture, or a B picture according to a preset predetermined sequence. To process. Which of I, P, and B pictures to process the images of sequentially input frames is determined in advance (for example, as described above, GO configured by the frames F1 to F17).
P is treated as I, B, P, B, P, ... B, P).

【0015】フィールドメモリ群115に記憶された各
ピクチャの信号は、そこから読み出され、演算器3にお
いて、画像内予測、前方予測、後方予測、または両方向
予測の演算が行なわれる。これらの処理のうち、いずれ
の処理を行なうかは、予測誤差信号(処理の対象とされ
ている参照画像と、これに対する予測画像との差分)に
対応して決定される。このため、動き予測回路2は、こ
の判定に用いられる予測誤差信号の絶対値和(自乗和で
もよい)を、次のようにして生成する。
The signal of each picture stored in the field memory group 115 is read therefrom, and the operation unit 3 performs intra-picture prediction, forward prediction, backward prediction, or bidirectional prediction. Which of these processes is to be performed is determined in accordance with the prediction error signal (difference between the reference image to be processed and the predicted image corresponding thereto). Therefore, the motion prediction circuit 2 generates the sum of absolute values (or the sum of squares) of the prediction error signals used for this determination as follows.

【0016】即ち、画像内予測の予測誤差の絶対値和と
して、参照画像のブロックの信号Aijの和ΣAijの絶対
値|ΣAij|と、ブロックの信号Aijの絶対値|Aij|の和
Σ|Aij|の差を求める。また、前方予測の予測誤差の絶
対値和として、参照画像のブロックの信号Aijと、予測
画像のブロックの信号Bijの差Aij−Bijの絶対値|Ai
j−Bij|の和Σ|Aij−Bij|を求める。また、後方予測
と両方向予測の予測誤差の絶対値和も、前方予測におけ
る場合と同様に(その予測画像を前方予測における場合
と異なる予測画像に変更して)求める。
That is, as the sum of the absolute values of the prediction errors of the intra-picture prediction, the sum Σ | Aij of the absolute value | ΣAij | of the sum ΣAij of the signal Aij of the block of the reference image and the absolute value | Aij | of the signal Aij of the block. Find the difference |. Also, as the sum of absolute values of the prediction errors in the forward prediction, the absolute value | Ai of the difference Aij-Bij between the signal Aij of the block of the reference image and the signal Bij of the block of the predicted image.
The sum Σ | Aij−Bij | of j−Bij | is calculated. Further, the sum of absolute values of the prediction errors of the backward prediction and the bidirectional prediction is also obtained in the same manner as in the case of forward prediction (the predicted image is changed to a predicted image different from that in forward prediction).

【0017】そして、動き予測回路2は、前方予測、後
方予測および両方向予測の予測誤差の絶対値和のうち、
最も小さいものを、画像間予測の予測誤差の絶対値和と
して選択する。さらに、この画像間予測の予測誤差の絶
対値和と、画像内予測の予測誤差の絶対値和とを比較
し、その小さい方を選択し、この選択した絶対値和に対
応するモードを動き補償モードとして選択する。即ち、
画像内予測の予測誤差の絶対値和の方が小さければ、画
像内予測モードが設定される。画像間予測の予測誤差の
絶対値和の方が小さければ、前方予測、後方予測または
両方向予測モードのうち、対応する絶対値和が最も小さ
かった動き補償モードが設定される。
Then, the motion prediction circuit 2 calculates the sum of absolute values of prediction errors of forward prediction, backward prediction and bidirectional prediction.
The smallest one is selected as the sum of absolute values of prediction errors in inter-picture prediction. Further, the sum of absolute values of prediction errors of inter-picture prediction is compared with the sum of absolute values of prediction errors of intra-picture prediction, the smaller one is selected, and the mode corresponding to the selected sum of absolute values is motion compensated. Select as the mode. That is,
If the sum of absolute values of prediction errors in intra-picture prediction is smaller, the intra-picture prediction mode is set. If the sum of absolute values of prediction errors in inter-picture prediction is smaller, the motion compensation mode with the smallest corresponding absolute value sum is set among the forward prediction, backward prediction, and bidirectional prediction modes.

【0018】さらに、動き予測回路2は、設定した動き
補償モードに対応する予測画像と参照画像の間の動きベ
クトルを検出し、可変長符号化(VLC)回路117と
動き補償回路14に出力する。上述したように、この動
きベクトルとしては、対応する予測誤差の絶対値和が最
小となるものが選択される。
Further, the motion prediction circuit 2 detects the motion vector between the predicted image and the reference image corresponding to the set motion compensation mode, and outputs it to the variable length coding (VLC) circuit 117 and the motion compensation circuit 14. . As described above, the motion vector that minimizes the sum of absolute values of the corresponding prediction errors is selected.

【0019】フィールドメモリ群115よりIピクチャ
の画像データが読み出された場合、動き予測回路2は、
動き補償モードとして、画像内予測モード(動き補償を
行わないモード)を設定する。これにより、Iピクチャ
の画像データが、演算器3をスルーして(演算器3にお
いて演算処理が行われずに)、差分信号符号化器8に入
力される。
When the I-picture image data is read from the field memory group 115, the motion prediction circuit 2
The intra-picture prediction mode (mode without motion compensation) is set as the motion compensation mode. As a result, the image data of the I picture passes through the arithmetic unit 3 (without arithmetic processing being performed in the arithmetic unit 3) and is input to the differential signal encoder 8.

【0020】差分信号符号化器8は、DCT回路111
および量子化器112より構成されている。量子化器1
12は、演算器3をスルーしてフィールドメモリ群11
5より供給されたIピクチャの画像データを、DCT
(離散コサイン変換)処理し、DCT係数に変換する。
このDCT係数は、量子化器112に入力され、VLC
回路117の後段に設けられた送信バッファ(図示せ
ず)のデータ蓄積量(バッファ蓄積量)に対応した量子
化幅Sで量子化された後、VLC回路117に入力され
る。
The differential signal encoder 8 includes a DCT circuit 111.
And a quantizer 112. Quantizer 1
12 passes through the arithmetic unit 3 and the field memory group 11
I-picture image data supplied from
(Discrete cosine transform) process and transform into DCT coefficients.
This DCT coefficient is input to the quantizer 112, and VLC
After being quantized with a quantization width S corresponding to the data storage amount (buffer storage amount) of a transmission buffer (not shown) provided in the subsequent stage of the circuit 117, it is input to the VLC circuit 117.

【0021】VLC回路117は、量子化器112より
供給される画像データ(いまの場合、Iピクチャのデー
タ)を、例えばハフマン符号などの可変長符号に変換
し、その後段に設けられた送信バッファに出力する。
The VLC circuit 117 converts the image data (in this case, I picture data) supplied from the quantizer 112 into a variable length code such as Huffman code, and a transmission buffer provided in the subsequent stage. Output to.

【0022】ここで、VLC回路117の後段に設けら
れた送信バッファは、そのデータ残量が許容上限値まで
増量すると、量子化制御信号によって量子化器112の
量子化幅Sを大きくすることにより、量子化データのデ
ータ量を低下させる。また、これとは逆に、データ残量
が許容下限値まで減少すると、送信バッファは、量子化
制御信号によって量子化器112の量子化幅Sを小さく
することにより、量子化データのデータ量を増大させ
る。このようにして、送信バッファのオーバフローまた
はアンダフローが防止される。
Here, the transmission buffer provided in the subsequent stage of the VLC circuit 117 increases the quantization width S of the quantizer 112 by the quantization control signal when the remaining data amount increases to the allowable upper limit value. , Reduce the amount of quantized data. On the contrary, when the data remaining amount decreases to the allowable lower limit value, the transmission buffer reduces the quantization width S of the quantizer 112 by the quantization control signal to reduce the data amount of the quantized data. Increase. In this way, overflow or underflow of the transmit buffer is prevented.

【0023】VLC回路117にはまた、量子化器11
2より量子化幅S、動き予測回路2より動き補償モード
(画像内予測、前方予測、後方予測、または両方向予測
のいずれが設定されたかを示すモード)、および動きベ
クトルが入力されており、これらも可変長符号化され
る。
The VLC circuit 117 also includes a quantizer 11
2, the quantization width S is input, the motion prediction circuit 2 inputs a motion compensation mode (a mode that indicates which of intra-picture prediction, forward prediction, backward prediction, or bidirectional prediction has been set), and a motion vector. Is also variable-length coded.

【0024】そして、VLC回路117より出力された
データは、その後段の送信バッファに一時蓄積され、所
定のタイミングで読み出されて、伝送路に出力され、例
えば記録媒体などに記録される。
Then, the data output from the VLC circuit 117 is temporarily stored in the transmission buffer at the subsequent stage, read at a predetermined timing, output to the transmission path, and recorded in, for example, a recording medium.

【0025】一方、量子化器112より出力されたIピ
クチャのデータは、差分信号復号化器9にも入力され
る。差分信号復号化器9は、逆量子化器113および逆
DCT回路114より構成され、逆量子化器113は、
量子化器112における量子化幅Sと同一の量子化幅
で、量子化器112より出力されたIピクチャのデータ
を逆量子化する。逆量子化器113の出力は、逆DCT
回路114に入力され、逆DCT処理された後、演算器
12を介してフィールドメモリ群116に供給され、記
憶される。
On the other hand, the I picture data output from the quantizer 112 is also input to the differential signal decoder 9. The differential signal decoder 9 is composed of an inverse quantizer 113 and an inverse DCT circuit 114, and the inverse quantizer 113 is
The I-picture data output from the quantizer 112 is inversely quantized with the same quantization width as the quantization width S in the quantizer 112. The output of the inverse quantizer 113 is the inverse DCT
After being input to the circuit 114 and subjected to inverse DCT processing, it is supplied to the field memory group 116 via the arithmetic unit 12 and stored therein.

【0026】動き予測回路2は、シーケンシャルに入力
される各フレームの画像データを、たとえば、I,B,
P,B,P,B・・・のピクチャとしてそれぞれ処理す
る場合、最初に入力されたフレームの画像データをIピ
クチャとして処理した後、次に入力されたフレームの画
像をBピクチャとして処理する前に、さらにその次に入
力されたフレームの画像データをPピクチャとして処理
する。Bピクチャは、後方予測を伴うため、後方予測画
像としてのPピクチャが先に用意されていないと、復号
することができないからである。
The motion prediction circuit 2 receives the image data of each frame, which is sequentially input, as I, B,
When processed as P, B, P, B ... pictures, respectively, after processing the image data of the first input frame as an I picture, before processing the image of the next input frame as a B picture. Further, the image data of the frame input next is processed as a P picture. This is because a B picture is accompanied by backward prediction and cannot be decoded unless a P picture as a backward predicted image is prepared in advance.

【0027】そこで動き予測回路2は、Iピクチャの処
理の次に、フィールドメモリ群115に記憶されている
Pピクチャの画像データの処理を開始する。そして、上
述した場合と同様に、ブロック単位でのフレーム間差分
(予測誤差)の絶対値和に対応して、画像内予測、もし
くは前方予測の動き補償モードが設定される。
Then, the motion prediction circuit 2 starts the processing of the image data of the P picture stored in the field memory group 115 after the processing of the I picture. Then, similarly to the case described above, the intra-picture prediction or forward prediction motion compensation mode is set in correspondence with the sum of absolute values of the inter-frame difference (prediction error) in block units.

【0028】画像内予測モードが設定された場合、演算
器3は、上述したようにフィールドメモリ群115から
のデータに演算処理を施さずに出力する。従って、この
データは、Iピクチャのデータと同様に、差分信号符号
化器8、VLC回路117、送信バッファを介して伝送
路に伝送される。また、このデータは、差分信号復号化
器9、演算器12を介してフィールドメモリ群116に
供給され、記憶される。
When the intra-picture prediction mode is set, the arithmetic unit 3 outputs the data from the field memory group 115 without performing arithmetic processing as described above. Therefore, this data is transmitted to the transmission line via the differential signal encoder 8, the VLC circuit 117, and the transmission buffer, similarly to the I picture data. Further, this data is supplied to and stored in the field memory group 116 via the differential signal decoder 9 and the arithmetic unit 12.

【0029】前方予測モードの時、フィールドメモリ群
116に記憶されている画像(いまの場合Iピクチャの
画像)データが読み出され、動き補償回路14により、
動き予測回路2が出力する動きベクトルに対応して動き
補償される。即ち、動き補償回路14は、動き予測回路
2より前方予測モードの設定が指令されたとき、フィー
ルドメモリ群116の読み出しアドレスを、動き予測回
路2がいま出力しているブロックの位置に対応する位置
から動きベクトルに対応する分だけずらしてデータを読
み出し、予測画像データを生成する。
In the forward prediction mode, image data (in this case, an I-picture image) data stored in the field memory group 116 is read out, and the motion compensation circuit 14
Motion compensation is performed according to the motion vector output from the motion prediction circuit 2. That is, when the motion prediction circuit 2 issues an instruction to set the forward prediction mode, the motion compensation circuit 14 sets the read address of the field memory group 116 to the position corresponding to the position of the block currently output by the motion prediction circuit 2. Then, the data is read out by shifting by the amount corresponding to the motion vector, and predicted image data is generated.

【0030】動き補償回路14により生成された予測画
像データは、フィールドメモリ群116を介して演算器
3に供給される。この場合、演算器3は、フィールドメ
モリ群115より供給された参照画像のブロックのデー
タから、動き補償回路14より供給された、このブロッ
クに対応する予測画像データを減算し、その差分(予測
誤差)を出力する。この差分データは、差分信号符号化
器8、VLC回路117、送信バッファを介して伝送路
に伝送される。また、この差分データは、差分信号復号
化器9により局所的に復号され、演算器12に入力され
る。
The predicted image data generated by the motion compensation circuit 14 is supplied to the arithmetic unit 3 via the field memory group 116. In this case, the calculator 3 subtracts the predicted image data corresponding to this block supplied from the motion compensation circuit 14 from the data of the block of the reference image supplied from the field memory group 115, and calculates the difference (prediction error). ) Is output. This difference data is transmitted to the transmission line via the difference signal encoder 8, the VLC circuit 117, and the transmission buffer. The difference data is locally decoded by the difference signal decoder 9 and input to the calculator 12.

【0031】この演算器12にはまた、演算器3に供給
されている予測画像データと同一のデータが供給されて
いる。演算器12は、差分信号復号化器9が出力する差
分データに、動き補償回路14が出力する予測画像デー
タを加算する。これにより、元の(復号した)Pピクチ
ャの画像データが得られる。このPピクチャの画像デー
タは、フィールドメモリ群116に供給され、記憶され
る。
The calculator 12 is also supplied with the same data as the predicted image data supplied to the calculator 3. The calculator 12 adds the prediction image data output by the motion compensation circuit 14 to the difference data output by the difference signal decoder 9. As a result, the image data of the original (decoded) P picture is obtained. The image data of the P picture is supplied to and stored in the field memory group 116.

【0032】動き予測回路2は、このように、Iピクチ
ャとPピクチャのデータがフィールドメモリ群116に
それぞれ記憶された後、次にBピクチャの処理を実行す
る。即ち、ブロック単位でのフレーム間差分の絶対値和
の大きさに対応して、動き補償モードが画像内予測モー
ド、前方予測モード、後方予測モード、または両方向予
測モードのいずれかに設定される。
After the I-picture and P-picture data are stored in the field memory group 116 in this way, the motion prediction circuit 2 next executes the B-picture processing. That is, the motion compensation mode is set to one of the intra-picture prediction mode, the forward prediction mode, the backward prediction mode, and the bidirectional prediction mode, corresponding to the magnitude of the sum of absolute values of the inter-frame differences in block units.

【0033】画像内予測モードまたは前方予測モードの
時、上述したような、Pピクチャにおける場合と同様の
処理が行われ、データが伝送される。
In the intra-picture prediction mode or the forward prediction mode, the same processing as in the case of the P picture as described above is performed and the data is transmitted.

【0034】これに対して、後方予測モードの時、フィ
ールドメモリ群116に記憶されている画像(いまの場
合、Pピクチャの画像)データが読み出され、動き補償
回路14により、動き予測回路2が出力する動きベクト
ルに対応して動き補償される。即ち、動き補償回路14
は、動き予測回路2より後方予測モードの設定が指令さ
れたとき、フィールドメモリ群116の読み出しアドレ
スを、動き予測回路2がいま出力しているブロックの位
置に対応する位置から動きベクトルに対応する分だけず
らしてデータを読み出し、予測画像データを生成する。
On the other hand, in the backward prediction mode, image data (in this case, P picture image) data stored in the field memory group 116 is read out, and the motion compensation circuit 14 causes the motion prediction circuit 2 to read. Is motion-compensated corresponding to the motion vector output by. That is, the motion compensation circuit 14
When the backward prediction mode setting is instructed by the motion prediction circuit 2, the read address of the field memory group 116 corresponds to the motion vector from the position corresponding to the position of the block currently output by the motion prediction circuit 2. The data is read out by shifting by an amount, and predicted image data is generated.

【0035】動き補償回路14により生成された予測画
像データは、フィールドメモリ群116を介して演算器
3に供給される。演算器3は、フィールドメモリ群11
5より供給された参照画像のブロックのデータから、動
き補償回路14より供給された予測画像データを減算
し、その差分を出力する。この差分データは、差分信号
符号化器8、VLC回路117、送信バッファを介して
伝送路に伝送される。
The predicted image data generated by the motion compensation circuit 14 is supplied to the arithmetic unit 3 via the field memory group 116. The computing unit 3 includes a field memory group 11
The predicted image data supplied from the motion compensation circuit 14 is subtracted from the data of the block of the reference image supplied from No. 5, and the difference is output. This difference data is transmitted to the transmission line via the difference signal encoder 8, the VLC circuit 117, and the transmission buffer.

【0036】また、両方向予測モードの時、フィールド
メモリ群116に記憶されている画像(いまの場合、I
ピクチャの画像)データ、および画像(いまの場合、P
ピクチャの画像)データが読み出され、動き補償回路1
4により、動き予測回路2が出力する動きベクトルに対
応して動き補償される。即ち、動き補償回路14は、動
き予測回路2より両方向予測モードの設定が指令された
とき、フィールドメモリ群116の読み出しアドレス
を、動き予測回路2がいま出力しているブロックの位置
に対応する位置から動きベクトル(この場合の動きベク
トルは、前方予測画像用と後方予測画像用の2つとな
る)に対応する分だけずらしてデータを読み出し、予測
画像データを生成する。
In the bidirectional prediction mode, the images stored in the field memory group 116 (in this case, I
Picture image data, and image (in this case, P
(Picture image) data is read out, and the motion compensation circuit 1
4, the motion compensation is performed according to the motion vector output from the motion prediction circuit 2. That is, when the motion prediction circuit 2 instructs the motion compensation circuit 14 to set the bidirectional prediction mode, the motion compensation circuit 14 sets the read address of the field memory group 116 to the position corresponding to the position of the block currently output by the motion prediction circuit 2. The data is read out by shifting by the amount corresponding to the motion vector (in this case, there are two motion vectors for the forward prediction image and the backward prediction image), and predicted image data is generated.

【0037】動き補償回路14により生成された予測画
像データは、フィールドメモリ群116を介して演算器
3に供給される。演算器3は、動き予測回路2より供給
された参照画像のブロックのデータから、動き補償回路
14より供給された予測画像データの平均値を減算し、
その差分を出力する。この差分データは、差分信号符号
化器8、VLC回路117、送信バッファを介して伝送
路に伝送される。
The predicted image data generated by the motion compensation circuit 14 is supplied to the arithmetic unit 3 via the field memory group 116. The calculator 3 subtracts the average value of the predicted image data supplied from the motion compensation circuit 14 from the reference image block data supplied from the motion prediction circuit 2,
The difference is output. This difference data is transmitted to the transmission line via the difference signal encoder 8, the VLC circuit 117, and the transmission buffer.

【0038】なお、Bピクチャの画像は、他の画像の予
測画像とされることがないため、フィールドメモリ群1
16には記憶されない。
Note that the B picture image is not used as a predicted image of another image, and therefore, the field memory group 1
It is not stored in 16.

【0039】また、以上の処理において、フィールドメ
モリ群115および116からの画像データの読み出し
のタイミングは、メモリコントローラ16において入力
画像の同期信号に対応して生成されるタイミング制御信
号に基づいて制御される。
In the above processing, the timing of reading the image data from the field memory groups 115 and 116 is controlled based on the timing control signal generated by the memory controller 16 in response to the synchronizing signal of the input image. It

【0040】次に、図21は、図20に示す画像符号化
装置で符号化された画像を復号する画像復号化装置の一
例の構成を示すブロック図である。符号化された画像デ
ータは、伝送路を介して図示せぬ受信回路で受信された
り、再生装置で記録媒体より再生され、可変長復号化
(逆VLC)回路124に供給される。逆VLC回路1
24は、符号化された画像データを可変長復号化し、動
きベクトル、動き補償モードを動き補償回路27に、ま
た、量子化幅S、復号された(可変長復号された)画像
データを差分信号復号化器22に、それぞれ出力する。
Next, FIG. 21 is a block diagram showing the structure of an example of an image decoding apparatus for decoding the image coded by the image coding apparatus shown in FIG. The encoded image data is received by a receiving circuit (not shown) via a transmission path, reproduced by a reproducing device from a recording medium, and supplied to a variable length decoding (inverse VLC) circuit 124. Reverse VLC circuit 1
Reference numeral 24 denotes variable-length decoding of the encoded image data, the motion vector and motion compensation mode to the motion compensation circuit 27, and the quantization width S, and the decoded (variable-length decoded) image data to a differential signal. Output to the decoder 22 respectively.

【0041】差分信号復号化器22は、図20の差分信
号復号化器9と同様に、逆量子化器121および逆DC
T回路122より構成されており、逆量子化器121
は、逆VLC回路124より供給された画像データを、
同じく逆VLC回路124より供給された量子化幅Sに
従って逆量子化し、逆DCT回路122に出力する。逆
量子化器121より出力されたデータ(DCT係数)
は、逆DCT回路122で、逆DCT処理され、演算器
25に供給される。
The differential signal decoder 22 is similar to the differential signal decoder 9 in FIG.
The inverse quantizer 121 includes a T circuit 122.
Is the image data supplied from the inverse VLC circuit 124,
Similarly, inverse quantization is performed according to the quantization width S supplied from the inverse VLC circuit 124, and the result is output to the inverse DCT circuit 122. Data output from the inverse quantizer 121 (DCT coefficient)
Is subjected to inverse DCT processing by the inverse DCT circuit 122 and supplied to the calculator 25.

【0042】逆DCT回路122より供給された画像デ
ータが、Iピクチャのデータである場合、そのデータは
演算器25よりそのまま出力され、演算器25に後に入
力される画像データ(PまたはBピクチャのデータ)の
予測画像データ生成のために、フィールドメモリ群12
3に供給されて記憶される。さらに、このデータは、復
号された画像データとしてフィールドメモリ群123を
介して出力される。
When the image data supplied from the inverse DCT circuit 122 is I-picture data, the data is output from the calculator 25 as it is, and the image data (P or B-picture data) input later to the calculator 25 is input. Field memory group 12 for generating predicted image data
3 and is stored. Further, this data is output as decoded image data via the field memory group 123.

【0043】逆DCT回路122より供給された画像デ
ータが、その1フレーム前の画像データを予測画像デー
タとするPピクチャのデータであって、前方予測モード
のデータである場合、フィールドメモリ群123に記憶
されている、1フレーム前の画像データ(Iピクチャの
データ)が読み出され、動き補償回路27で逆VLC回
路124より出力された動きベクトルに対応する動き補
償が施される。そして、演算器25において、逆DCT
回路122より供給された画像データ(差分のデータ)
と加算され、出力される。この加算されたデータ、即
ち、復号されたPピクチャのデータは、演算器25に後
に入力される画像データ(BピクチャまたはPピクチャ
のデータ)の予測画像データ生成のために、フィールド
メモリ群123に供給されて記憶される。
When the image data supplied from the inverse DCT circuit 122 is the data of the P picture in which the image data of the immediately preceding frame is the predicted image data and the data of the forward prediction mode, it is stored in the field memory group 123. The stored image data of one frame before (data of I picture) is read out, and the motion compensation circuit 27 performs motion compensation corresponding to the motion vector output from the inverse VLC circuit 124. Then, in the calculator 25, the inverse DCT
Image data supplied from the circuit 122 (difference data)
Is added and output. This added data, that is, the decoded P picture data, is stored in the field memory group 123 in order to generate predictive image data of the image data (B picture or P picture data) input later to the calculator 25. Supplied and stored.

【0044】Pピクチャのデータであっても、画像内予
測モードのデータは、Iピクチャのデータと同様に、演
算器25で特に処理は行わず、そのままフィールドメモ
リ群123に記憶される。
Even in the case of P-picture data, the intra-picture prediction mode data is stored in the field memory group 123 as it is without any special processing by the calculator 25, as in the case of I-picture data.

【0045】このPピクチャは、次のBピクチャの次に
表示されるべき画像であるため、この時点では、まだフ
ィールドメモリ群123より出力されない(上述したよ
うに、Bピクチャの後に入力されたPピクチャが、Bピ
クチャより先に処理され、伝送されている)。
Since this P picture is an image to be displayed next to the next B picture, it is not yet output from the field memory group 123 at this point (as described above, the P input after the B picture is input). Pictures have been processed and transmitted before B pictures).

【0046】逆DCT回路122より供給された画像デ
ータが、Bピクチャのデータである場合、逆VLC回路
124より供給された動き補償モードに対応して、フィ
ールドメモリ群123に記憶されているIピクチャの画
像データ(前方予測モードの場合)、Pピクチャの画像
データ(後方予測モードの場合)、または、その両方の
画像データ(両方向予測モードの場合)が読み出され、
動き補償回路27において、逆VLC回路124より出
力された動きベクトルに対応する動き補償が施されて、
予測画像が生成される。但し、動き補償を必要としない
場合(画像内予測モードの場合)、予測画像は生成され
ない。
When the image data supplied from the inverse DCT circuit 122 is B picture data, the I picture stored in the field memory group 123 corresponding to the motion compensation mode supplied from the inverse VLC circuit 124. Image data (in the forward prediction mode), P-picture image data (in the backward prediction mode), or both image data (in the bidirectional prediction mode),
In the motion compensation circuit 27, motion compensation corresponding to the motion vector output from the inverse VLC circuit 124 is performed,
A predicted image is generated. However, when motion compensation is not required (in the case of the intra-picture prediction mode), the predicted picture is not generated.

【0047】このようにして、動き補償回路27で動き
補償が施されたデータは、演算器25において、逆DC
T回路122の出力と加算される。この加算出力は、フ
ィールドメモリ群123を介してそのまま出力される。
The data thus motion-compensated by the motion compensation circuit 27 is processed by the calculator 25 in the inverse DC.
It is added to the output of the T circuit 122. This addition output is output as it is via the field memory group 123.

【0048】この加算出力はBピクチャのデータであ
り、他の画像の予測画像生成のために利用されることが
ないため、フィールドメモリ群123には記憶されな
い。
Since this addition output is B picture data and is not used for predictive image generation of other images, it is not stored in the field memory group 123.

【0049】Bピクチャの画像が出力された後、フィー
ルドメモリ群123に記憶されているPピクチャの画像
データが読み出されて出力される。
After the B picture image is output, the P picture image data stored in the field memory group 123 is read and output.

【0050】フィールドメモリ群123より出力された
データは、ブロックフォーマットからフレームフォーマ
ットに変換される。そして、D/A変換回路などでD/
A変換された後、例えばCRTなどのディスプレイ(い
ずれも図示せず)に出力され、表示される。
The data output from the field memory group 123 is converted from the block format to the frame format. Then, D / A conversion circuit etc.
After being A-converted, it is output and displayed on a display (not shown) such as a CRT, for example.

【0051】なお、以上の処理は、画像がカラー画像で
あれば、画像の輝度信号と色信号(例えば、色差信号)
の両方に対して施される。但し、この場合、動きベクト
ルは、輝度信号用のものを、垂直方向および水平方向に
1/2にしたものが用いられるときがある。
If the image is a color image, the above processing is performed on the image luminance signal and color signal (for example, color difference signal).
Is applied to both. However, in this case, the motion vector used for the luminance signal is sometimes halved in the vertical and horizontal directions.

【0052】また、以上の処理においては、逆VLC回
路124が、1枚(1画面)の画像を可変長復号化する
タイミングでタイミングパルスをメモリコントローラ2
8に出力するようになされており、メモリコントローラ
28においては、このタイミングパルスに対応してタイ
ミング制御信号がフィールドメモリ群123に供給され
るようになされている。これにより、フィールドメモリ
群123からの画像データの読み出しのタイミングが制
御されるようになされている。
In the above processing, the memory controller 2 outputs the timing pulse at the timing when the inverse VLC circuit 124 performs the variable length decoding of one image (one screen).
8 and the memory controller 28 supplies a timing control signal to the field memory group 123 corresponding to the timing pulse. As a result, the timing of reading image data from the field memory group 123 is controlled.

【0053】以上のようなDCT処理と動き補償を組み
合わせたハイブリッド方式の画像の符号化方式は、テレ
ビ電話に用いられる動画像の符号化規格であるCCIT
T(国際電信電話諮問委員会)のH.261や、蓄積メ
ディア用の動画像の符号化規格であるISO−IEC/
JTC1/SC29/WG11(いわゆるMPEG)な
どにおいて採用されている。
The hybrid image coding method combining the DCT processing and motion compensation as described above is CCIT which is a moving image coding standard used for videophones.
H.T (International Telegraph and Telephone Advisory Committee) 261 or ISO-IEC / which is a moving image coding standard for storage media.
It is used in JTC1 / SC29 / WG11 (so-called MPEG) and the like.

【0054】また、画像信号をディジタル信号として
(ディジタル信号に変換して)処理する場合のフォーマ
ットとして、例えばCCIR(国際無線通信諮問委員
会)のRecommendation 601(以下、Rec.601と記載す
る)などが知られている。
As a format for processing an image signal as a digital signal (converting into a digital signal), for example, CCIR (International Radiocommunication Advisory Committee) Recommendation 601 (hereinafter referred to as Rec. 601), etc. It has been known.

【0055】このRec.601においては、ディジタル信号
としての画像信号が、8ビット精度の4:2:2コンポ
ーネント信号(色差信号を、各ラインから1つおきに間
引き、各ラインにおいて、2つの輝度信号に対して1つ
の色差信号を対応させたディジタル画像信号)フォーマ
ットで取り扱われている。
In Rec. 601, an image signal as a digital signal is a 4: 2: 2 component signal with 8-bit precision (color difference signals are thinned out from every other line, and two luminances are obtained from each line. The signal is handled in a digital image signal format in which one color difference signal is associated with the signal.

【0056】例えばMPEGなどでは、このRec.601フ
ォーマットが入出力画像信号フォーマットとして採用さ
れており、このため上述した画像符号化装置や画像復号
化装置における、例えば動き予測回路2や、差分信号符
号化器8(DCT回路111、量子化器112)、差分
信号復号化器9(逆量子化回路121、逆DCT回路1
22)、22(逆量子化回路121、逆DCT回路12
2)などの装置の中枢となるブロックを構成するハード
ウェア(ICやLSI)などは、装置に8ビット精度の
ディジタル画像信号が入力または出力されることを前提
として設計、製作され、市販されている。
For example, in MPEG, the Rec.601 format is adopted as the input / output image signal format. Therefore, in the above-mentioned image coding apparatus and image decoding apparatus, for example, the motion prediction circuit 2 and the differential signal code are used. Digitizer 8 (DCT circuit 111, quantizer 112), differential signal decoder 9 (inverse quantizer circuit 121, inverse DCT circuit 1)
22), 22 (inverse quantization circuit 121, inverse DCT circuit 12)
The hardware (IC or LSI), etc., which constitutes the central block of the device such as 2) is designed, manufactured and marketed on the assumption that an 8-bit precision digital image signal is input to or output from the device. There is.

【0057】即ち、例えば差分信号符号化器8の量子化
器112などは、動き補償モードが画像内予測モードの
場合、0乃至255の8ビットで表すことのできる画像
データを、動き補償モードが画像間予測モード(前方予
測、後方予測もしくは両方向予測モードのいずれか)の
場合、8ビットに符号ビットを加えた−255乃至25
5の9ビットで表すことのできる画像データを量子化す
ることができるように設計、製作され、市販されてい
る。
That is, for example, when the motion compensation mode is the intra-picture prediction mode, the quantizer 112 of the differential signal encoder 8 converts the image data, which can be represented by 8 bits of 0 to 255, into the motion compensation mode. In the case of inter-picture prediction mode (either forward prediction, backward prediction or bidirectional prediction mode), code bits are added to 8 bits to -255 to 25
It is designed, manufactured, and commercially available so as to be able to quantize image data that can be represented by 5 9 bits.

【0058】[0058]

【発明が解決しようとする課題】ところで、ディジタル
信号処理技術の進歩とともに、8ビット精度の画像信号
より高精度な画像信号が要求されるようになってきてい
る。即ち、例えば映画フィルムをHDTV(High Defin
ition TV)の信号にテレシネする場合や、医療分野など
で用いられるCTなどにおいては、8ビット精度より高
精度な、例えば10ビット精度などの画像信号が要求さ
れている。
By the way, with the progress of digital signal processing technology, an image signal with higher precision than an image signal with 8-bit precision is required. That is, for example, a movie film is recorded on an HDTV (High Definition
For example, in the case of performing telecine on the signal of the ition TV) or CT used in the medical field and the like, an image signal having higher precision than 8-bit precision, for example, 10-bit precision is required.

【0059】しかしながら、上述したように、いま現在
ある画像符号化装置や画像復号化装置の中枢となるブロ
ックを構成するハードウェアが、8ビット精度の画像信
号が装置に入出力されることを前提として設計されてい
るため、従来からある装置によって、精度が8ビットを
越える画像信号を符号化や復号化することは困難であっ
た。
However, as described above, it is premised that the hardware which constitutes the central block of the existing image coding apparatus or image decoding apparatus inputs / outputs an 8-bit precision image signal to / from the apparatus. Therefore, it has been difficult to encode or decode an image signal whose precision exceeds 8 bits by a conventional device.

【0060】本発明は、このような状況に鑑みてなされ
たものであり、従来からあるハードウェアを利用して高
精度の画像信号を符号化および復号化することができる
ようにするものである。
The present invention has been made in view of such a situation, and makes it possible to encode and decode a high-precision image signal using conventional hardware. .

【0061】[0061]

【課題を解決するための手段】請求項1に記載の画像符
号化方法は、所定のブロックごとに、画像データの代表
値データおよび量子化幅を決定し、画像データと代表値
データの差分を算出し、差分を量子化幅に基づいて量子
化し、第1の量子化データを生成し、第1の量子化デー
タに所定の変換処理を施し、変換係数を生成し、変換係
数を量子化し、第2の量子化データを生成し、代表値デ
ータ、量子化幅、および第2の量子化データを符号化す
ることを特徴とする。
An image coding method according to claim 1 determines representative value data and quantization width of image data for each predetermined block, and calculates a difference between the image data and the representative value data. The difference is calculated, the difference is quantized based on the quantization width, the first quantized data is generated, a predetermined conversion process is performed on the first quantized data, the conversion coefficient is generated, and the conversion coefficient is quantized, It is characterized in that the second quantized data is generated and the representative value data, the quantization width, and the second quantized data are encoded.

【0062】さらに、この画像符号化方法は、隣接する
ブロックにおける画像データの代表値データの差分を、
代表値データとして符号化するようにすることができ
る。
Further, according to this image coding method, the difference between the representative value data of the image data in the adjacent blocks is
It can be encoded as representative value data.

【0063】また、この画像符号化方法は、直前に符号
化されたブロックにおける画像データの量子化幅と、い
ま符号化されたブロックにおける画像データの量子化幅
とが同一であるか否かの比較情報をさらに符号化し、直
前に符号化されたブロックにおける画像データの量子化
幅と、いま符号化されたブロックにおける画像データの
量子化幅とが異なる場合にのみ、いま符号化されたブロ
ックにおける画像データの量子化幅を符号化するように
することができる。
In this image coding method, whether the quantization width of the image data in the block coded immediately before and the quantization width of the image data in the block coded now are the same or not. Only when the quantization width of the image data in the immediately previous encoded block and the quantization width of the image data in the currently encoded block are different from each other, the comparison information is further encoded in the currently encoded block. The quantization width of the image data can be encoded.

【0064】さらに、この画像符号化方法は、代表値デ
ータおよび量子化幅を、ブロックのヘッダに付加するよ
うにすることができる。
Further, in this image coding method, the representative value data and the quantization width can be added to the header of the block.

【0065】また、この画像符号化方法は、代表値デー
タおよび量子化幅を、ブロックより上位のレイヤのヘッ
ダに付加するようにすることができる。
Further, in this image coding method, the representative value data and the quantization width can be added to the header of the layer above the block.

【0066】さらに、この画像符号化方法は、ブロック
のサイズに関するサイズ情報、またはブロックにおける
画像データのビット精度に関する精度情報に基づいて、
量子化幅を決定し、サイズ情報および精度情報をさらに
符号化するようにすることができる。
Furthermore, this image coding method is based on size information about the size of the block or accuracy information about the bit precision of the image data in the block.
The quantization width can be determined so that the size information and the accuracy information can be further encoded.

【0067】また、この画像符号化方法は、ブロックの
サイズに関するサイズ情報に基づいて、代表値データを
決定し、サイズ情報をさらに符号化するようにすること
ができる。
Further, in this image coding method, the representative value data can be determined based on the size information regarding the size of the block, and the size information can be further coded.

【0068】請求項8に記載の画像符号化方法は、所定
の単位領域ごとに、画像データの代表値データおよび量
子化幅を決定し、画像データと代表値データの差分を算
出し、差分を量子化幅に基づいて量子化し、第1の量子
化データを生成し、所定のブロックごとに、第1の量子
化データに所定の変換処理を施し、変換係数を生成し、
変換係数を量子化し、第2の量子化データを生成し、代
表値データ、量子化幅、および第2の量子化データを符
号化することを特徴とする。
According to the image coding method of the eighth aspect, the representative value data and the quantization width of the image data are determined for each predetermined unit area, the difference between the image data and the representative value data is calculated, and the difference is calculated. Quantize based on the quantization width to generate first quantized data, perform predetermined conversion processing on the first quantized data for each predetermined block, generate conversion coefficients,
It is characterized in that the transform coefficient is quantized to generate second quantized data, and the representative value data, the quantized width, and the second quantized data are encoded.

【0069】さらに、この画像符号化方法は、単位領域
と、ブロックの大きさが、整数倍の関係を有するように
することができる。
Further, in this image coding method, the unit area and the block size may have an integral multiple relationship.

【0070】請求項10に記載の画像符号化方法は、所
定のブロックごとに、入力画像と予測画像の差分を算出
し、第1の差分データを生成し、第1の差分データの代
表値データおよび量子化幅を決定し、第1の差分データ
と代表値データの差分を算出し、第2の差分データを生
成し、第2の差分データを量子化幅に基づいて量子化
し、量子化データを生成し、量子化データを量子化幅に
基づいて逆量子化し、逆量子化データを生成し、逆量子
化データと代表値データを加算し、局部復号データを生
成し、局部復号データに基づいて、新たな予測画像を生
成することを特徴とする。
According to the image coding method of the tenth aspect, the difference between the input image and the predicted image is calculated for each predetermined block, the first difference data is generated, and the representative value data of the first difference data is calculated. And the quantization width are determined, the difference between the first difference data and the representative value data is calculated, the second difference data is generated, the second difference data is quantized based on the quantization width, and the quantized data , Dequantize the quantized data based on the quantization width, generate dequantized data, add the dequantized data and the representative value data, generate locally decoded data, and based on the locally decoded data Then, a new predicted image is generated.

【0071】さらに、この画像符号化方法は、局部復号
データと代表値データの差分を算出し、差分を量子化幅
に基づいて量子化し、差分量子化データを生成し、差分
量子化データ、代表値データ、および量子化幅を、例え
ばメモリ部79などの記憶手段に記憶させ、差分量子化
データ、代表値データ、および量子化幅をメモリ部79
から読み出し、新たな予測画像を生成するようにするこ
とができる。
Further, in this image coding method, the difference between the locally decoded data and the representative value data is calculated, the difference is quantized based on the quantization width, and the difference quantized data is generated. The value data and the quantization width are stored in a storage unit such as the memory unit 79, and the difference quantization data, the representative value data, and the quantization width are stored in the memory unit 79.
, And a new predicted image can be generated.

【0072】請求項12に記載の画像符号化装置は、所
定のブロックごとに、画像データの代表値データを決定
する代表値決定手段としてのブロック内代表値計算回路
5と、所定のブロックごとに、画像データの量子化幅を
決定する量子化幅決定手段としてのブロック量子化幅計
算回路6と、画像データと代表値データの差分を算出す
る差分算出手段としての演算器4と、差分を量子化幅に
基づいて量子化し、第1の量子化データを生成する第1
の量子化手段としてのブロック量子化器7と、第1の量
子化データに所定の変換処理を施し、量子化して、第2
の量子化データを生成する第2の量子化手段としての差
分信号符号化器8と、代表値データ、量子化幅、および
第2の量子化データを符号化する符号化手段としてのV
LC回路15とを備えることを特徴とする。
According to the twelfth aspect of the present invention, the image encoding device has a block representative value calculating circuit 5 as a representative value determining means for determining representative value data of image data for each predetermined block, and for each predetermined block. , A block quantization width calculation circuit 6 as a quantization width determination means for determining a quantization width of image data, an arithmetic unit 4 as a difference calculation means for calculating a difference between image data and representative value data, and a difference First quantizing based on the quantization width to generate first quantized data
A block quantizer 7 as a quantizing means for the first quantizer, and a predetermined conversion process on the first quantized data to quantize the first quantized data;
Difference signal encoder 8 as the second quantizing means for generating the quantized data of V, and the representative value data, the quantization width, and V as the encoding means for coding the second quantized data.
And an LC circuit 15.

【0073】請求項13に記載の画像符号化装置は、所
定のブロックごとに、入力画像と予測画像の差分を算出
し、第1の差分データを生成する第1の差分算出手段と
しての演算器3と、所定のブロックごとに、第1の差分
データの代表値データを決定する代表値決定手段として
のブロック内代表値計算回路5と、所定のブロックごと
に、第1の差分データの量子化幅を決定する量子化幅決
定手段としてのブロック量子化幅計算回路6と、第1の
差分データと代表値データの差分を算出し、第2の差分
データを生成する第2の差分算出手段としての演算器4
と、第2の差分データを量子化幅に基づいて量子化し、
量子化データを生成する量子化手段としてのブロック量
子化器7と、量子化データを量子化幅に基づいて逆量子
化し、逆量子化データを生成する逆量子化手段としての
ブロック逆量子化器10と、逆量子化データと代表値デ
ータを加算し、局部復号データを生成する加算手段とし
ての演算器11と、局部復号データに基づいて、新たな
予測画像を生成する予測手段としての演算器12および
動き補償回路14を備えることを特徴とする。
An image coding apparatus according to a thirteenth aspect of the present invention is an arithmetic unit as a first difference calculating means for calculating a difference between an input image and a predicted image for each predetermined block to generate first difference data. 3, an in-block representative value calculation circuit 5 as a representative value determining unit that determines the representative value data of the first difference data for each predetermined block, and the quantization of the first difference data for each predetermined block. A block quantization width calculating circuit 6 as a quantization width determining means for determining a width, and a second difference calculating means for calculating a difference between the first difference data and the representative value data and generating second difference data. Calculator 4
And quantizes the second difference data based on the quantization width,
A block quantizer 7 as a quantizing means for generating quantized data, and a block dequantizer as an inverse quantizing means for dequantizing the quantized data based on a quantization width to generate dequantized data. 10, an arithmetic unit 11 as an addition unit that adds the dequantized data and the representative value data to generate locally decoded data, and an arithmetic unit as a prediction unit that generates a new predicted image based on the locally decoded data. 12 and a motion compensation circuit 14 are provided.

【0074】請求項14に記載の画像復号化方法は、伝
送データから、符号化画像データ、並びに所定のブロッ
クごとに設定された代表値データ、および量子化幅を抽
出し、符号化画像データを逆量子化し、第1の逆量子化
データを生成し、第1の逆量子化データに所定の逆変換
処理を施し、逆変換データを生成し、逆変換データを量
子化幅に基づいて逆量子化し、第2の逆量子化データを
生成し、第2の逆量子化データと代表値データを加算
し、復号画像データを生成することを特徴とする。
According to a fourteenth aspect of the present invention, in the image decoding method, the encoded image data, the representative value data set for each predetermined block, and the quantization width are extracted from the transmission data to obtain the encoded image data. Inverse quantization is performed to generate first inverse quantized data, predetermined inverse transform processing is applied to the first inverse quantized data, inverse transform data is generated, and inverse transform data is inversely quantized based on a quantization width. The second inverse quantized data is generated, the second inverse quantized data is added to the representative value data, and the decoded image data is generated.

【0075】さらに、この画像復号化方法は、代表値デ
ータが、隣接するブロックにおける画像データの代表値
データの差分であるようにすることができる。
Further, in this image decoding method, the representative value data can be the difference between the representative value data of the image data in the adjacent blocks.

【0076】また、この画像復号化方法は、伝送データ
から、直前に復号化されたブロックにおける画像データ
の量子化幅と、いま復号化しようとしているブロックに
おける画像データの量子化幅とが同一であるか否かの比
較情報をさらに抽出し、直前に復号化されたブロックに
おける画像データの量子化幅と、いま復号化しようとし
ているブロックにおける画像データの量子化幅とが同一
である場合、直前に復号化されたブロックにおける画像
データの量子化幅に基づいて、逆変換データを逆量子化
するようにすることができる。
Further, according to this image decoding method, the quantization width of the image data in the block decoded immediately before and the quantization width of the image data in the block to be decoded are the same from the transmission data. If the quantization width of the image data in the block decoded immediately before and the quantization width of the image data in the block that is about to be decoded are the same and the comparison information of whether or not there is any more is extracted, The inverse transform data can be inversely quantized on the basis of the quantization width of the image data in the block that has been decoded into.

【0077】請求項17に記載の画像復号化方法は、伝
送データから、符号化画像データ、並びに所定の単位領
域ごとに設定された代表値データ、および量子化幅を抽
出し、所定のブロックごとに、符号化画像データを逆量
子化し、第1の逆量子化データを生成し、第1の逆量子
化データに所定の逆変換処理を施し、逆変換データを生
成し、所定の単位領域ごとに、逆変換データを量子化幅
に基づいて逆量子化し、第2の逆量子化データを生成
し、第2の逆量子化データと代表値データを加算し、復
号画像データを生成することを特徴とする。
According to a seventeenth aspect of the present invention, in the image decoding method, the encoded image data, the representative value data set for each predetermined unit area, and the quantization width are extracted from the transmission data, and each predetermined block is extracted. , Inversely quantize the encoded image data to generate first inverse quantized data, perform predetermined inverse transform processing on the first inverse quantized data, generate inverse transformed data, Then, the inverse transformed data is inversely quantized based on the quantization width to generate the second inverse quantized data, and the second inverse quantized data and the representative value data are added to generate the decoded image data. Characterize.

【0078】さらに、この画像復号化方法は、単位領域
と、ブロックの大きさが、整数倍の関係を有するように
することができる。
Further, in this image decoding method, the unit area and the size of the block may have an integral multiple relationship.

【0079】請求項19に記載の画像復号化方法は、予
測画像に基づいて、画像を復号する画像復号化方法にお
いて、伝送データから、符号化画像データ、並びに所定
のブロックごとに設定された代表値データ、および量子
化幅を抽出し、符号化画像データを、量子化幅に基づい
て逆量子化し、逆量子化データを生成し、逆量子化デー
タと代表値データを加算し、復号差分データを生成し、
復号差分データと予測画像を加算し、復号画像データを
生成することを特徴とする。
An image decoding method according to a nineteenth aspect is an image decoding method for decoding an image based on a predicted image, and is a representative set from transmission data to encoded image data and predetermined blocks. Value data and quantization width are extracted, coded image data is inversely quantized based on the quantization width, inversely quantized data is generated, inversely quantized data and representative value data are added, and decoded difference data Produces
It is characterized in that the decoded difference data and the predicted image are added to generate the decoded image data.

【0080】さらに、この画像復号化方法は、復号画像
データと代表値データとの差分を算出し、差分を量子化
幅に基づいて量子化し、復号量子化データを生成し、復
号量子化データ、代表値データ、および量子化幅を、例
えばメモリ部106などの記憶手段に記憶させ、復号量
子化データ、代表値データ、および量子化幅をメモリ部
106から読み出し、予測画像を生成するようにするこ
とができる。
Furthermore, this image decoding method calculates the difference between the decoded image data and the representative value data, quantizes the difference based on the quantization width, generates decoded quantized data, and decodes the quantized quantized data. The representative value data and the quantization width are stored in a storage unit such as the memory unit 106, and the decoded quantized data, the representative value data, and the quantization width are read from the memory unit 106 to generate a predicted image. be able to.

【0081】請求項21に記載の画像復号化装置は、伝
送データから、符号化画像データ、並びに所定のブロッ
クごとに設定された代表値データ、および量子化幅を抽
出する抽出手段としての逆VLC回路21と、符号化画
像データを逆量子化し、第1の逆量子化データを生成し
た後、第1の逆量子化データに所定の逆変換処理を施
し、逆変換データを生成する第1の逆量子化手段として
の差分信号復号化器22と、逆変換データを量子化幅に
基づいて逆量子化し、第2の逆量子化データを生成する
第2の逆量子化手段としてのブロック逆量子化器23
と、第2の逆量子化データと代表値データを加算し、復
号画像データを生成する加算手段としての演算器24と
を備えることを特徴とする。
An image decoding apparatus according to a twenty-first aspect of the invention is an inverse VLC as an extracting means for extracting encoded image data, representative value data set for each predetermined block, and quantization width from transmission data. The circuit 21 and the first dequantized data are dequantized to generate the first dequantized data, and then the first dequantized data is subjected to a predetermined deconversion processing to generate deconversion data. A differential signal decoder 22 as an inverse quantizer, and a block inverse quantizer as a second inverse quantizer that inversely quantizes the inverse transform data based on the quantization width to generate second inverse quantized data. Chemicalizer 23
And the second dequantized data and the representative value data are added to each other, and an arithmetic unit 24 as an addition means for generating decoded image data is provided.

【0082】請求項22に記載の画像復号化装置は、予
測画像に基づいて、画像を復号する画像復号化装置にお
いて、伝送データから、符号化画像データ、並びに所定
のブロックごとに設定された代表値データ、および量子
化幅を抽出する抽出手段としての逆VLC回路21と、
符号化画像データを、量子化幅に基づいて逆量子化し、
逆量子化データする逆量子化手段としてのブロック逆量
子化器23と、逆量子化データと代表値データを加算
し、復号差分データを生成する第1の加算手段としての
演算器24と、復号差分データと予測画像を加算し、復
号画像データを生成する第2の加算手段としての演算器
25とを備えることを特徴とする。
An image decoding apparatus according to a twenty-second aspect is an image decoding apparatus which decodes an image based on a predicted image, and is a representative set from transmission data to encoded image data and predetermined blocks. An inverse VLC circuit 21 as an extracting means for extracting the value data and the quantization width,
Decode the encoded image data based on the quantization width,
A block dequantizer 23 as dequantization means for dequantized data, an arithmetic unit 24 as first addition means for adding dequantized data and representative value data to generate decoding difference data, and decoding An arithmetic unit 25 as a second addition means for adding the difference data and the predicted image to generate the decoded image data is provided.

【0083】請求項23に記載の画像復号化装置は、伝
送データから、符号化された画像データおよび画像デー
タのビット精度に関する精度情報を抽出する抽出手段と
しての逆VLC回路21と、精度情報に基づいて、符号
化された画像データが復号可能か否かを判定する判定手
段としてのビット精度判定回路61と、符号化された画
像データが復号不能である場合、符号化された画像デー
タが復号不能であることを知らせる報知手段としての表
示制御回路62とを備えることを特徴とする。
An image decoding apparatus according to a twenty-third aspect of the present invention comprises an inverse VLC circuit 21 as an extraction means for extracting coded image data and accuracy information regarding bit accuracy of the image data from transmission data, and the accuracy information. On the basis of the bit accuracy determination circuit 61 as a determination means for determining whether or not the encoded image data is decodable, if the encoded image data is undecodable, the encoded image data is decoded. The display control circuit 62 is provided as a notification means for notifying that the display is impossible.

【0084】請求項24に記載の画像復号化装置は、伝
送データから、符号化された画像データ、画像データの
ビット精度に関する精度情報、並びに所定のブロックご
とに設定された代表値データ、および量子化幅を抽出す
る抽出手段としての逆VLC回路21と、符号化された
画像データを逆量子化し、第1の逆量子化データを生成
した後、第1の逆量子化データに所定の逆変換処理を施
し、逆変換データを生成する第1の逆量子化手段として
の差分信号復号化器22と、逆変換データを量子化幅に
基づいて逆量子化し、第2の逆量子化データを生成する
第2の逆量子化手段としてのブロック逆量子化器23
と、第2の逆量子化データと代表値データを加算し、第
1の復号画像データを生成する加算手段としてのブロッ
ク内代表値加算器41と、第1の復号画像データを、精
度情報に基づいて量子化し、第2の復号画像データを生
成する量子化手段としてのブロック量子化器51とを備
えることを特徴とする。
According to a twenty-fourth aspect of the present invention, in an image decoding device, encoded image data, accuracy information regarding bit precision of image data, representative value data set for each predetermined block, and quantum data are transmitted. An inverse VLC circuit 21 as an extracting means for extracting the quantization width, and inverse quantization of the encoded image data to generate first inverse quantized data, and then a predetermined inverse conversion to the first inverse quantized data. A differential signal decoder 22 as first dequantization means for performing processing to generate detransformed data, and dequantization of the detransformed data based on a quantization width to generate second dequantized data. Block dequantizer 23 as second dequantization means
, The second dequantized data and the representative value data are added to generate the first decoded image data, and the intra-block representative value adder 41 as an adding means, and the first decoded image data are used as accuracy information. And a block quantizer 51 as a quantizing means for generating second decoded image data based on the quantization.

【0085】請求項25に記載の画像記録媒体は、所定
のブロックごとに、画像データの代表値データおよび量
子化幅を決定し、画像データと代表値データの差分を算
出し、差分を量子化幅に基づいて量子化し、第1の量子
化データを生成し、第1の量子化データに所定の変換処
理を施し、変換係数を生成し、変換係数を量子化し、第
2の量子化データを生成し、代表値データ、量子化幅、
および第2の量子化データを符号化することにより生成
されたビットストリームが記録されていることを特徴と
する。
In the image recording medium according to the twenty-fifth aspect, the representative value data and the quantization width of the image data are determined for each predetermined block, the difference between the image data and the representative value data is calculated, and the difference is quantized. Quantize based on the width to generate first quantized data, perform a predetermined conversion process on the first quantized data, generate a transform coefficient, quantize the transform coefficient, and generate the second quantized data. Generate, representative value data, quantization width,
And a bitstream generated by encoding the second quantized data is recorded.

【0086】[0086]

【作用】請求項1に記載の画像符号化方法、並びに請求
項12に記載の画像符号化装置においては、所定のブロ
ックごとに、画像データの代表値データおよび量子化幅
を決定し、画像データと代表値データの差分を算出し
て、差分を量子化幅に基づいて量子化し、第1の量子化
データを生成する。そして、第1の量子化データに所定
の変換処理を施し、その変換係数を量子化して、第2の
量子化データを生成し、代表値データ、量子化幅、およ
び第2の量子化データを符号化する。従って、画像を、
そのビット精度を変換して符号化することができる。
In the image coding method according to claim 1 and the image coding apparatus according to claim 12, the representative value data and the quantization width of the image data are determined for each predetermined block, and the image data And the difference between the representative value data is calculated, and the difference is quantized based on the quantization width to generate first quantized data. Then, the first quantized data is subjected to a predetermined conversion process, the transform coefficient is quantized to generate second quantized data, and the representative value data, the quantized width, and the second quantized data are obtained. Encode. Therefore, the image
The bit precision can be converted and encoded.

【0087】請求項8に記載の画像符号化方法において
は、所定の単位領域ごとに、画像データの代表値データ
および量子化幅を決定し、画像データと代表値データの
差分を算出して、差分を量子化幅に基づいて量子化し、
第1の量子化データを生成する。そして、所定のブロッ
クごとに、第1の量子化データに所定の変換処理を施
し、その変換係数を量子化して、第2の量子化データを
生成し、代表値データ、量子化幅、および第2の量子化
データを符号化する。従って、画像の複雑さに対応し
て、代表値データと量子化幅を、所定の単位領域ごとに
変化させることができるので、画像の画質の劣化を防止
することができる。
In the image coding method according to the eighth aspect, the representative value data and the quantization width of the image data are determined for each predetermined unit area, and the difference between the image data and the representative value data is calculated, Quantize the difference based on the quantization width,
First quantized data is generated. Then, for each predetermined block, a predetermined conversion process is performed on the first quantized data, the conversion coefficient is quantized to generate second quantized data, and the representative value data, the quantization width, and the The quantized data of 2 is encoded. Therefore, since the representative value data and the quantization width can be changed for each predetermined unit area according to the complexity of the image, the deterioration of the image quality of the image can be prevented.

【0088】請求項10に記載の画像符号化方法、並び
に請求項13に記載の画像符号化装置においては、所定
のブロックごとに、入力画像と予測画像の差分を算出
し、第1の差分データを生成して、第1の差分データの
代表値データおよび量子化幅を決定する。そして、第1
の差分データと代表値データの差分を算出し、第2の差
分データを生成して、第2の差分データを量子化幅に基
づいて量子化し、量子化データを生成する。さらに、量
子化データを量子化幅に基づいて逆量子化し、逆量子化
データを生成して、逆量子化データと代表値データを加
算し、局部復号データを生成した後、局部復号データに
基づいて、新たな予測画像を生成する。従って、画像
を、そのビット精度を変換して効率良く符号化すること
ができる。
In the image coding method according to the tenth aspect and the image coding apparatus according to the thirteenth aspect, the difference between the input image and the predicted image is calculated for each predetermined block, and the first difference data is calculated. Is generated to determine the representative value data and the quantization width of the first difference data. And the first
The difference between the difference data and the representative value data is calculated, the second difference data is generated, the second difference data is quantized based on the quantization width, and the quantized data is generated. Further, the quantized data is inversely quantized based on the quantization width, the inverse quantized data is generated, the inverse quantized data and the representative value data are added, the locally decoded data is generated, and then the locally decoded data is generated. To generate a new predicted image. Therefore, the bit precision of the image can be converted and the image can be efficiently encoded.

【0089】請求項14に記載の画像復号化方法、並び
に請求項21に記載の画像復号化装置においては、伝送
データから、符号化画像データ、並びに所定のブロック
ごとに設定された代表値データ、および量子化幅を抽出
し、符号化画像データを逆量子化して、第1の逆量子化
データを生成する。そして、第1の逆量子化データに所
定の逆変換処理を施し、その逆変換データを量子化幅に
基づいて逆量子化して、第2の逆量子化データを生成
し、第2の逆量子化データと代表値データを加算して、
復号画像データを生成する。従って、ビット精度が変換
された画像信号を復号することができる。
According to the image decoding method of the fourteenth aspect and the image decoding apparatus of the twenty-first aspect, the transmission data, the encoded image data, and the representative value data set for each predetermined block, And the quantization width are extracted, and the encoded image data is inversely quantized to generate the first inverse quantized data. Then, a predetermined inverse transform process is performed on the first inverse quantized data, the inverse transformed data is inversely quantized based on the quantization width, and second inverse quantized data is generated. Data and representative value data,
Generates decoded image data. Therefore, the image signal whose bit precision has been converted can be decoded.

【0090】請求項17に記載の画像復号化方法におい
ては、伝送データから、符号化画像データ、並びに所定
の単位領域ごとに設定された代表値データ、および量子
化幅を抽出し、所定のブロックごとに、符号化画像デー
タを逆量子化して、第1の逆量子化データを生成する。
そして、第1の逆量子化データに所定の逆変換処理を施
し、所定の単位領域ごとに、その逆変換データを量子化
幅に基づいて逆量子化して、第2の逆量子化データを生
成し、第2の逆量子化データと代表値データを加算し
て、復号画像データを生成する。従って、画像の複雑さ
に対応して、代表値データと量子化幅を、所定の単位領
域ごとに変化させて符号化した画像を復号することがで
きる。
In the image decoding method according to the seventeenth aspect, the encoded image data, the representative value data set for each predetermined unit area, and the quantization width are extracted from the transmission data to obtain a predetermined block. Each time, the encoded image data is dequantized to generate the first dequantized data.
Then, the first inverse quantized data is subjected to predetermined inverse transform processing, and the inverse transformed data is inverse quantized for each predetermined unit area based on the quantization width to generate second inverse quantized data. Then, the second dequantized data and the representative value data are added to generate decoded image data. Therefore, it is possible to decode the encoded image by changing the representative value data and the quantization width for each predetermined unit area according to the complexity of the image.

【0091】請求項19に記載の画像復号化方法、並び
に請求項22に記載の画像復号化装置においては、伝送
データから、符号化画像データ、並びに所定のブロック
ごとに設定された代表値データ、および量子化幅を抽出
し、符号化画像データを、量子化幅に基づいて逆量子化
して、逆量子化データを生成し、逆量子化データと代表
値データを加算して、復号差分データを生成する。そし
て、復号差分データと予測画像を加算し、復号画像デー
タを生成する。従って、効率良く符号化された、ビット
精度の異なる画像信号を復号することができる。
According to the image decoding method of the nineteenth aspect and the image decoding apparatus of the twenty-second aspect, from the transmission data to the encoded image data, and the representative value data set for each predetermined block, And the quantization width are extracted, the encoded image data is inversely quantized based on the quantization width, the inverse quantized data is generated, the inverse quantized data and the representative value data are added, and the decoded difference data is obtained. To generate. Then, the decoded difference data and the predicted image are added to generate decoded image data. Therefore, it is possible to efficiently decode image signals that are encoded and have different bit precisions.

【0092】請求項23に記載の画像復号化装置におい
ては、伝送データから、符号化された画像データおよび
画像データのビット精度に関する精度情報を抽出し、そ
の精度情報に基づいて、符号化された画像データが復号
可能か否かを判定する。そして、符号化された画像デー
タが復号不能である場合、符号化された画像データが復
号不能であることを知らせる。従って、装置が、入力さ
れたデータのビット精度に対応していないことを、使用
者に知らせることができる。
In the image decoding apparatus according to the twenty-third aspect, the encoded image data and the accuracy information regarding the bit accuracy of the image data are extracted from the transmission data, and encoded based on the accuracy information. It is determined whether the image data can be decoded. Then, if the encoded image data is undecodable, the fact that the encoded image data is undecodable is notified. Therefore, it is possible to inform the user that the device does not support the bit precision of the input data.

【0093】請求項24に記載の画像復号化装置におい
ては、伝送データから、符号化された画像データ、画像
データのビット精度に関する精度情報、並びに所定のブ
ロックごとに設定された代表値データ、および量子化幅
を抽出し、符号化された画像データを逆量子化して、第
1の逆量子化データを生成した後、第1の逆量子化デー
タに所定の逆変換処理を施し、逆変換データを生成す
る。そして、逆変換データを量子化幅に基づいて逆量子
化し、第2の逆量子化データを生成して、第2の逆量子
化データと代表値データを加算し、第1の復号画像デー
タを生成する。さらに、第1の復号画像データを、精度
情報に基づいて量子化し、第2の復号画像データを生成
する。従って、任意のビット精度の画像信号を得ること
ができる。
In the image decoding apparatus according to the twenty-fourth aspect, from the transmission data, the encoded image data, accuracy information regarding the bit accuracy of the image data, representative value data set for each predetermined block, and After the quantization width is extracted, the encoded image data is inversely quantized to generate the first inverse quantized data, the first inverse quantized data is subjected to a predetermined inverse transform process, and the inverse transformed data is obtained. To generate. Then, the inversely transformed data is inversely quantized based on the quantization width to generate second inversely quantized data, the second inversely quantized data and the representative value data are added, and the first decoded image data is obtained. To generate. Further, the first decoded image data is quantized based on the accuracy information to generate the second decoded image data. Therefore, an image signal with arbitrary bit precision can be obtained.

【0094】請求項25に記載の画像記録媒体において
は、所定のブロックごとに、画像データの代表値データ
および量子化幅を決定し、画像データと代表値データの
差分を算出し、差分を量子化幅に基づいて量子化し、第
1の量子化データを生成し、第1の量子化データに所定
の変換処理を施し、変換係数を生成し、変換係数を量子
化し、第2の量子化データを生成し、代表値データ、量
子化幅、および第2の量子化データを符号化することに
より生成されたビットストリームが記録される。従っ
て、任意のビット精度の画像信号を記録することができ
る。
In the image recording medium according to the twenty-fifth aspect, the representative value data and the quantization width of the image data are determined for each predetermined block, the difference between the image data and the representative value data is calculated, and the difference is quantized. Quantization is performed based on the quantization width to generate first quantized data, the first quantized data is subjected to predetermined conversion processing, conversion coefficients are generated, the conversion coefficient is quantized, and second quantized data is generated. Is generated and the representative value data, the quantization width, and the second quantization data are encoded, and the bit stream generated by the encoding is recorded. Therefore, it is possible to record an image signal with arbitrary bit precision.

【0095】[0095]

【実施例】図1は、本発明の画像符号化装置の一実施例
の構成を示すブロック図である。図中、図20における
場合と対応する部分については、同一の符号を付してあ
る。ここでは、ビット精度が8ビット精度より高精度
な、例えば10ビット精度の画像データが装置に入力さ
れるものとして、その説明をする。
1 is a block diagram showing the configuration of an embodiment of an image coding apparatus according to the present invention. In the figure, parts corresponding to those in FIG. 20 are designated by the same reference numerals. Here, description will be made assuming that image data having a bit precision higher than 8-bit precision, for example, 10-bit precision is input to the apparatus.

【0096】フィールドメモリ群1は、10ビット精度
の画像データを記憶することができるようになされてお
り、例えば16×16画素などのブロックに分割された
ディジタル画像データ(画像の画素データ)を一時記憶
し、フィールドメモリコントローラ16により入力画像
の同期信号に対応して生成されたタイミング制御信号に
基づいて、演算器3に10ビット精度の画像データのブ
ロックを出力する。
The field memory group 1 is adapted to store image data of 10-bit precision, and temporarily stores digital image data (image pixel data) divided into blocks of 16 × 16 pixels, for example. A block of 10-bit precision image data is stored in the storage unit 3 and is output to the arithmetic unit 3 based on the timing control signal generated by the field memory controller 16 in response to the input image synchronization signal.

【0097】動き予測回路2は、前述したようにして、
フィールドメモリ群1に記憶された参照画像としての画
像データのブロックに対する動き補償モード(画像内予
測モード、または前方予測、後方予測もしくは両方向予
測モードのいずれか)を設定し、設定した動き補償モー
ドに対応する予測画像と参照画像の間の動きベクトルを
検出して、動き補償回路14とVLC回路15に出力す
る。さらに、動き予測回路2は、動き補償モードを動き
補償回路14およびVLC回路15の他、動き補償回路
14を介してブロック内代表値計算回路5およびブロッ
ク量子化幅計算回路6に供給する。
The motion prediction circuit 2 operates as described above.
A motion compensation mode (intra-picture prediction mode, forward prediction, backward prediction, or bidirectional prediction mode) is set for a block of image data as a reference image stored in the field memory group 1, and the set motion compensation mode is set. A motion vector between the corresponding predicted image and reference image is detected and output to the motion compensation circuit 14 and the VLC circuit 15. Further, the motion prediction circuit 2 supplies the motion compensation mode to the intra-block representative value calculation circuit 5 and the block quantization width calculation circuit 6 via the motion compensation circuit 14 and the VLC circuit 15 as well.

【0098】なお、図1における動き予測回路2は、図
20における場合と同様に構成されているものであり、
従って、動き予測回路2には8ビット精度の画像データ
を入力することができるように構成されているので、フ
ィールドメモリ群1からの接続線をすべて接続すること
ができない。
The motion prediction circuit 2 in FIG. 1 has the same configuration as that in FIG.
Therefore, since the motion prediction circuit 2 is configured to be able to input 8-bit image data, it is not possible to connect all the connection lines from the field memory group 1.

【0099】そこで、動き予測回路2には、フィールド
メモリ群1からの10ビット精度の画像データに対応す
る接続線のうち、下位2ビットの接続線を除く接続線が
接続されている。
Therefore, the motion predicting circuit 2 is connected to the connection lines corresponding to the image data of 10-bit precision from the field memory group 1 except the lower 2-bit connection line.

【0100】即ち、動き予測回路2には、10ビット精
度の画像データの、下位2ビットを切り捨てた8ビット
精度の画像データが入力されるようになされている。
That is, the motion predicting circuit 2 is adapted to receive 8-bit precision image data in which lower-order 2 bits of 10-bit precision image data are truncated.

【0101】フィールドメモリ群1に記憶された参照画
像としての10ビット精度の画像データのブロックが、
そこから読み出され、演算器3に供給されると、さらに
演算器3に、動き予測回路2で設定された動き補償モー
ドに対応する予測画像が、フィールドメモリ群13を介
して動き補償回路14より供給される。
A block of 10-bit precision image data as a reference image stored in the field memory group 1 is
When it is read from there and supplied to the arithmetic unit 3, a predicted image corresponding to the motion compensation mode set in the motion estimation circuit 2 is further supplied to the arithmetic unit 3 via the field memory group 13. Supplied by.

【0102】演算器3において、前述したようにして、
動き補償モードに対応する演算処理が行われ(動き補償
モードが画像内予測モードである場合には、フィールド
メモリ群1からの10ビット精度の画像データのブロッ
クがそのまま出力され、動き補償モードが画像間予測モ
ード(前方予測、後方予測もしくは両方向予測モードの
いずれか)である場合には、フィールドメモリ群1から
の10ビット精度の画像データのブロックと、動き補償
回路14からの予測画像との差分(予測誤差)が算出さ
れ)、10ビット精度の演算出力が演算器4、ブロック
内代表値計算回路5、およびブロック量子化幅計算回路
5に供給される。
In the arithmetic unit 3, as described above,
A calculation process corresponding to the motion compensation mode is performed (when the motion compensation mode is the intra-picture prediction mode, the block of 10-bit precision image data from the field memory group 1 is output as it is, and the motion compensation mode is the image. In the case of the inter prediction mode (either forward prediction, backward prediction, or bidirectional prediction mode), the difference between the block of 10-bit precision image data from the field memory group 1 and the predicted image from the motion compensation circuit 14 (Prediction error) is calculated), and an arithmetic output with 10-bit precision is supplied to the arithmetic unit 4, the in-block representative value calculation circuit 5, and the block quantization width calculation circuit 5.

【0103】ブロック内代表値計算回路(以下、代表値
計算回路と記載する)5は、動き補償回路4を介して動
き予測回路2より供給された動き補償モードに対応し
て、演算器3の演算出力の代表値データを、後述するよ
うにして算出して出力する。ブロック量子化幅計算回路
(以下、量子化幅計算回路と記載する)6は、動き補償
回路4を介して動き予測回路2より供給された動き補償
モードに対応して、演算器3の演算出力を、ブロック量
子化器7で量子化する量子化幅Qを、後述するようにし
て算出し、ブロック量子化器7およびブロック逆量子化
器10に出力する。
The in-block representative value calculation circuit (hereinafter, referred to as a representative value calculation circuit) 5 corresponds to the motion compensation mode supplied from the motion prediction circuit 2 via the motion compensation circuit 4 and corresponds to the motion compensation mode. The representative value data of the arithmetic output is calculated and output as described later. The block quantization width calculation circuit (hereinafter, referred to as a quantization width calculation circuit) 6 outputs the calculation output of the calculator 3 in response to the motion compensation mode supplied from the motion prediction circuit 2 via the motion compensation circuit 4. Is calculated by the block quantizer 7 as will be described later, and is output to the block quantizer 7 and the block dequantizer 10.

【0104】ここで、本明細書中においては、量子化幅
計算回路6により決定される量子化幅と、差分信号符号
化器8、差分信号復号化器9、および22(図4)にお
ける量子化幅をそれぞれを量子化幅Q,Sと記載して区
別する。
Here, in the present specification, the quantization width determined by the quantization width calculation circuit 6 and the quantization in the differential signal encoder 8, the differential signal decoder 9 and 22 (FIG. 4). The quantization widths are described as quantization widths Q and S to distinguish them.

【0105】演算器3の演算出力は、演算器4において
代表値計算回路5より出力された代表値データとの差分
がとられ、ブロック量子化器7に出力される。ブロック
量子化器7において、演算器4の演算出力が量子化幅Q
で量子化され、即ち量子化幅Qで除算され、差分信号符
号化器8に出力される。
The arithmetic output of the arithmetic unit 3 is subtracted from the representative value data output from the representative value calculation circuit 5 in the arithmetic unit 4, and is output to the block quantizer 7. In the block quantizer 7, the operation output of the operator 4 is the quantization width Q.
Is quantized by, that is, divided by the quantization width Q, and output to the differential signal encoder 8.

【0106】差分信号符号化器8は、図示していない
が、図20における場合と同様にDCT回路111およ
び量子化器112より構成され、そこでは、ブロック量
子化器7からの量子化データが、VLC回路15の後段
に設けられた図示せぬ送信バッファの蓄積量に対応する
量子化幅Sで量子化され、DCT処理される。
Although not shown, the differential signal encoder 8 is composed of a DCT circuit 111 and a quantizer 112 as in the case of FIG. 20, in which the quantized data from the block quantizer 7 is sent. , VLC circuit 15 is quantized with a quantization width S corresponding to the storage amount of a transmission buffer (not shown) provided in the subsequent stage, and DCT processing is performed.

【0107】ここで、前述したように、差分信号符号化
器8のDCT回路111には、8ビット精度の画像デー
タ、即ち動き補償モードが画像内予測モードの場合、0
乃至255の8ビットで表すことのできる画像データ
を、動き補償モードが画像間予測モード(前方予測、後
方予測もしくは両方向予測モードのいずれか)の場合、
8ビットに符号ビットを加えた−255乃至255の9
ビットで表すことのできる画像データを入力する必要が
ある。
Here, as described above, the DCT circuit 111 of the differential signal encoder 8 outputs 0 when 8-bit precision image data, that is, the motion compensation mode is the intra-picture prediction mode.
If the motion compensation mode is the inter-picture prediction mode (either forward prediction, backward prediction or bidirectional prediction mode),
8 bits plus sign bit -255 to 255 9
It is necessary to input image data that can be represented by bits.

【0108】つまり、装置に入力された画像データのブ
ロックのビット精度を10ビット精度から8ビット精度
に変換して、差分信号符号化器8に入力する必要があ
る。
That is, it is necessary to convert the bit precision of the block of the image data input to the apparatus from 10-bit precision to 8-bit precision and input it to the differential signal encoder 8.

【0109】そこで、動き補償モードが画像内予測モー
ドである場合、代表値計算回路5においては、演算器3
の演算出力(この場合、フィールドメモリ群1からの1
0ビット精度の画像データのブロック)の最大値および
最小値が検出され、そのうちの、例えば最小値が、演算
器3から出力された10ビット精度の画像データのブロ
ックの代表値データとされて演算器4および11に出力
される。
Therefore, when the motion compensation mode is the intra-picture prediction mode, in the representative value calculation circuit 5, the arithmetic unit 3
Operation output (in this case, 1 from the field memory group 1)
The maximum value and the minimum value of a block of 0-bit precision image data) are detected, and for example, the minimum value is calculated as the representative value data of the block of 10-bit precision image data output from the calculator 3. It is output to the containers 4 and 11.

【0110】なお、この場合、ブロックの代表値データ
は、ブロックの最小値でなくとも良い。但し、動き補償
モードが画像内予測モードである場合においては、画像
データを0乃至255の8ビットで表す必要があるの
で、ブロックの代表値データを、ブロックの最小値とし
たときが、後述するブロックのダイナミックレンジを最
も大きくとれるようになる。
In this case, the representative value data of the block may not be the minimum value of the block. However, when the motion compensation mode is the intra-picture prediction mode, since the image data needs to be represented by 8 bits of 0 to 255, the case where the representative value data of the block is the minimum value of the block will be described later. You will be able to maximize the dynamic range of the block.

【0111】そして、演算器4において、演算器3から
出力された10ビット精度の画像データのブロック(ブ
ロックにおける画素データそれぞれ)と、代表値計算回
路5から出力されたブロックの代表値データ、即ちブロ
ックの最小値との差分がとられ、ブロック量子化器7に
出力される。
Then, in the arithmetic unit 4, the block of the image data of 10-bit precision output from the arithmetic unit 3 (each pixel data in the block) and the representative value data of the block output from the representative value calculation circuit 5, that is, The difference from the minimum value of the block is calculated and output to the block quantizer 7.

【0112】従って、この場合、ブロック量子化器7に
は、0を最小値とする画像データのブロックがブロック
量子化器7に出力されることになる。
Therefore, in this case, the block quantizer 7 outputs a block of image data having a minimum value of 0 to the block quantizer 7.

【0113】即ち、動き補償モードが画像内予測モード
である場合、例えば図2(a)に示すように、演算器3
から出力された10ビット精度の画像データのブロック
の最大値または最小値が、それぞれ500または300
であれば、その画像データのブロックから代表値データ
としての最小値300を減算した0(=300−30
0)乃至200(=500−300)の範囲の値を有す
る画像データのブロックが演算器4からブロック量子化
器7に出力され、また例えば図3(a)に示すように、
演算器3から出力された10ビット精度の画像データの
ブロックの最大値または最小値が、それぞれ1000ま
たは300であれば、その画像データのブロックから代
表値データとしての最小値300減算した0(=300
−300)乃至700(=1000−300)の範囲の
値を有する画像データのブロックが演算器4からブロッ
ク量子化器7に出力されることになる。
That is, when the motion compensation mode is the intra-picture prediction mode, for example, as shown in FIG.
The maximum value or the minimum value of the block of 10-bit precision image data output from is 500 or 300, respectively.
If so, 0 (= 300−30) obtained by subtracting the minimum value 300 as the representative value data from the block of the image data
A block of image data having a value in the range of 0) to 200 (= 500-300) is output from the calculator 4 to the block quantizer 7, and, for example, as shown in FIG.
If the maximum value or the minimum value of the block of 10-bit precision image data output from the computing unit 3 is 1000 or 300, respectively, the minimum value 300 as the representative value data is subtracted from the block of the image data, 0 (= 300
A block of image data having a value in the range of −300) to 700 (= 1000−300) is output from the calculator 4 to the block quantizer 7.

【0114】同時に、この場合、量子化幅計算回路6に
おいて、演算器3の演算出力(この場合、フィールドメ
モリ群1からの10ビット精度の画像データのブロッ
ク)の最大値および最小値が検出され、その差としての
ダイナミックレンジが算出される。
At the same time, in this case, the quantization width calculation circuit 6 detects the maximum value and the minimum value of the arithmetic output of the arithmetic unit 3 (in this case, a block of 10-bit precision image data from the field memory group 1). , The dynamic range as the difference is calculated.

【0115】ここで、本明細書中においては、信号のダ
イナミックレンジとは、その信号の最大値と最小値の差
を意味するものとする。
Here, in this specification, the dynamic range of a signal means the difference between the maximum value and the minimum value of the signal.

【0116】そして、量子化幅計算回路6において、フ
ィールドメモリ群1からの10ビット精度の画像データ
のブロックのダイナミックレンジが、0乃至255の範
囲で表すことのできる8ビット以内であるか否かが判定
され、そのダイナミックレンジが8ビット以内であると
判定された場合、量子化幅Qが1に決定され、ブロック
量子化器7に出力される。
Then, in the quantization width calculation circuit 6, whether the dynamic range of the block of 10-bit precision image data from the field memory group 1 is within 8 bits which can be represented by the range of 0 to 255. Is determined and the dynamic range is determined to be within 8 bits, the quantization width Q is determined to be 1 and output to the block quantizer 7.

【0117】従って、動き補償モードが画像内予測モー
ドである場合、演算器3から出力された10ビット精度
の画像データのブロックのダイナミックレンジが8ビッ
ト以内であれば(例えば、図2(a))、ブロック量子
化器7からは、演算器4からの画像データがそのまま差
分信号符号化器8に出力されることになる。
Therefore, when the motion compensation mode is the intra-picture prediction mode, if the dynamic range of the block of 10-bit precision image data output from the calculator 3 is within 8 bits (for example, FIG. 2A). ), The image data from the arithmetic unit 4 is output from the block quantizer 7 to the difference signal encoder 8 as it is.

【0118】つまり、動き補償モードが画像内予測モー
ドである場合、演算器3から出力された10ビット精度
の画像データのブロックのダイナミックレンジが8ビッ
ト以内であるとき、演算器3から出力された画像データ
のブロックのビット精度は実質的に8ビットであり、こ
の8ビット精度の画像データのブロックが差分信号符号
化器8に出力されることになる。
That is, when the motion compensation mode is the intra-picture prediction mode, when the dynamic range of the block of the image data of 10-bit precision output from the arithmetic unit 3 is within 8 bits, it is output from the arithmetic unit 3. The bit precision of the block of image data is substantially 8 bits, and this block of image data of 8-bit precision is output to the differential signal encoder 8.

【0119】さらに、動き補償モードが画像内予測モー
ドである場合、量子化幅計算回路6において、フィール
ドメモリ群1からの10ビット精度の画像データのブロ
ックのダイナミックレンジが、8ビットを越える(25
6以上である)と判定されたとき、ブロック量子化器7
の量子化出力のダイナミックレンジが8ビット(25
5)以内になるように量子化幅Qが決定され、ブロック
量子化器7に出力される。
Further, when the motion compensation mode is the intra-picture prediction mode, in the quantization width calculation circuit 6, the dynamic range of the block of 10-bit precision image data from the field memory group 1 exceeds 8 bits (25
6 or more), the block quantizer 7
Dynamic range of quantized output of 8 bits (25
The quantization width Q is determined so that it falls within 5) and is output to the block quantizer 7.

【0120】即ち、フィールドメモリ群1からの10ビ
ット精度の画像データのブロックのダイナミックレンジ
が、例えば256以上512未満である場合、量子化幅
Qは2に決定される。さらに、そのダイナミックレンジ
が、例えば512以上768未満である場合、量子化幅
Qは3に決定され、またダイナミックレンジが、例えば
768以上1024未満である場合、量子化幅Qは4に
決定される。
That is, when the dynamic range of the block of 10-bit precision image data from the field memory group 1 is, for example, 256 or more and less than 512, the quantization width Q is determined to be 2. Further, when the dynamic range is, for example, 512 or more and less than 768, the quantization width Q is determined to be 3, and when the dynamic range is, for example, 768 or more and less than 1024, the quantization width Q is determined to be 4. .

【0121】従って、動き補償モードが画像内予測モー
ドである場合、フィールドメモリ群1からの10ビット
精度の画像データのブロックのダイナミックレンジが、
例えば図3(a)に示すように700(=1000−3
00)であるとき、そのブロックが、ブロック量子化器
7において量子化幅3で量子化され(3で除算され)、
ダイナミックレンジが8ビット以内(この場合、233
(=700/3、但し小数点以下切り捨て))にされ
る。
Therefore, when the motion compensation mode is the intra-picture prediction mode, the dynamic range of the block of 10-bit precision image data from the field memory group 1 becomes
For example, as shown in FIG. 3A, 700 (= 1000-3
00), the block is quantized in the block quantizer 7 with a quantization width of 3 (divided by 3),
Dynamic range is within 8 bits (in this case, 233
(= 700/3, but round down the decimal point)).

【0122】以上のようにして、動き補償モードが画像
内予測モードである場合、演算器4からの10ビット精
度の画像データのブロックのダイナミックレンジが、8
ビットを越える(256以上である)とき、ブロック量
子化器7において、演算器4からの10ビット精度の画
像データのブロックが、8ビット精度の画像データのブ
ロックに変換され、差分信号符号化器8に出力される
As described above, when the motion compensation mode is the intra-picture prediction mode, the dynamic range of the block of the 10-bit precision image data from the arithmetic unit 4 is 8
When the number of bits exceeds (256 or more), the block quantizer 7 converts the block of 10-bit precision image data from the calculator 4 into a block of 8-bit precision image data, and the difference signal encoder It is output to 8.

【0123】一方、動き補償モードが画像間予測モード
(前方予測、後方予測もしくは両方向予測モードのいず
れか)である場合、代表値計算回路5においては、演算
器3の演算出力(この場合、フィールドメモリ群1から
の10ビット精度の画像データのブロックと予測画像と
の差分データ)の最大値および最小値が検出され、そ
の、例えば平均値(=(最大値+最小値)/2、但し小
数点以下切り捨て)が、演算器3から出力された10ビ
ット精度の画像データのブロックの代表値データとされ
て演算器4および11に出力される。
On the other hand, when the motion compensation mode is the inter-picture prediction mode (either forward prediction, backward prediction or bidirectional prediction mode), in the representative value calculation circuit 5, the calculation output of the calculator 3 (in this case, the field The maximum value and the minimum value of the difference data between the block of 10-bit precision image data from the memory group 1 and the predicted image are detected, and, for example, the average value (= (maximum value + minimum value) / 2, where the decimal point The following (rounded down) is output to the arithmetic units 4 and 11 as the representative value data of the block of the 10-bit precision image data output from the arithmetic unit 3.

【0124】なお、この場合、ブロックの代表値データ
は、ブロック(ブロック内の画素)の最大値と最小値の
平均値(以下、ブロックの平均値と記載する)ではな
く、例えばブロックの最小値や0にすることができる。
但し、動き補償モードが画像間予測モードである場合に
おいては、画像データを上述したように−255乃至2
55の範囲の9ビットで表す必要があるので、ブロック
の代表値データを、ブロックの平均値としたときが、ブ
ロックのダイナミックレンジを最も大きくとれるように
なる。
In this case, the representative value data of the block is not the average value of the maximum value and the minimum value of the block (pixels in the block) (hereinafter referred to as the average value of the block), but the minimum value of the block. It can be zero.
However, in the case where the motion compensation mode is the inter-picture prediction mode, the image data is set to -255 to 2
Since it has to be represented by 9 bits in the range of 55, when the representative value data of the block is the average value of the block, the dynamic range of the block can be maximized.

【0125】そして、演算器4において、演算器3から
出力された10ビット精度の画像データのブロック(ブ
ロックにおける画素データそれぞれ)と、代表値計算回
路5から出力されたブロックの代表値データ、即ちブロ
ックの平均値との差分がとられ、ブロック量子化器7に
出力される。
Then, in the arithmetic unit 4, the block of the 10-bit precision image data output from the arithmetic unit 3 (each pixel data in the block) and the representative value data of the block output from the representative value calculation circuit 5, that is, The difference from the average value of the block is calculated and output to the block quantizer 7.

【0126】従って、この場合、ブロック量子化器7に
は、最大値と最小値の絶対値が等しい画像データのブロ
ックがブロック量子化器7に出力されることになる。
Therefore, in this case, the block quantizer 7 outputs to the block quantizer 7 blocks of image data having the same absolute value of the maximum value and the minimum value.

【0127】即ち、動き補償モードが画像間予測モード
である場合、例えば図2(b)に示すように、演算器3
から出力された10ビット精度の画像データのブロック
の最大値または最小値が、それぞれ−155または35
5であれば、その画像データブロックから、代表値デー
タとしての平均値100(=(−155+355)/
2)を減算した−255(=−155−100)乃至2
55(=355−100)の範囲の値を有する画像デー
タのブロックが演算器4からブロック量子化器7に出力
され、また例えば図3(b)に示すように、演算器3か
ら出力された10ビット精度の画像データのブロックの
最大値または最小値が、それぞれ1000または−10
00であれば、平均値0(=(−1000+1000)
/2)−1000(=−1000−0)乃至1000
(=1000−0)の範囲の値を有する画像データのブ
ロックがブロック量子化器7に出力されることになる。
That is, when the motion compensation mode is the inter-picture prediction mode, for example, as shown in FIG.
The maximum value or the minimum value of the block of 10-bit precision image data output from is -155 or 35, respectively.
If it is 5, the average value 100 (= (-155 + 355) /
2) is subtracted from -255 (= -155-100) to 2
A block of image data having a value in the range of 55 (= 355-100) is output from the arithmetic unit 4 to the block quantizer 7, and is output from the arithmetic unit 3 as shown in FIG. 3B, for example. The maximum or minimum value of a block of 10-bit image data is 1000 or -10, respectively.
If 00, the average value is 0 (= (-1000 + 1000)
/ 2) -1000 (= -1000-0) to 1000
A block of image data having a value in the range (= 1000-0) will be output to the block quantizer 7.

【0128】同時に、この場合、量子化幅計算回路6に
おいて、演算器3の演算出力(この場合、フィールドメ
モリ群1からの10ビット精度の画像データのブロック
と、予測画像との差分データ)の最大値および最小値が
検出され、その差としてのダイナミックレンジが算出さ
れる。
At the same time, in this case, in the quantization width calculation circuit 6, the calculation output of the calculator 3 (in this case, the difference data between the block of image data of 10-bit precision from the field memory group 1 and the predicted image) is output. The maximum value and the minimum value are detected, and the dynamic range as the difference between them is calculated.

【0129】そして、量子化幅計算回路6において、フ
ィールドメモリ群1からの10ビット精度の画像データ
のブロックのダイナミックレンジが、−255乃至25
5の範囲で表すことのできる符号ビット1ビットを含む
9ビット以内であるか否かが判定され、そのダイナミッ
クレンジが9ビット以内であると判定された場合、量子
化幅Qが1に決定され、ブロック量子化器7に出力され
る。
In the quantization width calculation circuit 6, the dynamic range of the block of 10-bit precision image data from the field memory group 1 is -255 to 25.
It is determined whether or not it is within 9 bits including 1 code bit that can be represented by the range of 5, and when it is determined that the dynamic range is within 9 bits, the quantization width Q is determined to be 1. , To the block quantizer 7.

【0130】従って、動き補償モードが画像間予測モー
ドである場合、演算器3から出力された10ビット精度
の画像データ(差分データ)のブロックのダイナミック
レンジが9ビット以内であれば(例えば、図2
(a))、ブロック量子化器7からは、演算器4からの
画像データがそのまま差分信号符号化器8に出力される
ことになる。
Therefore, when the motion compensation mode is the inter-picture prediction mode, if the dynamic range of the block of 10-bit precision image data (difference data) output from the computing unit 3 is within 9 bits (for example, as shown in FIG. Two
(A)), the block quantizer 7 outputs the image data from the calculator 4 to the difference signal encoder 8 as it is.

【0131】つまり、動き補償モードが画像間予測モー
ドである場合、演算器3から出力された10ビット精度
の画像データのブロックのダイナミックレンジが9ビッ
ト以内であるとき、演算器3から出力された画像データ
のブロックのビット精度は実質的に8ビットであり、こ
の8ビット精度の画像データのブロックが差分信号符号
化器8に出力されることになる。
That is, when the motion compensation mode is the inter-picture prediction mode, when the dynamic range of the block of the image data of 10-bit precision output from the arithmetic unit 3 is within 9 bits, it is output from the arithmetic unit 3. The bit precision of the block of image data is substantially 8 bits, and this block of image data of 8-bit precision is output to the differential signal encoder 8.

【0132】さらに、動き補償モードが画像間予測モー
ドである場合、量子化幅計算回路6において、フィール
ドメモリ群1からの10ビット精度の画像データのブロ
ックのダイナミックレンジが、9ビットを越える(−2
55乃至255の範囲外である)と判定されたとき、ブ
ロック量子化器7の量子化出力のダイナミックレンジが
9ビット以下(511未満)(−255乃至255の範
囲内)になるように量子化幅Qが決定され、ブロック量
子化器7に出力される。
Further, when the motion compensation mode is the inter-picture prediction mode, in the quantization width calculation circuit 6, the dynamic range of the block of 10-bit precision image data from the field memory group 1 exceeds 9 bits (- Two
Quantized so that the dynamic range of the quantized output of the block quantizer 7 is 9 bits or less (less than 511) (within the range of -255 to 255) when it is determined that the value is outside the range of 55 to 255). The width Q is determined and output to the block quantizer 7.

【0133】即ち、フィールドメモリ群1からの10ビ
ット精度の画像データのブロックのダイナミックレンジ
が、例えば512以上1024未満である場合、量子化
幅Qは2に決定される。さらに、そのダイナミックレン
ジが、例えば1024以上1536未満である場合、量
子化幅Qは3に決定され、またダイナミックレンジが、
例えば1536以上2048未満である場合、量子化幅
Qは4に決定される。
That is, when the dynamic range of the block of 10-bit precision image data from the field memory group 1 is, for example, 512 or more and less than 1024, the quantization width Q is determined to be 2. Further, when the dynamic range is, for example, 1024 or more and less than 1536, the quantization width Q is determined to be 3, and the dynamic range is
For example, when it is 1536 or more and less than 2048, the quantization width Q is determined to be 4.

【0134】従って、動き補償モードが画像間予測モー
ドである場合、演算器4からの10ビット精度の画像デ
ータのブロックのダイナミックレンジが、例えば図3
(b)に示すように2000(=1000−(−100
0)であるとき、その差分データのブロックが、ブロッ
ク量子化器7において量子化幅4で量子化され(4で除
算され)、ダイナミックレンジが9ビット以内(この場
合、500(=2000/4、但し小数点以下切り捨
て))にされる。
Therefore, when the motion compensation mode is the inter-picture prediction mode, the dynamic range of the block of the 10-bit precision image data from the calculator 4 is, for example, as shown in FIG.
As shown in (b), 2000 (= 1000 − (− 100
0), the block of the difference data is quantized in the block quantizer 7 with a quantization width of 4 (divided by 4), and the dynamic range is within 9 bits (in this case, 500 (= 2000/4). However, the numbers after the decimal point are rounded down)).

【0135】以上のようにして、動き補償モードが画像
間予測モードである場合、演算器4からの10ビット精
度の画像データのブロックのダイナミックレンジが、9
ビットを越える(512以上である)とき、ブロック量
子化器7において、演算器4からの10ビット精度の画
像データのブロックが、8ビット精度の画像データのブ
ロックに変換され、差分信号符号化器8に出力される。
As described above, when the motion compensation mode is the inter-picture prediction mode, the dynamic range of the block of the 10-bit precision image data from the arithmetic unit 4 is 9
When the number of bits exceeds (512 or more), the block quantizer 7 converts the block of 10-bit precision image data from the calculator 4 into the block of 8-bit precision image data, and the difference signal encoder 8 is output.

【0136】以上のように、装置に10ビット精度の画
像データのブロックが入力された場合には、差分信号符
号化器8に、8ビット精度の画像データのブロックが入
力されるように、演算器4およびブロック量子化器8に
おいて、10ビット精度の画像データのブロック、8ビ
ート精度の画像データのブロックに変換される。
As described above, when a block of 10-bit precision image data is input to the device, the difference signal encoder 8 is operated so that the block of 8-bit precision image data is input. In the device 4 and the block quantizer 8, the image data is converted into a block of 10-bit precision image data and a block of 8-beat precision image data.

【0137】ところで、ビット精度が8ビット精度より
高精度な、例えば10ビット精度の画像を、例えば8×
8画素や16×16画素などの小ブロックに分割した場
合、各ブロックにおけるダイナミックレンジは、一般的
に大きくないこと(動き補償モードが画像内予測モード
の場合、ブロックのダイナミックレンジが8ビット以内
になり、動き補償モードが画像間予測モードの場合、ブ
ロックのダイナミックレンジが9ビット以内になるこ
と)が多い。さらに、動き補償モードが画像間予測モー
ドの場合、画像データのブロックは、演算器3で予測画
像との差分がとられるので、その差分のブロックのダイ
ナミックレンジが9ビットを越えることはほとんどな
い。
By the way, an image having a bit precision higher than that of 8 bit precision, for example, 10 bit precision is converted into, for example, 8 ×.
When divided into small blocks such as 8 pixels or 16 × 16 pixels, the dynamic range in each block is generally not large (when the motion compensation mode is the intra-picture prediction mode, the dynamic range of the block is within 8 bits). When the motion compensation mode is the inter-picture prediction mode, the block dynamic range is often within 9 bits). Further, when the motion compensation mode is the inter-picture prediction mode, the difference between the block of the image data and the predicted image is calculated by the arithmetic unit 3, so that the dynamic range of the difference block rarely exceeds 9 bits.

【0138】従って、演算器4での画像データのブロッ
クからの代表値データの減算処理により、ほとんどの場
合、情報を損なうことなく、10ビット精度の画像デー
タを8ビット精度の画像データに変換することができ
る。
Therefore, by the subtraction processing of the representative value data from the block of the image data in the arithmetic unit 4, the image data of 10-bit precision is converted into the image data of 8-bit precision without damaging the information in most cases. be able to.

【0139】つまり、量子化幅計算回路6およびブロッ
ク量子化器7を設けずに装置を構成するようにしても、
画像を損なうことなく、10ビット精度の画像データを
8ビット精度の画像データに変換することができる。
That is, even if the apparatus is configured without providing the quantization width calculation circuit 6 and the block quantizer 7,
It is possible to convert 10-bit precision image data into 8-bit precision image data without damaging the image.

【0140】さらに、この場合、例えば差分信号符号化
器8での量子化幅Sを小さくする(細かくする)ように
し、画質の劣化を抑制した画像の符号化が可能となる。
Further, in this case, for example, the quantization width S in the differential signal encoder 8 is made small (fine), and the image can be encoded while suppressing the deterioration of the image quality.

【0141】また、画像データのブロックのダイナミッ
クレンジが大きいとき(動き補償モードが画像内予測モ
ードの場合、ブロックのダイナミックレンジが8ビット
を越え、動き補償モードが画像間予測モードの場合、ブ
ロックのダイナミックレンジが9ビットを越えると
き)、上述したように、ブロック量子化器7で画像デー
タが量子化され、それが復号されたときの解像度が、多
少劣化することになる。
When the dynamic range of a block of image data is large (when the motion compensation mode is the intra-picture prediction mode, the dynamic range of the block exceeds 8 bits, and when the motion compensation mode is the inter-picture prediction mode, When the dynamic range exceeds 9 bits), the image data is quantized by the block quantizer 7 as described above, and the resolution when the image data is decoded is slightly deteriorated.

【0142】しかしながら、例えば画像の輪郭部分など
のダイナミックレンジが大きい部分では、人間の目の輝
度弁別度が低いので、上述の量子化によるレベル方向の
解像度の低下(劣化)が、視聴者に与える影響はほとん
どないと考えられる。
However, since the luminance discrimination degree of human eyes is low in a portion having a large dynamic range such as a contour portion of an image, the deterioration (deterioration) of the resolution in the level direction due to the above-mentioned quantization is given to the viewer. It is thought that there will be little impact.

【0143】10ビット精度から8ビット精度に変換さ
れた画像データは、差分信号符号化器8に供給される。
そして、差分信号符号化器8において、量子化され、D
CT処理されてVLC回路15に供給される。
The image data converted from 10-bit precision to 8-bit precision is supplied to the differential signal encoder 8.
Then, in the differential signal encoder 8, quantized, D
It is CT processed and supplied to the VLC circuit 15.

【0144】VLC回路15には、差分信号符号化器8
で量子化され、DCT処理された画像データのブロック
の他、そのブロックの代表値データまたは量子化幅Qが
代表値計算回路5または量子化幅計算回路6よりそれぞ
れ供給されるとともに、動きベクトルおよび動き補償モ
ードが動き予測における回路により供給される。さら
に、VLC回路15には、差分信号符号化器8での量子
化幅Sが供給される。そして、VLC回路15は、ビッ
ト精度が10ビット精度から8ビット精度に変換された
画像データのブロック、そのブロックの代表値データ、
量子化幅Q,S、動きベクトル、および動き補償モード
を可変長符号化し、図示せぬ送信バッファを介して出力
する。
The VLC circuit 15 includes a differential signal encoder 8
In addition to the block of the image data that has been quantized by the DCT process, the representative value data or the quantization width Q of the block is supplied from the representative value calculation circuit 5 or the quantization width calculation circuit 6, respectively, and the motion vector and The motion compensation mode is provided by the circuit in motion estimation. Further, the VLC circuit 15 is supplied with the quantization width S in the differential signal encoder 8. Then, the VLC circuit 15 has a block of image data whose bit precision is converted from 10-bit precision to 8-bit precision, representative value data of the block,
The quantization widths Q and S, the motion vector, and the motion compensation mode are variable-length coded and output via a transmission buffer (not shown).

【0145】ここで、この場合、VLC回路15では、
符号化された画像データのブロックごとのヘッダに、そ
のブロックの代表値データおよび量子化幅Qが付加され
るようになされている。
In this case, in the VLC circuit 15,
The representative value data of the block and the quantization width Q are added to the header of each block of the encoded image data.

【0146】なお、ブロックの代表値データおよび量子
化幅Qを、上述したようにそのブロックのヘッダに付加
するのではなく、ブロックより上位のレイヤとしての、
例えばマクロブロックレイヤやピクチャレイヤのヘッダ
に、そのマクロブロックやピクチャレイヤに属する他の
ブロックの代表値データおよび量子化幅Qとともに付加
するようにすることができる。
The representative value data of the block and the quantization width Q are not added to the header of the block as described above, but as a layer higher than the block,
For example, it can be added to the header of the macroblock layer or the picture layer together with the representative value data and the quantization width Q of other blocks belonging to the macroblock or the picture layer.

【0147】VLC回路15より出力されたビットスト
リームは、符号化されたオーディオ信号、同期信号など
と多重化され、さらにエラー訂正用のコードが付加さ
れ、所定の変調がかけられた後、レーザ光などによりマ
スタディスク(図示せず)に凹凸のピットとして記録さ
れる。そして、このマスタディスクを利用してスタンパ
(図示せず)が形成され、さらにそのスタンパにより、
複製ディスク17(例えば、光ディスクなど)が量産さ
れることになる。
The bit stream output from the VLC circuit 15 is multiplexed with the coded audio signal, sync signal, etc., further, an error correction code is added, and after being subjected to a predetermined modulation, the laser beam is outputted. As a result, it is recorded on the master disk (not shown) as uneven pits. Then, a stamper (not shown) is formed by using this master disk, and by the stamper,
The duplicate disks 17 (for example, optical disks) will be mass-produced.

【0148】また、差分信号符号化器8で量子化され、
DCT処理された画像データは、それがIまたはPピク
チャのデータである場合、差分信号復号化器10に供給
される。
Quantized by the difference signal encoder 8,
The DCT-processed image data is supplied to the differential signal decoder 10 when it is I or P picture data.

【0149】差分信号復号化器9は、図示していない
が、図20における場合と同様に逆量子化器113およ
び逆DCT回路114より構成され、そこでは、差分信
号符号化器8からのデータ(量子化されたDCTデー
タ)が、差分信号符号化器8における量子化幅Sと同一
の量子化幅で逆量子化され、さらに逆DCT処理され
る。
Although not shown, the differential signal decoder 9 is composed of an inverse quantizer 113 and an inverse DCT circuit 114 as in the case of FIG. 20, in which the data from the differential signal encoder 8 is used. The (quantized DCT data) is inversely quantized with the same quantization width as the quantization width S in the difference signal encoder 8, and further inverse DCT processing is performed.

【0150】差分信号復号化器9より出力された画像デ
ータは、ブロック逆量子化器10に入力され、そこで、
量子化幅計算回路6より出力された、ブロック量子化器
7における量子化幅Qと同一の量子化幅で逆量子化され
る。即ち、ブロック逆量子化器10において、差分信号
復号化器9より出力された画像データに、ブロック量子
化器7における量子化幅Qと同一の量子化幅が乗算さ
れ、演算器11に出力される。
The image data output from the differential signal decoder 9 is input to the block dequantizer 10, where
Dequantization is performed with the same quantization width as the quantization width Q in the block quantizer 7 output from the quantization width calculation circuit 6. That is, in the block inverse quantizer 10, the image data output from the differential signal decoder 9 is multiplied by the same quantization width as the quantization width Q in the block quantizer 7, and output to the calculator 11. It

【0151】演算器11においては、ブロック逆量子化
器10より出力された画像データに、代表値計算回路5
より出力された、演算器4において演算器3の演算出力
から減算された代表値データと同一の代表値データが加
算され、演算器12に出力される。
In the arithmetic unit 11, the representative value calculation circuit 5 is added to the image data output from the block dequantizer 10.
The representative value data, which is the same as the representative value data subtracted from the arithmetic output of the arithmetic unit 3 in the arithmetic unit 4, is added and output to the arithmetic unit 12.

【0152】これにより、演算器12には、演算器4お
よびブロック量子化器7によって8ビット精度の画像デ
ータのブロックに変換される前の10ビット精度の画像
データのブロックと同一(正確には、量子化誤差が含ま
れるので、ほぼ同一)の画像データのブロックが供給さ
れることになる。
As a result, the arithmetic unit 12 has the same (more accurately, as the block of image data of 10-bit precision before being converted into the block of image data of 8-bit precision by the arithmetic unit 4 and the block quantizer 7). , The same block of image data is supplied because the quantization error is included.

【0153】演算器12には、また、既に復号され、動
き補償回路14で動き補償された予測画像が供給され、
そこでは、この予測画像と演算器11からの画像データ
が加算され、元の10ビット精度の画像データ(符号化
される前の10ビット精度の画像データ)に復号され
る。この復号された10ビット精度の画像データは、フ
ィールドメモリ群13に供給されて記憶される。
The arithmetic unit 12 is also supplied with the prediction image which has already been decoded and motion-compensated by the motion compensation circuit 14.
There, the predicted image and the image data from the arithmetic unit 11 are added and decoded into the original 10-bit precision image data (10-bit precision image data before being encoded). The decoded 10-bit precision image data is supplied to and stored in the field memory group 13.

【0154】フィールドメモリ群13は、10ビット精
度の画像データを記憶することができるようになされて
おり、演算器12からの復号された10ビット精度の画
像データを記憶する。フィールドメモリ群13に記憶さ
れた、既に復号された10ビットの画像データは、フィ
ールドメモリコントローラ16により入力画像の同期信
号に対応して生成されたタイミング制御信号に基づいて
読み出され、動き補償回路14において、動き予測回路
2からの動きベクトルに対応して動き補償され、演算器
3および12に供給される。
The field memory group 13 is designed to be able to store 10-bit precision image data, and stores the decoded 10-bit precision image data from the arithmetic unit 12. The already-decoded 10-bit image data stored in the field memory group 13 is read based on the timing control signal generated by the field memory controller 16 in response to the input image synchronization signal, and the motion compensation circuit At 14, motion compensation is performed according to the motion vector from the motion prediction circuit 2, and the motion is supplied to the computing units 3 and 12.

【0155】即ち、予測画像が演算器3および12に供
給される。
That is, the predicted image is supplied to the arithmetic units 3 and 12.

【0156】以上のように、10ビット精度の画像デー
タを8ビット精度の画像データに変換するようにしたの
で、8ビット精度の画像データ用の動き予測回路2、差
分信号符号化器8、および9などを使用した画像符号化
装置によって、10ビット精度の画像を、その画質をほ
とんど劣化させることなく符号化することができる。
As described above, since the 10-bit precision image data is converted into the 8-bit precision image data, the motion prediction circuit 2 for the 8-bit precision image data, the differential signal encoder 8, and An image encoding device using 9 or the like can encode an image with 10-bit precision with almost no deterioration in image quality.

【0157】次に、図4は、本発明の画像復号化装置の
一実施例の構成を示すブロック図である。図中、図21
における場合と対応する部分については、同一の符号を
付してある。この画像復号化装置は、図1に示す画像符
号化装置で符号化された画像を復号することができるよ
うになされている。
Next, FIG. 4 is a block diagram showing the configuration of an embodiment of the image decoding apparatus of the present invention. In the figure, FIG.
The same reference numerals are given to the portions corresponding to the case of. This image decoding apparatus is adapted to be able to decode the image coded by the image coding apparatus shown in FIG.

【0158】即ち、この画像復号化装置においては、ま
ずディスク17(図1)から、ビット精度が10ビット
精度から8ビット精度に変換された画像データが再生さ
れ、再生ビットストリームが逆VLC回路21に供給さ
れる。逆VLC回路21は、ビットストリームを可変長
復号化し、画像データの、例えばブロックごとのヘッダ
に付加されたブロックの代表値データまたは量子化幅Q
を演算器24またはブロック逆量子化器23に供給する
とともに、動きベクトルおよび動き補償モードを動き補
償回路27に供給する。
That is, in this image decoding apparatus, first, the image data whose bit precision is converted from 10-bit precision to 8-bit precision is reproduced from the disk 17 (FIG. 1), and the reproduced bit stream is converted into the inverse VLC circuit 21. Is supplied to. The inverse VLC circuit 21 variable-length-decodes the bit stream, and, for example, representative value data of a block added to a header of each block of image data or a quantization width Q.
Is supplied to the calculator 24 or the block dequantizer 23, and the motion vector and the motion compensation mode are supplied to the motion compensation circuit 27.

【0159】さらに、逆VLC回路21は、1枚(1画
面)の画像に対応するデータの可変長復号化を終了する
たびにタイミングパルスをメモリコントローラ28に出
力する。メモリコントローラ28においては、このタイ
ミングパルスに対応してタイミング制御信号がフィール
ドメモリ群26に供給されるようになされており、これ
により、フィールドメモリ群26からの画像データの読
み出しのタイミングが制御されるようになされている。
Further, the inverse VLC circuit 21 outputs a timing pulse to the memory controller 28 each time the variable length decoding of the data corresponding to one image (one screen) is completed. In the memory controller 28, a timing control signal is supplied to the field memory group 26 in response to this timing pulse, whereby the timing of reading image data from the field memory group 26 is controlled. It is done like this.

【0160】また、逆VLC回路21は、可変長復号化
した画像データのブロックおよび量子化幅Sを差分信号
復号化器22に順次供給する。
Further, the inverse VLC circuit 21 sequentially supplies the block of the variable length decoded image data and the quantization width S to the differential signal decoder 22.

【0161】差分信号復号化器22は、図示していない
が、図21における場合と同様に逆量子化器121およ
び逆DCT回路122より構成され、そこでは、逆VL
C回路21より出力された、ビット精度が10ビット精
度から8ビット精度に変換された画像データ(量子化さ
れたDCTデータ)のブロックが、同じく逆VLC回路
21より出力された量子化幅Sで逆量子化され、さらに
逆DCT処理される。
Although not shown, the differential signal decoder 22 is composed of an inverse quantizer 121 and an inverse DCT circuit 122 as in the case of FIG. 21, in which the inverse VL is used.
A block of image data (quantized DCT data) output from the C circuit 21 and having bit precision converted from 10-bit precision to 8-bit precision has a quantization width S output from the inverse VLC circuit 21. Inverse quantization is performed and inverse DCT processing is performed.

【0162】ここで、差分信号復号化器22に入出力す
る画像データは、ビット精度が8ビット精度に変換され
たものであるので、差分信号復号化器22では、図21
における場合と同様にして、8ビット精度の画像データ
を逆量子化し、さらに逆DCT処理することができる。
Since the bit precision of the image data input / output to / from the differential signal decoder 22 is converted to 8-bit precision, the differential signal decoder 22 shown in FIG.
In the same manner as in the case of, the 8-bit precision image data can be inversely quantized, and further the inverse DCT processing can be performed.

【0163】差分信号復号化器22より出力された画像
データのブロックは、ブロック逆量子化器23に入力さ
れ、そこで、逆VLC回路21より出力された、ブロッ
ク量子化器7(図1)で量子化されたときの量子化幅Q
と同一の量子化幅で逆量子化される。即ち、ブロック逆
量子化器23において、差分信号復号化器22より出力
された画像データに、ブロック量子化器7で量子化され
たときの量子化幅Qと同一の量子化幅が乗算される。
The block of image data output from the differential signal decoder 22 is input to the block inverse quantizer 23, where the block quantizer 7 (FIG. 1) output from the inverse VLC circuit 21. Quantization width Q when quantized
Is inversely quantized with the same quantization width as. That is, in the block dequantizer 23, the image data output from the differential signal decoder 22 is multiplied by the same quantization width as the quantization width Q when quantized by the block quantizer 7. .

【0164】これにより、画像データのブロックのダイ
ナミックレンジが、図1の画像符号化装置で符号化され
る前と同一(ほぼ同一)の値に変換される。
As a result, the dynamic range of the block of the image data is converted into the same value (nearly the same) as before the coding by the image coding apparatus of FIG.

【0165】ブロック逆量子化器23で逆量子化された
画像データのブロックは、演算器24に供給される。演
算器24では、逆VLC回路21からの代表値データ
と、ブロック逆量子化器23からの画像データのブロッ
ク(ブロックにおける画素データそれぞれ)とが加算さ
れ、演算器25に出力される。
The block of image data inversely quantized by the block inverse quantizer 23 is supplied to the calculator 24. The arithmetic unit 24 adds the representative value data from the inverse VLC circuit 21 and the block of image data (each pixel data in the block) from the block inverse quantizer 23, and outputs the sum to the arithmetic unit 25.

【0166】これにより、演算器25には、図1の画像
符号化装置の演算器12における場合と同様に、演算器
4およびブロック量子化器7によって8ビット精度の画
像データのブロックに変換される前の10ビット精度の
画像データのブロックと同一(ほぼ同一)の画像データ
のブロックが供給されることになる。
As a result, as in the case of the arithmetic unit 12 of the image coding apparatus of FIG. 1, the arithmetic unit 25 is converted into a block of 8-bit precision image data by the arithmetic unit 4 and the block quantizer 7. The block of the image data which is the same (almost the same) as the block of the image data of 10-bit precision before the operation is supplied.

【0167】即ち、ブロック逆量子化器23および演算
器24において、図1の画像符号化装置でビット精度が
10ビット精度から8ビット精度に変換された画像デー
タのビット精度が、10ビット精度に変換され、演算器
25に供給される。
That is, in the block dequantizer 23 and the calculator 24, the bit precision of the image data converted from the 10-bit precision to the 8-bit precision by the image encoding device of FIG. 1 becomes 10-bit precision. It is converted and supplied to the calculator 25.

【0168】演算器25には、また、既に復号されたI
またはPピクチャの画像データが動き補償回路27で動
き補償された予測画像が供給され、そこでは、この予測
画像と演算器24からの画像データが加算され、元の1
0ビット精度の画像データ(符号化される前の10ビッ
ト精度の画像データ)に復号される。この復号された1
0ビット精度の画像データは、フィールドメモリ群26
に供給されて記憶される。
The arithmetic unit 25 also receives the already decoded I
Alternatively, a prediction image in which the image data of the P picture is motion-compensated by the motion compensation circuit 27 is supplied, in which the prediction image and the image data from the arithmetic unit 24 are added to obtain the original 1
The image data is decoded into 0-bit precision image data (10-bit precision image data before being encoded). This decrypted one
Image data with 0-bit precision is stored in the field memory group 26.
Are stored and stored in.

【0169】フィールドメモリ群26は、10ビット精
度の画像データを記憶することができるようになされて
おり、演算器25からの復号された10ビット精度の画
像データを記憶する。フィールドメモリ群26に記憶さ
れた、既に復号された10ビットの画像データのうちI
またはPピクチャの画像データは、フィールドメモリコ
ントローラ28により入力画像の同期信号に対応して生
成されたタイミング制御信号に基づいて読み出され、動
き補償回路14において、動き予測回路2からの動きベ
クトルに対応して動き補償され、演算器25に供給され
る。
The field memory group 26 is adapted to be able to store 10-bit precision image data, and stores the decoded 10-bit precision image data from the calculator 25. Of the already decoded 10-bit image data stored in the field memory group 26, I
Alternatively, the image data of the P picture is read out based on the timing control signal generated by the field memory controller 28 corresponding to the synchronization signal of the input image, and is converted into the motion vector from the motion prediction circuit 2 in the motion compensation circuit 14. Correspondingly motion-compensated and supplied to the calculator 25.

【0170】即ち、予測画像が演算器25に供給され
る。
That is, the predicted image is supplied to the calculator 25.

【0171】また、フィールドメモリ群26に記憶され
た画像データは、フィールドメモリコントローラ28か
らのタイミング制御信号に基づいて出力端子に出力され
る。そして、出力端子に出力された画像データは、例え
ばD/A変換処理などの所定の処理が施され、図示せぬ
ディスプレイなどに供給されて表示される。
The image data stored in the field memory group 26 is output to the output terminal based on the timing control signal from the field memory controller 28. Then, the image data output to the output terminal is subjected to predetermined processing such as D / A conversion processing, and is supplied to a display (not shown) or the like for display.

【0172】以上のようにして、8ビット精度の画像デ
ータ用の差分信号復号化器22などを使用した画像復号
化装置により、図1の画像符号化装置で符号化された、
8ビット精度より高精度な10ビット精度の画像を復号
することができる。
As described above, by the image decoding device using the differential signal decoder 22 for 8-bit image data, the image is encoded by the image encoding device of FIG.
It is possible to decode an image with 10-bit precision that is higher than 8-bit precision.

【0173】なお、図1に示す画像符号化装置(図4に
示す画像復号化装置)においては、ビット精度が10ビ
ット精度の画像だけでなく、例えば9ビット精度や11
ビット精度などの画像を符号化(復号化)するようにす
ることができる。
Note that in the image coding apparatus shown in FIG. 1 (the image decoding apparatus shown in FIG. 4), not only an image having a bit precision of 10 bits but also a bit precision of 11 bits or 11 bits, for example.
An image such as bit precision can be encoded (decoded).

【0174】次に、図5は、本発明の画像符号化装置の
第2実施例の構成を示すブロック図である。この画像符
号化装置は、ブロック量子化幅用バッファ33およびブ
ロック内代表値用バッファ(以下、共にバッファと記載
する)34が設けられるとともに、演算器4または11
に代えて、ブロック内代表値差分器(以下、代表値差分
器と記載する)31またはブロック内代表値加算器(以
下、代表値加算器と記載する)32がそれぞれ設けられ
ている他は、図1の画像符号化装置と同様に構成されて
いる。
Next, FIG. 5 is a block diagram showing the configuration of the second embodiment of the image coding apparatus of the present invention. This image encoding device is provided with a block quantization width buffer 33 and an intra-block representative value buffer (hereinafter referred to as a buffer) 34, and also has a computing unit 4 or 11
Instead of being provided with an in-block representative value differencer (hereinafter referred to as a representative value differencer) 31 or an in-block representative value adder (hereinafter referred to as a representative value adder) 32, respectively, It is configured similarly to the image coding apparatus in FIG.

【0175】この画像符号化装置は、画像のビット精度
および後述するパラメータブロックサイズが任意の領域
単位で変化する画像を符号化することができるようにな
されている。
This image encoding device is capable of encoding an image in which the bit precision of the image and the parameter block size described later change in arbitrary area units.

【0176】即ち、この画像符号化装置には、図示せぬ
処理回路から、例えば1画面、1GOP、または1シー
ケンスなどの任意の領域単位で変化する画像のビット精
度(ビット精度のコード)と、パラメータブロックサイ
ズ(パラメータブロックサイズのコード)(図5におい
ては、ブロックサイズと図示してある)が供給されるよ
うになされている。
That is, in this image coding apparatus, from a processing circuit (not shown), the bit precision (code of the bit precision) of the image that changes in an arbitrary area unit such as one screen, one GOP, or one sequence, The parameter block size (parameter block size code) (in FIG. 5, shown as block size) is supplied.

【0177】なお、画像のビット精度とパラメータブロ
ックサイズは、互いに独立なものであり、同一の領域単
位で変化させるのではなく、異なる領域単位で変化させ
るようにすることができる。即ち、画像のビット精度ま
たはパラメータブロックサイズは、例えば1画面または
1GOPごとにそれぞれ変化させるようにすることがで
きる。
The bit precision of the image and the parameter block size are independent of each other and can be changed not in the same area unit but in different area units. That is, the bit precision of the image or the parameter block size can be changed, for example, for each screen or 1 GOP.

【0178】ここで、パラメータブロックサイズとは、
ビート精度を変換する画像の単位領域(以下、パラメー
タブロックと記載する)の大きさを意味する。従って、
パラメータブロックサイズが、例えば16×16や8×
8とすると、16×16画素のブロック(パラメータブ
ロック)や8×8画素のブロック(バラメータブロッ
ク)ごとに代表値データまたは量子化幅Qが、代表値計
算回路5または量子化幅計算回路6においてそれぞれ決
定されることになる。
Here, the parameter block size is
It means the size of a unit area (hereinafter referred to as a parameter block) of an image in which beat accuracy is converted. Therefore,
Parameter block size is, for example, 16x16 or 8x
If it is set to 8, the representative value data or the quantization width Q is calculated in the representative value calculation circuit 5 or the quantization width calculation circuit 6 for each of the 16 × 16 pixel block (parameter block) and the 8 × 8 pixel block (parameter block). Each will be decided.

【0179】このパラメータブロックサイズと、画像を
符号化する処理単位のブロックの大きさとは、整数倍の
関係を有するように設定されるようになされている。符
号化する処理単位のブロックの大きさが、例えば8×8
画素である場合に、例えば図6(a)に示すように、パ
ラメータブロックサイズが、画像を符号化する処理単位
のブロック(図6(a)において、実線で示すブロッ
ク)の大きさの4倍に設定されているとき、代表値計算
回路5、または量子化幅計算回路6においては、パラメ
ータブロックを精成する4つのブロック(図6(a)に
おいて、点線で囲まれた4つのブロック)における画素
の最大値および最小値に基づいて、代表値データ、また
は量子化幅Qが決定され、代表値差分器31および代表
値加算器32、またはブロック量子化器7およびブロッ
ク逆量子化器8にそれぞれ供給される。
The parameter block size and the block size of a processing unit for coding an image are set to have an integral multiple relationship. The block size of the processing unit to be encoded is, for example, 8 × 8.
In the case of pixels, for example, as shown in FIG. 6A, the parameter block size is four times as large as the size of a block (a block shown by a solid line in FIG. 6A) of a processing unit for encoding an image. When set to, in the representative value calculation circuit 5 or the quantization width calculation circuit 6, in the four blocks that refine the parameter block (four blocks surrounded by a dotted line in FIG. 6A) The representative value data or the quantization width Q is determined based on the maximum value and the minimum value of the pixel, and the representative value differentiator 31 and the representative value adder 32, or the block quantizer 7 and the block dequantizer 8 are provided. Each is supplied.

【0180】代表値差分器31は、図1の演算器4に対
応するものであり、この代表値差分器31およびブロッ
ク量子化器7においては、演算器3からのブロック(装
置に入力される画像)のビット精度が、パラメータブロ
ック単位で差分信号符号化器8のビット精度(本実施例
においては、8ビット精度)に変換される。
The representative value differentiator 31 corresponds to the arithmetic unit 4 in FIG. 1. In the representative value differentiator 31 and the block quantizer 7, the block from the arithmetic unit 3 (input to the device). The bit precision of the (image) is converted to the bit precision of the differential signal encoder 8 (8-bit precision in this embodiment) in parameter block units.

【0181】即ち、図6(a)に示す場合、代表値差分
器31およびブロック量子化器7において、パラメータ
ブロックとしての4つの8×8画素のブロックからなる
16×16画素のブロックから決定された代表値データ
および量子化幅Qによって、演算器3からの4つの8×
8画素のブロックすべてのビット精度が、図1の画像符
号化装置におけるときと同様にして8ビット精度に順次
変換され、差分信号符号化器8で符号化される。
That is, in the case of FIG. 6A, in the representative value differentiator 31 and the block quantizer 7, it is determined from a block of 16 × 16 pixels consisting of four blocks of 8 × 8 pixels as parameter blocks. Based on the representative value data and the quantization width Q, the four 8 ×
The bit precision of all blocks of 8 pixels is sequentially converted to 8-bit precision in the same manner as in the image encoding device of FIG. 1, and encoded by the differential signal encoder 8.

【0182】また、パラメータブロックごとに決定され
た代表値データまたは量子化幅Qは、バッファ34また
は33にそれぞれ供給されて記憶される。このバッファ
34または33に記憶された代表値データは、パラメー
タブロック(この場合、4つの8×8画素のブロックす
べて)が差分信号符号化器8で符号化され、VLC回路
15に供給されると、VLC回路15へ読み出される。
そして、VLC回路15において、装置に入力されたビ
ット精度およびパラメータブロックサイズ、バッファ3
3または34からの量子化幅Qまたは代表値データ、並
びに動き予測回路2からの動きベクトルおよび動き補償
モードが可変長符号化され、図示せぬ送信バッファを介
してディスク17に出力されて記録される。
The representative value data or the quantization width Q determined for each parameter block is supplied to the buffer 34 or 33 and stored therein. In the representative value data stored in the buffer 34 or 33, the parameter block (in this case, all four blocks of 8 × 8 pixels) is encoded by the differential signal encoder 8 and supplied to the VLC circuit 15. , To the VLC circuit 15.
Then, in the VLC circuit 15, the bit precision and the parameter block size input to the device, the buffer 3
The quantization width Q or the representative value data from 3 or 34, the motion vector and the motion compensation mode from the motion prediction circuit 2 are variable-length coded, output to the disk 17 via a transmission buffer (not shown), and recorded. It

【0183】この場合、VLC回路15では、パラメー
タブロックとしての4つの8×8画素のブロックからな
る16×16画素のブロック、即ちマクロブロックごと
のヘッダに、そのパラメータブロックの代表値データお
よび量子化幅Qが付加される。
In this case, in the VLC circuit 15, the representative value data of the parameter block and the quantization are added to the 16 × 16 pixel block consisting of four 8 × 8 pixel blocks as parameter blocks, that is, the header of each macroblock. A width Q is added.

【0184】例えば変化の激しくない画像においては、
隣接する複数のブロックのダイナミックレンジの変化が
小さく、このような画像においては、隣接する複数のブ
ロックのビット精度を、上述したように同一の代表値デ
ータおよび量子化幅Qで変換した後、各ブロック(8×
8画素のブロック)ごとのヘッダではなく、隣接する複
数のブロックからなるパラメータブロックごとのヘッダ
に、代表値データおよび量子化幅Qを付加するようにす
ることにより、符号量を低減することができる。
For example, in an image that does not change significantly,
A change in the dynamic range of a plurality of adjacent blocks is small, and in such an image, after converting the bit precision of the plurality of adjacent blocks with the same representative value data and the quantization width Q as described above, Block (8 x
The code amount can be reduced by adding the representative value data and the quantization width Q to the header of each parameter block including a plurality of adjacent blocks instead of the header of each block of 8 pixels). .

【0185】また、符号化する処理単位のブロックの大
きさが、例えば8×8画素である場合に、例えば図6
(b)に示すように、パラメータブロックサイズの4倍
の大きさが、画像を符号化する処理単位のブロック(図
6(b)において、実線で示すブロック)の大きさに設
定されているとき、代表値計算回路5、または量子化幅
計算回路6において、4つのパラメータブロック(図6
(b)において、点線で示す4つのブロック)ごとに代
表値データ、または量子化幅Qが順次決定され、代表値
差分器31および代表値加算器32、またはブロック量
子化器7およびブロック逆量子化器8にそれぞれ供給さ
れる。
Further, when the size of the block of the processing unit to be encoded is 8 × 8 pixels, for example, FIG.
As shown in (b), when the size four times the parameter block size is set to the size of the block of the processing unit for encoding the image (the block indicated by the solid line in FIG. 6B) , The representative value calculation circuit 5 or the quantization width calculation circuit 6 has four parameter blocks (see FIG.
In (b), the representative value data or the quantization width Q is sequentially determined for each of the four blocks indicated by the dotted line, and the representative value differencer 31 and the representative value adder 32, or the block quantizer 7 and the block dequantizer It is supplied to each rectifier 8.

【0186】そして、代表値差分器31およびブロック
量子化器7において、パラメータブロックとしての4つ
の4×4画素のブロックごとに決定された代表値データ
および量子化幅Qによって、演算器3からの8×8画素
のブロックのビット精度が、そのブロックを構成する4
つの4×4画素のブロック(パラメータブロック)ごと
に、図1の画像符号化装置におけるときと同様にして8
ビット精度にそれぞれ変換され、差分信号符号化器8で
符号化される。
Then, in the representative value differentiator 31 and the block quantizer 7, the representative value data and the quantization width Q determined for each of the four 4 × 4 pixel blocks as parameter blocks The bit precision of a block of 8 × 8 pixels constitutes the block 4
For each 4 × 4 pixel block (parameter block), 8 blocks are generated in the same manner as in the image coding apparatus of FIG.
Each is converted into bit precision and encoded by the differential signal encoder 8.

【0187】また、パラメータブロックごとに決定され
た4つの代表値データまたは量子化幅Qは、バッファ3
4または33にそれぞれ順次供給されて記憶される。こ
のバッファ34または33に記憶された代表値データま
たは量子化幅Qは、4つのパラメータブロックから構成
される8×8画素のブロック(画像を符号化する処理単
位のブロック)が差分信号符号化器8で符号化され、V
LC回路15に供給されると、VLC回路15へ読み出
される。そして、VLC回路15において、装置に入力
されたビット精度およびパラメータブロックサイズ、バ
ッファ33または34からの量子化幅Qまたは代表値デ
ータ、並びに動き予測回路2からの動きベクトルおよび
動き補償モードが可変長符号化され、図示せぬ送信バッ
ファを介してディスク17に出力されて記録される。
Also, the four representative value data or the quantization width Q determined for each parameter block are stored in the buffer 3
4 and 33 are sequentially supplied and stored respectively. In the representative value data or the quantization width Q stored in the buffer 34 or 33, a block of 8 × 8 pixels (block of a processing unit for encoding an image) composed of four parameter blocks is a difference signal encoder. Coded with 8, V
When supplied to the LC circuit 15, it is read out to the VLC circuit 15. Then, in the VLC circuit 15, the bit precision and the parameter block size input to the device, the quantization width Q or the representative value data from the buffer 33 or 34, and the motion vector and the motion compensation mode from the motion prediction circuit 2 are variable length. The data is encoded and output to the disk 17 via a transmission buffer (not shown) for recording.

【0188】この場合、VLC回路15では、パラメー
タブロックとしての4つの4×4画素のブロックからな
る8×8画素のブロックごとのヘッダに、その4つのパ
ラメータブロックの代表値データおよび量子化幅Qが付
加される。
In this case, in the VLC circuit 15, the representative value data and the quantization width Q of the four parameter blocks are added to the header of each block of 8 × 8 pixels, which is composed of four 4 × 4 pixel blocks as parameter blocks. Is added.

【0189】例えば、変化の激しい画像においては、ブ
ロックのダイナミックレンジが大きく、このような画像
においては、上述したように画像を符号化する処理単位
のブロックより小さな領域ブロック(パラメータブロッ
ク)ごとに、代表値データおよび量子化幅Qを決定し
て、ビット精度を変換するようにすることにより、画質
の解像度の低下を防止することができる。
For example, in an image that changes drastically, the dynamic range of blocks is large, and in such an image, for each region block (parameter block) smaller than the block of the processing unit for encoding the image as described above, By determining the representative value data and the quantization width Q and converting the bit precision, it is possible to prevent deterioration of the resolution of the image quality.

【0190】一方、差分信号符号化器8の出力は、VL
C回路15だけでなく、差分信号復号化器10にも供給
され、以下図1における場合と同様の処理が行われる。
On the other hand, the output of the differential signal encoder 8 is VL
The signal is supplied not only to the C circuit 15 but also to the differential signal decoder 10, and the same processing as in the case of FIG. 1 is performed.

【0191】但し、代表値加算器32は、図1の演算器
11に対応するものであり、この代表値加算器31およ
びブロック逆量子化器10においては、差分信号復号化
器9からのブロックのビット精度が、パラメータブロッ
ク単位で装置に入力された画像のビット精度に変換され
るようになされている。
However, the representative value adder 32 corresponds to the arithmetic unit 11 in FIG. 1, and in the representative value adder 31 and the block dequantizer 10, the block from the differential signal decoder 9 is changed. The bit precision of is converted into the bit precision of the image input to the device in units of parameter blocks.

【0192】なお、この画像符号化装置においては、パ
ラメータブロックサイズおよび画像のビット精度を、1
画面、1GOP、または1シーケンスの領域単位で変化
させる場合、ピクチャレイヤのヘッダ、GOPレイヤの
ヘッダ、またはシーケンスヘッダに、そのことを示す情
報がそれぞれ付加されるようになされている。
In this image coding apparatus, the parameter block size and the bit precision of the image are set to 1
When changing in units of screen, 1 GOP, or 1 sequence area, information indicating that is added to the header of the picture layer, the header of the GOP layer, or the sequence header, respectively.

【0193】また、この画像符号化装置では、装置に入
力されたビット精度が、差分信号符号化器8のビット精
度と同一の場合(本実施例においては、8ビット精度)
代表値計算回路5からは、代表値データとして0が出力
され、量子化幅計算回路6からは1が出力されるように
なされている。従って、この場合、代表値差分器31、
ブロック量子化器7、ブロック逆量子化器10、および
代表値加算器32は、実質的に動作しないことになる。
Further, in this image encoding device, when the bit precision input to the device is the same as the bit precision of the differential signal encoder 8 (in this embodiment, 8-bit precision).
The representative value calculation circuit 5 outputs 0 as representative value data, and the quantization width calculation circuit 6 outputs 1. Therefore, in this case, the representative value differencer 31,
The block quantizer 7, the block dequantizer 10, and the representative value adder 32 are substantially inoperative.

【0194】次に、図7は、本発明の画像復号化装置の
第2実施例の構成を示すブロック図である。図中、図4
における場合と対応する部分については、同一の符号を
付してある。この画像復号化装置は、図5に示す画像符
号化装置(または図1に示す画像符号化装置)により符
号化された画像を復号することができるようになされて
いる。
Next, FIG. 7 is a block diagram showing the configuration of the second embodiment of the image decoding apparatus of the present invention. In the figure,
The same reference numerals are given to the portions corresponding to the case of. This image decoding apparatus is adapted to be able to decode the image coded by the image coding apparatus shown in FIG. 5 (or the image coding apparatus shown in FIG. 1).

【0195】即ち、この画像復号化装置においては、デ
ィスク17(図1)から、そこに記録されたビットスト
リームが再生され、再生ビットストリームが逆VLC回
路21に供給される。逆VLC回路21は、ビットスト
リームを可変長復号化し、そこから、ビット精度、パラ
メータブロックサイズ、代表値データ、量子化幅Q、動
きベクトル、および動き補償モードを分離する。
That is, in this image decoding apparatus, the bit stream recorded therein is reproduced from the disk 17 (FIG. 1), and the reproduced bit stream is supplied to the inverse VLC circuit 21. The inverse VLC circuit 21 performs variable length decoding on the bit stream, and separates the bit precision, the parameter block size, the representative value data, the quantization width Q, the motion vector, and the motion compensation mode.

【0196】そして、逆VLC回路21は、代表値デー
タまたは量子化幅Qをバッファ42または43に出力
し、記憶させるとともに、パラメータブロックサイズを
ブロック逆量子化器23および代表値加算器41に出力
する。
Then, the inverse VLC circuit 21 outputs the representative value data or the quantization width Q to the buffer 42 or 43 for storage, and outputs the parameter block size to the block inverse quantizer 23 and the representative value adder 41. To do.

【0197】また、逆VLC回路21は、可変長復号化
した画像データのブロックおよび量子化幅Sを差分信号
復号化器22に順次供給する。
Further, the inverse VLC circuit 21 sequentially supplies the variable length decoded image data block and the quantization width S to the differential signal decoder 22.

【0198】差分信号復号化器22では、逆VLC回路
21からの画像データのブロックが、量子化幅Sで逆量
子化され、さらに逆DCT処理されてブロック逆量子化
器23、代表値加算器41に順次出力される。
In the differential signal decoder 22, the block of the image data from the inverse VLC circuit 21 is inversely quantized with the quantization width S, and further inverse DCT processing is performed to obtain the block inverse quantizer 23 and the representative value adder. It is sequentially output to 41.

【0199】代表値加算器41は、図4に示す画像復号
化装置の演算器24に対応するもので、この代表値加算
器41およびブロック逆量子化器23においては、差分
信号復号化器22からのデータのビット精度(差分信号
復号化器22のビット精度、本実施例においては、8ビ
ット精度)が、パラメータブロック単位で、元の画像の
ビット精度(図5の画像符号化装置で符号化される前の
画像のビット精度)に変換されるようになされている。
The representative value adder 41 corresponds to the arithmetic unit 24 of the image decoding apparatus shown in FIG. 4, and in the representative value adder 41 and the block dequantizer 23, the differential signal decoder 22 is used. The bit precision of the data from (the bit precision of the differential signal decoder 22, in the present embodiment, 8 bit precision) is the bit precision of the original image in units of parameter blocks (coded by the image coding apparatus of FIG. 5). Bit precision of the image before being converted).

【0200】ここで、この画像復号化装置における画像
を復号化する処理単位のブロックの大きさは、図5の画
像符号化装置における画像を符号化する処理単位のブロ
ックと同一になされている。即ち、この画像復号化装置
は、8×8画素のブロック単位で画像を復号化するよう
になされている。
Here, the size of the block of the processing unit for decoding the image in this image decoding device is the same as the block of the processing unit for coding the image in the image coding device of FIG. That is, this image decoding apparatus is designed to decode an image in block units of 8 × 8 pixels.

【0201】従って、図5の画像符号化装置における場
合と同様に、画像を復号化する処理単位のブロックの大
きさと、逆VLC回路21が出力するパラメータブロッ
クサイズとは、整数倍の関係を有するように設定される
ようになされている。
Therefore, as in the case of the image coding apparatus of FIG. 5, the block size of the processing unit for decoding an image and the parameter block size output from the inverse VLC circuit 21 have an integral multiple relationship. It is designed to be set as follows.

【0202】例えば図6(a)に示すように、パラメー
タブロックサイズが設定されている場合、ブロック逆量
子化器23および代表値加算器41においては、パラメ
ータブロックブロックとしての4つの8×8画素のブロ
ックすべてのビット精度が、バッファ42または43に
それぞれ記憶された同一の代表値データまたは量子化幅
Qによって、元の画像のビット精度に順次変換される。
For example, as shown in FIG. 6A, when the parameter block size is set, in the block dequantizer 23 and the representative value adder 41, four 8 × 8 pixels as parameter block blocks are set. The bit precision of all blocks is sequentially converted to the bit precision of the original image by the same representative value data or the quantization width Q stored in the buffer 42 or 43, respectively.

【0203】また、例えば図6(b)に示すように、パ
ラメータブロックサイズが設定されている場合、ブロッ
ク逆量子化器23および代表値加算器41においては、
4つの4×4画素のブロックの各代表値データまたは量
子化幅Qが逆VLC回路21から出力され、バッファ4
2または43それぞれに記憶されるのを待って、差分信
号復号化器22からのデータのビット精度に変換が行わ
れる。
Further, for example, as shown in FIG. 6B, when the parameter block size is set, in the block dequantizer 23 and the representative value adder 41,
The representative value data or the quantization width Q of the four 4 × 4 pixel blocks is output from the inverse VLC circuit 21, and the buffer 4
After being stored in 2 or 43 respectively, conversion is performed to the bit precision of the data from the differential signal decoder 22.

【0204】即ち、この場合、ブロック逆量子化器23
および代表値加算器41において、画像を復号する処理
単位の8×8画素のブロックのビット精度が、4つの4
×4画素のブロック(パラメータブロック)ごとに、そ
れぞれの代表値データおよび量子化幅Qに基づいて、元
の画像のビット精度に変換されることになる。
That is, in this case, the block inverse quantizer 23
In the representative value adder 41, the bit precision of the block of 8 × 8 pixels, which is the processing unit for decoding the image, is 4
Each block (parameter block) of × 4 pixels is converted into the bit precision of the original image based on the representative value data and the quantization width Q.

【0205】ブロック逆量子化器23および代表値加算
器41においてビット精度の変換されたデータは、演算
器24に入力され、以下図4の画像復号化装置における
場合と同様にして復号される。
The data whose bit precision has been converted by the block dequantizer 23 and the representative value adder 41 is input to the calculator 24, and is decoded in the same manner as in the image decoding apparatus shown in FIG.

【0206】なお、この画像復号化装置では、逆VLC
回路21で分離されたビット精度が、差分信号符号化器
22のビット精度と同一の場合(本実施例においては、
8ビット精度)、逆VLC回路21からは、代表値デー
タとして0が出力されるとともに、、量子化幅Qとして
1が出力されるようになされている。従って、この場
合、ブロック逆量子化器23および代表値加算器41
は、実質的に動作しないことになる。
In this image decoding device, the inverse VLC is used.
When the bit precision separated by the circuit 21 is the same as the bit precision of the differential signal encoder 22 (in the present embodiment,
(8-bit precision), the inverse VLC circuit 21 outputs 0 as the representative value data and 1 as the quantization width Q. Therefore, in this case, the block dequantizer 23 and the representative value adder 41
Would essentially not work.

【0207】次に、図8は、本発明の画像復号化装置の
第3実施例の構成を示すブロック図である。この画像復
号化装置は、代表値加算器41と演算器24との間にブ
ロック量子化器51が設けられている他は、図7に示す
画像復号化装置と同様に構成されている。
Next, FIG. 8 is a block diagram showing the configuration of the third embodiment of the image decoding apparatus of the present invention. This image decoding apparatus is configured similarly to the image decoding apparatus shown in FIG. 7, except that a block quantizer 51 is provided between the representative value adder 41 and the arithmetic unit 24.

【0208】従って、画像復号化装置は、図5(または
図1)の画像符号化装置などにより符号化された画像を
復号することができる。
Therefore, the image decoding apparatus can decode the image coded by the image coding apparatus of FIG. 5 (or FIG. 1) or the like.

【0209】さらに、この画像復号化装置においては、
図1に示す画像符号化装置のブロック量子化器7と同様
に構成されたブロック量子化器51が、逆VLC回路2
1より供給される、元の画像のビット精度に基づいて、
代表値加算器41から出力された画像データのビット精
度を、所定のビット精度(例えば、8ビット精度)に変
換するようになされている。
Furthermore, in this image decoding device,
The block quantizer 51 configured similarly to the block quantizer 7 of the image coding apparatus shown in FIG.
Based on the bit precision of the original image, which is supplied from 1,
The bit precision of the image data output from the representative value adder 41 is converted into a predetermined bit precision (for example, 8-bit precision).

【0210】即ち、代表値加算器41より出力された画
像データのビット精度が、例えば10ビット精度であっ
た場合(元の画像のビット精度が10ビット精度であっ
た場合)、逆VLC回路21から、10ビット精度を示
すコードがブロック量子化器51に供給される。
That is, when the bit precision of the image data output from the representative value adder 41 is, for example, 10 bit precision (when the bit precision of the original image is 10 bit precision), the inverse VLC circuit 21. From, the code indicating the 10-bit precision is supplied to the block quantizer 51.

【0211】ここで、10ビット精度の画像を、例えば
8ビット精度の画像に変換するには、10ビット精度の
画像(画像の画素データすべて)を2の2(=10−
8)乗で除算すれば良い。また、10ビット精度の画像
を、例えば9ビット精度の画像に変換するには、10ビ
ット精度の画像(画像の画素データすべて)を2の1
(=10−9)乗で除算すれば良い。
Here, in order to convert a 10-bit precision image into, for example, an 8-bit precision image, the 10-bit precision image (all pixel data of the image) is converted into 2 of 2 (= 10-
8) Divide by the power. To convert a 10-bit precision image into, for example, a 9-bit precision image, the 10-bit precision image (all the pixel data of the image) is converted into 2 of 1.
It may be divided by the (= 10−9) th power.

【0212】従って、画像を、例えば8ビット精度で復
号しようとする場合、逆VLC回路21から、10ビッ
ト精度を示すコードが出力されたときには、ブロック量
子化器51において、代表値加算器41より出力された
10ビット精度の画像データが、22で除算され、8ビ
ット精度の画像データに変換される。
Therefore, when an image is to be decoded with 8-bit precision, for example, when a code indicating 10-bit precision is output from the inverse VLC circuit 21, the representative value adder 41 in the block quantizer 51 is used. The output 10-bit precision image data is divided by 2 2 and converted into 8-bit precision image data.

【0213】よって、使用者の欲するビット精度で画像
を復号することができる。
Therefore, the image can be decoded with the bit precision desired by the user.

【0214】さらに、この場合、フィールドメモリ群2
6には、演算器24を介してブロック量子化器51から
出力された8ビット精度の画像データが供給される。
Further, in this case, the field memory group 2
The image data of 8-bit precision output from the block quantizer 51 is supplied to 6 via the calculator 24.

【0215】従って、このフィールドメモリ群26は、
図4に示す画像復号化装置における場合のように10ビ
ット精度の画像データよりビット数の少ない、汎用精の
高い8ビット精度の画像データを記憶することができる
メモリにすることができ、装置の低コスト化を図ること
ができる。
Therefore, the field memory group 26 is
As in the case of the image decoding apparatus shown in FIG. 4, a memory that can store highly versatile 8-bit precision image data having a smaller number of bits than 10-bit precision image data can be provided. Cost reduction can be achieved.

【0216】次に、図9は、本発明の画像復号化装置の
第4実施例の構成を示すブロック図である。この画像復
号化装置は、ビット判定回路61および表示制御回路6
2が設けられているとともに、逆VLC回路124の代
わりに、図8に画像復号化装置における場合と同様に構
成される逆VLC回路21が設けられている他は、図2
1に示す画像復号化装置と同様に構成されている。
Next, FIG. 9 is a block diagram showing the configuration of the fourth embodiment of the image decoding apparatus of the present invention. This image decoding device includes a bit determination circuit 61 and a display control circuit 6.
2 is provided, and instead of the inverse VLC circuit 124, an inverse VLC circuit 21 having the same configuration as in the image decoding apparatus is provided in FIG.
The image decoding device shown in FIG.

【0217】この画像復号化装置においては、逆VLC
回路21において、ビットストリームから、元の画像の
ビット精度が分離され、ビット精度判定回路61に供給
されるようになされている。
In this image decoding device, the inverse VLC is used.
In the circuit 21, the bit precision of the original image is separated from the bit stream and supplied to the bit precision determination circuit 61.

【0218】ビット精度判定回路61においては、まず
逆VLC回路21から供給されたビット精度が、差分信
号復号化器22におけるビット精度(差分信号復号化器
22が処理することが可能なビット精度)(本実施例に
おいては、8ビット精度)であるか否かが判定される。
In the bit precision determination circuit 61, first, the bit precision supplied from the inverse VLC circuit 21 is the bit precision in the differential signal decoder 22 (the bit precision which the differential signal decoder 22 can process). (In this embodiment, 8-bit precision) is determined.

【0219】ビット精度判定回路61において、逆VL
C回路21から供給されたビット精度が8ビット精度以
下であると判定された場合、この画像復号化装置におい
ては、図20における場合と同様の処理が行われ、8ビ
ット精度の画像が復号される。
In the bit precision determination circuit 61, the inverse VL
When it is determined that the bit precision supplied from the C circuit 21 is equal to or less than 8 bit precision, this image decoding apparatus performs the same processing as in FIG. 20 to decode the image of 8 bit precision. It

【0220】また、ビット精度判定回路61において、
逆VLC回路21から供給されたビット精度が8ビット
精度より大きいと判定された場合、即ち装置に供給され
たビットストリームに対応する元の画像のビット精度が
8ビット精度より高精度である場合、この画像復号化装
置では、その復号処理をすることができないので、差分
信号復号化器22およびフィールドメモリ群26に、そ
の動作を停止させる制御信号が供給される。
In the bit precision judgment circuit 61,
When it is determined that the bit precision supplied from the inverse VLC circuit 21 is larger than the 8-bit precision, that is, when the bit precision of the original image corresponding to the bit stream supplied to the device is higher than the 8-bit precision, Since this image decoding device cannot perform the decoding process, the differential signal decoder 22 and the field memory group 26 are supplied with a control signal for stopping their operations.

【0221】差分信号復号化器22およびフィールドメ
モリ群26において、ビット精度判定回路61からの制
御信号が受信されると、その動作が停止される。
When the differential signal decoder 22 and the field memory group 26 receive the control signal from the bit precision determination circuit 61, the operation thereof is stopped.

【0222】同時に、ビット精度判定回路61におい
て、表示制御回路62に対し、装置に入力されたビット
ストリームの復号処理をすることができないメッセージ
(例えば、「復号不可」など)を出力するように制御信
号が出力される。
At the same time, the bit precision judgment circuit 61 controls the display control circuit 62 to output a message (for example, "decoding not possible") incapable of decoding the bit stream input to the device. The signal is output.

【0223】表示制御回路62において、ビット精度判
定回路61からの制御信号が受信されると、メッセージ
「復号不可」が図示せぬディスプレイに出力されて表示
される。
When the display control circuit 62 receives the control signal from the bit precision determination circuit 61, the message "decoding not possible" is output to a display (not shown) and displayed.

【0224】従って、装置に、復号することのできない
ビット精度の画像に対応するビットストリームが入力さ
れた場合、メッセージ「復号不可」が表示されるので、
装置に復号することができないデータが入力されたこと
を、使用者に知らせることができる。
Therefore, when a bit stream corresponding to an image with a bit precision that cannot be decoded is input to the apparatus, the message "decoding not possible" is displayed.
The user can be notified that data that cannot be decrypted has been input to the device.

【0225】次に、図10は、本発明の画像符号化装置
の第3実施例の構成を示すブロック図である。図中、図
1における場合と対応する部分については、同一の符号
を付してある。
Next, FIG. 10 is a block diagram showing the configuration of the third embodiment of the image coding apparatus of the present invention. In the figure, parts corresponding to those in FIG. 1 are designated by the same reference numerals.

【0226】分離回路72は、図11(a)に示すよう
に、図1の量子化幅計算回路6、代表値計算回路5、演
算器4、またはブロック量子化器7とそれぞれ同様に構
成される量子化幅計算回路91、代表値計算回路92、
演算器93、またはブロック量子化器94から構成され
る。
As shown in FIG. 11A, the separation circuit 72 is configured in the same way as the quantization width calculation circuit 6, the representative value calculation circuit 5, the calculator 4 or the block quantizer 7 of FIG. Quantization width calculation circuit 91, representative value calculation circuit 92,
It is composed of an arithmetic unit 93 or a block quantizer 94.

【0227】分離回路72においては、ビット精度が、
例えば10ビット精度の画像データのブロックが入力さ
れると、量子化幅計算回路91または代表値計算回路9
2でそのブロックの量子化幅Qまたは代表値データがそ
れぞれ計算されて出力される。
In the separation circuit 72, the bit precision is
For example, when a block of 10-bit precision image data is input, the quantization width calculation circuit 91 or the representative value calculation circuit 9
At 2, the quantization width Q or the representative value data of the block is calculated and output.

【0228】そして、分離回路72においては、図1の
演算器4およびブロック量子化器7に対応する演算器9
3およびブロック量子化器94で、10ビット精度の画
像データが、代表値データとの差分がとられ、量子化幅
Qで量子化されることにより、差分信号符号化器8のビ
ット精度と同一のビット精度の画像データに変換されて
出力される。
Then, in the separation circuit 72, the arithmetic unit 9 corresponding to the arithmetic unit 4 and the block quantizer 7 of FIG.
3 and the block quantizer 94 obtains the difference between the image data of 10-bit precision and the representative value data and quantizes the image data with the quantization width Q to obtain the same bit precision as that of the difference signal encoder 8. The image data is converted into bit precision image data and output.

【0229】分離回路72(図10)からの量子化幅
Q、代表値データ、または画像データのブロックは、メ
モリ部73の量子化幅メモリ群73a、代表値メモリ群
73b、またはフィールドメモリ群73cにそれぞれ出
力されて記憶される。
The block of the quantization width Q, the representative value data, or the image data from the separation circuit 72 (FIG. 10) is the quantization width memory group 73a, the representative value memory group 73b, or the field memory group 73c of the memory section 73. Is output to and stored in each.

【0230】ここで、入力された画像データのブロック
のビット精度が10ビット精度であり、それを上述した
ように8ビット精度の画像データのブロックに変換する
場合、量子化幅Qは、図1における場合と同様に、1,
2,3、または4のうちのいずれかの値となる。
Here, when the bit precision of the block of the input image data is 10-bit precision and it is converted into the block of image data of 8-bit precision as described above, the quantization width Q is as shown in FIG. , As in
It has a value of either 2, 3, or 4.

【0231】従って、この場合、量子化幅Qは、2ビッ
トで表すことができ、分離回路72からメモリ部73の
量子化幅メモリ群73aには、2ビットの量子化幅Qが
供給される。
Therefore, in this case, the quantization width Q can be represented by 2 bits, and the separation circuit 72 supplies the quantization width Q of 2 bits to the quantization width memory group 73a of the memory section 73. .

【0232】よって、この場合、量子化幅メモリ群73
aには、2ビット幅のメモリから構成されたものを使用
することができる。
Therefore, in this case, the quantization width memory group 73
As a, a memory composed of a 2-bit width memory can be used.

【0233】さらに、代表値データは、入力された画像
データのブロック(ブロック内の画素データ)の、例え
ば最小値や、その最小値と最大値の平均値などであるか
ら、入力された画像データのブロックのビット精度が1
0ビット精度であれば、少なくとも10ビットで表すこ
とができる。
Further, since the representative value data is, for example, the minimum value or the average value of the minimum value and the maximum value of the block of the input image data (pixel data in the block), the input image data Bit precision of block is 1
With 0-bit precision, it can be represented by at least 10 bits.

【0234】従って、この場合、メモリ部73の代表値
メモリ群73bには、10ビット幅のメモリから構成さ
れたものを使用する必要がある。
Therefore, in this case, as the representative value memory group 73b of the memory section 73, it is necessary to use a memory composed of a memory of 10-bit width.

【0235】また、分離回路72から出力される画像デ
ータは、そのビット精度が、上述したように8ビット精
度に変換されたものであるから、メモリ部73のフィー
ルドメモリ群73cには、汎用性の高い8ビット幅のメ
モリから構成されたものを使用することができる。
Further, since the bit precision of the image data output from the separation circuit 72 is converted to the 8-bit precision as described above, the field memory group 73c of the memory section 73 has versatility. A high-bit width 8-bit memory can be used.

【0236】ところで、量子化幅メモリ群73a、代表
値メモリ群73b、およびフィールドメモリ群73bか
らなるメモリ部73は、図1のフィールドメモリ群1に
対応するものである。
The memory unit 73 including the quantization width memory group 73a, the representative value memory group 73b, and the field memory group 73b corresponds to the field memory group 1 in FIG.

【0237】10ビット精度の画像データのブロックが
装置に入力される場合、図1のフィールドメモリ群1に
は、上述したように10ビット精度の画像データを記憶
することのできるメモリ、即ち10ビット幅のメモリを
使用する必要があった。
When a block of 10-bit precision image data is input to the device, the field memory group 1 of FIG. 1 has a memory capable of storing 10-bit precision image data as described above, that is, 10-bit precision. Had to use wide memory.

【0238】しかしながら、図10の画像符号化装置で
は、分離回路72によって10ビット精度の画像データ
のブロックが8ビット精度の画像データに変換され、フ
ィールドメモリ群73cに出力されるので、フィールド
メモリ群73cには、上述したように汎用性の高い8ビ
ット幅のメモリを用いることができる。
However, in the image coding apparatus of FIG. 10, the separation circuit 72 converts a block of 10-bit precision image data into 8-bit precision image data and outputs it to the field memory group 73c. For the 73c, an 8-bit wide memory having high versatility as described above can be used.

【0239】従って、装置の低コスト化を図ることがで
きる。
Therefore, the cost of the device can be reduced.

【0240】なお、図10に示す画像符号化装置におい
ては、画像データを記憶するフィールドメモリ群73c
の他、量子化幅メモリ群73aまたは代表値メモリ群7
3bが必要であるが、それぞれに記憶される量子化幅Q
または代表値データは、分離回路72からブロックごと
に1つずつ出力されるデータ(パラメータ)であり、従
って量子化幅メモリ群73aおよび代表値メモリ群73
bを構成するメモリの数は、画素データを記憶するフィ
ールドメモリ群73を構成するメモリの数に比較して非
常に少なくて済み、量子化幅メモリ群73aおよび代表
値メモリ群73bを設けることによる装置のコストへの
影響は少ない。
In the image coding apparatus shown in FIG. 10, the field memory group 73c for storing image data is used.
Other than the quantization width memory group 73a or the representative value memory group 7
3b is required, but the quantization width Q stored in each is
Alternatively, the representative value data is data (parameter) output from the separation circuit 72 one by one for each block, and therefore, the quantization width memory group 73a and the representative value memory group 73 are included.
The number of memories forming b is much smaller than the number of memories forming the field memory group 73 for storing pixel data, and the quantization width memory group 73a and the representative value memory group 73b are provided. The cost of the device is not affected.

【0241】量子化幅メモリ群73a、代表値メモリ群
73b、またはフィールドメモリ群73cにそれぞれ記
憶された量子化幅Q、代表値データ、または8ビット精
度の画像データのブロックは、メモリコントローラ81
によって入力画像の同期信号に対応して生成されたタイ
ミング制御信号に基づいて、符号化する順番に順次読み
出され、合成回路74に供給される。
The blocks of quantization width Q, representative value data, or 8-bit precision image data stored in the quantization width memory group 73a, representative value memory group 73b, or field memory group 73c, respectively, are stored in the memory controller 81.
On the basis of the timing control signal generated corresponding to the synchronizing signal of the input image, the signals are sequentially read in the order of encoding and supplied to the synthesizing circuit 74.

【0242】合成回路74は、図11(b)に示すよう
に、図1の画像符号化装置のブロック逆量子化器10ま
たは演算器11にそれぞれ対応するブロック逆量子化器
95または演算器96から構成される。
As shown in FIG. 11B, the synthesizing circuit 74 has a block dequantizer 95 or a calculator 96 corresponding to the block dequantizer 10 or the calculator 11 of the image coding apparatus of FIG. Composed of.

【0243】ブロック逆量子化器95および演算器96
においては、フィールドメモリ群73cからの8ビット
精度の画像データが、量子化幅メモリ群73aからの量
子化幅Qで逆量子化され、代表値メモリ群73bからの
代表値データが加算されることにより、分離回路72に
入力される前の画像データと同様の10ビット精度の画
像データに変換されて出力される。
Block inverse quantizer 95 and calculator 96
In the above, the 8-bit precision image data from the field memory group 73c is dequantized with the quantization width Q from the quantization width memory group 73a, and the representative value data from the representative value memory group 73b is added. Thus, the image data is converted into image data of 10-bit precision similar to the image data before being input to the separation circuit 72 and is output.

【0244】合成回路74から出力された10ビット精
度の画像データは、演算器3を介して、分離回路72と
同様に構成される分離回路75に入力される。分離回路
75では、分離回路72における場合と同様にして、1
0ビット精度の画像データのブロックが、8ビット精度
の画像データのブロック、量子化幅Q、および代表値デ
ータに変換されて出力される。
The 10-bit precision image data output from the synthesizing circuit 74 is input to the separating circuit 75 configured similarly to the separating circuit 72 via the arithmetic unit 3. In the separation circuit 75, as in the case of the separation circuit 72, 1
A block of 0-bit precision image data is converted into a block of 8-bit precision image data, a quantization width Q, and representative value data, and is output.

【0245】分離回路75から出力された8ビット精度
の画像データは、8ビット精度の画像データを処理する
回路として設計された差分信号符号化器8に入力され、
そこで符号化される(DCT処理され、量子化され
る)。
The 8-bit precision image data output from the separation circuit 75 is input to the differential signal encoder 8 designed as a circuit for processing 8-bit precision image data.
There, it is encoded (DCT processed and quantized).

【0246】差分信号符号化器8で符号化された画像デ
ータのブロックは、分離回路75から出力された量子化
幅Qおよび代表値データ、並びに動き予測回路2から動
き補償回路71を介して出力された動きベクトルおよび
動き補償モードとともに符号化器76に入力され、そこ
で可変長符号化されて図示せぬ送信バッファを介して出
力される。
The block of image data encoded by the differential signal encoder 8 is output from the quantization circuit Q and the representative value data output from the separation circuit 75, and the motion prediction circuit 2 via the motion compensation circuit 71. It is input to the encoder 76 together with the motion vector and the motion compensation mode that have been selected, where it is variable-length coded and output via a transmission buffer (not shown).

【0247】符号化器76から出力されたビットストリ
ームは、図1における場合と同様にしてディスク17
(図10においては、図示せず)などに記録される。
The bit stream output from the encoder 76 is the same as in the case of FIG.
(Not shown in FIG. 10) or the like.

【0248】なお、符号化器76では、符号化された画
像データのブロックごとのヘッダに、そのブロックの代
表値データおよび量子化幅Qが付加されるようになされ
ている。
In the encoder 76, the representative value data of the block and the quantization width Q are added to the header of each block of the encoded image data.

【0249】また、差分信号符号化器8で符号化された
画像データのブロックは、差分信号復号化器9にも供給
され、そこで復号化され(逆量子化されて逆DCT処理
され)、分離回路75から出力された量子化幅Qおよび
代表値データとともに、合成回路74と同様に構成され
る合成回路77に入力される。
The block of image data encoded by the differential signal encoder 8 is also supplied to the differential signal decoder 9 where it is decoded (dequantized and inverse DCT processed) and separated. The quantization width Q and the representative value data output from the circuit 75 are input to a combining circuit 77 configured similarly to the combining circuit 74.

【0250】合成回路74では、差分信号復号化器9か
らの画像データ(8ビット精度の画像データ)が、分離
回路75からの量子化幅Qおよび代表値データに基づい
て、10ビット精度の画像データに変換され、演算器1
2に出力される。
In the synthesizing circuit 74, the image data (8-bit precision image data) from the differential signal decoder 9 is converted into a 10-bit precision image based on the quantization width Q and the representative value data from the separating circuit 75. Converted to data, arithmetic unit 1
2 is output.

【0251】演算器12には、また、既に復号され、後
述する動き補償回路71で動き補償された予測画像が供
給され、そこでは、この予測画像と合成回路77からの
画像データが加算され、元の10ビット精度の画像デー
タ(符号化される前の10ビット精度の画像データ)と
同一(ほぼ同一)の画像データに復号される。この復号
された10ビット精度の画像データは、分離回路72と
同様に構成される分離回路78に供給され、そこで、再
び8ビット精度の画像データ、量子化幅Q、および代表
値データに変換されて出力される。
The arithmetic unit 12 is also supplied with a prediction image which has already been decoded and motion-compensated by the motion compensation circuit 71, which will be described later, in which the prediction image and the image data from the synthesizing circuit 77 are added, The original image data of 10-bit precision (image data of 10-bit precision before encoding) is decoded to be the same (almost the same) image data. This decoded 10-bit precision image data is supplied to a separation circuit 78 configured similarly to the separation circuit 72, and is converted again into 8-bit precision image data, quantization width Q, and representative value data. Is output.

【0252】分離回路78からの8ビット精度の画像デ
ータ、量子化幅Q、または代表値データは、メモリ部7
9のフィールドメモリ群79c、代表値メモリ群79
b、または量子化幅メモリ群79aにそれぞれ供給され
て記憶される。
The 8-bit precision image data, the quantization width Q, or the representative value data from the separation circuit 78 is stored in the memory unit 7.
9 field memory group 79c, representative value memory group 79
b, or supplied to and stored in the quantization width memory group 79a.

【0253】メモリ部79の量子化幅メモリ群79a、
代表値メモリ群79b、またはフィールドメモリ群79
cは、図1のフィールドメモリ群13に対応するもの
で、メモリ部73の量子化幅メモリ群73a代表値メモ
リ群73b、またはフィールドメモリ群73cとそれぞ
れ同様に構成されている。
Quantization width memory group 79a of the memory unit 79,
Representative value memory group 79b or field memory group 79
c corresponds to the field memory group 13 in FIG. 1, and is configured similarly to the quantization width memory group 73a of the memory unit 73, the representative value memory group 73b, or the field memory group 73c.

【0254】従って、フィールドメモリ群79cは、汎
用性の高い8ビット幅のメモリによって構成することが
でき、また上述したように、量子化幅メモリ群79aお
よび代表値メモリ群79bを構成するメモリの数は少な
くて済むので、装置の低コスト化を図ることができる。
Therefore, the field memory group 79c can be constituted by a memory of 8-bit width having high versatility, and as described above, the memory of the quantization width memory group 79a and the representative value memory group 79b can be constituted. Since the number is small, the cost of the device can be reduced.

【0255】一方、動き予測回路2においては、合成回
路74から出力された画像データの動きベクトルが検出
されるとともに、その画像データの動き補償モードが決
定され、動き補償回路71に供給される。
On the other hand, in the motion predicting circuit 2, the motion vector of the image data output from the synthesizing circuit 74 is detected, and the motion compensation mode of the image data is determined and supplied to the motion compensating circuit 71.

【0256】動き補償回路71は、動き予測回路2より
からの動き補償モードに基づいて、メモリ部79の読み
出しアドレスを、動き予測回路2がいま出力しているブ
ロックの位置に対応する位置から動きベクトルに対応す
る分だけずらしてデータを読み出し、合成回路80に供
給する。
The motion compensation circuit 71 moves the read address of the memory unit 79 from the position corresponding to the position of the block currently output by the motion prediction circuit 2 based on the motion compensation mode from the motion prediction circuit 2. The data is read out after being shifted by the amount corresponding to the vector and supplied to the synthesizing circuit 80.

【0257】なお、メモリ部79からのデータの読み出
しタイミングは、メモリコントローラ81によって入力
画像の同期信号に対応して生成されたタイミング制御信
号に基づいて制御されるようになされている。
The timing of reading data from the memory section 79 is controlled based on the timing control signal generated by the memory controller 81 in response to the synchronizing signal of the input image.

【0258】ここで、この画像符号化装置においては、
図1の画像符号化装置と異なり、フィールドメモリ群1
3(図1)に対応するメモリ部79に、装置に入力され
た10ビット精度の画像データが復号された画像データ
そのものが記憶されているのではなく、装置に入力され
た10ビット精度の画像の精度が8ビット精度に変換さ
れた画像が、ブロックごとの量子化幅Qおよび代表値デ
ータとともに記憶されている。
Here, in this image coding apparatus,
Unlike the image coding apparatus in FIG. 1, the field memory group 1
The memory unit 79 corresponding to 3 (FIG. 1) does not store the image data itself obtained by decoding the 10-bit precision image data input to the device, but the 10-bit precision image input to the device. An image whose precision is converted to 8-bit precision is stored together with the quantization width Q and representative value data for each block.

【0259】このため、動き補償回路71においては、
動き予測回路2からの動きベクトルに対応して、メモリ
部79の量子化幅メモリ群79a、代表値メモリ群79
b、またはフィールドメモリ群79cにそれぞれアドレ
スが出力され、フィールドメモリ群79cに記憶された
8ビット精度の画像データのブロックが読み出されると
ともに、そのブロックに対応する、量子化幅メモリ群7
9aまたは代表値メモリ群79bにそれぞれ記憶された
量子化幅Qまたは代表値データが読み出され、合成回路
74と同様に構成される合成回路80に供給される。
Therefore, in the motion compensation circuit 71,
Corresponding to the motion vector from the motion prediction circuit 2, the quantization width memory group 79 a and the representative value memory group 79 of the memory unit 79.
b, or the address is output to the field memory group 79c, the block of 8-bit precision image data stored in the field memory group 79c is read, and the quantization width memory group 7 corresponding to the block is read.
The quantization width Q or the representative value data stored in the group 9a or the representative value memory group 79b is read and supplied to the synthesizing circuit 80 configured similarly to the synthesizing circuit 74.

【0260】そして、合成回路80において、動き補償
回路71によって、量子化幅メモリ群79aまたは代表
値メモリ群79bからそれぞれ読み出された量子化幅Q
または代表値データに基づいて、フィールドメモリ群7
9cから読み出された8ビット精度の画像データのブロ
ックが10ビット精度の画像データに変換され、予測画
像が生成される。
In the synthesizing circuit 80, the quantization width Q read out from the quantization width memory group 79a or the representative value memory group 79b by the motion compensation circuit 71, respectively.
Alternatively, based on the representative value data, the field memory group 7
A block of 8-bit precision image data read from 9c is converted into 10-bit precision image data to generate a predicted image.

【0261】従って、この画像符号化装置において、画
像が、例えば8×8画素のブロックごとに分割されて符
号化されるものとした場合に、動き予測回路2で検出さ
れた動きベクトルが、例えば図12に示すように(−
4,4)であったとき、即ち符号化される画像データの
ブロックにもっとも類似する、既に復号された画像の領
域(ブロック)が、例えば図12に示すように、予測画
像フレームの4つの8×8画素のブロックA,B,C,
Dに、それぞれ4×4画素ずつかかるとき、動き補償回
路71および合成回路80においては、次式に従って、
メモリ部79のフィールドメモリ群79cに記憶された
ブロックA,B,C,Dそれぞれにおける8ビット精度
の画像データが10ビット精度の画像データに変換さ
れ、予測画像(予測画像のブロックにおける各画素デー
タP(i,j)(但し、i,j=0,1,2,・・・,
7で、i,jは画素の位置を示す))が生成される。
Therefore, in this image encoding device, when an image is divided into blocks of 8 × 8 pixels and encoded, the motion vector detected by the motion prediction circuit 2 is, for example, As shown in FIG.
4, 4), that is, the region (block) of the already-decoded image that is most similar to the block of the image data to be coded is, for example, as shown in FIG. × 8 pixel blocks A, B, C,
When 4 × 4 pixels are applied to each D, in the motion compensation circuit 71 and the synthesis circuit 80, according to the following equation,
The 8-bit precision image data in each of the blocks A, B, C, and D stored in the field memory group 79c of the memory unit 79 is converted into 10-bit precision image data, and the prediction image (each pixel data in the block of the prediction image is converted. P (i, j) (where i, j = 0, 1, 2, ...,
At 7, i, j indicate the position of the pixel)).

【0262】つまり、量子化幅メモリ群79cに記憶さ
れた8×8画素のブロックblock(block=
A,B,C,D)の量子化幅QをQ(block)と
し、代表値メモリ群79bに記憶されたブロックblo
ckの代表値データをR(block)とするととも
に、フィールドメモリ群79cに記憶された8×8画素
のブロックblockにおける各画素データをp(bl
ock,i,j)とすると、動き補償回路71および合
成回路80においては、式 P(i,j)=R(A)+Q(A)×p(A,i,j) (但し、0≦i<4且
つ0≦j<4) P(i,j)=R(B)+Q(B)×p(B,i,j) (但し、4≦i<8且
つ0≦j<4) P(i,j)=R(C)+Q(C)×p(C,i,j) (但し、0≦i<4且
つ4≦j<8) P(i,j)=R(D)+Q(D)×p(D,i,j) (但し、4≦i<8且
つ4≦j<8) に従って、予測画像のブロックにおける各画素データP
(i,j)、即ち予測画像が生成される。
That is, the block block of 8 × 8 pixels stored in the quantization width memory group 79c (block =
The quantization width Q of (A, B, C, D) is set to Q (block), and the block block stored in the representative value memory group 79b is stored.
The representative value data of ck is R (block), and each pixel data in the block block of 8 × 8 pixels stored in the field memory group 79c is p (bl).
ock, i, j), in the motion compensation circuit 71 and the synthesis circuit 80, the expression P (i, j) = R (A) + Q (A) × p (A, i, j) (however, 0 ≦ i <4 and 0 ≦ j <4) P (i, j) = R (B) + Q (B) × p (B, i, j) (where 4 ≦ i <8 and 0 ≦ j <4 ) P (i, j) = R (C) + Q (C) × p (C, i, j) (where 0 ≦ i <4 and 4 ≦ j <8) P (i, j) = R ( D) + Q (D) × p (D, i, j) (where 4 ≦ i <8 and 4 ≦ j <8), each pixel data P in the block of the prediction image
(I, j), that is, the predicted image is generated.

【0263】この予測画像は、演算器12に供給され、
そこで、上述したように、元の画像データに復号される
とともに、演算器3に供給され、差分データが生成され
る。
This predicted image is supplied to the arithmetic unit 12,
Therefore, as described above, the original image data is decoded and is supplied to the arithmetic unit 3 to generate the difference data.

【0264】以下、上述した処理が繰り返され、画像の
符号化が行われる。
Thereafter, the above-mentioned processing is repeated to encode the image.

【0265】次に、図13は、本発明の画像復号化装置
の第5実施例の構成を示すブロック図である。図中、図
4における場合と対応する部分については、同一の符号
を付してある。また、図中、ブロック間を接続する線に
付してある数字は、その線によって伝送されるデータの
ビット数を示している。
Next, FIG. 13 is a block diagram showing the configuration of the fifth embodiment of the image decoding apparatus of the present invention. In the figure, portions corresponding to those in FIG. 4 are designated by the same reference numerals. Further, in the figure, the numbers attached to the lines connecting the blocks indicate the number of bits of data transmitted by the lines.

【0266】復号化器101は、ディスク17(図1)
から再生された再生ビットストリームを可変長復号化
し、そこから、ビット精度、パラメータブロックサイ
ズ、代表値データ、量子化幅Q、動きベクトル、および
動き補償モードを分離する。
The decoder 101 is the disk 17 (FIG. 1).
The reproduced bit stream reproduced from is subjected to variable length decoding, and bit precision, parameter block size, representative value data, quantization width Q, motion vector, and motion compensation mode are separated therefrom.

【0267】そして、復号化器101は、代表値データ
または量子化幅Qを図10の合成回路74と同様に構成
される合成回路102に出力するとともに、可変長復号
化した画像データのブロックおよび量子化幅Sを差分信
号復号化器22に順次供給する。
Then, the decoder 101 outputs the representative value data or the quantization width Q to the synthesizing circuit 102 configured similarly to the synthesizing circuit 74 of FIG. The quantization width S is sequentially supplied to the differential signal decoder 22.

【0268】差分信号復号化器22では、復号化器10
1からの画像データのブロックが、逆量子化器121で
量子化幅Sで逆量子化され、さらに逆DCT回路122
で逆DCT処理されて合成回路102に順次出力され
る。
In the differential signal decoder 22, the decoder 10
The block of image data from 1 is inversely quantized by the inverse quantizer 121 with the quantization width S, and the inverse DCT circuit 122
Inverse DCT processing is performed by and is sequentially output to the synthesis circuit 102.

【0269】合成回路102では、図10の合成回路7
4における場合と同様に、差分信号復号化器22から出
力された8ビット精度の画像データが、復号化器101
より出力された量子化幅Qで逆量子化され、同じく復号
化器101より出力された代表値データが加算されるこ
とにより、元の画像データ(符号化される前の画像デー
タ)と同様の10ビット精度の画像データの予測誤差デ
ータに変換されて出力される。
In the synthesis circuit 102, the synthesis circuit 7 of FIG.
As in the case of 4, the 8-bit precision image data output from the differential signal decoder 22 is the decoder 101
Dequantization is performed with the quantization width Q output by the output and the representative value data output by the decoder 101 is added, and the same as the original image data (image data before encoding) is obtained. It is converted into prediction error data of 10-bit precision image data and output.

【0270】合成回路102から出力された10ビット
精度の予測誤差データは、演算器25に供給され、そこ
で後述する合成回路104からの予測画像と加算される
ことにより、10ビット精度の画像データに復号され
る。この復号された画像データは、図10の分離回路7
2と同様に構成される分離回路103に入力される。分
離回路103では、図10の分離回路72における場合
と同様にして、10ビット精度の画像データのブロック
が、8ビット精度の画像データのブロック、量子化幅
Q、および代表値データに変換されて出力される。
The prediction error data of 10-bit precision output from the synthesizing circuit 102 is supplied to the calculator 25, where it is added to the prediction image from the synthesizing circuit 104, which will be described later, to obtain image data of 10-bit precision. Be decrypted. This decoded image data is the separation circuit 7 of FIG.
It is input to the separation circuit 103 configured in the same manner as 2. In the separation circuit 103, a block of 10-bit precision image data is converted into a block of 8-bit precision image data, a quantization width Q, and representative value data in the same manner as in the separation circuit 72 of FIG. Is output.

【0271】分離回路103からの8ビット精度の画像
データ、量子化幅Q、または代表値データは、メモリ部
106のフィールドメモリ群106c、代表値メモリ群
106b、または量子化幅メモリ群106aにそれぞれ
供給されて記憶される。
The 8-bit precision image data, the quantization width Q, or the representative value data from the separation circuit 103 is stored in the field memory group 106c, the representative value memory group 106b, or the quantization width memory group 106a of the memory unit 106, respectively. Supplied and stored.

【0272】メモリ部106の量子化幅メモリ群106
a、代表値メモリ群106b、またはフィールドメモリ
群106cは、図4のフィールドメモリ群26に対応す
るもので、図10のメモリ部73の量子化幅メモリ群7
3a、代表値メモリ群73b、またはフィールドメモリ
群73cとそれぞれ同様に構成されている。
Quantization width memory group 106 of memory unit 106
a, the representative value memory group 106b, or the field memory group 106c corresponds to the field memory group 26 of FIG. 4, and the quantization width memory group 7 of the memory unit 73 of FIG.
3a, the representative value memory group 73b, or the field memory group 73c, respectively.

【0273】従って、フィールドメモリ群106cは、
汎用性の高い8ビット幅のメモリによって構成すること
ができ、また上述したように、量子化幅メモリ群106
aおよび代表値メモリ群106bを構成するメモリの数
は少なくて済むので、装置の低コスト化を図ることがで
きる。
Therefore, the field memory group 106c is
It can be configured by an 8-bit wide memory having high versatility, and as described above, the quantization width memory group 106
Since the number of memories constituting the a and the representative value memory group 106b is small, the cost of the device can be reduced.

【0274】一方、図10の動き補償回路71と同様に
構成される動き補償回路108には、復号化器101か
ら、動き補償モードおよび動きベクトルが供給される。
On the other hand, the motion compensation mode and the motion vector are supplied from the decoder 101 to the motion compensation circuit 108 having the same structure as the motion compensation circuit 71 of FIG.

【0275】動き補償回路108は、復号化器101か
らの動き補償モードに基づいて、メモリ部106の読み
出しアドレスを、同じく復号化器101がいま出力して
いるブロックの位置に対応する位置から動きベクトルに
対応する分だけずらしてデータを読み出し、合成回路1
04に供給する。
The motion compensation circuit 108 moves the read address of the memory unit 106 from the position corresponding to the position of the block currently output by the decoder 101, based on the motion compensation mode from the decoder 101. The data is read out by shifting by the amount corresponding to the vector, and the synthesis circuit 1
Supply to 04.

【0276】ここで、逆VLC回路21は、1枚(1画
面)の画像を可変長復号化するタイミングでタイミング
パルスをメモリコントローラ107に出力するようにな
されており、メモリコントローラ107は、このタイミ
ングパルスに対応してタイミング制御信号をメモリ部1
06に供給するようになされている。そして、メモリ部
106からのデータの読み出しタイミングは、メモリコ
ントローラ107からのタイミング制御信号に基づいて
制御されるようになされている。
Here, the inverse VLC circuit 21 outputs the timing pulse to the memory controller 107 at the timing of variable length decoding one image (one screen), and the memory controller 107 outputs this timing pulse. The memory unit 1 outputs the timing control signal corresponding to the pulse.
It is designed to supply to 06. The timing of reading data from the memory unit 106 is controlled based on the timing control signal from the memory controller 107.

【0277】ここで、この画像復号化装置においては、
図4の画像復号化装置と異なり、フィールドメモリ群2
6(図4)に対応するメモリ部106に、復号された1
0ビット精度の画像データそのものが記憶されているの
ではなく、上述したように分離回路103によって10
ビット精度の画像の精度が8ビット精度に変換された画
像が、ブロックごとの量子化幅Qおよび代表値データと
ともに記憶されている。
Here, in this image decoding apparatus,
Unlike the image decoding apparatus in FIG. 4, the field memory group 2
6 in the memory unit 106 corresponding to 6 (FIG. 4)
The image data itself with 0-bit precision is not stored, but as described above, the separation circuit 103 stores 10 bits.
An image in which the precision of the bit precision image is converted to 8 bit precision is stored together with the quantization width Q and representative value data for each block.

【0278】このため、動き補償回路108において
は、復号化器101からの動きベクトルに対応して、メ
モリ部106の量子化幅メモリ群106a、代表値メモ
リ群106b、またはフィールドメモリ群106cにそ
れぞれアドレスが出力され、フィールドメモリ群106
cに記憶された8ビット精度の画像データのブロックが
読み出されるとともに、そのブロックに対応する、量子
化幅メモリ群106aまたは代表値メモリ群106bに
それぞれ記憶された量子化幅Qまたは代表値データが読
み出され、図10の合成回路74と同様に構成される合
成回路104に供給される。
Therefore, in the motion compensation circuit 108, the quantization width memory group 106a, the representative value memory group 106b, or the field memory group 106c of the memory unit 106 is respectively corresponding to the motion vector from the decoder 101. The address is output and the field memory group 106
A block of 8-bit precision image data stored in c is read, and the quantization width Q or representative value data stored in the quantization width memory group 106a or the representative value memory group 106b corresponding to the block is read. It is read out and supplied to the combining circuit 104 configured similarly to the combining circuit 74 of FIG.

【0279】そして、合成回路104において、動き補
償回路108によって、量子化幅メモリ群106aまた
は代表値メモリ群106bからそれぞれ読み出された量
子化幅Qまたは代表値データに基づいて、フィールドメ
モリ群106cから読み出された8ビット精度の画像デ
ータのブロックが10ビット精度の画像データに変換さ
れ、予測画像が生成される。
Then, in the synthesizing circuit 104, based on the quantization width Q or the representative value data read from the quantization width memory group 106a or the representative value memory group 106b by the motion compensation circuit 108, the field memory group 106c. A block of 8-bit precision image data read from is converted into 10-bit precision image data to generate a predicted image.

【0280】この予測画像は、演算器25に供給され、
そこで、上述したように、合成回路102の出力と加算
されることにより、復号された画像データが生成され
る。
This predicted image is supplied to the calculator 25,
Therefore, as described above, the decoded image data is generated by adding the output of the synthesizing circuit 102.

【0281】以下、上述した処理が繰り返され、画像の
復号化が行われる。
Thereafter, the above-described processing is repeated to decode the image.

【0282】また、メモリ部106の量子化幅メモリ群
106a、代表値メモリ群106b、またはフィールド
メモリ群106cにそれぞれ記憶された量子化幅Q、代
表値データ、または8ビット精度の画像データは、メモ
リコントローラ107からのタイミング制御信号に基づ
いて、図10の合成回路74と同様に構成される合成回
路105へ読み出され、そこで10ビット精度の画像デ
ータに変換されて出力される。
The quantization width Q, representative value data, or 8-bit precision image data stored in the quantization width memory group 106a, the representative value memory group 106b, or the field memory group 106c of the memory unit 106 is Based on the timing control signal from the memory controller 107, it is read out to the synthesizing circuit 105 configured similarly to the synthesizing circuit 74 of FIG. 10, where it is converted into image data of 10-bit precision and output.

【0283】合成回路105より出力された画像データ
は、例えばD/A変換処理などの所定の処理が施され、
図示せぬディスプレイなどに供給されて表示される。
The image data output from the synthesizing circuit 105 is subjected to predetermined processing such as D / A conversion processing,
It is supplied and displayed on a display (not shown).

【0284】なお、図13に示す画像復号化装置(図1
0に示す画像符号化装置)においては、ビット精度が1
0ビット精度の画像だけでなく、例えば9ビット精度や
11ビット精度などの画像を復号化(符号化)するよう
にすることができる。
Note that the image decoding apparatus shown in FIG. 13 (see FIG.
0), the bit precision is 1
It is possible to decode (encode) not only an image with 0-bit precision but also an image with 9-bit precision or 11-bit precision, for example.

【0285】次に、本発明の画像符号化装置より出力さ
れるビットストリームのフォーマットについて、図14
乃至図19を参照して説明する。図14乃至図19は、
CCITT SG XV Working Party XV/1 Experts group on AT
M Video Coding, INTERNATIONAL ORGANISATION FOR STA
NDARDISATION ISO-IEC/JTC1/SC29/WG11 CODED REPRESEN
TATION OF PICTURE AND AUDIO INFORMATION, ISO-IEC/J
TC1/SC29/WG11 N0328,25-Nov-92 Test Model 3, Draft
Revision 1に記載されているビットストリームのフォー
マット(以下、標準フォーマットと記載する)に、L1
乃至L6で示す部分をそれぞれ追加したフォーマットを
示している。
Next, the format of the bit stream output from the image coding apparatus of the present invention will be described with reference to FIG.
It will be described with reference to FIGS. 14 to FIG.
CCITT SG XV Working Party XV / 1 Experts group on AT
M Video Coding, INTERNATIONAL ORGANIZATION FOR STA
NDARDISATION ISO-IEC / JTC1 / SC29 / WG11 CODED REPRESEN
TATION OF PICTURE AND AUDIO INFORMATION, ISO-IEC / J
TC1 / SC29 / WG11 N0328,25-Nov-92 Test Model 3, Draft
The bitstream format described in Revision 1 (hereinafter referred to as the standard format) is L1
The format is shown by adding the portions indicated by L6 to L6.

【0286】まず、図14に示すフォーマットは、符号
化された画像が、通常の8ビット精度の画像であるか否
かを示すためのフォーマットで、標準フォーマットのシ
ーケンスヘッダに、フラグextension_bit_input(図
中、L1で示す部分)が追加されている。
First, the format shown in FIG. 14 is a format for indicating whether or not the encoded image is a normal 8-bit precision image, and the flag extension_bit_input (in the figure, is added to the sequence header of the standard format. , L1) is added.

【0287】このフラグextension_bit_inputには、符
号化された画像が、通常の8ビット精度の画像である場
合、0および1のうちの、例えば0がセットされ、符号
化された画像が、通常の8ビット精度の画像でない場
合、0および1のうちの、例えば1がセットされる。
If the encoded image is a normal 8-bit precision image, for example, 0 out of 0 and 1 is set in this flag extension_bit_input, and the encoded image is a normal 8-bit precision image. If the image is not a bit-precision image, for example, 1 of 0 and 1 is set.

【0288】次に、図15に示すフォーマットは、シー
ケンスごとに画像のビット精度またはパラメータブロッ
クサイズを可変にする場合のフォーマットで、標準フォ
ーマットのシーケンスヘッダに、L2で示す部分が追加
されている。
Next, the format shown in FIG. 15 is a format in which the bit precision of the image or the parameter block size is made variable for each sequence, and a portion indicated by L2 is added to the sequence header of the standard format.

【0289】L2で示す部分のうち、コードbit_accura
cyは、画像のビット精度を示す、例えば3ビットのコー
ドで、シーケンスにおける画像のビット精度が、例えば
8,6,7,9,10,11,・・・である場合、コー
ドbit_accuracyには、3ビットコードとしての、例えば
000,001,010,100,100,101,・
・・がそれぞれセットされる。
Of the portion indicated by L2, the code bit_accura
cy is, for example, a 3-bit code indicating the bit precision of the image. When the bit precision of the image in the sequence is, for example, 8, 6, 7, 9, 10, 11, ..., The code bit_accuracy is As a 3-bit code, for example, 000,001,010,100,100,101, ...
.. are set respectively.

【0290】さらに、L2で示す部分のうち、コードbl
ock_sizeは、パラメータブロックサイズを示す、例えば
2ビットのコードで、シーケンスにおけるパラメータブ
ロックサイズが、例えば16×16,8×8,4×4、
または32×32である場合、コードblock_sizeには、
2ビットコードとしての、例えば00,01,10、ま
たは11がそれぞれセットされる。
Further, in the portion indicated by L2, the code bl
ock_size is, for example, a 2-bit code indicating the parameter block size, and the parameter block size in the sequence is, for example, 16 × 16, 8 × 8, 4 × 4,
Or if it is 32 × 32, the code block_size is
For example, 00, 01, 10, or 11 as a 2-bit code is set.

【0291】なお、L2で示す部分のうち、ifから、}
の部分は、フラグextension_bit_inputが真(1)であ
る場合に、{}内のコードbit_accuracyおよびblock_size
が有効となることを意味している。
[0291] Note that from the if of the portion indicated by L2,
Part is the code bit_accuracy and block_size in {} when the flag extension_bit_input is true (1)
Means that is valid.

【0292】また、図16または図17に示すフォーマ
ットは、GOPまたはピクチャ(1画面)ごとに画像の
ビット精度またはパラメータブロックサイズを可変にす
る場合のフォーマットで、標準フォーマットのGOPレ
イヤまたはピクチャレイヤのヘッダに、図15における
L2のフラグextension_bit_inputの部分を除いたもの
と同様のL3またはL4で示す部分がそれぞれ追加され
ている。
The format shown in FIG. 16 or 17 is a format in which the bit precision of an image or the parameter block size is made variable for each GOP or picture (one screen), and is the format of the standard format GOP layer or picture layer. To the header, portions similar to those shown in FIG. 15 except for the portion of the flag extension_bit_input of L2 shown by L3 or L4 are added.

【0293】なお、画像のビット精度またはパラメータ
ブロックサイズが、上述したように、異なる単位で変化
する場合、画像のビット精度またはパラメータブロック
サイズを示すコードは、それぞれ変化する単位に対応す
るヘッダにのみ記述される。即ち、例えば画像のビット
精度がシーケンスごとに変化し、パラメータブロックサ
イズがGOPごとに変化する場合、シーケンスヘッダ
(図15)には、if文の{}内にコードbit_accuracyのみ
が記述されるとともに、GOPレイヤのヘッダ(図1
6)には、if文の{}内にコードblock_sizeのみが記述さ
れる。
When the bit precision or parameter block size of the image changes in different units as described above, the code indicating the bit precision or parameter block size of the image is only in the header corresponding to the changing unit. Described. That is, for example, when the bit precision of the image changes for each sequence and the parameter block size changes for each GOP, only the code bit_accuracy is described in {} of the if statement in the sequence header (FIG. 15). GOP layer header (Fig. 1
In 6), only the code block_size is described in {} of the if statement.

【0294】次に、図18に示すフォーマットは、ピク
チャ(1画面)ごとに、そのピクチャレイヤに属するブ
ロックの代表値データおよび量子化幅Qを伝送する場合
のフォーマットで、標準フォーマットのピクチャレイヤ
のヘッダに、L5で示す部分が追加されている。
Next, the format shown in FIG. 18 is a format for transmitting the representative value data and the quantization width Q of the block belonging to the picture layer for each picture (one screen). A portion indicated by L5 is added to the header.

【0295】L5で示す部分のうち、コードblock_base
には、ピクチャを構成する各ブロックの代表値データが
セットされる。
Of the portion indicated by L5, the code block_base
Is set to the representative value data of each block forming the picture.

【0296】ここで、1ブロックの代表値データのビッ
ト数(画像のビット精度のビット数と同一のビット数
(コードbit_accuracyで表されたビット精度のビット
数))をAとし、1画面の画素数とブロックの大きさ
(コードblock_sizeで表されたブロックの大きさ)から
求めることのできる1画面当たりのブロック数をnとす
ると、コードblock_baseには、Aビットの代表値データ
が、n個セットされることになるので、ピクチャレイヤ
のヘッダにおいて、コードblock_baseは、A×nビット
のコードとして定義されている。
Here, the number of bits of the representative value data of one block (the same number of bits as the number of bits of the image bit precision (the number of bits of the bit precision represented by the code bit_accuracy)) is set to A, and the pixels of one screen are displayed. If the number of blocks per screen that can be obtained from the number and the block size (block size represented by the code block_size) is n, the code block_base is set to n representative value data of A bits. Therefore, the code block_base is defined as a code of A × n bits in the header of the picture layer.

【0297】さらに、L5で示す部分のうち、コードbl
ock_q_scaleには、ピクチャを構成する各ブロックの量
子化幅Qがセットされる。
Furthermore, in the portion indicated by L5, the code bl
In ock_q_scale, the quantization width Q of each block forming the picture is set.

【0298】ここで、1ブロックの量子化幅Qを、例え
ば3ビット(上述した実施例における場合と同様に2ビ
ットでも良いし、また、例えば4ビットでも良い)で表
すようにすると、コードblock_q_scaleには、3ビット
の量子化幅が、n個セットされることになるので、ピク
チャレイヤのヘッダにおいて、コードblock_q_scale
は、3×nビットのコードとして定義されている。
Here, if the quantization width Q of one block is represented by, for example, 3 bits (2 bits may be used as in the above-described embodiment, or 4 bits may be used), the code block_q_scale Since n quantization widths of 3 bits will be set in, the code block_q_scale in the header of the picture layer.
Is defined as a 3 × n bit code.

【0299】次に、図19に示すフォーマットは、マク
ロブロック(16×16画素のブロック)ごとに、その
マクロブロックを構成するブロックの代表値データおよ
び量子化幅Qを伝送する場合のフォーマットで、標準フ
ォーマットのマクロブロックレイヤのヘッダに、L6で
示す部分が追加されている。
Next, the format shown in FIG. 19 is a format for transmitting, for each macroblock (16 × 16 pixel block), the representative value data of the blocks constituting the macroblock and the quantization width Q. A portion indicated by L6 is added to the header of the macro block layer of the standard format.

【0300】この場合、マクロブロックを構成するブロ
ックの数をm(ブロックの大きさ(コードblock_sizeで
表されたブロックの大きさ)が16×16,8×8、ま
たは4×4のとき、それぞれ1,4、または16とな
る)とすると、コードblock_baseには、Aビットの代表
値データが、m個セットされることになるので、マクロ
ブロックレイヤのヘッダにおいて、コードblock_base
は、A×mビットのコードとして定義されている。
In this case, when the number of blocks forming the macroblock is m (block size (block size represented by the code block_size) is 16 × 16, 8 × 8, or 4 × 4, respectively, 1, 4, or 16), m pieces of A-bit representative value data are set in the code block_base. Therefore, in the header of the macroblock layer, the code block_base is set.
Is defined as an A × m bit code.

【0301】また、この場合、コードblock_q_scaleに
は、3ビットの量子化幅が、m個セットされることにな
るので、マクロブロックレイヤのヘッダにおいて、コー
ドblock_q_scaleは、3×mビットのコードとして定義
されている。
Further, in this case, since m pieces of 3-bit quantization widths are set in the code block_q_scale, the code block_q_scale is defined as a 3 × m-bit code in the header of the macroblock layer. Has been done.

【0302】なお、ビットストリームのフォーマット
は、以上のフォーマットの他、フラグextension_bit_in
putを省略したフォーマット、ビット精度またはパラメ
ータブロックサイズを変更する場合のみ、例えばGOP
レイヤのヘッダやピクチャレイヤのヘッダに、ビット精
度またはパラメータブロックサイズに関する情報を付加
するようにしたフォーマットにすることも可能である。
The bit stream format is not limited to the above format, but the flag extension_bit_in
Only when changing the format, bit precision or parameter block size without put, for example, GOP
It is also possible to adopt a format in which information on bit precision or parameter block size is added to the layer header or the picture layer header.

【0303】以上のように、画像を符号化する場合にお
いては、画像データの代表値データおよび量子化幅を決
定し、代表値データおよび量子化幅Qに基づいて、画像
のビット精度を変換するようにしたので、例えば8ビッ
ト精度の画像が装置に入出力されることを前提として設
計された、従来からあるハードウェアを用いて、8ビッ
ト精度より高ビット精度の画像を符号化することができ
る。
As described above, when the image is encoded, the representative value data and the quantization width of the image data are determined, and the bit precision of the image is converted based on the representative value data and the quantization width Q. Therefore, it is possible to encode an image with higher bit precision than 8-bit precision using conventional hardware designed on the assumption that an image with 8-bit precision is input to and output from the device, for example. it can.

【0304】また、画像を復号化する場合においては、
伝送データから、画像データ、代表値データ、および量
子化幅を抽出し、代表値データおよび量子化幅Qに基づ
いて、画像のビット精度を変換するようにしたので、上
述したようにして符号化された、8ビットより高ビット
精度の画像を、8ビット精度の画像が装置に入出力され
ることを前提として設計された、従来からあるハードウ
ェアを用いて復号化することができる。
Also, in the case of decoding an image,
Since the image data, the representative value data, and the quantization width are extracted from the transmission data and the bit precision of the image is converted based on the representative value data and the quantization width Q, the encoding is performed as described above. An image with higher bit precision than 8-bit can be decoded using conventional hardware designed on the assumption that an image with 8-bit precision is input to and output from the device.

【0305】なお、本実施例においては、8ビット精度
用の動き予測回路2により、10ビット精度の画像の動
きベクトルの下位2ビットを切り捨てた、8ビット精度
の動きベクトルを検出するようにしたが、例えば10ビ
ット精度の画像の動きベクトルの下位2ビットを4捨5
入した8ビット精度の動きベクトルを検出するようにす
ることができる。
In the present embodiment, the 8-bit precision motion prediction circuit 2 detects the 8-bit precision motion vector by discarding the lower 2 bits of the 10-bit precision image motion vector. However, for example, the lower 2 bits of the motion vector of the image with 10-bit precision are rounded down to 4
The input 8-bit precision motion vector can be detected.

【0306】さらに、8ビット精度用の動き予測回路2
の代わりに、10ビット精度用の動き予測回路を設ける
ようにすることができる。この場合、動きベクトルの精
度が高くなるので、画質を向上させることができる。
Furthermore, the motion prediction circuit 2 for 8-bit precision
Alternatively, a motion prediction circuit for 10-bit precision can be provided. In this case, since the accuracy of the motion vector is high, the image quality can be improved.

【0307】また、本実施例の画像符号化装置において
は、ブロックの代表値データそのものを画像データとと
もに符号化するようにしたが、例えば隣接するブロック
の代表値データどうしの差分をとり、この差分情報を代
表値データとして画像データとともに可変長符号化する
ようにすることができる。
Further, in the image coding apparatus of this embodiment, the representative value data itself of the block is coded together with the image data, but for example, the difference between the representative value data of the adjacent blocks is calculated, and this difference is calculated. Information can be variable length coded together with image data as representative value data.

【0308】この場合、画像復号化装置では、可変長復
号化されたブロックの差分情報に、既に復号された隣接
するブロックの代表値データを加算し、ブロックの代表
値データを得るようになされる。
In this case, the image decoding device is configured to add the representative value data of the already decoded adjacent block to the difference information of the variable length decoded block to obtain the representative value data of the block. .

【0309】1画面が、例えば8×8画素や16×16
画素のブロックなどの小ブロックに分割されている場
合、隣接するブロックの代表値データどうしの差分は、
代表値データより小さくなり、またその分散も小さくな
る。従って、上述したように、隣接するブロックの代表
値データの差分を可変長符号化するようにすることによ
り、符号量を低減することができる。
One screen is, for example, 8 × 8 pixels or 16 × 16.
When divided into small blocks such as pixel blocks, the difference between the representative value data of adjacent blocks is
It is smaller than the representative value data, and its variance is also smaller. Therefore, as described above, the code amount can be reduced by performing the variable length coding on the difference between the representative value data of the adjacent blocks.

【0310】さらに、この場合、画像符号化装置または
画像復号化装置それぞれにおける可変長符号化または可
変長復号化の方式が、MPEG1のDC成分の伝送にお
けるときと同様であると、代表値データの差分を可変長
符号化または可変長復号化することによる、新たな可変
長符号用のテーブルまたは新たな可変長復号化用のテー
ブルは必要なく、効率の良い処理を行うことができる。
Furthermore, in this case, if the variable length coding or variable length decoding method in the image coding apparatus or the image decoding apparatus is the same as that in the transmission of the DC component of MPEG1, the representative value data By performing variable-length coding or variable-length decoding on the difference, a new variable-length code table or a new variable-length decoding table is not required, and efficient processing can be performed.

【0311】また、本実施例の画像符号化装置において
は、ブロックごとの量子化幅Qを画像データとともに符
号化するようにしたが、例えば直前に符号化されたブロ
ックの量子化幅Qと、いま符号化されているブロックの
量子化幅Q'とが同一であるか否かの量子化幅情報を符
号化し、さらに量子化幅Qと量子化幅Q'が同一でない
場合にのみ、量子化幅Q'を符号化するようにすること
ができる。
In the image coding apparatus of this embodiment, the quantization width Q for each block is coded together with the image data. For example, the quantization width Q of the block coded immediately before, Quantization width information indicating whether or not the quantization width Q ′ of the currently encoded block is the same is encoded, and quantization is performed only when the quantization width Q and the quantization width Q ′ are not the same. The width Q'may be encoded.

【0312】この場合、画像復号化装置では、量子化幅
情報を参照し、新たな量子化幅Q'が伝送されるまで
は、直前に復号化されたブロックの量子化幅Qと同一の
量子化幅を用いて復号化処理がなされ、新たな量子化幅
が伝送された場合、その量子化幅Q'を用いて復号化処
理がなされる。
In this case, the image decoding device refers to the quantization width information, and until the new quantization width Q ′ is transmitted, the quantization width Q is the same as the quantization width Q of the block decoded immediately before. When the decoding process is performed using the quantization width and a new quantization width is transmitted, the decoding process is performed using the quantization width Q ′.

【0313】1画面が、例えば8×8画素や16×16
画素のブロックなどの小ブロックに分割されている場
合、隣接するブロックのダイナミックレンジはほとんど
変動しないため、量子化幅Qもほとんど変化しない。従
って、上述したように、直前に符号化されたブロックの
量子化幅Qと、いま符号化されているブロックの量子化
幅Q'とが同一であるか否かの量子化幅情報を符号化
し、さらに量子化幅Qと量子化幅Q'が同一でない場合
にのみ、量子化幅Q'を符号化するようにすることによ
り、符号量を低減することができる。
One screen is, for example, 8 × 8 pixels or 16 × 16.
When divided into small blocks such as a block of pixels, the dynamic range of adjacent blocks hardly changes, and the quantization width Q also hardly changes. Therefore, as described above, the quantization width information indicating whether the quantization width Q of the immediately previous encoded block and the quantization width Q ′ of the currently encoded block are the same is encoded. Furthermore, the code amount can be reduced by coding the quantization width Q ′ only when the quantization width Q and the quantization width Q ′ are not the same.

【0314】さらに、本実施例においては、入力画像の
ビット精度を10ビット精度とし、この10ビット精度
の画像を、差分信号符号化器8、差分信号復号化器9、
および22の処理可能なビット精度としての8ビット精
度の画像に変換する場合について説明したが、これに限
られるものはない。即ち、画像のビット精度を任意のビ
ット精度に変換し、符号化または復号化するようにする
ことができる。
Furthermore, in the present embodiment, the bit precision of the input image is set to 10-bit precision, and the image of this 10-bit precision is input to the differential signal encoder 8, the differential signal decoder 9,
The case of converting into an image of 8-bit precision as the bit precision that can be processed in Nos. 22 and 22 has been described, but the present invention is not limited to this. That is, the bit precision of an image can be converted into arbitrary bit precision, and can be encoded or decoded.

【0315】[0315]

【発明の効果】請求項1に記載の画像符号化方法、並び
に請求項12に記載の画像符号化装置によれば、所定の
ブロックごとに、画像データの代表値データおよび量子
化幅を決定し、画像データと代表値データの差分を算出
して、差分を量子化幅に基づいて量子化し、第1の量子
化データを生成する。そして、第1の量子化データに所
定の変換処理を施し、その変換係数を量子化して、第2
の量子化データを生成し、代表値データ、量子化幅、お
よび第2の量子化データを符号化する。従って、画像
を、そのビット精度を変換して符号化することができ
る。
According to the image coding method of the first aspect and the image coding apparatus of the twelfth aspect, the representative value data and the quantization width of the image data are determined for each predetermined block. , The difference between the image data and the representative value data is calculated, and the difference is quantized based on the quantization width to generate first quantized data. Then, the first quantized data is subjected to a predetermined conversion process, the conversion coefficient is quantized, and the second quantized data is quantized.
Quantized data is generated, and the representative value data, the quantization width, and the second quantized data are encoded. Therefore, an image can be encoded by converting its bit precision.

【0316】請求項8に記載の画像符号化方法によれ
ば、所定の単位領域ごとに、画像データの代表値データ
および量子化幅を決定し、画像データと代表値データの
差分を算出して、差分を量子化幅に基づいて量子化し、
第1の量子化データを生成する。そして、所定のブロッ
クごとに、第1の量子化データに所定の変換処理を施
し、その変換係数を量子化して、第2の量子化データを
生成し、代表値データ、量子化幅、および第2の量子化
データを符号化する。従って、画像の複雑さに対応し
て、代表値データと量子化幅を、所定の単位領域ごとに
変化させることができるので、画像の画質の劣化を防止
することができる。
According to the image coding method of the eighth aspect, the representative value data and the quantization width of the image data are determined for each predetermined unit area, and the difference between the image data and the representative value data is calculated. , The difference is quantized based on the quantization width,
First quantized data is generated. Then, for each predetermined block, a predetermined conversion process is performed on the first quantized data, the conversion coefficient is quantized to generate second quantized data, and the representative value data, the quantization width, and the The quantized data of 2 is encoded. Therefore, since the representative value data and the quantization width can be changed for each predetermined unit area according to the complexity of the image, the deterioration of the image quality of the image can be prevented.

【0317】請求項10に記載の画像符号化方法、並び
に請求項13に記載の画像符号化装置によれば、所定の
ブロックごとに、入力画像と予測画像の差分を算出し、
第1の差分データを生成して、第1の差分データの代表
値データおよび量子化幅を決定する。そして、第1の差
分データと代表値データの差分を算出し、第2の差分デ
ータを生成して、第2の差分データを量子化幅に基づい
て量子化し、量子化データを生成する。さらに、量子化
データを量子化幅に基づいて逆量子化し、逆量子化デー
タを生成して、逆量子化データと代表値データを加算
し、局部復号データを生成した後、局部復号データに基
づいて、新たな予測画像を生成する。従って、画像を、
そのビット精度を変換して効率良く符号化することがで
きる。
According to the image coding method of the tenth aspect and the image coding apparatus of the thirteenth aspect, the difference between the input image and the predicted image is calculated for each predetermined block,
First difference data is generated and representative value data and quantization width of the first difference data are determined. Then, the difference between the first difference data and the representative value data is calculated, the second difference data is generated, and the second difference data is quantized based on the quantization width to generate the quantized data. Further, the quantized data is inversely quantized based on the quantization width, the inverse quantized data is generated, the inverse quantized data and the representative value data are added, the locally decoded data is generated, and then the locally decoded data is generated. To generate a new predicted image. Therefore, the image
The bit precision can be converted for efficient coding.

【0318】請求項14に記載の画像復号化方法、並び
に請求項21に記載の画像復号化装置によれば、伝送デ
ータから、符号化画像データ、並びに所定のブロックご
とに設定された代表値データ、および量子化幅を抽出
し、符号化画像データを逆量子化して、第1の逆量子化
データを生成する。そして、第1の逆量子化データに所
定の逆変換処理を施し、その逆変換データを量子化幅に
基づいて逆量子化して、第2の逆量子化データを生成
し、第2の逆量子化データと代表値データを加算して、
復号画像データを生成する。従って、ビット精度が変換
された画像信号を復号することができる。
According to the image decoding method of the fourteenth aspect and the image decoding apparatus of the twenty-first aspect, from the transmission data, the encoded image data and the representative value data set for each predetermined block are transmitted. , And the quantization width are extracted, and the encoded image data is inversely quantized to generate the first inverse quantized data. Then, a predetermined inverse transform process is performed on the first inverse quantized data, the inverse transformed data is inversely quantized based on the quantization width, and second inverse quantized data is generated. Data and representative value data,
Generates decoded image data. Therefore, the image signal whose bit precision has been converted can be decoded.

【0319】請求項17に記載の画像復号化方法によれ
ば、伝送データから、符号化画像データ、並びに所定の
単位領域ごとに設定された代表値データ、および量子化
幅を抽出し、所定のブロックごとに、符号化画像データ
を逆量子化して、第1の逆量子化データを生成する。そ
して、第1の逆量子化データに所定の逆変換処理を施
し、所定の単位領域ごとに、その逆変換データを量子化
幅に基づいて逆量子化して、第2の逆量子化データを生
成し、第2の逆量子化データと代表値データを加算し
て、復号画像データを生成する。従って、画像の複雑さ
に対応して、代表値データと量子化幅を、所定の単位領
域ごとに変化させて符号化した画像を復号することがで
きる。
According to the image decoding method of the seventeenth aspect, the encoded image data, the representative value data set for each predetermined unit area, and the quantization width are extracted from the transmission data to obtain a predetermined value. For each block, the encoded image data is dequantized to generate first dequantized data. Then, the first inverse quantized data is subjected to predetermined inverse transform processing, and the inverse transformed data is inverse quantized for each predetermined unit area based on the quantization width to generate second inverse quantized data. Then, the second dequantized data and the representative value data are added to generate decoded image data. Therefore, it is possible to decode the encoded image by changing the representative value data and the quantization width for each predetermined unit area according to the complexity of the image.

【0320】請求項19に記載の画像復号化方法、並び
に請求項22に記載の画像復号化装置によれば、伝送デ
ータから、符号化画像データ、並びに所定のブロックご
とに設定された代表値データ、および量子化幅を抽出
し、符号化画像データを、量子化幅に基づいて逆量子化
して、逆量子化データを生成し、逆量子化データと代表
値データを加算して、復号差分データを生成する。そし
て、復号差分データと予測画像を加算し、復号画像デー
タを生成する。従って、効率良く符号化された、ビット
精度の異なる画像信号を復号することができる。
According to the image decoding method of the nineteenth aspect and the image decoding apparatus of the twenty-second aspect, from the transmission data to the encoded image data, and the representative value data set for each predetermined block. , And the quantization width are extracted, the coded image data is inversely quantized based on the quantization width, the inverse quantized data is generated, the inverse quantized data and the representative value data are added, and the decoded difference data is obtained. To generate. Then, the decoded difference data and the predicted image are added to generate decoded image data. Therefore, it is possible to efficiently decode image signals that are encoded and have different bit precisions.

【0321】請求項23に記載の画像復号化装置によれ
ば、伝送データから、符号化された画像データおよび画
像データのビット精度に関する精度情報を抽出し、その
精度情報に基づいて、符号化された画像データが復号可
能か否かを判定する。そして、符号化された画像データ
が復号不能である場合、符号化された画像データが復号
不能であることを知らせる。従って、装置が、入力され
たデータのビット精度に対応していないことを、使用者
に知らせることができる。
According to the image decoding apparatus of the twenty-third aspect, the coded image data and the accuracy information regarding the bit accuracy of the image data are extracted from the transmission data and coded based on the accuracy information. It is determined whether the image data can be decoded. Then, if the encoded image data is undecodable, the fact that the encoded image data is undecodable is notified. Therefore, it is possible to inform the user that the device does not support the bit precision of the input data.

【0322】請求項24に記載の画像復号化装置によれ
ば、伝送データから、符号化された画像データ、画像デ
ータのビット精度に関する精度情報、並びに所定のブロ
ックごとに設定された代表値データ、および量子化幅を
抽出し、符号化された画像データを逆量子化して、第1
の逆量子化データを生成した後、第1の逆量子化データ
に所定の逆変換処理を施し、逆変換データを生成する。
そして、逆変換データを量子化幅に基づいて逆量子化
し、第2の逆量子化データを生成して、第2の逆量子化
データと代表値データを加算し、第1の復号画像データ
を生成する。さらに、第1の復号画像データを、精度情
報に基づいて量子化し、第2の復号画像データを生成す
る。従って、任意のビット精度の画像信号を得ることが
できる。
According to the image decoding apparatus of the twenty-fourth aspect, from the transmission data, the encoded image data, the accuracy information regarding the bit accuracy of the image data, and the representative value data set for each predetermined block, And the quantization width are extracted, the encoded image data is dequantized, and the first
After the inverse quantized data is generated, the first inverse quantized data is subjected to a predetermined inverse transform process to generate the inverse transformed data.
Then, the inversely transformed data is inversely quantized based on the quantization width to generate second inversely quantized data, the second inversely quantized data and the representative value data are added, and the first decoded image data is obtained. To generate. Further, the first decoded image data is quantized based on the accuracy information to generate the second decoded image data. Therefore, an image signal with arbitrary bit precision can be obtained.

【0323】請求項25に記載の画像記録媒体によれ
ば、所定のブロックごとに、画像データの代表値データ
および量子化幅を決定し、画像データと代表値データの
差分を算出し、差分を量子化幅に基づいて量子化し、第
1の量子化データを生成し、第1の量子化データに所定
の変換処理を施し、変換係数を生成し、変換係数を量子
化し、第2の量子化データを生成し、代表値データ、量
子化幅、および第2の量子化データを符号化することに
より生成されたビットストリームが記録される。従っ
て、任意のビット精度の画像信号を記録することができ
る。
According to the image recording medium of the twenty-fifth aspect, the representative value data and the quantization width of the image data are determined for each predetermined block, the difference between the image data and the representative value data is calculated, and the difference is calculated. Quantization is performed based on the quantization width, first quantized data is generated, predetermined conversion processing is performed on the first quantized data, conversion coefficients are generated, the conversion coefficients are quantized, and second quantization is performed. A bitstream generated by generating data and encoding the representative value data, the quantization width, and the second quantization data is recorded. Therefore, it is possible to record an image signal with arbitrary bit precision.

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

【図1】本発明の画像符号化装置の一実施例の構成を示
すブロック図である。
FIG. 1 is a block diagram showing the configuration of an embodiment of an image encoding device of the present invention.

【図2】代表値データおよび量子化幅Qの決定方法を説
明する図である。
FIG. 2 is a diagram illustrating a method of determining representative value data and a quantization width Q.

【図3】代表値データおよび量子化幅Qの決定方法を説
明する図である。
FIG. 3 is a diagram illustrating a method of determining representative value data and a quantization width Q.

【図4】本発明の画像復号化装置の一実施例の構成を示
すブロック図である。
FIG. 4 is a block diagram showing the configuration of an embodiment of an image decoding apparatus of the present invention.

【図5】本発明の画像符号化装置の第2実施例の構成を
示すブロック図である。
FIG. 5 is a block diagram showing the configuration of a second embodiment of the image encoding device according to the present invention.

【図6】パラメータブロックを説明する図である。FIG. 6 is a diagram illustrating a parameter block.

【図7】本発明の画像復号化装置の第2実施例の構成を
示すブロック図である。
FIG. 7 is a block diagram showing the configuration of a second embodiment of the image decoding apparatus of the present invention.

【図8】本発明の画像復号化装置の第3実施例の構成を
示すブロック図である。
FIG. 8 is a block diagram showing a configuration of a third embodiment of the image decoding apparatus of the present invention.

【図9】本発明の画像復号化装置の第4実施例の構成を
示すブロック図である。
FIG. 9 is a block diagram showing the configuration of a fourth embodiment of the image decoding apparatus of the present invention.

【図10】本発明の画像符号化装置の第3実施例の構成
を示すブロック図である。
FIG. 10 is a block diagram showing the configuration of a third embodiment of the image encoding device of the present invention.

【図11】図10の実施例の分離回路72および合成回
路74のより詳細を示すブロック図である。
11 is a block diagram showing more details of the separation circuit 72 and the combination circuit 74 of the embodiment of FIG.

【図12】図10の実施例の動き補償回路71の動作を
説明する図である。
12 is a diagram for explaining the operation of the motion compensation circuit 71 in the embodiment of FIG.

【図13】本発明の画像復号化装置の第5実施例の構成
を示すブロック図である。
FIG. 13 is a block diagram showing the configuration of a fifth embodiment of the image decoding apparatus of the present invention.

【図14】符号化された画像データとしてのビットスト
リームのフォーマットを示す図である。
FIG. 14 is a diagram illustrating a format of a bitstream as encoded image data.

【図15】符号化された画像データとしてのビットスト
リームのフォーマットを示す図である。
FIG. 15 is a diagram showing a format of a bitstream as encoded image data.

【図16】符号化された画像データとしてのビットスト
リームのフォーマットを示す図である。
FIG. 16 is a diagram showing a format of a bitstream as encoded image data.

【図17】符号化された画像データとしてのビットスト
リームのフォーマットを示す図である。
FIG. 17 is a diagram illustrating a format of a bitstream as encoded image data.

【図18】符号化された画像データとしてのビットスト
リームのフォーマットを示す図である。
FIG. 18 is a diagram showing a format of a bitstream as encoded image data.

【図19】符号化された画像データとしてのビットスト
リームのフォーマットを示す図である。
FIG. 19 is a diagram showing a format of a bitstream as encoded image data.

【図20】従来の画像符号化装置の一例の構成を示す図
である。
FIG. 20 is a diagram showing a configuration of an example of a conventional image encoding device.

【図21】従来の画像復号化装置の一例の構成を示す図
である。
FIG. 21 is a diagram showing a configuration of an example of a conventional image decoding device.

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

1 フィールドメモリ群 2 動き予測回路 3,4 演算器 5 ブロック内代表値計算回路 6 ブロック量子化幅計算回路 7 ブロック量子化器 8 差分信号符号化器 9 差分信号復号化器 10 ブロック逆量子化器 11,12 演算器 13 フィールドメモリ群13 14 動き補償回路 15 VLC回路 16 フィールドメモリコントローラ 21 逆VLC回路 22 差分信号復号化器 23 ブロック逆量子化器 24,25 演算器 26 フィールドメモリ群 27 動き補償回路 28 メモリコントローラ 33,34 バッファ 42,43 バッファ 51 ブロック量子化器 61 ビット精度判定回路 62 表示制御回路 71 動き補償回路 72 分離回路 73 メモリ部 74 合成回路 75 分離回路 77 合成回路 78 分離回路 79 メモリ部 80 合成回路 91 ブロック量子化幅計算回路 92 ブロック内代表値計算回路 93 演算器 94 ブロック量子化器 95 ブロック逆量子化器 96 演算器 102 合成回路 103 分離回路 104,105 合成回路 106 メモリ部 108 動き補償回路 1 Field Memory Group 2 Motion Prediction Circuit 3, 4 Calculator 5 In-Block Representative Value Calculation Circuit 6 Block Quantization Width Calculation Circuit 7 Block Quantizer 8 Differential Signal Encoder 9 Differential Signal Decoder 10 Block Inverse Quantizer 11, 12 arithmetic unit 13 field memory group 13 14 motion compensation circuit 15 VLC circuit 16 field memory controller 21 inverse VLC circuit 22 differential signal decoder 23 block inverse quantizer 24, 25 arithmetic unit 26 field memory group 27 motion compensation circuit 28 memory controller 33, 34 buffer 42, 43 buffer 51 block quantizer 61 bit precision determination circuit 62 display control circuit 71 motion compensation circuit 72 separation circuit 73 memory unit 74 combination circuit 75 separation circuit 77 combination circuit 78 separation circuit 79 memory unit 80 Synthesis circuit 9 1 block quantization width calculation circuit 92 representative value calculation circuit in block 93 arithmetic unit 94 block quantizer 95 block inverse quantizer 96 arithmetic unit 102 synthesis circuit 103 separation circuit 104, 105 synthesis circuit 106 memory unit 108 motion compensation circuit

Claims (25)

【特許請求の範囲】[Claims] 【請求項1】 所定のブロックごとに、画像データの代
表値データおよび量子化幅を決定し、 前記画像データと前記代表値データの差分を算出し、 前記差分を前記量子化幅に基づいて量子化し、第1の量
子化データを生成し、 前記第1の量子化データに所定の変換処理を施し、変換
係数を生成し、 前記変換係数を量子化し、第2の量子化データを生成
し、 前記代表値データ、量子化幅、および第2の量子化デー
タを符号化することを特徴とする画像符号化方法。
1. A representative value data of image data and a quantization width are determined for each predetermined block, a difference between the image data and the representative value data is calculated, and the difference is quantized based on the quantization width. To generate first quantized data, subject the first quantized data to a predetermined conversion process, generate transform coefficients, quantize the transform coefficients, and generate second quantized data. An image coding method, wherein the representative value data, the quantization width, and the second quantization data are coded.
【請求項2】 隣接するブロックにおける画像データの
代表値データの差分を、前記代表値データとして符号化
することを特徴とする請求項1に記載の画像符号化方
法。
2. The image encoding method according to claim 1, wherein a difference between representative value data of image data in adjacent blocks is encoded as the representative value data.
【請求項3】 直前に符号化されたブロックにおける画
像データの量子化幅と、いま符号化されたブロックにお
ける画像データの量子化幅とが同一であるか否かの比較
情報をさらに符号化し、 直前に符号化されたブロックにおける画像データの量子
化幅と、いま符号化されたブロックにおける画像データ
の量子化幅とが異なる場合にのみ、いま符号化されたブ
ロックにおける画像データの量子化幅を符号化すること
を特徴とする請求項1に記載の画像符号化方法。
3. The comparison information for further determining whether or not the quantization width of the image data in the immediately preceding encoded block and the quantization width of the image data in the currently encoded block are the same, Only when the quantization width of the image data in the immediately preceding encoded block and the quantization width of the image data in the currently encoded block are different, the quantization width of the image data in the currently encoded block is set. The image coding method according to claim 1, wherein the image coding is performed.
【請求項4】 前記代表値データおよび量子化幅を、前
記ブロックのヘッダに付加することを特徴とする請求項
1に記載の画像符号化方法。
4. The image coding method according to claim 1, wherein the representative value data and the quantization width are added to the header of the block.
【請求項5】 前記代表値データおよび量子化幅を、前
記ブロックより上位のレイヤのヘッダに付加することを
特徴とする請求項1に記載の画像符号化方法。
5. The image coding method according to claim 1, wherein the representative value data and the quantization width are added to a header of a layer higher than the block.
【請求項6】 前記ブロックのサイズに関するサイズ情
報、または前記ブロックにおける画像データのビット精
度に関する精度情報に基づいて、前記量子化幅を決定
し、 前記サイズ情報および精度情報をさらに符号化すること
を特徴とする請求項1に記載の画像符号化方法。
6. The quantization width is determined based on size information regarding the size of the block or precision information regarding bit precision of image data in the block, and the size information and the precision information are further encoded. The image encoding method according to claim 1, wherein the image encoding method is the image encoding method.
【請求項7】 前記ブロックのサイズに関するサイズ情
報に基づいて、前記代表値データを決定し、 前記サイズ情報をさらに符号化することを特徴とする請
求項1に記載の画像符号化方法。
7. The image encoding method according to claim 1, wherein the representative value data is determined based on size information regarding the size of the block, and the size information is further encoded.
【請求項8】 所定の単位領域ごとに、画像データの代
表値データおよび量子化幅を決定し、 前記画像データと前記代表値データの差分を算出し、 前記差分を前記量子化幅に基づいて量子化し、第1の量
子化データを生成し、 所定のブロックごとに、前記第1の量子化データに所定
の変換処理を施し、変換係数を生成し、 前記変換係数を量子化し、第2の量子化データを生成
し、 前記代表値データ、量子化幅、および第2の量子化デー
タを符号化することを特徴とする画像符号化方法。
8. A representative value data and a quantization width of image data are determined for each predetermined unit area, a difference between the image data and the representative value data is calculated, and the difference is based on the quantization width. Quantize to generate first quantized data, perform predetermined transform processing on the first quantized data for each predetermined block, generate transform coefficients, quantize the transform coefficients, and An image coding method, wherein quantized data is generated, and the representative value data, the quantization width, and the second quantized data are coded.
【請求項9】 前記単位領域と、前記ブロックの大きさ
は、整数倍の関係を有することを特徴とする請求項8に
記載の画像符号化方法。
9. The image encoding method according to claim 8, wherein the unit area and the size of the block have an integral multiple relationship.
【請求項10】 所定のブロックごとに、入力画像と予
測画像の差分を算出し、第1の差分データを生成し、 前記第1の差分データの代表値データおよび量子化幅を
決定し、 前記第1の差分データと前記代表値データの差分を算出
し、第2の差分データを生成し、 前記第2の差分データを前記量子化幅に基づいて量子化
し、量子化データを生成し、 前記量子化データを前記量子化幅に基づいて逆量子化
し、逆量子化データを生成し、 前記逆量子化データと前記代表値データを加算し、局部
復号データを生成し、 前記局部復号データに基づいて、新たな予測画像を生成
することを特徴とする画像符号化方法。
10. A difference between an input image and a predicted image is calculated for each predetermined block, first difference data is generated, representative value data and a quantization width of the first difference data are determined, and Calculating a difference between the first difference data and the representative value data, generating second difference data, quantizing the second difference data based on the quantization width, and generating quantized data, Dequantize the quantized data based on the quantization width to generate dequantized data, add the dequantized data and the representative value data, generate locally decoded data, and based on the locally decoded data. And an image encoding method for generating a new predicted image.
【請求項11】 前記局部復号データと前記代表値デー
タの差分を算出し、 前記差分を前記量子化幅に基づいて量子化し、差分量子
化データを生成し、 前記差分量子化データ、代表値データ、および量子化幅
を記憶手段に記憶させ、 前記差分量子化データ、代表値データ、および量子化幅
を前記記憶手段から読み出し、前記新たな予測画像を生
成することを特徴とする請求項10に記載の画像符号化
方法。
11. A difference between the locally decoded data and the representative value data is calculated, the difference is quantized based on the quantization width to generate difference quantized data, the difference quantized data, the representative value data. , And a quantization width are stored in a storage unit, the difference quantization data, the representative value data, and the quantization width are read from the storage unit, and the new predicted image is generated. The described image coding method.
【請求項12】 所定のブロックごとに、画像データの
代表値データを決定する代表値決定手段と、 前記所定のブロックごとに、前記画像データの量子化幅
を決定する量子化幅決定手段と、 前記画像データと前記代表値データの差分を算出する差
分算出手段と、 前記差分を前記量子化幅に基づいて量子化し、第1の量
子化データを生成する第1の量子化手段と、 前記第1の量子化データに所定の変換処理を施し、量子
化して、第2の量子化データを生成する第2の量子化手
段と、 前記代表値データ、量子化幅、および第2の量子化デー
タを符号化する符号化手段とを備えることを特徴とする
画像符号化装置。
12. A representative value determining unit that determines representative value data of image data for each predetermined block, and a quantization width determining unit that determines a quantization width of the image data for each predetermined block, A difference calculating means for calculating a difference between the image data and the representative value data; a first quantizing means for quantizing the difference based on the quantization width to generate first quantized data; Second quantizing means for generating a second quantized data by subjecting the first quantized data to a predetermined conversion process, and quantizing the quantized data; and the representative value data, the quantization width, and the second quantized data. An image encoding device comprising: an encoding unit that encodes the image.
【請求項13】 所定のブロックごとに、入力画像と予
測画像の差分を算出し、第1の差分データを生成する第
1の差分算出手段と、 前記所定のブロックごとに、前記第1の差分データの代
表値データを決定する代表値決定手段と、 前記所定のブロックごとに、前記第1の差分データの量
子化幅を決定する量子化幅決定手段と、 前記第1の差分データと前記代表値データの差分を算出
し、第2の差分データを生成する第2の差分算出手段
と、 前記第2の差分データを前記量子化幅に基づいて量子化
し、量子化データを生成する量子化手段と、 前記量子化データを前記量子化幅に基づいて逆量子化
し、逆量子化データを生成する逆量子化手段と、 前記逆量子化データと前記代表値データを加算し、局部
復号データを生成する加算手段と、 前記局部復号データに基づいて、新たな予測画像を生成
する予測手段とを備えることを特徴とする画像符号化装
置。
13. A first difference calculating means for calculating a difference between an input image and a predicted image for each predetermined block to generate first difference data, and the first difference for each predetermined block. Representative value determining means for determining representative value data of data, quantization width determining means for determining the quantization width of the first difference data for each of the predetermined blocks, the first difference data and the representative Second difference calculating means for calculating a difference between the value data and generating second difference data; and quantizing means for quantizing the second difference data based on the quantization width to generate quantized data. Dequantizing the quantized data on the basis of the quantization width to generate dequantized data; and adding the dequantized data and the representative value data to generate locally decoded data. Addition means to Based on the local decoded data, the image encoding device characterized by comprising a prediction means for generating a new predicted image.
【請求項14】 伝送データから、符号化画像データ、
並びに所定のブロックごとに設定された代表値データ、
および量子化幅を抽出し、 前記符号化画像データを逆量子化し、第1の逆量子化デ
ータを生成し、 前記第1の逆量子化データに所定の逆変換処理を施し、
逆変換データを生成し、 前記逆変換データを前記量子化幅に基づいて逆量子化
し、第2の逆量子化データを生成し、 前記第2の逆量子化データと前記代表値データを加算
し、復号画像データを生成することを特徴とする画像復
号化方法。
14. From the transmission data, the encoded image data,
And representative value data set for each predetermined block,
And a quantization width are extracted, the coded image data is inversely quantized, first inverse quantized data is generated, and the first inverse quantized data is subjected to predetermined inverse transform processing,
Inverse transform data is generated, the inverse transform data is inversely quantized based on the quantization width, second inverse quantized data is generated, and the second inverse quantized data and the representative value data are added. An image decoding method characterized by generating decoded image data.
【請求項15】 前記代表値データは、隣接するブロッ
クにおける画像データの代表値データの差分であること
を特徴とする請求項14に記載の画像復号化方法。
15. The image decoding method according to claim 14, wherein the representative value data is a difference between representative value data of image data in adjacent blocks.
【請求項16】 前記伝送データから、直前に復号化さ
れたブロックにおける画像データの量子化幅と、いま復
号化しようとしているブロックにおける画像データの量
子化幅とが同一であるか否かの比較情報をさらに抽出
し、 直前に復号化されたブロックにおける画像データの量子
化幅と、いま復号化しようとしているブロックにおける
画像データの量子化幅とが同一である場合、直前に復号
化されたブロックにおける画像データの量子化幅に基づ
いて、前記逆変換データを逆量子化することを特徴とす
る請求項14に記載の画像復号化方法。
16. A comparison is made as to whether or not the quantization width of image data in a block decoded immediately before and the quantization width of image data in a block to be decoded are the same from the transmission data. If the quantization width of the image data in the block decoded immediately before is further extracted from the information and the quantization width of the image data in the block currently being decoded is the same, the block decoded immediately before 15. The image decoding method according to claim 14, wherein the inverse transform data is inversely quantized based on the quantization width of the image data in.
【請求項17】 伝送データから、符号化画像データ、
並びに所定の単位領域ごとに設定された代表値データ、
および量子化幅を抽出し、 所定のブロックごとに、前記符号化画像データを逆量子
化し、第1の逆量子化データを生成し、 前記第1の逆量子化データに所定の逆変換処理を施し、
逆変換データを生成し、 所定の単位領域ごとに、前記逆変換データを前記量子化
幅に基づいて逆量子化し、第2の逆量子化データを生成
し、 前記第2の逆量子化データと前記代表値データを加算
し、復号画像データを生成することを特徴とする画像復
号化方法。
17. From the transmission data, the encoded image data,
And representative value data set for each predetermined unit area,
And a quantization width are extracted, the coded image data is dequantized for each predetermined block, first dequantized data is generated, and a predetermined inverse transform process is performed on the first dequantized data. Giving,
Inverse-transformed data is generated, the inverse-transformed data is inverse-quantized based on the quantization width for each predetermined unit area, second inverse-quantized data is generated, and the second inverse-quantized data is generated. An image decoding method comprising adding the representative value data to generate decoded image data.
【請求項18】 前記単位領域と、前記ブロックの大き
さは、整数倍の関係を有することを特徴とする請求項1
7に記載の画像復号化方法。
18. The unit area and the size of the block have an integral multiple relationship.
7. The image decoding method according to 7.
【請求項19】 予測画像に基づいて、画像を復号する
画像復号化方法において、 伝送データから、符号化画像データ、並びに所定のブロ
ックごとに設定された代表値データ、および量子化幅を
抽出し、 前記符号化画像データを、前記量子化幅に基づいて逆量
子化し、逆量子化データを生成し、 前記逆量子化データと前記代表値データを加算し、復号
差分データを生成し、 前記復号差分データと前記予測画像を加算し、復号画像
データを生成することを特徴とする画像復号化方法。
19. An image decoding method for decoding an image based on a predicted image, wherein encoded image data, representative value data set for each predetermined block, and quantization width are extracted from transmission data. Decoding the encoded image data based on the quantization width to generate dequantized data, adding the dequantized data and the representative value data, generating decoding difference data, the decoding An image decoding method comprising adding differential data and the predicted image to generate decoded image data.
【請求項20】 前記復号画像データと前記代表値デー
タとの差分を算出し、 前記差分を前記量子化幅に基づいて量子化し、復号量子
化データを生成し、 前記復号量子化データ、代表値データ、および量子化幅
を記憶手段に記憶させ、 前記復号量子化データ、代表値データ、および量子化幅
を前記記憶手段から読み出し、前記予測画像を生成する
ことを特徴とする請求項19に記載の画像復号化方法。
20. A difference between the decoded image data and the representative value data is calculated, the difference is quantized based on the quantization width to generate decoded quantized data, the decoded quantized data, the representative value. The data and the quantization width are stored in a storage unit, the decoded quantized data, the representative value data, and the quantization width are read from the storage unit, and the predicted image is generated. Image decoding method.
【請求項21】 伝送データから、符号化画像データ、
並びに所定のブロックごとに設定された代表値データ、
および量子化幅を抽出する抽出手段と、 前記符号化画像データを逆量子化し、第1の逆量子化デ
ータを生成した後、前記第1の逆量子化データに所定の
逆変換処理を施し、逆変換データを生成する第1の逆量
子化手段と、 前記逆変換データを前記量子化幅に基づいて逆量子化
し、第2の逆量子化データを生成する第2の逆量子化手
段と、 前記第2の逆量子化データと前記代表値データを加算
し、復号画像データを生成する加算手段とを備えること
を特徴とする画像復号化装置。
21. From transmission data, encoded image data,
And representative value data set for each predetermined block,
And extraction means for extracting a quantization width, dequantizing the encoded image data to generate first dequantized data, and then subjecting the first dequantized data to a predetermined inverse transform process, First inverse quantization means for generating inverse transformed data; second inverse quantization means for inversely quantizing the inverse transformed data based on the quantization width to generate second inverse quantized data; An image decoding apparatus comprising: an addition unit that adds the second dequantized data and the representative value data to generate decoded image data.
【請求項22】 予測画像に基づいて、画像を復号する
画像復号化装置において、 伝送データから、符号化画像データ、並びに所定のブロ
ックごとに設定された代表値データ、および量子化幅を
抽出する抽出手段と、 前記符号化画像データを、前記量子化幅に基づいて逆量
子化し、逆量子化データを生成する逆量子化手段と、 前記逆量子化データと前記代表値データを加算し、復号
差分データを生成する第1の加算手段と、 前記復号差分データと前記予測画像を加算し、復号画像
データを生成する第2の加算手段とを備えることを特徴
とする画像復号化方法。
22. An image decoding apparatus for decoding an image based on a predicted image extracts encoded image data, representative value data set for each predetermined block, and quantization width from transmission data. Extraction means, dequantization means for dequantizing the coded image data based on the quantization width to generate dequantized data, and adding the dequantized data and the representative value data for decoding An image decoding method comprising: a first addition unit that generates difference data; and a second addition unit that adds the decoded difference data and the predicted image to generate decoded image data.
【請求項23】 伝送データから、符号化された画像デ
ータおよび前記画像データのビット精度に関する精度情
報を抽出する抽出手段と、 前記精度情報に基づいて、前記符号化された画像データ
が復号可能か否かを判定する判定手段と、 前記符号化された画像データが復号不能である場合、前
記符号化された画像データが復号不能であることを知ら
せる報知手段とを備えることを特徴とする画像復号化装
置。
23. Extraction means for extracting encoded image data and precision information about bit precision of the image data from transmission data, and whether the encoded image data can be decoded based on the precision information. An image decoding device comprising: a determination unit that determines whether or not the encoded image data is undecodable; and a notification unit that notifies that the encoded image data is undecodable. Device.
【請求項24】 伝送データから、符号化された画像デ
ータ、前記画像データのビット精度に関する精度情報、
並びに所定のブロックごとに設定された代表値データ、
および量子化幅を抽出する抽出手段と、 前記符号化された画像データを逆量子化し、第1の逆量
子化データを生成した後、前記第1の逆量子化データに
所定の逆変換処理を施し、逆変換データを生成する第1
の逆量子化手段と、 前記逆変換データを前記量子化幅に基づいて逆量子化
し、第2の逆量子化データを生成する第2の逆量子化手
段と、 前記第2の逆量子化データと前記代表値データを加算
し、第1の復号画像データを生成する加算手段と、 前記第1の復号画像データを、前記精度情報に基づいて
量子化し、第2の復号画像データを生成する量子化手段
とを備えることを特徴とする画像復号化装置。
24. From transmission data, encoded image data, accuracy information regarding bit accuracy of the image data,
And representative value data set for each predetermined block,
And extraction means for extracting a quantization width, and inversely quantizing the coded image data to generate first inverse quantized data, and then subjecting the first inverse quantized data to predetermined inverse transform processing. The first to apply and generate inverse transformed data
Dequantizing means for dequantizing the inverse transformed data based on the quantization width to generate second dequantized data, and the second dequantized data. And an addition unit that adds the representative value data to generate first decoded image data, and a quantum that quantizes the first decoded image data based on the accuracy information to generate second decoded image data. An image decoding apparatus comprising: an image decoding unit.
【請求項25】 所定のブロックごとに、画像データの
代表値データおよび量子化幅を決定し、 前記画像データと前記代表値データの差分を算出し、 前記差分を前記量子化幅に基づいて量子化し、第1の量
子化データを生成し、 前記第1の量子化データに所定の変換処理を施し、変換
係数を生成し、 前記変換係数を量子化し、第2の量子化データを生成
し、 前記代表値データ、量子化幅、および第2の量子化デー
タを符号化することにより生成されたビットストリーム
が記録されていることを特徴とする画像記録媒体。
25. Representative value data and quantization width of image data are determined for each predetermined block, a difference between the image data and the representative value data is calculated, and the difference is quantized based on the quantization width. To generate first quantized data, subject the first quantized data to a predetermined conversion process, generate transform coefficients, quantize the transform coefficients, and generate second quantized data. An image recording medium, characterized in that a bit stream generated by encoding the representative value data, the quantization width, and the second quantization data is recorded.
JP1936993A 1993-01-11 1993-01-11 Picture coder, picture coding method, picture decoder, picture decoding method and picture recording medium Pending JPH06209469A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1936993A JPH06209469A (en) 1993-01-11 1993-01-11 Picture coder, picture coding method, picture decoder, picture decoding method and picture recording medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1936993A JPH06209469A (en) 1993-01-11 1993-01-11 Picture coder, picture coding method, picture decoder, picture decoding method and picture recording medium

Publications (1)

Publication Number Publication Date
JPH06209469A true JPH06209469A (en) 1994-07-26

Family

ID=11997433

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1936993A Pending JPH06209469A (en) 1993-01-11 1993-01-11 Picture coder, picture coding method, picture decoder, picture decoding method and picture recording medium

Country Status (1)

Country Link
JP (1) JPH06209469A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009516950A (en) * 2005-11-21 2009-04-23 トムソン ライセンシング High dynamic image transmission system, encoding unit, decoding unit and method therefor
JP5263854B1 (en) * 2013-02-25 2013-08-14 株式会社ドクターネット Image compression apparatus, image decompression apparatus, image compression program, image decompression program, and data structure
JP2014017867A (en) * 2005-09-26 2014-01-30 Mitsubishi Electric Corp Moving image decoding device and moving image decoding method
JP2014090253A (en) * 2012-10-29 2014-05-15 Canon Inc Video encoder, video encoding method and program
US9361517B2 (en) 2009-07-01 2016-06-07 Nec Corporation System and method for extracting representative feature
US10827174B2 (en) 2010-08-17 2020-11-03 Electronics And Telecommunications Research Institute Method and apparatus for encoding video, and decoding method and apparatus

Cited By (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9380306B2 (en) 2005-09-26 2016-06-28 Mitsubishi Electric Corporation Moving image coding apparatus and moving image decoding apparatus
US10728550B2 (en) 2005-09-26 2020-07-28 Mitsubishi Electric Corporation Moving image coding apparatus and moving image decoding apparatus
US9503735B2 (en) 2005-09-26 2016-11-22 Mitsubishi Electric Corporation Moving image coding apparatus and moving image decoding apparatus
JP2017017725A (en) * 2005-09-26 2017-01-19 三菱電機株式会社 Moving image encoding device, moving image encoding method, moving image decoding device, moving image decoding method, and bit stream
US9060157B2 (en) 2005-09-26 2015-06-16 Mitsubishi Electric Corporation Moving image coding apparatus and moving image decoding apparatus
US11039136B2 (en) 2005-09-26 2021-06-15 Mitsubishi Electric Corporation Moving image coding apparatus and moving image decoding apparatus
JP2015156721A (en) * 2005-09-26 2015-08-27 三菱電機株式会社 bit stream
US10142632B2 (en) 2005-09-26 2018-11-27 Mitsubishi Electric Corporation Moving image coding apparatus and moving image decoding apparatus
US11627317B2 (en) 2005-09-26 2023-04-11 Mitsubishi Electric Corporation Moving image coding apparatus and moving image decoding apparatus
JP2014017867A (en) * 2005-09-26 2014-01-30 Mitsubishi Electric Corp Moving image decoding device and moving image decoding method
US9591308B2 (en) 2005-09-26 2017-03-07 Mitsubishi Electric Corporation Moving image coding apparatus and moving image decoding apparatus
US9083930B2 (en) 2005-11-21 2015-07-14 Thomson Licensing High-dynamics image transmission system, encoding and decoding units and methods therefor
JP2009516950A (en) * 2005-11-21 2009-04-23 トムソン ライセンシング High dynamic image transmission system, encoding unit, decoding unit and method therefor
US9361517B2 (en) 2009-07-01 2016-06-07 Nec Corporation System and method for extracting representative feature
US10827174B2 (en) 2010-08-17 2020-11-03 Electronics And Telecommunications Research Institute Method and apparatus for encoding video, and decoding method and apparatus
US10939106B2 (en) 2010-08-17 2021-03-02 Electronics And Telecommunications Research Institute Method and apparatus for encoding video, and decoding method and apparatus
JP2014090253A (en) * 2012-10-29 2014-05-15 Canon Inc Video encoder, video encoding method and program
JP5263854B1 (en) * 2013-02-25 2013-08-14 株式会社ドクターネット Image compression apparatus, image decompression apparatus, image compression program, image decompression program, and data structure

Similar Documents

Publication Publication Date Title
US5136371A (en) Digital image coding using random scanning
Le Gall The MPEG video compression algorithm
JPH08256341A (en) Image signal coding method, image signal coder, image signal recording medium and image signal decoder
US5559557A (en) Motion video coding with adaptive precision for DC component coefficient quantization and variable length coding
JP3610578B2 (en) Rounding error prevention method and apparatus when inversely transforming transform coefficient indicating moving image signal
JP3358620B2 (en) Image encoding method and image encoding device
JP3189258B2 (en) Image signal encoding method and image signal encoding device, image signal decoding method and image signal decoding device
US6987889B1 (en) System and method for dynamic perceptual coding of macroblocks in a video frame
JP2000278692A (en) Compressed data processing method, processor and recording and reproducing system
KR100415494B1 (en) Image encoding method and apparatus, recording apparatus, video signal encoding apparatus, processing apparatus and method, video data processing apparatus and method
US7095448B2 (en) Image processing circuit and method for modifying a pixel value
JPH06125543A (en) Encoding device
JPH0818979A (en) Image processor
JPH06209469A (en) Picture coder, picture coding method, picture decoder, picture decoding method and picture recording medium
JP3227674B2 (en) Video encoding apparatus and method
JP3703088B2 (en) Extended image encoding device and extended image decoding device
JPH0795536A (en) Device and method for reversely reproducing moving image
JPH06339111A (en) Compressed moving picture reproduction device
US7095785B2 (en) Determination of prediction direction in MPEG-4
JPH06334983A (en) Encoding method, encoding device, decoding method, and decoding device for picture signal
EP0927954B1 (en) Image signal compression coding method and apparatus
JPH0698307A (en) Picture coding method, picture coder, picture decoding method, picture decoder and picture recording medium
JP3934772B2 (en) Variable transfer rate encoding method and apparatus
JP3948142B2 (en) High-efficiency encoding device and high-efficiency decoding device
JPH09238345A (en) Image signal coding method and device therefor, image signal transmission method, image signal decoding method, device therefor and recording medium

Legal Events

Date Code Title Description
A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20011106