JPH1188191A - Coding method, decoding method, coder and decoder - Google Patents

Coding method, decoding method, coder and decoder

Info

Publication number
JPH1188191A
JPH1188191A JP2875898A JP2875898A JPH1188191A JP H1188191 A JPH1188191 A JP H1188191A JP 2875898 A JP2875898 A JP 2875898A JP 2875898 A JP2875898 A JP 2875898A JP H1188191 A JPH1188191 A JP H1188191A
Authority
JP
Japan
Prior art keywords
code
encoding
length
encoded information
coding
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
JP2875898A
Other languages
Japanese (ja)
Inventor
Ichiro Ando
一郎 安藤
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.)
Victor Company of Japan Ltd
Original Assignee
Victor Company of Japan Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Victor Company of Japan Ltd filed Critical Victor Company of Japan Ltd
Priority to JP2875898A priority Critical patent/JPH1188191A/en
Publication of JPH1188191A publication Critical patent/JPH1188191A/en
Pending legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To provide a coding method, a decoding method, a coder and a decoder where all quantization coefficients for a prescribed period are coded with an excellent coding efficiency with a code length shorter than a set level coding length. SOLUTION: A quantization circuit 6 that quantizes a DCT coefficient of an input signal to provide an output of a quantization coefficient sets a code length in the case of coding by a fixed length and in the case that the quantization coefficient exceeds a range corresponding to the code length, the circuit limits the coefficient within a value of the range. A coding circuit 11 outputs a code in the case of applying variable length coding to coded information when there is any corresponding code in a coding table and provides an output of a code resulting from coding the coded information based on at least the quantization coefficient with the set code length and provides an output of the code in which the set code length information DL is set to a predetermined area in its header.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は符号化方法、復号化
方法、符号化装置及び復号化装置に係り、特にディジタ
ル情報信号を圧縮符号化した符号化データを生成する符
号化方法及び符号化装置並びに符号化データを復号する
復号化方法及び復号化装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an encoding method, a decoding method, an encoding device and a decoding device, and more particularly to an encoding method and an encoding device for generating encoded data obtained by compressing and encoding a digital information signal. And a decoding method and a decoding device for decoding encoded data.

【0002】[0002]

【従来の技術】従来より、ディジタル情報信号を圧縮符
号化した符号化データを生成する符号化方法として、国
際標準であるMPEG(Moving Picture Experts Grou
p)1やMPEG2による動画像圧縮方式が知られてい
る。このMPEG1やMPEG2による従来の符号化方
法では、画像信号や動き補償予測信号を離散コサイン変
換(DCT:Discrete Cosine Transform)する。そし
て、従来の符号化方法では、DCT係数値を量子化し
て、DCT量子化係数値を以下の手順で符号化する。
2. Description of the Related Art Conventionally, an MPEG (Moving Picture Experts Group), an international standard, has been used as an encoding method for generating encoded data obtained by compressing and encoding a digital information signal.
Moving image compression methods based on p) 1 and MPEG2 are known. In the conventional encoding method based on MPEG1 or MPEG2, an image signal or a motion compensation prediction signal is subjected to discrete cosine transform (DCT: Discrete Cosine Transform). Then, in the conventional encoding method, the DCT coefficient value is quantized, and the DCT quantized coefficient value is encoded in the following procedure.

【0003】まず、入力信号を8×8画素のブロック毎
に分割してDCT演算を行い、得られたDCT係数を直
流成分と交流成分それぞれについて量子化し、その量子
化されたDCT係数のうち、交流成分のDCT係数は8
×8のDCTブロック内でジグザグスキャン等によって
走査する。なお、直流成分のDCT係数(DC係数)は
直前のブロックのDC係数を予測値とした差分値を符号
化する。
First, an input signal is divided into blocks of 8 × 8 pixels, a DCT operation is performed, and the obtained DCT coefficients are quantized for each of a DC component and an AC component, and among the quantized DCT coefficients, The DCT coefficient of the AC component is 8
Scanning is performed by zigzag scanning or the like in a DCT block of x8. The DCT coefficient (DC coefficient) of the DC component encodes a difference value using the DC coefficient of the immediately preceding block as a predicted value.

【0004】次に、上記の走査において先頭から順に、
連続するゼロ量子化係数の個数(ラン:RUN)と非ゼ
ロ量子化係数値(レベル:LEVEL)とをまとめて2
次元可変長符号化する。そして、その2次元可変長符号
化で使用する可変長符号(VLC:Variable Length Co
de)テーブルに対応するコードがない場合に、所定のエ
スケープ(ESCAPE)コードに続けてランとレベル
を固定長で符号化する。
[0004] Next, in the above scanning,
The number of consecutive zero quantized coefficients (run: RUN) and the non-zero quantized coefficient values (level: LEVEL) are summarized as 2
Perform dimension variable length coding. Then, a variable length code (VLC: Variable Length Co) used in the two-dimensional variable length coding is used.
de) When there is no code corresponding to the table, a run and a level are encoded with a fixed length following a predetermined escape (ESCAPE) code.

【0005】ここで、レベルの固定長符号化についてビ
ット幅が問題となる。MPEG1やMPEG2では、量
子化前のDCT係数値が取り得る範囲は、[−204
8:2047]なので、量子化係数値の取り得る範囲も
[−2048:2047]である。
Here, the bit width is a problem in the fixed-length level coding. In MPEG1 and MPEG2, the possible range of DCT coefficient values before quantization is [-204
8: 2047], the range of possible quantization coefficient values is also [−2048: 2047].

【0006】一方、低ビットレートで符号化する場合は
量子化ステップが大きくなるので、結果として量子化係
数値の範囲が狭くなる。このとき、レベルを固定長で符
号化する際の符号長が長いと符号化効率が低下する。ま
た、高ビットレートで符号化する場合は、量子化ステッ
プが小さくなるので、結果として量子化係数値の範囲が
広くなる。このとき、レベルを固定長で符号化する際の
符号長が短いと、クリップ処理する必要があり、大きな
歪みが生じる。
On the other hand, when encoding at a low bit rate, the quantization step becomes large, and as a result, the range of the quantization coefficient value becomes narrow. At this time, if the code length at the time of coding with a fixed length is long, the coding efficiency is reduced. When encoding at a high bit rate, the quantization step becomes smaller, and as a result, the range of the quantization coefficient value becomes wider. At this time, if the code length at the time of encoding the level at a fixed length is short, it is necessary to perform clip processing, and large distortion occurs.

【0007】MPEG1ではこの問題を解決するため、
レベルの固定長符号化において、下記の表1のようにレ
ベル値が[−127:127]のときには符号長を8ビ
ットとし、レベル値が[−128:−255]の範囲と
[128:255]の範囲では符号長を16ビットと
し、レベル値に応じて2段階の符号長を設けている。
In MPEG1, in order to solve this problem,
In the fixed-length level coding, when the level value is [-127: 127] as shown in Table 1 below, the code length is set to 8 bits, and the level value is in the range of [-128: -255] and [128: 255]. ], The code length is 16 bits, and two levels of code lengths are provided according to the level values.

【0008】[0008]

【表1】 [Table 1]

【0009】[0009]

【発明が解決しようとする課題】しかし、上記の従来方
法では、表1からわかるように、8ビット単位で正負両
方向にそれぞれ128ずつしか範囲が広げられないため
に、レベルの大きさが大きくなると符号化効率が極度に
低下する。また、レベルの大きなコードを復号化する場
合に、8ビット単位で判断処理する必要があり、復号化
処理が複雑化する。
However, in the above-mentioned conventional method, as can be seen from Table 1, since the range can be expanded only by 128 in the positive and negative directions in 8-bit units, the level becomes large. The coding efficiency is extremely reduced. Further, when decoding a high-level code, it is necessary to perform a judgment process in units of 8 bits, which complicates the decoding process.

【0010】本発明は上記の点に鑑みなされたもので、
符号化効率を改善し得る符号化方法を提供することを目
的とする。
[0010] The present invention has been made in view of the above points,
An object of the present invention is to provide a coding method capable of improving coding efficiency.

【0011】また、本発明の他の目的は、レベル値を制
限することで生じる符号化歪みの発生を防止し得る符号
化方法、復号化方法、符号化装置及び復号化装置を提供
することにある。
Another object of the present invention is to provide an encoding method, a decoding method, an encoding device, and a decoding device capable of preventing occurrence of encoding distortion caused by limiting a level value. is there.

【0012】更に、本発明の他の目的は、所定期間の全
量子化係数値を、設定したレベル符号長より小さい符号
長で符号化効率良く符号化し得、その符号を復号し得る
符号化方法、復号化方法、符号化装置及び復号化装置を
提供することにある。
Still another object of the present invention is to provide an encoding method capable of encoding all quantized coefficient values in a predetermined period with a code length smaller than a set level code length with high coding efficiency and decoding the code. , A decoding method, an encoding device, and a decoding device.

【0013】[0013]

【課題を解決するための手段】上記の目的を達成するた
め、請求項1記載の本発明の符号化方法は、入力信号の
直交変換係数を量子化して得られた量子化係数値に基づ
く被符号化情報を生成し、この被符号化情報の一部に対
して符号化テーブルを予め設定し、被符号化情報を可変
長符号化する際に、この被符号化情報中に符号化テーブ
ルに対応する符号があればその符号を出力し、無ければ
被符号化情報に対して少なくとも符号化テーブルに対応
する符号を使用しないことを示す符号と、量子化係数値
を符号化した符号を出力する符号化方法において、量子
化係数値を固定長で符号化する際の符号長を設定し、量
子化係数値がその符号長に対応する範囲を越えた場合に
当該範囲内の値に制限し、被符号化情報を符号化する際
には、符号化テーブルに対応する符号が無ければ、被符
号化情報に対して少なくとも符号化テーブルに対応する
符号を使用しないことを示す符号と、量子化係数値を設
定した符号長で符号化した符号とを出力すると共に、ヘ
ッダ中の予め定めた領域に設定した符号長情報を配置し
て出力するようにしたものである。
In order to achieve the above object, the encoding method according to the first aspect of the present invention provides a coding method based on a quantized coefficient value obtained by quantizing an orthogonal transform coefficient of an input signal. Generating encoded information, setting an encoding table in advance for a part of the encoded information, and performing variable length encoding of the encoded information, the encoding table is included in the encoded information. If there is a corresponding code, the code is output; otherwise, a code indicating that at least the code corresponding to the coding table is not used for the information to be coded, and a code obtained by coding the quantized coefficient value is output. In the encoding method, a code length for encoding a quantized coefficient value with a fixed length is set, and when the quantized coefficient value exceeds a range corresponding to the code length, the value is limited to a value within the range. When encoding the encoded information, the encoding data If there is no code corresponding to the code, a code indicating that at least the code corresponding to the coding table is not used for the information to be coded and a code coded with the code length set with the quantization coefficient value are output. In addition, the code length information set in a predetermined area in the header is arranged and output.

【0014】この発明では、符号化ビットレート等に応
じて量子化係数値を設定した符号長で符号化すると共
に、量子化係数値がその符号長に対応する範囲を越えた
場合に当該範囲内の値に制限するようにしているので、
必要以上に符号長を大きくすることがない。また、本発
明では、量子化係数値を設定した符号長で符号化するよ
うにしたため、必要以下に符号長を小さくすることなく
符号化できる。
According to the present invention, the quantization coefficient value is encoded with the set code length according to the encoding bit rate or the like, and when the quantization coefficient value exceeds the range corresponding to the code length, the quantization coefficient value falls within the range. Is limited to the value of
The code length is not increased more than necessary. Further, in the present invention, since the quantization coefficient value is encoded with the set code length, the encoding can be performed without reducing the code length less than necessary.

【0015】また、請求項2記載の本発明の符号化方法
は、直交変換係数毎に量子化特性に応じて、量子化係数
値を符号化する際の符号長を求め、被符号化情報を符号
化する際に符号化テーブルに対応する符号が無ければ、
被符号化情報を使用しないことを示す符号と、量子化係
数値を設定した符号長で符号化した符号とを出力するこ
とを特徴とする。この発明では、ヘッダ中の予め定めた
領域に設定した符号長情報を配置して伝送することな
く、量子化係数値を設定した符号長で符号化できる。
According to a second aspect of the present invention, in the encoding method, a code length for encoding a quantized coefficient value is determined for each orthogonal transform coefficient in accordance with a quantization characteristic, and encoded information is obtained. If there is no code corresponding to the encoding table when encoding,
A code indicating that the information to be encoded is not used and a code encoded with a code length in which the quantization coefficient value is set are output. According to the present invention, the quantization coefficient value can be encoded with the set code length without arranging and transmitting the set code length information in a predetermined area in the header.

【0016】また、請求項3記載の本発明の符号化方法
は、入力信号の所定期間に対応する期間分の量子化係数
値について、その量子化係数値を固定長で符号化する際
に必要な符号長を最大符号長として求め、被符号化情報
を符号化する際には、符号化テーブルに対応する符号が
無ければ、被符号化情報に対して少なくとも符号化テー
ブルに対応する符号を使用しないことを示す符号と、量
子化係数値を最大符号長で符号化した符号とを出力する
ことを特徴とする。この発明では、量子化係数値を設定
した符号長で符号化するよりも、符号化テーブルに対応
する符号を使用しないことを示す符号と共に量子化係数
値を小さい符号長で符号化できることがある。
The encoding method according to the third aspect of the present invention is required when encoding a fixed-length quantization coefficient value for a period corresponding to a predetermined period of an input signal. Is determined as the maximum code length, and when encoding the encoded information, if there is no code corresponding to the encoding table, at least the code corresponding to the encoding table is used for the encoded information. A code indicating that no quantization is performed and a code obtained by encoding the quantization coefficient value with the maximum code length are output. According to the present invention, the quantization coefficient value may be encoded with a smaller code length together with a code indicating that the code corresponding to the encoding table is not used, rather than encoding the quantization coefficient value with the set code length.

【0017】更に、請求項4記載の本発明の復号化方法
は、入力信号の直交変換係数を量子化して得られた量子
化係数値に基づく被符号化情報を生成し、この被符号化
情報の一部に対して符号化テーブルを予め設定し、被符
号化情報を可変長符号化する際に、この被符号化情報中
に符号化テーブルに対応する符号があればその符号を出
力し、無ければ被符号化情報に対して少なくとも符号化
テーブルに対応する符号を使用しないことを示す符号
と、量子化係数値を符号化した符号を出力する符号化方
法により出力された可変長符号化データを受け、入力信
号を復号する復号化方法において、直交変換係数毎に量
子化特性に応じて、量子化係数値を復号化する際の符号
長を求め、被符号化情報を復号する際に符号化テーブル
に対応する符号が無いことを示す符号を復号化したとき
は、少なくとも量子化係数値を復号する際の符号長で復
号化するようにしたものである。本発明では、直交変換
係数毎に量子化特性に応じて復号化できる。
Further, according to the decoding method of the present invention, encoded information is generated based on a quantized coefficient value obtained by quantizing an orthogonal transform coefficient of an input signal. Is set in advance for a part of, when the encoded information is variable-length encoded, if there is a code corresponding to the encoding table in the encoded information, the code is output, Otherwise, a code indicating that at least a code corresponding to the coding table is not used for the information to be coded, and variable-length coded data output by a coding method of outputting a code obtained by coding a quantized coefficient value. In a decoding method for decoding an input signal, a code length for decoding a quantized coefficient value is determined according to a quantization characteristic for each orthogonal transform coefficient, and a code length is determined for decoding encoded information. No code corresponding to the conversion table When decoding the code indicating that is obtained so as to decode code length in decoding the least quantization coefficient values. According to the present invention, decoding can be performed according to the quantization characteristics for each orthogonal transform coefficient.

【0018】また、本発明は、入力信号の直交変換係数
を量子化して量子化係数値を出力する量子化手段と、量
子化手段から出力される量子化係数値に基づき被符号化
情報を生成し、この被符号化情報の一部に対して符号化
テーブルを予め設定し、被符号化情報を可変長符号化す
る際に、この被符号化情報中に符号化テーブルに対応す
る符号があればその符号を出力し、無ければ被符号化情
報に対して少なくとも符号化テーブルに対応する符号を
使用しないことを示す符号と、量子化係数値を符号化し
た符号を出力する符号化回路とを有する符号化装置にお
いて、請求項5記載の符号化装置は、直交変換係数毎に
量子化特性に応じて、量子化係数値を符号化する際の符
号長を求める符号長決定回路を設け、符号化回路は、符
号化テーブルに対応する符号が無ければ、被符号化情報
を使用しないことを示す符号と、符号長決定回路からの
量子化係数値を設定した符号長で符号化した符号とを出
力する構成としたものであり、請求項6記載の符号化装
置は、直交変換係数毎に量子化特性に応じて、量子化係
数値を符号化する際の符号長を求める符号長決定回路を
設け、符号化回路は、符号化テーブルに対応する符号が
無ければ、被符号化情報を使用しないことを示す符号
と、符号長決定回路からの量子化係数値を設定した符号
長で符号化した符号とを出力する構成としたものであ
る。
According to the present invention, there is provided a quantization means for quantizing orthogonal transform coefficients of an input signal to output a quantization coefficient value, and generating encoded information based on the quantization coefficient value output from the quantization means. Then, an encoding table is set in advance for a part of the encoded information, and when the encoded information is subjected to variable length encoding, a code corresponding to the encoding table is included in the encoded information. If the encoding circuit outputs the code, and if not, a code indicating that at least the code corresponding to the encoding table is not used for the information to be encoded, and an encoding circuit that outputs a code obtained by encoding the quantization coefficient value, The encoding apparatus according to claim 5, further comprising: a code length determining circuit for determining a code length when encoding the quantized coefficient value according to the quantization characteristic for each orthogonal transform coefficient. The encoding circuit matches the encoding table. If there is no code to be encoded, a code indicating that the information to be encoded is not used, and a code coded with the code length set with the quantization coefficient value from the code length determination circuit are output, The encoding apparatus according to claim 6, further comprising: a code length determining circuit for determining a code length when encoding the quantized coefficient value in accordance with the quantization characteristic for each orthogonal transform coefficient. If there is no code corresponding to the table, a code indicating that the information to be coded is not used and a code coded by the code length set with the quantization coefficient value from the code length determination circuit are output. It is.

【0019】また、本発明の請求項7記載の符号化装置
は、量子化手段から出力された量子化係数値を、入力信
号の所定期間に対応する期間分だけ蓄積するメモリと、
量子化手段から出力された量子化係数値を固定長で符号
化する際に必要な符号長を最大符号長として求める最大
符号長検出回路とを設け、符号化回路は、メモリから入
力される量子化係数値に基づいて生成した被符号化情報
を符号化する際に、符号化テーブルに対応する符号が無
ければ、被符号化情報に対して少なくとも符号化テーブ
ルに対応する符号を使用しないことを示す符号と、量子
化係数値を最大符号長検出回路で検出された最大符号長
で符号化した符号とを出力するため、量子化係数値を設
定した符号長で符号化するよりも、符号化テーブルに対
応する符号を使用しないことを示す符号と共に量子化係
数値を小さい符号長で符号化できる場合がある。
The encoding apparatus according to claim 7 of the present invention further comprises a memory for accumulating the quantized coefficient value output from the quantizing means for a period corresponding to a predetermined period of the input signal;
A maximum code length detection circuit for obtaining a code length necessary for encoding the quantized coefficient value output from the quantization means with a fixed length as a maximum code length. When encoding the encoded information generated based on the encoding coefficient value, if there is no code corresponding to the encoding table, it is necessary not to use at least the code corresponding to the encoding table for the encoded information. In order to output the code shown and the code obtained by encoding the quantized coefficient value with the maximum code length detected by the maximum code length detection circuit, the encoding is performed rather than encoding the quantized coefficient value with the set code length. In some cases, the quantization coefficient value can be encoded with a small code length together with a code indicating that the code corresponding to the table is not used.

【0020】更に、本発明の請求項8記載の復号化装置
は、直交変換係数毎に量子化特性に応じて、量子化係数
値を復号化する際の符号長を求める受信符号長決定回路
と、少なくとも符号化テーブルに対応する符号が無いこ
とを示す符号が入力されたときは、量子化係数値を符号
化した符号を受信符号長決定回路からの符号長で復号化
する復号化回路とを有することを特徴とする。
The decoding apparatus according to the present invention further comprises a receiving code length determining circuit for obtaining a code length for decoding a quantized coefficient value in accordance with a quantization characteristic for each orthogonal transform coefficient. When a code indicating that there is no code corresponding to at least the coding table is input, a decoding circuit that decodes the code obtained by coding the quantized coefficient value with the code length from the reception code length determination circuit. It is characterized by having.

【0021】[0021]

【発明の実施の形態】次に、本発明の実施の形態につい
て図面と共に説明する。図1は本発明になる符号化方法
及び装置の第1の実施の形態の符号化処理を説明するた
めのブロック図を示す。同図中、入力端子1には伝送す
べきディジタル画像信号(ビデオ信号)が入力され、入
力端子2にはレベル符号長情報DLが1フレーム又は複
数フレーム単位で入力される。このレベル符号長情報D
Lは、例えばMPEG1規格のピクチャヘッダ中に追加
設定した伝送領域に配置されて伝送される。
Next, embodiments of the present invention will be described with reference to the drawings. FIG. 1 is a block diagram illustrating an encoding process according to a first embodiment of the encoding method and apparatus according to the present invention. In FIG. 1, a digital image signal (video signal) to be transmitted is input to an input terminal 1, and level code length information DL is input to an input terminal 2 in units of one frame or a plurality of frames. This level code length information D
For example, L is transmitted by being arranged in a transmission area additionally set in a picture header of the MPEG1 standard, for example.

【0022】次に、この実施の形態の動作について説明
する。入力端子1より入力されたビデオ信号は、減算器
3及び予測回路4にそれぞれ供給され、減算器3で後述
の予測回路4の出力動き補償信号と減算されることによ
り、動き補償予測誤差信号とされた後、DCT回路5に
供給され、ここで8×8画素のブロック毎に分割してD
CT演算されて、直交変換係数の一例としてのDCT係
数が得られる。このDCT係数は、12ビットで値の範
囲は[−2048:2047]である。
Next, the operation of this embodiment will be described. The video signal input from the input terminal 1 is supplied to a subtractor 3 and a prediction circuit 4, respectively, and is subtracted from an output motion compensation signal of a prediction circuit 4 to be described later by the subtracter 3, thereby obtaining a motion compensation prediction error signal and After that, it is supplied to the DCT circuit 5, where it is divided into blocks of 8 × 8 pixels and D
A CT operation is performed to obtain a DCT coefficient as an example of an orthogonal transform coefficient. This DCT coefficient has 12 bits and a value range of [−2048: 2047].

【0023】DCT回路5から出力されたDCT係数
(これをCiとする)は量子化回路6に供給され、ここ
で量子化制御回路13から量子化回路6に入力される、
バッファメモリ12の充足量に応じて発生符号量を制御
するための量子化制御情報QUANTと量子化マトリク
スWiとに応じて、次式の演算により量子化値QCiと
される。
The DCT coefficient output from the DCT circuit 5 (referred to as Ci) is supplied to the quantization circuit 6, where it is input from the quantization control circuit 13 to the quantization circuit 6.
In accordance with the quantization control information QUANT for controlling the generated code amount according to the amount of the buffer memory 12 and the quantization matrix Wi, the quantization value QCi is calculated by the following equation.

【0024】 QCi=(Wi×Ci)÷(2×16×QUANT) (1) 従って、例えば、あるDCT係数値Ciが「1080」
で、このDCT係数値に対する量子化マトリクス値Wi
を「16」、量子化制御情報QUANTを「2」とする
と、MPEG1規格に準じた(1)式の演算により、上
記のDCT係数値Ciは、量子化値QCi「270」に
される。
QCi = (Wi × Ci) ÷ (2 × 16 × QUANT) (1) Therefore, for example, a certain DCT coefficient value Ci is “1080”
Then, the quantization matrix value Wi for this DCT coefficient value
Is "16" and the quantization control information QUANT is "2", the above-described DCT coefficient value Ci is converted to the quantized value QCi "270" by the operation of the equation (1) according to the MPEG1 standard.

【0025】更に、この実施の形態の量子化回路6は、
入力端子2より入力されるレベル符号長情報DLに応じ
て定められる量子化値の範囲を設定し、この設定範囲を
越える量子化値が(1)式により得られた場合は、この
設定範囲内の値に制限する。従って、例えば、レベル符
号長情報DLがレベル符号長9ビットを表す場合は、量
子化値の範囲を[−256:255]に制限する。すな
わち、この場合は量子化回路6は、上記の(1)式によ
り算出された量子化値QCiが「270」であるときで
も、上限値「255」に量子化値を制限する。
Further, the quantization circuit 6 of this embodiment
A range of the quantization value determined according to the level code length information DL input from the input terminal 2 is set, and if a quantization value exceeding this setting range is obtained by the equation (1), the range is set within this range. To the value of. Therefore, for example, when the level code length information DL represents a level code length of 9 bits, the range of the quantization value is limited to [-256: 255]. That is, in this case, the quantization circuit 6 limits the quantization value to the upper limit value "255" even when the quantization value QCi calculated by the above equation (1) is "270".

【0026】このようにして、量子化回路6により得ら
れた8×8画素のブロック毎のDCT量子化係数(量子
化値QCi)は、後述の符号化回路11に供給される一
方、逆量子化回路7に供給されて逆量子化された後、逆
DCT回路8に供給されて逆DCT演算される。この逆
DCT回路8の出力信号は、加算器9において予測回路
4からの動き補償信号と加算されることにより局部復号
化信号とされ、復号器と同じ画像データに復元されてフ
レームメモリ10に格納される。
The DCT quantized coefficient (quantized value QCi) for each block of 8 × 8 pixels obtained by the quantizing circuit 6 is supplied to an encoding circuit 11 described later, while the inverse After being supplied to the conversion circuit 7 and subjected to inverse quantization, it is supplied to the inverse DCT circuit 8 and subjected to inverse DCT operation. The output signal of the inverse DCT circuit 8 is added to the motion compensation signal from the prediction circuit 4 in the adder 9 to be a locally decoded signal, restored to the same image data as the decoder, and stored in the frame memory 10. Is done.

【0027】予測回路4は、フレームメモリ10に格納
された画像データ(ビデオ信号)を次の動き補償予測の
参照画像データとして供給される一方、入力端子1より
の遅延されていない所定フレーム後の入力ビデオ信号が
供給され、これらの信号に基づいて公知の方法で予測信
号を生成すると共に、ある複数画素領域内での入力ビデ
オ信号と予測信号との差分が最も小さくなる位置を示す
動きベクトルを検出し、動きベクトルに応じて動き補償
した動き補償信号を減算器3及び加算器9へ出力する。
The prediction circuit 4 supplies the image data (video signal) stored in the frame memory 10 as reference image data for the next motion compensated prediction, while receiving a predetermined unframed frame from the input terminal 1. An input video signal is supplied, and a prediction signal is generated by a known method based on these signals, and a motion vector indicating a position where a difference between the input video signal and the prediction signal in a certain pixel region is the smallest is calculated. The detected and compensated motion compensation signal is output to the subtractor 3 and the adder 9 in accordance with the motion vector.

【0028】符号化回路11は量子化回路6から入力さ
れたDCT量子化係数(量子化値QCi)と、予測回路
4から入力される前記動きベクトルなどの予測制御情報
との被符号化情報に対し可変長符号化する際に、非ゼロ
係数(レベル)とその前の連続するゼロ係数の個数(ラ
ン)に対応付けた2次元可変長符号化テーブルを予め設
定し、被符号化情報をMPEG1規定のジグザグスキャ
ンで走査して順次に得られる符号が、2次元可変長符号
化テーブルにあればその符号を出力し、無ければ被符号
化情報に対して少なくとも2次元可変長符号化テーブル
に対応する符号を使用しないことを示すエスケープ符号
に続けてラン値を6ビットの固定長で出力し、レベル値
をレベル符号長情報DLに応じたレベル符号長で出力す
る。
The encoding circuit 11 encodes the DCT quantization coefficient (quantized value QCi) input from the quantization circuit 6 and the prediction control information such as the motion vector input from the prediction circuit 4 into encoded information. On the other hand, when performing variable-length coding, a two-dimensional variable-length coding table corresponding to the non-zero coefficient (level) and the number of consecutive zero coefficients (runs) before it is set in advance, and the encoded information is stored in MPEG1 If the code sequentially obtained by scanning with the prescribed zigzag scan is in the two-dimensional variable length coding table, the code is output. Otherwise, the code to be encoded corresponds to at least the two-dimensional variable length coding table. The run value is output with a fixed length of 6 bits following the escape code indicating that the code to be used is not used, and the level value is output with the level code length corresponding to the level code length information DL.

【0029】符号化回路11は上記のようにして2次元
可変長符号化した符号に、レベル符号長情報DLを含む
ピクチャヘッダを付加した符号化データをバッファメモ
リ12へ出力する。バッファメモリ12は、符号化回路
11の出力符号化データが不規則なレートで入力されて
これを蓄積し、一定レートで出力端子14へ出力する。
量子化制御回路13は、バッファメモリ12の充足量に
応じて発生符号量を制御するための量子化制御信号QU
ANTと量子化マトリクスWiを出力する。
The encoding circuit 11 outputs to the buffer memory 12 encoded data obtained by adding a picture header including the level code length information DL to the code obtained by performing the two-dimensional variable length encoding as described above. The buffer memory 12 receives the encoded data output from the encoding circuit 11 at an irregular rate, accumulates the data, and outputs it to the output terminal 14 at a constant rate.
The quantization control circuit 13 generates a quantization control signal QU for controlling the generated code amount in accordance with the amount of the buffer memory 12 being full.
The ANT and the quantization matrix Wi are output.

【0030】このように、この実施の形態では、符号化
された画像データ(ビデオ信号)のレベル長を示すレベ
ル符号長情報DLがヘッダ中に配置されて、符号化され
た画像データ(ビデオ信号)と共に符号化データとして
出力端子14へ出力される。次に、上記の図1の符号化
装置により出力された符号化データを復号する方法につ
いて説明する。図2は、本発明になる復号化方法及び装
置の第1の実施の形態の復号化処理を説明するためのブ
ロック図を示す。同図中、入力端子21に入力された符
号化データは、バッファメモリ22に一旦蓄積された
後、復号化回路23に供給され、復号される。復号され
た情報のうち、ヘッダ中のレベル符号長情報DLは、レ
ベル符号長情報メモリ24に供給されて保持される。
As described above, in this embodiment, the level code length information DL indicating the level length of the coded image data (video signal) is arranged in the header, and the coded image data (video signal) ) Is output to the output terminal 14 as encoded data. Next, a method of decoding the encoded data output by the encoding device of FIG. 1 will be described. FIG. 2 is a block diagram illustrating a decoding process according to the first embodiment of the decoding method and apparatus according to the present invention. In the figure, encoded data input to an input terminal 21 is temporarily stored in a buffer memory 22 and then supplied to a decoding circuit 23 to be decoded. Of the decoded information, the level code length information DL in the header is supplied to and held in the level code length information memory 24.

【0031】また、DCT量子化係数に対する2次元可
変長符号の復号化において、復号化回路23はエスケー
プ符号を受信した場合、ラン値を6ビットの固定長で受
信し、レベル値をレベル符号長情報メモリ24から読み
出したレベル符号長情報DLに応じたレベル符号長で復
号する。
In the decoding of the two-dimensional variable length code with respect to the DCT quantized coefficient, when the decoding circuit 23 receives the escape code, it receives the run value with a fixed length of 6 bits and the level value with the level code length. Decoding is performed with a level code length corresponding to the level code length information DL read from the information memory 24.

【0032】復号化回路23以降の回路部は、従来より
知られているMPEG1規格の復号処理と同様の復号処
理が行われる。すなわち、逆量子化回路25で受信した
量子化制御情報及び量子化マトリクスに基づいて逆量子
化され、更に逆DCT回路26で逆DCT演算されて復
号される。また、復号化回路23により復号された予測
制御情報は、予測回路28に供給され、ここで、フレー
ムメモリ29よりの符号とに基づいて動き補償予測信号
とされる。
The circuit sections subsequent to the decoding circuit 23 perform the same decoding processing as the conventionally known decoding processing of the MPEG1 standard. That is, it is inversely quantized based on the quantization control information and the quantization matrix received by the inverse quantization circuit 25, and further subjected to inverse DCT operation by the inverse DCT circuit 26 and decoded. Further, the prediction control information decoded by the decoding circuit 23 is supplied to the prediction circuit 28, where it is made a motion compensation prediction signal based on the code from the frame memory 29.

【0033】加算器27は逆DCT回路26から出力さ
れた復号符号に予測回路28からの動き補償予測信号を
加算してもとのビデオ信号を生成し、これを出力端子3
0へ出力する一方、フレームメモリ29に所定フレーム
蓄積させた後予測回路28に供給する。このように、こ
の実施の形態では、ヘッダ中に配置して伝送するレベル
符号長情報DLを用いてレベル符号長の復号ができる。
The adder 27 adds the motion compensation prediction signal from the prediction circuit 28 to the decoded code output from the inverse DCT circuit 26 to generate an original video signal.
On the other hand, the data is output to 0 and stored in the frame memory 29 for a predetermined frame, and then supplied to the prediction circuit 28. As described above, in this embodiment, the level code length can be decoded using the level code length information DL that is arranged and transmitted in the header.

【0034】次に、本発明になる符号化方法、復号化方
法、符号化装置及び復号化装置の第2の実施の形態につ
いて説明する。図3は本発明になる符号化方法及び装置
の第2の実施の形態の符号化処理を説明するためのブロ
ック図を示す。同図中、図1と同一構成部分には同一符
号を付し、その説明を省略する。
Next, a description will be given of a second embodiment of the encoding method, the decoding method, the encoding device and the decoding device according to the present invention. FIG. 3 is a block diagram illustrating an encoding process according to a second embodiment of the encoding method and apparatus according to the present invention. In the figure, the same components as those of FIG. 1 are denoted by the same reference numerals, and description thereof will be omitted.

【0035】図3において、DCT回路5は、入力予測
誤差信号を8×8画素のブロック毎に分割してDCT演
算して、12ビットで値の範囲は[−2048:204
7]であるDCT係数を生成し、これを量子化回路31
に供給する。量子化回路31は、量子化制御回路13か
ら量子化回路31に入力される、バッファメモリ12の
充足量に応じて発生符号量を制御するための量子化制御
信号QUANTと量子化マトリクスWiとに応じて、入
力DCT係数値Ciから前記(1)式により量子化値Q
Ciを算出して、その算出量子化値QCiをそのまま出
力する。
In FIG. 3, the DCT circuit 5 divides the input prediction error signal into 8 × 8 pixel blocks and performs a DCT operation to obtain a 12-bit value range [−2048: 204].
7] and generates a DCT coefficient, which is
To supply. The quantization circuit 31 converts the quantization control signal QUANT and the quantization matrix Wi, which are input from the quantization control circuit 13 to the quantization circuit 31, for controlling the generated code amount according to the filling amount of the buffer memory 12. Accordingly, the quantization value Q is obtained from the input DCT coefficient value Ci by the above equation (1).
Ci is calculated, and the calculated quantized value QCi is output as it is.

【0036】符号化回路32は量子化回路31から入力
された8×8画素のブロック毎のDCT量子化係数(量
子化値QCi)と、予測回路4から入力される前記動き
ベクトルなどの予測制御情報とに対し、MPEG1規定
のジグザグスキャンで走査して、非ゼロ係数(レベル)
とその前の連続するゼロ係数の個数(ラン)による2次
元可変長符号化をする。符号化回路32に入力される符
号のうち、この2次元可変長符号化で用いる2次元可変
長符号化テーブルに対応する符号が存在する場合は、そ
の符号をそのまま出力し、2次元可変長符号化テーブル
に対応する符号が存在しない場合は、エスケープ符号に
続けてラン値を6ビットの固定長で出力し、レベル値を
レベル符号長決定回路33で以下のように求めたレベル
値をレベル符号長で出力する。
The encoding circuit 32 controls the DCT quantization coefficient (quantized value QCi) for each block of 8 × 8 pixels input from the quantization circuit 31 and predictive control such as the motion vector input from the prediction circuit 4. The information and the zigzag scan specified by MPEG1 are scanned to obtain a non-zero coefficient (level)
And two-dimensional variable-length coding based on the number of consecutive zero coefficients (runs) before it. If there is a code corresponding to the two-dimensional variable length coding table used in the two-dimensional variable length coding among the codes input to the coding circuit 32, the code is output as it is and the two-dimensional variable length code is output. If the code corresponding to the conversion table does not exist, a run value is output in a fixed length of 6 bits following the escape code, and the level value is determined by the level code length determination circuit 33 as the level code. Output as long.

【0037】DCT回路5の出力値は12ビット[−2
048:2047]であり、量子演算式と量子化制御回
路13から入力される量子化マトリクス値及び量子化制
御情報とから、量子化値の範囲は一意に求められる。例
えば、上記の量子化値QCiが「270」である場合
は、これを含むようにレベル符号長決定回路33により
量子化値の範囲は[−512:511]と算出される。
The output value of the DCT circuit 5 is 12 bits [-2
048: 2047], and the range of the quantization value is uniquely obtained from the quantization operation expression and the quantization matrix value and the quantization control information input from the quantization control circuit 13. For example, when the above-mentioned quantization value QCi is “270”, the range of the quantization value is calculated to be [−512: 511] by the level code length determination circuit 33 so as to include this.

【0038】符号化回路32は、このレベル符号長決定
回路33より入力されたレベル符号長情報が示す量子化
値の範囲[−512:511]に基づき、レベル符号長
を、この範囲の量子化を固定長で符号化するのに必要な
符号長である10ビットとする。符号化回路32から出
力された符号化データは、バッファメモリ12を通して
出力端子34へ出力される。
The encoding circuit 32 quantizes the level code length based on the quantization value range [-512: 511] indicated by the level code length information input from the level code length determination circuit 33. Is set to 10 bits, which is a code length necessary for encoding with a fixed length. The encoded data output from the encoding circuit 32 is output to the output terminal 34 through the buffer memory 12.

【0039】なお、DCT変換の入力値の精度が例えば
9ビット[−256:255]の場合は、経験上DCT
変換の出力値は、DC係数を除いて11ビット等更に少
ないビット数で表すことのできる範囲で十分である。こ
のため、全係数についてDCT変換の出力値を12ビッ
ト[−2048:2047]とせず、係数毎に11ビッ
ト等更に少ないビット数と見なすことで、量子化値の範
囲を更に狭くすることができる。これにより、レベル符
号長を更に短くすることができる。
If the accuracy of the input value of the DCT transform is, for example, 9 bits [-256: 255], the DCT
It is sufficient that the output value of the conversion can be represented by a smaller number of bits, such as 11 bits, except for the DC coefficient. For this reason, the output value of the DCT transform for all the coefficients is not set to 12 bits [−2048: 2047], but is regarded as a smaller number of bits such as 11 bits for each coefficient, so that the range of the quantization value can be further narrowed. . Thereby, the level code length can be further reduced.

【0040】ただし、この場合は、第1の実施の形態と
同様に、量子化係数毎に上記の量子化値の範囲を越える
係数については、上記で求めた量子化値の範囲に制限す
る処理を行う。
However, in this case, similarly to the first embodiment, the process of limiting the coefficients exceeding the above-described range of the quantized values for each quantized coefficient to the range of the quantized values obtained above. I do.

【0041】次に、上記の図3の符号化装置により出力
された符号化データを復号する方法について説明する。
図4は、本発明になる復号化方法及び装置の第2の実施
の形態の復号化処理を説明するためのブロック図を示
す。同図中、図2と同一構成部分には同一符号を付し、
その説明を省略する。図4において、入力端子41に入
力された符号化データは、ヘッダ中にレベル符号長情報
DLを有しない、図3の符号化装置により得られた符号
化データである。
Next, a method of decoding the encoded data output by the encoding apparatus shown in FIG. 3 will be described.
FIG. 4 is a block diagram for explaining a decoding process according to the second embodiment of the decoding method and apparatus according to the present invention. In the figure, the same components as those in FIG.
The description is omitted. 4, the coded data input to the input terminal 41 is coded data obtained by the coding apparatus of FIG. 3, which does not have the level code length information DL in the header.

【0042】この符号化データは、バッファメモリ22
を介して復号化回路42に入力される。復号化回路42
は、DCT量子化係数に対する2次元可変長符号の復号
化を行う。レベル符号長決定回路43は、復号化回路4
2により復号した符号化データ中のヘッダ情報から各ブ
ロックの量子化処理で使用したマトリクスと量子化制御
情報を得て、レベル符号長情報を算出する。
The encoded data is stored in the buffer memory 22
Is input to the decoding circuit 42 via Decoding circuit 42
Performs decoding of a two-dimensional variable-length code on DCT quantized coefficients. The level code length determination circuit 43 includes the decoding circuit 4
The matrix used in the quantization processing of each block and the quantization control information are obtained from the header information in the encoded data decoded in step 2, and the level code length information is calculated.

【0043】復号化回路42はDCT量子化係数に対す
る2次元可変長符号の復号化において、エスケープ符号
を受信した場合、ラン値を6ビットの固定長で復号し、
レベル値をレベル符号長決定回路43から入力されるレ
ベル符号長情報に応じたレベル符号長で復号する。
In the decoding of the two-dimensional variable length code for the DCT quantized coefficient, the decoding circuit 42 decodes the run value with a fixed length of 6 bits when receiving the escape code.
The level value is decoded with a level code length corresponding to the level code length information input from the level code length determination circuit 43.

【0044】この実施の形態では、第1の実施の形態の
ようなヘッダ中にレベル符号長情報DLを伝送するため
の専用領域を設けることなく、従来と同じフォーマット
符号化データを伝送し、復号することができる。
In this embodiment, the same format-encoded data as in the prior art is transmitted and decoded without providing a dedicated area for transmitting the level code length information DL in the header as in the first embodiment. can do.

【0045】次に、本発明になる符号化方法、復号化方
法、符号化装置及び復号化装置の第3の実施の形態につ
いて説明する。図5は本発明になる符号化方法及び装置
の第3の実施の形態の符号化処理を説明するためのブロ
ック図を示す。同図中、図1と同一構成部分には同一符
号を付し、その説明を省略する。
Next, a description will be given of a third embodiment of the encoding method, the decoding method, the encoding device and the decoding device according to the present invention. FIG. 5 is a block diagram illustrating an encoding process according to a third embodiment of the encoding method and apparatus according to the present invention. In the figure, the same components as those of FIG. 1 are denoted by the same reference numerals, and description thereof will be omitted.

【0046】図5に示す実施の形態は、量子化回路6か
ら出力された量子化値QCiを量子化係数メモリ51及
び最大符号長検出回路52にそれぞれ供給し、それらの
出力を量子化制御回路13からの量子化制御情報、量子
化マトリクス値、予測回路4からの予測制御情報と共に
符号化回路53に供給する構成としたものである。
In the embodiment shown in FIG. 5, the quantized value QCi output from the quantizing circuit 6 is supplied to a quantized coefficient memory 51 and a maximum code length detecting circuit 52, respectively, and their outputs are converted to a quantized control circuit. 13 together with the quantization control information and quantization matrix value from the prediction circuit 4 and the prediction control information from the prediction circuit 4.

【0047】次に、この実施の形態の動作について説明
する。量子化回路6は、DCT回路5から取り出された
12ビットで値の範囲は[−2048:2047]であ
るDCT係数と、量子化制御回路13から入力される、
バッファメモリ12の充足量に応じて発生符号量を制御
するための量子化制御信号QUANT及び量子化マトリ
クスWiに応じて、前記(1)式により量子化値QCi
を算出し、更に、その算出量子化値QCiを入力端子2
を介して外部から入力されるレベル符号長情報DLによ
り値が制限される量子化値QCiを出力する。
Next, the operation of this embodiment will be described. The quantization circuit 6 is input from the quantization control circuit 13 with the 12-bit DCT coefficient extracted from the DCT circuit 5 and having a value range of [−2048: 2047].
According to the quantization control signal QUANT and the quantization matrix Wi for controlling the generated code amount in accordance with the filling amount of the buffer memory 12, the quantization value QCi is obtained by the above equation (1).
Is calculated, and the calculated quantized value QCi is input to the input terminal 2
And outputs a quantized value QCi whose value is limited by the level code length information DL input from the outside via the.

【0048】例えば、あるDCT係数値Ciが「108
0」で、このDCT係数値に対する量子化マトリクス値
Wiを「16」、量子化制御情報QUANTを「5」と
すると、MPEG1規格に準じた(1)式の演算によ
り、上記のDCT係数値Ciは、量子化値QCi「10
8」にされる。
For example, if a certain DCT coefficient value Ci is "108
Assuming that the quantization matrix value Wi for the DCT coefficient value is “16” and the quantization control information QUANT is “5” for the DCT coefficient value, the DCT coefficient value Ci is calculated by the operation of the expression (1) according to the MPEG1 standard. Is the quantization value QCi “10
8 ".

【0049】更に、この実施の形態の量子化回路6は、
第1の実施の形態と同様に、レベル符号長情報DL1
(=DL)に応じて定められる量子化値の範囲を越える
量子化値が(1)式により得られた場合は、この設定範
囲内の値に制限して出力するため、例えば、レベル符号
長情報DL1がレベル符号長9ビットを表す場合は、量
子化値の範囲を[−256:255]に制限する。すな
わち、この場合は量子化回路6は、上記の(1)式によ
り算出された量子化値QCiが「108」であるので、
「108」が量子化値QCiとして出力される。
Further, the quantization circuit 6 of this embodiment
As in the first embodiment, the level code length information DL1
If a quantized value exceeding the range of the quantized value determined according to (= DL) is obtained by the equation (1), the output is limited to a value within this set range. When the information DL1 represents a level code length of 9 bits, the range of the quantization value is limited to [-256: 255]. That is, in this case, the quantization circuit 6 determines that the quantization value QCi calculated by the above equation (1) is “108”.
“108” is output as the quantized value QCi.

【0050】このようにして、量子化回路6により得ら
れた、1フレーム分の各8×8画素のブロック毎のDC
T量子化係数(量子化値QCi)は、逆量子化回路7に
供給される一方、量子化係数メモリ51に順次供給され
て記憶されると共に、最大符号長検出回路52に供給さ
れる。
As described above, the DC of each 8 × 8 pixel block for one frame obtained by the quantization circuit 6 is obtained.
The T quantization coefficient (quantized value QCi) is supplied to the inverse quantization circuit 7, and is also sequentially supplied to the quantization coefficient memory 51 and stored, and is also supplied to the maximum code length detection circuit 52.

【0051】最大符号長検出回路52は、1フレーム中
の各量子化係数における最大符号長DL2を検出する。
これは、1フレーム中の各量子化係数の絶対値について
最大値を求めて、その最大値を符号化するための符号長
を出力することで実現する。例えば、1フレーム中の量
子化係数(量子化値QCi)の最大値が前述した「10
8」であるときは、最大符号長検出回路52は、この
「108」が含まれる[−128:127]の範囲を符
号化できる符号長8ビットを、最大符号長DL2として
出力する。
The maximum code length detection circuit 52 detects the maximum code length DL2 of each quantized coefficient in one frame.
This is realized by obtaining the maximum value of the absolute value of each quantization coefficient in one frame and outputting a code length for encoding the maximum value. For example, the maximum value of the quantization coefficient (quantization value QCi) in one frame is “10
If it is "8", the maximum code length detection circuit 52 outputs, as the maximum code length DL2, a code length of 8 bits that can encode the range of [-128: 127] including this "108".

【0052】量子化係数メモリ51に記憶された1フレ
ーム分の各8×8画素のブロック毎のDCT量子化係数
(量子化値QCi)は、符号化回路53に供給されてM
PEG1規定のジグザグスキャンで走査され、非ゼロ係
数(レベル)とその前の連続するゼロ係数の個数(ラ
ン)により2次元可変長符号化される。
The DCT quantization coefficient (quantized value QCi) for each block of 8.times.8 pixels for one frame stored in the quantization coefficient memory 51 is supplied to the encoding circuit 53, and M
Scanning is performed by a zigzag scan specified by PEG1, and two-dimensional variable length coding is performed using a non-zero coefficient (level) and the number of consecutive zero coefficients (runs) before the coefficient.

【0053】すなわち、符号化回路53は、この2次元
可変長符号化に際して使用する2次元可変長符号化テー
ブルに、上記のラン値やレベル値に対応する符号が存在
するときは、その符号を出力し、2次元可変長符号化テ
ーブルに対応する符号が存在しないときは、エスケープ
符号とそれに続けて、ラン値を6ビットの固定長で出力
し、レベル値を最大符号長検出回路52で検出された最
大符号長DL2に応じたレベル符号長で出力する。符号
化回路53は上記のようにして2次元可変長符号化した
符号に、レベル符号長情報DL1を含むピクチャヘッダ
を付加した符号化データをバッファメモリ12へ出力す
る。
That is, if the code corresponding to the run value or the level value is present in the two-dimensional variable length coding table used for the two-dimensional variable length coding, the coding circuit 53 converts the code into a code. If the code corresponding to the two-dimensional variable length coding table does not exist, an escape code is output followed by a run value with a fixed length of 6 bits, and the level value is detected by the maximum code length detection circuit 52. Is output with a level code length corresponding to the maximum code length DL2. The encoding circuit 53 outputs, to the buffer memory 12, encoded data obtained by adding a picture header including the level code length information DL1 to the two-dimensionally variable-length encoded code as described above.

【0054】この実施の形態によれば、例えば1フレー
ム期間の全量子化係数値が設定したレベル符号長DL1
より小さい符号長で符号化可能な場合には、第1の実施
の形態に比べて、より一層符号化効率を改善できる。
According to this embodiment, for example, the level code length DL 1
When encoding can be performed with a smaller code length, the encoding efficiency can be further improved as compared with the first embodiment.

【0055】[0055]

【実施例】次に、本発明の実施例について説明する。い
ま、一例として量子化回路6、31により量子化して得
られたDCT量子化係数が表2で表されるものとする。
ただし、量子化制御情報QUANTは「4」とする。
Next, an embodiment of the present invention will be described. Now, as an example, it is assumed that DCT quantization coefficients obtained by quantization by the quantization circuits 6 and 31 are shown in Table 2.
However, the quantization control information QUANT is "4".

【0056】[0056]

【表2】 かかるDCT量子化係数に対して従来のMPEG1によ
る符号化では、符号化回路は、表2のDCT量子化係数
を「135」、「20」、「18」、「−64」、「−
3」、「−31」、「−30」、「4」、「10」、
「−23」、「12」、「3」、...の順でジグザグ
スキャンして、表3に示すようなラン値(RUN)及び
レベル値(LEVEL)を得て、可変長符号(VLC)
とビット数が得られる。
[Table 2] In the conventional MPEG1 encoding of such DCT quantized coefficients, the encoding circuit sets the DCT quantized coefficients in Table 2 to “135”, “20”, “18”, “−64”, “−”.
3 "," -31 "," -30 "," 4 "," 10 ",
"-23", "12", "3",. . . , And a run value (RUN) and a level value (LEVEL) as shown in Table 3 are obtained, and a variable length code (VLC) is obtained.
And the number of bits.

【0057】[0057]

【表3】 これに対して、表2のDCT量子化係数に対して、図1
の符号化回路11による符号化では、レベル符号長情報
DLを11ビットとすると、表4に示すような可変長符
号(VLC)とビット数が得られる。なお、ジグザグス
キャンする点は従来と同一である。
[Table 3] On the other hand, for the DCT quantization coefficients in Table 2, FIG.
In the encoding performed by the encoding circuit 11, when the level code length information DL is 11 bits, a variable length code (VLC) and the number of bits as shown in Table 4 can be obtained. Note that zigzag scanning is the same as in the related art.

【0058】[0058]

【表4】 また、表2のDCT量子化係数に対して、図3の符号化
回路32による符号化では、量子化制御情報QUANT
が「1」のときレベル符号長情報を「11」、量子化制
御情報QUANTが「2〜3」のときレベル符号長情報
を「10」、量子化制御情報QUANTが「4〜7」の
ときレベル符号長情報を「9」、量子化制御情報QUA
NTが「8〜15」のときレベル符号長情報を「8」、
量子化制御情報QUANTが「16〜31」のときレベ
ル符号長情報を「7」とすると、ここでは、量子化制御
情報QUANTが「4」であるので、レベル符号長情報
が「9」であり、表5に示すような可変長符号(VL
C)とビット数が得られる。なお、ジグザグスキャンす
る点は従来と同一である。
[Table 4] In addition, with respect to the DCT quantization coefficients in Table 2, the quantization control information QUANT is used in the encoding by the encoding circuit 32 in FIG.
Is "1", the level code length information is "11", when the quantization control information QUANT is "2-3", the level code length information is "10", and when the quantization control information QUANT is "4-7". The level code length information is “9”, and the quantization control information QUA is
When NT is “8 to 15”, the level code length information is “8”,
Assuming that the level code length information is “7” when the quantization control information QUANT is “16 to 31”, the level code length information is “9” here because the quantization control information QUANT is “4”. , Variable-length codes (VL
C) and the number of bits are obtained. Note that zigzag scanning is the same as in the related art.

【0059】[0059]

【表5】 表2〜表5から分かるように、本発明は符号化効率を向
上でき、中でも表5に示す図3の実施の形態が符号化効
率を最も改善できることが分かる。
[Table 5] As can be seen from Tables 2 to 5, it can be seen that the present invention can improve the coding efficiency, and in particular, the embodiment of FIG. 3 shown in Table 5 can improve the coding efficiency most.

【0060】なお、本発明は以上の実施の形態に限定さ
れるものではなく、例えば圧縮符号化、復号化方式はM
PEG1、MPEG2に限定されるものではない。ま
た、符号化するディジタル情報はビデオ信号以外の音声
信号等の他の情報信号にも同様に本発明を適用できる。
The present invention is not limited to the above embodiment. For example, the compression encoding and decoding methods are M
It is not limited to PEG1 and MPEG2. In addition, the present invention can be applied to other information signals such as audio signals other than video signals as digital information to be encoded.

【0061】[0061]

【発明の効果】以上説明したように、本発明によれば、
符号化ビットレート等に応じて量子化係数値を設定した
符号長で符号化すると共に、量子化係数値がその符号長
に対応する範囲を越えた場合に当該範囲内の値に制限す
ることにより、必要以上に符号長を大きくすることがな
いため、符号化効率を改善でき、また、量子化係数値を
設定した符号長で符号化することで、必要以下に符号長
を小さくすることなく符号化できるため、レベル値を制
限することで生じる符号化歪みの発生を防止することが
でき、更にMPEG1方式に比べて符号化、及び復号化
処理を簡単にできる。
As described above, according to the present invention,
By encoding the quantized coefficient value according to the encoding bit rate and the like with the set code length, and restricting the quantized coefficient value to a value within the range when the quantized coefficient value exceeds a range corresponding to the code length. Since the code length is not increased unnecessarily, the coding efficiency can be improved.Also, by encoding the quantization coefficient value with the set code length, the code can be encoded without reducing the code length unnecessarily. Therefore, it is possible to prevent the occurrence of coding distortion caused by limiting the level value, and to simplify the coding and decoding processes as compared with the MPEG1 system.

【0062】また、本発明によれば、ヘッダ中の予め定
めた領域に設定した符号長情報を配置して伝送すること
なく、量子化係数値を設定した符号長で符号化及び復号
化できるため、上記の効果に加えて、より一層符号化効
率を改善することができる。
Further, according to the present invention, it is possible to encode and decode the quantized coefficient value with the set code length without arranging and transmitting the set code length information in a predetermined area in the header. In addition to the above effects, the coding efficiency can be further improved.

【0063】更に、本発明によれば、入力信号の所定期
間に対応する期間分の量子化係数値について、その量子
化係数値を固定長で符号化する際に必要な符号長を最大
符号長として求め、被符号化情報を符号化する際には、
符号化テーブルに対応する符号が無ければ、被符号化情
報に対して少なくとも符号化テーブルに対応する符号を
使用しないことを示す符号と、量子化係数値を最大符号
長で符号化した符号とを出力するようにしたため、量子
化係数値を設定した符号長で符号化するよりも、より柔
軟に、かつ、効果的に符号化効率を改善することができ
る。
Further, according to the present invention, for a quantization coefficient value for a period corresponding to a predetermined period of an input signal, the code length necessary for encoding the quantization coefficient value with a fixed length is the maximum code length. When encoding the information to be encoded,
If there is no code corresponding to the encoding table, a code indicating that at least the code corresponding to the encoding table is not used for the information to be encoded, and a code obtained by encoding the quantization coefficient value with the maximum code length. Since the output is performed, the coding efficiency can be more flexibly and effectively improved than when the quantization coefficient value is encoded with the set code length.

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

【図1】本発明になる符号化方法の第1の実施の形態の
符号化処理を説明するためのブロック図である。
FIG. 1 is a block diagram illustrating an encoding process according to a first embodiment of an encoding method according to the present invention.

【図2】本発明になる復号化方法の第1の実施の形態の
復号化処理を説明するためのブロック図である。
FIG. 2 is a block diagram for explaining a decoding process according to the first embodiment of the decoding method according to the present invention.

【図3】本発明になる符号化方法の第2の実施の形態の
符号化処理を説明するためのブロック図である。
FIG. 3 is a block diagram illustrating an encoding process according to a second embodiment of the encoding method according to the present invention.

【図4】本発明になる復号化方法の第2の実施の形態の
復号化処理を説明するためのブロック図である。
FIG. 4 is a block diagram for explaining a decoding process according to a second embodiment of the decoding method according to the present invention.

【図5】本発明になる符号化方法の第3の実施の形態の
符号化処理を説明するためのブロック図である。
FIG. 5 is a block diagram illustrating an encoding process according to a third embodiment of the encoding method according to the present invention.

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

1 ディジタル画像信号(ビデオ信号)入力端子 2 レベル符号長情報入力端子 4 予測回路 5 離散コサイン変換(DCT)回路 6、31 量子化回路 11、32、53 符号化回路 13 量子化制御回路 14、34 符号化データ出力端子 21、41 符号化データ入力端子 23、42 復号化回路 24 レベル符号長情報メモリ 30 ビデオ信号出力端子 33、43 レベル符号長決定回路 51 量子化係数メモリ 52 最大符号長検出回路 Reference Signs List 1 digital image signal (video signal) input terminal 2 level code length information input terminal 4 prediction circuit 5 discrete cosine transform (DCT) circuit 6, 31 quantization circuit 11, 32, 53 coding circuit 13 quantization control circuit 14, 34 Encoded data output terminal 21, 41 Encoded data input terminal 23, 42 Decoding circuit 24 Level code length information memory 30 Video signal output terminal 33, 43 Level code length determination circuit 51 Quantization coefficient memory 52 Maximum code length detection circuit

Claims (8)

【特許請求の範囲】[Claims] 【請求項1】 入力信号の直交変換係数を量子化して得
られた量子化係数値に基づく被符号化情報を生成し、こ
の被符号化情報の一部に対して符号化テーブルを予め設
定し、前記被符号化情報を可変長符号化する際に、この
被符号化情報中に前記符号化テーブルに対応する符号が
あればその符号を出力し、無ければ前記被符号化情報に
対して少なくとも前記符号化テーブルに対応する符号を
使用しないことを示す符号と、前記量子化係数値を符号
化した符号を出力する符号化方法において、 前記量子化係数値を固定長で符号化する際の符号長を設
定し、前記量子化係数値がその符号長に対応する範囲を
越えた場合に当該範囲内の値に制限し、前記被符号化情
報を符号化する際には、前記符号化テーブルに対応する
符号が無ければ、前記被符号化情報に対して少なくとも
前記符号化テーブルに対応する符号を使用しないことを
示す符号と、前記量子化係数値を設定した符号長で符号
化した符号とを出力すると共に、ヘッダ中の予め定めた
領域に前記設定した符号長情報を配置して出力すること
を特徴とする符号化方法。
An encoded information is generated based on a quantized coefficient value obtained by quantizing an orthogonal transform coefficient of an input signal, and an encoding table is set in advance for a part of the encoded information. In the variable-length encoding of the encoded information, if there is a code corresponding to the encoding table in the encoded information, the code is output, otherwise, at least for the encoded information In a coding method for outputting a code indicating that a code corresponding to the coding table is not used and a code obtained by coding the quantization coefficient value, a code used when coding the quantization coefficient value with a fixed length. When the quantization coefficient value exceeds a range corresponding to the code length, the quantization coefficient value is limited to a value within the range, and when encoding the coded information, the encoding table includes If there is no corresponding code, the code A code indicating that at least a code corresponding to the coding table is not used for information and a code obtained by coding the quantization coefficient value with a set code length are output, and a predetermined area in the header is output. Wherein the set code length information is arranged and output.
【請求項2】 入力信号の直交変換係数を量子化して得
られた量子化係数値に基づく被符号化情報を生成し、こ
の被符号化情報の一部に対して符号化テーブルを予め設
定し、前記被符号化情報を可変長符号化する際に、この
被符号化情報中に前記符号化テーブルに対応する符号が
あればその符号を出力し、無ければ前記被符号化情報に
対して少なくとも前記符号化テーブルに対応する符号を
使用しないことを示す符号と、前記量子化係数値を符号
化した符号を出力する符号化方法において、 前記直交変換係数毎に量子化特性に応じて、前記量子化
係数値を符号化する際の符号長を求め、前記被符号化情
報を符号化する際に前記符号化テーブルに対応する符号
が無ければ、前記被符号化情報を使用しないことを示す
符号と、前記量子化係数値を設定した符号長で符号化し
た符号とを出力することを特徴とする符号化方法。
2. An encoded information is generated based on a quantized coefficient value obtained by quantizing an orthogonal transform coefficient of an input signal, and an encoding table is set in advance for a part of the encoded information. In the variable-length encoding of the encoded information, if there is a code corresponding to the encoding table in the encoded information, the code is output, otherwise, at least for the encoded information In a coding method for outputting a code indicating that a code corresponding to the coding table is not used, and a code obtained by coding the quantization coefficient value, the quantization is performed in accordance with a quantization characteristic for each of the orthogonal transform coefficients. Determine the code length when encoding the encoding coefficient value, if there is no code corresponding to the encoding table when encoding the encoded information, a code indicating that the encoded information is not used. , The quantization coefficient value Encoding method and outputting an encoded code in boss was code length.
【請求項3】 入力信号の直交変換係数を量子化して得
られた量子化係数値に基づく被符号化情報を生成し、こ
の被符号化情報の一部に対して符号化テーブルを予め設
定し、前記被符号化情報を可変長符号化する際に、この
被符号化情報中に前記符号化テーブルに対応する符号が
あればその符号を出力し、無ければ前記被符号化情報に
対して少なくとも前記符号化テーブルに対応する符号を
使用しないことを示す符号と、前記量子化係数値を符号
化した符号を出力する符号化方法において、 入力信号の所定期間に対応する期間分の前記量子化係数
値について、その量子化係数値を固定長で符号化する際
に必要な符号長を最大符号長として求め、前記被符号化
情報を符号化する際には、前記符号化テーブルに対応す
る符号が無ければ、前記被符号化情報に対して少なくと
も前記符号化テーブルに対応する符号を使用しないこと
を示す符号と、前記量子化係数値を前記最大符号長で符
号化した符号とを出力することを特徴とする符号化方
法。
3. Generating encoded information based on a quantized coefficient value obtained by quantizing an orthogonal transform coefficient of an input signal, and setting an encoding table in advance for a part of the encoded information. In the variable-length encoding of the encoded information, if there is a code corresponding to the encoding table in the encoded information, the code is output, otherwise, at least for the encoded information In a coding method for outputting a code indicating that a code corresponding to the coding table is not used and a code obtained by coding the quantization coefficient value, the quantization section for a period corresponding to a predetermined period of an input signal is provided. For a numerical value, a code length necessary for encoding the quantized coefficient value with a fixed length is determined as a maximum code length, and when encoding the encoded information, a code corresponding to the encoding table is encoded. If not, the said mark A code indicating that at least a code corresponding to the coding table is not used for the quantization information, and a code obtained by coding the quantization coefficient value with the maximum code length. .
【請求項4】 入力信号の直交変換係数を量子化して得
られた量子化係数値に基づく被符号化情報を生成し、こ
の被符号化情報の一部に対して符号化テーブルを予め設
定し、前記被符号化情報を可変長符号化する際に、この
被符号化情報中に前記符号化テーブルに対応する符号が
あればその符号を出力し、無ければ前記被符号化情報に
対して少なくとも前記符号化テーブルに対応する符号を
使用しないことを示す符号と、前記量子化係数値を符号
化した符号を出力する符号化方法により出力された可変
長符号化データを受け、前記入力信号を復号する復号化
方法において、 前記直交変換係数毎に量子化特性に応じて、量子化係数
値を復号化する際の符号長を求め、前記被符号化情報を
復号する際に前記符号化テーブルに対応する符号が無い
ことを示す符号を復号化したときは、少なくとも前記量
子化係数値を復号する際の符号長で復号化することを特
徴とする復号化方法。
4. An encoded information is generated based on a quantized coefficient value obtained by quantizing an orthogonal transform coefficient of an input signal, and an encoding table is set in advance for a part of the encoded information. In the variable-length encoding of the encoded information, if there is a code corresponding to the encoding table in the encoded information, the code is output, otherwise, at least for the encoded information A code indicating that a code corresponding to the coding table is not used, and a variable length coded data output by a coding method of outputting a code obtained by coding the quantization coefficient value, and decoding the input signal. In the decoding method, according to a quantization characteristic for each of the orthogonal transform coefficients, a code length when decoding a quantized coefficient value is obtained, and when the encoded information is decoded, the code length corresponds to the encoding table. There is no sign to do When decoding the code indicating the decoding method characterized by decoding code length in decoding the at least the quantized coefficient values.
【請求項5】 入力信号の直交変換係数を量子化して量
子化係数値を出力する量子化手段と、前記量子化手段か
ら出力される量子化係数値に基づき被符号化情報を生成
し、この被符号化情報の一部に対して符号化テーブルを
予め設定し、前記被符号化情報を可変長符号化する際
に、この被符号化情報中に前記符号化テーブルに対応す
る符号があればその符号を出力し、無ければ前記被符号
化情報に対して少なくとも前記符号化テーブルに対応す
る符号を使用しないことを示す符号と、前記量子化係数
値を符号化した符号を出力する符号化回路とを有する符
号化装置において、 前記量子化手段は、量子化係数値を固定長で符号化する
際の符号長を設定し、前記量子化係数値がその符号長に
対応する範囲を越えた場合に当該範囲内の値に制限し、 前記符号化回路は、前記符号化テーブルに対応する符号
が無ければ、前記被符号化情報に対して少なくとも前記
符号化テーブルに対応する符号を使用しないことを示す
符号と、前記量子化係数値を設定した符号長で符号化し
た符号とを出力すると共に、ヘッダ中の予め定めた領域
に前記設定した符号長情報を配置して出力することを特
徴とする符号化装置。
5. Quantizing means for quantizing an orthogonal transform coefficient of an input signal to output a quantized coefficient value, and generates encoded information based on the quantized coefficient value output from said quantizing means. An encoding table is set in advance for a part of the encoded information, and when the encoded information is subjected to variable length encoding, if there is a code corresponding to the encoding table in the encoded information, An encoding circuit that outputs the code and outputs a code indicating that at least a code corresponding to the encoding table is not used for the information to be encoded if there is no code, and a code obtained by encoding the quantized coefficient value; Wherein the quantization means sets a code length for encoding the quantized coefficient value with a fixed length, and when the quantized coefficient value exceeds a range corresponding to the code length. Limited to values within that range, The encoding circuit, if there is no code corresponding to the encoding table, a code indicating that at least the code corresponding to the encoding table is not used for the encoded information, the quantization coefficient value An encoding device, which outputs a code encoded with a set code length, and outputs the set code length information in a predetermined area in a header.
【請求項6】 入力信号の直交変換係数を量子化して量
子化係数値を出力する量子化手段と、前記量子化手段か
ら出力される量子化係数値に基づき被符号化情報を生成
し、この被符号化情報の一部に対して符号化テーブルを
予め設定し、前記被符号化情報を可変長符号化する際
に、この被符号化情報中に前記符号化テーブルに対応す
る符号があればその符号を出力し、無ければ前記被符号
化情報に対して少なくとも前記符号化テーブルに対応す
る符号を使用しないことを示す符号と、前記量子化係数
値を符号化した符号を出力する符号化回路とを有する符
号化装置において、 前記直交変換係数毎に量子化特性に応じて、前記量子化
係数値を符号化する際の符号長を求める符号長決定回路
を設け、前記符号化回路は、前記符号化テーブルに対応
する符号が無ければ、前記被符号化情報を使用しないこ
とを示す符号と、前記符号長決定回路からの前記量子化
係数値を設定した符号長で符号化した符号とを出力する
ことを特徴とする符号化装置。
6. Quantizing means for quantizing orthogonal transform coefficients of an input signal to output quantized coefficient values, and coded information is generated based on the quantized coefficient values output from the quantizing means. An encoding table is set in advance for a part of the encoded information, and when the encoded information is subjected to variable length encoding, if there is a code corresponding to the encoding table in the encoded information, An encoding circuit that outputs the code and outputs a code indicating that at least a code corresponding to the encoding table is not used for the information to be encoded if there is no code, and a code obtained by encoding the quantized coefficient value; A coding length determining circuit for obtaining a code length when coding the quantized coefficient value in accordance with a quantization characteristic for each of the orthogonal transform coefficients, wherein the coding circuit comprises: Compatible with encoding table If no code is present, a code indicating that the information to be coded is not used, and a code coded by the code length set from the code length determining circuit to the quantized coefficient value are output. Encoding device.
【請求項7】 入力信号の直交変換係数を量子化して量
子化係数値を出力する量子化手段と、前記量子化手段か
ら出力される量子化係数値に基づき被符号化情報を生成
し、この被符号化情報の一部に対して符号化テーブルを
予め設定し、前記被符号化情報を可変長符号化する際
に、この被符号化情報中に前記符号化テーブルに対応す
る符号があればその符号を出力し、無ければ前記被符号
化情報に対して少なくとも前記符号化テーブルに対応す
る符号を使用しないことを示す符号と、前記量子化係数
値を符号化した符号を出力する符号化回路とを有する符
号化装置において、 前記量子化手段から出力された前記量子化係数値を、前
記入力信号の所定期間に対応する期間分だけ蓄積するメ
モリと、 前記量子化手段から出力された前記量子化係数値を固定
長で符号化する際に必要な符号長を最大符号長として求
める最大符号長検出回路とを設け、前記符号化回路は、
前記メモリから入力される前記量子化係数値に基づいて
生成した前記被符号化情報を符号化する際に、前記符号
化テーブルに対応する符号が無ければ、前記被符号化情
報に対して少なくとも前記符号化テーブルに対応する符
号を使用しないことを示す符号と、前記量子化係数値を
前記最大符号長検出回路で検出された最大符号長で符号
化した符号とを出力することを特徴とする符号化装置。
7. Quantizing means for quantizing orthogonal transform coefficients of an input signal to output quantized coefficient values, and coded information is generated based on the quantized coefficient values output from said quantizing means. An encoding table is set in advance for a part of the encoded information, and when the encoded information is subjected to variable length encoding, if there is a code corresponding to the encoding table in the encoded information, An encoding circuit that outputs the code and outputs a code indicating that at least a code corresponding to the encoding table is not used for the information to be encoded if there is no code, and a code obtained by encoding the quantized coefficient value; A memory that stores the quantized coefficient value output from the quantizing unit for a period corresponding to a predetermined period of the input signal; and the quantizer output from the quantizing unit. Conversion factor The a maximum code length detection circuit for obtaining the maximum code length of code length required to encode provided a fixed length, said encoding circuit,
When encoding the encoded information generated based on the quantized coefficient value input from the memory, if there is no code corresponding to the encoding table, at least the encoded information A code indicating that a code corresponding to the encoding table is not used, and a code obtained by encoding the quantized coefficient value with a maximum code length detected by the maximum code length detection circuit. Device.
【請求項8】 入力信号の直交変換係数を量子化して得
られた量子化係数値に基づく被符号化情報を生成し、こ
の被符号化情報の一部に対して符号化テーブルを予め設
定し、前記被符号化情報を可変長符号化する際に、この
被符号化情報中に前記符号化テーブルに対応する符号が
あればその符号を出力し、無ければ前記被符号化情報に
対して少なくとも前記符号化テーブルに対応する符号を
使用しないことを示す符号と、前記量子化係数値を符号
化した符号を出力する符号化方法により出力された可変
長符号化データを受け、前記入力信号を復号する復号化
装置において、 前記直交変換係数毎に量子化特性に応じて、量子化係数
値を復号化する際の符号長を求める受信符号長決定回路
と、少なくとも前記符号化テーブルに対応する符号が無
いことを示す符号が入力されたときは、前記量子化係数
値を符号化した符号を前記受信符号長決定回路からの符
号長で復号化する復号化回路とを有することを特徴とす
る復号化装置。
8. Encoding information is generated based on quantized coefficient values obtained by quantizing orthogonal transform coefficients of an input signal, and an encoding table is preset for a part of the encoded information. In the variable-length encoding of the encoded information, if there is a code corresponding to the encoding table in the encoded information, the code is output, otherwise, at least for the encoded information A code indicating that a code corresponding to the coding table is not used, and a variable length coded data output by a coding method of outputting a code obtained by coding the quantization coefficient value, and decoding the input signal. A receiving code length determining circuit for determining a code length when decoding a quantized coefficient value according to a quantization characteristic for each of the orthogonal transform coefficients, and a code corresponding to at least the coding table. No And a decoding circuit for decoding a code obtained by coding the quantization coefficient value with a code length from the reception code length determination circuit when a code indicating the following is input: .
JP2875898A 1997-07-15 1998-02-10 Coding method, decoding method, coder and decoder Pending JPH1188191A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2875898A JPH1188191A (en) 1997-07-15 1998-02-10 Coding method, decoding method, coder and decoder

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
JP9-189756 1997-07-15
JP18975697 1997-07-15
JP2875898A JPH1188191A (en) 1997-07-15 1998-02-10 Coding method, decoding method, coder and decoder

Publications (1)

Publication Number Publication Date
JPH1188191A true JPH1188191A (en) 1999-03-30

Family

ID=26366904

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2875898A Pending JPH1188191A (en) 1997-07-15 1998-02-10 Coding method, decoding method, coder and decoder

Country Status (1)

Country Link
JP (1) JPH1188191A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010278668A (en) * 2009-05-27 2010-12-09 Sony Corp Coding apparatus and method, and decoding apparatus and method

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010278668A (en) * 2009-05-27 2010-12-09 Sony Corp Coding apparatus and method, and decoding apparatus and method
US8320447B2 (en) 2009-05-27 2012-11-27 Sony Corporation Encoding apparatus and encoding method, and decoding apparatus and decoding method

Similar Documents

Publication Publication Date Title
US5602549A (en) System for variable length decoding digital transmission data which has been compressed by selecting a scanning pattern
JP2633793B2 (en) Method and apparatus for variable length encoding / decoding of video data
JP2891772B2 (en) Digital image coding method using random scanning of image frames
JP3888597B2 (en) Motion compensation coding apparatus and motion compensation coding / decoding method
JP2963416B2 (en) Video encoding method and apparatus for controlling bit generation amount using quantization activity
EP0422404A2 (en) Transform coding using coefficient prediction techniques
US6912318B2 (en) Method and system for compressing motion image information
JPH10243399A (en) Code amount controller and moving image encoder provided with the same
US7158684B2 (en) Entropy coding scheme for video coding
JP2872339B2 (en) Redundancy reduction device for blocks of digital video data in discrete cosine transform coding
JP4560694B2 (en) Encoding apparatus and method thereof
CN1364386A (en) Simplified logo insertion in encoded signal
US5850259A (en) Predictive coding apparatus
US6631161B1 (en) Method and system for compressing motion image information
JP2000023162A (en) Device and method for encoding
JP2843024B2 (en) Method and apparatus for selecting transform coefficient of transform coding system
JPH1188191A (en) Coding method, decoding method, coder and decoder
JP2647272B2 (en) Transmission rate control method in image coding
KR20040054749A (en) Compression
KR0148155B1 (en) Esc coding apparatus and method of image coding
KR19990061002A (en) Data generation limiting device in block encoding for video compression
JPH08256337A (en) Moving image coder
JP3200073B2 (en) Image processing device
JP4238408B2 (en) Image compression device
JP3192436B2 (en) Image decoding apparatus and method