Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP4166148B2 - Image recording device - Google Patents
[go: Go Back, main page]

JP4166148B2 - Image recording device - Google Patents

Image recording device Download PDF

Info

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
Application number
JP2003406152A
Other languages
Japanese (ja)
Other versions
JP2004236290A (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.)
Sanyo Electric Co Ltd
Original Assignee
Sanyo Electric Co Ltd
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 Sanyo Electric Co Ltd filed Critical Sanyo Electric Co Ltd
Priority to JP2003406152A priority Critical patent/JP4166148B2/en
Publication of JP2004236290A publication Critical patent/JP2004236290A/en
Application granted granted Critical
Publication of JP4166148B2 publication Critical patent/JP4166148B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

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”に変更される。これによって、画像データの記録に要する時間を短縮することができる。
特許第3177491号[H04N 5/91,5/907]
An example of a conventional image recording apparatus of this type is disclosed in Patent Document 1. In this prior art, a FAT (File Allocation Table) method is adopted as a file management method for a recording medium. When an unused recording medium is attached to the digital camera, the number of sectors forming one cluster is changed from “4” to “16”. As a result, the time required for recording the image data can be shortened.
Patent No. 3177491 [H04N 5/91, 5/907]

しかし、クラスタサイズを大きくすると、記録媒体の使用効率が低下する。この使用効率の低下の問題は、記録媒体の容量が小さいほど、換言すれば記録媒体に記録できる画像の枚数つまり記録可能枚数が少ないほど、顕著になる。にも関わらず、従来技術では、記録容量または記録可能枚数に関係なくクラスタサイズを “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 claim 1 is an image recording apparatus for recording image data on a recording medium in which the recording area is divided into a plurality of unit areas and in which the unit areas in the empty state can be discretely distributed. detecting means for detecting the capacitance, calculating means for calculating a recordable number image data of the recording medium based on the volume detected by the detection means, and calculating means are recordable image data number as a unit area larger calculated by A setting means for setting a large size is provided.

画像データは、記録領域が複数の単位領域に分割されたかつ空き状態の単位領域が離散的に分布し得る記録媒体に記録される。検出手段は記録媒体の容量を検出し、算出手段は検出された容量に基づいて記録媒体の記録可能画像データ数を算出し、設定手段は算出された記録可能画像データ数が大きいほど単位領域のサイズを大きくする。 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.

請求項の発明に従う画像記録装置は、請求項に従属し、画像データは所定サイズを目標として圧縮された圧縮画像データであり、算出手段は記録領域の容量と目標サイズとに基づいて記録可能画像データ数を算出する。圧縮画像データの目標サイズを設定することで、記録可能枚数を容易に算出することができる。 The image recording apparatus according to an invention of claim 2 depends on claim 1, the image data is compressed image data compressed with the goal of a predetermined size, calculation means based on the capacity of the recording area and the target size recording The number of possible image data is calculated. By setting the target size of the compressed image data, the recordable number of sheets can be easily calculated .

請求項によれば、ディジタルカメラは、請求項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 .

請求項に従う画像記録方法は、記録領域が複数の単位領域に分割されたかつ空き状態の単位領域が離散的に分布し得る記録媒体に画像データを記録する画像記録方法であって、(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 digital camera 10 of this embodiment includes an optical lens 12. The optical image of the subject enters the light receiving surface of an image sensor 14 such as a CCD imager via the optical lens 12. The light receiving surface is covered with a color filter (not shown) having a primary color Bayer arrangement, and the charges generated by each of a plurality of light receiving elements (pixels) formed on the light receiving surface, that is, pixel signals are R, G and B Only one color information is included.

なお、この実施例では、イメージセンサ14としてCCDイメージャを用いるが、代わりにCMOSイメージャを用いてもよい。   In this embodiment, a CCD imager is used as the image sensor 14, but a CMOS imager may be used instead.

主電源が投入されると、スルー画像表示処理が実行される。まず、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 CPU 34 instructs the TG (Timing Generator) 40 to repeat thinning readout. The TG 40 performs thinning readout on the image sensor 14 at a frame rate of 30 fps. As a result, a raw image signal with reduced vertical resolution is read from the image sensor 14 in a raster scanning manner. The output low-resolution raw image signal has color information of R, G, R, G,... On even lines and color information of G, B, G, B,.

CDS/AGC回路16は、イメージセンサ14から出力された各フレームの生画像信号にノイズ除去およびゲイン調整を施し、A/D変換器18はかかる処理が施された生画像信号をディジタル信号である生画像データに変換する。変換された生画像データは信号処理回路20に与えられ、白バランス調整,色分離,水平間引き,YUV変換などの信号処理を施される。YUV変換によって得られたYUVデータは、メモリコントローラ22によってSDRAM24に書き込まれる。   The CDS / AGC circuit 16 performs noise removal and gain adjustment on the raw image signal of each frame output from the image sensor 14, and the A / D converter 18 converts the raw image signal subjected to such processing into a digital signal. Convert to raw image data. The converted raw image data is given to the signal processing circuit 20 and subjected to signal processing such as white balance adjustment, color separation, horizontal thinning, and YUV conversion. The YUV data obtained by the YUV conversion is written into the SDRAM 24 by the memory controller 22.

ビデオエンコーダ26は、メモリコントローラ22を通してSDRAM24から各フレームのYUVデータを読み出し、読み出されたYUVデータを縮小ズーム処理を経てNTSC方式のコンポジットビデオ信号に変換する。変換されたコンポジットビデオ信号は、LCD28に与えられる。この結果、被写体のリアルタイム動画像つまりスルー画像がLCD28から出力される。   The video encoder 26 reads the YUV data of each frame from the SDRAM 24 through the memory controller 22, and converts the read YUV data into an NTSC composite video signal through a reduction zoom process. The converted composite video signal is given to the LCD 28. As a result, a real-time moving image of the subject, that is, a through image is output from the LCD 28.

イメージセンサ14の有効画素数は約200万であり、水平画素数および垂直画素数はそれぞれ“1600”および“1200”である。後述するように、被写体の静止画像に対応するYUVデータは、圧縮処理を施されて記録媒体38に記録される。このとき、目標のファイルサイズに従う圧縮率がJPEGコーデック30に設定される。   The number of effective pixels of the image sensor 14 is about 2 million, and the number of horizontal pixels and the number of vertical pixels are “1600” and “1200”, respectively. As will be described later, the YUV data corresponding to the still image of the subject is compressed and recorded on the recording medium 38. At this time, the compression rate according to the target file size is set in the JPEG codec 30.

この実施例では、第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 resolution selection button 42 and the compression rate selection button 44.

撮影モードが選択されかつ第1解像度が選択された状態でシャッタボタン32が操作されると、CPU34は、全画素読み出しの実行をTG40に命令する。TG40は、イメージセンサ14に1フレーム(1画面)の全画素読み出しを施し、この結果、高解像度の生画像信号がラスタ走査態様でイメージセンサ14から出力される。出力された生画像信号は偶数ラインにR,G,R,G,…の色情報を有し、奇数ラインにG,B,G,B,…の色情報を有する。   When the shutter button 32 is operated in a state where the shooting mode is selected and the first resolution is selected, the CPU 34 instructs the TG 40 to execute all pixel reading. The TG 40 reads out all pixels of one frame (one screen) to the image sensor 14, and as a result, a high-resolution raw image signal is output from the image sensor 14 in a raster scanning manner. The output raw image signal has color information of R, G, R, G,... On even lines and color information of G, B, G, B,.

シャッタボタン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 shutter button 32 is subjected to the same processing as described above by the CDS / AGC circuit 16, the A / D converter 18, and the signal processing circuit 20. However, horizontal thinning is omitted, and the signal processing circuit 20 outputs high-resolution YUV data. The output YUV data is written into the SDRAM 24 via the memory controller 22. The video encoder 26 reads the high-resolution YUV data stored in the SDRAM 24 through the memory controller 22 and converts the read YUV data into a composite video signal in the NTSC format through reduction zoom. As a result, a still image of the subject at the time when the shutter button 32 is operated, that is, a freeze image is output from the LCD 28.

また、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 CPU 34 gives a compression command to the JPEG codec 30 when any one of the second compression ratio to the fourth compression ratio is selected. The compression instruction includes information indicating the selected compression rate. The JPEG codec 30 reads YUV data from the SDRAM 24 through the memory controller 22, performs JPEG compression on the read YUV data according to a desired compression ratio, and writes the compressed YUV data, that is, JPEG data, into the SDRAM 24 through the memory controller 22. The CPU 34 reads the JPEG data stored in the SDRAM 24 through the memory controller 22 and records a still image file storing the read JPEG data on the recording medium 38 through the I / F 36.

第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 CPU 34 reads the YUV data stored in the SDRAM 24 through the memory controller 22 and records the still image file storing the YUV data on the recording medium 38 via the I / F 36.

なお、記録媒体38は着脱自在であり、装着時にI/F36と接続される。また、記録媒体38はファイル管理方式としてFAT方式を採用する。記録領域は複数のクラスタに分割され、空き状態のクラスタは離散的に分布し得る。静止画ファイルは、複数のクラスタに分散して書き込まれる。   The recording medium 38 is detachable and is connected to the I / F 36 when mounted. The recording medium 38 adopts the FAT system as a file management system. The recording area is divided into a plurality of clusters, and free clusters can be distributed discretely. Still image files are distributed and written in a plurality of clusters.

第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 CPU 34 instructs the TG 40 to execute thinning-out reading in response to the operation of the shutter button 32. The TG 40 reads out the image sensor 14 for one frame period. As a result, a low-resolution raw image signal is output from the image sensor 14 in a raster scanning manner. The number of vertical lines of the raw image signal output from the image sensor 14 by the thinning readout is ¼ of the number of vertical lines of the raw image signal output from the image sensor 14 by the all pixel readout. However, the output raw image signal has color information of R, G, R, G,... On even lines and color information of G, B, G, B,.

シャッタボタン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 shutter button 32 is subjected to the same processing as described above by the CDS / AGC circuit 16, the A / D converter 18, and the signal processing circuit 20. When the second resolution is selected, horizontal thinning processing is executed in the signal processing circuit 20, and the number of horizontal pixels is reduced to ¼. The signal processing circuit 20 outputs low-resolution YUV data. This YUV data is written into the SDRAM 24 via the memory controller 22. The low-resolution YUV data stored in the SDRAM 24 is then applied to the video encoder 26 via the memory controller 22 and converted into an NTSC format composite video signal through reduction zoom. As a result, a still image (freeze image) of the subject when the shutter button 32 is operated is output from the LCD 28.

また、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 CPU 34 gives a compression command to the JPEG codec 30 when the shutter button 32 is operated. The compression instruction includes information indicating either the fifth compression ratio or the sixth compression ratio. The JPEG codec 30 reads low-resolution YUV data from the SDRAM 24 through the memory controller 22, performs JPEG compression on the read YUV data, and writes the JPEG data to the SDRAM 24 through the memory controller 22. The CPU 34 reads the JPEG data stored in the SDRAM 24 through the memory controller 22 and records the read JPEG data on the recording medium 38 through the I / F 36.

再生モードが選択されると、記録媒体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 recording medium 38 is displayed on the LCD 28. When the user selects a desired file name, the JPEG data or YUV data stored in the selected still image file is read from the recording medium 38 by the CPU 34. The read JPEG data or YUV data is written into the SDRAM 24 by the memory controller 22.

SDRAM24に格納されたデータがJPEGデータであるときは、CPU34からJPEGコーデック30に伸長命令が与えられる。JPEGコーデック30は、メモリコントローラ22を通してSDRAM24からJPEGデータを読み出し、読み出されたJPEGデータにJPEG伸長を施し、そして伸長されたYUVデータをメモリコントローラ22を通してSDRAM24に書き込む。   When the data stored in the SDRAM 24 is JPEG data, a decompression command is given from the CPU 34 to the JPEG codec 30. The JPEG codec 30 reads JPEG data from the SDRAM 24 through the memory controller 22, performs JPEG decompression on the read JPEG data, and writes the decompressed YUV data into the SDRAM 24 through the memory controller 22.

SDRAM24に格納されたYUVデータは、メモリコントローラ22を介してビデオエンコーダ26に与えられる。ビデオエンコーダ26は、与えられたYUVデータを縮小ズームを経てNTSC方式のコンポジットビデオ信号に変換し、変換されたコンポジットビデオ信号をLCD28に与える。この結果、再生静止画像がLCD28に表示される。   The YUV data stored in the SDRAM 24 is given to the video encoder 26 via the memory controller 22. The video encoder 26 converts the applied YUV data into a composite video signal of the NTSC system through reduction zoom, and provides the converted composite video signal to the LCD 28. As a result, the reproduced still image is displayed on the LCD 28.

上述のように、記録媒体34はFAT方式を採用し、静止画ファイルは複数のクラスタによって分散管理される。ここで、クラスタサイズが大きければ、ファイルを少数のクラスタで管理できる。しかし、静止画ファイルのサイズが小さければ、使用しない領域(セクタ)が多くなり、記録媒体38の使用効率が低下する。一方、クラスタサイズを小さくすれば、記録媒体38の使用効率の低下を防止できるものの、1つの静止画ファイルを管理するクラスタ数が多くなり、ファイルの書き込み/読み出しに時間がかかる。   As described above, the recording medium 34 adopts the FAT system, and still image files are distributed and managed by a plurality of clusters. Here, if the cluster size is large, the file can be managed by a small number of clusters. However, if the size of the still image file is small, the area (sector) that is not used increases, and the use efficiency of the recording medium 38 decreases. On the other hand, if the cluster size is reduced, the use efficiency of the recording medium 38 can be prevented from decreasing, but the number of clusters for managing one still image file increases, and it takes time to write / read the file.

たとえば、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 recording medium 38, and the calculated recordable The recording medium 38 is formatted with a cluster size corresponding to the number of sheets.

具体的には、記録可能枚数が第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 recording medium 34 is not a big problem, and the cluster size is increased. If the number of recordable sheets is less than the first threshold and greater than or equal to the second threshold (= 50), the cluster size is set to the second size (=) with emphasis on both the file writing speed and the usage efficiency of the recording medium 38. 16K bytes). Further, if the recordable number is less than the second threshold value, the cluster size is determined to be the third size (= 8 Kbytes) with emphasis on the use efficiency of the recording medium 38 rather than the writing speed.

つまり、記録可能枚数が大きいほどクラスタサイズは大きい値に決定され、逆に記録可能枚数が小さいほどクラスタサイズは小さい値に決定される。かかる記録可能枚数に応じたクラスタサイズの決定が、各々の記録媒体に適した使用を可能にする。   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 CPU 38 determines the cluster size according to the flowchart shown in FIG. First, in step S1, a still image file size corresponding to the default mode is specified. In this embodiment, the first resolution and the third compression ratio are the default resolution and compression ratio, and the third file size is specified as the default file size. In step S3, the recording capacity of the external memory, that is, the recording medium 38 is detected, and in step S5, the recordable number of sheets is calculated. Specifically, the recordable number of sheets is calculated by dividing the capacity of the recording medium 38 by the third file size. Subsequently, the recordable number of sheets is determined in steps S7 and S11.

記録可能枚数が“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 recording medium 38 is formatted. If the number of recordings is “50” or more and less than “100”, the process proceeds from step S11 to step S13, and the size of one cluster is defined as 16K bytes, and the recording medium 38 is formatted. If the recordable number is less than “50”, the process proceeds from step S11 to step S15, and the size of one cluster is defined as 8 Kbytes, and the recording medium 38 is formatted. When formatting is completed, the process is terminated.

この実施例によれば、ファイルサイズと記録媒体の容量とによって算出される記録可能枚数に基づいてクラスタサイズを決定するようにしたため、記録に要する時間の短縮化および記録媒体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 recording medium 38 is decreased. Both prevention can be achieved.

図3に示す他の実施例のディジタルカメラ10は、静止画像撮影モードおよび動画像撮影モードの2つの撮影モードを備える以外は、上述の実施例と同じである。したがって、重複した説明は省略する。   The digital camera 10 of another embodiment shown in FIG. 3 is the same as the above-described embodiment except that it has two shooting modes, a still image shooting mode and a moving image shooting mode. Therefore, duplicate description is omitted.

なお、静止画像撮影モードは、上述の通り、シャッタボタン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 shutter button 32 is pressed, as described above. The moving image shooting mode is a mode for recording a moving image of a subject in a period according to the pressing of the shutter button 32.

図3を参照して、他の実施例のディジタルカメラ10は、撮影モードを静止画像撮影モードと動画像撮影モードとの間で切り換えるためのモード切換ボタン46をさらに備える。モード切換ボタン46によって静止画像撮影モードが選択されると、上述の動作に従って被写体の静止画像が撮影される。   Referring to FIG. 3, the digital camera 10 according to another embodiment further includes a mode switching button 46 for switching the shooting mode between the still image shooting mode and the moving image shooting mode. When the still image capturing mode is selected by the mode switching button 46, a still image of the subject is captured according to the above-described operation.

一方、モード切換ボタン46によって動画像撮影モードが選択された状態でシャッタボタン32が操作されると、CPU34は、TG40に対して本露光および所定解像度に従う間引き読み出しの繰り返しを命令する。TG40は、この命令に対応するタイミング信号をイメージセンサ14に供給する。これによって、所定解像度に従う生画像信号が、1フレーム期間毎にイメージセンサ14から出力される。   On the other hand, when the shutter button 32 is operated in a state where the moving image shooting mode is selected by the mode switching button 46, the CPU 34 instructs the TG 40 to repeat the main exposure and the thinning readout according to the predetermined resolution. The TG 40 supplies a timing signal corresponding to this command to the image sensor 14. As a result, a raw image signal according to a predetermined resolution is output from the image sensor 14 every frame period.

イメージセンサ14から出力された各フレームの生画像信号は、CDS/AGC回路16による処理を経てA/D変換回路18に入力され、生画像データに変換される。変換された生画像データは信号処理回路20で上述と同様の処理を施され、信号処理回路20から出力された各フレームのYUVデータはメモリコントローラ22によってSDRAM24のYUVデータ領域24aに書き込まれる。   The raw image signal of each frame output from the image sensor 14 is input to the A / D conversion circuit 18 through processing by the CDS / AGC circuit 16 and converted into raw image data. The converted raw image data is subjected to the same processing as described above by the signal processing circuit 20, and the YUV data of each frame output from the signal processing circuit 20 is written into the YUV data area 24 a of the SDRAM 24 by the memory controller 22.

JPEGコーデック30は、CPU34から圧縮命令が与えられたとき、YUVデータ領域24aからYUVデータを読み出し、読み出されたYUVデータにJPEG圧縮を施し、そして生成されたJPEGデータをSDRAM24のJPEGデータ領域24bに書き込む。   When a compression command is given from the CPU 34, the JPEG codec 30 reads YUV data from the YUV data area 24a, performs JPEG compression on the read YUV data, and converts the generated JPEG data into the JPEG data area 24b of the SDRAM 24. Write to.

このような圧縮処理は、再度シャッタボタン32が操作されるまで続けられる。つまり、最初にシャッタボタン32が操作されてから再度シャッタボタン32が操作されるまでの間、圧縮処理が繰り返され、複数フレームのJPEGデータがJPEGデータ領域24bに蓄積される。蓄積されたJPEGデータは、メモリコントローラ22によって読み出され、I/F36を介して記録媒体38に記録される。これによって、複数フレームのJPEGデータを含むムービファイル(QuickTimeファイル)が記録媒体38内に作成される。   Such compression processing is continued until the shutter button 32 is operated again. That is, the compression process is repeated from the time when the shutter button 32 is first operated until the shutter button 32 is operated again, and a plurality of frames of JPEG data is accumulated in the JPEG data area 24b. The accumulated JPEG data is read by the memory controller 22 and recorded on the recording medium 38 via the I / F 36. As a result, a movie file (QuickTime file) including JPEG data of a plurality of frames is created in the recording medium 38.

再生モードが選択されると、記録媒体38に記録された静止画ファイルまたはムービファイルが再生される。静止画ファイルが選択されたときは、上述のように静止画像がLCD28に表示される。ムービファイルが選択されたときは、ムービファイルに格納された各フレームのJPEGデータが静止画再生と同様の処理を周期的に施される。これによって、動画像がLCD28に表示される。   When the reproduction mode is selected, the still image file or movie file recorded on the recording medium 38 is reproduced. When a still image file is selected, the still image is displayed on the LCD 28 as described above. When the movie file is selected, the JPEG data of each frame stored in the movie file is periodically subjected to the same processing as that for still image reproduction. As a result, the moving image is displayed on the LCD 28.

また、動画像撮影モードでは、イメージセンサ14のフレームレートを任意に設定できる。つまり、フレームレート選択ボタン48の操作によって、第1フレームレート(=15fps)および第2フレームレート(=30fps)のいずれか一方を選択できる。   In the moving image shooting mode, the frame rate of the image sensor 14 can be arbitrarily set. That is, by operating the frame rate selection button 48, either the first frame rate (= 15 fps) or the second frame rate (= 30 fps) can be selected.

さらに、動画像撮影モードでは、第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 Mbyte recording medium 38. In video recording, it is necessary to consider the recording bit rate. The recording bit rate of this embodiment is 12.19 Mbps (= 64 Mbytes / 42 seconds × 8 bits). Then, when 15 fps and the third resolution are selected, the recordable time is extended by a factor of two. When 30 fps and the fourth resolution are selected, the recordable time is extended by four times.

この実施例では、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 recording medium 38 under these conditions. That is, when a moving image shooting function is provided, it is necessary to determine the cluster size in consideration of the recording bit rate.

記録可能枚数が第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 recording medium 38 is formatted. If the recordable number is less than the first threshold and greater than or equal to the second threshold, the size of one cluster is defined as the first size and the recording medium 38 is formatted. As a result, the recording speed can be increased.

CPU34は、具体的には図4に示すフロー図に従う処理を実行する。ただし、図4に示す処理は、図2に示す処理と略同じであるため、異なる部分についてのみ説明することにする。   Specifically, the CPU 34 executes processing according to the flowchart shown in FIG. However, since the process shown in FIG. 4 is substantially the same as the process shown in FIG. 2, only different parts will be described.

図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 recording medium 38 is formatted. If “YES” in the step S11, that is, if the number of shootable images is 50 or more and less than 100, the size of one cluster is defined as 32 Kbytes (first size) in the step S13 ′, and the recording medium 38 is formatted. Is done. Both of steps S9 ′ and S13 ′ emphasize the writing speed in the moving image shooting mode. If the number of shootable images is less than 50, formatting is performed by defining one cluster as the third size in step S15 in order to emphasize the use efficiency of the recording medium 38.

この実施例によれば、ディジタルカメラ10が動画像撮影機能を有する場合、動画像の記録ビットレートを考慮してクラスタサイズが決定される。これによって、動画像または静止画像の記録速度の高速化と記録媒体の使用効率の低下防止とを両立させることができる。   According to this embodiment, when the digital camera 10 has a moving image shooting function, the cluster size is determined in consideration of the moving image recording bit rate. As a result, it is possible to achieve both the increase in the recording speed of moving images or still images and the prevention of a decrease in the usage efficiency of the recording medium.

図5に示すその他の実施例のディジタルカメラ10は、CPU34が図6に示すフロー図に従う処理を実行する点を除き、図3実施例と同じであるため、重複した説明は省略する。   The digital camera 10 of the other embodiment shown in FIG. 5 is the same as the embodiment of FIG. 3 except that the CPU 34 executes processing according to the flowchart shown in FIG.

図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 recording medium 38 is detected in step S3, and the detected recording capacity is determined in steps S7 'and S11'. If the recording capacity is 64 Mbytes, the process proceeds from step S7 'to step S9', and the size of one cluster is defined as 64K bytes, and the recording medium 38 is formatted. If the recording number is 32 Mbytes or more and less than 64 Mbytes, the process proceeds from step S11 ′ to step S13 ′, and the size of one cluster is defined as 16 Kbytes, and the recording medium 38 is formatted. Further, if the recordable number is less than 32 Mbytes, the process proceeds from step S11 ′ to step S15, and the size of one cluster is defined as 8 Kbytes, and the recording medium 38 is formatted. When formatting is completed, the process is terminated.

この実施例によれば、記録媒体の容量に基づいてクラスタサイズを決定するようにしたため、ファイルサイズの検出および記録可能枚数の算出が不要となり、記録に要する時間の短縮化と記録媒体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 recording medium 38. Prevention of the reduction in efficiency is realized by a simple method. This embodiment also pays attention to the fact that if the capacity of the recording medium 38 is large, a decrease in the use efficiency of the cluster is not a big problem.

なお、上述の実施例では、デフォルトのファイルサイズに基づいて記録可能枚数を算出するようにしたが、算出に用いるファイルサイズはユーザの好みに応じて任意に選択できるようにしてもよい。また、図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.

この発明の一実施例を示すブロック図である。It is a block diagram which shows one Example of this invention. 図1実施例に適用されるCPUのフォーマット処理を示すフロー図である。It is a flowchart which shows the format process of CPU applied to the FIG. 1 Example. この発明の他の実施例を示すブロック図である。It is a block diagram which shows the other Example of this invention. 図3実施例に適用されるCPUのフォーマット処理を示すフロー図である。It is a flowchart which shows the format process of CPU applied to the FIG. 3 Example. この発明のその他の実施例を示すブロック図である。It is a block diagram which shows the other Example of this invention. 図3実施例に適用されるCPUのフォーマット処理を示すフロー図である。It is a flowchart which shows the format process of CPU applied to the FIG. 3 Example.

符号の説明Explanation of symbols

10 … ディジタルカメラ
14 … イメージセンサ
20 … 信号処理回路
22 … メモリコントローラ
24 … SDRAM
30 … JPEGコーデック
34 … CPU
42 … 解像度選択ボタン
44 … 圧縮率選択ボタン
46 … モード選択ボタン
48 … フレームレート選択ボタン
DESCRIPTION OF SYMBOLS 10 ... Digital camera 14 ... Image sensor 20 ... Signal processing circuit 22 ... Memory controller 24 ... SDRAM
30 ... JPEG codec 34 ... CPU
42 ... Resolution selection button 44 ... Compression rate selection button 46 ... Mode selection button 48 ... Frame rate selection button

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
前記画像データは所定サイズを目標として圧縮された圧縮画像データであり、
前記算出手段は前記記録領域の容量と前記目標サイズとに基づいて前記記録可能画像データ数を算出する、請求項記載の画像記録装置。
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.
請求項1または請求項2に記載の画像記録装置を備える、ディジタルカメラ。 A digital camera comprising 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.
JP2003406152A 2003-01-07 2003-12-04 Image recording device Expired - Fee Related JP4166148B2 (en)

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)

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

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