JP5486233B2 - Imaging apparatus and control method thereof - Google Patents

Imaging apparatus and control method thereof Download PDF

Info

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
Application number
JP2009175799A
Other languages
Japanese (ja)
Other versions
JP2011030105A (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 JP2009175799A priority Critical patent/JP5486233B2/en
Publication of JP2011030105A publication Critical patent/JP2011030105A/en
Application granted granted Critical
Publication of JP5486233B2 publication Critical patent/JP5486233B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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 Patent Document 1, when capturing a moving image, the captured video and audio data are sequentially recorded on a recording medium for each unit (frame), and information such as the size of the photographing data and the photographing time is recorded on the recording medium after the imaging is completed. Then, the recording of the imaging data is completed. As a result, after imaging is completed, the amount of information is small (the size is small) regardless of the recording time, and it is only necessary to record information such as the size of the image data and the imaging time. The waiting time can be shortened.

特開2006−072835号公報JP 2006-072835 A

例えば、前述の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 is a block diagram illustrating an example of a functional configuration of an imaging apparatus according to an embodiment of the present invention. 実施形態の出力形式の1例であるRAW形式の内部構造と記録用のメモリ領域を説明するための図The figure for demonstrating the internal structure of the RAW format which is an example of the output format of embodiment, and the memory area for recording 実施形態に係る撮像・記録処理のフローチャートFlowchart of imaging / recording processing according to the embodiment 実施形態に係る記録処理における記録用のメモリ領域と記録媒体間のデータ転送を説明するための図The figure for demonstrating the data transfer between the memory area for recording in the recording processing which concerns on embodiment, and a recording medium

以下、本発明の好適な実施形態について図面を参照して詳細に説明する。なお、以下に説明する実施形態は、記録する撮像データのサイズより小さい記録用のメモリ領域を有する撮像装置の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 digital camera 100 shown in FIG. 1, the imaging unit 102 converts an optical image of a subject formed through the imaging lens 101 into an electrical signal and outputs the electrical signal to the A / D conversion unit 103. The imaging unit 102 is an imaging element such as a CCD or a CMOS element. The A / D conversion unit 103 performs A / D conversion on an analog signal that is an input electric signal, and outputs the obtained digital image data (imaging data) to the RAM 106 described later. The image processing unit 104 receives the imaging data stored in the RAM 106, applies predetermined pixel interpolation processing, resolution conversion processing, color conversion processing, and the like to the received imaging data, and stores them again in the RAM 106. The compression / decompression unit 105 receives imaging data stored in the RAM 106, and applies irreversible or reversible compression / decompression processing to the received imaging data by applying processing such as adaptive discrete cosine transform (ADCT), for example. Is stored in the RAM 106 again. For example, the RAM 106 develops a program necessary for processing each block, stores intermediate data generated in the process of each block, header information when outputting imaging data to a predetermined recording format, and the like. to manage. For easy understanding, an area for storing data to be recorded on the recording medium 120 when data to which conversion processing is applied is recorded on the recording medium 120 to be described later, in the area of the RAM 106 in the present embodiment. Is called a “memory area for recording”. However, the “recording memory area” is also used as an area for storing, for example, management information generated in the process of each block. In addition, an area for storing imaging data before the compression / decompression unit 105 applies predetermined compression processing is referred to as a “compression memory area”.

システム制御部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 system control unit 107 is a CPU, for example, and controls the operation of each block of the digital camera 100. For example, the system control unit 107 reads out an operation program of each block of the digital camera 100 stored in the ROM 108, expands it in the RAM 106, and executes it. The ROM 108 stores, for example, an operation program for each block of the digital camera 100 necessary for the operation of the digital camera 100, setting parameters for each block, and the like. The image display unit 109 is a display device such as a small LCD, for example, and displays imaging data stored or recorded in a recording memory area of the RAM 106 or a recording medium 120 described later. For example, when the imaging data recorded on the recording medium 120 is RAW format data, the image display unit 109 reads and displays the data of the display image unit from the data structure of the imaging data. The recording medium attachment / detachment detection unit 110 detects whether or not the detachable recording medium 120 is connected to the digital camera 100 via the recording I / F 111. The recording I / F 111 is an interface for transferring information and data between the removable recording medium 120 and each block of the digital camera 100. The recording I / F 111 is an input terminal such as a memory card slot into which a memory card is inserted or a USB or IEEE 1394 for connecting a hard disk. The operation input unit 112 is a UI such as a power button, a shutter button, or a zoom button. The operation input unit 112 receives, for example, a user operation on the shutter button and transmits the operation to the system control unit 107.

記録媒体120は、デジタルカメラ100に装着して用いる、例えばメモリカードやハードディスク等の着脱可能な記録媒体である。記録媒体120は、例えば記録I/F111を介して入力される、デジタルカメラ100により撮像され、画像処理部104や圧縮・伸張部105での変換処理が適用されてRAM106の記録用のメモリ領域に記憶された撮像データを記録する。なお、本実施形態において、記録媒体120は一般的なFATファイルシステムに則った記録媒体として説明する。しかしこれに限らず、例えばNTファイルシステム(NTFS)のように、論理クラスタ番号によるクラスタのリンク情報を用いて、記録されたデータを管理するファイルシステムの記録媒体であれば、本発明は適用可能である。   The recording medium 120 is a detachable recording medium such as a memory card or a hard disk that is used by being attached to the digital camera 100. The recording medium 120 is picked up by the digital camera 100, which is input via the recording I / F 111, for example, and is subjected to conversion processing in the image processing unit 104 or compression / decompression unit 105 to be stored in a recording memory area of the RAM 106. Record the stored imaging data. In the present embodiment, the recording medium 120 will be described as a recording medium conforming to a general FAT file system. However, the present invention is not limited to this. For example, the present invention can be applied to any file system recording medium that manages recorded data using cluster link information based on logical cluster numbers, such as the NT file system (NTFS). It is.

操作入力部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 operation input unit 112, the system control unit 107 activates the digital camera 100. After the digital camera 100 is activated, the system control unit 107 develops the operation program for each block of the digital camera 100 stored in the ROM 108 in the RAM 106 and starts control of each block. A subject image formed through the imaging lens 101 is captured by the imaging unit 102 and output to the A / D conversion unit 103, converted into imaging data by the A / D conversion unit 103, and memory for compression in the RAM 106. Stored in the area. The system control unit 107 applies the conversion process in the image processing unit 104 and the compression / decompression process in the compression / decompression unit 105 to the image data stored in the compression memory area, and the recording memory area in the RAM 106. To remember. The system control unit 107 starts through display that sequentially displays on the image display unit 109 the imaging data to which the conversion processing and compression / decompression processing stored in the recording memory area are applied. It will be in a standby state.

前述のような構成をもつ、本実施形態のデジタルカメラの撮像・記録処理について、図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 recording medium 120 in the RAW format will be described. However, the present invention is not limited to the RAW format, and can be applied to imaging / recording processing when the size of recorded image data is larger than the size of a recording memory area.

また、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 recording medium 120 is connected to a PC and a list of image data recorded on the recording medium 120 is displayed by an application or the like. The display image unit 206 is display-only image information used when the image display unit 109 of the digital camera 100 browses RAW format image data. The display image has a resolution higher than the display resolution of the image display unit 109 and is output by the compression / decompression unit 105 by applying JPEG compression processing. For example, by changing the setting of the digital camera 100 for the display image, it is possible to change the image resolution, the recording format, etc. according to the application. The RAW data unit 207 is image data obtained by applying reversible compression processing such as DPCM in the compression / decompression unit 105 to the captured image data after application of the A / D conversion processing in the A / D conversion unit 103.

システム制御部107は、操作入力部112のシャッタースイッチに対するユーザの操作を受けると、システム制御部107は撮影・記録処理を開始する。S301で、システム制御部107は撮像処理を開始する。システム制御部107は、撮像部102が出力したアナログ信号に対し、A/D変換部103でA/D変換処理を適用し、デジタルデータである撮像データに変換する。システム制御部107は、A/D変換処理が適用された撮像データを、RAM106の圧縮用のメモリ領域に記憶する(S302)。また、このときシステム制御部107は撮像時のデジタルカメラ100の設定情報もRAM106に記憶する。撮像時のデジタルカメラ100の設定情報には、例えば撮像に要した露光時間や焦点距離等の情報が含まれる。     When the system control unit 107 receives a user operation on the shutter switch of the operation input unit 112, the system control unit 107 starts photographing / recording processing. In step S301, the system control unit 107 starts an imaging process. The system control unit 107 applies A / D conversion processing by the A / D conversion unit 103 to the analog signal output from the imaging unit 102 and converts the analog signal to imaging data that is digital data. The system control unit 107 stores the imaging data to which the A / D conversion process is applied in the compression memory area of the RAM 106 (S302). At this time, the system control unit 107 also stores setting information of the digital camera 100 at the time of imaging in the RAM 106. The setting information of the digital camera 100 at the time of imaging includes, for example, information such as exposure time and focal length required for imaging.

圧縮用のメモリ領域に記憶された撮像データに対し、システム制御部107はS303〜S309のステップにおいて、圧縮・伸張部105で可逆圧縮処理を施しRAWデータを生成する。なお、S303〜S309の処理はRAWデータの生成が完了するまで繰り返される。   In step S303 to S309, the system control unit 107 performs lossless compression processing on the captured image data stored in the compression memory area, and generates RAW data. Note that the processing of S303 to S309 is repeated until generation of RAW data is completed.

S303で、システム制御部107は、圧縮用のメモリ領域に記憶されている撮像データに対する圧縮・伸張部105での可逆圧縮処理が完了しているか否かを判断する。このとき、圧縮用のメモリ領域に、まだ可逆圧縮処理が適用されていない撮像データの情報がある場合は、システム制御部107は処理をS304に移す。また、圧縮用のメモリ領域の撮像データの全情報に対し、可逆圧縮処理の適用が完了している場合は、システム制御部107は処理をS308に移す。   In step S <b> 303, the system control unit 107 determines whether or not the lossless compression processing in the compression / decompression unit 105 has been completed for the imaging data stored in the compression memory area. At this time, if there is information of imaged data to which the lossless compression process has not been applied yet in the compression memory area, the system control unit 107 moves the process to S304. If the application of the lossless compression process has been completed for all pieces of information of the captured image data in the compression memory area, the system control unit 107 moves the process to S308.

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 system control unit 107 uses the compression / decompression unit 105 to perform reversible compression processing on the information of the captured image data that has not been applied with the reversible compression processing among the captured image data recorded in the compression memory area. Apply. Here, the information of the imaging data is partially subjected to the lossless compression process, and one part of the obtained information of the imaging data to which the lossless compression process is applied is sequentially recorded from the compression / decompression unit 105 for recording in the RAM 106. It is output and stored in the memory area. In step S <b> 305, the system control unit 107 outputs the accumulated size (capacity) of the imaging data information to which the lossless compression process is applied, which is output in the lossless compression process of step S <b> 304, for the size of the recording memory area in the RAM 106. Determine whether it was done. Specifically, for example, the amount of information output from the compression / decompression unit 105 is determined by using the DMA transfer method for transferring the information of the imaging data from the compression / decompression unit 105 to the memory area for recording, and system control is performed. What is necessary is just to tell the part 107. If it is determined in S305 that the accumulated size of the information of the imaging data to which the lossless compression process is applied is smaller than the size of the recording memory area, the system control unit 107 moves the process to S303. If it is determined in step S305 that the accumulated size of the information of the imaging data to which the lossless compression processing is applied is equal to the size of the recording memory area, the system control unit 107 stores the lossless compression stored in the recording memory area. The imaging data to which the process is applied is recorded on the recording medium 120. Specifically, the system control unit 107 captures (a part of) image data obtained by applying lossless compression processing from a recording memory area to a recording medium 120 attached to the digital camera 100 via the recording I / F 111. Transfer and record (split recording). After the transfer of the imaging data to which the lossless compression process is applied to the recording medium 120 is completed, the system control unit 107 empties the recording memory area in S307, and the process proceeds to S303.

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 system control unit 107 determines that the generation of RAW data has been completed (S308). Further, the system control unit 107 determines whether or not division recording has been performed in the process of generating RAW data (S309). In the case where divided recording was performed in the process of generating RAW data, the system control unit 107 moved the process to S306, and there was imaging data to which a lossless compression process that has not yet been recorded in the recording memory area was applied. In this case, the recording process to the recording medium 120 is performed.

RAWデータの生成が完了した後、システム制御部107はS310〜S317のステップにおいて、画像処理部104と圧縮・伸張部105での処理を適用し、表示用画像を生成する(現像処理)。なお、S310〜S317の処理は表示用画像の生成が完了するまで繰り返される。   After the generation of the RAW data is completed, the system control unit 107 applies processing in the image processing unit 104 and the compression / decompression unit 105 in steps S310 to S317 to generate a display image (development processing). Note that the processing of S310 to S317 is repeated until the generation of the display image is completed.

S310で、システム制御部107は、圧縮用のメモリ領域に記憶されている撮像データに画像処理部104で所定の画像変換処理を適用し、得られた撮像データを再び圧縮用のメモリ領域に記憶する。   In step S310, the system control unit 107 applies predetermined image conversion processing in the image processing unit 104 to the image data stored in the compression memory area, and stores the obtained image data in the compression memory area again. To do.

また、S311〜S317でシステム制御部107は、S310で圧縮用のメモリ領域に記憶された、画像変換処理が適用された撮像データに対し、表示用画像を生成するために圧縮・伸張部105にてJPEG圧縮処理を適用し、記録用のメモリ領域に出力する。このときの記録用のメモリ領域と記録媒体120との間で行われる処理は、圧縮方式と圧縮対象以外はRAWデータ生成処理と同様であるため、説明は省略する。   Further, in S311 to S317, the system control unit 107 sends the display data to the compression / decompression unit 105 in order to generate the display image for the imaging data to which the image conversion process is applied, which is stored in the compression memory area in S310. JPEG compression processing is applied and output to the memory area for recording. Since the processing performed between the recording memory area and the recording medium 120 at this time is the same as the RAW data generation processing except for the compression method and the compression target, description thereof will be omitted.

表示用画像の生成が完了した後、システム制御部107は画像処理部104で、圧縮用のメモリ領域に記憶されている撮像データに対し、さらに解像度変換処理を適用する。またシステム制御部107は、解像度変換処理を適用した撮像データに対し、圧縮・伸張部105でJPEG圧縮処理を適用しサムネイル画像を生成し、記録用のメモリ領域に記憶する(S318)。   After the generation of the display image is completed, the system control unit 107 causes the image processing unit 104 to further apply resolution conversion processing to the imaging data stored in the compression memory area. Further, the system control unit 107 applies a JPEG compression process to the captured image data to which the resolution conversion process is applied, generates a thumbnail image, and stores it in a recording memory area (S318).

これまでのステップで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 system control unit 107 generates RAW header information and stores it in the recording memory area. Remember.

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 system control unit 107 determines whether division recording has been performed in the previous steps. If divisional recording has been performed in the steps so far, the system control unit 107 transfers all the information stored in the recording memory area to the recording medium 120 and records it in S321. In step S322, the system control unit 107 combines the four pieces of RAW data, the display image, the thumbnail image, and the RAW header information that are divided and recorded to generate RAW image data. If it is determined in S320 that the divided recording has not been performed in the previous steps, the recording memory area stores the RAW data, the display image, the thumbnail image, and the RAW header information. Transfer and recording are performed as follows. The system control unit 107 records the recording medium 120 in the order of RAW header information, thumbnail images, display images, and RAW data from the recording memory area so that the data structure is recorded in the RAW format when transferred to the recording medium 120. And record (S323). As described above, RAW image data can be recorded on the recording medium 120.

(分割記録と結合)
ここで、上述した分割記録と結合処理について、図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 recording medium 120, FAT information, and data arrangement when performing divided recording and combination processing. The figure shows each state along the time series from left to right. Also, in order to make the explanation easy to understand, it is assumed that the size of the memory area for recording is larger than the combined size of the RAW header information, the thumbnail image, and the display image, and the size of the RAW data is It is assumed that it is larger than the size of the memory area for recording. Here, divided recording of RAW data and a process of combining RAW data with other data will be described.

記録用のメモリ領域401は、まだRAWデータを生成するための可逆圧縮処理を開始する前の状態である。システム制御部107が可逆圧縮処理を開始すると、記録用のメモリ領域には可逆圧縮処理を適用された撮像データ(RAWデータ)が順次記憶され、記録用のメモリ領域が全てRAWデータで埋められた状態が、記録用のメモリ領域402の状態である。このときの記録用のメモリ領域402内にある、RAWデータ(の一部)を1.TMP#1とする。   The recording memory area 401 is still in a state before starting the lossless compression process for generating RAW data. When the system control unit 107 starts the lossless compression process, the image data (RAW data) to which the lossless compression process is applied is sequentially stored in the recording memory area, and the recording memory area is entirely filled with the RAW data. The state is the state of the memory area 402 for recording. RAW data (part) of the RAW data in the recording memory area 402 at this time is 1. TMP # 1.

システム制御部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 system control unit 107 performs reversible compression processing for the capacity of the recording memory area, and when the processing is temporarily stopped, transfers a part of the RAW data to the recording medium 120 and records it. . For example, when the head cluster number of the free cluster on the recording medium 120 is (10), the system control unit 107 starts from the cluster number (10) to 1. Record TMP # 1. At this time, assuming that the recording memory area has a size of, for example, 5 clusters, the system control unit 107: TMP # 1 is recorded in cluster numbers (10) to (14) (data arrangement 433). For example, if the size of one cluster is N, the system control unit 107 starts from the cluster number (10) in the directory entry 413, and the file size is 5 * N. Information indicating that data having a file name of TMP exists is recorded. Then, the system control unit 107 records link information from the cluster numbers (10) to (14) in the FAT information 423. Further, the system control unit 107 determines that the transfer of the RAW data in the recording memory area is completed, and empties the recording memory area (recording memory area 403).

さらにシステム制御部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 system control unit 107 is 1. After the transfer of TMP # 1, since there is imaging data to which the lossless compression process is not applied in the compression memory area, the suspended lossless compression process is resumed. At this time, for example, if the application of the reversible compression process is completed for all of the imaging data stored in the compression memory area, the RAW data (1. TMP # 2) is output to the recording memory area. (Memory area 404 for recording). The system control unit 107 completes the generation processing of the RAW data in the recording memory area, and first performs division recording on the recording medium 120. Record additional information on the TMP. Specifically, the system control unit 107 is 1. TMP # 2 is recorded from the first cluster number (15) of the current free cluster. At this time If the size of TMP # 2 is, for example, one cluster and x bytes, the system control unit 107: TMP # 2 is recorded in cluster numbers (15) and (16) (data arrangement 435). Further, the system control unit 107 starts the directory entry 415 from the cluster number (10), and the file size is 6 * N + x (in combination with 1.TMP # 1). Update to information that data with a file name of TMP exists. Then, the system control unit 107 records the link information of the cluster numbers (15) and (16) in the FAT information 425. However, since the reversible compression process has been completed at this time, the system control unit 107 does 1. Since the TMP is closed, the FAT information 425 1. A (0xFF) code indicating the end of the file is recorded in the last cluster (16) of the TMP.

記録用のメモリ領域内の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 system control unit 107 again empties the recording memory area. Subsequently, the system control unit 107 performs development processing of the imaging data stored in the compression memory area in the image processing unit 104 to generate a display image, a thumbnail image, and RAW header information, and a recording memory area. (Memory area 405 for recording). The system control unit 107 transfers and records the display image, thumbnail image, and RAW header information stored in the recording memory area to the recording medium 120 as one piece of data (1. RAW). In that case, 1. In accordance with the data structure of the RAW format, the system control unit 107 transfers RAW to the recording medium 120 in the order of RAW header information, thumbnail images, and display images. At this time, RAW is recorded from the leading cluster number (17) of the free cluster. Where: If the RAW size is, for example, one cluster and y bytes, the system control unit 107 is 1. The RAW is recorded in cluster numbers (17) and (18) (data arrangement 436). In addition, the system control unit 107 starts from the cluster number (17) in the directory entry 416, and the file size is N + y. Information that data with a file name of RAW exists is newly recorded. The system control unit 107 records the link information of the cluster numbers (17) and (18) in the FAT information 426. Since the RAW is closed, a code (0xFF) indicating the end of the file is recorded in the final cluster number (18) of the FAT information 426. The system control unit 107 also stores data in the memory area for recording as 1.. Since recording as RAW has been completed, the recording memory area is emptied (recording memory area 406).

さらにシステム制御部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 system control unit 107 performs division recording, the system control unit 107 is recorded on the recording medium 120. TMP and 1. Combine processing with RAW is performed.
The system control unit 107 includes 1. The (0xFF) code recorded in the RAW last cluster number (18) Change to the first cluster number (10) of TMP (FAT information 427). Further, the system control unit 107 starts the directory entry 417 from the cluster number (17), and the file size is 8 * N + x (all together). Update to information that data with a file name of RAW exists. Further, the system control unit 107 includes: RAW and 1. TMP data has already been combined. Since the information of the TMP directory entry is unnecessary, An erasure flag is set in the directory entry information of TMP. By updating the FAT information and the directory entry, RAW format image data (1. RAW) can be obtained as in the data arrangement 437.

なお、分割記録と結合処理の説明において、本実施形態では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, RAW data 1. Apart from TMP A display image is recorded on the recording medium 120 as TMP. And finally 1. RAW and 1. TMP and 2. In binding TMP, 1. Set the RAW last cluster number to 2. To the first cluster number of TMP, 2. Set the final cluster number of TMP as 1. By changing to the first cluster number of TMP, RAW format data can be obtained.

以上説明したように、本実施形態で説明したデジタルカメラ100は、処理の過程で撮像データを分割して記録することで、記録用のメモリ領域よりも大きいサイズの撮像データの記録が可能である。また、ヘッダ情報のように撮像データの処理の完了後でないと得られない情報が含まれるデータを、記録形式上、分割記録したデータの先頭に配置したい場合にも、FAT情報を更新することで分割記録したデータを並び替えて結合させることが可能である。   As described above, the digital camera 100 described in the present embodiment can record imaging data having a size larger than the recording memory area by dividing and recording the imaging data in the course of processing. . In addition, when it is desired to place data including information that can only be obtained after completion of processing of imaging data, such as header information, at the beginning of the divided and recorded data in the recording format, the FAT information is updated. The divided and recorded data can be rearranged and combined.

(実施形態の変形例)
また実施形態では、特に静止画像の記録処理について説明したが、本発明は動画像の記録処理においても適用可能である。その場合、本実施形態の変形例のデジタルカメラ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 digital camera 100 according to the modification of the present embodiment further includes a microphone for capturing audio information.

操作入力部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 operation input unit 112, the system control unit 107 starts capturing a moving image and recording audio information. The system control unit 107 sequentially stores moving image data captured and processed in each block, and recorded and digitized audio data in a recording memory area. Further, when moving image data and audio data are stored for the size of the recording memory area, the system control unit 107 performs recording processing on the recording medium 120 and sequentially updates the FAT information and the directory entry. For example, when a moving image capturing completion command is input by a user operation on the shutter button provided in the operation input unit 112, the system control unit 107 completes recording of moving image data and audio data, and generates header information. Are recorded on the recording medium 120 and the above-described combination processing is performed.

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.
前記記録手段により記録されるデータは、動画像データ及び音声データであることを特徴とする請求項1に記載の撮像装置。 The imaging apparatus according to claim 1, wherein the data recorded by the recording unit is moving image data and audio data. 前記記録手段は、前記メモリ領域の容量より大きい前記変換手段により変換されて得られたデータを分割記録する場合に、該データの全体を前記記録媒体に記録した後、前記変換手段による変換の完了後でないと得られない情報が含まれるヘッダ情報を前記記録媒体に記録し、When the recording means records the data obtained by conversion by the conversion means that is larger than the capacity of the memory area, after recording the entire data on the recording medium, the conversion means completes the conversion. Record header information including information that can only be obtained later on the recording medium,
前記結合手段は、前記分割記録されたデータ及び前記ヘッダ情報の各々のクラスタのリンク情報を更新することにより、該ヘッダ情報を前記分割記録されたデータの先頭部分に配置するように並べ替えて結合する  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.
前記記録工程において記録されるデータは、動画像データ及び音声データであることを特徴とする請求項4に記載の撮像装置の制御方法。5. The method for controlling an imaging apparatus according to claim 4, wherein the data recorded in the recording step is moving image data and audio data. 前記記録手段は前記記録工程において、前記メモリ領域の容量より大きい前記変換手段により変換されて得られたデータを分割記録する場合に、該データの全体を前記記録媒体に記録した後、前記変換工程における変換の完了後でないと得られない情報が含まれるヘッダ情報を前記記録媒体に記録し、In the recording step, when the data obtained by conversion by the conversion unit larger than the capacity of the memory area is divided and recorded, the recording unit records the entire data on the recording medium, and then the conversion step. In the recording medium, header information including information that can be obtained only after completion of the conversion is recorded,
前記結合手段は前記結合工程において、前記分割記録されたデータ及び前記ヘッダ情報の各々のクラスタのリンク情報を更新することにより、該ヘッダ情報を前記分割記録されたデータの先頭部分に配置するように並べ替えて結合する  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
JP2009175799A 2009-07-28 2009-07-28 Imaging apparatus and control method thereof Active JP5486233B2 (en)

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)

* Cited by examiner, † Cited by third party
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)

* Cited by examiner, † Cited by third party
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

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