JPH02108119A - Data compressing device - Google Patents

Data compressing device

Info

Publication number
JPH02108119A
JPH02108119A JP26089288A JP26089288A JPH02108119A JP H02108119 A JPH02108119 A JP H02108119A JP 26089288 A JP26089288 A JP 26089288A JP 26089288 A JP26089288 A JP 26089288A JP H02108119 A JPH02108119 A JP H02108119A
Authority
JP
Japan
Prior art keywords
data
compression
compressing
compressed
bytes
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
JP26089288A
Other languages
Japanese (ja)
Inventor
Takanori Yamada
孝典 山田
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.)
Seiko Epson Corp
Original Assignee
Seiko Epson Corp
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 Seiko Epson Corp filed Critical Seiko Epson Corp
Priority to JP26089288A priority Critical patent/JPH02108119A/en
Publication of JPH02108119A publication Critical patent/JPH02108119A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To enable efficient data storage by providing a compressing means which has >=1 data compression means and data noncompression means and a compression decision means which decides the compressibility of data by the compressing means. CONSTITUTION:A data compressing device 6 is loaded previously in a RAM 5 by a CPU 1 and a user sends a compression instruction from K/B2, so that the data compressing device 6 receives data to be compressed from the CPU 1. Then a data compressing means 7 for the data and a decision means 8 for the compression result perform a series of compressing operations for the data and a data updating means 9 outputs the compressed data to a disk device. Consequently, the best compressed data or noncompressed data is obtained and the efficient data storage is enabled.

Description

【発明の詳細な説明】 〔産業上の利用分野] 本発明は、各種ディスク装置へのデータの登録・削除・
変更等を実行する際のデータ圧縮装置に関する。
[Detailed Description of the Invention] [Industrial Application Field] The present invention is applicable to the registration, deletion, and registration of data in various disk devices.
The present invention relates to a data compression device when performing changes, etc.

[従来の技術1 最近、ワープロ、イメージスキャナ、高解像度画面等の
開発・普及により、文書データ、画像データ、画面デー
タ等を取り扱う際に、その各種データの容量・数量が増
大する傾向にある。それに伴って、様々なデータの圧縮
装置が用いられ、データの削減が行われてきた。
[Background Art 1] Recently, with the development and spread of word processors, image scanners, high-resolution screens, etc., there is a tendency for the capacity and quantity of various types of data to increase when handling document data, image data, screen data, etc. Along with this, various data compression devices have been used to reduce data.

しかし、データの圧縮には、圧縮を示す為の制御用のデ
ータが必要となり、複雑なデータパターンや特異なデー
タパターンに於いては、必ずしもそのデータ圧縮装置が
効果を持たず、逆にデータ量が増加することもあった。
However, data compression requires control data to indicate compression, and the data compression device is not necessarily effective when dealing with complex or unique data patterns; There was also an increase in

この為、フロッピーディスク、RAMディスク等の各種
ディスク装置の容量が増大しつつあるとはいえ、携帯型
や小型化の装置に於いては、容量に制約のつくことが多
く、簡単にディスクが一杯になったりしていた。
For this reason, although the capacity of various disk devices such as floppy disks and RAM disks is increasing, portable and compact devices often have limited capacity and can easily fill up their disks. It was becoming something like that.

〔発明が解決しようとする課題) しかし、前記の従来技術では、前記のごとく最良のデー
タ圧縮装置が得られなかったりするという欠点があった
。この様な欠点を解消し、効率の良いデータ記憶を行う
為のデータ圧縮装置を提供することを目的とする。
[Problems to be Solved by the Invention] However, the above-mentioned conventional technology has the disadvantage that the best data compression device cannot be obtained as described above. It is an object of the present invention to provide a data compression device that eliminates such drawbacks and performs efficient data storage.

〔課題を解決するための手段1 本発明のデータ圧縮装置は、複数のデータ群を記憶する
ためのディスク装置と、前記ディスク装置に対してデー
タの入出力を行うデータ更新手段を有する装置に於て、
一つ以上のデータ圧縮手段とデータ非圧縮手段を持つ圧
縮手段と、前記圧縮手段によるデータの圧縮度を判定す
る圧縮判定手段とを有することを特徴とする。
[Means for Solving the Problems 1] A data compression device of the present invention includes a disk device for storing a plurality of data groups, and a data updating means for inputting and outputting data to and from the disk device. hand,
It is characterized by comprising a compression means having one or more data compression means and data non-compression means, and compression determination means for determining the degree of compression of data by the compression means.

[作 用] 本発明においては、データ処理が必要となると、複数の
圧縮手段、及び、非圧縮手段を有する圧縮手段を用いて
圧縮作業を行い、その結果を圧縮判定手段により、最良
の圧縮データ或は非圧縮データを得、その圧縮データの
入出力を行う。
[Function] In the present invention, when data processing is required, compression work is performed using a compression means having a plurality of compression means and a non-compression means, and the compression determination means selects the best compressed data. Alternatively, obtain uncompressed data and input/output the compressed data.

[実 施 例] 第1図は、本発明の一実施例を示すブロック図で、中央
処理装置(以下CPtJと称す)1は、キーボード(以
下に/Bと称す)2から入力されたデータに基づいてV
RAM3に表示すべきデータを出力し、その結果を表示
装置(例えばCRT、LCI))4に表示させる。一方
、RA M 5にはデータ圧縮装置6が、CPU1によ
り予めローディングされており、使用者かに/B2から
圧縮指示を出すことにより、データ圧縮装置6はCPU
1から圧縮すべきデータ(例えばVRAM3のデータ)
を受は取り、そのデータに対してデータの圧縮手段7、
圧縮結果の判定手段8の一連の圧縮作業を実行し、デー
タ更新手段9により、圧縮されたデータをディスク装置
(例えばフロッピーディスク)に出力する。
[Embodiment] FIG. 1 is a block diagram showing an embodiment of the present invention, in which a central processing unit (hereinafter referred to as CPtJ) 1 processes data input from a keyboard (hereinafter referred to as /B) 2. Based on V
Data to be displayed is output to the RAM 3, and the result is displayed on a display device (eg, CRT, LCI) 4. On the other hand, a data compression device 6 is preloaded into the RAM 5 by the CPU 1, and when the user issues a compression instruction from the controller/B2, the data compression device 6 is loaded by the CPU 1.
Data to be compressed from 1 (e.g. VRAM3 data)
The receiver receives the data and applies data compression means 7 to the data.
The compression result determining means 8 executes a series of compression operations, and the data updating means 9 outputs the compressed data to a disk device (for example, a floppy disk).

第2図は、第1図のデータ圧縮装置6を更に具体化した
ブロック図であり、CPU 1から受は取ったVRAM
3に書かれている、これから圧縮すべき生データ21は
、圧縮手段22の中に含まれている圧縮部(1123,
圧縮部(2)24゜圧縮部(n)25、非圧縮部26か
ら構成され、各りの圧縮部lこよる圧縮結果を圧縮判定
手段27により判定し、この中から最良の圧縮手段(X
)を圧縮データ28として選択し出力する。
FIG. 2 is a block diagram that further embodies the data compression device 6 shown in FIG.
The raw data 21 written in 3 and to be compressed from now on is processed by the compression section (1123,
The compression unit (2) 24° is composed of a compression unit (n) 25 and a non-compression unit 26, and the compression result of each compression unit is determined by the compression determination unit 27, and the best compression unit (X
) is selected and output as compressed data 28.

次に具体的に生データ21と圧縮部(1)23と圧縮部
(2)24を与えてデータの圧縮作用について述べる。
Next, the raw data 21, the compression section (1) 23, and the compression section (2) 24 will be specifically given, and the data compression effect will be described.

第3図は圧縮手段の1例を示すものであり1次のような
圧縮手段で行う、圧縮部(1)は、同一のデータが連続
するような場合に優位となる手段であり、以下の圧縮手
段で行う。
Figure 3 shows an example of compression means. The compression section (1), which uses the following compression means, is an advantageous means when the same data is continuous. This is done by means of compression.

最初の1バイトは制御バイトであり、その制御バイトの
MS81ビットが制御バイトの種類を、続く7ビツトが
データ数nを示す。同一データがnバイト(2≦n≦1
27)連続する時は変換手段32を用い、同一データが
連続しない時は変換手段31を用いる。圧縮部(2)は
、00h、FFhのデータが連続する様な場合に優位と
なる手段であり、以下の圧縮0手段で行う。最初の1バ
イトは制御バイトであり、その制御バイトのMS82ビ
ットが制御バイトの種類を、続く6ビツトがデータ数m
又はデータmを示す、データがFFhであり1個以上連
続する時は変換手段33を用い、データが00hであり
1個以上連続する時は変換手段34を用い、データがO
Oh、FFh以外でMSB2ビットがOOである時は変
換手段36を用い、それ以外の時(ooh、pFh、M
SB2ビットがOOlでない時)は変換手段35を用い
る6非圧縮手段は、データを加工せずにそのまま用いる
The first byte is a control byte, the MS81 bit of the control byte indicates the type of control byte, and the following 7 bits indicate the number n of data. The same data is n bytes (2≦n≦1
27) The conversion means 32 is used when the same data is continuous, and the conversion means 31 is used when the same data is not continuous. The compression unit (2) is a means that is advantageous when data of 00h and FFh are continuous, and is performed by the following compression 0 means. The first byte is a control byte, the MS82 bit of the control byte indicates the type of control byte, and the following 6 bits indicate the number of data m.
or indicates data m. When the data is FFh and one or more consecutive pieces, the converting means 33 is used; when the data is 00h and one or more pieces are consecutive, the converting means 34 is used;
When the MSB2 bit is OO other than Oh, FFh, the conversion means 36 is used, and at other times (ooh, pFh, M
When the SB2 bit is not OOl), the conversion means 35 is used.6 The non-compression means uses the data as it is without processing it.

第4図は、実際に生データ21を与^て、第3図の圧縮
手段で示した圧縮部(1)23、圧縮部(2)24.非
圧縮部26の各々が圧縮を実行する様子を示す。80h
が6バイト連続するデータでは、圧縮部(1)23を使
うと2バイトに、圧縮部(2)24を使うと7バイトに
、非圧縮部26を使うと6バイトにそれぞれ圧縮される
(41)、OOhが6バイト連続するデータでは、圧縮
部(1)23を使うと2バイトに、圧縮部<2)24を
使うと1バイトに、非圧縮部26を使うと6バイトにそ
れぞれ圧縮される(42)。
FIG. 4 shows the compression unit (1) 23, compression unit (2) 24, which is shown as the compression means in FIG. A state in which each of the non-compressing units 26 executes compression is shown. 80h
For data consisting of 6 consecutive bytes, the compression section (1) 23 compresses it to 2 bytes, the compression section (2) 24 compresses it to 7 bytes, and the non-compression section 26 compresses it to 6 bytes (41 ), OOh is 6 consecutive bytes of data, it is compressed to 2 bytes using compression section (1) 23, 1 byte when using compression section < 2) 24, and 6 bytes when using non-compression section 26. (42).

更に、特異な゛データとして、80h、00h、8oh
、ooh、soh、oohの6バイトのデータでは、圧
縮部(1)23を使うと7バイトに。
Furthermore, as unique data, 80h, 00h, 8oh
, ooh, soh, ooh are 6 bytes of data, but if the compression unit (1) 23 is used, it becomes 7 bytes.

圧縮部(2)24を使うと9バイトに、非圧縮部26を
使うと6バイトにそれぞれ圧縮される(43)。
If the compression section (2) 24 is used, the data is compressed to 9 bytes, and if the non-compression section 26 is used, it is compressed to 6 bytes (43).

第5図は圧縮判定手段27が、第4図の圧縮手段22に
よる圧縮データの結果を受けて判定する状況を示す、生
データ(1)41の場合は、圧縮部(1)23、圧縮部
(2)24、非圧縮部26でそれぞれ2.7.6バイト
となり、圧縮部(1)23が最良であると判定する。生
データ(2)42の場合は、圧縮部(1)23.圧縮部
(2)24、非圧縮部26でそれぞれ2.1.6バイト
となり、圧縮部(2)24が最良であると判定する。生
データ(3)43の場合は、圧縮部(1)23、圧縮部
(2)24、非圧縮部26でそれぞれ7.9.6バイト
となり、非圧縮部26が最良であると判定する。
FIG. 5 shows a situation in which the compression determining means 27 makes a determination upon receiving the result of the compressed data by the compressing means 22 of FIG. (2) 24 and the uncompressed part 26 each have 2.7.6 bytes, and it is determined that the compressed part (1) 23 is the best. In the case of raw data (2) 42, the compression unit (1) 23. The compression part (2) 24 and the non-compression part 26 each have 2.1.6 bytes, and it is determined that the compression part (2) 24 is the best. In the case of raw data (3) 43, the compression section (1) 23, compression section (2) 24, and non-compression section 26 each have 7.9.6 bytes, and it is determined that the non-compression section 26 is the best.

最終的に、この圧縮判定手段27により最良の圧縮デー
タを得ることができる。第1図のデータ更新手段9は、
この圧縮データ28をディスク装置lOに出力すること
で、最良の圧縮手段を選択しデータの容量を縮小し、最
悪の圧縮度であっても、非圧縮手段が選択され、生デー
タ21よりも圧縮データ28が大きくなることはなくな
る。′[発明の効果] 以上、説明した様に本発明によれば、文書データ、画像
データ、画面データ等を取り扱う際に、その各種データ
の容量・数量が増大しても、一つ以上のデータ圧縮手段
とデータ非圧縮手段を持つ圧縮手段と、前記圧縮手段に
よるデータの圧縮度を判定する圧縮判定手段とを設ける
ことにより、最良のデータ圧縮手段が得、効率の良いデ
ータ記憶を行う為のデータ圧縮装置を提供可能となる。
Finally, the best compressed data can be obtained by this compression determining means 27. The data updating means 9 in FIG.
By outputting this compressed data 28 to the disk device IO, the best compression method is selected and the data capacity is reduced, and even if the degree of compression is the worst, a non-compression method is selected and the compression is better than the raw data 21. The data 28 will no longer become large. ′ [Effect of the invention] As explained above, according to the present invention, when handling document data, image data, screen data, etc., even if the capacity and quantity of the various data increases, one or more data By providing a compression means having a compression means and a data non-compression means, and a compression determination means for determining the degree of compression of data by the compression means, the best data compression means can be obtained and efficient data storage can be achieved. It becomes possible to provide data compression equipment.

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

第1図は本発明の一実施例を示すブロック図、第2図か
ら第5図は本発明による実施例を示すそれぞれ略図であ
り、第2図はデータ圧縮方式を示すブロック図、第3図
は圧縮手段の実施例、第4図はデータ圧縮方式の実行例
、第5図は圧縮判定手段の実行例を示す図である。 l ・ ・ ・ 2 ・ ・ ・ 3 ・ ・ ・ 4 ・ ・ ・ 5 ・ ・ ・ 6 ・ ・ ・ 10 ・ ・ ・ PU K/B RAM 表示装置 AM データ圧縮装置 ディスク装置 以上 出願人 セイコーエプソン株式会社 代理人 弁理士 鈴 木 喜三部(他1名)反一部(1
) 五鞠訃(2) 非IL楕等 n燗 生データ(1) 性、テーク(3)
FIG. 1 is a block diagram showing an embodiment of the present invention, FIGS. 2 to 5 are schematic diagrams showing embodiments of the present invention, FIG. 2 is a block diagram showing a data compression method, and FIG. 3 is a block diagram showing an embodiment of the present invention. 4 shows an example of the implementation of the data compression method, and FIG. 5 shows an example of the implementation of the compression determining means. l ・ ・ ・ 2 ・ ・ ・ 3 ・ ・ 4 ・ ・ ・ 5 ・ ・ ・ 6 ・ ・ ・ 10 ・ ・ ・ PU K/B RAM Display device AM Data compression device Disk device Applicant Seiko Epson Corporation Agent Patent Attorney Kisanbe Suzuki (1 other person) Hanbetsu (1 person)
) Gomari (2) Non-IL ellipsoid raw data (1) Sex, take (3)

Claims (1)

【特許請求の範囲】[Claims] 複数のデータ群を記憶するためのディスク装置と、前記
ディスク装置に対してデータの入出力を行うデータ更新
手段を有する装置に於て、一つ以上のデータ圧縮手段と
データ非圧縮手段を持つ圧縮手段と、前記圧縮手段によ
るデータの圧縮度を判定する圧縮判定手段とを設けたこ
とを特徴とするデータ圧縮装置。
A compression device having one or more data compression means and data decompression means in a device having a disk device for storing a plurality of data groups and a data update means for inputting and outputting data to and from the disk device. 1. A data compression apparatus, comprising: means for determining the degree of compression of data by said compression means; and compression determining means for determining the degree of compression of data by said compression means.
JP26089288A 1988-10-17 1988-10-17 Data compressing device Pending JPH02108119A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP26089288A JPH02108119A (en) 1988-10-17 1988-10-17 Data compressing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP26089288A JPH02108119A (en) 1988-10-17 1988-10-17 Data compressing device

Publications (1)

Publication Number Publication Date
JPH02108119A true JPH02108119A (en) 1990-04-20

Family

ID=17354201

Family Applications (1)

Application Number Title Priority Date Filing Date
JP26089288A Pending JPH02108119A (en) 1988-10-17 1988-10-17 Data compressing device

Country Status (1)

Country Link
JP (1) JPH02108119A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6034730A (en) * 1996-09-06 2000-03-07 Nec Corporation Module switching type picture compressing and reproducing apparatus
US6529912B2 (en) 1997-12-03 2003-03-04 Fujitsu Limited Data compressing apparatus and a data decompressing apparatus, a data compressing method and a data decompressing method, and a data compressing or decompressing dictionary creating apparatus and a computer readable recording medium storing a data compressing program or a data decompressing program
JP2006505215A (en) * 2002-10-30 2006-02-09 リバーベッド テクノロジー インコーポレーティッド Transaction accelerator for client-server communication system
JP2009070361A (en) * 2007-09-11 2009-04-02 Hitachi Ltd Method and device for managing data compression and integrity in computer storage system
US8856222B2 (en) 2002-10-30 2014-10-07 Riverbed Technology, Inc. Transaction acceleration for client-server communication systems

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6034730A (en) * 1996-09-06 2000-03-07 Nec Corporation Module switching type picture compressing and reproducing apparatus
US6529912B2 (en) 1997-12-03 2003-03-04 Fujitsu Limited Data compressing apparatus and a data decompressing apparatus, a data compressing method and a data decompressing method, and a data compressing or decompressing dictionary creating apparatus and a computer readable recording medium storing a data compressing program or a data decompressing program
JP2006505215A (en) * 2002-10-30 2006-02-09 リバーベッド テクノロジー インコーポレーティッド Transaction accelerator for client-server communication system
US8762455B2 (en) 2002-10-30 2014-06-24 Riverbed Technology, Inc. Transaction accelerator for client-server communications systems
US8856222B2 (en) 2002-10-30 2014-10-07 Riverbed Technology, Inc. Transaction acceleration for client-server communication systems
JP2009070361A (en) * 2007-09-11 2009-04-02 Hitachi Ltd Method and device for managing data compression and integrity in computer storage system

Similar Documents

Publication Publication Date Title
US5298992A (en) System and method for frame-differencing based video compression/decompression with forward and reverse playback capability
JPH0158547B2 (en)
JPH06187434A (en) Process-pipeline architecture for image / video processing
JP3311241B2 (en) Data compression and decompression methods
US5764167A (en) Compression and decompression of runs of ones and zeros in groups that progressively increase in size within each run
JPH1196345A (en) Method for compressing and inversely compressing graphics image
JPH02108119A (en) Data compressing device
JPS6345684A (en) Image compressor
JP2008193263A (en) Image processing method, image processing device, image processing program, and record medium
JP3033052B2 (en) Waveform analyzer
JPH10190478A (en) Data compressing device and method, recording medium, and data expanding device and method
US7003165B2 (en) Image processor and image processing method for decompressing progressive-coded compressed image data
JP3673529B2 (en) Image data compression / decompression method and apparatus therefor
JPH10341437A (en) Image processing method and device therefor
JP2891862B2 (en) Image compression apparatus and image compression method
JP3653226B2 (en) Data compression method and apparatus using embedded run length coding
JPH0564000A (en) Method for compressing and expanding image data
JP2689020B2 (en) Code decompression method and drawing device
JP2002540685A (en) Image compression and decompression
JPS62176374A (en) Data processing system
JPS63245067A (en) Data compression system
JPS61184974A (en) Picture data converting device
GB2291553A (en) Digital image compression system
JPS62219080A (en) Picture data converter
JPH08317219A (en) Image compression and expansion device