JPH0568149B2 - - Google Patents

Info

Publication number
JPH0568149B2
JPH0568149B2 JP59049314A JP4931484A JPH0568149B2 JP H0568149 B2 JPH0568149 B2 JP H0568149B2 JP 59049314 A JP59049314 A JP 59049314A JP 4931484 A JP4931484 A JP 4931484A JP H0568149 B2 JPH0568149 B2 JP H0568149B2
Authority
JP
Japan
Prior art keywords
data
output
encoding
counting
unencoded
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Lifetime
Application number
JP59049314A
Other languages
Japanese (ja)
Other versions
JPS60194670A (en
Inventor
Shunji Kurokawa
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.)
Ricoh Co Ltd
Original Assignee
Ricoh Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ricoh Co Ltd filed Critical Ricoh Co Ltd
Priority to JP59049314A priority Critical patent/JPS60194670A/en
Publication of JPS60194670A publication Critical patent/JPS60194670A/en
Publication of JPH0568149B2 publication Critical patent/JPH0568149B2/ja
Granted legal-status Critical Current

Links

Description

【発明の詳細な説明】 [技術分野] 本発明はフアクシミリ等の画像処理装置におけ
る符号化処理装置に関する。
DETAILED DESCRIPTION OF THE INVENTION [Technical Field] The present invention relates to an encoding processing device in an image processing device such as a facsimile.

[従来技術] 一般にフアクシミリ等の画像処理装置において
は、画像伝送時の伝送効率を向上させるため、画
データの符号化が行なわれる。しかし、符号化さ
れた画データがいつも符号化前のデータ即ち未符
号化データのビツト数より少なくなるとは限ら
ず、むしろビツト数が増す場合もある。
[Prior Art] Generally, in an image processing device such as a facsimile, image data is encoded in order to improve transmission efficiency during image transmission. However, the number of bits of the encoded image data is not always smaller than the number of bits of the data before encoding, that is, the unencoded data; in fact, the number of bits may increase.

例えば、MH方式によるランレングス符号化方
式においては、1ライン2048ビツトの画データが
符号化されるとEOL(End Of Linesync)符号も
含めて32〜9236ビツトのデータになる。
For example, in the run-length encoding method using the MH method, when one line of 2048-bit image data is encoded, it becomes data of 32 to 9236 bits including an EOL (End Of Line sync) code.

そこで、符号化処理装置から出力される画デー
タのビツト数を少なくとも未符号化データビツト
数以下とするために、従来から以下に述べる2つ
の方式が提案されている。
Therefore, in order to reduce the number of bits of image data output from the encoding processing device to at least the number of bits of unencoded data, the following two methods have been proposed.

その1つは、1単位ブロツク分のデータ(フア
クシミリの場合は1ライン分のデータに相当)の
符号化中に、その符号化データのビツト数が未符
号化データ1単位ブロツク分のビツト数をオーバ
したときには符号化を中止し、そのブロツクは未
符号化データをそのまま出力する方式である。
One of these is that while encoding one unit block of data (equivalent to one line of data in the case of facsimile), the number of bits of the encoded data exceeds the number of bits of one unit block of unencoded data. When the block exceeds the limit, encoding is stopped and the unencoded data of that block is output as is.

また、もう1つの方式は、符号化を行なう前に
1単位ブロツク分のデータ毎のラン数(白黒変化
点数)を計算し、ある一定数以上のときは符号化
しないで出力する方式である。
Another method is to calculate the number of runs (number of black and white change points) for each unit block of data before encoding, and when the number exceeds a certain value, the run number is output without being encoded.

これらの方式によれば、例えばフアクシミリの
場合には1ライン2048ビツトのデータが32〜
(2048+制御符号)ビツトで伝送される結果、伝
送効率が改善されることになるし、また符号化デ
ータの出力先が蓄積装置の場合は、メモリ容量の
縮小化が可能となる。
According to these methods, for example, in the case of facsimile, one line of 2048-bit data is
As a result of transmitting in (2048+control code) bits, the transmission efficiency is improved, and if the output destination of the encoded data is a storage device, the memory capacity can be reduced.

しかし、上記従来方式によると、いずれも多く
のバツフアメモリが必要となる上、前者の場合に
は符号化の必要のないものまで符号化しなければ
ならないことから、また、後者の場合には前以つ
てラン数の計算を行ない、その結果によつて必要
ななものは符号化しなければならないことから、
いずれも処理が冗長となり、複雑化する上、符号
化処理装置に同じ未符号化データを繰り返し入力
する必要が生じ、データ処理時間が長くなる欠点
が生じる。
However, according to the above conventional methods, a large amount of buffer memory is required, and in the former case, even things that do not need to be encoded must be encoded; Since the number of runs must be calculated and what is necessary based on the result must be encoded,
In either case, the processing becomes redundant and complicated, and the same unencoded data needs to be repeatedly input to the encoding processing device, resulting in a disadvantage that the data processing time becomes longer.

[目的] 本発明は上記従来技術の欠点を除き、無駄のな
い符号化処理を行なうことによつて、構成が簡単
にしてデータ処理時間の短い符号化処理装置を提
供することを目的とする。
[Objective] It is an object of the present invention to eliminate the drawbacks of the above-mentioned prior art and provide an encoding processing device with a simple configuration and short data processing time by performing efficient encoding processing.

[構成] 以下、添付図面を参照しながら本発明の実施例
を詳細に説明する。
[Configuration] Hereinafter, embodiments of the present invention will be described in detail with reference to the accompanying drawings.

第1図は、本発明の一実施例を示している。こ
の実施例はフアクシミリ装置に本発明を適用した
例である。
FIG. 1 shows an embodiment of the invention. This embodiment is an example in which the present invention is applied to a facsimile machine.

同図において、前段のスキヤナ等のデータ発生
装置(図示略)から加えられる未符号化データ
SBは、ランレングス符号化を行なう符号化部1
および制御信号付加部2に加えられ、符号化部1
から出力される符号化データCDはセレクタ3の
入力端Bおよびカウンタ4に加えられている。
In the figure, unencoded data is added from a data generator (not shown) such as a scanner in the previous stage.
SB is an encoding unit 1 that performs run-length encoding.
and is added to the control signal adding section 2, and is added to the encoding section 1.
The encoded data CD output from the selector 3 is applied to the input terminal B of the selector 3 and the counter 4.

制御信号付加部2は、1ライン分の未符号化デ
ータSBの先頭に、未符号化データであることを
あらわす識別符号CSを付加するとともに、1ラ
イン分の未符号化データSBの末尾にEOL(End
Of Linesync)を付加したデータmSBを形成し、
このデータmSBをセレクタ3の入力端Aに加え
る。
The control signal addition unit 2 adds an identification code CS to the beginning of one line of unencoded data SB to indicate that it is unencoded data, and adds an EOL to the end of one line of unencoded data SB. (End
Of Linesync) is added to form a data mSB,
This data mSB is applied to input terminal A of selector 3.

カウンタ4は符号化データCDを計数し、その
計数値CC1をビツトオーバ検出部5に出力する。
ビツトオーバ検出部5は計数値CC1が未符号化デ
ータの1ライン分のビツト数(例えば2048)を越
えたか否かを判別し、その判別結果OBをカウン
タ6に出力する。これらのカウンタ4、ビツトオ
ーバ検出部5は、未符号化データSBが1ライン
分転送される毎にデータ発生装置から出力される
ライン同期信号LSによつてリセツトされる。
The counter 4 counts the encoded data CD and outputs the counted value CC1 to the bit over detection section 5.
The bit over detection section 5 determines whether the count value CC1 exceeds the number of bits for one line of unencoded data (for example, 2048), and outputs the determination result OB to the counter 6. These counter 4 and bit over detection section 5 are reset by a line synchronization signal LS output from the data generator every time one line of unencoded data SB is transferred.

カウンタ6は、ライン同期信号LSが加えられ
るタイミングで判別結果OBを計数するとともに
この判別結果OBが有意状態でないときはライン
同期信号LSによつてリセツトされるもので、そ
の動作態様はモード入力端MDの状態によつて変
化する。
The counter 6 counts the discrimination result OB at the timing when the line synchronization signal LS is applied, and is reset by the line synchronization signal LS when the discrimination result OB is not in a significant state.The counter 6 operates according to the mode input terminal. It changes depending on the condition of MD.

制御部7は、カウンタ6の計数値CC2を所定値
(例えば2〜5の整数の1つ)と比較し、その結
果に基づいて切換制御信号SDの論理レベルを変
化してセレクタ3の動作およびカウンタ6の動作
を制御する。
The control unit 7 compares the count value CC2 of the counter 6 with a predetermined value (for example, one of the integers from 2 to 5), and changes the logic level of the switching control signal SD based on the result to control the operation of the selector 3 and Controls the operation of the counter 6.

いま、切換制御信号SDが論理レベル「L」に
されている場合を考えると、このときセレクタ3
は入力端Bを選択する状態に作動する。
Now, considering the case where the switching control signal SD is set to the logic level "L", at this time, selector 3
operates to select input terminal B.

したがつて、この後1ライン分の未符号化デー
タSBが出力されたとすると、符号化部1の出力
符号化データCDがセレクト3を介して次段装置
に出力される。
Therefore, if one line of unencoded data SB is output after this, the output encoded data CD of the encoder 1 is outputted via the selector 3 to the next stage device.

このとき、1ライン分の未符号化データSBに
対応した符号化データCDのビツト数がカウンタ
4で計数され、その計数値CC1に対応した判別結
果OBがビツトオーバ検出部5より出力される。
At this time, the number of bits of the encoded data CD corresponding to one line of unencoded data SB is counted by the counter 4, and the determination result OB corresponding to the counted value CC1 is outputted from the bit over detection section 5.

カウンタ6は、このときの入力端MDの論理レ
ベルが「L」であるから、判別結果OBがビート
オーバ状態をあらわすとき、ライン周期信号LS
が加えられるタイミングでカウントアツプし、判
別結果OBがビツトオーバ状態ではない状態すな
わちビツトアンダ状態をあらわすとき、ライン同
期信号LSによつてリセツトされる。
Since the logic level of the input terminal MD at this time is "L", the counter 6 receives the line periodic signal LS when the determination result OB indicates the beat over state.
The count is incremented at the timing when is added, and when the determination result OB indicates a state that is not a bit over state, that is, a bit under state, it is reset by the line synchronization signal LS.

このようにして、符号化データCDが選択され
ているときは、符号化データCDがビツトオーバ
状態となる読取ラインの連続する数がカウンタ6
で計数される。
In this way, when the encoded data CD is selected, the number of consecutive read lines in which the encoded data CD is in the bit over state is counted by the counter 6.
is counted.

したがつて、カウンタ6の計数値CC2が所定値
を越えた場合、符号化効率が低下したと判断し、
制御部7は切換制御信号SDをライン同期信号LS
の発生直後に論理レベル「H」にして、セレクタ
3に入力端Aを選択させる。
Therefore, when the count value CC2 of the counter 6 exceeds a predetermined value, it is determined that the encoding efficiency has decreased,
The control unit 7 converts the switching control signal SD into the line synchronization signal LS.
Immediately after the occurrence of , the logic level is set to "H" to cause the selector 3 to select the input terminal A.

これにより、次のラインからはデータmSBが
次段装置に出力される。
As a result, data mSB is output from the next line to the next stage device.

また、カウンタ6は、入力端MDの論理レベル
が「H」の場合、判別結果OBがビツトアンダ状
態をあらわすときライン同期信号LSが加えられ
るタイミングでカウントアツプし、判別結果OB
がビツトオーバ状態をあらわすときライン同期信
号LSでリセツトされる。
Further, when the logic level of the input terminal MD is "H", the counter 6 counts up at the timing when the line synchronization signal LS is applied when the discrimination result OB indicates a bit under state, and
It is reset by line synchronization signal LS when indicates a bit over condition.

このようにして、データmSBが選択されてい
るときは符号化データCDがビツトアンダ状態と
なる読取ラインの連続する数がカウンタ6で計数
される。
In this way, when data mSB is selected, the counter 6 counts the number of consecutive read lines in which the encoded data CD is in a bit under state.

したがつて、この状態でカウンタ6の計数値
CC2が所定値を越えた場合、符号化効率が良くな
つたと判断し、制御部7は切換制御信号SDをラ
イン同期信号LSの発生直後に論理レベル「L」
にして、セレクタ3に入力端Bを選択させる。
Therefore, in this state, the count value of counter 6
When CC2 exceeds a predetermined value, it is determined that the encoding efficiency has improved, and the control unit 7 sets the switching control signal SD to the logic level "L" immediately after the generation of the line synchronization signal LS.
to cause selector 3 to select input terminal B.

これにより、次のラインからは符号化データ
CDが次段装置に出力される。
As a result, the encoded data starts from the next line.
The CD is output to the next device.

このようにして、セレクタ3が適宜制御され、
第2図に示したように、符号化効率が悪くなると
未符号化データSBに識別符号CSおよびEOLを付
加したデータが符号化データCDに代えて出力さ
れる。
In this way, the selector 3 is controlled appropriately,
As shown in FIG. 2, when encoding efficiency deteriorates, data obtained by adding identification codes CS and EOL to unencoded data SB is output instead of encoded data CD.

したがつて、フアクシミリ原稿等のように前後
のライン間の相関が強い場合、符号化効率の悪い
ラインが多数連続するため、上述したような処理
は非常に有効である。
Therefore, when there is a strong correlation between the preceding and succeeding lines, such as in a facsimile manuscript, there are many consecutive lines with poor encoding efficiency, so the above-described processing is very effective.

なお、当然のことながら、データ発生装置のデ
ータ転送と符号化部1の符号化処理とは同期され
ている。この同期処理は、符号化部1からライン
終了データの符号化終了時に出力される処理終了
信号EPが制御部7に加えられることにより、こ
の制御部7によつてなされる。
Note that, as a matter of course, data transfer by the data generator and encoding processing by the encoding unit 1 are synchronized. This synchronization process is performed by the control section 7 by applying to the control section 7 a processing end signal EP outputted from the encoding section 1 at the end of encoding of line end data.

また、上述した各要素は、マイクロプロセツサ
を用いた制御装置で置換することができる。
Further, each of the above-mentioned elements can be replaced by a control device using a microprocessor.

[効果] 以上説明したように、本発明によれば、符号化
中のデータをキヤンセルして未符号化データを出
力するというような操作がないため、符号化デー
タを一担蓄積するバツフアが不要となり、構成が
簡単で処理効率が良いという利点を得る。また、
ビツトオーバするデータブロツクの連続を監視し
ているので、ビツトオーバするデータブロツクと
しないデータブロツクが交互にくり返しあらわれ
るようなデータに対しても処理効率が良い。
[Effects] As explained above, according to the present invention, there is no operation such as canceling data being encoded and outputting unencoded data, so there is no need for a buffer to accumulate encoded data. This has the advantages of simple configuration and high processing efficiency. Also,
Since the series of bit-over data blocks is monitored, processing efficiency is good even for data in which data blocks that do bit-over and data blocks that do not occur alternately.

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

第1図は本発明の一実施例を示したブロツク
図、第2図は第1図に示した装置のデータ出力状
態を示した概略図である。 1…符号化部、2…制御符号付加部、3…セレ
クタ、4,6…カウンタ、5…ビツトオーバ検出
部、7…制御部。
FIG. 1 is a block diagram showing an embodiment of the present invention, and FIG. 2 is a schematic diagram showing a data output state of the apparatus shown in FIG. DESCRIPTION OF SYMBOLS 1... Encoding part, 2... Control code addition part, 3... Selector, 4, 6... Counter, 5... Bit over detection part, 7... Control part.

Claims (1)

【特許請求の範囲】 1 未符号化データを入力する入力手段と、前記
入力された未符号化データをランレングス符号化
する符号化手段と、符号化データのビツト数を未
符号化データの単位ブロツク毎に計数する第1の
計数手段と、この第1の計数手段の出力値が予め
定められた値より大きいことを検出する検出手段
と、この検出手段の出力を計数する第2の計数手
段と、この第2の計数手段の計数値に基づき、次
の未符号化データの単位ブロツクからは符号化デ
ータを出力するか未符号化データを出力するか選
択する選択手段を備え、前記第2の計数手段は前
記検出手段の出力が連続しなくなつた時点でリセ
ツトされることを特徴とした符号化処理装置。 2 特許請求の範囲第1項記載において、未符号
化データをそのまま出力しているときには符号化
処理とその符号化データのビツト数のカウント処
理はそのまま継続させ、カウント数が前記予め定
められたビツト数より小さい単位ブロツクが所定
数連続したときは次の未符号化データの単位ブロ
ツクから符号化データを出力させることを特徴と
した符号化処理装置。
[Claims] 1. An input means for inputting unencoded data; an encoding means for run-length encoding the input unencoded data; A first counting means for counting each block, a detecting means for detecting that the output value of the first counting means is larger than a predetermined value, and a second counting means for counting the output of the detecting means. and selection means for selecting whether to output encoded data or unencoded data from the next unit block of unencoded data, based on the count value of the second counting means, An encoding processing device characterized in that the counting means is reset at the time when the output of the detecting means ceases to be continuous. 2. In claim 1, when unencoded data is output as it is, the encoding process and the process of counting the number of bits of the encoded data are continued as they are, and when the counted number reaches the predetermined bit number, 1. An encoding processing apparatus characterized in that when a predetermined number of unit blocks smaller than the number of unencoded data consecutively occur, encoded data is output from the next unit block of unencoded data.
JP59049314A 1984-03-16 1984-03-16 Encoding processor Granted JPS60194670A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP59049314A JPS60194670A (en) 1984-03-16 1984-03-16 Encoding processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP59049314A JPS60194670A (en) 1984-03-16 1984-03-16 Encoding processor

Publications (2)

Publication Number Publication Date
JPS60194670A JPS60194670A (en) 1985-10-03
JPH0568149B2 true JPH0568149B2 (en) 1993-09-28

Family

ID=12827495

Family Applications (1)

Application Number Title Priority Date Filing Date
JP59049314A Granted JPS60194670A (en) 1984-03-16 1984-03-16 Encoding processor

Country Status (1)

Country Link
JP (1) JPS60194670A (en)

Also Published As

Publication number Publication date
JPS60194670A (en) 1985-10-03

Similar Documents

Publication Publication Date Title
US3895184A (en) Facsimile system with buffered transmission and reception
US4131915A (en) Facsimile signal transmission system
EP0504903B1 (en) Apparatus for and method of preprocessing binary picture data prior to run-length encoding
JPS6126737B2 (en)
JPH01279671A (en) Encoding method for document image data
US4070694A (en) Picture image information band compression and transmission system
US5022088A (en) Image processing apparatus with provision for memory operation
US4688100A (en) Video data encoding/decoding apparatus
JPH04270568A (en) Data compression system in picture processing unit
JPS6310632B2 (en)
GB2138604A (en) Data decoding
US5345316A (en) Image data encoding/decoding apparatus for concurrent processing of multiple image data streams
US4955061A (en) Method and apparatus for processing an image signal
US4918540A (en) System for encoding or decoding analog video signals
EP0034187B1 (en) Compressed data restoring system
JPH0568149B2 (en)
US5291303A (en) Facsimile apparatus
EP0153630A2 (en) Two dimensional coding apparatus
JPH04270569A (en) Data compression system for picture processor
JP3171601B2 (en) Control method for facsimile machine
JPS60201774A (en) Encoding processing device
JPS6329472B2 (en)
JPH0767140B2 (en) Equipment
JP3159811B2 (en) Demodulator
JP2645954B2 (en) Facsimile machine