JP3770138B2 - Information processing apparatus, information processing apparatus control method, information processing apparatus control program, and recording medium recording information processing apparatus control program - Google Patents
Information processing apparatus, information processing apparatus control method, information processing apparatus control program, and recording medium recording information processing apparatus control program Download PDFInfo
- Publication number
- JP3770138B2 JP3770138B2 JP2001320110A JP2001320110A JP3770138B2 JP 3770138 B2 JP3770138 B2 JP 3770138B2 JP 2001320110 A JP2001320110 A JP 2001320110A JP 2001320110 A JP2001320110 A JP 2001320110A JP 3770138 B2 JP3770138 B2 JP 3770138B2
- Authority
- JP
- Japan
- Prior art keywords
- data
- recorded
- area
- continuous
- memory
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Fee Related
Links
Images
Landscapes
- Television Signal Processing For Recording (AREA)
- Signal Processing For Digital Recording And Reproducing (AREA)
- Indexing, Searching, Synchronizing, And The Amount Of Synchronization Travel Of Record Carriers (AREA)
Description
【0001】
【発明の属する技術分野】
本発明は、情報処理装置、情報処理装置の制御方法、情報処理装置の制御プログラム及び情報処理装置の制御プログラムを記録した記録媒体に関し、例えばビデオデータを記録するハードディスク装置等に適用することができる。本発明は、クラスタ番号が連続しなくなると、一定時間分のデータをメモリに記録し、続くデータを記録媒体に記録することにより、シークによるアクセス速度の低下を有効に回避することができるようにする。
【0002】
【従来の技術】
従来、パーソナルコンピュータのペリフェラルとして使用されるハードディスクドライブにおいては、ランダムアクセス可能であり、近年、小型化、高記録密度化されている。これによりハードディスクドライブをオーディオデータ、ビデオデータ(以下、AVデータと呼ぶ)の記録に適用してホームサーバー、車載用機器等に利用することが種々に提案されるようになされている。
【0003】
このようなハードディスクドライブにおいては、ハードディスクに記録された管理用のデータにより、複数セクタによるクラスタを単位にしてハードディスクに記録されたデータを管理できるようになされており、この管理をホスト装置であるパーソナルコンピュータ等により実行するようになされている。
【0004】
すなわち図24は、ハードディスクドライブを示すブロック図である。このハードディスクドライブ1は、ホスト装置2に接続されて、このホスト装置2より出力されるAVデータをハードディスク3に記録する。ここでホスト装置2は、例えばAVデータを出力する各種映像機器である。
【0005】
ここでハードディスク3は、図25に示すように、例えばMS−DOS互換ファイルシステムのフォーマットが適用される。すなわちハードディスク3は、情報記録面を内周側領域と外周側領域とに分割し、外周側領域がシステムエントリーエリアに割り当てられる。また内周側領域がデータエリアに割り当てられる。このうちデータエリアは、クラスタに細分化され、所定フレーム数のデータ量を単位にして、各クラスタにAVデータ等が記録される。
【0006】
さらにハードディスク3は、情報記録面が同心円状に複数のゾーンに区切られ、さらに各ゾーンのトラックがそれぞれ円周方向に所定長さで区切られて複数のセクタに分割される。このようにしてセクタ化されてなるハードディスク3は、情報記録面の面番号、情報記録面の外周側より連続して割り当てられるトラック番号、各トラックにおけるセクタを特定するセクタ番号により、物理アドレスが設定され、さらにこの物理アドレスに対応して情報記録面の外周側より順次設定されてなる論理アドレスによりユーザーデータがファイル管理されるようになされている。
【0007】
ここで論理アドレスは、複数の論理セクタの集合によるクラスタを単位にしたクラスタ番号により表される。すなわち論理セクタは、情報記録面における先頭の領域(この場合は最外周である)を0セクタとして設定されるデータの記録単位に対応する領域であり、例えば1の物理セクタが1の論理セクタに対応して、論理セクタ番号=1トラック当たりのセクタ数×(面番号+面の数×トラック番号)+セクタ番号−1の関係式により論理セクタ番号を表すことができるようになされている。なおここで面番号、トラック番号、セクタ番号は、物理アドレスによるものである。
【0008】
ここで論理セクタは、ユーザーデータに換算して1つの論理セクタに512バイトのデータを記録できるように構成され、複数個の論理セクタにより1つのクラスタが構成されるようになされている。なお、1つのクラスタは、一般に2のべき乗個のセクタにより構成され、ユーザーデータを記録するデータエリアにおいて、ファイルエリアの先頭を2とする連番であるクラスタ番号により特定されるようになされている。
【0009】
データエリアは、このようにして設定される各クラスタにクラスタ番号が割り当てられ、このクラスタ番号を基準にしてクラスタ単位でアクセスできるようになされている。なおここでは、クラスタ番号を4桁のヘキサ形式により示す。
【0010】
これに対してシステムエントリーエリアは、さらにブートエリア、FAT(Fail Allocation table )エリア、ディレクトリエリアに分割され、ブートエリアには、ディスクの構造を定義するデータが記録される。これに対してFATエリア及びディレクトリエリアには、データエリアに記録したAVデータのアクセスに必要なアドレス情報等による管理用データが記録される。
【0011】
すなわちディレクトリエリアには、データエリアに記録された各ファイルのファイル名と、各ファイルの記録開始位置である先頭クラスタのクラスタ番号等が記録される。これに対してFATエリアには、各ファイルの先頭クラスタに連続する各クラスタのクラスタ番号等が記録される。これによりハードディスク3は、所望するファイル名の先頭クラスタ番号をディレクトリエリアから検出した後、この先頭クラスタ番号に続くクラスタ番号を順次FATエリアから検出することにより、1つのファイルを構成する連続するクラスタのアドレスを検出できるようになされている。
【0012】
かくするにつきこの図25においては、データエリアのクラスタ番号1234h〜1240hまでのクラスタにファイル1が記録されている場合に、ファイル1の第1クラスタのクラスタ番号1234hを示すコードがディレクトリエリアに記録され、さらにこのクラスタ番号1234hから続くクラスタ番号がFATエリアの対応する領域に順次記録されるようになされている。なおこの図25においてEOF(End Of File )は、1つのファイルの最終クラスタを示す識別情報である。
【0013】
より詳細には、ディレクトリエリアは、データエリアに記録した各ファイル毎に、図26に示す構成により、データ領域に記録された各ファイルをそれぞれ特定するファイル管理用データが記録される。すなわちファイル管理用データは、先頭8バイトにファイル名が割り当てられ、続く3バイトに各ファイルの拡張子が割り当てられる。さらに続く1バイトにファイルの属性を示すデータが割り当てられ、続く10バイトがリザーブ用のデータに割り当てられる。また続く2バイトが記録開始時刻のデータに、続く2バイトが記録日時のデータに割り当てられ、続く2バイトに先頭クラスタ番号であるクラスタ番号が割り当てられるようになされている。なお最後の4バイトには、ファイル長のデータが割り当てられる。
【0014】
これに対してFATエリアは(図25)、データ領域の管理単位である各クラスタの関連を示す識別データが記録される。すなわちFATエリアは、データエリアのクラスタ番号に対応してクラスタアドレスが割り振られ、各クラスタアドレスに続くクラスタのクラスタ番号が記録されるようになされている。また図27に示すように、これらクラスタ番号に割り当てられていないコードのうち、所定のコードがそれぞれ空き領域、欠陥クラスタ、EOFを示す識別情報に割り当てられるようになされている。
【0015】
これによりハードディスク3は、FATエリアをアクセスしてデータエリアの空き領域を検出できるようになされている。また欠陥セクタを基準にして代替処理を実行できるようになされ、さらには記録時、ライトアンドベリファイによるリトライの処理により欠陥セクタを登録できるようになされている。
【0016】
サーボ回路4は、ハードディスク制御回路5の制御によりモータ(M)6を駆動し、これによりハードディスク3を角速度一定の条件により回転駆動する。またサーボ回路4は、同様にしてモータ(M)8を駆動することによりピップアップである磁気ヘッドをシークさせ、さらにトラッキング制御する。
【0017】
リードライトデータチャンネル部9は、ハードディスク制御回路5の制御により、記録時、ハードディスク制御回路5の出力データを記録再生系の特性に適した方式により符号化処理してビット系列のデータを生成し、このデータにより磁気ヘッドを駆動する。また読み出し時、リードライトデータチャンネル部9は、磁気ヘッドより得られる再生信号を信号処理して再生データを生成し、この再生データをハードディスク制御回路5に出力する。
【0018】
ハードディスク制御回路5は、インターフェース制御回路7の指示によりハードディスク3上のデータを管理する制御回路であり、バッファメモリ10を介して入力されるAVデータに応じてサーボ回路4の動作を制御すると共に、このAVデータをリードライトデータチャンネル部9に出力することにより、インターフェース制御回路7を介して指示されるクラスタに順次入力されるデータを記録する。また読み出し時、同様にしてサーボ回路4の動作を制御してリードライトデータチャンネル部9の出力データをバッファメモリ10に出力し、これによりインターフェース制御回路7より指示されたクラスタを再生する。
【0019】
インターフェース制御回路(IF制御)7は、例えばSCSI(Small Computer System Interface )コントローラ、IDE(Intelligent Drive Electronics )コントローラ等により形成され、ホスト装置2との間で送受するデータ、制御コマンド等の入出力回路を構成する。またインターフェース制御回路7は、ホスト装置2より入力されるコマンドcommand、このコマンドに設定されたパラメータを解析し、ハードディスク制御回路5等の動作を制御する。また書き込み時にあっては、バッファメモリ10を介して、ホスト装置2から入力されるデータをハードディスク制御回路5に出力し、また読み出し時にあっては、バッファメモリ10を介して、ハードディスク制御回路5より出力されるデータをホスト装置2に出力する。
【0020】
これに対応してホスト装置2においては、システムメモリ11にワークエリアを確保した中央処理ユニット(CPU)12の処理により、ユーザーによる指示に応じてハードディスクドライブ1に種々のコマンド等を送出する。
【0021】
この処理において中央処理ユニット12は、電源起動時、所定の処理手順の実行により、ハードディスク3のシステムエントリーエリアに記録されてなる管理用データを再生するようにハードディスクドライブ1にコマンドを発行し、その結果ハードディスクドライブ1から出力されるシステムエントリーエリアのデータをシステムメモリ11に記録する。これにより中央処理ユニット12は、ハードディスク3に記録された管理用データを取得し、この管理用データによりパラメータを設定してハードディスクドライブ1に各種コマンドを出力する。
【0022】
すなわちユーザーにより所定のファイルの再生が指示されると、中央処理ユニット12は、システムメモリ11の記録より対応するファイル管理用データを検出し、このファイル管理用データに設定された先頭クラスタ番号を検出する。またこの先頭クラスタ番号よりFATエリアのデータを順次検索し、これによりユーザーにより指定されたファイルについて、ハードディスク3に記録されてなる連続するクラスタ番号を検出する。中央処理ユニット12は、この検出結果により、先頭クラスタ番号、データ長等のパラメータを設定して再生のコマンドを発行し、ハードディスクドライブ1においては、このコマンドによりハードディスク3に記録されたデータを再生して出力する。中央処理ユニット12及びハードディスクドライブ1は、所定のデータ長を単位にして、管理用データの記録を順次辿って、コマンドの発行、データの再生を繰り返し、これにより所望するファイルを再生するようになされている。
【0023】
これ対してユーザーによりデータの記録が指示されると、同様に、システムメモリ11に記録されたFATエリアのデータを順次辿って空き領域を検出し、この空き領域によるクラスタに記録するようにパラメータを設定して書き込みコマンドを発行する。ハードディスクドライブ1は、この書き込みのコマンドに応動して、順次入力されるデータをハードディスク3に記録する。中央処理ユニット12及びハードディスクドライブ1は、所定のデータ長を単位にして、管理用データの記録を順次辿って、コマンドの発行、データの記録を繰り返し、これにより所望するファイルを記録するようになされている。
【0024】
またこのようにしてファイルの記録を完了すると、このファイルの記録に対応するようにシステムメモリ11の記録を更新し、また所定のタイミングで、システムメモリ11の記録に対応するように、ハードディスクドライブ1にシステムエントリーエリアの更新を指示し、これによりこのようにして記録したファイルを改めて再生できるようになされている。
【0025】
【発明が解決しようとする課題】
ところでハードディスクドライブにおいては、シークを開始してハードディスクに記録されたデータの再生を開始するまでに時間(以下、シークに要する時間と呼ぶ)を要し、これによりアクセス速度が低下する問題がある。
【0026】
すなわちハードディスクドライブにおいて、シークにより所望するクラスタのデータを再生する場合、目的トラックまで磁気ヘッドを移動させて整定させた後、磁気ヘッドが目的のクラスタを走査するまで待機することが必要になり、この目的トラックまでの移動に要する時間(シーク時間)、目的クラスタを走査するまでの時間(回転待ち時間)の合計時間だけ、シークに時間を要することになる。
【0027】
ハードディスクドライブにおいて、このシークに要する時間は、一般に数ミリ秒の短い時間ではあるものの、記録再生、編集作業を繰り返して、多くのファイルが複数の領域に分散して記録されるようになると、このシークに要する時間を無視できなくなり、実質的に、ハードディスクより再生したデータのデータ転送速度が低下し、その分アクセス速度が著しく低下するようになる。
【0028】
この問題を解決する1つの方法として、例えばコマンドキューイングによりハードディスクをアクセスする方法が提案されている。この方法は、磁気ヘッドの現在位置より近い再生開始より順次ハードディスクをアクセスすると共に、再生したデータをバッファリングにより並び換えて出力することにより、順次ハードディスクをアクセスする場合に比して、シーク時間を短くするものである。しかしながらこの方法においては、制御が煩雑な問題があり、またシークに要する時間のうち、シーク時間が若干短くなるだけであることにより、充分な効果を得ることができない問題もある。
【0029】
本発明は以上の点を考慮してなされたもので、シークに要する時間によるアクセス速度の低下を有効に回避することができるハードディスク等による情報処理装置、情報処理装置の制御方法、情報処理装置の制御プログラム及び情報処理装置の制御プログラムを記録した記録媒体を提案しようとするものである。
【0030】
【課題を解決するための手段】
かかる課題を解決するため請求項1の発明においては、ディスク状記録媒体の空き領域を検出し、該検出結果に基づいて、クラスタ単位で、連続したデータをディスク状記録媒体に記録する情報処理装置に適用して、前記ディスク状記録媒体は、前記連続するデータを記録する領域の管理用データを管理用データの記録領域に記録して保持し、前記情報処理装置は、前記ディスク状記録媒体に前記連続するデータを記録し、前記ディスク状記録媒体に記録された前記連続するデータを再生する記録再生部と、前記連続するデータを記録するメモリと、前記記録再生部、前記メモリを制御する制御部とを有し、前記制御部は、前記記録再生部を介して前記管理用データの記録領域から得られる前記管理用データに基づいて、前記クラスタ単位で、空き領域、記録されたデータのファイルを検出し、該検出結果に基づいた前記記録再生部、前記メモリの制御により、クラスタ番号の連続する前記空き領域に順次前記連続したデータを記録して、前記空き領域の前記クラスタ番号が連続しなくなった箇所では、一定時間分、前記連続するデータを前記メモリに記録し、続く空き領域に前記連続するデータの続きを記録すると共に、該連続するデータの記録に対応するように前記管理用データを更新し、再生時、前記クラスタ番号の連続する前記空き領域に記録した前記連続するデータを再生した後、前記メモリに記録したデータを再生し、続いて前記続く空き領域に記録したデータを再生して出力する。
【0031】
また請求項5の発明においては、ディスク状記録媒体の空き領域を検出し、該検出結果に基づいて、クラスタ単位で、連続したデータをディスク状記録媒体に記録する情報処理装置の制御方法に適用して、クラスタ番号の連続する前記空き領域に順次前記連続したデータを記録して、前記空き領域の前記クラスタ番号が連続しなくなった箇所では、一定時間分、前記連続するデータをメモリに記録し、続く空き領域に前記連続するデータの続きを記録するデータ記録のステップと、再生時、前記クラスタ番号の連続する前記空き領域に記録した前記連続するデータを再生した後、前記メモリに記録したデータを再生し、続いて前記続く空き領域に記録したデータを再生して出力するデータ再生のステップとを有するようにする。
【0032】
また請求項6の発明においては、ディスク状記録媒体の空き領域を検出し、該検出結果に基づいて、クラスタ単位で、連続したデータをディスク状記録媒体に記録する情報処理装置の制御プログラムに適用して、クラスタ番号の連続する前記空き領域に順次前記連続したデータを記録して、前記空き領域の前記クラスタ番号が連続しなくなった箇所では、一定時間分、前記連続するデータをメモリに記録し、続く空き領域に前記連続するデータの続きを記録するデータ記録のステップと、再生時、前記クラスタ番号の連続する前記空き領域に記録した前記連続するデータを再生した後、前記メモリに記録したデータを再生し、続いて前記続く空き領域に記録したデータを再生して出力するデータ再生のステップとを有するようにする。
【0033】
また請求項7の発明においては、ディスク状記録媒体の空き領域を検出し、該検出結果に基づいて、クラスタ単位で、連続したデータをディスク状記録媒体に記録する情報処理装置の制御プログラムを記録した記録媒体に適用して、前記制御プログラムは、クラスタ番号の連続する前記空き領域に順次前記連続したデータを記録して、前記空き領域の前記クラスタ番号が連続しなくなった箇所では、一定時間分、前記連続するデータをメモリに記録し、続く空き領域に前記連続するデータの続きを記録するデータ記録のステップと、再生時、前記クラスタ番号の連続する前記空き領域に記録した前記連続するデータを再生した後、前記メモリに記録したデータを再生し、続いて前記続く空き領域に記録したデータを再生して出力するデータ再生のステップとを有するようにする。
【0034】
請求項1の構成によれば、ディスク状記録媒体の空き領域を検出し、該検出結果に基づいて、クラスタ単位で、連続したデータをディスク状記録媒体に記録する情報処理装置に適用して、クラスタ番号の連続する前記空き領域に順次前記連続したデータを記録して、前記空き領域の前記クラスタ番号が連続しなくなった箇所では、一定時間分、前記連続するデータをメモリに記録し、続く空き領域に前記連続するデータの続きを記録し、再生時、前記クラスタ番号の連続する前記空き領域に記録した前記連続するデータを再生した後、前記メモリに記録したデータを再生し、続いて前記続く空き領域に記録したデータを再生して出力することにより、シークして再生困難な期間については、メモリに保持したデータを割り当てて連続するデータを出力することができ、これによりシークによるアクセス速度の低下を有効に回避することができる。
【0035】
これにより請求項5、請求項6又は請求項7の構成によれば、シークによるアクセス速度の低下を有効に回避することができる情報処理装置の制御方法、情報処理装置の制御プログラム又は情報処理装置の制御プログラムを記録した記録媒体を提供することができる。
【0036】
【発明の実施の形態】
以下、適宜図面を参照しながら本発明の実施の形態を詳述する。
【0037】
(1)第1の実施の形態
(1−1)第1の実施の形態の構成
図1は、本発明の第1の実施の形態に係るビデオカメラを示すブロック図である。このビデオカメラ21では、ホスト装置22により所望の被写体を撮像してAVデータを生成し、このAVデータをハードディスクドライブ23で記録する。またこのようにハードディスクドライブ23で記録したAVデータを再生してホスト装置22で表示する。このためホスト装置22においては、このようなAVデータを取得してAVデータをバスBUSに出力する撮像機構、信号処理回路、バスBUSに出力されるAVデータをモニタするモニタ機構を有するようになされている。
【0038】
これに対してハードディスクドライブ23は、ホスト装置22、セットトップボックス、パーソナルコンピュータ(PC)等の各種機器に装着されて、これらの機器より出力される各種データを記録する。またこれらの機器に装着された状態で、又はこれらの装置より取り外されて他の機器に装着された状態で、記録したデータを再生して出力する。
【0039】
ここでこのハードディスク24は、図2に示すように、システムエントリーエリア、データエリアに加えてAVデータエリアが形成される。ここでAVデータエリアは、AVデータを記録する際に、再生時、シークによるアクセスが必要となる個所の先頭部分に割り当てられるAVデータを、所定秒数分、選択的に記録する領域である。またこの所定秒数は、ハードディスクドライブ23において、シークに要する時間のうち、最長の時間より長い時間に設定され、この実施の形態では、ビデオデータの1フレーム(33〔msec〕)に対応する時間が割り当てられるようになされている。
【0040】
また再生時、シークによるアクセスが必要となる個所は、このビデオカメラ21による録画開始位置、連続したAVデータの記録においてクラスタ番号が連続しなくなった先頭位置に設定される。なおビデオカメラ21では、これらの個所のうち、この録画開始位置がファイルの先頭位置となるようにAVデータがファイル管理されて記録されるようになされている。このハードディスク24では、このAVデータエリアに記録するAVデータに続くAVデータがデータエリアに記録されるようになされている。
【0041】
ハードディスク24は、これらAVデータエリア、データエリアが連続したクラスタ番号により、また図24〜図27について上述したFATエリア、ディレクトリーエリアにより、まとめて従来のデータエリアと同様にファイル管理されるようになされ、これによりディレクトリーエリアの記録により先頭クラスタ番号を検出して、AVデータエリアに記録された対応するファイルのAVデータを検出できるようになされ、またFATエリアの記録を辿って、AVデータエリア、データエリアに分割して記録されたAVデータによるファイルを再生できるようになされている。
【0042】
この構成に対応してホスト装置22において、中央処理ユニット31は、電源が立ち上げられると、ハードディスクドライブ23に再生コマンドを送出してシステムエントリーエリアの再生を指示し、この結果得られるFATエリア、ディレクトリーエリアのデータをシステムメモリ32に格納する。また中央処理ユニット31は、続いてAVデータエリアの再生コマンドをハードディスクドライブ23に送出し、その結果得られるAVデータエリアのデータをAVデータメモリ33に格納する。
【0043】
ここでAVデータメモリ33は、AVデータエリアに記録されたデータを格納する専用のメモリであり、図2に示すように、この実施の形態では、ハードディスク3のAVデータエリアと同一の容量が割り当てられ、これによりAVデータエリアに記録されたデータを漏れなく記録できるようになされている。またAVデータメモリ33は、AVデータエリアのクラスタアドレスに対応するようにアドレスが設定されるようになされ、これによりホスト装置22では、ハードディスク3のアクセスに供する論理アドレスをAVデータメモリ33のアドレスに簡易な処理によりアドレス変換して、AVデータエリアの再生に代えて、このAVデータメモリ33に記録された対応するAVデータを出力できるようになされている。これによりホスト装置22は、再生時、シークが必要となる個所に割り当てられるAVデータについては、AVデータエリアに纏めて記録し、起動時、先読みしてAVデータメモリ33に保持するようになされている。
【0044】
また中央処理ユニット31は、ハードディスク3に記録されたAVデータの再生が指示されると、従来と同様に、システムメモリ32に記録されたディレクトリーエリア、FATエリアのデータを検索し、これにより所定のデータ量単位で、再生に係るファイルが記録されてなる連続するクラスタを順次検出する。中央処理ユニット31は、このようにして検出したクラスタにより、再生開始位置のクラスタアドレス、転送長をパラメータに設定して読み出しコマンドをアドレス変換回路34に発行する。これにより中央処理ユニット31は、アドレス変換回路34を介して読み出しコマンドを繰り返し発行して所望するファイルを再生するようになされている。
【0045】
ここでアドレス変換回路34は、中央処理ユニット31から出力される読み出しコマンドのアドレスを解析し、これらのアドレスにより指定される領域がAVデータエリアのクラスタの場合、このアドレスをAVデータメモリ33のアドレスに変換してAVデータメモリ33をアドレス制御する。またこのアドレスに続くクラスタ番号をシステムメモリ32に記録したFATエリアのデータより検出し、ハードディスクドライブ23にこの続くクラスタへのシークを指示する。これに対してコマンドに付加されたアドレスがデータエリアのアドレスの場合、中央処理ユニット31より出力されるコマンドをハードディスクドライブ23に出力する。
【0046】
これによりアドレス変換回路34は、読み出しコマンドについては、ハードディスク24のAVデータエリアに代えて、AVデータメモリ33より対応するAVデータをバスBUSに出力するように、アドレス変換の処理を実行するようになされている。またこのAVデータを出力している期間の間で、続くクラスタの再生を準備するように、ハードディスクドライブ23の動作を制御する。これに対してアドレス変換回路34は、書き込みコマンドについては、AVデータメモリ33のアドレス制御により、このコマンドに指示されたAVデータメモリ33の領域にAVデータを記録するようになされている。
【0047】
これらによりホスト装置22は、読み出しの処理において、シークの処理が必要となる場合には、シークしている間、AVデータメモリ33に保持した対応するAVデータを出力し、シークを完了してハードディスク24をアクセス可能となると、ハードディスク24から再生される続くAVデータを出力するようになされている。
【0048】
これに対して中央処理ユニット31は、ファイルの書き込みが指示されると、この場合も従来と同様に、システムメモリ32に記録されたFATエリアのデータを検索して順次空き領域を検出し、この空き領域による記録開始位置のクラスタアドレス、データ転送長によりパラメータを設定して書き込みコマンドを発行する。
【0049】
この処理において、中央処理ユニット31は、記録開始時においては、AVデータエリアに上述した所定データ量のAVデータを記録するように、AVデータエリアより空きクラスタを検出してコマンドを発行する。また空き領域の検出においてクラスタ番号が連続しなくなった先頭位置については、AVデータエリアに上述した所定データ量のAVデータを記録するように、AVデータエリアより空きクラスタを検出してコマンドを発行する。またこれらに続くAVデータについては、データエリアより順次空きクラスタを検出してコマンドを発行する。
【0050】
これにより中央処理ユニット31は、シークを要する場合には、このシークに要する時間の間のAVデータであって、AVデータエリアに記録するデータについては、AVデータメモリ33に記録し、残りのデータを直接ハードディスク24に記録するようになされている。
【0051】
また中央処理ユニット31は、このようにして1つのファイルについてAVデータの書き込みを完了すると、AVデータメモリ33の記録が、AVデータエリアと一致するように、ハードディスク24に記録したAVデータエリアの再生をハードディスクドライブ23に指示し、この結果得られるAVデータをAVデータメモリ33に記録する。またこのようにして全てのAVデータのハードディスク24への記録を完了すると、システムメモリ32に格納したFATエリア、ディレクトリーエリアのデータをこのファイルの記録に対応するように更新し、所定のタイミングでハードディスク24のシステムエントリーエリアを更新する。
【0052】
すなわち図3は、電源起動時における中央処理ユニット31の処理手順を示すフローチャートである。中央処理ユニット31は、起動すると、ステップSP1からステップSP2に移り、ハードディスクドライブ23の動作を立ち上げる。続いて中央処理ユニット31は、システムエントリーエリアの読み出しコマンドを発行し、ハードディスクドライブ23より得られるディレクトリーエリア、FATエリアのデータをシステムメモリ32に格納する。
【0053】
さらに続いてステップSP3に移り、AVデータエリアの読み出しコマンドを発行し、続くステップSP4において、このコマンドに応動してAVデータエリアのデータがハードディスクより読み出されてホスト装置に送信され、中央処理ユニット31は、このデータをAVデータメモリ33に格納する。さらに続くステップSP5において、アドレス変換回路34におけるアドレス変換テーブルを設定した後、ステップSP6に移ってこの処理手順を終了する。
【0054】
これに対して図4及び図5は、書き込みの処理を示すフローチャートである。この場合、中央処理ユニット31は、書き込みのコマンドによりステップSP11からステップSP12に移り、システムメモリ32に記録した管理用データを検索し、AVデータエリアから空き領域を示すコードが設定されてなるクラスタ番号(空きクラスタアドレス)を検出する。
【0055】
このようにして空きクラスタアドレスを検出すると、中央処理ユニット31は、続くステップSP13において、この空きクラスタアドレスと転送長とによりパラメータを設定して書き込みコマンドを発行した後、続くステップSP14で記録に供するデータを転送長の分だけハードディスクドライブ23に送出する。これによりハードディスクドライブ23においては、続くステップSP15において、書き込みのコマンドに応動して続いて伝送されるAVデータをバッファメモリ10に記録し、続くステップSP16において、このバッファメモリ10に記録したデータをホスト装置22により指定されたAVデータエリアの空きクラスタに記録する。
【0056】
ハードディスクドライブ23は、このようにしてホスト装置22より伝送されたデータの記録を完了すると、ステップSP17において、ホスト装置22に割り込みをかける。中央処理ユニット31においては、この割り込みによりステップSP18に移り、ここでシステムメモリ32に記録した管理用データを検索し、所定クラスタ数の範囲で、データエリアから空き領域を示すコードが設定されてなる連続するクラスタ番号を検出する。
【0057】
続いて中央処理ユニット31は、ステップSP19において、ステップSP18で検出した空きクラスタアドレスと転送長とによりパラメータを設定して書き込みコマンドを発行した後、続くステップSP20で記録に供するデータを転送長の分だけハードディスクドライブ23に送出する。これによりハードディスクドライブ23においては、続くステップSP21において、書き込みのコマンドに応動して続いて伝送されるデータをバッファメモリ10に記録し、続くステップSP22において、このバッファメモリ10に記録したデータをホスト装置2により指定されたデータエリアの空きクラスタに記録する。
【0058】
ハードディスクドライブ23は、このようにしてホスト装置22より伝送されたデータの記録を完了すると、ステップSP23において、ホスト装置22に割り込みをかける。中央処理ユニット31は、この割り込みにより続くステップSP24で、記録に供するデータの転送を全て完了したか否か判断し、ここで否定結果が得られると、ステップSP25に移る。
【0059】
これにより中央処理ユニット31は、記録開始よりシークに要する時間分のデータ量については、AVデータエリアに記録し、続くAVデータをデータエリアに記録するようになされている。
【0060】
このようにしてステップSP25に移ると、中央処理ユニット31は、システムメモリ32に記録した管理用データを検索し、所定クラスタ数の範囲で、データエリアから空き領域を示すコードが設定されてなる連続するクラスタ番号を検出する。
【0061】
さらに続くステップSP26において、先に記録したAVデータエリアとの間で、クラスタ番号が連続しているか否か判断することにより、ステップSP25で検出したクラスタへの記録を開始する際に、シークが発生するか否か判断する。ここで否定結果が得られると、中央処理ユニット31は、ステップSP19に移り、同様にしてデータエリアに続くAVデータを記録する。これに対してステップSP26で否定結果が得られると、ステップSP12に戻り、ステップSP25で検出したクラスタ番号を無視して、AVデータエリアについて、空きクラスタを検出する。
【0062】
これにより中央処理ユニット31は、クラスタ番号の連続性が途絶えてシークが必要となる場合には、このシーク直後の再生開始位置に相当するAVデータについても、AVデータエリアに記録するようになされている。
【0063】
中央処理ユニット31は、これらの一連の処理を繰り返して、記録に供するデータを全てハードディスク24に記録すると、ステップSP24で肯定結果を得ることができる。これにより中央処理ユニット31は、ステップSP24からステップSP27に移り、このAVデータの記録に対応するようにシステムエントリーエリア、システムメモリ32のFATエリア、ディレクトリーエリアのデータを更新する。また、AVデータメモリ33の記録がAVデータエリアの記録と一致するように、AVデータエリアの再生をハードディスクドライブ23に指示し、その結果得られるAVデータをAVデータメモリ33に記録し、ステップSP28に移ってこの処理手順を終了する。
【0064】
これに対して図6〜図8は、ファイル名の指定により読み出しが指示された場合の処理を示すフローチャートである。この場合、中央処理ユニット31は、ステップSP31からステップSP32に移り、システムメモリ32に記録した管理用データのうちの、ディレクトリーエリアのデータより対応するファイルのファイル管理用データ(図27)を検出し、このファイルの先頭クラスタ番号によるアドレスを検出する。
【0065】
中央処理ユニット31は、続いてステップSP33に移り、この先頭クラスタアドレスと転送長とによりパラメータを設定して読み出しコマンドを発行する。
【0066】
ここでこのようにして発行されるコマンドに付加されたクラスタアドレスにおいては、上述した記録時の処理により、AVデータエリアのクラスタを示していることにより、ホスト装置22においては、続くステップSP34において、アドレス変換回路34によるこのコマンドの解析により、アドレス変換回路34でシステムメモリ32が検索され、続くクラスタアドレスが検出される。
【0067】
また続くステップSP35において、この検出した続くクラスタアドレスによりアドレス変換回路34からハードディスクドライブ23にシークコマンドが出力される。また続くステップSP36において、中央処理ユニット31からのコマンドに対応するAVデータをAVデータメモリ33から読み出すように、中央処理ユニット31からのコマンドに設定されたアドレスがAVデータメモリ33のアドレスに変換され、続くステップSP37において、このアドレスによりAVデータメモリ33からAVデータが読み出されて所定の機器に出力される。
【0068】
これによりこのホスト装置22では、ファイルのアクセスを開始すると、アドレス変換回路34の制御により、AVデータメモリ33に格納した先頭部分のAVデータの再生を開始し、続くクラスタを再生可能に、ハードディスクドライブ23にシークコマンドを出力するようになされている。
【0069】
このようにしてAVデータの出力を開始すると、中央処理ユニット31は、続くステップSP38において、ホストメモリ32の記録をアクセスすることにより、所定クラスタ数の範囲で、続くAVデータが記録されてなる連続するクラスタ番号を検出する。さらに中央処理ユニット31は、続くステップSP39(図7)において、このようにして検出したクラスタ番号において、EOFのコードが検出されたか否か判断し、ここで否定結果が得られると、ステップSP40に移る。
【0070】
ここで中央処理ユニット31は、このようにして検出したクラスタ番号がAVデータエリアに属するものか否か判断し、ここで否定結果が得られると、ステップSP41に移り、ステップSP39で検出したクラスタ番号によりパラメータを設定して読み出しコマンドを発行する。かくするにつき、このようにして発行される読み出しコマンドの先頭クラスタにおいては、ステップSP35におけるアドレス変換回路34からのシークコマンドにより、ハードディスクドライブ23においては、既に再生の開始を待ち受けていることになる。これによりこのビデオカメラ21では、ファイルの記録開始位置にシークする場合でも、このシークによるアクセス速度の低下を有効に回避できるようになされている。
【0071】
これによりハードディスクドライブ23においては、このコマンドにより、何らシークの処理を実行することなく、続くステップSP42において、対応するクラスタよりAVデータを再生し、このAVデータを続くステップSP43において、バッファメモリ10に記録する。またAVデータの再生を完了すると、ステップSP44において、ホスト装置22に割り込みをかけ、中央処理ユニット31においては、この割り込みによりAVデータの転送をハードディスクドライブ23に指示した後、ステップSP38に戻る。
【0072】
これによりこのビデオカメラ21では、連続するクラスタにAVデータが記録されている場合には、ステップSP38−SP39−SP40−SP41−SP42−SP43−SP44−SP45−SP38の処理手順を繰り返し、所定のデータ量単位で、ハードディスク24のデータエリアよりAVデータを再生して所定の機器に出力するようになされている。
【0073】
これに対してこのようなクラスタの連続性が途絶えると、ステップSP40で肯定結果が得られることにより、中央処理ユニット31は、ステップSP40からステップSP46に移る。ここで中央処理ユニット31は、ステップSP39で検出したクラスタアドレスにより読み出しコマンドを発行する。ここでこの場合、上述した記録時の処理により、このコマンドのクラスタアドレスがAVデータエリアを指示していることにより、ホスト装置22においては、再生開始時と同様に、続くステップSP47において、アドレス変換回路34によるこのコマンドの解析により、アドレス変換回路34でシステムメモリ32が検索され、続くクラスタアドレスが検出される。
【0074】
また続くステップSP48において、この検出した続くクラスタアドレスによりアドレス変換回路34からシークコマンドが出力される。また続くステップSP49において、中央処理ユニット31からのコマンドに対応するAVデータをAVデータメモリ33から読み出すように、このコマンドの設定されたアドレスがAVデータメモリ33のアドレスに変換され、続くステップSP50において、このアドレスによりAVデータメモリ33からAVデータが読み出されて所定の機器に出力される。
【0075】
これによりこのホスト装置22では、ハードディスク24のアクセスにシークが必要な場合には、アドレス変換回路34の制御により、AVデータメモリ33に格納したシーク後の再生開始位置のAVデータについて、再生を開始すると共に、続くクラスタを再生可能に、ハードディスクドライブ23にシークコマンドを出力するようになされている。
【0076】
このようにしてシークの処理に関して、AVデータの出力を開始すると、中央処理ユニット31は、ステップSP38に戻り、ホストメモリ32の記録をアクセスすることにより、所定クラスタ数の範囲で、続くAVデータが記録されてなる連続するクラスタ番号を検出し、続くステップSP39−SP40−SP41の処理手順を順次実行する。
【0077】
かくするにつき、このようにしてステップSP41で発行される読み出しコマンドの先頭クラスタにおいては、この場合、ステップSP48におけるアドレス変換回路34からのシークコマンドにより、ハードディスクドライブ23においては、既に再生の開始を待ち受けていることになる。これによりこのビデオカメラ21では、ハードディスク24のAVデータを記録してなる領域の連続性が途絶えることによりシークする場合でも、このシークによるアクセス速度の低下を有効に回避できるようになされている。
【0078】
これらの処理の繰り返して、再生対象のファイルの末尾に近づくと、システムメモリ32をアクセスして検出されるFATエリアの記録にEOFが含まれることになる。これにより中央処理ユニット31は、ステップSP39で肯定結果が得られ、ステップSP52(図8)に移る。
【0079】
ここで中央処理ユニット31は、このようにしてEOFが検出されてなるクラスタ番号がAVデータエリアに属するものか否か判断し、ここで否定結果が得られると、ステップSP44に移り、ステップSP39で検出したクラスタ番号によりパラメータを設定して読み出しコマンドを発行する。これによりハードディスクドライブ23においては、続くステップSP54において、対応するクラスタよりAVデータを再生し、このAVデータを続くステップSP55において、バッファメモリ10に記録する。またAVデータの再生を完了すると、ステップSP56において、ホスト装置22に割り込みをかけ、中央処理ユニット31においては、この割り込みによりAVデータの転送をハードディスクドライブ23に指示した後、ステップSP58に移ってこの処理手順を終了する。
【0080】
これに対してステップSP52で否定結果が得られると、ホスト装置22は、上述したと同様のアドレス変換回路34による制御により、ステップSP59において、ステップSP39で検出されたクラスタアドレスをAVデータメモリ33のアドレスに変換し、続くステップSP60で、このアドレスによるAVデータメモリ33の制御により対応するAVデータをAVデータメモリ33より再生して出力し、ステップSP58に移ってこの処理手順を終了する。
【0081】
(1−2)第1の実施の形態の動作
以上の構成において、このビデオカメラ21では(図1及び図2)、電源が立ち上げられると、ハードディスク24からシステムエントリーエリアのデータが再生され、このシステムエントリーエリアのデータのうち、AVデータエリア、データエリアの管理用データであるFATエリア、ディレクトリーエリアのデータがホスト装置22のシステムメモリ32に格納される。
【0082】
これによりこのビデオカメラ21では、このシステムメモリ32に格納した管理用データにより所望するファイルの記録位置を検出して、順次ハードディスクドライブ23に読み出しコマンドを発行することにより、所望するファイルを再生することができるようになされている。また同様にして、管理用データより空き領域を検出し、この検出結果によりアドレスを設定して書き込みコマンドを発行することにより、撮像結果をハードディスク24に記録することができるようになされている。
【0083】
ビデオカメラ21では、起動時、システムエントリーエリアのデータをシステムメモリ32にロードすると、続いてハードディスク24に記録された各ファイルについて、これらファイルの先頭、クラスタの連続性が失われた個所の先頭にである再生開始位置より所定時間分のデータが再生されてAVデータメモリ33に格納される。また読み出しの指示が得られると、このようにしてAVデータメモリ33に格納されたデータより、対応するデータが出力された後、ハードディスク24を再生して得られる続くデータが出力される。
【0084】
これによりビデオカメラ21では、ファイルの記録開始位置にシークする場合でも、AVデータメモリ33に保持したAVデータを出力している期間の間で、シークして続くAVデータを再生することができ、このシークによるアクセス速度の低下を有効に回避できる。また例えば上位のアプリケーションプログラムの指示により、さらには外部機器の指示により、編集リストに従って複数ファイルを連続して再生する場合でも、同様にして、各ファイル先頭のシークによるアクセス速度の低下を有効に回避できる。
【0085】
またこのようにシークによるアクセス速度の低下を有効に回避するために、ビデオカメラ21では、記録時、ファイル先頭の所定データ量、クラスタの連続性が途絶えてなる先頭の所定データ量のAVデータがAVデータエリアに記録される。
【0086】
すなわち例えば図9(A)に示すように、ファイル1から順次ファイル5までのAVデータを連続したクラスタに記録し、これらファイル1〜5を順次再生する場合には、従来と同様に各ファイルを記録、また再生して、何らシークすることなく、これらファイルを再生することができ、これによりシークによるアクセス速度の低下を有効に回避することができる。
【0087】
このようにしてファイル1から順次ファイル5を連続したクラスタに記録する場合、このビデオカメラ21では、各ファイルの先頭、所定データ量がAVデータエリアに記録され、またこのAVデータがAVデータメモリ33に読み出されて保持される。これにより図10(A)において、AVデータメモリ33に保持された各ファイル先頭のデータをハッチングにより示すように、この実施の形態では、これらのファイルを連続して再生する場合、各ファイル先頭で、AVデータメモリ33に保持されたAVデータが出力された後、続いてデータエリアより再生されたAVデータが出力されることになる。
【0088】
ここで図9(B)に示すように、ファイル3を削除して連続するファイルを順次再生する場合、従来手法においては、ファイル2の再生を完了してファイル4の先頭を再生するまでの間で、シークに要する時間の分、連続したAVデータの出力が途絶えることになる。しかしながらこの実施の形態においては、図10(B)に示すように、これらファイル2の再生を完了してファイル4を再生するまでの間において、シークに要する時間の間、AVデータメモリ33に保持されたAVデータが出力され、その後、データエリアに記録されたファイル4の続くAVデータが出力され、これによりこれらファイル2及び4間でクラスタの連続性が途絶えている場合でも、シークに要する時間によるアクセス速度の低下を有効に回避することができる。なおこの実施の形態では、このようにファイル3を削除すると、当然に、データエリアだけでなくAVデータエリアのFATエリアについても、空き領域を示すコード(図27)が設定され、これによりAVデータエリアに記録したファイル3のAVデータも削除されることになる。
【0089】
またこのようにしてファイル3を削除して、ファイル3よりデータ量の大きなファイル6を記録する場合、図9(C)に示すように、このデータ量の大きなファイル6においては、ファイル3が削除された領域に記録された後(ファイル6aである)、ファイル5に続く空き領域に記録される。これによりこれらのファイルを連続して再生する場合、従来手法においては、ファイル2からファイル4の間、ファイル5からファイル6aの間、ファイル6aからファイル6bの間で、クラスタの連続性が途絶え、これらの間でシークに要する時間の間、AVデータを再生することが困難になり、その分、アクセス速度が低下することになる。
【0090】
この場合、この実施の形態においては、それぞれファイル6a、ファイル6bの先頭、所定データ量がAVデータメモリ33に格納されて保持され、これにより図10(C1)に示すように、これらファイル2からファイル4の間、ファイル5からファイル6aの間、ファイル6aからファイル6bの間で、クラスタの連続性が途絶えてシークに要する時間の間、AVデータメモリ33に保持されたAVデータが出力され、これによりシークによるアクセス速度の低下を有効に回避することができる。
【0091】
また図10(C2)に示すように、ファイルの再生順序を入れ換えて再生する場合でも、シークによるアクセス速度の低下を有効に回避することができる。なおこの図10(C2)においては、図10(C1)との対比により、ファイル2とファイル4との再生順序を入れ換えた場合である。
【0092】
また図9(D)に示すように、ディレクトリーエリアに記録されたファイル管理用データの記録を更新して、ファイル1とファイル4と連結して1つのファイル7とする場合、この1つのファイル7においては、ファイル1とファイル4とにそれぞれ対応してなるファイル7aとファイル7bとによりデータエリアに記録されることになる。しかしながらこの場合でも、図10(D)に示すように、これらのファイルを元の再生順序により再生して、さらには種々の順序により再生して、シークによるアクセス速度の低下を有効に回避することができる。
【0093】
またこのビデオカメラ21では、このようなファイル先頭と同様に、1つのファイルの中で、クラスタの連続性が途絶えた部分についても、その先頭より所定データ量のAVデータをAVデータエリアに記録する。さらにこのAVデータエリアのAVデータをAVデータメモリ33に保持し、このAVデータメモリ33に保持したAVデータを出力した後、続くAVデータをAVデータエリアより再生して出力する。これによりこのように1つのファイル内でクラスタの連続性が途絶えたことによりシークする場合でも、このシークによるアクセス速度の低下を有効に回避することができる。
【0094】
なお中央処理ユニット31は、このように連続して複数ファイルを再生する場合には、編集リストに従って、別途、これらファイル間の結合関係を示す連結ファイル情報をシステムメモリ32の記録領域に形成し、この連結ファイル情報を基準にして順次再生するようになされている。
【0095】
図11(B)は、ディレクトリーエリアの記録との対比により、このようにしてシステムメモリ32に形成される連結ファイル情報による連結ファイル情報エリアを示す図表である。この連結ファイル情報エリアには、ファイル1、2、5、6を連続して再生する場合に、ファイル1に続いて再生するファイル2のファイル名又はこのファイル2の先頭クラスタ番号、ファイル2に続いて再生するファイル5のファイル名又はこのファイル5の先頭クラスタ番号、ファイル5に続いて再生するファイル6のファイル名又はこのファイル6の先頭クラスタ番号、ファイル6が最後のファイルであることを示す連結ファイル無しのコード又はEOFのコードが順次記録されて形成される。
【0096】
これによりこの実施の形態では、ディレクトリーエリア及びFATエリアの記録を辿ってファイル1を再生した後、この連結ファイル情報により続いて再生するファイルがファイル2であることを検出し、さらにこのファイル2について、ディレクトリーエリア及びFATエリアの記録又はFATエリアの記録を辿って続くファイル2を再生できるようになされている。またこのような処理の繰り返しにより最後のファイル6の再生を完了する際に、続くこれら連続したファイルの再生の末尾であることを検出できるようになされている。
【0097】
なおこのようにして形成される連結ファイル情報においては、図12に示すように、各ファイルの最終クラスタ番号をキーにして、続いて再生するファイルの先頭クラスタ番号を記述して作成することもできる。この場合、中央処理ユニット31においては、FATエリアのデータにより各ファイルのクラスタ番号を検出してEOFが検出されると、このEOFが検出されてなるクラスタ番号によりこの連結ファイル情報を検索し、ファイルの先頭クラスタ番号を検出することにより、続くファイルを順次再生するようになされている。なおこのような連結ファイル情報によるリストにおいては、ハードディスク24のデータエリアに記録することが考えられる。
【0098】
(1−3)第1の実施の形態の効果
以上の構成によれば、クラスタ番号が連続しなくなると、一定時間分のデータをメモリに記録し、続くデータを記録媒体に記録することにより、シークに要する時間の間、このメモリに保持したデータを出力し、その後、ハードディスク24から再生したデータを出力することができる。これによりシークによるアクセス速度の低下を有効に回避することができる。
【0099】
またこのようにしてAVデータメモリに記録する先頭部分が、ファイルの先頭部分であることにより、ファイルの先頭までのシークする場合に、このシークの間、AVデータメモリに保持されたAVデータを出力して、シークによるアクセス速度の低下を有効に回避することができる。これによりファイルの再生を指示して即座に所望するファイルのAVデータを出力することができ、また種々の順序で複数ファイルを順次再生する場合に、連続するファイル間で、AVデータを途絶えることなく出力することができる。
【0100】
またこのようにしてAVデータメモリに記録する先頭部分が、連続したクラスタへの記録が途絶えた後の、続く先頭のクラスタであることにより、クラスタの連続性が途絶えてシークする場合についても、シークによるアクセス速度の低下を有効に回避することができ、これによりAVデータを途絶えることなく出力することができる。
【0101】
またこのようにAVデータメモリに保持するAVデータを、所定のタイミングでハードディスク24より再生してAVデータメモリに記録することにより、従来と同一のファイル管理システムによるハードディスクドライブを使用して、この種の処理を実行することができる。
【0102】
またこのようなタイミングが起動時であることにより、ハードディスク24に記録された既存のファイルについて、これらの処理を確実に実行することができる。
【0103】
またこの所定のタイミングが、1つのファイルのハードディスク24への記録を完了した後であることにより、記録した直後のファイルをアクセスする場合についても、シークによるアクセス速度の低下を有効に回避することができる。
【0104】
またこのようにAVデータメモリに記録するAVデータを、ハードディスク24の所定領域であるAVデータエリアに纏めて記録することにより、高速度で、AVデータメモリにAVデータを転送することができ、その分、処理に要する時間を短くすることができる。
【0105】
(2)第2の実施の形態
この実施の形態に係るビデオカメラは、編集処理により個々のファイルを操作する。なおこの実施の形態に係るビデオカメラの構成においては、中央処理ユニット31がこの編集処理に係る処理手順を実行する点を除いて、図1について上述した構成と同一であることにより、図1の構成を流用して説明する。
【0106】
すなわちこの実施の形態において、中央処理ユニット31は、上位のアプリケーションプログラムの制御により、さらには外部機器の制御により、FATエリアの記録、ディレクトリーエリアの記録を更新し、これにより1つのファイルを複数ファイルに分割し、さらには複数のファイルを結合して1つのファイルを作成し、さらにはファイルを部分的に消去する。
【0107】
中央処理ユニット31は、これらの処理において、個々のファイルを処理する毎に、これらの処理に対応するように、AVデータエリア、AVデータメモリ33の記録を更新する。
【0108】
すなわち1つのファイルを複数ファイルに分割した場合には、分割後の各ファイル先頭のAVデータを、AVデータエリア、AVデータメモリ33に記録し、また対応する先頭部分のAVデータの記録をデータエリアより消去する。またこれらの処理に対応するように、FATエリア、ディレクトリーエリアの記録を更新する。
【0109】
また複数のファイルを結合して1つのファイルを作成する場合、この場合には、結合後のファイルにおいて、結合前の各ファイルの先頭部分で、クラスタの連続性が途絶えることにより、何らAVデータエリア、AVデータメモリ33の記録は更新することなく、FATエリア、ディレクトリーエリアの記録の更新により対応する。
【0110】
これに対してファイルを部分的に消去する場合であって、この消去によりクラスタの連続性が途絶える場合、この消去した部分に続く先頭部分のAVデータをAVデータエリア、AVデータメモリ33に記録する。またこの処理に対応するようにFATエリア、ディレクトリーエリアの記録を更新する。
【0111】
これらの処理により、この実施の形態においては、個々のファイルを操作する編集作業を実行した場合でも、シークによるアクセス速度の低下を有効に回避するようになされている。
【0112】
すなわち図11及び図12との対比により図13及び図14に示すように、ファイル1〜5が連続してハードディスク24に記録されている場合(図13(A)及び(B))に、ファイル2の途中部分を消去すると(消去により残るファイル2の各部分をそれぞれファイル2a及び2bにより示す)、上述した中央処理ユニット31の処理により、後半部分2bの先頭部分のAVデータがAVデータメモリ33、AVデータエリアに記録される。これにより図14(B)に示すように、これらのファイル1〜5を連続して再生する場合に、これら前半部分2a及び2bの間でクラスタの連続性が途絶えてシークするようになっても、シークによりAVデータを再生困難な期間の間、このAVデータメモリ33に記録されたAVデータにより補うことができ、これにより編集処理によりシークの処理が必要となった場合でも、シークによるアクセス速度の低下を有効に回避することができる。
【0113】
また図13(C)に示すように、ファイル5の一部を分割してファイル6を作成した場合、中央処理ユニット31の上述した処理により、このファイル6の先頭部分のAVデータがAVデータメモリ33、AVデータエリアに記録される。これにより図14(C1)に示すように、これらのファイル1〜6を連続して再生する場合に、シークによるアクセス速度の低下を有効に回避することができる。また図14(C2)に示すように、例えばファイル6を再生する順番を、ファイル1の次に設定するようにして、これらファイル1及び6間でシークが必要となった場合でも、このシークによりAVデータを再生困難な期間の間、このAVデータメモリ33に記録されたファイル6のAVデータにより補うことができ、これによりシークによるアクセス速度の低下を有効に回避することができる。
【0114】
これに対して図13(D)に示すように、ファイル1の末尾にファイル6を結合して1つのファイル7とする場合(それぞれファイル1及び6に対応する部分を符号7a及び7bにより示す)、この場合、何らAVデータエリア、AVデータメモリ33の記録が更新されないことにより、ファイル7の後半部分7bの先頭部分については、AVデータエリア、AVデータメモリ33に記録されたままに放置されることになる。これにより図14(D)に示すように、これらのファイルを順次再生して、ファイル7の前半部分7a及び7bとの間でシークする場合でも、このシークによりAVデータを再生困難な期間の間、このAVデータメモリ33に記録されたAVデータにより補い、これによりアクセス速度の低下を有効に回避することができる。
【0115】
この実施の形態によれば、個々のファイルを操作する編集処理において、これらのファイルの操作に対応するように、AVデータメモリ33、AVデータエリアを更新することにより、このような個々のファイルを操作する編集処理を実行する場合でも、シークによるアクセス速度の低下を有効に回避することができる。
【0116】
(3)第3の実施の形態
図15は、本発明の第3の実施の形態に係るビデオカメラ41を示すブロック図である。このビデオカメラ41において、図1及び図24について上述したビデオカメラと構成と同一の構成は、対応する符号を付して示し、重複した説明は省略する。
【0117】
このビデオカメラ41においては、AVデータメモリ45が不揮発性メモリにより構成されてハードディスクドライブ43側に配置され、図16に示すように、このAVデータメモリ45によりAVデータエリアが形成される。これによりこのビデオカメラ41においては、第1の実施の形態について上述したような、AVデータエリアの記録をAVデータメモリ33に転送する処理、AVデータエリアの記録とAVデータメモリ33の記録との整合性を図る処理を実行しなくても、シークによるアクセス速度の低下を有効に回避することができるようになされている。
【0118】
ここでハードディスク44においては、データエリア及びAVデータメモリ45が連続するクラスタアドレスにより管理されるようになされ、FATエリアにおいては、これらデータエリア及びAVデータメモリ45のFATアドレスが記録されるようになされている。
【0119】
AVデータの流れを主体的に表して図17に示すように、インターフェース制御回路47は、インターフェース制御部49において、ホスト装置42から出力されるコマンドが解析されて各部の動作を制御する。この処理において、インターフェース制御回路47は、アドレス変換部50において、読み出しコマンド、書き込みコマンドに設定された論理アドレスを物理アドレスに変換し、サーボ回路4等と共にアクセス制御系を構成するハードディスク制御回路5に出力する。
【0120】
この処理において、インターフェース制御回路47は、図16について上述したアドレス管理により、内蔵の選択回路51を介して、書き込みに供するAVデータをAVデータメモリ45、バッファメモリ10に選択的に出力し、これによりファイル先頭、クラスタの連続性が途絶えた部分の先頭等において、所定時間分のAVデータをAVデータメモリ45に記録し、残るデータをハードディスク44に記録する。また同様のアドレス管理により、バッファメモリ10を介して得られるハードディスク44の再生データによるAVデータと、AVデータメモリ45から得られるAVデータとを、選択的にホスト装置42に出力する。
【0121】
ホスト装置42において、中央処理ユニット52は、起動時、ハードディスクドライブ43の制御により、FATエリア、ディレクトリーエリアのデータを取得してシステムメモリ11に格納する。また書き込みの指示により、各ファイルの先頭、クラスタの連続性が途絶えた部分の先頭等については、システムメモリ11の検索によりAVデータエリアの空き領域を検出し、この検出結果によりパラメータを設定して書き込みのコマンドを発行する。これによりこのビデオカメラ41では、AVデータエリアを構成するAVデータメモリ45に、各ファイルの先頭、所定時間分のデータを記録するようになされている。
【0122】
また続くAVデータについては、同様のシステムメモリ11の記録の検索によりデータエリアの空き領域を検出し、この検出結果によりパラメータを設定して書き込みのコマンドを発行する。これによりこのビデオカメラ41では、続くデータについては、ハードディスク44に記録するようになされている。
【0123】
中央処理ユニット52は、この一連の処理により1つのファイルをハードディスクドライブ43に記録すると、この記録に対応するように、システムメモリ11の内容を更新し、またシステムエントリーエリアの記録を更新する。
【0124】
これらの処理において、中央処理ユニット52は、AVデータメモリ45にAVデータを記録している期間の間で、続くAVデータの記録開始位置にシークさせるように、ハードディスクドライブ43の動作を制御し、これにより記録時においてもシークによるアクセス速度の低下を防止する。
【0125】
すなわち図18及び図19は、この書き込み時の処理手順を示すフローチャートである。中央処理ユニット52は、書き込みのコマンドによりステップSP71からステップSP72に移り、システムメモリ11に記録した管理用データを検索し、AVデータエリアから空き領域を示すコードが設定されてなるクラスタ番号を検出する。
【0126】
このようにして空きクラスタアドレスを検出すると、中央処理ユニット52は、続くステップSP73において、この空きクラスタアドレスと転送長とによりパラメータを設定して書き込みコマンドを発行する。さらに中央処理ユニット52は、続くステップSP74において、システムメモリ11の検索により、空き領域を示すコードが設定されてなる連続するクラスタ番号を検出し、これにより続くAVデータの記録開始位置を事前に検出する。
【0127】
中央処理ユニット52は、これにより続くステップSP75で、この続くAVデータの記録先へのシークコマンドを出力し、これによりハードディスクドライブ43は、続く記録開始位置に事前のシークを開始する。また続くステップSP76において、ステップSP73で入力した書き込みコマンドによるアドレスをAVデータメモリ45のアドレスに変換し、中央処理ユニット52においては、このように順次コマンドを送出して得られるハードディスクドライブ43からの応答により、続くステップSP77で記録に供するデータを出力する。
【0128】
これによりハードディスクドライブ43では、続くステップSP78で、ファイル先頭のAVデータをAVデータメモリ45に格納し、格納を完了すると、ステップSP79でホスト装置42に割り込みをかける。これにより中央処理ユニット52は、続くステップSP70で、システムメモリ11の検索により、所定クラスタ数の範囲で、データエリアから空き領域を示すコードが連続して設定されてなる連続するクラスタ番号を検出し、これによりステップSP74で検出したシーク先の記録開始位置にしてなるAVデータの記録先を検出する。
【0129】
続いて中央処理ユニット52は、ステップSP81において、ステップSP80で検出した空きクラスタアドレスと転送長とによりパラメータを設定して書き込みコマンドを発行した後、続くステップSP82で記録に供するデータを転送長の分だけハードディスクドライブ43に送出する。これによりハードディスクドライブ43においては、続くステップSP83において、書き込みのコマンドに応動して続いて伝送されるデータをバッファメモリ10に記録し、続くステップSP84において、このバッファメモリ10に記録したデータをホスト装置22により指定されたデータエリアの空きクラスタに記録する。
【0130】
かくするにつき、このようにしてステップSP81で発行される書き込みコマンドの先頭クラスタにおいては、ステップSP75におけるシークコマンドにより、ハードディスクドライブ43においては、既に記録の開始を待ち受けていることになる。これによりこのビデオカメラ41では、記録開始時のシークによるアクセス速度の低下を有効に回避できるようになされている。
【0131】
ハードディスクドライブ43は、このようにしてホスト装置22より伝送されたデータの記録を完了すると、ステップSP85において、ホスト装置22に割り込みをかける。中央処理ユニット52は、この割り込みにより続くステップSP86で、記録に供するデータの転送を全て完了したか否か判断し、ここで否定結果が得られると、ステップSP87に移る。
【0132】
これにより中央処理ユニット52は、ファイル先頭より所定時間分のAVデータについては、AVデータメモリ45に記録し、続くAVデータをデータエリアに記録するようになされている。
【0133】
このようにしてステップSP87に移ると、中央処理ユニット52は、システムメモリ32に記録した管理用データを検索し、所定クラスタ数の範囲で、データエリアから空き領域を示すコードが設定されてなる連続するクラスタ番号を検出する。
【0134】
さらに続くステップSP88において、先に記録したAVデータエリアとの間で、クラスタ番号が連続しているか否か判断することにより、ステップSP87で検出したクラスタへの記録を開始する際に、シークが発生するか否か判断する。ここで否定結果が得られると、中央処理ユニット52は、ステップSP81に移り、同様にしてデータエリアに続くAVデータを記録する。これに対してステップSP88で否定結果が得られると、ステップSP72に戻り、ステップSP87で検出したクラスタ番号を無視して、AVデータエリアについて、空きクラスタを検出する。
【0135】
これにより中央処理ユニット52は、記録領域が連続しなくなってシークが必要となる場合には、このシーク直後の再生開始位置に相当するAVデータについても、AVデータメモリ45に記録するようになされている。
【0136】
かくするにつき、この場合もステップSP81で発行される書き込みコマンドの先頭クラスタにおいては、ステップSP75におけるシークコマンドにより、ハードディスクドライブ43においては、既に記録の開始を待ち受けていることになる。これによりこのビデオカメラ41では、ハードディスク44のAVデータを記録してなる領域の連続性が途絶えることによりシークする場合でも、このシークによるアクセス速度の低下を有効に回避できるようになされている。
【0137】
中央処理ユニット52は、これらの一連の処理を繰り返して、記録に供するデータを全てハードディスク44に記録すると、ステップSP86で肯定結果を得ることができる。これにより中央処理ユニット52は、ステップSP86からステップSP89に移り、このAVデータの記録に対応するようにシステムエントリーエリア、システムメモリ32のFATエリア、ディレクトリーエリアのデータを更新し、ステップSP90に移ってこの処理手順を終了する。
【0138】
これに対して図20〜図22は、再生時の処理手順を示すフローチャートである。この場合、中央処理ユニット52は、ステップSP101からステップSP102に移り、システムメモリ11に記録した管理用データのうちの、ディレクトリーエリアのデータより対応するファイルのファイル管理用データを検出し、このファイルの先頭クラスタ番号によるアドレスを検出する。
【0139】
この先頭クラスタ番号を検出すると、中央処理ユニット52は、ステップSP103に移り、この先頭クラスタアドレスと転送長とによりパラメータを設定して読み出しコマンドを発行する。ここでこのようにして発行されるコマンドに付加されたクラスタアドレスにおいては、上述した記録時の処理により、AVデータエリアに属することになる。
【0140】
中央処理ユニット52は、続いてステップSP104において、システムメモリ11に記録したFATエリアのデータの検索により、続いて再生するクラスタアドレスを検出する。また続くステップSP105において、この検出した続くクラスタアドレスによりハードディスクドライブ23にシークコマンドを出力する。これによりこの場合も、ビデオカメラ41においては、AVデータエリアの記録を再生する場合には、続いて再生する再生開始位置に事前にシークさせるようになされている。
【0141】
これによりハードディスクドライブ43においては、続くステップSP106において、中央処理ユニット52からのコマンドに対応するAVデータをAVデータメモリ45から読み出すように、このコマンドに設定されたアドレスがAVデータメモリ45のアドレスに変換され、続くステップSP107において、ホスト装置42に割り込みがかけられる。中央処理ユニット52は、この割り込みにより、続くステップSP108において、AVデータの転送を指示し、これによりAVデータメモリ45より対応するAVデータがホスト装置42に出力される。
【0142】
中央処理ユニット52は、続くステップSP109において、ホストメモリ11をアクセスすることにより、所定クラスタ数の範囲で、続くAVデータが記録されてなる連続するクラスタ番号を検出する。さらに中央処理ユニット52は、続くステップSP110(図21)において、このようにして検出したクラスタ番号において、EOFのコードが検出されたか否か判断し、ここで否定結果が得られると、ステップSP111に移る。
【0143】
ここで中央処理ユニット52は、このようにして検出したクラスタ番号がAVデータエリアに属するものか否か判断し、ここで否定結果が得られると、ステップSP112に移り、ステップSP109で検出したクラスタ番号によりパラメータを設定して読み出しコマンドを発行する。かくするにつき、このようにして発行される読み出しコマンドの先頭クラスタにおいては、ステップSP105におけるシークコマンドにより、ハードディスクドライブ43においては、既に再生の開始を待ち受けていることになる。これによりこのビデオカメラ41では、ファイルの記録開始位置にシークする場合でも、このシークによるアクセス速度の低下を有効に回避できるようになされている。
【0144】
これによりハードディスクドライブ43においては、このコマンドにより、何らシークの処理を実行することなく、続くステップSP113において、対応するクラスタよりAVデータを再生し、このAVデータを続くステップSP114において、バッファメモリ10に記録する。またAVデータの再生を完了すると、ステップSP115において、ホスト装置22に割り込みをかけ、中央処理ユニット52においては、この割り込みによりステップSP116においてAVデータの転送をハードディスクドライブ23に指示した後、ステップSP109に戻る。
【0145】
これによりこのビデオカメラ21では、連続するクラスタにAVデータが記録されている場合には、ステップSP109−SP110−SP111−SP112−SP113−SP114−SP115−SP116−SP109の処理手順を繰り返し、所定のデータ量単位で、ハードディスク44のデータエリアよりAVデータを再生して所定の機器に出力するようになされている。
【0146】
これに対してこのようなクラスタの連続性が途絶えると、ステップSP111で肯定結果が得られることにより、中央処理ユニット52は、ステップSP111からステップSP117に移る。ここで中央処理ユニット52は、ステップSP109で検出したクラスタアドレスにより読み出しコマンドを発行する。ここでこの場合、上述した記録時の処理により、このコマンドのクラスタアドレスがAVデータエリアを示していることになる。
【0147】
中央処理ユニット52は、続くステップSP118において、システムメモリ11を検索し、続くクラスタアドレスを検出する。また続くステップSP119において、この検出した続くクラスタアドレスによりシークコマンドを発行する。これによりハードディスクドライブ43においては、ステップSP120において、コマンドに設定されたアドレスがAVデータメモリ45のアドレスに変換され、続くステップSP121において、ホスト装置42に割り込みがかけられる。中央処理ユニット52においては、この割り込みによりAVデータの転送を指示し、続くステップSP122において、このAVデータがホスト装置42に出力され、ステップSP109に戻る。
【0148】
中央処理ユニット52は、ステップSP108に戻ると、ホストメモリ11の記録をアクセスすることにより、所定クラスタ数の範囲で、続くAVデータが記録されてなる連続するクラスタ番号を検出し、続くステップSP110−SP111−SP112の処理手順を順次実行する。
【0149】
かくするにつき、このようにしてステップSP112で発行される読み出しコマンドの先頭クラスタにおいては、この場合、ステップSP119におけるシークコマンドにより、ハードディスクドライブ43においては、既に再生の開始を待ち受けていることになる。これによりこのビデオカメラ41では、ハードディスク44のAVデータを記録してなる領域の連続性が途絶えることによりシークする場合でも、このシークによるアクセス速度の低下を有効に回避できるようになされている。
【0150】
これらの処理の繰り返して、再生対象のファイルの末尾に近づくと、システムメモリ11をアクセスして検出されるFATエリアの記録にEOFが含まれることになる。これにより中央処理ユニット52は、ステップSP111で肯定結果が得られ、ステップSP124(図22)に移る。
【0151】
ここで中央処理ユニット52は、このようにしてEOFが検出されてなるクラスタ番号がAVデータエリアに属するものか否か判断し、ここで否定結果が得られると、ステップSP125に移り、ステップSP109で検出したクラスタ番号によりパラメータを設定して読み出しコマンドを発行する。これによりハードディスクドライブ23においては、続くステップSP126において、対応するクラスタよりAVデータを再生し、このAVデータを続くステップSP127において、バッファメモリ10に記録する。またAVデータの再生を完了すると、ステップSP128において、ホスト装置42に割り込みをかけ、中央処理ユニット52においては、この割り込みによりAVデータの転送をハードディスクドライブ43に指示した後、ステップSP130に移ってこの処理手順を終了する。
【0152】
これに対してステップSP124で否定結果が得られると、中央処理ユニット52は、ステップSP131において、ステップSP109で検出されたクラスタアドレスにより読み出しコマンドを発行する。これによりハードディスクドライブ43は、続くステップSP132において、このコマンドに付加されたクラスタアドレスをAVデータメモリ45のアドレスに変換し、続くステップSP133で、ホスト装置42に割り込みをかける。またこの割り込みに対するホスト装置42からの応答により、続くステップSP134において、AVデータメモリ45より対応するAVデータをホスト装置42に出力し、ステップSP130に移ってこの処理手順を終了する。
【0153】
図15に示す構成によれば、AVデータメモリを不揮発性メモリにより構成することにより、AVデータエリアの記録をAVデータメモリ33に転送する処理、AVデータエリアの記録とAVデータメモリ33の記録との整合性を図る処理を実行しなくても、第1の実施の形態と同様の効果を得ることができる。
【0154】
またこのとき、このメモリとハードディスクのデータエリアとを連続するクラスタアドレスによる管理用データで管理することにより、ハードディスクドライブ側においては、コマンドに設定されたアドレスの判定により、メモリに記録されたデータ、記録媒体より再生されるデータを選択的にコマンドに係る機器に出力するだけの簡易な処理により、無駄な電力消費を有効に回避して、即座に所望するファイルのデータを出力することができる。またホスト装置においては、簡易なアドレス管理によりこれらの処理の実行することができる。
【0155】
またシークによりハードディスク44への記録が困難な期間の間、AVデータをAVデータメモリに記録し、続くデータをハードディスク44に記録することにより、記録時においても、シークによる転送速度の低下を有効に回避することができる。
【0156】
(4)第4の実施の形態
この実施の形態に係るビデオカメラでは、頭出し用のインデックス画像を併せてハードディスクに記録する。なおこのビデオカメラでは、このインデックス画像の処理に係る構成が異なる点を除いて、図15のビデオカメラと同一の構成であることにより、ここでは図15の構成を流用して説明する。
【0157】
このビデオカメラにおいて、中央処理ユニット52は、ユーザーが動作モードをカメラモードに設定した後、この設定を解除するまでの間で撮影される複数のシーンを1つのファイルとしてハードディスクドライブに記録する。また、このような1つのファイルの記録において、ユーザーによりトリガスイッチが操作されて各シーンの記録を開始する毎に、別途、記録開始時の1フィールドにより、インデックス用の静止画像を作成する。さらに中央処理ユニット52は、この静止画像を、対応するアドレス、記録時間等の情報と共に、ハードディスク44の所定領域にまとめて記録する。これによりこのビデオカメラでは、この静止画像、記録時間の情報等をインデックス用の情報として利用して、各ファイルにおける撮影シーンを瞬時に頭出しできるようになされている。
【0158】
中央処理ユニット52は、各ファイルの先頭等に加えて、このようにして設定されるインデックスによる再生開始位置について、AVデータメモリ45にAVデータを選択的に記録し、他のAVデータをデータエリアに記録するように、全体の動作を制御する。
【0159】
これによりこの実施の形態では、ファイルの途中に設定された頭出し用の再生開始の個所についても、シークによりハードディスク44からAVデータを読み出すことが困難な期間の間、AVデータメモリ45に記録されたAVデータを出力するようになされ、これにより頭出しによるシークについても、シークによるアクセス速度の低下を有効に回避できるようになされている。
【0160】
(5)他の実施の形態
なお上述の実施の形態においては、ハードディスクのデータエリア全体に対して、1つのAVデータエリアを設定する場合について述べたが、本発明はこれに限らず、図16との対比により図23に示すように、データエリアを複数の領域に区切り、各領域毎に、それぞれAVデータエリアを設けるようにしてもよい。このようにすれば、AVデータエリアとの間で連結クラスタを検索する処理、各エリアで空きエリアを検出する処理を簡略化することができる。
【0161】
また上述の第4の実施の形態においては、トリガスイッチの操作によりインデックスを設定する場合について述べたが、本発明はこれに限らず、ユーザーの設定によりインデックスを設定する場合等にも広く適用することができる。
【0162】
また上述の第1及び第2の実施の形態においては、1つのファイルの記録を完了した後に、AVデータメモリの記録とAVデータエリアの記録との整合性を図るようにした場合について述べたが、本発明はこれに限らず、これらの処理をAVデータのハードディスクへの記録と同時並列的に実行してもよい。
【0163】
また上述の実施の形態においては、個々のファイルの処理により編集処理する場合、さらにはファイルの再生順序の設定により編集処理する場合について述べたが、本発明はこれに限らず、編集リストによるイン点、アウト点の設定による編集処理にも広く適用することができる。この場合、イン点に設定された個所においては、シークすることが必要になることにより、ホスト装置側において、編集リストの記録に従って、このような個所について、事前にAVデータを再生してAVデータメモリに記録することが考えられる。
【0164】
また上述の実施の形態においては、1フレーム分(33〔msec〕分)のAVデータをAVデータメモリに記録する場合について述べたが、本発明はこれに限らず、必要に応じて適宜この時間は設定することができる。
【0165】
また上述の実施の形態においては、MS−DOS互換ファイルシステムによるハードディスク装置に本発明を適用する場合について述べたが、本発明はこれに限らず、種々のファイル管理システムによるハードディスク装置に広く適用することができる。またこのようなハードディスク装置に限らず、シークを要する光ディスク、光磁気ディスク等の各種記録再生装置に広く適用することができる。
【0166】
【発明の効果】
上述のように本発明によれば、クラスタ番号が連続しなくなると、一定時間分のデータをメモリに記録し、続くデータを記録媒体に記録することにより、シークによるアクセス速度の低下を有効に回避することができる。これによりAVデータの処理において、高速にアクセスすることができ、複数のAVストリームを同時に記録再生したり、編集、ダビング等を途絶えることなく実行することができる。
【図面の簡単な説明】
【図1】本発明の第1の実施の形態に係るビデオカメラを示すブロック図である。
【図2】図1のビデオカメラにおける記録領域の説明に供する図表である。
【図3】図1のビデオカメラにおける起動時の処理手順を示すフローチャートである。
【図4】図1のビデオカメラにおける書き込み時の処理手順を示すフローチャートである。
【図5】図4の続きの処理手順を示すフローチャートである。
【図6】図1のビデオカメラにおける読み出し時の処理手順を示すフローチャートである。
【図7】図6の続きの処理手順を示すフローチャートである。
【図8】図7の続きの処理手順を示すフローチャートである。
【図9】編集作業の説明に供する図表である。
【図10】図9との対比により再生の説明に供する図表である。
【図11】ファイル間の結合関係を示すファイル情報の説明に供する図表である。
【図12】ファイル間の結合関係を示すファイル情報の他の例の説明に供する図表である。
【図13】本発明の第2の実施の形態に係るビデオカメラにおいて、ファイルの処理の説明に供する図表である。
【図14】図13との対比により再生の説明に供する図表である。
【図15】本発明の第3の実施の形態に係るビデオカメラを示すブロック図である。
【図16】図15のビデオカメラにおける記録領域の説明に供する図表である。
【図17】図15のビデオカメラにおけるハードディスクドライブを詳細に示すブロック図である。
【図18】図15のビデオカメラにおける書き込み時の処理手順を示すフローチャートである。
【図19】図18の続きの処理手順を示すフローチャートである。
【図20】図15のビデオカメラにおける読み出し時の処理手順を示すフローチャートである。
【図21】図20の続きの処理手順を示すフローチャートである。
【図22】図21の続きの処理手順を示すフローチャートである。
【図23】他の例による記録領域の説明に供する図表である。
【図24】従来のハードディスクドライブを使用したシステムを示すブロック図である。
【図25】従来のハードディスクにおける記録フォーマットを示す図表である。
【図26】図25のディレクトリーエリアに記録されるデータを示す図表である。
【図27】図25のFATエリアに記録されるコードを示す図表である。
【符号の説明】
1、23、43……ハードディスクドライブ、2、22、42……ホスト装置、3、24、44……ハードディスク、7、27、47……インターフェース制御回路、12、31、52……中央処理ユニット、11、32……システムメモリ、33、45……AVデータメモリ[0001]
BACKGROUND OF THE INVENTION
The present invention relates to an information processing device, a control method for the information processing device, a control program for the information processing device, and a recording medium on which the control program for the information processing device is recorded, and can be applied to, for example, a hard disk device that records video data. . The present invention When the cluster numbers are not consecutive, data for a certain time is recorded in the memory, and the subsequent data is recorded on the recording medium, A reduction in access speed due to seeking can be effectively avoided.
[0002]
[Prior art]
2. Description of the Related Art Conventionally, hard disk drives used as peripherals for personal computers can be accessed randomly, and in recent years, they have been reduced in size and increased in recording density. As a result, various proposals have been made to apply the hard disk drive to recording of audio data and video data (hereinafter referred to as AV data) for use in home servers, in-vehicle devices, and the like.
[0003]
In such a hard disk drive, the data recorded on the hard disk can be managed in units of clusters of a plurality of sectors by the management data recorded on the hard disk. It is designed to be executed by a computer or the like.
[0004]
That is, FIG. 24 is a block diagram showing a hard disk drive. The
[0005]
Here, as shown in FIG. 25, for example, the format of the MS-DOS compatible file system is applied to the
[0006]
Further, the
[0007]
Here, the logical address is represented by a cluster number in units of clusters formed by a set of a plurality of logical sectors. That is, the logical sector is an area corresponding to a data recording unit set with the first area on the information recording surface (in this case, the outermost periphery) set as 0 sector. For example, 1 physical sector is 1 logical sector. Correspondingly, the logical sector number can be expressed by a relational expression of logical sector number = number of sectors per track × (surface number + number of surfaces × track number) + sector number−1. Here, the surface number, track number, and sector number are based on physical addresses.
[0008]
Here, the logical sector is configured so that 512-byte data can be recorded in one logical sector in terms of user data, and one cluster is configured by a plurality of logical sectors. Note that one cluster is generally composed of power-of-two sectors, and is specified by a cluster number that is a serial number starting from 2 in the file area in a data area in which user data is recorded. .
[0009]
In the data area, a cluster number is assigned to each cluster set in this way, and the cluster can be accessed in units of clusters based on the cluster number. Here, the cluster number is shown in a 4-digit hex format.
[0010]
On the other hand, the system entry area is further divided into a boot area, a FAT (Fail Allocation table) area, and a directory area, and data defining the structure of the disk is recorded in the boot area. On the other hand, management data based on address information and the like necessary for accessing AV data recorded in the data area is recorded in the FAT area and the directory area.
[0011]
That is, in the directory area, the file name of each file recorded in the data area, the cluster number of the first cluster that is the recording start position of each file, and the like are recorded. On the other hand, in the FAT area, the cluster number and the like of each cluster subsequent to the first cluster of each file are recorded. As a result, the
[0012]
Thus, in FIG. 25, when the
[0013]
More specifically, in the directory area, for each file recorded in the data area, file management data for specifying each file recorded in the data area is recorded by the configuration shown in FIG. That is, in the file management data, the file name is assigned to the first 8 bytes, and the extension of each file is assigned to the subsequent 3 bytes. Further, data indicating the attribute of the file is allocated to the subsequent 1 byte, and the subsequent 10 bytes are allocated to reserve data. The subsequent 2 bytes are assigned to the recording start time data, the subsequent 2 bytes are assigned to the recording date and time, and the cluster number which is the leading cluster number is assigned to the subsequent 2 bytes. The last 4 bytes are assigned file length data.
[0014]
On the other hand, in the FAT area (FIG. 25), identification data indicating the association of each cluster which is a management unit of the data area is recorded. That is, in the FAT area, a cluster address is assigned corresponding to the cluster number of the data area, and the cluster number of the cluster following each cluster address is recorded. As shown in FIG. 27, among the codes that are not assigned to the cluster numbers, predetermined codes are assigned to identification information indicating empty areas, defective clusters, and EOF, respectively.
[0015]
As a result, the
[0016]
The
[0017]
Under the control of the hard
[0018]
The hard
[0019]
The interface control circuit (IF control) 7 is formed by, for example, a SCSI (Small Computer System Interface) controller, an IDE (Intelligent Drive Electronics) controller, or the like, and an input / output circuit for data to be transmitted to and received from the
[0020]
Correspondingly, the
[0021]
In this processing, the
[0022]
That is, when the user gives an instruction to play a predetermined file, the
[0023]
On the other hand, when recording of data is instructed by the user, similarly, a parameter is set so that a free area is detected by sequentially tracing the data in the FAT area recorded in the
[0024]
When the recording of the file is completed in this way, the recording of the
[0025]
[Problems to be solved by the invention]
By the way, in the hard disk drive, it takes time (hereinafter referred to as time required for seeking) from the start of the seek to the start of the reproduction of the data recorded on the hard disk, thereby causing a problem that the access speed is lowered.
[0026]
In other words, when reproducing data of a desired cluster by seeking in a hard disk drive, it is necessary to wait until the magnetic head scans the target cluster after the magnetic head is moved to the target track and set. Time is required for seek by the total time required for movement to the target track (seek time) and the time required for scanning the target cluster (rotation waiting time).
[0027]
In a hard disk drive, the time required for this seek is generally a short time of several milliseconds. However, if many files are distributed and recorded in multiple areas by repeating recording / playback and editing operations, The time required for seeking cannot be ignored, and the data transfer speed of the data reproduced from the hard disk is substantially reduced, and the access speed is significantly reduced correspondingly.
[0028]
As one method for solving this problem, for example, a method of accessing a hard disk by command queuing has been proposed. This method accesses the hard disk sequentially from the start of reproduction closer to the current position of the magnetic head, and rearranges the reproduced data by buffering and outputs it, thereby reducing the seek time compared to accessing the hard disk sequentially. It will be shortened. However, in this method, there is a problem that the control is complicated, and there is a problem that a sufficient effect cannot be obtained because the seek time is only slightly shortened in the time required for the seek.
[0029]
The present invention has been made in consideration of the above points. An information processing apparatus using a hard disk or the like capable of effectively avoiding a decrease in access speed due to time required for seeking, a control method for the information processing apparatus, and an information processing apparatus A recording medium on which a control program and a control program of an information processing apparatus are recorded is proposed.
[0030]
[Means for Solving the Problems]
In order to solve this problem, in the invention of
[0031]
And claims 5 In the invention of Detects an empty area of a disk-shaped recording medium, and records continuous data on the disk-shaped recording medium in cluster units based on the detection result. Apply to the control method of information processing equipment, The continuous data is sequentially recorded in the free space where the cluster numbers are continuous, and the continuous data is recorded in the memory for a certain period of time when the cluster number of the free space is no longer continuous, and the free space continues. Record the continuation of the continuous data in the area Data recording steps to At the time of reproduction, after reproducing the continuous data recorded in the free space where the cluster numbers are continuous, the data recorded in the memory is reproduced, and then the data recorded in the subsequent free space is reproduced and output. A step of reproducing data.
[0032]
And claims 6 In the invention of Detects an empty area of a disk-shaped recording medium, and records continuous data on the disk-shaped recording medium in cluster units based on the detection result. Apply to the control program of the information processing device, The continuous data is sequentially recorded in the free space where the cluster numbers are continuous, and the continuous data is recorded in the memory for a certain period of time when the cluster number of the free space is no longer continuous, and the free space continues. Record the continuation of the continuous data in the area Data recording steps to At the time of reproduction, after reproducing the continuous data recorded in the free space where the cluster numbers are continuous, the data recorded in the memory is reproduced, and then the data recorded in the subsequent free space is reproduced and output. A step of reproducing data.
[0033]
And claims 7 In the invention of Detects an empty area of a disk-shaped recording medium, and records continuous data on the disk-shaped recording medium in cluster units based on the detection result. Applying to a recording medium recording a control program of an information processing device, the control program is The continuous data is sequentially recorded in the free space where the cluster numbers are continuous, and the continuous data is recorded in the memory for a certain period of time when the cluster number of the free space is no longer continuous, and the free space continues. Record the continuation of the continuous data in the area Data recording steps to At the time of reproduction, after reproducing the continuous data recorded in the free space where the cluster numbers are continuous, the data recorded in the memory is reproduced, and then the data recorded in the subsequent free space is reproduced and output. A step of reproducing data.
[0034]
According to the configuration of
[0035]
This makes the
[0036]
DETAILED DESCRIPTION OF THE INVENTION
Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings as appropriate.
[0037]
(1) First embodiment
(1-1) Configuration of the first embodiment
FIG. 1 is a block diagram showing a video camera according to the first embodiment of the present invention. In this video camera 21, a
[0038]
On the other hand, the hard disk drive 23 is mounted on various devices such as the
[0039]
In this
[0040]
In addition, at the time of reproduction, the location where access by seek is required is set at the recording start position by the video camera 21 and the head position where the cluster numbers are no longer continuous in continuous AV data recording. In the video camera 21, AV data is file-managed and recorded so that the recording start position of the video camera 21 is the head position of the file. In the
[0041]
The
[0042]
Corresponding to this configuration, in the
[0043]
Here, the
[0044]
When the
[0045]
Here, the
[0046]
As a result, the
[0047]
As a result, the
[0048]
On the other hand, when the
[0049]
In this process, at the start of recording, the
[0050]
Thus, the
[0051]
When the
[0052]
That is, FIG. 3 is a flowchart showing a processing procedure of the
[0053]
Subsequently, the process proceeds to step SP3, where an AV data area read command is issued. In step SP4, the data in the AV data area is read from the hard disk in response to this command and transmitted to the host device. 31 stores this data in the
[0054]
On the other hand, FIGS. 4 and 5 are flowcharts showing the writing process. In this case, the
[0055]
When the free cluster address is detected in this way, the
[0056]
When the hard disk drive 23 completes the recording of the data transmitted from the
[0057]
Subsequently, in step SP19, the
[0058]
When the hard disk drive 23 completes the recording of the data transmitted from the
[0059]
As a result, the
[0060]
When the processing proceeds to step SP25 in this way, the
[0061]
Further, in step SP26, a seek occurs when recording on the cluster detected in step SP25 is started by determining whether or not the cluster number is continuous with the previously recorded AV data area. Judge whether to do. If a negative result is obtained here, the
[0062]
As a result, when the continuity of the cluster numbers is interrupted and the seek is necessary, the
[0063]
When the
[0064]
On the other hand, FIG. 6 to FIG. 8 are flowcharts showing processing when reading is instructed by designation of a file name. In this case, the
[0065]
The
[0066]
Here, in the cluster address added to the command issued in this way, the cluster of the AV data area is indicated by the processing at the time of recording described above, so that in the
[0067]
In the subsequent step SP35, a seek command is output from the
[0068]
As a result, when the
[0069]
When the output of the AV data is started in this way, the
[0070]
Here, the
[0071]
As a result, the hard disk drive 23 reproduces AV data from the corresponding cluster in the subsequent step SP42 without executing any seek processing by this command, and this AV data is stored in the
[0072]
Thereby, in this video camera 21, when AV data is recorded in a continuous cluster, the processing procedure of steps SP38-SP39-SP40-SP41-SP42-SP43-SP44-SP45-SP38 is repeated to obtain predetermined data. The AV data is reproduced from the data area of the
[0073]
On the other hand, when the continuity of such clusters is interrupted, an affirmative result is obtained in step SP40, and the
[0074]
In the subsequent step SP48, a seek command is output from the
[0075]
As a result, in the
[0076]
When the output of AV data is started with respect to the seek process in this way, the
[0077]
In this way, in the head cluster of the read command issued in step SP41 in this way, in this case, the hard disk drive 23 has already waited for the start of reproduction by the seek command from the
[0078]
When these processes are repeated and the end of the file to be reproduced is approached, EOF is included in the FAT area recording detected by accessing the
[0079]
Here, the
[0080]
On the other hand, if a negative result is obtained in step SP52, the
[0081]
(1-2) Operation of the first embodiment
In the above configuration, in the video camera 21 (FIGS. 1 and 2), when the power is turned on, the data in the system entry area is reproduced from the
[0082]
As a result, the video camera 21 reproduces the desired file by detecting the recording position of the desired file from the management data stored in the
[0083]
When the video camera 21 is started up, the data in the system entry area is loaded into the
[0084]
As a result, even when seeking to the file recording start position, the video camera 21 can reproduce the AV data that has been sought after the AV data held in the
[0085]
In order to effectively avoid the decrease in the access speed due to the seek in this way, the video camera 21 has a predetermined amount of data at the beginning of the file and AV data having a predetermined amount of data at the beginning where the continuity of the cluster is interrupted during recording. Recorded in the AV data area.
[0086]
That is, for example, as shown in FIG. 9A, when AV data from
[0087]
In this way, when the
[0088]
Here, as shown in FIG. 9B, when the
[0089]
Further, when the
[0090]
In this case, in this embodiment, the beginning of the
[0091]
Further, as shown in FIG. 10C2, even when the reproduction order of files is changed and reproduced, a decrease in access speed due to seeking can be effectively avoided. FIG. 10C2 shows a case where the reproduction order of the
[0092]
Further, as shown in FIG. 9D, when the record of the file management data recorded in the directory area is updated to link the
[0093]
In the video camera 21, as in the case of such a file head, AV data of a predetermined amount of data is recorded in the AV data area from the head of a portion where the continuity of the cluster is lost in one file. . Further, AV data in this AV data area is held in the
[0094]
When the
[0095]
FIG. 11B is a chart showing the linked file information area by the linked file information formed in the
[0096]
Thus, in this embodiment, after the
[0097]
Note that the concatenated file information formed in this way can also be created by describing the first cluster number of the file to be subsequently played back using the last cluster number of each file as a key, as shown in FIG. . In this case, when the
[0098]
(1-3) Effects of the first embodiment
According to the above configuration, When the cluster numbers are not consecutive, data for a certain time is recorded in the memory, and the subsequent data is recorded on the recording medium, During the time required for seeking, No Mo To The retained data can be output, and then the reproduced data from the
[0099]
Further, since the head portion recorded in the AV data memory is the head portion of the file, when seeking to the head of the file, the AV data held in the AV data memory is output during the seek. Thus, a decrease in access speed due to seeking can be effectively avoided. As a result, it is possible to output the AV data of the desired file immediately after instructing the file reproduction, and when reproducing a plurality of files sequentially in various orders, the AV data is not interrupted between successive files. Can be output.
[0100]
In addition, when the head portion recorded in the AV data memory in this way is the head cluster that continues after the recording to the continuous cluster is interrupted, the seek is stopped even when the continuity of the cluster is interrupted. Therefore, it is possible to effectively avoid a decrease in access speed due to the AV data, and thereby output AV data without interruption.
[0101]
In addition, by reproducing the AV data held in the AV data memory from the
[0102]
In addition, since such timing is at the time of startup, it is possible to reliably execute these processes for existing files recorded on the
[0103]
In addition, since the predetermined timing is after the recording of one file to the
[0104]
In addition, by recording AV data to be recorded in the AV data memory in the AV data area that is a predetermined area of the
[0105]
(2) Second embodiment
The video camera according to this embodiment operates individual files by editing processing. The configuration of the video camera according to this embodiment is the same as the configuration described above with reference to FIG. 1 except that the
[0106]
That is, in this embodiment, the
[0107]
In these processes, the
[0108]
That is, when one file is divided into a plurality of files, the AV data at the head of each divided file is recorded in the AV data area and
[0109]
In addition, when a single file is created by combining a plurality of files, in this case, the continuity of the cluster is interrupted at the beginning of each file before combining, so that there is no AV data area. The recording of the
[0110]
On the other hand, when the file is partially erased and the continuity of the cluster is interrupted by the erase, the AV data at the head part following the erased part is recorded in the AV data area and the
[0111]
With these processes, in this embodiment, even when an editing operation for manipulating individual files is executed, a decrease in access speed due to seeking is effectively avoided.
[0112]
That is, as shown in FIGS. 13 and 14 in comparison with FIGS. 11 and 12, when files 1 to 5 are continuously recorded on the hard disk 24 (FIGS. 13A and 13B), 2 is deleted (respective portions of the
[0113]
As shown in FIG. 13C, when the
[0114]
On the other hand, as shown in FIG. 13D, when the
[0115]
According to this embodiment, in the editing process for manipulating individual files, the
[0116]
(3) Third embodiment
FIG. 15 is a block diagram showing a video camera 41 according to the third embodiment of the present invention. In this video camera 41, the same configurations as those of the video camera described above with reference to FIGS. 1 and 24 are indicated by the corresponding reference numerals, and redundant description is omitted.
[0117]
In this video camera 41, an
[0118]
Here, in the
[0119]
As shown in FIG. 17 mainly showing the flow of AV data, the
[0120]
In this processing, the
[0121]
In the
[0122]
For the subsequent AV data, a free area in the data area is detected by a similar record search in the
[0123]
When the
[0124]
In these processes, the
[0125]
That is, FIGS. 18 and 19 are flowcharts showing a processing procedure at the time of writing. The
[0126]
When the free cluster address is detected in this way, the
[0127]
In the subsequent step SP75, the
[0128]
As a result, the hard disk drive 43 stores the AV data at the head of the file in the
[0129]
Subsequently, in step SP81, the
[0130]
Thus, in the head cluster of the write command issued in step SP81 in this way, the hard disk drive 43 has already waited for the start of recording by the seek command in step SP75. As a result, the video camera 41 can effectively avoid a decrease in access speed due to seeking at the start of recording.
[0131]
When the hard disk drive 43 completes the recording of the data transmitted from the
[0132]
Thus, the
[0133]
When the processing proceeds to step SP87 in this way, the
[0134]
Further, in step SP88, a seek occurs when recording to the cluster detected in step SP87 is started by determining whether or not the cluster number is continuous with the previously recorded AV data area. Judge whether to do. If a negative result is obtained here, the
[0135]
Thus, the
[0136]
Accordingly, in this case as well, in the head cluster of the write command issued in step SP81, the hard disk drive 43 has already waited for the start of recording by the seek command in step SP75. As a result, the video camera 41 can effectively avoid a decrease in the access speed due to the seek even when seek is performed due to the continuity of the area in which the AV data is recorded on the
[0137]
When the
[0138]
On the other hand, FIGS. 20 to 22 are flowcharts showing a processing procedure during reproduction. In this case, the
[0139]
When detecting the head cluster number, the
[0140]
Subsequently, in step SP104, the
[0141]
As a result, in the hard disk drive 43, the address set in this command is set to the address of the
[0142]
In the subsequent step SP109, the
[0143]
Here, the
[0144]
Thus, in this hard disk drive 43, the AV data is reproduced from the corresponding cluster in the subsequent step SP113 without executing any seek processing by this command, and this AV data is stored in the
[0145]
Thus, in this video camera 21, when AV data is recorded in a continuous cluster, the processing procedure of steps SP109-SP110-SP111-SP112-SP113-SP114-SP115-SP116-SP109 is repeated to obtain predetermined data. The AV data is reproduced from the data area of the
[0146]
On the other hand, if the continuity of such clusters is interrupted, an affirmative result is obtained in step SP111, whereby the
[0147]
In the subsequent step SP118, the
[0148]
When returning to step SP108, the
[0149]
In this way, in the head cluster of the read command issued in step SP112 in this way, in this case, the hard disk drive 43 has already waited for the start of reproduction by the seek command in step SP119. As a result, the video camera 41 can effectively avoid a decrease in the access speed due to the seek even when seek is performed due to the continuity of the area in which the AV data is recorded on the
[0150]
When these processes are repeated and the end of the file to be reproduced is approached, EOF is included in the FAT area recording detected by accessing the
[0151]
Here, the
[0152]
On the other hand, if a negative result is obtained in step SP124, the
[0153]
According to the configuration shown in FIG. 15, by configuring the AV data memory by a nonvolatile memory, the process of transferring the recording of the AV data area to the
[0154]
At this time, by managing the memory and the data area of the hard disk with management data by continuous cluster addresses, on the hard disk drive side, the data recorded in the memory by the determination of the address set in the command, By simply processing the data reproduced from the recording medium selectively to the device related to the command, wasteful power consumption can be effectively avoided and the desired file data can be immediately output. In the host device, these processes can be executed by simple address management.
[0155]
Further, by recording AV data in the AV data memory and recording subsequent data in the
[0156]
(4) Fourth embodiment
In the video camera according to this embodiment, the index image for cueing is also recorded on the hard disk. Since this video camera has the same configuration as that of the video camera of FIG. 15 except that the configuration related to the index image processing is different, the configuration of FIG. 15 will be used here for explanation.
[0157]
In this video camera, the
[0158]
The
[0159]
As a result, in this embodiment, the beginning of playback for cueing set in the middle of the file is also recorded in the
[0160]
(5) Other embodiments
In the above-described embodiment, the case where one AV data area is set for the entire data area of the hard disk has been described. However, the present invention is not limited to this and is shown in FIG. 23 in comparison with FIG. As described above, the data area may be divided into a plurality of areas, and an AV data area may be provided for each area. In this way, it is possible to simplify the process of searching for a connected cluster with the AV data area and the process of detecting an empty area in each area.
[0161]
In the above-described fourth embodiment, the case where the index is set by operating the trigger switch has been described. However, the present invention is not limited to this, and is widely applied to the case where the index is set by the user's setting. be able to.
[0162]
In the first and second embodiments described above, the case where the consistency between the recording of the AV data memory and the recording of the AV data area is described after the recording of one file is completed has been described. The present invention is not limited to this, and these processes may be executed simultaneously with the recording of AV data on the hard disk.
[0163]
Further, in the above-described embodiment, the case of editing processing by processing of individual files and the case of editing processing by setting the playback order of files have been described. However, the present invention is not limited to this, and the editing list is not limited to this. It can be widely applied to editing processing by setting points and out points. In this case, since it is necessary to seek at the place set to the IN point, the AV data is reproduced in advance for such a place on the host device side according to the record of the edit list. It is possible to record in memory.
[0164]
Further, in the above-described embodiment, the case where AV data for one frame (33 [msec]) is recorded in the AV data memory has been described. However, the present invention is not limited to this, and this time is appropriately set as necessary. Can be set.
[0165]
In the above-described embodiment, the case where the present invention is applied to a hard disk device using an MS-DOS compatible file system has been described. However, the present invention is not limited to this, and is widely applied to hard disk devices using various file management systems. be able to. The present invention is not limited to such a hard disk device, and can be widely applied to various recording / reproducing devices such as an optical disk and a magneto-optical disk that require seeking.
[0166]
【The invention's effect】
As described above, according to the present invention, When the cluster numbers are not consecutive, data for a certain time is recorded in the memory, and the subsequent data is recorded on the recording medium, It is possible to effectively avoid a decrease in access speed due to seeking. As a result, AV data can be accessed at high speed, and a plurality of AV streams can be recorded and reproduced simultaneously, and editing, dubbing, etc. can be executed without interruption.
[Brief description of the drawings]
FIG. 1 is a block diagram showing a video camera according to a first embodiment of the present invention.
FIG. 2 is a chart for explaining a recording area in the video camera of FIG. 1;
FIG. 3 is a flowchart showing a processing procedure when the video camera of FIG. 1 is started up.
4 is a flowchart showing a processing procedure at the time of writing in the video camera of FIG. 1. FIG.
FIG. 5 is a flowchart showing a processing procedure continued from FIG. 4;
6 is a flowchart showing a processing procedure at the time of reading in the video camera of FIG. 1;
FIG. 7 is a flowchart showing a processing procedure continued from FIG. 6;
FIG. 8 is a flowchart showing a processing procedure continued from FIG. 7;
FIG. 9 is a chart for explaining editing work.
FIG. 10 is a chart for explaining reproduction by comparison with FIG. 9;
FIG. 11 is a chart for explaining file information indicating a connection relationship between files;
FIG. 12 is a chart for explaining another example of file information indicating a connection relationship between files;
FIG. 13 is a chart for explaining file processing in the video camera according to the second embodiment of the present invention;
FIG. 14 is a chart used for explaining reproduction by comparison with FIG. 13;
FIG. 15 is a block diagram showing a video camera according to a third embodiment of the present invention.
16 is a chart for explaining recording areas in the video camera of FIG. 15;
17 is a block diagram showing in detail a hard disk drive in the video camera of FIG.
18 is a flowchart showing a processing procedure at the time of writing in the video camera of FIG.
FIG. 19 is a flowchart showing a processing procedure continued from FIG. 18;
20 is a flowchart showing a processing procedure at the time of reading in the video camera of FIG.
FIG. 21 is a flowchart showing a processing procedure continued from FIG. 20;
22 is a flowchart showing a processing procedure continued from FIG. 21. FIG.
FIG. 23 is a chart for explaining a recording area according to another example.
FIG. 24 is a block diagram showing a system using a conventional hard disk drive.
FIG. 25 is a chart showing a recording format in a conventional hard disk.
26 is a chart showing data recorded in the directory area of FIG. 25. FIG.
27 is a chart showing codes recorded in the FAT area of FIG. 25. FIG.
[Explanation of symbols]
1, 23, 43 ... Hard disk drive, 2, 22, 42 ... Host device, 3, 24, 44 ... Hard disk, 7, 27, 47 ... Interface control circuit, 12, 31, 52 ...
Claims (7)
前記ディスク状記録媒体は、
前記連続するデータを記録する領域の管理用データを管理用データの記録領域に記録して保持し、
前記情報処理装置は、
前記ディスク状記録媒体に前記連続するデータを記録し、前記ディスク状記録媒体に記録された前記連続するデータを再生する記録再生部と、
前記連続するデータを記録するメモリと、
前記記録再生部、前記メモリを制御する制御部とを有し、
前記制御部は、
前記記録再生部を介して前記管理用データの記録領域から得られる前記管理用データに基づいて、前記クラスタ単位で、空き領域、記録されたデータのファイルを検出し、該検出結果に基づいた前記記録再生部、前記メモリの制御により、
クラスタ番号の連続する前記空き領域に順次前記連続したデータを記録して、前記空き領域の前記クラスタ番号が連続しなくなった箇所では、一定時間分、前記連続するデータを前記メモリに記録し、続く空き領域に前記連続するデータの続きを記録すると共に、該連続するデータの記録に対応するように前記管理用データを更新し、
再生時、前記クラスタ番号の連続する前記空き領域に記録した前記連続するデータを再生した後、前記メモリに記録したデータを再生し、続いて前記続く空き領域に記録したデータを再生して出力する
ことを特徴とする情報処理装置。In an information processing apparatus that detects an empty area of a disk-shaped recording medium and records continuous data on a disk-shaped recording medium in units of clusters based on the detection result.
The disc-shaped recording medium is
The management data of the area for recording the continuous data is recorded and held in the management data recording area,
The information processing apparatus includes:
A recording / reproducing unit that records the continuous data on the disc-shaped recording medium and reproduces the continuous data recorded on the disc-shaped recording medium;
A memory for recording the continuous data;
The recording / reproducing unit, and a control unit for controlling the memory,
The controller is
Based on the management data obtained from the management data recording area via the recording / playback unit, the cluster unit detects a free area and a file of recorded data, and based on the detection result, By controlling the recording / playback unit and the memory,
And records data sequentially the continuous to the empty area contiguous cluster number, the location where the cluster number is no longer continuous of the free space, a predetermined time period, and records the data to which the continuous to the memory, followed by The continuation of the continuous data is recorded in an empty area , and the management data is updated so as to correspond to the recording of the continuous data,
At the time of reproduction, after reproducing the continuous data recorded in the free space where the cluster numbers are continuous, the data recorded in the memory is reproduced, and then the data recorded in the subsequent free space is reproduced and output. An information processing apparatus characterized by that.
前記記録再生部、前記メモリの制御により、
ファイルの先頭部分のデータを前記メモリに記録し、続く連続するデータを前記ディスク状記録媒体に記録する
ことを特徴とする請求項1に記載の情報処理装置。 The controller is
By controlling the recording / playback unit and the memory,
The information processing apparatus according to claim 1, wherein data at a head portion of a file is recorded in the memory, and subsequent continuous data is recorded in the disk-shaped recording medium.
前記メモリに保持するデータと同一のデータを纏めて記録する領域と、
前記メモリに保持するデータを除くデータを記録する領域とが設けられ、
前記制御部は、
前記記録再生部、前記メモリの制御により、
前記メモリに保持するデータを前記纏めて記録する領域に記録した後、前記連続したデータの記録の完了により、前記纏めて記録する領域に記録したデータを再生して、前記メモリに記録する
ことを特徴とする請求項1に記載の情報処理装置。The disc-shaped recording medium is
An area for collectively recording the same data as the data held in the memory;
An area for recording data excluding data held in the memory is provided,
The controller is
By controlling the recording / playback unit and the memory,
Recording the data held in the memory in the area to be collectively recorded, and then reproducing the data recorded in the area to be collectively recorded upon completion of recording of the continuous data and recording the data in the memory. The information processing apparatus according to claim 1.
ことを特徴とする請求項1に記載の情報処理装置。The information processing apparatus according to claim 1, wherein the memory is a non-volatile memory.
クラスタ番号の連続する前記空き領域に順次前記連続したデータを記録して、前記空き領域の前記クラスタ番号が連続しなくなった箇所では、一定時間分、前記連続するデータをメモリに記録し、続く空き領域に前記連続するデータの続きを記録するデータ記録のステップと、
再生時、前記クラスタ番号の連続する前記空き領域に記録した前記連続するデータを再生した後、前記メモリに記録したデータを再生し、続いて前記続く空き領域に記録したデータを再生して出力するデータ再生のステップと
を有することを特徴とする情報処理装置の制御方法。In a control method for an information processing apparatus that detects an empty area of a disk-shaped recording medium and records continuous data on a disk-shaped recording medium in units of clusters based on the detection result.
The continuous data is sequentially recorded in the free space where the cluster numbers are continuous, and the continuous data is recorded in the memory for a certain period of time when the cluster number of the free space is not continuous. A data recording step of recording a continuation of the continuous data in an area;
At the time of reproduction, after reproducing the continuous data recorded in the empty area where the cluster numbers are continuous, the data recorded in the memory is reproduced, and then the data recorded in the subsequent empty area is reproduced and output. A method for controlling an information processing apparatus, comprising: a step of reproducing data.
クラスタ番号の連続する前記空き領域に順次前記連続したデータを記録して、前記空き領域の前記クラスタ番号が連続しなくなった箇所では、一定時間分、前記連続するデータをメモリに記録し、続く空き領域に前記連続するデータの続きを記録するデータ記録のステップと、
再生時、前記クラスタ番号の連続する前記空き領域に記録した前記連続するデータを再生した後、前記メモリに記録したデータを再生し、続いて前記続く空き領域に記録したデータを再生して出力するデータ再生のステップと
を有することを特徴とする情報処理装置の制御プログラム。In a control program for an information processing apparatus that detects an empty area of a disk-shaped recording medium and records continuous data on a disk-shaped recording medium in units of clusters based on the detection result.
The continuous data is sequentially recorded in the free space where the cluster numbers are continuous, and the continuous data is recorded in the memory for a certain period of time when the cluster number of the free space is not continuous. A data recording step of recording a continuation of the continuous data in an area;
At the time of reproduction, after reproducing the continuous data recorded in the free space where the cluster numbers are continuous, the data recorded in the memory is reproduced, and then the data recorded in the subsequent free space is reproduced and output. A control program for an information processing apparatus, comprising: a data reproduction step.
前記制御プログラムは、
クラスタ番号の連続する前記空き領域に順次前記連続したデータを記録して、前記空き領域の前記クラスタ番号が連続しなくなった箇所では、一定時間分、前記連続するデータをメモリに記録し、続く空き領域に前記連続するデータの続きを記録するデータ記録のステップと、
再生時、前記クラスタ番号の連続する前記空き領域に記録した前記連続するデータを再生した後、前記メモリに記録したデータを再生し、続いて前記続く空き領域に記録したデータを再生して出力するデータ再生のステップと
を有することを特徴とする情報処理装置の制御プログラムを記録した記録媒体。In a recording medium that records a control program of an information processing apparatus that detects an empty area of a disk-shaped recording medium and records continuous data on the disk-shaped recording medium in units of clusters based on the detection result.
The control program is
The continuous data is sequentially recorded in the free space where the cluster numbers are continuous, and the continuous data is recorded in the memory for a certain period of time when the cluster number of the free space is not continuous. A data recording step of recording a continuation of the continuous data in an area;
At the time of reproduction, after reproducing the continuous data recorded in the empty area where the cluster numbers are continuous, the data recorded in the memory is reproduced, and then the data recorded in the subsequent empty area is reproduced and output. A recording medium on which a control program for an information processing apparatus is recorded.
Priority Applications (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2001320110A JP3770138B2 (en) | 2001-10-18 | 2001-10-18 | Information processing apparatus, information processing apparatus control method, information processing apparatus control program, and recording medium recording information processing apparatus control program |
| US10/262,219 US7747144B2 (en) | 2001-10-01 | 2002-09-30 | Information processing apparatus, information processing method, recording medium, control |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2001320110A JP3770138B2 (en) | 2001-10-18 | 2001-10-18 | Information processing apparatus, information processing apparatus control method, information processing apparatus control program, and recording medium recording information processing apparatus control program |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JP2003125358A JP2003125358A (en) | 2003-04-25 |
| JP3770138B2 true JP3770138B2 (en) | 2006-04-26 |
Family
ID=19137549
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2001320110A Expired - Fee Related JP3770138B2 (en) | 2001-10-01 | 2001-10-18 | Information processing apparatus, information processing apparatus control method, information processing apparatus control program, and recording medium recording information processing apparatus control program |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP3770138B2 (en) |
Families Citing this family (12)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US7127549B2 (en) * | 2004-02-04 | 2006-10-24 | Sandisk Corporation | Disk acceleration using first and second storage devices |
| JP2005266871A (en) * | 2004-03-16 | 2005-09-29 | Ultra X:Kk | Computer device having diagnosing/erasing function of hard disk device and its mother board |
| KR100646301B1 (en) | 2004-03-19 | 2006-11-23 | 가부시키가이샤 히타치세이사쿠쇼 | Data recording and reproducing device, memory device and file access method |
| JP2005302152A (en) * | 2004-04-12 | 2005-10-27 | Sony Corp | COMPOSITE STORAGE DEVICE, DATA WRITE METHOD, AND PROGRAM |
| JP4735100B2 (en) | 2005-03-08 | 2011-07-27 | ソニー株式会社 | Composite storage device, data processing method, and program |
| WO2006095868A1 (en) * | 2005-03-11 | 2006-09-14 | Pioneer Corporation | Content data transmission device, content data transmission method, and remote reproduction system |
| JP4736593B2 (en) * | 2005-07-25 | 2011-07-27 | ソニー株式会社 | Data storage device, data recording method, recording and / or reproducing system, and electronic device |
| JP2007034537A (en) * | 2005-07-25 | 2007-02-08 | Sony Corp | COMPOSITE STORAGE DEVICE, DATA WRITE METHOD, AND PROGRAM |
| EP1990956A4 (en) | 2006-03-01 | 2013-07-17 | Mitsubishi Electric Corp | GATEWAY DEVICE |
| JP2009110612A (en) * | 2007-10-31 | 2009-05-21 | Panasonic Corp | Recording / playback device |
| JP2009163516A (en) * | 2008-01-07 | 2009-07-23 | Hitachi Ltd | Information recording / reproducing apparatus, control method therefor, and program |
| JP4988653B2 (en) * | 2008-06-13 | 2012-08-01 | 株式会社日立製作所 | Disk array recording apparatus and recording control method therefor |
-
2001
- 2001-10-18 JP JP2001320110A patent/JP3770138B2/en not_active Expired - Fee Related
Also Published As
| Publication number | Publication date |
|---|---|
| JP2003125358A (en) | 2003-04-25 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP3629216B2 (en) | Disk storage system having defragmentation function, and defragmentation method in the same system | |
| JP4736593B2 (en) | Data storage device, data recording method, recording and / or reproducing system, and electronic device | |
| JP3888569B2 (en) | Disk unit | |
| JP3770138B2 (en) | Information processing apparatus, information processing apparatus control method, information processing apparatus control program, and recording medium recording information processing apparatus control program | |
| US20110122759A1 (en) | Data Recording Apparatus and System Having Sustained High Transfer Rates | |
| JP2002150699A (en) | Information processing apparatus, information processing method, and recording medium recording information processing method | |
| EP1164590A2 (en) | Information playback apparatus, information processing method and information recording medium | |
| JP3940902B2 (en) | Information processing apparatus, information processing apparatus control method, information processing apparatus control program, and recording medium recording information processing apparatus control program | |
| JP4106702B2 (en) | Information processing apparatus, data recording / reproducing method, program for data recording / reproducing method, and recording medium recording program for data recording / reproducing method | |
| JP4066447B2 (en) | Information processing apparatus and data processing method | |
| JP4496790B2 (en) | Data storage device and method, and recording / reproducing system | |
| JP3601702B2 (en) | Information processing apparatus and information processing method | |
| JP3994306B2 (en) | Information processing apparatus and information recording medium access method | |
| JP2000285590A (en) | Disk unit | |
| JP4304569B2 (en) | DATA STORAGE DEVICE, DATA STORAGE DEVICE CONTROL METHOD, DATA STORAGE DEVICE CONTROL PROGRAM, AND RECORDING MEDIUM CONTAINING DATA STORAGE DEVICE CONTROL PROGRAM | |
| JP2004030233A (en) | Data processing device, data processing method, program for data processing method, and recording medium recording program for data processing method | |
| JP2003030927A (en) | Information processing apparatus and information processing method | |
| JP2003115161A (en) | Information processing apparatus and information processing method | |
| JPS6134773A (en) | Information recording system | |
| JP2000285640A (en) | Information recording / reproducing device | |
| JP2002008349A (en) | Information processing apparatus and information processing method | |
| JP3799066B2 (en) | Recording device | |
| JP2001282588A (en) | File management device | |
| JP2001325135A (en) | Device and method for storing/reproducing data | |
| JP2003123379A (en) | Information processing apparatus, control method for information processing apparatus, control program for information processing apparatus, and recording medium storing control program for information processing apparatus |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20050729 |
|
| A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20050809 |
|
| A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20051005 |
|
| A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20051128 |
|
| A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20051213 |
|
| TRDD | Decision of grant or rejection written | ||
| A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 20060117 |
|
| A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20060130 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20100217 Year of fee payment: 4 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20100217 Year of fee payment: 4 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20110217 Year of fee payment: 5 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20120217 Year of fee payment: 6 |
|
| LAPS | Cancellation because of no payment of annual fees |