JP7418105B2 - Recording device, control method, and program - Google Patents
Recording device, control method, and program Download PDFInfo
- Publication number
- JP7418105B2 JP7418105B2 JP2019158668A JP2019158668A JP7418105B2 JP 7418105 B2 JP7418105 B2 JP 7418105B2 JP 2019158668 A JP2019158668 A JP 2019158668A JP 2019158668 A JP2019158668 A JP 2019158668A JP 7418105 B2 JP7418105 B2 JP 7418105B2
- Authority
- JP
- Japan
- Prior art keywords
- recording
- recording medium
- automatic background
- execution
- background processing
- 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
Links
Images
Landscapes
- Studio Devices (AREA)
Description
本発明は、記録装置、制御方法、及びプログラムに関する。 The present invention relates to a recording device, a control method, and a program.
撮像装置の記録メディアとして、NAND型フラッシュメモリが広く採用されている。NAND型フラッシュメモリは、最小単位としてデータを格納する「セル」、複数のセルから構成された「ページ」、複数のページから構成された「ブロック」という単位で構成される。1セルあたり1ビットの情報を記録する方式をSLC方式(Single Level Cell)と呼び、1セルあたり2ビットの情報を記録する方式をMLC方式(Multi Level Cell)と呼ぶ。また、1セルあたり3ビットの情報を記録する方式をTLC方式(Triple Level Cell)と呼ぶ。 NAND flash memories are widely used as recording media for imaging devices. A NAND flash memory is configured in units of a "cell" which stores data as a minimum unit, a "page" made up of a plurality of cells, and a "block" made up of a plurality of pages. A method of recording 1 bit of information per cell is called an SLC method (Single Level Cell), and a method of recording 2 bits of information per cell is called an MLC method (Multi Level Cell). Further, a method of recording 3 bits of information per cell is called a TLC method (Triple Level Cell).
SLC方式は、読み書き速度が最も高く、短時間に大量のデータを書き込むのに適しているが、ビット当たりの単価が高い。また、1セルあたりの容量は少ないが信頼性が高く寿命も長いため、一般的なストレージのキャッシュ領域又は産業機器ストレージの用途で使用されている。MLC方式及びTLC方式は、読み書き速度、信頼性、寿命がSLC方式と比較して劣っている。一方、1セルあたりの容量は、MLC方式ではSLC方式の2倍、TLC方式ではSLC方式の3倍であり、ビットあたりの単価が安いため、一般的なNAND型フラッシュメモリストレージとして広く使用されている。 The SLC method has the highest read/write speed and is suitable for writing large amounts of data in a short period of time, but the unit cost per bit is high. In addition, although the capacity per cell is low, it is highly reliable and has a long life, so it is used for general storage cache areas or industrial equipment storage. The MLC method and the TLC method are inferior to the SLC method in read/write speed, reliability, and lifespan. On the other hand, the capacity per cell in the MLC method is twice that of the SLC method, and the TLC method is three times that of the SLC method, and the unit price per bit is low, so it is widely used as a general NAND flash memory storage. There is.
NAND型フラッシュメモリを使用したSSD(Solid State Drive)やカード型メディアは、SLC方式とTLC方式とを組み合わせた構成をとることが多い。この場合、メモリコントローラは、SLC方式として使用する領域をキャッシュ領域として、TLC方式として使用する領域を主たるデータ領域として管理する。メモリコントローラは、ホストコントローラから転送されてくるデータをキャッシュ領域へ書き込むことで、トップスピードでの書き込み可能となる。 SSDs (Solid State Drives) and card-type media using NAND flash memory often have a configuration that combines the SLC method and the TLC method. In this case, the memory controller manages the area used for the SLC method as a cache area and the area used for the TLC method as a main data area. The memory controller can write data transferred from the host controller to the cache area at top speed.
キャッシュ領域であるSLC方式の領域は、全体の容量の中の比率が低い。そのため、メモリコントローラは、書き込みが停止している期間に次の書き込みに備え、キャッシュ領域における空き領域を確保するために、キャッシュ領域から主たるデータ領域であるTLC方式の領域へとデータを移動する。これをフラッシュキャッシュと呼ぶ。 The SLC type area, which is a cache area, has a low proportion of the total capacity. Therefore, the memory controller moves data from the cache area to the TLC area, which is the main data area, in order to secure free space in the cache area in preparation for the next write while writing is stopped. This is called flash cache.
SLC方式の領域をキャッシュ領域として使用することでトップスピードでの書き込みが実現する。そして、フラッシュキャッシュによりTLC方式の領域へデータを移動することにより、SLC方式の領域確保とNAND型フラッシュメモリ全体の容量の有効活用が可能となる。 Writing at top speed is achieved by using the SLC area as a cache area. By moving data to the TLC area using the flash cache, it becomes possible to secure the SLC area and effectively utilize the entire capacity of the NAND flash memory.
また、NAND型フラッシュメモリは、データ消去単位はブロック毎に制限され、かつ既存データへの上書きができない特性を持つ。ホストコントローラからNAND型フラッシュメモリ内のファイルが削除されると、メモリコントローラは内部ファイルテーブルに削除を記録する。削除されたファイルが記録されていたブロックには不要データが残り、断片化されたブロックとなる。 Furthermore, the NAND flash memory has the characteristic that the data erasing unit is limited to each block, and existing data cannot be overwritten. When a file in the NAND flash memory is deleted by the host controller, the memory controller records the deletion in an internal file table. Unnecessary data remains in the block where the deleted file was recorded, resulting in a fragmented block.
断片化されたブロックは、新たなデータを上書きできない領域として残ってしまう。そのため、メモリコントローラは、ブロック内の有効なデータを他のブロックへ退避し、現行のブロックのデータを消去し、新たなデータの記録領域として回復する。これをガベージコレクションという。 Fragmented blocks remain as areas that cannot be overwritten with new data. Therefore, the memory controller saves valid data in the block to another block, erases the data in the current block, and recovers it as a new data recording area. This is called garbage collection.
メモリコントローラによる定期的なフラッシュキャッシュ及びガベージコレクションの実施により、撮像装置の記録メディアとして、大容量静止画の連写に耐えうる書き込み速度の回復、及び、書き込み容量の最大化が期待できる。 By periodically performing flash caching and garbage collection by the memory controller, it is expected that the writing speed will be restored to be able to withstand continuous shooting of large-capacity still images as a recording medium for an imaging device, and the writing capacity will be maximized.
メモリコントローラによるフラッシュキャッシュ及びガベージコレクションの処理を、ホストコントローラからの書き込み・読み出しのメイン処理が無い時間にバックグラウンド処理として実施する技術が提案されている(特許文献1参照)。 A technique has been proposed in which flash cache and garbage collection processing by a memory controller is performed as background processing when there is no main write/read processing from the host controller (see Patent Document 1).
ところで、撮像装置の記録メディアには、動画記録のようにリアルタイムに生成されるデータを定期的に長時間記録するリアルタイムタスク処理に対する要求もある。この場合、ホストコントローラとなる撮像装置は、定期的なリアルタイムデータの記録と記録との間に省電期間を設けることでNAND型フラッシュメモリの発熱を抑え、長時間記録に耐えうる電力管理が必要となる。 By the way, there is also a demand for real-time task processing in which data generated in real time is periodically recorded for a long time, such as in video recording, for recording media of imaging devices. In this case, the imaging device that serves as the host controller needs to have power management that can withstand long-term recording by setting a power-saving period between regular real-time data recordings to suppress the heat generation of the NAND flash memory. becomes.
しかしながら、省電期間として期待する、メイン処理がない期間にメモリコントローラがバックグラウンド処理を開始してしまうと、NAND型フラッシュメモリは省電期間なしに電力を消費することとなり、記録メディアの発熱が大きくなる。その結果、記録が停止してしまうなどの問題が発生する可能性がある。 However, if the memory controller starts background processing during a period when there is no main processing, which is expected as a power-saving period, the NAND flash memory will consume power without the power-saving period, and the recording media will generate heat. growing. As a result, problems such as recording stopping may occur.
一方で、バックグラウンド処理を禁止すると、記録メディアの発熱が低減されるため発熱による記録の停止を回避することができるが、記録メディアの最適化が実行されないため、書き込み速度の回復、及び、書き込み容量の最大化が期待できない。 On the other hand, if background processing is prohibited, the heat generated by the recording media will be reduced, and recording stops due to heat generation can be avoided, but the recording media will not be optimized, so the writing speed will not be restored and the writing speed will not be restored. Maximization of capacity cannot be expected.
本発明はこのような状況に鑑みてなされたものであり、記録媒体での省電期間における自動バックグラウンド処理の実行を許可するか否かを適切に制御する技術を提供することを目的とする。 The present invention has been made in view of this situation, and an object of the present invention is to provide a technology for appropriately controlling whether or not to permit automatic background processing to be executed during a power saving period in a recording medium. .
上記課題を解決するために、本発明の記録装置は、
フラッシュメモリを用いた記録媒体に画像を記録するように制御する記録制御手段と、記録媒体での省電期間における自動バックグラウンド処理の実行を許可するか否かを、所定の条件を満たすか否かに応じて切り替えるように制御する制御手段と、を備え、制御手段は、記録制御手段による記録媒体への画像の記録中に、所定の条件を満たすか否かに応じて、自動バックグラウンド処理の実行を許可するか否かを切り替えるように制御することを特徴とする。
In order to solve the above problems, the recording device of the present invention includes:
A recording control means for controlling recording of an image on a recording medium using a flash memory , and whether or not to permit execution of automatic background processing during a power saving period on the recording medium, depending on whether predetermined conditions are met. and a control means for controlling automatic background processing depending on whether or not a predetermined condition is satisfied while the recording control means is recording an image on a recording medium. The feature is that control is performed to switch whether or not to permit execution.
または、
フラッシュメモリを用いた複数の記録媒体のうち、記録先に設定されている記録媒体に画像を記録するように制御する記録制御手段と、複数の記録媒体での、省電期間における自動バックグラウンド処理の実行を許可するか否かを制御する制御手段と、を備え、制御手段は、複数の記録媒体のうち、記録先として設定されている記録媒体については、自動バックグラウンド処理の実行を許可しないように制御し、記録先として設定されていない記録媒体については、自動バックグラウンド処理の実行を許可するように制御する、ことを特徴とする。
or
A recording control means that controls recording of an image on a recording medium set as a recording destination among multiple recording media using flash memory , and automatic background processing during a power saving period on multiple recording media. control means for controlling whether to permit execution of the automatic background processing, and the control means does not permit execution of automatic background processing for a recording medium that is set as a recording destination among the plurality of recording media. The present invention is characterized in that it is controlled so as to permit execution of automatic background processing for recording media that are not set as recording destinations.
本発明によれば、記録媒体での省電期間における自動バックグラウンド処理の実行を許可するか否かを適切に制御することが可能となる。 According to the present invention, it is possible to appropriately control whether or not to permit execution of automatic background processing during the power saving period on a recording medium.
なお、本発明のその他の特徴及び利点は、添付図面及び以下の発明を実施するための形態における記載によって更に明らかになるものである。 Note that other features and advantages of the present invention will become more apparent from the accompanying drawings and the description in the following detailed description.
以下、添付図面を参照して実施形態を詳しく説明する。尚、以下の実施形態は特許請求の範囲に係る発明を限定するものでない。実施形態には複数の特徴が記載されているが、これらの複数の特徴の全てが発明に必須のものとは限らず、また、複数の特徴は任意に組み合わせられてもよい。さらに、添付図面においては、同一若しくは同様の構成に同一の参照番号を付し、重複した説明は省略する。 Hereinafter, embodiments will be described in detail with reference to the accompanying drawings. Note that the following embodiments do not limit the claimed invention. Although a plurality of features are described in the embodiments, not all of these features are essential to the invention, and the plurality of features may be arbitrarily combined. Furthermore, in the accompanying drawings, the same or similar components are designated by the same reference numerals, and redundant description will be omitted.
[第1の実施形態]
図1は、記録装置の一例である撮像装置100の構成を模式的に示す図である。図1において、撮像装置内部バス101に対して、レンズ部102、撮像部103、表示部104、操作部105、撮像装置温度検出部106、放熱ファン107、及びCPU108が接続されている。また、撮像装置内部バス101に対して、画像処理部109、第1のメディア制御部110、第2のメディア制御部111、RAM112、不揮発性メモリ113、及び電源部114が接続されている。撮像装置内部バス101に接続されている各部は、撮像装置内部バス101を介して互いにデータのやり取りを行うことができるように構成されている。
[First embodiment]
FIG. 1 is a diagram schematically showing the configuration of an
CPU108は、例えば不揮発性メモリ113に格納されるプログラムに従い、RAM112をワークメモリとして用いて、撮像装置100の各部を制御する。
The
不揮発性メモリ113には、画像データや音声データ、その他のデータ、CPU108が動作するための各種プログラムなどが格納される。不揮発性メモリ113は例えばハードディスク(HD)やROMなどで構成される。
The
画像処理部109は、CPU108の制御に基づいて、不揮発性メモリ113やRAM112に格納された画像データや、レンズ部102を通して入射した被写体光学像を撮像部103で撮像した画像データなどに対して、各種画像処理を施す。画像処理部109が行う画像処理には、A/D変換処理、D/A変換処理、画像データのエンコード処理、圧縮処理、デコード処理、拡大/縮小処理(リサイズ)、ノイズ低減処理、色変換処理などが含まれる。画像処理部109は特定の画像処理を施すための専用の回路ブロックで構成してもよい。また、画像処理の種別によっては画像処理部109を用いずにCPU108がプログラムに従って画像処理を施すことも可能である。
Under the control of the
表示部104は、CPU108の制御に基づいて、画像やGUI(Graphical User Interface)を構成するGUI画面などを表示する。CPU108は、プログラムに従い表示制御信号を生成し、表示部104に表示するための映像信号を生成して表示部104に出力するように撮像装置100の各部を制御する。表示部104は出力された映像信号に基づいて映像を表示する。なお、撮像装置100自体が備える構成としては表示部104に表示させるための映像信号を出力するためのインタフェースまでとし、表示部104は外付けのモニタ(テレビなど)で構成してもよい。
The
操作部105は、キーボードなどの文字情報入力デバイスや、マウスやタッチパネルといったポインティングデバイス、ボタン、ダイヤル、ジョイスティック、タッチセンサ、タッチパッドなどを含む、ユーザ操作を受け付けるための入力デバイスである。なお、タッチパネルは、表示部104に重ね合わせて平面的に構成され、接触された位置に応じた座標情報が出力されるように構成された入力デバイスである。
The
電源部114は、バッテリー115とACアダプタ116が装着可能な電源入力端子を有し、コンパレータ、ロードスイッチなどで構成された電源選択回路で、電圧の高い側又はACアダプタ116を優先して電源を選択する。
The
また、電源部114は、撮像装置100とバッテリー115とを接続するバッテリーインタフェースを含む。バッテリーインタフェースは、電源、グラウンドだけでなく、バッテリー115内部のマイコン(不図示)との通信端子、バッテリー115内部の温度検出部(不図示)を含む。更に、電源部114は、撮像装置100とACアダプタ116とを接続するACアダプタインタフェースを含む。ACアダプタインタフェースは、電源、グラウンド、ACアダプタ116を検出する検出部を含む。
Further, the
また、電源部114は、撮像装置内部バス101を介してCPU108にバッテリー115及びACアダプタ116の情報を通知することができる。また、電源部114は、選択された電源から不図示のDC/DCコンバーターやシリーズレギュレータを用いて電圧をレギュレートし、撮像装置100を構成している各部へ電力を供給する。また、電源部114は、装着されたバッテリー115及びACアダプタ116それぞれの電圧をA/D変換し、その値をCPU108に通知する。
Further, the
撮像部103は、CCDセンサやCMOSセンサなどの撮像素子である。レンズ部102は、ズームレンズ、フォーカスレンズ、シャッター、絞り、測距部、A/D変換器などにより構成されるレンズユニットである。
The
撮像部103は、静止画及び動画を撮像可能である。撮像された画像の画像データは画像処理部109に送信され、各種処理を施された後、静止画ファイル又は動画ファイルとして第1の記録メディア150又は第2の記録メディア160に記録される。
The
放熱ファン107は、冷却用のファンである、撮像装置100内部の温度は撮像装置温度検出部106によって検出され、CPU108に通知される。CPU108はその温度によって放熱ファン107のファンの回転数を制御し、撮像装置100内部の温度を調整する。
The
撮像装置100は、第1のメディア制御部110及び第1のメディアインタフェース155を介して、画像処理部109によって画像処理、エンコード処理、圧縮処理が施された静止画・動画のデータを、第1の記録メディア150に記録することができる。また、撮像装置100は、第1のメディア制御部110及び第1のメディアインタフェース155を介して、第1の記録メディア150に記録された静止画・動画のデータを読み出すことができる。撮像装置100は、読み出されたデータを画像処理部109によってデコード処理することにより得られる映像を表示部104に表示する。
The
第1の記録メディア150は、撮像装置100に対して着脱可能な記録媒体であり、本実施形態においては、CFexpress規格に準拠したメモリカードとする。
The
第1のメディア制御部110は、第1のメディアインタフェース155を介して、第1のメモリコントローラ152と制御コマンドの通信も行うことができる。制御コマンドには、データの記録及び再生のためのコマンドの他に、ベンダー情報、温度情報、及び書き込み回数情報等の取得のためのコマンドなどがある。
The first
第1の記録メディア150は、第1のメモリコントローラ152、第1のNAND型メモリ部153、第1のメディア温度検出部154を含み、それぞれが第1の記録メディア内部バス151で接続されている。
The
第1のメモリコントローラ152は、第1のメディア制御部110から転送される静止画・動画のデータを第1のNAND型メモリ部153へ記録する。この際、第1のメモリコントローラ152は、第1のNAND型メモリ部153のキャッシュ領域への書き込みの制御、及び主たるデータ領域へのデータの移動の制御を実行する。また、第1のメモリコントローラ152は、第1のNAND型メモリ部153内の断片化されたデータを移動・整理して空き領域を確保するガベージコレクションを行うことができる。
The
また、第1のメモリコントローラ152は、第1のメディア温度検出部154によって検出された第1のNAND型メモリ部153の温度を取得する。第1のメモリコントローラ152は、取得した温度に応じて、第1のNAND型メモリ部153へのクロック周波数の制御、アクセス禁止・許可の制御、及びアクセス速度の制御を行う。
The
第2の記録メディア160は、第2のメディア制御部111及び第2のメディアインタフェース165を介して撮像装置100と接続され、第1の記録メディア150と同様の構成及び機能を持つ。第2のメモリコントローラ162、第2のNAND型メモリ部163、及び第2のメディア温度検出部164は、それぞれ、第1のメモリコントローラ152、第1のNAND型メモリ部153、及び第1のメディア温度検出部154に対応する。第2のメモリコントローラ162、第2のNAND型メモリ部163、及び第2のメディア温度検出部164は、第2の記録メディア内部バス161で接続されている。
The
図2は、撮像装置100が実行する撮影処理のフローチャートである。本フローチャートの各ステップの処理は、特に断らない限り、CPU108が不揮発性メモリ113に格納された制御プログラムを実行して撮像装置100の各部を制御することにより実現される。撮像装置100の電源がONになる撮影待機状態になると、本フローチャートの処理が開始する。
FIG. 2 is a flowchart of the photographing process executed by the
なお、撮像装置100は、複数の記録媒体に対する画像データの記録モードとして、シングル記録モード、デュアル記録モード、及びリレー記録モードのうちのいずれかを選択することができる。シングル記録モードの場合、撮像装置100は、第1の記録メディア150及び第2の記録メディア160のうちの一方を、画像データの記録先(以下、「記録対象カード」)として選択する。デュアル記録モードの場合、撮像装置100は、第1の記録メディア150及び第2の記録メディア160の両方を記録対象カードとして扱い、第1の記録メディア150及び第2の記録メディア160の両方に同じデータを記録する。リレー記録モードの場合、撮像装置100は、第1の記録メディア150及び第2の記録メディア160のうちの一方を記録対象カードとして選択する。記録対象カードの残容量が少なくなると、撮像装置100は、第1の記録メディア150及び第2の記録メディア160のうちの記録対象カードでない方(以下、「待機カード」と呼ぶ)を新たに記録対象カードとして選択する。元の記録対象カードは、待機カードになる。換言すると、記録対象カードの残容量が少なくなると、撮像装置100は、記録対象カードと待機カードとの入れ替えを行う。
Note that the
記録モードは、例えば操作部105を介したユーザ操作などにより、予め選択されているものとする。デュアル記録モード及びリレー記録モードは、第1の記録メディア150及び第2の記録メディア160の両方が撮像装置100に装着されている場合に選択可能である。リレー記録モードの場合、最初の記録対象カードは、例えば操作部105を介したユーザ操作などにより、予め選択されているものとする。シングル記録モードは、第1の記録メディア150及び第2の記録メディア160の少なくとも一方が撮像装置100に装着されている場合に選択可能である。シングル記録モードにおいて第1の記録メディア150及び第2の記録メディア160の両方が撮像装置100に装着されている場合、記録対象カードは、例えば操作部105を介したユーザ操作などにより、予め選択されているものとする。
It is assumed that the recording mode has been selected in advance, for example, by a user operation via the
以下の説明において、第1の記録メディア150及び第2の記録メディア160のことを単に「カード」又は「メディア」と呼ぶ場合がある。
In the following description, the
最初に、S201で、CPU108は、撮像装置100に装着されている全てのカードに対して、バックグラウンド処理(BG処理)許可コマンドを送信する。BG処理許可コマンドは、省電期間(データの記録と記録との間など)における自動的なバックグラウンド処理の実行(自動バックグラウンド処理の実行)を許可するように制御するコマンドである。
First, in S201, the
本実施形態では、第1の記録メディア150及び第2の記録メディア160は、CFexpress規格に準拠したメモリカードであるものとする。そして、BG処理の許可・禁止を、NVM Express規格(NVMe規格)のNOPPME(Non-Operational Power State Permissive Mode Enable)コマンドを用いて制御するものとする。NOPPMEコマンドは、実際には、省電期間中のBG処理を直接的に制御するコマンドではなく、所定の電力を超えるBG処理を許可するか否かを指定するコマンドである。
In this embodiment, it is assumed that the
NOPPMEコマンドによりEnableを示す「1」が指定された場合、メディアでは、所定の電力を超えるBG処理の実行が可能となり、その結果、省電期間におけるBG処理が実行可能となる。従って、NOPPMEコマンドにより「1」を指定することは、省電期間中のBG処理の実行を許可するように制御するBG処理許可コマンドを送信することに相当する。 When "1" indicating Enable is specified by the NOPPME command, the media can perform BG processing that exceeds the predetermined power, and as a result, BG processing during the power saving period can be performed. Therefore, specifying "1" with the NOPPME command corresponds to transmitting a BG processing permission command that controls to permit execution of BG processing during the power saving period.
一方、NOPPMEコマンドによりDisableを示す「0」が指定された場合、メディアでは、所定の電力を超えるBG処理の実行が不可能となり、その結果、省電期間中のBG処理が実行不可能となる。従って、NOPPMEコマンドにより「0」を指定することは、省電期間中のBG処理の実行を禁止する(許可しない)ように制御するコマンド(BG処理禁止コマンド)を送信することに相当する。 On the other hand, if "0" indicating Disable is specified by the NOPPME command, the media will not be able to execute BG processing that exceeds the predetermined power, and as a result, BG processing during the power saving period will not be able to be executed. . Therefore, specifying "0" with the NOPPME command corresponds to transmitting a command (BG processing prohibition command) that controls to prohibit (not permit) execution of BG processing during the power saving period.
なお、本実施形態は、省電期間中のBG処理の許可・禁止をNVM ExpressのNOPPMEコマンドを用いて制御する構成に限定されない。また、第1の記録メディア150及び第2の記録メディア160が準拠する規格は、CFexpress規格に限定されない。他の種類のコマンドをBG処理許可コマンド及びBG処理禁止コマンドとして用いて、他の規格に準拠するメディアの省電期間中のBG処理の許可・禁止を制御する構成も、本実施形態の範囲に含まれる。
Note that this embodiment is not limited to a configuration in which permission/prohibition of BG processing during the power saving period is controlled using the NOPPME command of NVM Express. Furthermore, the standards that the
次に、S202で、CPU108は、静止画撮影指示が行われたか否かを判定する。静止画撮影指示が行われた場合、処理はS203に進み、そうでない場合、処理はS204に進む。
Next, in S202, the
S203で、CPU108は、撮像部103を用いて静止画を生成する静止画撮影を行い、得られた静止画を記録対象カードに記録する。その後、処理はS202に戻る。
In S203, the
S204で、CPU108は、動画撮影指示が行われたか否かを判定する。動画撮影指示が行われた場合、処理はS205に進み、そうでない場合、処理はS205に進む。
In S204, the
S205で、CPU108は、記録対象カードに対してBG処理禁止コマンドを送信する。すなわち、動画記録の場合は、基本的には、記録対象カードにおけるBG処理を禁止する。待機カードについては、S201においてBG処理許可コマンドを送信しているため、BG処理は許可されている。待機カードでは画像の記録が行われないため、基本的には、BG処理を許可している。
In S205, the
S206で、CPU108は、撮像部103を用いて動画を生成する動画撮影と、記録対象カードへの動画記録とを開始する。
In S206, the
S207で、CPU108は、カード制御を行う。カード制御は、リレー記録モードにおける記録対象カードと待機カードとの入れ替え制御、記録対象カードのBG処理の許可・禁止制御、及び待機カードのBG処理の許可・禁止制御を含む。カード制御の詳細は図3を参照して後述する。
In S207, the
S208で、CPU108は、記録停止指示が行われたか否かを判定する。記録停止指示が行われた場合、処理はS209に進み、そうでない場合、処理はS207に戻る。即ち、動画記録中は、カード制御が繰り返し実行される。
In S208, the
S209で、CPU108は、動画の撮影及び記録を停止する。その後、処理はS201に戻り、再び全てのカードにBG処理許可コマンドが送信される。動画の記録停止時及び本フローチャートの処理開始時に全てのカードにBG処理許可コマンドが送信されるので、S203において静止画を記録する場合は、記録対象カードのメモリコントローラは省電期間にBG処理を実行可能である。
In S209, the
次に、図3を参照して、カード制御(図2のS207)の詳細について説明する。S301で、CPU108は、現在の記録モードがリレー記録モードであるか否かを判定する。リレー記録モードの場合、処理はS302に進み、そうでない場合、処理はS304に進む。
Next, details of card control (S207 in FIG. 2) will be described with reference to FIG. 3. In S301, the
S302で、CPU108は、現在の記録対象カードの残容量が予め設定された閾値未満(第6の閾値未満)であるか否かを判定する。残容量が閾値未満の場合、処理はS303に進み、そうでない場合、処理はS304に進む。
In S302, the
S303で、CPU108は、記録対象カードと待機カードとの入れ替えを行う。なお、この時、CPU108は、記録対象カードに対してBG処理禁止コマンドを送信し、待機カードに対してBG処理許可コマンドを送信する。画像の記録が行われる記録対象カードにおいては基本的にはBG処理を禁止し、画像の記録が行われない待機カードにおいては基本的にはBG処理を許可するためである。
In S303, the
S304で、CPU108は、記録対象カードの省電期間におけるBG処理を許可するか禁止するかに関する各種条件を判定する。各種条件とは、例えば、温度条件、電源条件、及び残バッファ量/遅延時間条件である。各条件には対応する禁止フラグ(例えば、「温度条件による禁止フラグ」、「電源条件による禁止フラグ」、及び「残バッファ量/遅延時間条件による禁止フラグ」)が定義されている。各条件の判定結果に応じて、対応する禁止フラグがON又はOFFに設定される。各禁止フラグは、例えばRAM112に保持される。これらの条件及びその判定の詳細については、図4乃至図8を参照して後述する。なお、前述したとおり、図3のカード制御処理は、記録停止指示があるまで繰り返される。そのため、各種条件の判定結果に応じたBG処理の許可・禁止の制御は、動画の記録中は繰り返し実行され、各種条件の判定結果が変化する度にBG処理の許可・禁止を切り替えることになる。
In S304, the
S305で、CPU108は、S304の処理により設定された記録対象カードに関する全ての禁止フラグがOFFであるか否かを判定する。全ての禁止フラグがOFFである場合、処理はS306に進み、そうでない場合、処理はS307に進む。
In S305, the
S306で、CPU108は、記録対象カードに対してBG処理許可コマンドを送信する。
In S306, the
S307で、CPU108は、記録対象カードに対してBG処理禁止コマンドを送信する。
In S307, the
なお、デュアル記録モードの場合、両方の記録対象カードに対してBG処理許可コマンド又はBG処理禁止コマンドの送信が行われる。温度条件のようにカード毎に判定結果が異なる可能性のある条件については、カード毎に条件の判定と対応する禁止フラグの設定を行ってもよい。従って、S305の判定結果がカード毎に異なる場合もあり、この場合、1つの記録対象カードについてはS306の処理が実行され、もう1つの記録対象カードについてはS307の処理が実行される。 Note that in the case of the dual recording mode, a BG processing permission command or a BG processing prohibition command is transmitted to both recording target cards. For conditions such as temperature conditions where the determination result may differ from card to card, the condition may be determined and the corresponding prohibition flag may be set for each card. Therefore, the determination result of S305 may differ for each card, and in this case, the process of S306 is executed for one recording target card, and the process of S307 is executed for the other recording target card.
S308で、CPU108は、待機カードが存在するか否かを判定する。リレー記録モードの場合、及び、シングル記録モードにおいて第1の記録メディア150及び第2の記録メディア160の両方が撮像装置100に装着されている場合に、待機カードが存在する。待機カードが存在する場合、処理はS309に進み、そうでない場合、カード制御は終了して処理は図2のS208に進む。
In S308, the
S309で、CPU108は、待機カードの省電期間におけるBG処理を許可するか禁止するかに関する各種条件を判定する。各種条件とは、例えば、温度条件及び電源条件である。各条件には対応する禁止フラグ(例えば、「温度条件による禁止フラグ」及び「電源条件による禁止フラグ」)が定義されている。各条件の判定結果に応じて、対応する禁止フラグがON又はOFFに設定される。各禁止フラグは、例えばRAM112に保持される。これらの条件及びその判定の詳細については、図4及び図5を参照して後述する。
In S309, the
S310で、CPU108は、S309の処理により設定された待機カードに関する全ての禁止フラグがOFFであるか否かを判定する。全ての禁止フラグがOFFである場合、処理はS311に進み、そうでない場合、処理はS312に進む。
In S310, the
S311で、CPU108は、待機カードに対してBG処理許可コマンドを送信する。S312で、CPU108は、待機カードに対してBG処理禁止コマンドを送信する。
In S311, the
次に、図4を参照して、図3のS304及びS309において述べた各種条件の一例である温度条件の判定について説明する。 Next, with reference to FIG. 4, determination of temperature conditions, which are examples of the various conditions described in S304 and S309 of FIG. 3, will be described.
S401で、CPU108は、各種温度閾値を取得する。具体的には、CPU108は、不揮発性メモリ113から、カメラ温度閾値TC_TH(第2の閾値)、メディア温度閾値TM_TH(第1の閾値、第7の閾値)、メディア温度有効下限TM_MIN、及びメディア温度有効上限TM_MAXを読み出す。
In S401, the
なお、各種温度閾値は、撮像装置100の動作モード又は動画の記録ビットレートなどに応じて変化してもよい。例えば、撮像装置100の動作モード及び記録ビットレートの組合せ毎に対応する各種温度閾値を持つデータテーブルを不揮発性メモリ113に予め記憶しておく。そして、CPU108は、データテーブルを参照することにより、現在の動作モード及び記録ビットレートの組合せに対応する各種温度閾値を取得する。
Note that the various temperature threshold values may change depending on the operation mode of the
また、各種温度閾値は、記録対象カードに関する温度条件の場合(図3のS304の場合)と待機カードに関する温度条件の場合(図3のS309の場合)とで異なってもよい。 Further, various temperature threshold values may be different between the temperature condition regarding the recording target card (in the case of S304 in FIG. 3) and the temperature condition in the case of the standby card (in the case of S309 in FIG. 3).
S402で、CPU108は、撮像装置温度検出部106からカメラ温度情報TCを取得する。前述の通り、撮像装置100では、撮像装置温度検出部106によって撮像装置100の内部の温度が検出され、CPU108に通知される。
In S402, the
S403で、CPU108は、記録対象カードから(図3のS304の場合)、又は待機カードから(図3のS309の場合)、メディア温度情報TMを取得する。前述の通り、第1のメモリコントローラ152は、第1のメディア温度検出部154によって検出された第1のNAND型メモリ部153の温度を取得する。従って、CPU108は、第1の記録メディア150からメディア温度情報TMを取得する場合、第1のメモリコントローラ152を介して取得を行う。第2の記録メディア160についても同様である。
In S403, the
S404で、CPU108は、S403で取得したメディア温度TMの有効判定を行う。即ち、CPU108は、メディア温度TMが、メディア温度有効下限TM_MIN以上かつメディア温度有効上限TM_MAX以下であるか否か(所定の範囲内に含まれるか否か)を判定する。メディア温度有効下限TM_MIN以上かつメディア温度有効上限TM_MAX以下である場合、処理はS405に進み、そうでない場合、処理はS408に進む。
In S404, the
S405で、CPU108は、メディア温度TMがメディア温度閾値TM_TH以上であるか否かを判定する。メディア温度TMがメディア温度閾値TM_TH以上である場合、処理はS406に進み、そうでない場合、処理はS407に進む。
In S405, the
S406で、CPU108は、温度条件による禁止フラグをONに設定する。即ち、CPU108は、メディア温度TM又はカメラ温度TCが対応する閾値以上である場合に温度条件による禁止フラグをONに設定することにより、BG処理の実行を禁止するように制御する。これにより、メディア又はカメラの発熱を抑制し、発熱による記録の停止を抑制することが可能となる。
In S406, the
S407で、CPU108は、温度条件による禁止フラグをOFFに設定する。
In S407, the
S408で、CPU108は、カメラ温度TCがカメラ温度閾値TC_TH以上であるか否かを判定する。カメラ温度TCがカメラ温度閾値TC_TH以上である場合、処理はS406に進み、そうでない場合、処理はS407に進む。S408の処理が実行される場合(即ち、メディア温度有効下限TM_MIN以上かつメディア温度有効上限TM_MAX以下でない場合)、メディアの異常や通信の異常などの理由により、通常使用する範囲では想定されない温度情報が得られたと考えられる。従って、この場合は、メディア温度TMを用いるS405と異なり、カメラ温度TCに基づいて温度条件による禁止フラグのON/OFFが制御される。
In S408, the
ここで、図4の各ステップの処理に関する変形例について説明する。CPU108は、S402及びS403におけるカメラ温度情報TC及びメディア温度情報TMの取得に加えて、単位系の変換処理及びオフセット調整処理などの所定の前処理を行ってもよい。
Here, a modification regarding the processing of each step in FIG. 4 will be described. In addition to acquiring the camera temperature information TC and media temperature information TM in S402 and S403, the
また、複数の温度検出部を持つ構成の場合には、全ての温度検出部から温度情報を取得する構成を採用してもよいし、一部の温度検出部のみから温度情報を取得する構成を採用してもよい。或いは、複数の温度検出部から取得した温度情報について、平均化や重み付け、最大値検出、最小値検出などの所定の演算を施す構成を最小してもよい。 In addition, in the case of a configuration having multiple temperature detection units, a configuration may be adopted in which temperature information is acquired from all temperature detection units, or a configuration in which temperature information is acquired from only some temperature detection units may be adopted. May be adopted. Alternatively, a configuration in which predetermined calculations such as averaging, weighting, maximum value detection, minimum value detection, etc. are performed on temperature information acquired from a plurality of temperature detection units may be minimized.
また、S405ではメディア温度TMを用いた判定が行われているが、CPU108は、メディア温度TMとカメラ温度TCの両方の温度情報を用いて判定を行ってもよい。例えば、メディア温度TMとメディア温度閾値TM_THの差分と、メディア温度TCとメディア温度閾値TC_THの差分の小さい方を判定基準として用いることができる。
Furthermore, although the determination is made using the media temperature TM in S405, the
次に、図5を参照して、図3のS304及びS309において述べた各種条件の一例である電源条件の判定について説明する。BG処理を実施することで撮像装置100は通常記録動作より電力を多く消費するため、電源の消費が早くなり、バッテリー115駆動の場合は、撮像装置100が所望のタイミング外で電源シャットダウンする恐れがある。そのため、撮像装置100の電源の状態を判定する電源条件による禁止フラグを用いることにより、このような問題が発生する可能性を低減することができる。また、撮像装置100に接続されるバッテリー115について、CPU108では特性の判断ができない場合や、バッテリー115の残量が変化することなどを考慮して、適切にBG処理の許可・禁止を制御することが望ましい。
Next, with reference to FIG. 5, determination of the power supply condition, which is an example of the various conditions described in S304 and S309 of FIG. 3, will be described. By performing the BG processing, the
なお、図4を参照して説明した温度条件についてはメディア毎に判定結果が異なる可能性があったが、電源条件の場合はメディアに応じた判定結果の相違は発生しない。そのため、図3のS309では、電源条件の判定を省略して、S304における温度条件の判定結果を、待機カードについての温度条件の判定結果として用いてもよい。 Regarding the temperature conditions described with reference to FIG. 4, there is a possibility that the determination results differ depending on the media, but in the case of the power supply conditions, there is no difference in the determination results depending on the media. Therefore, in S309 of FIG. 3, the power condition determination may be omitted, and the temperature condition determination result in S304 may be used as the temperature condition determination result for the standby card.
最初に、S501で、CPU108は、電源部114から電源情報を取得する。電源情報は、撮像装置100の現在の駆動電源が、バッテリー115又はACアダプタ116のうちのどちらであるかを示す。
First, in S501, the
S502で、CPU108は、撮像装置100の現在の駆動電源がバッテリー115であるか否かを判定する。バッテリー115の場合、処理はS503に進み、そうでない場合、処理はS507に進む。
In step S<b>502 , the
S503で、CPU108は、バッテリー115の特性が既知であるか否かを判定する。例えば、CPU108は、バッテリー115から識別情報(型番など)を取得し、取得した識別情報に対応する特性情報が不揮発性メモリ113に格納されている場合に、バッテリー115の特性が既知であると判断する。バッテリー115の特性が既知である場合、処理はS504に進み、そうでない場合、処理はS507に進む。
In S503, the
S504で、CPU108は、バッテリー115の電圧が、予め設定された閾値以上(第3の閾値以上)であるか否かを判定する。電圧が閾値以上の場合、つまり、バッテリー115の残量が予め設定された閾値以上で十分ある場合は、処理はS506に進む。そして、電圧が閾値未満の場合、つまり、バッテリー115の残量が予め設定された閾値未満で、バッテリー残量が低下している場合は、処理はS505に進む。なお、ここで使用する閾値は、バッテリー115の特性に応じて変化してもよい。
In S504, the
S505で、CPU108は、電源条件による禁止フラグをONに設定する。即ち、CPU108は、現在の駆動電源であるバッテリー115の電圧が閾値以上でない場合に電源条件による禁止フラグをONに設定することにより、BG処理の実行を禁止するように制御する。これにより、BG処理によるバッテリー115の残量低下を抑制し、バッテリー115の残量不足による記録の停止を抑制することが可能となる。
In S505, the
S506で、CPU108は、電源条件による禁止フラグをOFFに設定する。
In S506, the
S502において現在の駆動電源がバッテリー115でないと判定された場合、及びS503においてバッテリー115の特性が既知でないと判定された場合、S507で、CPU108は、電源条件による禁止フラグをOFFに設定する。
If it is determined in S502 that the current drive power source is not the
図5フローチャートでは、駆動電源がバッテリーであり、かつ、バッテリー115の電圧が閾値未満の場合に、禁止フラグをONに設定し、BG処理を禁止するようにした。しかし、電圧によるバッテリー115の残量を判定せずに、バッテリー駆動の場合には常にBG処理を禁止するようにしてもよい。また、駆動電源がバッテリー115のみの場合は、駆動電源の種別を判定せずに、電圧によるバッテリー115の残量に応じて、BG処理の許可・禁止を制御するようにしてもよい。次に、図6を参照して、図3のS304及びS309において述べた各種条件の一例である残バッファ量/遅延時間条件の判定について説明する。動画記録のようにリアルタイム生成されるデータを定期的に長時間記録するような場合、撮像装置100は、NAND型フラッシュメモリで構成されたメディアに対してリアルタイムデータを書き込む前に、バッファメモリに一時的に記録する。バッファメモリとしては、例えばRAM112が用いられる。所定量のリアルタイムデータがバッファメモリに記録されたところで、メディアへの記録が実行される。この時、メディア内部でBG処理が実行されていて、リアルタイムデータの記録であるメイン処理が滞ると、バッファメモリ残容量(残バッファ量)がなくなってしまい、リアルタイムデータを消失してしまう。また、メディア内部で実行されていたBG処理からメイン処理であるリアルタイムデータの記録へ遷移する際には遅延時間が発生する。この遅延時間がリアルタイムデータの書き込みに必要な時間に対して長い場合はリアルタイムデータの記録が間に合わず、リアルタイムデータを消失してしまう。そのため、RAM112のバッファメモリ容量を使い切ることなく、かつ、十分な書き込み速度を保てるようにBG処理の許可・禁止を制御する必要がある。
In the flowchart of FIG. 5, when the drive power source is a battery and the voltage of the
S601で、CPU108は、記録対象カードから遅延時間を取得する。S602で、CPU108は、撮像装置100の残バッファ量を取得する。
In S601, the
S603で、CPU108は、遅延時間が予め定められた閾値以上(第5の閾値以上)であるか否かを判定する。遅延時間が閾値以上である場合、処理はS604に進み、そうでない場合、処理はS606に進む。なお、ここで使用する閾値は、動画の記録ビットレートに応じて変化してもよい。
In S603, the
S604で、CPU108は、残バッファ量が予め定められた閾値未満(第4の閾値未満)であるか否かを判定する。残バッファ量が閾値未満である場合、処理はS605に進み、そうでない場合、処理はS606に進む。なお、ここで使用する閾値は、動画の記録ビットレートに応じて変化してもよい。
In S604, the
S605で、CPU108は、残バッファ量/遅延時間条件による禁止フラグをONに設定する。即ち、CPU108は、遅延時間が閾値以上であり残バッファ量が閾値未満である場合に残バッファ量/遅延時間条件による禁止フラグをONに設定することにより、BG処理の実行を禁止するように制御する。これにより、データを記録するメイン処理がBG処理により妨げられることが原因で記録すべき動画のリアルタイムデータが消失することを抑制することが可能となる。
In S605, the
一方、S606では、CPU108は、残バッファ量/遅延時間条件による禁止フラグをOFFに設定する。
On the other hand, in S606, the
ところで、図6から理解できるように、残バッファ量/遅延時間条件による禁止フラグの場合、残バッファ量及び遅延時間の両方に関する判定に基づいて禁止フラグのON/OFFが制御される。しかしながら、残バッファ量/遅延時間条件を残バッファ量条件と遅延時間条件とに分けて、それぞれに対応する「残バッファ量条件による禁止フラグ」と「遅延時間条件による禁止フラグ」とを設けてもよい。即ち、図3のS304及びS309において述べた各種条件の例には、残バッファ量条件及び遅延時間条件も含まれる。 By the way, as can be understood from FIG. 6, in the case of a prohibition flag based on the remaining buffer amount/delay time condition, ON/OFF of the prohibition flag is controlled based on determinations regarding both the remaining buffer amount and the delay time. However, even if the remaining buffer amount/delay time condition is divided into remaining buffer amount condition and delay time condition, and corresponding "prohibition flag based on remaining buffer amount condition" and "prohibition flag based on delay time condition" are provided, respectively. good. That is, the examples of the various conditions described in S304 and S309 of FIG. 3 also include the remaining buffer amount condition and the delay time condition.
図7は、図3のS304及びS309において述べた各種条件の一例である残バッファ量条件の判定について説明するフローチャートである。 FIG. 7 is a flowchart illustrating determination of the remaining buffer amount condition, which is an example of the various conditions described in S304 and S309 of FIG.
S701で、CPU108は、撮像装置100の残バッファ量を取得する。S702で、CPU108は、残バッファ量が予め定められた閾値未満であるか否かを判定する。残バッファ量が閾値未満である場合、S703で、CPU108は、残バッファ量条件による禁止フラグをONに設定する。残バッファ量が閾値未満でない場合、S704で、CPU108は、残バッファ量条件による禁止フラグをOFFに設定する。
In S701, the
図8は、図3のS304及びS309において述べた各種条件の一例である遅延時間条件の判定について説明するフローチャートである。 FIG. 8 is a flowchart illustrating determination of delay time conditions, which are examples of the various conditions described in S304 and S309 of FIG.
S801で、CPU108は、記録対象カードから遅延時間を取得する。S802で、CPU108は、遅延時間が予め定められた閾値以上であるか否かを判定する。遅延時間が閾値以上である場合、S803で、CPU108は、遅延時間条件による禁止フラグをONに設定する。遅延時間が閾値以上でない場合、S804で、CPU108は、遅延時間条件による禁止フラグをOFFに設定する。
In S801, the
以上説明したように、第1の実施形態によれば、撮像装置100は、記録対象カードに静止画又は動画を記録するように制御する記録制御を行う。撮像装置100は、記録対象カードに静止画を記録する場合は、省電期間における自動バックグラウンド処理の実行を許可する。一方、撮像装置100は、記録対象カードに動画を記録する場合は、省電期間における自動バックグラウンド処理の実行を許可しないように制御する。これにより、記録媒体での省電期間における自動バックグラウンド処理の実行を許可するか否かを適切に制御することが可能となり、高速静止画記録と安定した動画記録とを両立することが可能とする。
As described above, according to the first embodiment, the
なお、上では、動画記録時に、自動BG処理の許可・禁止を制御(BG処理許可コマンド/BG処理禁止コマンドの送信)するものとした。しかし、記録開始前(撮影待機状態時や、動画撮影/静止画撮影モード切替時など)に、動画撮影モードであるかを静止画撮影モードであるかを判定し、動画撮影モードの場合は自動BG処理の実行を許可せず、静止画撮影モードの場合は自動BG処理の実行を許可するようにしてもよい。この場合、動画撮影モードの場合は、動画記録開始前に一度自動BG処理の実行を禁止する。そして、さらに、動画記録開始時及び記録中に、上で説明した各種条件(温度、電源種別、電源の残量、遅延時間、バッファ残量等)に応じて、自動BG処理の実行を許可するか否かを制御するようにするとよい。 In the above description, it is assumed that permission/prohibition of automatic BG processing is controlled (transmission of BG processing permission command/BG processing prohibition command) during video recording. However, before recording starts (when in standby mode for recording, or when switching between video recording and still image recording modes, etc.), it is determined whether the mode is video recording mode or still image recording mode, and in the case of video recording mode, automatic recording is performed. The execution of BG processing may not be permitted, but in the case of still image shooting mode, execution of automatic BG processing may be permitted. In this case, in the video shooting mode, automatic BG processing is prohibited once before the video recording starts. Furthermore, when starting and during video recording, execution of automatic BG processing is permitted depending on the various conditions described above (temperature, power source type, remaining power amount, delay time, remaining buffer amount, etc.). It is preferable to control whether or not.
また、上の実施形態では、動画記録であるか否かという条件と、温度、電源、遅延時間、バッファ残量の各種条件とにより、BG処理の許可・禁止を制御した。しかし、これらのうちの1つの条件のみを用いてBG処理の許可・禁止を制御するようにしてもよい。また、これらの条件のうちのいくつかの条件を組み合わせて、BG処理の許可・禁止を制御するようにしてもよい。 Further, in the above embodiment, permission/prohibition of BG processing is controlled based on the condition of whether or not video recording is being performed, and various conditions such as temperature, power supply, delay time, and remaining buffer capacity. However, permission/prohibition of BG processing may be controlled using only one of these conditions. Further, permission/prohibition of BG processing may be controlled by combining some of these conditions.
また、上では、待機カードについても、各種条件の判定結果に応じてBG処理の実行の許可・禁止を制御するものとした。しかし、待機カードについては、画像の記録を行わない記録媒体であるため、各種条件の判定を行わずに、BG処理の実行を許可するようにしてもよい。また、待機カードだけでなく、記録対象カードについても各種条件の判定を行わずに、記録対象カードについてはBG処理の実行を禁止し、待機カードについては、BG処理の実行を許可するようにしてもよい。 Further, in the above description, permission/prohibition of execution of BG processing is also controlled for standby cards according to the determination results of various conditions. However, since the standby card is a recording medium that does not record images, execution of the BG process may be permitted without determining various conditions. In addition, without determining various conditions not only for the standby card but also for the recording target card, execution of BG processing is prohibited for the recording target card, and execution of BG processing is permitted for the standby card. Good too.
また、上では、動画の記録時に、記録対象カードと待機カードについて、BG処理の実行を許可・禁止を制御するものとした。しかし、動画の記録時ではなく、記録開始前(例えば、記録待機時、記録先となるカードの選択時)に、BG処理の実行を許可・禁止を制御するようにしてもよい。 Furthermore, in the above description, when recording a moving image, permission/prohibition of execution of BG processing is controlled for the recording target card and the standby card. However, the permission/prohibition of execution of the BG process may be controlled not when recording a moving image but before the start of recording (for example, during recording standby or when selecting a card to be a recording destination).
また、撮像装置100は、記録対象カードに動画を記録する場合であっても、各種条件の判定結果によってはBG処理の実行を許可するように制御する。これにより、NAND型フラッシュメモリの最適化処理と安定した動画記録とを両立することが可能となる。
Further, even when recording a moving image on a recording target card, the
なお、上では、静止画を記録するか動画を記録するかに基づいてBG処理の許可・禁止を制御する構成について説明したが、他の動作モードを基準にBG処理の許可・禁止を制御してもよい。例えば、長時間露出撮影モード、ハイフレーム撮影モード、タイムラプス撮影モードなどの動作モードに応じてBG処理の許可・禁止を制御してもよい。この場合、例えば、タイムラプス撮影モード等の低ビットレートの撮影モードの場合は、静止画撮影と同様にBG処理を許可し、ハイフレーム撮影モードなどの高ビットレートの撮影モードの場合は、BG処理を禁止するとよい。 Note that although the configuration above has been described in which permission/prohibition of BG processing is controlled based on whether a still image or a moving image is recorded, permission/prohibition of BG processing may also be controlled based on other operation modes. You can. For example, permission/prohibition of BG processing may be controlled depending on an operation mode such as a long exposure photography mode, a high frame photography mode, or a time-lapse photography mode. In this case, for example, in a low bit rate shooting mode such as time-lapse shooting mode, BG processing is permitted in the same way as still image shooting, and in a high bit rate shooting mode such as high frame shooting mode, BG processing is allowed. It would be good to ban.
また、上では、静止画を記録する場合はBG処理を許可する構成について説明したが、静止画を記録する場合であっても、動画を記録する場合と同様に各種条件の判定結果によってはBG処理を禁止してもよい。 In addition, above, we have described a configuration that allows BG processing when recording still images, but even when recording still images, BG processing may be disabled depending on the determination results of various conditions, just like when recording moving images. Processing may be prohibited.
また、図5の例では、現在の駆動電源がバッテリー115でないと判定された場合、及びバッテリー115の特性が既知でないと判定された場合のいずれについても、電源条件による禁止フラグがOFFに設定された。しかしながら、バッテリー115の特性が既知でない場合には電源条件による禁止フラグをONにする構成を採用してもよい。
Furthermore, in the example of FIG. 5, the prohibition flag based on the power supply condition is set to OFF both when it is determined that the current drive power source is not the
[その他の実施形態]
本発明は、上述の実施形態の1以上の機能を実現するプログラムを、ネットワーク又は記憶媒体を介してシステム又は装置に供給し、そのシステム又は装置のコンピュータにおける1つ以上のプロセッサーがプログラムを読出し実行する処理でも実現可能である。また、1以上の機能を実現する回路(例えば、ASIC)によっても実現可能である。
[Other embodiments]
The present invention provides a system or device with a program that implements one or more of the functions of the embodiments described above via a network or a storage medium, and one or more processors in the computer of the system or device reads and executes the program. This can also be achieved by processing. It can also be realized by a circuit (for example, ASIC) that realizes one or more functions.
発明は上記実施形態に制限されるものではなく、発明の精神及び範囲から離脱することなく、様々な変更及び変形が可能である。従って、発明の範囲を公にするために請求項を添付する。 The invention is not limited to the embodiments described above, and various changes and modifications can be made without departing from the spirit and scope of the invention. Therefore, the following claims are hereby appended to disclose the scope of the invention.
100 撮像装置
108 CPU
110 第1のメディア制御部
111 第2のメディア制御部
112 RAM
113 不揮発性メモリ
150 第1の記録メディア
160 第2の記録メディア
100
110 First
113
Claims (18)
前記記録媒体での省電期間における自動バックグラウンド処理の実行を許可するか否かを、所定の条件を満たすか否かに応じて切り替えるように制御する制御手段と、
を備え、
前記制御手段は、前記記録制御手段による前記記録媒体への画像の記録中に、前記所定の条件を満たすか否かに応じて、前記自動バックグラウンド処理の実行を許可するか否かを切り替えるように制御することを特徴とする記録装置。 a recording control means for controlling recording of an image on a recording medium using flash memory ;
A control means for controlling whether or not to permit execution of automatic background processing during a power saving period in the recording medium, depending on whether or not a predetermined condition is satisfied;
Equipped with
The control means switches whether or not to permit execution of the automatic background processing depending on whether or not the predetermined condition is satisfied while the recording control means is recording an image on the recording medium. A recording device characterized by being controlled by.
前記制御手段は、前記記録媒体または前記記録装置の温度が第1の閾値以上の場合は、前記自動バックグラウンド処理の実行を禁止するように制御し、前記記録媒体または前記記録装置の温度が前記第1の閾値未満の場合は、前記自動バックグラウンド処理の実行を許可するように制御することを特徴とする請求項1乃至3のいずれか1項に記載の記録装置。 The predetermined conditions include temperature conditions regarding the temperature of the recording medium or the recording device,
The control means controls to prohibit execution of the automatic background process when the temperature of the recording medium or the recording device is equal to or higher than a first threshold, The recording apparatus according to any one of claims 1 to 3, wherein the recording apparatus is controlled to permit execution of the automatic background processing if the value is less than a first threshold.
前記制御手段は、前記記録装置の電源がバッテリーの場合、または、前記記録装置のバッテリーの残量が第3の閾値未満の場合に、前記自動バックグラウンド処理の実行を禁止するように制御し、前記記録装置の電源がバッテリーではない場合、または、前記記録装置のバッテリーの残量が前記第3の閾値以上の場合には、前記自動バックグラウンド処理の実行を許可するように制御することを特徴とする請求項1乃至4のいずれか1項に記載の記録装置。 The predetermined condition includes a power condition regarding a power state of the recording device,
The control means controls to prohibit execution of the automatic background processing when the recording device is powered by a battery, or when the remaining battery power of the recording device is less than a third threshold; When the power source of the recording device is not a battery, or when the remaining battery level of the recording device is equal to or higher than the third threshold, control is performed to permit execution of the automatic background processing. The recording device according to any one of claims 1 to 4.
前記所定の条件は、前記バッファメモリの残量に関するバッファ量条件を含み、
前記制御手段は、前記バッファメモリの残量が第4の閾値未満の場合には、前記自動バックグラウンド処理の実行を禁止するように制御し、前記バッファメモリの残量が前記第4の閾値以上の場合には、前記自動バックグラウンド処理の実行を許可するように制御することを特徴とする請求項1乃至5のいずれか1項に記載の記録装置。 The recording control means controls such that an image to be recorded on the recording medium is temporarily stored in a buffer memory and then recorded on the recording medium,
The predetermined condition includes a buffer amount condition regarding the remaining amount of the buffer memory,
The control means controls to prohibit execution of the automatic background processing when the remaining capacity of the buffer memory is less than a fourth threshold, and controls to prohibit execution of the automatic background processing when the remaining capacity of the buffer memory is equal to or greater than the fourth threshold. 6. The recording apparatus according to claim 1, wherein the recording apparatus is controlled to permit execution of the automatic background processing in this case.
前記所定の条件は、前記遅延時間に関する遅延時間条件を含み、
前記制御手段は、前記遅延時間が第5の閾値以上の場合には、前記自動バックグラウンド処理の実行を禁止するように制御し、前記遅延時間が前記第5の閾値未満の場合には、前記自動バックグラウンド処理の実行を許可するように制御することを特徴とする請求項1乃至6のいずれか1項に記載の記録装置。 Further comprising an acquisition means for acquiring, from the recording medium, a delay time that occurs when transitioning from the automatic background processing to the main processing of recording data in the recording medium,
The predetermined condition includes a delay time condition regarding the delay time,
The control means controls to prohibit execution of the automatic background processing when the delay time is equal to or greater than a fifth threshold, and when the delay time is less than the fifth threshold, 7. The recording apparatus according to claim 1, wherein the recording apparatus is controlled to permit execution of automatic background processing.
前記記録媒体または前記記録装置の温度が第1の閾値未満の場合に、前記自動バックグラウンド処理の実行を許可する温度条件、
前記記録装置の電源がバッテリーではない場合、または、前記記録装置のバッテリーの残量が第3の閾値以上の場合に、前記自動バックグラウンド処理の実行を許可する電源条件、
前記記録媒体に記録する画像を一時的にバッファメモリの残量が第4の閾値以上の場合に、前記自動バックグラウンド処理の実行を許可するバッファ量条件、
前記記録媒体において前記自動バックグラウンド処理からデータを記録するメイン処理へと遷移する際に発生する遅延時間が第5の閾値未満の場合に、前記自動バックグラウンド処理の実行を許可する遅延時間条件、
のうちの少なくとも1つを含み、
前記制御手段は、前記所定の条件に含まれる全ての条件において、前記自動バックグラウンド処理の実行を許可する条件を満たしている場合に、前記自動バックグラウンド処理の実行を許可し、前記所定の条件に含まれる条件のうち前記自動バックグラウンド処理の実行を許可する条件を満たしていない条件がある場合は、前記自動バックグラウンド処理の実行を禁止することを特徴とする請求項1乃至3のいずれか1項に記載の記録装置。 The predetermined conditions are:
a temperature condition that allows execution of the automatic background processing when the temperature of the recording medium or the recording device is less than a first threshold;
a power supply condition that permits execution of the automatic background processing when the power source of the recording device is not a battery, or when the remaining battery level of the recording device is equal to or higher than a third threshold;
a buffer amount condition that permits execution of the automatic background processing when the remaining amount of the buffer memory for images to be recorded on the recording medium is equal to or greater than a fourth threshold;
a delay time condition that permits execution of the automatic background processing when the delay time that occurs when transitioning from the automatic background processing to the main processing of recording data in the recording medium is less than a fifth threshold;
including at least one of
The control means is configured to permit execution of the automatic background processing when all conditions included in the predetermined conditions satisfy conditions for permitting execution of the automatic background processing, and to comply with the predetermined conditions. Any one of claims 1 to 3, characterized in that if there is a condition that does not satisfy a condition that permits execution of the automatic background process among the conditions included in the process, the execution of the automatic background process is prohibited. The recording device according to item 1.
前記記録制御手段は、前記記録装置に接続される複数の記録媒体のうち、記録先として選択されている記録媒体に、画像を記録するように制御し、
前記制御手段は、前記記録先として選択されている記録媒体での前記自動バックグラウンド処理の実行を禁止するように制御し、前記記録先として選択されていない記録媒体での前記自動バックグラウンド処理の実行を許可するように制御することを特徴とする請求項1乃至3のいずれか1項に記載の記録装置。 The recording device is connectable to a plurality of recording media,
The recording control means controls to record an image on a recording medium selected as a recording destination among a plurality of recording media connected to the recording device,
The control means controls to prohibit execution of the automatic background processing on a recording medium selected as the recording destination, and prohibits execution of the automatic background processing on a recording medium not selected as the recording destination. 4. The recording apparatus according to claim 1, wherein the recording apparatus is controlled to permit execution.
前記複数の記録媒体での、省電期間における自動バックグラウンド処理の実行を許可するか否かを制御する制御手段と、
を備え、
前記制御手段は、前記複数の記録媒体のうち、記録先として設定されている記録媒体については、前記自動バックグラウンド処理の実行を許可しないように制御し、記録先として設定されていない記録媒体については、前記自動バックグラウンド処理の実行を許可するように制御する、
ことを特徴とする記録装置。 a recording control unit configured to record an image on a recording medium set as a recording destination among a plurality of recording media using flash memory ;
A control means for controlling whether or not to permit execution of automatic background processing during a power saving period on the plurality of recording media;
Equipped with
The control means controls to disallow execution of the automatic background processing for a recording medium that is set as a recording destination among the plurality of recording media, and controls to disallow execution of the automatic background process for a recording medium that is not set as a recording destination. controls to permit execution of the automatic background process;
A recording device characterized by:
フラッシュメモリを用いた記録媒体に画像を記録するように制御する記録制御工程と、
前記記録媒体での省電期間における自動バックグラウンド処理の実行を許可するか否かを、所定の条件を満たすか否かに応じて切り替えるように制御する制御工程と、
を備え、
前記制御工程では、前記記録媒体への画像の記録中に、前記所定の条件を満たすか否かに応じて、前記自動バックグラウンド処理の実行を許可するか否かを切り替えるように制御する
ことを特徴とする制御方法。 A control method executed by a recording device, the method comprising:
a recording control step for controlling recording of an image on a recording medium using flash memory ;
a control step of controlling whether or not to permit execution of automatic background processing during a power saving period in the recording medium, depending on whether or not a predetermined condition is satisfied;
Equipped with
In the control step, control is performed to switch whether or not execution of the automatic background processing is permitted depending on whether or not the predetermined condition is satisfied while recording an image on the recording medium. Characteristic control method.
フラッシュメモリを用いた複数の記録媒体のうち、記録先に設定されている記録媒体に画像を記録するように制御する記録制御工程と、
前記複数の記録媒体での、省電期間における自動バックグラウンド処理の実行を許可するか否かを制御する制御工程と、
を備え、
前記制御工程では、前記複数の記録媒体のうち、記録先として設定されている記録媒体については、前記自動バックグラウンド処理の実行を許可しないように制御し、記録先として設定されていない記録媒体については、前記自動バックグラウンド処理の実行を許可するように制御する、
ことを特徴とする制御方法。 A control method executed by a recording device, the method comprising:
a recording control step of controlling to record an image on a recording medium set as a recording destination among a plurality of recording media using flash memory ;
a control step of controlling whether or not to permit execution of automatic background processing during a power saving period on the plurality of recording media;
Equipped with
In the control step, among the plurality of recording media, a recording medium that is set as a recording destination is controlled so as not to allow execution of the automatic background process, and a recording medium that is not set as a recording destination is controlled to not be permitted to execute the automatic background processing. controls to permit execution of the automatic background process;
A control method characterized by:
Priority Applications (4)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2019158668A JP7418105B2 (en) | 2019-08-30 | 2019-08-30 | Recording device, control method, and program |
| EP20190003.2A EP3786804B1 (en) | 2019-08-30 | 2020-08-07 | Recording apparatus, image capturing apparatus, control method, and storage medium |
| US17/003,076 US11334142B2 (en) | 2019-08-30 | 2020-08-26 | Recording apparatus, image capturing apparatus, control method, and storage medium |
| CN202010884785.9A CN112449091B (en) | 2019-08-30 | 2020-08-28 | Recording apparatus, image pickup apparatus, control method, and storage medium |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2019158668A JP7418105B2 (en) | 2019-08-30 | 2019-08-30 | Recording device, control method, and program |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JP2021040184A JP2021040184A (en) | 2021-03-11 |
| JP7418105B2 true JP7418105B2 (en) | 2024-01-19 |
Family
ID=74849241
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2019158668A Active JP7418105B2 (en) | 2019-08-30 | 2019-08-30 | Recording device, control method, and program |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP7418105B2 (en) |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN117636984A (en) | 2022-08-17 | 2024-03-01 | 联想(北京)有限公司 | Information processing device and control method |
Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2001014215A (en) | 1999-07-01 | 2001-01-19 | Matsushita Electric Ind Co Ltd | Program execution device |
| US20090319720A1 (en) | 2008-06-20 | 2009-12-24 | Seagate Technology Llc | System and method of garbage collection in a memory device |
| JP2014059946A (en) | 2012-09-15 | 2014-04-03 | Lsi Corp | Measuring cell damage for wear leveling in non-volatile memory |
| JP2016045563A (en) | 2014-08-20 | 2016-04-04 | 株式会社東芝 | NAND background processing control device |
Family Cites Families (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP3727983B2 (en) * | 1995-09-28 | 2005-12-21 | キヤノン株式会社 | Electronic camera |
-
2019
- 2019-08-30 JP JP2019158668A patent/JP7418105B2/en active Active
Patent Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2001014215A (en) | 1999-07-01 | 2001-01-19 | Matsushita Electric Ind Co Ltd | Program execution device |
| US20090319720A1 (en) | 2008-06-20 | 2009-12-24 | Seagate Technology Llc | System and method of garbage collection in a memory device |
| JP2014059946A (en) | 2012-09-15 | 2014-04-03 | Lsi Corp | Measuring cell damage for wear leveling in non-volatile memory |
| JP2016045563A (en) | 2014-08-20 | 2016-04-04 | 株式会社東芝 | NAND background processing control device |
Also Published As
| Publication number | Publication date |
|---|---|
| JP2021040184A (en) | 2021-03-11 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US9032235B2 (en) | Semiconductor storage device and method for controlling the semiconductor storage device | |
| US8225010B2 (en) | Data recording apparatus and method | |
| US20110099339A1 (en) | Information processing apparatus, method for controlling information processing apparatus and storage medium | |
| JPWO2008018446A1 (en) | MEMORY CONTROLLER, NONVOLATILE STORAGE DEVICE, ACCESS DEVICE, AND NONVOLATILE STORAGE SYSTEM | |
| CN112449091B (en) | Recording apparatus, image pickup apparatus, control method, and storage medium | |
| JP7418105B2 (en) | Recording device, control method, and program | |
| US8077221B2 (en) | Image capturing apparatus and control method therefor with determination whether storage medium is limited-rewriteable storage medium | |
| CN101221513B (en) | Information processing device and information processing method | |
| JP2021157561A (en) | Recording device and control method of recording device | |
| JP7339815B2 (en) | Recording device, imaging device, control method, and program | |
| JP2016009280A (en) | Recording device | |
| JP7313840B2 (en) | Information processing device, control method for information processing device, and program | |
| JP2015231169A (en) | Imaging device | |
| JP6326799B2 (en) | Electronics | |
| JP2004328037A (en) | Imaging and image recording device | |
| JP4208611B2 (en) | Mobile device with camera | |
| US11570395B2 (en) | Recording and reproducing apparatus and method of controlling recording and reproducing apparatus | |
| CN112887641B (en) | Recording apparatus, control method thereof, and storage medium | |
| JP6066718B2 (en) | Imaging apparatus, control method thereof, and program | |
| JP4701297B2 (en) | Image processing apparatus, method, and recording medium | |
| JP7490401B2 (en) | Recording apparatus and control method for recording apparatus | |
| JP7458755B2 (en) | Recording device and method of controlling the recording device | |
| JP2012019372A (en) | Recording device | |
| JP7263017B2 (en) | Recording control device and its control method | |
| JP5637879B2 (en) | Imaging apparatus and control method thereof |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20220801 |
|
| A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20230711 |
|
| A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20230801 |
|
| A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20230901 |
|
| 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: 20231205 |
|
| RD01 | Notification of change of attorney |
Free format text: JAPANESE INTERMEDIATE CODE: A7421 Effective date: 20231213 |
|
| A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20231228 |
|
| R151 | Written notification of patent or utility model registration |
Ref document number: 7418105 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R151 |