JPS6343473A - Modified huffman code decoding circuit - Google Patents
Modified huffman code decoding circuitInfo
- Publication number
- JPS6343473A JPS6343473A JP18691286A JP18691286A JPS6343473A JP S6343473 A JPS6343473 A JP S6343473A JP 18691286 A JP18691286 A JP 18691286A JP 18691286 A JP18691286 A JP 18691286A JP S6343473 A JPS6343473 A JP S6343473A
- Authority
- JP
- Japan
- Prior art keywords
- code
- data
- circuit
- decoding
- modified huffman
- 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
Links
- 238000000034 method Methods 0.000 claims description 10
- 238000006243 chemical reaction Methods 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 238000004891 communication Methods 0.000 description 1
- 230000006835 compression Effects 0.000 description 1
- 238000007906 compression Methods 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000000926 separation method Methods 0.000 description 1
Abstract
Description
【発明の詳細な説明】
〔産業上の利用分野〕
本発明は、ファクシミリ信号の一次元符号化方式の1つ
であるモディファイドハフマン符号化方式で符号化され
たファクシミリ信号を復号するための復号回路に関する
ものである。[Detailed Description of the Invention] [Field of Industrial Application] The present invention provides a decoding circuit for decoding a facsimile signal encoded by a modified Huffman encoding method, which is one of the one-dimensional encoding methods for facsimile signals. It is related to.
白黒2値のファクシミリ信号は一般には極めて冗長度が
大きいので、適当な信号処理によってこの冗長度を削減
し、真に必要な信号だけを送信するようにすれば、デー
タ量は著しく削減される。Black and white binary facsimile signals generally have extremely high redundancy, so if this redundancy is reduced through appropriate signal processing and only the truly necessary signals are transmitted, the amount of data can be significantly reduced.
このため、デジタルファクシミリにおいては、種々の帯
域圧縮方式が考案されており、そのうちの1つがモディ
ファイドハフマン符号化方式である。For this reason, various band compression methods have been devised for digital facsimile, one of which is the modified Huffman encoding method.
モディファイドハフマン符号(以下「MH符号」という
)は、白黒のランレングスに対して、各ランの発生確率
に基づいてハフマン符号を構成したものであり、1つの
ランをメイクアップ符号とターミネイティング符号の組
み合わせで符号化する。A modified Huffman code (hereinafter referred to as "MH code") is a Huffman code constructed based on the probability of occurrence of each run for black and white run lengths, and one run is composed of a make-up code and a terminating code. Encode in combination.
1走査線分の符号間には走査線の区切りを示すEOLと
呼ぶ符号を挿入する。A code called EOL indicating a separation between scanning lines is inserted between codes for one scanning line.
MH符号を復号する場合には、EOLに引き続く符号を
白符号として、この符号から復号を開始する。白又は黒
の1つのランに対する符号を復号し終わると、白、黒を
変えて次の符号を復号する。When decoding an MH code, the code following EOL is set as a white code, and decoding is started from this code. When the code for one run of white or black is decoded, the next code is decoded by changing the white or black.
順次この処理を繰り返していき、EOLを検出したとこ
ろで1走査線分の復号終了とする。This process is sequentially repeated, and when EOL is detected, the decoding for one scanning line is completed.
MH符符号化−は復号は、ファクシミリ通信手順実行等
を考慮し、マイクロプログラム処理されることが多い。MH code encoding and decoding are often processed by a microprogram, taking into account the execution of facsimile communication procedures.
この場合、復号すべきMH符号はバッファメモリ中に蓄
えられている。MHH号器(デコーダ)はバッファメモ
リから順次MH符号を読み出して復号していく。いま、
バッファメモリとデコーダの間のデータの授受の単位が
例えば8ビツトであるとすると、デコーダはバッファメ
モリから8ビツトのパラレルデータを読み出し、これを
パラレル・シリアル変換して1ビツトずつ復号処理して
いく。In this case, the MH code to be decoded is stored in a buffer memory. The MHH encoder (decoder) sequentially reads MH codes from the buffer memory and decodes them. now,
For example, if the unit of data transfer between the buffer memory and the decoder is 8 bits, the decoder reads 8 bits of parallel data from the buffer memory, converts it from parallel to serial, and decodes it bit by bit. .
〔発明が解決しようとする問題点〕
上述した従来のデコーダは、MH符号を1ビツトずつ復
号処理していくため、バッファメモリから読み出したパ
ラレルデータをパラレル・シリアル変換せねばならず、
そのための回路が必要であり、その分処理時間が増加す
るという問題があった。[Problems to be Solved by the Invention] The conventional decoder described above decodes the MH code bit by bit, so the parallel data read from the buffer memory must be converted from parallel to serial.
There is a problem in that a circuit for this is required, and the processing time increases accordingly.
このような問題点を解決するために本発明は、ファクシ
ミリ信号の一次元符号化方式の1つであるモディファイ
ドハフマン符号化方式により符号化されnビット並列信
号として表わされたモディファイドハフマン符号を復号
するための復号回路において、nビット並列信号をラッ
チするための・ MHH号ラッチ回路と、モディファイ
ドハフマン符号を復号するMH符符号デコード回路、こ
のMH符符号デコード回路らの出力制御データをラッチ
する制御データラッチ回路と、ランレングスデータをラ
ッチするランレングスラッチ回路とを復号回路に設ける
ようにしたものである。In order to solve these problems, the present invention decodes a modified Huffman code encoded by a modified Huffman encoding method, which is one of the one-dimensional encoding methods for facsimile signals, and expressed as an n-bit parallel signal. In the decoding circuit for the purpose of The decoding circuit is provided with a data latch circuit and a run-length latch circuit that latches run-length data.
本発明においては、nビット並列信号をパラレル・シリ
アル変換するためのパラレル・シリアル変換回路を必要
とせず、nビット並列信号は並列信号のまま復号される
。In the present invention, there is no need for a parallel-to-serial conversion circuit for converting an n-bit parallel signal from parallel to serial, and the n-bit parallel signal is decoded as it is.
本発明に係わるモディファイドハフマン符号復号回路の
一実施例を図に示す。図において、1はnビット並列信
号としてのMH符号aをラッチするためのMHH号ラッ
チ回路、2はMH符号を復号するMH符符号デコード回
路3はランレングスデータbをラッチするランレングス
ラッチ回路、4はMH符符号デコード回路らの出力制御
データをラッチする制御データラッチ回路である。An embodiment of a modified Huffman code decoding circuit according to the present invention is shown in the figure. In the figure, 1 is an MHH code latch circuit for latching MH code a as an n-bit parallel signal, 2 is an MH code code decoding circuit for decoding the MH code, and 3 is a run-length latch circuit for latching run-length data b. Reference numeral 4 denotes a control data latch circuit that latches output control data from the MH code decoding circuit and the like.
次に、1走査線分のMH符号の復号について説明する。Next, decoding of the MH code for one scanning line will be explained.
まず、ランレングスラッチ回路3および制御データラッ
チ回路4をリセット信号R3により初期化する。その後
、バッファメモリよりMH符号aを読み出し、MHH号
ラッチ回路1に1バイト分のデータをラッチし、復号を
開始する。なお、MH符号ラッチ回路1とランレングス
ラッチ回路3と制御データラッチ回路4は、クロックC
Lにより同期がとられる。First, the run length latch circuit 3 and the control data latch circuit 4 are initialized by the reset signal R3. Thereafter, the MH code a is read from the buffer memory, 1 byte of data is latched into the MHH code latch circuit 1, and decoding is started. Note that the MH code latch circuit 1, the run length latch circuit 3, and the control data latch circuit 4 are connected to the clock C.
Synchronization is achieved by L.
MH符号デコード回路2は、MH符号データa、白符号
を復号しているのか黒符号を復号しているかの区別のた
めの白/黒データC,シーケンスデータ(ランレングス
データbおよびメイクアップ符号/ターミネイティング
符号dの別を示すデータ)およびビット位置データ(8
ビツトのMH符号aのうちの有効部分を示すデータ)e
を入力とし、ランレングスbおよび復号終了データf等
の制御データを出力する。The MH code decoding circuit 2 includes MH code data a, white/black data C for distinguishing whether a white code or a black code is being decoded, and sequence data (run length data b and make-up code/ data indicating the different termination code d) and bit position data (8
Data indicating the effective part of the bit's MH code a)e
is input, and control data such as run length b and decoding completion data f are output.
1にラッチしたMHH号中に1つのMH符号の終了を検
出した場合、MH符号デコード回路2は、1符号復号終
了データfを通知すると共に、そのランレングスデータ
bおよびメイクアップ符号/ターミネイティング符号d
の別を示すデータ、および、MH符号aの8ビツトのう
ちの残りを示すビット位置データeを出力する。このと
き、引き続<MH符号を復号するにはランレングスデー
タbのみをリセットすれば良く、この場合新たな制御デ
ータが出力される。When detecting the end of one MH code in the MHH codes latched to 1, the MH code decoding circuit 2 notifies the 1 code decoding end data f, and also outputs its run length data b and make-up code/terminating code. d
and bit position data e indicating the remaining 8 bits of the MH code a. At this time, in order to continue decoding the <MH code, only the run length data b needs to be reset, and in this case new control data is output.
1にラッチしたMW符号中にMH符号の終了が見つから
ない場合は、制御データ中の復号終了データはオンとな
らず、1バイト終了デ一タgが通知される。この場合に
は、バッファメモリから次のデータを読み出し、MHH
号ラッチ回路1にラッチする。MHH号デコード回路2
は新たにラッチしたデータに応じた制御データ等を出力
するので、それに応じた処理を以上に述べたように行な
い、これをEOLが検出されるまで続けることにより、
1走査線分のMH符号の復号が完了する。If the end of the MH code is not found in the MW code latched to 1, the decoding end data in the control data is not turned on, and 1-byte end data g is notified. In this case, the next data is read from the buffer memory and the MHH
The signal is latched into the number latch circuit 1. MHH decoding circuit 2
outputs control data etc. according to the newly latched data, so by performing the corresponding processing as described above and continuing this until EOL is detected,
Decoding of the MH code for one scanning line is completed.
以上説明したように本発明は、nビット並列信号をラッ
チするためのMH符号ラッチ回路と、モディファイドハ
フマン符号を復号するMH符符号デコード回路、このM
H符符号デコード回路らの出力制御データをラッチする
制御データラッチ回路と、ランレングスデータをラッチ
するランレングスラッチ回路とを設けることにより、バ
ッファメモリから読み出したnビット並列信号をパラレ
ル・シリアル変換することな(復号することができるの
で、パラレル・シリアル変換回路の削減による回路規模
の縮小および信号処理速度の向上を計ることができる効
果がある。As explained above, the present invention provides an MH code latch circuit for latching an n-bit parallel signal, an MH code decoding circuit for decoding a modified Huffman code, and an MH code decoding circuit for decoding a modified Huffman code.
By providing a control data latch circuit that latches output control data from the H-code decoding circuit and a run-length latch circuit that latches run-length data, the n-bit parallel signal read from the buffer memory is converted from parallel to serial. Since it is possible to decode various signals, it is possible to reduce the circuit scale by reducing the number of parallel-to-serial conversion circuits and to improve the signal processing speed.
図は本発明に係わるモディファイドハフマン符号復号回
路の一実施例を示す系統図である。
1・・・MHH号ラッチ回路、2・・・MH符符号デコ
ード回路3・・・ランレングスラッチ回路、4・・・制
御データラッチ回路。The figure is a system diagram showing an embodiment of a modified Huffman code decoding circuit according to the present invention. 1... MHH code latch circuit, 2... MH code decode circuit 3... Run length latch circuit, 4... Control data latch circuit.
Claims (1)
ィファイドハフマン符号化方式により符号化されnビッ
ト並列信号として表わされたモディファイドハフマン符
号を復号するための復号回路において、前記nビット並
列信号をラッチするためのMH符号ラッチ回路と、モデ
ィファイドハフマン符号を復号するMH符号デコード回
路と、このMH符号デコード回路からの出力制御データ
をラッチする制御データラッチ回路と、ランレングスデ
ータをラッチするランレングスラッチ回路とを備え、前
記nビット並列信号を並列信号のまま復号することを特
徴とするモディファイドハフマン符号復号回路The n-bit parallel signal is latched in a decoding circuit for decoding a modified Huffman code encoded by the modified Huffman encoding method, which is one of the one-dimensional encoding methods for facsimile signals, and expressed as an n-bit parallel signal. an MH code latch circuit for decoding the modified Huffman code, a control data latch circuit for latching output control data from the MH code decoding circuit, and a run-length latch circuit for latching run-length data. A modified Huffman code decoding circuit, characterized in that it decodes the n-bit parallel signal as it is as a parallel signal.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP18691286A JPS6343473A (en) | 1986-08-11 | 1986-08-11 | Modified huffman code decoding circuit |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP18691286A JPS6343473A (en) | 1986-08-11 | 1986-08-11 | Modified huffman code decoding circuit |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPS6343473A true JPS6343473A (en) | 1988-02-24 |
Family
ID=16196862
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP18691286A Pending JPS6343473A (en) | 1986-08-11 | 1986-08-11 | Modified huffman code decoding circuit |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPS6343473A (en) |
Cited By (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US7539447B2 (en) | 2005-01-28 | 2009-05-26 | Brother Kogyo Kabushiki Kaisha | Image-forming device for absorbing vibration of guide plate |
| US7539448B2 (en) | 2005-01-28 | 2009-05-26 | Brother Kogyo Kabushiki Kaisha | Image-forming device for suppressing vibration of guide plate and jams of recording sheet |
| US7542709B2 (en) | 2005-01-28 | 2009-06-02 | Brother Kogyo Kabushiki Kaisha | Image-forming device for suppressing recording sheet from flapping when transferring toner images thereon |
Citations (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS59156073A (en) * | 1983-02-25 | 1984-09-05 | Canon Inc | Data decoding device |
-
1986
- 1986-08-11 JP JP18691286A patent/JPS6343473A/en active Pending
Patent Citations (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS59156073A (en) * | 1983-02-25 | 1984-09-05 | Canon Inc | Data decoding device |
Cited By (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US7539447B2 (en) | 2005-01-28 | 2009-05-26 | Brother Kogyo Kabushiki Kaisha | Image-forming device for absorbing vibration of guide plate |
| US7539448B2 (en) | 2005-01-28 | 2009-05-26 | Brother Kogyo Kabushiki Kaisha | Image-forming device for suppressing vibration of guide plate and jams of recording sheet |
| US7542709B2 (en) | 2005-01-28 | 2009-06-02 | Brother Kogyo Kabushiki Kaisha | Image-forming device for suppressing recording sheet from flapping when transferring toner images thereon |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| KR900001821B1 (en) | Processor for compressing and expanding binary data | |
| KR870008446A (en) | Binary data compression and extension processing unit | |
| KR100969748B1 (en) | Method and apparatus for transmitting and receiving serial data in serial communication system and serial communication system for same | |
| JPS6343473A (en) | Modified huffman code decoding circuit | |
| JP3197408B2 (en) | Additional bit processing device for marker identification | |
| JP3863652B2 (en) | Variable length code alignment device | |
| JPH0255987B2 (en) | ||
| JPS62199173A (en) | Modified huffman code decoding circuit | |
| JPH0569342B2 (en) | ||
| JP2556160B2 (en) | Compression code decompression device | |
| JP3108243B2 (en) | Encoding and decoding device | |
| JP3239664B2 (en) | Variable length code decoding method | |
| JPH0149072B2 (en) | ||
| JPS61230525A (en) | modified haffman code converter | |
| JPS62248380A (en) | Facsimile encoding system | |
| JP2536490B2 (en) | Run-length encoding device | |
| KR100275267B1 (en) | High speed variable length code decoding device | |
| JPH04258084A (en) | Code rule converter | |
| JP3142911B2 (en) | Processing method of encoding / decoding device | |
| JP2795023B2 (en) | Encoding device | |
| JP3031952B2 (en) | Variable length decoder | |
| JPH04213222A (en) | Decoding circuit for unequal length code data | |
| KR0119900B1 (en) | The variable length pair converting circuit for JPEG algorithm | |
| JPH034622A (en) | Modified huffman coding and decoding control system | |
| JPH0420308B2 (en) |