JPS61173528A - Encoding device for modified hoffman code - Google Patents

Encoding device for modified hoffman code

Info

Publication number
JPS61173528A
JPS61173528A JP1401985A JP1401985A JPS61173528A JP S61173528 A JPS61173528 A JP S61173528A JP 1401985 A JP1401985 A JP 1401985A JP 1401985 A JP1401985 A JP 1401985A JP S61173528 A JPS61173528 A JP S61173528A
Authority
JP
Japan
Prior art keywords
encoding
scanning line
data
circuit
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.)
Pending
Application number
JP1401985A
Other languages
Japanese (ja)
Inventor
Yoshiyuki Mihashi
三橋 嘉之
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
NEC Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by NEC Corp filed Critical NEC Corp
Priority to JP1401985A priority Critical patent/JPS61173528A/en
Publication of JPS61173528A publication Critical patent/JPS61173528A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To perform efficient control so that the multiprocessing of each scanning line is performed to begin with another piece of original image information by sending an encoding output of each scanning line as to plural input image signal. CONSTITUTION:When the (m)th scanning line is encoded, final data which is read out of a data informing circuit 9 and stored on the completion of the encoding of the (m-1)th scanning line is set in a data setting circuit 8 and the final position bit is set in a bit position setting circuit 5 similarly. The address of the (l)th byte is set in an address counter 1, the number of bytes to be transferred is set in a transfer byte quantity counter 2, and an encoding circuit 4 is started at this time. The encoding circuit 4 reads and encodes original image signals, and a modified Hoffman code is connected successively to the final bit position of the data set in the data setting circuit 8 which is set in the bit position setting circuit; and serial-parallel conversion is performed and the resulting 8-bit data is written in a buffer memory. Then, codes are written in the buffer memory every time an eight-bit code is formed. The encoding circuit 4 reports the completion of the encoding after one scanning line is encoded.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、ファクシミリ信号の一次元符号化方式である
モディファイドハフマン符号化方式によりファクシミリ
信号を作製する符号化回路に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to an encoding circuit that generates facsimile signals using a modified Huffman encoding method, which is a one-dimensional encoding method for facsimile signals.

〔概 要〕〔overview〕

本発明は、ファクシミリ信号の一次元符号化用メイクア
ップ信号を縦方向に、ターミネイティング符号を横方向
に、白黒のランレングス(RL)ニ基ツいて符号化する
モディファイドハフマン(MH)符号方式において、 直前の走査線の最終データ中の符号最終ビット位置を設
定するレジスタと、レジスタの読出し・書込みを制御す
る制御回路として付加することにより、 走査線を欠くことなく確実に符号化できるとともに、走
査線にまたがる情報が1つの出力バイト情報に含まれな
いようにしたものである。
The present invention relates to a modified Huffman (MH) encoding system that encodes a make-up signal for one-dimensional encoding of a facsimile signal in the vertical direction and a terminating code in the horizontal direction based on black and white run lengths (RL). By adding a register to set the code final bit position in the final data of the immediately preceding scanning line and a control circuit to control reading and writing of the register, it is possible to reliably encode the scanning line without missing it, and to This is to prevent information spanning lines from being included in one output byte information.

〔従来の技術〕[Conventional technology]

白黒二値のファクシミリ信号は一般に極めて冗長度が大
きいので、適当な信号処理により冗長度を削減し、必要
な信号だけを送信するようにすればデータ量が著しく削
減される。このためディジタルファクシミリにおいては
、種々の帯域圧縮方式が提案されている。
Black and white binary facsimile signals generally have extremely high redundancy, so if the redundancy is reduced through appropriate signal processing and only the necessary signals are transmitted, the amount of data can be significantly reduced. For this reason, various band compression methods have been proposed for digital facsimile.

従来の帯域圧縮の方式としては、−次元符号化方式、二
次元符号化方式等があり、−次元符号化方式としては、
CCITTのグループ3 (G3)機の標準符号化方式
として、モディファイドハフマン符号化方式が勧告され
ている。
Conventional band compression methods include -dimensional coding, two-dimensional coding, etc.
Modified Huffman coding is recommended as the standard coding method for CCITT Group 3 (G3) aircraft.

このモディファイドハフマン符号は、白黒のランレング
スに対して各ランの発生確率に基づいてハフマン符号を
構成したものであり、1つのランをメイクアップ符号(
縦方向)とターミネイティング符号(横方向)の組合せ
で符号化する。1走査線分の符号間には走査線の区切り
を示すEOLと呼ぶ符号を挿入する。
This modified Huffman 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 converted into a make-up code (
(vertical direction) and terminating code (horizontal direction). A code called EOL indicating a separation between scanning lines is inserted between codes for one scanning line.

モディファイドハフマン符号化、あるいはモディファイ
ドハフマン復号は、ファクシミリ通信手順実行等を考慮
し、従来例ではマイクロプログラムで処理する装置が多
い。この場合符号化すべき原画信号はバッファメモリ中
に蓄えられている。
Modified Huffman encoding or modified Huffman decoding is often processed by a microprogram in conventional devices, taking into consideration the execution of facsimile communication procedures. In this case, the original image signal to be encoded is stored in a buffer memory.

符号化器はこのバッファメモリから順次原画を読み出し
て符号化してゆく。符号化されたモディファイドハフマ
ンコードもまたバッファメモリ中の異なった領域に書き
込まれる。いま、バッファメモリと符号化器の間のデー
タの授受の単位が例えば8ビツトであるとする。符号化
器は原画を読み出し、これを符号化する。符号化された
データはシリアルデータであるので、符号化゛後シリア
ル・パラレル変換をして8ビツトずつバッファメモリに
書き込んでゆく。モディファイドハフマン符号は可変長
符号であるから、符号化器が1走査線分の符号化を終了
した時点で符号の最後の部分が8ビツトに満たない場合
が通常である。
The encoder sequentially reads the original images from this buffer memory and encodes them. The encoded modified Huffman code is also written to a different area in the buffer memory. Assume now that the unit of data exchange between the buffer memory and the encoder is, for example, 8 bits. The encoder reads the original image and encodes it. Since the encoded data is serial data, it is serial-parallel converted after encoding and written into the buffer memory 8 bits at a time. Since the modified Huffman code is a variable length code, the last part of the code is usually less than 8 bits when the encoder finishes encoding one scanning line.

また、従来の符号化器はバッファメモリ中に蓄えられた
複数の走査線分の原画信号を順次連続して符号化してゆ
くため、1走査線分の符号化を終了した時点で、符号の
最後の8ビツトに満たないデータはそのままの状態で残
されており、次の走査線を符号化する際に残っていたデ
ータに新たに符号化されたデータがつながり、シリアル
・パラレル変換が行われバッファメモリに書込まれるこ
とになっていた。
In addition, since conventional encoders sequentially and continuously encode the original image signals for multiple scanning lines stored in the buffer memory, when the encoding for one scanning line is completed, the end of the code is The data that is less than 8 bits is left as is, and when the next scanning line is encoded, the newly encoded data is connected to the remaining data, serial-to-parallel conversion is performed, and the data is transferred to the buffer. It was supposed to be written to memory.

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

従ってこのような従来装置では、異なる何種類かの原画
信号が別々のバッファメモリ中にあり、これを1走査線
分ずつ交互に符号化するというような多重処理に用いる
ことはできない。
Therefore, in such a conventional apparatus, several different types of original image signals are stored in separate buffer memories, and these signals cannot be used for multiple processing such as alternately encoding each scanning line.

本発明は、上記問題点を解決するものであり、前記のよ
うな従来の符号化器ではできない多重処理を使用可能に
する符号化器を提供することを目的とする。
The present invention solves the above problems, and aims to provide an encoder that enables multiple processing that cannot be performed with conventional encoders as described above.

〔問題点を解決するための手段〕[Means for solving problems]

本発明は、入力ファクシミリ画信号をモディファイドハ
フマン符号に符号化し、符号化されたモディファイドハ
フマン符号をnビット毎に出力する符号化回路を含むモ
ディファイドハフマン符号の符号化装置において、l走
査線の画信号の符号化を終了したときにその最後の走査
線の符号化されたデータを出力するとともに、次の走査
線の画信号の符号化を開始するまでそのデータを保持す
るデータ通知設定手段と、1走査線の画信号の符号化を
終了したときにその最後の走査線の符号化されたデータ
の最後のピッ°トの位置情報を出力するとともに、次の
走査線の画信号の符号化を開始するまでそのビットの位
置情報を保持するビット位置通知設定手段と、上記二つ
の通知設定手段を制御する制御回路とを備え、上記符号
化回路は、複数の入力画信号についてそれぞれ1走査線
毎に符号化出力を送出する構成であることを特徴とする
The present invention provides an encoding device for a modified Huffman code including an encoding circuit that encodes an input facsimile image signal into a modified Huffman code and outputs the encoded modified Huffman code every n bits. data notification setting means for outputting the encoded data of the last scanning line when the encoding of the last scanning line is completed and holding the data until encoding of the image signal of the next scanning line is started; When the encoding of the image signal of a scanning line is finished, the position information of the last pit of the encoded data of the last scanning line is outputted, and the encoding of the image signal of the next scanning line is started. The encoding circuit includes bit position notification setting means for holding the position information of the bit until It is characterized by a configuration that sends out encoded output.

〔作 用〕[For production]

モディファイドハフマンの並べ方の例において、m−1
走査線の符号化終了時に、記憶しておいた最終データを
設定回路に設定し、転送バイト数を設定した時点にて符
号化回路を起動する。符号化回路は設定されている最終
ビットに続けてデータ通知回路から読み出して全体を漏
れなく知ることができる。
In the modified Huffman arrangement example, m-1
When the encoding of the scanning line is completed, the stored final data is set in the setting circuit, and the encoding circuit is activated when the number of transfer bytes is set. The encoding circuit reads the last set bit from the data notification circuit and can know the entire bit without omission.

〔実施例〕〔Example〕

次に本発明の実施例装置を図面によって説明する。 Next, an embodiment of the present invention will be explained with reference to the drawings.

第1図は本発明実施例モディファイドハフマン符号化回
路のブロック構成図である。アドレスカウンタ1と転送
バイト数カウンタ2は、それぞれ制御回路3とバス10
の間に接続される。ビット位置設定回路5、ビット位置
通知回路6はそれぞれ上記制御回路3とバス10の間に
接続される。上記ピント位置設定回路5はシリアル・パ
ラレル変換回路7に結合される。この変換回路7は符号
化回路4とバス10の間に接続される。前記制御回路3
はデータ設定回路8、データ通知回路9を介してバス1
0に結合される。
FIG. 1 is a block diagram of a modified Huffman encoding circuit according to an embodiment of the present invention. Address counter 1 and transfer byte number counter 2 are connected to control circuit 3 and bus 10, respectively.
connected between. The bit position setting circuit 5 and the bit position notification circuit 6 are connected between the control circuit 3 and the bus 10, respectively. The focus position setting circuit 5 is coupled to a serial/parallel conversion circuit 7. This conversion circuit 7 is connected between the encoding circuit 4 and the bus 10. The control circuit 3
is connected to bus 1 via data setting circuit 8 and data notification circuit 9.
Combined with 0.

第2図はモディファイドハフマン符号化を行った後のバ
ッファメモリ (図示せず)中でのモディファイドハフ
マンの並び方の一例を示したものである。ここでは並列
データの例として8ビツトを用いている。ここで第2図
のm走査綜目の符号化の場合を考える。m−1走査線の
符号化終了に、データ通知回路9から読み出し、記憶し
ておいた最終データをデータ設定回路8に設定し、同様
に最終位置ビットをビット位置設定回路5に設定する。
FIG. 2 shows an example of how modified Huffmans are arranged in a buffer memory (not shown) after modified Huffman encoding is performed. Here, 8 bits are used as an example of parallel data. Let us now consider the case of encoding the m-th scanning zigzag in FIG. 2. At the end of encoding the m-1 scanning line, the final data read from the data notification circuit 9 and stored is set in the data setting circuit 8, and the final position bit is similarly set in the bit position setting circuit 5.

そしてアドレスカウンタ1にβバイト目のアドレスを設
定し、転送バイト数カウンタ2に転送バイト数を設定し
、この時点で符号化回路4を起動する。符号化回路4は
原画信号を読み出しこれを符号化し、データ設定回路8
に設定されたデータのビット位置設定回路に設定された
最終ビット位置に続けて、モディファイドハフマン符号
をっなげ、シリアル・パラレル変換した後8ビツトとし
てバッファメモリ (図示せず)に書込む。その後は符
号が8ビット貯まるごとにバッファメモリうに書込んで
ゆく。
Then, the address of the β-th byte is set in the address counter 1, the number of transferred bytes is set in the transfer byte number counter 2, and the encoding circuit 4 is activated at this point. The encoding circuit 4 reads out the original image signal, encodes it, and sends it to the data setting circuit 8.
Following the final bit position set in the bit position setting circuit of the data set in , the modified Huffman code is dropped, the data is serial-to-parallel converted, and then written to a buffer memory (not shown) as 8 bits. Thereafter, each time 8 bits of code are accumulated, they are written to the buffer memory.

l走査線の符号化が終了すると符号化回路4は符号化終
了を通知する。符号化終了後転送バイト数カウンタ2を
読み出すことにより、バッファメモリに書込んだ1走査
線分のモディファイドハフマン符号のバイト数を知るこ
とができる。また符号化回路に残った最終データはデー
タ通知回路9から読み出せる。最終のビット位置はビッ
ト位置通知回路6を読み出すことにより知ることができ
る。これらの情報を記憶しておき、次にm+l走査走査
憂目号化する際に使用する。
When the encoding of l scanning lines is completed, the encoding circuit 4 notifies the completion of encoding. By reading the transferred byte number counter 2 after the encoding is completed, it is possible to know the number of bytes of the modified Huffman code for one scanning line written in the buffer memory. Further, the final data remaining in the encoding circuit can be read out from the data notification circuit 9. The final bit position can be known by reading the bit position notification circuit 6. These pieces of information are stored and used in the next m+l scan scan conversion.

〔発明の効果〕〔Effect of the invention〕

本発明によれば、モディファイドハフマン符号化におい
て、異なるエリアにある画信号を1走査線ずつ符号化す
ることができる。従って、走査線をまたがる情報が一つ
のバイト情報に含まれるようなことがなくなるので、別
の原画情報がら走査線毎に多重処理を行うような効率的
な制御が可能になる適用範囲を拡げることができるに効
果がある。
According to the present invention, in modified Huffman encoding, image signals in different areas can be encoded one scanning line at a time. Therefore, since information that spans scanning lines is no longer included in one byte information, it is possible to expand the scope of application by enabling efficient control such as performing multiple processing for each scanning line using different original image information. It is very effective.

【図面の簡単な説明】[Brief explanation of the drawing]

第1図は本発明実施例装置モディファイドハフマン符号
化回路のブロック構成図。 第2図は第1図のバッファメモリ中のモディファイドハ
フマン符号の並べ方の例を示す図。 1・・・アドレスカウンタ、2・・・転送バイト数カウ
ンタ、3・・・制御回路、4・・・符号化回路、5・・
・ビット位置設定回路、6・・・ビット位置通知回路、
7・・・シリアル・パラレル変換回路、8・・・データ
設定回路、9・・・データ通知回路、10・・・バス。
FIG. 1 is a block diagram of a modified Huffman encoding circuit according to an embodiment of the present invention. FIG. 2 is a diagram showing an example of how modified Huffman codes are arranged in the buffer memory of FIG. 1. 1... Address counter, 2... Transfer byte number counter, 3... Control circuit, 4... Encoding circuit, 5...
・Bit position setting circuit, 6...Bit position notification circuit,
7... Serial/parallel conversion circuit, 8... Data setting circuit, 9... Data notification circuit, 10... Bus.

Claims (1)

【特許請求の範囲】[Claims] (1)入力ファクシミリ画信号をモディファイドハフマ
ン符号に符号化し、符号化されたモディファイドハフマ
ン符号をnビット毎に出力する符号化回路を含むモディ
ファイドハフマン符号の符号化装置において、 1走査線の画信号の符号化を終了したときにその最後の
走査線の符号化されたデータを出力するとともに、次の
走査線の画信号の符号化を開始するまでそのデータを保
持するデータ通知設定手段と、 1走査線の画信号の符号化を終了したときにその最後の
走査線の符号化されたデータの最後のビットの位置情報
を出力するとともに、次の走査線の画信号の符号化を開
始するまでそのビットの位置情報を保持するビット位置
通知設定手段と、上記二つの通知設定手段を制御する制
御回路とを備え、 上記符号化回路は、複数の入力画信号についてそれぞれ
1走査線毎に符号化出力を送出する構成である ことを特徴とするモディファイドハフマン符号の符号化
装置。
(1) In a modified Huffman code encoding device that includes an encoding circuit that encodes an input facsimile image signal into a modified Huffman code and outputs the encoded modified Huffman code every n bits, a data notification setting means for outputting the encoded data of the last scanning line when encoding is finished and holding the data until encoding of the image signal of the next scanning line is started; When the encoding of the line image signal is finished, the position information of the last bit of the encoded data of the last scanning line is output, and the position information is output until the encoding of the image signal of the next scanning line is started. The encoding circuit includes a bit position notification setting means for holding bit position information and a control circuit for controlling the above two notification setting means, and the encoding circuit encodes and outputs each of the plurality of input image signals for each scanning line. 1. A modified Huffman code encoding device, characterized in that it is configured to send out a modified Huffman code.
JP1401985A 1985-01-28 1985-01-28 Encoding device for modified hoffman code Pending JPS61173528A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1401985A JPS61173528A (en) 1985-01-28 1985-01-28 Encoding device for modified hoffman code

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1401985A JPS61173528A (en) 1985-01-28 1985-01-28 Encoding device for modified hoffman code

Publications (1)

Publication Number Publication Date
JPS61173528A true JPS61173528A (en) 1986-08-05

Family

ID=11849480

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1401985A Pending JPS61173528A (en) 1985-01-28 1985-01-28 Encoding device for modified hoffman code

Country Status (1)

Country Link
JP (1) JPS61173528A (en)

Similar Documents

Publication Publication Date Title
JP2535932B2 (en) Halftone image coding device
JPH07264417A (en) Image coding method
JPS61173528A (en) Encoding device for modified hoffman code
JPH033440B2 (en)
JPH05151349A (en) Image data compressing method and encoding circuit
JPS6212280A (en) Combination system for image data
JPH0420308B2 (en)
JPS6163147A (en) Converter of facsimile response
JPS62199173A (en) Modified huffman code decoding circuit
JPH03136575A (en) Facsimile coder
JPS6174456A (en) Block line memory control system
JPH0824334B2 (en) Facsimile machine
JPH01278176A (en) Picture signal encoding circuit
JPS62199171A (en) Dither picture encoding method
JPS59174066A (en) Coding system for multiple facsimile signal
JPS6065669A (en) Picture coding system
JPH0732458B2 (en) Code converter
JPH07101919B2 (en) Dither image encoding device
JPH034622A (en) Modified huffman coding and decoding control system
JPS62266975A (en) Facsimile run-length encoder
JPS6292583A (en) Data compressing circuit
JPS6058628B2 (en) Facsimile signal encoding method
JPS6348068A (en) Transmitting device for variable density picture
JPS61166274A (en) Picture coding device
JPH033567A (en) Dither picture coding system