JPS63238767A - Binary data compression processor - Google Patents

Binary data compression processor

Info

Publication number
JPS63238767A
JPS63238767A JP27865486A JP27865486A JPS63238767A JP S63238767 A JPS63238767 A JP S63238767A JP 27865486 A JP27865486 A JP 27865486A JP 27865486 A JP27865486 A JP 27865486A JP S63238767 A JPS63238767 A JP S63238767A
Authority
JP
Japan
Prior art keywords
point
register
image pattern
circuit
pixel
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
JP27865486A
Other languages
Japanese (ja)
Inventor
Hiromichi Tome
當銘 弘道
Fumitaka Sato
文孝 佐藤
Shigekazu Sumita
住田 重和
Masayoshi Murayama
村山 正佳
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.)
Toshiba Corp
Toshiba Computer Engineering Corp
Original Assignee
Toshiba Corp
Toshiba Computer Engineering 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 Toshiba Corp, Toshiba Computer Engineering Corp filed Critical Toshiba Corp
Priority to JP27865486A priority Critical patent/JPS63238767A/en
Publication of JPS63238767A publication Critical patent/JPS63238767A/en
Pending legal-status Critical Current

Links

Landscapes

  • Compression, Expansion, Code Conversion, And Decoders (AREA)

Abstract

PURPOSE:To simplify a circuit constitution while the high speed of a compression processing is executed by processing an image pattern in parallel. CONSTITUTION:At the time of a compression processing, an image pattern 104 of an encoding scanning line is set to a decoding part 4, every 8 bits are respectively taken out in parallel and sent to a buffer part 3 and a detecting part 2. The detecting part 2 detects a next changing picture element (a1 point) in the processing direction of a starting changing picture element (a0 point) from an image pattern 103 of 8 bits sent as encoding scanning line data and detects a next changing picture element (b1 point) in the processing direction from the a0 point from an image pattern 106 of 16 bits sent from the buffer part 3 as the referring scanning line data. Thus, the detecting part 2 detects a changing picture element while the image pattern 103 of an encoding at every scanning line is successively fetched 8 bits and the image pattern 106 of a referring scanning line is fetched at every 16 bits in parallel.

Description

【発明の詳細な説明】 [発明の目的] (産業上の利用分野) 本発明は2値データを符号化する2値データ圧縮処理装
置に関する。
DETAILED DESCRIPTION OF THE INVENTION [Object of the Invention] (Industrial Application Field) The present invention relates to a binary data compression processing device for encoding binary data.

(従来の技術) 2値データを圧縮伸長処理する方式としては、ファクシ
ミリ用にM11方式、MR方式、及びM2R方式などの
符号化方式を使用することがCCI TT (国際電信
電話諮問委員会)によって勧告され、国際的に標準化さ
れ広く認められている。Ml+符号化方式は処理対象ラ
インのみに着目する1次元符号化方式であり、処理対象
ラインとその直前のラインに着、目するMRおよびM2
R符号化方式(2次元符号化方式)に比べ圧縮効率が劣
る。M2R符号化方式はMR符号化方式のエンド・オブ
・ライン(EOL)コードを省略し、Kパラメータ(K
ラインごとに1次元符号化を行ない誤りの伝播を防ぐた
めのもの)を無限大にとることにより、圧縮効率をMR
符号化方式よりも高めている。
(Prior Art) As a method for compressing and decompressing binary data, the CCI TT (International Telegraph and Telephone Consultative Committee) recommends that coding methods such as the M11 method, MR method, and M2R method be used for facsimile. Recommended, internationally standardized and widely recognized. The Ml+ encoding method is a one-dimensional encoding method that focuses only on the line to be processed.
Compression efficiency is inferior to the R encoding method (two-dimensional encoding method). The M2R encoding method omits the end-of-line (EOL) code of the MR encoding method and uses the K parameter (K
By performing one-dimensional encoding for each line and setting the number of errors (to prevent error propagation) to infinity, the compression efficiency can be increased to MR.
It is higher than the encoding method.

これらの方式による2値データの圧縮伸長処理は従来一
般には汎用マイクロコンピュータを使用してソフトウェ
ア的に逐次処理により行なわれていた。
Conventionally, compression/expansion processing of binary data using these methods has generally been performed by sequential software processing using a general-purpose microcomputer.

(発明が解決しようとする問題点) このような処理においては、データ伝送速度が制限され
ているファクシミリとして使用することには問題がない
。しかしながら、コンピュータシステムのワークステー
ションにイメージ情報を表示するために、前述のような
方法を用いようとすると、動作速度が大幅に落ち、良好
なマン・マシン・インターフェイスを実現できなかった
。このような問題を解決するために、一般に広く利用さ
れている方法は、並行処理、先回り処理、パイプライン
処理である。ところがまたまだ望まれる速さには達して
いない。
(Problems to be Solved by the Invention) In such processing, there is no problem in using it as a facsimile machine whose data transmission speed is limited. However, when attempting to use such a method to display image information on a computer system workstation, the operating speed is significantly reduced and a good man-machine interface cannot be achieved. In order to solve such problems, generally widely used methods are parallel processing, proactive processing, and pipeline processing. However, the desired speed has not yet been reached.

本発明は、回路構成の簡素化とともに圧縮処理の高速化
を可能にする2値データ圧縮処理装置を提供することを
目的とする。
SUMMARY OF THE INVENTION An object of the present invention is to provide a binary data compression processing device that can simplify the circuit configuration and speed up compression processing.

[発明の構成〕 (問題点を解決するための手段) 上記目的を達成するために本発明においては、符号化走
査線にあって開始変化画素(aO点)より処理方向側に
ある次の変化画素(81点)検出の際、符号化走査線に
おける開始変化画素(a O点)の位置情報が設定され
る第1のレジスタと、符号化走査線のイメージパターン
を複数ビット単位で保持する第2のレジスタと、前記第
2のレジスタを介して得られるイメージパターンを反転
するか否かを示す信号と、前記信号に基づき前記第2の
レジスタを介して得られるイメージパターンを反転する
反転回路と、前記第]−のレジスタに設定された開始変
化画素の位置情報に基づき、前記反転回路を介して得ら
れるイメージパターンの開始変化画素より処理方向側に
おける変化画素(a 1点)候補を検出するal、・門
候補検出回路と、走査線における終端画素より1ビット
処理方向側にある画素(終端ポイント)の位置情報が設
定される第3のレジスタと、前記第2のレジスタを介し
て得られるイメージパターンに終端ポイントが含まれて
いる場合、前記第3のレジスタに設定された終端ポイン
トの位置情報に基づき、前記第2のレジスタを介して得
られるイメージパターンの終端ポイント位置に仮想の変
化画素候補を補う終端処理回路と、前記a1点候補検出
回路により検出された変化画素候補及び前記終端処理回
路により補われた変化画素候補の中で開始変化画素に最
も近い変化画素候補を検出するa1点検出回路とを具備
することを特徴とする2値データ圧縮処理装置を提供す
る。
[Structure of the Invention] (Means for Solving the Problems) In order to achieve the above object, in the present invention, the next change on the processing direction side from the start change pixel (aO point) in the encoding scanning line When detecting pixels (81 points), there is a first register in which the position information of the starting change pixel (aO point) in the encoded scanning line is set, and a second register that holds the image pattern of the encoded scanning line in units of multiple bits. a second register, a signal indicating whether or not to invert the image pattern obtained via the second register, and an inversion circuit for inverting the image pattern obtained via the second register based on the signal; , detecting a change pixel (a 1 point) candidate on the processing direction side from the start change pixel of the image pattern obtained through the inversion circuit, based on the position information of the start change pixel set in the [-]th register. al, - obtained through a gate candidate detection circuit, a third register in which position information of a pixel (terminal point) located one bit on the side of the terminal pixel in the scanning line in the processing direction is set, and the second register. If the image pattern includes a terminal point, a virtual change pixel is placed at the terminal point position of the image pattern obtained via the second register based on the position information of the terminal point set in the third register. a termination processing circuit that supplements candidates, and an a1 inspection that detects a changed pixel candidate closest to a start changed pixel among changed pixel candidates detected by the a1 point candidate detection circuit and changed pixel candidates supplemented by the end processing circuit. Provided is a binary data compression processing device characterized by comprising an output circuit.

さらに、参照走査線にあって、符号化走査線の開始変化
画素(a O点)より処理方向側にある次の変化画素(
b 1点)検出の際、符号化走査線における開始変化画
素(a O点)の位置情報が設定される第1のレジスタ
と、参照走査線のイメージパターンを複数ビット単位で
保持する第4のレジスタと、前記第4のレジスタを介し
て得られるイメージパターンを反転するか否かを示す第
2の信号と、前記第2の信号に基づき前記第4のレジス
タを介して得られるイメージパターンを反転する第2の
反転回路と、前記第1のレジスタに設定された開始変化
画素の位置情報に基づき、前記第2の反転回路を介して
得られるイメージパターンの開始変化画素の位置より処
理方向側における変化画素(b1点)候補を検出するb
1点候補検出回路と、走査線における終端画素より1ビ
ット処理方向側にある画素(終端ポイント)の位置情報
が設定される第3のレジスタと、前記第4のレジスタを
介して得られるイメージパターンに終端ポイントが含ま
れている場合、前記第3のレジスタに設定された終端ポ
イントの位置に仮想の変化画素候補を補う第2の終端処
理回路と、前記b1点候補検出回路により検出された変
化画素候補及び前記第2の終端処理回路により補われた
変化画素の中で開始変化画素に最も近い変化画素候補を
検出するb1点検出回路とを具備することを特徴とする
2値データ圧縮処理装置を提供する。
Furthermore, in the reference scanning line, the next changing pixel (
b 1 point) During detection, there is a first register in which the position information of the start change pixel (a O point) in the encoded scanning line is set, and a fourth register that holds the image pattern of the reference scanning line in units of multiple bits. a second signal indicating whether or not to invert the image pattern obtained via the fourth register; and inverting the image pattern obtained via the fourth register based on the second signal. and a second inverting circuit that performs the process, based on the position information of the start change pixel set in the first register, the position of the start change pixel of the image pattern obtained through the second inversion circuit on the side in the processing direction. Detecting changed pixel (b1 point) candidatesb
An image pattern obtained through a one-point candidate detection circuit, a third register in which position information of a pixel (terminal point) located one bit on the side of the terminal pixel in the scanning line in the processing direction is set, and the fourth register. includes a termination point, a second termination processing circuit supplements a virtual change pixel candidate at the position of the termination point set in the third register, and the change detected by the b1 point candidate detection circuit. A binary data compression processing device comprising a pixel candidate and a b1 point detection circuit that detects a changed pixel candidate closest to a start changed pixel among changed pixels supplemented by the second termination processing circuit. I will provide a.

(作用) このように構成されたものにおいて、符号化走査線にあ
って開始変化画素(a O点)より処理方向側にある次
の変化画素(81点)検出の際、第1のレジスタには開
始変化画素(a O点)の位置情報が設定され、第3の
レジスタには終端ポイントの位置情報が設定される。ま
た、第2のレジスタは符号化走査線のイメージパターン
を複数ビット単位で保持する。第2のレジスを介して得
られるイメージパターンを反転するか否かを示す信号は
、aO点から81点への画素の色変化の方向(白−黒、
黒−白)を統一するためのものであり、反転回路に送ら
れる。反転回路はこの信号に基づき第2のレジスタを介
して得られるイメージパターンを反転する。a1点候補
検出回路は第1のレジスタに設定された開始変化画素の
位置情報に基づき、反転回路を介して得られるイメージ
パターンの開始変化画素より処理方向側における変化画
素(81点)候補を検出する。終端処理回路は第2のレ
ジスタを介して得られるイメージパターンに終端ポイン
トが含まれている場合、第3のレジスタに設定された終
端ポイントの位置情報に基づき、第2のレジスタを介し
て得られるイメージパターンの終端ポイント位置に仮想
の変化画素候補を補う。a 点検出回路はa1点候補検
出回路により検出された変化画素候補及び終端処理回路
により補われた変化画素候補の中で開始変化画素に最も
近い変化画素候補を検出する。
(Function) In the device configured as described above, when the next change pixel (81 points) on the encoding scanning line is detected on the processing direction side from the start change pixel (aO point), the first change pixel (81 points) is stored in the first register. The position information of the start change pixel (aO point) is set in the register, and the position information of the end point is set in the third register. Further, the second register holds the image pattern of the encoded scanning line in units of multiple bits. The signal indicating whether or not to invert the image pattern obtained via the second register is the direction of color change of the pixel from point aO to point 81 (white-black,
It is used to unify the black and white) and is sent to the inverting circuit. The inversion circuit inverts the image pattern obtained via the second register based on this signal. The a1 point candidate detection circuit detects change pixel (81 points) candidates on the processing direction side from the start change pixel of the image pattern obtained through the inversion circuit, based on the position information of the start change pixel set in the first register. do. If the image pattern obtained through the second register includes a termination point, the termination processing circuit obtains the termination point through the second register based on the position information of the termination point set in the third register. A virtual change pixel candidate is supplemented at the end point position of the image pattern. The a point detection circuit detects the changed pixel candidate closest to the start changed pixel among the changed pixel candidates detected by the a1 point candidate detection circuit and the changed pixel candidates supplemented by the termination processing circuit.

一方、参照走査線にあって開始変化画素(a O点)よ
り処理方向側にある次の変化画素(b1点)検出の際、
第1のレジスタには開始変化画素(a。点)の位置情報
が設定され、第3のレジスタには終端ポイントの位置情
報が設定される。また、第4のレジスタは参照走査線の
イメージパターンを複数ビット単位で保持する。第4の
レジスタを介して得られるイメージパターンを反転する
か否かを示す第2の信号は、aO点からb1点への画素
の色変化の方向(白−黒、黒−白)を統一するためのも
のであり、第2の反転回路に送られる。
On the other hand, when detecting the next change pixel (point b1) on the reference scanning line that is on the processing direction side from the start change pixel (point aO),
The position information of the start change pixel (point a) is set in the first register, and the position information of the end point is set in the third register. Further, the fourth register holds the image pattern of the reference scanning line in units of multiple bits. A second signal indicating whether or not to invert the image pattern obtained through the fourth register unifies the direction of color change of pixels (white-black, black-white) from point aO to point b1. and is sent to the second inversion circuit.

第2の反転回路はこの第2の信号に基づき、第4のレジ
スタを介して得られるイメージパターンを反転する。b
1点候補検出回路は第1のレジスタに設定された開始変
化画素の位置情報に基づき、第2の反転回路を介して得
られるイメージパターンの開始変化画素より処理方向側
における変化画素(b1点)候補を検出する。第2の終
端処理回路は第4のレジスタを介して得られるイメージ
パターンに終端ポイントが含まれている場合、第3のレ
ジスタに設定された終端ポイントの位置情報に基づき、
第4のレジスタを介して得られるイメージパターンの終
端ポイント位置に仮想の変化変化画素候補を補う。b1
点検出回路はb1点候補検出回路により検出された変化
画素候補及び終端処理回路により捕われた変化画素候補
の中で開始変化画素に最も近い変化画素候補を検出する
The second inversion circuit inverts the image pattern obtained via the fourth register based on this second signal. b
The one-point candidate detection circuit detects a changing pixel (point b1) on the processing direction side from the starting changing pixel of the image pattern obtained via the second inversion circuit, based on the position information of the starting changing pixel set in the first register. Detect candidates. When the image pattern obtained through the fourth register includes a termination point, the second termination processing circuit performs a process based on the position information of the termination point set in the third register.
A virtual change-change pixel candidate is added to the end point position of the image pattern obtained through the fourth register. b1
The point detection circuit detects the changed pixel candidate closest to the start changed pixel among the changed pixel candidates detected by the b1 point candidate detection circuit and the changed pixel candidates captured by the termination processing circuit.

(実施例) 以下、本発明の一実施例を図面によって説明する。第1
図は本実施例の2値データ圧縮伸長処理装置の全体構成
を示すブロック図である。2値データ圧縮伸長処理装置
は解読部4、生成部5、バッファ部3、検出部2及びこ
れらを制御する制御部1とから構成されており、各々は
内部バス101を介して接続されている。解読部4は主
に伸長時のコード解読を行なう。解読部4にはシステム
バス102を介して送られてくる圧縮対象となるイメー
ジパターンが設定されるレジスタが含まれている。生成
部5は伸長時のイメージパターン生成及び圧縮時のコー
ド生成を行なう。バッファ部3は圧縮時、伸長時のそれ
ぞれの処理対象走査線の1ライン前の走査線のデータを
保持する。検出部2は変化画素の検出を行なう。
(Example) Hereinafter, an example of the present invention will be described with reference to the drawings. 1st
The figure is a block diagram showing the overall configuration of the binary data compression/expansion processing device of this embodiment. The binary data compression/decompression processing device is composed of a decoding section 4, a generation section 5, a buffer section 3, a detection section 2, and a control section 1 that controls these, and each is connected via an internal bus 101. . The decoding unit 4 mainly decodes codes during decompression. The decoder 4 includes a register in which an image pattern to be compressed sent via the system bus 102 is set. The generation unit 5 generates an image pattern during decompression and a code during compression. The buffer section 3 holds the data of the scanning line one line before the scanning line to be processed during compression and expansion. The detection unit 2 detects changed pixels.

圧縮処理の際、符号化走査線のイメージパターン104
は解読部4のレジスタ(図示せず)に設定される。この
レジスタに設定されたイメージパターン104は並列に
8ビットずつ取り出されバッファ部3及び検出部2に送
られる。バッファ部3ではこのイメージパターン103
を参照走査線のデータとして保存する。検出部2では符
号化走査線データとして送られた8ビットのイメージパ
ターン103から開始変化画素(以下a。点と称す)の
処理方向側にある次の変化画素(以下81点と称す)を
検出するとともに、参照走査線データとしてバッファ部
3から送られたICビットのイメージパターン10Gか
らa。点より処理方向側にある次の変化画素(以下b1
点と称す)を検出する。また、検出部2では必要に応じ
て符号化走査線の81点より処理方向側にある次の変化
画素(以下82点と称す)、及び参照走査線にあってb
1点より処理方向側にある次の変化画素(以下b2点と
称す)を検出する。検出部2はここで検出した各点の位
置情報から符号化モード(バスモード、垂直モード、水
平モード)を決定し、そのデータ107を生成部5に送
る。生成部5はこのデータ107に基づきコード生成を
行なう。
During the compression process, the image pattern 104 of the encoded scan line
is set in a register (not shown) of the decoder 4. The image pattern 104 set in this register is extracted 8 bits at a time in parallel and sent to the buffer section 3 and the detection section 2. In the buffer section 3, this image pattern 103
is saved as reference scan line data. The detection unit 2 detects the next change pixel (hereinafter referred to as 81 points) on the processing direction side of the starting change pixel (hereinafter referred to as point a) from the 8-bit image pattern 103 sent as encoded scanning line data. At the same time, image patterns 10G to a of IC bits sent from the buffer section 3 as reference scanning line data. The next changed pixel on the processing direction side from the point (hereinafter b1
(referred to as a point). In addition, the detection unit 2 detects the next changed pixel (hereinafter referred to as the 82nd point) located on the processing direction side from the 81st point of the encoded scanning line and the b
The next changed pixel (hereinafter referred to as b2 point) located on the processing direction side from the first point is detected. The detection unit 2 determines the encoding mode (bus mode, vertical mode, horizontal mode) from the position information of each point detected here, and sends the data 107 to the generation unit 5. The generation unit 5 generates a code based on this data 107.

このようにして検出部2では順次符号化走査線のイメー
ジパターン103を8ビットずつ、参照走査線のイメー
ジパターン106を16ビットずつ並列に取り込みなが
ら変化画素を検出する。
In this manner, the detection unit 2 detects changed pixels while sequentially capturing the image pattern 103 of the encoded scanning line 8 bits at a time and the image pattern 106 of the reference scanning line 16 bits at a time in parallel.

以下、第2図を参照しながら検出部2について詳述する
。22は圧縮処理開始にあたり、制御部1により1ライ
ンの最初のaO点の位置情報が3ビットのデータとして
設定されるスタートレジスタ(DSTAToo−02)
である。21もスタートレジスタ22と同様に圧縮処理
開始にあたり制御部1により終端ポイント(1ラインの
終端画素より1ビット処理方側の画素)の位置情報が3
ビットのデータとして設定されるストップレジスタ(D
STOPOO−02)である。26は第3図(A)に示
すように参照走査線のイメージパターンが19ビットの
データとして設定される参照ラインレジスタ(RREF
−4−15)であり、制御部1からの制御信号によりR
REFOO−07のうちRREPO4−07がRREP
−4−1となるようにバイト単位でシフトし、参照ライ
ンバッファからのイメージパターン106をRREPO
8−15としてラッチする。そして、参照ラインレジス
タ26はRREF−4−1tを16ビットのイメージパ
ターン202として出力する。25は第3図(B)に示
すように符号化走査線のイメージパターンが16ビット
のデータとして設定される符号化ラインレジスタ(RD
Tloo−15)であり、制御部1からの制御信号i:
 ヨl:) RDtlog−15がRDTloo−07
となるようにシフトし、新たに入力されるイメージパタ
ーン103をRDTI08−15としてラッチする。
The detection unit 2 will be described in detail below with reference to FIG. 22 is a start register (DSTAToo-02) in which the position information of the first aO point of one line is set as 3-bit data by the control unit 1 at the start of the compression process.
It is. Similarly to the start register 22, the control unit 1 sets the position information of the end point (pixel on the 1-bit processing side from the end pixel of one line) to 3 when starting the compression process.
Stop register (D
STOPOO-02). 26 is a reference line register (RREF) in which the image pattern of the reference scanning line is set as 19-bit data, as shown in FIG. 3(A).
-4-15), and R by the control signal from the control unit 1.
Among REFOO-07, RREPO4-07 is RREP
-4-1 byte by byte and transfer the image pattern 106 from the reference line buffer to RREPO.
Latch as 8-15. Then, the reference line register 26 outputs RREF-4-1t as a 16-bit image pattern 202. 25 is a coding line register (RD) in which the image pattern of the coding scanning line is set as 16-bit data as shown in FIG. 3(B).
Tloo-15), and the control signal i from the control unit 1:
Yol:) RDtlog-15 is RDTloo-07
The newly inputted image pattern 103 is latched as RDTI08-15.

そして、符号化ラインレジスタ25は、RDTloo−
07を8ビットのイメージパターン201として出力す
る。27はaO点の位置情報が4ビットのデータとして
設定されるレジスタ(SLAPOO−03) 、2gは
このレジスタ27からのデータ203 (RBPAOO
−03)をデコードし、aO点の位置を示す11ビット
のデータを生成するデコーダ、29はこのデコーダ28
からのデータ204に基づき、参照ラインレジスタ26
及び符号化ラインレジスタ25からのイメージパターン
202゜201において、aO点より処理方向側のイメ
ージパターンをマスクする11ビットのマスクパターン
(AOLS−3−07)を生成するマスクパターン生成
回路である。30はストップレジスタ21からのデータ
206に基づき、参照ラインレジスタ2G及び符号化ラ
インレジスタ25からのイメージパターン202.20
Lにおいて、終端ポイント以外のイメージパターンをマ
スクする8ビットのマスクパターン(IENDPTOO
−07)を生成するデコーダである。このデコーダ30
からのデータ207は制御部1からの制御信号20Bに
より、通常はイメージパターンすべてをマスクするマス
クパターン(11111111)となり、符号化走査線
の最終の8ビットの処理を行なう時にのみ、終端ポイン
ト以外のイメージパターンをマスクするマスクパターン
となる。31はレジスタ27のデータ203とストップ
レジスタ21のデータ206とを比較するコンパレータ
であり、その結果はデータBとして制御部1に出力され
る。
Then, the encoding line register 25 is RDTloo-
07 is output as an 8-bit image pattern 201. 27 is a register (SLAPOO-03) in which the position information of point aO is set as 4-bit data, and 2g is data 203 (RBPAOO-03) from this register 27.
-03) and generates 11-bit data indicating the position of point aO, 29 is this decoder 28
Based on the data 204 from the reference line register 26
This is a mask pattern generation circuit that generates an 11-bit mask pattern (AOLS-3-07) for masking the image pattern on the processing direction side from the aO point in the image patterns 202 and 201 from the encoding line register 25. 30 is an image pattern 202.20 from the reference line register 2G and the encoded line register 25 based on the data 206 from the stop register 21.
At L, an 8-bit mask pattern (IENDPTOO
-07). This decoder 30
The data 207 from 207 becomes a mask pattern (11111111) that normally masks the entire image pattern according to the control signal 20B from the control unit 1, and only when processing the final 8 bits of the encoded scanning line, data other than the terminal point are This becomes a mask pattern that masks the image pattern. A comparator 31 compares the data 203 of the register 27 and the data 206 of the stop register 21, and the result is outputted as data B to the control unit 1.

24はマスクパターン生成回路29からのデータ205
およびデコーダ30からのデータ207に基づき、参照
ラインレジスタ26からのデータ202において、aO
点より処理方向側にある次の変化画素(b を点)を検
出するb1点検出回路である。b1点検出回路24は必
要に応じてb1点より処理方向側にある次の変化画素(
b 2点)を検出する。そして、その検出結果を4ビッ
トの位置情報(BIDETOO−03)として出力する
。23はb1点検出回路24と同様に、データ205お
よびデータ207に基づき、符号化ラインレジスタ25
からのデータ201において、a。
24 is data 205 from the mask pattern generation circuit 29
Based on the data 207 from the decoder 30 and the data 202 from the reference line register 26, aO
This is a b1 point detection circuit that detects the next changed pixel (point b) located on the processing direction side from the point. The b1 point detection circuit 24 detects the next changed pixel (
b 2 points) is detected. Then, the detection result is output as 4-bit position information (BIDETOO-03). 23, similarly to the b1 point detection circuit 24, based on the data 205 and data 207, the encoded line register 25
In data 201 from a.

点より処理方向側にある次の変化画素(a 1点)を検
出するa1点検出回路である。a1点検出回路23は必
要に応じて81点より処理方向側にある次の変化画素(
a 2点)を検出する。そして、その検出結果を3ビッ
トの位置情報(AIDTOO−02)として出力する。
This is an a1 point detection circuit that detects the next changed pixel (a1 point) on the processing direction side from the point. The a1 point detection circuit 23 detects the next changed pixel (
a 2 points) is detected. Then, the detection result is output as 3-bit position information (AIDTOO-02).

b1点検出回路24で検出されたb1点の位置情報は引
算器32とセレクタ37に出力される。このb1点はレ
ジスタ26の関係で+4されている。a 点検出回路で
検出された81点の位置情報はセレクタ35とセレクタ
38に出力される。
The position information of the b1 point detected by the b1 point detection circuit 24 is output to the subtracter 32 and the selector 37. This point b1 is increased by +4 due to the register 26. The position information of the 81 points detected by the a point detection circuit is output to the selector 35 and the selector 38.

セレクタ35は制御部1からの制御信号によりat点検
出回路23からのデータとこのデータ+4とから出力デ
ータを選択して引算器32に出力する。引算器32は計
算結果をデータDとして生成部5に出力する。セレクタ
37にはレジスタ27のデータ203とb 検出回路2
4からのb1点の位置情報が入力されていて、セレクタ
3Bには制御部1から−1(1111)あるいは−4o
ioo)が入力され、生成部2からデータCとが入力さ
れている。それらのセレクタ37と36は制御部1から
の制御信号によりそれぞれ出力を選択し加算器33に出
力する。加算器33は計算結果をセレクタ38に出力す
る。セレクタ38には演算回路34からの出力DBPA
OO−03、加算器33からの出力A01BPOO−0
3、a1点検出回路23からの出力AIDTOO−02
、スタートレジスタ22からの出力DSTATOO−0
2が入力されていて、制御部1からの制御信号により出
力を選択する。その出力はデータEとして生成部5及び
解読部4に出力される。さらにその出力はa。点の位置
情報を示すデータ209(SLAPOO−03)として
レジスタ27にラッチされる。演算回路34はレジスタ
27からの出力203に基づき、a 点の位置情報をf
lIax(a□ −8,−4)とする。
The selector 35 selects output data from the data from the at point detection circuit 23 and this data +4 in response to a control signal from the control unit 1 and outputs it to the subtracter 32. The subtracter 32 outputs the calculation result as data D to the generation unit 5. The selector 37 has the data 203 of the register 27 and the detection circuit 2
The position information of point b1 from control unit 1 is input to selector 3B.
ioo) is input, and data C from the generation unit 2 is input. The selectors 37 and 36 each select an output based on a control signal from the control section 1 and output it to the adder 33. Adder 33 outputs the calculation result to selector 38. The selector 38 receives the output DBPA from the arithmetic circuit 34.
OO-03, output A01BPOO-0 from adder 33
3. Output AIDTOO-02 from a1 point detection circuit 23
, the output from the start register 22 DSTATOO-0
2 is input, and the output is selected by a control signal from the control section 1. The output is output as data E to the generation section 5 and the decoding section 4. Furthermore, its output is a. It is latched in the register 27 as data 209 (SLAPOO-03) indicating the position information of the point. Based on the output 203 from the register 27, the arithmetic circuit 34 converts the position information of point a to f
Let it be lIax(a□ -8, -4).

上述してきたように参照ラインレジスタ26及び符号化
ラインレジスタ25に順次イメージパターンが設定され
、b 点検出回路24およびa1点検出回路23により
、それぞれのイメージパターンにおける変化画素が検出
される。そして、b1点検出回路24およびa1点検出
回路23によって検出された各点の位置情報に基づき、
演算されその結果が生成部5に送られる。生成部5はこ
の演算結果からコードを生成する。
As described above, image patterns are sequentially set in the reference line register 26 and the encoded line register 25, and the b point detection circuit 24 and the a1 point detection circuit 23 detect changed pixels in each image pattern. Based on the position information of each point detected by the b1 point detection circuit 24 and the a1 point detection circuit 23,
The calculation is performed and the result is sent to the generation section 5. The generation unit 5 generates a code from this calculation result.

ここでデコーダ28及びマスクパターン生成回路29に
ついて第8図を参照しながら詳細に説明する。
The decoder 28 and mask pattern generation circuit 29 will now be described in detail with reference to FIG.

第8図(A) (B)において、レジスタ27に設定さ
れたa(+点の位置情報を示す4ビットのデータ203
 (RBPAOO−03)を入力し、そのデータ203
が示すビット位置のみデータを”0”とし他を”■”と
する11ビットのデータ204を生成する。各ビット番
号−3−07に対応するデータ203,209は第8図
(C)に示した。
In FIG. 8(A) and (B), 4-bit data 203 indicating the position information of the a (+ point) set in the register 27 is shown.
(RBPAOO-03) and its data 203
11-bit data 204 is generated in which only the bit position indicated by is set to "0" and the rest are set to "■". Data 203 and 209 corresponding to each bit number -3-07 are shown in FIG. 8(C).

第8図(C)においてデータ203 (1?13PAO
O−03)及びデータ209 (SLAPoo−03)
が”0011“°の場合、ビット番号は03を示す。し
たがってデコーダ28は°’0011”を入力するとビ
ット番号03を°°0°°とし他を”1゛°とするデー
タ204を生成する。さらにマスクパターン生成回路2
9はデータ204に基づき、ao点より処理方向側のデ
ータをすべて”1”とし、他を”0”とするマスクパタ
ーンデータ205 (AOLS−3−07)を生成する
In FIG. 8(C), data 203 (1?13PAO
O-03) and data 209 (SLAPoo-03)
When is “0011”°, the bit number indicates 03. Therefore, when the decoder 28 inputs 0011, it generates data 204 in which bit number 03 is set to 0° and the others are set to 1. Furthermore, the mask pattern generation circuit 2
9 generates mask pattern data 205 (AOLS-3-07) based on the data 204, in which all data on the side of the processing direction from the ao point are set to "1" and the other data are set to "0".

次にデコーダ30について第9図を参照しながら詳細に
説明する。第9図(A)においてデコーダ30は終端ポ
イントのビット位置を示す3ビットデータ20B (D
STOPOO−02)と制御部1からの制御信号208
とを入力し、8ビットのマスクパターン207 (EN
DPTOO−07)を入力する。制御信号208は処理
中のイメージパターンに終端ポイントが含まれているか
否かを示す信号であり、終端ポイントが含まれている時
のみ有効となる。第9図(B)に示すように制御信号2
08が”どのとき、データ200 (DSTOPOO−
02>に示されたビット位置に従い、終端ポイントのみ
°0”とし、他を1”とするマスクパターンを生成する
。各ビット番号00−07に対応するデータ20B (
DSTOPOO−02)は第8図(C)に示した。第8
図(C)において、データ20B (DSTOPOO−
02)が“011”の場合、対応するビット番号は03
であるのでビット番号03を“0′とし、他を”■”と
するマスクパターン207 (ENDPTOO−07)
を生成する。一方、第9図(C)に示すように制御信号
208が”0”のときデータ20B (DSTOPOO
−02)の内容にかかわらず全ビットを“1”とするマ
スクパターン207 (ENDPTOO−07)を生成
する。
Next, the decoder 30 will be explained in detail with reference to FIG. In FIG. 9(A), the decoder 30 generates 3-bit data 20B (D
STOPOO-02) and control signal 208 from control unit 1
and input the 8-bit mask pattern 207 (EN
DPTOO-07). A control signal 208 is a signal indicating whether or not an end point is included in the image pattern being processed, and is valid only when the end point is included. As shown in FIG. 9(B), the control signal 2
08 is “When data 200 (DSTOPOO-
According to the bit position indicated by 02>, a mask pattern is generated in which only the terminal point is set to 0" and the others are set to 1". Data 20B (
DSTOPOO-02) is shown in FIG. 8(C). 8th
In figure (C), data 20B (DSTOPOO-
02) is “011”, the corresponding bit number is 03
Therefore, mask pattern 207 (ENDPTOO-07) in which bit number 03 is set to “0” and the others are set to “■”
generate. On the other hand, as shown in FIG. 9(C), when the control signal 208 is "0", the data 20B (DSTOPOO
A mask pattern 207 (ENDPTOO-07) is generated in which all bits are set to "1" regardless of the contents of -02).

以下、第4図に示したa1点険検出路23の構成を示す
ブロック図と第5図から第7図及び第10図に示した各
ブロックの詳細な回路図とを参照しなからa1点検出回
路23について詳述する。第4図において、41は符号
化ラインレジスタ25から送られる8ビット並列データ
201(RDTloo−07)を制御部1からの制御信
号404(PBLKP)によって反転する反転回路であ
る。制御部1はaO点から81点への画素の色変化の方
向(色−黒、黒−白)を統一するための制御信号404
(FI31、KP)を反転回路41に送る。
Hereinafter, the a1 inspection will be made without referring to the block diagram showing the configuration of the a1 point danger detection path 23 shown in FIG. 4 and the detailed circuit diagrams of each block shown in FIGS. 5 to 7 and 10. The output circuit 23 will be explained in detail. In FIG. 4, reference numeral 41 denotes an inverting circuit that inverts 8-bit parallel data 201 (RDTloo-07) sent from the encoding line register 25 in response to a control signal 404 (PBLKP) from the control unit 1. The control unit 1 generates a control signal 404 for unifying the direction of color change of pixels (color-black, black-white) from point aO to point 81.
(FI31, KP) is sent to the inversion circuit 41.

本実施例では画素の色変化の方向を白−黒に統一してい
る。制御信号404はaO点が白の場合”■”、黒の場
合゛0“となる。反転回路41は第5図(A)に示すよ
うにイメージパターン201(RDTloo−07)の
各ビットと制御信号404との排他的論理和をとるEX
CLLISIVE ORゲート回路から構成されている
。入出力データの例を第5図(B) (C)に示す。第
5図(B)において、aO点が白く”0”)である場合
、画素の色変化の方向は白−黒となるので、制御部1は
制御信号404 (PBLKP)を°゛0”とする。し
たがってイメージパターン201は反転されずにデータ
401として出力される。一方、第5図(C)に示すよ
うにa。点が黒(”I”)の場合、画素の色変化の方向
は黒−白となるので、制御部1は制御信号404 (F
Bl、、KP)を”1”とする。したがってイメージパ
ターン201は反転回路41により反転されデータ40
1と17て出力される。
In this embodiment, the direction of color change of pixels is unified to black and white. The control signal 404 becomes "■" when the aO point is white, and becomes "0" when it is black.The inversion circuit 41 controls each bit of the image pattern 201 (RDTloo-07) as shown in FIG. 5(A). EX takes exclusive OR with signal 404
It is composed of a CLLISIVE OR gate circuit. Examples of input/output data are shown in FIGS. 5(B) and 5(C). In FIG. 5(B), when the aO point is white ("0"), the direction of color change of the pixel is from white to black, so the control unit 1 changes the control signal 404 (PBLKP) to "0". Therefore, the image pattern 201 is output as data 401 without being inverted.On the other hand, as shown in FIG. Since it becomes black-white, the control unit 1 outputs the control signal 404 (F
Bl, KP) are set to "1". Therefore, the image pattern 201 is inverted by the inverting circuit 41 and the data 40
1 and 17 are output.

反転回路41により画素の色変化の方向を統一したデー
タ401は変化画素候補検出回路42に送られる。変化
画素候補検出回路42はマスクパターン生成回路29か
らのマスクデータ205 (AOLS−3−07)のう
ちAOLSOO−07を入力し、これに基づきa。点よ
り処理方向にある変化画素(a i点)の候補を検出す
る。変化画素候補検出回路42は第6図(A)に示すよ
うにデータ401の各ビットとマスクデータ205 (
AOLSOO−07)との論理積を取った後反転するN
ANDゲート回路から構成されている。人出力データの
例を第6図(B)に示す。at1点がビット番号03で
ある場合、マスクデータ205(AOLSOO−07)
はao点より処理方向側のビット(04−07)を”1
°°としそれ以外(oo−03)を“0”としたデータ
となる。つまり、マスクデータ205はaO点より処理
方向側の黒(1°゛)の画素を検出するようになってい
る。反転回路41からのデータ401において、ao点
より処理方向側の黒く”1”)の画素がビット番号05
、OG、 07であるので、変化画素候補検出回路42
はこれを倹出し、ビット番号05.06.07を”0“
とじ、他を”1”とする変化画素候補を示すデータ40
2を生成する。
Data 401 in which the direction of color change of the pixels is unified by the inversion circuit 41 is sent to the changed pixel candidate detection circuit 42. The changed pixel candidate detection circuit 42 inputs AOLSOO-07 out of the mask data 205 (AOLS-3-07) from the mask pattern generation circuit 29, and based on this, a. A candidate for a changed pixel (a i point) located in the processing direction from the point is detected. As shown in FIG. 6(A), the changed pixel candidate detection circuit 42 detects each bit of the data 401 and the mask data 205 (
N that is inverted after taking the AND with AOLSOO-07)
It is composed of an AND gate circuit. An example of human output data is shown in FIG. 6(B). If the at1 point is bit number 03, mask data 205 (AOLSOO-07)
sets the bits (04-07) on the processing direction side from the ao point to “1”
The data is set to °° and other values (oo-03) are "0". In other words, the mask data 205 is designed to detect black (1°) pixels on the processing direction side from point aO. In the data 401 from the inversion circuit 41, the black pixel (“1”) on the processing direction side from the ao point has bit number 05.
, OG, 07, the changed pixel candidate detection circuit 42
saves this and sets bit number 05.06.07 to “0”
Data 40 indicating change pixel candidates with binding and others set to “1”
Generate 2.

変化画素候補を示すデータ402は終端処理回路43に
送られる。ここでデータ402に終端ポイントが含まれ
ている場合、終端処理が施される。終端処理とは1ライ
ンの終端画素の次の画素(終端ポイント)に仮想の変化
画素候補を補う処理であり、この処理はCCITT(国
際電信電話慰問委員会)のMHlMR,M21?の符号
化ルールに定められている。終端処理回路43はデコー
ダ30からのマスクデータ207 (ENDPTOO−
07)に基づき仮想の変化画素候補を補う。第7図(A
)に示すように終端処理回路43は変化画素候補を示す
データ402の各ビットとマスクデータ20フ(P、N
DPTOO−07)との論理積を取るANDゲート回路
から構成されている。人出力データの例を第7図(B)
〜(D)に示す。第7図(B)において、終端ポイント
がビット番号03にあり、データ402のビット番号0
3が変化画素候補として検°出されていない場合、終端
処理回路43は仮想の変化画素候補をビット番号03に
補ったデータ403を生成する。
Data 402 indicating changed pixel candidates is sent to the termination processing circuit 43. Here, if the data 402 includes a termination point, termination processing is performed. Termination processing is a process of supplementing a virtual change pixel candidate to the pixel (termination point) next to the terminal pixel of one line, and this process is performed by CCITT (International Telegraph and Telephone Consultation Committee) MHlMR, M21? This is specified in the encoding rules. The termination processing circuit 43 receives the mask data 207 (ENDPTOO-) from the decoder 30.
07) to supplement virtual change pixel candidates. Figure 7 (A
), the termination processing circuit 43 inputs each bit of the data 402 indicating the changed pixel candidate and the mask data 20 frames (P, N
It is composed of an AND gate circuit that performs a logical product with DPTOO-07). Figure 7 (B) shows an example of human output data.
- Shown in (D). In FIG. 7(B), the termination point is at bit number 03, and bit number 0 of data 402
3 is not detected as a changed pixel candidate, the termination processing circuit 43 generates data 403 in which bit number 03 is supplemented with a virtual changed pixel candidate.

つまり、変化画素候補としてすでに検出されていたビッ
ト番号05−07にビット番号08が変化画素候補とし
て加えられたのである。一方、第7図(C)に示すよう
に終端ポイントがビット番号03にあり、データ402
のビット番号03がすでに変化画素候補として検出され
ている場合、終端処理回路43はデータ402をそのま
ま出力する形になる。また、終端ポイントが存在しない
場合、第7図(D)に示すように。マスクデータ207
は全ビット(00−07)”■”となるので、終端処理
回路43は仮想の変化画素候補を補わずデータ402を
そのまま出力する形になる。このように、終端処理回路
43は1ラインの最終の8ビットの処理のときにのみ仮
想の変化画素候補を補う。
In other words, bit number 08 is added as a changed pixel candidate to bit numbers 05-07 that have already been detected as changed pixel candidates. On the other hand, as shown in FIG. 7(C), the termination point is at bit number 03, and data 402
If bit number 03 has already been detected as a changed pixel candidate, the termination processing circuit 43 outputs the data 402 as is. Further, if there is no termination point, as shown in FIG. 7(D). Mask data 207
Since all bits (00-07) are "■", the termination processing circuit 43 outputs the data 402 as is without compensating for the virtual change pixel candidate. In this way, the termination processing circuit 43 supplements virtual change pixel candidates only when processing the final 8 bits of one line.

変化画素候補検出回路42及び終端処理回路43を解し
て得られたデータ408は変化画素検出回路44に送ら
れる。第10図(A)に示すように変化画素検出回路4
4はデータ403に示された変化画素候補の中からaO
点に最も近い変化画素候補(81点)を検出し、この8
1点のビット番号を3ビットのデータ210(AIDT
OO−02)として出力するプライオリティエンコーダ
である。各ビット番号00−07に対応するデータ21
0(A107口0−02)は第8図(C)に示しな。第
1O図(B)に示すようにデータ403において、aO
点に最も近い変化画素候補はビット番号03であり、こ
のビット番号03に対応する”Oll ”をデータ21
0(AIDTOO−02)として出力する。
Data 408 obtained through the changed pixel candidate detection circuit 42 and the termination processing circuit 43 is sent to the changed pixel detection circuit 44. As shown in FIG. 10(A), the changed pixel detection circuit 4
4 is aO from among the changed pixel candidates shown in the data 403.
Detect the change pixel candidates (81 points) closest to the point, and
The bit number of one point is converted into 3-bit data 210 (AIDT
This is a priority encoder that outputs as OO-02). Data 21 corresponding to each bit number 00-07
0 (A107 port 0-02) is shown in FIG. 8(C). As shown in FIG. 1O (B), in the data 403, aO
The change pixel candidate closest to the point is bit number 03, and "Oll" corresponding to this bit number 03 is set as data 21.
Output as 0 (AIDTOO-02).

以上のように81点検出が行なわれ、この検出結果はセ
レクタ35およびセレクタ38に送られ圧縮処理が進め
られる。
As described above, 81 points are detected, and the detection results are sent to the selector 35 and the selector 38 to proceed with the compression process.

以下、第11図に示したb1点検出回路24の構成を示
すブロック図と第12図から第15図に示した各ブロッ
クの詳細の回路図とを参照しながらb1点検出回路24
について詳述する。第11図において、51は参照ライ
ンレジスタ26から送られる18ビット並列データ20
2(RREP−4−11>を制御部1からの制御信号5
04(FBLKC)によって反転する反転回路である。
Hereinafter, the b1 point detection circuit 24 will be described with reference to the block diagram showing the configuration of the b1 point detection circuit 24 shown in FIG. 11 and the detailed circuit diagrams of each block shown in FIGS. 12 to 15.
I will explain in detail. In FIG. 11, 51 is 18-bit parallel data 20 sent from the reference line register 26.
2 (RREP-4-11> to control signal 5 from control unit 1
This is an inverting circuit that inverts by 04 (FBLKC).

制御部1はaO点からb1点への画素の色変化の方向(
白−黒、黒−白)を統一するための制御信号504(F
BLKC)を反転回路51に送る。本実施例ではaq点
を白く”0”)、b1点を黒く”l”)とし色変化の方
向を白→黒に統一した。制御信号504(PBLKC)
ao点が黒の場合”1”、白の場合”0”となる。反転
回路51は第12図(A)に示すようにイメージパター
ン202 (RREP−4−11)の各ビットと制御信
号504(PBLKC)との排他的論理和をとルBXC
LLISIVIE ORゲート回路から構成されている
。人出力データの例を第12図(B) (C)に示す。
The control unit 1 controls the direction of pixel color change from point aO to point b1 (
Control signal 504 (F
BLKC) is sent to the inversion circuit 51. In this embodiment, the aq point is white ("0") and the b1 point is black ("l"), and the direction of color change is unified from white to black. Control signal 504 (PBLKC)
When the ao point is black, it is "1" and when it is white, it is "0". As shown in FIG. 12(A), the inverting circuit 51 performs the exclusive OR of each bit of the image pattern 202 (RREP-4-11) and the control signal 504 (PBLKC).
It consists of an LLISIVIE OR gate circuit. Examples of human output data are shown in FIGS. 12(B) and 12(C).

第12図(B)において、ao点が黒く”l”)の場合
、画素の色変化の方向は黒−白となるので制御部1は制
御信号504 (PBLKC)を”■”とする。したが
って、イメージパターン202は反転四路51により反
転されデータ501として出力される。一方、第12図
(C)に示すように、aO点が白く”0”)の場合、画
素の色変化の方向は白−黒となるので、制御部1は制御
信号504 (PBLKC)を” o ”とする。した
がってイメージパターン202は反転されずにデータ5
01として出力される。
In FIG. 12(B), when the ao point is black ("l"), the direction of color change of the pixel is black-white, so the control unit 1 sets the control signal 504 (PBLKC) to "■". Therefore, the image pattern 202 is inverted by the inversion four-way 51 and output as data 501. On the other hand, as shown in FIG. 12(C), when the aO point is white ("0"), the direction of color change of the pixel is from white to black, so the control unit 1 sends the control signal 504 (PBLKC) " o”. Therefore, the image pattern 202 is not inverted and the data 5
Output as 01.

反転回路51により画素の色変化の方向を統一したデー
タ501は変化画素候補検出回路52に送られる。変化
画素候補検出回路52はマスクパターン生成回路29か
らのマスクデータ205 (AOLS−3−07)を入
力し、これに基づき、aO点より処理方向側にある変化
画素(b1点)の候補を検出する。第13図(A)に示
すようにデータ501(−4−11)のうち−3−11
の各ビットとデータ501 (−4−11)のうち−4
−10の各ビットを反転して1ビットずつ上位ビット番
号にシフトしたシフトデータ(−3−11)とマスクデ
ータ205 (AOLS−3−07)との論理積をとっ
た後反転するNANDゲート回路から構成されている。
Data 501 in which the direction of color change of the pixels is unified by the inversion circuit 51 is sent to the changed pixel candidate detection circuit 52. The changed pixel candidate detection circuit 52 inputs the mask data 205 (AOLS-3-07) from the mask pattern generation circuit 29, and based on this, detects candidates for changed pixels (point b1) located on the processing direction side from point aO. do. As shown in FIG. 13(A), -3-11 out of data 501 (-4-11)
-4 out of each bit and data 501 (-4-11)
NAND gate circuit that inverts the shift data (-3-11) obtained by inverting each bit of -10 and shifting it one bit at a time to the upper bit number and the mask data 205 (AOLS-3-07) and then inverting it. It consists of

入出力データ例を第13図(B)に示す。反転回路51
からのデータ501は図示したようにビット番号05.
06.09、lOが白(”0”)で、残りは黒(°1”
)である。又、81点はビット番号03であるので、マ
スクデータ205(AOLS−3−07)はビット番号
03より処理方向側のビットが”1”であり、他は“0
“である。更に、データ501(−4−1o)の各ビッ
トを反転し、1ビットずつ上位ビット番号にシフトシた
データは図示したようにビット番号06.07.10.
11が黒(“°1”)で、残りは白く”0”)である。
An example of input/output data is shown in FIG. 13(B). Inversion circuit 51
Data 501 from bit number 05. as shown in the figure.
06.09, lO is white (“0”) and the rest are black (°1”
). Also, since the 81st point is bit number 03, in mask data 205 (AOLS-3-07), the bits on the processing direction side from bit number 03 are "1", and the other bits are "0".
Furthermore, each bit of data 501 (-4-1o) is inverted and shifted one bit at a time to the upper bit number, resulting in data with bit numbers 06.07.10.
11 is black (“°1”) and the rest are white (“0”).

この3つのデータの論理積を取った後反転すると図示し
たデータ502のようにビット番号07.11が変化画
素候補として検出される。このように変化画素候補検出
回路52はデータ501において、aO点より処理方向
側にあり、白(”0”)から黒(”1”)に変わる変化
点を検出し、これを変化画素候補とする。
When these three data are ANDed and then inverted, bit number 07.11 is detected as a changed pixel candidate, as shown in data 502. In this way, the changed pixel candidate detection circuit 52 detects a changing point in the data 501 that is located on the processing direction side from point aO and changes from white ("0") to black ("1"), and identifies this as a changed pixel candidate. do.

変化画素候補を示すデータ502は終端処理回路53に
送られる。ここでデータ502(−3−11)のうち0
〇−07に終端ポイントが含まれている場合、終端処理
が施される。終端処理回路53はデコーダ30からのマ
スクデータ207 (ENDPTOO−07)に基づき
仮想の変化画素を補う。第14図(A)に示すように終
端処理回路53は変化画素候補を示すデータ502(−
3−11)のうち00−07の各ビットとマスクデータ
207(ENDPTOO−07)との論理積をとるAN
Dゲートから構成されている。入出力データの例を第1
4図(B)に示す。
Data 502 indicating changed pixel candidates is sent to the termination processing circuit 53. Here, 0 out of data 502 (-3-11)
If a termination point is included in 〇-07, termination processing is performed. The termination processing circuit 53 compensates for virtual changed pixels based on the mask data 207 (ENDPTOO-07) from the decoder 30. As shown in FIG. 14(A), the termination processing circuit 53 outputs data 502 (-
AN that takes the AND of each bit 00-07 of 3-11) and mask data 207 (ENDPTOO-07)
It consists of D gates. The first example of input/output data is
This is shown in Figure 4 (B).

終端ポイントがビット番号03にあり、データ502の
ビット番号03が変化画素候補として検出されていない
場合、終端処理回路53は仮想の変化画素候補をビット
番号03に補ったデータ503を生成する。
If the termination point is at bit number 03 and bit number 03 of data 502 is not detected as a changed pixel candidate, the termination processing circuit 53 generates data 503 in which bit number 03 is supplemented with a virtual changed pixel candidate.

なお、処理中のデータ502(−3−11)のうちの0
0−07に終端ポイントが含まれていない場合、デコー
ダ30は全ビットが”1”のデータ205 (ENDP
TOO−07)を生成するので、終端処理回路53は仮
想の変化画素候補を補わず、データ502がそのままデ
ータ503として出力される。
Note that 0 of the data 502 (-3-11) being processed
If the end point is not included in 0-07, the decoder 30 outputs data 205 (ENDP
TOO-07), the termination processing circuit 53 does not compensate for virtual changed pixel candidates, and the data 502 is output as is as data 503.

変化画素候補検出回路52及び終端処理回路43を介し
て得られたデータ503は変化画素検出回路54に送ら
れる。第15図(A)に示すように変化画素検出回路5
4はデータ503に示された変化画素候補の中からa 
点に最も近い変化画素候補(b1点)を検出し、このb
1点のビット番号を4ビットのデータ211(BID[
ETOO−03)として出力するプライオリティエンコ
ーダである。各ビット番号−3−11に対応するデータ
211(13LDETOO−03)は第8図(D)に示
した。第15図(B)に示すように、データ503にお
いて、aO点に最も近い変化画素候補はビット番号07
であり、このビット番号07に対応する°10−1”を
データ211 (BIDETOO−03)として出力す
る。
Data 503 obtained via the changed pixel candidate detection circuit 52 and the termination processing circuit 43 is sent to the changed pixel detection circuit 54. As shown in FIG. 15(A), the changed pixel detection circuit 5
4 is a from among the changed pixel candidates shown in the data 503.
Detect the changed pixel candidate (point b1) closest to the point, and
The bit number of one point is converted into 4-bit data 211 (BID[
This is a priority encoder that outputs as ETOO-03). Data 211 (13LDETOO-03) corresponding to each bit number -3-11 is shown in FIG. 8(D). As shown in FIG. 15(B), in the data 503, the change pixel candidate closest to point aO is bit number 07.
10-1" corresponding to this bit number 07 is output as data 211 (BIDETOO-03).

以上のようにしてb1点検出が行なわれ、この検出結果
は引算器32及びセレクタ37に送られ圧縮処理が進め
られる。
Point b1 is detected as described above, and the detection result is sent to the subtracter 32 and selector 37 to proceed with the compression process.

以下、第16図に示したフローチャートを参照して、a
 点検出及びb1点検出の動作を説明する。
Hereinafter, with reference to the flowchart shown in FIG.
The operations of point detection and b1 point detection will be explained.

ここで、点線で囲まれている各ブロックは、a1点検出
回路23及びb1点検出回路24がマイクロプログラム
に基づく制御部1からの指示に従い、マイクロプログラ
ム1ステツプで動作する範囲を示す。実線で囲まれてい
る各ブロックは、ひとまとまりの処理を表す。点線のブ
ロック相互間はマイクロプログラムにより、処理のタイ
ミングの順序関係がつけられている。一方、点線のブロ
ック内に、直列につながった実線のブロック[■瓦間の
処理の順序関係はハードウェアで実現されている。
Here, each block surrounded by a dotted line indicates a range in which the a1 point detection circuit 23 and the b1 point detection circuit 24 operate in one step of the microprogram according to instructions from the control section 1 based on the microprogram. Each block surrounded by a solid line represents a group of processing. Processing timing order relationships are established between blocks indicated by dotted lines by a microprogram. On the other hand, within the dotted line blocks are the solid line blocks connected in series [■ The order of processing between tiles is realized by hardware.

まず、a1点検出回路23に8ビットのイメージパター
ン、b1点検出回路24に16ビットのイメージパター
ンが取り込まれる(GOI)。そしてそれぞれの回路に
より81点、b1点検出が行なわれる(Ei02)。こ
の例では最初の開始変化画素(a O点)が白(“O”
)であると仮定しているので、FBLKC及びPBLK
Pを°°0゛°としイメージパターンを反転しない。a
 点、b1点検出の結果、共に検出されなかった場合(
803) 、a  点の位置を1nax(ao−8゜〇 −4)に再設定するとともに、レジスタ2B(RREF
)、レジスタ25(RDTI)のイメージパターンを8
ビットずつシフトしく604) 、601に戻る。一方
、81点、b1点の少なくともいずれか1点が検出され
た場合(803) 、検出された点の位置および81点
−す、点の位置関係が検出される(BO2)。805の
結果に基づきこれ以後の処理が以下のように異なる。
First, an 8-bit image pattern is taken into the a1 point detection circuit 23, and a 16-bit image pattern is taken into the b1 point detection circuit 24 (GOI). Then, each circuit detects 81 points and b1 point (Ei02). In this example, the first starting change pixel (point a O) is white (“O”).
), so FBLKC and PBLK
Set P to °°0゛° and do not invert the image pattern. a
As a result of point and b1 point detection, if both are not detected (
803), reset the position of point a to 1nax (ao-8゜〇-4), and set register 2B (RREF
), set the image pattern of register 25 (RDTI) to 8
Shift bit by bit (604) and return to 601. On the other hand, if at least one of point 81 and point b1 is detected (803), the position of the detected point and the positional relationship between point 81 and point b1 are detected (BO2). Based on the result of step 805, the subsequent processing differs as follows.

(1)a 点、b1点力供に検出され且つ一3≦a l
b 1≦3の場合: 垂直モードとして処理される。この結果、生成部5に垂
直モードコード生成を指示する(eoe)。
(1) Point a and point b1 are detected together, and -3≦a l
b When 1≦3: Processed as vertical mode. As a result, the generation unit 5 is instructed to generate a vertical mode code (eoe).

次に、a 点の位置を検出された81点の位置に再設定
するとともに、FBLKC及びFBupの信号を反転す
る(°°1”の場合”0”とし、°0”の場合”1”と
する) (807)。ここで、ao点がラインの終端の
右(仮想の変化画素の位置)に位置する場合(608)
、ライン終端処理(EOL処理)を行う。一方、ao点
が仮想の変化画素の位置にない場合、801に戻り次の
a 点、b1点を検出する。
Next, the position of point a is reset to the position of the detected 81 points, and the FBLKC and FBup signals are inverted (set to "0" for °°1" and "1" for °0"). ) (807). Here, if the ao point is located to the right of the end of the line (the position of the virtual change pixel) (608)
, performs line end processing (EOL processing). On the other hand, if the ao point is not at the position of the virtual changed pixel, the process returns to 801 and the next a point and b1 point are detected.

(2)b1点未検出でa 点検出または、81点、b 
点が共に検出され且つal−bl≦−4の場合; 水平モードとして処理される。この結果、生成部5に水
平モードコード生成を指示する(618)。
(2) b1 point not detected, a point detected, or 81 points, b
If points are detected together and al-bl≦-4; treated as horizontal mode. As a result, the generation unit 5 is instructed to generate a horizontal mode code (618).

次に、a 点の位置を検出された81点の位置に再設定
するとともに、PBLKC及びFBLKPの信号を反転
する(”1”の場合”0”とし、” o ”の場合”1
°゛とする>  (619)。ここで、aO点がライン
の終端の右(仮想の変化画素の位置)に位置する場合(
620)、ライン終端処理(EOL処理)を行う。一方
、ao点が仮想の変化画素の位置にない場合、a1点検
出回路23には8ピツシトのイメージパターンが、b1
点検出回路24には“16ビツシトのイメージパターン
がそれぞれとりこまれる(821)。モして82点検出
が行なわれる(822)。ここ(ハードウェア)ではb
2点検出も行なわれているが、32点のみ必要としてい
るのでb2点の検出結果は無視される。したがって82
点が検出されるまで(623) 、a  点の位置をm
ax(ao−8,−4)に再設定するとともに、レジス
タ2B(RREP)、レジスタ25(RDTI)のイメ
ージパターンを8ビットずつシフトする(024)。そ
して、a1点検出回路23およびb1点検出回路24に
それぞれ次のイメージパターンを取り込み((i21)
 、622に進み82点検出を続ける。82点を検出す
ると(823) 、生成部5に垂直モードコード生成の
指示をする((i25)。これで水平モードの処理が終
り、aO点の位置を検出された32点の位置に再設定す
るとともに、PBLKC及びFBLKPの信号を反転す
る(”1”の場合”0”とし、”0°°の場合°゛1”
とする) (62B)。そして801に戻り次の81点
、b1点を検出する。
Next, the position of point a is reset to the position of the detected 81 points, and the PBLKC and FBLKP signals are inverted (if "1" is set to "0", if "o" is set to "1")
゛゛〉 (619). Here, if point aO is located to the right of the end of the line (the position of the virtual change pixel) (
620), line end processing (EOL processing) is performed. On the other hand, if the ao point is not at the position of the virtual change pixel, the a1 point detection circuit 23 has an 8-pixel image pattern b1
Each 16-bit image pattern is taken into the point detection circuit 24 (821). 82-bit image patterns are then detected (822). Here (hardware), b
Two-point detection is also performed, but since only 32 points are required, the detection result of point b2 is ignored. Therefore 82
Until a point is detected (623), change the position of point a to m
At the same time, the image patterns of register 2B (RREP) and register 25 (RDTI) are shifted by 8 bits (024). Then, the next image pattern is loaded into the a1 point detection circuit 23 and the b1 point detection circuit 24, respectively ((i21)
, 622 to continue detecting 82 points. When the 82 points are detected (823), the generator 5 is instructed to generate a vertical mode code ((i25). This completes the horizontal mode processing, and the position of the aO point is reset to the position of the detected 32 points. At the same time, the PBLKC and FBLKP signals are inverted (if they are "1", they are set to "0", and if they are "0°," they are set to "1").
) (62B). Then, the process returns to 801 and detects the next 81 points, b1 point.

(3)a 点未検出でb1点検出(b1検出保留■ 信号−”0″)または、a 点、b1点が共に検出■ され且つa 1b t≧4の場合: パスモードテストに入る。ここでb11検出保留■とは
、b1検出保留ゲート(図示せず)により生成される信
号である。このb1検出保留ゲートにより行なわれる処
理はb1検出と平行して行なわれる。b 検出保留ゲー
トはb1点検出回路■ 24に送られるイメージパターン(RREP−4−11
)16ビットのうちRREP−3−07(特にRREP
O5−07)に着目し、RREP−3−04にb1点が
存在するか否か、更にRREP05−07にb 点のみ
存在する( b 2点は存在しない)か否かを判定する
。その判定の結果によって、以後の処理が以下のように
異なる。
(3) When point a is not detected and point b1 is detected (b1 detection pending ■ signal - "0"), or when point a and point b1 are both detected and a1bt≧4: Enter pass mode test. Here, b11 detection hold ■ is a signal generated by a b1 detection hold gate (not shown). The processing performed by this b1 detection hold gate is performed in parallel with b1 detection. b The detection hold gate is the image pattern (RREP-4-11
) 16 bits, RREP-3-07 (especially RREP
05-07), it is determined whether or not point b1 exists in RREP-3-04, and whether only point b exists in RREP05-07 (point b2 does not exist). Depending on the result of the determination, the subsequent processing differs as follows.

b 検出保留ゲートは81点未検出でRREF−3−O
4にb1点が存在しない場合、またはRREPO5−0
7にb 点は存在するが、RREFO6−07にb2点
は存 ・在しない場合、b11検出保留■を有効(”■
”)とする。このb11検出保留■は制御部1に伝えら
れる。そして、81点及びb1点は未検出とされ、80
4に戻り処理を続ける。このため、RREI’Q5−0
7にb 点とb2点とが存在する場合、垂直モードとし
て処理できる可能性がでてくる。また、81点未検出で
RItEPO5−07にb1点とb2点とが存在しない
場合、b11検出保留■を有効(°0”)とする。この
b11検出保留■は制御部1に伝えられる。そして、6
09に進みバスモードテストとして処理される。
b The detection pending gate is RREF-3-O with 81 points not detected.
If b1 point does not exist in 4, or RREPO5-0
Point b exists in 7, but point b2 exists in RREFO6-07. If not, enable b11 detection hold■ ("■
”). This b11 detection pending ■ is transmitted to the control unit 1.The 81st point and the b1 point are determined to be undetected, and the 80
Return to step 4 and continue processing. Therefore, RREI'Q5-0
If point b and point b2 exist in 7, there is a possibility that it can be processed as a vertical mode. If 81 points are not detected and b1 and b2 points do not exist in RItEPO5-07, b11 detection suspension ■ is enabled (°0''). This b11 detection suspension ■ is transmitted to the control unit 1. ,6
The process advances to 09 and is processed as a bus mode test.

パスモードテストに入ると、aO点の位置を検出された
b1点の位置に再設定するとともに、FBl、、KCの
信号を反転する(°°1”−”0゛、”0” −”1”
 )(609)。次に、a1点検出回路23には8ピツ
シトのイメージパターンが、b1点検出回路24には1
6ビツシトのイメージパターンがそれぞれとりこまれる
(GIO)。そして、a 点、b2点検出が行なわれる
(611)。a 点、b2点点検出結果、共に検出され
なかった場合(612) 、aO点の位置をmax(a
o  8、−4)に再設定するとともに、レジスタ26
(RREIコ)、レジスタ25(RDTI)のイメージ
パターンを8ビットずつシフトする(613)。そして
610に戻り、a 点検出回路23およびb1点検出回
■ 路24にそれぞれ次のイメージパターンを取り込む(6
10)。そして、a 点、b2点検出を行なう(611
)。一方、a 点、b2点の少なくともいずれか1点が
検出された場合(Ei12) 、検出された点の位置お
よび81点−b2点の位置関係が検出される(614)
。814の結果に基づき次のように処理が進められる。
When entering the pass mode test, the position of point aO is reset to the position of detected point b1, and the signals of FBl, KC are inverted (°°1"-"0", "0"-"1 ”
) (609). Next, the a1 point detection circuit 23 receives an 8-picture image pattern, and the b1 point detection circuit 24 receives a 1-pitch image pattern.
Each 6-bit image pattern is captured (GIO). Then, two points a and b are detected (611). If both points a and b are not detected (612), the position of point aO is set to max(a
o 8, -4) and register 26
(RREI) and shifts the image pattern of register 25 (RDTI) by 8 bits (613). Then, the process returns to 610, and the next image pattern is loaded into the a point detection circuit 23 and the b1 point detection circuit 24, respectively (610).
10). Then, point a and two points b are detected (611
). On the other hand, if at least one of point a and point b2 is detected (Ei12), the position of the detected point and the positional relationship between point 81 and point b2 are detected (614)
. Based on the result of step 814, the process proceeds as follows.

(i) a  点未検出でb 点検出または、81点、
b 点が共に検出され且つa 1 > b 2の場合:
バスモードとして処理される。この結果、生成部5にバ
スモードコード生成を指示する(615)。
(i) Point a not detected and point b detected, or 81 points,
If points b are detected together and a 1 > b 2:
Treated as bus mode. As a result, the generation unit 5 is instructed to generate a bus mode code (615).

そして、a 点の位置を検出されたb2点の位置に再設
定するとともに、FBI、KCの信号を反転する(”l
” −”Oo” 、”O” →”1” ) (61B)
 、ここで、a。点がラインの終端の右(仮想の変化画
素の位置)に位置する場合(817) 、ライン終端処
理(EOL処理)を行う。一方、aO点が仮想の変化画
素の位置にない場合、601に戻る。
Then, the position of point a is reset to the position of detected point b2, and the FBI and KC signals are inverted ("l
”-”Oo”, “O” →”1”) (61B)
, where a. If the point is located to the right of the end of the line (the position of the virtual changed pixel) (817), line end processing (EOL processing) is performed. On the other hand, if the aO point is not at the position of the virtual changed pixel, the process returns to 601.

(If) b  点未検出でa 点検出または、81点
、b 点が共に検出され且つa1≦b2の場合;水平モ
ードとして処理される。この結果、生成部5に水平モー
ドコード生成を指示しく827) 、 819に進む。
(If) If point b is not detected and point a is detected, or if both 81 points and point b are detected and a1≦b2, it is processed as horizontal mode. As a result, the generation unit 5 is instructed to generate a horizontal mode code (827), and the process proceeds to 819.

(4)a 点未検出でb 点検出(b、検出保留信号−
”■”)の場合; 前述したように垂直モードとして処理できる可能性があ
る為、a 点、b1点共に未検出として■ 604に戻る。
(4) Point a is not detected and point b is detected (b, detection pending signal -
In the case of "■"): As mentioned above, there is a possibility that it can be processed in the vertical mode, so both points a and b1 are not detected and the process returns to ■604.

以上のように、a 点検出とb1点検出が平行して行な
われ、その結果に基づき圧縮処理が進められる。
As described above, point a detection and point b1 detection are performed in parallel, and the compression process is proceeded based on the results.

上述してきたように、本実施例ではイメージパターンを
バイト単位にパラレル処理することにより、画素tlt
位のシリアル処理と比較して大幅に高速化力呵能となっ
た。また、31点検出の対象範囲(8ピッl−)に対し
、b1点検出の対象範囲を前後3ビット以上拡げたこと
により、垂直モードコード処理が容易になった。また、
81点及びb1点検出回路にそれぞれ反転回路を設けた
ことにより、画素の色変化の方向にかかわらず同一回路
の使用が可能となり、回路が簡素化された。また、b 
検出保留ゲートを設けることによりa1未検出でb 検
出した場合、b1点の位置を予め知ることができ、圧縮
効率を高めることができた。さらに、通常の変化点検出
回路の中に、終端処理回路を設けることによりラインの
終端点の右に、仮想の変化画素候補を補うことができ符
号化が容易になった。
As described above, in this embodiment, the image pattern is processed in parallel byte by byte, so that the pixel tlt
Compared to the previous serial processing, the speed has been significantly increased. In addition, the vertical mode code processing has become easier by expanding the target range for b1 point detection by more than 3 bits forward and backward compared to the target range for 31 point detection (8 pins). Also,
By providing an inverting circuit in each of the 81 point and b1 point detection circuits, the same circuit can be used regardless of the direction of color change of the pixel, simplifying the circuit. Also, b
By providing a detection hold gate, when a1 is not detected and b is detected, the position of point b1 can be known in advance, and the compression efficiency can be improved. Furthermore, by providing an end processing circuit in the normal change point detection circuit, a virtual change pixel candidate can be supplemented to the right of the end point of the line, making encoding easier.

[発明の効果] 以」二連べてきたように本発明においては、イメージパ
ターンを並列処理することにより、圧縮処理を高速化す
るとともに回路構成の簡素化を実現する。
[Effects of the Invention] As described above, in the present invention, image patterns are processed in parallel, thereby speeding up compression processing and simplifying the circuit configuration.

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

第1図は本発明の一実施例である2値データ圧縮処理装
置の全体構成を示す図、第2図は第1図に示した検出部
2の構成を詳細に示す図、第3図(A) (B)はそれ
ぞれ第2図に示したレジスタ26、レジスタ25の構成
を詳細に示す図、第4図は第2図に示したa1点検出回
路23の構成を詳細に示す図、第5図は第4図に示した
反転回路41の一例を示す回路図と入出力データ例を示
す図、第6図は第4図に示した変化画素候補検出回路4
2の一例を示す回路図と人出力データ例を示す図、第7
図は第4図に示した終端処理回路43の一例を示す回路
図と入出力データ例を示す図、第8図(A) (B)は
第2図に示したレジスタ27およびデコーダ28並びに
マスクパターン生成回路29の回路の接続を示す図と入
出力データの例を示す図、第8図(C)(D)はビット
位置を示すデータに対応するビット番号の一例を示す図
、第9図は第2図に示したデコーダ30の回路の接続を
示す図と入出力データ例を示す図、第10図は第4図に
示した変化画素検出回路44の回路の接続を示す図と入
出力データ例を示す図、第11図は第2図に示したb1
点検出回路24の構成を詳細に示す図、第12図は第1
1図に示した反転回路51の一例を示す回路図と入出力
データ例を示す図、第13図は第11図に示した変化画
素候補検出回路52の一例を示す回路図と人出力データ
例を示す図、第14図は第11図に示した終端処理回路
53の一例を示す回路図と人出力データ例を示す図、第
15は第11図に示した変化画素検出回路54の回路の
接続を示す図と入出力データ例を示す図、第16図は本
実施例の圧縮処理の動作の一例を示すフローチャートで
ある。 1・・・制御部 21・・・ストップレジスタ 22・・・スタートレジスタ 25・・・符号化ラインレジスタ 2B・・・参照ラインレジスタ 27・・・レジスタ 28・・・デコーダ 41・・・反転回路(a 1点) 42・・・変化画素候補検出回路(a 1点)43・・
・終端処理回路(a 1点) 44・・・変化画素検出回路(a r点)51・・・反
転回路(b1点)
FIG. 1 is a diagram showing the overall configuration of a binary data compression processing device that is an embodiment of the present invention, FIG. 2 is a diagram showing the detailed configuration of the detection unit 2 shown in FIG. 1, and FIG. A) and (B) are diagrams showing in detail the configurations of the register 26 and register 25 shown in FIG. 2, respectively. FIG. 4 is a diagram showing the detailed configuration of the a1 point detection circuit 23 shown in FIG. 5 is a circuit diagram showing an example of the inversion circuit 41 shown in FIG. 4 and an example of input/output data, and FIG. 6 is a diagram showing an example of input/output data of the inversion circuit 41 shown in FIG.
A circuit diagram showing an example of 2 and a diagram showing an example of human output data, 7th
The figure shows a circuit diagram showing an example of the termination processing circuit 43 shown in FIG. 4, and a diagram showing an example of input/output data. FIGS. A diagram showing circuit connections of the pattern generation circuit 29 and an example of input/output data; FIGS. 8(C) and (D) are diagrams showing an example of bit numbers corresponding to data indicating bit positions; FIG. 10 is a diagram showing the circuit connection of the decoder 30 shown in FIG. 2 and an example of input/output data, and FIG. 10 is a diagram showing the circuit connection of the changed pixel detection circuit 44 shown in FIG. 4, and the input/output data example. A diagram showing an example of data, Figure 11 is b1 shown in Figure 2.
FIG. 12 is a diagram showing the configuration of the point detection circuit 24 in detail.
FIG. 13 is a circuit diagram showing an example of the inversion circuit 51 shown in FIG. 1 and an example of input/output data, and FIG. 13 is a circuit diagram showing an example of the changed pixel candidate detection circuit 52 shown in FIG. 11 and an example of human output data. 14 is a circuit diagram showing an example of the termination processing circuit 53 shown in FIG. 11 and an example of human output data, and FIG. 15 is a circuit diagram of the changed pixel detection circuit 54 shown in FIG. 11. A diagram showing connections, a diagram showing an example of input/output data, and FIG. 16 are a flowchart showing an example of the operation of the compression process of this embodiment. 1... Control unit 21... Stop register 22... Start register 25... Encoding line register 2B... Reference line register 27... Register 28... Decoder 41... Inverting circuit ( a 1 point) 42... Changed pixel candidate detection circuit (a 1 point) 43...
- Termination processing circuit (a 1 point) 44... Change pixel detection circuit (a r point) 51... Inversion circuit (b 1 point)

Claims (11)

【特許請求の範囲】[Claims] (1)符号化走査線における開始変化画素(a_0点)
の位置情報が設定される第1のレジスタと、符号化走査
線のイメージパターンを複数ビット単位で保持する第2
のレジスタと、前記第2のレジスタを介して得られるイ
メージパターンを反転するか否かを示す信号と、前記信
号に基づき前記第2のレジスタを介して得られるイメー
ジパターンを反転する反転回路と、前記第1のレジスタ
に設定された開始変化画素の位置情報に基づき、前記反
転回路を介して得られるイメージパターンの開始変化画
素より処理方向側における変化画素(a_1点)候補を
検出するa_1点候補検出回路と、走査線における終端
画素より1ビット処理方向側にある画素(終端ポイント
)の位置情報が設定される第3のレジスタと、前記第2
のレジスタを介して得られるイメージパターンに終端ポ
イントが含まれている場合、前記第3のレジスタに設定
された終端ポイントの位置情報に基づき、前記第2のレ
ジスタを介して得られるイメージパターンの終端ポイン
ト位置に仮想の変化画素候補を補う終端処理回路と、前
記a_1点候補検出回路により検出された変化画素候補
及び前記終端処理回路により補われた変化画素候補の中
で開始変化画素に最も近い変化画素候補を検出するa_
1点検出回路とを具備することを特徴とする2値データ
圧縮処理装置。
(1) Start change pixel in encoded scanning line (a_0 point)
A first register in which position information is set, and a second register in which the image pattern of the encoded scanning line is held in units of multiple bits.
a register, a signal indicating whether or not to invert the image pattern obtained via the second register, and an inversion circuit that inverts the image pattern obtained via the second register based on the signal; a_1 point candidate for detecting a change pixel (a_1 point) candidate on the processing direction side from the start change pixel of the image pattern obtained via the inversion circuit based on the position information of the start change pixel set in the first register; a detection circuit, a third register in which position information of a pixel (terminal point) located one bit in the processing direction side from the terminal pixel in the scanning line is set;
If the image pattern obtained through the register includes a termination point, the termination point of the image pattern obtained through the second register is determined based on the position information of the termination point set in the third register. A termination processing circuit that supplements a virtual change pixel candidate at the point position, and a change closest to the start change pixel among the change pixel candidates detected by the a_1 point candidate detection circuit and the change pixel candidates supplemented by the termination processing circuit. Detect pixel candidates a_
A binary data compression processing device comprising a one-point detection circuit.
(2)前記a_1点候補検出回路は、前記第1のレジス
タに設定された開始変化画素の位置情報に基づき、前記
反転回路を介して得られるイメージパターンにおける開
始変化画素より処理方向側のイメージパターンをマスク
するマスクパターンを生成する回路と、このマスクパタ
ーンと前記反転回路を介して得られるイメージパターン
との論理積をとった後反転し、開始変化画素より処理方
向側の変化画素候補を示すイメージパターンを生成する
NAND回路とからなることを特徴とする特許請求の範
囲第1項記載の2値データ圧縮処理装置。
(2) The a_1 point candidate detection circuit detects an image pattern on the processing direction side from the start change pixel in the image pattern obtained via the inversion circuit, based on the position information of the start change pixel set in the first register. A circuit that generates a mask pattern for masking the image pattern, and an image that is logically ANDed between this mask pattern and the image pattern obtained through the inversion circuit, and then inverted, indicating a change pixel candidate on the processing direction side from the start change pixel. 2. The binary data compression processing device according to claim 1, further comprising a NAND circuit that generates a pattern.
(3)前記終端処理回路は、前記第2のレジスタを介し
て得られるイメージパターンに終端ポイントが含まれて
いる場合、前記第3のレジスタに設定された終端ポイン
トの位置情報に基づき、前記第2のレジスタを介して得
られるイメージパターンにおける終端ポイント以外のイ
メージパターンをマスクするマスクパターンを生成し、
また、前記イメージパターンに終端ポイントが含まれて
いない場合、前記第2のレジスタを介して得られるイメ
ージパターンすべてをマスクするマスクパターンを生成
する回路と、このマスクパターンと前記a_1点候補検
出回路を介して得られるイメージパターンとの論理積を
とり、終端ポイント位置に仮想の変化画素候補を補った
イメージパターンを生成する回路とからなることを特徴
とする特許請求の範囲第1項記載の2値データ圧縮処理
装置。
(3) When the image pattern obtained via the second register includes a termination point, the termination processing circuit determines the termination point based on the position information of the termination point set in the third register. generate a mask pattern that masks the image pattern other than the terminal point in the image pattern obtained through the register of 2;
Further, if the image pattern does not include a terminal point, a circuit that generates a mask pattern that masks all the image patterns obtained via the second register, and a circuit that generates a mask pattern and the a_1 point candidate detection circuit. and a circuit for generating an image pattern in which the terminal point position is supplemented with a virtual change pixel candidate by performing a logical product with an image pattern obtained through Data compression processing device.
(4)前記反転回路は、前記第2のレジスタを介して得
られるイメージパターンの各ビットと前記信号との排他
的論理和をとるEXOR回路からなることを特徴とする
特許請求の範囲第1項記載の2値データ圧縮処理装置。
(4) The inverting circuit is comprised of an EXOR circuit that takes an exclusive OR of each bit of the image pattern obtained via the second register and the signal. The binary data compression processing device described above.
(5)前記第2のレジスタは、符号化走査線のイメージ
パターンを1バイト単位で保持することを特徴とする特
許請求の範囲第1項記載の2値データ圧縮処理装置。
(5) The binary data compression processing device according to claim 1, wherein the second register holds the image pattern of the encoded scanning line in 1-byte units.
(6)符号化走査線における開始変化画素(a_0点)
の位置情報が設定される第1のレジスタと、参照捜査線
のイメージパターンを複数ビット単位で保持する第4の
レジスタと、前記第4のレジスタを介して得られるイメ
ージパターンを反転するか否かを示す第2の信号と、前
記第2の信号に基づき前記第4のレジスタを介して得ら
れるイメージパターンを反転する第2の反転回路と、前
記第1のレジスタに設定された開始変化画素の位置情報
に基づき、前記第2の反転回路を介して得られるイメー
ジパターンの開始変化画素の位置より処理方向側におけ
る変化画素(b_1点)候補を検出するb_1点候補検
出回路と、走査線における終端画素より1ビット処理方
向側にある画素(終端ポイント)の位置情報が設定され
る第3のレジスタと、前記第4のレジスタを介して得ら
れるイメージパターンに終端ポイントが含まれている場
合、前記第3のレジスタに設定された終端ポイントの位
置に仮想の変化画素候補を補う第2の終端処理回路と、
前記b_1点候補検出回路により検出された変化画素候
補及び前記第2の終端処理回路により補われた変化画素
の中で開始変化画素に最も近い変化画素候補を検出する
b_1点検出回路とを具備することを特徴とする2値デ
ータ圧縮処理装置。
(6) Start change pixel in encoded scanning line (a_0 point)
a first register in which position information is set; a fourth register that holds an image pattern of a reference search line in units of multiple bits; and whether or not the image pattern obtained through the fourth register is to be inverted. a second inversion circuit that inverts the image pattern obtained via the fourth register based on the second signal; and a start change pixel set in the first register. a b_1 point candidate detection circuit that detects a change pixel (b_1 point) candidate on the processing direction side from the position of the start change pixel of the image pattern obtained via the second inversion circuit based on position information; If the image pattern obtained through the third register and the fourth register includes position information of a pixel (terminal point) located one bit on the processing direction side from the pixel, the terminal point is included in the image pattern. a second termination processing circuit that supplements a virtual change pixel candidate at the position of the termination point set in the third register;
and a b_1 point detection circuit that detects a changed pixel candidate closest to the start changed pixel among the changed pixel candidates detected by the b_1 point candidate detection circuit and the changed pixels supplemented by the second termination processing circuit. A binary data compression processing device characterized by:
(7)前記b_1点候補検出回路は、前記第1のレジス
タに設定された開始変化画素の位置情報に基づき、前記
第2の反転回路を介して得られるイメージパターンにお
ける開始変化画素の位置より処理方向側のイメージパタ
ーンをマスクするマスクパターンを生成する回路と、前
記第2の反転回路を介して得られるイメージパターンを
反転させるとともに処理方向側に1ビットシフトしたシ
フトデータを生成する回路と、前記マスクパターンと前
記シフトデータと前記第2の反転回路を介して得られた
イメージパターンとの論理積をとった後反転し、開始変
化画素の位置より処理方向側の変化画素候補を示すイメ
ージパターンを生成するNAND回路とからなることを
特徴とする特許請求の範囲第6項記載の2値データ圧縮
処理装置。
(7) The b_1 point candidate detection circuit processes the position of the start change pixel in the image pattern obtained via the second inversion circuit, based on the position information of the start change pixel set in the first register. a circuit that generates a mask pattern for masking the image pattern on the processing direction side; a circuit that generates shift data that inverts the image pattern obtained through the second inversion circuit and shifts it by one bit in the processing direction side; The mask pattern, the shift data, and the image pattern obtained through the second inversion circuit are logically ANDed and then inverted to create an image pattern indicating change pixel candidates on the processing direction side from the position of the start change pixel. 7. The binary data compression processing device according to claim 6, comprising a NAND circuit for generating.
(8)前記第2の終端処理回路は、前記第4のレジスタ
を介して得られるイメージパターンに終端ポイントが含
まれている場合、前記第3のレジスタに設定された終端
ポイントの位置に基づき、前記第4のレジスタを介して
得られるイメージパターンにおける終端ポイント以外の
イメージパターンをマスクするマスクパターンを生成し
、また、前記イメージパターンに終端ポイントが含まれ
ていない場合、前記第4のレジスタを介して得られるイ
メージパターンすべてをマスクするマスクパターンを生
成する回路と、このマスクパターンと前記b_1点候補
検出回路を介して得られるイメージパターンとの論理積
をとり、終端ポイント位置に仮想の変化画素候補を補っ
たイメージパターンを生成する回路とからなることを特
徴とする特許請求の範囲第6項記載の2値データ圧縮処
理装置。
(8) When the image pattern obtained via the fourth register includes a termination point, the second termination processing circuit performs the following operations based on the position of the termination point set in the third register: Generate a mask pattern that masks image patterns other than the terminal point in the image pattern obtained via the fourth register, and if the image pattern does not include the terminal point, A circuit that generates a mask pattern that masks all the image patterns obtained through 7. The binary data compression processing apparatus according to claim 6, further comprising a circuit for generating an image pattern with supplemented information.
(9)前記第2の反転回路は、前記第4のレジスタを介
して得られるイメージパターンの各ビットと前記第2の
信号との排他的論理和をとるEXOR回路からなること
を特徴とする特許請求の範囲第6項記載の2値データ圧
縮処理装置。
(9) A patent characterized in that the second inversion circuit is comprised of an EXOR circuit that takes an exclusive OR of each bit of the image pattern obtained via the fourth register and the second signal. A binary data compression processing device according to claim 6.
(10)前記第4のレジスタは、前記第2のレジスタに
設定される符号化走査線のイメージパターンの処理方向
側及び反処理方向側に少なくとも3ビットずつ拡げたビ
ット単位で参照走査線のイメージパターンを保持するこ
とを特徴とする特許請求の範囲第6項記載の2値データ
圧縮処理装置。
(10) The fourth register stores an image of the reference scanning line in bit units expanded by at least 3 bits in the processing direction and in the opposite processing direction of the image pattern of the encoded scanning line set in the second register. 7. The binary data compression processing device according to claim 6, wherein a pattern is retained.
(11)前記第2の信号は、b_1点検出後、参照走査
線にあってb_1点より処理方向側にある次の変化画素
(b_2点)を検出する場合、反転することを特徴とす
る特許請求の範囲第6項記載の2値データ圧縮処理装置
(11) A patent characterized in that, after detecting point b_1, the second signal is inverted when detecting the next changed pixel (point b_2) located on the reference scanning line and located on the processing direction side from point b_1. A binary data compression processing device according to claim 6.
JP27865486A 1986-11-25 1986-11-25 Binary data compression processor Pending JPS63238767A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP27865486A JPS63238767A (en) 1986-11-25 1986-11-25 Binary data compression processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP27865486A JPS63238767A (en) 1986-11-25 1986-11-25 Binary data compression processor

Publications (1)

Publication Number Publication Date
JPS63238767A true JPS63238767A (en) 1988-10-04

Family

ID=17600295

Family Applications (1)

Application Number Title Priority Date Filing Date
JP27865486A Pending JPS63238767A (en) 1986-11-25 1986-11-25 Binary data compression processor

Country Status (1)

Country Link
JP (1) JPS63238767A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS63299681A (en) * 1987-05-29 1988-12-07 Matsushita Graphic Commun Syst Inc Changing point detector in two-dimensional encoder

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS63299681A (en) * 1987-05-29 1988-12-07 Matsushita Graphic Commun Syst Inc Changing point detector in two-dimensional encoder

Similar Documents

Publication Publication Date Title
US4630306A (en) Apparatus and methods for coding and storing raster scan images
KR900001821B1 (en) Processor for compressing and expanding binary data
EP0133442B1 (en) Encoding and decoding system for video signal processing
US5287193A (en) Parallel processing architecture of run-length codes
US4486784A (en) Image compression systems
KR910000742B1 (en) Binary data compression and expansion processing apparatus
US4626921A (en) Method and circuit for demodulating encoded data of facsimile apparatus
KR910001072B1 (en) Binary data companding device
JPH05145770A (en) Encoding/decoding device
JPS63238767A (en) Binary data compression processor
JP2694569B2 (en) Predetermined code bit continuous position detection method
EP0302432A2 (en) Document decompressing system
JP3115117B2 (en) Binary image compression processor
JPH088646B2 (en) Image signal encoding / decoding large-scale integrated circuit
JPS59110274A (en) Compression and expansion system for color image data
JPS61234664A (en) Decoding circuit
JPS61251274A (en) Processor of picture signal
JPS6281881A (en) Encoding device
JPS6282769A (en) Coding device
JPH0828819B2 (en) Image data encoder
JPS63172584A (en) Vector encoding system for picture data
JPH0575877A (en) Encoder/decoder for binary picture
JPH088645B2 (en) Image signal encoding / decoding large-scale integrated circuit
Nakamura et al. Document image compressing and expanding LSI processor
JPH06303146A (en) Encoder and decoder