JP2838964B2 - Variable length coding circuit - Google Patents

Variable length coding circuit

Info

Publication number
JP2838964B2
JP2838964B2 JP29232093A JP29232093A JP2838964B2 JP 2838964 B2 JP2838964 B2 JP 2838964B2 JP 29232093 A JP29232093 A JP 29232093A JP 29232093 A JP29232093 A JP 29232093A JP 2838964 B2 JP2838964 B2 JP 2838964B2
Authority
JP
Japan
Prior art keywords
signal
circuit
value
code
run
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Lifetime
Application number
JP29232093A
Other languages
Japanese (ja)
Other versions
JPH07147678A (en
Inventor
浩 松尾
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
NEC Corp
Original Assignee
Nippon Electric Co 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 Nippon Electric Co Ltd filed Critical Nippon Electric Co Ltd
Priority to JP29232093A priority Critical patent/JP2838964B2/en
Publication of JPH07147678A publication Critical patent/JPH07147678A/en
Application granted granted Critical
Publication of JP2838964B2 publication Critical patent/JP2838964B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Description

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

【0001】[0001]

【産業上の利用分野】本発明は可変長符号化回路に関
し、特にディジタル画像データ圧縮符号化装置で用いら
れる可変長符号化回路に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a variable length coding circuit, and more particularly to a variable length coding circuit used in a digital image data compression coding apparatus.

【0002】[0002]

【従来の技術】一般に、画像データのデータ量は極めて
大きいので、その蓄積や伝送時にデータ圧縮により上記
データ量を低減することが一般的である。このデータ圧
縮方法の一つとして、国際電信電話諮問委員会(CCI
TT)の研究委員会SGXV(伝送システム及び装置)
において標準化が進められている勧告(案)第H.26
1号のビデオ符号化方式(以下H261方式)がある。
このH261方式は、入力画像信号を8×8画素の2次
元ブロックに分割し、離散コサイン変換による直交変換
および量子化を行い、その後、周知のハフマン符号によ
る可変長符号化を行う。上記ハフマン符号は、連続した
零の係数値であるラン信号(6ビット)とそれに続く零
以外の値であるレベル信号(8ビット)とにより符号語
が決定される。この結果、2ビット〜14ビットの可変
長符号語または20ビットの固定長符号語を得る。
2. Description of the Related Art Generally, the amount of image data is extremely large, and it is common practice to reduce the amount of data by compressing the data during storage and transmission. One such data compression method is the International Telegraph and Telephone Consultative Committee (CCI).
TT) Research Committee SGXV (Transmission System and Equipment)
Recommendation (draft) No. H. 26
There is the No. 1 video coding system (hereinafter, H261 system).
In the H261 system, an input image signal is divided into two-dimensional blocks of 8 × 8 pixels, orthogonal transform and quantization are performed by discrete cosine transform, and then variable length coding is performed by using a well-known Huffman code. In the Huffman code, a code word is determined by a run signal (6 bits) which is a continuous zero coefficient value and a level signal (8 bits) which is a non-zero value. As a result, a variable length codeword of 2 bits to 14 bits or a fixed length codeword of 20 bits is obtained.

【0003】上記可変符号長語を得るための従来の可変
長符号化回路の一例をブロックで示す図3を参照する
と、この従来の可変長符号化回路はレベル信号Lの8ビ
ットとラン信号Rの6ビットとの合計14ビットをアド
レス値とする符号変換テーブルを格納したROM3Aを
備え、このROM3Aをレベル信号Lとラン信号Rによ
りアクセスすることにより最大14ビットの可変長符号
語Cと、可変長符号語Cの符号長を示す4ビットの符号
長Bとを出力データとして供給する。
FIG. 3 is a block diagram showing an example of a conventional variable length coding circuit for obtaining the variable code length word. Referring to FIG. 3, the conventional variable length coding circuit includes 8 bits of a level signal L and a run signal R. And a ROM 3A storing a code conversion table having an address value of a total of 14 bits including a 6-bit code, and a variable-length code word C of a maximum of 14 bits by accessing the ROM 3A with a level signal L and a run signal R. A 4-bit code length B indicating the code length of the long code word C is supplied as output data.

【0004】上述のように、可変長符号語Cの最大符号
長を14ビットとし、符号長Bを4ビットととすると、
ROM3Aの所要メモリ容量は、16Kワード×18ビ
ットとなる。
As described above, if the maximum code length of the variable length code word C is 14 bits and the code length B is 4 bits,
The required memory capacity of the ROM 3A is 16K words × 18 bits.

【0005】一方、H261方式の変換係数対応の可変
長符号語の一覧表を示す表1を参照すると、この表にお
けるブロック終了符号EOBとラン信号(0),レベル
信号(0)対応の最初の符号語は他の係数と重複するの
で上記符号変換テーブルより削除すれば、ROM21に
格納すべき可変長符号語Cのワード数は63ワードとな
る。このワード数63は、ROM3Aの所要メモリ容量
16Kワードに対し極めて少ない。
On the other hand, referring to Table 1 showing a list of variable length codewords corresponding to the transform coefficients of the H261 system, the first block of the block end code EOB, the run signal (0) and the level signal (0) in the table is shown. Since the code word overlaps with other coefficients, if it is deleted from the code conversion table, the number of words of the variable length code word C to be stored in the ROM 21 is 63 words. The number of words 63 is extremely smaller than the required memory capacity of 16K words of the ROM 3A.

【0006】[0006]

【表1】 [Table 1]

【0007】近年、画像データ圧縮符号化装置は、所要
の機能毎に専用のLSIを開発することにより小型化を
図る傾向にある。この種のLSIの回路規模はゲート数
に依存し、このゲート数は符号変換テーブルROMのメ
モリ容量に依存する。上記メモリ容量をこの例の16K
ワードとすると、上記ゲート数は125Kゲート弱とな
り、LSI化推進を困難とする要因となる。
In recent years, there has been a tendency to reduce the size of an image data compression encoding device by developing a dedicated LSI for each required function. The circuit scale of this type of LSI depends on the number of gates, and the number of gates depends on the memory capacity of the code conversion table ROM. The above memory capacity is set to 16K in this example.
If it is a word, the number of gates is slightly less than 125K gates, which makes it difficult to promote LSI.

【0008】[0008]

【発明が解決しようとする課題】上述した従来の可変長
符号化回路は、符号変換テーブルを格納したROMのメ
モリ容量が格納対象の可変長符号語のワード数に比較し
て極端に多いため対応の回路規模が大きくなり、LSI
化推進の阻害要因となるという欠点があった。
The above-mentioned conventional variable-length coding circuit has a problem that the memory capacity of the ROM storing the code conversion table is extremely large as compared with the number of words of the variable-length code word to be stored. Circuit scale becomes large and LSI
There was a drawback that it became a hindrance factor for the promotion of gasification.

【0009】また、上記回路規模が大きいことのため、
消費電力が大きく高速化が困難であるという欠点があっ
た。
Also, because of the large circuit scale described above,
There is a drawback that power consumption is large and it is difficult to increase the speed.

【0010】[0010]

【課題を解決するための手段】本発明の可変長符号化回
路は、入力画像データを予め定めた画素数の行列から成
る2次元ブロックに分割し、この2次元ブロック毎に直
交変換および量子化した量子化画像データの供給を受け
この量子化画像データの連続した零の係数値であるラン
信号とこのラン信号に続く零以外の値であるレベル信号
の組み合わせに対応する符号語検索用の符号変換テー
ブルを用い前記ラン信号と前記レベル信号との供給に応
答して前記符号語を決定するハフマン符号による可変長
符号化を行う可変長符号化装置において、前記レベル信
号の値を絶対値に変換し絶対値信号を生成する絶対値回
路と、前記絶対値信号と前記ラン信号との供給を受けこ
れら絶対値信号およびラン信号の各々のビット数の和よ
り予め定めた様式でビット数を低減した短縮アドレス信
号を生成するビット変換回路と、前記短縮アドレス信号
対応の前記符号変換テーブルを格納しこの短縮アドレス
信号のアクセスにより予め定めた符号長の符号語信号と
前記符号長を示す符号長信号とを出力する変換テーブル
ROMと、前記符号長信号と前記レベル信号との供給に
応答して正負符号信号を出力するデコーダ回路と、前記
正負符号信号と前記符号語信号との供給を受け正負符号
付きの可変長符号語信号を出力する正負符号付加回路と
を備えて構成されている。
A variable length coding circuit according to the present invention divides input image data into two-dimensional blocks consisting of a matrix having a predetermined number of pixels, and performs orthogonal transform and quantization for each of the two-dimensional blocks. Receiving the supplied quantized image data, a code signal for a code word search corresponding to a combination of a run signal that is a continuous zero coefficient value of the quantized image data and a level signal that is a non-zero value following the run signal Code conversion table
In response to the supply of the run signal and the level signal.
In the variable length coding apparatus for performing variable length coding using Huffman codes answer to determine the code word, and the absolute value circuit for generating an absolute value signal by converting the value of said level signal to an absolute value, the absolute value a bit conversion circuit for generating the signal and shortening the address signal with a reduced number of bits in advance determined manner than the sum of each number of bits of a received these absolute value signal and the run signal supply between the run signal, the shorter address signal a conversion table ROM for outputting the code length signal indicative of the code length code word signal of a predetermined code length by the access of the corresponding said code conversion table stores this short address signal, the code length signal and the level A decoder circuit for outputting a positive / negative code signal in response to the supply of a signal, and a variable length code with a positive / negative sign receiving the supply of the positive / negative sign signal and the code word signal It is configured to include a negative sign adding circuit for outputting a signal.

【0011】[0011]

【実施例】次に、本発明の実施例をブロックで示す図1
を参照すると、この図に示す本実施例の可変長符号化回
路は、レベル信号Lの供給に応答してこのレベル信号L
の絶対値aを供給する絶対値回路1と、絶対値aとラン
信号Rとの供給に応答しROM3の使用対象のワード数
対応のnビットのアドレス信号bにビット変換するビッ
ト変換回路2と、符号語変換テーブルを格納しアドレス
信号bの供給に応答して符号語cと符号長Bとを供給す
るROM3と、符号長Bの供給に応答してこの符号長B
をデコードするとともに入力レベル信号Lの符号を判定
して符号信号dを供給するデコーダ回路4と、符号語c
と符号信号dとの供給に応答し符号語cに正負符号を付
加した可変長符号語Cを出力する正負符号付加回路5と
を備える。
FIG. 1 is a block diagram showing an embodiment of the present invention.
, The variable length encoding circuit of the present embodiment shown in FIG.
An absolute value circuit 1 for supplying the absolute value a and a bit conversion circuit 2 for responding to the supply of the absolute value a and the run signal R to convert the bit into an n-bit address signal b corresponding to the number of words to be used in the ROM 3. A ROM 3 for storing a code word conversion table and supplying a code word c and a code length B in response to the supply of the address signal b, and a code length B in response to the supply of the code length B.
And a decoder circuit 4 that decodes the input word signal L and determines the sign of the input level signal L to supply a sign signal d.
A plus / minus sign adding circuit 5 for outputting a variable length codeword C obtained by adding a plus / minus sign to the codeword c in response to the supply of the codeword c and the sign signal d.

【0012】次に、図1を参照して本実施例の動作につ
いて説明すると、絶対値回路1は量子化器(図示省略)
より供給された8ビットのレベル信号Lが表現する−1
27〜127のレベル値のうち正の0〜127のみ取出
したすなわち正負符号を示す第1ビットを除く7ビット
の絶対値aをビット変換回路2に供給する。ビット変換
回路2は絶対値aと6ビットのラン信号Rとの供給に応
答し、ROM3の符号語変換テーブルの使用対象のワー
ド数に対応するnビットにビット数を圧縮することによ
りビット変換してアドレス信号bを生成する。ROM3
はアドレス信号bの供給に応答し、14ビットの符号語
cと4ビットの符号長Bとを出力する。デコーダ回路4
は、供給を受けた符号長Bをデコードするとともに入力
されたレベル信号Lの正負符号を判定し、符号信号dを
正負符号付加回路5に供給する。正負符号付加回路5
は、符号語cに正負符号を付加して可変長符号語Cを出
力する。
Next, the operation of this embodiment will be described with reference to FIG. 1. An absolute value circuit 1 is a quantizer (not shown).
-1 represented by the supplied 8-bit level signal L
From the level values 27 to 127, only the positive 0 to 127 are taken out, that is, the 7-bit absolute value a excluding the first bit indicating the sign is supplied to the bit conversion circuit 2. In response to the supply of the absolute value a and the 6-bit run signal R, the bit conversion circuit 2 performs bit conversion by compressing the number of bits to n bits corresponding to the number of words to be used in the code word conversion table of the ROM 3. To generate an address signal b. ROM3
Outputs a code word c of 14 bits and a code length B of 4 bits in response to the supply of the address signal b. Decoder circuit 4
Decodes the supplied code length B, determines the sign of the input level signal L, and supplies the sign signal d to the sign addition circuit 5. Sign addition circuit 5
Outputs a variable-length codeword C by adding a sign to the codeword c.

【0013】次に、本実施例の重要構成要素であるビッ
ト変換回路2についてさらに詳細に説明する。
Next, the bit conversion circuit 2, which is an important component of the present embodiment, will be described in more detail.

【0014】アドレスbのビット数nを7としレベル信
号Lとラン信号Rとの配列変換による上記ビット変換の
一例を示す表2を参照すると、この表2に示すL,Rは
それぞれレベル信号Lおよびラン信号Rの値を示し、可
変長符号化対象の63の係数は表中に指定されるアドレ
ス値に変換され、その他の係数は’−’で示す部分のい
ずれかに変換される。
Referring to Table 2 showing an example of the above-described bit conversion by array conversion of the level signal L and the run signal R with the number of bits n of the address b being 7, L and R shown in Table 2 are level signals L And the value of the run signal R, the 63 coefficients to be variable-length coded are converted into address values designated in the table, and the other coefficients are converted into any of the parts indicated by '-'.

【0015】[0015]

【表2】 [Table 2]

【0016】ビット変換回路2の具体的な回路例を示す
図2を参照すると、このビット変換回路2は、ラン信号
Rの値が0〜7である場合のアドレスbを出力する変換
回路21と、ラン信号Rの値が8以上である場合のアド
レスbを出力する変換回路22と、選択信号Sの値に応
答して変換回路21,22の出力のいずれか一方を選択
し7ビットのアドレス信号b0〜b6を出力する選択回
路23と、ラン信号の値に対応して選択回路23を制御
する選択信号Sを供給する選択信号発生回路24とを備
える。
Referring to FIG. 2 showing a specific circuit example of the bit conversion circuit 2, the bit conversion circuit 2 includes a conversion circuit 21 for outputting an address b when the value of the run signal R is 0 to 7. And a conversion circuit 22 that outputs an address b when the value of the run signal R is 8 or more, and selects one of the outputs of the conversion circuits 21 and 22 in response to the value of the selection signal S to generate a 7-bit address. A selection circuit 23 that outputs signals b0 to b6 and a selection signal generation circuit 24 that supplies a selection signal S that controls the selection circuit 23 according to the value of the run signal are provided.

【0017】変換回路21は、ラン信号R0〜R2とレ
ベル信号L3〜L6の供給を受けマスク信号m1を活性
化するマスク信号発生回路211と、マスク信号m1の
活性化状態に応答してレベル信号L0〜L3およびラン
信号R0〜R2の各々をマスクするマスク回路212と
を備える。
The conversion circuit 21 receives the supply of the run signals R0 to R2 and the level signals L3 to L6 and activates the mask signal m1, and the level signal in response to the activation state of the mask signal m1. A mask circuit 212 for masking each of the L0 to L3 and the run signals R0 to R2.

【0018】変換回路22は、出力信号の最上位ビット
(MSB)MBを発生するMSB出力回路221と、レ
ベル信号Lが1以外でMSBMBがオフのときマスク信
号m2を活性化するマスク信号発生回路222と、マス
ク信号m2の活性化状態とラン信号RのR5の論理1と
に応答してマスク動作をするマスク回路223とを備え
る。
The conversion circuit 22 includes an MSB output circuit 221 for generating the most significant bit (MSB) MB of the output signal, and a mask signal generation circuit for activating the mask signal m2 when the level signal L is other than 1 and the MSBMB is off. 222, and a mask circuit 223 that performs a mask operation in response to the activation state of the mask signal m2 and the logic 1 of R5 of the run signal R.

【0019】動作について説明すると、レベル信号Lの
下位7ビットL0〜L6が変換回路21,22に並列に
供給される。同時にラン信号Rの6ビットR0〜R5の
うち下位のR0〜R2が変換回路21に、全部のR0〜
R5が変換回路22にそれぞれ供給される。マスク信号
発生回路211は、レベル信号Lの絶対値が16以上の
場合すなわちL4,L5,L6のいずれかの1つ以上が
供給されたときとラン信号Rの値が0以外でありレベル
信号Lの値が8以上の場合にマスク信号m1を活性化し
マスク回路212に供給する。マスク回路212はマス
ク信号m1の活性化状態に応答して全ての出力信号を論
理1とし、それ以外のときはラン信号Rの下位3ビット
R0〜R2とレベル信号Lの下位4ビットL0〜L3と
を出力選択回路23に供給する。
In operation, the lower 7 bits L0 to L6 of the level signal L are supplied to the conversion circuits 21 and 22 in parallel. At the same time, the lower R0 to R2 of the 6 bits R0 to R5 of the run signal R are supplied to the conversion circuit 21 by all the R0 to R5.
R5 is supplied to the conversion circuit 22, respectively. When the absolute value of the level signal L is 16 or more, that is, when one or more of L4, L5, and L6 is supplied, the value of the run signal R is other than 0, and Is activated, the mask signal m1 is activated and supplied to the mask circuit 212. The mask circuit 212 sets all output signals to logic 1 in response to the activation state of the mask signal m1, otherwise, the lower 3 bits R0 to R2 of the run signal R and the lower 4 bits L0 to L3 of the level signal L Are supplied to the output selection circuit 23.

【0020】MSB出力回路221は、レベル信号Lの
値が2でありラン信号Rの値が8〜15のとき活性化
し、出力信号のMSBとなる信号MBを出力選択回路2
3とマスク信号発生回路222に供給する。マスク信号
発生回路222は、レベル信号Lの値が1以外でありM
SB出力回路221が非活性化状態のときにマスク信号
m2をマスク回路223に供給する。マスク回路223
は、マスク信号m2が活性化状態のときとラン信号Rの
MSBすなわちR5が論理1であるときに全ての出力信
号を論理1とし、それ以外のときはラン信号Rの下位5
ビットR0〜R4を出力選択回路23に供給する。
The MSB output circuit 221 is activated when the value of the level signal L is 2 and the value of the run signal R is 8 to 15, and outputs the signal MB which is the MSB of the output signal to the output selection circuit 2.
3 and the mask signal generation circuit 222. The mask signal generation circuit 222 determines that the value of the level signal L is other than 1 and M
The mask signal m2 is supplied to the mask circuit 223 when the SB output circuit 221 is in the inactive state. Mask circuit 223
Means that all output signals are set to logic 1 when the mask signal m2 is in an activated state and when the MSB of the run signal R, that is, R5 is logic 1, and otherwise, the lower 5 bits of the run signal R
The bits R0 to R4 are supplied to the output selection circuit 23.

【0021】選択信号発生回路24は、ラン信号Rが0
〜7である場合に論理0、それ以外の場合に論理1を選
択信号Sとして出力選択回路23に供給する。出力選択
回路23は、選択信号Sの論理0に応答して変換回路2
1の出力を、論理1に応答して変換回路22の出力をそ
れぞれ選択しアドレス信号b0〜b6を出力する。
The selection signal generating circuit 24 determines that the run signal R is 0
If it is 〜7, logic 0 is supplied to the output selection circuit 23 as a selection signal S otherwise. The output selection circuit 23 responds to the logic 0 of the selection signal S,
In response to the logic 1, the output of the conversion circuit 22 is selected, and the address signals b0 to b6 are output.

【0022】これにより、ビット変換回路2においてア
ドレス信号bのビット数の圧縮が実現でき、ROM3の
メモリ容量を低減することにより回路規模をゲート換算
で約1.5Kゲート、すなわち従来の約1/80に低減
できるので、LSI化が容易となる。
As a result, the number of bits of the address signal b can be reduced in the bit conversion circuit 2, and the memory size of the ROM 3 is reduced to reduce the circuit scale to about 1.5K gates in terms of gates, ie, about 1/100 of the conventional size. Since it can be reduced to 80, it is easy to implement an LSI.

【0023】[0023]

【発明の効果】以上説明したように、本発明の可変長符
号化回路は、レベル絶対値信号およびラン信号の各々の
ビット数の和よりビット数を低減した縮小アドレス信号
を生成するビット変換回路と、上記縮小アドレス信号対
応の小規模な符号変換テーブルを格納した変換テーブル
ROMとを備えることにより、上記変換テーブルROM
の所要メモリ容量を大幅に低減でき、したがって回路規
模を縮小できるので、LSI化を容易にすることができ
るという効果がある。
As described above, the variable length coding circuit according to the present invention is a bit conversion circuit for generating a reduced address signal in which the number of bits is smaller than the sum of the respective bits of the level absolute value signal and the run signal. When, by providing a conversion table ROM which stores a small code conversion table of the reduced address signal corresponding, the conversion table ROM
Required memory capacity can be greatly reduced , and the circuit scale can be reduced, so that there is an effect that the LSI can be easily implemented.

【0024】また、上記回路規模の縮小により、消費電
力の低減と、動作速度の高速化が可能となるという効果
がある。
Further, there is an effect that the power consumption can be reduced and the operation speed can be increased by reducing the circuit size.

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

【図1】本発明の可変長符号化回路の一実施例を示すブ
ロック図である。
FIG. 1 is a block diagram showing one embodiment of a variable length coding circuit according to the present invention.

【図2】図1のビット変換回路の詳細を示す回路図であ
る。
FIG. 2 is a circuit diagram showing details of a bit conversion circuit of FIG. 1;

【図3】従来の可変長符号化回路の一例を示すブロック
図である。
FIG. 3 is a block diagram showing an example of a conventional variable length coding circuit.

【符号の説明】 1 絶対値回路 2 ビット変換回路 3,3A ROM 4 デコーダ回路 5 正負符号付加回路 21,22 変換回路 23 出力選択回路 24 選択信号発生回路 211,222 マスク信号発生回路 212,223 マスク回路 221 MSB出力回路[Description of Signs] 1 Absolute value circuit 2 Bit conversion circuit 3, 3A ROM 4 Decoder circuit 5 Positive / negative sign addition circuit 21, 22 Conversion circuit 23 Output selection circuit 24 Selection signal generation circuit 211, 222 Mask signal generation circuit 212, 223 Mask Circuit 221 MSB output circuit

Claims (2)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 入力画像データを予め定めた画素数の行
列から成る2次元ブロックに分割し、この2次元ブロッ
ク毎に直交変換および量子化した量子化画像データの供
給を受けこの量子化画像データの連続した零の係数値で
あるラン信号とこのラン信号に続く零以外の値であるレ
ベル信号との組み合わせに対応する符号語検索用の符号
変換テーブルを用い前記ラン信号と前記レベル信号との
供給に応答して前記符号語を決定するハフマン符号によ
る可変長符号化を行う可変長符号化装置において、 前記レベル信号の値を絶対値に変換し絶対値信号を生成
する絶対値回路と、 前記絶対値信号と前記ラン信号との供給を受けこれら絶
対値信号およびラン信号の各々のビット数の和より予め
定めた様式でビット数を低減した短縮アドレス信号を生
成するビット変換回路と、 前記短縮アドレス信号対応の前記符号変換テーブルを格
納しこの短縮アドレス信号のアクセスにより予め定めた
符号長の符号語信号と前記符号長を示す符号長信号とを
出力する変換テーブルROMと、 前記符号長信号と前記レベル信号との供給に応答して正
負符号信号を出力するデコーダ回路と、 前記正負符号信号と前記符号語信号との供給を受け正負
符号付きの可変長符号語信号を出力する正負符号付加回
路とを備えることを特徴とする可変長符号化回路。
1. An input image data is divided into a two-dimensional block composed of a matrix having a predetermined number of pixels, and quantized image data obtained by orthogonally transforming and quantizing each of the two-dimensional blocks is supplied. A code for searching for a code word corresponding to a combination of a run signal that is a coefficient value of consecutive zeros and a level signal that is a non-zero value following the run signal
Using a conversion table, the run signal and the level signal
A variable-length encoding device that performs variable-length encoding using a Huffman code that determines the codeword in response to a supply; an absolute value circuit that converts an value of the level signal into an absolute value to generate an absolute value signal; a bit conversion circuit for generating receiving a shortened address signal with a reduced number of bits in these absolute value signal and the run signal each style predetermined than the sum of the number of bits of the supply of the absolute value signal and the run signal, the shortening a conversion table ROM for outputting the code length signal indicative of the code length code word signal of a predetermined code length by access to store the code conversion table in the address signal corresponding this short address signal, the code length signal and A decoder circuit for outputting a positive / negative sign signal in response to the supply of the level signal; and a sign circuit receiving the supply of the positive / negative sign signal and the code word signal. Variable-length coding circuit, characterized in that it comprises a sign adding circuit for outputting a variable-length code word signal.
【請求項2】 前記ビット変換回路が前記ラン信号の
値が予め定めた設定値以下である場合の前記短縮アドレ
ス信号を生成する第1の変換回路と、 前記ラン信号の値が前記設定値以上である場合の前記
アドレス信号を生成する第1の変換回路と、 選択信号の値に応答して前記第1および第2の変換回路
の出力のいずれか一方を選択して前記短縮アドレス信号
を出力する選択回路と、 前記ラン信号の値に対応して前記選択信号の値を論理0
および論理1のいずれか一方の値に設定する選択信号発
生回路とを備えることを特徴とする請求項1記載の可変
長符号化回路。
2. A first conversion circuit , wherein the bit conversion circuit generates the shortened address signal when the value of the run signal is equal to or less than a predetermined set value; the short when the value is equal to or larger than the set value
A first conversion circuit for generating a reduced address signal, a selection circuit for selecting one of the outputs of the first and second conversion circuits and outputting the shortened address signal in response to a value of the selection signal; The value of the selection signal is set to logic 0 in accordance with the value of the run signal.
2. A variable length coding circuit according to claim 1, further comprising a selection signal generation circuit for setting the value to one of a logic 1 and a logic 1.
JP29232093A 1993-11-24 1993-11-24 Variable length coding circuit Expired - Lifetime JP2838964B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP29232093A JP2838964B2 (en) 1993-11-24 1993-11-24 Variable length coding circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP29232093A JP2838964B2 (en) 1993-11-24 1993-11-24 Variable length coding circuit

Publications (2)

Publication Number Publication Date
JPH07147678A JPH07147678A (en) 1995-06-06
JP2838964B2 true JP2838964B2 (en) 1998-12-16

Family

ID=17780255

Family Applications (1)

Application Number Title Priority Date Filing Date
JP29232093A Expired - Lifetime JP2838964B2 (en) 1993-11-24 1993-11-24 Variable length coding circuit

Country Status (1)

Country Link
JP (1) JP2838964B2 (en)

Also Published As

Publication number Publication date
JPH07147678A (en) 1995-06-06

Similar Documents

Publication Publication Date Title
JP3995106B2 (en) Method and means for processing information
US4454546A (en) Band compression device for shaded image
JP4049792B2 (en) Floating-point format digital signal lossless encoding method, decoding method, each apparatus, and each program
US6484142B1 (en) Encoder using Huffman codes
JP2633793B2 (en) Method and apparatus for variable length encoding / decoding of video data
US6535642B1 (en) Approximate string matching system and process for lossless data compression
US5463699A (en) Data compression
JP3410629B2 (en) Variable length coding circuit and variable length coding method
JPH0645950A (en) Apparatus and method for generation of signal
JPS6223504B2 (en)
JP3341962B2 (en) Variable length decoder and method for decoding variable length code value
JPH0879091A (en) Variable length code table and variable length coder
JPH02283186A (en) Non-breaking and no-loss picture code apparatus
US5838834A (en) Image processing apparatus and method for quantizing image data and quantization errors using single quantizing unit and pluralities of quantization tables
JPH03503708A (en) Digital sample coding devices and methods, and video signal processing systems
JPH03503707A (en) A system for decoding statistically encoded digital data
JPH1013693A (en) Digital information encoding device, digital information decoding device, digital information encoding/decoding device, digital information encoding method and digital information decoding method
US4972497A (en) Image coding system
US6157327A (en) Encoding/decoding device
JPH08186723A (en) Encoder for picture processor
US8446299B2 (en) Method and device for encoding and decoding of data in unique number values
JP3005385B2 (en) Huffman decoding circuit
JP2838964B2 (en) Variable length coding circuit
US5561422A (en) Method and apparatus for variable length coding with reduced memory requirement
JPH06343168A (en) Encoding method for digital signal, method for generating table for encoding, encoding device and encoding method

Legal Events

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

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 19980916