JPS5816819B2 - Data compression method - Google Patents

Data compression method

Info

Publication number
JPS5816819B2
JPS5816819B2 JP16297078A JP16297078A JPS5816819B2 JP S5816819 B2 JPS5816819 B2 JP S5816819B2 JP 16297078 A JP16297078 A JP 16297078A JP 16297078 A JP16297078 A JP 16297078A JP S5816819 B2 JPS5816819 B2 JP S5816819B2
Authority
JP
Japan
Prior art keywords
compressed
character
characters
register
bits
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
Application number
JP16297078A
Other languages
Japanese (ja)
Other versions
JPS5588453A (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.)
Fujitsu Ltd
Hitachi Ltd
NEC Corp
Nippon Telegraph and Telephone Corp
Oki Electric Industry Co Ltd
Original Assignee
Fujitsu Ltd
Hitachi Ltd
Nippon Telegraph and Telephone Corp
Oki Electric Industry Co Ltd
Nippon Electric 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 Fujitsu Ltd, Hitachi Ltd, Nippon Telegraph and Telephone Corp, Oki Electric Industry Co Ltd, Nippon Electric Co Ltd filed Critical Fujitsu Ltd
Priority to JP16297078A priority Critical patent/JPS5816819B2/en
Publication of JPS5588453A publication Critical patent/JPS5588453A/en
Publication of JPS5816819B2 publication Critical patent/JPS5816819B2/en
Expired legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03MCODING; DECODING; CODE CONVERSION IN GENERAL
    • H03M7/00Conversion of a code where information is represented by a given sequence or number of digits to a code where the same, similar or subset of information is represented by a different sequence or number of digits
    • H03M7/30Compression; Expansion; Suppression of unnecessary data, e.g. redundancy reduction
    • H03M7/46Conversion to or from run-length codes, i.e. by representing the number of consecutive digits, or groups of digits, of the same kind by a code word and a digit indicative of that kind

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Reduction Or Emphasis Of Bandwidth Of Signals (AREA)

Description

【発明の詳細な説明】 本発明はデータ送受信方式に於ける送受信効率を向上す
る為にデータを圧縮して送信するデータ圧縮方式に関す
るものである。
DETAILED DESCRIPTION OF THE INVENTION The present invention relates to a data compression method for compressing and transmitting data in order to improve the transmission and reception efficiency in the data transmission and reception method.

データを圧縮するこさにより送信効率を向上することが
できるものであり、その為のデータ圧縮方式としては既
に種々提案されており、その一例について説明する。
Transmission efficiency can be improved by compressing data, and various data compression methods have already been proposed for this purpose, one example of which will be described.

第1図に示すように、入力データを送信装置11に於い
て送信変換テーブル12を参照して圧縮可能のデータで
あるか否か判定し、例えば1文字8ビツトの場合、デー
タ圧縮が可能な文字(以下圧縮文字と称す)については
、その文字に対応した4ビツトのコード(以下圧縮コー
ドと称す)に圧縮し、圧縮文字以外の文字は送信変換テ
ーブル12に定められている8ビツトのコードに変換し
て送信する。
As shown in FIG. 1, the transmitting device 11 refers to the transmission conversion table 12 to determine whether or not the input data is compressible data. For example, if one character is 8 bits, the data can be compressed. Characters (hereinafter referred to as compressed characters) are compressed into 4-bit codes (hereinafter referred to as compressed codes) corresponding to the characters, and characters other than compressed characters are compressed into 8-bit codes specified in the transmission conversion table 12. Convert and send.

但し、圧縮文字が奇数個連続する場合は、その最後の文
字を送信変換テーブル12に定められている8ビツトの
コードに変換して送信する。
However, if an odd number of compressed characters are consecutive, the last character is converted into an 8-bit code defined in the transmission conversion table 12 and transmitted.

受信装置13は、受信変換テーブル14を参照して受信
データの再生を行なうものであり、受信データを8ビツ
トずつチェックし、上位4ビツト及び下位4ビツトが共
に圧縮コードであったならば、その8ビツトは2つの圧
縮文字が圧縮されたものと判断し、上位4ビツトと下位
4ビツトとをそれぞれに対応した圧縮文字に変換する。
The receiving device 13 reproduces the received data by referring to the receiving conversion table 14. It checks the received data 8 bits at a time, and if both the upper 4 bits and the lower 4 bits are compressed codes, the It is determined that 8 bits are two compressed characters, and the upper 4 bits and lower 4 bits are converted into corresponding compressed characters.

また上位4ビツト及び下位4ビツトの両方あるいは片方
が圧縮コードでない場合は、その8ビツトは2つの圧縮
文字が圧縮されたものでないと判断してその8ビツトを
受信変換テーブル14を用いて逆変換し、復元する。
Also, if both or one of the upper 4 bits and lower 4 bits is not a compressed code, it is determined that those 8 bits are not the result of compressing two compressed characters, and the 8 bits are inversely converted using the reception conversion table 14. and restore.

第2図は従来の変換テーブルの一例を示したものであり
、圧縮文字はF行の0列から6列までのす、A、D、E
、G、I、L、N、0.R,S、T、Uであって、これ
と対応する圧縮コードは4ビツト16進数のパO“〜1
1 C11である。
Figure 2 shows an example of a conventional conversion table, in which the compressed characters are from column 0 to column 6 of row F, A, D, E.
, G, I, L, N, 0. R, S, T, U, and the corresponding compressed code is a 4-bit hexadecimal number P O"~1
1 C11.

圧縮文字以外の文字のコードは、変換テーブルの左側に
表示されている16進数を上位4ビツト、上側に表示さ
れている16進数を下位4ビツトとして計8ビットで表
わす。
The codes of characters other than compressed characters are represented by a total of 8 bits, with the hexadecimal number displayed on the left side of the conversion table being the upper 4 bits, and the hexadecimal number displayed on the upper side being the lower 4 bits.

例えばD行8列の文字Bをこの変換テーブルによって変
換すると8ビツトの“D8パとなる。
For example, when character B in row D and column 8 is converted using this conversion table, it becomes an 8-bit "D8 pattern."

第3図は第2図の変換テーブルを用いてデータ圧縮を行
なった場合の説明図であり、データをrFRQ/MOD
ULEJとすると、R,Eは圧縮文字であるので、それ
に対応する4ビツトの圧縮コード“9”、°“3″に変
換し、Q、/、Mは圧縮文字でないので、それに対応す
る2つの16進数で表わした8ビツトのコードCD”、
“”EB”、“’DE”変換し、0.D、U、Lは圧縮
文字であるのでそれに対応する4ビツトの圧縮コード1
18I+、“12TI、IIcIZI“6″に変換する
FIG. 3 is an explanatory diagram when data is compressed using the conversion table shown in FIG.
Assuming ULEJ, R and E are compressed characters, so they are converted to their corresponding 4-bit compressed codes "9" and °"3", and Q, /, and M are not compressed characters, so their two corresponding 8-bit code CD expressed in hexadecimal
""EB", "'DE" is converted, and 0.D, U, and L are compressed characters, so the corresponding 4-bit compressed code 1
Convert to 18I+, “12TI, IIcIZI “6”.

次のEも圧縮文字であるが、前述したように圧縮文字が
奇数個連続した場合の最後の文字であるので8ビツトの
F3″に変換し、/は圧縮文字でないので8ビツトの“
’EB”に変換する。
The next E is also a compressed character, but as mentioned above, it is the last character in an odd number of consecutive compressed characters, so it is converted to an 8-bit F3'', and / is not a compressed character, so it is an 8-bit “
Convert to 'EB'.

即ち矢印で示すように、各文字が変換され、圧縮コード
化された文字が多い程、送信データが短くなり、送信効
率が向上する。
That is, as shown by the arrows, each character is converted and the more characters are compressed and encoded, the shorter the transmitted data becomes, and the transmission efficiency improves.

受信装置では、転送されたデータを8ビツトずつチェッ
クし、上位4ビツト、下位4ビツトの両方が圧縮文字か
否かの判断を行なって逆変換を行なうものであり、前述
の送信データの場合、最初の8ビツトのパ9“ II
3I+はどちらも圧縮コードであるので9″をHに、3
″をEにそれぞれ逆変換し、復元する。
The receiving device checks the transferred data 8 bits at a time, determines whether both the upper 4 bits and lower 4 bits are compressed characters, and performs inverse conversion. First 8-bit part 9 “II
Both 3I+ are compressed codes, so 9" is set to H, and 3
'' are respectively inversely converted to E and restored.

次の8ビツトの“”CD”は、Dが圧縮コードでないの
で第2図の変換テーブル0行り列に対応する文字Qに逆
変換する。
The next 8-bit "CD" is converted back to the character Q corresponding to the 0 row of the conversion table in FIG. 2, since D is not a compressed code.

以下についても同様の処理を行ない、逆変換して文字を
復元する。
Similar processing is performed for the following, and the characters are restored by inverse conversion.

しかし、このような従来の方式では圧縮文字の個数が制
限されているので十分な圧縮効率を得ることはできなか
った。
However, in such conventional methods, the number of compressed characters is limited, and therefore sufficient compression efficiency cannot be obtained.

本発明は、前述の如き欠点を改善したものであり、連続
して出現し易い文字の群を複数個として圧縮文字の個数
の増加を図り、且つ圧縮の対象となる文字群の切換えを
識別し得るようにして、圧縮効率を向上することを目的
とするものである。
The present invention improves the above-mentioned drawbacks, and aims to increase the number of compressed characters by setting a plurality of groups of characters that tend to appear consecutively, and also identifies switching of character groups to be compressed. The purpose of this is to improve compression efficiency.

以下実施例について詳細に説明する。Examples will be described in detail below.

第4図は本発明の実施例の送信装置のブロック線図であ
り、411は送信装置、412は制御回路、413,4
16,422,426,428は信号線、414はバッ
ファ、415はアドレスレジスタ、417は変換回路、
418,421゜425.427はバッファレジスタ、
419は今回の文字が圧縮文字であるか否かを表示する
表示レジスタ、420は今回の文字が圧縮文字の場合、
該圧縮文字が属する圧縮文字群を表示する圧縮文字群表
示レジスタ、429は前回の文字が奇数番目の圧縮文字
であるか否かを表示するレジスタ、423は回線バッフ
ァ、424は直前の圧縮文字の属する圧縮文字群を表示
する圧縮文字群表示レジスタである。
FIG. 4 is a block diagram of a transmitting device according to an embodiment of the present invention, in which 411 is a transmitting device, 412 is a control circuit, 413, 4
16, 422, 426, 428 are signal lines, 414 is a buffer, 415 is an address register, 417 is a conversion circuit,
418,421°425.427 are buffer registers,
419 is a display register that displays whether or not the current character is a compressed character; 420 is a display register that displays whether the current character is a compressed character;
A compressed character group display register that displays the compressed character group to which the compressed character belongs, 429 a register that displays whether or not the previous character is an odd-numbered compressed character, 423 a line buffer, and 424 a register that displays the compressed character group immediately before the compressed character. This is a compressed character group display register that displays the compressed character group to which it belongs.

第5図は本発明の実施例の受信装置のブロック線図であ
り、451は受信装置、452は制御回路、453,4
59は信号線、454は回線バッファ、455はバッフ
ァレジスタ、456,458はアドレスレジスタ、45
7は圧縮文字群表示レジスタ、460は変換回路、46
1はバッファである。
FIG. 5 is a block diagram of a receiving device according to an embodiment of the present invention, in which 451 is a receiving device, 452 is a control circuit, 453, 4
59 is a signal line, 454 is a line buffer, 455 is a buffer register, 456 and 458 are address registers, 45
7 is a compressed character group display register, 460 is a conversion circuit, 46
1 is a buffer.

第6図は変換回路417,460内に設けられた変換テ
ーブルメモリの一例を示し、圧縮文字は英語大文字5.
A、D、E、G、I、L、N、O,R,S、T、Uから
なる圧縮文字群11数字0〜9.*、・からなる圧縮文
字群■、英語小文字’?) Ha Hd t e t
g +ij19m90trts、ttuからなる圧縮文
字群■の3つの群に分かれている。
FIG. 6 shows an example of the conversion table memory provided in the conversion circuits 417 and 460, and the compressed characters are English capital letters 5.
Compressed character group 11 consisting of A, D, E, G, I, L, N, O, R, S, T, U numbers 0-9. Compressed character group consisting of *, ■, English lowercase letter '? ) Ha Hd t et
It is divided into three groups: a compressed character group ■ consisting of g + ij19m90trts and ttu.

このように圧縮文字群が英語大文字、数字、英語手文字
からなる3つの群に分かれているので、送信装置411
が現在どの圧縮文字群を対象としてデータ圧縮を行なっ
ているのか判断する必要があり、また受信装置451も
転送されて来た圧縮コードがどの圧縮文字群に属するの
か判断する必要がある。
Since the compressed character group is divided into three groups consisting of English capital letters, numbers, and English hand letters, the transmitter 411
It is necessary to determine which compressed character group is currently performing data compression, and the receiving device 451 also needs to determine which compressed character group the transferred compressed code belongs to.

そこで異なる圧縮文字群に属する最初の文字は圧縮コー
ド化することなく送信して圧縮文字群の識別を可能とし
ているものである。
Therefore, the first character belonging to different compressed character groups is transmitted without being compressed into a code, thereby making it possible to identify the compressed character groups.

以下に送信側、受信側の動作概要を示す。An overview of the operations on the sending and receiving sides is shown below.

送信側では、圧縮文字以外の文字は8ビツトで転送し、
圧縮文字が複数個連続する圧縮文字列に対しては、(1
)該圧縮文字列と該圧縮文字列の直前の圧縮文字とが同
じ圧縮文字群に属する場合は該圧縮文字列の文字数が偶
数個であれば、該圧縮文字列に属する圧縮文字を4ビツ
トに圧縮して転送し、該圧縮文字列に属する圧縮文字の
文字数が奇数個であれは、該圧縮文字列の最後の文字の
みを8ビツトで転送し、他の圧縮文字は4ビツトに圧縮
して転送する。
On the sending side, characters other than compressed characters are transferred in 8 bits,
For compressed strings with multiple consecutive compressed characters, (1
) If the compressed character string and the compressed character immediately before the compressed character string belong to the same compressed character group, and the number of characters in the compressed character string is an even number, convert the compressed characters belonging to the compressed character string into 4 bits. If the compressed character string is compressed and transferred, and the number of compressed characters belonging to the compressed string is an odd number, only the last character of the compressed string is transferred in 8 bits, and the other compressed characters are compressed to 4 bits. Forward.

才だ、(2)圧縮文字列と該圧縮文字列の直前の圧縮文
字とが異なる圧縮文字群に属する場合は、該圧縮文字列
の最初の文字を8ビツトで転送し、残りの文字数が偶数
個であれば残りの圧縮文字を全て4ビツトに圧縮して転
送し、残りの文字数が奇数個であれば、最後の文字を8
ビツトで転送し、他の圧縮文字は4ビツトに圧縮して転
送する。
(2) If the compressed character string and the compressed character immediately before the compressed character string belong to different compressed character groups, the first character of the compressed character string is transferred in 8 bits, and the remaining characters are an even number. If the number of remaining compressed characters is an odd number, all remaining compressed characters are compressed to 4 bits and transferred, and if the number of remaining characters is an odd number, the last character is
Other compressed characters are compressed to 4 bits and transferred.

一方、受信側に於いては、8ビツト文字毎に上位4ビツ
ト、下位4ビツトをチェックし、共に圧縮コードである
か否かを判別する。
On the other hand, on the receiving side, the upper 4 bits and lower 4 bits of each 8-bit character are checked to determine whether or not they are both compressed codes.

そして、(a)共に圧縮コードであればそれぞれ8ビツ
トの圧縮文字に変換する。
(a) If both are compressed codes, each is converted into an 8-bit compressed character.

また、(b) 何れか一方が圧縮コードでない場合は
8ビツト文字として以下の判定を行なう。
(b) If either one is not a compressed code, it is assumed to be an 8-bit character and the following determination is made.

(bl)圧縮できない文字か(b2)圧圧縮できるが、
圧縮文字列の最後の奇数番目の文字であるか (b3)
圧縮文字列の最初で、直前の圧縮文字の属する圧縮文字
群と異なる圧縮文字群の文字であるか、の判定を行なう
(bl) Characters that cannot be compressed, or (b2) Characters that can be compressed, but
Is it the last odd-numbered character of the compressed string (b3)?
At the beginning of a compressed character string, it is determined whether the character belongs to a compressed character group different from the compressed character group to which the immediately preceding compressed character belongs.

次に第4図、第5図を参照して、送信装置、受信装置の
動作を詳細に説明する。
Next, the operations of the transmitting device and the receiving device will be explained in detail with reference to FIGS. 4 and 5.

バッファ414にセットされた転送データは、制御回路
412より信号線413を介して転送信号がバッファ4
14に加えられることにより、バッファ414からアド
レスレジスタ415に転送データが8ビット即ち一文手
分セットされる。
The transfer data set in the buffer 414 is transferred from the control circuit 412 via the signal line 413 as a transfer signal to the buffer 4.
14, transfer data of 8 bits, that is, one sentence, is set from the buffer 414 to the address register 415.

変換回路417は制御回路412から信号線416を介
した変換指示信号を受けると、アドレスレジスタ415
にセットされているデータを8ビツトの変換コードに変
換しく変換テーブルメモリの構成によって、変換コード
とアドレスレジスタ415にセットされた転送データの
コードとが同じものになることもあり、文具なるものと
なることもある。
When the conversion circuit 417 receives a conversion instruction signal from the control circuit 412 via the signal line 416, the conversion circuit 417 converts the address register 415
Depending on the configuration of the conversion table memory, the conversion code and the code of the transfer data set in the address register 415 may be the same, and the data set in the address register 415 may be the same as the transfer data code. It may happen.

)、バッファレジスタ418に変換コードをセットする
と共に転送文字が圧縮文字であるか否かの情報をバッフ
ァレジスタ419にセットし、圧縮文字であればその圧
縮文字がどの圧縮文字群に属しているのかの情報を圧縮
文字群表示レジスタ420にセットし、その転送文字に
対応した4ビツトの圧縮コードをバッファレジスタ42
1にセットする。
), sets a conversion code in the buffer register 418, and sets information on whether the transferred character is a compressed character in the buffer register 419, and if it is a compressed character, which compressed character group the compressed character belongs to. information is set in the compressed character group display register 420, and a 4-bit compressed code corresponding to the transferred character is set in the buffer register 42.
Set to 1.

また圧縮文字群表示レジスタ424には現在どの圧縮文
字群を対象として送信装置411がデータ圧縮を行なっ
ているかという圧縮文字群情報が記憶されている。
Further, the compressed character group display register 424 stores compressed character group information indicating which compressed character group the transmitting device 411 is currently performing data compression on.

次に制御回路412は今回の転送文字が圧縮文字である
か否かを表示する表示レジスタ419の内容と前回の転
送文字が奇数番目の圧縮文字であるか否かを表示するレ
ジスタ429(前回の転送文字が奇数番目の圧縮文字の
場合は°1′がセットされ、奇数番目の圧縮文字でない
場合は“0゛がセットされる)の内容を読み込み、それ
らの内容を判定する。
Next, the control circuit 412 controls the contents of the display register 419, which displays whether or not the current transferred character is a compressed character, and the register 429, which displays whether or not the previous transferred character is an odd-numbered compressed character. If the transferred character is an odd-numbered compressed character, °1' is set, and if it is not an odd-numbered compressed character, "0" is set.) The contents are read and their contents are determined.

そして、それぞれの判定結果に基づいて、以下に示す処
理(1)〜(4)の何れかの処理を行なったのち、前述
した処理を再び行なう。
Based on the respective determination results, one of the processes (1) to (4) shown below is performed, and then the above-described process is performed again.

(1)今回の転送文字が圧縮文字で、前回の転送文字が
奇数番目の圧縮文字である場合は(レジスタ429二“
1′の場合)、圧縮文字群表示レジスタ424の内容と
圧縮文字群表示レジスタ420の内容とを比較し、比較
一致の場合は、バッファレジスタ42L427にセット
されている圧縮コードを回線バッファ423に転送した
のち、前回の転送文字が奇数番目の圧縮文字であるか否
かを表示するレジスタ429に0゛をセットする。
(1) If the current transfer character is a compressed character and the previous transfer character is an odd-numbered compressed character (register 429
1'), the contents of the compressed character group display register 424 and the contents of the compressed character group display register 420 are compared, and if they match, the compressed code set in the buffer register 42L427 is transferred to the line buffer 423. Thereafter, 0'' is set in the register 429 which indicates whether or not the previous transferred character is an odd-numbered compressed character.

また、比較不一致の場合は、バッファレジスタ418,
425にセットされている8ビツトコードを回線バッフ
ァ423に転送したのちレジスタ429に“0′をセッ
トする。
In addition, if the comparison does not match, the buffer register 418,
After transferring the 8-bit code set in 425 to the line buffer 423, the register 429 is set to "0".

(2)今回の転送文字が圧縮文字で前回の転送文字が奇
数番目の圧縮文字でない場合は(レジスタ429=’O
’の場合)、圧縮文字群表示レジスタ420,424の
内容を比較し、比較−猶の場合は、バッファレジスタ4
21にセットされている4ビツトの圧縮コードをバッフ
ァレジスタ42γに転送し、バッファレジスタ418に
セットされている8ビツトコードをバッファレジスタ4
25に転送すると共にレジスタ429に1゛をセットす
る。
(2) If the current transferred character is a compressed character and the previous transferred character is not an odd-numbered compressed character (register 429 = 'O
), the contents of the compressed character group display registers 420 and 424 are compared, and if the comparison is negative, the buffer register 4
The 4-bit compressed code set in 21 is transferred to the buffer register 42γ, and the 8-bit code set in the buffer register 418 is transferred to the buffer register 42γ.
At the same time, the register 429 is set to 1.

また比較不一致の場合はバッファレジスタ418にセッ
トされている8ビツトコードを回線バッファ423に転
送すると共に、圧縮文字群表示レジスタ424の内容を
圧縮文字群表示レジスタ420の内容に書換える。
If the comparison does not match, the 8-bit code set in the buffer register 418 is transferred to the line buffer 423, and the contents of the compressed character group display register 424 are rewritten to the contents of the compressed character group display register 420.

この場合、レジスタ429の内容は“0′に保持する。In this case, the contents of register 429 are held at "0".

(3)今回の転送文字が圧縮文字でなく、前回の転送文
字が奇数番目の圧縮文字である場合は(レジスタ429
=“1′の場合)、バッファレジスタ418,425の
内容を回線バッファ423に転送したのち、レジスタ4
29に“O′をセットする。
(3) If the current transferred character is not a compressed character and the previous transferred character is an odd-numbered compressed character (register 429
="1'), the contents of buffer registers 418 and 425 are transferred to line buffer 423, and then register 4 is transferred to line buffer 423.
29 is set to "O'".

(4)今回の転送データが圧縮文字でなく、前回の転送
データが奇数番目の圧縮文字でない場合は(レジスタ4
29=’0’の場合)、バッファレジスタ418の内容
を回線バッファ423に転送する。
(4) If the current transfer data is not a compressed character and the previous transfer data is not an odd-numbered compressed character (register 4
29='0'), the contents of the buffer register 418 are transferred to the line buffer 423.

この場合、レジスタ429の内容は0゛のまま保持する
In this case, the contents of register 429 are held as 0.

前述の如く、非圧縮文字は変換回路417による8ビツ
トの変換コードとして送出し、圧縮文字は圧縮文字群に
属する最初の文字については8ビツトの変換コードとし
、それに続く同一圧縮文字群に属する文字は圧縮コード
として送出するものである。
As mentioned above, uncompressed characters are sent as 8-bit conversion codes by the conversion circuit 417, and compressed characters are sent as 8-bit conversion codes for the first character belonging to a compressed character group, and for subsequent characters belonging to the same compressed character group. is sent as a compressed code.

例えば第6図に示す変換テーブルメモリを用いた場合、
転送データrDATA*53adJを送信する場合は’
F2’、 “1″、“13 +。
For example, when using the conversion table memory shown in FIG.
When sending transfer data rDATA*53adJ, '
F2', "1", "13 +.

“F1′、“EB”、 “5”、“3’ 、’Di’“
D2”に変換されることになる。
"F1', "EB", "5", "3', 'Di'"
D2".

受信装置に於いては、受信データが回線バッファ454
にセットされ、制御回路452より信号線453経由で
転送信号を回線バッファ454に送り、回線バッファ4
54にセットされている受信データを8ビツトずつバッ
ファレジスタ455にセットする。
In the receiving device, the received data is transferred to the line buffer 454.
The control circuit 452 sends a transfer signal to the line buffer 454 via the signal line 453, and the line buffer 4
The received data set in 54 is set in the buffer register 455 8 bits at a time.

制御回路452ではバッファレジスタ455にセットし
た受信データの上位4ビツト、下位4ビツトが0からC
までのコードであるか否かを従来方式と同様にチェック
し、共に圧縮コードであるか否かを判別する。
In the control circuit 452, the upper 4 bits and lower 4 bits of the received data set in the buffer register 455 are set from 0 to C.
It is checked in the same way as in the conventional method whether or not the code is a compressed code.

この判別結果共に圧縮コードであると、制御回路452
はバッファレジスタ455に制御信号を送り、バッファ
レジスタ455にセットされた受信データの上位4ビツ
トをアドレスレジスタ456にセットすると共に本発明
方式では圧縮文字群表示レジスタ457にセットされて
いる現在データ圧縮の対象としている圧縮文字群の種別
をアドレスレジスタ458にセットし、信号線459を
介して変換指示信号を変換回路460に送る。
If both of these determination results are compressed codes, the control circuit 452
sends a control signal to the buffer register 455, sets the upper 4 bits of the received data set in the buffer register 455 to the address register 456, and also sets the current data compression value set in the compressed character group display register 457 in the method of the present invention. The type of the target compressed character group is set in the address register 458, and a conversion instruction signal is sent to the conversion circuit 460 via the signal line 459.

変換回路460は変換指示信号を受けるとアドレスレジ
スタ456にセットされた4ビツトの圧縮コードをアド
レスレジスタ458にセットされた圧縮文字群の種別を
示す情報に従って圧縮文字に変換し、バッファ461に
セットする。
Upon receiving the conversion instruction signal, the conversion circuit 460 converts the 4-bit compressed code set in the address register 456 into compressed characters according to the information indicating the type of compressed character group set in the address register 458, and sets the compressed characters in the buffer 461. .

次にバッファレジスタ455にセットされた受信データ
の下位4ビツトをアドレスレジスタ456にセットし、
制御回路452より信号線459を介して変換回路46
0に変換指示信号を送る。
Next, the lower 4 bits of the received data set in the buffer register 455 are set in the address register 456,
From the control circuit 452 to the conversion circuit 46 via the signal line 459
Sends a conversion instruction signal to 0.

変換回路460は変換指示信号を受けるとアドレスレジ
スタ458にセットされた内容に従ってアドレスレジス
タ456にセットされた圧縮コードを圧縮文字に変換し
、バッファ461にセットする。
Upon receiving the conversion instruction signal, the conversion circuit 460 converts the compressed code set in the address register 456 into compressed characters according to the contents set in the address register 458, and sets the compressed characters in the buffer 461.

バッファレジスタ455にセットされた受信データをチ
ェックし、上位4ビツト、下位4ビツトの両方があるい
は一方が圧縮コードでない場合は、制御回路452でこ
の受信データが圧縮文字であるか否かを上位4ビツトが
り、E、Fで下位4ビツトが0〜Cであるかどうかで判
断し、圧縮文字ならばバッファレジスタ455にセット
された受信データと圧縮文字群表示レジスタ457にセ
ットされている圧縮文字群の種別とを比較する。
The received data set in the buffer register 455 is checked, and if both or one of the upper 4 bits and lower 4 bits is not a compressed code, the control circuit 452 checks the upper 4 bits to determine whether or not this received data is a compressed character. It is determined whether the lower 4 bits of E and F are 0 to C. If it is a compressed character, the received data set in the buffer register 455 and the compressed character group set in the compressed character group display register 457 are used. Compare with the type of .

(従来方式では、上位4ビツトがFで下位4ビツトが0
〜Cであるかどうかで判断している) 比較一致の場合は奇数個連続した圧縮文字の最後の文字
であるため、バッファレジスタ455にセットされた受
信データの上位4ビツトをアドレスレジスタ458にセ
ットし、下位4ビツトをアドレスレジスタ456にセッ
トし、制御回路452より信号線459を介して変換回
路460に変換指示信号を送る。
(In the conventional method, the upper 4 bits are F and the lower 4 bits are 0.
~C) If the comparison matches, this is the last character of an odd number of consecutive compressed characters, so the upper 4 bits of the received data set in the buffer register 455 are set in the address register 458. Then, the lower 4 bits are set in the address register 456, and a conversion instruction signal is sent from the control circuit 452 to the conversion circuit 460 via the signal line 459.

変換回路460は変換指示信号を受けると、アドレスレ
ジスタ456.458にセットされた受信データの上位
4ビツト、下位4ビットを読込み、バッファレジスタ4
55にセットされた8ビツトコードに対応する文字に変
換しバッファ461にセットする。
Upon receiving the conversion instruction signal, the conversion circuit 460 reads the upper 4 bits and lower 4 bits of the received data set in the address registers 456 and 458, and stores the data in the buffer register 4.
The character is converted into a character corresponding to the 8-bit code set to 55 and set in the buffer 461.

比較不一致の場合は、圧縮文字群表示レジスタ451に
セットされている圧縮文字群の種別をバッファレジスタ
455にセットされている圧縮文字が属している圧縮文
字群の種別に変更し、バッファレジスタ455にセット
された受信データの上位4ビツト、下位4ビツトをアド
レスレジスタ458.456にセットする。
If the comparison does not match, the type of the compressed character group set in the compressed character group display register 451 is changed to the type of the compressed character group to which the compressed character set in the buffer register 455 belongs, and the type of the compressed character group set in the buffer register 455 is changed. The upper 4 bits and lower 4 bits of the set received data are set in address registers 458 and 456.

制御回路452は信号線459を介して変換指示信号を
変換回路460に送り、変換回路460ではこの変換指
示信号を受けるとアドレスレジスタ456,458にセ
ットされたコードを読込み、バッファレジスタ455に
セットされた8ビツトコードに対応する文字に変換し、
バッファ461にセットする。
The control circuit 452 sends a conversion instruction signal to the conversion circuit 460 via a signal line 459. Upon receiving this conversion instruction signal, the conversion circuit 460 reads the code set in the address registers 456 and 458, and sets the code in the buffer register 455. Convert the 8-bit code into the corresponding character,
Set in buffer 461.

バッファレジスタ455にセットされた受信データを制
御回路452で圧縮文字であるか否かを判断し、その判
断結果が圧縮文字でない場合は、バッファレジスタ45
5にセットされた受信データの上位4ビツトをアドレス
レジスタ458にセットし、下位4ビツトをアドレスレ
ジスタ456にセットし、変換回路460でバッファレ
ジスタ455にセットされた8ビツトコードに対応する
文字に変換し、バッファ461にセットする。
The control circuit 452 determines whether the received data set in the buffer register 455 is a compressed character, and if the determination result is not a compressed character, the buffer register 45
The upper 4 bits of the received data set to 5 are set in the address register 458, the lower 4 bits are set in the address register 456, and the conversion circuit 460 converts them into characters corresponding to the 8-bit code set in the buffer register 455. , and set it in the buffer 461.

以上説明したように、本発明はデータ圧縮の対象となる
圧縮文字群を複数設け、データ転送を行なう際、転送文
字が圧縮文字であるか、どの圧縮文字群に属しているか
を判断すると共に現在データ圧縮の対象としている圧縮
文字群と転送文字が属している圧縮文字群とを比較し、
同一の圧縮文字群に属する連続した転送文字の最初の文
字は圧縮コードとせずに送信し、次の文字から変換テー
ブルによる圧縮コードとして送信し、受信側に於いては
受信コードが圧縮コードであるか否か、また逆変換した
圧縮文字がどの圧縮文字群に属しているか判断し、この
判断結果に基づいて、現在データ圧縮の対象としている
送信側の圧縮文字群がどの圧縮文字群なのかを判断し、
データの復元を行なう。
As explained above, the present invention provides a plurality of compressed character groups that are the targets of data compression, and when transferring data, determines whether the transferred character is a compressed character, which compressed character group it belongs to, and Compare the compressed character group targeted for data compression and the compressed character group to which the transfer character belongs,
The first character of consecutive transfer characters belonging to the same compressed character group is sent without being converted into a compressed code, and the next character is sent as a compressed code based on the conversion table, and on the receiving side, the received code is a compressed code. , and which compressed character group the inversely converted compressed character belongs to.Based on the result of this determination, it is determined which compressed character group is the compressed character group on the sending side that is currently the target of data compression. judge,
Perform data restoration.

従って、圧縮文字の数を増加することができるので、圧
縮効率を向上することができ、連続して出現する確立の
大きい文字を大量に出力するバッチ処理等に適用すると
非常に有効である。
Therefore, since the number of compressed characters can be increased, compression efficiency can be improved, and it is very effective when applied to batch processing or the like in which a large number of characters with a high probability of appearing consecutively are output.

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

第1図は従来のデータ圧縮方式のブロック線図、第2図
は従来の変換テーブルの一例の説明図、第3図は第2図
の変換テーブルを用いた場合のデータ圧縮の一例の説明
図、第4図は本発明の実施例の送信装置のブロック線図
、第5図は本発明の実施例の受信装置のブロック線図、
第6図は本発明方式で使用する変換テーブルメモリの一
例の説明図である。 11.411は送信装置、12は送信変換テーブル、1
3,451は受信装置、14は受信変換デープル、41
2,452は制御回路、413゜416.422,42
6,428,453,459は信号線、414,461
はバッファ、415゜456.458はアドレスレジス
タ、417゜460は変換回路、418,421,42
5゜427.455はバッファレジスタ、423゜45
4は回線バッファ、419は表示レジスタ、420.4
24,457は圧縮文字群表示レジスタ、429はレジ
スタである。
Figure 1 is a block diagram of a conventional data compression method, Figure 2 is an explanatory diagram of an example of a conventional conversion table, and Figure 3 is an explanatory diagram of an example of data compression using the conversion table of Figure 2. , FIG. 4 is a block diagram of a transmitting device according to an embodiment of the present invention, and FIG. 5 is a block diagram of a receiving device according to an embodiment of the present invention.
FIG. 6 is an explanatory diagram of an example of a conversion table memory used in the method of the present invention. 11.411 is a transmitting device, 12 is a transmission conversion table, 1
3,451 is a receiving device, 14 is a receiving conversion table, 41
2,452 is a control circuit, 413°416.422,42
6,428,453,459 are signal lines, 414,461
is a buffer, 415°456.458 is an address register, 417°460 is a conversion circuit, 418, 421, 42
5°427.455 is a buffer register, 423°45
4 is the line buffer, 419 is the display register, 420.4
24, 457 is a compressed character group display register, and 429 is a register.

Claims (1)

【特許請求の範囲】[Claims] 1 変換テーブルを用いてデータの圧縮及び復元を行な
うデータ圧縮方式に於いて、連続して出現する確率の大
きい文字を任意数毎にまとめた複数の圧縮文字群を前記
変換テーブルに設け、送信側に該変換テーブルと、転送
データの各文字が前記圧縮文字群の何れの群に属するか
否かの判定手段と、前回の転送データの文字が属してい
る圧縮文字群を記憶する記憶手段と、該記憶手段の内容
と前記判定手段の判定結果とを比較する比較手段とを備
え、同一の圧縮文字群に属する連続した転送データの最
初の文字は圧縮コードとせずに送信し、該最初の文字の
次の文字から前記変換テーブルによる圧縮コードとして
送信し、受信側に前記変換テーブルと、受信データが圧
縮文字群の倒れの群に属するか否かの判定手段とを備え
、該判定手段の判定結果に基いて前記変換テーブルを用
いてデータの復元を行なうことを特徴とするデータ圧縮
方式。
1. In a data compression method that compresses and decompresses data using a conversion table, a plurality of compressed character groups are provided in the conversion table, in which characters with a high probability of appearing consecutively are grouped into arbitrary numbers, and the sending side the conversion table, means for determining whether each character of the transfer data belongs to which group of the compressed character groups, and storage means for storing the compressed character group to which the characters of the previous transfer data belong; a comparison means for comparing the contents of the storage means and the determination result of the determination means, the first character of consecutive transfer data belonging to the same compressed character group is transmitted without being compressed; transmitting a compressed code according to the conversion table from the next character of A data compression method characterized in that data is restored using the conversion table based on the result.
JP16297078A 1978-12-26 1978-12-26 Data compression method Expired JPS5816819B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP16297078A JPS5816819B2 (en) 1978-12-26 1978-12-26 Data compression method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP16297078A JPS5816819B2 (en) 1978-12-26 1978-12-26 Data compression method

Publications (2)

Publication Number Publication Date
JPS5588453A JPS5588453A (en) 1980-07-04
JPS5816819B2 true JPS5816819B2 (en) 1983-04-02

Family

ID=15764730

Family Applications (1)

Application Number Title Priority Date Filing Date
JP16297078A Expired JPS5816819B2 (en) 1978-12-26 1978-12-26 Data compression method

Country Status (1)

Country Link
JP (1) JPS5816819B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5999531A (en) * 1982-11-29 1984-06-08 Casio Comput Co Ltd Character string data processor

Also Published As

Publication number Publication date
JPS5588453A (en) 1980-07-04

Similar Documents

Publication Publication Date Title
US5463701A (en) System and method for pattern-matching with error control for image and video compression
JPS5810236A (en) Interface circuit
JPH0681058B2 (en) Data transmission / reception method
US5832037A (en) Method of compressing and expanding data
JPS6068729A (en) Method and device for compressing digital data
JPH0821863B2 (en) Data processing method
JP2853784B2 (en) Encoding / decoding device
JPS5816819B2 (en) Data compression method
JPH09109461A (en) Apparatus for restoring compressed two-value image data
JPH02218224A (en) Data transferring method
JP2805621B2 (en) Image data processing device
JPH02218225A (en) Data compressing method
JPS58117044A (en) Data processing system
JPH0569342B2 (en)
JPS63254843A (en) Character string converting system
JPS5831446A (en) Data compressing system
JPH0731686B2 (en) Data sorter
JPH0650478B2 (en) Data compression storage system
JPH03261255A (en) Data transfer system
JPH0635442A (en) Data converting device
JPH036924A (en) Terminal equipment
JPH08286889A (en) Data file compression decoding method
JPS6297065A (en) Storing and retrieving system for picture information
JPS61109353A (en) Data compression system
JPH07131661A (en) Data processor