JP5486233B2 - Imaging apparatus and control method thereof - Google Patents
Imaging apparatus and control method thereof Download PDFInfo
- Publication number
- JP5486233B2 JP5486233B2 JP2009175799A JP2009175799A JP5486233B2 JP 5486233 B2 JP5486233 B2 JP 5486233B2 JP 2009175799 A JP2009175799 A JP 2009175799A JP 2009175799 A JP2009175799 A JP 2009175799A JP 5486233 B2 JP5486233 B2 JP 5486233B2
- Authority
- JP
- Japan
- Prior art keywords
- recording
- data
- memory area
- imaging
- recording medium
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Description
本発明は、撮像装置及びその制御方法に関するものであり、特に撮像したデータを分割して記録媒体に保存を行った後、撮像したデータとヘッダファイルとを結合することを可能とする撮像装置及びその制御方法に関するものである。 The present invention relates to an imaging apparatus and a control method thereof, and in particular, an imaging apparatus capable of combining captured data and a header file after dividing the captured data and storing it in a recording medium, and It relates to the control method.
デジタルカメラやデジタルビデオカメラ等の撮像装置で撮像された撮像データは、例えば色調補正や解像度変換、圧縮・伸張等の変換処理を適用された後、一時的に記録用のメモリ領域にバッファリングされる。記録用のメモリ領域に変換処理が適用された撮像データの全てがバッファリングされた後、変換処理が適用された撮像データを記録用のメモリ領域から記録媒体に記録する処理を行うのが一般的である。 Imaging data captured by an imaging device such as a digital camera or digital video camera is temporarily buffered in a recording memory area after being subjected to conversion processing such as color correction, resolution conversion, compression / decompression, etc. The In general, after all of the imaging data to which the conversion process is applied is buffered in the recording memory area, the imaging data to which the conversion process is applied is recorded from the recording memory area to the recording medium. It is.
近年、撮像素子の多画素化に伴い、撮像データのサイズも増大している。また、撮像データを記録する形式(フォーマット)も、従来一般的であったJPEG形式(非可逆圧縮)に加え、圧縮率が低い可逆圧縮処理で生成されるRAW形式が用いられる場合もあり、サイズの大きい撮像データを記録することも多くなってきている。このため、撮像データを記録するためには、撮像装置は少なくとも、撮像データのサイズ以上である記録用のメモリ領域を有する必要がある。また、撮像データの圧縮処理において、圧縮後のデータのサイズは撮像する被写体のパターンによって異なるため、記録用のメモリ領域は十分余裕のあるサイズにする必要がある。しかしながら、記録用のメモリ領域を撮像データのサイズに合わせて増加させることで従来通り記録用のメモリ領域から記録媒体に記録する処理を行わせることはできるが、記録用のメモリ領域サイズを増加させることは撮像装置の製造コストの上昇につながる。 In recent years, with the increase in the number of pixels in an image sensor, the size of image data has also increased. In addition to the conventional JPEG format (lossy compression), the RAW format generated by lossless compression processing with a low compression rate may be used as the format (format) for recording imaging data. Recording of large-capacity imaging data is also increasing. For this reason, in order to record the imaging data, the imaging apparatus needs to have at least a recording memory area that is equal to or larger than the size of the imaging data. Further, in the compression processing of the image data, the size of the compressed data differs depending on the pattern of the subject to be imaged, so the recording memory area needs to have a sufficiently large size. However, by increasing the recording memory area in accordance with the size of the imaging data, the recording memory area can be recorded on the recording medium as usual, but the recording memory area size is increased. This leads to an increase in the manufacturing cost of the imaging device.
また、撮像装置には動画撮像機能を搭載するものもある。一般的に動画撮像機能での撮像では最終的に記録される撮像データ(動画)のサイズは、記録用のメモリ領域のサイズよりも大きい可能性もあり、記録用のメモリ領域への撮像データのバッファリングが完了する前に、記録媒体への記録を開始する必要がある。特許文献1では、動画の撮像において、撮像した映像や音声のデータは1単位(フレーム)ごとに順次記録媒体に記録し、撮像完了後に撮影データのサイズや撮影時間等の情報を記録媒体に記録して結合することで撮像データの記録を完了する。これにより、撮像完了後には記録時間によらず情報量の少ない(サイズが小さい)、画像データのサイズや撮影時間等の情報を記録するだけでよいため、次の撮像動作に移るまでの記録処理による待機時間を短くできる。
Some imaging devices have a moving image imaging function. In general, the size of image data (moving image) that is finally recorded in image capturing with the moving image capturing function may be larger than the size of the memory area for recording. Before buffering is completed, it is necessary to start recording on the recording medium. In
例えば、前述のRAW形式の画像データは、データの内部構造として、例えば図2(a)に示すような独立して読み出し可能なRAWヘッダ部、サムネイル画像部、表示用画像部、RAWデータ部を有する。ここで、サムネイル画像部は記録媒体に記録された画像データの一覧表示に用いられるサムネイル画像データであり、表示用画像部は撮像装置の持つ表示装置等で表示するための画像データであり、一般的にJPEG形式で圧縮された画像データである。また、RAWデータ部は可逆圧縮された撮像データであり、RAW形式の画像データの主構造である。RAWヘッダ部は、例えば記録されるRAW形式の画像データのサイズや撮像時の撮像装置の設定等の情報が含まれる管理情報や、RAW形式の画像データの各内部構造がもつアドレスのオフセット情報をもつ。 For example, the above-described RAW format image data includes, as an internal structure of the data, for example, a RAW header portion, a thumbnail image portion, a display image portion, and a RAW data portion that can be independently read as shown in FIG. Have. Here, the thumbnail image portion is thumbnail image data used for displaying a list of image data recorded on the recording medium, and the display image portion is image data for display on a display device or the like of the imaging device. This is image data compressed in JPEG format. The RAW data portion is reversible compressed image data and is the main structure of RAW image data. The RAW header portion includes management information including information such as the size of the RAW format image data to be recorded and the setting of the imaging apparatus at the time of imaging, and offset information of addresses of each internal structure of the RAW format image data. Have.
このため、RAW形式の画像データを生成するためには、まず撮像装置が撮像して得られた撮像データを、可逆圧縮してRAWデータを作り、さらにJPEG圧縮して表示用画像データ、サムネイル画像データを作る。その後、RAWデータ、表示用画像データ、サムネイル画像データの情報と撮像装置の情報等からRAWヘッダ情報を作る。RAWデータ、表示用画像データ、サムネイル画像データ、RAWヘッダ情報は、例えば図2(b)にあるように記録用のメモリ領域に順次出力さる。記録媒体に記録する際には、RAW形式のデータの内部構造になるよう、記録用のメモリ領域から、RAWヘッダ情報、サムネイル画像データ、表示用画像データ、RAWデータの順で記録媒体に出力し、RAW形式の画像データを生成する。 For this reason, in order to generate RAW format image data, first, imaging data obtained by imaging by the imaging device is reversibly compressed to generate RAW data, and further JPEG compressed to display image data and thumbnail images. Create data. Thereafter, RAW header information is created from the information of the RAW data, the display image data, the thumbnail image data, the information of the imaging device, and the like. The RAW data, display image data, thumbnail image data, and RAW header information are sequentially output to a recording memory area as shown in FIG. 2B, for example. When recording on a recording medium, the RAW header information, thumbnail image data, display image data, and RAW data are output to the recording medium in this order from the recording memory area so that the internal structure of the RAW format data is obtained. , RAW image data is generated.
しかし、記録用のメモリ領域が記録する撮像データのサイズより大きい領域をもたない場合、上述のような複数のデータ部を内部構造としてもつ記録形式のデータを生成することができない。即ち、内部構造として持つデータ部を全て記録用のメモリ領域に設け、記録形式で定められた内部構造の順序に従って、記録媒体への記録処理を行うことができず、撮像データの1単位の記録処理を完了できない。 However, if the recording memory area does not have an area larger than the size of the imaged data to be recorded, it is not possible to generate data in a recording format having a plurality of data portions as described above as an internal structure. That is, all data portions having internal structures are provided in a memory area for recording, and recording processing to a recording medium cannot be performed according to the order of the internal structure determined by the recording format, and one unit of imaging data is recorded. The process cannot be completed.
さらに、記録用のメモリ領域が記録形式の内部構造の複数のデータ部のうち、1つのデータ部のサイズより小さいサイズである場合は、撮像データの1単位よりさらに小さい1つのデータ部の生成処理を完了できない。例えば、RAW形式の画像データの場合、記録用のメモリ領域が圧縮処理されたRAWデータのサイズより大きいサイズをもたないときは、RAWデータの可逆圧縮処理を完了できない。 Further, when the recording memory area has a size smaller than the size of one data portion among the plurality of data portions having the internal structure of the recording format, the generation processing of one data portion smaller than one unit of the imaging data Cannot be completed. For example, in the case of RAW format image data, if the recording memory area does not have a size larger than the size of the compressed RAW data, the lossless compression processing of the RAW data cannot be completed.
本発明は、上述のような問題点に鑑みてなされたものであり、記録用のメモリ領域よりも大きなサイズを有する撮像データの記録処理を可能とすることを目的とする。 The present invention has been made in view of the above-described problems, and an object of the present invention is to enable recording processing of imaging data having a size larger than a recording memory area.
前述の目的を達成するために、本発明の撮像装置は、以下の構成を備える。
記録媒体に記録するための情報を記憶するメモリ領域を備える撮像装置であって、被写体を撮像して撮像データを出力する撮像手段と、撮像手段から出力された撮像データをメモリ領域に記憶するために、記録媒体に記録する際の記録形式に従って変換する変換手段と、変換手段により変換されてメモリ領域に記憶されたデータを記録媒体に記録する記録手段であって、変換手段により変換されて得られたデータの容量がメモリ領域の容量より大きい場合は、メモリ領域の容量より小さい容量に分割して記録媒体に分割記録する記録手段と、記録手段により記録媒体に分割記録されたデータを、記録形式のデータ構造に従って各データに係るクラスタのリンク情報を更新することにより結合する結合手段と、を有することを特徴とする。
In order to achieve the above object, an imaging apparatus of the present invention has the following configuration.
An imaging apparatus including a memory area for storing information to be recorded on a recording medium, the imaging means for imaging a subject and outputting imaging data, and the imaging data output from the imaging means for storing the imaging data in the memory area And converting means for converting in accordance with the recording format when recording on the recording medium, and recording means for recording the data converted by the converting means and stored in the memory area on the recording medium, obtained by conversion by the converting means. was when the capacity of the data is larger than the capacity of the memory area includes a recording means for dividing the recording medium is divided into smaller capacity than the capacity of the memory area, the divided recorded on the recording medium by the recording unit data, recorded And combining means for combining by updating the link information of the clusters related to each data according to the data structure of the format .
本発明によれば、記録用のメモリ領域よりも大きいサイズを有する撮像データの記録処理を可能とする。 According to the present invention, it is possible to record image data having a size larger than the memory area for recording.
以下、本発明の好適な実施形態について図面を参照して詳細に説明する。なお、以下に説明する実施形態は、記録する撮像データのサイズより小さい記録用のメモリ領域を有する撮像装置の1例としてのデジタルカメラに、本発明を適用した例である。 DESCRIPTION OF EXEMPLARY EMBODIMENTS Hereinafter, preferred embodiments of the invention will be described in detail with reference to the drawings. The embodiment described below is an example in which the present invention is applied to a digital camera as an example of an imaging apparatus having a recording memory area smaller than the size of imaging data to be recorded.
(実施形態1)
図1に示すデジタルカメラ100において、撮像部102は、撮像レンズ101を介して結像された被写体の光学像を電気信号に変換して、A/D変換部103に出力する。撮像部102は、例えばCCDやCMOS素子等の撮像素子である。A/D変換部103は、入力された電気信号であるアナログ信号をA/D変換し、得られたデジタル画像データ(撮像データ)を後述するRAM106に出力する。画像処理部104は、RAM106に記憶された撮像データを受信し、受信した撮像データに対し、例えば所定の画素補間処理、解像度変換処理や色変換処理等を適用して、再びRAM106に記憶する。圧縮・伸張部105は、RAM106に記憶された撮像データを受信し、受信した撮像データに対し、例えば適応離散コサイン変換(ADCT)等の処理を適用することにより非可逆又は可逆な圧縮・伸張処理を行い、再びRAM106に記憶する。RAM106は、例えば各ブロックの処理に必要なプログラムを展開したり、各ブロックの処理の過程で生成される中間データを記憶したり、撮像データを所定の記録形式に出力する際のヘッダ情報等を管理する。なお、説明を分かりやすくするために、本実施形態におけるRAM106の領域のうち、変換処理が適用されたデータを後述する記録媒体120に記録する際に、記録媒体120に記録するデータを記憶する領域を「記録用のメモリ領域」と呼ぶことにする。ただし「記録用のメモリ領域」は、各ブロックの処理の過程で生成される、例えば管理情報等を記憶する領域としても用いるものとする。また、圧縮・伸張部105で所定の圧縮処理を適用される前の撮像データを記憶する領域を「圧縮用のメモリ領域」とする。
(Embodiment 1)
In the
システム制御部107は、例えばCPUであり、デジタルカメラ100の各ブロックの動作を制御する。システム制御部107は、例えばROM108に記憶されているデジタルカメラ100の各ブロックの動作プログラムを読み出し、RAM106に展開して実行する。ROM108は、例えばデジタルカメラ100の動作に必要なデジタルカメラ100の各ブロックの動作プログラムや、各ブロックの設定パラメータ等を記憶する。画像表示部109は、例えば小型LCDのような表示装置であり、RAM106の記録用のメモリ領域や、後述する記録媒体120に記憶又は記録されている撮像データを表示する。画像表示部109は、例えば記録媒体120に記録されている撮像データがRAW形式のデータであった場合は、撮像データのデータ構造の中から表示用画像部のデータを読み出して表示する。記録媒体着脱検知部110は、デジタルカメラ100に着脱可能な記録媒体120が接続されているか否かを記録I/F111を介して検出する。記録I/F111は、着脱可能な記録媒体120とデジタルカメラ100の各ブロックとの間で情報やデータの転送を行うためのインタフェースである。記録I/F111は、例えばメモリカードを挿入するメモリカードスロットや、ハードディスクを接続するためのUSBやIEEE1394といった入力端子である。操作入力部112は、例えば電源ボタンやシャッターボタン、ズームボタン等のUIである。操作入力部112は、例えばシャッターボタンに対するユーザの操作を受け、システム制御部107に伝える。
The
記録媒体120は、デジタルカメラ100に装着して用いる、例えばメモリカードやハードディスク等の着脱可能な記録媒体である。記録媒体120は、例えば記録I/F111を介して入力される、デジタルカメラ100により撮像され、画像処理部104や圧縮・伸張部105での変換処理が適用されてRAM106の記録用のメモリ領域に記憶された撮像データを記録する。なお、本実施形態において、記録媒体120は一般的なFATファイルシステムに則った記録媒体として説明する。しかしこれに限らず、例えばNTファイルシステム(NTFS)のように、論理クラスタ番号によるクラスタのリンク情報を用いて、記録されたデータを管理するファイルシステムの記録媒体であれば、本発明は適用可能である。
The
操作入力部112の電源ボタンに対するユーザの操作を受けて、システム制御部107はデジタルカメラ100を起動する。デジタルカメラ100の起動後、システム制御部107は、ROM108に記憶されているデジタルカメラ100の各ブロックの動作プログラムをRAM106に展開し、各ブロックの制御を開始する。撮像レンズ101を介して結像された被写体像は、撮像部102で撮像されてA/D変換部103に出力され、A/D変換部103で撮像データに変換されてRAM106の圧縮用のメモリ領域に記憶される。圧縮用のメモリ領域に記憶された撮像データに対し、システム制御部107は画像処理部104での変換処理と圧縮・伸張部105での圧縮・伸張処理を適用してRAM106の記録用のメモリ領域に記憶する。システム制御部107は、記録用のメモリ領域に記憶された変換処理と圧縮・伸張処理が適用された撮像データを、画像表示部109に逐次表示するスルー表示を開始し、デジタルカメラ100は撮像要求待機状態となる。
In response to a user operation on the power button of the
前述のような構成をもつ、本実施形態のデジタルカメラの撮像・記録処理について、図3のフローチャートを用いて詳細に説明する。なお、本実施形態では撮像して得られた撮像データを、RAW形式で記録媒体120に記録する際の撮像・記録処理について説明する。しかしながら本発明はRAW形式に限らず、記録する撮像データサイズが記録用のメモリ領域のサイズより大きくなるときの撮像・記録処理に適用可能である。
The imaging / recording process of the digital camera of the present embodiment having the above-described configuration will be described in detail with reference to the flowchart of FIG. In the present embodiment, an imaging / recording process when recording imaging data obtained by imaging on the
また、RAW形式の画像データは、図2(a)に示すようなデータ(アドレス)構造をもつ。RAW形式の画像データはアドレスの上位より、サムネイルオフセット202と、表示画像オフセット203と、RAWオフセット204とを含むRAWヘッダ部201、サムネイル画像部205、表示用画像部206、RAWデータ部207が配置される。サムネイル画像部205は、例えばPCに記録媒体120を接続し、アプリケーション等で記録媒体120に記録された画像データの一覧表示を行う場合等に用いられる低解像度のサムネイル画像の情報である。表示用画像部206は、デジタルカメラ100の画像表示部109で、RAW形式の画像データを閲覧する際に用いられる表示専用の画像の情報である。表示用画像は、画像表示部109のもつ表示解像度より高い解像度を有しており、圧縮・伸張部105においてJPEG形式の圧縮処理を適用し出力される。なお、表示用画像は例えばデジタルカメラ100の設定を変更することにより、用途に応じて画像の解像度、記録形式等を変更することも可能である。RAWデータ部207は、A/D変換部103でのA/D変換処理の適用後の撮像データに対し、圧縮・伸張部105でDPCM等の可逆圧縮処理を適用した画像データである。
The RAW format image data has a data (address) structure as shown in FIG. The RAW format image data is arranged in the RAW header section 201 including the thumbnail offset 202, the display image offset 203, and the RAW offset 204, the thumbnail image section 205, the display image section 206, and the RAW data section 207 from the top of the address. Is done. The thumbnail image unit 205 is low-resolution thumbnail image information used when, for example, the
システム制御部107は、操作入力部112のシャッタースイッチに対するユーザの操作を受けると、システム制御部107は撮影・記録処理を開始する。S301で、システム制御部107は撮像処理を開始する。システム制御部107は、撮像部102が出力したアナログ信号に対し、A/D変換部103でA/D変換処理を適用し、デジタルデータである撮像データに変換する。システム制御部107は、A/D変換処理が適用された撮像データを、RAM106の圧縮用のメモリ領域に記憶する(S302)。また、このときシステム制御部107は撮像時のデジタルカメラ100の設定情報もRAM106に記憶する。撮像時のデジタルカメラ100の設定情報には、例えば撮像に要した露光時間や焦点距離等の情報が含まれる。
When the
圧縮用のメモリ領域に記憶された撮像データに対し、システム制御部107はS303〜S309のステップにおいて、圧縮・伸張部105で可逆圧縮処理を施しRAWデータを生成する。なお、S303〜S309の処理はRAWデータの生成が完了するまで繰り返される。
In step S303 to S309, the
S303で、システム制御部107は、圧縮用のメモリ領域に記憶されている撮像データに対する圧縮・伸張部105での可逆圧縮処理が完了しているか否かを判断する。このとき、圧縮用のメモリ領域に、まだ可逆圧縮処理が適用されていない撮像データの情報がある場合は、システム制御部107は処理をS304に移す。また、圧縮用のメモリ領域の撮像データの全情報に対し、可逆圧縮処理の適用が完了している場合は、システム制御部107は処理をS308に移す。
In step S <b> 303, the
S304で、システム制御部107は、圧縮用のメモリ領域に記録されている撮像データのうち、まだ可逆圧縮処理が適用されていない撮像データの情報に対して、圧縮・伸張部105で可逆圧縮処理を適用させる。ここで、撮像データの情報は部分的に可逆圧縮処理が適用され、得られた可逆圧縮処理を適用された撮像データの情報の1部分は、順次圧縮・伸張部105からRAM106内の記録用のメモリ領域に出力し記憶される。S305で、システム制御部107は、S304の可逆圧縮処理で出力された、可逆圧縮処理を適用された撮像データの情報の累積サイズ(容量)が、RAM106内の記録用のメモリ領域のサイズ分出力されたかを判断する。具体的には、例えば圧縮・伸張部105から記録用のメモリ領域への撮像データの情報の転送に、DMA転送方式を用いることで圧縮・伸張部105が出力した情報量を判断し、システム制御部107に伝えればよい。S305で、可逆圧縮処理を適用された撮像データの情報の累積サイズが、記録用のメモリ領域のサイズより小さいと判断された場合、システム制御部107は処理をS303に移す。S305で可逆圧縮処理を適用された撮像データの情報の累積サイズと、記録用のメモリ領域のサイズとが等しいと判断された場合、システム制御部107は記録用のメモリ領域に記憶された可逆圧縮処理を適用された撮像データを、記録媒体120に記録する。具体的には、システム制御部107は記録I/F111を介して、デジタルカメラ100に装着された記録媒体120に、記録用のメモリ領域から可逆圧縮処理を適用された撮像データ(の一部分)を転送し、記録する(分割記録)。記録媒体120への可逆圧縮処理を適用された撮像データの転送が完了後、S307でシステム制御部107は記録用のメモリ領域を空にし、処理をS303に移す。
In step S <b> 304, the
S303で、圧縮用のメモリ領域の撮像データが全て可逆圧縮処理されていると判断された場合、システム制御部107はRAWデータの生成が完了したと判断する(S308)。また、システム制御部107はRAWデータの生成の過程で分割記録を行ったかを判断する(S309)。RAWデータの生成の過程で分割記録を行っていた場合は、システム制御部107は処理をS306に移し、記録用のメモリ領域にまだ記録されていない可逆圧縮処理を適用された撮像データがあった場合は、記録媒体120への記録処理を行う。
If it is determined in S303 that all of the captured image data in the compression memory area has been subjected to lossless compression processing, the
RAWデータの生成が完了した後、システム制御部107はS310〜S317のステップにおいて、画像処理部104と圧縮・伸張部105での処理を適用し、表示用画像を生成する(現像処理)。なお、S310〜S317の処理は表示用画像の生成が完了するまで繰り返される。
After the generation of the RAW data is completed, the
S310で、システム制御部107は、圧縮用のメモリ領域に記憶されている撮像データに画像処理部104で所定の画像変換処理を適用し、得られた撮像データを再び圧縮用のメモリ領域に記憶する。
In step S310, the
また、S311〜S317でシステム制御部107は、S310で圧縮用のメモリ領域に記憶された、画像変換処理が適用された撮像データに対し、表示用画像を生成するために圧縮・伸張部105にてJPEG圧縮処理を適用し、記録用のメモリ領域に出力する。このときの記録用のメモリ領域と記録媒体120との間で行われる処理は、圧縮方式と圧縮対象以外はRAWデータ生成処理と同様であるため、説明は省略する。
Further, in S311 to S317, the
表示用画像の生成が完了した後、システム制御部107は画像処理部104で、圧縮用のメモリ領域に記憶されている撮像データに対し、さらに解像度変換処理を適用する。またシステム制御部107は、解像度変換処理を適用した撮像データに対し、圧縮・伸張部105でJPEG圧縮処理を適用しサムネイル画像を生成し、記録用のメモリ領域に記憶する(S318)。
After the generation of the display image is completed, the
これまでのステップでRAW形式の画像データに必要な、RAWデータ、表示用画像、サムネイル画像の情報は揃い、S319でシステム制御部107はRAWヘッダ部の情報を生成し、記録用のメモリ領域に記憶する。
The RAW data, display image, and thumbnail image information necessary for the RAW format image data in the previous steps are complete. In S319, the
S320で、システム制御部107は、これまでのステップにおいて分割記録を行っていたかどうかを判断する。これまでのステップで分割記録を行っていた場合、システム制御部107はS321で記録用のメモリ領域に記憶している情報を全て記録媒体120に転送し、記録する。また、S322でシステム制御部107は、分割記録したRAWデータ、表示用画像、サムネイル画像、RAWヘッダ情報の4つを結合し、RAW形式の画像データを生成する。S320で、これまでのステップにおいて分割記録を行っていなかったと判断された場合、記録用のメモリ領域にはRAWデータ、表示用画像、サムネイル画像、RAWヘッダ情報が記憶されているため、記録媒体120への転送及び記録は以下のように行う。記録媒体120に転送する際にRAW形式のデータ構造となり記録されるよう、システム制御部107は、記録用のメモリ領域からRAWヘッダ情報、サムネイル画像、表示用画像、RAWデータの順で記録媒体120に転送し、記録する(S323)。以上により、RAW形式の画像データを記録媒体120に記録することができる。
In step S320, the
(分割記録と結合)
ここで、上述した分割記録と結合処理について、図4を用いてさらに詳細に説明する。 図4は、分割記録と結合処理を行う際の、記録用のメモリ領域と、記録媒体120のディレクトリエントリ、FAT情報、データ配置を示した図である。図は左から右に時系列にそって、それぞれの状態を示している。また、図は説明を分かりやすくするために、RAWヘッダ情報、サムネイル画像、表示用画像の3つを合わせたサイズより、記録用のメモリ領域のサイズの方が大きいものとし、RAWデータのサイズは、記録用のメモリ領域のサイズより大きいとしている。ここではRAWデータの分割記録と、RAWデータとその他のデータとの結合処理について説明する。
(Combination with split recording)
Here, the above-described divided recording and combination processing will be described in more detail with reference to FIG. FIG. 4 is a diagram showing a recording memory area, a directory entry of the
記録用のメモリ領域401は、まだRAWデータを生成するための可逆圧縮処理を開始する前の状態である。システム制御部107が可逆圧縮処理を開始すると、記録用のメモリ領域には可逆圧縮処理を適用された撮像データ(RAWデータ)が順次記憶され、記録用のメモリ領域が全てRAWデータで埋められた状態が、記録用のメモリ領域402の状態である。このときの記録用のメモリ領域402内にある、RAWデータ(の一部)を1.TMP#1とする。
The
システム制御部107は記録用のメモリ領域の容量分の可逆圧縮処理が行われ、処理が一時停止された状態になったとき、記録媒体120に対してRAWデータの一部を転送し、記録する。例えばシステム制御部107は記録媒体120の空きクラスタの先頭クラスタ番号が(10)であった場合、クラスタ番号(10)から1.TMP#1を記録する。このとき記録用のメモリ領域が例えば5クラスタ分のサイズであるとすると、システム制御部107は、1.TMP#1をクラスタ番号(10)〜(14)に記録する(データ配置433)。また、例えば1クラスタのサイズをNとすると、システム制御部107はディレクトリエントリ413に、クラスタ番号(10)から開始し、ファイルサイズ5*N分、1.TMPというファイル名のデータが存在するという情報を記録する。そしてシステム制御部107は、FAT情報423にクラスタ番号(10)から(14)までのリンク情報を記録する。さらに、システム制御部107は、記録用のメモリ領域内のRAWデータの転送が完了したことを判断し、記録用のメモリ領域を空にする(記録用のメモリ領域403)。
The
さらにシステム制御部107は1.TMP#1の転送後、圧縮用のメモリ領域に可逆圧縮処理が適用されていない撮像データが存在するため、一時停止されている可逆圧縮処理を再開する。このとき、例えば圧縮用のメモリ領域に記憶されている撮像データの全てに対して可逆圧縮処理の適用が完了したとすると、記録用のメモリ領域にRAWデータ(1.TMP#2)が出力される(記録用のメモリ領域404)。システム制御部107は、記録用のメモリ領域へのRAWデータの生成処理を完了し、先に記録媒体120に分割記録した1.TMPに追記記録する。具体的には、システム制御部107は1.TMP#2を、現在の空きクラスタの先頭クラスタ番号(15)から記録する。このとき1.TMP#2のサイズが、例えば1クラスタとxバイト分のサイズであるとすると、システム制御部107は、1.TMP#2をクラスタ番号(15)と(16)に記録する(データ配置435)。また、システム制御部107はディレクトリエントリ415を、クラスタ番号(10)から開始し、ファイルサイズが(1.TMP#1と合わせて)6*N+x分、1.TMPというファイル名のデータが存在するという情報に更新する。そしてシステム制御部107は、FAT情報425にクラスタ番号(15)と(16)のリンク情報を記録する。しかし、このとき可逆圧縮処理は完了しているため、システム制御部107は1.TMPをクローズするので、FAT情報425の1.TMPの最終クラスタ(16)にはファイルの終端を示す(0xFF)コードを記録する。
Further, the
記録用のメモリ領域内のRAWデータは転送が完了したので、システム制御部107は再び記録用のメモリ領域を空にする。続いてシステム制御部107は、画像処理部104で圧縮用のメモリ領域に記憶されている撮像データの現像処理を行い、表示用画像、サムネイル画像、RAWヘッダ情報を生成し、記録用のメモリ領域に記憶する(記録用のメモリ領域405)。システム制御部107は、記録用のメモリ領域に記憶されている表示用画像、サムネイル画像、RAWヘッダ情報を、1つのデータ(1.RAW)として記録媒体120に転送し記録する。その際、1.RAWはRAW形式のデータ構造に則って、システム制御部107はRAWヘッダ情報、サムネイル画像、表示用画像の順に記録媒体120に転送する。このとき、1.RAWは空きクラスタの先頭クラスタ番号(17)から記録される。ここで1.RAWのサイズが、例えば1クラスタとyバイト分のサイズであるとすると、システム制御部107は、1.RAWをクラスタ番号(17)と(18)に記録する(データ配置436)。また、システム制御部107はディレクトリエントリ416に、クラスタ番号(17)から開始し、ファイルサイズがN+y分、1.RAWというファイル名のデータが存在するという情報を新たに記録する。そしてシステム制御部107は、FAT情報426にクラスタ番号(17)と(18)のリンク情報を記録し、1.RAWをクローズするので、FAT情報426の最終クラスタ番号(18)にはファイルの終端を示す(0xFF)コードを記録する。またシステム制御部107は、記録用のメモリ領域のデータを1.RAWとして記録が完了したので、記録用のメモリ領域を空にする(記録用のメモリ領域406)。
Since the RAW data in the recording memory area has been transferred, the
さらにシステム制御部107は分割記録を行っているため、記録媒体120に記録されている1.TMPと1.RAWとの結合処理を行う。
システム制御部107は、FAT情報において1.RAW最終クラスタ番号(18)に記録された(0xFF)コードを、1.TMPの先頭クラスタ番号(10)に変更する(FAT情報427)。さらにシステム制御部107は、ディレクトリエントリ417を、クラスタ番号(17)から開始し、ファイルサイズが(全て合わせて)8*N+x分、1.RAWというファイル名のデータが存在するという情報に更新する。またシステム制御部107は、1.RAWと1.TMPのデータは既に結合し、1.TMPのディレクトリエントリの情報は不要であるため、1.TMPのディレクトリエントリ情報には消去フラグを立てる。FAT情報とディレクトリエントリの更新により、データ配置437のようにRAW形式の画像データ(1.RAW)を得ることができる。
Further, since the
The
なお、分割記録と結合処理の説明において、本実施形態ではRAWデータのみが記録用のメモリ領域のサイズより大きい場合のみ取り上げたが、例えば表示用画像等、他のデータも記録用のメモリ領域より大きい場合にも、本発明は適用可能である。具体的には、例えばRAWデータに加え表示用画像も分割記録の必要があった場合、表示用画像も記録用メモリ領域のサイズ分の圧縮処理が行われた状態で都度一時停止し、順次記録媒体120に転送すればよい。このとき、RAWデータの1.TMPとは別に2.TMPとして表示用画像を記録媒体120に記録する。そして最終的に1.RAWと1.TMPと2.TMPを結合する際に、1.RAWの最終クラスタ番号を2.TMPの先頭クラスタ番号に、2.TMPの最終クラスタ番号を1.TMPの先頭クラスタ番号に変更することで、RAW形式のデータを得ることができる。
In the description of the division recording and the combination processing, in this embodiment, only the RAW data is larger than the size of the recording memory area. However, other data such as a display image is also stored in the recording memory area. The present invention can also be applied to large cases. Specifically, for example, when the display image needs to be divided and recorded in addition to the RAW data, the display image is paused each time after being compressed for the size of the recording memory area, and sequentially recorded. What is necessary is just to transfer to the medium 120. At this time,
以上説明したように、本実施形態で説明したデジタルカメラ100は、処理の過程で撮像データを分割して記録することで、記録用のメモリ領域よりも大きいサイズの撮像データの記録が可能である。また、ヘッダ情報のように撮像データの処理の完了後でないと得られない情報が含まれるデータを、記録形式上、分割記録したデータの先頭に配置したい場合にも、FAT情報を更新することで分割記録したデータを並び替えて結合させることが可能である。
As described above, the
(実施形態の変形例)
また実施形態では、特に静止画像の記録処理について説明したが、本発明は動画像の記録処理においても適用可能である。その場合、本実施形態の変形例のデジタルカメラ100はさらに音声情報を取り込むマイクを備える。
(Modification of the embodiment)
In the embodiment, the still image recording process has been described. However, the present invention can also be applied to a moving image recording process. In that case, the
操作入力部112が備える、例えばシャッターボタンに対するユーザの操作により動画像の撮像要求が入力されると、システム制御部107は動画像の撮像と音声情報の録音を開始する。システム制御部107は、撮像されて各ブロックでの処理を適用された動画像データと、録音されデジタル化された音声データとを、記録用のメモリ領域に順次記憶させる。さらに記録用のメモリ領域のサイズ分、動画像データと音声データが記憶されると、システム制御部107は記録媒体120への記録処理を行い、FAT情報、ディレクトリエントリを順次更新する。操作入力部112が備える、例えばシャッターボタンに対するユーザの操作により動画像の撮像完了の指令が入力されると、システム制御部107は動画像データと音声データの記録を完了し、ヘッダ情報を生成して記録媒体120に記録して、前述の結合処理を行う。
For example, when a moving image capturing request is input by a user operation on the shutter button provided in the
Claims (6)
被写体を撮像して撮像データを出力する撮像手段と、
前記撮像手段から出力された撮像データを前記メモリ領域に記憶するために、前記記録媒体に記録する際の記録形式に従って変換する変換手段と、
前記変換手段により変換されて前記メモリ領域に記憶されたデータを前記記録媒体に記録する記録手段であって、前記変換手段により変換されて得られたデータの容量が前記メモリ領域の容量より大きい場合は、前記メモリ領域の容量より小さい容量に分割して前記記録媒体に分割記録する記録手段と、
前記記録手段により前記記録媒体に分割記録されたデータを、前記記録形式のデータ構造に従って各データに係るクラスタのリンク情報を更新することにより結合する結合手段と、を有する
ことを特徴とする撮像装置。 An imaging device comprising a memory area for storing information for recording on a recording medium,
Imaging means for imaging a subject and outputting imaging data;
To store the imaging data output from the imaging means to the memory area, and converting means for converting according to a recording format for recording on the recording medium,
A recording means for recording the data stored in the conversion has been the memory area by said converting means to said recording medium, when the capacity of the data obtained is converted by the conversion means capacity larger than the memory area Recording means for dividing and recording on the recording medium by dividing into a capacity smaller than the capacity of the memory area ;
Combining means for combining the data divided and recorded on the recording medium by the recording means by updating the link information of the clusters related to the respective data according to the data structure of the recording format. An imaging device.
前記結合手段は、前記分割記録されたデータ及び前記ヘッダ情報の各々のクラスタのリンク情報を更新することにより、該ヘッダ情報を前記分割記録されたデータの先頭部分に配置するように並べ替えて結合する The combining means rearranges and combines the header information so as to be arranged at the head portion of the divided and recorded data by updating the link information of each cluster of the divided and recorded data and the header information. Do
ことを特徴とする請求項1または2に記載の撮像装置。The imaging apparatus according to claim 1 or 2, wherein
撮像手段が、被写体を撮像して撮像データを出力する撮像工程と、
変換手段が、前記撮像工程において出力された撮像データを前記メモリ領域に記憶するために、前記記録媒体に記録する際の記録形式に従って変換する変換工程と、
記録手段が、前記変換工程において変換されて前記メモリ領域に記憶されたデータを前記記録媒体に記録する記録工程であって、前記変換工程において変換されて得られたデータの容量が前記メモリ領域の容量より大きい場合は、前記メモリ領域の容量より小さい容量に分割して前記記録媒体に分割記録する記録工程と、
結合手段が、前記記録工程において前記記録媒体に分割記録されたデータを、前記記録形式のデータ構造に従って各データに係るクラスタのリンク情報を更新することにりより結合する結合工程と、を有する
ことを特徴とする撮像装置の制御方法。 A method for controlling an imaging apparatus including a memory area for storing information for recording on a recording medium,
An imaging step in which an imaging means images a subject and outputs imaging data;
Conversion means, for storing the imaging data output in the imaging step to the memory area, the conversion step of converting in accordance with the recording format for recording on the recording medium,
Recording means, a recording process of recording the data stored being converted into the memory area in the conversion step to the recording medium, the volume of data obtained by conversion in the converting step of the memory area If larger than the capacity, a recording step of dividing and recording on the recording medium by dividing into a capacity smaller than the capacity of the memory area ;
And a combining step of combining the data divided and recorded on the recording medium in the recording step by updating the link information of the clusters related to each data according to the data structure of the recording format. An imaging apparatus control method characterized by the above.
前記結合手段は前記結合工程において、前記分割記録されたデータ及び前記ヘッダ情報の各々のクラスタのリンク情報を更新することにより、該ヘッダ情報を前記分割記録されたデータの先頭部分に配置するように並べ替えて結合する In the combining step, the combining means updates the link information of each cluster of the divided and recorded data and the header information so that the header information is arranged at the head portion of the divided and recorded data. Sort and join
ことを特徴とする請求項4または5に記載の撮像装置の制御方法。The method for controlling an imaging apparatus according to claim 4, wherein
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2009175799A JP5486233B2 (en) | 2009-07-28 | 2009-07-28 | Imaging apparatus and control method thereof |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2009175799A JP5486233B2 (en) | 2009-07-28 | 2009-07-28 | Imaging apparatus and control method thereof |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2011030105A JP2011030105A (en) | 2011-02-10 |
JP5486233B2 true JP5486233B2 (en) | 2014-05-07 |
Family
ID=43638273
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2009175799A Active JP5486233B2 (en) | 2009-07-28 | 2009-07-28 | Imaging apparatus and control method thereof |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP5486233B2 (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2013243473A (en) * | 2012-05-18 | 2013-12-05 | Canon Inc | Transmitter, control method and program |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2001086462A (en) * | 1999-09-17 | 2001-03-30 | Sharp Corp | Moving image recording device and moving image reproducing device |
JP4882954B2 (en) * | 2007-10-12 | 2012-02-22 | カシオ計算機株式会社 | Imaging apparatus, information synthesis apparatus, and program |
-
2009
- 2009-07-28 JP JP2009175799A patent/JP5486233B2/en active Active
Also Published As
Publication number | Publication date |
---|---|
JP2011030105A (en) | 2011-02-10 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US7889243B2 (en) | Imaging device, method of processing captured image signal and computer program | |
JP6306845B2 (en) | Imaging apparatus and control method thereof | |
JP3311715B2 (en) | Digital camera | |
JP2015195571A (en) | Imaging apparatus and control method of the same | |
EP3192251B1 (en) | Image processing apparatus and image processing method | |
JP4795297B2 (en) | Imaging apparatus and control method thereof | |
JP2015076782A (en) | Image processing device, control method therefor, and control program | |
JP2011077654A (en) | Imaging apparatus, control method thereof and program | |
JP5486233B2 (en) | Imaging apparatus and control method thereof | |
JP4781309B2 (en) | Imaging device that can be separated by monitor and control method thereof | |
JP5539078B2 (en) | Display control apparatus, method, program, and recording medium | |
JP6366268B2 (en) | Imaging apparatus and control method thereof | |
JP2006340150A (en) | Image list updating method in digital camera system | |
JP2004364039A (en) | Image processing apparatus, image processing method, and program | |
JP4953912B2 (en) | Separable imaging device and control method thereof | |
KR101480407B1 (en) | Digital image processing apparatus, method for controlling the same and medium of recording the method | |
JP2008172653A (en) | Imaging apparatus, image management method, and program | |
JP6282136B2 (en) | Imaging apparatus and control method thereof | |
JP4211764B2 (en) | Electronic camera, image recording apparatus, image recording method and program | |
JP4535089B2 (en) | Imaging apparatus, image processing method, and program | |
JP2006287588A (en) | Image processing apparatus and method, data file structure, computer program, and storage medium | |
JP4250511B2 (en) | Imaging device | |
JP5129879B2 (en) | Imaging apparatus, control method therefor, and program | |
JP5355664B2 (en) | Digital camera and control method thereof | |
JP5561044B2 (en) | Imaging apparatus, imaging method, and program |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20120727 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20131029 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20131101 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20131226 |
|
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: 20140124 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20140221 |
|
R151 | Written notification of patent or utility model registration |
Ref document number: 5486233 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R151 |