JP4166148B2 - Image recording device - Google Patents
Image recording device Download PDFInfo
- Publication number
- JP4166148B2 JP4166148B2 JP2003406152A JP2003406152A JP4166148B2 JP 4166148 B2 JP4166148 B2 JP 4166148B2 JP 2003406152 A JP2003406152 A JP 2003406152A JP 2003406152 A JP2003406152 A JP 2003406152A JP 4166148 B2 JP4166148 B2 JP 4166148B2
- Authority
- JP
- Japan
- Prior art keywords
- recording
- recording medium
- image
- size
- recordable
- 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.)
- Expired - Fee Related
Links
- 238000000034 method Methods 0.000 claims description 22
- 238000007906 compression Methods 0.000 description 40
- 230000006835 compression Effects 0.000 description 38
- 230000008569 process Effects 0.000 description 16
- 230000007423 decrease Effects 0.000 description 14
- 230000009467 reduction Effects 0.000 description 9
- 230000002265 prevention Effects 0.000 description 7
- 239000002131 composite material Substances 0.000 description 6
- 238000006243 chemical reaction Methods 0.000 description 3
- 238000010586 diagram Methods 0.000 description 3
- 230000003287 optical effect Effects 0.000 description 3
- 230000004044 response Effects 0.000 description 3
- 238000004904 shortening Methods 0.000 description 3
- 230000006837 decompression Effects 0.000 description 2
- 230000003247 decreasing effect Effects 0.000 description 2
- 230000006870 function Effects 0.000 description 2
- 238000007726 management method Methods 0.000 description 2
- 238000001514 detection method Methods 0.000 description 1
- 238000003825 pressing Methods 0.000 description 1
- 238000000926 separation method Methods 0.000 description 1
Images
Landscapes
- Storing Facsimile Image Data (AREA)
- Compression Of Band Width Or Redundancy In Fax (AREA)
- Television Signal Processing For Recording (AREA)
Description
この発明は画像記録装置に関し、特にたとえばディジタルカメラに適用され、記憶領域が複数の単位領域に分割された記録媒体に画像信号を記録する、画像記録装置に関する。 The present invention relates to an image recording apparatus, and more particularly to an image recording apparatus which is applied to, for example, a digital camera and records an image signal on a recording medium whose storage area is divided into a plurality of unit areas.
従来のこの種の画像記録装置の一例が、特許文献1に開示されている。この従来技術では、記録媒体のファイル管理方式としてFAT(File Allocation Table)方式が採用される。未使用状態の記録媒体がディジタルカメラに装着されると、1クラスタを形成するセクタ数が“4”から“16”に変更される。これによって、画像データの記録に要する時間を短縮することができる。
しかし、クラスタサイズを大きくすると、記録媒体の使用効率が低下する。この使用効率の低下の問題は、記録媒体の容量が小さいほど、換言すれば記録媒体に記録できる画像の枚数つまり記録可能枚数が少ないほど、顕著になる。にも関わらず、従来技術では、記録容量または記録可能枚数に関係なくクラスタサイズを “16”に変更していた。このため、従来技術では、記録に要する時間の短縮化は可能であるものの、記録媒体の使用効率の低下を防止することは不可能であった。 However, when the cluster size is increased, the use efficiency of the recording medium is lowered. The problem of this reduction in use efficiency becomes more prominent as the capacity of the recording medium is smaller, in other words, the smaller the number of images that can be recorded on the recording medium, that is, the smaller the number of recordable sheets. Nevertheless, in the prior art, the cluster size is changed to “16” regardless of the recording capacity or the number of recordable sheets. For this reason, in the prior art, although it is possible to shorten the time required for recording, it is impossible to prevent a decrease in the usage efficiency of the recording medium.
それゆえに、この発明の主たる目的は、記録に要する時間の短縮化と記録媒体の使用効率の低下防止とを両立させることができる、画像記録装置を提供することである。 Therefore, a main object of the present invention is to provide an image recording apparatus capable of both reducing the time required for recording and preventing the decrease in the use efficiency of the recording medium.
請求項1の発明に従う画像記録装置は、記録領域が複数の単位領域に分割されたかつ空き状態の単位領域が離散的に分布しうる記録媒体に画像データを記録する画像記録装置において、記録媒体の容量を検出する検出手段、検出手段によって検出された容量に基づいて記録媒体の記録可能画像データ数を算出する算出手段、および算出手段によって算出された記録可能画像データ数が大きいほど単位領域のサイズを大きく設定する設定手段を備えることを特徴とする。
An image recording apparatus according to
画像データは、記録領域が複数の単位領域に分割されたかつ空き状態の単位領域が離散的に分布し得る記録媒体に記録される。検出手段は記録媒体の容量を検出し、算出手段は検出された容量に基づいて記録媒体の記録可能画像データ数を算出し、設定手段は算出された記録可能画像データ数が大きいほど単位領域のサイズを大きくする。 The image data is recorded on a recording medium in which the recording area is divided into a plurality of unit areas and the empty unit areas can be distributed discretely . Detecting means detects the capacity of the recording medium, calculating means calculates the recordable number image data of the recording medium based on the detected capacitance, setting means calculated as a unit area recordable image number data is larger was Increase the size of.
記録可能画像データ数が大きいときは、記録媒体の使用効率の低下は問題ではない。このため、記録時間の短縮化を図るべく単位領域のサイズが大きい値に設定される。一方、記録可能画像データ数が小さいときは、記録時間よりも記録媒体の使用効率を重視すべきであり、単位領域のサイズは小さい値に設定される。これによって、記録に要する時間の短縮化と記録媒体の使用効率の低下防止とを両立させることができる。 When the number of recordable image data is large, a decrease in use efficiency of the recording medium is not a problem. For this reason, the size of the unit area is set to a large value in order to shorten the recording time. On the other hand, when the number of recordable image data is small , the use efficiency of the recording medium should be more important than the recording time, and the size of the unit area is set to a small value. As a result, it is possible to achieve both the reduction of the time required for recording and the prevention of lowering the use efficiency of the recording medium.
記録可能画像データ数は画像データのサイズに依存し、かつこのサイズは後発的な要因(たとえばイメージセンサの解像度や、コーデックのデフォルト圧縮率)によって変動する。さらに、記録時間および記録媒体の使用効率のいずれを重視するかを判断する上で、記録可能画像データ数は重要な要素である。そこで、記録媒体の容量に基づいて記録可能画像データ数が算出され、算出された記録可能画像データ数に基づいて単位領域のサイズが設定される。これによって、記録に要する時間の短縮化と記録媒体の使用効率の低下防止とが、最も適切に両立される。 The number of recordable image data depends on the size of the image data, and this size varies depending on subsequent factors (for example, the resolution of the image sensor and the default compression rate of the codec). Furthermore, the number of recordable image data is an important factor in determining which of the recording time and the usage efficiency of the recording medium is important. Therefore, the calculated recordable image number data based on the capacity of the record medium, the size of the unit area is set based on the recording image capacity data calculated. As a result, the shortening of the time required for recording and the prevention of a decrease in the use efficiency of the recording medium are most appropriately achieved.
請求項2の発明に従う画像記録装置は、請求項1に従属し、画像データは所定サイズを目標として圧縮された圧縮画像データであり、算出手段は記録領域の容量と目標サイズとに基づいて記録可能画像データ数を算出する。圧縮画像データの目標サイズを設定することで、記録可能枚数を容易に算出することができる。
The image recording apparatus according to an invention of
請求項3によれば、ディジタルカメラは、請求項1または請求項2に記載の画像記録装置を備える。 According to a third aspect of the present invention, a digital camera includes the image recording apparatus according to the first or second aspect .
請求項4に従う画像記録方法は、記録領域が複数の単位領域に分割されたかつ空き状態の単位領域が離散的に分布し得る記録媒体に画像データを記録する画像記録方法であって、(a)記録媒体の容量を検出し、(b)ステップ(a)で検出された容量に基づいて前記記録媒体の記録可能画像データ数を算出し、そして(c)ステップ(b)で算出された記録可能画像データ数が大きいほど前記単位領域のサイズを大きく設定する。請求項1と同様、記録に要する時間の短縮化と記録媒体の使用効率の低下防止とを両立させることができる。 An image recording method according to claim 4 is an image recording method for recording image data on a recording medium in which a recording area is divided into a plurality of unit areas and empty unit areas can be distributed discretely. ) Detecting the capacity of the recording medium , ( b) calculating the number of recordable image data of the recording medium based on the capacity detected in step (a) , and (c) recording calculated in step (b) The larger the number of possible image data , the larger the unit area size is set. Similar to the first aspect, it is possible to achieve both the reduction of the time required for recording and the prevention of the decrease in the usage efficiency of the recording medium.
この発明によれば、記録可能画像データ数が大きいとき単位領域のサイズを大きい値に設定し、記録可能画像データ数が小さいときは単位領域のサイズを小さい値に設定するようにしたため、記録に要する時間の短縮化と記録媒体の使用効率の低下防止とを両立させることができる。 According to the present invention, when the number of recordable image data is large, the size of the unit area is set to a large value, and when the number of recordable image data is small , the size of the unit area is set to a small value. It is possible to achieve both shortening of the time required and prevention of lowering the use efficiency of the recording medium.
この発明の上述の目的,その他の目的,特徴および利点は、図面を参照して行う以下の実施例の詳細な説明から一層明らかとなろう。 The above object, other objects, features and advantages of the present invention will become more apparent from the following detailed description of embodiments with reference to the drawings.
図1を参照して、この実施例のディジタルカメラ10は、光学レンズ12を含む。被写体の光学像は、光学レンズ12を介してCCDイメージャのようなイメージセンサ14の受光面に入射する。受光面は、原色ベイヤ配列を有する色フィルタ(図示せず)によって覆われ、受光面に形成された複数の受光素子(画素)の各々で生成される電荷つまり画素信号は、R,GおよびBのいずれか1つの色情報のみを有する。
Referring to FIG. 1, a
なお、この実施例では、イメージセンサ14としてCCDイメージャを用いるが、代わりにCMOSイメージャを用いてもよい。
In this embodiment, a CCD imager is used as the
主電源が投入されると、スルー画像表示処理が実行される。まず、CPU34からTG(Timing Generator)40に対して間引き読み出しの繰り返しが命令される。TG40は、イメージセンサ14に30fpsのフレームレートで間引き読み出しを施す。この結果、垂直方向の解像度が低減された生画像信号が、ラスタ走査態様でイメージセンサ14から読み出される。出力される低解像度の生画像信号は偶数ラインにR,G,R,G,…の色情報を有し、奇数ラインにG,B,G,B,…の色情報を有する。
When the main power is turned on, a through image display process is executed. First, the
CDS/AGC回路16は、イメージセンサ14から出力された各フレームの生画像信号にノイズ除去およびゲイン調整を施し、A/D変換器18はかかる処理が施された生画像信号をディジタル信号である生画像データに変換する。変換された生画像データは信号処理回路20に与えられ、白バランス調整,色分離,水平間引き,YUV変換などの信号処理を施される。YUV変換によって得られたYUVデータは、メモリコントローラ22によってSDRAM24に書き込まれる。
The CDS /
ビデオエンコーダ26は、メモリコントローラ22を通してSDRAM24から各フレームのYUVデータを読み出し、読み出されたYUVデータを縮小ズーム処理を経てNTSC方式のコンポジットビデオ信号に変換する。変換されたコンポジットビデオ信号は、LCD28に与えられる。この結果、被写体のリアルタイム動画像つまりスルー画像がLCD28から出力される。
The
イメージセンサ14の有効画素数は約200万であり、水平画素数および垂直画素数はそれぞれ“1600”および“1200”である。後述するように、被写体の静止画像に対応するYUVデータは、圧縮処理を施されて記録媒体38に記録される。このとき、目標のファイルサイズに従う圧縮率がJPEGコーデック30に設定される。
The number of effective pixels of the
この実施例では、第1解像度(=1600画素×1200画素)および第2解像度(=640画素×480画素)のいずれか一方を静止画像の解像度として選択できる。各々の解像度には、複数の圧縮率が準備される。 In this embodiment, one of the first resolution (= 1600 pixels × 1200 pixels) and the second resolution (= 640 pixels × 480 pixels) can be selected as the resolution of the still image. A plurality of compression ratios are prepared for each resolution.
第1解像度の撮影モードでは、第1圧縮率(=0),第2圧縮率(=5.2),第3圧縮率(=8.2)および第4圧縮率(=13.4)のいずれか1つを選択できる。第1圧縮率が選択されると第1ファイルサイズ(=5.76MB)の静止画ファイルが作成され、第2圧縮率が選択されると第2ファイルサイズ(=1.1MB)の静止画ファイルが作成される。また、第3圧縮率が選択されると第3ファイルサイズ(=700KB)の静止画ファイルが作成され、第4圧縮率が選択されると第4ファイルサイズ(=430KB)の静止画ファイルが作成される。 In the first resolution shooting mode, the first compression ratio (= 0), the second compression ratio (= 5.2), the third compression ratio (= 8.2), and the fourth compression ratio (= 13.4). Either one can be selected. When the first compression rate is selected, a still image file having the first file size (= 5.76 MB) is created, and when the second compression rate is selected, the still image file having the second file size (= 1.1 MB). Is created. When the third compression rate is selected, a still image file having the third file size (= 700 KB) is created. When the fourth compression rate is selected, a still image file having the fourth file size (= 430 KB) is created. Is done.
第2解像度の撮影モードでは、第5圧縮率(=7.7)および第6圧縮率(=13.2)のいずれか1つを選択できる。第5圧縮率が選択されると第5ファイルサイズ(=120KB)の静止画ファイルが作成され、第6圧縮率が選択されると第6ファイルサイズ(=70KB)の静止画ファイルが作成される。 In the second resolution shooting mode, one of the fifth compression ratio (= 7.7) and the sixth compression ratio (= 13.2) can be selected. When the fifth compression rate is selected, a still image file of the fifth file size (= 120 KB) is created, and when the sixth compression rate is selected, a still image file of the sixth file size (= 70 KB) is created. .
なお、所望の解像度および圧縮率は、解像度選択ボタン42および圧縮率選択ボタン44の操作によって選択される。
The desired resolution and compression rate are selected by operating the
撮影モードが選択されかつ第1解像度が選択された状態でシャッタボタン32が操作されると、CPU34は、全画素読み出しの実行をTG40に命令する。TG40は、イメージセンサ14に1フレーム(1画面)の全画素読み出しを施し、この結果、高解像度の生画像信号がラスタ走査態様でイメージセンサ14から出力される。出力された生画像信号は偶数ラインにR,G,R,G,…の色情報を有し、奇数ラインにG,B,G,B,…の色情報を有する。
When the
シャッタボタン32の操作に応答して読み出された生画像信号は、CDS/AGC回路16、A/D変換器18および信号処理回路20によって上述と同様の処理を施される。ただし、水平間引きは省略され、信号処理回路20からは、高解像度のYUVデータが出力される。出力されたYUVデータはメモリコントローラ22を介してSDRAM24に書き込まれる。ビデオエンコーダ26は、SDRAM24に格納された高解像度のYUVデータをメモリコントローラ22を通して読み出し、読み出されたYUVデータを縮小ズームを経てNTSCフォーマットのコンポジットビデオ信号に変換する。この結果、シャッタボタン32が操作された時点の被写体の静止画像つまりフリーズ画像が、LCD28から出力される。
The raw image signal read in response to the operation of the
また、CPU34は、第2圧縮率〜第4圧縮率のいずれか1つが選択されているとき、JPEGコーデック30に圧縮命令を与える。圧縮命令は、選択された圧縮率を示す情報を含む。JPEGコーデック30は、メモリコントローラ22を通してSDRAM24からYUVデータを読み出し、読み出されたYUVデータに所望の圧縮率に従うJPEG圧縮を施し、そして圧縮YUVデータつまりJPEGデータをメモリコントローラ22を通してSDRAM24に書き込む。CPU34は、SDRAM24に格納されたJPEGデータをメモリコントローラ22を通して読み出し、読み出されたJPEGデータを格納する静止画ファイルをI/F36を通して記録媒体38に記録する。
Further, the
第1圧縮率(=0)が選択されているときは、圧縮処理は不要である。CPU34は、SDRAM24に格納されたYUVデータをメモリコントローラ22を通して読み出し、当該YUVデータが格納された静止画ファイルをI/F36を介して記録媒体38に記録する。
When the first compression rate (= 0) is selected, the compression process is not necessary. The
なお、記録媒体38は着脱自在であり、装着時にI/F36と接続される。また、記録媒体38はファイル管理方式としてFAT方式を採用する。記録領域は複数のクラスタに分割され、空き状態のクラスタは離散的に分布し得る。静止画ファイルは、複数のクラスタに分散して書き込まれる。
The
第2解像度が選択された場合、CPU34は、シャッタボタン32の操作に応答して、間引き読み出しの実行をTG40に命令する。TG40は、イメージセンサ14に1フレーム期間の間引き読み出しを施す。この結果、低解像度の生画像信号がラスタ走査態様でイメージセンサ14から出力される。間引き読み出しによってイメージセンサ14から出力される生画像信号の垂直ライン数は、全画素読み出しによってイメージセンサ14から出力される生画像信号の垂直ライン数の1/4である。ただし、出力された生画像信号は、偶数ラインにR,G,R,G,…の色情報を有し、奇数ラインにG,B,G,B,…の色情報を有する。
When the second resolution is selected, the
シャッタボタン32の操作に応答して読み出された生画像信号は、CDS/AGC回路16、A/D変換器18および信号処理回路20によって上述と同様の処理を施される。第2解像度が選択されると信号処理回路20において水平間引き処理が実行され、水平画素数は1/4に減少する。信号処理回路20からは、低解像度のYUVデータが出力される。このYUVデータは、メモリコントローラ22を介してSDRAM24に書き込まれる。SDRAM24に格納された低解像度のYUVデータは、その後、メモリコントローラ22を介してビデオエンコーダ26に与えられ、縮小ズームを経てNTSCフォーマットのコンポジットビデオ信号に変換される。この結果、シャッタボタン32が操作された時点の被写体の静止画像(フリーズ画像)がLCD28から出力される。
The raw image signal read in response to the operation of the
また、CPU34は、シャッタボタン32が操作されたとき、JPEGコーデック30に圧縮命令を与える。圧縮命令は、第5圧縮率または第6圧縮率のいずれか一方を示す情報を含む。JPEGコーデック30は、メモリコントローラ22を通してSDRAM24から低解像度のYUVデータを読み出し、読み出されたYUVデータにJPEG圧縮を施し、そしてJPEGデータをメモリコントローラ22を介してSDRAM24に書き込む。CPU34は、SDRAM24に格納されたJPEGデータをメモリコントローラ22を通して読み出し、読み出されたJPEGデータをI/F36を通して記録媒体38に記録する。
Further, the
再生モードが選択されると、記録媒体38に記録された静止画ファイルのファイル名がLCD28に表示される。ここで、ユーザが所望のファイル名を選択すると、選択された静止画ファイルに格納されたJPEGデータまたはYUVデータが、CPU34によって記録媒体38から読み出される。読み出されたJPEGデータまたはYUVデータは、メモリコントローラ22によってSDRAM24に書き込まれる。
When the playback mode is selected, the file name of the still image file recorded on the
SDRAM24に格納されたデータがJPEGデータであるときは、CPU34からJPEGコーデック30に伸長命令が与えられる。JPEGコーデック30は、メモリコントローラ22を通してSDRAM24からJPEGデータを読み出し、読み出されたJPEGデータにJPEG伸長を施し、そして伸長されたYUVデータをメモリコントローラ22を通してSDRAM24に書き込む。
When the data stored in the
SDRAM24に格納されたYUVデータは、メモリコントローラ22を介してビデオエンコーダ26に与えられる。ビデオエンコーダ26は、与えられたYUVデータを縮小ズームを経てNTSC方式のコンポジットビデオ信号に変換し、変換されたコンポジットビデオ信号をLCD28に与える。この結果、再生静止画像がLCD28に表示される。
The YUV data stored in the
上述のように、記録媒体34はFAT方式を採用し、静止画ファイルは複数のクラスタによって分散管理される。ここで、クラスタサイズが大きければ、ファイルを少数のクラスタで管理できる。しかし、静止画ファイルのサイズが小さければ、使用しない領域(セクタ)が多くなり、記録媒体38の使用効率が低下する。一方、クラスタサイズを小さくすれば、記録媒体38の使用効率の低下を防止できるものの、1つの静止画ファイルを管理するクラスタ数が多くなり、ファイルの書き込み/読み出しに時間がかかる。
As described above, the
たとえば、64Mバイトの容量を持つ記録媒体に第3ファイルサイズ(=700Kバイト)の静止画ファイルを保存する場合、クラスタサイズが16Kバイトに設定されると、1つの静止画ファイルを保存するために必要なクラスタ数は“44(=700Kバイト/16Kバイト)”となり、記録可能枚数は“90(=64Mバイト/(16Kバイト*44クラスタ))”となる。また、クラスタサイズが32Kバイトに設定されると、1つの静止画ファイルの保存に必要なクラスタ数は“22(=700Kバイト/32Kバイト)”となり、記録可能枚数は“90(=64Mバイト/(32Kバイト*22クラスタ))”となる。 For example, when storing a still image file of the third file size (= 700 Kbytes) on a recording medium having a capacity of 64 Mbytes, when the cluster size is set to 16 Kbytes, one still image file is stored. The required number of clusters is “44 (= 700 Kbytes / 16 Kbytes)”, and the number of recordable sheets is “90 (= 64 Mbytes / (16 Kbytes * 44 clusters))”. If the cluster size is set to 32 Kbytes, the number of clusters required to store one still image file is “22 (= 700 Kbytes / 32 Kbytes)”, and the recordable number is “90 (= 64 Mbyte / byte). (32 Kbytes * 22 clusters)) ”.
一方、64Mバイトの容量を持つ記録媒体に第6ファイルサイズ(=70Kバイト)の静止画ファイルを保存する場合、クラスタサイズが8Kバイトに設定されると、1つの静止画ファイルを保存するために必要なクラスタ数は“9(=70Kバイト/8Kバイト)”となり、撮影可能枚数は“888(=64Mバイト/(8Kバイト*9クラスタ))”となる。また、クラスタサイズが16Kバイトに設定されると、1つの静止画ファイルの保存に必要なクラスタ数は“5(=70Kバイト/16Kバイト)”となり、撮影可能枚数は“800(=64Mバイト/(16Kバイト*5クラスタ))”となる。さらに、クラスタサイズが32Kバイトに設定されると、1つの静止画ファイルの保存に必要なクラスタ数は“3(=70Kバイト/32Kバイト)”となり、記録可能枚数は“666(=64Mバイト/(32Kバイト*3クラスタ))”となる。 On the other hand, when storing a still image file of the sixth file size (= 70 Kbytes) on a recording medium having a capacity of 64 Mbytes, if the cluster size is set to 8 Kbytes, one still image file is stored. The required number of clusters is “9 (= 70 Kbytes / 8 Kbytes)”, and the number of shootable images is “888 (= 64 Mbytes / (8 Kbytes × 9 clusters))”. When the cluster size is set to 16 Kbytes, the number of clusters necessary for storing one still image file is “5 (= 70 Kbytes / 16 Kbytes)”, and the number of shootable images is “800 (= 64 Mbyte / byte). (16 Kbytes * 5 clusters)) ”. Further, when the cluster size is set to 32 Kbytes, the number of clusters necessary for storing one still image file is “3 (= 70 Kbytes / 32 Kbytes)”, and the recordable number is “666” (= 64 Mbytes / byte). (32 Kbytes * 3 clusters)) ”.
つまり、ファイルサイズが大きければ、クラスタサイズを大きくしても記録可能枚数は減少せず、かつクラスタサイズを大きくすることで書き込み速度が速くなる。同様に、ファイルサイズが小さければ、クラスタサイズを小さくしても書き込み速度は低下せず、かつクラスタサイズを小さくすることで記録可能枚数の減少が回避される。 That is, if the file size is large, the number of recordable images does not decrease even if the cluster size is increased, and the writing speed is increased by increasing the cluster size. Similarly, if the file size is small, the writing speed does not decrease even if the cluster size is reduced, and the reduction of the recordable number is avoided by reducing the cluster size.
これに対して、ファイルサイズが小さいときにクラスタサイズを大きくすると、書き込み速度は速いが、記録可能枚数が減少する可能性がある。また、ファイルサイズが大きいときにクラスタサイズを小さくすると、記録可能枚数の減少は回避できるが、書き込み速度が遅くなる。 On the other hand, if the cluster size is increased when the file size is small, the writing speed is fast, but the number of recordable sheets may be reduced. In addition, if the cluster size is reduced when the file size is large, a decrease in the number of recordable sheets can be avoided, but the writing speed becomes slow.
ところで、実用上は、記録可能枚数つまり記録容量が元々多ければ、記録可能枚数の減少つまりクラスタの使用効率の低下は大きな問題とはならない。 By the way, in practice, if the number of recordable sheets, that is, the recording capacity is originally large, a decrease in the number of recordable sheets, that is, a decrease in use efficiency of the cluster is not a big problem.
以上のような特性を考慮して、この実施例では、デフォルトの撮影条件で作成される静止画ファイルのサイズと記録媒体38の容量とに基づいて記録可能枚数が算出され、算出された記録可能枚数に対応するクラスタサイズで記録媒体38がフォーマットされる。
In consideration of the above characteristics, in this embodiment, the number of recordable images is calculated based on the size of the still image file created under the default shooting conditions and the capacity of the
具体的には、記録可能枚数が第1閾値(=100)以上であれば、ファイルの書き込み速度を重視して、クラスタサイズが第1サイズ(=32Kバイト)に決定される。つまり、記録可能枚数が100枚以上であれば、記録媒体34の使用効率の低下は大きな問題ではないとみなし、クラスタサイズが大きくされ。また、記録可能枚数が第1閾値未満でかつ第2閾値(=50)以上であれば、ファイルの書き込み速度および記録媒体38の使用効率の両方を重視して、クラスタサイズが第2サイズ(=16Kバイト)に決定される。さらに、記録可能枚数が第2閾値未満であれば、書き込み速度よりも記録媒体38の使用効率を重視して、クラスタサイズが第3サイズ(=8Kバイト)に決定される。
Specifically, if the number of recordable sheets is equal to or greater than the first threshold (= 100), the cluster size is determined to be the first size (= 32 Kbytes) with emphasis on the file writing speed. That is, if the number of recordable sheets is 100 or more, it is considered that a decrease in the usage efficiency of the
つまり、記録可能枚数が大きいほどクラスタサイズは大きい値に決定され、逆に記録可能枚数が小さいほどクラスタサイズは小さい値に決定される。かかる記録可能枚数に応じたクラスタサイズの決定が、各々の記録媒体に適した使用を可能にする。 That is, the larger the recordable number, the larger the cluster size is determined. Conversely, the smaller the recordable number, the smaller the cluster size is determined. The determination of the cluster size according to the recordable number of sheets enables the use suitable for each recording medium.
FAT方式に従うフォーマット処理の実行が指示されたとき、CPU38は、図2に示すフロー図に従ってクラスタサイズを決定する。まずステップS1で、デフォルトモードに応じた静止画ファイルサイズが特定される。この実施例では第1解像度および第3圧縮率がデフォルトの解像度および圧縮率であり、第3ファイルサイズがデフォルトのファイルサイズとして特定される。ステップS3では外部メモリすなわち記録媒体38の記録容量が検出され、ステップS5では記録可能枚数が算出される。具体的には、記録媒体38の容量を第3ファイルサイズで割り算することで、記録可能枚数が算出される。続いて、ステップS7およびS11で記録可能枚数が判別される。
When the execution of the format process according to the FAT system is instructed, the
記録可能枚数が“100”以上であれば、ステップS7からステップS9に進み、1クラスタのサイズを32Kバイトと定義して記録媒体38がフォーマットされる。また、記録枚数が“50”以上“100”未満であれば、ステップS11からステップS13に進み、1クラスタのサイズを16Kバイトと定義して記録媒体38がフォーマットされる。さらに、記録可能枚数が“50”未満であれば、ステップS11からステップS15に進み、1クラスタのサイズを8Kバイトと定義して記録媒体38がフォーマットされる。フォーマットが完了すると、処理を終了する。
If the recordable number is “100” or more, the process proceeds from step S7 to step S9, where the size of one cluster is defined as 32 Kbytes, and the
この実施例によれば、ファイルサイズと記録媒体の容量とによって算出される記録可能枚数に基づいてクラスタサイズを決定するようにしたため、記録に要する時間の短縮化および記録媒体38の使用効率の低下防止を両立させることができる。
According to this embodiment, since the cluster size is determined based on the recordable number of sheets calculated based on the file size and the capacity of the recording medium, the time required for recording is shortened and the use efficiency of the
図3に示す他の実施例のディジタルカメラ10は、静止画像撮影モードおよび動画像撮影モードの2つの撮影モードを備える以外は、上述の実施例と同じである。したがって、重複した説明は省略する。
The
なお、静止画像撮影モードは、上述の通り、シャッタボタン32が押下される度に被写体の静止画像を記録するモードである。動画像撮影モードは、シャッタボタン32の押下に従う期間の被写体の動画像を記録するモードである。
Note that the still image shooting mode is a mode in which a still image of a subject is recorded every time the
図3を参照して、他の実施例のディジタルカメラ10は、撮影モードを静止画像撮影モードと動画像撮影モードとの間で切り換えるためのモード切換ボタン46をさらに備える。モード切換ボタン46によって静止画像撮影モードが選択されると、上述の動作に従って被写体の静止画像が撮影される。
Referring to FIG. 3, the
一方、モード切換ボタン46によって動画像撮影モードが選択された状態でシャッタボタン32が操作されると、CPU34は、TG40に対して本露光および所定解像度に従う間引き読み出しの繰り返しを命令する。TG40は、この命令に対応するタイミング信号をイメージセンサ14に供給する。これによって、所定解像度に従う生画像信号が、1フレーム期間毎にイメージセンサ14から出力される。
On the other hand, when the
イメージセンサ14から出力された各フレームの生画像信号は、CDS/AGC回路16による処理を経てA/D変換回路18に入力され、生画像データに変換される。変換された生画像データは信号処理回路20で上述と同様の処理を施され、信号処理回路20から出力された各フレームのYUVデータはメモリコントローラ22によってSDRAM24のYUVデータ領域24aに書き込まれる。
The raw image signal of each frame output from the
JPEGコーデック30は、CPU34から圧縮命令が与えられたとき、YUVデータ領域24aからYUVデータを読み出し、読み出されたYUVデータにJPEG圧縮を施し、そして生成されたJPEGデータをSDRAM24のJPEGデータ領域24bに書き込む。
When a compression command is given from the
このような圧縮処理は、再度シャッタボタン32が操作されるまで続けられる。つまり、最初にシャッタボタン32が操作されてから再度シャッタボタン32が操作されるまでの間、圧縮処理が繰り返され、複数フレームのJPEGデータがJPEGデータ領域24bに蓄積される。蓄積されたJPEGデータは、メモリコントローラ22によって読み出され、I/F36を介して記録媒体38に記録される。これによって、複数フレームのJPEGデータを含むムービファイル(QuickTimeファイル)が記録媒体38内に作成される。
Such compression processing is continued until the
再生モードが選択されると、記録媒体38に記録された静止画ファイルまたはムービファイルが再生される。静止画ファイルが選択されたときは、上述のように静止画像がLCD28に表示される。ムービファイルが選択されたときは、ムービファイルに格納された各フレームのJPEGデータが静止画再生と同様の処理を周期的に施される。これによって、動画像がLCD28に表示される。
When the reproduction mode is selected, the still image file or movie file recorded on the
また、動画像撮影モードでは、イメージセンサ14のフレームレートを任意に設定できる。つまり、フレームレート選択ボタン48の操作によって、第1フレームレート(=15fps)および第2フレームレート(=30fps)のいずれか一方を選択できる。
In the moving image shooting mode, the frame rate of the
さらに、動画像撮影モードでは、第3解像度(=水平640画素×垂直480画素)、第4解像度=水平320画素×垂直240画素)または第5解像度(=水平160画素×垂直120画素)を選択でき、各々の解像度について第7圧縮率(=10.8)または第8圧縮率(=20.4)を選択できる。 Further, in the moving image shooting mode, the third resolution (= horizontal 640 pixels × vertical 480 pixels), the fourth resolution = horizontal 320 pixels × vertical 240 pixels) or the fifth resolution (= horizontal 160 pixels × vertical 120 pixels) is selected. The seventh compression ratio (= 10.8) or the eighth compression ratio (= 20.4) can be selected for each resolution.
たとえば、30fpsおよび第3解像度が選択されると、64Mバイトの記録媒体38では動画像を42秒間にわたって記録できる。動画記録では、記録ビットレートを考慮する必要がある。この実施例の記録ビットレートは、12.19Mbps(=64Mバイト/42秒×8ビット)である。すると、15fpsおよび第3解像度が選択された場合は、記録可能時間が2倍に延長される。また、30fpsおよび第4解像度が選択された場合は、記録可能時間が4倍に延長される。
For example, when 30 fps and the third resolution are selected, a moving image can be recorded for 42 seconds on the 64
この実施例では、30fpsおよび第3解像度に従う動画記録の条件が最も厳しく、この条件では高速アクセス性が記録媒体38に課せられる。つまり、動画像撮影機能を有する場合には、記録ビットレートをも考慮して、クラスタサイズを決定する必要がある。
In this embodiment, conditions for moving image recording according to 30 fps and the third resolution are the strictest, and high-speed accessibility is imposed on the
記録可能枚数が第1閾値以上の場合には、1クラスタのサイズを64Kバイト(第4サイズ)と定義して記録媒体38がフォーマットされる。また、記録可能枚数が第1閾値未満でかつ第2閾値以上の場合には、1クラスタのサイズを第1サイズと定義して記録媒体38がフォーマットされる。これによって、記録速度の高速化が実現される。
When the recordable number is equal to or larger than the first threshold, the size of one cluster is defined as 64 Kbytes (fourth size), and the
CPU34は、具体的には図4に示すフロー図に従う処理を実行する。ただし、図4に示す処理は、図2に示す処理と略同じであるため、異なる部分についてのみ説明することにする。
Specifically, the
図4を参照して、ステップS7で“YES”であれば、つまり撮影可能枚数が100以上であれば、ステップS9´で1クラスタのサイズを64Kバイト(第4サイズ)と定義して記録媒体38がフォーマットされる。また、ステップS11で“YES”であれば、つまり撮影可能枚数が50以上100未満であれば、ステップS13´で1クラスタのサイズを32Kバイト(第1サイズ)と定義して記録媒体38がフォーマットされる。ステップS9´およびS13´のいずれも、動画像撮影モードでの書き込み速度を重視したものである。なお、撮影可能枚数が50未満であれば、記録媒体38の使用効率を重視するべく、ステップS15で1クラスタを第3サイズと定義してフォーマットが行われる。
Referring to FIG. 4, if “YES” in the step S7, that is, if the number of shootable images is 100 or more, the size of one cluster is defined as 64K bytes (fourth size) in a step S9 ′, and the
この実施例によれば、ディジタルカメラ10が動画像撮影機能を有する場合、動画像の記録ビットレートを考慮してクラスタサイズが決定される。これによって、動画像または静止画像の記録速度の高速化と記録媒体の使用効率の低下防止とを両立させることができる。
According to this embodiment, when the
図5に示すその他の実施例のディジタルカメラ10は、CPU34が図6に示すフロー図に従う処理を実行する点を除き、図3実施例と同じであるため、重複した説明は省略する。
The
図6を参照して、ステップS3では記録媒体38の記録容量が検出され、ステップS7´およびS11´では検出された記録容量が判別される。記録容量が64Mバイトであれば、ステップS7´からステップS9´に進み、1クラスタのサイズを64Kバイトと定義して記録媒体38がフォーマットされる。また、記録枚数が32Mバイト以上64Mバイト未満であれば、ステップS11´からステップS13´に進み、1クラスタのサイズを16Kバイトと定義して記録媒体38がフォーマットされる。さらに、記録可能枚数が32Mバイト未満であれば、ステップS11´からステップS15に進み、1クラスタのサイズを8Kバイトと定義して記録媒体38がフォーマットされる。フォーマットが完了すると、処理を終了する。
Referring to FIG. 6, the recording capacity of
この実施例によれば、記録媒体の容量に基づいてクラスタサイズを決定するようにしたため、ファイルサイズの検出および記録可能枚数の算出が不要となり、記録に要する時間の短縮化と記録媒体38の使用効率の低下防止とが簡易な方法で実現される。この実施例も、記録媒体38の容量が大きければ、クラスタの使用効率の低下は大きな問題とはならないことに着目したものである。
According to this embodiment, since the cluster size is determined based on the capacity of the recording medium, it is not necessary to detect the file size and calculate the number of recordable sheets, shortening the time required for recording and using the
なお、上述の実施例では、デフォルトのファイルサイズに基づいて記録可能枚数を算出するようにしたが、算出に用いるファイルサイズはユーザの好みに応じて任意に選択できるようにしてもよい。また、図6に示すフロー図に従う処理は、図1実施例に適用してもよい。 In the above-described embodiment, the recordable number of sheets is calculated based on the default file size. However, the file size used for the calculation may be arbitrarily selected according to the user's preference. Further, the processing according to the flowchart shown in FIG. 6 may be applied to the embodiment in FIG.
10 … ディジタルカメラ
14 … イメージセンサ
20 … 信号処理回路
22 … メモリコントローラ
24 … SDRAM
30 … JPEGコーデック
34 … CPU
42 … 解像度選択ボタン
44 … 圧縮率選択ボタン
46 … モード選択ボタン
48 … フレームレート選択ボタン
DESCRIPTION OF
30 ...
42 ...
Claims (4)
前記記録媒体の容量を検出する検出手段、
前記検出手段によって検出された容量に基づいて前記記録媒体の記録可能画像データ数を算出する算出手段、および
前記算出手段によって算出された記録可能画像データ数が大きいほど前記単位領域のサイズを大きく設定する設定手段を備えることを特徴とする、画像記録装置。 In an image recording apparatus for recording image data on a recording medium in which a recording area is divided into a plurality of unit areas and in which unit areas in an empty state can be discretely distributed,
Detecting means for detecting the capacity of the recording medium;
Recordable calculating means for calculating an image data number, and size set to be large for the larger recordable image number data calculated by said calculating means the unit area of said detecting means and the recording medium based on the detected capacitance by An image recording apparatus comprising: setting means for performing
前記算出手段は前記記録領域の容量と前記目標サイズとに基づいて前記記録可能画像データ数を算出する、請求項1記載の画像記録装置。 The image data is compressed image data compressed with a predetermined size as a target,
The calculating means calculates the recordable number image data on the basis of the capacity and the target size of the recording area, the image recording apparatus according to claim 1.
(a) 前記記録媒体の容量を検出し、
(b) 前記ステップ(a)で検出された容量に基づいて前記記録媒体の記録可能画像データ数を算出し、そして
(c) 前記ステップ(b)で算出された記録可能画像データ数が大きいほど前記単位領域のサイズを大きく設定する、画像記録方法。 An image recording method for recording image data on a recording medium in which a recording area is divided into a plurality of unit areas and empty unit areas can be distributed discretely,
(a) detecting the capacity of the recording medium ;
( b) calculating the number of recordable image data of the recording medium based on the capacity detected in the step (a) ; and
(c) An image recording method in which the size of the unit area is set larger as the number of recordable image data calculated in the step (b) is larger.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2003406152A JP4166148B2 (en) | 2003-01-07 | 2003-12-04 | Image recording device |
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2003001259 | 2003-01-07 | ||
| JP2003406152A JP4166148B2 (en) | 2003-01-07 | 2003-12-04 | Image recording device |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JP2004236290A JP2004236290A (en) | 2004-08-19 |
| JP4166148B2 true JP4166148B2 (en) | 2008-10-15 |
Family
ID=32964594
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2003406152A Expired - Fee Related JP4166148B2 (en) | 2003-01-07 | 2003-12-04 | Image recording device |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP4166148B2 (en) |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US8471926B2 (en) * | 2009-07-22 | 2013-06-25 | Panasonic Corporation | Imaging apparatus, information processing apparatus and information processing method |
-
2003
- 2003-12-04 JP JP2003406152A patent/JP4166148B2/en not_active Expired - Fee Related
Also Published As
| Publication number | Publication date |
|---|---|
| JP2004236290A (en) | 2004-08-19 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP3398081B2 (en) | Digital camera | |
| JP3822380B2 (en) | Image signal processing device | |
| US20090268061A1 (en) | Image sensing apparatus, method of controlling image sensing apparatus and image recording apparatus, and method of designing optical system | |
| JP3311715B2 (en) | Digital camera | |
| JP4958758B2 (en) | Recording apparatus, reproducing apparatus, recording method, reproducing method, and program | |
| JP4725183B2 (en) | Imaging apparatus and method | |
| JP2009147549A (en) | Moving picture recording apparatus, moving picture reproducing apparatus, and program | |
| JP4577557B2 (en) | Electronic camera device, moving image recording method and program | |
| US20070058947A1 (en) | Recording apparatus and recording medium managing method | |
| JP2009147743A (en) | Recording apparatus, reproducing apparatus, recording method, reproducing method, and program | |
| KR101480407B1 (en) | Digital image processing apparatus, control method thereof, and recording medium recording the control method | |
| RU2518173C2 (en) | Apparatus for recording image data | |
| US7479992B2 (en) | Image recording apparatus | |
| JP3876973B2 (en) | Image recording / reproducing method, image reproducing apparatus, and file management method and apparatus | |
| JP5118465B2 (en) | Recording apparatus, reproducing apparatus, recording method, reproducing method, and program | |
| JP4166148B2 (en) | Image recording device | |
| JP4027122B2 (en) | Imaging apparatus and control method thereof | |
| JP2008124671A (en) | Imaging apparatus and imaging method | |
| US7492491B2 (en) | Image processing apparatus | |
| JP4015914B2 (en) | Digital camera | |
| JP2005276316A (en) | Data recording method and device | |
| JP2008160860A (en) | Electronic camera device, moving image recording method and program | |
| JP3495647B2 (en) | Digital camera | |
| JP4348486B2 (en) | Image recording / reproducing method and image recording / reproducing apparatus | |
| JP4234662B2 (en) | Electronic device and data recording method thereof |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20061201 |
|
| A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20080402 |
|
| A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20080530 |
|
| 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: 20080701 |
|
| A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 |
|
| A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20080729 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20110808 Year of fee payment: 3 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20110808 Year of fee payment: 3 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20120808 Year of fee payment: 4 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20130808 Year of fee payment: 5 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20130808 Year of fee payment: 5 |
|
| S111 | Request for change of ownership or part of ownership |
Free format text: JAPANESE INTERMEDIATE CODE: R313113 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20130808 Year of fee payment: 5 |
|
| R350 | Written notification of registration of transfer |
Free format text: JAPANESE INTERMEDIATE CODE: R350 |
|
| LAPS | Cancellation because of no payment of annual fees |