JPH0869400A - Recording method for compressed data - Google Patents

Recording method for compressed data

Info

Publication number
JPH0869400A
JPH0869400A JP6205278A JP20527894A JPH0869400A JP H0869400 A JPH0869400 A JP H0869400A JP 6205278 A JP6205278 A JP 6205278A JP 20527894 A JP20527894 A JP 20527894A JP H0869400 A JPH0869400 A JP H0869400A
Authority
JP
Japan
Prior art keywords
data
compressed
file
uncompressed
compressed data
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.)
Withdrawn
Application number
JP6205278A
Other languages
Japanese (ja)
Inventor
Takuya Igarashi
卓也 五十嵐
Tetsuji Kawashima
哲司 川嶌
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.)
Sony Corp
Original Assignee
Sony 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 Sony Corp filed Critical Sony Corp
Priority to JP6205278A priority Critical patent/JPH0869400A/en
Publication of JPH0869400A publication Critical patent/JPH0869400A/en
Withdrawn legal-status Critical Current

Links

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Compression, Expansion, Code Conversion, And Decoders (AREA)

Abstract

PURPOSE: To perform random access in a file by compressing uncompressed data in an uncompressed data file and recording the uncompressed data as a compressed data file by attaching managing information for the random access of the uncompressed data at every uncompressed data unit. CONSTITUTION: The compressed data file 1 is constituted of compressed segment data CSF[o] to [n] in which the uncompressed data UFS[o] to [n] in the uncompressed data file 2 are compressed and the managing information CM[o] to [n] for the random access of the uncompressed data UFS[o] to [n] are attached at every uncompressed data UFS[o] to [n]. The uncompressed data UFS[o] to [n] are the one in which the uncompressed data file 2 is divided by fixed length UFS. Each of the compressed segment data CSF [o] to [n] is provided with the same constitution. In such a way, the uncompressed data is recorded as the compressed data file by attaching the managing information for the random access of the uncompressed data at every uncompressed data unit.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、例えば、光ディスク等
の記録媒体に圧縮したデジタルデータを記録する際の圧
縮データ記録方法に関するものであり、特に、データの
損失を伴わない非損失型の圧縮データ記録方法に関する
ものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a compressed data recording method for recording compressed digital data on a recording medium such as an optical disk, and more particularly to a lossless compression method that does not cause data loss. The present invention relates to a data recording method.

【0002】[0002]

【従来の技術】近年のマルチメディアの台頭等により光
ディスク等の外部記憶装置の容量の増加以上の勢いで、
ソフトウエア、或は、データが必要とする容量も増加
し、データ圧縮技術の重要性は高まる傾向にある。
2. Description of the Related Art Due to the rise of multimedia in recent years, the capacity of an external storage device such as an optical disk is increasing at a faster rate.
The capacity required by software or data also increases, and the importance of data compression technology tends to increase.

【0003】上記データ圧縮技術のうち、特に、データ
の損失を伴わない非損失型のデータ圧縮技術は、外部記
憶装置の容量を見かけ上大きくする方法、或は、通信回
線をより有効に使用する方法として注目されている。
Among the above-mentioned data compression techniques, in particular, the lossless data compression technique which does not cause data loss is a method of apparently increasing the capacity of the external storage device or more effectively using the communication line. It is attracting attention as a method.

【0004】この非損失型のデータ圧縮技術により圧縮
する方式(以下、非損失型圧縮方式と言う。)には、圧
縮されたデータを伸長すると圧縮前のデータが完全に再
現され情報が全く失われないという大きな利点がある。
In the method of compressing with this lossless data compression technique (hereinafter referred to as lossless compression method), when the compressed data is expanded, the data before compression is completely reproduced and information is lost at all. There is a great advantage of not being forgotten.

【0005】しかし、その反面、データ圧縮の際の圧縮
率は、圧縮されるデータの内容によって変化し、圧縮さ
れるデータ全てを圧縮し終えるまで分からないという非
常に使用しにくいという性質も持っている。このような
性質は、特に、ランダムアクセスを行うデータストレー
ジにとっては、非常に都合の悪い性質である。
On the other hand, however, the compression rate at the time of data compression varies depending on the content of the data to be compressed, and it is not easy to use until all the data to be compressed is completely compressed. There is. Such a property is extremely inconvenient for a data storage that makes random access.

【0006】これらの性質を考慮した上でデータ圧縮を
データストレージに応用した非損失型圧縮方式として、
例えば、アプリケーションレベルでファイル単位のデー
タ圧縮を行う方法、デバイスドライバレベルでデータ圧
縮を行う方法、オペレーションシステム(以下、OS:
Operating Systemと言う。)の機能の
一部としてデータ圧縮を行う方法等がある。
As a lossless compression system in which data compression is applied to data storage in consideration of these properties,
For example, a method of performing file-based data compression at the application level, a method of performing data compression at the device driver level, an operating system (hereinafter referred to as OS:
It is called Operating System. ) There is a method of performing data compression as a part of the function.

【0007】上記アプリケーションレベルでファイル単
位のデータ圧縮を行う方法とは、入力されたファイルを
圧縮して、その圧縮したファイルを出力するファイル単
位の圧縮ツールによりデータ圧縮を行う方法である。こ
のような圧縮ツールを用いた方法は、外部記録装置用と
してだけでなく通信コストを下げるためにも使用されて
いる。また、この圧縮ツールを拡張した形で、使用して
いないファイルを順次圧縮していく機能を持たせたもの
もある。これにより、外部記憶装置の容量を見かけ上大
きくすることができる。
The method of compressing data on a file-by-file basis at the application level is a method of compressing an input file and compressing the data using a file-by-file compression tool that outputs the compressed file. The method using such a compression tool is used not only for the external recording device but also for reducing the communication cost. There is also an extension of this compression tool that has the function of sequentially compressing unused files. As a result, the capacity of the external storage device can be apparently increased.

【0008】上記デバイスドライバレベルでデータ圧縮
を行う方法とは、ディスク圧縮と呼ばれるソフトウエア
により、デバイスドライバの部分で圧縮する方法であ
る。
The method of performing data compression at the device driver level is a method of performing compression at the device driver portion by software called disk compression.

【0009】通常、ホスト側はデバイスドライバを通し
てドライブの記憶容量を認識するが、この方法の場合、
本来備えている物理的な容量以上の容量、例えば、2倍
の容量を備えたドライブであるという記憶容量情報をホ
スト側に認識させる。即ち、実際のドライブの記憶容量
ではなく見かけ上の論理的なドライブの記憶容量をホス
ト側に認識させる。
Normally, the host side recognizes the storage capacity of the drive through the device driver. In this method,
The host side is caused to recognize the storage capacity information that the drive has a capacity larger than the physical capacity that it originally has, for example, twice the capacity. That is, the host side is made to recognize the apparent logical storage capacity of the drive, not the actual storage capacity of the drive.

【0010】そして、上記ホスト側は、データの読取
り、或は、記録の全てを見かけ上のドライブの記録領域
に対して行うこととなる。この時、このディスク圧縮と
呼ばれるソフトウエアは、図11に示すような、圧縮前
のデータ管理情報BIFと圧縮後のデータ管理情報AI
Fとの対応情報が記録されている変換テーブルCM(C
ompression Map)を用いて、見かけ上の
ドライブの記録領域のアドレスから実際のドライブの記
録領域のアドレスへ変換する。
Then, the host side performs all the data reading or recording on the apparent recording area of the drive. At this time, this software called disk compression is performed by the data management information BIF before compression and the data management information AI after compression as shown in FIG.
A conversion table CM (C
The apparent address of the recording area of the drive is converted to the address of the actual recording area of the drive by using the compression map.

【0011】上記圧縮前のデータ管理情報BIFは、圧
縮する前のデータを固定長に区切ったCC(Compr
ession Cluster)ブロックの番号を示す
情報である。OSは、このCCブロック単位でデータの
読取り、及び、記録を行う。例えば、上記CCブロック
の大きさが8Kbyteであり、ドライブの物理的な記
憶容量が80Mbyteであった場合、データ圧縮を行
わなければCCブロックの個数は、80,000/8=
10,000個となる。そこで、データ圧縮を行うと、
CCブロックの個数は見かけ上の論理的なドライブの容
量により決定するため、例えば、データが平均的に1/
2に圧縮される場合、論理的なドライブの容量は160
Mbyteとなる。従って、CCブロックの個数は、1
60,000/8=20,000個となる。
The uncompressed data management information BIF is a CC (Compr) that divides the uncompressed data into fixed lengths.
This is information indicating the number of the session cluster block. The OS reads and records data in this CC block unit. For example, when the size of the CC block is 8 Kbytes and the physical storage capacity of the drive is 80 Mbytes, the number of CC blocks is 80,000 / 8 = without data compression.
It will be 10,000 pieces. So if you do data compression,
Since the number of CC blocks is determined by the apparent logical drive capacity, for example, the data is 1 / average.
When compressed to 2, the logical drive capacity is 160
It becomes Mbyte. Therefore, the number of CC blocks is 1
60,000 / 8 = 20,000.

【0012】また、圧縮後のデータ管理情報AIFは、
上記CCブロックのデータ(以下、CCブロックデータ
と言う。)がディスク上でどのように記録されているか
を示す情報である。即ち、上記CCブロックデータを圧
縮したデータを固定長に区切ったCS(Compres
sion Sector)ブロックの番号と、そのCS
ブロックの個数を示す情報である。
The compressed data management information AIF is
This is information indicating how the data of the CC block (hereinafter referred to as CC block data) is recorded on the disc. That is, the compressed data of the CC block data is divided into fixed length CS (Compres).
section Sector) block number and its CS
This is information indicating the number of blocks.

【0013】例えば、上記図11に示すように、CCブ
ロックの番号=0、先頭のCSブロックの番号=0、C
Sブロックの個数=4であった場合、CCブロックデー
タ[0]は、CSブロック[0]〜CSブロック[3]
の4個のCSブロックに渡って記録されていることを示
している。
For example, as shown in FIG. 11, the CC block number = 0, the leading CS block number = 0, and C
When the number of S blocks = 4, the CC block data [0] is CS block [0] to CS block [3].
It indicates that the data is recorded over the four CS blocks.

【0014】上述のようなデータ圧縮の情報が記録され
ている変換テーブルCMにより、ホスト側のOSは、論
理的な見かけ上のドライブへのデータの読取り、或は、
記録を行い、そのデータの読取り、或は、記録は全て、
上記ディスク圧縮と呼ばれるソフトウエアを介して実際
のドライブ上のものに変換されることとなる。
By the conversion table CM in which the data compression information as described above is recorded, the OS on the host side reads the data into the drive which is logically apparent, or
Make a record and read the data, or record all,
It will be converted into the one on the actual drive through the software called disk compression.

【0015】即ち、ユーザ側から見ると、上述したアプ
リケーションレベルでファイル単位のデータ圧縮を行う
方法は通常のドライブ上に圧縮されたファイルが記録さ
れると言うようなイメージであるのに対して、上記デバ
イスドライバレベルでデータ圧縮を行う方法は変換テー
ブルCMのエントリ数とCCブロックの大きさで決定さ
れる仮想的なドライブを使用しているようなイメージと
なる。
That is, from the user's point of view, the above-described method of performing data compression in file units at the application level is an image in which a compressed file is recorded on a normal drive, whereas The method of performing data compression at the device driver level gives an image of using a virtual drive determined by the number of entries in the conversion table CM and the size of the CC block.

【0016】上記OSの機能の一部としてデータ圧縮を
行う方法は、上述したデバイスドライバレベルでデータ
圧縮を行う方法と多少似ているが、この方法では、CV
F(Compressed Volume File)
と呼ばれる大きなファイルをドライブ上に作成し、OS
が上記CVFを認識してデータ圧縮を行う。
The method of performing data compression as a part of the function of the above OS is somewhat similar to the method of performing data compression at the device driver level described above, but this method uses CV.
F (Compressed Volume File)
Create a large file called a
Recognizes the CVF and performs data compression.

【0017】上記CVFとは、圧縮されたファイルが集
まった1つの大きなファイル、即ち、圧縮データ専用の
ドライブである。また、上記CVFは、仮想的なドライ
ブに対して作成され上記図11に示したような変換テー
ブルCMを有しており、CVF内のランダムアクセスを
行うことができる。
The CVF is one large file in which compressed files are collected, that is, a drive dedicated to compressed data. Further, the CVF has a conversion table CM created for a virtual drive as shown in FIG. 11 and can perform random access in the CVF.

【0018】このCVFに記録することができる圧縮前
のデータ量、即ち、CVFの容量は変換テーブルCMで
決定されるが、上記変換テーブルCMの大きさがあまり
大きくない場合には、実際のCVFの容量は任意の大き
さに決定される。このため、見かけ上の容量は不足して
ないが実際の容量は不足しているという状態が生じな
い。即ち、圧縮率が低くなければ、CVFの見かけ上の
容量は同じでも実際の容量が大きくなるということにな
る。
The amount of data before compression that can be recorded in this CVF, that is, the capacity of the CVF is determined by the conversion table CM. However, when the size of the conversion table CM is not so large, the actual CVF is The capacity of is determined to an arbitrary size. Therefore, the apparent capacity is not insufficient, but the actual capacity is not insufficient. That is, if the compression rate is not low, the actual capacity will be large even if the apparent capacity of the CVF is the same.

【0019】また、上述したデバイスドライバレベルで
データ圧縮を行う方法では、ドライブ全体、或は、通常
の方法でパーティションを切られたドライブの一部に渡
って、変換テーブルCMとデータ圧縮が仮想ドライブと
実ドライブの変換を行うのに対して、この方法では、仮
想ドライブと実ドライブの変換はCVFのみとなる。そ
して、この方法の大きな特徴として、OSの一部として
データ圧縮を行うということである。従って、OSは、
データ圧縮を前提としたディスク上のスペースの最適化
等を行うことができる。
In the method of performing data compression at the device driver level described above, the conversion table CM and the data compression are virtual drives over the entire drive or a part of the drive partitioned in the usual way. With this method, only the CVF is converted between the virtual drive and the real drive. A major feature of this method is that data compression is performed as part of the OS. Therefore, the OS is
It is possible to optimize the space on the disk for data compression.

【0020】[0020]

【発明が解決しようとする課題】しかし、上記アプリケ
ーションレベルでファイル単位のデータ圧縮を行う方法
では、アプリケーションレベルでデータ圧縮機能が働く
ため、ファイル内をランダムアクセスすることができな
かった。
However, since the data compression function operates at the application level in the above-mentioned method of performing data compression in file units at the application level, it is impossible to randomly access the inside of the file.

【0021】例えば、圧縮されていないファイルであっ
た場合、アクセスする箇所のファイル中のオフセットが
分かっていれば、そのオフセットを用いてランダムアク
セスすることができる。
For example, in the case of an uncompressed file, if the offset in the file to be accessed is known, random access can be performed using that offset.

【0022】しかし、そのファイルが圧縮されていた場
合、圧縮率はファイルによって異なり同じファイル中で
も一様に圧縮されているわけではない。また、上述した
変換テーブルCMのような圧縮前のデータと圧縮後のデ
ータとの対応を示す情報は、アプリケーションレベルで
ファイルに付加することができなかった。
However, when the file is compressed, the compression rate differs depending on the file, and the file is not uniformly compressed even in the same file. Further, the information indicating the correspondence between the data before compression and the data after compression like the conversion table CM described above cannot be added to the file at the application level.

【0023】このため、圧縮される前の状態でのオフセ
ットと圧縮された後の状態でのオフセットの相対関係を
認識することができず、目的とするデータをアクセスす
る際には、圧縮されているファイルを先頭から上記目的
とするデータまで伸長しなければならなかった。このよ
うに、圧縮されているファイル内をランダムアクセスす
ることができなかった。上記デバイスドライバレベルで
データ圧縮を行う方法では、実際にディスク上にデータ
が記録されている様子をOSのファイルシステムから見
ることができない。即ち、OSのファイルシステムから
は、仮想的なドライブ上でのデータの記録の様子しか見
えないため、実際にデータがフラグメンテーションを起
こしているのか否か、或は、ファイルシステムがディス
ク内のデータ配置の最適化を行っても実際に最適化が行
われているか否か認識することができず、基本的には圧
縮ツール任せになってしまっていた。
Therefore, the relative relationship between the offset before the compression and the offset after the compression cannot be recognized, and when the target data is accessed, it is compressed. It was necessary to decompress the existing file from the beginning to the above target data. Thus, it was not possible to randomly access the compressed file. With the method of performing data compression at the device driver level, it is not possible to see from the OS file system how data is actually recorded on the disk. That is, since the OS file system can only see the state of data recording on the virtual drive, whether or not the data actually causes fragmentation, or the file system allocates data on the disk. Even if the optimization was performed, it was not possible to recognize whether or not the optimization was actually performed, and basically it was left to the compression tool.

【0024】また、この方法では、ドライブの容量は変
換テーブルCMの大きさで決定してしまうが、圧縮率に
何の保証もないため、仮想的なドライブの容量分のデー
タが実際に記録できるとは限らない。例えば、実際に空
容量が10Kbyteであった場合、ホスト側に空容量
が20Kbyteであると認識させると、ホスト側は2
0Kbyteのデータを記録しようとし、また、データ
を圧縮して10Kbyte以下にすることができずデー
タが失われてしまうという状況が生じることがあった。
Further, in this method, the capacity of the drive is determined by the size of the conversion table CM, but since there is no guarantee in the compression rate, data equivalent to the capacity of the virtual drive can be actually recorded. Not necessarily. For example, if the free capacity is actually 10 Kbytes and the host side recognizes that the free capacity is 20 Kbytes, the host side will get 2
There was a situation in which an attempt was made to record 0 Kbytes of data, and the data could not be compressed to 10 Kbytes or less and the data was lost.

【0025】また、例えば、上記図11に示した変換テ
ーブルCMにおいて、CCブロックの大きさが8Kby
te、CSブロックの大きさが4Kbyteであった場
合、8Kbyteの大きさのCCブロックデータが圧縮
されて4Kbyte以下となれば、実際には1つのCS
ブロックを使用することとなり、圧縮を用いない場合と
比べて1/2のディスク上のスペースを使用することと
なる。
Also, for example, in the conversion table CM shown in FIG. 11, the CC block size is 8 Kby.
If the size of the te, CS block is 4 Kbytes, and the CC block data of 8 Kbytes is compressed to 4 Kbytes or less, one CS is actually used.
Since blocks are used, half the space on the disk is used as compared with the case where no compression is used.

【0026】しかし、圧縮されたCCブロックデータの
大きさが5Kbyteであった場合は、2つのCSブロ
ックを使用することとなり、圧縮を使用しない場合と比
較してディスク上で使用するスペースは変化しないこと
となる。即ち、このような場合には、実際にはかなり圧
縮されているにもかかわらず、圧縮の効果を全く得るこ
とができなかった。
However, when the size of the compressed CC block data is 5 Kbytes, two CS blocks are used, and the space used on the disk does not change as compared with the case where compression is not used. It will be. That is, in such a case, the compression effect could not be obtained at all, although it was actually compressed considerably.

【0027】さらに、データ圧縮の効果を十分に得るた
めには、基本的にはCSブロックの大きさを小さくすれ
ばよいが、CSブロックが小さければ1つのCCブロッ
クデータに対するCSブロックの個数が多くなる。この
ため、これを示す情報には多くのビット数が必要とな
る。即ち、データ圧縮の効果を十分に得るためにCSブ
ロックの大きさを小さくすると、変換テーブルCMが大
きくなってしまってい、管理することができるファイル
の大きさが制限されてしまっていた。
Further, in order to sufficiently obtain the effect of data compression, it is basically necessary to reduce the size of the CS block, but if the CS block is small, the number of CS blocks for one CC block data is large. Become. Therefore, a large number of bits are required for the information indicating this. That is, if the size of the CS block is reduced in order to sufficiently obtain the effect of data compression, the conversion table CM becomes large and the size of the manageable file is limited.

【0028】上記OSの機能の一部としてデータ圧縮を
行う方法では、圧縮されたデータと圧縮されないデータ
とが見かけ上別々のドライブに記録されてしまってい
た。このため、ある一つのディレクトリ内に、圧縮デー
タと非圧縮データとを混在させることができなかった。
In the method of compressing data as a part of the function of the OS, compressed data and uncompressed data are apparently recorded in different drives. For this reason, compressed data and uncompressed data cannot be mixed in one directory.

【0029】また、CVFの見かけ上の容量は最初の初
期設定で決定されるため、初期設定後は任意に変化させ
ることができなかった。さらに、データ圧縮の管理情報
である変換テーブルCMがCVFに含まれる全てのファ
イルで共有されているため、例えば、CVF中のあるフ
ァイルを圧縮された状態で通信回線を通して送信する際
に、上記CMを付加して送信すると処理に手間がかかっ
てしまい高速に処理することができなかった。
Since the apparent capacity of the CVF is determined by the initial setting at the beginning, it cannot be changed arbitrarily after the initial setting. Further, since the conversion table CM, which is management information for data compression, is shared by all the files included in the CVF, for example, when a certain file in the CVF is compressed and transmitted through the communication line, the CM However, if it is added and sent, it takes a lot of time and labor to process it, and it is not possible to process it at high speed.

【0030】また、データ圧縮機能が搭載されていない
ファイルシステムを使用しているドライブに、データ圧
縮されたディスクが挿入された場合、誤って必要な情報
が消去されることがあった。
Further, when a data-compressed disk is inserted into a drive using a file system that does not have a data compression function, necessary information may be erased by mistake.

【0031】例えば、ディスク上の管理を特別なエリア
を設けてデータ圧縮されているディスクを、データ圧縮
機能が搭載されていないファイルシステムを使用してい
るドライブに挿入すると、上記ファイルシステムからは
上述のようなエリアを認識することができない。従っ
て、上記管理情報のエリアを持ったディスクをデータ圧
縮機能が搭載されていないファイルシステムを使用して
いるドライブに挿入すると、圧縮データの管理情報エリ
アが消去されてしまうことがあった。
For example, when a disk in which data is compressed by providing a special area for management on the disk is inserted into a drive using a file system that does not have a data compression function, the above-mentioned file system causes I cannot recognize the area like. Therefore, when a disk having the management information area is inserted into a drive using a file system that does not have a data compression function, the management information area of compressed data may be erased.

【0032】そこで、本発明は、上述の如き従来の実情
に鑑みてなされたものであり、次のような目的を有する
ものである。
Therefore, the present invention has been made in view of the above-mentioned conventional circumstances, and has the following objects.

【0033】即ち、本発明の目的は、ファイル内のラン
ダムアクセスを行うことができる圧縮データ記録方法を
提供することにある。
That is, an object of the present invention is to provide a compressed data recording method capable of random access within a file.

【0034】また、本発明の目的は、ファイル内のラン
ダムアクセスを高速に行うことができる圧縮データ記録
方法を提供することにある。
Another object of the present invention is to provide a compressed data recording method capable of performing random access within a file at high speed.

【0035】また、本発明の目的は、データ圧縮機能を
搭載していないファイルシステムを使用しているドライ
ブに挿入するディスクに適用することができる圧縮デー
タ記録方法を提供することにある。
Another object of the present invention is to provide a compressed data recording method which can be applied to a disk to be inserted into a drive using a file system which does not have a data compression function.

【0036】また、本発明の目的は、管理することがで
きるファイルの大きさを可変することができる圧縮デー
タ記録方法を提供することにある。
Another object of the present invention is to provide a compressed data recording method capable of varying the size of a manageable file.

【0037】[0037]

【課題を解決するための手段】上述の課題を解決するた
めに、本発明に係る圧縮データ記録方法は、非圧縮デー
タファイルの非圧縮データを圧縮し、上記非圧縮データ
のランダムアクセスのための管理情報を非圧縮データ単
位毎に付加して圧縮データファイルとして記録すること
を特徴とする。
In order to solve the above-mentioned problems, a compressed data recording method according to the present invention compresses uncompressed data of an uncompressed data file and performs random access of the uncompressed data. It is characterized in that management information is added to each uncompressed data unit and recorded as a compressed data file.

【0038】また、本発明に係る圧縮データ記録方法
は、上記非圧縮データは、上記非圧縮データファイルを
固定長単位で分割したものであり、上記非圧縮データを
ランダムアクセス単位で分割してランダムアクセス単位
毎に圧縮し、ランダムアクセス単位の圧縮データを記録
単位に分割して記録し、上記管理情報には、ランダムア
クセス単位で分割したデータと記録単位に分割した圧縮
データとの対応を示す情報を記録することを特徴とす
る。
Further, in the compressed data recording method according to the present invention, the non-compressed data is obtained by dividing the non-compressed data file in fixed length units, and the non-compressed data is divided in random access units and randomly Compressed for each access unit, the compressed data in the random access unit is divided and recorded in the recording unit, and the management information is information indicating the correspondence between the data divided in the random access unit and the compressed data divided in the recording unit. Is recorded.

【0039】また、本発明に係る圧縮データ記録方法
は、上記管理情報は、上記圧縮データファイル内の記録
単位に分割した圧縮データの各記録領域の使用状況を示
すビットマップ情報を有することを特徴とする。
Further, in the compressed data recording method according to the present invention, the management information includes bitmap information indicating a usage status of each recording area of the compressed data divided into recording units in the compressed data file. And

【0040】また、本発明に係る圧縮データ記録方法
は、上記管理情報は、上記非圧縮データファイルの非圧
縮データの順序に対応した順序で、圧縮データファイル
の先頭から等間隔に配置することを特徴とする。
Further, in the compressed data recording method according to the present invention, the management information is arranged at equal intervals from the head of the compressed data file in an order corresponding to the order of the uncompressed data of the uncompressed data file. Characterize.

【0041】また、本発明に係る圧縮データ記録方法
は、上記圧縮データファイルの圧縮率は、最初の非圧縮
データの圧縮後に決定することを特徴とする。
Further, the compressed data recording method according to the present invention is characterized in that the compression rate of the compressed data file is determined after the first non-compressed data is compressed.

【0042】また、本発明に係る圧縮データ記録方法
は、1個のランダムアクセス単位で分割したデータに対
応する記録単位に分割した圧縮データを連続した記録領
域に記録することを特徴とする。
The compressed data recording method according to the present invention is characterized in that the compressed data divided into recording units corresponding to the data divided into one random access unit is recorded in a continuous recording area.

【0043】また、本発明に係る圧縮データ記録方法
は、上記非圧縮データを圧縮したデータの記録領域に空
領域を設けることを特徴とする。
The compressed data recording method according to the present invention is characterized in that an empty area is provided in the recording area of the data obtained by compressing the non-compressed data.

【0044】[0044]

【作用】本発明に係る圧縮データ記録方法では、非圧縮
データファイルの非圧縮データを圧縮する。上記非圧縮
データのランダムアクセスのための管理情報を非圧縮デ
ータ単位毎に付加して圧縮データファイルとして記録す
る。
In the compressed data recording method according to the present invention, the uncompressed data in the uncompressed data file is compressed. The management information for random access of the uncompressed data is added to each uncompressed data unit and recorded as a compressed data file.

【0045】また、本発明に係る圧縮データ記録方法で
は、上記非圧縮データファイルを固定長単位で分割した
上記非圧縮データを、ランダムアクセス単位で分割す
る。そして、上記ランダムアクセス単位毎に圧縮する。
上記ランダムアクセス単位の圧縮データを記録単位に分
割する。上記管理情報に、ランダムアクセス単位で分割
したデータと記録単位に分割した圧縮データとの対応を
示す情報を記録する。そして、記録単位に分割した圧縮
データに上記管理情報を付加して圧縮データファイルと
して記録する。
In the compressed data recording method according to the present invention, the non-compressed data obtained by dividing the non-compressed data file into fixed length units is divided into random access units. Then, compression is performed for each random access unit.
The compressed data of the random access unit is divided into recording units. Information indicating the correspondence between the data divided in random access units and the compressed data divided in recording units is recorded in the management information. Then, the management information is added to the compressed data divided into recording units and recorded as a compressed data file.

【0046】また、本発明に係る圧縮データ記録方法で
は、上記管理情報に、上記圧縮データファイル内の記録
単位に分割した圧縮データの各記録領域の使用状況を示
すビットマップ情報を記録する。
Further, in the compressed data recording method according to the present invention, the management information is recorded with bitmap information indicating the usage status of each recording area of the compressed data divided into recording units in the compressed data file.

【0047】また、本発明に係る圧縮データ記録方法で
は、上記管理情報は、上記非圧縮データファイルの非圧
縮データの順序に対応した順序で、圧縮データファイル
の先頭から等間隔に配置する。
Further, in the compressed data recording method according to the present invention, the management information is arranged at equal intervals from the head of the compressed data file in an order corresponding to the order of the uncompressed data of the uncompressed data file.

【0048】また、本発明に係る圧縮データ記録方法で
は、上記圧縮データファイルの圧縮率は、最初の非圧縮
データの圧縮後に決定する。
Further, in the compressed data recording method according to the present invention, the compression rate of the compressed data file is determined after the first non-compressed data is compressed.

【0049】また、本発明に係る圧縮データ記録方法で
は、1個のランダムアクセス単位で分割したデータに対
応する記録単位に分割した圧縮データを連続した記録領
域に記録する。
Further, in the compressed data recording method according to the present invention, the compressed data divided into recording units corresponding to the data divided into one random access unit is recorded in a continuous recording area.

【0050】また、本発明に係る圧縮データ記録方法で
は、上記非圧縮データを圧縮したデータの記録領域に空
領域を設ける。
Further, in the compressed data recording method according to the present invention, an empty area is provided in the recording area of the data obtained by compressing the non-compressed data.

【0051】[0051]

【実施例】以下、本発明の一実施例について図面を参照
しながら説明する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the present invention will be described below with reference to the drawings.

【0052】まず、本発明の第1の実施例に係る圧縮デ
ータ記録方法について説明する。
First, a compressed data recording method according to the first embodiment of the present invention will be described.

【0053】上記圧縮データ記録方法を適用して圧縮し
た圧縮データファイル1は、例えば、図1に示すよう
に、非圧縮データファイル2の非圧縮データUFS
[0]〜[n]が圧縮され上記非圧縮データUFS
[0]〜[n]のランダムアクセスのための管理情報C
M[0]〜[n](CM:Compression M
ap)が上記非圧縮データUFS[0]〜[n]毎に付
加された圧縮セグメントデータCSF[0]〜[n]
(CFS:Compressed File Segm
ent)で構成されている。
The compressed data file 1 compressed by applying the above compressed data recording method is, for example, as shown in FIG. 1, the uncompressed data UFS of the uncompressed data file 2.
[0] to [n] are compressed and the uncompressed data UFS is obtained.
Management information C for random access from [0] to [n]
M [0] to [n] (CM: Compression M
ap) is compressed segment data CSF [0] to [n] added to each of the uncompressed data UFS [0] to [n].
(CFS: Compressed File Segm
ent)).

【0054】上記非圧縮データUFS[0]〜[n]と
は、上記非圧縮データファイル2を固定長UFS(Un
compressed File Segment)で
分割されたものである。
The uncompressed data UFS [0] to [n] are the fixed length UFS (Un of the uncompressed data file 2).
It is divided by a compressed file segment).

【0055】上記圧縮セグメントデータCSF[0]〜
[n]は各々同じ構成をしている。以下、圧縮セグメン
トデータCSF[0]について説明する。
The compressed segment data CSF [0]-
[N] have the same configuration. The compressed segment data CSF [0] will be described below.

【0056】上記圧縮セグメントデータCSF[0]
は、ヘッダ情報HD[0]と、圧縮データSH[0]
(SH:Sector Heap)とで構成されてい
る。
The compressed segment data CSF [0]
Is header information HD [0] and compressed data SH [0].
(SH: Sector Heap).

【0057】上記ヘッダ情報HD[0]は、上述した非
圧縮データUFS[0]内のランダムアクセスのための
管理情報CM[0]と圧縮データSH[0]の記録領域
の使用状況を示すビットマップ情報BM(Bit Ma
p)[0]とで構成されている。
The header information HD [0] is a bit indicating the use status of the recording area of the management information CM [0] and the compressed data SH [0] for random access in the uncompressed data UFS [0]. Map information BM (Bit Ma
p) [0].

【0058】上記圧縮データSH[0]は、一定個数h
のCSブロック[0]〜[h−1]で構成されている。
また、上記圧縮データSH[0]の最後尾は、使用して
いない領域(以下、余裕領域と言う。)DMY[0]が
設けられている。
The compressed data SH [0] has a fixed number h
Of CS blocks [0] to [h-1].
At the end of the compressed data SH [0], an unused area (hereinafter referred to as a margin area) DMY [0] is provided.

【0059】上記CSブロック[0]〜[h−1]と
は、非圧縮データUFS[0]を固定長CC(Comp
ressed Cluster)のブロックで分割した
CCブロックデータ[0]〜[m]がCCブロック単位
で圧縮され、その圧縮されたCCブロックデータ[0]
〜[m]を上記CCブロックよりも小さな固定長CS
(Compressed Sector)に分割された
ブロックである。即ち、上記CSブロック[0]〜[h
−1]とは、ファイルシステムで管理される論理的に連
続な空間を固定長に区切ったものであり、このCSブロ
ック単位でディスク上に記録される。
The CS blocks [0] to [h-1] are the uncompressed data UFS [0] having a fixed length CC (Comp.
CC block data [0] to [m] divided by a block of (less cluster) are compressed in CC block units, and the compressed CC block data [0]
~ [M] is a fixed length CS smaller than the CC block
It is a block divided into (Compressed Sector). That is, the above CS blocks [0] to [h
-1] is a division of a logically continuous space managed by the file system into fixed lengths, which is recorded on the disk in CS block units.

【0060】また、CCブロックデータ[0]に対応す
るCSブロックの組は、連続して記録されている。
A set of CS blocks corresponding to CC block data [0] is continuously recorded.

【0061】例えば、上記CCブロックデータ[0]の
大きさが8Kbyte、CSブロックの大きさが512
byteであった場合、上記CCブロックデータ[0]
を圧縮したデータは1個〜16個のCSブロックに割り
当てられる。
For example, the size of the CC block data [0] is 8 Kbytes and the size of the CS block is 512.
If it is byte, the above CC block data [0]
The compressed data is assigned to 1 to 16 CS blocks.

【0062】上記CCブロックデータ[0]に対応する
CSブロックの組は、必ず一緒に伸長されるため、上記
CSブロックの組のリンク情報等は設けずに、必ず連続
したエリア、即ち、物理的にディスク上の連続したエリ
アではなくファイルシステムで管理されている論理的に
連続したエリアに記録されている。
Since the set of CS blocks corresponding to the CC block data [0] is always expanded together, the link information and the like of the set of CS blocks is not provided and the area is always a continuous area, that is, a physical area. It is recorded in a logically contiguous area managed by the file system, not in a contiguous area on the disc.

【0063】上記ヘッダ情報HD[0]には、上記管理
情報CM[0]、上記ビットマップ情報BM[0]の他
に、図示していないが、この圧縮データファイル1全体
に関する情報、例えば、上記圧縮データファイル1の圧
縮方式、非圧縮データUFS[0]、及び、圧縮セグメ
ントデータCSF[0]の大きさの情報等も記録されて
いる。
Although not shown in the header information HD [0] in addition to the management information CM [0] and the bitmap information BM [0], information on the entire compressed data file 1, for example, Information about the compression method of the compressed data file 1, the uncompressed data UFS [0], the size of the compressed segment data CSF [0], and the like is also recorded.

【0064】上記管理情報CM[0]とは、上記CCブ
ロックデータ[0]〜[m]と、上記CSブロック
[0]〜[h−1]との対応を示す情報テーブルであ
り、1つの非圧縮データUFS[0]が1つの管理情報
CM[0]に対応した形となっている。
The management information CM [0] is an information table showing the correspondence between the CC block data [0] to [m] and the CS blocks [0] to [h-1]. The uncompressed data UFS [0] has a form corresponding to one management information CM [0].

【0065】即ち、この管理情報CM[0]は、非圧縮
データUFS[0]内のランダムアクセスのための情報
テーブルであり、非圧縮データUFS[0]に対して作
成されたもので、上記非圧縮データUFS[0]とラベ
ルの一致する圧縮セグメントデータCSF[0]のヘッ
ダ情報HD[0]に付加されている。
That is, the management information CM [0] is an information table for random access in the uncompressed data UFS [0], which is created for the uncompressed data UFS [0]. It is added to the header information HD [0] of the compressed segment data CSF [0] having the same label as the uncompressed data UFS [0].

【0066】上記ビットマップ情報BM[0]とは、圧
縮セグメントデータCSF[0]のCSブロック[0]
〜[h−1]内で使用されているCSブロックと、使用
されていないCSブロックを1bit、或は、2bit
で示すものである。従って、上記管理情報CM[0]と
同様に、1つの非圧縮データUFS[0]に1つのビッ
トマップ情報BM[0]が対応している。
The bitmap information BM [0] is the CS block [0] of the compressed segment data CSF [0].
~ CS block used in [h-1] and CS block not used are 1 bit or 2 bit
It is shown by. Therefore, like the management information CM [0], one piece of bitmap information BM [0] corresponds to one piece of uncompressed data UFS [0].

【0067】次に、上記圧縮データ記録方法について説
明する。
Next, the compressed data recording method will be described.

【0068】この圧縮データ記録方法は、オペレーショ
ンシステム(以下、OSと言う。)のファイルシステム
機能の一部としてデータ圧縮処理を行う方法である。
This compressed data recording method is a method of performing data compression processing as a part of the file system function of the operation system (hereinafter referred to as OS).

【0069】まず、非圧縮データファイル2を固定長U
FSのブロックに分割する。UFS単位に分割した非圧
縮データUFS[0]〜[n]を、固定長CCのブロッ
クに分割する。
First, the uncompressed data file 2 has a fixed length U.
Divide into FS blocks. The uncompressed data UFS [0] to [n] divided into UFS units are divided into blocks of fixed length CC.

【0070】以下、非圧縮データUFS[0]について
説明する。
The uncompressed data UFS [0] will be described below.

【0071】上記非圧縮データUFS[0]をCC単位
で分割したCCブロックデータ[0]〜[m]に対して
CC単位で各々圧縮する。
CC block data [0] to [m] obtained by dividing the uncompressed data UFS [0] in CC units are compressed in CC units.

【0072】CC単位で圧縮したCCブロックデータ
[0]〜[m]を上記CC単位よりも小さい固定長CS
のブロックに分割する。
CC block data [0] to [m] compressed in CC units have a fixed length CS smaller than the CC unit.
Divide into blocks.

【0073】上記CS単位に分割したCSブロックを一
定個数h集め、一定個数hのCSブロック[0]〜[h
−1]を圧縮データSH[0]として記録する。
A fixed number h of CS blocks divided into the above CS units are collected, and a fixed number h of CS blocks [0] to [h].
-1] is recorded as compressed data SH [0].

【0074】さらに、上記圧縮データSH[0]の最後
尾に余裕領域DMY[0]を設ける。
Further, a margin area DMY [0] is provided at the end of the compressed data SH [0].

【0075】この時、CC単位に分割したCCブロック
データ[0]〜[m]と、CS単位に分割したCSブロ
ック[0]〜[h−1]との対応を示す管理情報CM
[0]、及び、CSブロック[0]〜[h−1]内のC
Sブロックの使用状態示すビットマップ情報BM[0]
を作成する。
At this time, the management information CM indicating the correspondence between the CC block data [0] to [m] divided in CC units and the CS blocks [0] to [h-1] divided in CS units.
[0] and C in the CS blocks [0] to [h-1]
Bitmap information BM [0] indicating the usage status of the S block
To create.

【0076】そして、上記圧縮データSH[0]に上記
管理情報CM[0]とビットマップ情報BM[0]とを
付加して圧縮セグメントデータCSF[0]を形成す
る。
Then, the management information CM [0] and the bitmap information BM [0] are added to the compressed data SH [0] to form compressed segment data CSF [0].

【0077】ここで、1つのCCブロックデータに対応
するCSブロックの組を連続したエリアに記録すること
ができなかった場合、例えば、上記CCブロックデータ
[0]に対応するCSブロックの組を連続して圧縮セグ
メントデータCSF[0]に記録することができなかっ
た場合には、上記CCブロックデータ[0]に対応する
CSブロックの組を連続して記録することができる圧縮
セグメントデータCSF[x]を検索し、検索した他の
圧縮セグメントデータCSF[x≠0]に記録する。
Here, when a set of CS blocks corresponding to one CC block data cannot be recorded in a continuous area, for example, a set of CS blocks corresponding to the CC block data [0] is continuously written. If the compressed segment data CSF [0] cannot be recorded in the compressed segment data CSF [0], a set of CS blocks corresponding to the CC block data [0] can be continuously recorded. ] And records it in the other searched compressed segment data CSF [x ≠ 0].

【0078】この検索処理は、データ書換え時のみでは
なく、最初に圧縮データファイル1を作成する際にも行
う。
This search processing is performed not only when rewriting data, but also when the compressed data file 1 is first created.

【0079】尚、非圧縮データUFS[0]以外の非圧
縮データUFS[1]〜[n]についても上述した非圧
縮データUFS[0]と同様にしてデータ圧縮を行う。
The uncompressed data UFS [1] to [n] other than the uncompressed data UFS [0] are also compressed in the same manner as the uncompressed data UFS [0].

【0080】上述のようにして、ある程度まとまった一
定数のCSブロックの先頭に管理情報CM[x]とビッ
トマップ情報BM[x]等のヘッダ情報HD[x]が付
加されて圧縮セグメントデータCSF[x]が形成され
る。
As described above, the compressed segment data CSF is obtained by adding the header information HD [x] such as the management information CM [x] and the bitmap information BM [x] to the head of a fixed number of CS blocks. [X] is formed.

【0081】即ち、非圧縮データUFS[x]が圧縮さ
れた圧縮データSH[x]と、その圧縮データSH
[x]に付随する管理情報CM[x]等のデータ圧縮の
ための情報全てが1つのファイル中に含まれているた
め、例えば、データ圧縮機能を搭載していない古いバー
ジョンのファイルシステムに上述のようにして圧縮され
ているディスクを挿入した場合、圧縮データファイルを
読めないファイルとして認識するだけで誤って必要な情
報の一部を消去するということを防ぐことができる。従
って、上記圧縮データファイル1のように圧縮されてい
るディスクは、データ圧縮機能を搭載していないファイ
ルシステムにも適用することができる。
That is, the compressed data SH [x] obtained by compressing the uncompressed data UFS [x] and the compressed data SH.
Since all the information for data compression such as the management information CM [x] attached to [x] is included in one file, for example, the above is applied to an old version file system that does not have a data compression function. When a disc compressed in this way is inserted, it is possible to prevent erroneous deletion of a part of the necessary information only by recognizing the compressed data file as an unreadable file. Therefore, a disk compressed like the compressed data file 1 can be applied to a file system that does not have a data compression function.

【0082】一方、データ圧縮機能を搭載しているファ
イルシステムにおいては、例えば、上記ファイルシステ
ムが持っているディレクトリ中のファイル属性の記録エ
リアに、圧縮/非圧縮ファイルの情報を記録することに
よって、その情報に応じて、圧縮されているファイル、
或は、圧縮されていないファイルに対応した処理を行う
ことができる。
On the other hand, in a file system equipped with a data compression function, for example, by recording information of a compressed / uncompressed file in a file attribute recording area in a directory of the file system, Depending on that information, the compressed file,
Alternatively, it is possible to perform processing corresponding to an uncompressed file.

【0083】また、ファイル単位の圧縮であるため、圧
縮/非圧縮ファイル、或は、異なった圧縮方式により圧
縮されたファイルを混在することができる。即ち、デー
タ圧縮がOSのファイルシステム機能の一部であるた
め、アプリケーションが対応した専用のアプリケーショ
ン・プログラム・インターフェース(API:Appl
ication Program Interfac
e)を用いることにより、圧縮、非圧縮、或は、圧縮方
式を自動的に指定することができ、ユーザは圧縮を意識
することなくデータをアクセスすることができる。
Since the file is compressed in units of files, compressed / non-compressed files or files compressed by different compression methods can be mixed. That is, since the data compression is a part of the file system function of the OS, a dedicated application program interface (API: Appl) that the application supports.
ication Program Interfac
By using e), compression, non-compression, or compression method can be automatically specified, and the user can access data without being aware of compression.

【0084】また、1つの圧縮セグメントデータCSF
[x]内で、1つのCCブロックデータ[x]に対応す
るCSブロックを連続したエリアに記録しているため、
アクセスの頻度を少なくすることができる。即ち、デー
タ伸長時の無駄なアクセスを行う必要がなく、高速にア
クセスすることができる。
Also, one compressed segment data CSF
In [x], since CS blocks corresponding to one CC block data [x] are recorded in continuous areas,
The frequency of access can be reduced. That is, it is possible to access at high speed without needing to perform useless access when decompressing data.

【0085】この場合、連続して記録することができな
かった圧縮セグメントデータCSF[0]内で使用され
ていないCSブロックが最大15個生じる場合があるが
処理速度を優先するようにする。
In this case, a maximum of 15 unused CS blocks may occur in the compressed segment data CSF [0] that could not be recorded continuously, but the processing speed is prioritized.

【0086】また、圧縮データSH[x]の最後尾に余
裕領域DMY[x]を設けることにより、書換時に本来
連続しているCSブロックが離れた位置に記録されるこ
とを防ぐことができる。
Further, by providing the margin area DMY [x] at the end of the compressed data SH [x], it is possible to prevent the CS block originally continuous at the time of rewriting from being recorded at a distant position.

【0087】例えば、最初の圧縮セグメントデータCS
F[x]に含まれているCSブロック[0]〜[h−
1]に対応したCCブロックデータ[y]を書き換える
際、元々4個のCSブロックを使用してに記録されてい
たものが、書換により5個のCSブロックを使用して記
録されることとなった場合、余裕領域DMY[x]が確
保されているため圧縮データファイル1の最後尾ではな
く、書換前と同じ圧縮セグメントデータCSF[x]に
記録することができる。これにより、ファイル内のデー
タアクセスをより高速に行うことができる。
For example, the first compressed segment data CS
CS blocks [0] to [h- included in F [x]
When the CC block data [y] corresponding to [1] is rewritten, what was originally recorded using 4 CS blocks is rewritten to be recorded using 5 CS blocks. In this case, since the spare area DMY [x] is secured, it can be recorded not in the end of the compressed data file 1 but in the same compressed segment data CSF [x] as before rewriting. As a result, data in the file can be accessed at higher speed.

【0088】さらに、上述のようなファイル内ランダム
アクセスのための情報テーブルである管理情報CM
[x]を付加しているため、ファイル内のランダムアク
セスを行うことができる。
Further, the management information CM which is an information table for the random access in the file as described above.
Since [x] is added, random access within the file can be performed.

【0089】ここで、上記管理情報CM[x]について
具体的に説明する。
Here, the management information CM [x] will be specifically described.

【0090】この圧縮データ記録方法では、管理情報C
M[x]を圧縮データファイル1の先頭から等間隔で配
置されるように記録する。さらに、非圧縮データファイ
ル2内の非圧縮データUFS[x]の順序に対応した順
序で配置されるように記録する。
In this compressed data recording method, the management information C
M [x] is recorded so as to be arranged at equal intervals from the beginning of the compressed data file 1. Further, the uncompressed data UFS [x] in the uncompressed data file 2 is recorded so as to be arranged in an order corresponding to the order.

【0091】また、1つの非圧縮データUFS[x]に
対して作成した管理情報CM[x]を上記非圧縮データ
UFS[x]とラベル(=x)の一致する圧縮セグメン
トデータCSF[x]のヘッダ情報HD[x]に含まれ
る形にして、管理情報CM[x]のラベルと一致した圧
縮セグメントデータCSF[x]中の記録データCSだ
けでなく、他の圧縮セグメントデータCSF[x+j]
中の記録データCSも示すことができるように作成す
る。
The management information CM [x] created for one uncompressed data UFS [x] is compressed segment data CSF [x] whose label (= x) matches the uncompressed data UFS [x]. Header information HD [x] of the compressed segment data CSF [x] that matches the label of the management information CM [x], and other compressed segment data CSF [x + j].
It is created so that the recorded data CS therein can also be shown.

【0092】上述のようにして記録される管理情報CM
[x]は、例えば、図2に示すように、CCブロックデ
ータの番号CCNoと、先頭のCSブロックを含む圧縮
セグメントデータCSF[x]の番号CFSNoと、先
頭のCSブロックの番号CSNoと、CSブロックの個
数CSkとで構成されている。
Management information CM recorded as described above
[X] is, for example, as shown in FIG. 2, the CC block data number CCNo, the compressed segment data CSF [x] number CFSNo including the leading CS block, the leading CS block number CSNo, and the CS number. It is composed of the number of blocks CSk.

【0093】上記CCブロックデータの番号CCNoと
は、非圧縮データファイル2の先頭から順に上記非圧縮
データファイル2内のオフセットに対応して付加したラ
ベルのことである。
The CC block data number CCNo is a label added in correspondence with the offset in the non-compressed data file 2 from the beginning of the non-compressed data file 2.

【0094】例えば、上記圧縮セグメントデータCSF
[x]から上記ヘッダ情報HD[x]を除いた部分であ
る圧縮データSH[x]の大きさは、どの程度の圧縮率
を想定するかにより決定される。この時、圧縮率は一定
ではないため、圧縮データSH[x]の大きさも上記圧
縮率により変化する。
For example, the compressed segment data CSF
The size of the compressed data SH [x], which is the portion obtained by removing the header information HD [x] from [x], is determined by what compression ratio is assumed. At this time, since the compression rate is not constant, the size of the compressed data SH [x] also changes depending on the compression rate.

【0095】また、上述したように、1つのCCブロッ
クデータ[x]に対応するCSブロックの組を連続した
エリアに記録しているため、1つの非圧縮データUFS
[x]から作成されるCSブロックの組は、複数の圧縮
データSH[x]に渡って存在する場合、或は、上記非
圧縮データUFS[x]と異なったラベルの圧縮データ
SH[y](y≠x)に含まれる場合がある。
As described above, since a set of CS blocks corresponding to one CC block data [x] is recorded in continuous areas, one uncompressed data UFS is recorded.
A set of CS blocks created from [x] exists over a plurality of compressed data SH [x], or the compressed data SH [y] of a label different from that of the uncompressed data UFS [x]. It may be included in (y ≠ x).

【0096】具体的に説明すると、図3に示すように、
非圧縮データUFS[0]と圧縮セグメントデータCS
F[0]とが共に1つであり、上記圧縮セグメントデー
タCSF[0]内のヘッダ情報HD[0]と圧縮データ
SH[0]とが、上記圧縮セグメントデータCSF
[0]の1つ分の領域に達していない場合、実際には、
圧縮データSH[0]とヘッダ情報HD[0]とを記録
する部分が圧縮データファイルとなる。即ち、圧縮セグ
メントデータCSF[0]の1つ分の領域を圧縮データ
ファイルの領域として確保する必要はない。
More specifically, as shown in FIG.
Uncompressed data UFS [0] and compressed segment data CS
F [0] is one, and the header information HD [0] and the compressed data SH [0] in the compressed segment data CSF [0] are the compressed segment data CSF.
If the area for one [0] is not reached, in reality,
A portion in which the compressed data SH [0] and the header information HD [0] are recorded becomes a compressed data file. That is, it is not necessary to secure one area of the compressed segment data CSF [0] as an area of the compressed data file.

【0097】従って、この場合は、非圧縮データファイ
ルの大きさが固定長UFS以下であり、圧縮後の圧縮デ
ータファイルの大きさも圧縮セグメントデータCSF
[0]の1つ分の領域以下であるため、ヘッダ情報HD
[0]の管理情報CM[0]、及び、ビットマップ情報
BM[0]共にエントリに余裕があることとなる。そし
て、上記管理情報CM[0]には、管理情報CM[0]
のラベルと一致した圧縮セグメントデータCSF[0]
中のCSブロックを示す情報を記録することとなる。
Therefore, in this case, the size of the uncompressed data file is equal to or less than the fixed length UFS, and the size of the compressed data file after compression is also the compressed segment data CSF.
Since the area is equal to or smaller than one area of [0], the header information HD
Both the management information CM [0] of [0] and the bitmap information BM [0] have a sufficient entry. The management information CM [0] has the management information CM [0].
Segment data CSF [0] that matches the label of
Information indicating the inner CS block will be recorded.

【0098】ところで、上記図3に示した非圧縮ファイ
ルと同じ大きさのファイルを低い圧縮率で圧縮した場合
は、図4に示すように、圧縮後の圧縮データファイル
は、2つの圧縮セグメントデータCSF[0]と圧縮セ
グメントデータCSF[1]とに渡って記録する。この
時、ヘッダ情報HD[0]の管理情報CM[0]、及
び、ヘッダ情報HD[1]の管理情報CM[1]のエン
トリ数が決定する。この場合、圧縮前の非圧縮データフ
ァイルの大きさが固定長UFS以下であるため、先頭の
ヘッダ情報HD[0]の管理情報CM[0]に圧縮後の
圧縮データファイルの情報を全て記録する。そして、2
番目のヘッダ情報HD[1]に関しては領域のみを確保
するようにし、上記ヘッダ情報HD[0]とヘッダ情報
HD[1]とを等間隔に配置する。
By the way, when a file having the same size as the uncompressed file shown in FIG. 3 is compressed at a low compression rate, the compressed data file after compression has two compressed segment data as shown in FIG. It records over CSF [0] and compressed segment data CSF [1]. At this time, the number of entries of the management information CM [0] of the header information HD [0] and the management information CM [1] of the header information HD [1] is determined. In this case, since the size of the uncompressed data file before compression is equal to or less than the fixed length UFS, all the information of the compressed data file after compression is recorded in the management information CM [0] of the header information HD [0] at the beginning. . And 2
Only the area is reserved for the second header information HD [1], and the header information HD [0] and the header information HD [1] are arranged at equal intervals.

【0099】従って、上記管理情報CM[0]には、管
理情報CM[0]のラベルと一致した圧縮セグメントデ
ータCSF[0]中のCSブロックを示す情報だけでな
く、圧縮セグメントデータCSF[1]中のCSブロッ
クも示す情報を記録することとなる。
Therefore, the management information CM [0] includes not only the information indicating the CS block in the compressed segment data CSF [0] that matches the label of the management information CM [0] but also the compressed segment data CSF [1]. The information indicating the CS block in [] will be recorded.

【0100】また、図5に示すように、非圧縮データフ
ァイルが2つの非圧縮データUFS[0]と非圧縮デー
タUFS[1]に分割され、各々の圧縮率が異なる場
合、即ち、上記非圧縮データUFS[0]を圧縮したデ
ータの大きさが圧縮セグメントデータCSF[0]1つ
分の領域以下であり、上記非圧縮データUFS[1]を
圧縮したデータを上記圧縮セグメントデータCSF
[0]の空領域と圧縮セグメントデータCSF[1]と
に渡って記録した場合にも、ヘッダ情報HD[0]とヘ
ッダ情報HD[1]とを等間隔に配置する。そして、先
頭のヘッダ情報HD[0]の管理情報CM[0]には上
記非圧縮データUFS[0]に関する圧縮情報を記録
し、また、2番目のヘッダ情報HD[1]の管理情報C
M[1]には上記非圧縮データUFS[1]に関する圧
縮情報を記録する。
As shown in FIG. 5, the uncompressed data file is divided into two uncompressed data UFS [0] and uncompressed data UFS [1], and the respective compression rates are different, that is, The size of the compressed data UFS [0] is equal to or smaller than the area of one compressed segment data CSF [0], and the compressed data of the uncompressed data UFS [1] is the compressed segment data CSF.
Even when recording is performed over the empty area of [0] and the compressed segment data CSF [1], the header information HD [0] and the header information HD [1] are arranged at equal intervals. Then, the compression information regarding the uncompressed data UFS [0] is recorded in the management information CM [0] of the first header information HD [0], and the management information C of the second header information HD [1] is recorded.
In M [1], compression information regarding the uncompressed data UFS [1] is recorded.

【0101】従って、上記管理情報CM[0]には、管
理情報CM[0]のラベルと一致した圧縮セグメントデ
ータCSF[0]中の記録データCSを示す情報を記録
し、上記管理情報CM[1]には、管理情報CM[1]
のラベルと一致した圧縮セグメントデータCSF[1]
中のCSブロックを示す情報をだけでなく、圧縮セグメ
ントデータCSF[2]中のCSブロックも示す情報を
記録することとなる。或は、図6に示すように、非圧縮
データUFS[0]を圧縮したデータを圧縮セグメント
データCSF[0]と圧縮セグメントデータCSF
[1]とに渡って記録し、非圧縮データUFS[1]を
圧縮したデータを上記圧縮セグメントデータCSF
[1]の空領域と圧縮セグメントデータCSF[2]と
に渡って記録した場合にも、ヘッダ情報HD[0]、ヘ
ッダ情報HD[1]、及び、ヘッダ情報HD[2]を等
間隔に配置する。
Therefore, in the management information CM [0], information indicating the record data CS in the compressed segment data CSF [0] that matches the label of the management information CM [0] is recorded, and the management information CM [[ 1] includes management information CM [1]
Segment data CSF [1] that matches the label of
Not only the information indicating the CS block in the inside, but also the information indicating the CS block in the compressed segment data CSF [2] is recorded. Alternatively, as shown in FIG. 6, data obtained by compressing the uncompressed data UFS [0] is compressed segment data CSF [0] and compressed segment data CSF.
[1] is recorded over and compressed data of uncompressed data UFS [1] is compressed segment data CSF.
Even when recording is performed over the empty area of [1] and the compressed segment data CSF [2], the header information HD [0], the header information HD [1], and the header information HD [2] are evenly spaced. Deploy.

【0102】そして、先頭のヘッダ情報HD[0]の管
理情報CM[0]には上記非圧縮データUFS[0]に
関する圧縮情報を記録し、また、2番目のヘッダ情報H
D[1]の管理情報CM[1]には上記非圧縮データU
FS[1]に関する圧縮情報を記録し、3番目のヘッダ
情報HD[2]の管理情報CM[2]に関しては領域の
みを確保する。
Then, the compression information relating to the uncompressed data UFS [0] is recorded in the management information CM [0] of the header information HD [0] at the beginning, and the second header information H is recorded.
The uncompressed data U is stored in the management information CM [1] of D [1].
The compression information on FS [1] is recorded, and only the area is reserved for the management information CM [2] of the third header information HD [2].

【0103】従って、上記管理情報CM[0]には、管
理情報CM[0]のラベルと一致した圧縮セグメントデ
ータCSF[0]中のCSブロックを示す情報だけでな
く、圧縮セグメントデータCSF[1]中の記録データ
CSも示す情報も記録し、上記管理情報CM[1]に
は、圧縮セグメントデータCSF[0]中のCSブロッ
クを示す情報と管理情報CM[1]のラベルと一致した
圧縮セグメントデータCSF[1]中のCSブロックを
示す情報を記録することとなる。
Therefore, in the management information CM [0], not only the information indicating the CS block in the compressed segment data CSF [0] that matches the label of the management information CM [0] but also the compressed segment data CSF [1]. Information indicating the recording data CS in [] is also recorded, and the management information CM [1] is compressed in which the information indicating the CS block in the compressed segment data CSF [0] matches the label of the management information CM [1]. Information indicating the CS block in the segment data CSF [1] will be recorded.

【0104】尚、上記図3〜上記図6に示したフォーマ
ット状態は、ディスク上の物理的な位置に直接対応する
ものではなく、ファイルシステムで管理される論理的に
連続な空間に対応して表した図である。
The format states shown in FIGS. 3 to 6 do not directly correspond to physical positions on the disk, but correspond to logically continuous spaces managed by the file system. FIG.

【0105】上述のように、管理情報CM[x]のラベ
ルと一致した圧縮セグメントデータCSF[x]中のC
Sブロックだけでなく、他の圧縮セグメントデータCS
F[x+j]中のCSブロックも示すことができるよう
にしているため、管理情報CM[x]の圧縮データファ
イル1内における位置が簡単な計算により求めることが
できる。さらに、ある管理情報CM[x]の特定のCS
ブロックの圧縮データファイル1内における位置が簡単
な計算により求めることができる。即ち、ファイル内ラ
ンダムアクセスを高速に行うことができる。
As described above, C in the compressed segment data CSF [x] that matches the label of the management information CM [x].
Not only S block but other compressed segment data CS
Since the CS block in F [x + j] can also be shown, the position of the management information CM [x] in the compressed data file 1 can be obtained by a simple calculation. Furthermore, a specific CS of certain management information CM [x]
The position of the block in the compressed data file 1 can be obtained by a simple calculation. That is, random access within a file can be performed at high speed.

【0106】例えば、非圧縮データファイル2内の先頭
から1,500,000byte目からのデータを読み
取る場合を図7に示すフローチャートを用いて説明す
る。ここで、CCブロックデータの大きさを8Kbyt
e、CSブロックの大きさを512Kbyte、管理情
報CM[x]のエントリ数を128とした場合、上記非
圧縮データUFS[x]の大きさは、 8192×128=1,048,576byte となる。
For example, a case of reading the data from the first 1,500,000 bytes in the non-compressed data file 2 will be described with reference to the flowchart shown in FIG. Here, the size of the CC block data is set to 8 Kbyte.
When the size of the e and CS blocks is 512 Kbytes and the number of entries of the management information CM [x] is 128, the size of the uncompressed data UFS [x] is 8192 × 128 = 1,048,576 bytes.

【0107】まず、目的とするデータが非圧縮データフ
ァイル2の先頭から何番目のCCブロックデータに含ま
れるかを求める(ステップS1)。
First, the number of CC block data from the beginning of the non-compressed data file 2 in which the target data is included is determined (step S1).

【0108】この場合、 1,500,000/8192=183.10・・・ となり、このデータは148番目のCCブロックデータ
に含まれることとなる。次に、上記148番目のCCブ
ロックデータが、圧縮データファイル2の先頭から何番
目の圧縮セグメントデータCSF[x]に対応するかを
求める(ステップS2)。
In this case, 1,500,000 / 8192 = 183.10 ... And this data is included in the 148th CC block data. Next, it is determined what number of compressed segment data CSF [x] from the head of the compressed data file 2 the 148th CC block data corresponds to (step S2).

【0109】即ち、この場合、 184/128=1.43・・・ 184−128=56 となり、2番目の管理情報CM[1]の56番目のエン
トリに記録されている情報が目的のデータに対応する圧
縮データの情報となる。
That is, in this case, 184/128 = 1.43 ... 184-128 = 56, and the information recorded in the 56th entry of the second management information CM [1] is the target data. It becomes the information of the corresponding compressed data.

【0110】この時、上述のように、管理情報CM
[x]は圧縮データファイルの先頭から等間隔に配置さ
れているため、即ち、圧縮セグメントデータCSF
[x]の大きさが一定であるため、上記2番目の管理情
報CM[1]の位置は簡単に求めることができる。
At this time, as described above, the management information CM
[X] are arranged at equal intervals from the beginning of the compressed data file, that is, the compressed segment data CSF.
Since the size of [x] is constant, the position of the second management information CM [1] can be easily obtained.

【0111】そして、得られた上記2番目の管理情報C
M[1]の情報が示すCSブロックのデータを伸長し
(ステップS3)、伸長したCSブロックのデータ中の
必要なデータを読み取る(ステップS4)。
Then, the second management information C obtained above is obtained.
The data of the CS block indicated by the information of M [1] is expanded (step S3), and necessary data in the expanded data of the CS block is read (step S4).

【0112】このように、ファイル内のランダムアクセ
スに必要なデータは四則演算で得ることができるため、
ファイル内ランダムアクセスを正確に、且つ、高速に行
うことができる。
As described above, since the data required for random access in the file can be obtained by the four arithmetic operations,
Random access within a file can be performed accurately and at high speed.

【0113】また、上述のようにフォーマットされた圧
縮データファイル1では、管理情報CM[x]を必要に
応じて増やすことができる。即ち、上記管理情報CM
[x]の大きさによって圧縮データファイルの大きさを
制限する必要はないため、圧縮データファイルの大きさ
を可変することができる。
Further, in the compressed data file 1 formatted as described above, the management information CM [x] can be increased as needed. That is, the management information CM
Since it is not necessary to limit the size of the compressed data file depending on the size of [x], the size of the compressed data file can be changed.

【0114】尚、上述のファイル内ランダムアクセスの
実施例におけるアドレスは、ファイルシステムにより管
理されるファイル中の論理的に連続した空間内でのアド
レスである。従って、必要なCCブロックデータ、即
ち、管理情報CM[x]により得られた情報に対応する
CSブロックの実際のディスク上でのアドレスを求める
際には、本来のファイルシステムとしての機能を使用し
て求める。
The addresses in the above-described embodiment of random access within a file are addresses within a logically continuous space in a file managed by the file system. Therefore, when obtaining the address of the required CC block data, that is, the CS block corresponding to the information obtained by the management information CM [x] on the actual disk, the function as the original file system is used. Ask for.

【0115】次に、本発明の第2の実施例に係る圧縮デ
ータ記録方法について説明する。
Next, a compressed data recording method according to the second embodiment of the present invention will be described.

【0116】この本発明の第2の実施例に係る圧縮デー
タ記録方法は、上記図1に示した圧縮データファイル1
の圧縮セグメントデータCSF[x]の大きさを非圧縮
データファイル2内の最初の非圧縮データUFS[x]
(x=0)を圧縮した後に決定し、上記圧縮データファ
イル1中においては圧縮セグメントデータCSF[x]
の大きさを一定にして上記圧縮データファイル1に記録
する方法である。また、この時、ビットマップ情報BM
[x]の大きさは、決定した圧縮セグメントデータCS
F[x]の大きさにかかわらず一定とする。
The compressed data recording method according to the second embodiment of the present invention is the compressed data file 1 shown in FIG.
Of the compressed segment data CSF [x] of the first uncompressed data UFS [x] in the uncompressed data file 2
(X = 0) is determined after compression, and in the compressed data file 1, the compressed segment data CSF [x]
Is recorded in the compressed data file 1 with a fixed size. At this time, the bitmap information BM
The size of [x] is the determined compressed segment data CS
It is constant regardless of the size of F [x].

【0117】即ち、この圧縮データ記録方法では、図8
に示すように、上記非圧縮データファイル2の先頭から
予め定めた一定部分、例えば、Dbyte分の圧縮が終
了した時点で、圧縮データSH[x]の大きさを決定す
る。
That is, in this compressed data recording method, as shown in FIG.
As shown in, the size of the compressed data SH [x] is determined at the time when the compression of the predetermined fixed portion, for example, D bytes, is completed from the beginning of the uncompressed data file 2.

【0118】その決定方法は、例えば、図9に示すよう
に、Dbyteを圧縮したデータの大きさnDがnD=
Dの場合、圧縮データSH[x]の大きさを非圧縮デー
タUFS[x]の大きさであるUFSとする。また、D
byteを圧縮したデータの大きさnDが0.75D≦
nD<Dの場合、圧縮データSH[x]の大きさを0.
75UFSとし、Dbyteを圧縮したデータの大きさ
nDが0.5D≦nD<0.75Dの場合、圧縮データ
SH[x]の大きさを0.5UFSとする。また、Db
yteを圧縮したデータの大きさnDがnD<0.5D
の場合、圧縮データSH[x]の大きさを0.25UF
Sとする。
The determining method is, for example, as shown in FIG. 9, when the size nD of the data obtained by compressing Dbyte is nD =
In the case of D, the size of the compressed data SH [x] is set to UFS which is the size of the uncompressed data UFS [x]. Also, D
The size nD of the compressed data of byte is 0.75D ≦
When nD <D, the size of the compressed data SH [x] is set to 0.
If the size nD of the data compressed to 75 UFS and Dbyte is 0.5D ≦ nD <0.75D, the size of the compressed data SH [x] is set to 0.5UFS. Also, Db
The size nD of compressed yte data is nD <0.5D
, The size of the compressed data SH [x] is 0.25 UF
S.

【0119】上述のようにして、最初の非圧縮データU
FS[x]の圧縮後に、4段階で圧縮データSH[x]
の大きさ、即ち、圧縮セグメントデータCSF[x]の
大きさを決定し圧縮データファイル1内で一定とする。
As described above, the first uncompressed data U
After compression of FS [x], compressed data SH [x] is obtained in four stages.
, That is, the size of the compressed segment data CSF [x] is determined and made constant in the compressed data file 1.

【0120】ここで、同じファイル内の圧縮率は、ある
程度似通っている。このため、例えば、図10に示すよ
うに、2つの非圧縮データUFS[0]と非圧縮データ
UFS[1]に渡る非圧縮データファイルを高い圧縮率
で圧縮され、圧縮後は1つの圧縮セグメントデータCS
F[0]に圧縮データが納まってしまった場合に生じる
無駄な部分Bを削減することができる。
Here, the compression rates in the same file are similar to each other to some extent. Therefore, for example, as shown in FIG. 10, an uncompressed data file spanning two uncompressed data UFS [0] and uncompressed data UFS [1] is compressed at a high compression rate, and one compressed segment after compression. Data CS
It is possible to reduce the useless portion B that occurs when the compressed data is stored in F [0].

【0121】また、圧縮データSH[x]の大きさを変
えると、ビットマップ情報BM[x]のエントリ数も変
わってくることとなるが、この圧縮データ記録方法で
は、ビットマップ情報BM[x]の大きさは、考えうる
最大の大きさを予め確保しておく。そして、圧縮セグメ
ントデータCSF[x]の大きさの決定後に実際に使用
しているビットマップ情報BM[x]のエントリ数を示
す情報をヘッダ情報HD[x]に記録する。このビット
マップ情報BM[x]は、1エントリが1ビットである
ため、上述のような無駄な部分の削減の効果には影響が
ない。
Further, if the size of the compressed data SH [x] is changed, the number of entries of the bitmap information BM [x] will also change, but in this compressed data recording method, the bitmap information BM [x]. ], The maximum possible size is secured in advance. Then, the information indicating the number of entries of the bitmap information BM [x] actually used after the size of the compressed segment data CSF [x] is determined is recorded in the header information HD [x]. Since this bitmap information BM [x] has 1 bit for one entry, it does not affect the above-described effect of reducing unnecessary portions.

【0122】尚、上述の第1、及び、第2の実施例にお
いては、上記図1に示すように、非圧縮データファイル
2を固定長UFSのブロックに分割した非圧縮データU
FS[0]〜[n]を、さらに固定長CCのブロックに
分割してCC単位で圧縮することとしたが、非圧縮デー
タファイル2を固定長UFSのブロックに分割せずに、
上記非圧縮データファイル2の先頭からCC単位で圧縮
を行い、固定長UFSの大きさになったデータを非圧縮
データUFS[0]とし、次の非圧縮データUFS
[1]についての圧縮処理に移ったことをファイルシス
テムが認識して上記非圧縮データUFS[1]に関する
新たな管理情報CM[1]を作成することとしてもよ
い。
In the first and second embodiments described above, as shown in FIG. 1, the uncompressed data file 2 obtained by dividing the uncompressed data file 2 into blocks of fixed length UFS.
Although FS [0] to [n] are further divided into fixed-length CC blocks and compressed in CC units, the uncompressed data file 2 is not divided into fixed-length UFS blocks.
The uncompressed data file 2 is compressed in CC units from the beginning, and the data having a fixed length UFS is used as uncompressed data UFS [0].
The file system may recognize that the compression process has been started for [1] and create new management information CM [1] for the uncompressed data UFS [1].

【0123】[0123]

【発明の効果】本発明に係る圧縮データ記録方法では、
非圧縮データファイルの非圧縮データを圧縮する。上記
非圧縮データのランダムアクセスのための管理情報を非
圧縮データ単位毎に付加して圧縮データファイルとして
記録する。これにより、ファイル内のランダムアクセス
を行うことができる。また、上記圧縮データ記録方法を
採用したディスクをデータ圧縮機能を搭載していないフ
ァイルシステムを使用しているドライブに挿入しても何
も問題がない。
According to the compressed data recording method of the present invention,
Compress uncompressed data in uncompressed data files. The management information for random access of the uncompressed data is added to each uncompressed data unit and recorded as a compressed data file. This allows random access within the file. In addition, there is no problem even if a disk adopting the above-mentioned compressed data recording method is inserted into a drive using a file system not equipped with a data compression function.

【0124】また、本発明に係る圧縮データ記録方法で
は、上記非圧縮データファイルを固定長単位で分割した
上記非圧縮データを、ランダムアクセス単位で分割す
る。そして、上記ランダムアクセス単位毎に圧縮する。
上記ランダムアクセス単位の圧縮データを記録単位に分
割する。上記管理情報に、ランダムアクセス単位で分割
したデータと記録単位に分割した圧縮データとの対応を
示す情報を記録する。そして、記録単位に分割した圧縮
データに上記管理情報を付加して圧縮データファイルと
して記録する。これにより、管理することができるファ
イルの大きさを可変することができる。また、ファイル
内のランダムアクセスを高速に行うことができる。
In the compressed data recording method according to the present invention, the uncompressed data obtained by dividing the uncompressed data file in fixed length units is divided in random access units. Then, compression is performed for each random access unit.
The compressed data of the random access unit is divided into recording units. Information indicating the correspondence between the data divided in random access units and the compressed data divided in recording units is recorded in the management information. Then, the management information is added to the compressed data divided into recording units and recorded as a compressed data file. As a result, the size of the manageable file can be changed. Moreover, random access in the file can be performed at high speed.

【0125】また、本発明に係る圧縮データ記録方法で
は、上記管理情報に、上記圧縮データファイル内の記録
単位に分割した圧縮データの各記録領域の使用状況を示
すビットマップ情報を記録する。これにより、ファイル
内のランダムアクセスを高速に行うことができる。
Further, in the compressed data recording method according to the present invention, the management information is recorded with bitmap information indicating the usage status of each recording area of the compressed data divided into recording units in the compressed data file. As a result, random access within the file can be performed at high speed.

【0126】また、本発明に係る圧縮データ記録方法で
は、上記管理情報は、上記非圧縮データファイルの非圧
縮データの順序に対応した順序で、圧縮データファイル
の先頭から等間隔に配置する。これにより、ファイル内
のランダムアクセスを高速に行うことができる。
Further, in the compressed data recording method according to the present invention, the management information is arranged at equal intervals from the head of the compressed data file in an order corresponding to the order of the uncompressed data of the uncompressed data file. As a result, random access within the file can be performed at high speed.

【0127】また、本発明に係る圧縮データ記録方法で
は、上記圧縮データファイルの圧縮率は、最初の非圧縮
データの圧縮後に決定する。これにより、管理すること
ができるファイルの大きさを可変することができる。
Further, in the compressed data recording method according to the present invention, the compression rate of the compressed data file is determined after the compression of the first non-compressed data. As a result, the size of the manageable file can be changed.

【0128】また、本発明に係る圧縮データ記録方法で
は、1個のランダムアクセス単位で分割したデータに対
応する記録単位に分割した圧縮データを連続した記録領
域に記録する。これにより、ファイル内のランダムアク
セスを高速に行うことができる。
Further, in the compressed data recording method according to the present invention, the compressed data divided into recording units corresponding to the data divided into one random access unit is recorded in the continuous recording area. As a result, random access within the file can be performed at high speed.

【0129】また、本発明に係る圧縮データ記録方法で
は、上記非圧縮データを圧縮したデータの記録領域に空
領域を設ける。これにより、ファイル内のランダムアク
セスを高速に行うことができる。
Further, in the compressed data recording method according to the present invention, an empty area is provided in the recording area of the data obtained by compressing the non-compressed data. As a result, random access within the file can be performed at high speed.

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

【図1】本発明の第1の実施例に係る圧縮データ記録方
法を適用しデータ圧縮記録した圧縮データファイルの構
成を示す図である。
FIG. 1 is a diagram showing a configuration of a compressed data file in which data is compressed and recorded by applying a compressed data recording method according to a first embodiment of the present invention.

【図2】上記圧縮データファイルの管理情報の構成を示
す図である。
FIG. 2 is a diagram showing a structure of management information of the compressed data file.

【図3】非圧縮データと圧縮セグメントデータが共に1
つの場合の圧縮データファイルのフォーマットを表す図
である。
[FIG. 3] Both uncompressed data and compressed segment data are 1
It is a figure showing the format of the compressed data file in one case.

【図4】上記非圧縮データと同じ大きさの非圧縮データ
を低い圧縮率でデータ圧縮記録を行った場合のフォーマ
ットを表す図である。
FIG. 4 is a diagram showing a format in which uncompressed data having the same size as the uncompressed data is subjected to data compression recording at a low compression rate.

【図5】2つの非圧縮データで構成されている非圧縮デ
ータファイルが圧縮され、2つの圧縮セグメントデータ
に渡って記録された場合のフォーマットを表す図であ
る。
FIG. 5 is a diagram showing a format when an uncompressed data file composed of two uncompressed data is compressed and recorded over two compressed segment data.

【図6】2つの非圧縮データで構成されている非圧縮デ
ータファイルが圧縮され、3つの圧縮セグメントデータ
に渡って記録された場合のフォーマットを表す図であ
る。
FIG. 6 is a diagram showing a format when an uncompressed data file composed of two uncompressed data is compressed and recorded over three compressed segment data.

【図7】圧縮されたファイル内のアクセス処理を説明す
るためのフローチャートである。
FIG. 7 is a flowchart for explaining an access process within a compressed file.

【図8】本発明の第2の実施例に係る圧縮データ記録方
法において、最初の非圧縮データの圧縮終了後に圧縮セ
グメントデータの大きさを決定する処理を説明するため
の図である。
FIG. 8 is a diagram for explaining a process of determining the size of compressed segment data after the end of compression of the first non-compressed data in the compressed data recording method according to the second embodiment of the present invention.

【図9】上記圧縮セグメントデータの大きさを4段階か
ら決定する決定方法を説明するための図である。
FIG. 9 is a diagram for explaining a determination method for determining the size of the compressed segment data from four stages.

【図10】2つの非圧縮データに渡る非圧縮データファ
イルが高い圧縮率で圧縮され、圧縮後は1つの圧縮セグ
メントデータに圧縮データが納まってしまった場合のフ
ォーマットを表す図である。
FIG. 10 is a diagram showing a format in the case where an uncompressed data file spanning two uncompressed data is compressed at a high compression rate and, after compression, the compressed data is stored in one compressed segment data.

【図11】デバイスドライバレベルでデータ圧縮を行う
方法で用いられる変換テーブルの構成を示す図である。
FIG. 11 is a diagram showing a configuration of a conversion table used in a method of performing data compression at a device driver level.

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

1 非圧縮データファイル 2 圧縮データファイル UFS 非圧縮データ CC CCブロックデータ CFS 圧縮セグメントデータ HD ヘッダ情報 SH 圧縮データ CM 管理情報 BM ビットマップ情報 CS CSブロック DMY 余裕領域 1 uncompressed data file 2 compressed data file UFS uncompressed data CC CC block data CFS compressed segment data HD header information SH compressed data CM management information BM bitmap information CS CS block DMY leeway area

Claims (7)

【特許請求の範囲】[Claims] 【請求項1】 非圧縮データファイルの非圧縮データを
圧縮し、上記非圧縮データのランダムアクセスのための
管理情報を非圧縮データ単位毎に付加して圧縮データフ
ァイルとして記録することを特徴とする圧縮データ記録
方法。
1. An uncompressed data file is compressed, and management information for random access of the uncompressed data is added to each uncompressed data unit and recorded as a compressed data file. Compressed data recording method.
【請求項2】 上記非圧縮データは、上記非圧縮データ
ファイルを固定長単位で分割したものであり、 上記非圧縮データをランダムアクセス単位で分割してラ
ンダムアクセス単位毎に圧縮し、 ランダムアクセス単位の圧縮データを記録単位に分割し
て記録し、 上記管理情報には、ランダムアクセス単位で分割したデ
ータと記録単位に分割した圧縮データとの対応を示す情
報を記録することを特徴とする請求項1記載の圧縮デー
タ記録方法。
2. The uncompressed data is obtained by dividing the uncompressed data file in fixed length units, and the uncompressed data is divided in random access units and compressed in random access units. The divided compressed data is recorded in a recording unit, and the management information is recorded with information indicating a correspondence between the data divided in the random access unit and the compressed data divided in the recording unit. 1. The compressed data recording method described in 1.
【請求項3】 上記管理情報は、上記圧縮データファイ
ル内の記録単位に分割した圧縮データの各記録領域の使
用状況を示すビットマップ情報を有することを特徴とす
る請求項2記載の圧縮データ記録方法。
3. The compressed data recording according to claim 2, wherein the management information includes bitmap information indicating a usage status of each recording area of the compressed data divided into recording units in the compressed data file. Method.
【請求項4】 上記管理情報は、上記非圧縮データファ
イルの非圧縮データの順序に対応した順序で、圧縮デー
タファイルの先頭から等間隔に配置することを特徴とす
る請求項2記載の圧縮データ記録方法。
4. The compressed data according to claim 2, wherein the management information is arranged at equal intervals from the beginning of the compressed data file in an order corresponding to the order of the uncompressed data of the uncompressed data file. Recording method.
【請求項5】 上記圧縮データファイルの圧縮率は、最
初の非圧縮データの圧縮後に決定することを特徴とする
請求項2記載の圧縮データ記録方法。
5. The compressed data recording method according to claim 2, wherein the compression rate of the compressed data file is determined after the first uncompressed data is compressed.
【請求項6】 1個のランダムアクセス単位で分割した
データに対応する記録単位に分割した圧縮データを連続
した記録領域に記録することを特徴とする請求項5記載
の圧縮データ記録方法。
6. The compressed data recording method according to claim 5, wherein compressed data divided into recording units corresponding to data divided into one random access unit is recorded in a continuous recording area.
【請求項7】 上記非圧縮データを圧縮したデータの記
録領域に空領域を設けることを特徴とする請求項5記載
の圧縮データ記録方法。
7. The compressed data recording method according to claim 5, wherein an empty area is provided in a recording area of the data obtained by compressing the uncompressed data.
JP6205278A 1994-08-30 1994-08-30 Recording method for compressed data Withdrawn JPH0869400A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP6205278A JPH0869400A (en) 1994-08-30 1994-08-30 Recording method for compressed data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP6205278A JPH0869400A (en) 1994-08-30 1994-08-30 Recording method for compressed data

Publications (1)

Publication Number Publication Date
JPH0869400A true JPH0869400A (en) 1996-03-12

Family

ID=16504333

Family Applications (1)

Application Number Title Priority Date Filing Date
JP6205278A Withdrawn JPH0869400A (en) 1994-08-30 1994-08-30 Recording method for compressed data

Country Status (1)

Country Link
JP (1) JPH0869400A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH08314689A (en) * 1995-05-12 1996-11-29 Fujitsu Ltd Compressed data management system
JP2001043115A (en) * 1999-07-29 2001-02-16 Nec Corp System and method for file management
JP2013131146A (en) * 2011-12-22 2013-07-04 Aisin Aw Co Ltd Data read-out system
JP2016201847A (en) * 2011-12-02 2016-12-01 キヤノン株式会社 Communication apparatus, its control method and program

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH08314689A (en) * 1995-05-12 1996-11-29 Fujitsu Ltd Compressed data management system
JP2001043115A (en) * 1999-07-29 2001-02-16 Nec Corp System and method for file management
JP2016201847A (en) * 2011-12-02 2016-12-01 キヤノン株式会社 Communication apparatus, its control method and program
JP2013131146A (en) * 2011-12-22 2013-07-04 Aisin Aw Co Ltd Data read-out system

Similar Documents

Publication Publication Date Title
US5813011A (en) Storage of a compressed file containing its own compression management table
US6745282B2 (en) Compressed data managing apparatus and method therefor to manage compressed data of a disk storage
JP4406225B2 (en) Destination storage medium, image file creation method, data restoration method, and program
US8250265B2 (en) Method and system for storing memory compressed data onto memory compressed disks
US7380091B2 (en) Heap memory management using a tri-linked list
US7350049B1 (en) Method and apparatus for managing access to a file allocation table
CN107678981A (en) Data processing method and device
JP2004013276A (en) Filesystem and recording medium
US6981116B2 (en) System and method for information control block tracking streams for universal disk format file systems
JP4221959B2 (en) Bridge file system, computer system, data management method and recording medium using bridge file system
US20040068635A1 (en) Universal disk format volumes with variable size
US7062603B2 (en) External storage device for selectively storing data between first and second recording media
US6215748B1 (en) Data storage with data masking array, apparatus and method therefor
US6266671B1 (en) Data storage apparatus, method, and medium with variable data storage structure
JPH0869400A (en) Recording method for compressed data
JP5394394B2 (en) File management / editing method and apparatus in file system
KR100597411B1 (en) Method and apparatus for effective data management of file
JP2008269520A (en) Recorder and recording method
EP0927934A1 (en) File managing device, file managing method, and recording medium stored with file managing program
CN114816228A (en) Data processing method, device, server and storage medium
JP3030949B2 (en) Digital data recording / reproducing device
JP2008134777A (en) Caching method of file allocation table
JP2003316627A (en) Information recording and reproducing device and management information backup method therefor
JP2005135525A (en) Recording reproducing device, recording reproducing method, and recording reproducing program
JP2016015057A (en) Recording device

Legal Events

Date Code Title Description
A300 Application deemed to be withdrawn because no request for examination was validly filed

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20011106