JPH0548027B2 - - Google Patents

Info

Publication number
JPH0548027B2
JPH0548027B2 JP58113200A JP11320083A JPH0548027B2 JP H0548027 B2 JPH0548027 B2 JP H0548027B2 JP 58113200 A JP58113200 A JP 58113200A JP 11320083 A JP11320083 A JP 11320083A JP H0548027 B2 JPH0548027 B2 JP H0548027B2
Authority
JP
Japan
Prior art keywords
shift register
data
compressed
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 - Lifetime
Application number
JP58113200A
Other languages
Japanese (ja)
Other versions
JPS6074776A (en
Inventor
Mitsuo Tsuruta
Takaharu Takai
Omyuku Fujimori
Toshuki Suguro
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
Original Assignee
Fujitsu 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 filed Critical Fujitsu Ltd
Priority to JP58113200A priority Critical patent/JPS6074776A/en
Publication of JPS6074776A publication Critical patent/JPS6074776A/en
Publication of JPH0548027B2 publication Critical patent/JPH0548027B2/ja
Granted legal-status Critical Current

Links

Description

【発明の詳細な説明】 (a) 発明の技術分野 本発明は圧縮したデータを使用するシステムに
おける圧縮データを伸張する圧縮データ伸張方法
の改良に関するものである。
DETAILED DESCRIPTION OF THE INVENTION (a) Technical Field of the Invention The present invention relates to an improvement in a compressed data decompression method for decompressing compressed data in a system using compressed data.

(b) 従来技術と問題点 一般に図形又は文字等の画像を電気信号に変換
して伝送する場合、画像はビジユアル機器によつ
て白或いは黒の複数の画素に分解され、白は
“0”、黒は“1”の電気信号に変換される。しか
しながら画像は白と黒の画素が均質に分布されて
いることは極めて稀で、通常は同一信号が複数個
連続する場合が多い。このような同一の信号をそ
のまま伝送すると情報量が多なるので、信号の冗
長な部分を除去し、圧縮して伝送する冗長度抑圧
符号方式が採用されている。
(b) Prior Art and Problems Generally, when an image such as a figure or character is converted into an electrical signal and transmitted, the image is separated into a plurality of white or black pixels by visual equipment, and white is "0", Black is converted into an electrical signal of "1". However, in an image, it is extremely rare for white and black pixels to be uniformly distributed, and usually, there are many cases in which a plurality of identical signals are continuous. If the same signal is transmitted as it is, the amount of information will be large, so a redundancy suppression coding system is adopted in which redundant parts of the signal are removed, compressed, and transmitted.

このような冗長度抑圧符号方式の一つである、
一次元符号化方式は、国際電信電話諮問委員会
(以下、CCITTと略称する)においては、白及び
黒のそれぞれの0〜1728ビツトのランレングスに
対し、これを1と0とからなる圧縮された符号に
変換するテーブル(ターミネイテイング符号及び
メイクアツプ符号)を発表している。
One of such redundancy suppression coding methods is
In the one-dimensional encoding system, the International Telegraph and Telephone Consultative Committee (hereinafter abbreviated as CCITT) uses a compressed code consisting of 1's and 0's for run lengths of 0 to 1728 bits for white and black. He has published a table (terminating code and make-up code) for converting the code into a fixed code.

このような冗長度抑圧符号方式により圧縮化さ
れたデータは、上記のCCITTにおいて規定され
たテーブル(以下、伸張テーブルと略称する)に
よつて伸張されることによりもとの画像に復元さ
れるようになつている。
Data compressed using such a redundancy reduction coding method is restored to the original image by being decompressed using the table specified by CCITT (hereinafter referred to as decompression table). It's getting old.

従来伸張テーブルを用いてデータ伸張を行うの
に第1図の回路が用いられている。第1図は従来
の圧縮データを伸張する伸張回路図、第2図は受
信データ図であり、1はレジスタ、2は伸張テー
ブル、3はバツフア・レジスタである。此の回路
を用いて例えば、第2図に示す受信データ“0”
アドレスをバツフア・レジスタ3に格納する。こ
のデータを伸張する場合には、バツフア・レジス
タ3の内容8ビツトをレジスタ1にセツトし、伸
張テーブル2からデータ1の値を得る。次ぎにレ
ジスタ1を5回左シフトし、更にバツフア・レジ
スタ3の“1”アドレスを右に3回シフトし第2
図下部に示すような形にし、アドレス“0”と
“1”の論理和をつくりデータ2を完成し論理和
値をレジスタ1に入力して伸張テーブル2よりデ
ータ2の値を得る。以下同様にしてデータ3、4
を処理する。従つて伸張テーブルのアドレスを決
定するのに手数を要し、時間が掛かると言つた欠
点と、データを処理するのに煩雑であり、結果と
して此のデータ処理を行うプログラムが増大する
と言つた欠点もあつた。
Conventionally, the circuit shown in FIG. 1 has been used to expand data using an expansion table. FIG. 1 is a diagram of a conventional decompression circuit for decompressing compressed data, and FIG. 2 is a diagram of received data, where 1 is a register, 2 is a decompression table, and 3 is a buffer register. For example, using this circuit, the received data "0" shown in FIG.
Store the address in buffer register 3. When decompressing this data, the 8-bit contents of buffer register 3 are set in register 1, and the value of data 1 is obtained from decompression table 2. Next, register 1 is shifted to the left five times, and the "1" address of buffer register 3 is shifted to the right three times, and the second
Create a form as shown in the lower part of the figure, create a logical sum of addresses "0" and "1" to complete data 2, input the logical sum value to register 1, and obtain the value of data 2 from expansion table 2. Similarly, data 3 and 4
process. Therefore, the disadvantage is that it takes time and effort to determine the address of the expansion table, and the disadvantage is that it is complicated to process the data, resulting in an increase in the number of programs that process this data. It was hot too.

(c) 発明の目的 以上の従来の欠点に鑑がみ本発明は、データを
処理するのに時間が掛からず、簡単に処理が完了
する圧縮データ伸張方法を提供することを目的と
するものである。
(c) Purpose of the Invention In view of the above-mentioned conventional drawbacks, the present invention aims to provide a compressed data decompression method that does not take much time to process data and can easily complete the processing. be.

(d) 発明の構成 本発明は、バツフアレジスタから圧縮された受
信データがパラレルに入力され、シリアルに出力
される第1シフトレジスタと、この第1シフトレ
ジスタからこの圧縮された受信データがシリアル
に入力され、パラレルに出力される第2シフトレ
ジスタと、この第2シフトレジスタのパラレル出
力から圧縮された受信データのラソレングスを検
出し、且つこのランレングスに対応する伸張デー
タを出力する伸張テーブルとを備え、この第2の
シフトレジスタとこの伸張テーブルとの照合によ
り検出され、シフトされたこの圧縮データのパラ
レル出力と同数のビツト長の圧縮データが、この
第1シフトレジタからこの第2シフトレジスタに
シリアルに入力され、この第1シフトレジスタの
全てのデータがこの第2シフトレジスタにシリア
ルに入力されてこの第1シフトレジスタの全ての
ビツトが空になつた後、後続の圧縮された受信デ
ータがパラレルにこの第1シフトレジスタに入力
されることを特徴とするものである。
(d) Structure of the Invention The present invention includes a first shift register to which compressed received data is input in parallel from a buffer register and outputted serially; a second shift register that is input to the second shift register and output in parallel; and an expansion table that detects the lasso length of compressed received data from the parallel output of the second shift register and outputs decompressed data corresponding to this run length. The compressed data having the same number of bits as the parallel output of the shifted compressed data detected by comparing the second shift register with the expansion table is transferred from the first shift register to the second shift register. After all the data in this first shift register is serially input into this second shift register and all the bits in this first shift register are emptied, the subsequent compressed received data is It is characterized in that it is input to the first shift register in parallel.

(e) 発明の実施例 以下本発明による一実施例を第3図により詳細
に説明する。
(e) Embodiment of the Invention An embodiment of the present invention will be described in detail below with reference to FIG.

第3図は本発明の圧縮データ伸張方法の一実施
例のブロツク図であり、3はバツフアレジスタ、
4は第1シフトレジスタ、5は第2シフトレジス
タ、2は伸張テーブルである。
FIG. 3 is a block diagram of an embodiment of the compressed data decompression method of the present invention, in which 3 is a buffer register;
4 is a first shift register, 5 is a second shift register, and 2 is an expansion table.

第1シフトレジスタ4は、バツフアレジスタ3
からの8ビツトの圧縮データをパラレルに入力
し、このパラレルに入力された圧縮データをシリ
アルに第2シフトレジスタ5に出力する機能を有
しており、第2シフトレジスタ5は第1シフトレ
ジスタ4からシリアルに入力されたデータを伸張
テーブル2と照合して検出された圧縮データをパ
ラレルデータとして伸張テーブル2に出力する機
能を有している。
The first shift register 4 is a buffer register 3.
It has a function of inputting 8-bit compressed data from It has a function of comparing the serially input data from the decompression table 2 with the decompression table 2 and outputting the detected compressed data to the decompression table 2 as parallel data.

まず、最初の8ビツトの圧縮された受信データ
(11000101)がバツフアレジスタ3からパラレル
に第1シフトレジスタ4に入力され、ついでこの
データの全てがシリアルに第2のシフトレジスタ
5に入力され、更につぎの8ビツトの受信データ
(00111101)がバツフアレジスタ3から第1シフ
トレジスタ4にパラレルに入力された場合につい
て具体的に説明する。
First, the first 8-bit compressed received data (11000101) is input from the buffer register 3 in parallel to the first shift register 4, and then all of this data is input serially to the second shift register 5. Furthermore, a case in which the next 8-bit received data (00111101) is input from the buffer register 3 to the first shift register 4 in parallel will be specifically explained.

このように第1シフトレジスタ4及び第2シフ
トレジスタ5にそれぞれ8ビツトのデータが収納
された状態で、第2シフトレジスタ5の8ビツト
のデータと伸張テーブル2との照合が行われる。
この場合先頭のビツトが1なので最初は白である
から、伸張テーブルの白のランレングスの欄が対
象となり、照合の結果(1100)が第1データであ
り、白の5ビツトに伸張すべきことが検出され、
伸張テーブル2から出力されるとともに、(1100)
は4ビツトであるから第1シフトレジスタ4内の
残りのデータ(0101)を4ビツト分シフトさせ
る。この4ビツト分のシフトにより、ビツトが空
になるので、第1シフトレジスタ4の最初の
(0011)はシリアルに第2シフトレジスタ5に入
力される。この第2シフトレジスタ5内では第1
データ(1100)は除かれて残りの(0101)と第1
シフトレジスタの先頭のデータの(0011)がセツ
トされる。一方第1シフトレジスタ4には収納さ
れているデータの後半の(1101)が4ビツト分シ
フトされ、残りの4ビツト分は空となつている。
With 8-bit data stored in each of the first shift register 4 and the second shift register 5 in this manner, the 8-bit data in the second shift register 5 is compared with the expansion table 2.
In this case, since the first bit is 1, it is white at first, so the white run length column of the expansion table is the target, and the result of verification (1100) is the first data, which should be expanded to 5 white bits. is detected,
Along with being output from expansion table 2, (1100)
Since there are 4 bits, the remaining data (0101) in the first shift register 4 is shifted by 4 bits. This shift of 4 bits empties the bits, so the first (0011) in the first shift register 4 is serially input to the second shift register 5. In this second shift register 5, the first
Data (1100) is removed and the remaining (0101) and the first
The first data of the shift register (0011) is set. On the other hand, the second half (1101) of the data stored in the first shift register 4 is shifted by 4 bits, and the remaining 4 bits are empty.

このようにして第2シフトレジスタ5にセツト
されている内容が伸張テーブル2と照合される。
この場合は先頭のビツトが0であるから伸張テー
ブルの黒のランレングスの欄が対象となり、
(010)が第2データであり、これは1ビツトの黒
であることが検出され、第2シフトレジスタ5か
ら伸張テーブル2に黒の1ビツトが出力されると
ともに、(010)は3ビツトであるから第2シフト
レジスタ5内の残りのデータ1は3ビツト分シフ
トされ、第2シフトレジスタ5内には最後の1の
みが、ビツト0の位置にセツトされ、シリアルな
出力(0011110)が第1シフトレジスタから第2
シフトレジスタ5に入力される。この結果この第
2シフトレジスタには(10011110)がセツトされ
る。このデータが伸張テーブルで照合されると、
順序としては白のランレングスの欄が対象とな
り、上記のセツトされたデータ中の(10011)の
5ビツトは第3データであり、これは白の8ビツ
トであることが検出され、第2シフトレジスタか
ら伸張テーブル2へは(10011)が出力されると
ともに、(10011)は5ビツトであるから第1シフ
トレジスタ4には最後の(1)のみがセツトされてい
ただけであるから、この(1)は第2シフトレジスタ
5のビツト3の位置にセツトされ、更にこの状態
では第1シフトレジスタ4の内容は全てが空にな
つたので、受信データのつぎの8ビツトの圧縮デ
ータ(10000000)がパラレルにバツフアレジスタ
3を介して第1シフトレジスタ4に入力され、続
いてそのうち最初の4ビツト分(1000)がシリア
ルに出力されて第2シフトレジスタ5に入力され
る。この状態では第2シフトレジスタ内には
(11011000)がセツトされ、第1シフトレジスタ
にはビツト位置0〜3に(0000)がセツトされて
いる。
In this way, the contents set in the second shift register 5 are compared with the expansion table 2.
In this case, the first bit is 0, so the black run length column of the expansion table is the target.
(010) is the second data, and it is detected that this is 1 bit black, and 1 black bit is output from the second shift register 5 to the expansion table 2, and (010) is 3 bits. Therefore, the remaining data 1 in the second shift register 5 is shifted by 3 bits, and only the last 1 is set in the position of bit 0 in the second shift register 5, and the serial output (0011110) is 1 shift register to 2nd shift register
The signal is input to the shift register 5. As a result, (10011110) is set in this second shift register. When this data is matched with the decompression table,
In terms of order, the white run length column is targeted, and the 5 bits (10011) in the data set above are the third data, which is detected to be the 8 bits of white, and the second shift (10011) is output from the register to the expansion table 2, and since (10011) is 5 bits, only the last (1) is set in the first shift register 4, so this (1) ) is set at the bit 3 position of the second shift register 5, and since the contents of the first shift register 4 are all empty in this state, the next 8-bit compressed data (10000000) of the received data is The signal is inputted in parallel to the first shift register 4 via the buffer register 3, and then the first 4 bits (1000) are outputted serially and inputted to the second shift register 5. In this state, (11011000) is set in the second shift register, and (0000) is set in bit positions 0 to 3 of the first shift register.

これまでと同様に第2シフトレジスタ5に収納
されたデータ(11011000)と伸張テーブル2との
照合が行われ、(11)が2ビツトの黒のランレングス
で第4データであり、これは黒の2ビツトとして
検出され、伸張テーブル2より出力されるととも
に、(11)は2ビツトとしての検出信号が出力され、
以下同様なデータのシフト過程が繰り返される。
As before, the data (11011000) stored in the second shift register 5 is compared with the expansion table 2, and (11) is the fourth data with a 2-bit black run length. (11) is detected as 2 bits and output from the expansion table 2, and (11) is output as a 2 bit detection signal.
The same data shifting process is repeated thereafter.

即ち、パラレルな入力をシリアルに出力する第
1シフトレジスタ4と、シリアルな入力をパラレ
ルに出力する第2シフトレジスタ5とを接続し、
第1シフトレジスタには圧縮された受信データを
バツフアレジスタ3からパラレルに入力し、第1
シフトレジスタ4からのシリアルな出力を第2シ
フトレジスタに入力し、第2シフトレジスタには
第1シフトレジスタからのシリアルな入力で全て
のビツト位置にデータがセツトされる。又、第1
シフトレジスタに収納されていたデータが全部第
2シフトレジスタにシフトされて全部のビツト位
置が空になつたときに、後続の8ビツトの圧縮デ
ータがこの第1シフトレジスタのビツト位置にパ
ラレルに入力されるようになつている。
That is, a first shift register 4 that serially outputs parallel inputs and a second shift register 5 that outputs serial inputs in parallel are connected,
The compressed reception data is input in parallel from the buffer register 3 to the first shift register.
The serial output from the shift register 4 is input to the second shift register, and data is set in all bit positions in the second shift register by the serial input from the first shift register. Also, the first
When all the data stored in the shift register is shifted to the second shift register and all bit positions become empty, the subsequent 8-bit compressed data is input in parallel to the bit position of this first shift register. It is becoming more and more common.

そしてこのような状態で第2シフトレジスタか
らのパラレル出力を伸張テーブル2で白ランレン
グス、黒ランレングスの順に照合し、第1データ
の検出と対応する伸張されたデータを出力し、且
つこの第1データのビツト数を示す検出信号によ
りこのビツト数に対応するデータを第1シフトレ
ジスタから第2シフトレジスタにシリアルに出力
してセツトし、ついで第2データの検出を行うよ
うにしている。
In this state, the parallel output from the second shift register is checked in the order of white run length and black run length in the expansion table 2, and the expanded data corresponding to the detection of the first data is output. Based on a detection signal indicating the number of bits in one data, data corresponding to this number of bits is serially output from the first shift register to the second shift register and set, and then the second data is detected.

第1シフトレジスタの全ビツト位置が空になつ
た場合には、新たな8ビツトの圧縮データが第1
シフトレジスタ4にパラレルに入力され、以後、
同様な処理過程によつて圧縮された受信データの
伸張を行うことが可能となる。
If all bit positions in the first shift register become empty, new 8-bit compressed data is transferred to the first shift register.
It is input to shift register 4 in parallel, and from then on,
It becomes possible to decompress received data compressed through a similar process.

(f) 発明の効果 以上、詳細に説明したように本発明の圧縮デー
タ伸張方法は、データを処理するのに時間が掛か
らず、簡単に処理が完了するものとなり圧縮デー
タを取り扱う上で利点の多いものとなる。
(f) Effects of the Invention As explained above in detail, the compressed data decompression method of the present invention has advantages in handling compressed data because it does not take much time to process data and the processing can be easily completed. There will be many.

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

第1図は従来の圧縮データを伸張する伸張回路
図、第2図は受信データ図、第3図は本発明の圧
縮データ伸張方法を示す一実施例のブロツク図で
ある。 図において、1はレジスタ、2は伸張テーブ
ル、3はバツフアレジスタ、4は第1シフトレジ
スタ、5は第2シフトレジスタをそれぞれ示す。
FIG. 1 is a diagram of a conventional decompression circuit for decompressing compressed data, FIG. 2 is a diagram of received data, and FIG. 3 is a block diagram of an embodiment of the compressed data decompression method of the present invention. In the figure, 1 is a register, 2 is an expansion table, 3 is a buffer register, 4 is a first shift register, and 5 is a second shift register.

Claims (1)

【特許請求の範囲】 1 バツフアレジスタ3から圧縮された受信デー
タがパラレルに入力され、シリアルに出力される
第1シフトレジスタ4と、 該第1シフトレジスタ4から前記圧縮された受
信データがシリアルに入力され、パラレルに出力
される第2シフトレジスタ5と、 該第2シフトレジスタ5のパラレル出力から圧
縮された受信データのランレングスを検出し、且
つこのランレングスに対応する伸張データを出力
する伸張テーブル2とを備え、 前記第2のシフトレジスタ5と前記伸張テーブ
ル2との照合により検出され、シフトされた前記
圧縮データのパラレル出力と同数のビツト長の圧
縮データが、前記第1シフトレジスタ4から前記
第2シフトレジスタ5にシリアルに入力され、 前記第1シフトレジスタ4の全てのデータが前
記第2シフトレジスタ5にシリアルに入力されて
前記第1シフトレジスタ4の全てのビツトが空に
なつた後、後続の圧縮された受信データがパラレ
ルに前記第1シフトレジスタ4に入力されること
を特徴とする圧縮データ伸張方法。
[Scope of Claims] 1. A first shift register 4 into which the compressed reception data from the buffer register 3 is inputted in parallel and outputted serially; Detects the run length of the compressed received data from the parallel output of the second shift register 5, and outputs decompressed data corresponding to this run length. and an expansion table 2, the compressed data having the same number of bits as the parallel output of the shifted compressed data detected by comparing the second shift register 5 and the expansion table 2 is transferred to the first shift register. 4 to the second shift register 5, all the data in the first shift register 4 is serially input to the second shift register 5, and all the bits in the first shift register 4 are emptied. 2. A method for decompressing compressed data, wherein subsequent compressed received data is input in parallel to the first shift register 4.
JP58113200A 1983-06-22 1983-06-22 Expanding method of compressed data Granted JPS6074776A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP58113200A JPS6074776A (en) 1983-06-22 1983-06-22 Expanding method of compressed data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP58113200A JPS6074776A (en) 1983-06-22 1983-06-22 Expanding method of compressed data

Publications (2)

Publication Number Publication Date
JPS6074776A JPS6074776A (en) 1985-04-27
JPH0548027B2 true JPH0548027B2 (en) 1993-07-20

Family

ID=14606086

Family Applications (1)

Application Number Title Priority Date Filing Date
JP58113200A Granted JPS6074776A (en) 1983-06-22 1983-06-22 Expanding method of compressed data

Country Status (1)

Country Link
JP (1) JPS6074776A (en)

Also Published As

Publication number Publication date
JPS6074776A (en) 1985-04-27

Similar Documents

Publication Publication Date Title
US5032838A (en) Variable length code parallel decoding apparatus and method
US4216460A (en) Transmission and/or recording of digital signals
US5162795A (en) Coding and decoding apparatus of variable length data
JPS60140981A (en) Method and device for decoding digital coded word of coded word system
JPS6338913B2 (en)
JPH0525225B2 (en)
JP2853784B2 (en) Encoding / decoding device
JPS60140980A (en) Method and device for encoding signal representing flow of digital data group
GB2175769A (en) Processing image data
JP3179588B2 (en) Data encoding apparatus and method
JPS60140979A (en) Parallel processor for encoding and decoding of picture signal
JPH0548027B2 (en)
JP3195427B2 (en) Data conversion / inversion converter
JPH05341955A (en) Data compression and restoration system
JPS6329472B2 (en)
JP3211524B2 (en) Variable code length transmitter for facsimile machine
JPS60253372A (en) Picture signal coding system
JP2556160B2 (en) Compression code decompression device
JP3142911B2 (en) Processing method of encoding / decoding device
JPH11205613A (en) Image processor
JPH021469B2 (en)
JPS6043716B2 (en) Orthogonal transform encoding circuit
JPS61234664A (en) Decoding circuit
JPH04286084A (en) Data compression and restoration system
JPH07255053A (en) Zigzag scanning circuit