JPH0484521A - Data compression and expansion circuit - Google Patents

Data compression and expansion circuit

Info

Publication number
JPH0484521A
JPH0484521A JP20063490A JP20063490A JPH0484521A JP H0484521 A JPH0484521 A JP H0484521A JP 20063490 A JP20063490 A JP 20063490A JP 20063490 A JP20063490 A JP 20063490A JP H0484521 A JPH0484521 A JP H0484521A
Authority
JP
Japan
Prior art keywords
data
compression
circuit
register
section
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP20063490A
Other languages
Japanese (ja)
Inventor
Hideo Owada
大和田 秀夫
Masanori Kurita
昌徳 栗田
Akihiro Azuma
明浩 東
Kazuhide Tamaki
和秀 田巻
Takashi Hagiwara
萩原 孝
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 JP20063490A priority Critical patent/JPH0484521A/en
Publication of JPH0484521A publication Critical patent/JPH0484521A/en
Pending legal-status Critical Current

Links

Landscapes

  • Compression, Expansion, Code Conversion, And Decoders (AREA)

Abstract

PURPOSE:To attain compression processing of two sets of data information or over each different from one line with one data compression circuit by writing any of plural coded data stored in a storage section to a register section so as to compress a picture data different from each prescribed length. CONSTITUTION:A reference line and a coded line by one line each in a picture 'a' are fetched in a buffer 11 and a buffer section 3 and data compression processing is implemented by a compression circuit 4 based on each line data. The data compressed by the compression circuit 4 is outputted to a register section 5, in which a code output is implemented in the timing when an inputted data reaches 8 bits. When the compression processing by one line of the picture 'd' is finished, information of a bit counter 5b and a shift register 5a is stored in an external memory 9. Thus, the compression processing of two sets of data information or over each different from one line is implemented with one data compression circuit.

Description

【発明の詳細な説明】 〔目次〕 概要 産業上の利用分野 従来の技術 発明が解決しようとする課題 課題を解決するための手段 (第5図) (第1図) 作用 実施例 本発明の第1実施例      (第2図)本発明の第
2実施例      (第3図)発明の効果 〔概要〕 データ圧縮・伸長回路に関し、 1つのデータ圧縮・伸長回路で、■ラインずつ異なる2
以上のデータ情報の圧縮・伸長処理を行うデータ圧縮・
伸長回路を提供することを目的とし、 異なる2以上の情報中のいずれかのデータを所定長分蓄
積するバッファ部と、該ノ\・ソファ部に蓄積されたデ
ータを圧縮して符号化する圧縮回路と、該圧縮回路によ
り符号化されたデータを読み出して一時保持し、データ
が所定量になったタイミングで該データを出力するレジ
スタ部と、該レジスタ部の符号化データを所定ビ・ント
幅単位に複数個記憶する記憶部とを有するデータ圧縮手
段を備え、前記記憶部に記憶された複数個の符号化デー
タのいずれかを前記レジスタ部に書き込み、所定長分毎
に異なる画像データの圧縮を行うように構成している。
[Detailed description of the invention] [Table of contents] Overview Industrial field of application Conventional technology Problems to be solved by the invention Means for solving the problems (Fig. 5) (Fig. 1) Working examples 1 Embodiment (Figure 2) Second embodiment of the present invention (Figure 3) Effects of the invention [Summary] Regarding the data compression/expansion circuit, in one data compression/expansion circuit, ■ 2 different lines for each line.
Data compression/expansion processing for the above data information
The purpose is to provide a decompression circuit, which includes a buffer section that stores data of two or more different pieces of information for a predetermined length, and a compression section that compresses and encodes the data stored in the no/sofa section. a circuit, a register section that reads and temporarily holds the data encoded by the compression circuit, and outputs the data when the data reaches a predetermined amount; a data compression means having a storage section that stores a plurality of pieces of encoded data per unit, writes any of the plurality of encoded data stored in the storage section into the register section, and compresses different image data for each predetermined length. It is configured to do this.

また、異なる2以上の情報のデータを圧縮して得られる
符号化データを所定ビット幅単位に複数個記憶する記憶
部と、該符号化データを読み出して一時保持し、データ
が所定量になったタイミングで該データを次段に出力す
るレジスタ部と、該レジスタ部に保持された符号化デー
タを伸長して元のデータに復元する伸長回路と、該伸長
回路で復元されたデータを所定長分蓄積するバッファ部
とを有するデータ伸長手段を備え、前記記憶部に記憶さ
れた複数個の符号化データのいずれかを前記レジスタ部
に書き込み、所定長分毎に異なるデータの伸長を行うよ
うに構成している。
It also includes a storage unit that stores a plurality of pieces of coded data obtained by compressing data of two or more different pieces of information in units of a predetermined bit width, and a storage unit that reads out and temporarily holds the coded data and stores it once the data reaches a predetermined amount. a register section that outputs the data to the next stage at a timing; an expansion circuit that expands the encoded data held in the register section and restores it to the original data; a data decompression means having a buffer section for storing data, and is configured to write any of the plurality of encoded data stored in the storage section into the register section, and to decompress different data every predetermined length. are doing.

〔産業上の利用分野] 本発明は、データ圧縮・伸長回路に係り、詳しくは、例
えば、ファクシミリ装置等の分野に用いて好適な、消費
メモリの低減化のために、データをコンパクトに取り扱
えるようにするデータ圧縮・伸長回路に関する。
[Industrial Field of Application] The present invention relates to a data compression/decompression circuit, and more specifically, the present invention relates to a data compression/decompression circuit that is suitable for use in the field of facsimile machines, etc., and is capable of handling data in a compact manner in order to reduce memory consumption. related to data compression/decompression circuits.

近年、データ量の非常に大きな情報、例えば、ラスタデ
ータからなる画像データ等を取り扱うファクシミリ装置
においては、その大きなデータをそのままの形で利用す
ると、データ処理のためのメモリ、に膨大な容量を要し
、また、データの転送を行うにしても長い時間を要する
ため、画像データをそのままの形で利用することは実用
的ではない。そこで、画像データをコンパクトに取り扱
えるようにするためのデータ圧縮・伸長回路が数多く開
発されている。
In recent years, facsimile machines that handle very large amounts of information, such as image data made up of raster data, require a huge amount of memory capacity for data processing if the large data is used in its original form. However, since it takes a long time to transfer the data, it is not practical to use the image data in its original form. Therefore, many data compression/expansion circuits have been developed to enable compact handling of image data.

このデータ圧縮・伸長回路では、大きなデータを一度圧
縮して小さなものとし、小さくなった圧縮データで必要
な処理、例えば、データ転送等を行い、再度光の形で利
用する際に、データの伸長を行ってデータを復元するも
のであり、これによって、データ処理のためのメモリ容
量の低減化が図られる。
This data compression/decompression circuit compresses large data to make it smaller, performs necessary processing on the smaller compressed data, such as data transfer, and then decompresses the data when it is used again in the form of light. The data is restored by performing the following steps, thereby reducing the memory capacity for data processing.

画像データの圧縮・伸長操作の方式には、大別して、 ■全ての情報を一次元符号化するMH(modHied
 Huffman )方式、 ■基準となる情報を一次元符号化し、その後の情報を二
次元符号化するMR(modufied relati
ve element address design
ate)方式、■全ての情報を二次元符号化するMMR
方式、があり、■く■〈■の順に画像データの圧縮率が
高くなる。
The methods for compressing and decompressing image data can be roughly divided into two types: ■ MH (mod Hied
Huffman) method, ■MR (modified relative
ve element address design
ate) method, ■MMR that two-dimensionally encodes all information
There are several methods, and the compression ratio of image data increases in the order of ■, ■, and <■.

この中で、MH方弐の基本原理を別表1に基づいて説明
すると、例えば、ファクシミリ装置等の読取部で読み込
まれた1ライン分の白黒2階調の画像データが、仮に、
白10.黒9.白7.黒6゜・・・の画素で構成されて
いるとすると、これらのデータは、予め設定された白・
黒のテーブルに基づいて、白5は1100、黒4は01
1、白3は1000、黒2は11に変換されて圧縮デー
タが生成される。これによって、本来00000000
001111111110000000111111と
32ビツトだった画像データが00111000100
11110010と13ビツト分圧縮される。
Among these, the basic principle of MH Ho 2 is explained based on Attached Table 1. For example, if one line of black and white two-tone image data read by a reading unit of a facsimile machine, etc.
White 10. Black 9. White 7. Assuming that black is composed of pixels of 6°..., these data are preset white and
Based on Black's table, White 5 is 1100 and Black 4 is 01.
1, white 3 is converted to 1000, black 2 is converted to 11, and compressed data is generated. By this, the original 00000000
001111111110000000111111 and 32 bit image data becomes 00111000100
It is compressed by 13 bits: 11110010.

したがって、符号化データは前述のような処理を行うた
めに、一般に可変長となる。
Therefore, encoded data generally has a variable length in order to perform the above-described processing.

なお、伸長動作は圧縮動作と逆のプロセスによって達成
される。
Note that the decompression operation is accomplished by a process that is the reverse of the compression operation.

MH,MRの両方式による符号化方式は、CCITTの
GI[ファクシミリ規格において符号圧縮のために用い
られており、このようなG■ソファシミリ装置では、M
H,MR方式による圧縮符号のままで送受信が可能であ
るが、MH,MR方式による圧縮率は低いため、MH,
MR方式で圧縮されたデータであってもファクシミリ装
置内で取り扱うデータとしてはまだまだ大きなデータ量
を取り扱うこととなる。
Both MH and MR encoding systems are used for code compression in the CCITT's GI facsimile standard, and in such G
Although it is possible to transmit and receive the compressed code by the H, MR method, the compression rate by the MH, MR method is low.
Even if the data is compressed using the MR method, the amount of data handled within the facsimile machine is still large.

すなわち、例えば、第4図に示すように、原稿の送信時
を例に採って説明すると、実際のファクシミリ装置の内
部では、さらなるデータ量の圧縮のため、原稿が読み取
られるときにはMMR方弐による二次元符号化の圧縮が
行われている。二次元符号化は、−次元符号化による圧
縮よりもさらに高い圧縮率を得るため、圧縮を行おうと
するライン(以下、符号化ラインという)の前ラインを
参照ラインとし、この参照ラインと符号化ラインとの異
なる部分を符号化するものである。MMR方式による二
次元符号化の圧縮により最大限にメモリが節約された状
態で所定の内部処理が行われ、データが送信時に、この
圧縮データがMMR方式によって伸長され、再度、MH
,MR方式で圧縮されて送信されるものである。
That is, for example, as shown in FIG. 4, taking the case of sending a document as an example, in an actual facsimile machine, in order to further compress the amount of data, when the document is read, two MMR methods are used. Dimensional encoding compression is performed. Two-dimensional encoding uses the line before the line to be compressed (hereinafter referred to as the encoded line) as a reference line, and uses this reference line and the encoded This code encodes parts that differ from the line. Predetermined internal processing is performed in a state where memory is saved to the maximum by compression of two-dimensional encoding using the MMR method, and when data is transmitted, this compressed data is decompressed using the MMR method, and the MH
, which is compressed and transmitted using the MR method.

したがって、このようなデータ圧縮・伸長回路を備えた
ファクシミリ装置では、例えば、原稿を送信しようとし
たときに、すでに他の原稿を受信中の場合、同時に2ラ
イン以上の圧縮・伸長処理を行う必要がある。
Therefore, in a facsimile machine equipped with such a data compression/expansion circuit, for example, if you are trying to send a document and another document is already being received, it is necessary to compress/decompress two or more lines at the same time. There is.

(従来の技術〕 従来、このようなデータ圧縮・伸長回路としては、例え
ば、第5図に示すようなものがある。
(Prior Art) Conventionally, as such a data compression/expansion circuit, there is one shown in FIG. 5, for example.

ごのデータ圧縮・伸長回路は、大別して、データ圧縮手
段1、データ伸長手段2からなり、データ圧縮手段1は
、バッファ部3、圧縮回路4、レジスタ部5から構成さ
れ、データ伸長手段2は、レジスタ部6、伸長回路7、
バッファ部8から構成されている。
The data compression/decompression circuit for each is roughly divided into data compression means 1 and data decompression means 2. Data compression means 1 comprises a buffer section 3, compression circuit 4, and register section 5, and data decompression means 2 consists of , register section 6, expansion circuit 7,
It is composed of a buffer section 8.

画像の圧縮時は、バッファ部3に蓄積された画像データ
が圧縮回路4により圧縮されて符号化され、圧縮回路4
によって符号化されたデータがレジスタ部6に読み出さ
れる。一般に、データ処理は1ハイド、すなわち、8ビ
ツト単位で処理されることが多いため、データをメモリ
上に展開するとき、レジスタ部6は8を整数倍したビッ
トサイズ(この場合、8ビツト)となっている。このた
め、レジスタ部6に読み出されたデータが8ビツト分に
なるまで一時保持され、データが8ビツトになったタイ
ミングで圧縮された符号化データがコード出力される。
When compressing an image, the image data accumulated in the buffer section 3 is compressed and encoded by the compression circuit 4.
The encoded data is read out to the register section 6. Generally, data processing is often performed in units of 1 hide, that is, 8 bits, so when expanding data onto memory, the register section 6 has a bit size that is an integral multiple of 8 (in this case, 8 bits). It has become. Therefore, the data read into the register section 6 is temporarily held until it reaches 8 bits, and the compressed encoded data is output as a code at the timing when the data reaches 8 bits.

画像の伸長時には、圧縮された符号化データがレジスタ
部6により読み出されて一時保持され、圧縮時と同様に
、8ビツト分のデータになったタイミングで符号化デー
タが次段の伸長回路7に出力される。レジスタ部6から
出力された符号化データは、伸長回路7によって伸長さ
れて元の画像データに復元され、バッファ部8を介して
復元された画像データが出力され、画像の圧縮とまった
く逆のプロセスで伸長が行われる。
When decompressing an image, the compressed encoded data is read out and temporarily held by the register section 6, and as in the case of compression, the encoded data is transferred to the next stage decompression circuit 7 when the data becomes 8 bits worth. is output to. The encoded data output from the register section 6 is decompressed by the decompression circuit 7 and restored to the original image data, and the decompressed image data is outputted via the buffer section 8, which is a process completely opposite to image compression. Expansion is performed at

〔発明が解決しようとする課題] しかしながら、このような従来のデータ圧縮・伸長回路
にあっては、データ圧縮・伸長回路の内部にレジスタ部
6を備え、このレジスタ部6にデータがいっばいになっ
た時点でレジスタ部6から外部にデータを出力するとい
う構成となっていたため、1つの画像データの圧縮・伸
長処理を行っている最中は、処理が終了するまで、他の
画像データの圧縮・伸長処理ができなかった。
[Problems to be Solved by the Invention] However, in such a conventional data compression/expansion circuit, a register section 6 is provided inside the data compression/expansion circuit, and data is stored in this register section 6 all at once. Since the configuration is such that the data is output from the register unit 6 to the outside when the - Unable to perform decompression processing.

これは、前述のMH,MR,MMR方式で符号化された
データは可変長であるため、この符号化されたデータが
8(従来例の場合)で割り切れないビット数となる場合
があり、例えば、1947分の画像データの圧縮が完了
した時点で、レジスタ部6に例えば、3ビツトの符号化
データが残っていた場合、この状態で、他の画像データ
の圧縮処理を行うと、レジスタ部6内の残った3ビツト
のデータに、新しく生成されたデータが追加されていく
ことになり、伸長処理で復元しても意味のない画像デー
タとなってしまうためである。
This is because the data encoded by the above-mentioned MH, MR, and MMR methods has a variable length, so the encoded data may have a number of bits that is not evenly divisible by 8 (in the case of the conventional example). , 1947 minutes of image data is completed, and if, for example, 3-bit encoded data remains in the register unit 6, if compression processing of other image data is performed in this state, the register unit 6 This is because the newly generated data will be added to the remaining 3 bits of data, and the image data will be meaningless even if it is restored by decompression processing.

ところで、このようなデータ圧縮・伸長回路を備えたフ
ァクシミリ装置では、例えば、原稿を送信しようとした
ときに、すでに他の原稿を受信中の場合、電話回線がふ
さがっているので、−度、装置内のメモリに送信すべき
データ情報を蓄積しておいて、所定時間後に再送信する
場合、あるいは、蓄積されたメモリのデータ情報を送信
中に、他の原稿の読み取りを行うときのように複合動作
を行う場合には、同時に2ライン以上の圧縮・伸長処理
を行う必要がある。
By the way, with a facsimile machine equipped with such a data compression/expansion circuit, for example, when you try to send a document, if another document is already being received, the telephone line is busy, so the device When data information to be transmitted is stored in the internal memory and retransmitted after a predetermined period of time, or when data information in the stored memory is being transmitted while another document is being scanned. When performing an operation, it is necessary to perform compression/expansion processing on two or more lines at the same time.

しかし、従来のデータ圧縮・伸長回路では、1つの画像
データの圧縮・伸長処理が完了するまでは、他の画像デ
ータの圧縮・伸長処理を行うことができなかったため、
以下に述べるような方法でこの問題に対処していた。
However, with conventional data compression/decompression circuits, it was not possible to compress/decompress other image data until the compression/decompression process of one image data was completed.
This problem was addressed in the following way.

■1つの画像データ毎に圧縮・伸長処理を行っていた。■Compression and expansion processing was performed for each image data.

■第5図に示したようなデータ圧縮・伸長回路を複数備
え、各画像データ毎にデータ圧縮・伸長回路を使用して
いた。
2) A plurality of data compression/expansion circuits as shown in FIG. 5 were provided, and one data compression/expansion circuit was used for each image data.

しかしながら、■の従来例にあっては、1つの画像デー
タが揃ったところで、圧縮・伸長処理を行うため、大量
のメモリが必要となるという問題点があった。
However, in the conventional example (2), there is a problem in that a large amount of memory is required to perform compression and expansion processing once one piece of image data is complete.

また、■の従来例にあっては、1ラインずつの処理を行
うため、必要最小限のメモリで処理を行うことができる
が、データ圧縮・伸長回路を複数組必要とするため、回
路構成が複雑になり、コストアップにつながるという問
題点があった。
In addition, in the conventional example (2), processing is performed line by line, so processing can be performed with the minimum necessary memory, but it requires multiple sets of data compression/expansion circuits, so the circuit configuration is There was a problem that it became complicated and led to an increase in cost.

そこで本発明は、1つのデータ圧縮・伸長回路で、1ラ
インずつ異なる2以上のデータ情報の圧縮・伸長処理を
行うデータ圧縮・伸長回路を提供することを目的として
いる。
SUMMARY OF THE INVENTION Therefore, an object of the present invention is to provide a data compression/expansion circuit that performs compression/expansion processing of two or more pieces of data information that are different for each line using a single data compression/expansion circuit.

〔課題を解決するための手段] 本発明によるデータ圧縮・伸長回路は上記目的達成のた
め、その原理図を第1図に示すように、異なる2以上の
情報(画像データ)中のいずれかのデータを所定製分蓄
積するバッファ部3と、該バッファ部3に蓄積されたデ
ータを圧縮して符号化する圧縮回路4と、該圧縮回路4
により符号化されたデータを読み出して一時保持し、デ
ータが所定量になったタイミングで該データを出力する
レジスタ部5と、該レジスタ部5の符号化データを所定
ビット幅単位に複数個記憶する記憶部9とを有するデー
タ圧縮手段1を備え、前記記憶部9に記憶された複数個
の符号化データのいずれかを前記レジスタ部5に書き込
み、所定製分毎に異なる画像データの圧縮を行うように
構成している。
[Means for Solving the Problems] In order to achieve the above object, the data compression/expansion circuit according to the present invention, as shown in the principle diagram in FIG. a buffer unit 3 that stores data in a predetermined amount; a compression circuit 4 that compresses and encodes the data stored in the buffer unit 3;
a register unit 5 that reads and temporarily holds encoded data and outputs the data when the data reaches a predetermined amount; and a register unit 5 that stores a plurality of pieces of encoded data in the register unit 5 in units of a predetermined bit width. The apparatus includes a data compression means 1 having a storage section 9, writes any of a plurality of encoded data stored in the storage section 9 to the register section 5, and compresses different image data for each predetermined division. It is configured as follows.

また、異なる2以上の情報のデータを圧縮して得られる
符号化データを所定ビット幅単位に複数個記憶する記憶
部10と、該符号化データを読み出して一時保持し、デ
ータが所定量になったタイミングで該データを次段に出
力するレジスタ部6と、該レジスタ部6に保持された符
号化データを伸長して元のデータに復元する伸長回路7
と、該伸長回路7で復元されたデータを所定製分蓄積す
る/Nソファ部8とを有するデータ伸長手段2を備え、
前記記憶部9に記憶された複数個の符号化データのいず
れかを前記レジスタ部5に書き込み、所定長分毎に異な
るデータの伸長を行うように構成している。
It also includes a storage unit 10 that stores a plurality of encoded data obtained by compressing data of two or more different pieces of information in units of a predetermined bit width; a register unit 6 that outputs the data to the next stage at the same timing; and an expansion circuit 7 that expands the encoded data held in the register unit 6 and restores it to the original data.
and a /N sofa section 8 for storing the data restored by the decompression circuit 7 in a predetermined amount.
The configuration is such that any one of the plurality of encoded data stored in the storage section 9 is written into the register section 5, and different data is expanded every predetermined length.

〔作用] 本発明では、記憶部に記憶された複数個の符号化データ
のいずれかがレジスタ部に書き込まれることにより、所
定長分毎に異なる画像データが圧縮・伸長処理され、1
つのデータ圧縮・伸長回路で1ラインずつ異なる2以上
のデータ情報が圧縮・伸長処理される。
[Operation] In the present invention, by writing any of a plurality of pieces of encoded data stored in the storage unit into the register unit, different image data is compressed/expanded for each predetermined length.
Two or more pieces of data information that differ line by line are compressed and expanded by one data compression/expansion circuit.

したがって、データ圧縮・伸長回路が1つで済むため、
回路構成が簡素化され、メモリ等にかかるコストも抑え
られる。
Therefore, only one data compression/decompression circuit is required,
The circuit configuration is simplified, and costs for memory and the like are also reduced.

〔実施例] 以下、本発明を図面に基づいて説明する。〔Example] Hereinafter, the present invention will be explained based on the drawings.

第2図は本発明に係るデータ圧縮・伸長回路の第1実施
例を示す図であり、この図において、第1図に示した原
理図と同一番号は同一または相当部分を示す。
FIG. 2 is a diagram showing a first embodiment of the data compression/expansion circuit according to the present invention. In this diagram, the same numbers as in the principle diagram shown in FIG. 1 indicate the same or corresponding parts.

本実施例のレジスタ部5,6は、それぞれシフトレジス
タ5a、6a 、ビットカウンタ5b、6bから構成さ
れている。シフトレジスタ5a 、 6aは、入力され
たデータを8ビツトの倍数にまとめて出力するものであ
り、ビットカウンタ5b、6bは、シフトレジスタ5a
 、 6aに入力されるデータビット数をカウントする
ものである。
The register sections 5 and 6 of this embodiment are respectively composed of shift registers 5a and 6a and bit counters 5b and 6b. The shift registers 5a and 6a output the input data in multiples of 8 bits, and the bit counters 5b and 6b output the input data in multiples of 8 bits.
, 6a is used to count the number of data bits input to 6a.

また、本実施例の記憶部9,10は、外部メモリを用い
、図示しない制御手段により、シフトレジスタ5a、6
a 、およびピントカウンタ5b、6bの内容の読み書
きを行うことで、シフトレジスタ5a 、 6a、およ
びビットカウンタ5b、6bに保持された符号化データ
と、記憶部9.10に記憶された複数個の符号化データ
のいずれかとを選択的に交換できるようになっている。
Further, the storage units 9 and 10 of this embodiment use external memories, and the shift registers 5a and 6 are controlled by a control means (not shown).
By reading and writing the contents of a and the focus counters 5b and 6b, the encoded data held in the shift registers 5a and 6a and the bit counters 5b and 6b and the plurality of pieces of data stored in the storage unit 9.10 are It is possible to selectively exchange any of the encoded data.

なお、バッファlL12は、二次元符号化による圧縮・
伸長処理の際に参照する参照ラインのデータを取り込む
ためのものである。
Note that the buffer LL12 performs compression and compression using two-dimensional encoding.
This is used to import reference line data to be referred to during decompression processing.

次に画像“′α 、゛βパの2つの画像データを圧縮す
る場合を例に採り、作用を説明する。
Next, the operation will be explained by taking as an example the case where two image data of images "'α" and "β" are compressed.

まず、シフトレジスタ5a、およびビットカウンタ5b
の内容がクリアされ、初期化される。そして、画像“′
α′の1ライン分の参照ラインおよび符号化ラインがバ
ッファ11、バッファ部3に取り込まれ、それぞれのラ
インデータに基づいて圧縮回路4によりデータ圧縮処理
がなされる。圧縮回路4によって圧縮されたデータは、
レジスタ部5に出力され、レジスタ部5では入力された
データが8ビン1−分になったタイミングでコード出力
が行われる。
First, the shift register 5a and the bit counter 5b
The contents of are cleared and initialized. And the image “′
The reference line and encoded line for one line of α' are taken into the buffer 11 and the buffer unit 3, and data compression processing is performed by the compression circuit 4 based on the respective line data. The data compressed by the compression circuit 4 is
The code is output to the register unit 5, and the code is output at the timing when the input data reaches 8 bins 1-min.

画像“′α”の1ライン分の圧縮処理が終了した時点で
ピントカウンタ5b、およびシフトレジスタ5aの情報
が外部メモリ9に記憶保持される。これば、圧縮処理に
より符号化されたデータは可変長であるために、画像パ
α”の1ライン分の圧縮処理が終了した時点でシフトレ
ジスタ5aにデータが残っている場合が考えられるため
である。
At the time when the compression process for one line of the image "α" is completed, the information of the focus counter 5b and the shift register 5a is stored and held in the external memory 9. In this case, since the data encoded by the compression process has a variable length, there may be cases where data remains in the shift register 5a at the time when the compression process for one line of the image pattern α'' is completed. be.

外部メモリ9に情報の記憶保持がなされると、再びシフ
トレジスタ5a、およびピントカウンタ5bの内容がク
リアされ、初期化される。そして、次に画像゛β″゛の
1ライン分の参照ラインおよび符号化ラインがバッファ
11、バッファ部3に取り込まれて、それぞれのライン
データに基づいて圧縮回路4によりデータ圧縮処理がな
される。画像βパの1ライン分の圧縮処理が終了した時
点でビットカウンタ5b、およびシフトレジスタ5aの
情報が外部メモリ9に記憶保持される。外部メモリ9に
情報の記憶保持がなされると、シフトレジスタ5a、お
よびビットカウンタ5bの内容がクリアされ、前の処理
により画像゛′α゛°の1ライン分の圧縮処理が終了し
た時点で外部メモリ9に記憶保持されたシフトレジスタ
5aの情報が再度シフトレジスタ5aに書き込まれ、続
いて画像“α゛の1547分のデータ圧縮が行われる。
When the information is stored in the external memory 9, the contents of the shift register 5a and the focus counter 5b are cleared and initialized again. Then, the reference line and encoded line for one line of the image "β" are taken into the buffer 11 and the buffer section 3, and data compression processing is performed by the compression circuit 4 based on the respective line data. When the compression process for one line of the image β pattern is completed, the information in the bit counter 5b and the shift register 5a is stored and held in the external memory 9. When the information is stored and held in the external memory 9, the shift register 5a and the bit counter 5b are cleared, and the information in the shift register 5a stored in the external memory 9 is shifted again when the compression processing for one line of the image ゛'α゛° is completed by the previous processing. The data is written to the register 5a, and then data compression for 1547 portions of the image "α" is performed.

以下、この動作が繰り返し行われることで、■または数
ライン毎に異なる2以上の画像データの圧縮処理を行う
ことかできる。
Thereafter, by repeating this operation, it is possible to compress two or more pieces of image data that are different every several lines.

なお、伸長処理は、圧縮処理と逆の処理によってなされ
るため、その説明を省略する。
Note that the decompression process is performed by the reverse process of the compression process, so its explanation will be omitted.

第3図は本発明に係るデータ圧縮・伸長回路の第2実施
例を示す図であり、この図において、第2図に示した第
1実施例と同一番号は同一または相当部分を示す。
FIG. 3 is a diagram showing a second embodiment of the data compression/expansion circuit according to the present invention. In this figure, the same numbers as in the first embodiment shown in FIG. 2 indicate the same or corresponding parts.

本実施例の記憶部9,10は、レジスタ部56を構成す
るシフトレジスタ5a、6a 、ビットカウンタ5b、
6bと同一のシフトレジスタ9a、 9c、 10a、
 10c、ビットカウンタ9b、 9d、 10b、 
10d と、レジスタ選択回路j3とから構成され、レ
ジスタ選択回路13によって〜 ■レジスタ部5,6のシフトレジスタ5a 、 6a、
およびビットカウンタ5b、6b、 ■記憶部9.10のシフI・レジスタ9a、10a、お
よびビットカウンタ9b、 10b、 ■記憶部9,10のシフトレジスタ9c、 10c、お
よびビットカウンタ9d、10d。
The storage units 9 and 10 of this embodiment include shift registers 5a and 6a, bit counters 5b, and
Shift registers 9a, 9c, 10a, same as 6b,
10c, bit counter 9b, 9d, 10b,
10d and a register selection circuit j3, and by the register selection circuit 13, the shift registers 5a, 6a,
and bit counters 5b, 6b, (1) shift I registers 9a, 10a and bit counters 9b, 10b of storage units 9.10, (2) shift registers 9c, 10c and bit counters 9d, 10d of storage units 9, 10.

のいずれかがアクティブになるように切り替え制御が行
われる。
Switching control is performed so that one of the two becomes active.

すなわち、第1実施例と同様に画像“α 。That is, the image "α" is similar to the first embodiment.

“′β゛′の2つの画像データを圧縮する場合を例に採
り、作用を説明すると、ます、シフトレジスタ5a、お
よびビットカウンタ5bの内容がクリアされ、初期化さ
れる。そして、画像“′α”°の1ライン分の圧縮処理
が終了した時点でレジスタ選択手段13によって圧縮回
路4からの出力データを取り込むビットカウンタ、およ
びシフトレジスタが9a、9bに切り替えられる。そし
て、次に画像°“β“の1ライン分の圧縮処理が終了し
た時点で、レジスタ選択手段13によって圧縮回路4か
らの出力データを取り込むビットカウンタ、およびシフ
トレジスタが再び5a、5bに切り替えられる。以下、
この動作が繰り返し行われることで、第1実施例と同様
に1または数ライン毎に異なる2以上の画像データの圧
縮処理を行うことができる。
Taking the case of compressing two image data "'β"' as an example, and explaining the operation, the contents of the shift register 5a and bit counter 5b are cleared and initialized.Then, the image "' When the compression process for one line of α"° is completed, the register selection means 13 switches the bit counter that takes in the output data from the compression circuit 4 and the shift register to 9a and 9b. Then, the next image "°" When the compression process for one line of "β" is completed, the register selection means 13 switches the bit counter that takes in the output data from the compression circuit 4 and the shift register to 5a and 5b again.
By repeating this operation, it is possible to compress two or more pieces of image data that are different for each line or several lines, as in the first embodiment.

このように本実施例では、レジスタ部に保持された符号
化データを、記憶部に記憶された複数個の符号化データ
のいずれかと選択的に交換することによって、1ライン
分毎に異なる画像データを圧縮・伸長処理できる。
In this way, in this embodiment, by selectively exchanging the encoded data held in the register section with any of a plurality of encoded data stored in the storage section, different image data for each line can be created. Can be compressed and expanded.

したがって、1つのデータ圧縮・伸長回路で1ラインず
つ異なる2以上のデータ情報を圧縮・伸長処理すること
ができる。
Therefore, one data compression/expansion circuit can compress/expand two or more pieces of data information that differ from each other line by line.

なお、上記実施例では異なる2つの画像データの処理に
ついて説明したが、第1実施例では外部メモリのアドレ
スを変更することで、また、第2実施例では記憶部9.
10のシフトレジスタ、およびビットカウンタを増やす
ことで2以上の画像データに対してもデータ圧縮・伸長
処理を行うことができる。
In the above embodiments, processing of two different types of image data has been described, but in the first embodiment, the address of the external memory is changed, and in the second embodiment, the processing of the storage unit 9.
By increasing the number of shift registers and bit counters to 10, it is possible to perform data compression/expansion processing on two or more pieces of image data.

〔発明の効果〕〔Effect of the invention〕

本発明では、1つのデータ圧縮・伸長回路で1ラインず
つ異なる2以上のデータ情報を圧縮・伸長処理すること
ができる。
According to the present invention, one data compression/expansion circuit can compress/expand two or more pieces of data information that differ one line at a time.

したがって、回路構成を簡素化することができ、メモリ
等にかかるコストを低減化することができる。
Therefore, the circuit configuration can be simplified and the cost of memory and the like can be reduced.

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

第1図は本発明のデータ圧縮・伸長回路の原理説明図、 第2,3図は本発明のデータ圧縮・伸長回路を示し、 第2図はその第1実施例の全体構成を示すブロック図、 第3図はその第2実施例の全体構成を示すブロック図、 第4図はファクシミリ装置のデータ圧縮・伸長動作の流
れを説明するだめの図、 第5図は従来例のデータ圧縮・伸長回路の全体構成を示
すブロック図である。 1・・・・・・データ圧縮手段、 2・・・・・・データ伸長手段、 3・・・・・・バッファ部、 4・・・・・・圧縮回路、 5.6・・・・・・レジスタ部、 5a 6a・・・・・・シフトレジスタ、5b 6b・
・・・・・ビットカウンタ、7・・・・・・伸長回路、 8・・・・・・バッファ部、 910・・・・・・記憶部、 9a、9c、10a、10c・・・・−・シフトレジス
タ、9b 9d、10b、10d・・・・・・ピントカ
ウンタ、lL12・・・・・・バッファ、 13・・・・・・レジスタ選択回路。
Fig. 1 is a diagram explaining the principle of the data compression/expansion circuit of the present invention, Figs. 2 and 3 show the data compression/expansion circuit of the invention, and Fig. 2 is a block diagram showing the overall configuration of the first embodiment. , Fig. 3 is a block diagram showing the overall configuration of the second embodiment, Fig. 4 is a diagram illustrating the flow of data compression/expansion operations of a facsimile machine, and Fig. 5 is a conventional data compression/expansion diagram. FIG. 2 is a block diagram showing the overall configuration of the circuit. 1... Data compression means, 2... Data decompression means, 3... Buffer section, 4... Compression circuit, 5.6...・Register part, 5a 6a...Shift register, 5b 6b・
...Bit counter, 7...Expansion circuit, 8...Buffer section, 910...Storage section, 9a, 9c, 10a, 10c...-・Shift register, 9b 9d, 10b, 10d...Focus counter, 1L12...Buffer, 13...Register selection circuit.

Claims (1)

【特許請求の範囲】 (1)異なる2以上の情報中のいずれかのデータを所定
長分蓄積するバッファ部(3)と、 該バッファ部(3)に蓄積されたデータを圧縮して符号
化する圧縮回路(4)と、 該圧縮回路(4)により符号化されたデータを読み出し
て一時保持し、データが所定量になったタイミングで該
データを出力するレジスタ部(5)と、 該レジスタ部(5)の符号化データを所定ビット幅単位
に複数個記憶する記憶部(9)とを有するデータ圧縮手
段を備え、 前記記憶部(9)に記憶された複数個の符号化データの
いずれかを前記レジスタ部(5)に書き込み、所定長分
毎に異なるデータの圧縮を行うことを特徴とするデータ
圧縮回路。(2)異なる2以上の情報のデータを圧縮し
て得られる符号化データを所定ビット幅単位に複数個記
憶する記憶部(10)と、 該符号化データを読み出して一時保持し、データが所定
量になったタイミングで該データを次段に出力するレジ
スタ部(6)と、 該レジスタ部(6)に保持された符号化データを伸長し
て元のデータに復元する伸長回路(7)と、 該伸長回路(7)で復元されたデータを所定長分蓄積す
るバッファ部(8)とを有するデータ伸長手段を備え、 前記記憶部(10)に記憶された複数個の符号化データ
のいずれかを前記レジスタ部(6)に書き込み、所定長
分毎に異なるデータの伸長を行うことを特徴とするデー
タ伸長回路。 (3)前記データ圧縮回路、および前記データ伸長回路
を備えたことを特徴とするデータ圧縮・伸長回路。 (4)前記記憶部は、所定の制御信号により前記レジス
タ部の内容を読み書きする外部メモリであることを特徴
とする請求項3記載のデータ圧縮・伸長回路。 (5)前記記憶部は、前記レジスタ部と同一長のデータ
を保持する複数のレジスタと、 該レジスタのいずれか1つを選択してレジスタ部に保持
された符号化データと前記記憶部に記憶された複数個の
符号化データとを交換するレジスタ選択回路とを有する
ことを特徴とする請求項3記載のデータ圧縮・伸長回路
[Claims] (1) A buffer unit (3) that stores data of two or more different pieces of information for a predetermined length, and compresses and encodes the data stored in the buffer unit (3). a compression circuit (4) for reading out and temporarily holding data encoded by the compression circuit (4), and outputting the data when the data reaches a predetermined amount; a storage section (9) for storing a plurality of encoded data of the section (5) in units of a predetermined bit width; A data compression circuit characterized in that the data is written in the register section (5), and different data is compressed every predetermined length. (2) a storage unit (10) that stores a plurality of encoded data obtained by compressing data of two or more different pieces of information in units of a predetermined bit width; A register unit (6) that outputs the data to the next stage at the timing when the data becomes quantitative; and an expansion circuit (7) that expands the encoded data held in the register unit (6) and restores it to the original data. , a data decompression means having a buffer section (8) for accumulating a predetermined length of data restored by the decompression circuit (7), and which one of the plurality of encoded data stored in the storage section (10) A data decompression circuit, characterized in that the data is written in the register section (6), and different data is decompressed every predetermined length. (3) A data compression/expansion circuit comprising the data compression circuit and the data expansion circuit. (4) The data compression/expansion circuit according to claim 3, wherein the storage section is an external memory that reads and writes the contents of the register section according to a predetermined control signal. (5) The storage section includes a plurality of registers that hold data of the same length as the register section, and selects one of the registers and stores the encoded data held in the register section and the encoded data in the storage section. 4. The data compression/expansion circuit according to claim 3, further comprising a register selection circuit for exchanging a plurality of encoded data.
JP20063490A 1990-07-26 1990-07-26 Data compression and expansion circuit Pending JPH0484521A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP20063490A JPH0484521A (en) 1990-07-26 1990-07-26 Data compression and expansion circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP20063490A JPH0484521A (en) 1990-07-26 1990-07-26 Data compression and expansion circuit

Publications (1)

Publication Number Publication Date
JPH0484521A true JPH0484521A (en) 1992-03-17

Family

ID=16427648

Family Applications (1)

Application Number Title Priority Date Filing Date
JP20063490A Pending JPH0484521A (en) 1990-07-26 1990-07-26 Data compression and expansion circuit

Country Status (1)

Country Link
JP (1) JPH0484521A (en)

Similar Documents

Publication Publication Date Title
AU676012B2 (en) Dual memory buffer scheme for providing multiple data streams from stored data
CN103888777A (en) Video image compression/decompression device
US6798927B2 (en) Conversion of pixel data for interpolation or image reduction, using a small memory
US20070127570A1 (en) Image processor and image processing method
US7650038B2 (en) Image processing method and image processing apparatus
US6212300B1 (en) Image processing apparatus, method and computer-executable program product for converting the format of data for specific image data
JP2738136B2 (en) Blocking device
JPH0484521A (en) Data compression and expansion circuit
US6205251B1 (en) Device and method for decompressing compressed video image
EP1523170A1 (en) Image conversion device, image conversion method, and recording medium
JPH10341437A (en) Image processing method and device therefor
JP2839392B2 (en) Image data restoration method and apparatus
US5736945A (en) Circuit for zero-run developing RUN/LEVEL sets and method for zero-run developing the same
JP2795100B2 (en) Image compression circuit and image decompression circuit
KR0180163B1 (en) An inverse scanner in an image decoder
KR960005686Y1 (en) Address signal generator of jpeg decoder
JP4219079B2 (en) Image processing device
JPH04269084A (en) Image converter
JPH0131830B2 (en)
JPS595778A (en) Compression system for half-tone picture data
JPH0937261A (en) Coding system and coder
KR20060122530A (en) Direct memory access control apparatus for transmitting burst of image data that is different with sampling and the burst transmitting method thereof
JP2734227B2 (en) Encoding / decoding method in facsimile
JPH07226848A (en) Picture signal encoding device
JPH04337926A (en) Variable length code table control system