JPS63220675A - Image processing device - Google Patents

Image processing device

Info

Publication number
JPS63220675A
JPS63220675A JP5444187A JP5444187A JPS63220675A JP S63220675 A JPS63220675 A JP S63220675A JP 5444187 A JP5444187 A JP 5444187A JP 5444187 A JP5444187 A JP 5444187A JP S63220675 A JPS63220675 A JP S63220675A
Authority
JP
Japan
Prior art keywords
signal
code
output
circuit
register
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
JP5444187A
Other languages
Japanese (ja)
Inventor
Nobutoshi Kokubu
國分 信聡
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.)
Canon Inc
Original Assignee
Canon Inc
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 Canon Inc filed Critical Canon Inc
Priority to JP5444187A priority Critical patent/JPS63220675A/en
Publication of JPS63220675A publication Critical patent/JPS63220675A/en
Pending legal-status Critical Current

Links

Abstract

(57)【要約】本公報は電子出願前の出願データであるた
め要約のデータは記録されません。
(57) [Summary] This bulletin contains application data before electronic filing, so abstract data is not recorded.

Description

【発明の詳細な説明】 〔技術分野〕 本発明は画像圧縮符号化装置、特にMH符号化方式を用
いて画像圧縮する画像圧縮装置に関するものである。
DETAILED DESCRIPTION OF THE INVENTION [Technical Field] The present invention relates to an image compression encoding device, and particularly to an image compression device that compresses an image using the MH encoding method.

〔従来技術〕[Prior art]

原稿の画像を光センサ等で走査することにより電気信号
に変換した画像情報をMH(モディファイドハフマン)
符号化法により圧縮する画像圧縮装置が知られている。
MH (Modified Huffman) converts image information into electrical signals by scanning the original image with an optical sensor, etc.
2. Description of the Related Art An image compression device that performs compression using an encoding method is known.

MH符号は、画像情報中の白又は黒の連続した同色の画
素数(ランレングス)に対応した符号であり、このMH
符号化法では画像情報をMH符号の符号列に変換するこ
とにより画像圧縮を行う。
The MH code is a code corresponding to the number of consecutive pixels of the same color (white or black) in image information (run length), and this MH code
In the encoding method, image compression is performed by converting image information into a code string of MH codes.

従来のこの種の装置の動作をハードウェアで実現した場
合のブロック図を第3図に示す。以下、従来の画像圧縮
装置の動作の概略を述べる。第3図の信号Aは符号化す
べき画像情報であり(“H”は黒を表わし“L”は白を
示す)画像情報は上述した光センサ等の走査における画
像読取り速度(以降画素の読み取り周期をtと呼ぶ)で
ビットシリアルにランレングス計数回路10に入力され
るものとする。
FIG. 3 shows a block diagram when the operation of a conventional device of this type is realized by hardware. An outline of the operation of the conventional image compression device will be described below. Signal A in Fig. 3 is the image information to be encoded (“H” represents black and “L” represents white), and the image information is the image reading speed (hereinafter referred to as pixel reading period) in scanning of the optical sensor etc. mentioned above. (referred to as t) is input to the run length counting circuit 10 bit serially.

ランレングス計数回路10は連続した同色の画像情報が
入力されるとこれをカウントする。異なった色の画像情
報が入力されると1つのランレングスが確定される。こ
のときランレングス計数回路10は、信号Bとしてラン
レングスを出力する。
The run length counting circuit 10 counts continuous image information of the same color when it is input. One run length is determined when image information of different colors is input. At this time, the run length counting circuit 10 outputs the run length as a signal B.

信号Bは、MH符号テーブルとMIT符号長を記憶して
いるROM20のアドレス線に入力され、とのランレン
グスに対応するM H符号とMH符号長をアクセスする
。ROM20はデータ出力線に信号CとしてMH符号、
また信号りとしてMT−T符号長を並列信号で出力する
。MH符号のMH符号長は各符号によって異なるので、
M I−1符号列を出力するためには信号りから信号C
のMH符号長で示されるピット数のMH符号を抜き出し
てすき間なく詰める動作をする必要がある。30はマル
チブレクザ回路とラツヂ回路により構成される公知のヒ
ツトシフター回路て、信号Cから信号りのM H符号長
で示されるビット数分のM I(符号を抜き出し、すき
間なく詰めて並列信号Eとして外部に出力する動作を行
う。以上の動作をくり返すことにより画像圧縮を行って
いた。
Signal B is input to the address line of the ROM 20 that stores the MH code table and the MIT code length, and accesses the MH code and MH code length corresponding to the run length of . The ROM20 outputs the MH code as a signal C to the data output line.
The MT-T code length is also output as a parallel signal as a signal. Since the MH code length of the MH code differs depending on each code,
In order to output the M I-1 code string, the signal C is
It is necessary to extract MH codes of the number of pits indicated by the MH code length of , and fill them in without any gaps. 30 is a well-known hit shifter circuit composed of a multiplexer circuit and a radial circuit, which extracts MI (signs) corresponding to the number of bits indicated by the M H code length of the signal from the signal C and fills them without gaps as a parallel signal E. Perform the operation of outputting to the outside. Image compression was performed by repeating the above operations.

この方式を用いた場合、以下に述へるような欠点がある
。すなわちB信号がROM20をアクセスする時間間隔
は最も速い場合、画像読み取り周期tと同じである。し
たがってROM20におけるM I−I符号アクセスの
遅延時間を考慮すると高速化には限界がある。
When this method is used, there are drawbacks as described below. That is, the time interval at which the B signal accesses the ROM 20 is the same as the image reading cycle t in the fastest case. Therefore, there is a limit to speeding up when considering the delay time of MI-I code access in the ROM 20.

〔目 的〕〔the purpose〕

本発明は以」二の点に鑑みてなされたもので、画像情報
を高速に圧縮する画像処理装置を提供することを目的と
する。
The present invention has been made in view of the following two points, and an object of the present invention is to provide an image processing device that compresses image information at high speed.

〔実施例〕〔Example〕

以下、本発明を好ましい実施例に基づいて説明する。 The present invention will be explained below based on preferred embodiments.

前述したようにMH符号は画像情報中の白または黒の連
続した同色の画素数(ランレングス)に対応した符号で
ある。またM I(符月には0から63のランレングス
に対応するターミネート符号と64Xm(mは1から4
0の整数)すなわち64から2560のランレングスを
表わすメークアップ符号が存在し、63以下のランレン
グスに対してはターミネート符号のみ64以上のランレ
ングスに対しては、メークアップ符号のあとにターミネ
ート符号をイ\1加して対応させる。ただし、この方法
では最長のランレングスがメークアップ符号”2560
 ”十ターミネ−1・符号” 63 ”で合計2623
までしか表わせないので、2623を越えるランレング
スについてはメークアップ符号” 2623 ”のあと
にさらにメークアップ符号とターミネート符号を付加す
ることで対応させる。
As described above, the MH code is a code corresponding to the number of consecutive pixels of the same color (white or black) (run length) in image information. In addition, M
In other words, there is a make-up code representing run lengths from 64 to 2560, and for run lengths of 63 or less, there is only a termination code, and for run lengths of 64 or more, there is a termination code after the make-up code. Add \1 to make it correspond. However, in this method, the longest run length is the makeup code "2560".
``10 terminus 1 code''63'' for a total of 2623
Since only up to 2623 can be represented, run lengths exceeding 2623 can be handled by adding a make-up code and a termination code after the make-up code "2623".

したがって、MH画像圧縮装置においては、ランレング
スを計数するために、画像情報中の色の変わる画素情報
(変化点)が入力されるまで同色連続画素数を計数する
。そして、変化点が入力するまでに計数された値がラン
レングスであるので変化点が入力すると対応すべきMH
符号が確定(以降符号が確定すると呼ぶ)する。
Therefore, in the MH image compression apparatus, in order to count the run length, the number of consecutive pixels of the same color is counted until pixel information (change point) in which the color changes in the image information is input. Since the value counted until the change point is input is the run length, when the change point is input, the corresponding MH
The sign is determined (hereinafter referred to as the sign is determined).

ここで、上記の計数を】ビットずつ行うとすると、ラン
レングスに対応するM I(符号のアクセス及びM I
−T符号の発生動作を画像人力クロックの周期tの間に
行わなければ1ビットずつ入力する画像情報を処理しき
れない。そこで1ビツトずつ入力する画像情報をnビッ
ト並列信号に変換して該nヒツト並列信号毎に上述のラ
ンレングスを計数する。
Here, if the above counting is performed bit by bit, M I corresponding to the run length (code access and M I
If the -T code generation operation is not performed during the period t of the image clock, the image information input bit by bit cannot be processed. Therefore, the image information input bit by bit is converted into n-bit parallel signals, and the above-mentioned run length is counted for each n-bit parallel signal.

例えば、該1ビツトずつ入力する画像入力信号をソリア
ルシフト回路によりシフ+−t、、、nヒツトシフトさ
れる度にnビット並列信号として受は取るパラレルシフ
ト回路の出力の並列信号nビットを考えると、該nビッ
ト並列信号は新たな画像信号のnビットと、入れ替わる
までにnX(画像入力周期t)の時間保持される。した
がって上述のランレングス計数ならびにMH符号のアク
セス動作と、発生動作の時間として1ビツトずつランレ
ングスを計数した場合にくらべ、n倍の時間を使うこと
ができる。
For example, consider an n-bit parallel signal output from a parallel shift circuit that receives an n-bit parallel signal every time an image input signal input one bit at a time is shifted by +-t, . . . Then, the n-bit parallel signal is held for a time of nX (image input period t) before being replaced with the n-bit of the new image signal. Therefore, the time required for the above-mentioned run length counting, MH code access operation, and generation operation can be n times longer than when the run length is counted bit by bit.

そこで該並列信号nヒツトに表われる画像情報を見てい
て、変化点が存在しなければ計数回路にnを加算するこ
とでランレングスを計数し、変化点が見つかった場合に
は計数回路の値と変化点までの画素数を加算した値をラ
ンレングスとしてMH符号テーブルをアクセスし、上記
nXtの時間内に、対応するMH符号を出力することを
基本動作とする。
Therefore, when looking at the image information appearing in the parallel signal n hits, if there is no changing point, the run length is counted by adding n to the counting circuit, and if a changing point is found, the value of the counting circuit is calculated. The basic operation is to access the MH code table using the sum of the number of pixels up to the change point as a run length, and output the corresponding MH code within the time nXt.

ただし、この方法においてはいくつかの後述する問題点
があり解決法が必要である。
However, this method has some problems, which will be described later, and a solution is needed.

第1に該nビット中に複数の変化点が存在した場合、上
記nXjの時間中にこれらの変化点により定まる複数の
MH符号をすべて出力しないとnXt時間毎にパラレル
シフトされる該画像情報を処理しでは上述の計数回路の
値と変化点までの画素数の和のランレングスのM I−
I符号を出力し、後半の号のアクセス信号として、1回
のM I(符号アクセスであらかじめ複数のMH符号が
並んだ形態でM I−I符号テーブル内に記憶しである
複数のMH符号を同時に読み出す動作を行い上記第1の
問題点を解決する。
First, if there are multiple changing points in the n bits, if all the multiple MH codes determined by these changing points are not output during the nXj time, the image information that is parallel-shifted every nXt time will be In processing, the run length of the sum of the value of the above-mentioned counting circuit and the number of pixels up to the point of change is M I-
The I code is output, and as the access signal for the latter half of the code, one M Simultaneous read operations are performed to solve the first problem.

第2に、上述したMH符号出力においてメークアップ符
号も同時に出力すると、MH符号の出力として1回に出
力すべきMH符号長が長くなりすぎることが考えられる
Second, if a make-up code is also output at the same time as the above-mentioned MH code output, the MH code length that should be output at one time as an MH code output may become too long.

そこ゛て、メークアップ符号については、変化点が該並
列信号nビット内に現われる前に先行出力する。すなわ
ち該並列信号nビットと次に来るべき並列信号のnピッ
)・を同時に見て(並列信号のルック・アヘッド動作と
呼ぶ)、該並列信号nビット内に変化点が存在しなくて
も変化点が該ルックアヘッドしたnビット中に存在する
のを検知するのと同時に、計数回路の値と該ルックアヘ
ッドしたnビット中の変化点までの値を加算したランレ
ングスのメークアップ符号を出力することにより上記第
2の問題点を解決する。ただし、並列信号nヒツトをル
ックアヘッドするためには」二連のパラレルシフト回路
を2段設け、1段目のパラレルシフト回路の出力nビッ
トで上記のルックアヘッド動作を行い、2段目のパラレ
ルシフト回路の出力nビットで」二連の基本動作ならび
に複数ターミネート符号の処理を行うことが必要となる
Therefore, the makeup code is output in advance before the change point appears in the n bits of the parallel signal. In other words, by looking at the n bits of the parallel signal and the n bits of the next parallel signal at the same time (this is called parallel signal look-ahead operation), changes can be made even if there is no change point in the n bits of the parallel signal. At the same time as detecting that a point exists in the looked-ahead n bits, output a run-length make-up code that is the sum of the value of the counting circuit and the value up to the change point in the look-ahead n bits. This solves the second problem. However, in order to look ahead n parallel signals, two stages of dual parallel shift circuits are provided, the above look-ahead operation is performed using the output n bits of the first stage parallel shift circuit, and the second stage parallel It is necessary to perform two series of basic operations and multiple termination codes with the output n bits of the shift circuit.

第3にランレングスが2623を越える場合においては
メークアップ符号を2つ出力することが必要になり、−
上述()た方法だけでは1度に出力する符号長が長くな
り不都合である。
Thirdly, when the run length exceeds 2623, it is necessary to output two makeup codes, and -
If only the above method () is used, the length of the code output at one time becomes long, which is inconvenient.

そこでルック・アヘッド動作を行い、たとえ変化点が存
在しなくともランレングスが2560を越えることが確
定すると、まずメークアップ符号“2560 ”を出力
することで、該メークアップ符号“2560 ”を、前
記メークアップ符号の出力に対して先行して出力するこ
とにより、2つのメークアップ符号を2回に分けて出力
することができ」二記第3の問題点が解決できる。
Therefore, a look ahead operation is performed, and if it is determined that the run length exceeds 2560 even if there is no change point, the make-up code "2560" is output first, and the make-up code "2560" is By outputting the make-up code in advance of the output of the make-up code, the two make-up codes can be outputted twice, and the third problem in item 2 can be solved.

このように画像情報をnヒツト・ずつの並列信号に変換
し、該nビット並列信号に対し順次上述した処理を行う
ことによりランレングス計数動作とMH符号テーブルア
クセス動作が(画像人力クロックtXn)−2の時間の
M I−T画像圧縮装置が実現できる。
In this way, by converting the image information into parallel signals of n bits each and sequentially performing the above-described processing on the n-bit parallel signals, the run length counting operation and the MH code table access operation are performed (image manual clock tXn) - 2 time M I-T image compression device can be realized.

次に本発明の一実施例の動作を図面にもとづき詳しく述
べる。
Next, the operation of one embodiment of the present invention will be described in detail based on the drawings.

ただし本実施例では一4=述の並列信号のnとしてn=
4を与える。nをあまり大きく設定すると複数のMH符
号を1度に発生する際の合計のコート長が長(なりずぎ
処理しに(くなるという欠点があるが、n=4を用いる
と1回のM T(符−号アクセスによって出力されるM
 I−T符号長か最大16ビツト以内て、しかも上述の
M I(符号アクセスの時間とじて2tの時間が与えら
れる。
However, in this embodiment, n=
Give 4. If n is set too large, the total coat length when generating multiple MH codes at once becomes long (nearly required for narizugi processing), but if n = 4, one M T (M output by code access
The I-T code length is within a maximum of 16 bits, and a time of 2t is given as the above-mentioned MI (code access time).

第1図は本発明の一実施例のブロック図である。FIG. 1 is a block diagram of one embodiment of the present invention.

第2図は第1図を説明するための波形図である。まず第
1図の構成要素を述べる。
FIG. 2 is a waveform diagram for explaining FIG. 1. First, the components of FIG. 1 will be described.

第1図において、入力信号Bは前記走査における主走査
時間を表わす主走査信号I3である(主走査時に’ H
” )。信号Aはヒツトシリアルに入力する画像情報信
号である。画像情報信号Aは“H’″で黒、“17パで
白を表わす。入力信号Sは画像情報信号から1画素ずつ
画像情報をザンプルするためのクロック信号である。ク
ロック信号Sの周期は前記画素読み取り周期tである。
In FIG. 1, the input signal B is the main scanning signal I3 representing the main scanning time in the scanning (during the main scanning, 'H
). Signal A is an image information signal input to the hit serial. Image information signal A represents black when it is "H'" and white when it is "17". The input signal S is a clock signal for sampling image information pixel by pixel from the image information signal. The period of the clock signal S is the pixel reading period t.

]、 01はタイミング発生回路で本実施例の動作に必
要な波形を発生ずる。
], 01 is a timing generation circuit that generates waveforms necessary for the operation of this embodiment.

102はシリアルシフトレジスタ回路で画像情報信号を
4ヒツトの並列信号に変換する。1.03. 10/1
は前記した画像情報を4ビットずつ受けとる4ヒツトパ
ラIノルシフトレジスタ回路である。
102 is a serial shift register circuit that converts the image information signal into 4-hit parallel signals. 1.03. 10/1
is a 4-hit para-I nor shift register circuit that receives the above-mentioned image information in 4 bits each.

105は上記した4ヒットバラレルノフトレソスタ回路
I04の内容4ヒツトの、白と黒の組み合せにより、異
なるM I−I符号化動作に切りかえるROM回路によ
り構成されたコントロール回路である。
Reference numeral 105 denotes a control circuit constituted by a ROM circuit that switches to different MI-I encoding operations according to the combination of white and black of the 4-hit contents of the 4-hit differential offset recorder circuit I04.

107と108はランレングスを計数する計数回路であ
る。ここで、1.07はターミネート符号のランレング
スをカランI・する64進の計数回路であり、108は
計数回路107からの桁上りを計数するメークアップ符
号の計数回路である。
107 and 108 are counting circuits that count run lengths. Here, 1.07 is a 64-decimal counting circuit that calculates the run length of the termination code, and 108 is a make-up code counting circuit that counts the carry from the counting circuit 107.

109、 1]0. 1.11はMH符号テーブルを記
憶したROM回路である。ROM回路】09はターミネ
ート符号テーブルとターミネート符号の符号長テーブル
を、ROM回路】10はメークアップ符号とメークアッ
プ符号長テーブルを、また、ROM回路1]1はターミ
ネ−1・符号を複数個並列信号線に出力するためのター
ミネート符号テーブルと出力する複数のターミネート符
号の合計符号長テーブルと計数回路107に出力するラ
ンレングス計数のための数値テーブル(詳しくは後述)
を記憶している。
109, 1]0. 1.11 is a ROM circuit that stores the MH code table. ROM circuit] 09 is a termination code table and a code length table of the terminator code, ROM circuit] 10 is a makeup code and a makeup code length table, and ROM circuit 1] 1 is a terminal code table and a code length table of the termination code. A termination code table for outputting to a signal line, a total code length table of a plurality of output termination codes, and a numerical value table for run length counting output to the counting circuit 107 (details will be described later).
I remember.

115・は、ROM回路から出力されるMH符号をすき
間なく詰める前記のビットシフター回路である。
115 is the aforementioned bit shifter circuit that fills the MH code output from the ROM circuit without any gaps.

106、 112.  ]14は後述するフリップフロ
ップ回路、113はゲート回路である。
106, 112. ] 14 is a flip-flop circuit which will be described later, and 113 is a gate circuit.

以上構成の第1図の回路において、シリアルシフトレジ
スタ102はビットシリアルに入力される画信号を1ビ
ットずつシフトし、パラレルシフトレジスタ103はシ
リアルシフトレジスタ102がnビット(本実施例では
4ヒツト)の画信号をシフトする度に該シフトシたnヒ
ツトを受iJ取り、パラレルシフト1ノジスタ104は
パラレルシフトレジスタ103が受は取ったnビットの
画信号を、該シリアルシフトレジスタ102から新たな
nヒツトの画信号がパラレルシフトレジスタ1.03に
パラレルシフトする度に受けとる。そして、パラレルシ
フトレジスタ104が受けとるnヒツトの並列信号のパ
ターンヲ4種類のパターンに場合わけし、それに対応す
る下記の異なる処理を行うことて実時間て画信号をM 
I−1符号化するものである。
In the circuit shown in FIG. 1 having the above configuration, the serial shift register 102 shifts the image signal bit-by-bit serially input, and the parallel shift register 103 shifts the serial shift register 102 by n bits (4 bits in this embodiment). Each time an image signal of 1 is shifted, n bits of the shifted image signal are received, and the parallel shift 1 register 104 transfers the n bit image signal received by the parallel shift register 103 to a new n bit image signal from the serial shift register 102. The image signal is received every time the image signal is shifted in parallel to the parallel shift register 1.03. Then, the pattern of n parallel signals received by the parallel shift register 104 is divided into four types, and the following different processes corresponding to the patterns are performed to convert the image signal into M in real time.
I-1 encoding is performed.

(処理1)パラレルシフトレジスタ104の内容nピッ
I・に色の異なる画像情報が存在する場合に行う複数の
ターミネート符号の 出力。
(Process 1) Output of a plurality of termination codes when image information of different colors exists in the contents of the parallel shift register 104.

(処理2)パラレルシフトレジスタ104の内容nビッ
トが同色で、かつパラレルシフトレジスタ103のnビ
ットのうち最も早く入力した画像情報の1 ビットがパ
ラレルシフトレジスタ104のnビットの色と異なる場
合に行うメークアップ符号とターミネ−1・符号の出力
(Process 2) Performed when the n bits of the parallel shift register 104 have the same color, and the first bit of the image information input among the n bits of the parallel shift register 103 is different from the color of the n bits of the parallel shift register 104. Output of makeup code and terminator 1 code.

(処理3)パラレルシフトレジスタ104の内容nビッ
トが同色でパラレルシフトレジスタ103の内容のうち
最も早く入力した画像情報の1ヒツトの色も同色であり
、該最も早く入力した1ビツト以外のn−1ビツトの中
に異なる色の画像情報が存在する場合に行うメークアッ
プ符号の出力。
(Process 3) The content n bits of the parallel shift register 104 are the same color, and the color of the first bit of image information input among the contents of the parallel shift register 103 is also the same color, and the n- bits other than the earliest input bit are the same color. Output of makeup code when there is image information of different colors in 1 bit.

(処理4)パラレルシフトレジスタ104の内容nヒツ
トとパラレルシフトレジスタ103の内容のnヒラ1へ
が同色の場合において該連続同色画素数が2560を越
える場合に行うメークアップ符= ”256o”の出力
、あるいは該同色連続画素数が2560を越えない場合
に行うMH符号をなにも出力しない動作。
(Processing 4) When the content n of the parallel shift register 104 and the content of the parallel shift register 103 are the same color, and the number of continuous pixels of the same color exceeds 2560, make-up code = output of "256o" , or an operation in which no MH code is output when the number of consecutive pixels of the same color does not exceed 2560.

次に第】図示の回路の動作を順を追って説明する。Next, the operation of the illustrated circuit will be explained step by step.

主走査信号B(第2図のBの信号)は“H”でタイミン
グ発生回路101を起動する。タイミング発生回路10
1には、クロック信号S(第2図のSの信号)も入力さ
れていて、前記4ヒツトパラレルシフトレジスタ103
(以降レジスタl03)と4ビットパラレルシフトレジ
スタ104(以降レジスタ104)のシフト信号E(第
2図に示すEの信号)を得る。
The main scanning signal B (signal B in FIG. 2) activates the timing generation circuit 101 at "H". Timing generation circuit 10
A clock signal S (signal S in FIG. 2) is also input to the 4-hit parallel shift register 103.
(hereinafter referred to as register 103) and a shift signal E (signal E shown in FIG. 2) of 4-bit parallel shift register 104 (hereinafter referred to as register 104).

第2図に示すようにシフト信号Eの発生する間隔を以降
Tと呼ぶ。
As shown in FIG. 2, the interval at which the shift signal E is generated is hereinafter referred to as T.

一方、ビットシリアルに入力される画像情報信M A 
(第2図のAの信号)はシリアルソフl−+ノシスタ1
02 (以降レジスタj02)に入力され、レジスタ1
02においてC3,C2,C]、Coの順にシフトされ
る。第2図に示すように画像情報信号への最初の4画素
分の情報の4ヒツトが入力した時シフト信号Eが“H”
になるので、レジスタ+02に画像情報信号Aの最初の
4ビットが詰まるとシフト信号Eによりレジスタ]、0
3にパラレルシフトする。
On the other hand, the image information signal M A input in bit serial
(Signal A in Figure 2) is serial software l-+nosistor 1
02 (hereinafter referred to as register j02), and register 1
02, C3, C2, C] and Co are shifted in this order. As shown in Fig. 2, when 4 hits of information for the first 4 pixels are input to the image information signal, the shift signal E becomes "H".
Therefore, when register +02 is filled with the first 4 bits of image information signal A, shift signal E causes register ], 0
Parallel shift to 3.

同様に次の4ヒツトがレジスタ]、 02に詰まるとレ
ジスタ103の内容、すなわち画像情報信号Aの最初の
4ビットはレジスタ104にパラレルシフトする。この
ようにして画像情報の最初の4ビットはレジスタ104
に、その次の4ビツトはレジスタ103にシフトする。
Similarly, when the next four bits are filled in the register], 02, the contents of the register 103, that is, the first four bits of the image information signal A, are shifted to the register 104 in parallel. In this way, the first four bits of image information are stored in register 104.
Then, the next four bits are shifted to register 103.

以下、同様にして画像情報信号Aの画像情報は前記Tの
間隔て4ヒツトずつレジスタ104とレジスタ]、03
に検出される。
Thereafter, in the same way, the image information of the image information signal A is transferred to the register 104 and the register 104 and 03 at intervals of T, respectively.
detected.

画像情報の最初の4ビットがレジスタ104にシフトす
ると以下に述べるMH符号化動作を開始する。
When the first four bits of image information are shifted into register 104, the MH encoding operation described below begins.

前記したように本実施例においては、Iノジスタ104
にパラレルシフトされた画像情報の4ピツトの白と黒の
組み合せにより異なる符号化動作を行う。前記ROM回
路によって構成されたコントロール回路105はこの符
号化動作の切り換えをコントロールする。第1図に示す
ようにコントロール回路105の入力線(アドレス線)
には」二記レジスタ10/Iとレジスタ103の出力と
ターミネート計数回路107の出力と、タイミング発生
回路101の出力信号C(第2図の信号D)が入力され
ている。この入力によりコントロール回路105内にあ
らかじめ記憶させておいたデータをアクセスし、その出
力によって以下に述べる動作の切り換えを行う。ここて
信号Cはクロック信号Sの4倍の周期をもつ信号であり
、第2図のCに示すように前記4ヒツl−ノ<ラレルシ
フトの間隔Tを“L ”と“IT ”で前半T1と後半
T2に分Cプる信号である。
As mentioned above, in this embodiment, the I no register 104
Different encoding operations are performed depending on the combination of 4-pit white and black of the image information that has been parallel-shifted. A control circuit 105 constituted by the ROM circuit controls switching of this encoding operation. As shown in FIG. 1, the input line (address line) of the control circuit 105
The outputs of the second register 10/I and the register 103, the output of the termination counting circuit 107, and the output signal C (signal D in FIG. 2) of the timing generation circuit 101 are input to the circuit. This input accesses data previously stored in the control circuit 105, and the output switches the operations described below. Here, the signal C is a signal having a period four times that of the clock signal S, and as shown in C of FIG. This is the signal that is applied in the second half T2.

第1表はレジスタ104の内容の組み合せによる動作を
示している。第1表の(1)においてaO9al、 a
2.  a3.  boは、第1図における信号aO9
al、a2.a3.boの内容を示している。
Table 1 shows the operation depending on the combination of contents of register 104. In (1) of Table 1, aO9al, a
2. a3. bo is the signal aO9 in FIG.
al, a2. a3. It shows the contents of bo.

第1表の(2)は」二記第2図のT1とT2において、
コントロール回路105が、ROM109. ROMl
l0゜ROM11]のうちどのROMをアクセスするか
を表わしている。この制御は信号F、信号G、信号Hに
よってROM1.09.  ROM1.1.O,R,0
M1]、]のチップイネーブル端子を制御してアクセス
するROMだけをイネーブルにすることにより行う。
(2) in Table 1 is ``2'' at T1 and T2 in Figure 2.
The control circuit 105 stores the ROM 109. ROMl
10° ROM11] to be accessed. This control is performed by signals F, G, and H in ROM1.09. ROM1.1. O,R,0
This is done by controlling the chip enable terminals of M1], ] to enable only the ROM to be accessed.

第1表の(1)〜(14)はレジスター04の示す内容
の中に変化点(画像情報信号Aにおいて1画素前の画像
情報と色が異なった画素が入力された場合この画素を表
わす画像情報を変化点と呼ぶ)が存在する場合を表わし
ている。(15)〜(18)はレジスター04に変化点
がない場合を示している。
(1) to (14) in Table 1 indicate points of change in the contents indicated by register 04 (if a pixel whose color differs from the previous pixel's image information in image information signal A is input, the image representing this pixel) This represents the case where there is information (called a change point). (15) to (18) show the case where there is no change point in register 04.

第1表の(2)に示したように前記したROMのアクセ
スの切りかえは3つの場合にわける。ずなわち (1)レジスタ】04内に変化点が存在する場合(特許
請求範囲の処理1に相当) (2)レジスター04内に変化点が存在せず、レジスタ
105のboが変化点である場合(特許請求範囲の処理
2に相当) (3)レジスター04内に変化点が存在せず、レジスタ
105の1〕0も変化点てない場合(特許請求範囲の処
理3と処理4に相当) である、。以下に上記の3つの場合における動作を詳し
く述べる。
As shown in (2) of Table 1, the aforementioned ROM access switching can be divided into three cases. (1) If there is a change point in register 04 (corresponding to process 1 of the claims) (2) There is no change point in register 04, and bo of register 105 is the change point (corresponds to process 2 in the claims) (3) When there is no change point in register 04 and there is no change point in register 105 (1]0 in register 105 (corresponds to processes 3 and 4 in the claims) It is. The operations in the above three cases will be described in detail below.

(1)レジスター04内に変化点が存在する場合この場
合、レジスタ104の4ビツト内でランレングスが定ま
るターミネート符号と同じく4ビット内でランレングス
が定まらない画素数を検知し、ランレングスが定まった
符号(以降符号が確定すると呼ぶ)についてはこれを出
力し、符号が確定しなかったレジスタ104内の画素の
画素数については計数回路107に足し算する動作をす
る。以下にこの動作を詳しく述べる。
(1) When a change point exists in register 04 In this case, the number of pixels for which the run length is not determined within the 4 bits of register 104 is detected, and the run length is determined within the 4 bits of the register 104. The code that has been determined (hereinafter referred to as a determined code) is outputted, and the number of pixels in the register 104 whose code has not been determined is added to the counting circuit 107. This operation will be described in detail below.

まずコントロール回路105について述べる。レジスタ
】04の4ヒツトの中に色の変化点があると(第1表の
(1)〜(1,4))、コン]・ロール回路105は時
間Tのうち時間T1の間ROM109のデツプイネーブ
ル信号FによりROM ] 09をイネーブルにする。
First, the control circuit 105 will be described. When there is a color change point among the four hits of register 04 ((1) to (1, 4) in Table 1), control circuit 105 registers the memory of ROM 109 for time T1 of time T. The ROM]09 is enabled by the enable signal F.

同時にコントロール回路105は、レジスタ104の内
容aOから数えて最初の変化点く第1変化点と呼び、第
1表の(])に示す)までの間に前画素あるかという情
報を、信号IによりROM]09に伝える。コントロー
ル回路105は時間T2にはROM]09をディセーブ
ルし、信号HによりROM]、]Iをイネーブルにする
。以上がコントロール回路の動作である。
At the same time, the control circuit 105 sends information as to whether there is a previous pixel between the contents aO of the register 104 and the first change point counted from the first change point (shown in parentheses in Table 1) to the signal I. ROM]09. Control circuit 105 disables ROM]09 at time T2 and enables ROM], ]I by signal H. The above is the operation of the control circuit.

時間T1においてはROMIIIが上記第1表の(i)
に示す第1変化点で確定するターミネート符号を発生す
る。この場合メークアップ符号は出力する必要がないが
、このことは後の説明で明らかにする。
At time T1, ROMIII is (i) in Table 1 above.
A termination code is generated that is determined at the first change point shown in FIG. In this case, it is not necessary to output the makeup code, but this will be made clear later in the explanation.

時間T1てイネーブルされたROMl09は、ターミネ
ート計数回路107が信号Jに出力している連続画素数
のカウント数と上述の信号■の示す情報をアドレス信号
として受けとり、両方の数値を加えた数のランレングス
を表わすターミネ−1・符号をあらかじめ記憶しである
ターミネート符号テーブルをアクセスして信号にとして
並列に出力し、前述のピットンフタ−回路115に出力
する。ただし発生符号の色は信号aOをアドレス線に入
力し、aOの示す色と同じ色を示すターミネート符号を
出力する。また同時に出力したM H符号の符号長を信
−号してピットシフター回路′、15に出力する。また
符号を出力したことを信号Mて前述のヒラI・シフター
回路]15にOR回路113を介して知らせる。
The ROM 109, which was enabled at time T1, receives the continuous pixel count output by the termination counting circuit 107 as the signal J and the information indicated by the above-mentioned signal ■ as an address signal, and executes the number of runs that is the sum of both numbers. A terminator 1 code representing the length is stored in advance, a terminator code table is accessed, the signal is output in parallel, and the signal is output to the pitton lid circuit 115 described above. However, the color of the generated code is determined by inputting the signal aO to the address line and outputting the termination code having the same color as the color indicated by aO. At the same time, the code length of the output MH code is signaled and output to the pit shifter circuit 15. Furthermore, the signal M is used to notify the above-mentioned Hira I shifter circuit 15 via the OR circuit 113 that the code has been output.

(ROM 1.09 、  ROM ] ]、 0 、
  ROM ] ]、 ]からM I−T符号が出力さ
れた場合必ず出力されたM T−I符号の符号長が同時
にピットシフター回路1. ]、 5に出力されるが以
降いちいち記さない) 時間T2では、第1表の(i)に示す第1変化点からa
3までに確定するMH符号を出力する。詳しく述べると
時間T2ではROM109はディセーブルされ、かわり
に上記信号11によりROM]I+がイネーブルされる
。第1図に示すように、ROMIIIにはアドレス信号
としてレジスタ107Iの内容、信号ao、  al、
 a2.  a3とレジスタ103の内容、信号bOが
入力されており、」二記信号HによりROM1]、]が
イネーブルされるとROMIIIは第1表の(1■)で
示すところの第1変化点からa3まての間に確定するタ
ーミネ−1・符号を信号Tとしてヒツトシフター11.
5に出力する。
(ROM 1.09, ROM] ], 0,
When an M I-T code is output from the ROM ] ], ], the code length of the M T-I code output is always changed to the pit shifter circuit 1. ], 5 is output, but will not be recorded hereafter) At time T2, from the first change point shown in (i) of Table 1, a
The MH code determined by 3 is output. Specifically, at time T2, ROM 109 is disabled and ROM]I+ is enabled by signal 11 instead. As shown in FIG. 1, ROMIII receives the contents of register 107I as address signals, signals ao, al,
a2. a3, the contents of register 103, and signal bO are input, and when ROM1], ] is enabled by signal H, ROMIII changes a3 from the first change point shown in (1■) in Table 1. The terminal 1 code determined during the wait is sent to the hit shifter 11 as a signal T.
Output to 5.

同時に符号出力を示す信号OをOR回路113を介して
ヒツトシフター1.15に出力する。
At the same time, a signal O indicating the sign output is outputted to the hit shifter 1.15 via the OR circuit 113.

第一変化点以降レジスタ104内とI)Oに変化点が存
在しない場合は、第1変化点以降レジスタ】04内で確
定するターミネート符号はないので符号出力K並びに上
記信号Oを出力しない。
If there is no change point in the register 104 and I)O after the first change point, there is no termination code determined in the register 04 after the first change point, so the code output K and the above signal O are not output.

ROMIIIは同時に(時間T2に)レジスタ104内
の確定しなかった画素数(第1表(V))を信号Pで計
数回路107に印加する。印加された画素数は次の4ヒ
ツト並列レジスタのシフトと同時に計数回路107自身
の内容と加算するが、加算する前に計数回路107をク
リア(内容をOにする)する。これはレジスタ104内
の内容までのターミネート符号を出力したので、ターミ
ネーI・符号として出力した数値についてはクリアして
新たにランレングスのカウントを開始するために行う。
At the same time (at time T2), ROM III applies the undetermined number of pixels in the register 104 (Table 1 (V)) to the counting circuit 107 as a signal P. The number of applied pixels is added to the contents of the counting circuit 107 itself at the same time as the next 4-hit parallel register is shifted, but before the addition, the counting circuit 107 is cleared (the contents are set to O). This is done in order to clear the numerical value output as the terminus I code and start counting the run length anew since the termination code up to the contents in the register 104 has been output.

この動作は以下のようにして実現できる。すなわち、第
1図において符号出力信号Oが出力されたときが上述の
計数回路107のクリアが必要な場合である。そ二てフ
リップフロップ回路114(以降FF回路)を信号Oに
よりセットし前記クロック信号Sの周期1後にリセット
させ、FF回路114の出力Q、て計数回路】07をク
リアする。このようにして−1−述の動作を実現する。
This operation can be achieved as follows. That is, when the sign output signal O is output in FIG. 1, it is necessary to clear the above-mentioned counting circuit 107. Then, the flip-flop circuit 114 (hereinafter referred to as FF circuit) is set by the signal O and reset after one period of the clock signal S, and the output Q of the FF circuit 114 clears the counter circuit 07. In this way, the operation described in -1- is realized.

(2)レジスタに変化点かなくBOが変化点である場合 この場合レジスタ104の内容a3までのランレングス
が定まるので、時間Tの間にこのランレングスを表わす
メークアップ符号(時間T、に出力)とターミネート符
号(時間T2に出力)を出力する。
(2) When there is no change point in the register and BO is the change point In this case, the run length up to the contents a3 of the register 104 is determined, so the make-up code (output at time T) representing this run length during time T ) and a termination code (output at time T2).

以下にその詳しい動作を述べる。The detailed operation will be described below.

まず」−記(2)の場合のコントロール回路105の動
作を記す。レジスタ104の内容4ビツトに変化点がな
く、かつboが変化点であると第1表(ii)に示した
ようにコントロール回路105は時間T。
First, the operation of the control circuit 105 in case (2) will be described. If there is no change point in the 4 bits of the register 104 and bo is the change point, the control circuit 105 returns at time T as shown in Table 1 (ii).

に信号GによりROM1.]Oをイネーブルし、T2に
L11ROM]10はディセーブルし、かわりにROM
+09をイネーブルにする。
ROM1. ]0 is enabled, L11ROM in T2]10 is disabled and the ROM is placed instead.
Enable +09.

また時間T1においてコントロール回路105は、ター
ミネート計数回路107の示す値が60以上であると、
すなわちレジスタ104内の同色4ビツトの画素数を加
えると64以上になるのでメークアップの桁にりをRO
M +、 1.0に知らせるためにメークアップ桁」−
り信号RをROM 1 ]、 Oに出力する。また時間
′F2においてレジスタ]04にある4画素分の数値4
を信号■てROM 1.09に出力する。以上がコント
ロール回路105の動作である。
Further, at time T1, the control circuit 105 determines that if the value indicated by the termination counting circuit 107 is 60 or more,
In other words, if you add the number of 4-bit pixels of the same color in the register 104, the number will be 64 or more, so the number of make-up digits will be reduced to RO.
M+, make-up digits to inform 1.0''-
The output signal R is output to ROM 1 ] and O. Also, at time 'F2, the value 4 for 4 pixels in register ] 04
The signal ■ is output to ROM 1.09. The above is the operation of the control circuit 105.

さて時間T、においてROMI]、Oはメークアップ旧
数回路108の値と上記メークアップ桁」ニリ信号Rと
後述信号S(前述(2)の場合は出力されない。これは
後述する)とレジスタ104のaO倍信号よってアI・
レス線よりアクセスされる。そしてあらかしめROMl
l0に記憶しであるメークアップ符号テーブルからメー
クアップ計数回路108の示す値と、メークアップ桁」
ニリ信号(Oまたは1)の出力を加えた数の示すメーク
アップ符号をアクセスし、メークアップ符号を信号にと
してビットシフター回路115に出力する。同時に符号
出力信号MOR回路113を介してビットシフター回路
115に出力する。
Now, at time T, ROMI], O is the value of the make-up old number circuit 108, the above-mentioned make-up digit, a signal R, a signal S (not outputted in the case of (2) mentioned above, which will be described later), and a register 104. By aO times the signal, AI・
accessed from the reply line. And the summary ROMl
The value indicated by the makeup counting circuit 108 and the makeup digit from the makeup code table stored in l0.
The make-up code indicated by the number added to the output of the Niri signal (O or 1) is accessed, and the make-up code is output as a signal to the bit shifter circuit 115. At the same time, the code output signal is output to the bit shifter circuit 115 via the MOR circuit 113.

時間T2てはROM 1.09からターミネー1−旧数
回路107の示す値と、レジスタ]、 04に存在する
4画素分、の数値4を加えたランレングスに対応するタ
ーミネート符号を信号Iとして出力する。詳しく述へる
と、前記した様にROM109にはターミネ−1・計数
回路107の出力信号Jと上述のコントロール回路10
5の出力信号Iと、出力符号の色を示すレジスタIO4
の出力aOがアドレス線に入力されていて、ターミネ−
1へ計数回路107の示ず値に上記信号Iの示す数値4
を加えたランレングスに対応し、信号aOと同じ色を示
すターミネ−1・符号を信号にてビットシフター回路]
15に出力する。同時に符号出力信号MをOR回路]1
3を介してビットシフター回路115に出力する。
At time T2, the termination code corresponding to the run length obtained by adding the value indicated by the termination 1-old number circuit 107 from ROM 1.09 and the value 4 for the 4 pixels present in register ], 04 is output as signal I. do. To be more specific, as described above, the ROM 109 contains the output signal J of the terminus 1/counting circuit 107 and the control circuit 10 described above.
5 output signal I and a register IO4 indicating the color of the output code.
The output aO is input to the address line, and the terminal
1 to the numerical value 4 indicated by the signal I to the non-indicated value of the counting circuit 107.
bit shifter circuit corresponding to the run length plus the terminator 1 and sign indicating the same color as the signal aO]
Output to 15. At the same time, the sign output signal M is ORed]1
3 to the bit shifter circuit 115.

ここでメークアップ計数回路108とターミネ−1・計
数回路107の内容はM T−1符号に変換されたので
、削数回路107. 108をクリア(内容をOにする
)しなければならない。この動作は以下のようにして実
現する。すなわちコントロール回路105の出力信号I
からは数値4が出力された場合が」二連のクリアが必要
な場合である。FF回路106は」二。記信号■の数値
4を検知して時間ゴ2の終わり でセツトシ、次の前記
Iノシスタ103とレジスタ10/1の4ヒツトパラI
ノルシフト動作における時間T1の終りでリセットする
。このFF回路106の出力信号Vて計数回路107,
108をクリアすることにより」二連の動作が可能であ
る。
Here, the contents of the make-up counting circuit 108 and the terminus-1/counting circuit 107 have been converted to the M T-1 code, so the contents of the make-up counting circuit 108 and the terminus-1/counting circuit 107 have been converted to the M T-1 code, so the contents of the make-up counting circuit 108 and the terminus-1/counting circuit 107 have been converted to M T-1 codes. 108 must be cleared (content set to O). This operation is realized as follows. That is, the output signal I of the control circuit 105
If the value 4 is output from , it is necessary to clear twice. The FF circuit 106 is "2". Detects the value 4 of the signal (■) and sets it at the end of time 2.
Reset at the end of time T1 in Norshift operation. The output signal V of this FF circuit 106 causes a counting circuit 107,
By clearing 108, two consecutive operations are possible.

(3)レジスタ104内に変化点が存在せずレジスタ1
05のboも変化点てない場合 まず、コントロール回路115の動作を説明する。
(3) There is no change point in register 104 and register 1
When there is no change point in bo of 05, the operation of the control circuit 115 will be explained first.

(3)の場合第1表の(i)のコントロール回路1.1
5は時間T、にROMIToをイネーブルにし、時間]
゛2にROMIIIをイネーブルにする。
In the case of (3), control circuit 1.1 of (i) in Table 1
5 enables ROMITo at time T, time]
2. Enable ROMIII.

ここで、本実施例においてはランレングスがメークアッ
プ符号の最高値” 2560 ”を越える場合、色の変
化点を検出してもまた検出しな(でもメークアップ符号
“2560°“を出力する。コントロール回路115は
この動作を制御するために以下に述へる信号Sを時間T
Iに出力する。すなわち、信号Sはレジスタ1071の
内容4ヒツトとレジスタ103の内容4ヒツトのとちら
にも変化点がなく、さらにターミネーI・計数回路10
7が56以上を示している場合、つまりターミネート目
数回路の示す値とレジスタ103、  レジスタ〕04
の画像情報分の8ヒツトを加えると64以上になり、メ
ークアップに桁」−りを生しることをR,OM 1.1
0に対して知らせる信号である。
In this embodiment, if the run length exceeds the maximum value of the makeup code "2560", even if a color change point is detected, it is not detected (but the makeup code "2560°" is output). In order to control this operation, the control circuit 115 transmits a signal S, which will be described below, at a time T.
Output to I. That is, the signal S has no change point between the contents of the register 1071 and the contents of the register 103;
If 7 indicates 56 or more, that is, the value indicated by the termination number circuit and register 103, register] 04
R,OM 1.1 If you add 8 hits for the image information, the number will be 64 or more, which will cause an order of magnitude difference in makeup.
This is a signal to notify 0.

ここで、実際にメークアップ符号2560を出力する必
要があるのは、」二記信号Sが出力する条件だけでなく
、メークアップ計数回路1.08が数値39を指してい
ること(メークアップ計数回路108の数値40がメー
クアップ符号2560に対応する)が必要であるが、こ
の条件については信号Sが出力された時ROM 1.1
0で判断する(後述)。
Here, it is necessary to actually output the make-up code 2560 not only under the conditions for outputting the ``2'' signal S, but also that the make-up counter circuit 1.08 points to the number 39 (make-up counter 40 of the circuit 108 corresponds to the makeup code 2560), but for this condition, when the signal S is output, ROM 1.1
Judge with 0 (described later).

またコントロール回路105は」一連(2)の場合に述
べたメークアップ桁」−り信号Rをレジスタ103のb
O以外の3ピッ1−bl、  b2.  b3に変化点
があり、かつレジスタ10/l内の信伺aOから数えて
1ノジスタ]、 03内の第1変化点との間の画素数と
ターミネーI・計数回路107との和が64以上になる
場合に時間T1に出力する。以」二がコントロール回路
105の動作説明である。
In addition, the control circuit 105 sends the "make-up digit" signal R to the register 103 as described in case (2).
3 pins other than O 1-bl, b2. b3 has a change point, and the sum of the number of pixels between the first change point in register 10/l and the first change point in register 10/l is 64 or more, counting from the signal aO in register 10/l is 64 or more If so, it is output at time T1. The following is an explanation of the operation of the control circuit 105.

さて時間1゛1において図2 ROM ] ] 0は図
2レジスタ103の内容1) ]、 、  b 2 、
  +33のとれかが変化点であると、メークアップ計
数回路108の値に上記メークアップ桁1−り信号Rの
値(0か1)を加えた値の示すメークアップ符号をメー
クアップ符号テーブルにアクセスして信号Rとしてビッ
トシフター回路115に出力する。同時に符号を出力し
たことを示す信号NをOR回路113を介してピットシ
フター回路115に出力する。ただしメークアップ計数
回路の示す値が0て桁上り信号Rの示す値もOの場合は
上記の変化点で定まったランレングスが63以下である
ことを示しているので、このときはメークアップ符号を
出力したことを示す信号R並びに信号Nを出力しない。
Now, at time 1゛1, FIG. 2 ROM ] ] 0 is the content of FIG. 2 register 103 1) ], , b 2 ,
If +33 is the change point, the makeup code indicated by the value of the makeup counting circuit 108 plus the value (0 or 1) of the makeup digit 1 minus signal R is stored in the makeup code table. It is accessed and output as a signal R to the bit shifter circuit 115. At the same time, a signal N indicating that the code has been output is outputted to the pit shifter circuit 115 via the OR circuit 113. However, if the value indicated by the make-up counter circuit is 0 and the value indicated by the carry signal R is also O, it means that the run length determined at the above change point is 63 or less, so in this case, the make-up code is does not output signal R or signal N indicating that it has been output.

またROMll0は上記メークアップ符号2560の出
力要求信号SがROM ]、 10に入力され、かつメ
ークアップ計数回路の信号Uが示す数値が39であると
信号Sと信号Uによりメークアップ符号テーブルをアク
セスし、メークアップ符号2560を出力する。
Furthermore, when the output request signal S of the makeup code 2560 is input to the ROM], 10, and the value indicated by the signal U of the makeup counter circuit is 39, the ROMll0 accesses the makeup code table using the signal S and the signal U. and outputs a makeup code 2560.

以−にのように(3)の場合、T、てメークアップ 。As mentioned above, in case (3), T, make up.

符号を出力する。時間T2てはMH符号は出力しないが
以下に述べる動作を行う。すなわちメークアップ符号を
出力したのでメークアップ計数回路108の内容をクリ
アする(0にする)。同時にターミネート計数回路10
7にはレジスタ104の4ビット分の数値4を信号Hに
より時間T2にイネーブルするROM 111から信号
Pとして出力して印加する。これは、次のレジスタ10
3からレジスタ]、04へのパラレルシフトの際、ター
ミネート計数回路107に加算する。しかしこの加算の
結果においてターミネ−1・計数回路107からメーク
アップ計数回路108への桁上り動作は以下の理由で禁
止する。
Output the sign. At time T2, the MH code is not output, but the operation described below is performed. That is, since the makeup code has been output, the contents of the makeup counting circuit 108 are cleared (set to 0). Simultaneously terminate counting circuit 10
7, the value 4 corresponding to 4 bits of the register 104 is output as a signal P from the ROM 111 enabled at time T2 by the signal H and is applied. This is the next register 10
3 to register] and 04, it is added to the termination counting circuit 107. However, in the result of this addition, a carry operation from the terminus 1 counting circuit 107 to the makeup counting circuit 108 is prohibited for the following reason.

すなわち上記したようにすでに時間T1てメークアップ
桁上り信号Rにより、この桁」ニリは計算に入れてメー
クアップ符号をROMI]Oから出力したためである。
That is, as described above, this digit is already taken into account by the makeup carry signal R at time T1 and the makeup code is output from ROMI]O.

メークアップ計数回路108のクリア並びに上記桁−1
ニリ禁止は以下のようにして実現できる。
Clearing the makeup counting circuit 108 and the above digit -1
The ban on Niri can be implemented as follows.

すなわち、」二記ROM 1− ] 1から時間T2に
ターミネ−1・計数回路107に出力される信号Pの値
が“4パであると、上述したメークアップ計数回路】0
8のクリア並びに上記桁上り禁止が必要になる場合であ
る。つまり信号Pの出力した数値が4のとき、次のレジ
スタ104からレジスタ103へのパラレルシフトの間
メークアップ計数回路11の内容をクリアするればよい
。ここでFF回路112は信号Pの出力した数値が4で
あるときこれを検知してセラI・し、次のシフトの時間
T後にリセットする。このFF回路106の出力信号W
によって、この1言号Wが出力されている間メークアッ
プ計数回路をクリアすることて上述のクリア並びに桁上
り動作禁止を実現することができる。
That is, if the value of the signal P output from ROM 1-] 1 to the terminus-1 counting circuit 107 at time T2 is 4, the above-mentioned make-up counting circuit 0
This is a case where it is necessary to clear the number 8 and prohibit the above-mentioned carry. That is, when the output value of the signal P is 4, the contents of the makeup counter circuit 11 may be cleared during the next parallel shift from the register 104 to the register 103. Here, when the output value of the signal P is 4, the FF circuit 112 detects this, performs a cell I-, and resets it after the time T of the next shift. The output signal W of this FF circuit 106
By clearing the makeup counting circuit while this one word W is being output, the above-mentioned clearing and prohibition of the carry operation can be realized.

以上が(3)の場合の動作説明である。以上述べたこと
で明らかなように、ランレングスが64以−にでメーク
アップ符号を出力する場合におては前述の(2)か(3
)における動作によりメークアップ符号が出力される。
The above is an explanation of the operation in case (3). As is clear from the above, when outputting a make-up code with a run length of 64 or more, either the above (2) or (3)
) outputs a makeup code.

すなわち次のパラレルシフトで変化点がレジスタ1.0
4で検出され(1)の場合になった時にはすてにメーク
アップ符号の出力は終わっており、(1)の動作におい
てメークアップ符号を出力する必要はない。この(1,
)、  (2)、  (3)の動作をレジスタ104.
 、  レジスタ103の4ビツトパラレルシフト毎に
実行することにより実時間でMH符号化動作を行うこと
が可能である。
In other words, the change point in the next parallel shift is register 1.0.
4 and when the case (1) is reached, the output of the makeup code has already been completed, and there is no need to output the makeup code in the operation (1). This (1,
), (2), and (3) in register 104.
, it is possible to perform the MH encoding operation in real time by executing each 4-bit parallel shift of the register 103.

以上が画像情報AをMWコツーに変換する部分の説明で
ある。
The above is the explanation of the part that converts the image information A into MW Kotsu.

このようにROM109.ROMll0.ROMl11
が出力したMH符号信号に、Ml(符号信号R,MI−
1符号信号Tはビットシフター回路]15に入力する。
In this way, ROM109. ROMll0. ROM11
Ml (code signal R, MI-
The 1 code signal T is input to a bit shifter circuit]15.

ビットシフター回路]15には同時に符号長を示す信号
りを入力する。また、符号出力を示ず信号M。
[Bit shifter circuit] At the same time, a signal indicating the code length is input to the bit shifter circuit 15. Also, the signal M shows no sign output.

信号N、倍信号をOR回路113を介して入力する。The signal N and the multiplied signal are inputted via the OR circuit 113.

ピットシフター回路115は従来例で述べたように、M
H符号の出力を示す信号XによりMH符号、並びにMH
符号長を受けとる。そしてMH符号長で示されるビット
数だけ受は取ることによりM ■−I符号を並列信号線
から抜き出し、抜き出したMH符号をすき間なく詰めて
並列信号Yとして出力する前記の公知のピットシフター
回路である。
As described in the conventional example, the pit shifter circuit 115 is
The signal X indicating the output of the H code causes the MH code and MH
Receive code length. Then, by taking the number of bits indicated by the MH code length, the M -I code is extracted from the parallel signal line, and the extracted MH code is packed without any gaps and output as the parallel signal Y. be.

前記実施例の構成によれば、M H符号テーブル(すな
わちROM]、09.ROMll0.ROM1]、1.
)をアクセスする動作の最小の間隔は従来例のtに対し
2倍の2tであり、ROM回路のアクセスの遅延時間を
考慮するとより高速に入力する画像に対してMH符号圧
縮動作が可能になる。
According to the configuration of the embodiment, the M H code table (ie, ROM], 09.ROMll0.ROM1], 1.
) is 2t, which is twice the t of the conventional example, and considering the access delay time of the ROM circuit, MH code compression operation is possible for images that are input faster. .

〔効 果〕〔effect〕

以」二説明した様に、本発明によると入力画像を高速に
入力に遅延することなく圧縮処理可能となるものである
As described above, according to the present invention, input images can be compressed at high speed without any delay in input.

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

第1図は本発明を適用した画像処理装置の構成を示すブ
ロック図、第2図は第1図示回路の動作タイミングチャ
ート図、第3図は従来構成例を示す図であり、 101はタイミング発生回路、102はシリアルシフト
レジスタ回路、1.03. 104はパラレルシフトレ
ジスタ回路、105はコントロール回路、107゜10
8は計数回路、109〜111はROM回路である。
FIG. 1 is a block diagram showing the configuration of an image processing device to which the present invention is applied, FIG. 2 is an operation timing chart of the circuit shown in FIG. 1, and FIG. 3 is a diagram showing an example of a conventional configuration. circuit, 102 is a serial shift register circuit, 1.03. 104 is a parallel shift register circuit, 105 is a control circuit, 107°10
8 is a counting circuit, and 109 to 111 are ROM circuits.

Claims (1)

【特許請求の範囲】[Claims] 入力画像情報をnビットずつ区切ってnビット並列信号
に変換し、該並列信号をパラレルシフトして、nビット
ずつランレングスを計数してMH符号化処理するととも
に、次に処理すべき該nビット並列信号に対応したMH
符号を上記の処理に対して先行して出力し、該処理すべ
きnビット並列信号内の複数の変化点に対応する複数の
MH符号を同時に出力することを特徴とする画像処理装
置。
The input image information is divided into n-bit units and converted into n-bit parallel signals, the parallel signals are shifted in parallel, the run length is counted in n-bit units, and MH encoding processing is performed, and the n-bits to be processed next are MH compatible with parallel signals
An image processing apparatus characterized in that a code is outputted in advance of the above processing, and a plurality of MH codes corresponding to a plurality of change points in an n-bit parallel signal to be processed are simultaneously outputted.
JP5444187A 1987-03-09 1987-03-09 Image processing device Pending JPS63220675A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP5444187A JPS63220675A (en) 1987-03-09 1987-03-09 Image processing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP5444187A JPS63220675A (en) 1987-03-09 1987-03-09 Image processing device

Publications (1)

Publication Number Publication Date
JPS63220675A true JPS63220675A (en) 1988-09-13

Family

ID=12970792

Family Applications (1)

Application Number Title Priority Date Filing Date
JP5444187A Pending JPS63220675A (en) 1987-03-09 1987-03-09 Image processing device

Country Status (1)

Country Link
JP (1) JPS63220675A (en)

Similar Documents

Publication Publication Date Title
EP0199088A2 (en) Method and apparatus for modifying a run-length limited code
JPS63191442A (en) Data modulation interface
EP0212905B1 (en) Decoding apparatus for image code
JPS60140980A (en) Method and device for encoding signal representing flow of digital data group
JPS63220675A (en) Image processing device
JPS6362151B2 (en)
KR100529807B1 (en) How to convert a sequence of m-bit information words into a modulated signal, record carrier generation method, coding device, decoding device, recording device, reading device, signal and record carrier
JP2774490B2 (en) Image code decoding device
JPS58225779A (en) Decoding system for picture signal
JP2536489B2 (en) Compressed data decoding device
JP2595900B2 (en) Change point coordinate detection device for binary image data
JP2774488B2 (en) Image code decoding device
JPH0149072B2 (en)
JP2774489B2 (en) Image code decoding device
NL8602433A (en) SYSTEM FOR RECEIVING DATA.
JPS60117879A (en) Fill bit eliminating circuit
JPS59156073A (en) Data decoding device
JPS63301677A (en) Change point detecting circuit
JP2998163B2 (en) Reception control circuit
JPS63275276A (en) Digital image signal encoding method and encoding device
JP3029863B2 (en) Compressed data decoding device
JPH0548027B2 (en)
JPS59156075A (en) data decoding device
JPS62245787A (en) Digital image encoding method
JPS61274425A (en) Digital compressing curcuit