JP6373002B2 - Recording apparatus and control method thereof - Google Patents

Recording apparatus and control method thereof Download PDF

Info

Publication number
JP6373002B2
JP6373002B2 JP2013268610A JP2013268610A JP6373002B2 JP 6373002 B2 JP6373002 B2 JP 6373002B2 JP 2013268610 A JP2013268610 A JP 2013268610A JP 2013268610 A JP2013268610 A JP 2013268610A JP 6373002 B2 JP6373002 B2 JP 6373002B2
Authority
JP
Japan
Prior art keywords
moving image
recording medium
recording
image data
data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
JP2013268610A
Other languages
Japanese (ja)
Other versions
JP2015126323A (en
JP2015126323A5 (en
Inventor
前田 昌峰
昌峰 前田
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Canon Inc
Original Assignee
Canon Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Canon Inc filed Critical Canon Inc
Priority to JP2013268610A priority Critical patent/JP6373002B2/en
Publication of JP2015126323A publication Critical patent/JP2015126323A/en
Publication of JP2015126323A5 publication Critical patent/JP2015126323A5/ja
Application granted granted Critical
Publication of JP6373002B2 publication Critical patent/JP6373002B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

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

近年、デジタルカメラおよびデジタルビデオカメラの記録媒体として、NAND型フラッシュメモリ(登録商標)が主流となっている。NAND型フラッシュメモリを用いた内蔵型メモリやメモリカードは、書き込みサイズが数メガバイト(MB)と大きく、かつ書き込み開始アドレスがブロック境界に合致している場合は、転送レートが非常に高速である。一方、メモリへの書き込みサイズが1セクタ(512バイト)単位前後と小さく、かつ書き込みアドレスがランダムな場合は転送レートが非常に遅くなるという特性を持っている。また、メモリへの一回の書き込みサイズが大きい場合は転送レートが速く、小さい場合は転送レートが遅くなる傾向もある。このように一般的なメモリカードは、書き込みサイズによって転送レートが変動する。動画データをメモリカードに記録するためには、メモリカードへの転送レートが安定している必要があるが、カードによっては転送レートが不足して録画が停止してしまったりするおそれがあった。   In recent years, NAND flash memory (registered trademark) has become mainstream as a recording medium for digital cameras and digital video cameras. A built-in memory or memory card using a NAND flash memory has a very high transfer rate when the write size is as large as several megabytes (MB) and the write start address matches the block boundary. On the other hand, when the write size to the memory is as small as about 1 sector (512 bytes) unit and the write address is random, the transfer rate is very slow. Also, the transfer rate tends to be fast when the write size to the memory is large, and the transfer rate tends to be slow when it is small. Thus, the transfer rate of a general memory card varies depending on the writing size. In order to record moving image data on a memory card, the transfer rate to the memory card needs to be stable, but depending on the card, the transfer rate may be insufficient and recording may stop.

そこで、従来、あらかじめ定められた固定のアクセスサイズでアクセスした場合のアクセス速度、およびファイルシステム更新の書き込み速度を保証することが提案されている(例えば、特許文献1参照)。   Therefore, conventionally, it has been proposed to guarantee the access speed when accessing with a predetermined fixed access size and the writing speed of file system update (see, for example, Patent Document 1).

国際公開第05/055064号International Publication No. 05/055064

しかしながら、書き込み速度を保証するアクセスサイズは、各カードに対して一つのみ規定されているため、以下の問題があった。即ち、動画データを記録する場合、カードへの記録レートと動画データのデータレートが違うため、動画データを一旦メモリに蓄積しておき、アクセスサイズと同等のデータ量が蓄積されると、記録媒体への記録が実行される。このとき、カードへの動画データの書き込み周期は、動画データのデータレートによって異なる。   However, since only one access size that guarantees the writing speed is defined for each card, there are the following problems. That is, when recording moving image data, since the recording rate to the card and the data rate of the moving image data are different, the moving image data is once stored in the memory, and when the data amount equivalent to the access size is stored, the recording medium Recording to is performed. At this time, the cycle of writing the moving image data to the card differs depending on the data rate of the moving image data.

例えば、アクセスサイズが4MBと規定されており、記録する動画データのデータレートが10MB/秒(80Mbps)の場合、4MB/(10MB/秒)=0.4秒周期で書き込みが実行される。また、動画データのデータレートが1MB/秒(8Mbps)の場合は4秒周期で書き込みが実行される。   For example, when the access size is defined as 4 MB and the data rate of moving image data to be recorded is 10 MB / second (80 Mbps), writing is executed at a cycle of 4 MB / (10 MB / second) = 0.4 seconds. Further, when the data rate of the moving image data is 1 MB / second (8 Mbps), writing is executed at a cycle of 4 seconds.

ところが、このようにデータレートが異なる複数の動画データを同時に一つのメモリカードに記録しようとした場合は、前述のようにデータ毎に書き込みの周期が異なるため、書き込み制御が難しくなる。   However, when a plurality of moving image data having different data rates are simultaneously recorded on one memory card as described above, the writing cycle is different for each data as described above, so that writing control becomes difficult.

また、データレートが異なる複数の動画データがメモリカードに同じタイミングで記録されないと、バッテリーが切れるなど、記録の強制終了が発生した場合に、動画データの記録時間が一致しないなどの不都合が生じる。   In addition, if a plurality of moving image data having different data rates are not recorded on the memory card at the same timing, the recording time of moving image data does not match when the recording is forcibly terminated, for example, the battery runs out.

また、特許文献1では、メモリカードにおけるアクセスサイズ毎の空き領域の割合に応じて記録速度を保証しているため、記録側のシステムにおいては、カードへの書き込みアドレスが不連続になり、システム側の負荷になるという問題もある。   Further, in Patent Document 1, since the recording speed is guaranteed according to the ratio of the free area for each access size in the memory card, in the recording system, the write address to the card becomes discontinuous, and the system side There is also a problem of becoming a load of.

本発明は以上の点を鑑みてなされたものであり、適切なタイミングで動画データを記録媒体に書き込むことができる記録装置及びその制御方法の提供を目的とする。   The present invention has been made in view of the above points, and an object of the present invention is to provide a recording apparatus capable of writing moving image data to a recording medium at an appropriate timing and a control method therefor.

以上の目的を達成するため、本発明の記録装置は、動画データを生成する処理手段と、記録媒体に対して書き込みコマンドを出力することにより、前記動画データを前記記録媒体に書き込む記録手段と、複数の所定のデータ量から、1回の前記書き込みコマンドによって前記記録媒体に書き込まれる動画データのデータ量を設定し、前記設定したデータ量の動画データを1回の前記書き込みコマンドにより前記記録媒体に書き込むように前記記録手段を制御する制御手段とを有することを特徴とする。   In order to achieve the above object, the recording apparatus of the present invention includes a processing unit that generates moving image data, a recording unit that writes the moving image data to the recording medium by outputting a write command to the recording medium, A data amount of moving image data written to the recording medium by one write command is set from a plurality of predetermined data amounts, and the moving image data having the set data amount is set on the recording medium by one write command. And a control means for controlling the recording means to write.

本発明の記録装置によれば、適切なタイミングで動画データを記録媒体に書き込むことができる記録装置及びその制御方法を提供できる。   According to the recording apparatus of the present invention, it is possible to provide a recording apparatus capable of writing moving image data to a recording medium at an appropriate timing and a control method therefor.

実施形態に係る記録装置の一例としてのデジタルカメラの機能構成例を示すブロック図1 is a block diagram illustrating a functional configuration example of a digital camera as an example of a recording apparatus according to an embodiment. 図1の記録条件設定回路の構成例を示すブロック図FIG. 1 is a block diagram showing a configuration example of a recording condition setting circuit in FIG. メモリカードへの書き込みおよびFATの更新処理を説明するための図The figure for demonstrating the write-in to a memory card, and the update process of FAT 性能定義ユニットを示す図Figure showing the performance definition unit 記録動作を示すフローチャートFlow chart showing recording operation 動画データの記録時のバッファ領域に蓄積されるデータ量と書き込み動作の様子を示す図The figure which shows the amount of data accumulated in the buffer area when recording moving image data and the state of the write operation 動画データの記録時のバッファ領域に蓄積されるデータ量と書き込み動作の様子を示す図The figure which shows the amount of data accumulated in the buffer area when recording moving image data and the state of the write operation 同時記録モードでの動作を示すフローチャートFlow chart showing operation in simultaneous recording mode 動画データの記録時のバッファ領域に蓄積されるデータ量と書き込み動作の様子を示す図The figure which shows the amount of data accumulated in the buffer area when recording moving image data and the state of the write operation 性能定義ユニットを示す図Figure showing the performance definition unit 記録動作を示すフローチャートFlow chart showing recording operation 動画データの記録時のバッファ領域に蓄積されるデータ量と書き込み動作の様子を示す図The figure which shows the amount of data accumulated in the buffer area when recording moving image data and the state of the write operation

以下、図面を参照しながら本発明の例示的な実施形態を説明する。
●(第1の実施形態)
本発明に係る記録装置は、動画データを記録可能な任意の記録装置であってよい。ここでは一例としてのデジタルビデオカメラ100について、図面を用いて説明する。図1は、本実施形態のデジタルビデオカメラ100の機能構成例を示すブロック図であり、撮影レンズ101に入射した光束は絞り102によって光量が所定量に制限された後、撮像素子103上に被写体像を結像させる。撮像素子103がアナログ信号に変換した被写体像は、A/Dコンバータ104でデジタル化され、画像処理回路105でガンマ補正やホワイトバランス補正、ノイズリダクション処理等が行われた後、データバス107を介してメモリ114に記憶される。本実施形態で撮像素子103は、1画面(フレーム)が横3840画素×縦2160画素で、30フレーム毎秒の動画データを出力する。画像サイズ変換回路108は、メモリ114に記憶された動画データの各画面の画素数を、液晶パネル110に表示される画像の画素数、或いは、記録される動画の画素数となるように変換し、メモリ114に記憶する。
Hereinafter, exemplary embodiments of the present invention will be described with reference to the drawings.
● (first embodiment)
The recording device according to the present invention may be any recording device capable of recording moving image data. Here, a digital video camera 100 as an example will be described with reference to the drawings. FIG. 1 is a block diagram illustrating an example of a functional configuration of a digital video camera 100 according to the present embodiment. A light beam incident on a photographing lens 101 is limited to a predetermined amount by a diaphragm 102, and a subject is placed on an image sensor 103. Form an image. The subject image converted into an analog signal by the image sensor 103 is digitized by the A / D converter 104, subjected to gamma correction, white balance correction, noise reduction processing, and the like by the image processing circuit 105, and then via the data bus 107. And stored in the memory 114. In the present embodiment, the image sensor 103 outputs moving image data of 30 frames per second with one screen (frame) having horizontal 3840 pixels × vertical 2160 pixels. The image size conversion circuit 108 converts the number of pixels of each screen of the moving image data stored in the memory 114 so as to be the number of pixels of the image displayed on the liquid crystal panel 110 or the number of pixels of the recorded moving image. And stored in the memory 114.

符号化回路109は、メモリ114に記憶された記録用の動画データを読み出し、H.264等の公知の符号化処理を施して圧縮し、メモリ114に記憶する。液晶パネル110は、画像や各種情報を表示する表示部である。液晶ドライバ111は、メモリ114に格納されている表示用の画像データを液晶表示信号に変換して液晶パネル110に供給する。こうして、メモリ114に書き込まれた表示用の画像データは液晶ドライバ111を介して液晶パネル110により表示される。   The encoding circuit 109 reads the moving image data for recording stored in the memory 114, The image data is compressed by performing a known encoding process such as H.264 and stored in the memory 114. The liquid crystal panel 110 is a display unit that displays images and various types of information. The liquid crystal driver 111 converts display image data stored in the memory 114 into a liquid crystal display signal and supplies it to the liquid crystal panel 110. Thus, the display image data written in the memory 114 is displayed on the liquid crystal panel 110 via the liquid crystal driver 111.

ホストコントローラ112は、制御回路116からの指示に基づいて、記録媒体であるメモリカード113に対してコマンド信号を送信し、メモリ114に記憶された動画データを読み出してメモリカード113に書き込む。また、ホストコントローラ112は、メモリカード113からデータを読み出し、メモリ114に記憶する。メモリカード113は、カメラ本体に対して着脱が可能な、NAND型フラッシュメモリおよびフラッシュコントローラで構成されているメモリカードである。メモリカード113に記憶された動画データは、exFAT(Extended File Allocation Table)ファイルシステムに従って管理手段としての制御回路116がファイルとして管理する。   Based on an instruction from the control circuit 116, the host controller 112 transmits a command signal to the memory card 113 that is a recording medium, reads out the moving image data stored in the memory 114, and writes it in the memory card 113. In addition, the host controller 112 reads data from the memory card 113 and stores it in the memory 114. The memory card 113 is a memory card composed of a NAND flash memory and a flash controller that can be attached to and detached from the camera body. The moving image data stored in the memory card 113 is managed as a file by the control circuit 116 as management means in accordance with an exFAT (Extended File Allocation Table) file system.

メモリ114はDRAMなどの揮発メモリで構成され、符号化回路109で生成される符号化動画データを一旦記憶し、メモリカード113の記録速度との調停を行うためのバッファとしてのメモリ空間を提供する。またメモリ114は、撮影された動画データの画面サイズを変換するための画像サイズ変換回路108の作業メモリ空間を提供するとともに、前述の通り、液晶パネル110に表示される画像を記憶する空間も提供する。操作回路115は、電源スイッチや記録開始、停止を指示するためのボタン等、ユーザが操作するための各種の操作キーを備える。操作回路115は、各種設定項目の設定キーを含む。   The memory 114 is constituted by a volatile memory such as a DRAM, temporarily stores the encoded moving image data generated by the encoding circuit 109, and provides a memory space as a buffer for arbitrating with the recording speed of the memory card 113. . The memory 114 also provides a working memory space for the image size conversion circuit 108 for converting the screen size of the captured moving image data, and also provides a space for storing an image displayed on the liquid crystal panel 110 as described above. To do. The operation circuit 115 includes various operation keys for operation by the user, such as a power switch and buttons for instructing start and stop of recording. The operation circuit 115 includes setting keys for various setting items.

ROM117は、電気的に消去および書き込みが可能な不揮発メモリであって、制御回路(CPU)116で動作するプログラム等が格納される。ここでいうプログラムとは、本実施形態にて後述する各種シーケンスを実行するためのプログラムのことであり、後述する本実施形態の各処理を実現する。また、制御回路116は液晶ドライバ111等を制御することにより表示制御も行う。記録条件設定回路118は、動画データを記録するための各種の条件を設定する。   The ROM 117 is an electrically erasable and writable nonvolatile memory, and stores a program that operates on the control circuit (CPU) 116 and the like. The program here is a program for executing various sequences described later in the present embodiment, and realizes each process of the present embodiment described later. The control circuit 116 also performs display control by controlling the liquid crystal driver 111 and the like. The recording condition setting circuit 118 sets various conditions for recording moving image data.

図2は、記録条件設定回路118の構成例を示すブロック図である。記録形式設定回路201は、操作回路115からの入力を受けた制御回路116からの指示により、一つの動画を記録するか、二つの動画を同時に記録するかを設定する。画像サイズ設定回路202は、操作回路115からの入力を受けた制御回路116からの指示により、記録される動画の画面サイズ(記録される動画データの1画面あたりの縦、横それぞれの画素数)を設定する。このとき、二つの動画を同時に記録する場合には、各動画についての画面サイズを設定する。データレート設定回路203は、操作回路115からの入力を受けた制御回路116からの指示により、記録される動画データのデータレートを設定する。このとき、二つの動画を同時に記録する場合には、各動画についてのデータレートを設定する。ユニットサイズ設定回路204は、設定された動画データのデータレートから、記録する時に用いるユニットサイズを設定する。このとき、二つの動画を同時に記録する場合には、各動画についてのユニットサイズを設定する。   FIG. 2 is a block diagram illustrating a configuration example of the recording condition setting circuit 118. The recording format setting circuit 201 sets whether to record one moving image or two moving images simultaneously in accordance with an instruction from the control circuit 116 that has received an input from the operation circuit 115. The image size setting circuit 202 receives the input from the operation circuit 115, and in response to an instruction from the control circuit 116, the screen size of the moving image to be recorded (vertical and horizontal pixels per screen of the recorded moving image data). Set. At this time, when two moving images are recorded simultaneously, the screen size for each moving image is set. The data rate setting circuit 203 sets the data rate of the moving image data to be recorded in accordance with an instruction from the control circuit 116 that has received an input from the operation circuit 115. At this time, when recording two moving images simultaneously, the data rate for each moving image is set. The unit size setting circuit 204 sets the unit size used when recording from the set data rate of the moving image data. At this time, when two moving images are recorded simultaneously, a unit size for each moving image is set.

ファイルシステム更新設定回路205は、設定された動画データのデータレートおよびユニットサイズに応じて、ファイルシステム更新の頻度を設定する。このとき、二つの動画を同時に記録する場合には、各動画についてのファイルシステム更新の頻度を設定する。バッファ領域設定回路206は、設定されているユニットサイズから、未記録の動画データを記憶するためのバッファ領域として必要な領域をメモリ114内に設定する。このとき、二つの動画を同時に記録する場合には、各動画についてのバッファ領域を設定する。   The file system update setting circuit 205 sets the frequency of file system update according to the data rate and unit size of the set moving image data. At this time, when two moving images are recorded simultaneously, the frequency of file system update for each moving image is set. The buffer area setting circuit 206 sets a necessary area in the memory 114 as a buffer area for storing unrecorded moving image data based on the set unit size. At this time, when two moving images are recorded simultaneously, a buffer area for each moving image is set.

なお、図1、図2においては、記録条件設定回路118を制御回路116とは別の機能ブロックとして記載したが、記録条件設定回路118の一部、或いは、全ての機能ブロックが制御回路116により実現される様にしてもよい。   In FIG. 1 and FIG. 2, the recording condition setting circuit 118 is described as a functional block different from the control circuit 116, but part or all of the functional blocks of the recording condition setting circuit 118 are controlled by the control circuit 116. It may be realized.

図3は、メモリカード113に対する動画データの書き込み及びFATの更新処理を示す図である。図3(a)において、Data Writeで示す部分は、ホストコントローラ112から発行される1回のWriteコマンドによるデータの書き込みが行われる期間である。1回の書き込みコマンドにより書き込まれるデータ量はN(MB)と規定されている。また、FAT Updateで示す部分は、FATファイルシステムの記述ルールに則り、メモリカード113に記録されたデータをファイルとして管理するための管理情報を記録するための期間を示す。FAT Updateの内容は、ファイルエントリ書き込み(1セクタ)→アロケーションビットマップ書き込み(1セクタ)→FAT書き込み(1セクタ)を含んでいる。図3に示すとおり、1回の書き込みコマンドによりN(MB)のデータの書き込みを開始した後、管理情報の書き込みが完了し、ファイルシステム更新が完了するまでに要する時間がTuwである。   FIG. 3 is a diagram showing video data writing and FAT update processing to the memory card 113. In FIG. 3A, a portion indicated by Data Write is a period during which data is written by one Write command issued from the host controller 112. The amount of data written by one write command is defined as N (MB). The part indicated by FAT Update indicates a period for recording management information for managing data recorded in the memory card 113 as a file in accordance with the description rule of the FAT file system. The contents of FAT Update include file entry write (1 sector) → allocation bitmap write (1 sector) → FAT write (1 sector). As shown in FIG. 3, after writing N (MB) data by one write command, the time required for completing the writing of the management information and completing the file system update is Tuw.

このように、1回の書き込みコマンドにより書き込まれるデータ量(ユニットサイズ)、データの書き込みとファイルシステムの更新に要する時間Tuwを含む、メモリカードへのアクセス条件の定義を以下、性能定義ユニットと称する。即ち、メモリカード113に対し、1回の書き込みコマンドにより書き込まれる、複数の所定のデータ量と、対応した書き込み速度、書き込みの実行時間を含むアクセス条件が、性能定義ユニットとして定義されている。   In this manner, the definition of the access condition to the memory card including the amount of data (unit size) written by one write command and the time Tuw required for writing data and updating the file system is hereinafter referred to as a performance definition unit. . That is, an access condition including a plurality of predetermined data amounts, corresponding write speeds, and write execution times written to the memory card 113 by one write command is defined as a performance definition unit.

また、性能定義ユニットにより定義されたアクセス条件に従ってデータの書き込みを行った場合に、メモリカードの性能として、Tuwで示す時間内に動作が終了することが保証される。また、性能定義ユニットに定義されたアクセス条件によるデータの書き込み速度は、ユニットサイズ/Tuwで算出することができる。   In addition, when data is written according to the access conditions defined by the performance definition unit, the performance of the memory card is guaranteed to be completed within the time indicated by Tuw. Further, the data writing speed according to the access conditions defined in the performance definition unit can be calculated by unit size / Tuw.

一例として、ユニットサイズ=4MB、Tuw=100msecの性能定義ユニットの例を図3(b)および図3(c)に示す。図3(b)に示すMediaAと図3(c)に示すMediaBとでは、同じ100msecの動作期間に対してデータ記録の動作時間とファイルシステム更新の動作時間の内訳が異なっている。しかし、どちらも4MB/100msec=40MB/secの性能が定義される。すなわち、データの書き込み期間とファイルシステムの更新期間の内訳はどのような比率でもよい。   As an example, FIG. 3B and FIG. 3C show examples of performance definition units with a unit size = 4 MB and Tuw = 100 msec. In Media A shown in FIG. 3B and Media B shown in FIG. 3C, the breakdown of the data recording operation time and the file system update operation time is different for the same 100 msec operation period. However, in both cases, a performance of 4 MB / 100 msec = 40 MB / sec is defined. That is, the ratio between the data writing period and the file system update period may be any ratio.

図4は、本実施形態のメモリカード113で定義されている四つの性能定義ユニットによるアクセス条件を示す図である。性能定義ユニット1によるアクセス条件は、ユニットサイズ=16MB、Tuw=320msecであり、書き込み速度として50MB/secの性能を持つ。性能定義ユニット2によるアクセス条件は、ユニットサイズ=8MB、Tuw=200msecであり、書き込み速度として40MB/secの性能を持つ。性能定義ユニット3によるアクセス条件は、ユニットサイズ=4MB、Tuw=133msecであり、書き込み速度として30MB/secの性能を持つ。性能定義ユニット4によるアクセス条件は、ユニットサイズ=2MB、Tuw=100msecであり、書き込み速度として20MB/secの性能を持つ。   FIG. 4 is a diagram showing access conditions by four performance definition units defined in the memory card 113 of this embodiment. The access condition by the performance definition unit 1 is unit size = 16 MB, Tuw = 320 msec, and has a performance of 50 MB / sec as a writing speed. The access condition by the performance definition unit 2 is unit size = 8 MB, Tuw = 200 msec, and has a performance of 40 MB / sec as a writing speed. The access conditions by the performance definition unit 3 are unit size = 4 MB, Tuw = 133 msec, and a performance of 30 MB / sec as a writing speed. The access conditions by the performance definition unit 4 are unit size = 2 MB, Tuw = 100 msec, and a performance of 20 MB / sec as a writing speed.

本実施形態では、これら四つの性能定義ユニットによるアクセス条件、並びに、書き込み性能に関する情報が、ROM117に記憶されているものとする。そして、制御回路116が、ROM117から各性能定義ユニットによるアクセス条件と書き込み性能を読み出す構成とする。しかしながら、メモリカード113に性能定義ユニットによるアクセス条件と書き込み性能の情報を記憶しておく構成としてもよい。この場合、制御回路116は、メモリカード113がカメラに装着された後、メモリカード113から性能定義ユニットによるアクセス条件と書き込み性能の情報を読み出す。   In the present embodiment, it is assumed that the ROM 117 stores access conditions and write performance information by these four performance definition units. Then, the control circuit 116 reads the access conditions and the write performance by each performance definition unit from the ROM 117. However, the memory card 113 may store information on access conditions and write performance by the performance definition unit. In this case, after the memory card 113 is mounted on the camera, the control circuit 116 reads the access condition and write performance information by the performance definition unit from the memory card 113.

次に、本実施形態のデジタルカメラによる、動画記録時の動作を説明する。本実施形態では、ユーザが操作回路115を操作することにより、メモリカード113に記録する動画データの画面サイズ、及びデータレートを設定することができる。更に、本実施形態では、メモリカード113に対して二つの動画データを同時に記録することが可能である。ユーザは、二つの動画を同時に記録するか、或いは、一つの動画を記録するかを設定することができる。また、二つの動画を同時に記録する場合、ユーザは、各動画について、動画データの画面サイズ、及びデータレートを設定することができる。   Next, the operation at the time of moving image recording by the digital camera of this embodiment will be described. In the present embodiment, the user can set the screen size and data rate of moving image data to be recorded on the memory card 113 by operating the operation circuit 115. Further, in the present embodiment, two moving image data can be simultaneously recorded on the memory card 113. The user can set whether to record two moving images simultaneously or to record one moving image. When two moving images are recorded simultaneously, the user can set the screen size and data rate of the moving image data for each moving image.

本実施形態では、画面サイズとして、横3840画素×縦2160画素、横1920画素×縦1080画素、横640画素×縦480画素、の三つのモードの何れかを設定可能である。また、ユーザは、一つの動画を記録する場合、動画データのデータレートとして、高画質の動画データである36MB/秒と標準画質の動画データである18MB/秒の何れかを設定可能である。また、二つの動画データを同時に記録する場合、高画質の動画データである24MB/秒と、標準画質の動画データである12MB/秒の何れかを設定可能である。   In the present embodiment, as the screen size, any one of three modes of horizontal 3840 pixels × vertical 2160 pixels, horizontal 1920 pixels × vertical 1080 pixels, and horizontal 640 pixels × vertical 480 pixels can be set. Further, when recording one moving image, the user can set either 36 MB / second, which is high-quality moving image data, or 18 MB / second, which is standard-definition moving image data, as the data rate of the moving image data. When two moving image data are recorded simultaneously, either 24 MB / second, which is high-quality moving image data, or 12 MB / second, which is standard-definition moving image data, can be set.

図5(a)は、このようにユーザにより、記録する動画データが設定された時に実行される処理を示している。なお、図5(a)の処理は、制御回路116が各部を制御することにより実行される。   FIG. 5A shows processing executed when the moving image data to be recorded is set by the user as described above. 5A is executed by the control circuit 116 controlling each unit.

ユーザにより、記録される動画の画面サイズ、データレート及び記録形式が設定されると図5の処理が開始される。制御回路116は、設定された記録形式により、一つの動画を記録するか、或いは、二つの動画を同時に記録するかを判別する(S501)。一つの動画を記録する設定の場合、制御回路116は、ユーザの設定に基づいて、画像サイズ設定回路202に画面サイズを設定し、データレート設定回路203に動画のデータレートを設定する(S502)。   When the user sets the screen size, data rate, and recording format of the moving image to be recorded, the processing in FIG. 5 is started. The control circuit 116 determines whether to record one moving image or two moving images simultaneously according to the set recording format (S501). In the case of setting to record one moving image, the control circuit 116 sets the screen size in the image size setting circuit 202 and sets the data rate of the moving image in the data rate setting circuit 203 based on the user setting (S502). .

次に、ユニットサイズ設定回路204は、設定された記録形式と動画のデータレートに基づき、ユニットサイズを設定する(S503)。具体的には、設定された動画のデータレートを上回る書き込み速度を持つ性能定義ユニットによるユニットサイズが設定される。例えば、ユーザにより高画質の動画データの記録が設定された場合、動画データレートが36MB/秒となる。そのため、図4に示す性能定義ユニットのうち、これを上回る書き込み速度を持つ性能定義ユニット2によるユニットサイズ8MBが設定される。   Next, the unit size setting circuit 204 sets the unit size based on the set recording format and moving image data rate (S503). Specifically, a unit size is set by a performance definition unit having a writing speed exceeding the set moving image data rate. For example, when recording of high-quality moving image data is set by the user, the moving image data rate is 36 MB / second. Therefore, a unit size of 8 MB is set by the performance definition unit 2 having a writing speed higher than the performance definition unit shown in FIG.

さらに、制御回路116は、ファイルシステム更新設定回路205にファイルシステム更新の頻度を設定する(S504)。本実施形態では、一つのユニットサイズのデータの書き込みの度に実行されるよう設定する。次に、バッファ領域設定回路206は、設定されたユニットサイズから、記録時に必要となるバッファ領域のサイズを設定する。そして、設定したサイズの領域を、動画データのためのバッファメモリ領域としてメモリ114内に確保する(S505)。例えば、ユニットサイズ(Uz)が8MBに設定された場合、バッファ領域としては8MBより大きいサイズが確保される。また、メモリカード113に対する書き込みタイミングを決めるために用いられる、バッファメモリ領域のデータ蓄積量の閾値Tとして、ユニットサイズを設定する。   Further, the control circuit 116 sets the file system update frequency in the file system update setting circuit 205 (S504). In this embodiment, it is set to be executed every time data of one unit size is written. Next, the buffer area setting circuit 206 sets the size of the buffer area required for recording from the set unit size. Then, an area of the set size is secured in the memory 114 as a buffer memory area for moving image data (S505). For example, when the unit size (Uz) is set to 8 MB, a size larger than 8 MB is secured as the buffer area. Further, the unit size is set as the threshold value T of the data storage amount in the buffer memory area, which is used to determine the write timing for the memory card 113.

一方、記録形式として同時記録が設定されていた場合の処理については後述する(S506)。以上の処理が終了したあと、記録待機状態となり、ユーザによる撮影開始指示を待つ状態となる。   On the other hand, the process when simultaneous recording is set as the recording format will be described later (S506). After the above processing is completed, the recording standby state is entered, and the user is in a state of waiting for an imaging start instruction.

次に、一つの動画データを記録する際の処理を説明する。図5(b)は、記録形式として、一つの動画データを記録する設定の場合の記録処理を示すフローチャートである。また、図6は、記録開始後の、バッファ領域に記憶された動画データとメモリカード113に書き込まれるデータ及びファイルシステムの更新動作を示す図である。なお、図6は、8MBのバッファサイズに対応した、図4の性能定義ユニット2が選択された場合の様子を示している。   Next, a process when recording one moving image data will be described. FIG. 5B is a flowchart showing a recording process in the case of setting to record one moving image data as a recording format. FIG. 6 is a diagram showing the moving image data stored in the buffer area, the data written to the memory card 113, and the update operation of the file system after the start of recording. FIG. 6 shows a state in which the performance definition unit 2 in FIG. 4 corresponding to a buffer size of 8 MB is selected.

記録待機状態において、ユーザが操作回路115を操作して記録開始を指示すると、撮像素子103からの動画データが画像処理回路105で処理され、フレームメモリ106に記憶される。画像サイズ変換回路108は、フレームメモリ106に記憶された動画データの各画面のサイズを、画像サイズ設定回路202で設定された画像サイズになるように変換し、メモリ114に記憶する。符号化回路109は、メモリ114に記憶された動画データを読み出して符号化し、バッファ領域設定回路206で設定されたメモリ114上のバッファ領域に記憶していく。このとき、符号化回路109は、符号化された動画データのデータレートが、設定されたデータレートにより決められた上限のレートを超えないように符号化する(S511)。   In the recording standby state, when the user operates the operation circuit 115 to give an instruction to start recording, the moving image data from the image sensor 103 is processed by the image processing circuit 105 and stored in the frame memory 106. The image size conversion circuit 108 converts the size of each screen of the moving image data stored in the frame memory 106 so as to be the image size set by the image size setting circuit 202 and stores it in the memory 114. The encoding circuit 109 reads and encodes the moving image data stored in the memory 114 and stores it in the buffer area on the memory 114 set by the buffer area setting circuit 206. At this time, the encoding circuit 109 performs encoding so that the data rate of the encoded moving image data does not exceed the upper limit rate determined by the set data rate (S511).

次に、制御回路116は、バッファ領域に蓄積された、未記録の動画データのデータ量が、閾値Tに達したか否かを判別する(S512)。バッファ領域に蓄積された動画データのデータ量が閾値Tに達した場合、制御回路116は、ホストコントローラ112に対して、ユニットサイズUz分のデータ、ここでは8MBのデータを書き込むように指示する。ホストコントローラ112は、メモリカード113に対して書き込みコマンドを発行し、メモリ114上のバッファ領域から、ユニットサイズ分の動画データをメモリカードへ書き込む(S513)。この書き込み処理は、図6のメモリカード動作におけるaの期間で示されている。   Next, the control circuit 116 determines whether or not the amount of unrecorded moving image data accumulated in the buffer area has reached the threshold value T (S512). When the data amount of the moving image data accumulated in the buffer area reaches the threshold value T, the control circuit 116 instructs the host controller 112 to write data for the unit size Uz, here, 8 MB. The host controller 112 issues a write command to the memory card 113 and writes moving image data for the unit size from the buffer area on the memory 114 to the memory card (S513). This writing process is shown in the period a in the memory card operation of FIG.

ファイルシステム更新設定回路205には、ユニットサイズUz毎の更新タイミングが設定されている。そのため、制御回路116は、ユニットサイズ分のデータの書き込みに続いて、ファイルシステムの更新を実行するように、ホストコントローラ112に指示する(S514)。このファイルシステム更新動作は、図6のメモリカード動作におけるbで示した期間に行われる。一つのユニットサイズ分の動画データの書き込みおよびファイルシステム更新は、性能定義ユニット2により200msec以内に完了することが保証されている。また、性能定義ユニット2による書き込み性能は40MB/秒である。一方、動画データのデータレートは36MB/秒であるので、図6において、メモリカードへのデータの書き込み中、バッファ領域に蓄積されたデータ量が4MB/秒の速度で減少する。ファイルシステムの更新が完了すると、制御回路116は、記録停止の指示の有無を判別し(S515)、記録停止の指示が無い場合はS512の処理に戻る。   In the file system update setting circuit 205, an update timing for each unit size Uz is set. Therefore, the control circuit 116 instructs the host controller 112 to update the file system following the writing of data for the unit size (S514). This file system update operation is performed during the period indicated by b in the memory card operation of FIG. The writing of moving image data for one unit size and the updating of the file system are guaranteed by the performance definition unit 2 to be completed within 200 msec. The write performance by the performance definition unit 2 is 40 MB / second. On the other hand, since the data rate of the moving image data is 36 MB / second, in FIG. 6, the amount of data stored in the buffer area decreases at a rate of 4 MB / second during the writing of data to the memory card. When the update of the file system is completed, the control circuit 116 determines whether or not there is an instruction to stop recording (S515). If there is no instruction to stop recording, the process returns to S512.

このように、メモリカード113への書き込み処理において、図6に示すように、バッファ領域に蓄積されるデータ量は8MBを超えることはなく、バッファがオーバーフローすることが無い。そのため、動画データの記録が停止することが無い。   Thus, in the writing process to the memory card 113, as shown in FIG. 6, the amount of data stored in the buffer area does not exceed 8 MB, and the buffer does not overflow. Therefore, recording of moving image data does not stop.

ユーザにより記録停止が指示された場合、制御回路116はS515でそれを検出し、符号化回路109による動画データの符号化を停止するとともに、メモリ114のバッファ領域に対する符号化データの蓄積を停止する(S516)。そして、制御回路116は、ホストコントローラ112に対し、メモリ114のバッファ領域に残っている動画データの書き込み動作を行い(S517)、ファイルシステム更新を行った後(S518)、記録動作を終了する。なお、S517における書き込みでは、書き込みコマンドにより書き込まれるデータのサイズがユニットサイズとは一致しないので、書き込み速度が低下することが考えられる。しかし、記録停止の指示の後の書き込み動作となるため、書き込み性能が低下しても問題はない。   When recording stop is instructed by the user, the control circuit 116 detects this in S515, stops encoding moving image data by the encoding circuit 109, and stops storing encoded data in the buffer area of the memory 114. (S516). Then, the control circuit 116 writes the moving image data remaining in the buffer area of the memory 114 to the host controller 112 (S517), updates the file system (S518), and ends the recording operation. Note that in the writing in S517, since the size of the data written by the write command does not match the unit size, the writing speed may be reduced. However, since the writing operation is performed after the instruction to stop recording, there is no problem even if the writing performance is lowered.

図7は、ユーザにより動画データのデータレートとして18MB/秒が設定された場合の、バッファ領域に記憶された動画データとメモリカード113に書き込まれるデータ及びファイルシステムの更新動作を示す図である。動画データのデータレートが18MB/秒の場合、性能定義ユニット1−4の何れを選択した場合でも、書き込み速度は動画データのレートよりも高い。そのため、どの性能定義ユニットを選んだ場合でも、動画データを連続して記録することが可能である。本実施形態では、性能定義ユニットとして、ユニットサイズが、性能定義ユニット2の半分である、性能定義ユニット3を選択する。   FIG. 7 is a diagram showing an operation of updating the moving image data stored in the buffer area, the data written in the memory card 113, and the file system when the user sets the data rate of the moving image data to 18 MB / second. When the data rate of moving image data is 18 MB / second, the writing speed is higher than the rate of moving image data regardless of which of the performance definition units 1-4 is selected. Therefore, regardless of which performance definition unit is selected, it is possible to record moving image data continuously. In this embodiment, the performance definition unit 3 whose unit size is half that of the performance definition unit 2 is selected as the performance definition unit.

性能定義ユニット3によるユニットサイズは4MBなので、メモリ114には4MBより大きなサイズのバッファ領域が確保される。また、閾値Tとして4MBが設定される。その後、メモリ114のバッファ領域に蓄積された動画データが4MBに達する度に、ホストコントローラ112から書き込みコマンドが発行される。1回の書き込みコマンドにより、ユニットサイズUz分、ここでは4MB分の動画データがメモリカード113に書き込まれる。この書き込み処理は、図7のメモリカード動作におけるcの期間で示されている。また、動画データの書き込みに続いて、FATの更新が実行される。この書き込み処理は、図7のメモリカード動作におけるdの期間で示されている。一つのユニットサイズ分の動画データの書き込みおよびファイルシステム更新は、性能定義ユニット3により133msec以内に完了することが保証されている。また、性能定義ユニット3による書き込み性能は30MB/秒である。一方、動画データのデータレートは18MB/秒であるので、図6において、メモリカードへのデータの書き込み中、バッファ領域に蓄積されたデータ量が12MB/秒の速度で減少する。   Since the unit size of the performance definition unit 3 is 4 MB, a buffer area having a size larger than 4 MB is secured in the memory 114. Further, 4 MB is set as the threshold T. Thereafter, every time the moving image data stored in the buffer area of the memory 114 reaches 4 MB, a write command is issued from the host controller 112. With one write command, moving image data for the unit size Uz, here 4 MB, is written to the memory card 113. This writing process is shown in period c in the memory card operation of FIG. Further, following the writing of the moving image data, the FAT is updated. This writing process is shown in the period d in the memory card operation of FIG. The writing of the video data for one unit size and the file system update are guaranteed to be completed within 133 msec by the performance definition unit 3. The write performance by the performance definition unit 3 is 30 MB / second. On the other hand, since the data rate of the moving image data is 18 MB / second, in FIG. 6, the amount of data stored in the buffer area decreases at a speed of 12 MB / second during the writing of data to the memory card.

このように、記録される動画データのデータレートが低い場合でも、図7に示すように、バッファ領域に蓄積される動画データのデータ量は4MBを超えることはない。そのため、バッファオーバーフローが起きることなく記録が継続できる。   Thus, even when the data rate of the moving image data to be recorded is low, the data amount of the moving image data stored in the buffer area does not exceed 4 MB as shown in FIG. Therefore, recording can be continued without causing a buffer overflow.

また、標準画質の動画データを記録する場合、高画質の動画データを記録する際に選択した性能定義ユニットのユニットサイズの半分のユニットサイズである、アクセス条件3を用いる。そのため、高画質の動画データを記録する際の書き込み間隔と同じ間隔で動画データをメモリカードに書き込むことができるという効果がある。   Further, when recording moving image data with standard image quality, access condition 3 is used, which is a unit size that is half the unit size of the performance definition unit selected when recording moving image data with high image quality. Therefore, there is an effect that the moving image data can be written to the memory card at the same interval as the writing interval when recording the high-quality moving image data.

次に、記録形式として同時記録が設定されていた場合の処理について説明する。前述のように、同時記録モードにおいて記録される動画データのデータレートとして、高画質の動画データである24MB/秒と、標準画質の動画データである12MB/秒の何れかを設定可能である。以下の説明では、24MB/秒の動画データと、12MB/秒の動画データを同時に記録する様に設定された場合について説明し、24MB/秒の動画データをメイン動画データ、12MB/秒の動画データをサブ動画データとして説明する。図8は、同時記録モードの処理を説明するフローチャートである。   Next, processing when simultaneous recording is set as the recording format will be described. As described above, the data rate of moving image data recorded in the simultaneous recording mode can be set to either 24 MB / second, which is high-quality moving image data, or 12 MB / second, which is standard-quality moving image data. In the following description, a case where 24 MB / second moving image data and 12 MB / second moving image data are set to be recorded at the same time will be described. 24 MB / second moving image data is the main moving image data, and 12 MB / second moving image data. Will be described as sub video data. FIG. 8 is a flowchart for explaining the processing in the simultaneous recording mode.

まず、図8(a)を用いて、図5のS506の処理を説明する。図8(a)は同時記録モードが設定された場合の、記録条件の設定処理を示すフローチャートである。   First, the process of S506 in FIG. 5 will be described with reference to FIG. FIG. 8A is a flowchart showing a recording condition setting process when the simultaneous recording mode is set.

まず、制御回路116は、同時に記録される二つの動画データの画面サイズを画像サイズ設定回路202に設定する。また、制御回路116は、データレート設定回路203に、同時に記録される二つの動画データのデータレートを設定する。前述の様に、ここでは、動画データのデータレートとして、24MB/秒と12MB/秒が設定される(S801)。次に、ユニットサイズ設定回路204は、記録形式設定回路201、データレート設定回路203に設定された値を基に、それぞれの動画データを記録する際に用いる性能定義ユニットを選択し、ユニットサイズを設定する。本実施形態では、同時に記録される二つの動画データのデータレートの和よりも高速に書き込み可能なアクセス条件の性能定義ユニットから、記録のために用いる性能定義ユニットを選択する。   First, the control circuit 116 sets the screen size of two moving image data recorded at the same time in the image size setting circuit 202. Further, the control circuit 116 sets the data rate of two moving image data to be recorded simultaneously in the data rate setting circuit 203. As described above, here, 24 MB / second and 12 MB / second are set as the data rate of the moving image data (S801). Next, the unit size setting circuit 204 selects a performance definition unit used when recording each moving image data based on the values set in the recording format setting circuit 201 and the data rate setting circuit 203, and sets the unit size. Set. In the present embodiment, a performance definition unit used for recording is selected from performance definition units under access conditions that can be written at a higher speed than the sum of the data rates of two moving image data recorded simultaneously.

図4の性能定義ユニットにおいては、24MB/秒と12MB/秒の和である36MB/秒を上回る書き込み速度を持つのは、性能定義ユニット1と性能定義ユニット2である。そのため、各動画データを記録するために、性能定義ユニット1と性能定義ユニット2の何れも選択可能である。   In the performance definition unit of FIG. 4, the performance definition unit 1 and the performance definition unit 2 have a writing speed exceeding 36 MB / second, which is the sum of 24 MB / second and 12 MB / second. Therefore, either the performance definition unit 1 or the performance definition unit 2 can be selected to record each moving image data.

本実施形態では、各動画データのメモリカードへの書き込みタイミングをそろえるため、24MB/秒のメイン動画データの記録用に性能定義ユニット1を選択し、12MB/秒のサブ動画データの記録用に性能定義ユニット2を選択する。性能定義ユニット2のユニットサイズ(8MB)は性能定義ユニット1のユニットサイズ(16MB)の半分である。そのため、後述の様に、メモリカード113に対する書き込みタイミングをそろえることができる。   In this embodiment, in order to align the writing timing of each moving picture data to the memory card, the performance definition unit 1 is selected for recording the main moving picture data of 24 MB / second, and the performance for recording the sub moving picture data of 12 MB / second is selected. Select definition unit 2. The unit size (8 MB) of the performance definition unit 2 is half the unit size (16 MB) of the performance definition unit 1. Therefore, as will be described later, it is possible to align the writing timing to the memory card 113.

次に、制御回路116は、ファイルシステム更新設定回路205にファイルシステム更新の頻度を設定する(S803)。本実施形態では、性能定義ユニットにおけるデータ書き込みの度に実行されるよう設定する。   Next, the control circuit 116 sets the file system update frequency in the file system update setting circuit 205 (S803). In this embodiment, the performance definition unit is set to be executed each time data is written.

次に、バッファ領域設定回路206は、記録形式設定回路201、画像サイズ設定回路202、データレート設定回路203に設定された値から、同時に記録される二つの動画データそれぞれの記録時に必要となるバッファ領域のサイズを決定する。そして、バッファ領域設定回路206は、決定したサイズのバッファ領域をメモリ114内に確保する(S804)。   Next, the buffer area setting circuit 206 is a buffer required for recording each of the two moving image data recorded simultaneously from the values set in the recording format setting circuit 201, the image size setting circuit 202, and the data rate setting circuit 203. Determine the size of the region. Then, the buffer area setting circuit 206 secures a buffer area of the determined size in the memory 114 (S804).

本実施形態では、メイン動画データの記録用のユニットサイズ(Uz1)が16MBに設定されている。そこで、メイン動画データ用のバッファ領域として、16MBに加え、サブ動画データの1回の書き込み期間に蓄積されるメイン動画データの量に対応する領域を確保する。サブ動画データの記録用の性能定義ユニット2の1回の書き込み時間が200ミリ秒(msec)であり、メイン動画データのデータレートが24MB/秒である。そのため、200ミリ秒の間に蓄積されるメイン動画データのデータ量は、24MB/秒x200ミリ秒=4.8MBとなる。そこで、16MBに、この4.8MBを加えた20.8MBより大きいサイズがメイン動画データのバッファ領域として確保される。   In the present embodiment, the unit size (Uz1) for recording the main moving image data is set to 16 MB. Therefore, as a buffer area for main moving image data, an area corresponding to the amount of main moving image data accumulated in one writing period of sub moving image data is secured in addition to 16 MB. The writing time of the performance definition unit 2 for recording the sub moving image data is 200 milliseconds (msec), and the data rate of the main moving image data is 24 MB / second. Therefore, the data amount of the main moving image data accumulated for 200 milliseconds is 24 MB / second × 200 milliseconds = 4.8 MB. Therefore, a size larger than 20.8 MB obtained by adding 4.8 MB to 16 MB is secured as a buffer area for main moving image data.

一方、サブ動画データの記録用のユニットサイズ(Uz2)が8MBに設定されている。そこで、サブ動画データ用のバッファ領域として、8MBに加え、メイン動画データの1回の書き込み期間に蓄積されるサブ動画データの量に対応する領域を確保する。メイン動画データの記録用の性能定義ユニット1の1回の書き込み時間が320ミリ秒(msec)である。また、サブ動画データのデータレートが12MB/秒である。そのため、320ミリ秒の間に蓄積されるサブ動画データのデータ量は、12MB/秒x320ミリ秒=3.84MBとなる。そこで、8MBに、この3.84MBを加えた11.84MBより大きいサイズがサブ動画データのバッファ領域として確保される。   On the other hand, the unit size (Uz2) for recording the sub moving image data is set to 8 MB. Therefore, in addition to 8 MB, an area corresponding to the amount of sub video data accumulated in one writing period of main video data is secured as a buffer area for sub video data. One writing time of the performance definition unit 1 for recording the main moving image data is 320 milliseconds (msec). Further, the data rate of the sub moving image data is 12 MB / second. Therefore, the data amount of the sub moving image data accumulated in 320 milliseconds is 12 MB / second × 320 milliseconds = 3.84 MB. Therefore, a size larger than 11.84 MB, which is obtained by adding 3.84 MB to 8 MB, is secured as a buffer area for sub moving image data.

また、バッファ領域に蓄積されたメイン動画データとサブ動画データをメモリカード113に書き込むタイミングを決めるために用いられる、バッファメモリ領域のデータ蓄積量の閾値T1、T2として、それぞれのユニットサイズを設定する。   In addition, unit sizes are set as threshold values T1 and T2 for the amount of data stored in the buffer memory area, which are used to determine the timing for writing the main moving picture data and the sub moving picture data stored in the buffer area to the memory card 113. .

ここでは、メイン動画データの閾値T1としてユニットサイズである16MBが設定される。また、サブ動画データの閾値T2としてユニットサイズである8MBが設定される。   Here, a unit size of 16 MB is set as the threshold value T1 of the main moving image data. Further, the unit size of 8 MB is set as the threshold value T2 of the sub moving image data.

図8(b)は、記録形式として、二つの動画データを同時に記録する設定の場合の記録処理を示すフローチャートである。また、図9は、記録開始後の、バッファ領域に記憶された動画データとメモリカード113に書き込まれるデータ及びファイルシステムの更新動作を示す図である。なお、図9は、前述のように、メイン動画データとして24MB/秒が設定され、サブ動画データとして12MB/秒が設定された場合の状態を示している。   FIG. 8B is a flowchart showing a recording process in the case where the recording format is set to record two moving image data simultaneously. FIG. 9 is a diagram showing the update operation of the moving image data stored in the buffer area, the data written to the memory card 113, and the file system after the start of recording. FIG. 9 shows a state in which 24 MB / second is set as the main moving image data and 12 MB / second is set as the sub moving image data as described above.

記録待機状態において、ユーザが操作回路115を操作して記録開始を指示すると、撮像素子103からの動画データが画像処理回路105で処理され、フレームメモリ106に記憶される。画像サイズ変換回路108は、フレームメモリ106に記憶された動画データの各画面のサイズを、画像サイズ設定回路202で設定された画像サイズになるように変換し、メモリ114に記憶する。同時記録モードにおいて、画像サイズ変換回路108は、メモリ114から同じ動画データを、同時に記録される二つの動画データとしてそれぞれ読み出す。そして、画像サイズ変換回路108は、同時に記録される各動画データの画面サイズを、それぞれ設定された画面サイズに変換し、メモリ114に記憶する。   In the recording standby state, when the user operates the operation circuit 115 to give an instruction to start recording, the moving image data from the image sensor 103 is processed by the image processing circuit 105 and stored in the frame memory 106. The image size conversion circuit 108 converts the size of each screen of the moving image data stored in the frame memory 106 so as to be the image size set by the image size setting circuit 202 and stores it in the memory 114. In the simultaneous recording mode, the image size conversion circuit 108 reads the same moving image data from the memory 114 as two moving image data recorded simultaneously. Then, the image size conversion circuit 108 converts the screen size of each moving image data recorded at the same time into a set screen size and stores it in the memory 114.

符号化回路109は、メモリ114に記憶された動画データを読み出して符号化し、バッファ領域設定回路206で設定されたメモリ114上のバッファ領域に記憶していく。このとき、符号化回路109は、同時に記録される二つの動画データをそれぞれ読み出し、符号化された動画データのデータレートが、設定されたデータレートにより決められた上限のレートを超えないように符号化する(S811)。また、符号化回路109は、符号化されたメイン動画データとサブ動画データをそれぞれ、メモリ114において、前述の様にメイン動画用とサブ動画ように確保されたバッファ領域に記憶する。   The encoding circuit 109 reads and encodes the moving image data stored in the memory 114 and stores it in the buffer area on the memory 114 set by the buffer area setting circuit 206. At this time, the encoding circuit 109 reads the two moving image data recorded simultaneously, and encodes the encoded moving image data so that the data rate of the encoded moving image data does not exceed the upper limit rate determined by the set data rate. (S811). Also, the encoding circuit 109 stores the encoded main moving image data and sub moving image data in the buffer area reserved for the main moving image and the sub moving image in the memory 114 as described above.

次に、制御回路116は、バッファ領域に蓄積された、未記録のメイン動画データのデータ量が、閾値T1に達したか否かを判別する(S812)。バッファ領域に蓄積されたメイン動画データのデータ量が閾値T1に達した場合、制御回路116は、ホストコントローラ112に対して、ユニットサイズUz1分のデータ、ここでは16MBのデータを書き込むように指示する。ホストコントローラ112は、メモリカード113に対して書き込みコマンドを発行し、メモリ114上の、メイン動画用のバッファ領域から、指示されたユニットサイズ分のメイン動画データをメモリカードへ書き込む(S813)。この書き込み処理は、図9のメモリカード動作におけるeの期間で示されている。   Next, the control circuit 116 determines whether or not the data amount of the unrecorded main moving image data accumulated in the buffer area has reached the threshold value T1 (S812). When the data amount of the main moving image data accumulated in the buffer area reaches the threshold value T1, the control circuit 116 instructs the host controller 112 to write the data for the unit size Uz1, here 16MB. . The host controller 112 issues a write command to the memory card 113, and writes main moving image data for the specified unit size from the main moving image buffer area on the memory 114 to the memory card (S813). This writing process is shown in the period e in the memory card operation of FIG.

ファイルシステム更新設定回路205には、ユニットサイズUz1毎の更新タイミングが設定されている。そのため、制御回路116は、ユニットサイズ分のデータの書き込みに続いて、ファイルシステムの更新を実行するように、ホストコントローラ112に指示する(S814)。このファイルシステム更新動作は、図9のメモリカード動作におけるfで示した期間に行われる。一つのユニットサイズ分のメイン動画データの書き込みおよびファイルシステム更新は、性能定義ユニット1により320msec以内に完了することが保証されている。また、性能定義ユニット1による書き込み性能は50MB/秒である。一方、メイン動画データのデータレートは24MB/秒であるので、図9において、メモリカードへのメイン動画データの書き込み中、26MB/秒の速度でバッファ領域に蓄積された動画データ量が減少する。   In the file system update setting circuit 205, an update timing for each unit size Uz1 is set. Therefore, the control circuit 116 instructs the host controller 112 to update the file system following the writing of data for the unit size (S814). This file system update operation is performed during the period indicated by f in the memory card operation of FIG. The writing of the main moving image data for one unit size and the file system update are guaranteed by the performance definition unit 1 to be completed within 320 msec. The write performance by the performance definition unit 1 is 50 MB / second. On the other hand, since the data rate of the main moving image data is 24 MB / second, in FIG. 9, the amount of moving image data stored in the buffer area decreases at a speed of 26 MB / second during the writing of the main moving image data to the memory card.

ファイルシステムの更新が完了した場合、及び、S812でメイン動画データのデータ量がT1に達していない場合、制御回路116は、バッファ領域に蓄積された、未記録のサブ動画データのデータ量が、閾値T2に達したか否かを判別する(S815)。バッファ領域に蓄積されたサブ動画データのデータ量が閾値T2に達していた場合、制御回路116は、ホストコントローラ112に対して、ユニットサイズUz2分のデータ、ここでは8MBのデータを書き込むように指示する。ホストコントローラ112は、メモリカード113に対して書き込みコマンドを発行し、メモリ114上の、サブ動画用のバッファ領域から、指示されたユニットサイズ分のサブ動画データをメモリカードへ書き込む(S816)。この書き込み処理は、図9のメモリカード動作におけるgの期間で示されている。   When the update of the file system is completed, and when the data amount of the main moving image data has not reached T1 in S812, the control circuit 116 determines that the data amount of the unrecorded sub moving image data accumulated in the buffer area is It is determined whether or not the threshold value T2 has been reached (S815). When the data amount of the sub moving image data accumulated in the buffer area has reached the threshold value T2, the control circuit 116 instructs the host controller 112 to write data for the unit size Uz2, in this case, 8MB data. To do. The host controller 112 issues a write command to the memory card 113, and writes the sub moving image data for the designated unit size from the sub moving image buffer area on the memory 114 to the memory card (S816). This writing process is shown in the period g in the memory card operation of FIG.

ファイルシステム更新設定回路205には、ユニットサイズUz2毎の更新タイミングが設定されている。そのため、制御回路116は、ユニットサイズ分のデータの書き込みに続いて、ファイルシステムの更新を実行するように、ホストコントローラ112に指示する(S817)。このファイルシステム更新動作は、図9のメモリカード動作におけるhで示した期間に行われる。一つのユニットサイズ分のサブ動画データの書き込みおよびファイルシステム更新は、性能定義ユニット2により200msec以内に完了することが保証されている。また、性能定義ユニット2による書き込み性能は40MB/秒である。一方、サブ動画データのデータレートは12MB/秒であるので、図9において、メモリカードへのサブ動画データの書き込み中、28MB/秒の速度でバッファ領域に蓄積された動画データ量が減少する。   In the file system update setting circuit 205, the update timing for each unit size Uz2 is set. Therefore, the control circuit 116 instructs the host controller 112 to update the file system following the writing of data for the unit size (S817). This file system update operation is performed during the period indicated by h in the memory card operation of FIG. The writing of sub moving image data for one unit size and the updating of the file system are guaranteed by the performance definition unit 2 to be completed within 200 msec. The write performance by the performance definition unit 2 is 40 MB / second. On the other hand, since the data rate of the sub moving image data is 12 MB / second, in FIG. 9, the amount of moving image data stored in the buffer area decreases at a speed of 28 MB / second during the writing of the sub moving image data to the memory card.

ファイルシステムの更新が完了した場合、及び、S815でサブ動画データのデータ量がT1に達していない場合、制御回路116は、記録停止の指示の有無を判別し(S818)、記録停止の指示が無い場合はS811の処理に戻る。   When the update of the file system is completed, and when the data amount of the sub moving image data does not reach T1 in S815, the control circuit 116 determines whether or not there is a recording stop instruction (S818), and the recording stop instruction is issued. If not, the process returns to S811.

本実施形態では、メイン動画データのデータ量が閾値T1に達したか否かの判別を、サブ動画データのデータ量が閾値T2に達したか否かの判別よりも先に実行する。そのため、図9に示すように、記録開始後、メイン動画データのデータ量が閾値T1に達するタイミングと、サブ動画データのデータ量が閾値T2に達するタイミングは、共に時間901となる。そして、メイン動画データの方が先にメモリカード113に書き込まれるため、その間、サブ動画データがバッファ領域に蓄積される。そして、メイン動画データの1回の書き込みが完了した後、時間902においてサブ動画データの書き込みが開始される。時間902の時点でバッファ領域に蓄積されたサブ動画データのデータ量は、11.84MBを超えることがない。   In the present embodiment, the determination as to whether or not the data amount of the main moving image data has reached the threshold value T1 is executed prior to the determination as to whether or not the data amount of the sub moving image data has reached the threshold value T2. Therefore, as shown in FIG. 9, after the start of recording, the timing when the data amount of the main moving image data reaches the threshold value T1 and the timing when the data amount of the sub moving image data reaches the threshold value T2 are both time 901. Since the main moving image data is written to the memory card 113 first, the sub moving image data is accumulated in the buffer area. Then, after the writing of the main moving image data is completed, writing of the sub moving image data is started at time 902. The amount of sub moving image data accumulated in the buffer area at time 902 does not exceed 11.84 MB.

このように、メモリカード113への書き込み処理において、バッファ領域に蓄積されるメイン動画データとサブ動画データのデータ量は、それぞれバッファ領域として確保されたサイズを超えることはなく、バッファがオーバーフローすることが無い。そのため、動画データの記録が停止されることが無いことを示している。   As described above, in the writing process to the memory card 113, the data amount of the main moving image data and the sub moving image data accumulated in the buffer area does not exceed the size secured as the buffer area, and the buffer overflows. There is no. Therefore, it indicates that the recording of moving image data is not stopped.

ユーザにより記録停止が指示された場合、制御回路116は、符号化回路109によるメイン、サブの動画データの符号化を停止するとともに、メモリ114のバッファ領域に対する符号化データの蓄積を停止する(S819)。そして、制御回路116は、ホストコントローラ112に対し、メモリ114のバッファ領域に残っているメイン動画データとサブ動画データの書き込み動作を行い(S820)、ファイルシステム更新を行った後(S821)、記録動作が終了する。なお、S820において書き込みコマンドにより書き込まれるデータのサイズはユニットサイズとは一致しないので、書き込み速度が低下することが考えられる。しかし、すでに記録停止の指示の後の書き込み動作となるため、書き込み性能が低下しても問題はない。   When the recording stop is instructed by the user, the control circuit 116 stops the encoding of the main and sub moving image data by the encoding circuit 109 and stops the accumulation of the encoded data in the buffer area of the memory 114 (S819). ). Then, the control circuit 116 writes the main moving image data and the sub moving image data remaining in the buffer area of the memory 114 to the host controller 112 (S820), updates the file system (S821), and then records. The operation ends. Note that since the size of data written by the write command in S820 does not match the unit size, the writing speed may be reduced. However, since the writing operation is already performed after the instruction to stop recording, there is no problem even if the writing performance is lowered.

このように、二つの動画データを同時に記録する場合、それぞれに適正な性能定義ユニットを組み合わせて記録することにより、それぞれのデータレートに対する書き込み性能を維持しながら安定的に動画の記録が行えるという効果がある。また、各動画データの書き込みタイミングが同期するように、性能定義ユニットを組み合わせて選択することにより、それぞれの動画データの記録タイミングが同じになるように書き込みできるので、システムの制御が容易になる。   In this way, when recording two moving image data at the same time, it is possible to record a moving image stably while maintaining the writing performance for each data rate by combining the appropriate performance definition units. There is. Further, by selecting the performance definition units in combination so that the writing timing of each moving image data is synchronized, the recording timing of each moving image data can be written so as to be the same, so that the control of the system becomes easy.

なお、本実施形態における動画データのデータレートは、実施形態に記載した以外の値を設定することも可能である。性能定義ユニットとして、図4のように規定されている場合は、動画データのレートを、一番低いレートの2倍、4倍に設定することにより、何れのレートの動画を記録する場合にも書き込みタイミングをそろえることが可能である。また、性能定義ユニットのユニットサイズが図4に示す値以外の場合には、各性能定義ユニットのユニットサイズの比に応じて、記録される動画データのレートを決めることで、書き込みタイミングをそろえることが可能である。   Note that the data rate of the moving image data in this embodiment can be set to a value other than that described in the embodiment. When the performance definition unit is defined as shown in FIG. 4, the video data rate is set to be twice or four times the lowest rate so that any rate of video can be recorded. It is possible to align the write timing. If the unit size of the performance definition unit is other than the values shown in FIG. 4, the write timing can be aligned by determining the rate of the moving image data to be recorded according to the unit size ratio of each performance definition unit. Is possible.

●(第2の実施形態)
次に、第2の実施形態を説明する。第1の実施形態では、性能定義ユニットとして、ユニットサイズ分のデータの書き込み及びFATの更新処理を決められた時間内に実行することが規定されていた。
● (Second Embodiment)
Next, a second embodiment will be described. In the first embodiment, the performance definition unit is defined to execute data writing and FAT update processing for a unit size within a predetermined time.

本実施形態では、メモリカード113に対して、データの書き込み処理と、管理情報の書き込み処理(FATの更新処理)とが、別の性能定義ユニットにより規定される。図10は、本実施形態のメモリカード113で定義されている性能定義ユニットによるアクセス条件を示す図である。それぞれ、性能定義ユニット5によるアクセス条件は、ユニットサイズ=16MB、Tuw=300msecであり、書き込み速度として53MB/secの性能を持つ。性能定義ユニット6によるアクセス条件は、ユニットサイズ=8MB、Tuw=180msecであり、書き込み速度として44MB/secの性能を持つ。性能定義ユニット7によるアクセス条件は、ユニットサイズ=4MB、Tuw=110msecであり、書き込み速度として36MB/secの性能を持つ。性能定義ユニット8によるアクセス条件は、ユニットサイズ=2MB、Tuw=80msecであり、書き込み速度として25MB/secの性能を持つ。また、性能定義ユニット9は、ファイルシステムの更新のためのアクセス条件を定義する。   In the present embodiment, a data write process and a management information write process (FAT update process) are defined for the memory card 113 by separate performance definition units. FIG. 10 is a diagram showing access conditions by the performance definition unit defined in the memory card 113 of this embodiment. The access conditions by the performance definition unit 5 are unit size = 16 MB, Tuw = 300 msec, and the write speed is 53 MB / sec. The access conditions by the performance definition unit 6 are unit size = 8 MB, Tuw = 180 msec, and the write speed is 44 MB / sec. The access conditions by the performance definition unit 7 are unit size = 4 MB, Tuw = 110 msec, and a writing speed of 36 MB / sec. The access conditions by the performance definition unit 8 are unit size = 2 MB, Tuw = 80 msec, and a performance of 25 MB / sec as a writing speed. The performance definition unit 9 defines access conditions for updating the file system.

本実施形態においても、デジタルビデオカメラ100の構成は第1の実施形態と同様である。以下、一つの動画データを記録する場合の動作を説明する。本実施形態では、図10のように、FAT更新のための性能定義ユニットが定義されている。そのため、動画データの1回の書き込み毎にFAT更新を行う以外に、複数回の動画書き込み毎にFAT更新を実行するように構成することも可能である。この場合、FAT更新の実行タイミング以外においては、選択された性能定義ユニットにおけるユニットサイズ分の動画データの書き込みが連続して実行される。   Also in this embodiment, the configuration of the digital video camera 100 is the same as that of the first embodiment. The operation when recording one moving image data will be described below. In this embodiment, as shown in FIG. 10, a performance definition unit for updating the FAT is defined. Therefore, in addition to performing FAT update for each writing of moving image data, it is also possible to perform FAT updating for each moving image writing. In this case, the writing of moving image data for the unit size in the selected performance definition unit is continuously executed except for the FAT update execution timing.

本実施形態において、ユーザにより、記録される動画の画面サイズ、データレート及び記録形式が設定されると図5(a)の処理が実行される。制御回路116は、設定された記録形式により、一つの動画を記録するか、或いは、二つの動画を同時に記録するかを判別する(S501)。一つの動画を記録する設定の場合、制御回路116は、ユーザの設定に基づいて、画像サイズ設定回路202に画面サイズを設定し、データレート設定回路203に動画のデータレートを設定する(S502)。次に、ユニットサイズ設定回路204は、設定された記録形式と動画のデータレートに基づき、ユニットサイズを算出し、設定する(S503)。具体的には、設定された動画のデータレートを上回る書き込み速度を持つ性能定義ユニットによるユニットサイズが設定される。例えば、本実施形態では、動画データのデータレートとして50MB/秒が設定された場合を説明する。この場合、図10に示す性能定義ユニットのうち、これを上回る書き込み速度を持つ性能定義ユニット5によるユニットサイズ16MBが設定される。   In the present embodiment, when the screen size, data rate, and recording format of a moving image to be recorded are set by the user, the processing in FIG. 5A is executed. The control circuit 116 determines whether to record one moving image or two moving images simultaneously according to the set recording format (S501). In the case of setting to record one moving image, the control circuit 116 sets the screen size in the image size setting circuit 202 and sets the data rate of the moving image in the data rate setting circuit 203 based on the user setting (S502). . Next, the unit size setting circuit 204 calculates and sets the unit size based on the set recording format and moving image data rate (S503). Specifically, a unit size is set by a performance definition unit having a writing speed exceeding the set moving image data rate. For example, in this embodiment, a case where 50 MB / second is set as the data rate of moving image data will be described. In this case, among the performance definition units shown in FIG. 10, a unit size of 16 MB is set by the performance definition unit 5 having a writing speed exceeding this.

さらに、制御回路116は、ファイルシステム更新設定回路205にファイルシステム更新の頻度を設定する(S504)。本実施形態では、ユニットサイズの動画データの書き込みを3回実行する度にFATを更新するように設定する。なお、FATの更新間隔を長くするほど記録する動画データのレートを高くすることができるが、記録中にバッテリが外れた等により瞬断が発生した場合に、正常に再生できない動画の長さが長くなる。   Further, the control circuit 116 sets the file system update frequency in the file system update setting circuit 205 (S504). In the present embodiment, the setting is made so that the FAT is updated every time writing of unit-size moving image data is executed three times. Note that the longer the FAT update interval, the higher the rate of the moving image data to be recorded. However, if a momentary interruption occurs due to the battery being removed during recording, the length of the moving image that cannot be normally reproduced is increased. become longer.

次に、バッファ領域設定回路206は、設定されたユニットサイズから、記録時に必要となるバッファ領域のサイズを設定する。そして、設定したサイズの領域を、動画データのためのバッファメモリ領域としてメモリ114内に確保する(S505)。性能定義ユニット6によれば、ユニットサイズ(Uz)が16MBなので、バッファ領域としては16MBより大きいサイズが確保される。また、メモリカード113に対する、動画データの書き込みタイミングを決めるために用いられる、バッファメモリ領域のデータ蓄積量の閾値Tとして、ユニットサイズを設定する。   Next, the buffer area setting circuit 206 sets the size of the buffer area required for recording from the set unit size. Then, an area of the set size is secured in the memory 114 as a buffer memory area for moving image data (S505). According to the performance definition unit 6, since the unit size (Uz) is 16 MB, a size larger than 16 MB is secured as the buffer area. In addition, a unit size is set as a threshold value T for the amount of data stored in the buffer memory area, which is used to determine the timing for writing moving image data to the memory card 113.

次に、本実施形態における動画データの記録処理を説明する。図11は、本実施形態の記録処理を示すフローチャートである。また、図12は、記録開始後の、バッファ領域に記憶された動画データとメモリカード113に書き込まれるデータ及びファイルシステムの更新動作を示す図である。なお、図12は、前述の様に、性能定義ユニット6が選択され、更に、動画データの3回の書き込み毎にFAT更新が行われる場合を示している。   Next, moving image data recording processing according to the present embodiment will be described. FIG. 11 is a flowchart showing the recording process of the present embodiment. FIG. 12 is a diagram showing the update operation of the moving image data stored in the buffer area, the data written to the memory card 113, and the file system after the start of recording. FIG. 12 shows a case where the performance definition unit 6 is selected as described above, and further, FAT update is performed every three writing of moving image data.

記録待機状態において、ユーザが操作回路115を操作して記録開始を指示すると、撮像素子103からの動画データが画像処理回路105で処理され、フレームメモリ106に記憶される。画像サイズ変換回路108は、フレームメモリ106に記憶された動画データの各画面のサイズを、画像サイズ設定回路202で設定された画像サイズになるように変換し、メモリ114に記憶する。符号化回路109は、メモリ114に記憶された動画データを読み出して符号化し、バッファ領域設定回路206で設定されたメモリ114上のバッファ領域に記憶していく。このとき、符号化回路109は、符号化された動画データのデータレートが、設定されたデータレートにより決められた上限のレートを超えないように符号化する(S1101)。   In the recording standby state, when the user operates the operation circuit 115 to give an instruction to start recording, the moving image data from the image sensor 103 is processed by the image processing circuit 105 and stored in the frame memory 106. The image size conversion circuit 108 converts the size of each screen of the moving image data stored in the frame memory 106 so as to be the image size set by the image size setting circuit 202 and stores it in the memory 114. The encoding circuit 109 reads and encodes the moving image data stored in the memory 114 and stores it in the buffer area on the memory 114 set by the buffer area setting circuit 206. At this time, the encoding circuit 109 performs encoding so that the data rate of the encoded moving image data does not exceed the upper limit rate determined by the set data rate (S1101).

次に、制御回路116は、バッファ領域に蓄積された、未記録の動画データのデータ量が、閾値Tに達したか否かを判別する(S1102)。バッファ領域に蓄積された動画データのデータ量が閾値Tを超えた場合、制御回路116は、ホストコントローラ112に対して、ユニットサイズUz分のデータ、ここでは16MBのデータを書き込むように指示する。ホストコントローラ112は、メモリカード113に対して書き込みコマンドを発行し、メモリ114上のバッファ領域から、指示されたユニットサイズ分の動画データをメモリカードへ書き込む(S1103)。この書き込み処理は、図12のメモリカード動作におけるiの期間で示されている。   Next, the control circuit 116 determines whether or not the amount of unrecorded moving image data accumulated in the buffer area has reached a threshold value T (S1102). When the data amount of the moving image data accumulated in the buffer area exceeds the threshold value T, the control circuit 116 instructs the host controller 112 to write data for the unit size Uz, here, 16 MB. The host controller 112 issues a write command to the memory card 113, and writes moving image data for the designated unit size from the buffer area on the memory 114 to the memory card (S1103). This writing process is shown in the period i in the memory card operation of FIG.

1回の書き込みが完了すると、制御回路116は、連続したN回、ここでは3回の書き込みが完了したか否かを判別する(S1104)。N回の書き込みが完了していない場合、S1103に戻り、制御回路116は、ホストコントローラ112に対して、再度、ユニットサイズ分の動画データの書き込みを指示する。   When one writing is completed, the control circuit 116 determines whether or not the writing has been completed N times, in this case, three times (S1104). If N times of writing have not been completed, the process returns to S1103, and the control circuit 116 instructs the host controller 112 to write moving image data for the unit size again.

このように、N回の書き込みが完了すると、制御回路116は、ファイルシステムの更新を実行するように、ホストコントローラ112に指示する(S1105)。このファイルシステム更新動作は、図12のメモリカード動作におけるjで示した期間に行われる。ファイルシステムの更新が完了すると、制御回路116は、記録停止の指示を判別する(S1106)。記録停止の指示が無い場合はS1102に戻る。即ち、FAT更新後、再度、バッファ領域に蓄積された動画データのデータ量が閾値Tに達した時点で、メモリカード113に対する動画データの書き込みが開始される。   Thus, when N times of writing are completed, the control circuit 116 instructs the host controller 112 to execute the file system update (S1105). This file system update operation is performed during the period indicated by j in the memory card operation of FIG. When the update of the file system is completed, the control circuit 116 determines a recording stop instruction (S1106). If there is no instruction to stop recording, the process returns to S1102. That is, writing of moving image data to the memory card 113 is started when the data amount of moving image data accumulated in the buffer area reaches the threshold T again after the FAT update.

このように、一つのユニットサイズ分の動画データの書き込みは300msec以内に完了することが保証されるので、3回連続でユニットサイズ分の動画の書き込みが実行されることで、16x3=48MBが900msecで書きこまれることが保証される。また、ファイルシステム更新は、性能定義ユニット9により20msec以内に完了することが保証されている。   As described above, writing of moving image data for one unit size is guaranteed to be completed within 300 msec, so that writing of moving images for the unit size is executed three times in succession, so that 16 × 3 = 48 MB is 900 msec. Is guaranteed to be written in. The file system update is guaranteed to be completed within 20 msec by the performance definition unit 9.

そのため、3回連続して16MBの動画データの書き込みを実行した後にFATを更新した場合でも、バッファ領域に蓄積されるデータ量は16MBを超えることはなく、バッファがオーバーフローすることが無い。そのため、動画データの記録が停止されることが無いことを示している。   Therefore, even when the FAT is updated after writing 16 MB of moving image data three times in succession, the amount of data stored in the buffer area does not exceed 16 MB, and the buffer does not overflow. Therefore, it indicates that the recording of moving image data is not stopped.

ユーザにより記録停止が指示された場合、制御回路116は、符号化回路109による動画データの符号化を停止するとともに、メモリ114に対する符号化データの蓄積を停止する(S1107)。そして、制御回路116は、ホストコントローラ112に対し、バッファ領域に残っている動画データの書き込み動作を行い(S1108)、ファイルシステム更新を行った後(S1109)、記録動作が終了する。   When the user gives an instruction to stop recording, the control circuit 116 stops encoding moving image data by the encoding circuit 109 and stops storing encoded data in the memory 114 (S1107). Then, the control circuit 116 writes the moving image data remaining in the buffer area to the host controller 112 (S1108), updates the file system (S1109), and ends the recording operation.

このように、本実施形態では、データの書き込みとFAT更新のアクセス条件が別の性能定義ユニットにより規定される。そして、FAT更新の頻度を適宜設定することで、動画データのレートを、性能定義ユニットで定義される書き込み速度に近いレートに設定することが可能となる。   As described above, in this embodiment, access conditions for data writing and FAT update are defined by separate performance definition units. Then, by appropriately setting the frequency of FAT update, it is possible to set the rate of moving image data to a rate close to the writing speed defined by the performance definition unit.

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

Claims (9)

動画データを生成する処理手段と、
記録媒体に対して書き込みコマンドを出力することにより、前記動画データを前記記録媒体に書き込む記録手段と、
複数の所定のデータ量から、1回の前記書き込みコマンドによって前記記録媒体に書き込まれる動画データのデータ量を設定し、前記設定したデータ量の動画データを1回の前記書き込みコマンドにより前記記録媒体に書き込むように前記記録手段を制御する制御手段と、
所定のファイルシステムに従い、前記記録媒体に記録された動画データをファイルとして管理する管理手段と、を有し、
前記複数の所定のデータ量それぞれについて、前記記録媒体の書き込み速度と、1回の前記書き込みコマンドによるデータの書き込みのための実行時間とが、前記記録媒体に規定されており、
前記記録手段は、前記ファイルシステムに対応した管理情報を前記記録媒体に記録し、前記書き込みコマンドよるデータの書き込みのための実行時間には、前記管理情報を前記記録媒体に記録するための時間が含まれていることを特徴とする記録装置。
Processing means for generating video data;
Recording means for writing the moving image data to the recording medium by outputting a write command to the recording medium;
A data amount of moving image data written to the recording medium by one write command is set from a plurality of predetermined data amounts, and the moving image data having the set data amount is set on the recording medium by one write command. Control means for controlling the recording means to write;
In accordance with a predetermined file system, has a management means for managing the moving image data recorded on the recording medium as a file,
For each of the plurality of predetermined data amounts, a writing speed of the recording medium and an execution time for writing data by one writing command are defined in the recording medium,
The recording means records management information corresponding to the file system on the recording medium, and an execution time for writing data by the write command includes a time for recording the management information on the recording medium. record apparatus shall be the feature that it contains.
動画データを生成する処理手段と、
記録媒体に対して書き込みコマンドを出力することにより、前記動画データを前記記録媒体に書き込む記録手段と、
複数の所定のデータ量から、1回の前記書き込みコマンドによって前記記録媒体に書き込まれる動画データのデータ量を設定し、前記設定したデータ量の動画データを1回の前記書き込みコマンドにより前記記録媒体に書き込むように前記記録手段を制御する制御手段と、
所定のファイルシステムに従い、前記記録媒体に記録された動画データをファイルとして管理する管理手段と、を有し、
前記複数の所定のデータ量それぞれについて、前記記録媒体の書き込み速度と、1回の前記書き込みコマンドによるデータの書き込みのための実行時間とが、前記記録媒体に規定されており、
前記記録手段は、
前記ファイルシステムに対応した管理情報を前記記録媒体に記録し、
前記記録媒体に対して更新を指示するコマンドを出力することにより前記記録媒体に前記管理情報を記録し、
1回の前記更新を指示するコマンドによる前記管理情報の記録のための実行時間が、前記記録媒体に規定されていることを特徴とする記録装置。
Processing means for generating video data;
Recording means for writing the moving image data to the recording medium by outputting a write command to the recording medium;
A data amount of moving image data written to the recording medium by one write command is set from a plurality of predetermined data amounts, and the moving image data having the set data amount is set on the recording medium by one write command. Control means for controlling the recording means to write;
In accordance with a predetermined file system, has a management means for managing the moving image data recorded on the recording medium as a file,
For each of the plurality of predetermined data amounts, a writing speed of the recording medium and an execution time for writing data by one writing command are defined in the recording medium,
The recording means includes
Management information corresponding to the file system is recorded on the recording medium,
Recording the management information on the recording medium by outputting a command to instruct the updating to the recording medium;
Run time for recording the management information by the command for instructing one of the updates, characterized in that it is defined in the recording medium record device.
前記所定のデータ量が大きいほど高速な前記書き込み速度、または短い前記実行時間が前記記録媒体に対して規定されていることを特徴とする請求項1または請求項2に記載の記録装置。 The recording apparatus according to claim 1 , wherein the larger the predetermined amount of data, the faster the writing speed or the shorter execution time is defined for the recording medium. 前記処理手段により生成される動画データのデータレートを設定する設定手段をさらに有し、
前記制御手段は、前記動画データのデータレートに応じて、前記複数の所定のデータ量から、1回の前記書き込みコマンドによって前記記録媒体に書き込まれる動画データのデータ量を設定することを特徴とする請求項1または請求項2に記載の記録装置。
A setting unit for setting a data rate of the moving image data generated by the processing unit;
The control means sets a data amount of moving image data written to the recording medium by one write command from the plurality of predetermined data amounts according to a data rate of the moving image data. The recording apparatus according to claim 1 or 2 .
前記記録手段は、二つの動画データを同時に前記記録媒体に記録するモードを備え、
前記制御手段は、前記モードにおいて同時に記録される前記二つの動画データのデータレートに応じて、前記二つの動画データをそれぞれ記録するために、1回の前記書き込みコマンドによって前記記録媒体に書き込まれる動画データのデータ量を設定することを特徴とする請求項に記載の記録装置。
The recording means includes a mode for simultaneously recording two moving image data on the recording medium,
The control means is configured to record a moving image written on the recording medium by a single write command in order to record the two moving image data in accordance with a data rate of the two moving image data recorded simultaneously in the mode. The recording apparatus according to claim 4 , wherein a data amount of data is set.
動画データを生成する処理手段と、
記録媒体に対して書き込みコマンドを出力することにより、前記動画データを前記記録媒体に書き込む記録手段と、
所定のファイルシステムに従い、前記記録媒体に記録された動画データをファイルとして管理する管理手段と、を有する記録装置の制御方法であって、
複数の所定のデータ量から、1回の前記書き込みコマンドによって前記記録媒体に書き込まれる動画データのデータ量を設定し、前記設定したデータ量の動画データを1回の前記書き込みコマンドにより前記記録媒体に書き込むように制御手段が前記記録手段を制御する制御ステップを有し、
前記複数の所定のデータ量それぞれについて、前記記録媒体の書き込み速度と、1回の前記書き込みコマンドによるデータの書き込みのための実行時間とが、前記記録媒体に規定されており、
前記記録手段は、前記ファイルシステムに対応した管理情報を前記記録媒体に記録し、前記書き込みコマンドよるデータの書き込みのための実行時間には、前記管理情報を前記記録媒体に記録するための時間が含まれていることを特徴とする記録装置の制御方法。
Processing means for generating video data;
Recording means for writing the moving image data to the recording medium by outputting a write command to the recording medium;
A management unit for managing moving image data recorded on the recording medium as a file according to a predetermined file system ,
A data amount of moving image data written to the recording medium by one write command is set from a plurality of predetermined data amounts, and the moving image data having the set data amount is set on the recording medium by one write command. control means to write that have a control step for controlling the recording device,
For each of the plurality of predetermined data amounts, a writing speed of the recording medium and an execution time for writing data by one writing command are defined in the recording medium,
The recording means records management information corresponding to the file system on the recording medium, and an execution time for writing data by the write command includes a time for recording the management information on the recording medium. control method for a recording apparatus, characterized in that it contains.
動画データを生成する処理手段と、Processing means for generating video data;
記録媒体に対して書き込みコマンドを出力することにより、前記動画データを前記記録媒体に書き込む記録手段と、  Recording means for writing the moving image data to the recording medium by outputting a write command to the recording medium;
所定のファイルシステムに従い、前記記録媒体に記録された動画データをファイルとして管理する管理手段と、を有する記録装置の制御方法であって、  A management unit for managing moving image data recorded on the recording medium as a file according to a predetermined file system,
複数の所定のデータ量から、1回の前記書き込みコマンドによって前記記録媒体に書き込まれる動画データのデータ量を設定し、前記設定したデータ量の動画データを1回の前記書き込みコマンドにより前記記録媒体に書き込むように制御手段が前記記録手段を制御する制御ステップを有し、  A data amount of moving image data written to the recording medium by one write command is set from a plurality of predetermined data amounts, and the moving image data having the set data amount is set on the recording medium by one write command. The control means has a control step for controlling the recording means to write,
前記複数の所定のデータ量それぞれについて、前記記録媒体の書き込み速度と、1回の前記書き込みコマンドによるデータの書き込みのための実行時間とが、前記記録媒体に規定されており、  For each of the plurality of predetermined data amounts, a writing speed of the recording medium and an execution time for writing data by one writing command are defined in the recording medium,
前記記録手段は、  The recording means includes
前記ファイルシステムに対応した管理情報を前記記録媒体に記録し、    Management information corresponding to the file system is recorded on the recording medium,
前記記録媒体に対して更新を指示するコマンドを出力することにより前記記録媒体に前記管理情報を記録し、    Recording the management information on the recording medium by outputting a command to instruct the updating to the recording medium;
1回の前記更新を指示するコマンドによる前記管理情報の記録のための実行時間が、前記記録媒体に規定されていることを特徴とする記録装置の制御方法。  An execution time for recording the management information by a command for instructing one update is defined in the recording medium.
動画データを生成する処理手段と、
記録媒体に対して書き込みコマンドを出力することにより、前記動画データを前記記録媒体に書き込む記録手段と、
所定のファイルシステムに従い、前記記録媒体に記録された動画データをファイルとして管理する管理手段と、を有する記録装置のコンピュータを、請求項1乃至請求項のいずれか1項に記載の記録装置の、前記処理手段および前記記録手段を除く各手段として機能させるためのプログラム。
Processing means for generating video data;
Recording means for writing the moving image data to the recording medium by outputting a write command to the recording medium;
According to a predetermined file system, said management means for managing the moving image data recorded on the recording medium as a file, the computer of the recording apparatus having the recording apparatus according to any one of claims 1 to 5 , A program for functioning as each means excluding the processing means and the recording means.
請求項に記載のプログラムを格納した、コンピュータが読み取り可能な記録媒体。 A computer-readable recording medium storing the program according to claim 8 .
JP2013268610A 2013-12-26 2013-12-26 Recording apparatus and control method thereof Active JP6373002B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2013268610A JP6373002B2 (en) 2013-12-26 2013-12-26 Recording apparatus and control method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2013268610A JP6373002B2 (en) 2013-12-26 2013-12-26 Recording apparatus and control method thereof

Publications (3)

Publication Number Publication Date
JP2015126323A JP2015126323A (en) 2015-07-06
JP2015126323A5 JP2015126323A5 (en) 2017-02-09
JP6373002B2 true JP6373002B2 (en) 2018-08-15

Family

ID=53536767

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2013268610A Active JP6373002B2 (en) 2013-12-26 2013-12-26 Recording apparatus and control method thereof

Country Status (1)

Country Link
JP (1) JP6373002B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113342155A (en) * 2020-02-18 2021-09-03 浙江宇视科技有限公司 Data storage method, device, equipment and storage medium

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4392601B2 (en) * 2004-05-07 2010-01-06 パナソニック株式会社 Data access device and recording medium
JP2008176455A (en) * 2007-01-17 2008-07-31 Matsushita Electric Ind Co Ltd Information recorder, controller, access device, and access speed guaranteeing system
JP2013225760A (en) * 2012-04-20 2013-10-31 Sony Corp Recording apparatus, imaging and recording apparatus, recording method, and program

Also Published As

Publication number Publication date
JP2015126323A (en) 2015-07-06

Similar Documents

Publication Publication Date Title
JP6356970B2 (en) Recording apparatus and control method of recording apparatus
JP6137980B2 (en) Recording apparatus and control method thereof
JP6784626B2 (en) Recording device, control method, and program
JP2016220003A (en) Moving image generation device, moving image generation method, and program
JP6784631B2 (en) Recording / playback device, control method of recording / playback device, and program
US20140241697A1 (en) Recording apparatus, recording method, and program
JP6373002B2 (en) Recording apparatus and control method thereof
JP2016009280A (en) Recording device
US10439619B2 (en) Recording apparatus, control method, and storage medium
JP6417094B2 (en) RECORDING / REPRODUCING DEVICE, RECORDING / REPRODUCING DEVICE CONTROL METHOD, AND COMPUTER PROGRAM
JP6356972B2 (en) RECORDING DEVICE, IMAGING DEVICE, AND RECORDING DEVICE CONTROL METHOD
JP6857066B2 (en) Recording / playback device, control method of recording / playback device, and program
US10950274B2 (en) Image recording apparatus, method for controlling same, and non-transitory computer-readable storage medium
JP7171337B2 (en) IMAGING DEVICE, IMAGE RECORDING METHOD AND PROGRAM
JP6066718B2 (en) Imaging apparatus, control method thereof, and program
JP2020091696A (en) Recording and reproducing apparatus
JP2017022559A (en) Recording device and control method for recording device
JP6023512B2 (en) Recording apparatus and method
JP6112972B2 (en) Imaging device
JP2018201102A (en) Imaging apparatus
JP2008103924A (en) Imaging apparatus
JP6504927B2 (en) Recording apparatus and control method of recording apparatus
JP2014207613A (en) Imaging apparatus and imaging method
JP2021013064A (en) Recording device, recording method, and program
JP2005333437A (en) Image photographing apparatus

Legal Events

Date Code Title Description
A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20161226

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20161226

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20171025

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20171117

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20180112

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20180717

R151 Written notification of patent or utility model registration

Ref document number: 6373002

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151