JPH05207293A - Variable length coding decoding circuit - Google Patents
Variable length coding decoding circuitInfo
- Publication number
- JPH05207293A JPH05207293A JP3863992A JP3863992A JPH05207293A JP H05207293 A JPH05207293 A JP H05207293A JP 3863992 A JP3863992 A JP 3863992A JP 3863992 A JP3863992 A JP 3863992A JP H05207293 A JPH05207293 A JP H05207293A
- Authority
- JP
- Japan
- Prior art keywords
- decoding
- length
- additional bit
- data
- bit
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Landscapes
- Color Television Systems (AREA)
- Compression Or Coding Systems Of Tv Signals (AREA)
- Compression Of Band Width Or Redundancy In Fax (AREA)
- Compression, Expansion, Code Conversion, And Decoders (AREA)
- Image Processing (AREA)
Abstract
Description
【0001】[0001]
【産業上の利用分野】本発明は、マルチメディア情報の
再生装置内などに設置される可変長符号復号回路に関す
るものである。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a variable length code decoding circuit installed in a reproducing apparatus for multimedia information.
【0002】[0002]
【従来の技術】現在、娯楽用や教育用ソフトをビデオデ
ータ、オーディオデータ、プログラムデータなどの素材
に圧縮のための符号化を施して合成したものをマルチメ
ディア情報としてCDーROMなどの記録媒体に記録
し、これを入手したユーザが再生装置を使用して再生出
力させるマルチメディア情報の記録・再生システムが開
発中である。素材となるビデオデータとしては、テレビ
ジョン画面信号やパソコンなどで作成したコンピュータ
画面信号などがあり、これらの画面信号を合成したもの
を素材とする場合もある。2. Description of the Related Art Presently, a recording medium such as a CD-ROM as multimedia information is a combination of entertainment and educational software, which has been encoded by compressing materials such as video data, audio data and program data for compression. A multimedia information recording / reproducing system is being developed, which is recorded by a user and obtained and reproduced and output by using a reproducing device. The video data as a material includes a television screen signal, a computer screen signal created by a personal computer or the like, and a material obtained by combining these screen signals may be used as the material.
【0003】データ圧縮のための符号化の典型的なもの
として、離散コサイン変換(DCT)と、量子化と、可
変長符号化とを順次組合せたハイブリッド符号化が知ら
れている。このようなハイブリッド符号化によって作成
される符号化データは、図4に示すように、1画面(フ
レーム)分の符号化データを単位として構成されてお
り、1画面を空間的に複数のブロックに等分割し、各ブ
ロック内の輝度信号と色信号のそれぞれについて離散コ
サイン変換し量子化し可変長符号化して得られた符号化
データが、表示画面上のブロックの配列順にブロックデ
ータ(Y/C)としてフレームヘッダの後に配列され
る。各ブロック内の符号化データ群は、離散コサイン変
換の係数が量子化され可変長符号化されたものであり、
個々のデータは、まず、直流(DC)成分が、続いて交
流(AC)成分が空間高調波の昇順に配列される。可変
長符号のデータ量が変動してもフレームのデータ量を一
定に保つために、ブロックデータの末尾にダミービット
が挿入される。As a typical coding method for data compression, hybrid coding is known in which discrete cosine transform (DCT), quantization and variable length coding are sequentially combined. The coded data created by such hybrid coding is configured in units of coded data for one screen (frame) as shown in FIG. 4, and one screen is spatially divided into a plurality of blocks. Coded data obtained by equally dividing, discrete cosine transforming, quantizing, and variable-length coding each of the luminance signal and the chrominance signal in each block is block data (Y / C) in the order of arrangement of the blocks on the display screen. Are arranged after the frame header as. The encoded data group in each block is obtained by quantizing the coefficients of the discrete cosine transform and performing variable length encoding,
In each piece of data, first, a direct current (DC) component and then an alternating current (AC) component are arranged in ascending order of spatial harmonics. A dummy bit is inserted at the end of the block data in order to keep the data amount of the frame constant even if the data amount of the variable length code changes.
【0004】離散コサイン変換係数を単位とする各符号
化データは、量子化係数からオール“0”又はオール
“1”の上位部分を除いた下位部分(有効ビット)であ
る付加ビットと、この付加ビットが何ビットから成るか
を示す付加ビット長をハフマン符号に変換した部分とか
ら構成される。付加ビットは、正の量子化係数について
は最下位から最上位の“1”までを切り出したものであ
り、負の量子化係数についてはこの量子化係数から1を
減算して最下位から最上位の“0”までを切り出したも
のである。例えば、量子化係数「20」(10進数)の
場合、付加ビットは〔10100〕B (2進数)、付加
ビット長は「5」となり、これを11ビット長の固定デ
ータに復号すると〔00000010100〕B が得ら
れる。量子化係数が「−20」の場合、付加ビットは
〔01011〕B 、付加ビット長は「5」となり、これ
を11ビット長の固定データに復号すると「11111
101011〕B が得られる。Each piece of coded data in units of discrete cosine transform coefficient is an additional bit which is a lower part (effective bit) of the quantized coefficient excluding the upper part of all "0" or all "1", and this addition. It is composed of a part obtained by converting an additional bit length indicating how many bits are formed into a Huffman code. The additional bits are obtained by cutting out from the lowest to the highest "1" for the positive quantized coefficient, and for the negative quantized coefficient, 1 is subtracted from the quantized coefficient and the lowest to the highest. It is a cutout up to "0". For example, when the quantization coefficient is “20” (decimal number), the additional bit is [10100] B (binary number), and the additional bit length is “5”. When this is decoded into 11-bit fixed data, [00000010100] B is obtained. When the quantization coefficient is “−20”, the additional bit is [01011] B and the additional bit length is “5”. When this is decoded into 11-bit fixed data, “11111” is obtained.
101011] B is obtained.
【0005】従って、可変長符号の復号は、まず先行す
るハフマン符号を復号して付加ビット長を認識し、次に
後続の付加ビットを切り出してその上位ビット側に(1
1−付加ビット長)幅のオール“0”又はオール“1”
を付加して11ビットの固定長データに復元することに
ある。付加ビット長は最小0ビットから最大11ビット
まであり、これを符号長が最小2ビットから最大9ビッ
トまでのハフマン符号で表示する。出現頻度が最高の付
加ビット長「3」を示すために最短の2ビットのハフマ
ン符号Therefore, in the decoding of the variable length code, first, the preceding Huffman code is decoded to recognize the additional bit length, and then the subsequent additional bit is cut out to the upper bit side (1
1-additional bit length) All "0" or all "1" of width
Is added to restore 11-bit fixed-length data. The additional bit length has a minimum of 0 bits to a maximum of 11 bits, and this is represented by a Huffman code having a minimum code length of 2 bits to a maximum of 9 bits. The shortest 2-bit Huffman code to indicate the additional bit length "3" with the highest appearance frequency
〔00〕B が割当てられる。[00] B is assigned.
【0006】上記可変長符号の復号に際してはハフマン
符号の復号が重要になるが、このハフマン符号の復号
は、処理速度の向上の観点から復号テーブルROMを主
体に行われる。この復号テーブルROMを主体とする復
号回路は、図5に示すように、復号テーブルROM1、
ROMアドレス生成部2、量子化係数復号部3、量子化
係数アドレス復号部4、計数・制御部5、復号シーケン
サ6及びハンドシェイク制御部7から構成されている。Decoding of the Huffman code is important in decoding the variable length code, but the decoding of the Huffman code is mainly performed by the decoding table ROM from the viewpoint of improving the processing speed. As shown in FIG. 5, the decoding circuit having the decoding table ROM as a main component, as shown in FIG.
The ROM address generation unit 2, the quantized coefficient decoding unit 3, the quantized coefficient address decoding unit 4, the counting / control unit 5, the decoding sequencer 6, and the handshake control unit 7 are included.
【0007】ROMアドレス生成部2は、図6に示すよ
うに、並列/直列変換回路21、セレクタ22、アドレ
ス合成回路23、セレクタ24及びオールゼロ・レジス
タ25から構成されている。入力端子に供給される8ビ
ット幅の入力データ(可変長符号)は、並列/直列変換
回路21で1ビットの直列データに変換されてアドレス
合成部23の一方の入力端子に供給される。このアドレ
ス合成部23の他方の入力端子には、セレクタ22にお
いてY/C判別信号に従って選択される8ビット幅の次
アドレス又はY/C開始アドレスが供給される。アドレ
ス合成回路23から出力される9ビット幅の合成アドレ
スはセレクタ24において入力データ判別信号に従って
選択的に復号テーブルROM1に供給される。As shown in FIG. 6, the ROM address generation unit 2 is composed of a parallel / serial conversion circuit 21, a selector 22, an address synthesis circuit 23, a selector 24 and an all-zero register 25. The 8-bit wide input data (variable length code) supplied to the input terminal is converted into 1-bit serial data by the parallel / serial conversion circuit 21 and supplied to one input terminal of the address synthesis unit 23. The other input terminal of the address synthesis unit 23 is supplied with the next address or the Y / C start address of 8-bit width selected by the selector 22 according to the Y / C discrimination signal. The 9-bit width composite address output from the address composition circuit 23 is selectively supplied to the decoding table ROM 1 in the selector 24 according to the input data discrimination signal.
【0008】上記ROMアドレス生成部2から供給され
る9ビット幅のアドレス信号によってアクセスされる復
号テーブルROM1には、図7に示すように、輝度信号
(Y)と色信号(C)のそれぞれについて空間高調波の
DC成分のハフマン符号とAC成分のハフマン符号を復
号するためのアドレス領域に分離されており、各アドレ
ス領域には、図8に示す構造の22ビット幅の復号デー
タが格納されている。この復号データの第0ビットから
第7ビットまでは前段のROMアドレス生成部1に帰還
される8ビット幅の次アドレスであり、第8ビットから
第13ビットまでは、復号シーケンサ6に供給される6
ビット幅の制御信号である。また、復号データの第14
ビットから第17ビットまでは量子化係数復号部3に供
給される4ビット幅の付加ビット長であり、これはコー
ド1と称さていれる。さらに、復号データの第18ビッ
トから第21ビットまでは量子化係数アドレス復号部4
に供給される4ビット幅のランレングスであり、これは
コード2と称されている。As shown in FIG. 7, the decoding table ROM1 which is accessed by the address signal of 9-bit width supplied from the ROM address generating section 2 has a luminance signal (Y) and a chrominance signal (C). It is divided into address areas for decoding the Huffman code of the DC component and the Huffman code of the AC component of the spatial harmonics, and each address area stores the decoded data of 22-bit width having the structure shown in FIG. There is. The 0th bit to the 7th bit of this decoded data are the next address of 8-bit width which is fed back to the ROM address generation unit 1 in the previous stage, and the 8th bit to the 13th bit are supplied to the decoding sequencer 6. 6
This is a bit width control signal. In addition, the 14th
Bits to the 17th bit are an additional bit length of 4 bits supplied to the quantization coefficient decoding unit 3, which is called code 1. Further, the quantized coefficient address decoding unit 4 is used for the 18th to 21st bits of the decoded data.
Is a 4-bit wide run length, referred to as code 2.
【0009】復号データに含まれる6ビット幅の制御信
号は、図8の下段に示すように構成されている。この制
御信号の第8ビットは可変長符号の復号の終了又は継続
中を示すビットであり、第9ビットは可変長符号の復号
に誤りが生じたことを示すビットであり、第10ビット
は復号中のデータがDC成分であるかAC成分であるか
を示すビットである。また、第11ビットはゼロランが
所定値以上連続する場合に挿入されるエスケープ(ES
C)符号の出現を示すビットであり、第12ビットは1
ブロック分のデータの終端を示す(EBO)であり、第
13ビットはデータの正負の判別を示す符号指示ビット
である。The 6-bit width control signal included in the decoded data is constructed as shown in the lower part of FIG. The 8th bit of this control signal is a bit indicating the end or the continuation of the decoding of the variable length code, the 9th bit is a bit indicating that an error has occurred in the decoding of the variable length code, and the 10th bit is the decoding. It is a bit indicating whether the data inside is a DC component or an AC component. The 11th bit is an escape (ES) inserted when zero runs continue for a predetermined value or more.
C) A bit indicating the appearance of the code, and the 12th bit is 1
It is (EBO) indicating the end of data for a block, and the 13th bit is a code designating bit indicating whether the data is positive or negative.
【0010】図7に示した復号テーブルROM1のアド
レスマップに対応し、図9に示すような状態遷移のもと
に復号テーブルROM1へのアクセスが行われる。すな
わち、初期状態から、まず、輝度信号のDC成分のハフ
マン符号の復号が行われ、復号結果の付加ビットのビッ
ト長が後段の量子化係数復号部3に供給される。量子化
係数復号部3は、上記付加ビット長に基づきROMアド
レス生成部2から直接シリアルデータの形式で供給され
る可変長の付加ビットを切り出し、固定値の量子化係数
に復元する。続いて、輝度信号のAC成分のそれぞれに
ついて付加ビット長の復号が行われ、この復号結果の付
加ビット長と付加ビットに基づき量子化係数の復元が行
われる。以下同様にして、色信号(C)についても、ま
ずDC成分、次にAC成分の順で固定長データの復元が
行われ、1フレーム分の輝度信号と色信号の復号が終了
すると初期状態への復帰が行われる。Corresponding to the address map of the decoding table ROM1 shown in FIG. 7, the decoding table ROM1 is accessed based on the state transition shown in FIG. That is, from the initial state, the Huffman code of the DC component of the luminance signal is first decoded, and the bit length of the additional bit of the decoding result is supplied to the quantization coefficient decoding unit 3 in the subsequent stage. The quantization coefficient decoding unit 3 cuts out variable-length additional bits directly supplied from the ROM address generation unit 2 in the form of serial data based on the above-mentioned additional bit length, and restores the fixed-value quantization coefficient. Subsequently, the additional bit length is decoded for each of the AC components of the luminance signal, and the quantization coefficient is restored based on the additional bit length and the additional bit of the decoding result. Similarly, for the chrominance signal (C), fixed length data is first restored in the order of the DC component and then the AC component, and when the decoding of the luminance signal and the chrominance signal for one frame is completed, the initial state is restored. Will be restored.
【0011】上記復号された付加ビット長と付加ビット
とから固定長のデータを復号する量子化係数復号部3
は、図10に示すように構成されている。デコーダ31
は前段の復号テーブルROM1から供給される付加ビッ
ト長に基づき所定幅のオールゼロを生成し合成回路33
の第1の入力端子に供給する。この合成回路33の第2
の入力端子には、直列/並列変換回路32で並列データ
に変換された付加ビットが供給される。合成回路33
は、第1の入力端子に供給されるオールゼロを上位ビッ
ト群として第2の入力端子に供給される付加ビットと下
位ビット群として合成することにより11ビット幅の固
定長データを復元する。この復元された11ビット幅の
固定長データは、復元中のデータの極性(正/負)に従
って切り換えられるスイッチ38と39を通して後段に
出力され、さらに復元中のデータがAC成分であるかD
C成分であるかに従って切り換えられるスイッチ41を
通して復号の完了した量子化係数となって出力される。A quantized coefficient decoding unit 3 for decoding fixed-length data from the decoded additional bit length and additional bit.
Are configured as shown in FIG. Decoder 31
Generates an all zero of a predetermined width based on the additional bit length supplied from the decoding table ROM1 at the previous stage, and synthesizes the circuit 33.
Is supplied to the first input terminal of. The second of this synthesis circuit 33
The additional bit converted into parallel data by the serial / parallel conversion circuit 32 is supplied to the input terminal of. Synthesis circuit 33
Reconstructs 11-bit width fixed length data by synthesizing all zeros supplied to the first input terminal as an upper bit group and additional bits supplied to the second input terminal as a lower bit group. This restored 11-bit wide fixed length data is output to the subsequent stage through switches 38 and 39 which are switched according to the polarity (positive / negative) of the data being restored, and whether the data being restored is an AC component or D
The quantized coefficient for which decoding has been completed is output through the switch 41 that is switched according to whether it is the C component.
【0012】図10の比較回路36は、データの終端を
示す信号に同期してフリップフロップ34に保持される
付加ビット長と、付加ビットに同期して出力される付加
ビットイネーブル信号を計数するカウンタ35の計数値
とを比較し、両者が等しくなるとフリップフロップ37
にラッチ信号を供給し、合成された固定値データを保持
させる。また、スイッチ38,39と加算回路40とに
よって、負のデータに対する選択的な1の加算が行われ
る。さらに、スイッチ41、加算回路43及び前ブロッ
クデータ保持回路42とによって、前ブロックとの差分
値によって表されているDC成分の復元が行われる。The comparison circuit 36 of FIG. 10 is a counter for counting the additional bit length held in the flip-flop 34 in synchronization with the signal indicating the end of the data and the additional bit enable signal output in synchronization with the additional bit. The count value of 35 is compared, and if they are equal, the flip-flop 37
Is supplied with a latch signal to hold the synthesized fixed value data. Further, the switches 38 and 39 and the adder circuit 40 selectively add 1 to the negative data. Further, the switch 41, the adder circuit 43, and the previous block data holding circuit 42 restore the DC component represented by the difference value from the previous block.
【0013】[0013]
【発明が解決しようとする課題】上記従来の可変長復号
復号回路では、AC成分に関しては輝度信号(Y)と色
信号(C)に対して同一のハフマン符号による可変長符
号化を行っているにも係わらず、復号ROMテーブルの
領域をそれぞれに対して確保している。このためROM
容量が増加して回路全体がコスト高になるという問題が
ある。In the conventional variable length decoding / decoding circuit described above, regarding the AC component, the luminance signal (Y) and the chrominance signal (C) are subjected to variable length coding by the same Huffman code. Nevertheless, the area of the decoding ROM table is reserved for each. Therefore ROM
There is a problem that the capacity increases and the cost of the entire circuit increases.
【0014】また、上記従来の可変長復号回路では、図
10に示した量子化係数復号部において付加ビットの末
尾を検出するためにカウンタと比較回路とを設置してい
るので、量子化係数復号部のハードウエア量が増大し、
復号回路全体がコスト高になるという問題もある。Further, in the above-mentioned conventional variable length decoding circuit, the quantization coefficient decoding unit shown in FIG. 10 is provided with the counter and the comparison circuit for detecting the end of the additional bit, so that the quantization coefficient decoding is performed. The amount of hardware in the department increases,
There is also a problem that the cost of the entire decoding circuit becomes high.
【0015】[0015]
【課題を解決するための手段】上記従来の課題を解決す
る本発明の可変長復号回路は、入力データに含まれるハ
フマン符号を復号した付加ビット長とアドレス入力端子
に帰還される次アドレスとを出力する復号ROMテーブ
ルと、ハフマン符号に後続する付加ビットを受けると共
にこの付加ビットと上記復号ROMテーブルから出力さ
れる付加ビット長とから固定長の量子化済みDCT変換
係数に復号する量子化係数復号部とを備え、上記復号R
OMテーブルは、輝度信号と色信号のAC成分に対する
共通の復号領域を備えている。本発明の作用については
以下の実施例と共に詳細に説明する。The variable length decoding circuit of the present invention for solving the above-mentioned conventional problems provides an additional bit length obtained by decoding a Huffman code included in input data and a next address fed back to an address input terminal. Quantization coefficient decoding for outputting a decoding ROM table and an additional bit following the Huffman code, and for decoding the additional bit and the additional bit length output from the decoding ROM table into a fixed length quantized DCT transform coefficient And a decryption R
The OM table has a common decoding area for the AC components of the luminance signal and the chrominance signal. The operation of the present invention will be described in detail with the following examples.
【0016】[0016]
【実施例】本発明の一実施例の可変長符号復号回路の概
略の構成は、図5に示した従来のものと基本的には同一
である。しかしながら、復号ROMテーブル1の記憶領
域は、図1に示すように、ハフマン符号化された輝度
(Y)信号のDC成分の付加ビット長を4ビットの固定
長符号に変換するための領域と、ハフマン符号化された
色(C)信号のDC成分の付加ビット長を4ビットの固
定長符号に変換するための領域と、ハフマン符号化され
た輝度信号と色信号の双方のDC成分の付加ビット長を
4ビットの固定長符号に変換するための輝度・色共通の
領域と、付加ビット長のハフマン符号に後続する付加ビ
ットの出現中は次アドレスのみを有効データとして出力
する付加ビットカウンタ領域とに分離されている点で、
図7に示した従来回路のアドレスマップと異なってい
る。DESCRIPTION OF THE PREFERRED EMBODIMENTS The schematic structure of a variable length code decoding circuit according to an embodiment of the present invention is basically the same as that of the conventional one shown in FIG. However, the storage area of the decoding ROM table 1 is, as shown in FIG. 1, an area for converting the additional bit length of the DC component of the Huffman-coded luminance (Y) signal into a 4-bit fixed-length code, Area for converting the additional bit length of the DC component of the Huffman-encoded color (C) signal into a 4-bit fixed-length code, and additional bits of the DC component of both the Huffman-encoded luminance signal and chrominance signal A luminance / color common area for converting the length to a 4-bit fixed length code, and an additional bit counter area that outputs only the next address as valid data while an additional bit following the Huffman code of the additional bit length appears. In that it is separated into
This is different from the address map of the conventional circuit shown in FIG.
【0017】上記符号テーブルROM1のアドレスマッ
プの構成に対応して、図2に示すような状態遷移のもと
に復号テーブルROM1へのアクセスが行われる。すな
わち、初期状態から、まず、輝度信号のDC成分のハフ
マン符号の復号が行われ、復号結果の付加ビットのビッ
ト長が後段の量子化係数復号部3に供給される。量子化
係数復号部3は、上記付加ビット長に基づきROMアド
レス生成部2から直接シリアルデータの形式で供給され
る可変長の付加ビットを切り出し、固定値の量子化係数
に復元する。続いて、輝度信号のAC成分のそれぞれに
ついて付加ビット長の復号が行われ、この復号結果の付
加ビット長と付加ビットに基づき量子化係数の復元が行
われる。以下同様にして、色信号(C)についても、ま
ずDC成分、次にAC成分の順で固定長データの復元が
行われ、1フレーム分の輝度信号と色信号の復号が終了
すると初期状態への復帰が行われる。Corresponding to the structure of the address map of the code table ROM1, the decoding table ROM1 is accessed under the state transition as shown in FIG. That is, from the initial state, the Huffman code of the DC component of the luminance signal is first decoded, and the bit length of the additional bit of the decoding result is supplied to the quantization coefficient decoding unit 3 in the subsequent stage. The quantization coefficient decoding unit 3 cuts out variable-length additional bits directly supplied from the ROM address generation unit 2 in the form of serial data based on the above-mentioned additional bit length, and restores the fixed-value quantization coefficient. Subsequently, the additional bit length is decoded for each of the AC components of the luminance signal, and the quantization coefficient is restored based on the additional bit length and the additional bit of the decoding result. Similarly, for the chrominance signal (C), fixed length data is first restored in the order of the DC component and then the AC component, and when the decoding of the luminance signal and the chrominance signal for one frame is completed, the initial state is restored. Will be restored.
【0018】このように、AC成分については符号テー
ブルROM1に輝度信号と色信号とに共通の領域を含ま
せることにより、図7に示した従来の可変長符号復号回
路と比べて、ROMの記憶容量が大幅に低減され、製造
費用の低廉化が図られる。As described above, as for the AC component, the code table ROM 1 includes a common area for the luminance signal and the chrominance signal, so that the ROM memory is stored as compared with the conventional variable length code decoding circuit shown in FIG. The capacity is greatly reduced, and the manufacturing cost is reduced.
【0019】ハフマン符号のデコードが終了して付加ビ
ット長が判明した時点でROMアドレスは次のハフマン
符号のデコード開始アドレスへの分岐点のアドレスより
も付加ビット長だけ小さなアドレスに分岐する。この
後、付加ビットが1ビットずつ出現するたびに、この1
ビットと次アドレスを合成したアドレスは1ずつ歩進さ
れてゆき、付加ビットの最終ビットが出現した時点でR
OMアドレスは次のハフマン符号のデコード開始アドレ
スへの分岐点のアドレスに到達する。この結果、復号テ
ーブルROM1内の付加ビットカウンタ領域は、付加ビ
ットをカウントする機能を果たす。When the additional bit length is determined after the decoding of the Huffman code is completed, the ROM address branches to an address smaller by the additional bit length than the address of the branch point to the decoding start address of the next Huffman code. After this, each time an additional bit appears, this 1
The address obtained by synthesizing the bit and the next address is incremented by one, and when the last bit of the additional bits appears, R
The OM address reaches the address of the branch point to the decoding start address of the next Huffman code. As a result, the additional bit counter area in the decoding table ROM1 has a function of counting the additional bits.
【0020】このように、符号テーブルROM1内に新
たに付加ビットカウンタ部を追加することにより、量子
化係数復号部3は、図3に示すような構成となる。この
量子化係数復号部3の構成は、図10に示した従来のも
のと比較すれば明らかなように、従来回路のフリップフ
ロップ34,カウンタ35及び比較回路36が不要とな
ったぶん簡易なものとなり、製造コストの低廉化が実現
される。As described above, by newly adding the additional bit counter section in the code table ROM 1, the quantized coefficient decoding section 3 has a structure as shown in FIG. The structure of the quantized coefficient decoding unit 3 becomes simpler because the flip-flop 34, the counter 35, and the comparison circuit 36 of the conventional circuit are not necessary, as is apparent from comparison with the conventional configuration shown in FIG. Therefore, the manufacturing cost can be reduced.
【0021】なお、本発明の要旨とは直接関係しない
が、図5と図6の周辺部分の動作を捕捉説明すれば次の
ようになる。Although not directly related to the gist of the present invention, the operation of the peripheral portions of FIGS. 5 and 6 will be described as follows.
【0022】図6のROMアドレス生成部2では、入力
データがフレームヘッダの場合や前段のバッファメモリ
制御(BMC)部がBUSYの場合には、オールゼロ・
レジスタ25に保持中の9ビットのオールゼロが入力信
号判別信号の制御に基づきセレクタ24から出力され
る。図5のハンドシェイク制御部7は、前段のバッファ
メモリ制御部からデータを連続的に読出すための制御を
行うものであり、データ要求(リクエスト)信号をアク
ティブにすることによりバッファメモリ制御部にデータ
の転送を要求し、ストローブ信号に同期して136バイ
トずつ転送させる。In the ROM address generation unit 2 of FIG. 6, when the input data is a frame header or when the buffer memory control (BMC) unit of the previous stage is BUSY, all-zero
The 9-bit all-zeros held in the register 25 are output from the selector 24 under the control of the input signal discrimination signal. The handshake control unit 7 of FIG. 5 performs control for continuously reading data from the buffer memory control unit in the previous stage, and activates the data request (request) signal to cause the buffer memory control unit to operate. Data transfer is requested, and 136 bytes are transferred in synchronization with the strobe signal.
【0023】計数・制御部5は、フレームヘッダのデコ
ード、入力データ数の計数、バッファメモリ制御部への
連続読出しの終了信号の送出、各データの有効信号の出
力を行う。また、計数・制御部5は、フレームヘッダに
含まれる画面サイズDX,DYを保持し、Y/Cの判別
信号、EOC( End Of Component ),EOB( ENDOf B
lock ), EOF ( End Of Frame ) などの各種の終了信
号を出力する。The counting / control unit 5 decodes the frame header, counts the number of input data, sends a continuous read end signal to the buffer memory control unit, and outputs a valid signal for each data. In addition, the counting / control unit 5 holds the screen sizes DX and DY included in the frame header, and discriminates signals of Y / C, EOC (End Of Component), and EOB (ENDOf B).
lock), various end signals such as EOF (End Of Frame) are output.
【0024】復号シーケンサ6は、計数・制御部5や復
号ROMテーブル1から出力される制御信号に基づき各
種のシーケンス制御信号を作成し、量子化係数復号部3
や量子化係数アドレス復号部4などに供給する。The decoding sequencer 6 creates various sequence control signals based on the control signals output from the counting / control unit 5 and the decoding ROM table 1, and the quantized coefficient decoding unit 3
And the quantization coefficient address decoding unit 4 and the like.
【0025】量子化係数アドレス復号部4は、復号RO
Mテーブル1から出力される4ビットのランレングス
(図8のコード2)を受け、量子化係数のアドレス、す
なわち符号化時にジクザグスキャンされたブロック内の
配置を復号する。なお、量子化係数のゼロの連続個数と
このゼロ連続の直後に出現する非ゼロの有効量子化係数
の組合せによる2次元ハフマン符号化が採用されてい
る。また、ゼロランが15を越えたものはESC( Esca
pe )符号に置換されている。The quantized coefficient address decoding unit 4 decodes the decoded RO.
The 4-bit run length (code 2 in FIG. 8) output from the M table 1 is received, and the address of the quantized coefficient, that is, the arrangement in the block zigzag-scanned at the time of encoding is decoded. It should be noted that two-dimensional Huffman coding is adopted by combining a number of consecutive zero quantized coefficients and a non-zero effective quantized coefficient that appears immediately after this zero consecutive. If the zero run exceeds 15, ESC (Esca
pe) code has been replaced.
【0026】[0026]
【発明の効果】以上詳細に説明したように、本発明の可
変長符号復号回路によれば、復号ROMテーブルが輝度
信号と色信号のAC成分に対する共通の復号領域を備え
ているので、これらを個別に備える従来回路に比べてR
OM容量が大幅に低減され、製造費用の低廉化が可能に
なる。As described above in detail, according to the variable length code decoding circuit of the present invention, since the decoding ROM table has a common decoding area for the AC components of the luminance signal and the chrominance signal, these are R compared to the conventional circuit provided separately
The OM capacity is greatly reduced, and the manufacturing cost can be reduced.
【図1】本発明の一実施例の可変長符号復号回路を構成
する復号テーブルROM内のアドレスマップを説明する
ための概念図である。FIG. 1 is a conceptual diagram for explaining an address map in a decoding table ROM which constitutes a variable length code decoding circuit according to an embodiment of the present invention.
【図2】図1のアドレスマップを有する復号テーブルR
OMを使用して行われる復号処理の状態遷移図である。FIG. 2 is a decoding table R having the address map of FIG.
It is a state transition diagram of the decoding process performed using OM.
【図3】上記実施例の可変長符号復号回路を構成する量
子化係数復号部の構成を例示するブロック図である。FIG. 3 is a block diagram illustrating the configuration of a quantized coefficient decoding unit included in the variable length code decoding circuit according to the above embodiment.
【図4】復号対象の可変長符号化データの構成を説明す
るためのデータフォーマット図である。FIG. 4 is a data format diagram for explaining a configuration of variable-length encoded data to be decoded.
【図5】上記実施例及び従来例の可変長符号復号回路の
概略の構成を示すブロック図である。FIG. 5 is a block diagram showing a schematic configuration of a variable length code decoding circuit according to the above-described embodiment and a conventional example.
【図6】図5のROMアドレス生成部2の構成の一例を
示すブロック図である。6 is a block diagram showing an example of a configuration of a ROM address generation unit 2 in FIG.
【図7】従来の復号テーブルROM内のアドレスマップ
を説明するための概念図である。FIG. 7 is a conceptual diagram for explaining an address map in a conventional decoding table ROM.
【図8】図5の復号テーブルROM1から出力されるデ
ータの構成を説明するためのデータフォーマット図であ
る。8 is a data format diagram for explaining a configuration of data output from the decoding table ROM1 of FIG.
【図9】図7のアドレスマップを有する復号テーブルR
OMを使用して行われる従来の復号処理の状態遷移図で
ある。9 is a decoding table R having the address map of FIG.
It is a state transition diagram of the conventional decoding process performed using OM.
【図10】従来の量子化係数復号部の構成を示すブロッ
ク図である。FIG. 10 is a block diagram showing a configuration of a conventional quantized coefficient decoding unit.
1 復号テーブルROM 2 ROMアドレス生成部 3 量子化係数復号部 1 Decoding table ROM 2 ROM address generation unit 3 Quantization coefficient decoding unit
Claims (2)
ついてDCT(離散コサイン変換)し、量子化し、この
量子化済みDCT係数からオール“0”又はオール
“1”の上位部分を除いた下位部分(付加ビット)を後
方に配置すると共にこの付加ビットの幅を示す付加ビッ
ト長をハフマン符号に変換した部分を前方に配置するこ
とにより可変長符号化した圧縮画像信号であって前記量
子化済みDCT係数のAC成分については輝度信号も色
信号も同一のハフマン符号に変換したものを入力データ
として受取り、これを固定長の量子化済みDCT係数に
復号する可変長符号復号回路において、 前記入力データに含まれるハフマン符号を復号した付加
ビット長とアドレス入力端子に帰還される次アドレスと
を出力する復号テーブルROMと、 前記ハフマン符号に後続する付加ビットを受けると共に
この付加ビットと前記復号テーブルROMから出力され
る付加ビット長とから固定長の量子化済みDCT係数に
復号する量子化係数復号部とを備え、 前記復号テーブルROMは、前記輝度信号と色信号のA
C成分に対する共通の復号領域を備えたことを特徴とす
る可変長符号復号回路。1. A luminance signal and a chrominance signal are separated, DCT (discrete cosine transform) is performed on each of them, quantization is performed, and the upper part of all "0" or all "1" is removed from the quantized DCT coefficient. It is a compressed image signal which is variable length coded by arranging a lower part (additional bit) behind and arranging a part obtained by converting the additional bit length indicating the width of this additional bit into a Huffman code forward In the variable-length code decoding circuit that receives as input data the converted Huffman code for both the luminance signal and the chrominance signal for the AC component of the completed DCT coefficient, and decodes this as fixed-length quantized DCT coefficient, A decoding table ROM for outputting the additional bit length obtained by decoding the Huffman code included in the data and the next address fed back to the address input terminal; A quantized coefficient decoding unit that receives an additional bit following the Huffman code and decodes the additional bit and the additional bit length output from the decoding table ROM into a quantized DCT coefficient of a fixed length. The table ROM stores A of the luminance signal and the color signal.
A variable-length code decoding circuit having a common decoding area for the C component.
次アドレスのみを有効データとして出力する付加ビット
カウンタ領域を備えたことを特徴とする可変長符号復号
回路。2. The variable length code decoding circuit according to claim 1, wherein the decoding table ROM includes an additional bit counter area that outputs only the next address as valid data while the additional bits are being input.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP3863992A JP2834358B2 (en) | 1992-01-29 | 1992-01-29 | Variable length code decoding circuit |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP3863992A JP2834358B2 (en) | 1992-01-29 | 1992-01-29 | Variable length code decoding circuit |
Publications (2)
Publication Number | Publication Date |
---|---|
JPH05207293A true JPH05207293A (en) | 1993-08-13 |
JP2834358B2 JP2834358B2 (en) | 1998-12-09 |
Family
ID=12530815
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP3863992A Expired - Lifetime JP2834358B2 (en) | 1992-01-29 | 1992-01-29 | Variable length code decoding circuit |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2834358B2 (en) |
-
1992
- 1992-01-29 JP JP3863992A patent/JP2834358B2/en not_active Expired - Lifetime
Also Published As
Publication number | Publication date |
---|---|
JP2834358B2 (en) | 1998-12-09 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP3171776B2 (en) | Compression method and context modeler | |
US5233348A (en) | Variable length code word decoder for use in digital communication systems | |
JP3332619B2 (en) | Decoding device and method thereof | |
US5463699A (en) | Data compression | |
KR100538607B1 (en) | Encoding method, encoder and recording medium, and decoding method, decoder and recording medium | |
JPH0818459A (en) | High efficiency encoder and high efficiency decoder | |
JPH0746142A (en) | Data compression system | |
JPH0746141A (en) | Apparatus and method for data format conversion | |
JPH08213916A (en) | Variable length decoding device using relative address | |
JP2002524007A (en) | Image compression method and apparatus | |
JP3285220B2 (en) | Television system for transmitting image signals in digital form | |
JPH0879701A (en) | Screen division video encoding / decoding device | |
JP2735728B2 (en) | Variable length code decoding circuit | |
JP2002026737A (en) | Data decoder and its method | |
JPH05207293A (en) | Variable length coding decoding circuit | |
JP2638424B2 (en) | Variable length decoding device | |
JPH1188857A (en) | Image enciphering device | |
JP3139242B2 (en) | Video signal processing device | |
JPH10294943A (en) | Video signal encoding system, video signal encoding device, video signal decoding system, and video signal decoding device | |
KR950008640B1 (en) | Image compression coding method and decoding method for bit fixation | |
JPH07146927A (en) | Image file device | |
JP2002208860A (en) | Device and method for compressing data, computer- readable recording medium with program for data compression recorded thereon, and device and method for expanding data | |
KR100975063B1 (en) | Apparatus for decoding variable length coded bitstream and method thereof, and recording medium having recorded thereon a program for implementing the same | |
JPH0646369A (en) | Video signal processor | |
JPH05130580A (en) | Variable length encoding and decoding device |