JP2000267904A - Data recorder and its method - Google Patents
Data recorder and its methodInfo
- Publication number
- JP2000267904A JP2000267904A JP11072318A JP7231899A JP2000267904A JP 2000267904 A JP2000267904 A JP 2000267904A JP 11072318 A JP11072318 A JP 11072318A JP 7231899 A JP7231899 A JP 7231899A JP 2000267904 A JP2000267904 A JP 2000267904A
- Authority
- JP
- Japan
- Prior art keywords
- data
- recording
- real
- area
- time
- 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
Links
- 238000000034 method Methods 0.000 title claims description 14
- 230000015654 memory Effects 0.000 abstract description 28
- 230000007423 decrease Effects 0.000 description 5
- 238000010586 diagram Methods 0.000 description 5
- 238000013467 fragmentation Methods 0.000 description 3
- 238000006062 fragmentation reaction Methods 0.000 description 3
- 102100036738 Guanine nucleotide-binding protein subunit alpha-11 Human genes 0.000 description 1
- 101100283445 Homo sapiens GNA11 gene Proteins 0.000 description 1
- 102100032704 Keratin, type I cytoskeletal 24 Human genes 0.000 description 1
- 101100121112 Oryza sativa subsp. indica 20ox2 gene Proteins 0.000 description 1
- 101100121113 Oryza sativa subsp. japonica GA20OX2 gene Proteins 0.000 description 1
- 239000000470 constituent Substances 0.000 description 1
- 239000013256 coordination polymer Substances 0.000 description 1
- 238000012217 deletion Methods 0.000 description 1
- 230000037430 deletion Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
Landscapes
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
- Television Signal Processing For Recording (AREA)
- Signal Processing For Digital Recording And Reproducing (AREA)
Abstract
Description
【0001】[0001]
【発明の属する技術分野】本発明は、データ記録装置及
び方法、特に大容量データのリアルタイム記録に関す
る。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a data recording apparatus and method, and more particularly, to a real-time recording of a large amount of data.
【0002】[0002]
【従来の技術】従来より、動画データや静止画データあ
るいは音声データを記録媒体(ハードディスクやフラッ
シュメモリ)に記録する技術が周知である。記録媒体フ
ォーマットとしてはFAT(File Allocation Table)が
一般的であるが、この方式では記録媒体のデータ空間に
おける使用領域と未使用領域をテーブル形式で管理し、
新たにデータを書き込む必要が生じた場合に、この管理
データに基づいて未使用領域にデータを書き込むもので
ある。2. Description of the Related Art Conventionally, a technique for recording moving image data, still image data or audio data on a recording medium (hard disk or flash memory) is well known. As a recording medium format, FAT (File Allocation Table) is generally used. In this method, a used area and an unused area in a data space of a recording medium are managed in a table format.
When new data needs to be written, the data is written to an unused area based on the management data.
【0003】[0003]
【発明が解決しようとする課題】しかしながら、容量の
大きく異なるデータの記録及び削除を繰り返し行った場
合、未使用領域と使用領域が混在するため、未使用領域
が間欠的に存在するいわゆるフラグメンテーションが発
生して動画データなどの大容量データをリアルタイムに
記録することが困難となる問題があった。すなわち、フ
ラグメンテーションが発生すると、例えばハードディス
クにおいては間欠的に存在する未使用領域にヘッドを移
動させるためのシーク時間及び回転待ち時間が必要とな
るため転送レートが低下する。また、フラッシュメモリ
においてはあるブロック内に使用クラスタが存在する
と、そのブロックの既存内容と書き込むべきデータを合
わせたデータを別の空いているブロックに移動して記録
することが必要となり、転送レートが低下してデータを
リアルタイムに記録することができなくなる。However, when recording and deletion of data having greatly different capacities are repeatedly performed, an unused area and a used area are mixed, and so-called fragmentation in which the unused area is intermittently occurs. Therefore, there is a problem that it is difficult to record a large amount of data such as moving image data in real time. That is, when fragmentation occurs, for example, in a hard disk, a seek time and a rotation waiting time for moving a head to an unused area intermittently exist, so that a transfer rate is reduced. In addition, in a flash memory, if a used cluster exists in a certain block, it is necessary to move the data obtained by combining the existing contents of the block and the data to be written to another empty block and record it, and the transfer rate is reduced. And the data cannot be recorded in real time.
【0004】もちろん、容量の小さいデータ、例えば静
止画データや音声データなどの場合には、一時的にバッ
ファメモリに記憶させることで転送レートの低下に対応
することが可能であるが、動画データなどの大容量デー
タを全てバッファメモリに格納することは困難であり、
データの一部が欠落してしまう問題も生ずる。Of course, in the case of small-capacity data, for example, still image data and audio data, it is possible to cope with a decrease in the transfer rate by temporarily storing the data in a buffer memory. It is difficult to store all large-capacity data in the buffer memory.
There is also a problem that a part of data is lost.
【0005】本発明は、上記従来技術の有する課題に鑑
みなされたものであり、その目的は、動画データなどの
大容量データを記録媒体に確実にリアルタイムで記録す
ることができる装置及び方法を提供することにある。SUMMARY OF THE INVENTION The present invention has been made in view of the above-mentioned problems of the related art, and has as its object to provide an apparatus and a method capable of reliably recording a large amount of data such as moving image data on a recording medium in real time. Is to do.
【0006】[0006]
【課題を解決するための手段】上記目的を達成するため
に、第1の発明は、記録媒体にデータを記録する装置で
あって、前記記録媒体の空き領域情報を記憶する記憶手
段と、前記データをリアルタイム性の要求されるデータ
とリアルタイム性の要求されないデータに区別し、前記
空き領域情報に基づいて、前記リアルタイム性の要求さ
れるデータを前記記録媒体の相対的に高転送レートの領
域に記録し、前記リアルタイム性の要求されないデータ
を前記記録媒体の相対的に低転送レートの領域に記録す
る制御手段とを有することを特徴とする。リアルタイム
性の要求されるデータを高転送レート領域に記録するこ
とで、リアルタイム記録を確実に実行できる。なお、記
録媒体における高転送レートは、空き領域情報に基づい
て選択することが可能である。According to a first aspect of the present invention, there is provided an apparatus for recording data on a recording medium, comprising: storage means for storing free space information of the recording medium; Data is distinguished into real-time required data and real-time non-requested data, and based on the free space information, the real-time required data is stored in a relatively high transfer rate area of the recording medium. Control means for recording and recording the data not requiring the real-time property in a relatively low transfer rate area of the recording medium. By recording data requiring real-time properties in a high transfer rate area, real-time recording can be reliably executed. Note that the high transfer rate in the recording medium can be selected based on the free area information.
【0007】また、第2の発明は、第1の発明におい
て、前記リアルタイム性の要求されるデータは動画デー
タであり、前記リアルタイム性の要求されないデータは
静止画データあるいは音声データであることを特徴とす
る。これにより、動画データを確実にリアルタイム記録
して、コマ落ちなどを防ぐことができる。According to a second invention, in the first invention, the data requiring the real-time property is moving picture data, and the data not requiring the real-time property is still picture data or audio data. And This makes it possible to reliably record the moving image data in real time, and to prevent dropped frames.
【0008】また、第3の発明は、第1、第2の発明に
おいて、前記高転送レートの領域は、未使用クラスタの
連続数が相対的に大きい領域であり、前記低転送レート
領域は、未使用クラスタの連続数が相対的に小さい領域
であることを特徴とする。ハードディスクなどのディス
ク型媒体の場合には、未使用クラスタ連続数が多いほど
シーク時間や回転待ち時間がないため、高転送レートと
なる。そこで、未使用クラスタ連続数が相対的に大きい
領域にリアルタイム性の要求されるデータを記録するこ
とで、リアルタイム記録が可能となる。In a third aspect based on the first and second aspects, the high transfer rate area is an area where the number of consecutive unused clusters is relatively large, and the low transfer rate area is: It is a region where the number of consecutive unused clusters is relatively small. In the case of a disk-type medium such as a hard disk, the higher the number of unused clusters, the higher the transfer rate because there is no seek time or rotation waiting time. Therefore, real-time recording becomes possible by recording data requiring real-time properties in an area where the number of unused clusters is relatively large.
【0009】また、第4の発明は、第1、第2の発明に
おいて、前記高転送レートの領域は、未使用ブロック領
域であり、前記低転送レートの領域は、使用ブロック領
域であることを特徴とする。フラッシュメモリなどの書
き換え回数に制限のある記録媒体では、ブロック内の全
てのクラスタが未使用でない限り、あるブロックで集中
的に書き換えが生じないように別の空きブロックに移動
する操作が行われるため転送レートが低下する。一方、
未使用ブロック、すなわちそのブロック内の全てのクラ
スタが未使用であるブロックにデータを記録する場合に
はこのような移動は必要でなく、高速記録が可能とな
る。そこで、未使用ブロックにリアルタイム性の要求さ
れるデータを記録することで、リアルタイム記録が可能
となる。In a fourth aspect based on the first and second aspects, the high transfer rate area is an unused block area, and the low transfer rate area is a used block area. Features. On a recording medium such as a flash memory, which has a limited number of rewrites, unless all clusters in a block are unused, an operation is performed to move to another empty block so that rewrite does not occur intensively in a certain block. The transfer rate decreases. on the other hand,
When data is recorded in an unused block, that is, a block in which all clusters in the block are unused, such a movement is not necessary, and high-speed recording can be performed. Therefore, real-time recording becomes possible by recording data requiring real-time properties in unused blocks.
【0010】また、第5の発明は、第1、第2の発明に
おいて、前記制御手段は、前記リアルタイム性の要求さ
れるデータを前記記録媒体の未使用クラスタ連続数が大
きい領域から順次記録し、前記リアルタイム性の要求さ
れないデータを前記記録媒体の未使用クラスタ連続数が
小さい領域から順次記録することを特徴とする。リアル
タイム性の要求されるデータを、転送レートの高い領域
から順次割り当てて記録することでリアルタイム記録が
可能となる。In a fifth aspect based on the first and second aspects, the control means sequentially records the data requiring the real-time property from an area of the recording medium having a large number of unused cluster continuations. The data that does not require the real-time property is sequentially recorded from an area of the recording medium where the number of unused cluster continuations is small. Real-time recording becomes possible by sequentially allocating and recording data requiring real-time properties from an area having a high transfer rate.
【0011】また、第6の発明は、第1、第2の発明に
おいて、前記制御手段は、前記リアルタイム性の要求さ
れるデータを未使用ブロック領域から順次記録し、前記
リアルタイム性の要求されないデータを前記記録媒体の
使用ブロックから順次記録することを特徴とする。この
発明によっても、リアルタイム性の要求されるデータ
を、転送レートの高い領域から順次割り当てて記録する
ことでリアルタイム記録が可能となる。In a sixth aspect based on the first and second aspects, the control means sequentially records the data requiring the real-time property from an unused block area, and stores the data requiring no real-time property. Are sequentially recorded from the used block of the recording medium. According to the present invention as well, real-time recording becomes possible by sequentially allocating and recording data requiring real-time properties from an area having a high transfer rate.
【0012】また、第7の発明は、記録媒体にデータを
記録する方法であって、リアルタイム記録が要求される
データについては前記記録媒体の未使用クラスタ連続数
が大きい領域から順次記録し、リアルタイム記録が要求
されないデータについては前記記録媒体の未使用クラス
タ連続数が小さい領域から順次記録することを特徴とす
る。A seventh aspect of the present invention is a method of recording data on a recording medium, wherein the data for which real-time recording is required is sequentially recorded from an area of the recording medium where the number of unused cluster continuations is large. Data that is not required to be recorded is sequentially recorded from an area of the recording medium where the number of unused cluster continuations is small.
【0013】また、第8の発明は、記録媒体にデータを
記録する方法であって、リアルタイム記録が要求される
データについては前記記録媒体の未使用ブロックに優先
的に記録し、リアルタイム記録が要求されないデータに
ついては前記記録媒体の使用ブロックに優先的に記録す
ることを特徴とする。An eighth invention is a method for recording data on a recording medium, wherein data requiring real-time recording is preferentially recorded in an unused block of the recording medium, and real-time recording is not required. The data not to be recorded is preferentially recorded in the used block of the recording medium.
【0014】また、第9の発明は、第7、第8の発明に
おいて、前記リアルタイム記録が要求されるデータは動
画データであり、前記リアルタイム記録が要求されない
データは静止画データあるいは音声データであることを
特徴とする。In a ninth aspect based on the seventh and eighth aspects, the data for which real-time recording is required is moving image data, and the data for which real-time recording is not required are still image data or audio data. It is characterized by the following.
【0015】[0015]
【発明の実施の形態】以下、図面に基づき本発明の実施
形態について説明する。Embodiments of the present invention will be described below with reference to the drawings.
【0016】図1には、本実施形態の構成ブロック図が
示されている。データ記録装置は、A/D1、エンコー
ダ2、画像メモリ3、空き領域記憶部5、リアルタイム
スイッチ6及びCPU7を含んで構成される。なお、デ
ータ記録装置を例えばデジタルカメラやデジタルムービ
ーなどに適用する場合には、図示しないがCCDセンサ
などの光学系も含まれる。FIG. 1 is a block diagram showing the configuration of this embodiment. The data recording device includes an A / D 1, an encoder 2, an image memory 3, a free area storage unit 5, a real-time switch 6, and a CPU 7. When the data recording device is applied to, for example, a digital camera or a digital movie, an optical system (not shown) such as a CCD sensor is also included.
【0017】CCDセンサなどで取得したデータはA/
D1でデジタル変換され、エンコーダ2に供給される。
エンコーダ2では、入力データを圧縮符号化し画像メモ
リ3に記憶する。CPU7は、記録メディア4に記録さ
れている空き領域情報を示す管理データを読み出して空
き領域記憶部5に記憶するとともに、画像メモリ3に記
憶されたデータを記録メディア4に記録する際には、記
録データがリアルタイム性を要求されるか否かを判定す
る。リアルタイム性が要求されるか否かは、リアルタイ
ムスイッチ6からの信号に基づき判定する。リアルタイ
ムスイッチ6は、例えばデジタルカメラの場合には動画
モード/静止画モードのモード切替スイッチで構成する
ことができ、動画モードに設定された場合にはリアルタ
イム性の要求されるデータ、静止画モードに設定された
場合にはリアルタイム性の要求されないデータと判定す
ることができる。そして、記録メディア4に記録すべき
データがリアルタイム性の要求されるデータかそうでな
いかを区別した後、空き領域記憶部5に記憶されている
空き領域情報に基づいて記録メディア4の所定領域にデ
ータをそれぞれ記録する。具体的には、リアルタイム性
が要求されるデータについては記録メディア4の高転送
レート領域に記録してリアルタイム記録を実現し、リア
ルタイム性の要求されないデータについては低転送レー
ト領域に記録する。高転送レート領域及び低転送レート
領域の具体的な内容については後述する。Data obtained by a CCD sensor or the like is A /
The digital data is converted by D1 and supplied to the encoder 2.
In the encoder 2, the input data is compression-encoded and stored in the image memory 3. The CPU 7 reads out the management data indicating the free space information recorded on the recording medium 4 and stores it in the free space storage unit 5, and when recording the data stored in the image memory 3 on the recording medium 4, It is determined whether or not the recording data requires real-time processing. Whether the real-time property is required is determined based on a signal from the real-time switch 6. The real-time switch 6 can be constituted by, for example, a mode switch for a moving image mode / still image mode in the case of a digital camera. When set, it can be determined that the data does not require real-time properties. After discriminating whether the data to be recorded on the recording medium 4 is data requiring real-time property or not, the data is stored in a predetermined area of the recording medium 4 based on the free area information stored in the free area storage unit 5. Record each data. Specifically, data requiring real-time property is recorded in a high transfer rate area of the recording medium 4 to realize real-time recording, and data not requiring real-time property is recorded in a low transfer rate area. Specific contents of the high transfer rate area and the low transfer rate area will be described later.
【0018】図2には、CPU7が記録メディア4に記
録されている管理データを読み出して空き領域記憶部5
に格納する使用状況の一例が示されている。図におい
て、各クラスタには上段左から下段右に向かい、先頭ク
ラスタから終端クラスタまで順次0、1、2、・・・5
9と番号が付されている。斜線が付されているクラスタ
は未使用クラスタであり、そうでないクラスタは使用済
みクラスタ(データ記録済みクラスタ)であることを示
している。例えば、第0クラスタ〜第2クラスタまでは
使用済みクラスタであり、第3クラスタは未使用クラス
タ、第4クラスタは使用済みクラスタである。上段では
フラグメンテーションが発生している。CPU7は、こ
のような使用状況データに基づいて、記録メディア4の
どの領域が高転送レートが得られるかを判定し、リアル
タイム性の要求される動画データを記録していく。In FIG. 2, the CPU 7 reads out management data recorded on the recording medium 4 and
An example of the usage status stored in the storage area is shown. In the figure, each cluster goes from the upper left to the lower right, and sequentially from the first cluster to the last cluster, 0, 1, 2,.
It is numbered nine. Clusters with diagonal lines are unused clusters, and other clusters are used clusters (data recorded clusters). For example, the 0th cluster to the 2nd cluster are used clusters, the 3rd cluster is an unused cluster, and the 4th cluster is a used cluster. In the upper stage, fragmentation has occurred. The CPU 7 determines which area of the recording medium 4 can achieve a high transfer rate based on such usage data, and records moving image data that requires real-time properties.
【0019】図3には、記録メディア4がハードディス
クの場合に、CPU7が空き領域記憶部5に記憶された
空き領域情報に基づいて作成する転送レート順テーブル
が示されている。図において、左列は先頭クラスタ番号
を表し、右列はその先頭クラスタ番号から連続する未使
用クラスタ数(未使用クラスタ連続数)を表している。
例えば、第1行は(3、1)であるが、これは第3クラ
スタから1個だけ未使用クラスタが存在することを示し
ている。また、第2行は(10、1)であるが、これは
第10クラスタから1個だけ未使用クラスタが存在する
ことを示している。さらに、第3行は(5、2)である
が、これは第5クラスタから未使用クラスタが2個連続
することを示している。第6行は(33、27)であ
り、これは第33クラスタから未使用クラスタが27個
連続して存在することを示している。FIG. 3 shows a transfer rate order table created by the CPU 7 based on the free area information stored in the free area storage unit 5 when the recording medium 4 is a hard disk. In the figure, the left column shows the top cluster number, and the right column shows the number of unused clusters (the number of unused cluster continuations) that continue from the top cluster number.
For example, the first row is (3, 1), which indicates that there is only one unused cluster from the third cluster. The second row is (10, 1), which indicates that there is only one unused cluster from the tenth cluster. Further, the third row is (5, 2), which indicates that two unused clusters continue from the fifth cluster. The sixth row is (33, 27), which indicates that 27 unused clusters continue from the 33rd cluster.
【0020】図3から分かるように、このテーブルでは
未使用クラスタ連続数が相対的に小さいほど上位に位置
し、未使用クラスタ連続数が相対的に大きいほど下位に
位置する。未使用クラスタ連続数が大きい程、ヘッドの
シーク時間や回転待ち時間がなくなるので、転送レート
は増大する。したがって、図3のテーブルにおいて上位
にいくほど転送レートは低下し、下位にいくほど転送レ
ートは向上することになる。As can be seen from FIG. 3, in this table, the smaller the number of consecutive unused clusters, the higher the rank. The larger the number of unused clusters, the lower the rank. As the number of unused cluster continuations is larger, the seek time of the head and the rotation waiting time are eliminated, so that the transfer rate is increased. Therefore, in the table of FIG. 3, the transfer rate decreases as going to the higher position, and the transfer rate increases as going to the lower position.
【0021】そこで、CPU7は、リアルタイムスイッ
チ6からの信号に基づき、記録すべきデータがリアルタ
イム性の要求されるデータ、例えば動画データである場
合には、図3に示されたテーブルのリスト下位から優先
的に記録領域を割り当てていく。一方、記録すべきデー
タがリアルタイム性の要求されないデータ、例えば静止
画データである場合には、図3に示されたテーブルのリ
スト上位から優先的に記録領域を割り当てていく。これ
により、リアルタイム性の要求されるデータほど高転送
レートの領域に記録されてリアルタイム記録でき、リア
ルタイム性の要求されないデータについては低転送レー
トの領域に記録される。リアルタイム性の要求されない
データに関しては、一旦バッファメモリに格納して記録
メディア4に記録することが考えられる。Therefore, based on the signal from the real-time switch 6, the CPU 7 starts from the bottom of the table shown in FIG. The recording area is preferentially allocated. On the other hand, if the data to be recorded is data that does not require real-time properties, for example, still image data, the recording area is preferentially allocated from the top of the list in the table shown in FIG. As a result, data requiring a real-time property is recorded in a high transfer rate area and can be recorded in a real-time manner, and data not requiring a real-time property is recorded in a low transfer rate area. It is conceivable that data that does not require real-time properties is temporarily stored in the buffer memory and recorded on the recording medium 4.
【0022】図4には、記録メディア4がハードディス
クの場合におけるCPU7の処理フローチャートが示さ
れている。まず、CPU7は記録メディア4上のファイ
ルシステムから管理情報を読み込む(S101)。この
管理情報は、既述したビットマップ形式でもテーブル形
式でもよい。そして、読み込んだ管理情報は空き領域記
憶部5に格納され、さらに図3に示されたテーブル(以
下、これを空きセクタリストと称する)を作成する(S
102)。空きセクタリストを作成した後、撮影開始ま
で待機し(S103)、撮影が開始された後は1フレー
ム以上のデータが画像メモリ3に転送されるまで待機す
る(S104)。FIG. 4 shows a processing flowchart of the CPU 7 when the recording medium 4 is a hard disk. First, the CPU 7 reads management information from a file system on the recording medium 4 (S101). This management information may be in the bitmap format or the table format described above. Then, the read management information is stored in the free area storage unit 5, and a table shown in FIG. 3 (hereinafter referred to as a free sector list) is created (S).
102). After the empty sector list is created, the process waits until the shooting starts (S103), and after the shooting starts, waits until one or more frames of data are transferred to the image memory 3 (S104).
【0023】1フレーム以上のデータが画像メモリ3に
格納された後、CPU7はリアルタイムスイッチ6がオ
ンされているか否かを判定する(S105)。上述した
ように、このスイッチは動画モード/静止画モード切換
スイッチとして構成することができ、ユーザが動画モー
ドに設定した場合には、リアルタイムスイッチがオンさ
れたと判定される。そして、リアルタイムスイッチがオ
ンされた場合には、CPU7は、S102で作成した空
きセクタリストの下方(下位)から画像メモリ3に保持
されているフレーム分のクラスタを確保し(S10
6)、確保したクラスタに画像データを転送して記録す
る(S107)。なお、S106で画像メモリに保持さ
れているフレーム分のクラスタを確保できなかった場合
には、次の制御サイクルで記録することになる。画像メ
モリ3に格納されたデータを記録メディア4に記録した
後、使用したクラスタを削除するように空きセクタリス
ト(空きクラスタリスト)を変更する(S108)。After one or more frames of data are stored in the image memory 3, the CPU 7 determines whether or not the real-time switch 6 is turned on (S105). As described above, this switch can be configured as a moving image mode / still image mode switching switch. When the user sets the moving image mode, it is determined that the real time switch has been turned on. When the real-time switch is turned on, the CPU 7 secures clusters for frames held in the image memory 3 from below (lower) the empty sector list created in S102 (S10).
6) The image data is transferred to the secured cluster and recorded (S107). If clusters for frames held in the image memory cannot be secured in S106, recording is performed in the next control cycle. After recording the data stored in the image memory 3 on the recording medium 4, the free sector list (free cluster list) is changed so that the used cluster is deleted (S108).
【0024】一方、1フレーム以上のデータが画像メモ
リ3に転送された後、リアルタイムスイッチ6がオンさ
れていない、例えばユーザがデジタルカメラの静止画モ
ードに設定した場合には、CPU7は、S102で作成
した空きセクタリストの上方(上位)から画像メモリ3
に保持されているフレーム分のクラスタを確保し(S1
09)、確保したクラスタに画像データを転送すること
によりデータを記録する(S110)。そして、S10
8と同様に使用したクラスタを削除するように空きセク
タリストを変更する(S111)。On the other hand, after one or more frames of data are transferred to the image memory 3, if the real-time switch 6 is not turned on, for example, if the user sets the still image mode of the digital camera, the CPU 7 proceeds to S102. Image memory 3 from the top (upper) of the created free sector list
(S1).
09), the data is recorded by transferring the image data to the secured cluster (S110). And S10
The free sector list is changed so that the used cluster is deleted in the same manner as in step 8 (S111).
【0025】以上の処理を撮影終了して未記録のデータ
が存在しなくなるまで繰り返し行い(S112)、全て
のデータを記録メディア4に記録する。これにより、リ
アルタイム性の要求されるデータ、例えば動画データは
高転送レート領域に優先的に割り当てられてリアルタイ
ム記録され、リアルタイム性の要求されない静止画デー
タなどは低転送レート領域に優先的に割り当てられて記
録される。全てのデータを記録した後、CPU7は、管
理情報を変更して記録メディア4に記録する(S11
3)。The above processing is repeated until photographing is completed and unrecorded data no longer exists (S112), and all data is recorded on the recording medium 4. As a result, data requiring real-time characteristics, for example, moving image data, is preferentially allocated to the high transfer rate area and recorded in real time, and still image data, etc., which does not require real time properties, are preferentially allocated to the low transfer rate area. Recorded. After recording all the data, the CPU 7 changes the management information and records it on the recording medium 4 (S11).
3).
【0026】一方、図5には記録メディア4がフラッシ
ュメモリの場合にCPU7が作成するテーブルが示され
ている。フラッシュメモリは書き換え回数に制限がある
ため、上述したように既にデータが記録されているブロ
ックに対して書き込みを行う場合、書き込み回数をブロ
ック間で平準化するために、そのブロックの内容と書き
込むべきデータを合わせたものを別の空きブロックに移
動することにより記録する。したがって、既にデータが
記録されているブロックに対して書き込みを行う場合に
は、データが全く記録されていないブロックに書き込み
を行う場合に比べて転送レートが低下する。CPU7
は、このような事情に鑑み、図5に示されるような転送
レート順のテーブルを作成する。FIG. 5 shows a table created by the CPU 7 when the recording medium 4 is a flash memory. Since the flash memory has a limit on the number of times of rewriting, when writing data to a block in which data is already recorded as described above, the contents of the block should be written in order to level the number of times of writing between blocks. Recording is performed by moving the combined data to another empty block. Therefore, when writing is performed on a block in which data is already recorded, the transfer rate is lower than when writing is performed on a block in which no data is recorded. CPU7
Creates a table in order of transfer rate as shown in FIG. 5 in view of such circumstances.
【0027】図5において、第1行〜第3行までは図3
に示されたハードディスクの場合と同様であるが、第4
行は(33、3)となっている。これは、図2におい
て、1ブロックが4個のクラスタから構成されるとした
場合、第33クラスタは、第32クラスタと第33クラ
スタと第34クラスタと第35クラスタの4個のクラス
タで構成されるブロックの一部であり、このブロック内
の全てのクラスタが未使用ではなく第32クラスタが使
用済みであるため、このブロックにデータを書き込む場
合には未使用ブロックに書き込む場合に比べて転送レー
トが低下するため、テーブルの上位にある。また、図5
のテーブル第6行は(16、4)となっており、第4行
の(33、3)よりも下位に位置しているが、これは第
16クラスタは第16クラスタと第17クラスタと第1
8クラスタと第19クラスタの4個のクラスタで構成さ
れるブロックの一部であり、このブロック内の全てのク
ラスタが未使用であるため、このブロックにデータを書
き込む場合には(33、3)で示されるブロックにデー
タを書き込む場合に比べて高転送レートで書き込むこと
ができることを意味している。In FIG. 5, the first to third rows are shown in FIG.
Is the same as the hard disk shown in
The row is (33, 3). This means that, in FIG. 2, when one block is composed of four clusters, the 33rd cluster is composed of four clusters of a 32nd cluster, a 33rd cluster, a 34th cluster, and a 35th cluster. Since all clusters in this block are not unused and the 32nd cluster is already used, writing data to this block has a higher transfer rate than writing to unused blocks. Is at the top of the table because it decreases. FIG.
The sixth row of the table is (16, 4), which is located lower than (33, 3) in the fourth row. This is because the sixteenth cluster is the sixteenth cluster, the seventeenth cluster, and the 1
This is a part of a block composed of four clusters of the eight clusters and the nineteenth cluster. Since all clusters in this block are unused, when writing data to this block (33, 3) Means that data can be written at a higher transfer rate than when data is written to the block indicated by.
【0028】このように、CPU7は、構成する全ての
クラスタが未使用であるブロック(未使用ブロック)を
下位に位置するようにテーブルを作成する。もちろん、
未使用ブロック間では、未使用ブロックの連続数が多い
ほどテーブルでは下位に位置することになる。これによ
り、図5のテーブルにおいて上位にいくほど転送レート
が低下し、下位に行くほど転送レートが向上することに
なる。As described above, the CPU 7 creates a table so that blocks in which all the constituent clusters are unused (unused blocks) are positioned at a lower level. of course,
Between unused blocks, the larger the number of consecutive unused blocks, the lower the position in the table. Thereby, in the table of FIG. 5, the transfer rate decreases as going to the higher order, and the transfer rate increases as going to the lower order.
【0029】図6には、記録メディア4がフラッシュメ
モリの場合におけるCPU7の処理フローチャートが示
されている。まず、CPU7は記録メディア4上のファ
イルシステムから管理情報を読み込む(S201)。そ
して、読み込んだ管理情報を空き領域記憶部5に格納
し、格納した管理情報から図5に示されるテーブル(以
下、これも空きセクタリストと称する)を作成する(S
202)。そして、撮影開始まで待機し(S203)、
リアルタイムスイッチ6がオンされているか否かを判定
する(S204)。FIG. 6 shows a processing flowchart of the CPU 7 when the recording medium 4 is a flash memory. First, the CPU 7 reads management information from the file system on the recording medium 4 (S201). Then, the read management information is stored in the free area storage unit 5, and a table shown in FIG. 5 (hereinafter also referred to as a free sector list) is created from the stored management information (S).
202). Then, it waits until the start of shooting (S203),
It is determined whether the real-time switch 6 is turned on (S204).
【0030】リアルタイムスイッチ6がオンされている
場合、例えばユーザがデジタルカメラのモードを動画モ
ードに設定した場合には、1ブロック以上のデータが画
像メモリ3に格納されるまで待機し(S205)、1ブ
ロック以上のデータが格納された後にS202で作成し
たリストの下方(下位)から優先的に1ブロック分のク
ラスタを確保する(S206)。そして、確保したクラ
スタに画像データを転送し記録する(S207)。未使
用クラスタにデータを記録した後、使用したクラスタを
削除するようにS202で作成した空きセクタリストを
変更する(S208)。When the real-time switch 6 is turned on, for example, when the user sets the mode of the digital camera to the moving image mode, it waits until one or more blocks of data are stored in the image memory 3 (S205). After one or more blocks of data are stored, a cluster of one block is preferentially secured from the bottom (lower) of the list created in S202 (S206). Then, the image data is transferred to the secured cluster and recorded (S207). After recording the data in the unused cluster, the free sector list created in S202 is changed so that the used cluster is deleted (S208).
【0031】一方、リアルタイムスイッチ6がオンされ
ていない、例えばユーザがデジタルカメラのモードを静
止画モードに設定した場合には、CPU7は、1フレー
ム以上のデータが画像メモリ3に格納されるまで待機し
(S209)、1フレーム以上のデータが画像メモリ3
に格納された後にS202で作成したリストの上方(上
位)から優先的に画像メモリ3に保持されたフレーム分
のクラスタを確保する(S210)。そして、確保した
クラスタに画像データを転送することにより記録メディ
ア4にデータを記録する(S211)。データを記録し
た後、S202で作成した空きセクタリストを変更する
(S212)。On the other hand, when the real-time switch 6 is not turned on, for example, when the user sets the mode of the digital camera to the still image mode, the CPU 7 waits until one or more frames of data are stored in the image memory 3. (S209) The data of one frame or more is stored in the image memory 3
After that, clusters for the frames held in the image memory 3 are preferentially secured from the top (upper) of the list created in S202 (S210). Then, the data is recorded on the recording medium 4 by transferring the image data to the secured cluster (S211). After recording the data, the free sector list created in S202 is changed (S212).
【0032】以上の処理を全てのデータに対して行い、
撮影して得られた全てのデータを記録メディア4に記録
した後に管理情報を作り直し、記録メディア4に記録す
る(S213、S214)。これによっても、リアルタ
イム性が要求されるデータを相対的に高転送レート領域
に割り当ててリアルタイム記録を可能とし、そうでない
データを相対的に低転送レート領域に割り当てて記録す
ることができる。The above processing is performed on all data.
After recording all the data obtained by photographing on the recording medium 4, the management information is recreated and recorded on the recording medium 4 (S213, S214). This also enables real-time recording by allocating data requiring real-time performance to a relatively high transfer rate area, and recording data that does not need to be allocated to a relatively low transfer rate area.
【0033】以上述べたように、本実施形態において
は、記録メディア4の空き領域情報に基づき、高転送レ
ートが得られる領域を抽出してリアルタイム性が要求さ
れるデータを優先的に割り当てることでリアルタイム記
録を実現することができる。As described above, in this embodiment, an area where a high transfer rate can be obtained is extracted based on the free area information of the recording medium 4, and data requiring real-time properties is preferentially assigned. Real-time recording can be realized.
【0034】なお、本実施形態においては記録メディア
としてハードディスク(カードを含む)やフラッシュメ
モリを例にとり説明したが、本発明はこれに限定される
ことなく任意の記録メディアに適用することができる。In the present embodiment, a hard disk (including a card) or a flash memory has been described as an example of a recording medium, but the present invention is not limited to this and can be applied to any recording medium.
【0035】また、本実施形態においては、リアルタイ
ム性の要求されるデータとして動画データ、リアルタイ
ム性の要求されないデータとして静止画データを例にと
り説明したが、本発明はこれらに限定されるものでもな
い。例えば、音声のみのデータを取得した場合(音声デ
ータ付きの動画データは「動画データ」に含まれる)、
音声データはリアルタイム性の要求されないデータとし
て処理することができる。In the present embodiment, moving image data is required as data requiring real-time properties, and still image data is required as data not requiring real-time properties. However, the present invention is not limited to these. . For example, if only audio data is acquired (video data with audio data is included in "video data"),
The audio data can be processed as data that does not require real-time properties.
【0036】[0036]
【発明の効果】本発明によれば、動画データなどの大容
量データを優先的に高転送レート領域に割り当てるの
で、確実にリアルタイム記録することが可能となる。According to the present invention, large-capacity data such as moving image data is preferentially assigned to the high transfer rate area, so that real-time recording can be reliably performed.
【図1】 本発明の実施形態の構成ブロック図である。FIG. 1 is a configuration block diagram of an embodiment of the present invention.
【図2】 記録メディアの使用状況を示す説明図であ
る。FIG. 2 is an explanatory diagram showing a usage state of a recording medium.
【図3】 記録メディアがハードディスクカードの場合
の転送レート順テーブルの説明図である。FIG. 3 is an explanatory diagram of a transfer rate order table when a recording medium is a hard disk card.
【図4】 記録メディアがハードディスクの場合のCP
Uの処理フローチャートである。FIG. 4 is a CP when a recording medium is a hard disk.
6 is a processing flowchart of U.
【図5】 記録メディアがフラッシュメモリの場合の転
送レート順テーブル説明図である。FIG. 5 is an explanatory diagram of a transfer rate order table when a recording medium is a flash memory.
【図6】 記録メディアがフラッシュメモリの場合のC
PUの処理フローチャートである。FIG. 6 shows C when the recording medium is a flash memory.
It is a processing flowchart of PU.
1 A/D、2 エンコーダ、3 画像メモリ、4 記
録メディア、5 空き領域記憶部、6 リアルタイムス
イッチ、7 CPU。1 A / D, 2 encoders, 3 image memories, 4 recording media, 5 free area storage section, 6 real time switch, 7 CPU.
フロントページの続き Fターム(参考) 5B082 AA13 CA01 CA03 CA08 5C052 AA03 AA17 AB02 CC11 DD04 EE02 5C053 FA07 FA23 GA11 GA16 GA20 GB11 GB17 GB21 KA03 KA24 KA25 KA30 LA02 5D044 AB07 AB08 DE02 DE03 DE14 DE48 EF06 GK10 Continued on front page F term (reference) 5B082 AA13 CA01 CA03 CA08 5C052 AA03 AA17 AB02 CC11 DD04 EE02 5C053 FA07 FA23 GA11 GA16 GA20 GB11 GB17 GB21 KA03 KA24 KA25 KA30 LA02 5D044 AB07 AB08 DE02 DE03 DE14 DE48 EF06
Claims (9)
て、 前記記録媒体の空き領域情報を記憶する記憶手段と、 前記データをリアルタイム性の要求されるデータとリア
ルタイム性の要求されないデータに区別し、前記空き領
域情報に基づいて、前記リアルタイム性の要求されるデ
ータを前記記録媒体の相対的に高転送レートの領域に記
録し、前記リアルタイム性の要求されないデータを前記
記録媒体の相対的に低転送レートの領域に記録する制御
手段と、 を有することを特徴とするデータ記録装置。1. An apparatus for recording data on a recording medium, comprising: storage means for storing free area information of the recording medium; and distinguishing the data into data requiring real-time properties and data not requiring real-time properties. Then, based on the free space information, the real-time required data is recorded in a relatively high transfer rate area of the recording medium, and the real-time non-required data is relatively recorded on the recording medium. A data recording device, comprising: control means for recording data in a low transfer rate area.
あり、 前記リアルタイム性の要求されないデータは静止画デー
タあるいは音声データであることを特徴とするデータ記
録装置。2. The data recording apparatus according to claim 1, wherein the data requiring the real-time property is moving picture data, and the data not requiring the real-time property is still picture data or audio data. apparatus.
おいて、 前記高転送レートの領域は、未使用クラスタの連続数が
相対的に大きい領域であり、前記低転送レート領域は、
未使用クラスタの連続数が相対的に小さい領域であるこ
とを特徴とするデータ記録装置。3. The apparatus according to claim 1, wherein the high transfer rate area is an area in which the number of consecutive unused clusters is relatively large, and the low transfer rate area is:
A data recording device characterized in that the number of consecutive unused clusters is a relatively small area.
おいて、 前記高転送レートの領域は、未使用ブロック領域であ
り、前記低転送レートの領域は、使用ブロック領域であ
ることを特徴とするデータ記録装置。4. The apparatus according to claim 1, wherein the high transfer rate area is an unused block area, and the low transfer rate area is a used block area. Data recording device.
おいて、 前記制御手段は、前記リアルタイム性の要求されるデー
タを前記記録媒体の未使用クラスタ連続数が大きい領域
から順次記録し、前記リアルタイム性の要求されないデ
ータを前記記録媒体の未使用クラスタ連続数が小さい領
域から順次記録することを特徴とするデータ記録装置。5. The apparatus according to claim 1, wherein the control unit sequentially records the data requiring the real-time property from an area of the recording medium where the number of consecutive unused clusters is large, A data recording apparatus for sequentially recording data that does not require the real-time property from an area of the recording medium where the number of unused clusters is small.
おいて、 前記制御手段は、前記リアルタイム性の要求されるデー
タを未使用ブロック領域から順次記録し、前記リアルタ
イム性の要求されないデータを前記記録媒体の使用ブロ
ックから順次記録することを特徴とするデータ記録装
置。6. The apparatus according to claim 1, wherein the control unit sequentially records the data requiring the real-time property from an unused block area, and stores the data not requiring the real-time property. A data recording apparatus which records sequentially from the used blocks of the recording medium.
て、 リアルタイム記録が要求されるデータについては前記記
録媒体の未使用クラスタ連続数が大きい領域から順次記
録し、 リアルタイム記録が要求されないデータについては前記
記録媒体の未使用クラスタ連続数が小さい領域から順次
記録することを特徴とするデータ記録方法。7. A method for recording data on a recording medium, wherein data for which real-time recording is required is sequentially recorded from an area of the recording medium where the number of unused clusters is large, and data for which real-time recording is not required. Is a method for recording data sequentially from an area of the recording medium where the number of unused clusters is small.
て、 リアルタイム記録が要求されるデータについては前記記
録媒体の未使用ブロックに優先的に記録し、 リアルタイム記録が要求されないデータについては前記
記録媒体の使用ブロックに優先的に記録することを特徴
とするデータ記録方法。8. A method for recording data on a recording medium, wherein data requiring real-time recording is preferentially recorded in an unused block of the recording medium, and data not requiring real-time recording is recorded. A data recording method characterized by recording preferentially on a used block of a medium.
あって、 前記リアルタイム記録が要求されるデータは動画データ
であり、 前記リアルタイム記録が要求されないデータは静止画デ
ータあるいは音声データであることを特徴とするデータ
記録方法。9. The method according to claim 7, wherein the data for which real-time recording is required is moving image data, and the data for which real-time recording is not required is still image data or audio data. A data recording method, comprising:
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP11072318A JP2000267904A (en) | 1999-03-17 | 1999-03-17 | Data recorder and its method |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP11072318A JP2000267904A (en) | 1999-03-17 | 1999-03-17 | Data recorder and its method |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JP2000267904A true JP2000267904A (en) | 2000-09-29 |
Family
ID=13485822
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP11072318A Pending JP2000267904A (en) | 1999-03-17 | 1999-03-17 | Data recorder and its method |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP2000267904A (en) |
Cited By (13)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP3370953B2 (en) | 1999-06-25 | 2003-01-27 | 日本ビクター株式会社 | Disk recording apparatus and method |
| JP3403142B2 (en) | 1999-11-26 | 2003-05-06 | 三洋電機株式会社 | Image recording device |
| JP2007049639A (en) * | 2005-08-12 | 2007-02-22 | Canon Inc | Recording apparatus and recording method |
| JP2007122211A (en) * | 2005-10-26 | 2007-05-17 | Matsushita Electric Ind Co Ltd | Data recording system using semiconductor memory medium |
| US7415572B2 (en) | 2004-05-27 | 2008-08-19 | Canon Kabushiki Kaisha | File system, file recording method, and file reading method |
| US7426333B2 (en) | 2002-04-03 | 2008-09-16 | Sony Corporation | Recording apparatus and method, recording medium and program |
| US7478249B2 (en) | 2002-04-01 | 2009-01-13 | Sony Corporation | Recording method and apparatus, and editing method apparatus |
| JP2009031885A (en) * | 2007-07-25 | 2009-02-12 | Seiko Epson Corp | Image data processing apparatus and image data processing method |
| US7689096B2 (en) | 2002-06-27 | 2010-03-30 | Sony Corporation | Information processing device, information processing method, and information processing program |
| KR100980905B1 (en) * | 2002-04-15 | 2010-09-07 | 소니 주식회사 | Removable data storage device, host device, data recording system, and data management method of removable data storage device |
| KR101083097B1 (en) | 2004-01-30 | 2011-11-16 | 코닌클리케 필립스 일렉트로닉스 엔.브이. | Quick access to disk management information |
| US8065473B2 (en) | 2004-06-21 | 2011-11-22 | Kabushiki Kaisha Toshiba | Method for controlling memory card and method for controlling nonvolatile semiconductor memory |
| JP2014127182A (en) * | 2012-12-27 | 2014-07-07 | Canon Inc | Imaging device, control method therefor, and program |
-
1999
- 1999-03-17 JP JP11072318A patent/JP2000267904A/en active Pending
Cited By (15)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP3370953B2 (en) | 1999-06-25 | 2003-01-27 | 日本ビクター株式会社 | Disk recording apparatus and method |
| JP3403142B2 (en) | 1999-11-26 | 2003-05-06 | 三洋電機株式会社 | Image recording device |
| US7478249B2 (en) | 2002-04-01 | 2009-01-13 | Sony Corporation | Recording method and apparatus, and editing method apparatus |
| US7426333B2 (en) | 2002-04-03 | 2008-09-16 | Sony Corporation | Recording apparatus and method, recording medium and program |
| KR100980905B1 (en) * | 2002-04-15 | 2010-09-07 | 소니 주식회사 | Removable data storage device, host device, data recording system, and data management method of removable data storage device |
| US7689096B2 (en) | 2002-06-27 | 2010-03-30 | Sony Corporation | Information processing device, information processing method, and information processing program |
| KR101083097B1 (en) | 2004-01-30 | 2011-11-16 | 코닌클리케 필립스 일렉트로닉스 엔.브이. | Quick access to disk management information |
| US7415572B2 (en) | 2004-05-27 | 2008-08-19 | Canon Kabushiki Kaisha | File system, file recording method, and file reading method |
| US8180956B2 (en) | 2004-06-21 | 2012-05-15 | Kabushiki Kaisha Toshiba | Method for controlling memory card and method for controlling nonvolatile semiconductor memory |
| US8065473B2 (en) | 2004-06-21 | 2011-11-22 | Kabushiki Kaisha Toshiba | Method for controlling memory card and method for controlling nonvolatile semiconductor memory |
| US7791650B2 (en) | 2005-08-12 | 2010-09-07 | Canon Kabushiki Kaisha | Image data recording apparatus and method |
| JP2007049639A (en) * | 2005-08-12 | 2007-02-22 | Canon Inc | Recording apparatus and recording method |
| JP2007122211A (en) * | 2005-10-26 | 2007-05-17 | Matsushita Electric Ind Co Ltd | Data recording system using semiconductor memory medium |
| JP2009031885A (en) * | 2007-07-25 | 2009-02-12 | Seiko Epson Corp | Image data processing apparatus and image data processing method |
| JP2014127182A (en) * | 2012-12-27 | 2014-07-07 | Canon Inc | Imaging device, control method therefor, and program |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US6823417B2 (en) | Memory controller for memory card manages file allocation table | |
| CN100470585C (en) | Memory Cards and Memory Card Systems | |
| JP2000267904A (en) | Data recorder and its method | |
| US8010746B2 (en) | Data processing apparatus and shared memory accessing method | |
| EP1619583A1 (en) | Data recording apparatus | |
| EP2034413A2 (en) | Information processing apparatus, recording method, and computer program | |
| US7647470B2 (en) | Memory device and controlling method for elongating the life of nonvolatile memory | |
| JP2001189915A (en) | Recording device | |
| KR20170121992A (en) | Video recording apparatus with pre-event circulation recording function | |
| US20050259542A1 (en) | Reproduction device and method, recording medium, and program | |
| US8301862B2 (en) | Formatting device | |
| KR20100099216A (en) | Methods and devices for managing and editing files in a file system | |
| JP2005253087A (en) | Recording device | |
| JP2014175954A (en) | Data recording device, control method thereof, and computer program | |
| US20170269835A1 (en) | Data storage device and data management method thereof | |
| CN114974314A (en) | Audio and video frame processing method, device and medium | |
| JP3552247B2 (en) | Electronic still camera | |
| JP2012019372A (en) | Recording device | |
| US5319794A (en) | Device for high-speed processing of information frames | |
| KR101102754B1 (en) | NAND flash memory file system and file access method in NAND flash memory system | |
| US10950274B2 (en) | Image recording apparatus, method for controlling same, and non-transitory computer-readable storage medium | |
| EP2204730A1 (en) | Method and apparatus for creating files in a file system | |
| JP5489818B2 (en) | Recording / reproducing apparatus and control method thereof | |
| JPH10340533A (en) | Data recording device and method | |
| JP2003316627A (en) | Information recording / reproducing apparatus and its management information backup method |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20040415 |
|
| A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20070731 |
|
| A02 | Decision of refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A02 Effective date: 20071127 |