JP2806310B2 - Encoding device and facsimile device having the same - Google Patents

Encoding device and facsimile device having the same

Info

Publication number
JP2806310B2
JP2806310B2 JP7175155A JP17515595A JP2806310B2 JP 2806310 B2 JP2806310 B2 JP 2806310B2 JP 7175155 A JP7175155 A JP 7175155A JP 17515595 A JP17515595 A JP 17515595A JP 2806310 B2 JP2806310 B2 JP 2806310B2
Authority
JP
Japan
Prior art keywords
code
data
run length
bit
length
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 - Fee Related
Application number
JP7175155A
Other languages
Japanese (ja)
Other versions
JPH0927913A (en
Inventor
恭通 村上
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.)
Murata Machinery Ltd
Original Assignee
Murata Machinery 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 Murata Machinery Ltd filed Critical Murata Machinery Ltd
Priority to JP7175155A priority Critical patent/JP2806310B2/en
Publication of JPH0927913A publication Critical patent/JPH0927913A/en
Application granted granted Critical
Publication of JP2806310B2 publication Critical patent/JP2806310B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】 この発明は、画データを構
成する白黒の画素データのランレングスが符号化される
ようにした符号化装置及びそれを備えたファクシミリ装
置に関するものである。
[0001] 1. Field of the Invention [0002] The present invention relates to an encoding apparatus for encoding the run length of black and white pixel data constituting image data, and a facsimile apparatus having the encoding apparatus.

【0002】[0002]

【従来の技術】 一般に、例えばファクシミリ装置にお
いて、受信画データ等を画像メモリに記憶する場合に
は、その画データをモディファイドハフマン方式(MH
方式)、モディファイドリード方式(MR方式)、或は
モディファイドMR方式(MMR方式)等の標準符号化
方式で符号化して、同データを圧縮した状態で記憶する
ようにしている。
2. Description of the Related Art Generally, for example, in a facsimile apparatus, when received image data and the like are stored in an image memory, the image data is stored in a modified Huffman system (MH).
System), modified read system (MR system), or modified MR system (MMR system), and the data is encoded and stored in a compressed state.

【0003】[0003]

【発明が解決しようとする課題】 ところが、この従来
のMH方式、MR方式及びMMR方式においては、画像
メモリから読み出した符号化データを復号する際に、符
号の切れ目が判別しにくいため、復号が面倒でその処理
に時間がかかるという問題があった。即ち、例えばMH
方式においては、画データを構成する白黒の画素データ
のランレングス(連続数)が所定の符号にて表される
が、その符号化データは、符号の切れ目に区切りを示す
符号が入れられることなく、1ライン分が連続して画像
メモリに記憶される。このため、符号の切れ目を検出す
るためには、符号を1ビットずつ順次確認しながら、当
該符号が何れのランレングスを表すものであるのかを逐
次判別する必要が生じ、その処理に時間がかかるもので
あった。
However, in the conventional MH system, MR system and MMR system, when decoding the encoded data read from the image memory, it is difficult to distinguish between the code breaks. There is a problem that the processing is time-consuming and troublesome. That is, for example, MH
In the method, the run length (the number of continuations) of the black and white pixel data constituting the image data is represented by a predetermined code, but the coded data is not inserted with a code indicating a delimiter at a code break. , One line is continuously stored in the image memory. For this reason, in order to detect a break in a code, it is necessary to sequentially determine which run length the code represents, while sequentially checking the code one bit at a time, and this processing takes time. Was something.

【0004】一方、前述した符号化方式以外に、画デー
タにおける各ランレングスを例えば8ビットという固定
ビット長の符号で表して画像メモリに記憶する方法もあ
る。この方法によれば、各ランレングスが常に固定ビッ
ト長の符号で表されるので、符号の切れ目を簡単に判別
することができ、復号処理を短時間で簡単に行うことが
できる。しかしながら、この方法においては、各ランレ
ングスを表すために常に固定ビット長分のデータ量が必
要となるため、データの圧縮率が低くて画像メモリの容
量が浪費されるという問題があった。
On the other hand, besides the above-mentioned encoding method, there is a method of expressing each run length in image data by a code having a fixed bit length of, for example, 8 bits and storing the same in an image memory. According to this method, since each run length is always represented by a code having a fixed bit length, a break in the code can be easily determined, and the decoding process can be easily performed in a short time. However, in this method, since a data amount of a fixed bit length is always required to represent each run length, there is a problem that the data compression rate is low and the capacity of the image memory is wasted.

【0005】この発明の目的は、符号の切れ目が判別し
易くて、復号を容易かつ短時間に行うことができるとと
もに、データの圧縮率を極力高くできて、メモリ容量の
消費を抑えることができる符号化装置及びそれを備えた
ファクシミリ装置を提供することにある。
SUMMARY OF THE INVENTION An object of the present invention is to make it easy to determine a break in a code, to perform decoding easily and in a short time, to increase a data compression rate as much as possible, and to suppress consumption of memory capacity. An object of the present invention is to provide an encoding device and a facsimile device including the same.

【0006】[0006]

【課題を解決するための手段】 上記の目的を達成する
ために、請求項1に記載の符号化装置の発明では、画デ
ータを構成する白黒の画素データのランレングスを固定
ビット長の符号に変換する変換手段を備え、その変換手
段は、出現頻度の高い所定のランレングスを出現頻度の
低いそれ以外のランレングスの上位ビットとは異なる符
号であって、且つ当該それ以外のランレングスよりも短
いビット長の符号に変換するものである。
In order to achieve the above object, according to the first aspect of the present invention, a run length of black and white pixel data constituting image data is converted into a code having a fixed bit length. A conversion unit for converting a predetermined run length having a high frequency of occurrence into a code different from a high-order bit of other run lengths having a low frequency of occurrence.
And a code having a bit length shorter than the other run lengths .

【0007】請求項2に記載の発明では、請求項1に記
載の符号化装置において、変換手段は、画データのサイ
ズに応じて、出現頻度の高い所定のランレングスを4ビ
ットの符号に変換し、それ以外のランレングスを8ビッ
トの符号に変換するものである。
According to a second aspect of the present invention, in the encoding apparatus according to the first aspect, the converting means includes a step of converting the size of the image data.
In this case, a predetermined run length having a high appearance frequency is converted into a 4-bit code, and the other run lengths are converted into an 8-bit code.

【0008】請求項3に記載の発明では、請求項1又は
2に記載の符号化装置において、受信された符号化デー
タを白黒のランレングスに復号する第1の復号手段と、
その復号データを固定ビット長の符号に変換する前記変
換手段と、その固定ビット長の符号化データ及びエラー
ラインであることを示す固定ビット長の符号化データ
記憶する画像メモリと、画像メモリ内の符号化データを
読み出して白黒のランレングスに復号するとともに、エ
ラーラインを判断する第2の復号手段とを備えたもので
ある。
According to a third aspect of the present invention, in the encoding apparatus according to the first or second aspect, first decoding means for decoding the received encoded data into a black and white run length,
Said conversion means for converting the decoded data into code of a fixed bit length, the encoded data and error of the fixed bit length
An image memory for storing the encoded data of a fixed bit length indicating the line, as well as decoding the run length of black and white reads the encoded data in the image memory, e
And second decoding means for judging the error line .

【0009】従って、請求項1に記載の発明では、画デ
ータを構成する白黒の画素データのランレングスは、固
定ビット長の符号に変換される。このため、この符号化
したデータをランレングスに復号する場合、各符号の境
界を簡単に判別することができ、各符号を固定ビット単
位で容易かつ短時間に復号することができる。
Therefore, according to the first aspect of the present invention, the run length of black and white pixel data constituting image data is converted into a code having a fixed bit length. Therefore, when the encoded data is decoded to run-length, the boundaries of each code can be easily determined, and each code can be easily and quickly decoded in fixed bit units.

【0010】又、出現頻度の高い所定のランレングス
は、出現頻度の低いそれ以外のランレングスの上位ビッ
トとは異なる符号であって、且つ当該それ以外のランレ
ングスよりも短いビット長の符号に変換に変換される。
このため、符号化データを極力圧縮することができて、
メモリ容量の消費を抑えることもできる。
[0010] The predetermined run length having a high appearance frequency is set to a higher order bit than other run lengths having a low appearance frequency.
Code that is different from the
Is converted into a code having a bit length shorter than the code length.
Therefore, the encoded data can be compressed as much as possible,
It is also possible to suppress consumption of memory capacity.

【0011】請求項2に記載の発明では、画データのサ
イズに応じて、出現頻度の高い所定のランレングスを4
ビットの符号に変換し、それ以外のランレングスを8ビ
ットの符号に変換する。このように符号化したデータを
ランレングスに復号する場合には、例えば各符号を4ビ
ット単位で読み出して、その符号が4ビットの符号であ
るか否かを判断する。ここで、その符号が4ビットの符
号でない場合には、さらに4ビットを読み出して、8ビ
ット単位で復号すれば良い。このため、各符号の境界を
簡単に判別することができて、復号を容易かつ短時間に
行うことができる。
According to the second aspect of the present invention, the image data
Depending on the size, a predetermined run length with a high appearance frequency
The code is converted into a code of bits, and the other run lengths are converted into codes of 8 bits. When decoding the encoded data in a run length, for example, each code is read in units of 4 bits, and it is determined whether or not the code is a 4-bit code. Here, if the code is not a 4-bit code, four more bits may be read and decoded in units of eight bits. For this reason, the boundary of each code can be easily determined, and decoding can be performed easily and in a short time.

【0012】又、出現頻度の高い所定のランレングス
は、4ビットの符号に変換される。このため、ランレン
グスをすべて8ビットの固定ビット長の符号に変換して
画像メモリに記憶する場合に比べて、データの圧縮率を
高くすることができて、メモリ容量の消費を抑えること
もできる。
A predetermined run length having a high appearance frequency is converted into a 4-bit code. Therefore, the data compression ratio can be increased and the consumption of memory capacity can be suppressed as compared with a case where all run lengths are converted into codes having a fixed bit length of 8 bits and stored in the image memory. .

【0013】通常、ファクシミリ装置では、画データが
受信されたとき、その画データをランレングスに復号し
て、各ラインデータにエラーがあるか否かのチェックを
行っている。ここで、請求項3に記載の発明では、第1
の復号手段による復号データに基づいて受信データのエ
ラーチェックをし、同時にその復号データを固定ビット
長の符号に変換して画像メモリに記憶させる。言い換え
れば、エラーチェックのために復号したデータを利用し
て固定ビット長の符号に変換してメモリに記憶するよう
にしているので、処理にムダが生じない。又、印字のた
めに画像メモリ内のデータを読み出して第2の復号手段
により復号するとき、その復号が短時間で容易にでき
て、印字動作を迅速かつスムーズに行うことができる。
Normally, in a facsimile apparatus, when image data is received, the image data is decoded into a run length to check whether or not each line data has an error. Here, in the invention described in claim 3, the first
The error check of the received data is performed based on the decoded data by the decoding means, and at the same time, the decoded data is converted into a fixed bit length code and stored in the image memory. In other words, since data decoded for error checking is converted into a code having a fixed bit length and stored in the memory, no processing is wasted. When data in the image memory is read for printing and decoded by the second decoding means, the decoding can be easily performed in a short time, and the printing operation can be performed quickly and smoothly.

【0014】[0014]

【発明の実施の形態】 以下、この発明を具体化した一
実施形態を、図1〜図5に基づいて詳細に説明する。図
1に、この実施形態のファクシミリ装置の回路構成を示
す。CPU(中央処理装置)11は変換手段、第1の復
号手段及び第2の復号手段を構成し、このCPU11に
はROM(リードオンリメモリ)12及びRAM(ラン
ダムアクセスメモリ)13が接続されている。ROM1
2は、装置全体の動作を制御するためのプログラム等を
記憶している。RAM13は、各種情報を一時的に記憶
する。NCU(ネットワークコントロールユニット)1
4は、ファクシミリ装置と電話回線との接続を制御す
る。モデム15は、送受信データの変調及び復調を行
う。
DESCRIPTION OF THE PREFERRED EMBODIMENTS One embodiment of the present invention will be described below in detail with reference to FIGS. FIG. 1 shows a circuit configuration of the facsimile apparatus of this embodiment. A CPU (Central Processing Unit) 11 constitutes a conversion unit, a first decoding unit, and a second decoding unit, and a ROM (Read Only Memory) 12 and a RAM (Random Access Memory) 13 are connected to the CPU 11. . ROM1
Reference numeral 2 stores a program and the like for controlling the operation of the entire apparatus. The RAM 13 temporarily stores various information. NCU (Network Control Unit) 1
Reference numeral 4 controls the connection between the facsimile machine and the telephone line. The modem 15 performs modulation and demodulation of transmission / reception data.

【0015】読取部16は、図示しない原稿台にセット
された原稿上の画像を光学的に読み取る。画像メモリ1
7は、受信された画データや読取部16で読み取られた
画データを、CPU11の制御により後述する中間符号
に変換した状態で記憶する。プリントバッファ18は、
画像メモリ17から読み出されて、CPU11の制御に
より復号された画データを、1ライン分(ラインデー
タ)毎に記憶する。記録部19は、プリントバッファ1
8に記憶されたラインデータに基づいて、記録紙上に印
字を行う。操作部20は、電話番号等を入力するダイヤ
ルキー、ファクシミリ動作を開始させるためのスタート
キー等の各種操作キーを備えている。
The reading section 16 optically reads an image on a document set on a document table (not shown). Image memory 1
Reference numeral 7 stores received image data and image data read by the reading unit 16 in a state converted into an intermediate code described later under the control of the CPU 11. The print buffer 18
The image data read from the image memory 17 and decoded under the control of the CPU 11 is stored for each line (line data). The recording unit 19 stores the print buffer 1
The printing is performed on the recording paper based on the line data stored in 8. The operation unit 20 includes various operation keys such as a dial key for inputting a telephone number and the like and a start key for starting a facsimile operation.

【0016】前記ROM12には、例えば図4及び図5
に示すように、画データを構成する白黒の各ランレング
スにそれぞれ対応して、MH符号及び中間符号がテーブ
ルデータとして記憶されている。図4はA4サイズの画
データに対応するテーブルデータであり、図5はB4サ
イズ以上の画データに対応するテーブルデータである。
これらテーブルデータは、画データのサイズに応じて必
要な方が選択される。尚、通信データのサイズに関する
情報は、画データの通信に先立って、発信側装置と受信
側装置との間でやり取りされるファクシミリ制御信号
(プロトコル)によって、発信側から受信側へと伝送さ
れる。又、中間符号とは、ランレングスを4ビット或い
は8ビットという2種類の固定ビット長の符号で表した
ものである。MH符号においては、出現頻度の高いラン
レングスほど短いビット長の符号で表すようにしている
が、図4及び図5より明らかなように、中間符号におい
ても、出現頻度の高いランレングスは4ビットという短
い方の符号で表し、それ以外のランレングスは8ビット
という長い方の符号で表すようにしている。本実施形態
では、A4サイズの画データについては、”1”〜”1
0”のランレングスを4ビットの中間符号で表し、B4
サイズ以上の画データについては、”1”〜”9”のラ
ンレングスを4ビットの中間符号で表すようにしてい
る。又、中間符号においても、MH符号の場合と同様
に、63画素までのランレングスをターミネイティング
符号で表し、64画素以上のランレングスをメイクアッ
プ符号とそれに続くターミネイティング符号とで表すよ
うにしている。更に、ROM12には、通信画データの
各ラインデータの末尾に付加されるEOL符号(ライン
終端符号)に対応する8ビットの中間符号が記憶されて
いるとともに、ラインデータがエラーラインである旨を
示す8ビットの中間符号(ERL符号とする)が記憶さ
れている。
In the ROM 12, for example, FIGS.
As shown in FIG. 7, an MH code and an intermediate code are stored as table data corresponding to each of the black and white run lengths constituting the image data. FIG. 4 shows table data corresponding to image data of A4 size, and FIG. 5 shows table data corresponding to image data of B4 size or more.
The required table data is selected according to the size of the image data. Note that information on the size of the communication data is transmitted from the transmitting side to the receiving side by a facsimile control signal (protocol) exchanged between the transmitting side apparatus and the receiving side apparatus prior to the communication of the image data. . The intermediate code is one in which the run length is represented by two types of codes having a fixed bit length of 4 bits or 8 bits. In the MH code, a run length with a higher appearance frequency is represented by a code with a shorter bit length. As is clear from FIGS. 4 and 5, a run length with a higher appearance frequency is also 4 bits in the intermediate code. , And the other run lengths are represented by the longer code of 8 bits. In this embodiment, “1” to “1” are set for A4 size image data.
The run length of "0" is represented by a 4-bit intermediate code.
For image data larger than the size, the run length of "1" to "9" is represented by a 4-bit intermediate code. Also, in the intermediate code, as in the case of the MH code, the run length up to 63 pixels is represented by a terminating code, and the run length of 64 pixels or more is represented by a makeup code and the following terminating code. I have. Further, the ROM 12 stores an 8-bit intermediate code corresponding to an EOL code (line end code) added to the end of each line data of the communication image data, and indicates that the line data is an error line. The stored 8-bit intermediate code (referred to as ERL code) is stored.

【0017】次に、前記CPU11によって実行される
画データの受信時における処理動作を、図2のフローチ
ャートに従って説明する。さて、発信側からMH方式、
MR方式或はMMR方式にて符号化されている画データ
が送信されてきて、その画データが受信されると、原稿
1ページ分の受信画データの末尾に付加されているRT
C信号(制御復帰信号)が検出されたか否かが判別され
る(ステップS1〜S2)。RTC信号が検出されない
場合には、各ラインデータの末尾に付加されているEO
L信号(ライン終端信号)が検出されたか否かが判別さ
れる(ステップS3)。尚、RTC信号はEOL信号が
6つ連続してなるものであり、原稿1ページ分の受信画
データの最終ラインの末尾に付加されている。ここで、
EOL信号が検出されない場合には、符号化されている
受信データが、画データを構成する白黒の画素データの
ランレングスに復号される(ステップS4)。
Next, the processing operation performed by the CPU 11 when receiving image data will be described with reference to the flowchart of FIG. By the way, MH method from the transmitting side,
When image data encoded by the MR method or the MMR method is transmitted and the image data is received, the RT added to the end of the received image data for one page of the document is received.
It is determined whether the C signal (control return signal) has been detected (steps S1 and S2). If no RTC signal is detected, the EO added to the end of each line data
It is determined whether or not the L signal (line end signal) has been detected (step S3). The RTC signal is composed of six consecutive EOL signals, and is added to the end of the last line of the received image data for one page of the document. here,
If the EOL signal is not detected, the encoded received data is decoded into a run length of black and white pixel data constituting the image data (step S4).

【0018】次に、そのランレングスが“64”よりも
小さいか否かが判別される(ステップS5)。この判別
において、ランレングスが“64”以上の場合には、そ
のランレングスが“64”の倍数のメイクアップ値と、
余りのターミネイティング値とに分けられる(ステップ
S6)。そして、図4又は図5のテーブルデータに従っ
て、前記メイクアップ値がメイクアップ符号としての8
ビットの中間符号(8ビットコード)に変換される(ス
テップS7)。例えば、“64”というメイクアップ値
は、その値を“64”で割った商“1”に“64”を加
算した“65”という整数値を2進数化した中間符号
“01000001”で表され、“128”というメイ
クアップ値は、その値を“64”で割った商“2”に
“64”を加算した“66”という整数値を2進数化し
た中間符号“01000010”で表される。つまり、
メイクアップ値は、その値を“64”で割った商を“6
4”に加算した結果を2進数化した符号に変換される。
なお、加算される数値は“64”に限定されるものでは
ない。
Next, it is determined whether or not the run length is smaller than "64" (step S5). In this determination, if the run length is “64” or more, the run length is a makeup value that is a multiple of “64”;
It is divided into the remaining terminating value (step S6). Then, according to the table data of FIG. 4 or FIG.
It is converted into a bit intermediate code (8-bit code) (step S7). For example, a make-up value of “64” is represented by an intermediate code “01000001” obtained by binarizing an integer value of “65” obtained by adding “64” to a quotient “1” obtained by dividing the value by “64”. , “128” is represented by an intermediate code “01000010” obtained by binarizing an integer value of “66” obtained by adding “64” to a quotient “2” obtained by dividing the value by “64”. . That is,
The makeup value is obtained by dividing the value obtained by dividing the value by “64” by “6”.
The result of addition to 4 "is converted into a binary code.
The value to be added is not limited to “64”.

【0019】一方、前記ステップS5において、ランレ
ングスが“64”よりも小さいと判断された場合には、
そのランレングスはターミネイティング値であると判断
される。次に、そのターミネイティング値が、例外エリ
アに属するか否かが判断される(ステップS8)。ここ
で、例外エリアとは、4ビットの中間符号に変換される
ランレングスの範囲のことである。即ち、例外エリア
は、受信データがA4サイズである場合には図4に示す
ように“1”〜“10”のランレングスの範囲となり、
受信データがB4サイズ以上である場合には図5に示す
ように“1”〜“9”のランレングスの範囲となる。
又、前記ステップS7の処理後ステップS8に移行し、
ステップS6で分割されたターミネイティング値につい
ても例外エリアに属するか否かが判断される。
On the other hand, if it is determined in step S5 that the run length is smaller than "64",
The run length is determined to be a terminating value. Next, it is determined whether or not the terminating value belongs to an exception area (step S8). Here, the exceptional area is a range of run length converted into a 4-bit intermediate code. That is, when the received data is A4 size, the exceptional area has a run length range of "1" to "10" as shown in FIG.
When the received data is equal to or larger than the B4 size, the run length ranges from "1" to "9" as shown in FIG.
After step S7, the process proceeds to step S8.
It is determined whether the terminating value divided in step S6 also belongs to the exception area.

【0020】ターミネイティング値が例外エリアに該当
する場合には、図4又は図5のテーブルデータに従っ
て、そのターミネイティング値がターミネイティング符
号としての4ビットの中間符号に変換される(ステップ
S9)。例えば、図4に示すように、受信データがA4
サイズである場合において“1”のターミネイティング
値はその値に“5”を加算した“6”という整数値を2
進数化した中間符号“0110”で表わされる。又、図
5に示すように、受信データがB4サイズ以上である場
合において“1”のターミネイティング値はその値に
“6”を加算した“7”という整数値を2進数化した中
間符号“0111”で表わされる。つまり、受信データ
がA4サイズである場合には、“1”〜“10”のター
ミネイティング値は、その値に“5”を加算した結果を
2進数化した中間符号に変換される。又、受信データが
B4サイズ以上である場合には、“1”〜“9”のター
ミネイティング値は、その値に“6”を加算した結果を
2進数化した中間符号にそれぞれ変換される。
If the terminating value corresponds to the exceptional area, the terminating value is converted to a 4-bit intermediate code as a terminating code according to the table data of FIG. 4 or 5 (step S9). For example, as shown in FIG.
In the case of the size, the terminating value of “1” is an integer value of “6” obtained by adding “5” to the value, and 2
It is represented by an intermediate code “0110” converted into a base number. As shown in FIG. 5, when the received data is B4 size or more, the terminating value of “1” is an intermediate code obtained by binarizing an integer value of “7” obtained by adding “6” to the value. 0111 ". That is, when the received data is A4 size, the terminating value of “1” to “10” is converted into an intermediate code in which the result of adding “5” to the value is converted into a binary number. If the received data is B4 size or larger, the terminating value of “1” to “9” is converted into an intermediate code in which the result of adding “6” to the value is converted into a binary number.

【0021】ここで、例外エリアのターミネイティング
値をその値に“5”又は“6”という所定の数値を加算
した結果に基づいて符号化するのは、後述する中間符号
の復号時に、4ビットコードと8ビットコードの上位4
ビットとを確実に区別できるようにするためである。図
4及び図5より明らかなように、中間符号における4ビ
ットコードと8ビットコードの上位4ビットとは、違う
符号となっている。
Here, the encoding of the terminating value of the exceptional area based on the result obtained by adding a predetermined numerical value of "5" or "6" to the value is performed when decoding an intermediate code described later by four bits. Top 4 of codes and 8-bit codes
This is to ensure that the bits can be distinguished. As apparent from FIGS. 4 and 5, the 4-bit code in the intermediate code and the upper 4 bits of the 8-bit code are different codes.

【0022】一方、前記ステップS8において、ターミ
ネイティング値が例外エリアに該当しない場合には、図
4及び図5のテーブルデータに従って、そのターミネイ
ティング値がターミネイティング符号としての8ビット
の中間符号(8ビットコード)に変換される(ステップ
S10)。この場合には、ターミネイティング値はその
まま2進数化した符号に変換される。
On the other hand, if the terminating value does not correspond to the exceptional area in step S8, the terminating value is converted to an 8-bit intermediate code (8) as the terminating code in accordance with the table data shown in FIGS. (Step S10). In this case, the terminating value is directly converted into a binary code.

【0023】そして、この符号化されたデータが画像メ
モリ17に記憶される(ステップS11)。その後、前
記ステップS2に戻って、ステップS2〜S11の動作
が繰り返し行われ、受信された符号化データが、復号さ
れた後に中間符号に順次変換されて画像メモリ17に記
憶される。
Then, the encoded data is stored in the image memory 17 (step S11). Thereafter, returning to step S2, the operations of steps S2 to S11 are repeatedly performed, and the received encoded data is sequentially converted into an intermediate code after being decoded and stored in the image memory 17.

【0024】尚、発信側から送信されてくる符号化デー
タにおける各ラインデータは、その先頭が実際に白画素
であるか黒画素であるかにかかわらず、常に白画素のラ
ンレングスを表す符号で始まっている。つまり、発信側
において、ラインデータの先頭が実際には黒画素のラン
レングスで始まっている場合には、その黒ランの前に
“0”の白ランを表す符号が付加される。従って、前記
画像メモリ17には、常に白ランを表す符号を最初にし
て、白ランを表す符号と黒ランを表す符号とが交互に記
憶される。
Each line data in the encoded data transmitted from the transmitting side is always a code representing the run length of a white pixel regardless of whether the head is actually a white pixel or a black pixel. Has begun. That is, when the head of the line data actually starts with the run length of the black pixel on the transmitting side, a code representing a white run of “0” is added before the black run. Therefore, in the image memory 17, a code representing a white run and a code representing a black run are always stored alternately with the code representing a white run first.

【0025】そして、前記ステップS3の判別におい
て、EOL信号が検出された場合には、1ライン分のデ
ータの受信及び符号化処理が終了したと判断され、その
ラインがエラーラインか否かが判断される(ステップS
12)。このエラーラインか否かの判断は、例えば前記
ステップS4で復号されたランレングスの1ライン分の
合計、換言すれば1ライン分の画素データの合計数が、
規定量(A4の場合には1728、B4の場合には20
48)になったか否か等に基づいて行われる。エラーラ
インではないと判断された場合には、図4又は図5のテ
ーブルデータに従って、EOL符号が中間符号に変換さ
れて画像メモリ17に記憶される(ステップS13)。
図4及び図5に示すように、EOL符号は“64”とい
う整数を2進数化した“01000000”という8ビ
ットの中間符号に変換される。一方、エラーラインであ
ると判断された場合には、画像メモリ17に記憶された
エラーラインを無効化すべく、そのメモリ17における
アドレスがエラーラインの先頭に戻される(ステップS
14)。そして、受信ラインがエラーラインである旨を
示す中間符号としてのERL符号が画像メモリ17に記
憶される(ステップS15)。
If the EOL signal is detected in step S3, it is determined that the reception and encoding of one line of data have been completed, and it is determined whether the line is an error line. (Step S
12). The determination as to whether or not this is an error line is made, for example, by determining the total of one line of the run length decoded in step S4, in other words, the total number of pixel data of one line.
Specified amount (1728 for A4, 20 for B4
48), and so on. If it is determined that the line is not an error line, the EOL code is converted into an intermediate code and stored in the image memory 17 according to the table data of FIG. 4 or 5 (step S13).
As shown in FIGS. 4 and 5, the EOL code is converted into an 8-bit intermediate code “01000000” obtained by converting an integer “64” into a binary number. On the other hand, if it is determined that the line is an error line, the address in the memory 17 is returned to the head of the error line in order to invalidate the error line stored in the image memory 17 (step S).
14). Then, an ERL code as an intermediate code indicating that the reception line is an error line is stored in the image memory 17 (step S15).

【0026】その後、次のラインデータの受信及び符号
化処理に移行するべく、前記ステップS2に戻って、ス
テップS2〜S15の動作が行われる。一方、前記ステ
ップS2の判別において、RTC信号が検出された場合
には、原稿1ページ分のデータの受信及び符号化処理が
終了したと判断され、そのRTC符号が画像メモリ17
に記憶される(ステップS16)。つまり、EOL符号
を表す中間符号が6つ連続して記憶される。その後、次
ページのデータがあるか否かが判別される(ステップS
17)。次ページのデータがある場合には、次ページの
データの受信及び符号化処理に移行するべく、前記ステ
ップS2に戻って、ステップS2〜S17の動作が行わ
れ、次ページがない場合には、処理が終了される。
Thereafter, returning to step S2, the operations of steps S2 to S15 are performed in order to shift to the reception and encoding processing of the next line data. On the other hand, if the RTC signal is detected in the determination in step S2, it is determined that the reception and encoding of the data of one page of the document have been completed, and the RTC code is stored in the image memory 17.
(Step S16). That is, six intermediate codes representing the EOL code are stored consecutively. Thereafter, it is determined whether there is data for the next page (step S).
17). If there is data for the next page, the process returns to step S2 to perform the process of receiving and encoding the data for the next page, and the operations of steps S2 to S17 are performed. The process ends.

【0027】次に、前記CPU11によって実行される
画データの印字時における処理動作を、図3のフローチ
ャートに従って説明する。さて、この印字処理時には、
まず画像メモリ17に記憶された1ライン分が連続する
符号データが順次4ビット単位で読み出される(ステッ
プS18)。そして、読み出された符号が4ビットコー
ド(4ビットの中間符号)であるか否かが判断される
(ステップS19)。このとき、4ビットコードと8ビ
ットコードの上位4ビットとは異なる符号であるため、
読み出された符号が4ビットコードであるか否かを容易
かつ確実に判断できる。読み出された符号が4ビットコ
ードである場合には、記憶データのサイズに応じて、図
4又は図5に従って、その4ビットコードがランレング
スに復号される(ステップS20)。例えば、図4に示
すように、記憶データがA4サイズの場合において、
“0111”の中間符号は、それを10進数化した値
“7”から“5”を減算した“2”というランレングス
に変換される。又、図5に示すように、記憶データがB
4サイズ以上の場合において、“0111”の中間符号
は、それを10進数化した値“7”から“6”を減算し
た“1”というランレングスに変換される。
Next, the processing operation at the time of printing image data executed by the CPU 11 will be described with reference to the flowchart of FIG. By the way, during this printing process,
First, code data in which one line of data stored in the image memory 17 is successively read out in units of 4 bits (step S18). Then, it is determined whether or not the read code is a 4-bit code (4-bit intermediate code) (step S19). At this time, since the 4-bit code and the upper 4 bits of the 8-bit code are different codes,
It is possible to easily and reliably determine whether the read code is a 4-bit code. If the read code is a 4-bit code, the 4-bit code is decoded into run length according to FIG. 4 or FIG. 5 according to the size of the stored data (step S20). For example, as shown in FIG. 4, when the storage data is A4 size,
The intermediate code of “0111” is converted into a run length of “2” which is obtained by subtracting “5” from a value “7” obtained by converting the intermediate code into a decimal number. Also, as shown in FIG.
In the case of four or more sizes, the intermediate code of “0111” is converted to a run length of “1” obtained by subtracting “6” from a value “7” obtained by converting the intermediate code into a decimal number.

【0028】一方、前記ステップS19において、読み
出された符号が4ビットコードではないと判断された場
合には、8ビットコードであると判断されて、さらに連
続する4ビットの符号が読み出される(ステップS2
1)。そして、まずその8ビットコードがRTC符号で
あるか否かが判別され(ステップS22)、RTC符号
でない場合には、読み出された符号がERL符号である
か否かが判別される(ステップS23)。ここで、ER
L符号でない場合には、読み出された符号がEOL符号
であるか否かが判別される(ステップS24)。そし
て、EOL符号でない場合には、読み出された8ビット
の符号データが図4又は図5に従ってランレングスに復
号される(ステップS25)。
On the other hand, if it is determined in step S19 that the read code is not a 4-bit code, it is determined that the code is an 8-bit code, and a continuous 4-bit code is read (step S19). Step S2
1). Then, it is first determined whether or not the 8-bit code is an RTC code (step S22). If not, it is determined whether or not the read code is an ERL code (step S23). ). Where ER
If it is not the L code, it is determined whether the read code is an EOL code (step S24). If the code is not the EOL code, the read 8-bit code data is decoded to run length according to FIG. 4 or 5 (step S25).

【0029】次に、このランレングスが“64”より小
さいか否かが判断される(ステップS26)。ここで、
前記ランレングスが“64”より小さい場合には、その
ランレングスがターミネイティング値であると判断され
る。画像メモリ17には、常に白ランを表す符号を最初
にして、白ランを表す符号と黒ランを表す符号とが交互
に記憶されており、復号されたランレングスがターミネ
イティング値の場合には、その度にランレングスの白黒
が転換される(ステップS27)。又、ステップS19
〜S20において、4ビットコードから復号されたラン
レングスも、ターミネイティング値として同様に処理さ
れる。そして、このランレングスのデータが、画像を形
成するための白又は黒のイメージデータに展開され、そ
のイメージデータがプリントバッファ18に転送されて
記憶される(ステップS28〜S29)。
Next, it is determined whether or not the run length is smaller than "64" (step S26). here,
If the run length is less than "64", it is determined that the run length is a terminating value. In the image memory 17, a code representing a white run and a code representing a black run are always stored alternately with the code representing a white run first, and when the decoded run length is a terminating value, Each time, the run length is changed between black and white (step S27). Step S19
In steps S20 to S20, the run length decoded from the 4-bit code is similarly processed as the terminating value. Then, the run-length data is developed into white or black image data for forming an image, and the image data is transferred to and stored in the print buffer 18 (steps S28 to S29).

【0030】一方、前記ステップS26において、ラン
レングスが“64”以上の場合には、そのランレングス
がメイクアップ値であると判断される。つまり、ここで
は、実際のランレングス中において、“64”の倍数分
が求められたことになる。その後、ステップS28に移
行して、前記と同様にランレングスがイメージデータに
展開される。尚、符号データがメイクアップ値に変換さ
れると、次の符号データはそのメイクアップ値に続くタ
ーミネイティング値であると判断され、それらメイクア
ップ値とターミネイティング値とで、白黒が同じ1つの
ランレングスとして処理がなされる。その後、前記ステ
ップS18に戻って、ステップS18〜S29の動作が
繰り返し行われる。
On the other hand, if the run length is "64" or more in step S26, it is determined that the run length is a makeup value. In other words, here, a multiple of “64” has been obtained during the actual run length. Thereafter, the process proceeds to step S28, and the run length is developed into image data in the same manner as described above. When the code data is converted to a makeup value, the next code data is determined to be a terminating value following the makeup value, and the makeup value and the terminating value are the same in black and white. Processing is performed as run length. Thereafter, returning to step S18, the operations of steps S18 to S29 are repeatedly performed.

【0031】前記ステップS24の判別において、読み
出された符号がEOL符号である場合には、プリントバ
ッファ18から1ライン分のイメージデータが読み出さ
れて、記録部19により記録紙上に印字される(ステッ
プS30)。その後、次のラインの処理に移行するべ
く、前記ステップS18に戻る。
If it is determined in step S24 that the read code is an EOL code, one line of image data is read from the print buffer 18 and printed by the recording unit 19 on recording paper. (Step S30). Thereafter, the process returns to the step S18 to shift to the processing of the next line.

【0032】前記ステップS23の判別において、読み
出された符号がERL符号である場合には、所定のエラ
ー処理がなされる。例えば、そのエラーラインの部分の
直前のラインデータが繰り返して印字されたりする。
(ステップS31)。その後、次のラインの処理に移行
するべく、前記ステップS18に戻る。
If it is determined in step S23 that the read code is an ERL code, a predetermined error process is performed. For example, line data immediately before the error line portion is repeatedly printed.
(Step S31). Thereafter, the process returns to the step S18 to shift to the processing of the next line.

【0033】さらに、前記ステップS22の判別におい
て、読み出された符号がRTC符号である場合には、次
ページのデータがあるか否かが判別される(ステップS
32)。次ページのデータがある場合には、前記ステッ
プS18に戻って、ステップS18〜S32の動作が行
われ、次ページがない場合には、処理が終了される。
If it is determined in step S22 that the read code is an RTC code, it is determined whether there is data for the next page (step S22).
32). If there is data for the next page, the process returns to step S18, and the operations of steps S18 to S32 are performed. If there is no next page, the process ends.

【0034】以上のように、この実施形態のファクシミ
リ装置においては、符号化された画データを受信する
と、まずその受信画データを白黒のランレングスに復号
する。次に、このランレングスを4ビット又は8ビット
の固定ビット長からなる中間符号に変換してメモリ17
に記憶する。この際、出現頻度の高い所定のランレング
スには、短い4ビットコードを割り当てる。そして、画
像メモリ17内の中間符号を読み出してランレングスに
復号して記録を行う。このとき、各中間符号が4ビット
又は8ビットの固定ビット長で構成されているため、各
中間符号の境界を簡単に判別することができる。しか
も、各中間符号を4ビット又は8ビット単位で復号する
ことができる。このため、復号を容易かつ短時間に行う
ことができ、印字動作をスムーズかつ迅速に行うことが
できる。
As described above, when the facsimile apparatus of this embodiment receives encoded image data, it first decodes the received image data into a black and white run length. Next, the run length is converted into an intermediate code having a fixed bit length of 4 bits or 8 bits, and
To memorize. At this time, a short 4-bit code is assigned to a predetermined run length having a high appearance frequency. Then, the intermediate code in the image memory 17 is read, decoded to a run length, and recorded. At this time, since each intermediate code has a fixed bit length of 4 bits or 8 bits, the boundary of each intermediate code can be easily determined. In addition, each intermediate code can be decoded in units of 4 bits or 8 bits. Therefore, decoding can be performed easily and in a short time, and a printing operation can be performed smoothly and quickly.

【0035】しかも、中間符号はランレングスに基づい
た符号となっている。又、中間符号における4ビットコ
ードと8ビットコードの上位4ビットとが重複しないよ
うになっているので、読み出した符号が4ビットコード
であるのか8ビットコードの上位4ビットであるのかの
判別が容易である。従って、中間符号が、複数の固定ビ
ット長から構成されていても、各中間符号の境界を明確
に判別することができ、復号をより簡単かつ短時間で行
うことができる。
Moreover, the intermediate code is a code based on the run length. Since the 4-bit code of the intermediate code and the upper 4 bits of the 8-bit code do not overlap, it is possible to determine whether the read code is the 4-bit code or the upper 4 bits of the 8-bit code. Easy. Therefore, even if the intermediate code is composed of a plurality of fixed bit lengths, the boundary of each intermediate code can be clearly determined, and decoding can be performed more easily and in a shorter time.

【0036】さらに、出現頻度の高い所定のランレング
スには、短い4ビットコードが割り当てられる。このた
め、ランレングスをそのまま8ビット単位の2進数の符
号に変換して、画像メモリ17に記憶する場合に比べて
データを圧縮することができて、画像メモリ17のメモ
リ容量の消費を抑えることもできる。
Further, a short 4-bit code is assigned to a predetermined run length having a high appearance frequency. Therefore, the run length can be directly converted into an 8-bit binary code and the data can be compressed as compared with the case where the code is stored in the image memory 17, and the consumption of the memory capacity of the image memory 17 can be suppressed. Can also.

【0037】加えて、中間符号をターミネイティング符
号とメイクアップ符号とに分割するため、いっそうデー
タを圧縮することができて、画像メモリ17のメモリ容
量の消費を更に抑えることができる。
In addition, since the intermediate code is divided into the terminating code and the makeup code, the data can be further compressed, and the consumption of the memory capacity of the image memory 17 can be further suppressed.

【0038】又、本実施形態では、受信された符号化デ
ータを復号し、その復号結果に基づいて各ラインデータ
のエラーチェックを行っている。そして、このとき復号
されたデータを中間符号に変換してメモリ17に記憶す
るようにしている。言い換えれば、エラーチェックのた
めに復号したデータを利用して中間符号に変換してメモ
リ17に記憶するようにしている。このため、受信され
た符号化データを復号して再度符号化するようにして
も、処理にムダが生じることがない。しかも、メモリ1
7に記憶されたデータは中間符号のデータであるので、
前述したように、そのデータを復号して印字する処理は
簡単かつ短時間にでき、その処理に要するCPU11の
負担を軽減できる。
In the present embodiment, the received encoded data is decoded, and an error check of each line data is performed based on the decoding result. Then, the data decoded at this time is converted into an intermediate code and stored in the memory 17. In other words, the data decoded for error checking is converted into an intermediate code and stored in the memory 17. For this reason, even if the received encoded data is decoded and re-encoded, the processing is not wasted. Moreover, memory 1
7 is intermediate code data,
As described above, the process of decoding and printing the data can be performed easily and in a short time, and the load on the CPU 11 required for the process can be reduced.

【0039】つまり、近年のファクシミリ装置において
は、メモリ17に記憶されたデータの印字中に画データ
を受信するといったように、複数の処理を同時に並行し
て行うようなものがある。しかし、このような装置にお
いて、従来のようにMH符号等の標準符号化されたデー
タをメモリ17に記憶すると、そのメモリ17内のデー
タの印字及び受信データのエラーチェックのために、標
準符号化されたデータの復号処理を2つ同時に行わねば
ならず、その2つの復号処理に要するCPU11の負担
が大きくなる。
That is, some recent facsimile apparatuses perform a plurality of processes at the same time, such as receiving image data during printing of data stored in the memory 17. However, in such an apparatus, when standard encoded data such as an MH code is stored in the memory 17 as in the prior art, the standard encoding is performed to print the data in the memory 17 and check the received data for errors. It is necessary to simultaneously perform two decoding processes on the decoded data, and the load on the CPU 11 required for the two decoding processes increases.

【0040】しかしながら、本実施形態では一方の復号
処理に要するCPU11の負担が軽くなるので、メモリ
17内のデータの印字と画データの受信との2つを並行
して行うような場合におけるCPU11の負担が軽くで
きる。その結果、CPU11として安価なものを使用す
ることが可能となる。
However, in the present embodiment, the load on the CPU 11 required for one of the decryption processes is reduced. Therefore, when the printing of the data in the memory 17 and the reception of the image data are performed in parallel, The burden can be reduced. As a result, an inexpensive CPU 11 can be used.

【0041】尚、この発明は、次のように変更して具体
化することも可能である。 (1) 前記実施形態では、受信データを符号化して画
像メモリ17に記憶する場合について説明したが、読取
部16で読み取られた画データを符号化して画像メモリ
17に記憶する場合についても、同様な符号化処理を行
うこと。
The present invention can be embodied with the following modifications. (1) In the above embodiment, the case where the received data is encoded and stored in the image memory 17 has been described. However, the same applies to the case where the image data read by the reading unit 16 is encoded and stored in the image memory 17. Performing an encoding process.

【0042】(2) 前記実施形態において、ランレン
グスにおけるターミネイティング値とメイクアップ値と
の区切りを63画素以外に変更すること。次に、上記実
施形態から把握できる技術的思想について以下に記載す
る。
(2) In the above embodiment, the division between the terminating value and the makeup value in the run length is changed to a value other than 63 pixels. Next, technical ideas that can be grasped from the above embodiment will be described below.

【0043】(1) 請求項1又は2において、変換手
段は63画素までのランレングスをターミネイティング
値として符号に変換し、64画素以上のランレングスは
64の倍数のメイクアップ値と余りのターミネイティン
グ値とに分けて、それらメイクアップ値及びターミネイ
ティング値をそれぞれ符号に変換する符号化装置。
(1) In claim 1 or 2, the conversion means converts a run length of up to 63 pixels into a code as a terminating value, and a run length of 64 pixels or more has a makeup value of a multiple of 64 and a residual terminator. An encoding device that separates the makeup value and the terminating value into codes, respectively, by dividing the makeup value and the terminating value into codes.

【0044】このようにすれば、いっそうデータを圧縮
することができて、メモリ容量の消費をさらに抑えるこ
とができる。 (2) 請求項2において、4ビットの符号と8ビット
の符号の上位4ビットとを異なる符号とした符号化装
置。
In this way, the data can be further compressed, and the consumption of the memory capacity can be further suppressed. (2) The encoding apparatus according to claim 2, wherein the 4-bit code and the upper 4 bits of the 8-bit code are different codes.

【0045】このようにすれば、符号を構成する4ビッ
トコードと8ビットコードの上位4ビットとが重複する
ことがなく、符号の復号時にそれが4ビットコードであ
るのか8ビットコードの上位4ビットであるのかの判別
が容易である。従って、符号が、複数の固定ビット長か
ら構成されていても、各符号の境界を明確に判別するこ
とができて、その復号を更に簡単かつ短時間で行うこと
ができる。
In this manner, the 4-bit code constituting the code and the upper 4 bits of the 8-bit code do not overlap, and when decoding the code, whether the code is a 4-bit code or the upper 4 bits of the 8-bit code. It is easy to determine whether the bit is a bit. Therefore, even if a code is composed of a plurality of fixed bit lengths, the boundaries between the codes can be clearly determined, and the decoding can be performed more easily and in a shorter time.

【0046】(3) 画データを構成する白黒の画素デ
ータのランレングスを固定ビット長の符号に変換し、そ
の符号は、出現頻度の高い所定のランレングスを出現頻
度の低いそれ以外のランレングスよりも短いビット長の
符号に変換する符号化方法。
(3) The run length of the black and white pixel data constituting the image data is converted into a code having a fixed bit length, and the code is converted from a predetermined run length having a high appearance frequency to another run length having a low appearance frequency. An encoding method for converting to a shorter bit length code.

【0047】(4) 前記(3)項において、出現頻度
の高い所定のランレングスを4ビットの符号に変換し、
それ以外のランレングスを8ビットの符号に変換する符
号化方法。
(4) In the above item (3), the predetermined run length having a high appearance frequency is converted into a 4-bit code.
An encoding method for converting other run lengths into 8-bit codes.

【0048】これらの符号化方法によれば、各符号の境
界を簡単に判別することができ、その復号を容易かつ短
時間に行うことができるとともに、データを極力圧縮す
ることができて、メモリ容量の消費を抑えることができ
る。
According to these encoding methods, the boundaries of each code can be easily determined, the decoding can be performed easily and in a short time, and the data can be compressed as much as possible. The consumption of capacity can be suppressed.

【0049】(5) 前記(3)項又は(4)項におい
て、63画素までのランレングスをターミネイティング
値として符号に変換し、64画素以上のランレングスは
64の倍数のメイクアップ値と余りのターミネイティン
グ値とに分けて、それらメイクアップ値及びターミネイ
ティング値をそれぞれ符号に変換する符号化方法。
(5) In the above item (3) or (4), a run length of up to 63 pixels is converted into a code as a terminating value, and a run length of 64 pixels or more is converted to a makeup value of a multiple of 64 and a remainder. And an encoding method for converting the makeup value and the terminating value into codes respectively.

【0050】この符号化方法によれば、いっそうデータ
を圧縮することができて、メモリ容量の消費をさらに抑
えることができる。 (6) 前記(4)項において、4ビットの符号と8ビ
ットの符号の上位4ビットとを異なる符号とした符号化
方法。
According to this encoding method, data can be further compressed, and the consumption of memory capacity can be further reduced. (6) An encoding method according to the above item (4), wherein the upper 4 bits of the 4-bit code and the upper 4 bits of the 8-bit code are different codes.

【0051】この符号化方法によれば、前記(2)項と
同様に、符号が複数の固定ビット長から構成されていて
も、各符号の境界を明確に判別することができて、その
復号を更に簡単かつ短時間で行うことができる。
According to this encoding method, similarly to the above-mentioned item (2), even if a code is composed of a plurality of fixed bit lengths, the boundary of each code can be clearly determined, and its decoding can be performed. Can be performed more easily and in a shorter time.

【0052】[0052]

【発明の効果】 この発明は、以上のように構成されて
いるため、次のような優れた効果を奏する。請求項1及
び請求項2に記載の発明によれば、符号の境界を簡単に
判別し易く、復号を容易かつ短時間に行うことができ
る。又、データの圧縮率を極力高くできて、メモリ容量
の消費を抑えることができる。
Since the present invention is configured as described above, it has the following excellent effects. According to the first and second aspects of the present invention, the boundaries between codes can be easily determined, and decoding can be performed easily and in a short time. Further, the data compression ratio can be increased as much as possible, and the consumption of memory capacity can be suppressed.

【0053】請求項3に記載の発明によれば、受信され
た符号化データを復号して再度符号化しても、処理にム
ダが生じることはないとともに、画像メモリ内のデータ
の印字に際して、読み出したデータの復号が短時間で容
易にできて、印字動作を迅速かつスムーズに行うことが
できる。
According to the third aspect of the present invention, even if the received encoded data is decoded and re-encoded, no waste is caused in the processing, and the data is read out when the data in the image memory is printed. The data can be easily decoded in a short time, and the printing operation can be performed quickly and smoothly.

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

【図1】実施形態のファクシミリ装置を示すブロック回
路図。
FIG. 1 is a block circuit diagram showing a facsimile apparatus according to an embodiment.

【図2】受信時の処理動作を示すフローチャート。FIG. 2 is a flowchart showing a processing operation at the time of reception.

【図3】記録時の処理動作を示すフローチャート。FIG. 3 is a flowchart showing a processing operation at the time of recording.

【図4】A4サイズのデータに使用するテーブルデータ
を示す説明図。
FIG. 4 is an explanatory diagram showing table data used for A4 size data.

【図5】B4サイズ以上のデータに使用するテーブルデ
ータを示す説明図。
FIG. 5 is an explanatory diagram showing table data used for data of B4 size or more.

【符号の説明】[Explanation of symbols]

11…変換手段、第1の復号手段及び第2の復号手段を
構成するCPU、17…画像メモリ。
11 ... CPU constituting the conversion means, first decoding means and second decoding means, 17 ... Image memory.

Claims (3)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 画データを構成する白黒の画素データの
ランレングスを固定ビット長の符号に変換する変換手段
を備え、その変換手段は、出現頻度の高い所定のランレ
ングスを出現頻度の低いそれ以外のランレングスの上位
ビットとは異なる符号であって、且つ当該それ以外のラ
ンレングスよりも短いビット長の符号に変換することを
特徴とする符号化装置。
A conversion means for converting a run length of black and white pixel data constituting image data into a code having a fixed bit length, wherein the conversion means converts a predetermined run length having a high appearance frequency into a code having a low appearance frequency. Top run lengths other than
Code that is different from the
Encoding apparatus and converting a short bit length code than Nrengusu.
【請求項2】 前記変換手段は、画データのサイズに応
じて、出現頻度の高い所定のランレングスを4ビットの
符号に変換し、それ以外のランレングスを8ビットの符
号に変換する請求項1に記載の符号化装置。
2. The image processing device according to claim 1, wherein
2. The encoding apparatus according to claim 1, wherein a predetermined run length having a high appearance frequency is converted into a 4-bit code, and the other run lengths are converted into an 8-bit code.
【請求項3】 受信された符号化データを白黒のランレ
ングスに復号する第1の復号手段と、その復号データを
固定ビット長の符号に変換する前記変換手段と、その固
定ビット長の符号化データ及びエラーラインであること
を示す固定ビット長の符号化データを記憶する画像メモ
リと、画像メモリ内の符号化データを読み出して白黒の
ランレングスに復号するとともに、エラーラインを判断
する第2の復号手段とを備えた請求項1又は2に記載の
符号化装置を備えたファクシミリ装置。
3. A first decoding means for decoding received encoded data into a black and white run length, said converting means for converting the decoded data into a code having a fixed bit length, and encoding the fixed bit length. Data and error lines
An image memory that stores coded data of a fixed bit length indicating that the coded data is read out, the coded data in the image memory is read out, decoded into a black and white run length, and an error line is determined.
Facsimile apparatus having a coding apparatus according to claim 1 or 2 and a second decoding means for.
JP7175155A 1995-07-11 1995-07-11 Encoding device and facsimile device having the same Expired - Fee Related JP2806310B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP7175155A JP2806310B2 (en) 1995-07-11 1995-07-11 Encoding device and facsimile device having the same

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP7175155A JP2806310B2 (en) 1995-07-11 1995-07-11 Encoding device and facsimile device having the same

Publications (2)

Publication Number Publication Date
JPH0927913A JPH0927913A (en) 1997-01-28
JP2806310B2 true JP2806310B2 (en) 1998-09-30

Family

ID=15991236

Family Applications (1)

Application Number Title Priority Date Filing Date
JP7175155A Expired - Fee Related JP2806310B2 (en) 1995-07-11 1995-07-11 Encoding device and facsimile device having the same

Country Status (1)

Country Link
JP (1) JP2806310B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111341330B (en) * 2020-02-10 2023-07-25 科大讯飞股份有限公司 Audio encoding and decoding method, access method, related equipment and storage device thereof

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS60253372A (en) * 1984-05-30 1985-12-14 Oki Electric Ind Co Ltd Picture signal coding system
JPS62108675A (en) * 1985-11-06 1987-05-19 Canon Inc Picture data encoding device
JPH03136575A (en) * 1989-10-23 1991-06-11 Nec Corp Facsimile coder

Also Published As

Publication number Publication date
JPH0927913A (en) 1997-01-28

Similar Documents

Publication Publication Date Title
US4677649A (en) Data receiving apparatus
JP3260910B2 (en) Encoding method
US4688100A (en) Video data encoding/decoding apparatus
JPH04270568A (en) Data compression system in picture processing unit
JPH0525224B2 (en)
JPS6338913B2 (en)
EP0650290A2 (en) System and method for encoding facsimile data
US4618846A (en) Data coding
US5960117A (en) Method of adaptive arithmetic encoding/decoding according to JBIG standard
JP2806310B2 (en) Encoding device and facsimile device having the same
JPH04270564A (en) Serial picture data compression system having color information
US5661569A (en) Facsimile adapter unit having error detecting function
JPH04270569A (en) Data compression system for picture processor
JPH04298164A (en) Data compression/release circuit for facsimile apparatus
JPH08307701A (en) Runlength encoding and decoding method
JP3067618B2 (en) MH code decoding method
JPS6147466B2 (en)
JPH08307700A (en) Run length coding method and decoding method
KR100228704B1 (en) Method of document data coding of facsimile
JPH04313960A (en) Picture data transmitter and picture data receiver
KR0154698B1 (en) Method for saving paper for facsimile
JP2940441B2 (en) Facsimile machine
JP3187696B2 (en) Image coding device
JP2790755B2 (en) Facsimile machine
JP3270232B2 (en) Data compression device

Legal Events

Date Code Title Description
R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

LAPS Cancellation because of no payment of annual fees