JP5489818B2 - Recording / reproducing apparatus and control method thereof - Google Patents

Recording / reproducing apparatus and control method thereof Download PDF

Info

Publication number
JP5489818B2
JP5489818B2 JP2010076202A JP2010076202A JP5489818B2 JP 5489818 B2 JP5489818 B2 JP 5489818B2 JP 2010076202 A JP2010076202 A JP 2010076202A JP 2010076202 A JP2010076202 A JP 2010076202A JP 5489818 B2 JP5489818 B2 JP 5489818B2
Authority
JP
Japan
Prior art keywords
file
management table
recording medium
memory
stored
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.)
Active
Application number
JP2010076202A
Other languages
Japanese (ja)
Other versions
JP2011209949A (en
Inventor
隆一 石栗
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Canon Inc
Original Assignee
Canon Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Canon Inc filed Critical Canon Inc
Priority to JP2010076202A priority Critical patent/JP5489818B2/en
Publication of JP2011209949A publication Critical patent/JP2011209949A/en
Application granted granted Critical
Publication of JP5489818B2 publication Critical patent/JP5489818B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

本発明は、記録再生装置及びその制御方法に関する。   The present invention relates to a recording / reproducing apparatus and a control method thereof.

従来、メモリカードやディスク媒体などのランダムアクセス記録媒体に対し、データをファイルとして記録する記録装置が知られている。記録装置においては、記録媒体に記録されたファイルを、FAT(File Allocation Table)ファイルシステム等のファイルシステムに従って管理している。   2. Description of the Related Art Conventionally, a recording apparatus that records data as a file on a random access recording medium such as a memory card or a disk medium is known. In a recording apparatus, files recorded on a recording medium are managed according to a file system such as a FAT (File Allocation Table) file system.

FATファイルシステムでは、管理情報を用いて記録媒体に記録したファイルを管理している。そして、従来、記録装置においては、一旦、管理情報を記録媒体から読み出して内部の管理情報用のメモリ(キャッシュメモリ)に保持する。そして、記録媒体に対するファイルの記録や削除の際に、メモリに保持しておいた管理情報を変更した後、記録媒体に書き込むことにより、管理情報を更新している(例えば特許文献1参照)。   In the FAT file system, files recorded on a recording medium are managed using management information. Conventionally, in a recording apparatus, management information is once read from a recording medium and stored in an internal management information memory (cache memory). Then, when recording or deleting a file on the recording medium, the management information held in the memory is changed and then written to the recording medium to update the management information (see, for example, Patent Document 1).

特開平07−121311号公報JP 07-121311 A

近年、ビデオカメラなど、動画などの大きなサイズのファイルを扱う記録装置が登場している。ファイルのサイズが大きくなると、管理情報のサイズも比例して大きくなる。例えば、サイズが大きいファイルを削除する際には、管理情報を記憶するために大容量のメモリが必要になり、装置のコストの上昇、或いは、回路規模の増大を招く。   In recent years, recording devices that handle large-sized files such as moving images have appeared. As the file size increases, the size of the management information also increases proportionally. For example, when deleting a file having a large size, a large-capacity memory is required to store management information, leading to an increase in the cost of the apparatus or an increase in the circuit scale.

本発明はかかる問題を解決することを目的とする。また、本発明は、大容量のメモリを用意することなく、大きなサイズのファイルを管理することを目的とする。   The present invention aims to solve this problem. Another object of the present invention is to manage a large size file without preparing a large capacity memory.

本発明の一側面によれば、複数のクラスタを有する記録媒体に対し、ファイルと、前記ファイルのファイルサイズを示すディレクトリ情報と、前記記録媒体における各クラスタの使用状態を示す管理テーブルとを記録し、前記記録媒体から前記ディレクトリ情報及び前記管理テーブルを読み出し、読み出した前記ディレクトリ情報及び前記管理テーブルに基づき前記記録媒体から前記ファイルを読み出して再生する記録媒体制御手段と、前記記録媒体から読み出された前記ディレクトリ情報及び前記管理テーブルを記憶するメモリと、前記記録媒体に記録されたファイルの削除指示に応じて、前記メモリに記憶されたディレクトリ情報及び管理テーブルを変更し、該変更したディレクトリ情報及び管理テーブルを前記記録媒体制御手段により前記記録媒体に記録させる制御部とを備え、前記制御部は、前記削除指示に係るファイルのディレクトリ情報を前記記録媒体から読み出して前記メモリに記憶させた後に、前記削除指示に係るファイルの管理テーブルの一部を前記メモリに記憶することができない場合、該管理テーブルのうち前記メモリに記憶可能な部分のサイズに基づいて前記メモリに記憶されたディレクトリ情報が示すファイルサイズを変更して前記記録媒体に記録させると共に、前記削除指示に係るファイルの管理テーブルのうち前記メモリに記憶可能な部分を前記記録媒体から読み出して前記メモリに記憶させ、前記メモリに記憶した当該部分の管理テーブルを未使用状態に変更して前記記録媒体に記録させることを特徴とする記録再生装置が提供される。   According to one aspect of the present invention, a file, directory information indicating the file size of the file, and a management table indicating a use state of each cluster on the recording medium are recorded on a recording medium having a plurality of clusters. Reading the directory information and the management table from the recording medium, reading the file from the recording medium based on the read directory information and the management table, and reproducing the file, and reading from the recording medium A memory for storing the directory information and the management table, and changing the directory information and the management table stored in the memory in response to an instruction to delete the file recorded on the recording medium. Management table by the recording medium control means A control unit for recording on a recording medium, wherein the control unit reads directory information of the file related to the deletion instruction from the recording medium and stores it in the memory, and then stores the file management table related to the deletion instruction. If a part of the storage table cannot be stored in the memory, the file size indicated by the directory information stored in the memory is changed based on the size of the part of the management table that can be stored in the memory. A portion that can be stored in the memory in the management table of the file related to the delete instruction, read from the recording medium, and stores the management table of the portion stored in the memory in an unused state. The recording / reproducing apparatus is characterized in that the recording / reproducing apparatus is recorded on the recording medium.

本発明によれば、大容量のメモリを用いることなく、大きなサイズのファイルを確実に消去、或いは管理することが可能となる。   According to the present invention, a large-sized file can be reliably deleted or managed without using a large-capacity memory.

実施形態におけるビデオカメラの構成を示すブロック図。The block diagram which shows the structure of the video camera in embodiment. 実施形態における管理情報の様子を示す図。The figure which shows the mode of the management information in embodiment. 実施形態におけるファイル削除処理を示すフローチャート。The flowchart which shows the file deletion process in embodiment. 実施形態における短縮削除処理を示すフローチャート。The flowchart which shows the shortening deletion process in embodiment. 実施形態における短縮削除処理を示すフローチャート。The flowchart which shows the shortening deletion process in embodiment.

以下、図面を参照して本発明の好適な実施形態について詳細に説明する。なお、本発明は以下の実施形態に限定されるものではなく、本発明の実施に有利な具体例を示すにすぎない。また、以下の実施形態の中で説明されている特徴の組み合わせの全てが本発明の課題解決のために必須のものであるとは限らない。   DESCRIPTION OF EMBODIMENTS Hereinafter, preferred embodiments of the present invention will be described in detail with reference to the drawings. In addition, this invention is not limited to the following embodiment, It shows only the specific example advantageous for implementation of this invention. Moreover, not all combinations of features described in the following embodiments are indispensable for solving the problems of the present invention.

図1は本発明の実施形態における記録再生装置の一例であるビデオカメラ100の構成を示すブロック図である。図1において、撮像部101は被写体を撮影して動画信号を出力する。バッファメモリ102はビデオカメラ100の各部で処理される動画信号を記憶するためのメモリである。信号処理部103は、記録時においては、撮影された動画信号に対してMPEG等の公知の符号化処理を施して圧縮する他、必要な処理を施す。また、信号処理部103は、再生時においては、再生された動画信号を復号する他、必要な処理を施す。表示制御部104は、撮影時には撮影された動画信号による動画像を表示部105に表示し、再生時には再生された動画信号による動画像を表示部105に表示する。また、表示制御部104は、CPU107からの指示により、メニュー画面や各種の必要な情報を表示部105に表示する。表示部105は、液晶パネルとその駆動回路等を含み、動画像や各種の情報を表示する。出力部106は、撮像部101により撮影された動画信号や再生された動画信号を外部の表示装置などに出力する。   FIG. 1 is a block diagram showing a configuration of a video camera 100 which is an example of a recording / reproducing apparatus according to an embodiment of the present invention. In FIG. 1, an imaging unit 101 captures a subject and outputs a moving image signal. The buffer memory 102 is a memory for storing a moving image signal processed by each unit of the video camera 100. At the time of recording, the signal processing unit 103 performs a necessary process in addition to compressing a captured moving image signal by performing a known encoding process such as MPEG. Further, the signal processing unit 103 performs necessary processing in addition to decoding the reproduced moving image signal during reproduction. The display control unit 104 displays a moving image based on the captured moving image signal on the display unit 105 during shooting, and displays a moving image based on the reproduced moving image signal on the display unit 105 during playback. Further, the display control unit 104 displays a menu screen and various necessary information on the display unit 105 in accordance with an instruction from the CPU 107. The display unit 105 includes a liquid crystal panel and its drive circuit, and displays moving images and various types of information. The output unit 106 outputs the moving image signal photographed by the imaging unit 101 and the reproduced moving image signal to an external display device or the like.

CPU107は操作部108から受け付けた指示に従い、ビデオカメラ100の各部を制御する。操作部108は、電源ボタンやモード切り替えボタン、メニューボタンなど、各種の操作スイッチを備えている。ユーザは操作部108を操作することにより、動画の撮影や再生、削除等を指示する。管理情報メモリ109は、後述のように、記録媒体113から読み出した管理情報を一時的に記憶するメモリである。ファイルシステム部110は、記録媒体113に記録するデータを管理する。転送制御部111は、CPU107或いはファイルシステム部110からの指示に従い、記録媒体制御部112に対して記録すべきデータを送信すると共に、記録媒体制御部112から読み出されたデータを各部に出力する。記録媒体制御部112は、CPU107或いはファイルシステム部110からの指示に従い、記録媒体113に対して管理情報やデータを書き込み、また、読み出す。本実施形態では、記録媒体制御部112はATA等の公知のインターフェイスに従い、コマンドやデータを送受信する。記録媒体113は、フラッシュメモリなどのランダムアクセス記録媒体である。なお、本実施形態においては、記録媒体113はフラッシュメモリカードであり、不図示の装着、排出機構により、ビデオカメラ100に対して記録媒体113が自由に装着、排出できるものとする。バス114は、各部の間で動画信号や各種の必要なデータを送受信する。   The CPU 107 controls each unit of the video camera 100 in accordance with an instruction received from the operation unit 108. The operation unit 108 includes various operation switches such as a power button, a mode switching button, and a menu button. The user operates the operation unit 108 to instruct shooting, reproduction, deletion, and the like of moving images. The management information memory 109 is a memory that temporarily stores management information read from the recording medium 113 as described later. The file system unit 110 manages data to be recorded on the recording medium 113. The transfer control unit 111 transmits data to be recorded to the recording medium control unit 112 in accordance with an instruction from the CPU 107 or the file system unit 110, and outputs the data read from the recording medium control unit 112 to each unit. . The recording medium control unit 112 writes and reads management information and data to and from the recording medium 113 according to instructions from the CPU 107 or the file system unit 110. In this embodiment, the recording medium control unit 112 transmits and receives commands and data according to a known interface such as ATA. The recording medium 113 is a random access recording medium such as a flash memory. In the present embodiment, the recording medium 113 is a flash memory card, and the recording medium 113 can be freely attached to and ejected from the video camera 100 by an unillustrated attachment / ejection mechanism. The bus 114 transmits and receives moving image signals and various necessary data between the respective units.

次に、ビデオカメラ100における記録再生処理について説明する。
まず、記録時の処理を説明する。ユーザが操作部108を操作してビデオカメラ100の電源を投入すると、CPU107はビデオカメラ100を撮影モードに設定し、撮像部101に対して動画の撮影を開始するよう指示する。撮像部101は動画信号を出力し、バッファメモリ102に順次記憶する。また、CPU107は、表示制御部104に対し、バッファメモリ102から動画信号を読み出して、表示部105に表示させる。このような撮影待機状態において、ユーザが操作部108を操作して記録開始を指示すると、CPU107は、信号処理部103に対して動画信号の符号化処理を実行させる。信号処理部103は、バッファメモリ102から動画信号を読み出して符号化し、再びバッファメモリ102に記憶する。
Next, recording / playback processing in the video camera 100 will be described.
First, processing during recording will be described. When the user operates the operation unit 108 to turn on the video camera 100, the CPU 107 sets the video camera 100 to a shooting mode and instructs the imaging unit 101 to start shooting a moving image. The imaging unit 101 outputs moving image signals and sequentially stores them in the buffer memory 102. Further, the CPU 107 reads out the moving image signal from the buffer memory 102 and causes the display control unit 104 to display the moving image signal on the display unit 105. In such a shooting standby state, when the user operates the operation unit 108 to instruct recording start, the CPU 107 causes the signal processing unit 103 to execute a video signal encoding process. The signal processing unit 103 reads and encodes the moving image signal from the buffer memory 102 and stores the encoded video signal in the buffer memory 102 again.

CPU107は、バッファメモリ102に記憶された、符号化動画信号のデータ量を監視している。ここで、所定量の符号化動画信号がバッファメモリ102に記憶されると、ファイルシステム部110及び記録媒体制御部112に対して、バッファメモリ102から符号化動画信号を読み出して記録するよう指示する。本実施形態では、記録媒体113に対して記録可能なデータレートは、符号化動画信号のデータレートよりも大きい。そのため、記録媒体制御部112により符号化動画信号の記録を開始した後、バッファメモリ102に記憶された符号化動画信号のデータ量が閾値以下となると、いったん記録媒体113に対する符号化動画信号の書き込みを停止する。その後、再度所定量の符号化動画信号がバッファメモリ102に記憶されると、記録媒体113に対する書き込みを開始する。このように、記録媒体113に対して間欠的に動画信号を記録する。そして、操作部108により記録停止の指示があると、CPU107は、ファイルシステム部110と記録媒体制御部112に対して動画信号の記録停止を指示すると共に、信号処理部103による符号化処理を停止する。本実施形態では、ファイルシステム部110が、記録開始から記録停止までの間に記録された動画信号を一つのファイルとして管理する。記録時におけるファイルシステム部110の処理については後述する。   The CPU 107 monitors the data amount of the encoded moving image signal stored in the buffer memory 102. Here, when a predetermined amount of the encoded moving image signal is stored in the buffer memory 102, the file system unit 110 and the recording medium control unit 112 are instructed to read out and record the encoded moving image signal from the buffer memory 102. . In the present embodiment, the data rate that can be recorded on the recording medium 113 is larger than the data rate of the encoded moving image signal. Therefore, after the recording medium control unit 112 starts recording the encoded moving image signal, when the data amount of the encoded moving image signal stored in the buffer memory 102 is equal to or less than the threshold value, the encoded moving image signal is written to the recording medium 113 once. To stop. Thereafter, when a predetermined amount of the encoded moving image signal is stored in the buffer memory 102 again, writing to the recording medium 113 is started. In this way, a moving image signal is intermittently recorded on the recording medium 113. When the recording unit is instructed by the operation unit 108, the CPU 107 instructs the file system unit 110 and the recording medium control unit 112 to stop recording the moving image signal and stops the encoding process by the signal processing unit 103. To do. In the present embodiment, the file system unit 110 manages moving image signals recorded between the start of recording and the stop of recording as one file. The processing of the file system unit 110 during recording will be described later.

次に、再生時の処理を説明する。ユーザが操作部108を操作して、再生モードを指示すると、CPU107はビデオカメラ100を再生モードに設定する。そして、ファイルシステム部110と記録媒体制御部112に対して、記録媒体113に記録された動画ファイルのうち、指定された動画ファイルを再生させ、動画信号をバッファメモリ102に蓄積させる。そして、信号処理部103は、再生された動画信号をバッファメモリ102に蓄積から読み出して復号し、再度、バッファメモリ102に蓄積する。表示制御部104は、バッファメモリ102に蓄積された動画信号を読み出して、表示部105に表示する。操作部108から再生停止の指示があると、CPU107はファイルシステム部110と記録媒体制御部112に対して、再生停止を指示し、記録媒体制御部112は動画ファイルの再生を停止する。再生時におけるファイルシステム部110の処理については後述する。   Next, processing during reproduction will be described. When the user operates the operation unit 108 to instruct the playback mode, the CPU 107 sets the video camera 100 to the playback mode. Then, the file system unit 110 and the recording medium control unit 112 cause the designated moving image file among the moving image files recorded on the recording medium 113 to be reproduced, and the moving image signal is stored in the buffer memory 102. Then, the signal processing unit 103 reads the reproduced moving image signal from the storage in the buffer memory 102, decodes it, and stores it again in the buffer memory 102. The display control unit 104 reads the moving image signal stored in the buffer memory 102 and displays it on the display unit 105. When an instruction to stop playback is given from the operation unit 108, the CPU 107 instructs the file system unit 110 and the recording medium control unit 112 to stop playback, and the recording medium control unit 112 stops playback of the moving image file. The processing of the file system unit 110 during reproduction will be described later.

次に、ファイルシステム部110について説明する。本実施形態では、ファイルシステム部110は、FAT16やFAT32などのファイルシステムに従い、記録媒体113に記録したファイルを管理する。ファイルシステム部110は、管理するデータをファイルという論理単位で管理し、記録媒体113は所定数のビットで構成される複数のクラスタを有する。従って、ファイルシステム部110は、記録媒体113上での記録位置(アドレス)については、クラスタ単位で管理する。   Next, the file system unit 110 will be described. In the present embodiment, the file system unit 110 manages files recorded on the recording medium 113 in accordance with a file system such as FAT16 or FAT32. The file system unit 110 manages data to be managed in a logical unit called a file, and the recording medium 113 has a plurality of clusters composed of a predetermined number of bits. Accordingly, the file system unit 110 manages the recording position (address) on the recording medium 113 in units of clusters.

また、ファイルシステム部110は、管理情報を用いて記録媒体113に記録されたファイルを管理する。管理情報は、図2(a)に示すように、ディレクトリ情報201と管理テーブル202とを含む。   Further, the file system unit 110 manages files recorded on the recording medium 113 using management information. The management information includes directory information 201 and a management table 202 as shown in FIG.

ファイルシステム部110は、ファイルをディレクトリという階層型のデータ構造で管理する。各ディレクトリには、更に別のディレクトリとファイルとを格納することができる。ファイルシステム部110は、ディレクトリ、或いはファイル毎にディレクトリエントリを生成する。各ディレクトリエントリには、ファイル名、ディレクトリ名やファイルサイズ、位置情報などを含む。位置情報には、ファイルの先頭クラスタ番号、ディレクトリに格納されたファイルやディレクトリのディレクトリエントリが記録されたクラスタ番号が記述されている。ファイルシステム部110は、最上位のディレクトリエントリから辿っていくことで、記録媒体113におけるディレクトリの構成や、各ディレクトリに格納されるファイルを検出することができる。また、最上位の階層に位置するディレクトリはルートディレクトリと呼ばれ、ルートディレクトリのエントリ情報は記録媒体113上の特定の位置に記録される。   The file system unit 110 manages files in a hierarchical data structure called directories. Each directory can store further directories and files. The file system unit 110 generates a directory entry for each directory or file. Each directory entry includes a file name, directory name, file size, position information, and the like. In the position information, the first cluster number of the file and the cluster number in which the directory entry of the file or directory stored in the directory is recorded are described. The file system unit 110 can detect the configuration of the directory in the recording medium 113 and the file stored in each directory by tracing from the top directory entry. A directory located at the highest level is called a root directory, and entry information of the root directory is recorded at a specific position on the recording medium 113.

また、ファイルシステム部110は、記録媒体113の全てのクラスタの使用状態を表す管理テーブルを作成する。管理テーブルは複数の管理テーブルエントリを含む。各管理テーブルエントリは1クラスタに対応しており、一つの管理テーブルエントリが所定数のビットで表現される(例えばFAT32では32ビット)。そして、空きクラスタの管理テーブルエントリには、未使用を示す所定値が記述される。また、データが記録されているクラスタの管理テーブルエントリには、ファイル内で次のデータが記録されたクラスタの番号が記述される。また、ファイルを構成する最後のデータが記録されたクラスタに対応した管理テーブルエントリには、ファイルの最終クラスタを示す所定値が記述される。このようにして一つのファイルを表す管理テーブル上のクラスタの連なりをクラスタチェーンという。また、各クラスタ番号に対応した管理テーブルエントリは、記録媒体113における決められた位置に、クラスタ順に記録される。   In addition, the file system unit 110 creates a management table that indicates the usage status of all the clusters on the recording medium 113. The management table includes a plurality of management table entries. Each management table entry corresponds to one cluster, and one management table entry is represented by a predetermined number of bits (for example, 32 bits in FAT32). In the free cluster management table entry, a predetermined value indicating unused is described. The cluster management table entry in which data is recorded describes the number of the cluster in which the next data is recorded in the file. In addition, a predetermined value indicating the last cluster of the file is described in the management table entry corresponding to the cluster in which the last data constituting the file is recorded. A series of clusters on the management table representing one file in this way is called a cluster chain. In addition, the management table entry corresponding to each cluster number is recorded in the order of the clusters at a predetermined position on the recording medium 113.

次に、記録再生に伴うファイルシステム部110の処理について説明する。まず、再生時の処理について説明する。ファイルシステム部110は、CPU107から指定されたファイルの読み出し要求があった場合、まずルートディレクトリのディレクトリエントリが記録されたクラスタからデータを読み出すよう記録媒体制御部112に指示する。記録媒体制御部112は、記録媒体113の指定されたクラスタからルートディレクトリのディレクトリエントリデータを読み出し、転送制御部111に送る。転送制御部111は、読み出されたルートディレクトリのディレクトリエントリデータを管理情報メモリ109に記憶する。ただし、既に同じディレクトリエントリのデータが管理情報メモリ109に格納されていた場合、記録媒体113からデータを読み出す必要はない。   Next, processing of the file system unit 110 accompanying recording and reproduction will be described. First, processing during reproduction will be described. When there is a request for reading the designated file from the CPU 107, the file system unit 110 first instructs the recording medium control unit 112 to read data from the cluster in which the directory entry of the root directory is recorded. The recording medium control unit 112 reads the directory entry data of the root directory from the designated cluster of the recording medium 113 and sends it to the transfer control unit 111. The transfer control unit 111 stores the directory entry data of the read root directory in the management information memory 109. However, if the data of the same directory entry has already been stored in the management information memory 109, it is not necessary to read the data from the recording medium 113.

次に、ファイルシステム部110は、管理情報メモリ109に格納されたディレクトリエントリの情報に基づき、下の階層のディレクトリのディレクトリエントリを記録媒体113から読み出させ、管理情報メモリ109に格納させる。このように、ファイルシステム部110は、指定されたファイルのディレクトリエントリが管理情報メモリ109に格納されるまで、ディレクトリ情報の読み出し処理を繰り返す。   Next, based on the directory entry information stored in the management information memory 109, the file system unit 110 reads the directory entry of the lower hierarchy directory from the recording medium 113 and stores it in the management information memory 109. As described above, the file system unit 110 repeats the directory information reading process until the directory entry of the designated file is stored in the management information memory 109.

そして、指定されたファイルのディレクトリエントリのデータが管理情報メモリ109に格納されると、ファイルシステム部110は、ディレクトリエントリに記述されたファイルの先頭クラスタ番号を検出する。そして、ファイルシステム部110は、検出したクラスタ番号のクラスタから管理テーブルエントリのデータを読み出すよう記録媒体制御部112に指示する。記録媒体制御部112は指定されたクラスタから管理テーブルエントリを読み出し、転送制御部111に送る。転送制御部111は、読み出された管理テーブルエントリのデータを管理情報メモリ109に格納する。但し、既に同じ管理テーブルエントリが管理情報メモリ109に格納されていた場合、記録媒体113から読み出す必要はない。   When the directory entry data of the designated file is stored in the management information memory 109, the file system unit 110 detects the first cluster number of the file described in the directory entry. Then, the file system unit 110 instructs the recording medium control unit 112 to read the data of the management table entry from the cluster with the detected cluster number. The recording medium control unit 112 reads the management table entry from the designated cluster and sends it to the transfer control unit 111. The transfer control unit 111 stores the read management table entry data in the management information memory 109. However, when the same management table entry is already stored in the management information memory 109, it is not necessary to read from the recording medium 113.

また、ファイルシステム部110は、ファイルの先頭クラスタを検出すると、クラスタを論理ブロックアドレス(LBA)に変換し、セクタ単位でファイルの実データ、ここでは動画信号を読み出すよう、記録媒体制御部112に指示する。ここで、セクタは、クラスタよりさらに小さい単位であり、複数のセクタにより一つのクラスタが構成される。そして、ファイルシステム部110は、LBAによりアクセスすべきセクタを指定する。記録媒体制御部112は、指定されたセクタからデータを読み出し、転送制御部111に送る。転送制御部111は、読み出されたデータ(動画信号)をバッファメモリ102に記憶する。再生された動画信号がバッファメモリ102に記憶されると、CPU107は、信号処理部103に対して再生された動画信号を復号するよう指示し、前述のように動画信号を復号する。   Further, when the file system unit 110 detects the leading cluster of the file, the file system unit 110 converts the cluster into a logical block address (LBA) and instructs the recording medium control unit 112 to read out the actual data of the file, here, the video signal in units of sectors. Instruct. Here, the sector is a unit smaller than the cluster, and a plurality of sectors constitute one cluster. Then, the file system unit 110 designates a sector to be accessed by LBA. The recording medium control unit 112 reads data from the designated sector and sends it to the transfer control unit 111. The transfer control unit 111 stores the read data (moving image signal) in the buffer memory 102. When the reproduced moving image signal is stored in the buffer memory 102, the CPU 107 instructs the signal processing unit 103 to decode the reproduced moving image signal, and decodes the moving image signal as described above.

このように、先頭のクラスタからの動画信号の読み出しを開始すると、次に、ファイルシステム部110は、管理情報メモリ109に格納された先頭クラスタの管理テーブルエントリによって、ファイルを構成する次のクラスタ番号を検出する。そして、次のクラスタ番号の管理テーブルエントリが管理情報メモリ109に格納されていない場合、ファイルシステム部110は、次のクラスタ番号の管理テーブルエントリを読み出すよう記録媒体制御部112に指示する。記録媒体制御部112は指定されたクラスタ番号の管理テーブルエントリを読み出し、転送制御部111に送る。転送制御部111は、読み出された管理テーブルエントリを管理情報メモリ109に記憶する。この際、既に動画信号の読み出しを開始したクラスタに関する管理テーブルエントリを管理情報メモリ109に残しておいてもよい。或いは、管理情報メモリ109の空き領域が無い場合には、先に記憶された管理テーブルエントリを消去してから、新たに読み出した管理テーブルエントリを記憶するようにしてもよい。   As described above, when reading of the moving image signal from the first cluster is started, the file system unit 110 then uses the management table entry of the first cluster stored in the management information memory 109 to indicate the next cluster number constituting the file. Is detected. If the management table entry for the next cluster number is not stored in the management information memory 109, the file system unit 110 instructs the recording medium control unit 112 to read the management table entry for the next cluster number. The recording medium control unit 112 reads the management table entry of the designated cluster number and sends it to the transfer control unit 111. The transfer control unit 111 stores the read management table entry in the management information memory 109. At this time, a management table entry related to a cluster that has already started to read a moving image signal may be left in the management information memory 109. Alternatively, when there is no free space in the management information memory 109, the previously stored management table entry may be erased and the newly read management table entry may be stored.

このように、順次管理テーブルエントリを読み出しながら、動画信号の読み出しを続ける。そして、CPU107が操作部108から再生停止の指示があるか、或いは、ファイルシステム部110により、ファイルの最終クラスタのデータの読み出しが終了すると、CPU107は記録媒体制御部112に対して再生停止を指示する。   In this way, the reading of the moving image signal is continued while sequentially reading the management table entries. When the CPU 107 gives an instruction to stop playback from the operation unit 108 or when the file system unit 110 finishes reading the data of the last cluster of the file, the CPU 107 instructs the recording medium control unit 112 to stop playback. To do.

次に記録時の処理について説明する。操作部108により記録開始の指示があると、CPU107はファイルシステム部110に対して動画の記録開始を指示する。ファイルシステム部110は、記録指示があると、新たに記録する動画ファイルを格納するためのディレクトリを指定する。そして、このディレクトリに関するディレクトリエントリのデータを読み出すよう、記録媒体制御部112に指示する。記録媒体制御部112は、前述のように、指定されたディレクトリのディレクトリエントリを記録媒体113から読み出す。読み出されたディレクトリエントリのデータが転送制御部111により管理情報メモリ109に記憶される。また、ファイルシステム部110は、新たに記録する動画ファイルのディレクトリエントリを作成し、管理情報メモリ109に記憶する。   Next, processing during recording will be described. When the operation unit 108 instructs to start recording, the CPU 107 instructs the file system unit 110 to start recording a moving image. When there is a recording instruction, the file system unit 110 specifies a directory for storing a moving image file to be newly recorded. Then, the recording medium control unit 112 is instructed to read the data of the directory entry related to this directory. The recording medium control unit 112 reads the directory entry of the designated directory from the recording medium 113 as described above. The read directory entry data is stored in the management information memory 109 by the transfer control unit 111. In addition, the file system unit 110 creates a directory entry of a moving image file to be newly recorded and stores it in the management information memory 109.

次に、ファイルシステム部110は、管理テーブルのうち、空きクラスタとなっているクラスタの一つをファイルの先頭クラスタに指定する。そして、指定したクラスタの管理テーブルエントリを読み出すように記録媒体制御部112に指示する。記録媒体制御部112は、指定された空きクラスタの管理テーブルエントリを読み出し、転送制御部111に送る。転送制御部111は読み出された管理テーブルエントリを管理情報メモリ109に記憶する。ファイルシステム部110は、ファイルの先頭クラスタのクラスタ番号を、管理情報メモリ109に記憶されたディレクトリエントリに記述する。   Next, the file system unit 110 designates one of the free clusters in the management table as the first cluster of the file. Then, it instructs the recording medium control unit 112 to read the management table entry of the designated cluster. The recording medium control unit 112 reads out the management table entry of the designated free cluster and sends it to the transfer control unit 111. The transfer control unit 111 stores the read management table entry in the management information memory 109. The file system unit 110 describes the cluster number of the first cluster of the file in the directory entry stored in the management information memory 109.

CPU107から、前述のように符号化された動画信号の書き込み要求があると、ファイルシステム部110は、転送制御部111に対してバッファメモリ102から記録媒体113に対して動画信号を転送させる。そして、ファイルシステム部110は記録媒体113の空きクラスタに対して動画信号を書き込むよう、記録媒体制御部112に指示する。   When the CPU 107 requests to write a moving image signal encoded as described above, the file system unit 110 causes the transfer control unit 111 to transfer the moving image signal from the buffer memory 102 to the recording medium 113. Then, the file system unit 110 instructs the recording medium control unit 112 to write a moving image signal to an empty cluster of the recording medium 113.

一つのクラスタに対する動画信号の書き込みが完了すると、ファイルシステム部110は、次の空きクラスタを検出して、その管理テーブルエントリを管理情報メモリ109に記憶させる。そして、同じように、空きクラスタに対して動画信号を記録させる。また、ファイルシステム部110は、動画信号の書き込みに従い、管理情報メモリ109に記憶された各クラスタの管理テーブルエントリに対して、次のクラスタ番号を記述していく。   When the writing of the moving image signal to one cluster is completed, the file system unit 110 detects the next free cluster and stores the management table entry in the management information memory 109. Similarly, a moving image signal is recorded for an empty cluster. Further, the file system unit 110 describes the next cluster number in the management table entry of each cluster stored in the management information memory 109 in accordance with the writing of the moving image signal.

このように、記録媒体113に対して順次、動画信号の書き込みが行われる。動画信号の記録中にCPU107から管理情報の更新指示があると、ファイルシステム部110は、その時点で管理情報メモリ109に記憶されているディレクトリ情報と管理テーブルとを記録媒体113に記録するよう、記録媒体制御部112に指示する。転送制御部111は、ファイルシステム部110からの更新指示に従って管理情報メモリ109に記憶されたディレクトリ情報と管理テーブルとを読み出し、記録媒体制御部112送信する。記録媒体制御部112は、ディレクトリ情報と管理テーブルとを、それぞれ記録媒体113の決められたセクタに記録することにより、その時点までに記録された動画ファイルに関する管理情報を更新する。本実施形態では、動画信号の記録開始後、一定の時間間隔でCPU107が管理情報の更新を指示している。   In this manner, moving image signals are sequentially written to the recording medium 113. When there is an instruction to update management information from the CPU 107 during recording of a moving image signal, the file system unit 110 records the directory information and the management table stored in the management information memory 109 at that time on the recording medium 113. Instructs the recording medium control unit 112. The transfer control unit 111 reads the directory information and the management table stored in the management information memory 109 in accordance with the update instruction from the file system unit 110, and transmits it to the recording medium control unit 112. The recording medium control unit 112 records the directory information and the management table in the determined sectors of the recording medium 113, respectively, thereby updating the management information regarding the moving image file recorded up to that point. In the present embodiment, the CPU 107 instructs the management information to be updated at regular time intervals after starting the recording of the moving image signal.

このように、記録媒体113の管理情報が更新されると、その時点までに管理情報メモリ109に記憶されていた管理テーブルの記憶領域を空き領域として、新たに記録媒体113から読み出した管理テーブルを記憶するために用いる。また、ディレクトリ情報については、一つの動画ファイルの書き込みが完了するまで、管理情報メモリ109に保持しておく。   As described above, when the management information of the recording medium 113 is updated, the management table newly read from the recording medium 113 is set with the storage area of the management table stored in the management information memory 109 up to that time as a free area. Used to memorize. The directory information is held in the management information memory 109 until writing of one moving image file is completed.

そして、操作部108より記録停止の指示があると、CPU107はファイルシステム部110と記録媒体制御部112に対して、動画信号の記録停止を指示する。ファイルシステム部110は、記録停止の指示に応じて、バッファメモリ102から記録媒体制御部112に対する動画信号の送信を停止させる。そして、記録媒体制御部112は、記録媒体113に対する動画信号の記録を停止する。   When a recording stop instruction is issued from the operation unit 108, the CPU 107 instructs the file system unit 110 and the recording medium control unit 112 to stop recording the moving image signal. The file system unit 110 stops the transmission of the moving image signal from the buffer memory 102 to the recording medium control unit 112 in response to the recording stop instruction. Then, the recording medium control unit 112 stops recording the moving image signal on the recording medium 113.

ファイルシステム部110は、動画信号の記録が停止すると、管理情報メモリ109に記憶された、動画ファイルの最後のクラスタの管理テーブルエントリに対し、ファイル末尾を示す値を記述する。また、ファイルシステム部110は、記録された動画ファイルのサイズを検出し、管理情報メモリ109に記憶されたディレクトリエントリに対してファイルのサイズを記述する。そして、ファイルシステム部110は、管理情報メモリ109に記憶されたディレクトリ情報と管理テーブルとを記録媒体113に記録するよう、記録媒体制御部112に指示する。転送制御部111は、ファイルシステム部110からの更新指示に従って管理情報メモリ109に記憶されたディレクトリ情報と管理テーブルとを読み出し、記録媒体制御部112送信する。記録媒体制御部112は、ディレクトリ情報と管理テーブルとを、それぞれ記録媒体113の決められたセクタに記録することにより、今回の記録指示によって記録された動画ファイルに関する管理情報を更新する。   When the recording of the moving image signal is stopped, the file system unit 110 describes a value indicating the end of the file in the management table entry of the last cluster of the moving image file stored in the management information memory 109. Further, the file system unit 110 detects the size of the recorded moving image file, and describes the file size for the directory entry stored in the management information memory 109. Then, the file system unit 110 instructs the recording medium control unit 112 to record the directory information and the management table stored in the management information memory 109 on the recording medium 113. The transfer control unit 111 reads the directory information and the management table stored in the management information memory 109 in accordance with the update instruction from the file system unit 110, and transmits it to the recording medium control unit 112. The recording medium control unit 112 updates the management information related to the moving image file recorded by the current recording instruction by recording the directory information and the management table in the determined sectors of the recording medium 113, respectively.

また、ファイルシステム部110は、記録中の動画ファイルのサイズを監視している。そして、記録中の動画ファイルのサイズがファイルシステムにより規定された上限のサイズに近くなると、ファイルシステム部110は記録中のファイルを一旦クローズし、新たにファイルを作成して動画信号の記録を続ける。ファイルクローズ時には、記録停止時と同様に、管理情報メモリ109に記憶されたディレクトリ情報と管理テーブルを変更し、記録媒体113に書き込む。また、新たなファイルの作成については、記録開始時と同様に、新たにディレクトリエントリを作成し、管理情報メモリ109に記憶する。   Further, the file system unit 110 monitors the size of the moving image file being recorded. When the size of the moving image file being recorded approaches the upper limit size defined by the file system, the file system unit 110 temporarily closes the file being recorded, creates a new file, and continues recording the moving image signal. . When the file is closed, the directory information and management table stored in the management information memory 109 are changed and written to the recording medium 113 in the same manner as when recording is stopped. As for the creation of a new file, a new directory entry is created and stored in the management information memory 109 in the same manner as when recording is started.

このように、本実施形態のビデオカメラ100で記録可能な動画ファイルの最大のサイズは、ファイルシステムにより規定された上限のサイズとなる。前述のように、ファイルのサイズが大きくなるのに比例して、このファイルに関する管理テーブルのサイズも大きくなる。しかし、ファイルの記録時には、一定の時間間隔で記録媒体113上の管理テーブルを更新しているので、更新後は管理情報メモリ109における記憶領域を空き領域として使うことができる。また、再生時には、読み出し対象となるクラスタに関する管理テーブルエントリだけを管理情報メモリ109に記憶すればよい。このように、動画の記録再生のために、上限サイズの動画ファイルの管理テーブルを全て管理情報メモリ109に記憶する必要はない。そのため、本実施形態では、管理情報メモリ109の記憶容量を、上限サイズの動画ファイルの管理テーブルのサイズよりも小さい、記録再生処理のために必要なサイズとしている。   Thus, the maximum size of a moving image file that can be recorded by the video camera 100 of this embodiment is the upper limit size defined by the file system. As described above, as the file size increases, the size of the management table related to this file also increases. However, since the management table on the recording medium 113 is updated at regular time intervals during file recording, the storage area in the management information memory 109 can be used as an empty area after the update. Further, at the time of reproduction, only the management table entry related to the cluster to be read out needs to be stored in the management information memory 109. In this way, it is not necessary to store all the management tables of the upper limit size moving image files in the management information memory 109 for recording and reproducing moving images. For this reason, in the present embodiment, the storage capacity of the management information memory 109 is set to a size required for recording / playback processing that is smaller than the size of the management table of the upper limit size moving image file.

次に、ファイルの削除動作について説明する。図3はファイル削除処理を示すフローチャートである。なお、以下に説明するファイル削除処理は、CPU107が各部を制御することにより実行される。ユーザが操作部108を操作して、記録媒体113に記録された動画ファイルの一覧表示を指示すると、CPU107はファイルシステム部110に対して、ファイル一覧情報の取得を指示する。ファイルシステム部110は、記録媒体制御部112に対して、記録媒体113に記録された全てのファイルのディレクトリエントリを読み出すよう指示する。そして、記録媒体制御部112より読み出された各ファイルのディレクトリエントリが管理情報メモリ109に記憶されると、CPU107は各ファイルのファイル名の情報を示す一覧画面を表示制御部104により表示部105に表示させる。ユーザは、操作部108を操作して、表示された一覧画面から、削除対象のファイルを指定し、ファイルの削除を指示する。   Next, the file deletion operation will be described. FIG. 3 is a flowchart showing the file deletion process. Note that the file deletion process described below is executed by the CPU 107 controlling each unit. When the user operates the operation unit 108 to instruct to display a list of moving image files recorded on the recording medium 113, the CPU 107 instructs the file system unit 110 to acquire file list information. The file system unit 110 instructs the recording medium control unit 112 to read the directory entries of all the files recorded on the recording medium 113. When the directory entry of each file read by the recording medium control unit 112 is stored in the management information memory 109, the CPU 107 causes the display control unit 104 to display a list screen indicating the file name information of each file. To display. The user operates the operation unit 108 to designate a file to be deleted from the displayed list screen and instruct to delete the file.

このファイルの削除指示に応じて、図3のフローが開始する。まず、ファイルシステム部110は、削除指示に係るファイル(削除対象ファイル)に関するディレクトリ情報を読み出すよう、記録媒体制御部112に指示する(S301)。ここでは、削除対象ファイルのディレクトリエントリと、削除対象ファイルが格納されている全ての階層のディレクトリに関するディレクトリエントリを読み出す。ただし、既にこのファイルに関するディレクトリエントリが管理情報メモリ109に記憶されていた場合は、読み出す必要はない。   The flow of FIG. 3 starts in response to this file deletion instruction. First, the file system unit 110 instructs the recording medium control unit 112 to read out directory information related to a file related to the deletion instruction (deletion target file) (S301). Here, the directory entry of the deletion target file and the directory entries related to the directories of all the layers in which the deletion target file is stored are read out. However, if a directory entry related to this file has already been stored in the management information memory 109, it is not necessary to read it out.

前述のように、ファイルの一覧画面からユーザが削除対象ファイルを指定した場合には、指定されたファイルのディレクトリエントリは既に管理情報メモリ109に記憶されているので、これ以外のディレクトリ情報を管理情報メモリ109から消去する。そして、新たに、削除対象ファイルが格納されている全ての階層のディレクトリに関するディレクトリエントリを読み出す。   As described above, when the user designates a file to be deleted from the file list screen, the directory entry of the designated file is already stored in the management information memory 109. Erase from the memory 109. Then, the directory entries relating to the directories of all the hierarchies storing the deletion target file are newly read out.

次に、ファイルシステム部110は、管理情報メモリ109に記憶された削除対象ファイルのディレクトリエントリに基づいて、削除対象ファイルのファイルサイズを検出する。そして、ファイルシステム部110は、削除対象ファイルのファイルサイズに基づいて、このファイルの管理テーブルのサイズを検出して、CPU107に知らせる(S302)。具体的には、ファイルシステム部110は、ファイルサイズと1クラスタあたりのサイズに基づいてこのファイルに関する管理テーブルエントリの数を求める。そして、管理テーブルエントリの数に一つの管理テーブルエントリのビット数を乗算することで、管理テーブルのサイズを算出する。   Next, the file system unit 110 detects the file size of the deletion target file based on the directory entry of the deletion target file stored in the management information memory 109. Then, based on the file size of the file to be deleted, the file system unit 110 detects the size of the management table of this file and notifies the CPU 107 (S302). Specifically, the file system unit 110 obtains the number of management table entries related to this file based on the file size and the size per cluster. Then, the size of the management table is calculated by multiplying the number of management table entries by the number of bits of one management table entry.

上述のように、現在、削除対象ファイルのディレクトリ情報が管理情報メモリ109に記憶されている。この状態で、削除対象ファイルに関する管理テーブルを全て管理情報メモリ109に記憶することができるかを判定する。そのためにCPU107は、削除対象ファイルに関するディレクトリ情報のサイズと管理テーブルのサイズの合計と、管理情報メモリ109の容量とを比較する。そして、合計サイズが管理情報メモリ109の容量以下であるかどうかを判別する(S303)。   As described above, the directory information of the deletion target file is currently stored in the management information memory 109. In this state, it is determined whether all the management tables related to the deletion target file can be stored in the management information memory 109. For this purpose, the CPU 107 compares the size of the directory information related to the file to be deleted, the size of the management table, and the capacity of the management information memory 109. Then, it is determined whether or not the total size is less than or equal to the capacity of the management information memory 109 (S303).

判別の結果、合計サイズが管理情報メモリ109の容量以下である場合、ファイルシステム部110は、管理情報メモリ109に格納されている削除対象ファイルのディレクトリエントリに記述されたファイルの先頭クラスタ番号を検出する。そして、先頭のクラスタから、削除対象ファイルに関する全ての管理テーブルエントリを読み出すよう記録媒体制御部112に指示し、読み出された全ての管理テーブルエントリを管理情報メモリ109に記憶させる(S304)。   If the total size is equal to or smaller than the capacity of the management information memory 109 as a result of determination, the file system unit 110 detects the first cluster number of the file described in the directory entry of the file to be deleted stored in the management information memory 109. To do. Then, the recording medium control unit 112 is instructed to read all management table entries related to the deletion target file from the first cluster, and all the read management table entries are stored in the management information memory 109 (S304).

次に、ファイルシステム部110は、管理情報メモリ109に記憶された削除対象ファイルのディレクトリエントリを消去する。また、削除対象ファイルを格納しているディレクトリに関するディレクトリエントリの内容を変更する。更に、削除対象ファイルに関する全ての管理テーブルエントリを、空きクラスタを示す所定値に変更する(S305)。管理情報メモリ109に記憶されたディレクトリ情報と管理テーブルの変更が完了すると、ファイルシステム部110は、管理情報メモリ109に記憶されているディレクトリ情報と管理テーブルの記録制御を行う。具体的には、ファイルシステム部110は、管理情報メモリ109に記憶されているディレクトリ情報と管理テーブルとを、記録媒体113の規定されたクラスタに記録するよう、記録媒体制御部112に指示する(S306)。転送制御部111は、管理情報メモリ109からディレクトリ情報と管理テーブルを読み出して記録媒体制御部112に送る。記録媒体制御部112は、ディレクトリ情報と管理テーブルを、それぞれ記録媒体113における規定されたクラスタに記録する。   Next, the file system unit 110 deletes the directory entry of the file to be deleted stored in the management information memory 109. Also, the contents of the directory entry related to the directory storing the file to be deleted are changed. Further, all management table entries related to the deletion target file are changed to a predetermined value indicating an empty cluster (S305). When the change of the directory information and management table stored in the management information memory 109 is completed, the file system unit 110 controls the recording of the directory information and management table stored in the management information memory 109. Specifically, the file system unit 110 instructs the recording medium control unit 112 to record the directory information and the management table stored in the management information memory 109 in a specified cluster of the recording medium 113 ( S306). The transfer control unit 111 reads directory information and a management table from the management information memory 109 and sends them to the recording medium control unit 112. The recording medium control unit 112 records the directory information and the management table in the specified clusters in the recording medium 113, respectively.

一方、S303において、ディレクトリ情報と管理テーブルの合計サイズが管理情報メモリ109の容量よりも大きいと判別された場合、ファイル短縮削除処理を実行する(S307)。   On the other hand, if it is determined in S303 that the total size of the directory information and the management table is larger than the capacity of the management information memory 109, a file shortening / deleting process is executed (S307).

図4は、S307のファイル短縮削除処理を示すフローチャートである。まず、ファイルシステム部110は、管理情報メモリ109に削除対象ファイルディレクトリ情報が蓄積されているかどうか判別する(S401)。管理情報メモリ109に削除対象ファイルのディレクトリ情報が格納されていないと判別された場合、ファイルシステム部110は削除対象ファイルのディレクトリ情報を読み出させる。読み出されたディレクトリ情報は管理情報メモリ109に記憶される(S402)。   FIG. 4 is a flowchart showing the file shortening / deleting process of S307. First, the file system unit 110 determines whether deletion target file directory information is stored in the management information memory 109 (S401). When it is determined that the directory information of the deletion target file is not stored in the management information memory 109, the file system unit 110 reads the directory information of the deletion target file. The read directory information is stored in the management information memory 109 (S402).

次に、ファイルシステム部110は、管理情報メモリ109に格納された削除対象ファイルのディレクトリエントリに記述されているファイル先頭クラスタ番号を検出し、管理情報メモリ109に保存する(S403)。そして、ファイルシステム部110は、管理情報メモリ109に記憶可能な管理テーブルのデータ量に基づいて、管理情報メモリ109に記憶された削除対象ファイルのディレクトリエントリにおけるファイルサイズを変更する(S404)。ここで、ファイルシステム部110は、管理情報メモリ109のうち、削除対象ファイルの管理テーブルを記憶可能な容量を求める。この記憶可能な容量とは、管理情報メモリ109の容量のうち、S403で記憶した開始クラスタ番号の情報を記憶するのに必要な容量を除いた容量とする。そして、管理情報メモリ109に記憶可能な管理テーブルエントリの数を算出する。この算出された管理テーブルエントリの数と1クラスタあたりのデータ量とを乗算した値を、削除対象ファイルのファイルサイズから減算する。そして、ディレクトリエントリに記述されたファイルサイズを、減算の結果得られた値に変更する。   Next, the file system unit 110 detects the file head cluster number described in the directory entry of the file to be deleted stored in the management information memory 109, and stores it in the management information memory 109 (S403). Then, the file system unit 110 changes the file size in the directory entry of the file to be deleted stored in the management information memory 109 based on the data amount of the management table that can be stored in the management information memory 109 (S404). Here, the file system unit 110 obtains a capacity capable of storing the management table of the file to be deleted in the management information memory 109. The storable capacity is a capacity excluding the capacity necessary for storing the information of the start cluster number stored in S403 out of the capacity of the management information memory 109. Then, the number of management table entries that can be stored in the management information memory 109 is calculated. A value obtained by multiplying the calculated number of management table entries by the data amount per cluster is subtracted from the file size of the file to be deleted. Then, the file size described in the directory entry is changed to a value obtained as a result of the subtraction.

このようにディレクトリ情報を変更すると、ファイルシステム部110は、変更されたディレクトリ情報を記録媒体113に記録するよう、記録媒体制御部112に指示する。記録媒体制御部112は転送制御部111により管理情報メモリ109から送信されたディレクトリ情報を記録媒体113の規定されたセクタに記録する(S405)。ディレクトリ情報を記録した後は、管理情報メモリ109におけるディレクトリ情報を記憶していた領域を空き領域すなわち未使用状態にする。   When the directory information is changed in this way, the file system unit 110 instructs the recording medium control unit 112 to record the changed directory information on the recording medium 113. The recording medium control unit 112 records the directory information transmitted from the management information memory 109 by the transfer control unit 111 in a specified sector of the recording medium 113 (S405). After the directory information is recorded, the area storing the directory information in the management information memory 109 is made an empty area, that is, an unused state.

次に、ファイルシステム部110は、削除対象ファイルの管理テーブルが管理情報メモリ109に格納されているかどうか判別する(S406)。管理情報メモリ109に管理テーブルが記憶されていないと判別された場合、削除対象ファイルの管理テーブルのうちファイル末尾の管理テーブルエントリから管理情報メモリ109に記憶可能なサイズ分を読み出して管理情報メモリ109に記憶させる。この処理は具体的には例えば以下のようにして行う。ファイルシステム部110は記録媒体制御部112に対して、削除対象ファイルの管理テーブルを先頭の管理テーブルエントリからクラスタチェーンの順に読み出させる(S407)。読み出された管理テーブルエントリは、転送制御部111によって順次、管理情報メモリ109に記憶される。ファイルシステム部110は、管理情報メモリ109に管理テーブルエントリが記憶されると、管理情報メモリ109に記憶された管理テーブルエントリがクラスタチェーンの末尾を示す値を含んでいるかどうかを判別する(S408)。管理情報メモリ109上の管理テーブルエントリがファイル末尾を示す値ではない場合、S407に戻って引き続き管理テーブルエントリを読み出す。このように、ファイル末尾の管理テーブルエントリが管理情報メモリ109に記憶されるまで処理を繰り返す。ここで、先頭の管理テーブルエントリから読み出して管理情報メモリ109に記憶している際に、管理情報メモリ109の空きが無くなった場合には、先頭の管理テーブルエントリから順に上書きしていく。そのため、最終クラスタの管理テーブルエントリが管理情報メモリ109に記憶された段階では、ファイルの末尾から、管理情報メモリ109に対応した容量の管理テーブルエントリが記憶されていることになる。   Next, the file system unit 110 determines whether or not the management table of the file to be deleted is stored in the management information memory 109 (S406). When it is determined that the management table is not stored in the management information memory 109, the management information memory 109 reads out the size that can be stored in the management information memory 109 from the management table entry at the end of the file in the management table of the file to be deleted. Remember me. Specifically, this processing is performed as follows, for example. The file system unit 110 causes the recording medium control unit 112 to read the management table of the files to be deleted in the order of the cluster chain from the first management table entry (S407). The read management table entries are sequentially stored in the management information memory 109 by the transfer control unit 111. When the management table entry is stored in the management information memory 109, the file system unit 110 determines whether or not the management table entry stored in the management information memory 109 includes a value indicating the end of the cluster chain (S408). . If the management table entry on the management information memory 109 is not a value indicating the end of the file, the process returns to S407 to continue reading the management table entry. In this way, the process is repeated until the management table entry at the end of the file is stored in the management information memory 109. Here, when the management information memory 109 becomes empty when it is read from the first management table entry and stored in the management information memory 109, it is overwritten in order from the first management table entry. Therefore, at the stage where the management table entry of the last cluster is stored in the management information memory 109, the management table entry having a capacity corresponding to the management information memory 109 is stored from the end of the file.

ファイル末尾の管理テーブルエントリが管理情報メモリ109に記憶されると、ファイルシステム部110は、管理情報メモリ109に記憶された短縮対象ファイルの各管理テーブルエントリの値を空き領域を示す値に変更する(S409)。こうして、管理情報メモリ109に記憶した部分の管理テーブルを未使用状態に変更する。ただし、管理情報メモリ109に記憶された管理テーブルエントリのうち、クラスタチェーンの先頭の管理テーブルエントリに対しては、ファイル末尾を示す値に変更する。   When the management table entry at the end of the file is stored in the management information memory 109, the file system unit 110 changes the value of each management table entry of the file to be shortened stored in the management information memory 109 to a value indicating a free area. (S409). In this way, the part of the management table stored in the management information memory 109 is changed to an unused state. However, among the management table entries stored in the management information memory 109, the management table entry at the head of the cluster chain is changed to a value indicating the end of the file.

このように、管理情報メモリ109に記憶された各管理テーブルエントリを変更すると、ファイルシステム部110は、転送制御部111に指示して、変更された管理テーブルを記録媒体制御部112に転送させる。そして、ファイルシステム部110は、記録媒体制御部112に対して変更後の管理テーブルを記録媒体113に記録するよう指示する(S410)。このようにファイル短縮削除処理を実行した後、再度、図3のS301−S303の処理を繰り返す。   As described above, when each management table entry stored in the management information memory 109 is changed, the file system unit 110 instructs the transfer control unit 111 to transfer the changed management table to the recording medium control unit 112. Then, the file system unit 110 instructs the recording medium control unit 112 to record the changed management table on the recording medium 113 (S410). After executing the file shortening / deleting process in this way, the processes of S301 to S303 in FIG. 3 are repeated again.

ファイル短縮削除処理の際の管理情報の様子を図2(b)、(c)に示す。図2(b)は、削除対象ファイルのディレクトリ情報203と管理テーブル204を示している。そして、205は削除対象ファイルのディレクトリ情報203のデータ量を示し、206はS302において算出された、管理情報メモリ109に記憶可能な管理テーブル204のサイズ(エントリ数)を示している。   The state of management information during the file shortening / deleting process is shown in FIGS. FIG. 2B shows the directory information 203 and management table 204 of the file to be deleted. Reference numeral 205 denotes the data amount of the directory information 203 of the file to be deleted, and 206 denotes the size (number of entries) of the management table 204 that can be stored in the management information memory 109 calculated in S302.

図2(b)に示すように、ディレクトリ情報を記憶した管理情報メモリ109に、削除対象ファイルの管理テーブルの一部を記憶することができない。そのため、管理テーブル204のエントリ数から、データ量206に対応するエントリ数を除いた管理テーブルエントリに対応したファイルサイズとなるように、ディレクトリ情報を変更する。   As shown in FIG. 2B, a part of the management table of the file to be deleted cannot be stored in the management information memory 109 storing the directory information. Therefore, the directory information is changed so that the file size corresponds to the management table entry excluding the number of entries corresponding to the data amount 206 from the number of entries in the management table 204.

更に、図2(c)に示すように、ファイル末尾の管理テーブルを管理情報メモリ109に記憶する。図2(c)において、207が、S407、S408の処理により管理情報メモリ109に記憶される管理テーブルのデータ量である。そして、S409において、207で示されるデータ量の管理テーブルにおける各エントリを空きクラスタに変更する。なお、データ量207はデータ量206よりも多いが、これは、S405でディレクトリ情報を記録媒体113に書き込んだ後は、このディレクトリ情報の記憶領域を管理テーブルの記憶用に用いているためである。また、208は、ファイル短縮削除処理の後、新たにファイル末尾となる管理テーブルエントリである。この管理テーブルエントリ208を、ファイル末尾を示す値に変更する。   Further, the management table at the end of the file is stored in the management information memory 109 as shown in FIG. In FIG. 2C, reference numeral 207 denotes the data amount of the management table stored in the management information memory 109 by the processing of S407 and S408. In step S409, each entry in the data amount management table indicated by 207 is changed to a free cluster. Note that the data amount 207 is larger than the data amount 206 because the directory information storage area is used for storing the management table after the directory information is written to the recording medium 113 in S405. . Reference numeral 208 denotes a management table entry that newly becomes the end of the file after the file abbreviated deletion process. The management table entry 208 is changed to a value indicating the end of the file.

このように、本実施形態では、ファイルを削除する際に、削除対象ファイルの管理テーブルの一部を管理情報メモリに記憶できない場合、ディレクトリ情報が示すファイルサイズを変更する。そして、変更後のファイルサイズ以上の管理テーブルエントリをメモリに記憶して空き領域に変更する。この処理を繰り返すことで、管理情報メモリの容量を小さくした場合でも、正常にファイルを削除することができる。また、ファイル削除処理中にビデオカメラの電源が遮断した場合にも、記録媒体113に記録されたデータと管理情報とが不一致となることを防ぐことができる。そのため、記録媒体113に記録されたファイルが読み出せなくなるのを防ぐことができる。   Thus, in this embodiment, when deleting a file, if a part of the management table of the file to be deleted cannot be stored in the management information memory, the file size indicated by the directory information is changed. Then, the management table entry that is equal to or larger than the changed file size is stored in the memory and changed to a free area. By repeating this process, the file can be deleted normally even when the capacity of the management information memory is reduced. Even when the power of the video camera is cut off during the file deletion process, it is possible to prevent the data recorded on the recording medium 113 from being inconsistent with the management information. For this reason, it is possible to prevent the file recorded on the recording medium 113 from being read out.

なお、本実施形態では、S303において、削除対象ファイルに関するディレクトリ情報のサイズと管理テーブルのサイズの合計と、管理情報メモリ109の容量とを比較していた。しかし、管理情報メモリ109を別の用途に用いることも可能であり、この場合、管理情報メモリ109の領域のうち、ディレクトリ情報と管理テーブルを記憶するために使用できる容量をメモリ容量として比較することも可能である。   In this embodiment, in S303, the total size of the directory information related to the deletion target file and the size of the management table is compared with the capacity of the management information memory 109. However, it is also possible to use the management information memory 109 for other purposes. In this case, the capacity that can be used for storing the directory information and the management table in the area of the management information memory 109 is compared as the memory capacity. Is also possible.

また、図2に示す例では、1回のファイル短縮削除処理により、ディレクトリ情報と管理テーブルの合計サイズが管理情報メモリ109の容量以下となった場合を示した。しかし、1回のファイル短縮削除処理ではディレクトリ情報と管理テーブルの合計サイズが管理情報メモリ109の容量以下とならない場合も考えられる。その場合には、図4の処理を繰り返し実行する。   Further, the example shown in FIG. 2 shows a case where the total size of the directory information and the management table is less than the capacity of the management information memory 109 by one file shortening / deleting process. However, there may be a case where the total size of the directory information and the management table is not less than the capacity of the management information memory 109 in one file shortening / deleting process. In that case, the process of FIG. 4 is repeatedly executed.

次に、第2の実施形態について説明する。本実施形態におけるビデオカメラ100の構成、並びに基本的な動作は第1の実施形態と同様である。第2の実施形態では、S307のファイル短縮削除処理が異なる。以下、本実施形態のファイル短縮削除処理について説明する。   Next, a second embodiment will be described. The configuration and basic operation of the video camera 100 in the present embodiment are the same as those in the first embodiment. In the second embodiment, the file shortening / deleting process in S307 is different. The file shortening / deleting process according to this embodiment will be described below.

図5は、S307のファイル短縮削除処理を示すフローチャートである。まず、ファイルシステム部110は、管理情報メモリ109に削除対象ファイルディレクトリ情報が蓄積されているかどうか判別する(S501)。管理情報メモリ109に削除対象ファイルのディレクトリ情報が格納されていないと判別された場合、ファイルシステム部110は削除対象ファイルのディレクトリ情報を読み出させる。読み出されたディレクトリ情報は管理情報メモリ109に記憶される(S502)。   FIG. 5 is a flowchart showing the file shortening / deleting process of S307. First, the file system unit 110 determines whether deletion target file directory information is stored in the management information memory 109 (S501). When it is determined that the directory information of the deletion target file is not stored in the management information memory 109, the file system unit 110 reads the directory information of the deletion target file. The read directory information is stored in the management information memory 109 (S502).

次に、ファイルシステム部110は、管理情報メモリ109に格納された削除対象ファイルのディレクトリエントリに記述されているファイル先頭クラスタ番号を検出し、管理情報メモリ109に保存する(S503)。そして、ファイルシステム部110は、管理情報メモリ109に記憶可能な管理テーブルのデータ量に基づいて、管理情報メモリ109に記憶された削除対象ファイルのディレクトリエントリが示すファイルサイズを変更する(S504)。ここで、ファイルシステム部110は、上述したS404と同様の処理を行うことができる。すなわち、管理情報メモリ109に記憶可能な管理テーブルエントリの数を算出し、算出された管理テーブルエントリの数と1クラスタあたりのデータ量とを乗算した値を、削除対象ファイルのファイルサイズから減算する。そして、ディレクトリエントリに記述されたファイルサイズを、減算の結果得られた値に変更する。   Next, the file system unit 110 detects the file head cluster number described in the directory entry of the file to be deleted stored in the management information memory 109 and stores it in the management information memory 109 (S503). Then, the file system unit 110 changes the file size indicated by the directory entry of the file to be deleted stored in the management information memory 109 based on the data amount of the management table that can be stored in the management information memory 109 (S504). Here, the file system unit 110 can perform the same processing as in S404 described above. That is, the number of management table entries that can be stored in the management information memory 109 is calculated, and a value obtained by multiplying the calculated number of management table entries by the data amount per cluster is subtracted from the file size of the file to be deleted. . Then, the file size described in the directory entry is changed to a value obtained as a result of the subtraction.

次に、ファイルシステム部110は、削除対象ファイルの管理テーブルから、先頭クラスタからクラスタチェーンの順に、管理情報メモリ109に記憶可能な管理テーブルエントリの数だけ後のクラスタ番号を検出する。そして、管理情報メモリ109に記憶された削除対象ファイルのディレクトリエントリに記述された先頭クラスタ番号を、ここで検出したクラスタ番号に変更する(S505)。また、変更後の先頭クラスタ番号を管理情報メモリ109に記憶する。   Next, the file system unit 110 detects a cluster number after the number of management table entries that can be stored in the management information memory 109 from the management table of the file to be deleted in order from the first cluster to the cluster chain. Then, the head cluster number described in the directory entry of the file to be deleted stored in the management information memory 109 is changed to the cluster number detected here (S505). Further, the changed leading cluster number is stored in the management information memory 109.

このようにディレクトリ情報を変更すると、ファイルシステム部110は、変更されたディレクトリ情報を記録媒体113に記録するよう、記録媒体制御部112に指示する。記録媒体制御部112は転送制御部111により管理情報メモリ109から送信されたディレクトリ情報を記録媒体113の規定されたセクタに記録する(S506)。ディレクトリ情報を記録した後は、管理情報メモリ109におけるディレクトリ情報を記憶していた領域を空き領域とする。   When the directory information is changed in this way, the file system unit 110 instructs the recording medium control unit 112 to record the changed directory information on the recording medium 113. The recording medium control unit 112 records the directory information transmitted from the management information memory 109 by the transfer control unit 111 in a specified sector of the recording medium 113 (S506). After the directory information is recorded, an area where the directory information is stored in the management information memory 109 is set as an empty area.

次に、ファイルシステム部110は、S503で保存した、変更前の削除対象ファイルの先頭クラスタから、クラスタチェーンの順に管理テーブルを読み出すよう、記録媒体制御部112に指示する(S507)。読み出された管理テーブルは、転送制御部111によって順次、管理情報メモリ109に記憶される。ファイルシステム部110は、管理情報メモリ109に管理テーブルエントリが記憶されると、管理情報メモリ109に記憶された管理テーブルエントリが、S505で保存した変更後の先頭クラスタ番号を含んでいるかどうかを判別する(S508)。管理情報メモリ109上の管理テーブルエントリが、変更後の先頭クラスタ番号を含んでいない場合、S507に戻って引き続き管理テーブルエントリを読み出す。   Next, the file system unit 110 instructs the recording medium control unit 112 to read out the management table in the order of the cluster chain from the first cluster of the file to be deleted before the change saved in S503 (S507). The read management table is sequentially stored in the management information memory 109 by the transfer control unit 111. When the management table entry is stored in the management information memory 109, the file system unit 110 determines whether or not the management table entry stored in the management information memory 109 includes the changed first cluster number saved in S505. (S508). If the management table entry in the management information memory 109 does not include the changed first cluster number, the process returns to S507 and the management table entry is continuously read.

変更後の先頭クラスタ番号を含む管理テーブルエントリが管理情報メモリ109に記憶されると、ファイルシステム部110は、管理情報メモリ109に記憶された短縮対象ファイルの各管理テーブルエントリの値を空き領域に変更する(S509)。このように、管理情報メモリ109に記憶された各管理テーブルエントリを変更すると、ファイルシステム部110は、転送制御部111に指示して、変更された管理テーブルを記録媒体制御部112に転送させる。そして、ファイルシステム部110は、記録媒体制御部112に対して変更後の管理テーブルを記録媒体113に記録するよう指示する(S510)。このようにファイル短縮削除処理を実行した後、再度、図3のS301−S303の処理を繰り返す。   When the management table entry including the changed first cluster number is stored in the management information memory 109, the file system unit 110 sets the value of each management table entry of the file to be shortened stored in the management information memory 109 to an empty area. Change (S509). As described above, when each management table entry stored in the management information memory 109 is changed, the file system unit 110 instructs the transfer control unit 111 to transfer the changed management table to the recording medium control unit 112. Then, the file system unit 110 instructs the recording medium control unit 112 to record the changed management table on the recording medium 113 (S510). After executing the file shortening / deleting process in this way, the processes of S301 to S303 in FIG. 3 are repeated again.

本実施形態におけるファイル短縮削除処理の際の管理情報の様子を図2(d)に示す。図2(b)に示すように、ディレクトリ情報を記憶した管理情報メモリ109に、削除対象ファイルの管理テーブルの一部を記憶することができない。そのため、管理テーブル204のエントリ数から、データ量206に対応するエントリ数を除いた管理テーブルエントリに対応したファイルサイズとなるように、ディレクトリ情報を変更する。   FIG. 2D shows the state of management information during the file shortening / deleting process in the present embodiment. As shown in FIG. 2B, a part of the management table of the file to be deleted cannot be stored in the management information memory 109 storing the directory information. Therefore, the directory information is changed so that the file size corresponds to the management table entry excluding the number of entries corresponding to the data amount 206 from the number of entries in the management table 204.

更に、図2(d)に示すように、管理テーブルの先頭から、クラスタチェーンの順に、管理情報メモリ109に記憶する。図2(d)において、209が、S507、S508の処理により管理情報メモリ109に記憶される管理テーブルのデータ量である。そして、S509において、209で示されるデータ量の管理テーブルにおける各エントリを空きクラスタに変更する。また、210は、ファイル短縮削除処理の後、新たにファイルの先頭クラスタとなる管理テーブルエントリである。そこで、S505において、この管理テーブルエントリ210のクラスタ番号を検出し、先頭クラスタ番号を変更する。   Furthermore, as shown in FIG. 2D, the management information is stored in the management information memory 109 in the order of the cluster chain from the top of the management table. In FIG. 2D, 209 is the data amount of the management table stored in the management information memory 109 by the processing of S507 and S508. In step S509, each entry in the data amount management table indicated by 209 is changed to a free cluster. Reference numeral 210 denotes a management table entry that newly becomes the first cluster of the file after the file shortening / deleting process. Therefore, in S505, the cluster number of the management table entry 210 is detected and the head cluster number is changed.

このように、本実施形態では、ファイルを削除する際に、削除対象ファイルの管理テーブルの一部を管理情報メモリに記憶できない場合、ディレクトリ情報が示すファイルサイズを変更する。そして、変更後のファイルサイズ以上の管理テーブルエントリをメモリに記憶して空き領域に変更する。この処理を繰り返すことで、管理情報メモリの容量を小さくした場合でも、正常にファイルを削除することができる。また、ファイル削除処理中にビデオカメラの電源が遮断した場合にも、記録媒体113に記録されたデータと管理情報とが不一致となることを防ぐことができる。そのため、記録媒体113に記録されたファイルが読み出せなくなるのを防ぐことができる。更に、第2の実施形態では、ファイルを前方から短縮することによって、読み出したクラスタチェーンを削除しながらファイル末尾までクラスタチェーンを一度辿れば良いため、実行速度を速くすることができる。   Thus, in this embodiment, when deleting a file, if a part of the management table of the file to be deleted cannot be stored in the management information memory, the file size indicated by the directory information is changed. Then, the management table entry that is equal to or larger than the changed file size is stored in the memory and changed to a free area. By repeating this process, the file can be deleted normally even when the capacity of the management information memory is reduced. Even when the power of the video camera is cut off during the file deletion process, it is possible to prevent the data recorded on the recording medium 113 from being inconsistent with the management information. For this reason, it is possible to prevent the file recorded on the recording medium 113 from being read out. Furthermore, in the second embodiment, by shortening the file from the front, it is sufficient to trace the cluster chain once to the end of the file while deleting the read cluster chain, so that the execution speed can be increased.

(他の実施形態)
また、本発明は、以下の処理を実行することによっても実現される。即ち、上述した実施形態の機能を実現するソフトウェア(プログラム)を、ネットワーク又は各種記憶媒体を介してシステム或いは装置に供給し、そのシステム或いは装置のコンピュータ(またはCPUやMPU等)がプログラムを読み出して実行する処理である。この場合、そのプログラム、及び該プログラムを記憶した記憶媒体は本発明を構成することになる。
(Other embodiments)
The present invention can also be realized by executing the following processing. That is, software (program) that realizes the functions of the above-described embodiments is supplied to a system or apparatus via a network or various storage media, and a computer (or CPU, MPU, or the like) of the system or apparatus reads the program. It is a process to be executed. In this case, the program and the storage medium storing the program constitute the present invention.

Claims (5)

複数のクラスタを有する記録媒体に対し、ファイルと、前記ファイルのファイルサイズを示すディレクトリ情報と、前記記録媒体における各クラスタの使用状態を示す管理テーブルとを記録し、前記記録媒体から前記ディレクトリ情報及び前記管理テーブルを読み出し、読み出した前記ディレクトリ情報及び前記管理テーブルに基づき前記記録媒体から前記ファイルを読み出して再生する記録媒体制御手段と、
前記記録媒体から読み出された前記ディレクトリ情報及び前記管理テーブルを記憶するメモリと、
前記記録媒体に記録されたファイルの削除指示に応じて、前記メモリに記憶されたディレクトリ情報及び管理テーブルを変更し、該変更したディレクトリ情報及び管理テーブルを前記記録媒体制御手段により前記記録媒体に記録させる制御部とを備え、
前記制御部は、前記削除指示に係るファイルのディレクトリ情報を前記記録媒体から読み出して前記メモリに記憶させた後に、前記削除指示に係るファイルの管理テーブルの一部を前記メモリに記憶することができない場合、該管理テーブルのうち前記メモリに記憶可能な部分のサイズに基づいて前記メモリに記憶されたディレクトリ情報が示すファイルサイズを変更して前記記録媒体に記録させると共に、前記削除指示に係るファイルの管理テーブルのうち前記メモリに記憶可能な部分を前記記録媒体から読み出して前記メモリに記憶させ、前記メモリに記憶した当該部分の管理テーブルを未使用状態に変更して前記記録媒体に記録させることを特徴とする記録再生装置。
A file, directory information indicating a file size of the file, and a management table indicating a use state of each cluster in the recording medium are recorded on a recording medium having a plurality of clusters, and the directory information and Recording medium control means for reading the management table, reading the file from the recording medium based on the read directory information and the management table, and reproducing the file;
A memory for storing the directory information and the management table read from the recording medium;
In response to an instruction to delete the file recorded on the recording medium, the directory information and management table stored in the memory are changed, and the changed directory information and management table are recorded on the recording medium by the recording medium control means. And a control unit
The control unit cannot store a part of the management table of the file related to the deletion instruction in the memory after the directory information of the file related to the deletion instruction is read from the recording medium and stored in the memory. In this case, the file size indicated by the directory information stored in the memory is changed based on the size of the portion of the management table that can be stored in the memory, and recorded on the recording medium. A portion of the management table that can be stored in the memory is read from the recording medium and stored in the memory, and the management table of the portion stored in the memory is changed to an unused state and recorded on the recording medium. A characteristic recording / reproducing apparatus.
前記制御部は、前記削除指示に係るファイルのディレクトリ情報を前記記録媒体から読み出して前記メモリに記憶させた後に、前記削除指示に係るファイルの管理テーブルの一部を前記メモリに記憶することができない場合、
前記管理テーブルのうち前記メモリに記憶可能なサイズに基づいて前記メモリに記憶されたディレクトリ情報が示すファイルサイズを変更して前記記録媒体に記録させ、
前記記録媒体から、前記削除指示に係るファイルの管理テーブルのうち当該ファイル末尾の管理テーブルエントリから前記メモリに記憶可能なサイズ分を読み出して前記メモリに記憶させ、
前記メモリに記憶した部分の管理テーブルの先頭の管理テーブルエントリをファイル末尾を示す値に変更し、その他の管理テーブルエントリを未使用を示す値に変更して、当該変更後の管理テーブルを前記記録媒体に記録させる
ことを特徴とする請求項1に記載の記録再生装置。
The control unit cannot store a part of the management table of the file related to the deletion instruction in the memory after the directory information of the file related to the deletion instruction is read from the recording medium and stored in the memory. If
The file size indicated by the directory information stored in the memory based on the size that can be stored in the memory in the management table is changed and recorded on the recording medium,
From the recording medium, out of the management table of the file related to the deletion instruction, the size of data stored in the memory is read from the management table entry at the end of the file, and stored in the memory.
Change the management table entry at the beginning of the management table stored in the memory to a value indicating the end of the file, change the other management table entries to values indicating unused, and record the changed management table as the record The recording / reproducing apparatus according to claim 1, wherein recording is performed on a medium.
前記制御部は、前記削除指示に係るファイルのディレクトリ情報を前記記録媒体から読み出して前記メモリに記憶させた後に、前記削除指示に係るファイルの管理テーブルの一部を前記メモリに記憶することができない場合、
前記管理テーブルのうち前記メモリに記憶可能なサイズに基づいて前記メモリに記憶されたディレクトリ情報が示すファイルサイズを変更すると共に、前記削除指示に係るファイルの管理テーブルから、先頭クラスタから前記メモリに記憶可能な管理テーブルエントリの数だけ後のクラスタ番号を検出し、前記ディレクトリ情報が示す先頭クラスタ番号を該検出したクラスタ番号に変更し、該変更後のディレクトリ情報を前記記録媒体に記録させ、
前記記録媒体から、前記削除指示に係るファイルの管理テーブルのうち、変更前の先頭クラスタから、前記変更後の先頭クラスタ番号を含む管理テーブルエントリまでを読み出して前記メモリに記憶させ、
前記メモリに記憶した部分の管理テーブルの各管理テーブルエントリを未使用を示す値に変更して、当該変更後の管理テーブルを前記記録媒体に記録させる
ことを特徴とする請求項1に記載の記録再生装置。
The control unit cannot store a part of the management table of the file related to the deletion instruction in the memory after the directory information of the file related to the deletion instruction is read from the recording medium and stored in the memory. If
The file size indicated by the directory information stored in the memory is changed based on the size that can be stored in the memory in the management table, and is stored in the memory from the first cluster from the file management table according to the deletion instruction. The cluster number after the number of possible management table entries is detected, the leading cluster number indicated by the directory information is changed to the detected cluster number, the changed directory information is recorded on the recording medium,
From the recording medium, in the management table of the file related to the deletion instruction, from the first cluster before the change to the management table entry including the first cluster number after the change is read and stored in the memory,
2. The recording according to claim 1, wherein each management table entry of the management table of the portion stored in the memory is changed to a value indicating unused, and the changed management table is recorded on the recording medium. Playback device.
記録媒体制御手段が、複数のクラスタを有する記録媒体に対し、ファイルと、前記ファイルのファイルサイズを示すディレクトリ情報と、前記記録媒体における各クラスタの使用状態を示す管理テーブルとを記録し、前記記録媒体から前記ディレクトリ情報及び前記管理テーブルを読み出し、読み出した前記ディレクトリ情報及び前記管理テーブルに基づき前記記録媒体から前記ファイルを読み出して再生する記録媒体制御ステップと、
制御部が、前記記録媒体から読み出された前記ディレクトリ情報及び前記管理テーブルをメモリに格納する格納ステップと、
前記制御部が、前記記録媒体に記録されたファイルの削除指示に応じて、前記メモリに記憶されたディレクトリ情報及び管理テーブルを変更し、該変更したディレクトリ情報及び管理テーブルを前記記録媒体制御手段により前記記録媒体に記録させる制御ステップとを有し、
前記制御ステップにおいて、前記制御部は、前記削除指示に係るファイルのディレクトリ情報を前記記録媒体から読み出して前記メモリに記憶させた後に、前記削除指示に係るファイルの管理テーブルの一部を前記メモリに記憶することができない場合、該管理テーブルのうち前記メモリに記憶可能な部分のサイズに基づいて前記メモリに記憶されたディレクトリ情報が示すファイルサイズを変更して前記記録媒体に記録させると共に、前記削除指示に係るファイルの管理テーブルのうち前記メモリに記憶可能な部分を前記記録媒体から読み出して前記メモリに記憶させ、前記メモリに記憶した当該部分の管理テーブルを未使用状態に変更して前記記録媒体に記録させることを特徴とする記録再生装置の制御方法。
The recording medium control means records a file, directory information indicating the file size of the file, and a management table indicating a use state of each cluster in the recording medium, on the recording medium having a plurality of clusters, and the recording A recording medium control step of reading the directory information and the management table from a medium, reading the file from the recording medium based on the read directory information and the management table, and reproducing the file;
A storing step in which the control unit stores the directory information and the management table read from the recording medium in a memory;
The control unit changes the directory information and management table stored in the memory in response to an instruction to delete the file recorded on the recording medium, and the changed directory information and management table are changed by the recording medium control unit. And a control step for recording on the recording medium,
In the control step, the control unit reads directory information of the file related to the deletion instruction from the recording medium and stores it in the memory, and then stores a part of the management table of the file related to the deletion instruction in the memory. If the file cannot be stored, the file size indicated by the directory information stored in the memory is changed based on the size of the portion of the management table that can be stored in the memory, and the file is recorded on the recording medium, and the deletion A portion of the file management table corresponding to the instruction is read from the recording medium and stored in the memory, the management table of the portion stored in the memory is changed to an unused state, and the recording medium is stored. And a recording / reproducing apparatus control method.
コンピュータに請求項4に記載の記録再生装置の制御方法における各ステップを実行させるためのプログラム。   The program for making a computer perform each step in the control method of the recording / reproducing apparatus of Claim 4.
JP2010076202A 2010-03-29 2010-03-29 Recording / reproducing apparatus and control method thereof Active JP5489818B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2010076202A JP5489818B2 (en) 2010-03-29 2010-03-29 Recording / reproducing apparatus and control method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2010076202A JP5489818B2 (en) 2010-03-29 2010-03-29 Recording / reproducing apparatus and control method thereof

Publications (2)

Publication Number Publication Date
JP2011209949A JP2011209949A (en) 2011-10-20
JP5489818B2 true JP5489818B2 (en) 2014-05-14

Family

ID=44940946

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2010076202A Active JP5489818B2 (en) 2010-03-29 2010-03-29 Recording / reproducing apparatus and control method thereof

Country Status (1)

Country Link
JP (1) JP5489818B2 (en)

Also Published As

Publication number Publication date
JP2011209949A (en) 2011-10-20

Similar Documents

Publication Publication Date Title
JP3825465B2 (en) Memory card and memory card system
KR20070045114A (en) Information processing apparatus, information processing method, and computer program
JP4487954B2 (en) Data recording apparatus, data recording method, and program
JP6137980B2 (en) Recording apparatus and control method thereof
JP2007233638A (en) Information processor, information processing method, and computer program
JP5634057B2 (en) Recording apparatus and recording method
KR20170121992A (en) Video recording apparatus with pre-event circulation recording function
JP2015029231A (en) Recording apparatus and control method therefor
JP2010237907A (en) Storage device and recording method
JP5406750B2 (en) Recording apparatus and control method thereof
JP5523128B2 (en) Recording apparatus and control method thereof
JP2000267904A (en) Data recorder and its method
US9786317B2 (en) Recording apparatus and method of controlling recording apparatus
JP5814739B2 (en) Recording device
JP6220160B2 (en) Reproducing apparatus and control method thereof
JP5489818B2 (en) Recording / reproducing apparatus and control method thereof
JP2010015251A (en) Recording device
JP2009065387A (en) Video recorder, video recording method and program
JP6494275B2 (en) Recording apparatus and recording apparatus control method
JP2007059004A (en) Information processor and method, program, and recording medium
JP2006155461A (en) Information processor and processing method, and program
JP3552247B2 (en) Electronic still camera
JP2005085081A (en) Data recording device with nonvolatile semiconductor memory as recording medium
JP4356011B2 (en) Recording apparatus and method, imaging apparatus, recording medium, and program
JP2016015057A (en) Recording device

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20130321

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20140115

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: 20140127

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20140225

R151 Written notification of patent or utility model registration

Ref document number: 5489818

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151