JP2005353108A - Data recorder and data recording method - Google Patents
Data recorder and data recording method Download PDFInfo
- Publication number
- JP2005353108A JP2005353108A JP2004169515A JP2004169515A JP2005353108A JP 2005353108 A JP2005353108 A JP 2005353108A JP 2004169515 A JP2004169515 A JP 2004169515A JP 2004169515 A JP2004169515 A JP 2004169515A JP 2005353108 A JP2005353108 A JP 2005353108A
- Authority
- JP
- Japan
- Prior art keywords
- data
- compression
- recording
- compression method
- recording medium
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Landscapes
- Signal Processing For Digital Recording And Reproducing (AREA)
- Management Or Editing Of Information On Record Carriers (AREA)
Abstract
Description
本発明は、オーディオデータ等を記録媒体に圧縮及び記録するデータ記録装置及びデータ記録方法に関するものである。 The present invention relates to a data recording apparatus and a data recording method for compressing and recording audio data or the like on a recording medium.
従来、ディジタル情報記録装置としては図9に示すものが知られている。従来の記録装置としては記録媒体において、圧縮し記録済みの情報のうち過去に再生したことのある情報部分を特定可能とする再生済み情報(リードフラグ901)また、圧縮し記録済みの情報のうち保存すべき情報部分を特定可能とするアーカイブ情報(アーカイブフラグ902)を持ちこれらの情報を管理する。新たに記録が必要となりかつ記録媒体の記録容量が不足する際は、この管理情報から記録保持優先度の低いデータを削除し、新たに記録が必要となる記録容量を確保して記録を行うものである(例えば、特許文献1参照)。
しかしながら、上記の従来技術によれば、新たに記録が必要となった際の記録媒体の空き容量が例えば4メガバイトであり、ある圧縮方式により圧縮された記録されるデータ量が例えば5メガバイトであった場合は1メガバイト空き容量が不足することになり、既に記録されたデータの中で最も記録保持優先度の低いデータを選択し(例えば6メガバイト)削除しなければならない。すなわち記録媒体の空き容量である4メガバイトが使用できなく6メガバイトのデータを削除し、10メガバイトの空き容量を確保し、5メガバイトのデータを記録することになる。また記録後は5メガバイトの空き容量が発生することになり、限られた記録容量の有効活用ができないものであった。 However, according to the above-described prior art, the free capacity of the recording medium when new recording is required is, for example, 4 megabytes, and the amount of recorded data compressed by a certain compression method is, for example, 5 megabytes. In such a case, the free space of 1 megabyte is insufficient, and the data having the lowest recording holding priority among the already recorded data must be selected (for example, 6 megabytes) and deleted. That is, 4 megabytes, which is the free capacity of the recording medium, cannot be used, 6 megabytes of data is deleted, 10 megabytes of free capacity is secured, and 5 megabytes of data are recorded. Further, after recording, a free space of 5 megabytes is generated, and the limited recording capacity cannot be effectively used.
本発明は、上記従来の事情に鑑みてなされたものであって、限られた記録容量を有効活用可能なデータ記録装置及びデータ記録方法を提供することを目的とする。 The present invention has been made in view of the above-described conventional circumstances, and an object thereof is to provide a data recording apparatus and a data recording method capable of effectively utilizing a limited recording capacity.
本発明のデータ記録装置は、圧縮率の異なる複数の圧縮方式を有する圧縮手段と、
データを記録する記録媒体の空き容量を管理する記録媒体管理手段と、
前記空き容量に応じて前記圧縮手段の圧縮方式を選択する制御を行う圧縮方式選択手段と、
前記選択された圧縮方式で圧縮されたデータを前記記録媒体に記録する記録手段と、
を備える。
The data recording apparatus of the present invention includes a compression unit having a plurality of compression methods with different compression rates,
Recording medium management means for managing the free space of the recording medium for recording data;
Compression method selection means for performing control to select a compression method of the compression means according to the free space;
Recording means for recording data compressed by the selected compression method on the recording medium;
Is provided.
この構成により、複数の圧縮方式を利用して限られた記録容量を有効活用するデータ記録装置を提供することができる。 With this configuration, it is possible to provide a data recording apparatus that effectively uses a limited recording capacity by using a plurality of compression methods.
また、前記圧縮方式選択手段は、前記複数の圧縮方式のうち、少なくとも一つで圧縮した場合の前記データのデータ量を算出し、前記算出したデータ量と前記空き容量とを比較して、前記算出したデータ量が前記空き容量以下となる圧縮方式を選択する。 Further, the compression method selection means calculates a data amount of the data when compressed with at least one of the plurality of compression methods, compares the calculated data amount with the free space, and A compression method in which the calculated data amount is equal to or less than the free capacity is selected.
この構成により、圧縮されたデータが空き容量以下になるように圧縮方式を選択することによって、既に記録されているデータを削除することなく限られた記録容量を最大限有効活用することが可能となる。 With this configuration, by selecting a compression method so that the compressed data is less than the free capacity, it is possible to make maximum use of the limited recording capacity without deleting the already recorded data. Become.
また、前記圧縮方式選択手段は、前記データ量の算出及び前記空き容量との比較を、圧縮率の低い圧縮方式から順に行う。 The compression method selection means sequentially calculates the data amount and compares it with the free capacity, starting from the compression method with the lowest compression rate.
この構成により、より低い圧縮率の圧縮方式を選択できるので、データの劣化を最小限にすることができる。 With this configuration, a compression method with a lower compression rate can be selected, so that data degradation can be minimized.
また、前記複数の圧縮方法で圧縮されたデータを伸長する伸長手段を更に備え、
前記記録媒体管理手段は、前記記録媒体に記録されているデータと、その圧縮方式を対応付けて管理し、
前記伸長手段は、前記記録媒体に新たなデータを記録する際に前記記録媒体の空き容量が不足していると判断された場合に、前記記録媒体に記録されているデータのうち少なくとも一つを伸長し、
前記圧縮手段は、前記管理されている伸長されたデータに対応した圧縮方式に基づいて、伸長前の圧縮方式より圧縮率の高い圧縮方式で前記伸長されたデータを圧縮する。
And further comprising decompression means for decompressing the data compressed by the plurality of compression methods,
The recording medium management means manages the data recorded on the recording medium in association with the compression method,
The decompression means may store at least one of the data recorded on the recording medium when it is determined that the recording medium has insufficient free space when recording new data on the recording medium. Elongate,
The compression means compresses the decompressed data by a compression method having a higher compression rate than the compression method before decompression, based on the compression method corresponding to the managed decompressed data.
この構成により、新たに記録すべきデータに対する記録媒体の空き領域を生成することができるので、限られた記録容量を最大限有効活用することが可能となる。 With this configuration, it is possible to generate a free area of the recording medium for data to be newly recorded, and thus it is possible to make the most effective use of the limited recording capacity.
また、前記圧縮方式選択手段は、前記記録媒体に記録されているデータのうち、前記圧縮率の低い圧縮方式で記録されたデータを前記伸長するデータとして選択し、前記空き容量として前記選択されたデータを伸長前の圧縮方式より圧縮率の高い圧縮方式を行った場合の空き容量を算出して、その空き容量に基づいて前記記録すべきデータの圧縮方式を選択する。 The compression method selection means selects data recorded by the compression method having a low compression rate as data to be decompressed from among data recorded on the recording medium, and the selected as the free capacity A free capacity is calculated when a compression method having a higher compression ratio than that of the compression method before decompression is performed, and the compression method of the data to be recorded is selected based on the free capacity.
この構成により、空き領域の生成と、その記録データの選択を行うことができるので、限られた記録容量を有効活用することが可能となる。 With this configuration, it is possible to generate a free area and select the recording data, so that a limited recording capacity can be used effectively.
本発明のデータ記録方法は、データを記録する記録媒体の空き容量と、記録すべきデータのデータ量とを取得するステップと、
前記空き容量に応じて、前記データの圧縮方式として、複数の圧縮方式のうちの一つ選択する制御を行うステップと、
前記選択された圧縮方式で圧縮されたデータを前記記録媒体に記録するステップと、
を有する。
The data recording method of the present invention includes a step of acquiring a free capacity of a recording medium for recording data and a data amount of data to be recorded;
Performing a control to select one of a plurality of compression methods as the data compression method in accordance with the free space;
Recording the data compressed by the selected compression method on the recording medium;
Have
この方法により、複数の圧縮方式を利用して限られた記録容量を有効活用するデータ記録装置を提供することができる。 By this method, it is possible to provide a data recording apparatus that effectively uses a limited recording capacity by using a plurality of compression methods.
また、前記圧縮方式を選択するステップは、
前記複数の圧縮方式のうち、少なくとも一つで圧縮した場合の前記データのデータ量を算出するステップと、
前記算出したデータ量と前記空き容量とを比較するステップと、
前記算出したデータ量が前記空き容量以下となる圧縮方式を選択するステップとを有する。
The step of selecting the compression method includes
Calculating a data amount of the data when compressed by at least one of the plurality of compression methods;
Comparing the calculated amount of data with the free space;
Selecting a compression method in which the calculated data amount is equal to or less than the free capacity.
この方法により、圧縮されたデータが空き容量以下になるように圧縮方式を選択することによって、既に記録されているデータを削除することなく限られた記録容量を最大限有効活用することが可能となる。 With this method, by selecting a compression method so that the compressed data is less than the free capacity, it is possible to make the most effective use of the limited recording capacity without deleting the already recorded data. Become.
また、前記データ量の算出及び前記空き容量との比較は、圧縮率の低い圧縮方式から順に行われる。 Further, the calculation of the data amount and the comparison with the free space are performed in order from the compression method with the lowest compression rate.
この方法により、より低い圧縮率の圧縮方式を選択できるので、データの劣化を最小限にすることができる。 By this method, a compression method with a lower compression rate can be selected, so that data degradation can be minimized.
また、前記記録媒体に新たなデータを記録する際に前記記録媒体の空き容量が不足していると判断された場合に、前記伸長手段は前記記録媒体に記録されているデータのうち少なくとも一つを伸長するステップと、
伸長されたデータを、更に圧縮率の高い圧縮方式で圧縮するステップと、
を更に有する。
In addition, when it is determined that the recording medium has insufficient free space when recording new data on the recording medium, the decompression means is at least one of the data recorded on the recording medium. Stretching the step;
Compressing the decompressed data with a compression method having a higher compression ratio;
It has further.
この方法により、新たに記録すべきデータに対する記録媒体の空き領域を生成することができるので、限られた記録容量を最大限有効活用することが可能となる。 By this method, it is possible to generate a free area of the recording medium for data to be newly recorded, and thus it is possible to make the most effective use of the limited recording capacity.
また、前記圧縮方式を選択するステップは、前記記録媒体に記録されているデータのうち、前記圧縮率の低い圧縮方式で記録されたデータを伸長するステップと、前記空き容量として、前記選択されたデータを伸長前の圧縮方式より圧縮率の高い圧縮方式を行った場合の空き容量を算出するステップと、その空き容量に基づいて前記記録すべきデータの圧縮方式を選択するステップと、を有する。 The step of selecting the compression method includes the step of decompressing the data recorded by the compression method with the low compression rate among the data recorded on the recording medium, and the selected as the free capacity A step of calculating a free space when a compression method having a higher compression rate than that of the compression method before decompression is performed, and a step of selecting a compression method of the data to be recorded based on the free space.
この方法により、空き領域の生成と、その記録データの選択を行うことができるので、限られた記録容量を有効活用することが可能となる。 By this method, it is possible to generate a free area and select the recording data, so that a limited recording capacity can be used effectively.
また、本発明は、コンピュータに、上記いずれかのデータ記録方法の各ステップを実行させるためのデータ記録プログラムを提供する。 The present invention also provides a data recording program for causing a computer to execute each step of any of the above data recording methods.
本発明によれば、限られた記録容量を有効活用可能なデータ記録装置及びデータ記録方法を提供することができる。 According to the present invention, it is possible to provide a data recording apparatus and a data recording method capable of effectively utilizing a limited recording capacity.
以下本発明の実施の形態について、図1から図8を用いて説明する。なお、本発明の実施形態では、データ記録装置の一例としてオーディオデータを圧縮して記録するオーディオデータ記録装置を一例にとって説明するが、オーディオデータ記録装置に限られるものではない。 Hereinafter, embodiments of the present invention will be described with reference to FIGS. In the embodiment of the present invention, an audio data recording apparatus that compresses and records audio data as an example of the data recording apparatus will be described as an example. However, the present invention is not limited to the audio data recording apparatus.
(第1の実施形態)
図1は本発明の第1の実施形態におけるオーディオデータ記録装置の基本的構成を示す図である。図1に示すように、第1の実施形態のオーディオデータ記録装置100はデッキ部101と、それぞれ圧縮率の異なる圧縮方式105、圧縮方式106、圧縮方式107、圧縮方式108で圧縮可能であり、どの圧縮方式でデータを圧縮して出力するかを選択可能なスイッチ104及びスイッチ109を有する圧縮部103と、圧縮されたオーディオデータを記録する記録媒体111を有する記録部110と、記録媒体111の空き容量を管理するCPU112と、を備える。なお、圧縮部103は圧縮手段の機能を、記録部110は記録手段の機能を、CPU112は圧縮方式選択手段及び記録媒体管理手段の機能を、それぞれ有する。
(First embodiment)
FIG. 1 is a diagram showing a basic configuration of an audio data recording apparatus according to the first embodiment of the present invention. As shown in FIG. 1, the audio
デッキ部101は外部から挿入されるメディア102からディジタル化したPCM(Pulse Code Modulation)等のオーディオデータを読み出し圧縮部103に出力する。またメディア102内に記録されているオーディオデータのブロック単位(例えばトラック)のデータ量を計算しCPU112に出力する。
The
圧縮部103はデッキ部101が出力するPCMのオーディオデータをCPU112が行うスイッチ104及びスイッチ109の切替え制御に従い選択された圧縮方式で圧縮し、圧縮されたオーディオデータを記録部110へ出力する。記録部110は圧縮部103が出力する圧縮されたオーディオデータを記録媒体111に記録し記録媒体111の空き容量(管理情報)をCPU112へ出力する。
The
CPU112は、オーディオデータ記録装置100全体の動作を制御するもので、所定のプログラムによって動作するプロセッサを主体に構成される。そして、記録部110が出力する記録媒体111の空き容量と、デッキ部101が出力するPCMのオーディオデータのデータ量とに基づいて圧縮方式を決定し、圧縮部103のスイッチ104及びスイッチ109の切替え制御を行う。このようにして、選択された圧縮方式での圧縮が可能となる。
The
図2は、複数の圧縮方式と圧縮率との対応関係の例を示す説明図である。図2に示すように、圧縮部103において、圧縮方式105、圧縮方式106、圧縮方式107、圧縮方式108は、デッキ部101が出力するPCMのオーディオデータを、それぞれ1/2、1/5、1/10、1/20に圧縮可能な圧縮方式である。
FIG. 2 is an explanatory diagram illustrating an example of a correspondence relationship between a plurality of compression methods and compression rates. As shown in FIG. 2, in the
上記のように構成されたオーディオデータ記録装置100のオーディオデータの記録動作を説明する。図3は、第1の実施形態のデータ記録方法を示すフローチャートである。
An audio data recording operation of the audio
まず、記録部110の記録媒体111に圧縮されたオーディオデータが何も記録されていない状態(例えば記録媒体の全容量が740メガバイトであり、管理情報から空き容量が740メガバイト)においては、CPU112は通常圧縮方式として、圧縮方式105(圧縮率1/2)を選択するように圧縮部103のスイッチ104及びスイッチ109の切替え制御を行っている。
First, in a state where no compressed audio data is recorded on the
オーディオデータ記録装置100を使用するユーザがデッキ部101にメディア102を挿入してトラック1のオーディオデータを圧縮し記録する場合、デッキ部101はトラック1のPCMのオーディオデータ量を算出し、CPU112へ出力する(ステップS301)。このPCMのオーディオデータ量を、例えば50メガバイトとする。
When the user who uses the audio
CPU112はステップS301で取得したPCMのオーディオデータ(50メガバイト)を通常圧縮方式である圧縮方式105(圧縮率1/2)で圧縮後の圧縮されたオーディオデータ量(25メガバイト)を計算する(ステップS302)。その後、記録部110の出力する記録媒体111の空き容量(740メガバイト)と、算出して得られた圧縮データ量とを比較する(ステップS303)。
The
記録媒体111の空き容量(740メガバイト)が圧縮されたオーディオデータ量(25メガバイト)以上である場合(ステップS304のYES)、記録可能と判断し、圧縮方式105(圧縮率1/2)を選択するように圧縮部103のスイッチ104及びスイッチ109の切替え制御を行う(ステップS305)。なお、この場合、元々圧縮方式105が選択されているためスイッチ104及びスイッチ109の切替えは発生しない。
When the free capacity (740 megabytes) of the
デッキ部101はトラック1のPCMのオーディオデータ(50メガバイト)を圧縮部103に出力する。圧縮部103はCPU112によって圧縮方式105が選択されているため、デッキ部101が出力するPCMのオーディオデータ(50メガバイト)を圧縮率1/2で圧縮し、圧縮されたオーディオデータ(25メガバイト)を記録部110に出力する。記録部110は圧縮部103が出力する圧縮されたオーディオデータ(25メガバイト)を記録媒体111に記録し、記録後の空き容量(715メガバイト)をCPU112に出力する。CPU112は記録後の空き容量(715メガバイト)を管理情報として記録する。
The
以上の動作を記録する必要がある都度行うことで圧縮率1/2で圧縮されたオーディオデータが記録媒体111に次々と記録され、記録媒体111の空き容量が少なくなる。
By performing the above operation whenever it is necessary to record, audio data compressed at a compression ratio of 1/2 is recorded on the
ここで、例えば記録媒体111の空き容量が5メガバイト、PCMのオーディオデータ量が50メガバイトの場合について説明する。CPU112は、通常圧縮方式である圧縮方式105(圧縮率1/2)を選択した際の圧縮されたオーディオデータ量を、25メガバイトと算出する。そして、CPU112は、記録媒体111の空き容量(5メガバイト)と、圧縮方式105(圧縮率1/2)を選択した際の圧縮されたオーディオデータ量(25メガバイト)とを比較する(ステップS303)。その結果、空き容量は5メガバイト<圧縮データ量25メガバイトであるため、圧縮データ量は空き容量未満となり(ステップS304のNO)、記録不可能と判断される。
Here, for example, a case where the free space of the
次に、CPU112は、圧縮方式105より圧縮率の高い圧縮方式106(圧縮率1/5)を選択した際の圧縮されたオーディオデータ量を再度計算し(ステップS306)、算出されたオーディオデータ量と空き容量とを比較する(ステップS303)。比較された結果、記録媒体111の空き容量は圧縮方式106(圧縮率1/5)を選択した際の圧縮されたオーディオデータ量未満(5メガバイト<10メガバイト)となり(ステップS304のNO)、記録不可能と判断される。
Next, the
次に、CPU112は、圧縮方式106より圧縮率の高い圧縮方式107(圧縮率1/10)を選択した際の圧縮されたオーディオデータ量を再度計算し(ステップS306)、同様に空き容量と比較される(ステップS303)。比較された結果、記録媒体111の空き容量は圧縮方式107(圧縮率1/10)を選択した際の圧縮されたオーディオデータ量以上(5メガバイト=5メガバイト)となり(ステップS304のYES)、記録可能と判断される。
Next, the
そして、圧縮方式107(圧縮率1/10)を選択するように圧縮部103のスイッチ104及びスイッチ109の切替え制御が行われ、圧縮方式107(圧縮率1/10)で圧縮されたオーディオデータが記録媒体111に記録される。このように、圧縮率の低い圧縮方式から順にデータ量の算出・空き容量との比較を行うので、より低い圧縮率の圧縮方式が選択可能となり、データの劣化を最小限にすることができる
Then, switching control of the
ここで、圧縮方式107(圧縮率1/10)を選択しても空き容量が圧縮されたオーディオデータ量未満であった場合には、圧縮方式108(圧縮率1/20)で比較される。また、その比較結果として、空き容量が圧縮されたオーディオデータ量未満であった場合には、それ以上圧縮率の高い圧縮方式がないので、ユーザに記録可能な空き容量がないため、そのデータを記録するためには記録済みデータのいずれかを削除する必要がある旨を通知する。 Here, even if the compression method 107 (compression rate 1/10) is selected, if the free space is less than the amount of compressed audio data, the compression method 108 (compression rate 1/20) is compared. As a result of comparison, if the free space is less than the amount of compressed audio data, there is no compression method with a higher compression rate, so there is no free space that can be recorded by the user. It notifies that it is necessary to delete any recorded data in order to record.
図4は、第1の実施形態における記録媒体の記録内容及び管理情報の一例を示す説明図である。以上のように通常の圧縮方式105のみで記録を行った場合、5メガバイトの空き容量は使用不可能である。しかしながら、複数の圧縮方式を備え、CPU112は記録媒体111の空き容量を管理し、記録媒体111の空き容量によって圧縮方式を選択して記録することで、空き容量に最大限記録が可能となり、使用できない容量を減らすことが可能になる。(上記実施形態では使用できない容量は0バイト)
FIG. 4 is an explanatory diagram illustrating an example of recorded contents and management information of the recording medium according to the first embodiment. As described above, when recording is performed only with the normal compression method 105, a free space of 5 megabytes cannot be used. However, with a plurality of compression methods, the
このような第1の実施形態によれば、オーディオデータを圧縮、記録するオーディオデータ記録装置において、圧縮率の異なる複数の圧縮方式を持つ圧縮部を備え、記録媒体の空き容量を管理し、記録媒体の空き容量によって圧縮方式を選択し記録することで既に記録されているデータを削除することなく限られた記録容量を最大限有効活用するオーディオデータ記録装置を提供することができる。 According to the first embodiment, the audio data recording apparatus that compresses and records audio data includes the compression unit having a plurality of compression methods with different compression rates, manages the free space of the recording medium, and records the data. By selecting and recording a compression method according to the free space of the medium, it is possible to provide an audio data recording apparatus that can make maximum use of the limited recording capacity without deleting already recorded data.
なお、本実施形態においての圧縮方式の数(4方式)、また圧縮率(1/2、1/5、1/10、1/20)は本実施形態に限るものではなく、圧縮率の異なる複数の圧縮方式を持つ圧縮部を備え、記録媒体の空き容量を管理し、記録媒体の空き容量によって圧縮方式を選択し記録するものであれば同様の効果が得られる。 Note that the number of compression methods (four methods) and the compression rates (1/2, 1/5, 1/10, 1/20) in this embodiment are not limited to those in this embodiment, and the compression rates differ. The same effect can be obtained if a compression unit having a plurality of compression methods is provided, the free space of the recording medium is managed, and the compression method is selected and recorded according to the free space of the recording medium.
また、本実施形態においての通常圧縮率(1/2)は本実施形態に限るものではなく、複数の圧縮方式の中で最も圧縮率の高い圧縮方式でないものであれば同様の効果が得られる。 In addition, the normal compression rate (1/2) in the present embodiment is not limited to this embodiment, and the same effect can be obtained as long as the compression method is not the compression method with the highest compression rate among a plurality of compression methods. .
(第2の実施形態)
図5は本発明の第2の実施形態におけるオーディオデータ記録装置の基本的構成を示す図である。同図において、第1の実施形態で説明した図1と重複する部分には同一の符号を付す。
(Second Embodiment)
FIG. 5 is a diagram showing a basic configuration of an audio data recording apparatus according to the second embodiment of the present invention. In the figure, the same reference numerals are given to the portions overlapping those in FIG. 1 described in the first embodiment.
本実施形態のオーディオデータ記録装置200は、圧縮部103でそれぞれの圧縮方式で圧縮されたオーディオデータを伸張可能な伸張方式215、伸張方式216、伸張方式217、伸張方式218と、どれを選択して伸張し出力するかを選択可能なスイッチ214及びスイッチ219とを有する構成される伸張部213を備える。本実施形態のオーディオデータ記録装置は、D/A変換、増幅器、スピーカを更に備え、この伸長部213によって伸長されたオーディオデータを再生する、オーディオデータ記録再生装置の機能を備えてもよい。なお、伸長部213は、伸長手段の機能を有する。
The audio
CPU212は記録部110の記録媒体111が記録している圧縮されたオーディオデータの圧縮方式を管理しており、その管理情報から伸張部213のスイッチ214及びスイッチ219の切替え制御を行い、選択された伸張を可能とする構成となっている。また、伸張部213は伸張したPCMのオーディオデータを圧縮部103に出力可能な構成を有し、伸張したPCMのオーディオデータを再度、圧縮部103のいずれかの圧縮方式で圧縮可能となっている。この際、デッキ部101から出力されるPCMのオーディオデータと、伸張部213から出力される伸張したPCMのオーディオデータの入力切替え制御はCPU212がスイッチ104を切り替えて行う。
The
図6は、複数の圧縮方式、圧縮率、及び伸長方式の対応関係の例を示す説明図である。 図6に示すように、圧縮部103において、圧縮方式105、圧縮方式106、圧縮方式107、圧縮方式108は、デッキ部101が出力するPCMのオーディオデータを、それぞれ1/2、1/5、1/10、1/20に圧縮可能な圧縮方式である。そして、伸張部213において、伸張方式215、伸長方式216、伸長方式217、伸長方式218は、それぞれ、記録媒体111が出力する圧縮方式105、圧縮方式106、圧縮方式107、圧縮方式108で圧縮されたオーディオデータをPCMのオーディオデータに伸張可能な伸長方式である。
FIG. 6 is an explanatory diagram illustrating an example of a correspondence relationship among a plurality of compression methods, compression rates, and decompression methods. As shown in FIG. 6, in the
上記のように構成されたオーディオデータ記録装置100のオーディオデータの記録動作を説明する。図7は、第2の実施形態のデータ記録方法を示すフローチャートである。
An audio data recording operation of the audio
図7のステップS701〜S705は、第1の実施形態で説明した図3におけるステップS301〜S305と同様のステップである。すなわち、オーディオデータのデータ量を取得すると、通常圧縮方式で圧縮した場合のデータ量を算出し、そのデータ量と空き容量とを比較し、圧縮データ量が空き容量以下であれば、スイッチ104及び109の切替え制御を行って、オーディオデータの圧縮及び記録を行う。なお、CPU212は、記録後の空き容量と、圧縮して記録されたオーディオデータの圧縮方式と、記録媒体111の記録された記録領域とを管理情報として記録する。
Steps S701 to S705 in FIG. 7 are the same steps as steps S301 to S305 in FIG. 3 described in the first embodiment. That is, when the data amount of the audio data is acquired, the data amount when compressed by the normal compression method is calculated, the data amount is compared with the free space, and if the compressed data amount is less than the free space, the
ステップS704において、圧縮データ量が空き容量以下であると判断された場合(ステップS704のNO)、圧縮データ量の算出の基となる圧縮方式が最も圧縮率の高い圧縮方法か否かが判断される(ステップS706)。そして、その圧縮方式より圧縮率の高い圧縮方法がある場合には(ステップS706のNO)、第1の実施形態におけるステップS306と同様に、より圧縮率の高い圧縮方式で圧縮した場合のデータ量を算出する(ステップS707)。その後、ステップS703に戻り、圧縮データ量と空き容量とを比較する。 If it is determined in step S704 that the compressed data amount is equal to or less than the free capacity (NO in step S704), it is determined whether the compression method that is the basis for calculating the compressed data amount is the compression method with the highest compression rate. (Step S706). If there is a compression method with a higher compression rate than the compression method (NO in step S706), the amount of data when compressed with a compression method with a higher compression rate, as in step S306 in the first embodiment. Is calculated (step S707). Thereafter, the process returns to step S703, and the compressed data amount is compared with the free capacity.
また、ステップS706において、圧縮データ量の算出の基となる圧縮方式が最も圧縮率の高い圧縮方法である場合、記録媒体111に記録されている、最も圧縮率の高くない圧縮方式で記録されたデータを検出する(ステップS708)。そして、検出したデータを伸長して、より高い圧縮率で圧縮した場合のデータ量及びそのときの空き容量を算出する(ステップS709)。そして、ステップS702に戻り、オーディオデータを通常圧縮方式で圧縮した場合のデータ量を算出する。
In step S706, if the compression method that is the basis for calculating the compressed data amount is the compression method with the highest compression rate, the compression method recorded on the
上述のデータ記録方法を、具体的な例を用いて説明する。図8は、第2の実施形態おける記録媒体の記録内容及び管理情報の一例示す説明図である。図8に示すように、記録媒体111には、既に空き容量が0バイトまでデータが記録されているものとする。
The above-described data recording method will be described using a specific example. FIG. 8 is an explanatory diagram illustrating an example of recorded contents and management information of the recording medium according to the second embodiment. As shown in FIG. 8, it is assumed that data has already been recorded in the
この状態で、ユーザが、更にデッキ部101にメディア102を挿入し、記録媒体111にオーディオデータを圧縮し記録する場合(デッキ部101が出力するPCMのオーディオデータが、例えば50メガバイト)、CPU112は管理情報の空き容量(0バイト)と圧縮方式105から順に圧縮率の高い圧縮方式を選択した際の圧縮されたオーディオデータ量を比較する。
In this state, when the user further inserts the medium 102 into the
ここで、空き容量が0バイトであるので、最も圧縮率の高い圧縮方法108で圧縮した場合のデータ量も空き容量以下にはならず(S704のNO)、そして、その圧縮方法108が最も圧縮率の高い圧縮方法である(ステップS706のYES)。すなわち、全ての圧縮方式で記録不可能となる。 Here, since the free space is 0 bytes, the data amount when compressed by the compression method 108 having the highest compression rate does not become less than the free space (NO in S704), and the compression method 108 is the most compressed. This is a compression method with a high rate (YES in step S706). That is, recording is impossible with all compression methods.
CPU212は記録媒体111に既に記録されている圧縮されたオーディオデータの管理情報から圧縮方式105(圧縮率1/2)で圧縮されているオーディオデータの検索を行い、圧縮方式105で圧縮されているオーディオデータが検出される(図8における0〜25メガバイトの領域が検出される)。このデータの検索は、圧縮率の低いオーディオデータから検索してもよいし、データ量の多いオーディオデータから検索してもよい。また、この両方を用いて検索してもよい。
The
CPU212は、検出された領域の圧縮方式105に対応した伸張を行い、再度圧縮方式105よりも圧縮率の高い圧縮方式106を選択した場合の圧縮されたデータ量とその際の記録媒体111の空き容量を算出する(ステップS709)。この例では、25メガバイトの圧縮されたオーディオデータを伸張して50メガバイト(2倍)のPCMのオーディオデータとなり、圧縮方式106の圧縮率1/5で再圧縮し10メガバイトの圧縮されたオーディオデータとなるため、25−10=15メガバイトの空き容量が発生する。
The
その後、算出した空き容量の15メガバイトと新たに記録するPCMのオーディオデータ(50メガバイト)を圧縮方式205から順に圧縮率の高い圧縮方式を選択した際の圧縮されたデータ量を比較すると(ステップS703)、空き容量15メガバイトに対して圧縮されたオーディオデータは10メガバイトであるので(ステップS704のYES)、圧縮方式206で記録可能と判断する。 After that, when the calculated free space of 15 megabytes and the newly recorded PCM audio data (50 megabytes) are compared in order from the compression scheme 205, the compressed data amount when the compression scheme with the higher compression rate is selected is compared (step S703). ) Since the audio data compressed with respect to the free space of 15 megabytes is 10 megabytes (YES in step S704), it is determined that recording is possible with the compression method 206.
CPU212は以上の計算を行い、記録媒体211から0〜25メガバイトの領域を伸張部213の伸張215で伸張するようにスイッチ214及びスイッチ219の切替え制御を行う。伸張されたPCMのオーディオデータは圧縮部103に出力され、CPU212が圧縮部103のスイッチ104及びスイッチ109の切替え制御を行い圧縮方式106が選択され再圧縮される。
The
圧縮部103により再圧縮されたオーディオデータは再度記録部110の記録媒体111に記録され、15メガバイトの空き容量が発生し、新たに管理情報として記録される。この15メガバイトの領域にこれまで示した同様の手順で記録を行うことが可能となり、新たに記録するPCMのオーディオデータ(50メガバイト)は圧縮部103の圧縮方式106で圧縮され記録媒体111に記録される(ステップ705)。
The audio data recompressed by the
このような第2の実施形態によれば、オーディオデータを圧縮、記録しするオーディオデータ記録装置において、圧縮率の異なる複数の圧縮方式を持つ圧縮部、圧縮率の異なる複数の圧縮方式から選択された圧縮方式で圧縮されたオーディオデータを伸張する伸張部を備え、記録媒体の空き容量と既に記録されている圧縮されたオーディオデータの圧縮方式を管理し記録媒体の空き容量によって既に記録されているオーディオデータを伸張しつつオーディオデータを再度圧縮率の高い圧縮方式で記録媒体に記録することで既に記録されているデータを削除することなく限られた記録容量を最大限有効活用するオーディオデータ記録再生装置を提供することができる。 According to the second embodiment, the audio data recording apparatus that compresses and records audio data is selected from a compression unit having a plurality of compression methods with different compression rates and a plurality of compression methods with different compression rates. A decompression unit that decompresses audio data compressed by the compression method, manages the free space of the recording medium and the compression method of the compressed audio data that has already been recorded, and has already been recorded by the free space of the recording medium Audio data recording and playback that maximizes the limited recording capacity without erasing the already recorded data by recording the audio data on the recording medium again with a high compression method while expanding the audio data An apparatus can be provided.
なお、本実施形態においての圧縮方式の数(4方式)、また圧縮率(1/2、1/5、1/10、1/20)は本実施形態に限るものではなく、圧縮率の異なる複数の圧縮方式を持つ圧縮手段を備え、記録媒体の空き容量を管理し、記録媒体の空き容量によって圧縮方式を選択し記録するものであれば同様の効果が得られる。 Note that the number of compression methods (four methods) and the compression rates (1/2, 1/5, 1/10, 1/20) in this embodiment are not limited to those in this embodiment, and the compression rates differ. The same effect can be obtained if a compression unit having a plurality of compression methods is provided, the free space of the recording medium is managed, and the compression method is selected and recorded according to the free space of the recording medium.
また、本実施形態においての通常圧縮率(1/2)は本実施形態に限るものではなく、複数の圧縮方式の中で最も圧縮率の高い圧縮方式でないものであれば同様の効果が得られる。 In addition, the normal compression rate (1/2) in the present embodiment is not limited to this embodiment, and the same effect can be obtained as long as the compression method is not the compression method with the highest compression rate among a plurality of compression methods. .
更に、本実施形態においての再圧縮を行う手順は本実施形態に限るものではなく、既に記録されているオーディオデータを伸張し、より高い圧縮率で圧縮し、記録することで空き容量が発生し、同様の効果が得られる。 Furthermore, the procedure for performing recompression in this embodiment is not limited to this embodiment, and free space is generated by decompressing audio data that has already been recorded, compressing it at a higher compression rate, and recording it. A similar effect can be obtained.
以上のように、本発明にかかるデータ記録装置及びデータ記録方法は、限られた記録容量を有効活用可能であるという効果を有し、オーディオデータ記録装置及びオーディオデータ記録方法等として有用である。 As described above, the data recording apparatus and the data recording method according to the present invention have an effect that a limited recording capacity can be effectively used, and are useful as an audio data recording apparatus and an audio data recording method.
100、200 オーディオデータ記録装置
101 デッキ部
102 メディア
103 圧縮部
104、109、214、219 スイッチ
105〜108 圧縮方式
110 記録部
111 記録媒体
112、212 CPU
213 伸長部
215〜218 伸長方式
100, 200 Audio
213 Extension part 215-218 Extension method
Claims (11)
データを記録する記録媒体の空き容量を管理する記録媒体管理手段と、
前記空き容量に応じて前記圧縮手段の圧縮方式を選択する制御を行う圧縮方式選択手段と、
前記選択された圧縮方式で圧縮されたデータを前記記録媒体に記録する記録手段と、
を備えるデータ記録装置。 Compression means having a plurality of compression methods with different compression rates;
Recording medium management means for managing the free space of the recording medium for recording data;
Compression method selection means for performing control to select a compression method of the compression means according to the free space;
Recording means for recording data compressed by the selected compression method on the recording medium;
A data recording device comprising:
前記圧縮方式選択手段は、前記複数の圧縮方式のうち、少なくとも一つで圧縮した場合の前記データのデータ量を算出し、前記算出したデータ量と前記空き容量とを比較して、前記算出したデータ量が前記空き容量以下となる圧縮方式を選択するデータ記録装置。 The data recording device according to claim 1, wherein
The compression method selection means calculates a data amount of the data when compressed with at least one of the plurality of compression methods, compares the calculated data amount with the free capacity, and calculates the data amount. A data recording apparatus for selecting a compression method in which a data amount is equal to or less than the free capacity.
前記圧縮方式選択手段は、前記データ量の算出及び前記空き容量との比較を、圧縮率の低い圧縮方式から順に行うデータ記録装置。 The data recording device according to claim 1 or 2,
The data recording apparatus, wherein the compression method selection means performs the calculation of the data amount and the comparison with the free capacity in order from a compression method with a low compression rate.
前記複数の圧縮方法で圧縮されたデータを伸長する伸長手段を更に備え、
前記記録媒体管理手段は、前記記録媒体に記録されているデータと、その圧縮方式を対応付けて管理し、
前記伸長手段は、前記記録媒体に新たなデータを記録する際に前記記録媒体の空き容量が不足していると判断された場合に、前記記録媒体に記録されているデータのうち少なくとも一つを伸長し、
前記圧縮手段は、前記管理されている伸長されたデータに対応した圧縮方式に基づいて、伸長前の圧縮方式より圧縮率の高い圧縮方式で前記伸長されたデータを圧縮するデータ記録装置。 A data recording device according to any one of claims 1 to 3,
Further comprising decompression means for decompressing the data compressed by the plurality of compression methods;
The recording medium management means manages the data recorded on the recording medium in association with the compression method,
The decompression means may store at least one of the data recorded on the recording medium when it is determined that the recording medium has insufficient free space when recording new data on the recording medium. Elongate,
The data recording apparatus that compresses the decompressed data by a compression method having a higher compression rate than the compression method before decompression based on the compression method corresponding to the managed decompressed data.
前記圧縮方式選択手段は、前記記録媒体に記録されているデータのうち、前記圧縮率の低い圧縮方式で記録されたデータを前記伸長するデータとして選択し、前記空き容量として前記選択されたデータを伸長前の圧縮方式より圧縮率の高い圧縮方式を行った場合の空き容量を算出して、その空き容量に基づいて前記記録すべきデータの圧縮方式を選択するデータ記録装置。 The data recording device according to claim 4, wherein
The compression method selection means selects, as data to be decompressed, data recorded by the compression method having a low compression rate among data recorded on the recording medium, and selects the selected data as the free capacity. A data recording apparatus that calculates a free space when a compression method having a higher compression rate than a compression method before decompression is performed, and selects a compression method of the data to be recorded based on the free space.
前記空き容量に応じて、前記データの圧縮方式として、複数の圧縮方式のうちの一つ選択する制御を行うステップと、
前記選択された圧縮方式で圧縮されたデータを前記記録媒体に記録するステップと、
を有するデータ記録方法。 Obtaining a free capacity of a recording medium for recording data and a data amount of data to be recorded;
Performing a control to select one of a plurality of compression methods as the data compression method in accordance with the free space;
Recording the data compressed by the selected compression method on the recording medium;
A data recording method comprising:
前記圧縮方式を選択するステップは、
前記複数の圧縮方式のうち、少なくとも一つで圧縮した場合の前記データのデータ量を算出するステップと、
前記算出したデータ量と前記空き容量とを比較するステップと、
前記算出したデータ量が前記空き容量以下となる圧縮方式を選択するステップとを有するデータ記録方法。 A data recording method according to claim 6, wherein
The step of selecting the compression method includes:
Calculating a data amount of the data when compressed by at least one of the plurality of compression methods;
Comparing the calculated amount of data with the free space;
Selecting a compression method in which the calculated data amount is equal to or less than the free capacity.
前記データ量の算出及び前記空き容量との比較は、圧縮率の低い圧縮方式から順に行われるデータ記録方法。 The data recording method according to claim 6 or 7,
In the data recording method, the calculation of the data amount and the comparison with the free space are performed in order from a compression method with a low compression rate.
前記記録媒体に新たなデータを記録する際に前記記録媒体の空き容量が不足していると判断された場合に、前記伸長手段は前記記録媒体に記録されているデータのうち少なくとも一つを伸長するステップと、
伸長されたデータを、更に圧縮率の高い圧縮方式で圧縮するステップと、
を更に有するデータ記録方法。 The data recording method according to claim 6, wherein:
When it is determined that there is not enough free space on the recording medium when recording new data on the recording medium, the decompression means decompresses at least one of the data recorded on the recording medium. And steps to
Compressing the decompressed data with a compression method having a higher compression ratio;
A data recording method further comprising:
前記圧縮方式を選択するステップは、前記記録媒体に記録されているデータのうち、前記圧縮率の低い圧縮方式で記録されたデータを伸長するステップと、前記空き容量として、前記選択されたデータを伸長前の圧縮方式より圧縮率の高い圧縮方式を行った場合の空き容量を算出するステップと、その空き容量に基づいて前記記録すべきデータの圧縮方式を選択するステップと、を有するデータ記録方法。 The data recording method according to claim 9, wherein
The step of selecting the compression method includes the step of decompressing the data recorded by the compression method with the low compression rate among the data recorded on the recording medium, and the selected data as the free capacity. A data recording method comprising: calculating a free space when a compression method having a higher compression rate than a compression method before decompression is performed; and selecting a compression method for the data to be recorded based on the free space .
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2004169515A JP2005353108A (en) | 2004-06-08 | 2004-06-08 | Data recorder and data recording method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2004169515A JP2005353108A (en) | 2004-06-08 | 2004-06-08 | Data recorder and data recording method |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2005353108A true JP2005353108A (en) | 2005-12-22 |
Family
ID=35587476
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2004169515A Pending JP2005353108A (en) | 2004-06-08 | 2004-06-08 | Data recorder and data recording method |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2005353108A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2008041144A (en) * | 2006-08-03 | 2008-02-21 | Sharp Corp | Content recording device and content recording method |
JP2008065867A (en) * | 2006-09-05 | 2008-03-21 | Hitachi Ltd | Video recording device |
-
2004
- 2004-06-08 JP JP2004169515A patent/JP2005353108A/en active Pending
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2008041144A (en) * | 2006-08-03 | 2008-02-21 | Sharp Corp | Content recording device and content recording method |
JP4551372B2 (en) * | 2006-08-03 | 2010-09-29 | シャープ株式会社 | Content recording apparatus and content recording method |
JP2008065867A (en) * | 2006-09-05 | 2008-03-21 | Hitachi Ltd | Video recording device |
JP4600368B2 (en) * | 2006-09-05 | 2010-12-15 | 株式会社日立製作所 | Video recording device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP4611420B2 (en) | COMPRESSED ENCODED DATA REPRODUCING DEVICE, AND METHOD FOR DECODING / REPRODUCING COMPRESSED ENCODED DATA IN THE DEVICE | |
JP3511721B2 (en) | Information processing method and apparatus | |
JP4496049B2 (en) | Image processing apparatus, image data management method, image data management program, and information recording medium | |
JP2003150428A (en) | File system capable of restoring defective file | |
JP2002343064A (en) | Recording and reproducing device and method | |
JP3236152B2 (en) | File compression processor | |
JPH04359315A (en) | Data compression controller and data restoration controller | |
JP2005353108A (en) | Data recorder and data recording method | |
JP3704483B2 (en) | File compression processing device | |
JP2010079535A (en) | Data access device | |
JP2927237B2 (en) | Data recording / reproducing device | |
JP2006065424A (en) | Data storage system, data storage device, similar file recording method to be used for the same and program therefor | |
JP2010262703A (en) | Data discriminating device of linear pcm audio data and compressed encoded data | |
JP2009086239A (en) | Signal recording and reproducing apparatus and method | |
JP2004335013A (en) | Data storage device and data storage method | |
US20030204535A1 (en) | File management device | |
KR100532842B1 (en) | Image recording/reproducing apparatus capable of reducing waste of hard disk drive space | |
JP3666043B2 (en) | Recording / reproducing method and apparatus, and editing method and apparatus | |
JP2001008165A (en) | Image recorder and computer readable storage medium | |
KR100508310B1 (en) | Apparatus for recording and regenerating digital video therefor | |
JP4179021B2 (en) | Encoding device and encoding method | |
US8290337B2 (en) | Reproduction apparatus, reproduction processing circuit, reproduction method, reproduction program, and computer-readable record medium with reproduction program | |
JP2001357612A (en) | Recording and reproducing device | |
JPH1069409A (en) | Commutative storage medium, control method and computer system | |
JP2005242126A (en) | Reproducing device for sound signal |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
RD04 | Notification of resignation of power of attorney |
Free format text: JAPANESE INTERMEDIATE CODE: A7424 Effective date: 20060327 |