JP2014175954A - Data recording device, control method thereof, and computer program - Google Patents

Data recording device, control method thereof, and computer program Download PDF

Info

Publication number
JP2014175954A
JP2014175954A JP2013048488A JP2013048488A JP2014175954A JP 2014175954 A JP2014175954 A JP 2014175954A JP 2013048488 A JP2013048488 A JP 2013048488A JP 2013048488 A JP2013048488 A JP 2013048488A JP 2014175954 A JP2014175954 A JP 2014175954A
Authority
JP
Japan
Prior art keywords
recording
speed
recording medium
data
unit
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
Application number
JP2013048488A
Other languages
Japanese (ja)
Inventor
Ryuichi Ishiguri
隆一 石栗
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Canon Inc
Original Assignee
Canon Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Canon Inc filed Critical Canon Inc
Priority to JP2013048488A priority Critical patent/JP2014175954A/en
Publication of JP2014175954A publication Critical patent/JP2014175954A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Signal Processing For Digital Recording And Reproducing (AREA)
  • Television Signal Processing For Recording (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide a technique of selecting a data recording speed mode corresponding to a required data recording speed.SOLUTION: A data recording device, which records image data on a recording medium having a plurality of speed modes whose recording speeds are different from each other, includes: determination means for determining, on the basis of a kind of image data to be recorded on the recording medium, a recording speed for the recording of the image data on the recording medium; selection means for selecting one, out of the plurality of speed modes of the recording medium, whose recording unit is the smallest among each speed mode whose recording speed is higher than the determined recording speed; and recording means for recording the image data on the recording medium in accordance with the selected speed mode.

Description

本発明は、データ記録装置、その制御方法及びコンピュータプログラムに関する。   The present invention relates to a data recording apparatus, a control method therefor, and a computer program.

音楽コンテンツ、動画コンテンツ、静止画コンテンツなどのデジタルデータを記録する記録媒体には、半導体記録媒体、磁気ディスク、光ディスク、光磁気ディスクなど、様々な種類が存在する。特に、半導体記録媒体は小型化・軽量化が図れるという特徴があるために、デジタルスチルカメラや携帯電話端末などの携帯機器を中心に急速に普及している。代表的な半導体記録媒体としては、SDカード(登録商標)などがある。   There are various types of recording media for recording digital data such as music content, moving image content, and still image content, such as semiconductor recording media, magnetic disks, optical disks, and magneto-optical disks. In particular, since semiconductor recording media are characterized by being able to be reduced in size and weight, they are rapidly spreading mainly in portable devices such as digital still cameras and mobile phone terminals. A typical semiconductor recording medium includes an SD card (registered trademark).

SDカードは、年々大容量化が進んでおり、大容量のメリットを生かした応用分野として、特に動画記録用途への応用が期待されている。デジタルビデオカメラ等で動画データをリアルタイム録画する場合、記録媒体への記録速度不足による録画停止を防止するため、記録処理の最低速度を保証することが重要となる。   The capacity of SD cards has been increasing year by year, and application to moving picture recording applications is particularly expected as an application field that takes advantage of the large capacity. When moving image data is recorded in real time with a digital video camera or the like, it is important to guarantee a minimum recording processing speed in order to prevent recording stoppage due to insufficient recording speed on the recording medium.

これらのSDカードに記録されるデータは、ファイルシステムにより管理されている。一般に、ファイルシステムでは、媒体の記録領域を最小アクセス単位であるセクタ、及びセクタの集合であるクラスタに分割して管理する。PC(パーソナルコンピュータ)などの情報機器で一般に用いられているファイルシステムとして、FAT(ファイル・アロケーション・テーブル)ファイルシステムが一例に挙げられる。FATにおいてはクラスタがデータの最小書き込み単位となる。   Data recorded on these SD cards is managed by a file system. In general, in a file system, a recording area of a medium is managed by being divided into sectors as minimum access units and clusters as a set of sectors. As a file system generally used in information equipment such as a PC (personal computer), a FAT (file allocation table) file system is an example. In FAT, a cluster is a minimum data writing unit.

これに対しSDカードでは、消去ブロックという単位毎に、データの記録・削除を行っている。この消去ブロックは、一般には複数のクラスタで構成される。従って、消去ブロック内の一つのクラスタデータを書き換えようとした場合、SDカード内部では消去ブロック全体のデータを一旦RAMに読み込み、RAM上で必要なデータを書き換えた後、再び消去ブロック全体に書き戻す動作が行われる。この一連の動作は、リードモディファイライトと呼ばれる。リードモディファイライトは書き込みに時間を要するため、ビデオカメラのような、ある程度高速な記録が要求される製品では問題になる。   On the other hand, in the SD card, data is recorded / deleted for each unit of erase block. This erase block is generally composed of a plurality of clusters. Therefore, when one cluster data in the erase block is to be rewritten, the data in the entire erase block is once read into the RAM inside the SD card, the necessary data is rewritten in the RAM, and then written back into the entire erase block again. Operation is performed. This series of operations is called read modify write. Since the read modify write requires time for writing, it becomes a problem in a product such as a video camera that requires high-speed recording to some extent.

そこで、リードモディファイライトを可能な限り発生させないようにするために、AU(Allocation Unit)という、SDカードへの書き込み速度を保証できる最小書き込み単位が規格で定められている。SDカードのホスト機器製造各社はAU単位でのアラインを守ったアクセスを行うことによって、リードモディファイライトの発生を回避し、要求する記録速度を満たすことができる。   Therefore, in order to prevent the occurrence of read-modify-write as much as possible, the standard defines a minimum writing unit called AU (Allocation Unit) that can guarantee the writing speed to the SD card. Each SD card host device manufacturer can avoid the occurrence of read-modify-write by satisfying the AU-aligned access and satisfy the required recording speed.

しかしながら、このAUサイズはクラスタサイズや消去ブロックサイズよりも大きいため、小さいサイズのファイルの書き込みやファイルの末尾部分の書き込みなどを行うと、AU単位でのアクセスを満たすことができなくなってしまう。この場合、一部分だけ記録されたAUを速度保証記録用の空き領域としては使えなくなってしまう。そして、このようなAU単位ではないサイズのデータの書き込みを繰り返せば、記録媒体上に高速記録用には扱えない無駄領域が発生してしまうことになる。   However, since the AU size is larger than the cluster size and the erase block size, when writing a file with a small size or writing at the end of the file, it becomes impossible to satisfy access in units of AUs. In this case, the AU recorded only in a part cannot be used as a free area for speed guarantee recording. If data having a size not in units of AUs is repeatedly written, a waste area that cannot be handled for high-speed recording will occur on the recording medium.

特許文献1では、記録が完了した時点で、記録したデータのAU単位ではない末尾部分を既に部分的に記録されているAUに移動することで、無駄な領域が増えてしまうことを防ぐ方法が述べられている。   In Patent Document 1, when recording is completed, there is a method for preventing an increase in useless areas by moving a tail portion that is not an AU unit of recorded data to an AU that has already been partially recorded. It is stated.

特開2009-64386号公報JP 2009-64386 A

しかしながら、デジタルビデオカメラでは、録画停止後にすぐまた次の録画を開始できることが要求されるため、上記のように記録完了後にデータの移動を行うと、記録速度が保証されず、次の録画時に記録が破綻してしまうおそれがある。   However, since the digital video camera requires that the next recording can be started immediately after the recording is stopped, if the data is moved after the recording is completed as described above, the recording speed is not guaranteed and the recording is performed at the next recording. May collapse.

一方、デジタルビデオカメラでは複数の録画品質を設定することができ、また、さらに高画質化する傾向にある。高画質化に応じて、SDカードに要求される記録速度もより高速化しており、近年、保証したい速度性能(速度モード)に応じて複数のAUサイズが用意されている。また、速度モードを切り替えるとAUサイズの切り替えが必要となるSDカードもある。このような高速度モードに対応するAUサイズは、低速度モードに対応するものよりも大きくなる傾向にある。 したがって、全ての画質設定での記録を保証しようと単純に最も高速な速度モードを選択した場合、AUサイズが増大し、上記のようなAUへの部分的な記録が発生した場合に無駄になってしまう領域のサイズも増大してしまうという問題がある。   On the other hand, with a digital video camera, a plurality of recording qualities can be set, and the image quality tends to be further improved. The recording speed required for the SD card has been increased as the image quality has been improved. In recent years, a plurality of AU sizes have been prepared according to the speed performance (speed mode) to be guaranteed. Some SD cards require AU size switching when the speed mode is switched. The AU size corresponding to such a high speed mode tends to be larger than that corresponding to the low speed mode. Therefore, if the fastest speed mode is simply selected in order to guarantee recording at all image quality settings, the AU size increases and is wasted when partial recording to the AU as described above occurs. There is a problem that the size of the area to be increased also increases.

そこで本発明では、記録媒体の容量を有効に使用できるように、要求されるデータの記録速度に応じたデータ記録速度モードを選択する技術を提供することを目的とする。   Therefore, an object of the present invention is to provide a technique for selecting a data recording speed mode corresponding to a required data recording speed so that the capacity of the recording medium can be used effectively.

上記課題を解決するための本発明は、記録速度が異なる複数の速度モードを有する記録媒体に映像データを記録するデータ記録装置であって、
前記記録媒体に記録する映像データの種別に基づいて、前記記録媒体に前記映像データを記録するための記録速度を決定する決定手段と、
前記記録媒体が有する複数の速度モードのうち、決定された前記記録速度よりも早い記録速度を有する速度モードの中で、記録単位が最も小さい速度モードを選択する選択手段と、
前記選択された速度モードに従って前記記録媒体に前記映像データを記録する記録手段とを備える。
The present invention for solving the above problems is a data recording apparatus for recording video data on a recording medium having a plurality of speed modes having different recording speeds,
Determining means for determining a recording speed for recording the video data on the recording medium based on a type of video data to be recorded on the recording medium;
A selection means for selecting a speed mode having the smallest recording unit among speed modes having a recording speed higher than the determined recording speed among a plurality of speed modes of the recording medium;
Recording means for recording the video data on the recording medium in accordance with the selected speed mode.

本発明によれば、要求されるデータの記録速度に応じたデータ記録速度モードを選択可能として、記録媒体の容量を有効に使用することができる。   According to the present invention, it is possible to select a data recording speed mode according to the required data recording speed, and to effectively use the capacity of the recording medium.

発明の実施形態に対応するデータ記録装置の構成の一例を示すブロック図。The block diagram which shows an example of a structure of the data recording device corresponding to embodiment of invention. 発明の実施形態に対応する速度モード選択処理の一例を示すフローチャート。The flowchart which shows an example of the speed mode selection process corresponding to embodiment of invention.

図1は、本発明の実施形態におけるデータ記録装置の構成例を示すブロック図である。以下では、データ記録装置としてデジタルビデオカメラを例として説明する。   FIG. 1 is a block diagram illustrating a configuration example of a data recording apparatus according to an embodiment of the present invention. Hereinafter, a digital video camera will be described as an example of the data recording apparatus.

デジタルビデオカメラ100は、記録媒体制御部110、速度モード取得部120、記録単位サイズ取得部121、記録レート決定部122、速度モード選択部123、制御部130、記憶部140、映像取得部150、記録部160、操作部170から構成され、内部バス101により相互に接続されており、記録媒体200に記録/再生する。   The digital video camera 100 includes a recording medium control unit 110, a speed mode acquisition unit 120, a recording unit size acquisition unit 121, a recording rate determination unit 122, a speed mode selection unit 123, a control unit 130, a storage unit 140, a video acquisition unit 150, A recording unit 160 and an operation unit 170 are connected to each other via the internal bus 101, and recording / reproducing is performed on the recording medium 200.

なお、本実施形態では、記録媒体200に対する映像データの記録に焦点を当てて説明するが、データ記録装置100は、記録媒体200に記録された映像データの再生を可能とする装置として構成することもできる。また、データ記録装置100は、接続された記録媒体に映像データを記録することが可能な装置であればよく、例えば、デジタルカメラ、デジタルビデオカメラ、携帯電話、スマートフォン、PDA、ノートパソコン、タブレット端末等として実現することができる。図1のデジタルビデオカメラ100において、撮像素子や表示素子のような物理的デバイスを除き、各ブロックは専用ロジック回路やメモリを用いてハードウェア的に構成されてもよい。或いは、メモリに記憶されている処理プログラムをCPU等のコンピュータが実行することにより、ソフトウェア的に構成されてもよい。   Although the present embodiment will be described focusing on recording video data on the recording medium 200, the data recording apparatus 100 is configured as an apparatus that enables playback of video data recorded on the recording medium 200. You can also. The data recording device 100 may be any device that can record video data on a connected recording medium, such as a digital camera, digital video camera, mobile phone, smartphone, PDA, notebook computer, tablet terminal. Etc. can be realized. In the digital video camera 100 of FIG. 1, each block may be configured by hardware using a dedicated logic circuit or a memory, except for a physical device such as an image sensor or a display element. Alternatively, the processing program stored in the memory may be configured by software by a computer such as a CPU executing the processing program.

記録媒体制御部110は、装着された記録媒体200に対してコマンドやデータなどの受け渡しを行う。速度モード取得部120は、記録媒体制御部110を介して記録媒体200に対して指示を出し、記録媒体200が選択可能な全ての速度モードの情報を取得する。本実施形態では、記録媒体200として、UHS(Ultra High Speed)モードという高速の書込モードに対応するSDカードについて説明する。UHSモードでは10メガバイト毎秒(MB/s)以上の記録速度(書き込み速度)が保証される。また、このようなSDカードは非UHSモードにも対応し、"Speed Class"と呼ばれるClass2、Class4、Class6、Class10といったクラス番号により速度モードが識別され、各クラスでは、順に2MB/s、4MB/s、6MB/s、10MB/sといった記録速度が保証される。記録媒体制御部110は、UHSモードやクラスを識別する情報を記録媒体200から取得する。また、本実施形態では、記録媒体200は不図示の装着、排出機構により、ビデオカメラ100に対して容易に装着、排出することが可能である。   The recording medium control unit 110 delivers commands and data to the mounted recording medium 200. The speed mode acquisition unit 120 issues an instruction to the recording medium 200 via the recording medium control unit 110 and acquires information on all speed modes that can be selected by the recording medium 200. In the present embodiment, an SD card corresponding to a high-speed writing mode called an UHS (Ultra High Speed) mode will be described as the recording medium 200. In the UHS mode, a recording speed (writing speed) of 10 megabytes per second (MB / s) or more is guaranteed. Further, such an SD card also supports a non-UHS mode, and the speed mode is identified by class numbers such as Class2, Class4, Class6, and Class10 called "Speed Class". In each class, 2 MB / s, 4 MB / Recording speeds of s, 6 MB / s and 10 MB / s are guaranteed. The recording medium control unit 110 acquires information for identifying the UHS mode and the class from the recording medium 200. In the present embodiment, the recording medium 200 can be easily attached to and ejected from the video camera 100 by an unillustrated mounting / discharging mechanism.

記録単位サイズ取得部121は、記録媒体制御部110を介して記録媒体200に対して指示を出し、記録媒体200が選択可能な全てのAU(Allocation Unit)サイズを取得する。AUサイズは、非UHSモードの場合、一般に記録媒体200の容量に基づいて最大値が決まっており、例えばカードサイズが32ギガバイト(GB)であれば、最大AUサイズは4MBとなり、Speed Classに応じてAUサイズが設定されている。例えば、Class2、4、6、10のそれぞれについて512KB、1MB、2MB、4MBと設定することができる。なお、AUサイズは各クラスについて同一であっても良い。また、UHSモードについては、より大きなAUサイズを設定することができ、例えば32MBが指定される。   The recording unit size acquisition unit 121 issues an instruction to the recording medium 200 via the recording medium control unit 110, and acquires all AU (Allocation Unit) sizes that can be selected by the recording medium 200. In the non-UHS mode, the maximum value of the AU size is generally determined based on the capacity of the recording medium 200. For example, if the card size is 32 gigabytes (GB), the maximum AU size is 4 MB, which corresponds to the speed class. AU size is set. For example, 512 KB, 1 MB, 2 MB, and 4 MB can be set for each of Classes 2, 4, 6, and 10, respectively. Note that the AU size may be the same for each class. For the UHS mode, a larger AU size can be set, and for example, 32 MB is designated.

記録レート決定部122は、記録部160が記録媒体200に映像データを記録する際に要求される記録レート(記録速度)を、該映像データの種別及び画質(品質)に基づき決定する。より具体的にデジタルビデオカメラ100は、動画像撮影モード、静止画像撮影モード、連写画像撮影モード等、異なる記録レートの映像データを記録する複数の動作モードを持ち、映像データとして動画像、静止画像(一枚撮り、連写の両方を含む)の撮影が可能である。また、ユーザは、各モードにおいて記録される映像データの画質を、複数の画質の中から設定することができる。ユーザは操作部170を介して動作モード及び画質の設定を行うことができ、指定された動作モード及び画質設定、或いは、いずれか一方のみから必要な記録レートが決定される。   The recording rate determination unit 122 determines a recording rate (recording speed) required when the recording unit 160 records video data on the recording medium 200 based on the type and image quality (quality) of the video data. More specifically, the digital video camera 100 has a plurality of operation modes for recording video data of different recording rates, such as a moving image shooting mode, a still image shooting mode, a continuous shooting image shooting mode, and the like. Images (including both single shots and continuous shooting) can be taken. Further, the user can set the image quality of the video data recorded in each mode from a plurality of image quality. The user can set the operation mode and the image quality via the operation unit 170, and the necessary recording rate is determined from the designated operation mode and the image quality setting or only one of them.

動画像撮影モードは、動画像を撮影するモードであり、映像取得部150の撮像素子から入力された映像信号を記録部160において動画像符号化(MPEG2、H.264等)を行い、記録媒体制御部110を介して記録媒体200に記録する。記録部160は設定された画質に応じて符号化される動画データのビットレート(データレート)を制御する。本実施形態では、例えば高画質の設定になるほど符号化される動画データのビットレートが高くなるように制御される。また、静止画像撮影モードは静止画像を撮影するモードであり、記録部160において静止画像符号化(JPEG)してJPEG画像等の静止画を生成し記録を行う。記録部160は、画質設定に応じて例えば圧縮率を変化させる。連写画像撮影モードは、単位時間当たり所定枚数の静止画像を連続して撮影するモードであり、上記の静止画像の生成を所定枚数について繰り返す。なお、連写速度は複数の速度が設定可能であっても良い。本実施形態では、各撮影モードにおいて、設定された画質に応じて記録レートが予め設定されているものとする。例えば、動画像撮影モードにおいては、記録する動画データの画質を3段階(Q1、Q2、Q3につき、画質はQ1>Q2>Q3の順で良い)の何れかに設定可能と仮定すると、各画質において対応する記録レートR1、R2、R3は、R1>R2>R3の順に大きくなる。なお、記録レートは、記録媒体の各速度モードの記録速度と比較されるので、例えば3MB/sのようにMB/sを単位とする値として決定される。   The moving image shooting mode is a mode for shooting a moving image, in which the video signal input from the image sensor of the video acquisition unit 150 is encoded by the recording unit 160 (MPEG2, H.264, etc.), and the recording medium is recorded. Recording is performed on the recording medium 200 via the control unit 110. The recording unit 160 controls the bit rate (data rate) of moving image data to be encoded according to the set image quality. In the present embodiment, for example, control is performed so that the bit rate of moving image data to be encoded increases as the setting of high image quality is achieved. The still image shooting mode is a mode for shooting a still image. The recording unit 160 encodes a still image (JPEG) to generate and record a still image such as a JPEG image. The recording unit 160 changes the compression rate, for example, according to the image quality setting. The continuous shooting image shooting mode is a mode for continuously shooting a predetermined number of still images per unit time, and the generation of the still image is repeated for the predetermined number of images. A plurality of speeds may be set as the continuous shooting speed. In the present embodiment, it is assumed that the recording rate is set in advance in accordance with the set image quality in each shooting mode. For example, in the moving image shooting mode, it is assumed that the image quality of the moving image data to be recorded can be set to any one of three levels (Q1, Q2, Q3 may be in the order of Q1> Q2> Q3). The corresponding recording rates R1, R2, and R3 increase in the order of R1> R2> R3. Since the recording rate is compared with the recording speed in each speed mode of the recording medium, it is determined as a value in units of MB / s, for example, 3 MB / s.

速度モード選択部123は、記録媒体200のマウント時に、速度モード取得部120により得られる選択可能な速度モードのうち、記録レート決定部122により決定された記録レートを上回り、かつ、記録単位サイズ取得部121により得られるAUサイズの最も小さい速度モードを選択することができる。さらに、デジタルビデオカメラ100の動作モードが切り替えられて、取得すべき映像データの種別が変更された場合も要求される記録レートも変わることが考えられるため、再度、速度モードを選択しなおす。また、記録媒体200への記録を開始するタイミング、例えば録画の開始時に速度モードの選択を行ってもよい。   The speed mode selection unit 123 exceeds the recording rate determined by the recording rate determination unit 122 among the selectable speed modes obtained by the speed mode acquisition unit 120 when the recording medium 200 is mounted, and acquires the recording unit size. The speed mode with the smallest AU size obtained by the unit 121 can be selected. Further, since the required recording rate may change even when the operation mode of the digital video camera 100 is switched and the type of video data to be acquired is changed, the speed mode is selected again. Further, the speed mode may be selected at the timing of starting recording on the recording medium 200, for example, at the start of recording.

制御部130はデジタルビデオカメラ100の中心的な処理を担い、記録媒体制御部110、記録単位サイズ取得部121、記録レート決定部122、速度モード選択部123、記憶部140、映像取得部150、記録部160、操作部170を制御する。制御部130は、記憶部140に記憶されたプログラムに従って動作するCPUを含む。記憶部140は、例えばRAMやROM等の記憶素子により構成され、ワークエリアとして利用されたり、或いは、プログラムの保存領域として利用されたりする。例えば、記憶部140には、速度モード取得部120や記録単位サイズ取得部121が取得した速度モードやAUサイズの情報が保存される。また、操作部170を操作してユーザが設定したデジタルビデオカメラ100の動作モードや画質設定に関する設定情報や、発明の実施形態に従う処理により決定された速度モードの情報が保存される。さらには、デジタルビデオカメラ100の動作を制御するためのプログラムが格納されている。映像取得部150は、CCDやCMOS等の撮像素子から入力された映像信号を入力し、記録部160に入力する。   The control unit 130 is responsible for the central processing of the digital video camera 100, and includes a recording medium control unit 110, a recording unit size acquisition unit 121, a recording rate determination unit 122, a speed mode selection unit 123, a storage unit 140, a video acquisition unit 150, The recording unit 160 and the operation unit 170 are controlled. Control unit 130 includes a CPU that operates according to a program stored in storage unit 140. The storage unit 140 is configured by a storage element such as a RAM and a ROM, for example, and is used as a work area or a program storage area. For example, the storage unit 140 stores information on the speed mode and AU size acquired by the speed mode acquisition unit 120 and the recording unit size acquisition unit 121. Further, setting information regarding the operation mode and image quality setting of the digital video camera 100 set by the user by operating the operation unit 170, and information on the speed mode determined by the processing according to the embodiment of the invention are stored. Furthermore, a program for controlling the operation of the digital video camera 100 is stored. The video acquisition unit 150 inputs a video signal input from an image sensor such as a CCD or CMOS, and inputs the video signal to the recording unit 160.

記録部160は、映像取得部150により入力された映像信号を動画像或いは静止画像として符号化し、記録媒体制御部110を介して記録媒体200に記録する。このとき、ビットレートはユーザにより操作部170を介して指示された画質に応じたものとする。操作部170は、ボタンやスイッチ等であり、ユーザからの操作を入力する。   The recording unit 160 encodes the video signal input by the video acquisition unit 150 as a moving image or a still image, and records the encoded video signal on the recording medium 200 via the recording medium control unit 110. At this time, the bit rate corresponds to the image quality instructed by the user via the operation unit 170. The operation unit 170 is a button, a switch, or the like, and inputs an operation from the user.

記録媒体200は、SDカードであり、複数の速度モードを持つ。記録媒体制御部110からのコマンドに応じて記録データの入出力や、AUサイズの通知、速度モードの切り替えを行う。   The recording medium 200 is an SD card and has a plurality of speed modes. In accordance with a command from the recording medium control unit 110, input / output of recording data, AU size notification, and speed mode switching are performed.

次に、本実施形態における記録媒体200の速度モードの選択手順を説明する。図2は、本実施形態における速度モード選択処理の手順を示したフローチャートである。該フローチャートに対応する処理は、例えば、各ブロックとして機能するCPUが対応するプログラム(記憶部140に格納)を実行することにより実現できる。   Next, the procedure for selecting the speed mode of the recording medium 200 in the present embodiment will be described. FIG. 2 is a flowchart showing a procedure of speed mode selection processing in the present embodiment. The processing corresponding to the flowchart can be realized, for example, by executing a corresponding program (stored in the storage unit 140) by a CPU functioning as each block.

S201では、速度モード取得部120が、記録媒体制御部110を介して、記録媒体200から、記録媒体200が選択可能な速度モードの情報を取得する。もし選択可能な速度モードが複数ある場合、それらの全てを取得し、記憶部140に記憶する。例えば、記憶媒体がUHSモードに対応している場合には、それを示す情報を取得し記憶する。また、非UHSモードについては各Classを表す情報を取得して記憶する。次にS202では、記録単位サイズ取得部121が、記録媒体制御部110を介して、S201で取得した各速度モードに対応するAUサイズをそれぞれ取得し、記憶部140に記憶する。AUサイズは、上記のように例えば512KB、1MB、2MB、4MBといった記録単位のサイズを示す情報として提供される。   In S <b> 201, the speed mode acquisition unit 120 acquires information on speed modes that can be selected by the recording medium 200 from the recording medium 200 via the recording medium control unit 110. If there are a plurality of selectable speed modes, all of them are acquired and stored in the storage unit 140. For example, if the storage medium is compatible with the UHS mode, information indicating that is acquired and stored. For the non-UHS mode, information indicating each class is acquired and stored. In step S <b> 202, the recording unit size acquisition unit 121 acquires the AU size corresponding to each speed mode acquired in step S <b> 201 via the recording medium control unit 110, and stores it in the storage unit 140. As described above, the AU size is provided as information indicating the size of a recording unit such as 512 KB, 1 MB, 2 MB, and 4 MB.

次にS203では、記録レート決定部122が記録部160がカードに動画像または静止画像を記録するための記録レートを決定し、記憶部140に記憶する。当該記録レートは、デジタルカメラ100のユーザが操作部170を操作して設定した動作モード及び画質設定に基づき決定される。当該設定情報は記憶部140に保存されているのでこれを参照することができる。また記憶部は、各動作モード及び画質設定に応じた記録レートの情報を、例えばルックアップテーブル形式で記憶しており、記録レート決定部122は当該LUTを参照して記録レートを決定することができる。   In step S <b> 203, the recording rate determination unit 122 determines a recording rate for the recording unit 160 to record a moving image or a still image on the card and stores the recording rate in the storage unit 140. The recording rate is determined based on the operation mode and the image quality setting set by the user of the digital camera 100 by operating the operation unit 170. Since the setting information is stored in the storage unit 140, it can be referred to. The storage unit stores recording rate information according to each operation mode and image quality setting, for example, in a look-up table format, and the recording rate determination unit 122 can determine the recording rate with reference to the LUT. it can.

これ以降のS204からS208では、速度モード選択部123が、速度モードを選択する。まずS204ではS201で取得した各速度モードが有する記録速度と記録レートとの比較を行って、記録レートを上回る記録速度を有する速度モードがあるか否かを判定する。もし記録レートを上回る速度モードがある場合(S204で「YES」)、S205に移行してS202で記憶部140に記憶したAUサイズを参照し、最小のAUサイズに対応する速度モードを選択する。その後、S207に移行する。一方、記録レートを満たす速度モードを記録媒体200が一つも持たない場合(S204で「NO」)、S206に移行して記録レートに最も近い速度モード、即ち最高速度の速度モードを選択する。このとき、制御部130はユーザに、最適な速度モードが利用可能でない旨を警告してもよい。   In subsequent steps S204 to S208, the speed mode selection unit 123 selects a speed mode. First, in S204, the recording speed and recording rate of each speed mode acquired in S201 are compared to determine whether there is a speed mode having a recording speed higher than the recording rate. If there is a speed mode exceeding the recording rate (“YES” in S204), the process proceeds to S205, the AU size stored in the storage unit 140 is referred to in S202, and the speed mode corresponding to the minimum AU size is selected. Thereafter, the process proceeds to S207. On the other hand, when the recording medium 200 does not have any speed mode that satisfies the recording rate (“NO” in S204), the process proceeds to S206, and the speed mode closest to the recording rate, that is, the speed mode with the highest speed is selected. At this time, the control unit 130 may warn the user that the optimum speed mode is not available.

次にS207では、S205で選択された速度モードが一つのみであるか否かを判定する。記録媒体200によっては、最小AUの速度モードが複数あることも考えられる。最小AUの速度モードが一つのみの場合(S207で「YES」)、速度モード選択部123による速度モードの選択はそのまま終了する。一方、最小AUの速度モードが複数ある場合(S207で「NO」)、S208に移行して、複数の速度モードの中で最も低速な速度モードを選択する。これは、S204ですでに動画像或いは静止画像の記録に必要な記録レートが満たされているため、低速な速度モードを選択する方が消費電力の観点から有利だからである。   In step S207, it is determined whether only one speed mode is selected in step S205. Depending on the recording medium 200, there may be a plurality of minimum AU speed modes. If there is only one minimum AU speed mode (“YES” in S207), the speed mode selection by the speed mode selection unit 123 is terminated as it is. On the other hand, when there are a plurality of minimum AU speed modes (“NO” in S207), the process proceeds to S208, and the slowest speed mode is selected from among the plurality of speed modes. This is because the recording rate necessary for recording a moving image or a still image is already satisfied in S204, and it is advantageous from the viewpoint of power consumption to select a low speed mode.

以上のように本実施形態では、デジタルビデオカメラ100が、システムが要求する記録速度を満たし、かつAUサイズが最小の速度モードを選択することができる。使用されるAUサイズが小さくなれば、速度保証記録用の空き領域として使うことができない「一部分だけ記録されたAU」の発生を効果的に防止して、記録媒体上での無駄領域の発生を回避することができる。よって、動画像記録動作を破綻させることなく、記録媒体200の容量を有効に使用することが可能となる。   As described above, in this embodiment, the digital video camera 100 can select a speed mode that satisfies the recording speed required by the system and has the smallest AU size. If the AU size to be used is reduced, it is possible to effectively prevent the occurrence of “partially recorded AU” that cannot be used as a free area for speed-guaranteed recording, thereby preventing the generation of a waste area on the recording medium. It can be avoided. Therefore, it is possible to effectively use the capacity of the recording medium 200 without breaking the moving image recording operation.

なお、上記本実施形態の説明では、記録媒体200をSDカードとして説明したが、記録媒体200の種類はこれに限定されるものではなく、複数の速度モードを持つ全ての情報記録媒体で適用できる。   In the description of the present embodiment, the recording medium 200 has been described as an SD card. However, the type of the recording medium 200 is not limited to this, and can be applied to all information recording media having a plurality of speed modes. .

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

Claims (8)

記録速度が異なる複数の速度モードを有する記録媒体に映像データを記録するデータ記録装置であって、
前記記録媒体に記録する映像データの種別に基づいて、前記記録媒体に前記映像データを記録するための記録速度を決定する決定手段と、
前記記録媒体が有する複数の速度モードのうち、決定された前記記録速度よりも早い記録速度を有する速度モードの中で、記録単位が最も小さい速度モードを選択する選択手段と、
前記選択された速度モードに従って前記記録媒体に前記映像データを記録する記録手段と
を備えることを特徴とするデータ記録装置。
A data recording apparatus for recording video data on a recording medium having a plurality of speed modes with different recording speeds,
Determining means for determining a recording speed for recording the video data on the recording medium based on a type of video data to be recorded on the recording medium;
A selection means for selecting a speed mode having the smallest recording unit among speed modes having a recording speed higher than the determined recording speed among a plurality of speed modes of the recording medium;
A data recording apparatus comprising: recording means for recording the video data on the recording medium in accordance with the selected speed mode.
前記記録媒体が有する前記複数の速度モードの情報と、各速度モードにおける前記記録単位の情報を前記記録媒体から取得する取得手段を更に備えることを特徴とする請求項1に記載のデータ記録装置。   The data recording apparatus according to claim 1, further comprising an acquisition unit configured to acquire information on the plurality of speed modes included in the recording medium and information on the recording unit in each speed mode from the recording medium. 前記決定手段は、前記映像データの品質に更に基づいて前記記録速度を決定することを特徴とする請求項1又は2に記載のデータ記録装置。   The data recording apparatus according to claim 1, wherein the determining unit determines the recording speed further based on the quality of the video data. 前記選択手段は、決定された前記記録速度よりも早い記録速度を有する速度モードの中で、最も小さい記録単位を有する速度モードが複数ある場合、記録速度がより遅い速度モードを選択することを特徴とする請求項1乃至3のいずれか1項に記載のデータ記録装置。   The selection means selects a speed mode having a slower recording speed when there are a plurality of speed modes having the smallest recording unit among speed modes having a recording speed faster than the determined recording speed. The data recording device according to any one of claims 1 to 3. 前記選択手段は、決定された前記記録速度よりも早い記録速度を有する速度モードがない場合、前記複数の速度モードのうち、最も早い記録速度を有する速度モードを選択することを特徴とする請求項1乃至4のいずれか1項に記載のデータ記録装置。   The selection means, when there is no speed mode having a recording speed faster than the determined recording speed, selects a speed mode having the fastest recording speed from among the plurality of speed modes. 5. The data recording apparatus according to any one of 1 to 4. 前記選択手段は、前記速度モードの選択を、
前記記録媒体が前記データ記録装置へマウントされた場合、
前記記録媒体に記録すべき映像データの種別が変更された場合、
前記記録媒体に対する前記映像データの記録を開始する場合
のうち少なくともいずれかの場合に行うことを特徴とする請求項1乃至5のいずれか1項に記載のデータ記録装置。
The selection means selects the speed mode,
When the recording medium is mounted on the data recording device,
When the type of video data to be recorded on the recording medium is changed,
6. The data recording apparatus according to claim 1, wherein the recording is performed in at least one of cases where recording of the video data on the recording medium is started.
記録速度が異なる複数の速度モードを有する記録媒体に映像データを記録するデータ記録装置の制御方法であって、
決定手段が、前記記録媒体に記録する映像データの種別に基づいて、前記記録媒体に前記映像データを記録するための記録速度を決定する決定工程と、
選択手段が、前記記録媒体が有する複数の速度モードのうち、決定された前記記録速度よりも早い記録速度を有する速度モードの中で、記録単位が最も小さい速度モードを選択する選択工程と、
記録手段が、前記選択された速度モードに従って前記記録媒体への前記映像データの記録を行う記録工程と
を備えることを特徴とするデータ記録装置の制御方法。
A control method of a data recording apparatus for recording video data on a recording medium having a plurality of speed modes with different recording speeds,
A determining step for determining a recording speed for recording the video data on the recording medium based on a type of video data to be recorded on the recording medium;
A selection step of selecting a speed mode with the smallest recording unit among speed modes having a recording speed faster than the determined recording speed among a plurality of speed modes of the recording medium;
A control method for a data recording apparatus, comprising: a recording unit that records the video data on the recording medium according to the selected speed mode.
コンピュータを、請求項1乃至6のいずれか1項に記載のデータ記録装置の各手段として機能させるプログラム。   The program which makes a computer function as each means of the data recording device of any one of Claims 1 thru | or 6.
JP2013048488A 2013-03-11 2013-03-11 Data recording device, control method thereof, and computer program Pending JP2014175954A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2013048488A JP2014175954A (en) 2013-03-11 2013-03-11 Data recording device, control method thereof, and computer program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2013048488A JP2014175954A (en) 2013-03-11 2013-03-11 Data recording device, control method thereof, and computer program

Publications (1)

Publication Number Publication Date
JP2014175954A true JP2014175954A (en) 2014-09-22

Family

ID=51696777

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2013048488A Pending JP2014175954A (en) 2013-03-11 2013-03-11 Data recording device, control method thereof, and computer program

Country Status (1)

Country Link
JP (1) JP2014175954A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2020077917A (en) * 2018-11-05 2020-05-21 キヤノン株式会社 Imaging apparatus, control method of the same, and program
CN113785308A (en) * 2019-04-17 2021-12-10 佳能株式会社 Recording apparatus, recording method, program, and memory card
JP7446899B2 (en) 2020-04-15 2024-03-11 キヤノン株式会社 Recording/playback device and method for controlling the recording/playback device

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2020077917A (en) * 2018-11-05 2020-05-21 キヤノン株式会社 Imaging apparatus, control method of the same, and program
JP7213657B2 (en) 2018-11-05 2023-01-27 キヤノン株式会社 IMAGING DEVICE, CONTROL METHOD AND PROGRAM THEREOF
CN113785308A (en) * 2019-04-17 2021-12-10 佳能株式会社 Recording apparatus, recording method, program, and memory card
JP7446899B2 (en) 2020-04-15 2024-03-11 キヤノン株式会社 Recording/playback device and method for controlling the recording/playback device

Similar Documents

Publication Publication Date Title
US20130222629A1 (en) Methods, apparatuses, and computer program products for facilitating concurrent video recording and still image capture
JP6137980B2 (en) Recording apparatus and control method thereof
JP4603953B2 (en) Image data recording apparatus and method
US9554082B2 (en) Recording apparatus, recording method, and program
JP2015029231A (en) Recording apparatus and control method therefor
JP2009098822A (en) Data processor and shared memory accessing method
JP2014175954A (en) Data recording device, control method thereof, and computer program
US9786317B2 (en) Recording apparatus and method of controlling recording apparatus
JP2011159240A (en) Recording device and control method of the same
JP2000267904A (en) Data recorder and its method
JP5523128B2 (en) Recording apparatus and control method thereof
US20090290460A1 (en) Information recording method and information recording apparatus
US20100211738A1 (en) Mass storage system with improved usage of buffer capacity
US8676026B2 (en) Data recording apparatus
JP5693277B2 (en) Recording apparatus and recording method
JP2013090134A (en) Recording device and recording method
JP2014236344A (en) Playback device, control method therefor, program and storage medium
KR20130069403A (en) Recording apparatus
JP2015029229A (en) Recording apparatus and control method therefor
JP6436818B2 (en) Recording apparatus and method
JP5950798B2 (en) Recording apparatus and control method thereof
JP6112972B2 (en) Imaging device
US10950274B2 (en) Image recording apparatus, method for controlling same, and non-transitory computer-readable storage medium
JP2010157917A (en) Imaging apparatus and imaging method
JP2014174640A (en) Data recording device, control method thereof, and computer program