JP4281571B2 - Recording apparatus and method, and program - Google Patents

Recording apparatus and method, and program Download PDF

Info

Publication number
JP4281571B2
JP4281571B2 JP2004047628A JP2004047628A JP4281571B2 JP 4281571 B2 JP4281571 B2 JP 4281571B2 JP 2004047628 A JP2004047628 A JP 2004047628A JP 2004047628 A JP2004047628 A JP 2004047628A JP 4281571 B2 JP4281571 B2 JP 4281571B2
Authority
JP
Japan
Prior art keywords
data
recording
input data
area
writing
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
Application number
JP2004047628A
Other languages
Japanese (ja)
Other versions
JP2005243068A (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.)
Sony Corp
Original Assignee
Sony Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Sony Corp filed Critical Sony Corp
Priority to JP2004047628A priority Critical patent/JP4281571B2/en
Publication of JP2005243068A publication Critical patent/JP2005243068A/en
Application granted granted Critical
Publication of JP4281571B2 publication Critical patent/JP4281571B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Description

本発明は、記録装置および方法、並びにプログラムに関し、特に、書き換え型記録媒体の各記録領域に対する書き換え回数(書き込み回数)を適切にカウントできるようにした記録装置および方法、並びにプログラムに関する。   The present invention relates to a recording apparatus, method, and program, and more particularly, to a recording apparatus, method, and program that can appropriately count the number of times of rewriting (number of times of writing) for each recording area of a rewritable recording medium.

ランダムアクセス可能な記録媒体(例えば、光ディスク)は、その記録密度の高密度化に伴い、放送を含む多くの分野で、利用されるようになってきている(例えば、特許文献1参照)。
特開平11-136631号公報
Randomly accessible recording media (for example, optical discs) have come to be used in many fields including broadcasting as the recording density increases (see, for example, Patent Document 1).
Japanese Patent Laid-Open No. 11-136631

しかしながら、例えば、光ディスクに対する書き換え回数(書き込み回数)は、1000回程度が上限とされている。即ち、光ディスクの特定の場所に偏って書き換えが行われると、その場所だけ書き込み回数が上限に達し、その後、その場所への書き込みができなくなる。このように所定の場所への書き込みができなくなるということは、光ディスク上に連続する大きな記録領域を確保しにくくなることを意味し、その結果、例えば、シークに時間がかかるなど、記録再生処理に不都合が生じるようになる。   However, for example, the upper limit of the number of rewrites (write times) to the optical disc is about 1000 times. That is, if rewriting is performed with a bias toward a specific location on the optical disc, the number of times of writing reaches the upper limit only at that location, and then writing to that location becomes impossible. The inability to write to a predetermined location in this manner means that it is difficult to secure a large continuous recording area on the optical disk, and as a result, for example, it takes time to seek, so that recording / playback processing is performed. Inconvenience comes to occur.

なお、光ディスク等を記録媒体とする従来の記録装置では、光ディスク上に形成されている空き領域の場所や大きさ等の情報(以下、空き領域データと称する)が、データの書き込みまたは削除に応じて更新され、所定のタイミングで光ディスクに書き戻されるが、その空き領域データに基づいて、記録媒体に対する書き込み回数を均等にするようにはなされていない。   In a conventional recording apparatus using an optical disk or the like as a recording medium, information such as the location and size of an empty area formed on the optical disk (hereinafter referred to as empty area data) corresponds to the writing or deletion of data. However, the number of times of writing to the recording medium is not made uniform based on the empty area data.

そこで、本願出願人は、この空き領域データに基づいて、記録媒体に対する書き込み回数を均等にすることが可能な記録装置を既に発明し、特願2002-313781号として出願している。   Therefore, the applicant of the present application has already invented a recording apparatus capable of equalizing the number of times of writing to the recording medium based on the empty area data, and has filed an application as Japanese Patent Application No. 2002-313781.

現状、本願出願人が既に発明し出願したこの記録装置よりもさらに適切に、書き込み回数をカウントしたいという要求が挙げられ始めている。   At present, there is an increasing demand for counting the number of times of writing more appropriately than the recording apparatus already invented and applied by the present applicant.

本発明はこのような状況に鑑みてなされたものであり、ランダムアクセス可能な記録媒体に対する書き込み回数をより適切にカウントすることができるようにするものである。   The present invention has been made in view of such a situation, and makes it possible to more appropriately count the number of times of writing to a randomly accessible recording medium.

本発明の記録装置は、記録媒体の記録領域のうちの、予め設定された記録開始位置の後方に配置される1以上の空き領域に、その配置の順番に、入力データを順次書き込む書き込み手段と、書き込み手段により記録領域に書き込まれた入力データのうちの、最後に書き込まれた第1の入力データを削除する削除手段と、削除手段により第1の入力データが削除された場合、記録開始位置として、記録領域の先頭位置を設定し、記録領域に対する入力データの書き込み回数として、それまで書き込み回数として設定されていた値に1だけ加算した値を設定する設定手段とを備え、書き込み手段は、削除手段により第1の入力データが削除された後、1以上の空き領域のうち、設定手段により設定された記録開始位置の後方の1番目に配置される空き領域に、次の第2の入力データを書き込むThe recording apparatus of the present invention includes a writing means for sequentially writing input data in the order of arrangement in one or more empty areas arranged behind a preset recording start position in a recording area of a recording medium. , of the input data written in the recording area by the writing means, the last written first and deleting means for deleting the input data, first input data deleted if the deletion unit, starting recording as the position, sets the head position of the recording area, as the number of times of writing input data to the recording area, and a setting unit to set the value only by adding 1 to the value which has been set as the writing times until then, writing The means is arranged at the first position behind the recording start position set by the setting means in one or more free areas after the first input data is deleted by the deleting means. To come area, write the next second input data.

削除手段は、第1の入力データを削除した後、さらに、記録領域に書き込まれた入力データのうちの第1の入力データとは異なる第3の入力データを、書き込み手段により第2の入力データが記録媒体に書き込まれる前に削除し、削除手段により第3の入力データが削除された場合、定手段は、記録開始位置の設定を保持し、書き込み回数の設定を保持することができる。 The deleting unit deletes the first input data, and further, the writing unit outputs third input data different from the first input data from the input data written in the recording area. There was deleted before it is written to the recording medium, when the third input data is deleted by the deleting means, setting means holds the setting of the recording start position, it is possible to hold a set number of write operations.

記録領域をフォーマットするフォーマット手段をさらに備え、フォーマット手段により記録領域がフォーマットされた場合、定手段は、記録開始位置として、記録領域の先頭位置を設定し書き込み回数として、それまで書き込み回数として設定されていた値に1だけ加算した値を設定することができる。 Further comprising a formatting means for formatting the recording area, if the recording region is formatted by the formatting means, setting means, as a recording start position, set the start position of the recording area, as write count, as the number of writing times until it A value obtained by adding 1 to the set value can be set.

書き込み手段は、入力データを空き領域に書き込む毎、設定手段により設定された現時点の書き込み回数を示すデータも、書き込み対象とされている入力データに含めて空き領域に書き込むようにすることができる。   The writing means can write the data indicating the current number of times of writing set by the setting means into the free area every time the input data is written into the free area.

本発明の記録方法は、記録媒体の記録領域のうちの、予め設定された記録開始位置の後方に配置される1以上の空き領域に、その配置の順番に、入力データを順次書き込む書き込みステップと、書き込みステップの処理により記録領域に書き込まれた入力データのうちの、最後に書き込まれた第1の入力データを削除する削除ステップと、削除ステップの処理により第1の入力データが削除された場合、記録開始位置として、記録領域の先頭位置を設定し、記録領域に対する入力データの書き込み回数として、それまで書き込み回数として設定されていた値に1だけ加算した値を設定する設定ステップとを含み、書き込みステップには、削除手段により第1の入力データが削除された後、1以上の空き領域のうち、設定手段により設定された記録開始位置の後方の1番目に配置される空き領域に、次の第2の入力データを書き込むステップを含むThe recording method of the present invention includes a writing step of sequentially writing input data in the order of arrangement in one or more empty areas arranged behind a preset recording start position in a recording area of a recording medium. Among the input data written to the recording area by the writing step process, a deletion step for deleting the first input data written last, and a case where the first input data is deleted by the processing of the deletion step if, as a recording start position, set the start position of the recording area, as the number of times of writing input data to the recording area, it until a setting step to set the value obtained by adding 1 to the value which has been set as the number of writing In the writing step, after the first input data is deleted by the deleting unit, the setting unit sets one or more free areas. The free space is arranged in the first rear of the recording start position, comprising the step of writing the following second input data.

本発明のプログラムは、記録媒体の記録領域のうちの、予め設定された記録開始位置の後方に配置される1以上の空き領域に、その配置の順番に、入力データを順次書き込む書き込みステップと、書き込みステップの処理により記録領域に書き込まれた入力データのうちの、最後に書き込まれた第1の入力データを削除する削除ステップと、削除ステップの処理により第1の入力データが削除された場合、記録開始位置として、記録領域の先頭位置を設定し、記録領域に対する入力データの書き込み回数として、それまで書き込み回数として設定されていた値に1だけ加算した値を設定する設定ステップとを含み、書き込みステップには、削除手段により第1の入力データが削除された後、1以上の空き領域のうち、設定手段により設定された記録開始位置の後方の1番目に配置される空き領域に、次の第2の入力データを書き込むステップを含むThe program of the present invention includes a writing step of sequentially writing input data in the order of arrangement in one or more empty areas arranged behind a preset recording start position in the recording area of the recording medium, of the input data written in the recording area by the processing of the writing step, the last written first and deletion step of deleting the input data, the first field input data is deleted if the process of deleting step , as the recording start position, set the start position of the recording area, as the number of times of writing input data to the recording area, it until a setting step to set the value only by adding 1 to the value which has been set as the number of writing In the writing step, after the first input data is deleted by the deleting unit, the setting unit sets one or more free areas. The free space is arranged in the first rear recording start position, comprising the step of writing the following second input data.

本発明の記録装置および方法、並びにプログラムにおいては、記録媒体の記録領域のうちの、予め設定された記録開始位置の後方に配置される1以上の空き領域に、その配置の順番に、入力データが順次書き込まれ、記録領域に書き込まれた入力データのうちの、最後に書き込まれた第1の入力データが削除され、第1の入力データが削除された場合、記録開始位置として、記録領域の先頭位置が設定され、記録領域に対する入力データの書き込み回数として、それまで書き込み回数として設定されていた値に1だけ加算した値が設定される。第1の入力データが削除された後、1以上の空き領域のうち、設定手段により設定された記録開始位置の後方の1番目に配置される空き領域に、次の第2の入力データが書き込まれるIn the recording apparatus and method, and the program of the present invention, input data in one or more empty areas arranged behind a preset recording start position in the order of arrangement in the recording area of the recording medium. There written sequentially, of the input data written in the recording area, a first input data written last is removed, if the first input data is deleted, as the recording start position, a recording area Is set , and the value obtained by adding 1 to the value set as the number of times of writing is set as the number of times of writing the input data to the recording area. After the first input data is deleted, the next second input data is written into the first empty area located behind the recording start position set by the setting means among the one or more empty areas. It is .

以上のごとく、本発明によれば、ランダムアクセス可能な記録媒体に対する書き込み回数を均等にすることができる。特に、その書き込み回数を適切にカウントすることができる。   As described above, according to the present invention, the number of times of writing to a randomly accessible recording medium can be made uniform. In particular, the number of times of writing can be appropriately counted.

次に、図面を参照して、本発明の実施の形態について説明する。   Next, embodiments of the present invention will be described with reference to the drawings.

図1は、本発明を適用した記録装置1の構成例を示している。   FIG. 1 shows a configuration example of a recording apparatus 1 to which the present invention is applied.

記録装置1は、光ディスク2にデータを記録したり、光ディスク2に記録されているデータを削除するなどの編集処理を行う。   The recording device 1 performs an editing process such as recording data on the optical disc 2 or deleting data recorded on the optical disc 2.

記録装置1は、図1に示すように、入力データ処理部11乃至制御部16より構成されている。   As illustrated in FIG. 1, the recording apparatus 1 includes an input data processing unit 11 to a control unit 16.

入力データ処理部11は、ビデオ/オーディオインタフェース、エンコーダ、およびバッファメモリ等から構成され、例えば、図示せぬ撮像装置から入力された画像信号またはマイクロフォンから入力された音声信号にエンコード処理や音声処理を施し、その結果得られたデータを、制御部16を介して、ドライブ15に供給する。   The input data processing unit 11 includes a video / audio interface, an encoder, a buffer memory, and the like. For example, the input data processing unit 11 performs encoding processing and audio processing on an image signal input from an imaging device (not shown) or an audio signal input from a microphone. The data obtained as a result is supplied to the drive 15 via the control unit 16.

具体的には、例えば、本実施の形態では、図示せぬビデオレコーダ(正確には、それに搭載された撮像装置)により録画された画像信号と、それに対応する音声信号(正確には、それに搭載されたマイクロフォンにより録音された音声信号)とが記録装置1に入力されるとする。なお、以下、このようなビデオレコーダから出力される画像信号と音声信号とをまとめて、AV信号と適宜称する。また、AV信号がデータ化された場合、そのデータを、AVデータと適宜称する。   Specifically, for example, in the present embodiment, an image signal recorded by a video recorder (not shown) (accurately, an imaging device mounted thereon) and a corresponding audio signal (accurately mounted on it) Audio signal recorded by the recorded microphone) is input to the recording apparatus 1. Hereinafter, image signals and audio signals output from such a video recorder are collectively referred to as AV signals as appropriate. When the AV signal is converted into data, the data is appropriately referred to as AV data.

さらに、本実施の形態においては、記録装置1が処理するAVデータの単位は、クリップデータとされる。クリップとは、ビデオレコーダの撮像処理の回数の単位である。またそれ以外にも、クリップは、その撮像処理の撮像開始から撮像終了までの時間を示す単位を示したり、その撮像処理により得られた各種のデータの長さを示す単位を示したり、その撮像処理により得られた各種のデータのデータ量を示す単位を示したりする。さらに、クリップは、その各種のデータの集合体そのものも示す場合もある。   Furthermore, in the present embodiment, the unit of AV data processed by the recording apparatus 1 is clip data. A clip is a unit of the number of times of imaging processing of a video recorder. In addition, the clip indicates a unit indicating the time from the start of imaging to the end of imaging of the imaging process, a unit indicating the length of various data obtained by the imaging process, or the imaging A unit indicating the data amount of various data obtained by processing is indicated. Furthermore, the clip may also indicate the collection of various data itself.

ここでは、クリップとは、次のような単位であるとする。即ち、ビデオレコーダには、一般的に、録画の開始または終了を指示するボタン(以下、録画ボタンと称する)が設けられており、録画ボタンが押下されて録画が開始され、その後、録画ボタンが再度押下されて録画が終了されるまでの間に(1回の撮像処理で)、被写体が録画された結果得られるAV信号やそれに付随する各種の信号の集合体とされる。   Here, it is assumed that the clip is a unit as follows. That is, a video recorder is generally provided with a button for instructing the start or end of recording (hereinafter referred to as a recording button). When the recording button is pressed, recording is started. The AV signal obtained as a result of recording the subject and various signals accompanying it are recorded until the recording is completed after being pressed again (by one imaging process).

従って、ここでは、クリップデータとは、そのクリップがデータ化されたAVデータを指す。さらに、クリップデータには、AVデータの他に、メタデータ等新たに生成されたデータも含まれることがある。   Therefore, here, the clip data refers to AV data obtained by converting the clip into data. Further, the clip data may include newly generated data such as metadata in addition to AV data.

記憶部12は、制御部16が行う編集処理において必要なデータを記憶したり、記憶しているデータを(本実施の形態ではクリップ単位で)制御部16に供給する。   The storage unit 12 stores data necessary for editing processing performed by the control unit 16 and supplies the stored data to the control unit 16 (in a clip unit in the present embodiment).

操作部13は、所定の指令を制御部16に入力するとき、ユーザにより適宜操作される。表示部14は、制御部16から供給されたデータに対応するメッセージや画像を表示する。   The operation unit 13 is appropriately operated by the user when a predetermined command is input to the control unit 16. The display unit 14 displays a message and an image corresponding to the data supplied from the control unit 16.

ドライブ15は、制御部16の制御に基づいて、その制御部16を介して入力された、入力データ処理部11からの入力データ(本実施の形態では、クリップデータ)を、光ディスク2に記録したり、光ディスク2に記録されているデータを削除する処理を行う。   Under the control of the control unit 16, the drive 15 records the input data (in this embodiment, clip data) from the input data processing unit 11 input via the control unit 16 on the optical disc 2. Or the process of deleting data recorded on the optical disc 2 is performed.

光ディスク2は、所定のサイズを単位とする1以上の領域(以下、クラスタと称する)に区分されている。そこで、ドライブ15は、クリップデータを光ディスク2に記録する等の処理を実行する場合、クリップデータをその単位(クラスタと同サイズ)のデータに区分し、区分したデータ(以下、クラスタデータと称する)毎に処理を実行していく。   The optical disc 2 is divided into one or more areas (hereinafter referred to as clusters) having a predetermined size as a unit. Therefore, when the drive 15 executes processing such as recording the clip data on the optical disc 2, the clip data is divided into data of the unit (the same size as the cluster) and divided data (hereinafter referred to as cluster data). The process is executed every time.

例えば、ドライブ15は、クリップデータを光ディスク2に記録する場合、クリップデータを、1以上のクラスタデータに区分し、各クラスタデータのそれぞれを、光ディスク2を構成するクラスタのそれぞれに順次記録していく。このとき、ドライブ15に設けられているエラー判定部21は、1つのクラスタデータが記録される(書き込まれる)毎に、そのクラスタデータを光ディスク2から再び読み出して、エラーのチェック(正常に記録されていることのチェック)を行い、エラーを検出したときには、直前に書き込んだそのクラスデータを光ディスク2に再度書き込む(リトライする)処理を実行する。   For example, when the clip data is recorded on the optical disc 2, the drive 15 divides the clip data into one or more cluster data, and sequentially records each cluster data in each cluster constituting the optical disc 2. . At this time, each time one piece of cluster data is recorded (written), the error determination unit 21 provided in the drive 15 reads the cluster data from the optical disc 2 again to check for errors (normally recorded). When an error is detected, a process of rewriting (retrying) the class data written immediately before to the optical disc 2 is executed.

詳細については後述するが(図9乃至図13参照)、このようにしてエラーを検出したとき、エラー判定部21はさらに、エラーの発生要因は、記録装置1が揺れた等の外的(光ディスク2から見て)要因であるのか、或いは、光ディスク2自身の傷等の内的(光ディスク2から見て)要因であるのかを判定する。そして、エラー判定部21は、判定したエラー発生要因の特徴(内的または外的要因のそれぞれの特徴)に応じたリトライ処理を実行する。   Although details will be described later (see FIG. 9 to FIG. 13), when an error is detected in this way, the error determination unit 21 further causes the error to be caused by an external (optical disc) such as the recording device 1 shaking. It is determined whether it is a factor (as viewed from 2) or an internal factor (as viewed from the optical disc 2) such as a scratch on the optical disc 2 itself. Then, the error determination unit 21 executes a retry process according to the determined characteristics of the cause of error occurrence (characteristics of internal or external factors).

制御部16は、各部を制御する。   The control unit 16 controls each unit.

記録装置1における編集処理の概略を、図2のフローチャートを参照して説明する。なおここでは、簡単のために、図2のフローチャートに示す順番に従って各処理を説明するが、ステップS1における起動処理、ステップS5におけるフォーマット処理、ステップS7におけるデータ記録処理、およびステップS9におけるデータ削除処理は、それぞれ独立して行うようにすることもできるし、他の装置で行われるようにすることもできる。   An outline of editing processing in the recording apparatus 1 will be described with reference to the flowchart of FIG. Here, for the sake of simplicity, each process will be described in the order shown in the flowchart of FIG. 2, but the startup process in step S1, the format process in step S5, the data recording process in step S7, and the data deletion process in step S9 Can be performed independently, or can be performed by other devices.

ステップS1において、制御部16は、例えば、電源が投入等されたとき、記録装置1を起動する処理を行う。ここでの処理の詳細は、図3のフローチャートを参照して後述する。   In step S1, the control unit 16 performs a process of starting the recording apparatus 1 when the power is turned on, for example. Details of this processing will be described later with reference to the flowchart of FIG.

次に、ステップS2において、制御部16は、復元すべきデータが有るか否かを判定する。ステップS2において、復元すべきデータが有ると判定した場合、制御部16は、ステップS3において、ドライブ15を制御して、復元すべきデータを光ディスク2上に復元する。なお、データの復元の処理(ステップS2とS3の処理)の詳細は、図32、図35、および図36を参照して後述する。   Next, in step S2, the control unit 16 determines whether there is data to be restored. When it is determined in step S2 that there is data to be restored, the control unit 16 controls the drive 15 to restore the data to be restored on the optical disc 2 in step S3. Details of the data restoration processing (steps S2 and S3) will be described later with reference to FIGS. 32, 35, and 36.

このようにして、ステップS3の処理でデータが復元されたとき、或いは、ステップS2において、復元すべきデータが存在しない(有ではない)と判定されたとき、処理はステップS4に進む。   In this way, when data is restored in the process of step S3, or when it is determined in step S2 that there is no data to be restored (not present), the process proceeds to step S4.

ステップS4において、制御部16は、操作部13から、光ディスク2のフォーマットが要求されたか否かを判定し、フォーマットが要求されたと判定した場合、ステップS5において、ドライブ15を制御して、光ディスク2のフォーマット処理を実行する。ここでの処理の詳細は、図7のフローチャートを参照して後述する。   In step S4, the control unit 16 determines whether or not the format of the optical disc 2 is requested from the operation unit 13. If it is determined that the format is requested, the control unit 16 controls the drive 15 in step S5 to control the optical disc 2. Execute the formatting process. Details of this processing will be described later with reference to the flowchart of FIG.

このようにして、ステップS5の処理で光ディスク2がフォーマットされたとき、或いは、ステップS4において、フォーマットの要求がないと判定されたとき、処理はステップS6に進む。   In this way, when the optical disc 2 is formatted in the process of step S5, or when it is determined in step S4 that there is no request for formatting, the process proceeds to step S6.

次に、ステップS6において、制御部16は、操作部13から、データの記録が要求されたか否かを判定し、データの記録が要求されたと判定した場合、ステップS7において、ドライブ15を制御して、入力データ処理部11より入力されたデータを光ディスク2に記録させる。ここでの処理の詳細は、図8のフローチャートを参照して後述する。   Next, in step S6, the control unit 16 determines whether or not data recording is requested from the operation unit 13, and if it is determined that data recording is requested, the control unit 16 controls the drive 15 in step S7. Thus, the data input from the input data processing unit 11 is recorded on the optical disc 2. Details of this processing will be described later with reference to the flowchart of FIG.

ステップS6で、データの記録が要求されていないと判定されたとき、またはステップS7の処理でデータが記録されたとき、ステップS8において、制御部16は、操作部13から、データの削除が要求されたか否かを判定し、データの削除が要求されたと判定した場合、ステップS9において、要求されたデータを削除する。ここでの処理の詳細は、図14のフローチャートを参照して後述する。   When it is determined in step S6 that data recording is not requested, or when data is recorded in step S7, in step S8, the control unit 16 requests the operation unit 13 to delete data. In step S9, the requested data is deleted. If it is determined whether deletion of data has been requested, the requested data is deleted. Details of this processing will be described later with reference to the flowchart of FIG.

ステップS8で、データの削除が要求されなかったと判定されたとき、またはステップS9の処理で、データが削除されたとき、ステップS10において、制御部16は、編集終了の指令が有るか否かを判定し、その指令があったと判定した場合、処理をステップS11に進める。例えば、光ディスク2が取り出された場合、編集終了が指令されたものとして、処理はステップS11に進む。   When it is determined in step S8 that deletion of data has not been requested, or when data has been deleted in the process of step S9, in step S10, the control unit 16 determines whether or not there is a command to end editing. If it is determined that the command has been issued, the process proceeds to step S11. For example, when the optical disc 2 is removed, the process proceeds to step S11 on the assumption that the editing end is instructed.

ステップS11において、制御部16は、ドライブ15を制御して、空き領域データ(従来の記録装置において利用されている、空き領域の大きさや場所等の情報)とともに、ステップS1,S7,S9の処理で作成された空き領域書換管理データを、光ディスク2に記録させる。   In step S11, the control unit 16 controls the drive 15 to perform the processing in steps S1, S7, and S9 together with free area data (information such as the size and location of the free area used in the conventional recording apparatus). The free area rewrite management data created in step 1 is recorded on the optical disc 2.

なお、ステップS11の処理は、光ディスク2が取り出されるとき、または電源がオフされたときに行われるようにすることもできる。   Note that the processing in step S11 may be performed when the optical disc 2 is taken out or when the power is turned off.

その後、処理は終了する。   Thereafter, the process ends.

これに対して、ステップS10において、制御部16は、編集終了の指令が有るか否かを判定し、その指令がなかったと判定した場合、処理をステップS4に戻し、それ以降の処理を繰り返す。   On the other hand, in step S10, the control unit 16 determines whether or not there is a command to end editing. If it is determined that there is no command, the control unit 16 returns the process to step S4 and repeats the subsequent processes.

次に、図3のフローチャートを参照して、図2のステップS1における起動処理を説明する。   Next, the activation process in step S1 of FIG. 2 will be described with reference to the flowchart of FIG.

ステップS21において、制御部16は、図4に示すように、カレントキュー101、ネクストキュー102、書き込み回数の欄103、および記録開始位置の欄104を、記憶部12上に作成する。なお、作成されたカレントキュー101乃至記録開始位置の欄104は、空の状態とされている。   In step S21, the control unit 16 creates a current queue 101, a next queue 102, a write count column 103, and a recording start position column 104 on the storage unit 12, as shown in FIG. The created current queue 101 to recording start position column 104 are empty.

次に、ステップS22において、制御部16は、光ディスク2に空き領域書換管理データが記録されているか否かを判定し、記録されていないと判定した場合、ステップS23に進む。記録装置1により、データの書き込みや削除(編集処理)が行われていない光ディスク2(すなわち、図2のステップS11の処理で、空き領域書換管理データが記録されていない光ディスク2)には、空き領域書換管理データが記録されていないので、そのような光ディスク2が装着されたとき、ステップS23に進む。   Next, in step S22, the control unit 16 determines whether or not free space rewriting management data is recorded on the optical disc 2, and if it is determined that it is not recorded, the control unit 16 proceeds to step S23. There is no free space in the optical disc 2 on which data has not been written or deleted (edited) by the recording device 1 (that is, the optical disc 2 in which free area rewrite management data has not been recorded in step S11 in FIG. 2). Since the area rewrite management data is not recorded, when such an optical disc 2 is loaded, the process proceeds to step S23.

ステップS23において、制御部16は、光ディスク2に空き領域データが記録されているか否かを判定し、空き領域データが記録されていると判定された場合、ステップS27に進む。   In step S23, the control unit 16 determines whether or not free area data is recorded on the optical disc 2. If it is determined that free area data is recorded, the process proceeds to step S27.

ステップS27において、制御部16は、記憶部12に作成したカレントキュー101に、装着時の光ディスク2に存在するすべての空き領域の領域情報(この例の場合、空き領域の領域開始位置および大きさ)を、空き領域のアドレス上の位置の順に設定する。   In step S27, the control unit 16 stores, in the current queue 101 created in the storage unit 12, area information of all the empty areas existing on the optical disc 2 at the time of mounting (in this example, the area start position and size of the empty area). ) Are set in the order of the positions on the addresses of the free areas.

例えば、光ディスク2に、図5に示すように、空き領域A乃至空き領域Dが存在する場合、カレントキュー101には、図6に示すように、空き領域A乃至空き領域Dの領域先頭位置、およびその大きさが、領域先頭位置の順に設定される。ここで空き領域の位置は、例えば、論理セクタ番号のブロック毎の順番を表す論理ブロック番号で表され、その大きさは、空き領域に属するブロック数で表される。   For example, if there are free areas A to D as shown in FIG. 5 on the optical disc 2, the current queue 101 contains the area start positions of the free areas A to D as shown in FIG. And the magnitude | size is set in order of an area | region head position. Here, the position of the free area is represented by, for example, a logical block number representing the order of each logical sector number for each block, and the size is represented by the number of blocks belonging to the free area.

なお、本実施の形態では、位置000000とは、光ディスク2の記録領域の先頭位置を指す。また、記録領域とは、本実施の形態では、クリップデータの記録が可能な領域を指す。   In the present embodiment, the position 000000 indicates the start position of the recording area of the optical disc 2. Further, the recording area refers to an area in which clip data can be recorded in the present embodiment.

なお、以下において、適宜、このように領域情報が設定されることを、空き領域が登録される、と記載する。   In the following, setting the area information as described above will be referred to as registering a free area.

次に、ステップS25において、制御部16は、図6に示すように、記憶部12に作成された書き込み回数の欄103に1を初期設定し、ステップS26において、記録開始位置の欄104に、光ディスク2の(記録領域の)先頭位置(位置00000)を初期設定する。なお、図5中、上向きの矢印104Aは、図6の記録開始位置104に設定された値、即ち、記録開始位置を表している。従って、以下、矢印104Aを、記録開始位置104Aと称する。   Next, in step S25, as shown in FIG. 6, the control unit 16 initially sets 1 in the write count column 103 created in the storage unit 12, and in step S26, in the record start position column 104, The initial position (position 00000) of the optical disc 2 (in the recording area) is initialized. In FIG. 5, an upward arrow 104A represents a value set at the recording start position 104 in FIG. 6, that is, the recording start position. Therefore, hereinafter, the arrow 104A is referred to as a recording start position 104A.

ステップS23で、空き領域データが記録されていないと判定された場合、ステップS24に進む。出荷時のままの状態で、記録装置1や従来の記録装置により、フォーマットがまだなされていない光ディスク2には、空き領域データも記録されていないので、そのような光ディスク2が装着されたとき、ステップS24に進む。   If it is determined in step S23 that no free area data is recorded, the process proceeds to step S24. Since the empty area data is not recorded on the optical disk 2 that has not been formatted by the recording apparatus 1 or the conventional recording apparatus in the state as shipped, when such an optical disk 2 is loaded, Proceed to step S24.

ステップS24において、制御部16は、光ディスクの記録領域全体を1つの空き領域として、記憶部12のカレントキュー101に登録する。その後、処理は、ステップS25に進む。   In step S24, the control unit 16 registers the entire recording area of the optical disc as one free area in the current queue 101 of the storage unit 12. Thereafter, the process proceeds to step S25.

ステップS22で、空き領域書換管理データが記録されていると判定された場合、ステップS28に進む。なお、空き領域書換管理データとは、結局、図6に示したようなカレントキュー101乃至記録開始位置の欄104のそれぞれに設定されているデータ全体をいい、このデータは、編集処理がなされた光ディスク2に、ステップS11(図2)で記録される。   If it is determined in step S22 that free area rewrite management data is recorded, the process proceeds to step S28. The free space rewriting management data means all the data set in each of the current queue 101 to the recording start position column 104 as shown in FIG. 6, and this data has been subjected to editing processing. Recording is performed on the optical disc 2 in step S11 (FIG. 2).

ステップS28において、制御部16は、その空き領域書換管理データに含まれる、カレントキュー101に登録されていた空き領域(その領域情報)を、記憶部12に生成したカレントキュー101に登録し、空き領域書換管理データに含まれる、ネクストキュー102に登録されていた空き領域を、記憶部12に生成したネクストキュー102に登録する。そしてステップS29において、制御部16は、空き領域書換管理データに含まれる、書き込み回数の欄103に設定されていた値を、記憶部12に生成した書き込み回数の欄103に設定し、ステップS30において、空き領域書換管理データに含まれる、記録開始位置の欄104に設定されていた値を、記憶部12の記録開始位置の欄104に設定する。   In step S28, the control unit 16 registers the free area (the area information) registered in the current queue 101 included in the free area rewrite management data in the current queue 101 generated in the storage unit 12, and the free area is rewritten. The free area registered in the next queue 102 included in the area rewrite management data is registered in the next queue 102 generated in the storage unit 12. In step S29, the control unit 16 sets the value set in the write count column 103 included in the free area rewrite management data in the write count column 103 generated in the storage unit 12, and in step S30. Then, the value set in the recording start position column 104 included in the empty area rewriting management data is set in the recording start position column 104 of the storage unit 12.

すなわち、ステップS28乃至ステップS30の処理により、光ディスク2に記録されていた空き領域書換管理データが、記憶部12に読み込まれる。   In other words, the free space rewriting management data recorded on the optical disc 2 is read into the storage unit 12 by the processing from step S28 to step S30.

ステップS26またはステップS30で、記録開始位置の欄104に所定の値が設定されたとき、処理は、図2のステップS2に進む。   When a predetermined value is set in the recording start position column 104 in step S26 or step S30, the process proceeds to step S2 in FIG.

次に、図2のステップS5におけるフォーマット処理を、図7のフローチャートを参照して、図2のステップS7におけるデータ記録処理を、図8のフローチャートを参照して、図2のステップS9におけるデータ削除処理を、図14を参照して説明するが、はじめにそれぞれのフローチャートに従ってその概略を説明し、その後、具体例に基づいて再度説明する。   Next, the formatting process in step S5 in FIG. 2 is referred to with reference to the flowchart in FIG. 7, the data recording process in step S7 in FIG. 2 is referred to, and the data deletion in step S9 in FIG. The process will be described with reference to FIG. 14. First, the outline will be described according to each flowchart, and then will be described again based on a specific example.

はじめにフォーマット処理を説明する。本実施の形態においては、上述したように、光ディスク2に記録されるデータの単位(上述したクラスタではなく、マクロ的に見た単位)は、クリップデータとされている。そこで、図7のステップS31において、制御部16は、光ディスク2に記録されているクリップデータの全てを削除する。即ち、本実施の形態では、光ディスク2がフォーマットされても空き領域書換管理データは削除されずに保持される。   First, the format process will be described. In the present embodiment, as described above, the unit of data recorded on the optical disc 2 (the unit viewed in a macro rather than the above-described cluster) is the clip data. Therefore, in step S31 of FIG. 7, the control unit 16 deletes all of the clip data recorded on the optical disc 2. That is, in the present embodiment, even if the optical disc 2 is formatted, the free area rewrite management data is retained without being deleted.

例えば、空き領域書換管理データを、光ディスク2上の記録領域とは異なる特別な領域に記録させることができる。このような場合、例えば、ステップS31において、制御部16は、光ディスク2のうちの記録領域をフォーマットする。   For example, the empty area rewrite management data can be recorded in a special area different from the recording area on the optical disc 2. In such a case, for example, in step S31, the control unit 16 formats the recording area of the optical disc 2.

ステップS32において、制御部16は、記憶部12の書き込み回数の欄103の書き込み回数を1だけインクリメントするとともに、ステップS33において、記録開始位置の欄104の値(即ち、記録開始位置104A)を、光ディスク2の(記録領域の)先頭位置(位置00000)に戻す。   In step S32, the control unit 16 increments the write count in the write count column 103 of the storage unit 12 by 1, and in step S33, the value in the record start position column 104 (that is, the record start position 104A) is changed. Return to the top position (position 00000) of the optical disc 2 (recording area).

次に、ステップS34において、制御部16は、記憶部12のカレントキュー101に、その時点で(フォーマット後の時点で)光ディスク2に存在するすべての空き領域の領域情報(この例の場合、空き領域の領域開始位置および大きさ)を、空き領域のアドレス上の位置の順に登録するとともに、ステップS35において、記録部12のネクストキュー102を空にする。   Next, in step S34, the control unit 16 stores in the current queue 101 of the storage unit 12 the area information of all the free areas that exist on the optical disc 2 at that time (at the time after formatting) (in this example, free space). The area start position and size of the area are registered in the order of the position on the address of the empty area, and the next queue 102 of the recording unit 12 is emptied in step S35.

その後、処理は、図2のステップS6に進む。   Thereafter, the processing proceeds to step S6 in FIG.

次にデータ記録処理を説明する。すなわち図8のステップS41において、制御部16は、図3のステップS24、ステップS27、若しくはステップS28、または図7のステップS34で、記憶部12に生成されたカレントキュー101に空き領域が登録されているか否かを判定し、空き領域が登録されていると判定した場合、ステップS42に進み、カレントキュー101に登録されている空き領域のうち、アドレス上最も前方に位置する(即ち、現時点の記録開始位置104Aに最も近い)空き領域を、データを書き込む領域に決定する。   Next, the data recording process will be described. That is, in step S41 in FIG. 8, the control unit 16 registers an empty area in the current queue 101 generated in the storage unit 12 in step S24, step S27, or step S28 in FIG. 3 or step S34 in FIG. If it is determined whether or not a free area is registered, the process proceeds to step S42, and the free area registered in the current queue 101 is located at the forefront of the address (that is, the current area). The empty area (closest to the recording start position 104A) is determined as an area for writing data.

次に、ステップS43において、制御部16は、データ書き込み処理を実行する。即ち、制御部16は、ドライブ15を制御して、光ディスク2上の、ステップS42で決定した空き領域に、入力データ処理部11により入力されたデータを記録させる。なお、データ書き込み処理の詳細は、図9のフローチャートを参照して後述する。   Next, in step S43, the control unit 16 executes a data writing process. That is, the control unit 16 controls the drive 15 to record the data input by the input data processing unit 11 in the empty area determined in step S42 on the optical disc 2. Details of the data writing process will be described later with reference to the flowchart of FIG.

ステップS44において、制御部16は、データが書き込まれた空き領域の領域情報を、書き込まれたデータ量に応じて変更する。具体的には、領域開始位置と大きさが、データが書き込まれた後に形成された空き領域のものを示すように変更される。   In step S44, the control unit 16 changes the area information of the empty area where the data is written in accordance with the written data amount. Specifically, the area start position and size are changed to indicate that of an empty area formed after data is written.

ステップS45において、制御部16は、記録すべきデータのすべてが光ディスク2に記録されたか否かを判定し、記録すべきデータがまだ記録されずに残っていると判定した場合、ステップS41に戻り、それ以降の処理を実行する。   In step S45, the control unit 16 determines whether or not all of the data to be recorded has been recorded on the optical disc 2, and returns to step S41 if it is determined that the data to be recorded remains unrecorded. The subsequent processing is executed.

ステップS45で、記録すべきデータがすべて記録されたと判定された場合、ステップS46に進み、制御部16は、記憶部12の記録開始位置の欄104の値(即ち、記録開始位置104A)を、データの書き込み終了位置(ステップS43の処理で最後のデータが書き込まれた場所の位置)に変更する。   If it is determined in step S45 that all data to be recorded has been recorded, the process proceeds to step S46, and the control unit 16 sets the value in the recording start position column 104 of the storage unit 12 (that is, the recording start position 104A). The position is changed to the data writing end position (the position where the last data is written in the process of step S43).

ステップS41で、カレントキュー101に空き領域が登録されていないと判定された場合、ステップS47に進み、制御部16は、記憶部12の書き込み回数の欄103の書き込み回数を1だけインクリメントするとともに、ステップS48において、記録開始位置の欄104の値(即ち、記録開始位置104A)を、光ディスク2の(記録領域の)先頭位置(位置00000)に戻す。   If it is determined in step S41 that a free area is not registered in the current queue 101, the process proceeds to step S47, and the control unit 16 increments the number of writes in the write number column 103 of the storage unit 12 by 1 and In step S48, the value in the recording start position column 104 (that is, the recording start position 104A) is returned to the head position (position 00000) on the optical disc 2.

次に、ステップS49において、制御部16は、ネクストキュー102に登録されている空き領域をカレントキュー101に移す。ネクストキュー102は、その結果空になる。   Next, in step S <b> 49, the control unit 16 moves the free area registered in the next queue 102 to the current queue 101. As a result, the next queue 102 becomes empty.

ステップS50において、制御部16は、カレントキュー101に空き領域が登録されているか否かを判定し、登録されていると判定した場合、ステップS42に戻り、それ以降の処理を実行する。   In step S50, the control unit 16 determines whether or not a free area is registered in the current queue 101. If it is determined that the free area is registered, the control unit 16 returns to step S42 and executes the subsequent processing.

ステップS50で、カレントキュー101に空き領域が登録されていないと判定された場合、ステップS41に進み、制御部16は、表示部14を制御して、記録不可を示すエラーメッセージを表示させる。   If it is determined in step S50 that no free area is registered in the current queue 101, the process proceeds to step S41, and the control unit 16 controls the display unit 14 to display an error message indicating that recording is not possible.

ステップS46で、記録開始位置の欄104の値(即ち、記録開始位置104A)が変更されたとき、またはステップS51でエラーメッセージが表示されたとき、処理は、図2のステップS8に進む。   When the value in the recording start position column 104 (that is, the recording start position 104A) is changed in step S46, or when an error message is displayed in step S51, the process proceeds to step S8 in FIG.

ここで、図9のフローチャートを参照して、ステップS43(図8)のデータ書き込み処理の詳細を説明する。   Here, the details of the data writing process in step S43 (FIG. 8) will be described with reference to the flowchart of FIG.

上述したように、本実施の形態では、光ディスク2の記録の単位(大きな単位)は、クリップデータとされている。   As described above, in the present embodiment, the recording unit (large unit) of the optical disc 2 is clip data.

そこで、ステップS61において、制御部16は、次に書き込むデータがクリップデータの先頭であるか否かを判定する。   Therefore, in step S61, the control unit 16 determines whether the next data to be written is the head of the clip data.

即ち、本実施の形態においては、制御部16は、所定の1つのクリップデータの光ディスク2への記録(書き込み)を開始するとき、ステップS61において、次に書き込むデータがクリップデータの先頭であると判定し、ステップS62において、そのクリップデータのヘッダ部分に現時点の書き込み回数(記憶部12の書き込み回数の欄103の現時点の値)を埋め込む。   That is, in the present embodiment, when the control unit 16 starts recording (writing) one predetermined clip data to the optical disc 2, in step S61, the next data to be written is the head of the clip data. In step S62, the current writing count (current value in the writing count column 103 of the storage unit 12) is embedded in the header portion of the clip data.

このように、本実施の形態においては、各クリップデータが光ディスク2に記録される毎に、その時点の書き込み回数がクリップデータのヘッダ部分に埋め込まれる。ただし、書き込み回数の埋め込み部分は、記録対象のクリップデータと関連付けられる部分であれば、ヘッダ部分に限定されず、光ディスク2上の任意の場所でよい。   Thus, in this embodiment, every time each piece of clip data is recorded on the optical disc 2, the number of times of writing at that time is embedded in the header portion of the clip data. However, the embedded number of times of writing is not limited to the header part as long as it is a part associated with the clip data to be recorded, and may be an arbitrary place on the optical disc 2.

このようにして、ステップS62の処理でクリップデータのヘッダ部分に現時点の書き込み回数が埋め込まれたとき、或いは、ステップS61の処理で次に書き込むデータがクリップデータの先頭ではないと判定されたとき、処理はステップS63に進む。   In this way, when the current number of times of writing is embedded in the header portion of the clip data in the process of step S62, or when it is determined that the data to be written next is not the beginning of the clip data in the process of step S61. The process proceeds to step S63.

ステップS63において、制御部16は、ドライブ15を制御して、次のデータを処理対象のクラスタに書き込む。   In step S63, the control unit 16 controls the drive 15 to write the next data to the cluster to be processed.

なお、ステップS63の処理で書き込まれる「次のデータ」とは、記録対象のクリップデータがクラスタ単位で区分された上述したクラスタデータのうちの、直前に書き込まれたクラスタデータの次に配置されているクラスタデータを指す。   The “next data” written in the process of step S63 is arranged next to the cluster data written immediately before the above-described cluster data in which the clip data to be recorded is divided into cluster units. Points to cluster data.

具体的には、例えば、いま、図10のデータ131が記録対象のクリップデータとされ、データ131が分割された結果得られるクラスタデータ131−1乃至131−5のうちの、クラスタデータ131−1乃至131−3までが光ディスク2のクラスタ(領域)2−1乃至2−3のそれぞれに記録されているとする。この場合、ステップS63の処理で、クラスタデータ131−3の次に配置されているクラスタデータ131−4が、光ディスク2のクラスタ(処理対象のクラスタ)2−4に書き込まれる(記録される)。   Specifically, for example, the data 131 in FIG. 10 is now clip data to be recorded, and the cluster data 131-1 among the cluster data 131-1 to 131-5 obtained as a result of the division of the data 131. To 131-3 are recorded in the clusters (areas) 2-1 to 2-3 of the optical disc 2, respectively. In this case, the cluster data 131-4 arranged next to the cluster data 131-3 is written (recorded) in the cluster (cluster to be processed) 2-4 of the optical disc 2 in the process of step S63.

ステップS64において、制御部16は、ドライブ15のエラー判定部21を制御して、書き込みエラーが発生したか否かを判定する。即ち、上述したように、エラー判定部21は、直前のステップS63の処理で光ディスク2の処理対象のクラスタに書き込まれたクラスタデータ(いまの場合、クラスタ2−4に書き込まれたクラスタデータ131−4)を再度読み出し、エラーチェックを行う。   In step S64, the control unit 16 controls the error determination unit 21 of the drive 15 to determine whether or not a write error has occurred. That is, as described above, the error determination unit 21 uses the cluster data written in the cluster to be processed on the optical disc 2 in the process of the previous step S63 (in this case, the cluster data 131- written in the cluster 2-4). 4) is read again to check for errors.

このエラーチェックでエラーがないことが確認されると、ステップS64において、書き込みエラーが発生していないと判定され、処理はステップS65に進められる。   If it is confirmed by this error check that there is no error, it is determined in step S64 that no write error has occurred, and the process proceeds to step S65.

ステップS65において、制御部16は、光ディスク2上の書き込んだクラスタ(処理対象のクラスタ)が空き領域の最後のクラスタであるか否かを判定する。   In step S65, the control unit 16 determines whether or not the cluster (processing target cluster) written on the optical disc 2 is the last cluster in the free area.

ステップS65において、書き込んだクラスタ(処理対象のクラスタ)が空き領域の最後のクラスタであると判定された場合、処理は図8のステップS44に進められる。   If it is determined in step S65 that the written cluster (processing target cluster) is the last cluster in the free area, the process proceeds to step S44 in FIG.

これに対して、ステップS65において、書き込んだクラスタ(処理対象のクラスタ)が空き領域の最後のクラスタではないと判定した場合、制御部16は、ステップS66において、書き込むべきデータ(本実施の形態では、1以上のクリップデータ)の全てが書き込まれたか否かを判定する。   On the other hand, if it is determined in step S65 that the written cluster (processing target cluster) is not the last cluster in the free area, the control unit 16 determines in step S66 the data to be written (in the present embodiment). It is determined whether or not all (one or more clip data) have been written.

ステップS66において、書き込むべきデータの全てが書き込まれたと判定された場合、処理は図8のステップS44に進められる。   If it is determined in step S66 that all of the data to be written has been written, the process proceeds to step S44 in FIG.

これに対して、ステップS66において、書き込むべきデータの全てがまだ書き込まれていないと判定した場合、制御部16は、ステップS67において、光ディスク2上の一つ隣のクラスタを処理対象のクラスタに設定し(更新し)、処理をステップS61に戻し、それ以降の処理を繰り返す。   On the other hand, if it is determined in step S66 that all the data to be written has not been written yet, the control unit 16 sets the next adjacent cluster on the optical disc 2 as the cluster to be processed in step S67. (Update), the process returns to step S61, and the subsequent processes are repeated.

即ち、いまの場合、ステップS67の処理で、処理対象のクラスタが、図10のクラスタ2−4からクラスタ2−5に更新され、ステップS61の処理で、次に書き込むデータがクリップデータの先頭ではないと判定された後、ステップS63の処理で、クラスタデータ131−5がクラスタ2−5に書き込まれる。   In other words, in this case, the cluster to be processed is updated from the cluster 2-4 to the cluster 2-5 in FIG. 10 in the process of step S67, and the next data to be written in the process of step S61 is the top of the clip data. After it is determined that there is no cluster data 131-5, the cluster data 131-5 is written to the cluster 2-5 in step S63.

なお、図10において、枠32は処理対象のクラスタを囲む枠を示している。図10以降の図面においても、枠32は処理対象のクラスタを囲む枠を示している。   In FIG. 10, a frame 32 indicates a frame surrounding the cluster to be processed. Also in FIG. 10 and subsequent drawings, the frame 32 indicates a frame surrounding the cluster to be processed.

例えば、いま、図10のクラスタ2−5内に×印で示されるように、そのクラスタ2−5が傷等により欠陥クラスタであったとする。   For example, suppose that the cluster 2-5 is a defective cluster due to scratches or the like, as indicated by a cross in the cluster 2-5 in FIG.

この場合、エラー判定部21は、上述したエラーチェックを行うことにより、クラスタ2−5が欠陥クラスタであることを検出し、その検出結果(エラーチェック結果)を制御部16に通知することになる。   In this case, the error determination unit 21 detects that the cluster 2-5 is a defective cluster by performing the error check described above, and notifies the control unit 16 of the detection result (error check result). .

すると、制御部16は、ステップS64において、書き込みエラーが発生したと判定し、ステップS68において、内的要因エラーであると判定し、処理をステップS69に進める。   Then, the control unit 16 determines in step S64 that a write error has occurred, determines in step S68 that it is an internal factor error, and advances the process to step S69.

そして、制御部16は、エラー判定部21を制御して、ステップS69において、その他の欠陥クラスタ(欠陥クラスタが続く範囲)を予測し、ステップS70において、欠陥クラスタ(予測された範囲)の次のクラスタに、直前のステップS63の処理で書き込みが行われたクラスタデータを再書き込み(リトライ)する。   Then, the control unit 16 controls the error determination unit 21 to predict another defect cluster (a range in which the defect cluster continues) in step S69, and in step S70, the next of the defect cluster (predicted range). The cluster data that has been written in the process of the previous step S63 is rewritten to the cluster (retry).

例えば、いまの場合、図11に示されるように、制御部16は、ステップS69において、欠陥クラスタは、クラスタ2−5の他、そのクラスタ2−5に続くクラスタ2−6乃至2−13であると推定する(欠陥クラスタが連続する部分は、クラスタ2−5乃至2−13までの範囲であると推定する)。そして、制御部16は、ステップS70において、処理対象のクラスタを、推定された欠陥クラスタ2−13の次の(クラスタ2−5乃至2−13までの範囲の次の)クラスタ2−14に設定し(更新し)、クラスタデータ131−5を処理対象のクラスタ2−14に書き込む。   For example, in this case, as shown in FIG. 11, in step S69, the control unit 16 determines that the defective cluster is a cluster 2-6 to 2-13 following the cluster 2-5 in addition to the cluster 2-5. It is estimated that there is a defect (the portion where the defect clusters are continuous is estimated to be in the range from clusters 2-5 to 2-13). In step S70, the control unit 16 sets the cluster to be processed as the cluster 2-14 next to the estimated defect cluster 2-13 (next to the range from the clusters 2-5 to 2-13). (Update) and write the cluster data 131-5 to the cluster 2-14 to be processed.

その後、処理はステップS61に戻され、それ以降の処理が繰り返される。即ち、その後、クラスタデータ131−5に続くクラスタデータ131−6乃至131−10のそれぞれは、図11に示されるように、クラスタ2−14に続くクラスタ2−15乃至2−19のそれぞれに書き込まれる(記録される)ことになる(ただし、クラスタ2−15以降で書き込みエラーが発生しない場合)。   Thereafter, the process returns to step S61, and the subsequent processes are repeated. That is, thereafter, each of the cluster data 131-6 to 131-10 following the cluster data 131-5 is written to each of the clusters 2-15 to 2-19 following the cluster 2-14, as shown in FIG. (However, if a write error does not occur after cluster 2-15).

以上、書き込みエラーのうちの内的要因エラーが発生した場合のリトライ処理について説明した。次に、書き込みエラーのうちの外的要因エラーが発生した場合のリトライ処理について説明する。   The retry process when an internal factor error among write errors has been described above. Next, a retry process when an external factor error among write errors occurs will be described.

例えば、いま、図12に示されるように、ステップS67の処理で、処理対象のクラスタ(枠32で囲まれるクラスタ)が、クラスタ2−4からクラスタ2−5に設定(更新)され、ステップS61の処理で、次に書き込むデータがクリップデータの先頭ではないと判定された後、ステップS63の処理で、クラスタデータ131−5がクラスタ2−5に書き込まれたとする。   For example, as shown in FIG. 12, the cluster to be processed (cluster surrounded by the frame 32) is set (updated) from cluster 2-4 to cluster 2-5 in the process of step S67, and step S61 is performed. In step S63, it is determined that the next data to be written is not the head of the clip data, and then the cluster data 131-5 is written in the cluster 2-5 in step S63.

ただし、今度は、図12に示されるように、クラスタ2−5が欠陥クラスタでない(正常なクラスタである)にも関わらず、記録装置1の振動等の外的な(光ディスク2から見て)要因で書き込みエラーが発生したとする。   However, this time, as shown in FIG. 12, although the cluster 2-5 is not a defective cluster (a normal cluster), external vibrations (such as viewed from the optical disc 2) such as vibration of the recording apparatus 1 occur. Suppose that a write error occurred due to a cause.

この場合、エラー判定部21は、上述したエラーチェックを行うことにより、外的要因エラーが発生したことを検出し、その検出結果を制御部16に通知することになる。   In this case, the error determination unit 21 detects that an external factor error has occurred by performing the above-described error check, and notifies the control unit 16 of the detection result.

すると、制御部16は、ステップS64において、書き込みエラーが発生したと判定し、ステップS68において、内的要因エラーではない(即ち、外的要因エラーである)と判定し、処理をステップS71に進める。   Then, the control unit 16 determines in step S64 that a write error has occurred, determines in step S68 that it is not an internal factor error (that is, an external factor error), and proceeds to step S71. .

そして、ステップS71において、制御部16は、エラー判定部21を制御して、処理対象のクラスタを、現在の処理対象のクラス他の一つ隣のクラスタに設定し(更新し)、一つ隣のそのクラスタに、直前のステップS63の処理で書き込まれたクラスタデータを再書き込み(リトライ)する。   In step S71, the control unit 16 controls the error determination unit 21 to set (update) the cluster to be processed as the next cluster other than the current class to be processed. The cluster data written in the immediately preceding step S63 is rewritten (retryed) in that cluster.

例えば、いまの場合、図13に示されるように、制御部16は、ステップS71において、処理対象のクラスタを、クラスタ2−5の次のクラスタ2−6に設定し(更新し)、クラスタデータ131−5を処理対象のクラスタ2−6に書き込む。   For example, in this case, as shown in FIG. 13, in step S71, the control unit 16 sets (updates) the cluster to be processed as the cluster 2-6 next to the cluster 2-5 and updates the cluster data. 131-5 is written to the cluster 2-6 to be processed.

その後、処理はステップS61に戻され、それ以降の処理が繰り返される。   Thereafter, the process returns to step S61, and the subsequent processes are repeated.

このとき、さらに、外的要因エラーが続いたとすると(例えば、記録装置1が連続的に振動し続けたとすると)、図13に示されるように、処理対象のクラスタは、一つずつ移動していき、移動する毎に、クラスタデータ131−5はその時点の処理対象のクラスタ(図13の例では、クラスタ2−6乃至2−9のうちのいずれか)に順次再書き込みされていく。   At this time, if an external factor error continues (for example, if the recording apparatus 1 continues to vibrate), the cluster to be processed moves one by one as shown in FIG. Each time the data is moved, the cluster data 131-5 is sequentially rewritten to the cluster to be processed at that time (in the example of FIG. 13, any one of the clusters 2-6 to 2-9).

その後、外的要因エラーの発生がなくなると、その時点の処理対象のクラスタ(図13の例では、クラスタ2−10)にクラスタデータ131−5が書き込まれる。そして、それ以降、そのクラスタデータ131−5に続くクラスタデータ131−6乃至131−10のそれぞれは、図13に示されるように、クラスタ2−10に続くクラスタ2−11乃至クラスタ2−15のそれぞれに書き込まれる(記録される)ことになる(ただし、クラスタ2−11以降で書き込みエラーが発生しない場合)。   Thereafter, when the occurrence of an external factor error disappears, the cluster data 131-5 is written into the cluster to be processed at that time (cluster 2-10 in the example of FIG. 13). Thereafter, as shown in FIG. 13, the cluster data 131-6 to 131-10 following the cluster data 131-5 are stored in the clusters 2-11 to 2-15 following the cluster 2-10, respectively. Each is written (recorded) (however, a write error does not occur in cluster 2-11 or later).

以上、説明したように、本実施の形態においては、書き込みエラーが発生した場合、その発生要因の特徴を考慮したリトライ処理が実行される。即ち、内的要因の場合、欠陥クラスタ(予測分含)がスリッピングされて(リトライすべき処理対象のクラスタが移動されて)、リトライ処理が実行される。また、外的要因の場合であっても、その外的要因によるエラーの発生が収束するまで、処理対象のクラスタが1つずつスリッピング(移動)されて、リトライ処理が実行される。   As described above, in the present embodiment, when a write error occurs, a retry process is performed in consideration of the characteristics of the cause. That is, in the case of an internal factor, the defective cluster (including the predicted portion) is slipped (the cluster to be processed to be retried is moved), and the retry process is executed. Even in the case of an external factor, the clusters to be processed are slipped (moved) one by one until the occurrence of an error due to the external factor converges, and a retry process is executed.

記録装置1は、このような本実施の形態のデータ書き込み処理(図9のフローチャートの処理)を実行することができるので、次のような効果を奏することが可能になる。即ち、従来の記録装置に適用されていた、書き込みが成功するまで同一クラスタを処理対象としてリトライする手法(特に、外的要因の場合に多く行われる手法)が有していた課題、即ち、特定のクラスタ(書き込みが成功するまでリトライが繰り返し行われたクラスタ)の異常消耗(過剰書き込みによる消耗)が発生してしまうといった課題を解決できる効果である。即ち、記録媒体(ここでは、光ディスク2)の記録領域に対する書き込み回数を均等にできる効果である。   Since the recording apparatus 1 can execute the data writing process of the present embodiment (the process of the flowchart of FIG. 9), the following effects can be obtained. In other words, the problem that the method of retrying the same cluster as a processing target (especially a method often performed in the case of an external factor), which has been applied to a conventional recording apparatus, until the writing is successful, has been identified. This is an effect that can solve the problem that the abnormal consumption (consumption due to excessive writing) of the cluster (cluster in which retry is repeatedly performed until writing is successful) occurs. That is, this is an effect that the number of times of writing to the recording area of the recording medium (here, the optical disc 2) can be made uniform.

次に、図2のステップS9のデータ削除処理を、図14のフローチャートを参照して説明する。   Next, the data deletion processing in step S9 in FIG. 2 will be described with reference to the flowchart in FIG.

なお、図14のフローチャートの処理は次の前提に基づいた処理例である。即ち、図示せぬビデオレコーダを使用するユーザの要望として、メディア(ここでは、光ディスク2)に一度記録したクリップデータのうちの不要なクリップデータを削除してメディアの容量を増やし、別のクリップデータを新規に記録したい、といった要望が存在する。そのような要望に応えるために、メディアに記録されたクリップデータのうちの最終のクリップデータ(最後に記録されたクリップデータ)を削除する機能(以下、ラストクリップ削除機能と称する)が存在する。このラストクリップ削除機能の実行が、この図14のフローチャートのデータ削除処理では前提とされている。即ち、記録装置1がラストクリップ削除機能を有していることが前提とされている。   Note that the processing of the flowchart of FIG. 14 is a processing example based on the following assumptions. That is, as a user who uses a video recorder (not shown), the unnecessary clip data of the clip data once recorded on the medium (here, the optical disc 2) is deleted to increase the capacity of the medium, and another clip data. There is a desire to record a new one. In order to meet such a demand, there is a function (hereinafter referred to as the last clip deletion function) for deleting the last clip data (the last recorded clip data) among the clip data recorded on the medium. Execution of this last clip deletion function is assumed in the data deletion processing of the flowchart of FIG. That is, it is assumed that the recording apparatus 1 has a last clip deletion function.

また、本実施の形態においては、このような最終のクリップデータが削除された後(それに対応する図14のデータ削除処理、即ち、図2のステップS9の処理の後)、ステップS7のデータ記録処理が実行される場合(ステップS10の処理で編集終了の指令が無いと判定され、それ以降、ステップS6の処理でデータ記録の要求有りと再度判定された場合)、新たに記録されるクリップデータは、光ディスク2の記録領域のうちの、最終のクリップデータが削除された領域に記録されることになる。光ディスク2のようなアクセス速度の速くないメディアを使用するレコーダにおいてリアルタイム再生を保証するためである。   Further, in the present embodiment, after such final clip data is deleted (corresponding to the data deletion process of FIG. 14, that is, after the process of step S9 of FIG. 2), the data recording of step S7 is performed. When the process is executed (when it is determined that there is no command to end editing in the process of step S10, and thereafter it is determined again that there is a request for data recording in the process of step S6), newly recorded clip data Is recorded in the area of the recording area of the optical disc 2 where the last clip data has been deleted. This is to guarantee real-time playback in a recorder that uses a medium such as the optical disc 2 that does not have a high access speed.

はじめに、ステップS81において、制御部16は、ドライブ15を制御して、例えば、
操作部13による操作により指定されたデータ(クリップデータ単位)を光ディスク2から削除する。即ち、本実施の形態では、光ディスク2に記録されている1以上のクリップデータのうちの最終のクリップデータが削除される。
First, in step S81, the control unit 16 controls the drive 15, for example,
Data (clip data unit) designated by the operation by the operation unit 13 is deleted from the optical disc 2. In other words, in the present embodiment, the last clip data of one or more clip data recorded on the optical disc 2 is deleted.

なおここで削除には、データが実際に削除されることの他、データが削除されたものとして取り扱われるようになったことも含む。   Here, the deletion includes not only that the data is actually deleted but also that the data is handled as deleted.

次に、ステップS82において、制御部16は、ステップS81でデータが削除された領域(空き領域となった領域)(または、データが削除されたものとされた領域)が、記憶部12の記録開始位置の欄104の値、即ち、記録開始位置104Aより前方にあるか否かを判定し、前方にあると判定した場合、ステップS83に進める。   Next, in step S82, the control unit 16 records in the storage unit 12 the area from which data has been deleted in step S81 (or the area from which data has been deleted) (or the area from which data has been deleted). It is determined whether the value is in the start position column 104, that is, whether it is ahead of the recording start position 104A. If it is determined that the position is ahead, the process proceeds to step S83.

図2のステップS7のデータ記録処理で1以上のクリップデータが光ディスク2に記録された後、ステップS8の処理でデータ削除の要求があったと判定されて、このデータ削除処理(ステップS9の処理)が実行される場合、基本的に、記憶部12の記録開始位置の欄104の値(即ち、記録開始位置104A)は、最終のクリップデータの書き込み終了位置(ステップS43の処理で最終のクリップデータが書き込まれた場所の位置)となっている。   After one or more clip data is recorded on the optical disc 2 in the data recording process in step S7 in FIG. 2, it is determined in the process in step S8 that there is a data deletion request, and this data deletion process (process in step S9). Is basically executed, the value in the recording start position column 104 of the storage unit 12 (that is, the recording start position 104A) is the final clip data write end position (the final clip data in the process of step S43). Is the position of the place where the is written).

このような場合、ステップS81の処理で、最終のクリップデータが削除されると、当然ながら、ステップS82において、記録開始位置より前方の領域が削除されたと判定され、処理はステップS83に進められる。   In such a case, when the last clip data is deleted in the process of step S81, it is naturally determined in step S82 that the area ahead of the recording start position has been deleted, and the process proceeds to step S83.

ステップS83において、制御部16は、記憶部12の書き込み回数の欄103の書き込み回数を1だけインクリメントするとともに、ステップS84において、記録開始位置の欄104の値(即ち、記録開始位置104A)を、光ディスク2の(記録領域の)先頭位置(位置00000)に戻す。   In step S83, the control unit 16 increments the write count in the write count column 103 of the storage unit 12 by 1, and in step S84, the value in the record start position column 104 (that is, the record start position 104A) is changed. Return to the top position (position 00000) of the optical disc 2 (recording area).

上述したように、本実施の形態では、このようにして、ステップS81の処理で、最終のクリップデータが削除され、後述するその他のステップS82乃至S89が実行された後に、図2のステップS7のデータ記録処理が実行される場合(ステップS10の処理で編集終了の指令が無いと判定され、それ以降、ステップS6の処理でデータ記録の要求有りと判定される場合)、新たに記録される次のクリップデータは、このステップS81の処理で最終のクリップデータが削除された領域に記録されることになる。即ち、実使用においてこのような削除と再記録との繰り返しが多くなればなる程、特定位置(ここでは、最終のクリップデータが記録されていた領域)だけが、光ディスク2の書き込み保証回数(上述したように、例えば、1000回程度)の上限に先に到達してしまうことが考えられる。   As described above, in the present embodiment, after the last clip data is deleted and the other steps S82 to S89 described later are executed in the process of step S81, the process of step S7 in FIG. When the data recording process is executed (when it is determined that there is no command to end editing in the process of step S10, and after that, it is determined that there is a request for data recording in the process of step S6), the next newly recorded Is recorded in the area where the final clip data is deleted in the process of step S81. That is, as the number of repetitions of such deletion and re-recording increases in actual use, only the specific position (here, the area where the last clip data is recorded) is the guaranteed number of times of writing on the optical disc 2 (described above). As described above, for example, it is conceivable that the upper limit of about 1000 times will be reached first.

従って、最も多く記録された(書き込まれた)位置の記録回数(ここでは、書き込み回数の欄103の値に相当する)をカウントしておき、保証範囲を越えたときに警告を出せるように、本実施の形態においては、ステップS82乃至S84の処理が、図14のデータ削除処理の主要な処理として設けられているのである。   Therefore, the number of times of recording at the most recorded (written) positions (here, corresponding to the value in the number of times of writing field 103) is counted, and a warning can be issued when the guaranteed range is exceeded. In the present embodiment, the processes of steps S82 to S84 are provided as the main processes of the data deletion process of FIG.

次に、ステップS85において、制御部16は、データが削除された領域(いまの場合、最終のクリップデータが削除された領域であって、空き領域となる領域)と、それ以降の空き領域とを、ネクストキュー102に登録する。なおこのときネクストキュー102に設定されている空き領域情報は、領域先頭位置の順番でソートされる。   Next, in step S85, the control unit 16 determines the area from which the data has been deleted (in this case, the area from which the final clip data has been deleted and becomes an empty area), and the subsequent empty areas. Is registered in the next queue 102. At this time, the free area information set in the next queue 102 is sorted in the order of the area head position.

ステップS86において、制御部16は、ネクストキュー102内に、隣接する空き領域が登録されているか否かを判定し、そのような空き領域が登録されていると判定した場合、処理をステップS87に進め、それらの領域情報を統合する。   In step S86, the control unit 16 determines whether or not an adjacent empty area is registered in the next queue 102. If it is determined that such an empty area is registered, the process proceeds to step S87. Proceed and integrate those area information.

ステップS86で、隣接する空き領域が登録されていないと判定された場合、またはステップS87で領域情報が統合された場合、処理はステップS88に進む。   If it is determined in step S86 that no adjacent empty area is registered, or if area information is integrated in step S87, the process proceeds to step S88.

ステップS88において、制御部16は、指示された回数(指示されたクリップデータの個数分)の削除を行ったか否かを判定する。   In step S88, the control unit 16 determines whether or not the instructed number of times (the number of instructed clip data) has been deleted.

例えば、削除の指示がなされたクリップデータが上述した最終のクリップデータ1つである場合、ステップS88において、指示された回数(指示されたクリップデータの個数、即ち、1個分)の削除を行ったと判定し、制御部16は、ステップS89において、ネクストキュー102に登録されている空き領域をカレントキュー101に移す。ネクストキュー102は、その結果空になる。その後、処理は図2のステップS10に進む。   For example, if the clip data for which deletion is instructed is the last clip data described above, deletion is performed for the specified number of times (the number of specified clip data, that is, one) in step S88. In step S89, the control unit 16 moves the free area registered in the next queue 102 to the current queue 101. As a result, the next queue 102 becomes empty. Thereafter, the process proceeds to step S10 in FIG.

ところで、上述したラストクリップデータ削除機能の他にさらに(その機能の拡張として)、最終のクリップデータよりも前のクリップデータを連続して削除する機能(以下、連続削除機能と称する)も存在する。記録装置1がこの連続削除機能を有しており、それを実行する場合(例えば、2つのクリップデータを削除する場合)には、ステップS88において、指示された回数(指示されたクリップデータの個数分)の削除が行ってないと判定され、ステップS81に戻されて、上述した最終のクリップデータとは別の位置(ここでは、前方の位置)に存在するクリップデータが削除され、それ以降の処理が実行される。   In addition to the last clip data deletion function described above, there is also a function (hereinafter referred to as a continuous deletion function) that continuously deletes clip data before the last clip data (as an extension of the function). . When the recording apparatus 1 has this continuous deletion function and executes it (for example, when deleting two clip data), in step S88, the specified number of times (the number of specified clip data). Is deleted, and the process returns to step S81 to delete the clip data existing at a position different from the last clip data described above (here, the forward position), and thereafter Processing is executed.

即ち、このステップS81の処理後(別のクリップデータが削除された後)の時点では、上述したように、記録開始位置104Aが光ディスク2の(記録領域の)先頭位置(位置00000)に戻されているので、当然ながら、ステップS82において、記録開始位置より前方の領域が削除されていないと判定され、ステップS83とステップS84の処理は実行されずに(スキップされて)、処理はステップS85に進められ、それ以降の処理が繰り返される。即ち、書き込み回数のカウントアップは行われない。   That is, at the time after the processing of step S81 (after another clip data is deleted), the recording start position 104A is returned to the head position (position 00000) of the optical disc 2 as described above. Therefore, as a matter of course, in step S82, it is determined that the area ahead of the recording start position has not been deleted, and the processing of steps S83 and S84 is not executed (skipped), and the processing proceeds to step S85. The subsequent processing is repeated. That is, the number of writing times is not counted up.

それ以降、例えば、さらに別の位置(さらに前方の位置)に存在するクリップデータが削除されても(ステップS81の処理が実行されても)、記録開始位置104Aが光ディスク2の(記録領域の)先頭位置(位置00000)で保持されているので、当然ながら、ステップS82において、記録開始位置より前方の領域が削除されていないと判定され、ステップS83とステップS84の処理は実行されずに(スキップされて)、処理はステップS85に進められ、それ以降の処理が繰り返される。即ち、書き込み回数のカウントアップは行われない。   Thereafter, for example, even if clip data existing at another position (further forward position) is deleted (the process of step S81 is executed), the recording start position 104A is on the optical disc 2 (in the recording area). Since it is held at the head position (position 00000), naturally, in step S82, it is determined that the area ahead of the recording start position has not been deleted, and the processing in steps S83 and S84 is not executed (skip). The process proceeds to step S85, and the subsequent processes are repeated. That is, the number of writing times is not counted up.

このように、本実施の形態では、最終クリップデータが削除されて、書き込み回数のカウントアップされた後(1だけインクリメントされた後)、別のクリップデータが削除されたときに、書き込み回数のカウントアップを行わない(そのまま保持する)手法を適用しているが、その理由は次の通りである。   Thus, in this embodiment, after the last clip data is deleted and the number of times of writing is counted up (after being incremented by 1), when another clip data is deleted, the number of times of writing is counted. The method of not performing (up-keeping as it is) is applied for the following reason.

即ち、例えば、仮に、クリップデータが削除される毎に、書き込み回数(書き込み回数の欄103の値)をカウントアップする手法が存在したとする。この手法では、上述した最終のクリップデータを削除し、それに伴い、書き込み回数(書き込み回数の欄103の値)をカウントアップした後(1だけインクリメントした後)、別な位置に存在するクリップデータを削除したような場合、さらにカウントアップすることになる。このカウントアップは明らかに過剰なカウントアップである。即ち、このような手法では、(最悪)クリップデータの削除を1000 回行っただけで警告を出すことになってしまう。   That is, for example, it is assumed that there is a method for counting up the number of times of writing (the value of the number of times of writing 103) every time clip data is deleted. In this method, the last clip data described above is deleted, and accordingly the number of writes (the value in the write count column 103) is counted up (after incrementing by 1), and then clip data existing at another position is deleted. If it is deleted, it will be counted up further. This count-up is clearly an excessive count-up. In other words, with such a technique, a warning is issued only after (worst) clip data is deleted 1000 times.

そこで、削除されるクリップデータの記録位置(光ディスク2上の領域)を考慮した書き込み回数の適切なカウントアップを行う手法が必要となる。例えば、このような手法として、書き込み回数の管理を、本実施の形態のように、クリップデータが記録された領域(大領域)を単位として行うのではなく、上述したクラスタ(微小領域)を単位として行う手法も考えられる。しかしながら、ソフトウエア管理の複雑さやメディアへの情報保存方法が確立されていないことを考慮すると、このような手法は現実的ではない。   Therefore, a method for appropriately counting up the number of times of writing in consideration of the recording position (area on the optical disc 2) of clip data to be deleted is required. For example, as such a method, the number of times of writing is managed not in units of areas (large areas) in which clip data is recorded as in this embodiment, but in units of the above-described clusters (small areas). It is also possible to consider the method of However, considering the complexity of software management and the lack of established information storage methods on media, such a method is not practical.

このため、シンプルな書き込み回数のカウントアップの手法が必要となり、本実施の形態では、そのような手法の一例として、上述した処理(手法)が適用されている。即ち、連続削除機能等、最終のクリップデータとは異なる位置(光ディスク2上)に記録されているクリップデータを削除する場合に書き込む回数の無駄なカウントアップを行わない、シンプルな書き込み回数の手法の一例として、上述した処理(手法)が適用されている。   For this reason, a simple method of counting up the number of times of writing is required, and in the present embodiment, the above-described processing (method) is applied as an example of such a method. That is, a simple write number technique that does not wastefully count up the number of times of writing when deleting clip data recorded at a position (on the optical disc 2) different from the final clip data, such as a continuous deletion function. As an example, the above-described processing (method) is applied.

次に、具体例に基づいてデータ記録処理(図2のステップS7(図8))およびデータ削除処理(ステップS9(図14))を再度説明する。   Next, the data recording process (step S7 (FIG. 8) in FIG. 2) and the data deletion process (step S9 (FIG. 14)) will be described again based on a specific example.

はじめに、図5に示すような空き領域を有する光ディスク2に対して、図15の下方に示されるような大きさ4000のクリップデータ201を記録するものとする。上述したように、本実施の形態においては、クリップデータ201は、ヘッダ201Aと実データ(AVデータ等)201Bとから構成される。   First, it is assumed that clip data 201 having a size of 4000 as shown in the lower part of FIG. 15 is recorded on the optical disc 2 having a free area as shown in FIG. As described above, in the present embodiment, the clip data 201 includes the header 201A and actual data (AV data or the like) 201B.

この場合、記憶部12には、図6に示すような、カレントキュー101、ネクストキュー102、書き込み回数の欄103、および記録開始位置の欄104が記憶部12に記憶されているので、図8のステップS41で、YESの判定がなされ、ステップS42に進み、カレントキュー101に登録されている空き領域のうち、アドレス上最も前方に位置する(記録開始位置の欄104にその時点で設定されている値、即ち、記録開始位置104Aに最も近い)空き領域Aが、データが書き込まれる領域に決定される。ステップS43で、図9に示すように、大きさ4000のクリップデータ201が、空き領域Aの先頭(位置01000)から書き込まれる。このとき、図15(図6)に示されるように、書き込み回数の欄103の値は「1」とされているので、図9のステップS62で、ヘッダ201Aに「1」が埋め込まれてから、クリップデータ201が空き領域Aの先頭から書き込まれることになる。そしてステップS44で、図16に示すように、大きさ4000のクリップデータ201が書き込まれた空き領域Aの領域情報が、「領域先頭位置=05000,大きさ=3000」に変更される。なおこのように領域情報が変更された空き領域Aを空き領域A'と称する。   In this case, the storage unit 12 stores the current queue 101, the next queue 102, the write count column 103, and the recording start position column 104 as shown in FIG. In step S41, a determination of YES is made, and the process proceeds to step S42, in which the free area registered in the current queue 101 is located at the forefront of the address (set in the recording start position column 104 at that time). The empty area A that is close to the recording start position 104A is determined as an area in which data is written. In step S43, as shown in FIG. 9, clip data 201 having a size of 4000 is written from the beginning (position 01000) of the empty area A. At this time, as shown in FIG. 15 (FIG. 6), since the value in the write count column 103 is “1”, “1” is embedded in the header 201A in step S62 of FIG. The clip data 201 is written from the beginning of the empty area A. In step S44, as shown in FIG. 16, the area information of the empty area A in which the clip data 201 having the size of 4000 is written is changed to “area start position = 05000, size = 3000”. The empty area A whose area information has been changed in this way is referred to as an empty area A ′.

ステップS45で、記録すべき大きさ4000のクリップデータ201は、すべて空き領域Aに書き込まれたので、YESの判定がなされ、ステップS46に進む。ステップS46で、記録開始位置の欄104の値(即ち、記録開始位置104A)が、図16に示すように、値05000に変更された後、処理は、図2のステップS8に進む。   In step S45, since all the clip data 201 having a size of 4000 to be recorded has been written in the empty area A, a determination of YES is made and the process proceeds to step S46. In step S46, after the value in the recording start position column 104 (that is, the recording start position 104A) is changed to the value 05000 as shown in FIG. 16, the process proceeds to step S8 in FIG.

続けて、後述する図18に示されるような大きさ7000のクリップデータ202を記録するものとする。図18に示されるように、このクリップデータ202も、ヘッダ202Aと実データ202Bとから構成される。   Subsequently, it is assumed that clip data 202 having a size of 7000 as shown in FIG. As shown in FIG. 18, this clip data 202 is also composed of a header 202A and actual data 202B.

この場合、図2のステップS8でNOの判定がなされ、さらに、ステップS10でNOの判定がなされ、それ以降、ステップS6でYESの判定がなされて、ステップS7のデータ記録処理が再度実行される。   In this case, NO is determined in step S8 of FIG. 2, and further NO is determined in step S10. Thereafter, YES is determined in step S6, and the data recording process in step S7 is executed again. .

即ち、図8のステップS41で、カレントキュー101(図16)には空き領域A'乃至Dが登録されているので、YESの判定がなされ、ステップS42に進み、空き領域A'が、データが書き込まれる領域に決定される。ステップS43で、大きさ7000のクリップデータ202のうちの大きさ3000のデータが、空き領域A'に書き込まれる。このとき、図18(図16)に示されるように、書き込み回数の欄103の値は「1」とされているので、図9のステップS62で、ヘッダ202Aに「1」が埋め込まれてから、クリップデータ202(そのうちの大きさ3000のデータ)が空き領域A'に書き込まれることになる。そしてステップS44で、図17に示すように、大きさ3000のデータが書き込まれた空き領域A'の領域情報が、カレントキュー101から削除される。   That is, in step S41 of FIG. 8, since the free areas A ′ to D are registered in the current queue 101 (FIG. 16), a determination of YES is made, and the process proceeds to step S42, where the free area A ′ contains data. The area to be written is determined. In step S43, the data of size 3000 out of the size 7000 of clip data 202 is written into the empty area A ′. At this time, as shown in FIG. 18 (FIG. 16), since the value in the write count column 103 is “1”, “1” is embedded in the header 202A in step S62 of FIG. , Clip data 202 (data of which size is 3000) is written in the empty area A ′. Then, in step S44, as shown in FIG. 17, the area information of the empty area A ′ in which the data of size 3000 is written is deleted from the current queue 101.

ステップS45で、記録すべきデータがまだ残っている(クリップデータ202のうちの、大きさ4000のデータがまだ残っている)と判定され、ステップS41を介して再びステップS42に進む。   In step S45, it is determined that the data to be recorded still remains (the data of the size 4000 of the clip data 202 still remains), and the process proceeds to step S42 again via step S41.

ステップS42で、今度は、空き領域B(図15)が、データが書き込まれる領域に決定され、ステップS43で、クリップデータ202のうちの、残りの大きさ4000のデータが、図18に示すように、空き領域Bの先頭(位置10000)から書き込まれる。そして、ステップS44で、図19に示すように、大きさ4000のデータが書き込まれた空き領域Bの領域情報が、「領域先頭位置=14000,大きさ=5000」に変更される。なお、このように領域情報が変更された空き領域Bを空き領域B'と称する。   In step S42, the free area B (FIG. 15) is determined as an area in which data is written, and in step S43, the remaining 4000 data of the clip data 202 is as shown in FIG. Are written from the beginning (position 10000) of the empty area B. Then, in step S44, as shown in FIG. 19, the area information of the empty area B in which the data of size 4000 is written is changed to “area head position = 14000, size = 5000”. The empty area B whose area information has been changed in this way is referred to as an empty area B ′.

ステップS45で、記録すべき大きさ7000のクリップデータ202のすべてが記録されたと判定され、ステップS46に進む。ステップS46で、記録開始位置の欄104の値が、図19に示すように、値14000に変更された後(図18に示すように、記録開始位置104Aが位置14000に変更された後)、処理は図2のステップS8に進む。   In step S45, it is determined that all of the clip data 202 having a size of 7000 to be recorded has been recorded, and the process proceeds to step S46. After the value in the recording start position column 104 is changed to the value 14000 as shown in FIG. 19 in step S46 (after the recording start position 104A is changed to the position 14000 as shown in FIG. 18), The process proceeds to step S8 in FIG.

続けて、後述する図20に示されるような大きさ4000のクリップデータ203を記録するものとする。図20に示されるように、このクリップデータ203も、ヘッダ203Aと実データ203Bとから構成される。   Subsequently, clip data 203 having a size of 4000 as shown in FIG. 20 described later is recorded. As shown in FIG. 20, the clip data 203 is also composed of a header 203A and actual data 203B.

この場合、図2のステップS8でNOの判定がなされ、さらに、ステップS10でNOの判定がなされ、それ以降、ステップS6でYESの判定がなされて、ステップS7のデータ記録処理が再度実行される。   In this case, NO is determined in step S8 of FIG. 2, and further NO is determined in step S10. Thereafter, YES is determined in step S6, and the data recording process in step S7 is executed again. .

即ち、図8のステップS41で、カレントキュー101(図19)には空き領域B'乃至Dが登録されているので、YESの判定がなされ、ステップS42に進み、空き領域B'が、データが書き込まれる領域に決定される。ステップS43で、図20に示すように、大きさ4000のクリップデータ203が、空き領域B‘の先頭(位置14000)から書き込まれる。このとき、図20(図19)に示されるように、書き込み回数の欄103の値は「1」とされているので、図9のステップS62で、ヘッダ203Aに「1」が埋め込まれてから、クリップデータ203が空き領域B’の先頭から書き込まれることになる。そしてステップS44で、図21に示すように、大きさ4000のクリップデータ203が書き込まれた空き領域B‘の領域情報が、「領域先頭位置=18000,大きさ=1000」に変更される。なおこのように領域情報が変更された空き領域B’を空き領域B”と称する。   That is, in step S41 of FIG. 8, since the free areas B ′ to D are registered in the current queue 101 (FIG. 19), a determination of YES is made and the process proceeds to step S42, where the free area B ′ contains data. The area to be written is determined. In step S43, as shown in FIG. 20, clip data 203 having a size of 4000 is written from the beginning (position 14000) of the empty area B ′. At this time, as shown in FIG. 20 (FIG. 19), since the value in the write count column 103 is “1”, “1” is embedded in the header 203A in step S62 of FIG. The clip data 203 is written from the beginning of the empty area B ′. In step S44, as shown in FIG. 21, the area information of the empty area B ′ in which the clip data 203 having the size 4000 is written is changed to “area head position = 18000, size = 1000”. The empty area B ′ whose area information has been changed in this way is referred to as an empty area B ″.

ステップS45で、記録すべき大きさ4000のクリップデータ203は、すべて空き領域B‘に書き込まれたので、YESの判定がなされ、ステップS46に進む。ステップS46で、記録開始位置の欄104の値が、図21に示すように、値18000に変更された後(図20に示すように、記録開始位置104Aが位置18000に変更された後)、処理は図2のステップS8に進む。   In step S45, since all the clip data 203 having a size of 4000 to be recorded has been written in the empty area B ', YES is determined, and the process proceeds to step S46. After the value in the recording start position column 104 is changed to the value 18000 as shown in FIG. 21 (after the recording start position 104A is changed to the position 18000 as shown in FIG. 20) in step S46, The process proceeds to step S8 in FIG.

次に、図20に示したように、クリップデータ201乃至203が記録されている光ディスク2から、上述した連続削除機能を利用して、最終のクリップデータ203と、その前方に位置するクリップデータ202とを連続して削除するものとする。なお、このとき記憶部12には、図21に示したような、カレントキュー101、ネクストキュー102、書き込み回数の欄103、および記録開始位置の欄104が記憶されている。   Next, as shown in FIG. 20, from the optical disc 2 in which the clip data 201 to 203 are recorded, the final clip data 203 and the clip data 202 positioned in front of the clip data 203 are used by using the above-described continuous deletion function. Shall be deleted in succession. At this time, the storage unit 12 stores a current queue 101, a next queue 102, a write count column 103, and a recording start position column 104 as shown in FIG.

この場合、図14のステップS81で、図22に示すように、位置18000から大きさ4000のクリップデータ203が削除される。ステップS82で、データが削除された領域(空き領域E)は、記録開始位置の欄104の値(記録開始位置18000)の前方にある(特に図示せず)ので、YESの判定がなされ、ステップS83に進む。   In this case, in step S81 of FIG. 14, the clip data 203 having a size of 4000 is deleted from the position 18000 as shown in FIG. In step S82, the area from which data has been deleted (empty area E) is in front of the value (recording start position 18000) in the recording start position column 104 (not shown), so a YES determination is made. Proceed to S83.

図22と図23に示すように、ステップS83の処理で、書き込み回数の欄103の値が1だけインクリメントされて「2」となり、ステップS84の処理で、記録開始位置の欄104の値(図22の記録開始位置104A)が光ディスク2の(記録領域の)先頭位置(位置00000)に戻される。   As shown in FIGS. 22 and 23, in the process of step S83, the value in the write count column 103 is incremented by 1 to “2”, and in the process of step S84, the value in the record start position column 104 (FIG. 22 recording start position 104A) is returned to the top position (position 00000) of the optical disc 2 (recording area).

このようにして、最終のクリップデータ203が削除されると(連続消去機能における最初に削除されるべきクリップデータ203が削除されると)、書き込み回数はカウントアップされる。さらに、別の位置のクリップデータ(いまの場合、クリップデータ202)がそれ以降の時点で削除される際に、書き込み回数の無駄なカウントアップが行われないように、記録開始位置104Aが光ディスク2の(記録領域の)先頭位置に戻されるのである。   In this way, when the last clip data 203 is deleted (when the clip data 203 to be deleted first in the continuous erasure function is deleted), the number of times of writing is counted up. Furthermore, when clip data at another position (in this case, clip data 202) is deleted at a later time, the recording start position 104A is set to the optical disc 2 so that the writing count is not wasted. It is returned to the head position (in the recording area).

また、ステップS85で、図23に示すように、最終のクリップデータ203が削除された領域である空き領域Eと、それ以降の領域である、空き領域B”,C,Dがネクストキュー102に登録される。   In step S85, as shown in FIG. 23, the empty area E from which the final clip data 203 has been deleted and the empty areas B ″, C, and D, which are the subsequent areas, are stored in the next queue 102. be registered.

図22に示されるように、空き領域Eと空き領域B”とは隣接しているので、ステップS86で、YESの判定がなされ、ステップS87において、図24に示されるように、空き領域Eと空き領域B”とは統合されて空き領域Fとなる。それに応じて、図25に示されるように、ネクストキュー102の登録内容も更新される。即ち、空き領域Eと空き領域B”との登録が削除されて、空き領域Fが新たに登録される(空き領域Fの領域情報「領域先頭位置=14000,大きさ=5000」が、空き領域Cの領域情報の上の欄に設定される)。   As shown in FIG. 22, since the empty area E and the empty area B ″ are adjacent to each other, a determination of YES is made in step S86, and in step S87, as shown in FIG. The free area B ″ is integrated into a free area F. In response to this, as shown in FIG. 25, the registered content of the next queue 102 is also updated. That is, the registration of the empty area E and the empty area B ″ is deleted, and the empty area F is newly registered (the area information “area head position = 14000, size = 5000” of the empty area F is the empty area F Set in the field above the C area information).

その後、ステップS88でNOの判定がなされて、処理はステップS81に戻され、今度は、最終のクリップデータ203の一つ前のクリップデータ202に対するデータ削除処理が実行される。   Thereafter, NO is determined in step S88, and the process returns to step S81. This time, data deletion processing is performed on the clip data 202 immediately before the last clip data 203.

即ち、ステップS81で、図26に示すように、位置14000から大きさ7000のクリップデータ202が削除される。ステップS82で、データが削除された領域(空き領域Gと空き領域H)は、記録開始位置の欄104の値(記録開始位置104Aの位置00000)の後方にある(前方にない)ので、NOの判定がなされ、ステップS85に進む。   That is, in step S81, as shown in FIG. 26, the clip data 202 having a size of 7000 is deleted from the position 14000. In step S82, the area from which data has been deleted (empty area G and empty area H) is behind (not in front of) the value in the field 104 of recording start position (position 00000 of recording start position 104A). And the process proceeds to step S85.

即ち、図26と図27に示すように、今度は、ステップS83とS84の処理が実行されずに(スキップされて)、書き込み回数の欄103の値は「2」のまま保持されるとともに、記録開始位置の欄104の値(図26の記録開始位置104A)も光ディスク2の(記録領域の)先頭位置(位置00000)のまま保持される。   That is, as shown in FIGS. 26 and 27, this time, the processing in steps S83 and S84 is not executed (skipped), and the value in the write count column 103 is kept “2”. The value in the recording start position column 104 (recording start position 104A in FIG. 26) is also held at the head position (in the recording area) of the optical disc 2 (position 00000).

このようにして、連続消去機能における最初に削除されるべきクリップデータ203とは異なる位置に存在するクリップデータ(いまの場合、クリップデータ202)が削除されても、書き込み回数の無駄なカウントアップが行われない(書き込み回数は保持される)。さらに、別の位置のクリップデータがそれ以降の時点で削除される際(いまの場合、さらなる削除は指定されていないが、例えば、クリップデータ201をさらに削除されるような際)に、書き込み回数の無駄なカウントアップが行われないように、記録開始位置104Aが光ディスク2の(記録領域の)先頭位置のまま保持されるのである。   In this way, even if clip data (in this case, clip data 202) existing at a position different from the clip data 203 to be deleted first in the continuous erasure function is deleted, the number of times of writing is wasted. Not performed (the number of writes is retained). Furthermore, when clip data at another position is deleted at a later time (in this case, no further deletion is specified, but, for example, when clip data 201 is further deleted), the number of times of writing Thus, the recording start position 104A is held at the head position (in the recording area) of the optical disc 2 so that the unnecessary count-up is not performed.

ステップS85で、図27に示すように、クリップデータ202が削除された領域である空き領域H,Gと、それ以降の領域である、空き領域F,C,Dがネクストキュー102に登録される。即ち、ネクストキュー102において、空き領域F,C,Dの領域情報の設定は保持され、空き領域Fの上の2つの欄のそれぞれに、空き領域Hの領域情報「領域先頭位置=5000,大きさ=3000」と、空き領域Gの領域情報「領域先頭位置=10000,大きさ=4000」のそれぞれが設定される。   In step S85, as shown in FIG. 27, empty areas H and G from which the clip data 202 has been deleted and empty areas F, C, and D, which are areas after that, are registered in the next queue 102. . That is, in the next queue 102, the setting of the area information of the empty areas F, C, and D is held, and the area information “area head position = 5000, large” is stored in each of the two columns above the empty area F. And the area information “area head position = 10000, size = 4000” of the empty area G are set.

図26に示されるように、空き領域Gと空き領域Fとは隣接しているので、ステップS86で、YESの判定がなされ、ステップS87において、図28に示されるように、空き領域Gと空き領域Fとは統合されて空き領域Iとなる。それに応じて、図29に示されるように、ネクストキュー102の登録内容も更新される。即ち、空き領域Gと空き領域Fとの登録が削除されて、空き領域Iが新たに登録される(空き領域Iの領域情報「領域先頭位置=10000,大きさ=9000」が、空き領域Hの領域情報と空き領域Cの領域情報との間の欄に設定される)。   As shown in FIG. 26, since the empty area G and the empty area F are adjacent to each other, YES is determined in step S86, and in step S87, as shown in FIG. The area F is integrated into a free area I. Accordingly, as shown in FIG. 29, the registered contents of the next queue 102 are also updated. In other words, the registration of the empty area G and the empty area F is deleted, and the empty area I is newly registered (the area information “area head position = 10000, size = 9000” of the empty area I is stored in the empty area H Are set in a column between the area information and the area information of the empty area C).

いまの場合、上述したように、連続削除機能により削除が指定されたクリップデータは、クリップデータ202とクリップデータ203とされ、これらの全てが削除されたので、ステップS88で、YESの判定がなされ、ステップS89で、図30に示されるように、ネクストキュー102に登録されている空き領域H,I,C,Dがカレントキュー101に移され、ネクストキュー102は、その結果空になる。その後、処理は図2のステップS10に進む。   In this case, as described above, the clip data designated to be deleted by the continuous deletion function is the clip data 202 and the clip data 203, and since all of these are deleted, YES is determined in step S88. In step S89, as shown in FIG. 30, the free areas H, I, C, and D registered in the next queue 102 are moved to the current queue 101, and the next queue 102 becomes empty as a result. Thereafter, the process proceeds to step S10 in FIG.

続けて、図31に示されるような大きさ7000のクリップデータ210(上述したクリップデータ202そのものでもよいし、それとは異なるものでもよい)を記録するものとする。図31に示されるように、このクリップデータ210も、ヘッダ210Aと実データ210Bとから構成される。   Subsequently, it is assumed that clip data 210 having a size of 7000 as shown in FIG. 31 (the above-described clip data 202 may be the same or different from that) may be recorded. As shown in FIG. 31, this clip data 210 is also composed of a header 210A and actual data 210B.

この場合、図2のステップS10でNOの判定がなされ、それ以降、ステップS6でYESの判定がなされて、ステップS7のデータ記録処理が再度実行される。   In this case, NO is determined in step S10 in FIG. 2, and thereafter, YES is determined in step S6, and the data recording process in step S7 is executed again.

即ち、図8のステップS41で、カレントキュー101(図30)には空き領域H,I,C,Dが登録されているので、YESの判定がなされ、ステップS42に進み、空き領域Hが、データが書き込まれる領域に決定される。ステップS43で、大きさ7000のクリップデータ210のうちの大きさ3000のデータが、空き領域Hに書き込まれる。このとき、図31(図30)に示されるように、書き込み回数の欄103の値は「2」にカウントアップされているので、図9のステップS62で、ヘッダ210Aに「2」が埋め込まれてから、クリップデータ210(そのうちの大きさ3000のデータ)が空き領域Hに書き込まれることになる。そしてステップS44で、図示はしないが、大きさ3000のデータが書き込まれた空き領域Hの領域情報が、カレントキュー101から削除される。   That is, in step S41 of FIG. 8, since empty areas H, I, C, and D are registered in the current queue 101 (FIG. 30), a determination of YES is made, and the process proceeds to step S42, where the empty area H is It is determined as an area where data is written. In step S 43, the data of size 3000 out of the clip data 210 of size 7000 is written in the empty area H. At this time, as shown in FIG. 31 (FIG. 30), the value in the number-of-writes column 103 has been incremented to “2”, so “2” is embedded in the header 210A in step S62 of FIG. After that, the clip data 210 (data of which size is 3000) is written in the empty area H. In step S44, although not shown, the area information of the empty area H in which the data of size 3000 is written is deleted from the current queue 101.

ところで、図28と図15とを比較すれば容易にわかるように、位置05000乃至位置8000の空き領域H(図28)と、空き領域A‘(図15)とは同一領域であり、この同一領域には、現時点では、上述したように、クリップデータ202が記録されて削除された後、クリップデータ210が記録されたことになる。即ち、この位置05000乃至位置8000の領域においては、2回の書き込みが行われたことになる。   By the way, as can be easily understood by comparing FIG. 28 and FIG. 15, the empty area H (FIG. 28) at the positions 05000 to 8000 and the empty area A ′ (FIG. 15) are the same area. At this time, the clip data 210 is recorded in the area after the clip data 202 is recorded and deleted as described above. That is, in the region from position 05000 to position 8000, writing has been performed twice.

一方、図31に示されるように、位置1000乃至位置5000の領域、即ち、クリップデータ201が記録されている領域には、現時点では、そのクリップデータ201のみが記録されただけである。即ち、位置1000乃至位置5000の領域においては、1回の書き込みが行われたことになる。   On the other hand, as shown in FIG. 31, only the clip data 201 is currently recorded in the area from position 1000 to position 5000, that is, the area where the clip data 201 is recorded. That is, in the area from position 1000 to position 5000, one writing has been performed.

このように、光ディスク2の領域によって書き込み回数の差異が生じることになるが、記録部1は、上述した一連の処理を実行することで、そのうちの最大の書き込み回数(いまの場合、「2」回)を、記憶部12の書き込み回数の欄103の値として適切に保持させる(反映させる)ことができる。   In this way, the difference in the number of times of writing occurs depending on the area of the optical disc 2, but the recording unit 1 executes the series of processes described above, so that the maximum number of times of writing (in this case, “2”). Can be appropriately held (reflected) as the value of the write count column 103 of the storage unit 12.

さらに、図2のステップS10で編集終了の指令があったと判定された場合に、記録装置1が、この書き込み回数の欄103の値を、空き領域書換管理データに含めて光ディスク2の所定の領域(任意の領域で構わないが、誤って消去されないように、例えば、記録領域以外の特定領域であると好適である)に記録させることで、光ディスク2の書き込み回数(その領域のうちの最大の書き込み回数)の管理を確実に行うことが可能になる。即ち、最も多く記録された位置の記録回数が保証範囲を越えたときに確実に警告を出すことが可能になる。   Further, when it is determined in step S10 in FIG. 2 that there has been an instruction to end editing, the recording apparatus 1 includes the value in the write count column 103 in the free area rewrite management data and stores a predetermined area on the optical disc 2. (Any area may be used, but for example, a specific area other than the recording area is preferable so that it is not erased by mistake). The number of times of writing) can be reliably managed. That is, it is possible to reliably issue a warning when the number of times of recording at the most recorded positions exceeds the guaranteed range.

次に、具体例に基づいてフォーマット処理(図2のステップS5(図7))を再度説明する。   Next, the formatting process (step S5 in FIG. 2 (FIG. 7)) will be described again based on a specific example.

例えば、いま、図32に示されるような、クリップデータ301乃至303のそれぞれが、光ディスク2の(記録領域の)先頭位置からその順番で連続して記録されているとする。   For example, assume that clip data 301 to 303 as shown in FIG. 32 are continuously recorded in that order from the head position (in the recording area) of the optical disc 2.

なお、クリップデータ301は、ヘッダ301Aと実データ301Bとから構成されている。また、ヘッダ301Aに記述されている値「1」は、上述した書き込み回数を示している。即ち、光ディスク2の記録領域のうちの、クリップデータ301が記録されている領域に対する書き込み回数は最大で「1」回であることを示している。   Note that the clip data 301 includes a header 301A and actual data 301B. Also, the value “1” described in the header 301A indicates the number of times of writing described above. That is, the maximum number of times of writing in the area where the clip data 301 is recorded in the recording area of the optical disc 2 is “1”.

同様に、クリップデータ302は、ヘッダ302Aと実データ302Bとから構成されている。また、ヘッダ302Aに記述されている値「1」は、上述した書き込み回数を示している。即ち、光ディスク2の記録領域のうちの、クリップデータ302が記録されている領域に対する書き込み回数は最大で「1」回であることを示している。   Similarly, the clip data 302 is composed of a header 302A and actual data 302B. Also, the value “1” described in the header 302A indicates the number of times of writing described above. That is, the maximum number of times of writing in the area where the clip data 302 is recorded in the recording area of the optical disc 2 is “1”.

同様に、クリップデータ303は、ヘッダ303Aと実データ303Bとから構成されている。また、ヘッダ303Aに記述されている値「1」は、上述した書き込み回数を示している。即ち、光ディスク2の記録領域のうちの、クリップデータ303が記録されている領域に対する書き込み回数は最大で「1」回であることを示している。   Similarly, the clip data 303 includes a header 303A and actual data 303B. Also, the value “1” described in the header 303A indicates the number of times of writing described above. That is, the maximum number of times of writing to the area where the clip data 303 is recorded in the recording area of the optical disc 2 is “1”.

また、図32に示されるように、記憶部2の書き込み回数の欄103にも「1」が設定され、書き込み開始位置104A(書き込み開始位置の欄104の値)は、クリップデータ303の終端の位置であるていることから、結局、最後のクリップデータ203が光ディスク2に記録されてから(対応する領域に初めて書き込まれてから)、上述したクリップデータの削除等はまだ行われていない状態で編集処理が一度終了され(例えば、記録装置1から取り外され)、再度、編集処理が実行されて、ステップS1乃至S3までの処理が実行されたことを示している。   Also, as shown in FIG. 32, “1” is also set in the write count column 103 of the storage unit 2, and the write start position 104 A (the value in the write start position column 104) is the end of the clip data 303. As a result, after the last clip data 203 is recorded on the optical disc 2 (after being written in the corresponding area for the first time), the above-described deletion of the clip data has not yet been performed. This shows that the editing process has been finished once (for example, removed from the recording apparatus 1), the editing process has been executed again, and the processes from steps S1 to S3 have been executed.

この場合、図2のステップS4で、YESの判定がなされると、図2のステップS5のフォーマット処理が実行される。即ち、図7のステップS31で、図33に示されるように、光ディスク2に記録されているクリップデータ301乃至303の全てが削除される。   In this case, if YES is determined in step S4 in FIG. 2, the formatting process in step S5 in FIG. 2 is executed. That is, in step S31 of FIG. 7, as shown in FIG. 33, all of the clip data 301 to 303 recorded on the optical disc 2 are deleted.

ただし、上述したように、本実施の形態では、光ディスク2がフォーマットされても空き領域書換管理データは削除されずに保持される。   However, as described above, in this embodiment, the empty area rewrite management data is retained without being deleted even if the optical disk 2 is formatted.

次に、図33に示されるように、ステップS32で、書き込み回数の欄103の書き込み回数が1だけインクリメントされ、その結果、「2」が設定されるとともに、ステップS34で、記録開始位置104A(記録開始位置の欄104の値)が、光ディスク2の(記録領域の)先頭位置に戻される。   Next, as shown in FIG. 33, in step S32, the write count in the write count column 103 is incremented by 1, so that “2” is set, and in step S34, the recording start position 104A ( The value of the recording start position column 104) is returned to the head position (in the recording area) of the optical disc 2.

次に、図示はしないが、ステップS34で、記憶部12のカレントキュー101に、その時点で(フォーマット後の時点で)光ディスク2に存在するすべての空き領域の領域情報(この例の場合、空き領域の領域開始位置および大きさ)が、空き領域のアドレス上の位置の順に登録されるとともに、ステップS35で、記録部12のネクストキュー102が空となる   Next, although not shown in the drawing, in step S34, the area information of all the empty areas existing in the optical disc 2 at that time (at the time after formatting) in the current queue 101 of the storage unit 12 (in this example, empty space). The area start position and size of the area are registered in the order of the position on the address of the empty area, and the next queue 102 of the recording unit 12 becomes empty in step S35.

その後、処理は、図2のステップS6に進む。   Thereafter, the processing proceeds to step S6 in FIG.

続けて、クリップデータ301と同一サイズのクリップデータ304(クリップデータ301自身でもよいし、それとは異なるデータでもよい)の記録の要求があったとする。   Subsequently, it is assumed that there is a request for recording clip data 304 having the same size as clip data 301 (may be clip data 301 itself or data different therefrom).

この場合、詳細な処理の説明は繰り返しになるので省略するが、ステップS6でYESの判定がなされて、ステップS7のデータ記録処理で、図34に示されるように、(書き込み回数の欄103の値は「2」にカウントアップされているので)ヘッダ304Aに「2」が埋め込まれてから、クリップデータ304が、クリップデータ301が記録されていた領域に記録される。そして、記録開始位置104A(記録開始位置の欄104の値)が、クリップデータ304が記録された領域の終端に移される。   In this case, a detailed description of the processing is repeated and will be omitted. However, YES is determined in step S6, and in the data recording processing in step S7, as shown in FIG. Since “2” is embedded in the header 304A (because the value is counted up to “2”), the clip data 304 is recorded in the area where the clip data 301 was recorded. Then, the recording start position 104A (the value in the recording start position column 104) is moved to the end of the area where the clip data 304 is recorded.

このように、フォーマットが施される場合も書き込み回数の欄103の値(書き込み回数)がカウントアップされるので、次の記録処理における、光ディスク2の書き込み回数(その領域のうちの最大の書き込み回数)の管理を確実に行うことが可能になる。   Thus, even when formatting is performed, the value (number of times of writing) in the number-of-writes column 103 is counted up, so in the next recording process, the number of times of writing on the optical disc 2 (the maximum number of times of writing in that area). ) Can be reliably managed.

即ち、従来のように、フォーマット時に書き込み回数の更新を行わないと、次の記録処理でクリップデータ304が記録された領域は、n(nは、2以上の整数値)回目の記録であるにも関わらず、n−1回目の記録であると誤った判断が行われてしまい、最も多く記録された位置の記録回数を正確に保持できなくなる。その結果、最も多く記録された位置の記録回数が実際には保証範囲を越えたときでも、書き込み回数の欄103の値(書き込み回数)は保証範囲内の値となっており、警告を出すことが不可能になる。   That is, if the number of times of writing is not updated at the time of formatting as in the prior art, the area where the clip data 304 is recorded in the next recording process is the nth recording (n is an integer value of 2 or more). Nevertheless, an erroneous determination is made that the recording is the (n-1) th recording, and the number of recordings at the most recorded position cannot be accurately maintained. As a result, even when the number of times of recording at the most frequently recorded positions actually exceeds the guaranteed range, the value in the number-of-writes column 103 (the number of times of writing) is within the guaranteed range, and a warning is issued. Becomes impossible.

これに対して、本実施の形態では、上述したように、フォーマットが施される場合も書き込み回数の欄103の値(書き込み回数)が確実にカウントアップされるので、最も多く記録された位置の記録回数を正確に保持することが可能になる。その結果、最も多く記録された位置の記録回数が実際には保証範囲を越えると、書き込み回数の欄103の値(書き込み回数)も保証範囲を超えた値となっており、確実に警告を出すことが可能になる。   On the other hand, in the present embodiment, as described above, even when formatting is performed, the value in the number-of-writes column 103 (number of times of writing) is reliably counted up. It becomes possible to hold the number of recordings accurately. As a result, when the number of times of recording at the most recorded positions actually exceeds the guaranteed range, the value in the write count column 103 (number of times of writing) also exceeds the guaranteed range, and a warning is reliably issued. It becomes possible.

ところで、本実施の形態のデータ記録装置1は、例えば、図2のステップS7の処理で光ディスク2に記録したクリップデータを、少なくとも編集処理が終了するまで、記憶部12にバックアップ用として保持しておく(記憶しておく)ことができる。或いは、データ記録装置1とは異なる記録装置に、バックアップ用として、クリップデータを保持していることもある。   By the way, the data recording apparatus 1 of the present embodiment holds, for example, the clip data recorded on the optical disc 2 in the process of step S7 in FIG. 2 in the storage unit 12 for backup at least until the editing process is completed. Can be stored (stored). Alternatively, clip data may be held in a recording device different from the data recording device 1 for backup.

これにより、例えば、データ記録処理中に、予期せぬ電源断等のトラブルが起こって、その時点で光ディスク2に記録中のクリップデータが失われても(途中までしか記録できずに削除とみなされても)、次の編集処理において(例えば、次に記録装置1の電源が入ったとき)、記憶部12や別の記録装置に保持されているバックアップ用のクリップデータを利用して、光ディスク2上の同位置に再度記憶させる(復元させる)ことができる。   As a result, for example, even if a trouble such as an unexpected power interruption occurs during the data recording process and the clip data being recorded on the optical disc 2 at that time is lost (it can be recorded only halfway and considered to be deleted). In the next editing process (for example, when the recording apparatus 1 is turned on next time), the clip data for backup stored in the storage unit 12 or another recording apparatus is used to record the optical disk. 2 can be stored (restored) again at the same position on the screen.

なお、このような手法(技術)は、サルベージと称され、従来の記録装置にも適用されている。しかしながら、従来の記録装置では、内部のメモリ(本実施の形態の記憶部12に相当)や別の記録装置に保持されているバックアップ用のクリップデータの中から、復元すべきクリップデータの存在を識別することが困難である、という課題があった。   Such a technique (technique) is called salvage and is also applied to a conventional recording apparatus. However, in the conventional recording device, the presence of clip data to be restored is detected from the internal clip (corresponding to the storage unit 12 of the present embodiment) or backup clip data held in another recording device. There was a problem that it was difficult to identify.

具体的には、例えば、従来の記録装置が光ディスクにクリップデータを記録している最中に故障してしまったときなど、ユーザは、その光ディスクを無理やり従来の記録装置から取り外して別の装置に装着させ、別の装置を利用してクリップデータの復元を試みようとする場合がある。このような場合、別の装置は、記録に使用していた従来の記録装置の内部のメモリ(不揮発メモリ)の内容を使用することはできないので、取り外した光ディスクのみから復元すべきクリップデータの存在を確認する処理を実行する必要がある。しかしながら、従来のサルベージでは、そのような処理を実行することは実質上不可能に近かった。   Specifically, for example, when a conventional recording device breaks down while recording clip data on the optical disc, the user forcibly removes the optical disc from the conventional recording device and puts it in another device. In some cases, it is attempted to restore the clip data by using another device. In such a case, the content of the internal memory (nonvolatile memory) of the conventional recording device used for recording cannot be used by another device, so there is clip data to be restored only from the removed optical disk. It is necessary to execute the process to confirm. However, with conventional salvage, it has been virtually impossible to perform such processing.

そこで、本実施の形態では、このような課題を解決する目的も含めて、上述したように、クリップデータのヘッダ部分(ヘッダ部分でなくても、クリップデータと関連付けられる光ディスク2上の領域であればよい)には、そのクリップデータが書き込まれた時点の書き込み回数(記憶部12の書き込み回数の欄103のその時点に設定されている値)が埋め込まれている(含まれている)のである。   Therefore, in the present embodiment, as described above, including the purpose of solving such a problem, the header portion of the clip data (even if it is not the header portion, the region on the optical disc 2 associated with the clip data may be used. Is embedded (included) in the number of times of writing when the clip data is written (the value set at that point in the number of times of writing 103 of the storage unit 12). .

即ち、図1の制御部16は、図2のステップS1の起動処理の後、光ディスク2に正常に記録されているクリップデータのうちの最終のクリップデータの次の領域に記録された後、削除された(或いは、その領域に一部が記録されている最中にデータ記録処理が中断され、削除とみなされた)クリップデータのヘッダ部分に含まれていた書き込み回数を認識する。なお、この書き込み回数は、光ディスク2のクリップデータが削除された(削除とみなされた)領域自身に残されていることもあるし、記録装置1の記憶部12等の別の場所に保持されていることもある。   That is, the control unit 16 in FIG. 1 deletes after recording in the area next to the last clip data among the clip data normally recorded on the optical disc 2 after the start processing in step S1 in FIG. The number of times of writing included in the header portion of the clip data that has been recorded (or the data recording process was interrupted while part of the data was recorded in the area and was considered to be deleted) is recognized. The number of times of writing may be left in the area where the clip data of the optical disk 2 is deleted (considered to be deleted) or may be held in another location such as the storage unit 12 of the recording apparatus 1. Sometimes.

そして、制御部16は、そのようにして認識した、削除されたクリップデータのヘッダ部分に含まれていた書き込み回数と、記憶部12の書き込み回数の欄103の現時点の値とを比較し、その比較の結果に基づいて、ステップS2において、復元すべきデータが有るか否かを判定する。   Then, the control unit 16 compares the number of times of writing included in the header portion of the deleted clip data recognized as described above with the current value in the number of times of writing 103 of the storage unit 12, and Based on the comparison result, in step S2, it is determined whether there is data to be restored.

具体例を挙げて、ステップS2の処理を再度説明する。   The process of step S2 will be described again with a specific example.

例えば、いま、上述した図32に示される、クリップデータ301乃至303が存在し、図32と同様に、クリップデータ301乃至303のそれぞれを、光ディスク2の(記録領域の)先頭位置からその順番で連続して記録させようとしていたとする。   For example, now, the clip data 301 to 303 shown in FIG. 32 described above exist, and each of the clip data 301 to 303 is arranged in the order from the head position (recording area) of the optical disc 2 as in FIG. Suppose you are trying to record continuously.

このとき、図35に示されるように、記録装置1が、クリップデータ301とクリップデータ302を光ディスク2に正常に記録させ、クリップデータ303を光ディスク2に記録させている最中に予期せぬ電源断により異常終了してしまい、その後、電源を再度投入して、再度編集処理を起動して、図2のステップS1の起動処理を終了させたとする。   At this time, as shown in FIG. 35, the recording apparatus 1 normally records the clip data 301 and the clip data 302 on the optical disc 2 and the unexpected power supply while the clip data 303 is recorded on the optical disc 2. It is assumed that the process ends abnormally due to disconnection, and then the power is turned on again, the editing process is started again, and the starting process of step S1 in FIG. 2 is ended.

この場合、図35に示されるように、記録装置1の記憶部12の書き込み回数の欄103の値には「1」が設定されていることになる(直前のステップS29(図3)で、書き込み回数の欄103に、光ディスク2の空き領域書換管理データに示される値「1」が既に設定されているため)。   In this case, as shown in FIG. 35, “1” is set in the value of the write count column 103 of the storage unit 12 of the recording device 1 (in the immediately preceding step S29 (FIG. 3), This is because the value “1” indicated in the empty area rewrite management data of the optical disc 2 is already set in the write count column 103).

一方、図35に示されるように、異常終了する前の、図2のステップS7のデータ記録処理で、クリップデータ303のヘッダ303Aには、書き込み回数として「1」が含まれて、クリップデータ303が光ディスク2に記録されていた。   On the other hand, as shown in FIG. 35, in the data recording process of step S7 of FIG. 2 before abnormal termination, the header 303A of the clip data 303 includes “1” as the number of times of writing, and the clip data 303 Was recorded on the optical disc 2.

なお、以下、記憶部12には、書き込み中の(或いは、最後に書き込みされた)クリップデータ(いまの場合、クリップデータ303)を特定する情報と、そのヘッダに含まれるべき書き込み回数(いまの場合、「1」)とが保持される(記憶される)として説明する。   Hereinafter, the storage unit 12 stores information specifying clip data being written (or last written) (in this case, clip data 303), and the number of writes to be included in the header (current In this case, “1”) is held (stored).

そこで、制御部16は、記憶部12のこのような情報を参照して、光ディスク2に正常に記録されている(最終の)クリップデータ302の次に記録されていたクリップデータはクリップデータ303であることを認識し、即ち、クリップデータ303を、復元すべきデータの候補として認識し、そのヘッダ303Aに含まれていた書き込み回数「1」を記憶部12から取得する。そして、制御部16は、取得した書き込み回数「1」(光ディスク2において、復元すべきデータの候補のヘッダ303Aに記載されていた値)と、記憶部12の書き込み回数の欄103の現時点の値とを比較する。いまの場合、記憶部12の書き込み回数の欄103の値も「1」であるので、比較の結果が一致し、このような場合、制御部16は、ステップS2において、復元すべきデータがあると判定し、ステップS3において、データを復元する。詳細には、制御部16は、ステップS3で、復元すべきデータの候補、即ち、バックアップ用のクリップデータ303を記憶部12から読み出し、光ディスク2の対応する領域(図35の例では、クリップデータ302の後に続く領域)に再度記録する。   Therefore, the control unit 16 refers to such information in the storage unit 12 and the clip data recorded after the (last) clip data 302 normally recorded on the optical disc 2 is the clip data 303. In other words, the clip data 303 is recognized as a candidate of data to be restored, and the write count “1” included in the header 303A is acquired from the storage unit 12. The control unit 16 then obtains the number of times of writing “1” (the value described in the header 303A of the candidate data to be restored on the optical disc 2) and the current value of the number of times of writing 103 in the storage unit 12. And compare. In this case, since the value in the write count column 103 of the storage unit 12 is also “1”, the comparison results match, and in such a case, the control unit 16 has data to be restored in step S2. In step S3, the data is restored. Specifically, in step S3, the control unit 16 reads out data candidates to be restored, that is, backup clip data 303 from the storage unit 12, and reads the corresponding area of the optical disc 2 (in the example of FIG. The area is recorded again in the area following 302.

なお、このとき、クリップデータ303の少なくとも一部(特に前半部分)が、光ディスク2の同一領域に2回書き込まれる可能性がある。そこで、このような場合、図示はしないが、制御部16は、記憶部12の書き込み回数の欄103の値を1だけインクリメントするとよい。即ち、いまの場合、制御部16は、記憶部12の書き込み回数の欄103の値を「2」に設定し、クリップデータ303のヘッダ部分303Aにも書き込み回数として「2」を埋め込むとよい。   At this time, at least a part (particularly the first half) of the clip data 303 may be written twice in the same area of the optical disc 2. Therefore, in such a case, although not shown, the control unit 16 may increment the value in the write count column 103 of the storage unit 12 by one. That is, in this case, the control unit 16 may set the value of the write count column 103 of the storage unit 12 to “2” and embed “2” as the write count in the header portion 303A of the clip data 303.

これに対して、例えば、いま、上述した図32に示される、クリップデータ301乃至303が存在し、図32と同様に、記録装置1が、図2のステップS7のデータ記録処理で、クリップデータ301乃至303のそれぞれを、光ディスク2の(記録領域の)先頭位置からその順番で連続して記録させ(正常に記録させ)、その後、ステップS9の処理で、最終のクリップデータ303(正常に記録されたクリップデータ303)を削除している最中に、予期せぬ電源断により異常終了してしまい、その後、電源を再度投入して、図2のステップS1の起動処理を終了させたとする。   On the other hand, for example, the clip data 301 to 303 shown in FIG. 32 described above exist, and the recording apparatus 1 performs the clip data in the data recording process in step S7 in FIG. Each of 301 to 303 is continuously recorded (normally recorded) in that order from the head position (recording area) of the optical disc 2, and then the final clip data 303 (normally recorded) is processed in step S9. Suppose that the clip data 303) is being deleted and that the process is abnormally terminated due to an unexpected power cut, and then the power is turned on again to complete the startup process in step S1 in FIG.

この場合、図35に示されるように、記録装置1の記憶部12の書き込み回数の欄103の値には「2」が設定されることになる(直前のステップS83(図3)で、書き込み回数の欄103の値がカウントアップされて「2」に更新されているため)。   In this case, as shown in FIG. 35, “2” is set in the value of the write count column 103 of the storage unit 12 of the recording apparatus 1 (in the immediately preceding step S83 (FIG. 3), the write is performed). This is because the value in the number-of-times column 103 is counted up and updated to “2”).

一方、図35に示されるように、異常終了する前の、図2のステップS9のデータ削除処理で削除された(或いは、その途中の)、クリップデータ303のヘッダ303Aには、書き込み回数として「1」が含まれており、この値は「1」のまま特に更新されていない。   On the other hand, as shown in FIG. 35, in the header 303A of the clip data 303 that has been deleted (or in the middle) by the data deletion processing in step S9 of FIG. 1 ”is included, and this value remains“ 1 ”and is not particularly updated.

異常終了した時点で、最後に記憶されたクリップデータとは、クリップデータ303であるので、上述したように、記憶部12には、クリップデータ303を特定する情報と、そのヘッダに含まれるべき書き込み回数(いまの場合、「1」)とが保持されている(記憶されている)。   Since clip data 303 stored last at the time of abnormal termination is the clip data 303, as described above, the information specifying the clip data 303 and the write to be included in the header thereof are stored in the storage unit 12. The number of times (in this case, “1”) is held (stored).

そこで、制御部16は、記憶部12のこのような情報を参照して、光ディスク2に現時点で記録されている(最終の)クリップデータ302の次に記録されていたクリップデータはクリップデータ303であることを認識し、即ち、クリップデータ303を、復元すべきデータの候補として認識し、そのヘッダ303Aに含まれていた書き込み回数「1」を記憶部12から取得する。   Therefore, the control unit 16 refers to such information in the storage unit 12, and the clip data recorded after the (final) clip data 302 currently recorded on the optical disc 2 is the clip data 303. In other words, the clip data 303 is recognized as a candidate of data to be restored, and the write count “1” included in the header 303A is acquired from the storage unit 12.

そして、制御部16は、取得した書き込み回数「1」(光ディスク2において、復元すべきデータの候補のヘッダ303Aに記載されていた値)と、記憶部12の書き込み回数の欄103の現時点の値とを比較する。いまの場合、記憶部12の書き込み回数の欄103の値は「2」であるので、比較の結果が異なることになり、このような場合、制御部16は、ステップS2において、復元すべきデータは存在しない(はない)と判定し、ステップS3の処理を実行せずに、即ち、復元すべきデータの候補(ここでは、バックアップ用のクリップデータ303)を復元せずに、処理をステップS4に進める。   The control unit 16 then obtains the number of times of writing “1” (the value described in the header 303A of the candidate data to be restored on the optical disc 2) and the current value of the number of times of writing 103 in the storage unit 12. And compare. In this case, since the value in the write count column 103 of the storage unit 12 is “2”, the comparison result is different. In such a case, the control unit 16 determines the data to be restored in step S2. Does not exist (does not exist), and the process of step S3 is performed without executing the process of step S3, that is, without restoring the data candidates to be restored (here, the clip data 303 for backup). Proceed to

このように、制御部16は、光ディスク2に復元するクリップデータの候補を認識し、その候補のヘッダに記載されていた値(書き込み回数を示す値)と、記憶部12の書き込み回数の欄103の現時点の値とを比較し、その比較結果に基づいて、ステップS2において、復元すべきデータがあるか否かを判定する。即ち、同一の値であるという比較の結果の場合、ステップS2において、復元すべきデータがあると判定されて、ステップS3において、データが復元された後、処理はステップS4に進められる。これに対して、異なる値であるという比較の結果の場合、ステップS2において、復元すべきデータはないと判定されて、ステップS3の処理が実行されずに(データが復元されずに)、処理はステップS4に進められる。   As described above, the control unit 16 recognizes the clip data candidates to be restored to the optical disc 2, and the value (value indicating the number of times of writing) described in the header of the candidate and the number of times of writing 103 in the storage unit 12. Are compared with the current value of the current data, and based on the comparison result, it is determined in step S2 whether there is data to be restored. That is, in the case of the comparison result that the values are the same, it is determined in step S2 that there is data to be restored, and after the data is restored in step S3, the process proceeds to step S4. On the other hand, in the case of the comparison result that the values are different, it is determined in step S2 that there is no data to be restored, and the process of step S3 is not executed (data is not restored). Advances to step S4.

なお、上述したように、最終のクリップデータが削除される場合、直前のステップS83(図3)で、書き込み回数の欄103の値が更新されるとともに、ステップS84で、書き込み開始位置の欄104の値(書き込み開始位置104A)も光ディスク2の(記録領域の)先頭位置に戻される。従って、図2のステップS9のデータ削除処理中に異常終了し、その後、再度編集処理が開始されたような場合、ステップS2の時点では、書き込み開始位置の欄104の値(書き込み開始位置104A)は光ディスク2の(記録領域の)先頭位置となっている。   As described above, when the last clip data is deleted, the value in the write count column 103 is updated in the previous step S83 (FIG. 3), and in the write start position column 104 in step S84. (Write start position 104A) is also returned to the head position (in the recording area) of the optical disc 2. Therefore, if the process ends abnormally during the data deletion process of step S9 in FIG. 2 and then the editing process is started again, the value in the write start position column 104 (write start position 104A) at the time of step S2. Is the head position (of the recording area) of the optical disc 2.

これに対して、図2のステップS7のデータ記録処理中に異常終了し、その後、再度編集処理が開始されたような場合、ステップS2の時点では、書き込み開始位置の欄104の値(書き込み開始位置104A)は、書き込みに失敗したクリップデータ(即ち、復元すべきクリップデータ)の直前のクリップデータの終端の位置となっている。   On the other hand, if the data recording process is abnormally terminated during the data recording process in step S7 in FIG. 2 and then the editing process is started again, the value in the write start position column 104 (the write start position) The position 104A) is the end position of the clip data immediately before the clip data that failed to be written (that is, the clip data to be restored).

そこで、制御部12は、ステップS2において、復元すべきデータがあるか否かを判定する場合、書き込み開始位置の欄104の値(書き込み開始位置104A)を使用してもよい(単独で使用してもよいし、書き込み回数と併用してもよい)。   Therefore, when determining whether or not there is data to be restored in step S2, the control unit 12 may use the value in the write start position column 104 (write start position 104A) (use alone). Or may be used in combination with the number of times of writing).

また、上述したように、ステップS2とS3の処理は、記録装置1とは異なる別の装置(図示せず)で行ってもよい。   Further, as described above, the processes in steps S2 and S3 may be performed by another apparatus (not shown) different from the recording apparatus 1.

ただし、この場合、別の装置は、ステップS2の処理の前に、記録装置1のの記憶部12の書き込み回数の欄103の値、並びに、復元すべきクリップデータの候補を特定する情報、および、そのクリップデータのヘッダ部分に含まれている書き込み回数、といった各種情報を取得する必要がある。   However, in this case, before the process of step S2, the other apparatus, the value of the write count column 103 of the storage unit 12 of the recording apparatus 1, the information specifying the clip data candidates to be restored, and It is necessary to acquire various information such as the number of times of writing included in the header portion of the clip data.

この取得手法は特に限定されず、例えば、別の装置と記録装置1とが相互に通信を行い(通信部やその通信に介在するネットワークは図示せず)、図14のステップS83、図18のステップS47、および、図7のステップS32のそれぞれの処理の終了時点で、即ち、書き込み回数の欄103の値が更新された時点(1だけインクリメントされた時点で)、その更新された値や、ステップS7のデータ記録処理の処理状態を示す情報を、記録装置1から別の装置に転送する、という手法を適用してもよい。   This acquisition method is not particularly limited. For example, another apparatus and the recording apparatus 1 communicate with each other (a communication unit and a network intervening in the communication are not illustrated), and steps S83 and 18 in FIG. At the end of each processing of step S47 and step S32 of FIG. 7, that is, when the value of the write count column 103 is updated (when incremented by 1), the updated value, You may apply the method of transferring the information which shows the processing state of the data recording process of step S7 from the recording device 1 to another apparatus.

或いは、例えば、図14のステップS83、図18のステップS47、および、図7のステップS32のそれぞれの処理の終了時点で、即ち、書き込み回数の欄103の値が更新された時点(1だけインクリメントされた時点で)、その更新された値を、光ディスク2の空き領域書換管理データに記録し(空き領域書換管理データを更新し)、また、新たなクリップデータの記録を開始する時点で、そのクリップデータの情報を光ディスク2の空き領域書換管理データに記録する(空き領域書換管理データを更新する)、という手法を適用してもよい。   Alternatively, for example, at the end of each of the processes in step S83 in FIG. 14, step S47 in FIG. 18, and step S32 in FIG. 7, that is, when the value in the write count column 103 is updated (increment by 1). The updated value is recorded in the free space rewriting management data of the optical disc 2 (the free space rewriting management data is updated), and when recording of new clip data is started, A method of recording the clip data information in the free area rewrite management data of the optical disc 2 (updating the free area rewrite management data) may be applied.

上述した一連の処理は、ハードウエアにより実現させることもできるが、ソフトウエアにより実現させることもできる。一連の処理をソフトウエアにより実現する場合には、そのソフトウエアを構成するプログラムがコンピュータにインストールされ、そのプログラムがコンピュータで実行されることより、上述した記録装置1が機能的に実現される。   The series of processes described above can be realized by hardware, but can also be realized by software. When a series of processing is realized by software, a program constituting the software is installed in a computer, and the program is executed by the computer, whereby the above-described recording apparatus 1 is functionally realized.

図42は、上述のような記録装置1として機能するコンピュータ501の一実施の形態の構成を示すブロック図である。CPU(Central Processing Unit)511にはバス515を介して入出力インタフェース516が接続されており、CPU511は、入出力インタフェース516を介して、ユーザから、キーボード、マウスなどよりなる入力部518から指令が入力されると、例えば、ROM(Read Only Memory)512、ハードディスク514、またはドライブ520に装着される磁気ディスク531、光ディスク532、光磁気ディスク533、若しくは半導体メモリ534などの記録媒体に格納されているプログラムを、RAM(Random Access Memory)513にロードして実行する。これにより、上述した各種の処理が行われる。さらに、CPU511は、その処理結果を、例えば、入出力インタフェース516を介して、LCD(Liquid Crystal Display)などよりなる出力部517に必要に応じて出力する。なお、プログラムは、ハードディスク514やROM512に予め記憶しておき、コンピュータ501と一体的にユーザに提供したり、磁気ディスク531、光ディスク532、光磁気ディスク533,半導体メモリ534等のパッケージメディアとして提供したり、衛星、ネットワーク等から通信部519を介してハードディスク514に提供することができる。   FIG. 42 is a block diagram showing a configuration of an embodiment of a computer 501 functioning as the recording apparatus 1 as described above. An input / output interface 516 is connected to a CPU (Central Processing Unit) 511 via a bus 515, and the CPU 511 receives a command from an input unit 518 such as a keyboard and a mouse via the input / output interface 516. When input, it is stored in a recording medium such as a ROM (Read Only Memory) 512, a hard disk 514, or a magnetic disk 531, an optical disk 532, a magneto-optical disk 533, or a semiconductor memory 534 mounted in the drive 520. The program is loaded into a RAM (Random Access Memory) 513 and executed. Thereby, the various processes described above are performed. Further, the CPU 511 outputs the processing result to an output unit 517 such as an LCD (Liquid Crystal Display) via the input / output interface 516 as necessary. The program is stored in advance in the hard disk 514 or ROM 512 and provided to the user integrally with the computer 501 or as a package medium such as the magnetic disk 531, the optical disk 532, the magneto-optical disk 533, and the semiconductor memory 534. Or can be provided to the hard disk 514 via the communication unit 519 from a satellite, a network, or the like.

なお、本明細書において、記録媒体により提供されるプログラムを記述するステップは、記載された順序に沿って時系列的に行われる処理はもちろん、必ずしも時系列的に処理されなくとも、並列的あるいは個別に実行される処理をも含むものである。   In the present specification, the step of describing the program provided by the recording medium is not limited to the processing performed in chronological order according to the described order, but is not necessarily performed in chronological order. It also includes processes that are executed individually.

本発明を適用した記録装置の構成例を示すブロック図である。1 is a block diagram illustrating a configuration example of a recording apparatus to which the present invention is applied. 図1の記録装置の編集処理を説明するフローチャートである。3 is a flowchart for explaining editing processing of the recording apparatus in FIG. 1. 図2のステップS1の処理の詳細を示すフローチャートである。It is a flowchart which shows the detail of the process of step S1 of FIG. 図1の記憶部の記憶内容を示す図である。It is a figure which shows the memory content of the memory | storage part of FIG. 図1の光ディスクのデータの記録状態を示す図である。It is a figure which shows the recording state of the data of the optical disk of FIG. 図1の記憶部の記憶内容を示す他の図である。It is another figure which shows the memory content of the memory | storage part of FIG. 図2のステップS5の処理の詳細を示すフローチャートである。It is a flowchart which shows the detail of a process of step S5 of FIG. 図2のステップS5の処理の詳細を示すフローチャートである。It is a flowchart which shows the detail of a process of step S5 of FIG. 図8のステップS43の処理の詳細を示すフローチャートである。It is a flowchart which shows the detail of a process of step S43 of FIG. 図9のステップS68(YES)乃至S69の処理を説明する図である。It is a figure explaining the process of step S68 (YES) thru | or S69 of FIG. 図9のステップS68(YES)乃至S69の処理を説明する他の図である。It is another figure explaining the process of step S68 (YES) thru | or S69 of FIG. 図9のステップS68(NO)とS71の処理を説明する図である。It is a figure explaining the process of step S68 (NO) and S71 of FIG. 図9のステップS68(NO)とS71の処理を説明する他の図である。It is another figure explaining the process of step S68 (NO) of FIG. 9, and S71. 図2のステップS9の処理の詳細を示すフローチャートである。It is a flowchart which shows the detail of a process of step S9 of FIG. 図1の光ディスクのデータの記録状態を示す他の図である。It is another figure which shows the recording state of the data of the optical disk of FIG. 図1の記憶部の記憶内容を示す他の図である。It is another figure which shows the memory content of the memory | storage part of FIG. 図1の記憶部の記憶内容を示す他の図である。It is another figure which shows the memory content of the memory | storage part of FIG. 図1の光ディスクのデータの記録状態を示す他の図である。It is another figure which shows the recording state of the data of the optical disk of FIG. 図1の記憶部の記憶内容を示す他の図である。It is another figure which shows the memory content of the memory | storage part of FIG. 図1の光ディスクのデータの記録状態を示す他の図である。It is another figure which shows the recording state of the data of the optical disk of FIG. 図1の記憶部の記憶内容を示す他の図である。It is another figure which shows the memory content of the memory | storage part of FIG. 図1の光ディスクのデータの記録状態を示す他の図である。FIG. 7 is another diagram showing a data recording state of the optical disc in FIG. 1. 図1の記憶部の記憶内容を示す他の図である。It is another figure which shows the memory content of the memory | storage part of FIG. 図1の光ディスクのデータの記録状態を示す他の図である。It is another figure which shows the recording state of the data of the optical disk of FIG. 図1の記憶部の記憶内容を示す他の図である。It is another figure which shows the memory content of the memory | storage part of FIG. 図1の光ディスクのデータの記録状態を示す他の図である。It is another figure which shows the recording state of the data of the optical disk of FIG. 図1の記憶部の記憶内容を示す他の図である。It is another figure which shows the memory content of the memory | storage part of FIG. 図1の光ディスクのデータの記録状態を示す他の図である。It is another figure which shows the recording state of the data of the optical disk of FIG. 図1の記憶部の記憶内容を示す他の図である。It is another figure which shows the memory content of the memory | storage part of FIG. 図1の光ディスクのデータの記録状態を示す他の図である。It is another figure which shows the recording state of the data of the optical disk of FIG. 図1の記憶部の記憶内容を示す他の図である。It is another figure which shows the memory content of the memory | storage part of FIG. 図1の光ディスクのデータの記録状態を示す他の図である。It is another figure which shows the recording state of the data of the optical disk of FIG. 図1の光ディスクのデータの記録状態を示す他の図である。It is another figure which shows the recording state of the data of the optical disk of FIG. 図1の光ディスクのデータの記録状態を示す他の図である。FIG. 7 is another diagram showing a data recording state of the optical disc in FIG. 1. 図1の光ディスクのデータの記録状態を示す他の図である。It is another figure which shows the recording state of the data of the optical disk of FIG. 図1の光ディスクのデータの記録状態を示す他の図である。It is another figure which shows the recording state of the data of the optical disk of FIG. パーソナルコンピュータの構成例を示すブロック図である。And FIG. 16 is a block diagram illustrating a configuration example of a personal computer.

符号の説明Explanation of symbols

1 記録装置, 2 光ディスク, 11 入力データ処理部, 12 記憶部, 13 操作部, 14 表示部, 15 ドライブ,16 制御部, 21 エラー判定部, 101 カレントキュー, 102 ネクストキュー, 103 書き込み回数の欄, 104 記録開始位置の欄, 104A 記録開始位置   DESCRIPTION OF SYMBOLS 1 Recording device, 2 Optical disk, 11 Input data processing part, 12 Storage part, 13 Operation part, 14 Display part, 15 Drive, 16 Control part, 21 Error judgment part, 101 Current queue, 102 Next cue, 103 Write number column , 104 Recording start position column, 104A Recording start position

Claims (6)

記録媒体の記録領域のうちの、予め設定された記録開始位置の後方に配置される1以上の空き領域に、その配置の順番に、入力データを順次書き込む書き込み手段と、
前記書き込み手段により前記記録領域に書き込まれた前記入力データのうちの、最後に書き込まれた第1の入力データを削除する削除手段と、
前記削除手段により前記第1の入力データが削除された場合、前記記録開始位置として、前記記録領域の先頭位置を設定し、前記記録領域に対する前記入力データの書き込み回数として、それまで前記書き込み回数として設定されていた値に1だけ加算した値を設定する設定手段と
を備え、
前記書き込み手段は、前記削除手段により前記第1の入力データが削除された後、1以上の前記空き領域のうち、前記設定手段により設定された前記記録開始位置の後方の1番目に配置される前記空き領域に、次の第2の入力データを書き込む
録装置。
Writing means for sequentially writing input data in the order of arrangement in one or more empty areas arranged behind a preset recording start position in the recording area of the recording medium;
Of the input data written to the recording area by the writing means, deleting means for deleting the first input data written last,
If the first input data is deleted by the deleting means, as before type recording start position, set the start position of the recording area, as before SL write count of the input data to the recording area, the far and setting means to set a value obtained by adding 1 to the value which has been set as the number of writing
With
The writing unit is arranged at the first position behind the recording start position set by the setting unit among the one or more free areas after the first input data is deleted by the deleting unit. The next second input data is written in the empty area.
Record apparatus.
前記削除手段は、前記第1の入力データを削除した後、さらに、前記記録領域に書き込まれた前記入力データのうちの前記第1の入力データとは異なる第3の入力データを、前記書き込み手段により前記第2の入力データが前記記録媒体に書き込まれる前に削除し、
前記削除手段により前記第3の入力データが削除された場合、前記設定手段は、前記記録開始位置の設定を保持し、前記書き込み回数の設定を保持する
求項1に記載の記録装置。
The deletion means further deletes the first input data, and further writes third input data different from the first input data among the input data written in the recording area to the writing means. The second input data is deleted before being written to the recording medium by
If the third input data is deleted by the deleting means, before Ki設 constant unit holds the settings of the recording start position, to hold the setting of the write number
The recording apparatus according to Motomeko 1.
前記記録領域をフォーマットするフォーマット手段をさらに備え、
前記フォーマット手段により前記記録領域がフォーマットされた場合、前記設定手段は、前記記録開始位置として、前記記録領域の前記先頭位置を設定し前記書き込み回数として、それまで前記書き込み回数として設定されていた値に1だけ加算した値を設定する
求項1に記載の記録装置。
Further comprising formatting means for formatting the recording area;
If the recording region is formatted by the formatting means, before Ki設 constant means, as said recording start position, setting the starting position of the recording area, as the number of writing, is set as the write number until it Set the value obtained by adding 1 to the previous value
The recording apparatus according to Motomeko 1.
前記書き込み手段は、前記入力データを前記空き領域に書き込む毎、前記設定手段により設定された現時点の前記書き込み回数を示すデータも、書き込み対象とされている前記入力データに含めて前記空き領域に書き込む
求項1に記載の記録装置。
Each time the writing means writes the input data into the free space, the data indicating the current number of times of writing set by the setting means is included in the input data to be written and written into the free space.
The recording apparatus according to Motomeko 1.
記録媒体の記録領域のうちの、予め設定された記録開始位置の後方に配置される1以上の空き領域に、その配置の順番に、入力データを順次書き込む書き込みステップと、
前記書き込みステップの処理により前記記録領域に書き込まれた前記入力データのうちの、最後に書き込まれた第1の入力データを削除する削除ステップと、
前記削除ステップの処理により前記第1の入力データが削除された場合、前記記録開始位置として、前記記録領域の先頭位置を設定し、前記記録領域に対する前記入力データの書き込み回数として、それまで前記書き込み回数として設定されていた値に1だけ加算した値を設定する設定ステップと
を含み、
前記書き込みステップには、前記削除手段により前記第1の入力データが削除された後、1以上の前記空き領域のうち、前記設定手段により設定された前記記録開始位置の後方の1番目に配置される前記空き領域に、次の第2の入力データを書き込むステップを含む
録方法。
A writing step of sequentially writing input data in the order of arrangement in one or more empty areas arranged behind a preset recording start position in a recording area of the recording medium;
A deletion step of deleting first input data written last among the input data written to the recording area by the processing of the writing step;
Said first input data deleted if the processing of the deleting step, as a pre-type recording start position, set the start position of the recording area, as before SL write count of the input data to the recording area, it and set the constant set to set the value obtained by adding 1 to the value was steps as the number of writes to
Including
In the writing step, after the first input data is deleted by the deleting unit, the first input data is arranged at the first of the one or more free areas behind the recording start position set by the setting unit. Writing the second input data to the empty area
Record method.
入力データの記録媒体への記録を制御するコンピュータに実行させるプログラムであって、
前記記録媒体の記録領域のうちの、予め設定された記録開始位置の後方に配置される1以上の空き領域に、その配置の順番に、前記入力データを順次書き込む書き込みステップと、
前記書き込みステップの処理により前記記録領域に書き込まれた前記入力データのうちの、最後に書き込まれた第1の入力データを削除する削除ステップと、
前記削除ステップの処理により前記第1の入力データが削除された場合、前記記録開始位置として、前記記録領域の先頭位置を設定し、前記記録領域に対する前記入力データの書き込み回数として、それまで前記書き込み回数として設定されていた値に1だけ加算した値を設定する設定ステップと
を含み、
前記書き込みステップには、前記削除手段により前記第1の入力データが削除された後、1以上の前記空き領域のうち、前記設定手段により設定された前記記録開始位置の後方の1番目に配置される前記空き領域に、次の第2の入力データを書き込むステップを含む
ログラム。
A program for causing a computer to control recording of input data to a recording medium,
A writing step of sequentially writing the input data in the order of arrangement in one or more empty areas arranged behind a preset recording start position in the recording area of the recording medium;
A deletion step of deleting first input data written last among the input data written to the recording area by the processing of the writing step;
Said first input data deleted if the processing of the deleting step, as a pre-type recording start position, set the start position of the recording area, as before SL write count of the input data to the recording area, it and set the constant set to set the value obtained by adding 1 to the value was steps as the number of writes to
Including
In the writing step, after the first input data is deleted by the deleting unit, the first input data is arranged at the first of the one or more free areas behind the recording start position set by the setting unit. Writing the second input data to the empty area
Program.
JP2004047628A 2004-02-24 2004-02-24 Recording apparatus and method, and program Expired - Fee Related JP4281571B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2004047628A JP4281571B2 (en) 2004-02-24 2004-02-24 Recording apparatus and method, and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2004047628A JP4281571B2 (en) 2004-02-24 2004-02-24 Recording apparatus and method, and program

Publications (2)

Publication Number Publication Date
JP2005243068A JP2005243068A (en) 2005-09-08
JP4281571B2 true JP4281571B2 (en) 2009-06-17

Family

ID=35024659

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2004047628A Expired - Fee Related JP4281571B2 (en) 2004-02-24 2004-02-24 Recording apparatus and method, and program

Country Status (1)

Country Link
JP (1) JP4281571B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7603035B2 (en) 2004-09-03 2009-10-13 Fujitsu Limited Method and system for a data centric architecture in an optical network
JP5534790B2 (en) * 2009-11-30 2014-07-02 株式会社メガチップス Recording system

Also Published As

Publication number Publication date
JP2005243068A (en) 2005-09-08

Similar Documents

Publication Publication Date Title
JP5055853B2 (en) File management apparatus and electronic device
US6085020A (en) Editing control apparatus and editing control method employing compressed audio-visual information
US20100312807A1 (en) Recording device, recording method and program
JP4140516B2 (en) Recording control apparatus and method, recording medium, and program
JP4241839B2 (en) Data and file system information recording apparatus and recording method
US20090324204A1 (en) Information processing method and information processing apparatus
JP4281571B2 (en) Recording apparatus and method, and program
JP4288593B2 (en) Recording apparatus and method, and program
JP4961862B2 (en) Information recording / reproducing apparatus, information recording / reproducing method, and program
JP5178355B2 (en) Recording device
JP4930358B2 (en) Data processing apparatus and data processing method
US8775383B2 (en) File editing apparatus and file editing method
KR100611828B1 (en) Recording apparatus, recording method, program, and recording medium
JPH11232791A (en) Information recording method and device therefor
US10950274B2 (en) Image recording apparatus, method for controlling same, and non-transitory computer-readable storage medium
JP5632628B2 (en) Recording apparatus and control method thereof
JP2001043622A (en) Information processor
JP4000462B2 (en) Recording apparatus and method, and program
JP4968188B2 (en) Information processing method and apparatus
JP3714323B2 (en) Editing system and method for copying AV data from AV server
JP4208029B2 (en) Data management method
JP5051310B2 (en) Information recording method and apparatus
JP4389947B2 (en) Recording / reproducing apparatus, data processing apparatus, reproducing method, and data processing method
KR100513351B1 (en) Method for file close in digital recorder
JP2009181603A (en) Digital information recording/reproducing system

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20060823

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20080926

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20081204

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20090130

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

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20090309

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120327

Year of fee payment: 3

LAPS Cancellation because of no payment of annual fees