JP2006190030A - Data processor and data processing method - Google Patents
Data processor and data processing method Download PDFInfo
- Publication number
- JP2006190030A JP2006190030A JP2005000722A JP2005000722A JP2006190030A JP 2006190030 A JP2006190030 A JP 2006190030A JP 2005000722 A JP2005000722 A JP 2005000722A JP 2005000722 A JP2005000722 A JP 2005000722A JP 2006190030 A JP2006190030 A JP 2006190030A
- Authority
- JP
- Japan
- Prior art keywords
- data
- erasing
- recording
- formatting
- area
- 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.)
- Pending
Links
Images
Abstract
Description
本発明はデータ処理装置及びデータ処理方法に関し、特に、デジタルカメラ等の画像データを処理するデータ記録装置に用いて好適な技術に関する。 The present invention relates to a data processing apparatus and a data processing method, and more particularly to a technique suitable for use in a data recording apparatus that processes image data such as a digital camera.
デジタルカメラ等の記録媒体として、コンパクトフラッシュ(登録商標)やSD(Secure Digital)メモリカードといったフラッシュメモリが広く普及している。フラッシュメモリの特徴としては、不揮発性であることや、繰り返しデータの消去、書き込みが行えることが挙げられる。フラッシュメモリにおけるデータの消去、書き込みは、フラッシュメモリを構成しているブロックと呼ばれる、ある一定サイズの単位で実行される。 As recording media for digital cameras and the like, flash memories such as compact flash (registered trademark) and SD (Secure Digital) memory cards are widely used. The flash memory is characterized by being non-volatile and capable of repeatedly erasing and writing data. Data erasure and writing in the flash memory are executed in units of a certain size called a block constituting the flash memory.
例えば、既にデータが書き込まれているブロックに対して、データの書き換えを行う場合、一旦、前のデータをブロックサイズ分消去し、全てのデータを電気的にクリアした後に、新しいデータが書き込まれるという処理が行われている。一方で、消去済みのブロックであれば、単に新しいデータをブロックサイズ分書き込むだけでよい。 For example, when data is rewritten to a block in which data has already been written, the previous data is erased for the block size, and all data is electrically cleared before new data is written. Processing is in progress. On the other hand, if it is an erased block, it is only necessary to write new data for the block size.
また、上記のフラッシュメモリでは、パソコン等の様々な情報機器でも使用されるため、一般的にFAT(File Allocation Table)などのファイルシステムが構築されている。そのため、フラッシュメモリはファイルシステムのための管理領域と実際にデータが存在するデータ領域とに論理的に区別することができる。 In addition, since the above flash memory is also used in various information devices such as personal computers, a file system such as FAT (File Allocation Table) is generally constructed. Therefore, the flash memory can be logically distinguished into a management area for the file system and a data area where data actually exists.
例えば、デジタルカメラ等で画像データを保存する場合は、前記管理領域にある管理情報からデータ領域の空きを検索し、その空きの部分を使用済みとして記録し、データ領域に実際の画像データを記録するようにしている。 For example, when storing image data with a digital camera or the like, the vacancy of the data area is searched from the management information in the management area, the vacant part is recorded as used, and the actual image data is recorded in the data area. Like to do.
また、保存する場合とは逆に、画像データを削除したりフォーマットしたりする場合は、データ領域中の画像データ自体はそのままで消去されず、管理領域中の画像データが該当する部分、またはフォーマットの場合は全ての部分の使用状況を空きとするだけで処理されることが多い。 Contrary to the case of saving, when deleting or formatting image data, the image data in the data area itself is not erased as it is, and the image data in the management area corresponds to the corresponding part or format. In the case of, it is often processed only by leaving the usage status of all parts empty.
このため、例えば、特許文献1でも示されているように、フラッシュメモリの性質上、既にデータが書き込まれているブロックよりも消去済みのブロックに書き込みを行う方が消去を行わない分だけ高速に書き込みを行うことができる。しかしながら、この方法で書き込みを行うと、実際にデータが書き込まれる論理的なデータ領域には、データ削除や、フォーマットを行ったにも拘わらず、以前の画像データが書き込まれていることが多い。
For this reason, for example, as shown in
このため、そのような状態のフラッシュメモリに対して、デジタルカメラで連写や高精細な動画像などの高速な書き込みが求められるシチュエーションでは、画像データの記録に多くの時間がかかってしまうという問題点がある。 For this reason, in situations where high-speed writing such as continuous shooting or high-definition moving images is required for a flash memory in such a state, it takes a long time to record image data. There is a point.
また、データ領域にデータがそのまま残ってしまっているため、復元ソフトなどを用いることにより、意図していない場面で以前のデータが復元されてしまう可能性があり、データの保護作用という面においても問題があると考えられる。 In addition, since data remains in the data area, there is a possibility that previous data may be restored in an unintended scene by using restoration software, etc. There seems to be a problem.
また、消去処理は容量に比例して時間を要するため、大容量化するフラッシュメモリに対して消去処理を行うと、消去処理自体にも多くの時間を要してしまう。つまり、フラッシュメモリを効率的に利用したり、画像データを保護したりするために、いかに効率的にデータ領域のデータを消去しておくかが大きな課題となっていた。 Since the erasing process takes time in proportion to the capacity, if the erasing process is performed on the flash memory whose capacity is increased, the erasing process itself takes a lot of time. In other words, in order to efficiently use the flash memory and protect the image data, how to efficiently erase the data in the data area has been a big issue.
このような課題を解消するために、上記特許文献1にて提案されている技術では、ファイルシステムの管理領域の空き状況から空きであるデータ領域部分を検索し、その空いている部分をあらかじめ消去しておくといった方法を行っている。しかしながら、論理的な空き部分のサイズと物理的なブロックサイズとの対応が確実に取れているかは完全には保証されていない。
In order to solve such a problem, the technique proposed in
そのため、論理的な空き部分のサイズと物理的なブロックサイズとの対応が万が一取れていない場合には、必要なデータと消去したいデータとが同じブロック上に存在してしまい、消去自体ができないか、または必要なデータまで誤って消去してしまう可能性があった。 Therefore, if the correspondence between the size of the logical vacant part and the physical block size cannot be taken, can the necessary data and the data to be erased exist on the same block, and cannot be erased itself? Or, there was a possibility that necessary data was deleted accidentally.
また、消去すべき領域が膨大な場合にはユーザへの対応も不十分であった。すなわち、デジタルカメラにおいては、ユーザが撮影したいと思う瞬間にユーザの操作に即座に対応するのが望ましい。しかしながら、データを消去する処理に時間が多くかかってしまうと、ユーザが撮影したいタイミングを逃がしてしまう問題があった。 Further, when the area to be erased is enormous, the response to the user is insufficient. That is, in a digital camera, it is desirable to respond immediately to the user's operation at the moment when the user wants to shoot. However, if it takes a long time to erase the data, there is a problem that the timing at which the user wants to take a picture is missed.
本発明は、このような問題点にかんがみ、不要なデータの消去を確実に実行できるようにすること、及び画像データを記録するのに要する時間を短縮できるようにすることの両方を、フラッシュメモリの使用状況に応じて実現できるようにすることを目的としている。 In view of such a problem, the present invention provides both a flash memory capable of reliably erasing unnecessary data and a time required for recording image data. It is aimed to be able to be realized according to the usage situation of.
本発明のデータ処理装置は、データを記録するためのデータ記録領域と、ファイルシステムの管理領域とを有する記録媒体に前記データを記録するデータ処理装置であって、前記ファイル管理領域を論理的にフォーマットを行う論理フォーマット手段と、前記記憶媒体のデータ記録領域に記録されているデータを電気的に所定サイズ分消去するデータ消去手段と、前記データ消去手段の消去状態に応じて、前記論理フォーマットとデータ記録領域の消去を併せて実行する物理フォーマット手段とを有することを特徴とする。 A data processing apparatus of the present invention is a data processing apparatus for recording the data on a recording medium having a data recording area for recording data and a management area of a file system, wherein the file management area is logically Logical formatting means for performing formatting, data erasing means for electrically erasing data recorded in the data recording area of the storage medium by a predetermined size, and the logical format according to the erasing state of the data erasing means, And physical formatting means for executing erasure of the data recording area.
本発明のデータ処理方法は、データを記録するためのデータ記録領域と、ファイルシステムの管理領域とを有する記録媒体に前記データを記録するデータ処理方法であって、前記ファイル管理領域を論理的にフォーマットを行う論理フォーマット工程と、前記記憶媒体のデータ記録領域に記録されているデータを電気的に所定サイズ分消去するデータ消去工程と、前記データ消去工程の消去状態に応じて、前記論理フォーマットとデータ記録領域の消去を併せて実行する物理フォーマット工程とを有することを特徴とする。 A data processing method of the present invention is a data processing method for recording the data on a recording medium having a data recording area for recording data and a management area of a file system, wherein the file management area is logically A logical formatting step for performing formatting, a data erasing step for electrically erasing data recorded in a data recording area of the storage medium by a predetermined size, and the logical formatting according to the erasing state of the data erasing step. And a physical formatting step for executing erasure of the data recording area.
本発明のコンピュータプログラムは、データを記録するためのデータ記録領域と、ファイルシステムの管理領域とを有する記録媒体に前記データを記録するデータ処理方法をコンピュータに実行させるプログラムであって、前記ファイル管理領域を論理的にフォーマットを行う論理フォーマット工程と、前記記憶媒体のデータ記録領域に記録されているデータを電気的に所定サイズ分消去するデータ消去工程と、前記データ消去工程の消去状態に応じて、前記論理フォーマットとデータ記録領域の消去を併せて実行する物理フォーマット工程とをコンピュータに実行させることを特徴とする。 A computer program according to the present invention is a program for causing a computer to execute a data processing method for recording the data on a recording medium having a data recording area for recording data and a management area of a file system. According to a logical formatting process for logically formatting the area, a data erasing process for electrically erasing data recorded in the data recording area of the storage medium by a predetermined size, and an erasing state of the data erasing process The computer is caused to execute a physical formatting step for executing the logical format and erasing the data recording area together.
本発明の記録媒体は、前記に記載のコンピュータプログラムを記録したことを特徴とする。 The recording medium of the present invention records the computer program described above.
本発明によれば、フラッシュメモリを初期化する際に最適なフォーマットを自動的に判別し、前記判別したフォーマットを用いて初期化するようにしたので、必要なデータと消去したいデータとが同じブロック上に存在してしまい、消去自体ができないか、または必要なデータまで誤って消去してしまうことを可及的に防止することができる。また、高速性が求められる場合には、データを記録するのに要する時間を短縮することができる。これにより、例えば、撮像装置に用いた場合における高速連写や、高精細な動画像を高速に書き込む要求にも十分に対応することができる。 According to the present invention, the optimum format is automatically determined when the flash memory is initialized, and initialization is performed using the determined format. Therefore, the necessary data and the data to be erased are in the same block. It is possible to prevent as much as possible that the data exists above and cannot be erased or that necessary data is erased by mistake. When high speed is required, the time required for recording data can be shortened. Thereby, for example, it is possible to sufficiently respond to a request for high-speed continuous shooting when used in an imaging apparatus and a request for writing a high-definition moving image at high speed.
(第1の実施の形態)
以下、図面を参照して本発明の実施の形態を説明する。
図1は、本発明の実施の形態の構成を示す図である。図1において、100はデジタルカメラである。
(First embodiment)
Embodiments of the present invention will be described below with reference to the drawings.
FIG. 1 is a diagram showing a configuration of an embodiment of the present invention. In FIG. 1,
10は撮影レンズ、12は絞り機能を備えるシャッター、14は光学像を電気信号に変換する撮像素子、16は撮像素子14のアナログ信号出力をディジタル信号に変換するA/D変換器である。18は撮像素子14、A/D変換器16、D/A変換器26にクロック信号や制御信号を供給するタイミング発生回路であり、メモリ制御回路22及びシステム制御回路50により制御される。
20は画像処理回路であり、 A/D変換器16からのデータ或いはメモリ制御回路22からのデータに対して所定の画素補間処理や色変換処理を行う。また、画像処理回路20においては、撮像した画像データを用いて所定の演算処理を行い、得られた演算結果に基づいてシステム制御回路50が露光制御手段40、測距制御手段42に対して制御を行う、TTL(スルー・ザ・レンズ)方式のAF(オートフォーカス)処理、AE(自動露出)処理、EF(フラッシュプリ発光)処理を行っている。さらに、画像処理回路20においては、撮像した画像データを用いて所定の演算処理を行い、得られた演算結果に基づいてTTL方式のAWB(オートホワイトバランス)処理も行っている。
An
22はメモリ制御回路であり、A/D変換器16、タイミング発生回路18、画像処理回路20、画像表示メモリ24、D/A変換器26、メモリ30、圧縮・伸長回路32を制御する。
A
A/D変換器16のデータが画像処理回路20、メモリ制御回路22を介して、或いはA/D変換器16のデータが直接メモリ制御回路22を介して、画像表示メモリ24或いはメモリ30に書き込まれる。24は画像表示メモリ、26はD/A変換器、28はTFT LCD等から成る画像表示部であり、画像表示メモリ24に書き込まれた表示用の画像データはD/A変換器26を介して画像表示部28により表示される。
The data of the A /
画像表示部28を用いて撮像した画像データを逐次表示すれば、電子ファインダ機能を実現することが可能である。また、画像表示部28は、システム制御回路50の指示により任意に表示をON/OFFすることが可能であり、表示をOFFにした場合にはデジタルカメラ100の電力消費を大幅に低減することができる。
If the image data captured using the
30は撮影した静止画像や動画像を格納するためのメモリであり、所定枚数の静止画像や所定時間の動画像を格納するのに十分な記憶量を備えている。これにより、複数枚の静止画像を連続して撮影する連写撮影やパノラマ撮影の場合にも、高速かつ大量の画像書き込みをメモリ30に対して行うことが可能となる。また、メモリ30はシステム制御回路50の作業領域としても使用することが可能である。
32は適応離散コサイン変換(ADCT)等により画像データを圧縮伸長する圧縮・伸長回路であり、メモリ30に格納された画像を読み込んで圧縮処理或いは伸長処理を行い、処理を終えたデータをメモリ30に書き込む。
40は絞り機能を備えるシャッター12を制御する露光制御手段であり、フラッシュ48と連携することによりフラッシュ調光機能も有するものである。
42は撮影レンズ10のフォーカシングを制御する測距制御手段、44は撮影レンズ10のズーミングを制御するズーム制御手段、46はバリアである保護手段102の動作を制御するバリア制御手段である。
Reference numeral 40 denotes exposure control means for controlling the shutter 12 having a diaphragm function, and has a flash light control function in cooperation with the
Reference numeral 42 denotes a distance measuring control means for controlling the focusing of the photographing
48はフラッシュであり、AF補助光の投光機能、フラッシュ調光機能も有する。
露光制御手段40、測距制御手段42はTTL方式を用いて制御されており、撮像した画像データを画像処理回路20によって演算した演算結果に基づき、システム制御回路50が露光制御手段40、測距制御手段42に対して制御を行う。
A
The exposure control means 40 and the distance measurement control means 42 are controlled using the TTL method, and based on the calculation result obtained by calculating the captured image data by the
50はデジタルカメラ100全体を制御するシステム制御回路、52はシステム制御回路50の動作用の定数、変数、プログラム等を記憶するメモリである。
54はシステム制御回路50でのプログラムの実行に応じて、文字、画像、音声等を用いて動作状態やメッセージ等を表示する液晶表示装置、スピーカー等の表示部であり、デジタルカメラ100の操作部近辺の視認し易い位置に単数或いは複数個所設置され、例えばLCDやLED、発音素子等の組み合わせにより構成されている。
A
また、表示部54は、その一部の機能が光学ファインダ104内に設置されている。表示部54の表示内容のうち、LCD等に表示するものとしては、シングルショット/連写撮影表示、セルフタイマー表示、圧縮率表示、記録画素数表示、記録枚数表示、残撮影可能枚数表示、シャッタースピード表示、絞り値表示、露出補正表示、フラッシュ表示、赤目緩和表示、マクロ撮影表示、ブザー設定表示、時計用電池残量表示、電池残量表示、エラー表示、複数桁の数字による情報表示、外部記録媒体200の着脱状態表示、通信I/F動作表示、日付け・時刻表示等がある。
The
また、表示部54の表示内容のうち、光学ファインダ104内に表示するものとしては、合焦表示、手振れ警告表示、フラッシュ充電表示、シャッタースピード表示、絞り値表示、露出補正表示等がある。
Among the display contents of the
56は電気的に消去・記録可能な不揮発性メモリであり、例えばEEPROM等が用いられる。
58はシステム制御回路50のからのタイマー計測指示を受けることにより時間計測を行うタイマー制御回路である。
58 is a timer control circuit for measuring time by receiving a timer measurement instruction from the
60、62、64、66、68及び70は、システム制御回路50の各種の動作指示を入力するための操作手段であり、スイッチやダイアル、タッチパネル、視線検知によるポインティング、音声認識装置等の単数或いは複数の組み合わせで構成される。
ここで、これらの操作手段の具体的な説明を行う。
60はモードダイアルスイッチで、電源オフ、自動撮影モード、撮影モード、パノラマ撮影モード、再生モード、マルチ画面再生・消去モード、PC接続モード等の各機能モードを切り替え設定することができる。
Here, a specific description of these operating means will be given.
62はシャッタースイッチSW1で、不図示のシャッターボタンの操作途中でONとなり、AF(オートフォーカス)処理、AE(自動露出)処理、AWB(オートホワイトバランス)処理、EF(フラッシュプリ発光)処理等の動作開始を指示する。
64はシャッタースイッチSW2で、不図示のシャッターボタンの操作完了でONとなり、撮像素子14から読み出した信号をA/D変換器16、メモリ制御回路22を介してメモリ30に画像データを書き込む露光処理、画像処理回路20やメモリ制御回路22での演算を用いた現像処理、メモリ30から画像データを読み出し、圧縮・伸長回路32で圧縮を行い、記録媒体200に画像データを書き込む記録処理という一連の処理の動作開始を指示する。
66は画像表示ON/OFFスイッチで、画像表示部28のON/OFFを設定することができる。この機能により、光学ファインダ104を用いて撮影を行う際に、TFT LCD等から成る画像表示部への電流供給を遮断することにより、省電力を図ることが可能となる。
68はクイックレビューON/OFFスイッチで、撮影直後に撮影した画像データを自動再生するクイックレビュー機能を設定する。なお、本実施の形態では特に、画像表示部28をOFFとした場合におけるクイックレビュー機能の設定をする機能を備えるものとする。
70は各種ボタンやタッチパネル等からなる操作部で、メニューボタン、セットボタン、マクロボタン、マルチ画面再生改ページボタン、フラッシュ設定ボタン、単写/連写/セルフタイマー切り替えボタン、メニュー移動+(プラス)ボタン、メニュー移動−(マイナス)ボタン、再生画像移動+(プラス)ボタン、再生画像移動−(マイナス)ボタン、撮影画質選択ボタン、露出補正ボタン、日付/時間設定ボタン、フォーマット操作ボタン等がある。 70 is an operation unit composed of various buttons, a touch panel, etc., a menu button, a set button, a macro button, a multi-screen playback page break button, a flash setting button, a single shooting / continuous shooting / self-timer switching button, menu movement + (plus) Button, menu shift- (minus) button, playback image shift + (plus) button, playback image shift- (minus) button, shooting image quality selection button, exposure correction button, date / time setting button, format operation button, and the like.
80は電源制御手段で、電池検出回路、DC-DCコンバータ、通電するブロックを切り替えるスイッチ回路等により構成されており、電池の装着の有無、電池の種類、電池残量の検出を行い、検出結果及びシステム制御回路50の指示に基づいてDC-DCコンバータを制御し、必要な電圧を必要な期間、記録媒体を含む各部へ供給する。
80 is a power control means, which is composed of a battery detection circuit, a DC-DC converter, a switch circuit for switching a block to be energized, etc., and detects the presence / absence of a battery, the type of battery, the remaining battery level, and the detection result In addition, the DC-DC converter is controlled based on an instruction from the
82はコネクタ、84はコネクタ、86はアルカリ電池やリチウム電池等の一次電池やNiCd電池やNiMH電池、Li電池等の二次電池、ACアダプター等からなる電源手段である。
90はメモリカード等の外部記録媒体とデータの送受信を行うカードコントローラ、91はメモリカード等の外部記録媒体とのインタフェース、92はメモリカード等の外部記録媒体と接続を行うコネクタ、98はコネクタ92に外部記録媒体200が装着されているか否かを検知する記録媒体着脱検知手段である。
90 is a card controller for transmitting and receiving data to and from an external recording medium such as a memory card, 91 is an interface with an external recording medium such as a memory card, 92 is a connector for connecting to an external recording medium such as a memory card, and 98 is a
なお、本実施の形態では記録媒体を取り付けるインタフェースやコネクタは、単数或いは複数、いずれの系統数を備える構成としても構わない。また、異なる規格のインタフェース及びコネクタを組み合わせて備える構成としても構わない。インタフェース及びコネクタとしては、PCMCIAカードやCF(コンパクトフラッシュ(登録商標))カード等の規格に準拠したものを用いて構成して構わない。 In the present embodiment, a single or a plurality of interfaces and connectors for attaching a recording medium may be provided. Moreover, it is good also as a structure provided with combining the interface and connector of a different standard. The interface and the connector may be configured using a PCMCIA card, a CF (Compact Flash (registered trademark)) card, or the like that conforms to a standard.
さらに、インタフェース91、そしてコネクタ92をPCMCIAカードやCF(コンパクトフラッシュ(登録商標))カード等の規格に準拠したものを用いて構成した場合、LANカードやモデムカード、USBカード、IEEE1394カード、P1284カード、SCSIカード、PHS等の通信カード、等の各種通信カードを接続することにより、他のコンピュータやプリンタ等の周辺機器との間で画像データや画像データに付属した管理情報を転送し合うことができる。
Further, when the interface 91 and the
102は、デジタルカメラ100のレンズ10を含む撮像部を覆う事により、撮像部の汚れや破損を防止するバリアである保護手段である。104は光学ファインダであり、画像表示部28による電子ファインダ機能を使用することなしに、光学ファインダのみを用いて撮影を行うことが可能である。
また、光学ファインダ104内には、表示部54の一部の機能、例えば、合焦表示、手振れ警告表示、フラッシュ充電表示、シャッタースピード表示、絞り値表示、露出補正表示などが設置されている。200はメモリカード等の外部記録媒体である。以上がデジタルカメラ100の全体のシステム構成である。なお、110は外部と通信するための通信手段であり、112は通信用アンテナを接続するためのコネクタである。
In the
図2は、本実施の形態での外部記録媒体200内に構築されているファイルシステムの論理的な構成を簡略に示した図である。
図2に示すように、外部記録媒体200の記憶領域は、ファイルシステムの管理領域210とデータ領域220とに分けられる。管理領域210には、マスターブートレコード(MBR)211、ブートセクタ212、ファット(FAT:file allocation table)213、ルートディレクトリエントリ214が含まれている。
FIG. 2 is a diagram schematically showing a logical configuration of a file system constructed in the
As shown in FIG. 2, the storage area of the
マスターブートレコード211には、パーティションテーブルが記載されている。パーティションテーブルは、ブートセクタ212の位置やデータ領域220のサイズなど、パーティションと呼ばれる論理領域を示すテーブルである。
In the
ブートセクタ212は、クラスタサイズやファット213のサイズなどファイルシステムがデータ領域220に置かれたデータを扱うための基本的な情報が記載されている。クラスタとは、データ領域220でデータを扱う論理的な最小サイズである。
The
最後に、ファット213は、クラスタを基準として、データ領域220中のファイルの位置を示しているテーブルである。ファット213を解析することにより、どのクラスタがどのクラスタとどういった順序でファイルを形成しているのか、または、どこのクラスタが未使用なのか(テーブル中では「0」でクリアされているエントリ)といったデータ領域220の使用状況を知ることができる。
Finally, the fat 213 is a table indicating the position of the file in the
一般的に、このような外部記録媒体200に対して、通常の(論理)フォーマットを実行した場合、ファイルシステムの動作としては、外部記録媒体200のデバイス情報からマスターブートレコード211とブートセクタ212を再構成し、書き込んだ後にファット213の領域とルートディレクトリエントリを「0」でクリアすることで外部記録媒体200を見かけ上すべて未使用としている。
In general, when a normal (logical) format is executed for such an
本実施の形態においては、このようなフォーマットを論理フォーマットと呼ぶこととする。この論理フォーマットは、前述したようにファイルシステムの管理領域210のみを書き換えるだけで、データ領域220に書かれているデータは、書き換えられることなく以前のデータがそのまま書き込まれている。
In the present embodiment, such a format is referred to as a logical format. In this logical format, as described above, only the management area 210 of the file system is rewritten, and the data written in the
これに対して、物理フォーマットと呼ばれるフォーマットが存在する。物理フォーマットとは、ファイルシステムの管理領域210の書き換えだけでなく、データ領域220に対しても値のクリアを行うフォーマットである。
On the other hand, there is a format called a physical format. The physical format is a format that not only rewrites the management area 210 of the file system but also clears the value for the
本実施の形態では、フラッシュメモリを利用した外部記憶媒体200であるから、本実施の形態での物理フォーマットでは、データ領域220の値をクリアする代わりに、データ領域220のデータを消去することとする。
In this embodiment, since the
本実施の形態のデジタルカメラ100では、外部記録媒体200のフォーマットが実行可能であり、フォーマットを選択する際には、図3のようフォーマット用メニューを表示している。
In the
図3のフォーマットメニュー選択時の処理を示したものが図4のフローチャートである。
以下、図4に示す処理について詳細に述べる。
図3に示すようにフォーマットメニューが表示されるとステップS401でユーザは"フォーマット"、または"キャンセル"を選択することができる。ここで、"キャンセル"が選択された場合、外部記録媒体200には何も実行されずフォーマットメニューは終了する。
FIG. 4 is a flowchart showing processing when the format menu of FIG. 3 is selected.
Hereinafter, the process shown in FIG. 4 will be described in detail.
When the format menu is displayed as shown in FIG. 3, the user can select “format” or “cancel” in step S401. Here, when “Cancel” is selected, nothing is executed on the
一方、ステップS401で"フォーマット"が選択(OK)された場合、ステップS402に進んで所定の領域Aを確保する。
次に、ステップS403に進み、ステップS402で確保した所定の領域Aの物理フォーマットを行う。
On the other hand, when “format” is selected (OK) in step S401, the process proceeds to step S402 to secure a predetermined area A.
Next, the process proceeds to step S403, and the physical format of the predetermined area A secured in step S402 is performed.
次に、ステップS404に進んで所定の領域Aにデータを書き込む。このデータ書き込み時に、タイマー制御回路58を用いて第1の速度計測(X)を行う。次に、ステップS405に進み、先ほどのデータが書き込まれた領域にデータを上書きする。このデータ上書き時に、タイマー制御回路58を用いて第2の速度計測(Y)を行う。
In step S404, data is written in a predetermined area A. At the time of this data writing, the first speed measurement (X) is performed using the
次に、ステップS406に進み、物理フォーマットを用いて行った第1の書き込み速度Xが、論理フォーマットを行った上書き時の第2の書き込み速度Yよりも十分に速いか判断する。 In step S406, it is determined whether the first writing speed X performed using the physical format is sufficiently faster than the second writing speed Y at the time of overwriting performed in the logical format.
この判断の結果、十分速ければステップS408に進み、メディア全体の物理フォーマットを行う。また、ステップS406の判断の結果、そうでなければステップS407に進み、論理フォーマットを行う。図5に、フォーマット実行時に表示される画面の一例を示す。 As a result of this determination, if it is sufficiently fast, the process proceeds to step S408, where the physical formatting of the entire medium is performed. As a result of the determination in step S406, if not, the process proceeds to step S407 to perform logical formatting. FIG. 5 shows an example of a screen displayed at the time of formatting.
前述したように、本実施の形態によれば、外部記録媒体を初期化する際に最適なフォーマットを自動的に判別し、前記判別したフォーマットを用いて初期化するようにしたので、必要なデータと消去したいデータとが同じブロック上に存在してしまい、消去自体ができないか、または他のデータまで誤って消去してしまうことを可及的に防止することができる。 As described above, according to the present embodiment, the optimum format is automatically determined when the external recording medium is initialized, and the initialization is performed using the determined format. It is possible to prevent as much as possible that the data to be erased and the data to be erased exist on the same block and cannot be erased themselves or that other data is erased by mistake.
また、デジタルカメラ100に取り付けて使用するフラッシュメモリのように、高速性が求められる場合においても、データを記録するのに要する時間を短縮することができる。これにより、例えば、デジタルカメラ100に用いて高速連写を実行するときや、高精細な動画像を高速に書き込む場合にも十分に対応することができる。
Further, even when high speed is required, such as a flash memory attached to the
(本発明に係る他の実施の形態)
上述した本発明の実施の形態におけるデータ処理装置を構成する各手段、並びにデータ処理方法の各ステップは、コンピュータのRAMやROMなどに記憶されたプログラムが動作することによって実現できる。このプログラム及び上記プログラムを記録したコンピュータ読み取り可能な記憶媒体は本発明に含まれる。
(Another embodiment according to the present invention)
Each means constituting the data processing apparatus and each step of the data processing method in the embodiment of the present invention described above can be realized by operating a program stored in a RAM or ROM of a computer. This program and a computer-readable storage medium storing the program are included in the present invention.
また、本発明は、例えば、システム、装置、方法、プログラムもしくは記録媒体等としての実施の形態も可能であり、具体的には、複数の機器から構成されるシステムに適用しても良いし、また、一つの機器からなる装置に適用しても良い。 Further, the present invention can be implemented as, for example, a system, apparatus, method, program, or recording medium, and may be applied to a system composed of a plurality of devices. Moreover, you may apply to the apparatus which consists of one apparatus.
なお、本発明は、前述した実施の形態の機能を実現するソフトウェアのプログラム(実施の形態では、図4に示すフローチャートに対応したプログラム)を、システムあるいは装置に直接、あるいは遠隔から供給し、そのシステムあるいは装置のコンピュータが前記供給されたプログラムコードを読み出して実行することによっても達成される場合を含む。 In the present invention, a software program (in the embodiment, a program corresponding to the flowchart shown in FIG. 4) for realizing the functions of the above-described embodiment is directly or remotely supplied to a system or apparatus, This includes the case where the system or apparatus computer also achieves by reading and executing the supplied program code.
したがって、本発明の機能処理をコンピュータで実現するために、前記コンピュータにインストールされるプログラムコード自体も本発明を実現するものである。つまり、本発明は、本発明の機能処理を実現するためのコンピュータプログラム自体も含まれる。 Accordingly, since the functions of the present invention are implemented by computer, the program code installed in the computer also implements the present invention. In other words, the present invention includes a computer program itself for realizing the functional processing of the present invention.
その場合、プログラムの機能を有していれば、オブジェクトコード、インタプリター(interpreter)により実行されるプログラム、OSに供給するスクリプトデータ等の形態であっても良い。 In that case, as long as it has the function of a program, it may be in the form of an object code, a program executed by an interpreter, script data supplied to the OS, or the like.
プログラムを供給するための記録媒体としては、例えば、フロッピー(登録商標)ディスク、ハードディスク、光ディスク、光磁気ディスク、MO、CD−ROM、CD−R、CD−RW、磁気テープ、不揮発性のメモリカード、ROM、DVD(DVD−ROM,DVD−R)などがある。 As a recording medium for supplying the program, for example, floppy (registered trademark) disk, hard disk, optical disk, magneto-optical disk, MO, CD-ROM, CD-R, CD-RW, magnetic tape, nonvolatile memory card ROM, DVD (DVD-ROM, DVD-R) and the like.
その他、プログラムの供給方法としては、クライアントコンピュータのブラウザを用いてインターネットのホームページに接続し、前記ホームページから本発明のコンピュータプログラムそのもの、もしくは圧縮され自動インストール機能を含むファイルをハードディスク等の記録媒体にダウンロードすることによっても供給できる。 As another program supply method, a client computer browser is used to connect to an Internet homepage, and the computer program itself of the present invention or a compressed file including an automatic installation function is downloaded from the homepage to a recording medium such as a hard disk. Can also be supplied.
また、本発明のプログラムを構成するプログラムコードを複数のファイルに分割し、それぞれのファイルを異なるホームページからダウンロードすることによっても実現可能である。つまり、本発明の機能処理をコンピュータで実現するためのプログラムファイルを複数のユーザに対してダウンロードさせるWWWサーバも、本発明に含まれるものである。 It can also be realized by dividing the program code constituting the program of the present invention into a plurality of files and downloading each file from a different homepage. That is, a WWW server that allows a plurality of users to download a program file for realizing the functional processing of the present invention on a computer is also included in the present invention.
また、本発明のプログラムを暗号化してCD−ROM等の記憶媒体に格納してユーザに配布し、所定の条件をクリアしたユーザに対し、インターネットを介してホームページから暗号化を解く鍵情報をダウンロードさせ、その鍵情報を使用することにより暗号化されたプログラムを実行してコンピュータにインストールさせて実現することも可能である。 In addition, the program of the present invention is encrypted, stored in a storage medium such as a CD-ROM, distributed to users, and key information for decryption is downloaded from a homepage via the Internet to users who have cleared predetermined conditions. It is also possible to execute the encrypted program by using the key information and install the program on a computer.
また、コンピュータが、読み出したプログラムを実行することによって、前述した実施の形態の機能が実現される他、そのプログラムの指示に基づき、コンピュータ上で稼動しているOSなどが、実際の処理の一部または全部を行い、その処理によっても前述した実施の形態の機能が実現され得る。 In addition to the functions of the above-described embodiments being realized by the computer executing the read program, the OS running on the computer based on the instructions of the program is used for the actual processing. The functions of the above-described embodiment can be realized by performing some or all of the processes.
さらに、記録媒体から読み出されたプログラムが、コンピュータに挿入された機能拡張ボードやコンピュータに接続された機能拡張ユニットに備わるメモリに書き込まれた後、そのプログラムの指示に基づき、その機能拡張ボードや機能拡張ユニットに備わるCPUなどが実際の処理の一部または全部を行い、その処理によっても前述した実施の形態の機能が実現される。 Furthermore, after the program read from the recording medium is written in a memory provided in a function expansion board inserted into the computer or a function expansion unit connected to the computer, the function expansion board or The CPU or the like provided in the function expansion unit performs part or all of the actual processing, and the functions of the above-described embodiments are realized by the processing.
10 撮影レンズ
12 シャッター
14 撮像素子
16 A/D変換器
18 タイミング発生回路
20 画像処理回路
22 メモリ制御回路
24 画像表示メモリ
26 D/A変換器
28 画像表示部
30 メモリ
32 画像圧縮・伸長回路
40 露光制御手段
42 測距制御手段
44 ズーム制御手段
46 バリア制御手段
48 フラッシュ
50 システム制御回路
52 メモリ
54 表示部
56 不揮発性メモリ
58 タイマー制御回路
60 モードダイアルスイッチ
62 シャッタースイッチ
64 シャッタースイッチ
SW1 第1のシャッタースイッチ
SW2 第2のシャッタースイッチ
66 画像表示ON/OFFスイッチ
68 クイックレビューON/OFFスイッチ
70 操作部
80 電源制御手段
82 コネクタ
84 コネクタ
86 電源手段
90 カードコントローラ
91 インタフェース
92 コネクタ
98 記録媒体着脱検知手段
100 デジタルカメラ
102 保護手段
104 光学ファインダ
200 外部記録媒体
DESCRIPTION OF
Claims (8)
前記ファイル管理領域を論理的にフォーマットを行う論理フォーマット手段と、
前記記憶媒体のデータ記録領域に記録されているデータを電気的に所定サイズ分消去するデータ消去手段と、
前記データ消去手段の消去状態に応じて、前記論理フォーマットとデータ記録領域の消去を併せて実行する物理フォーマット手段とを有することを特徴とするデータ処理装置。 A data processing apparatus for recording the data on a recording medium having a data recording area for recording data and a management area of a file system,
Logical formatting means for logically formatting the file management area;
Data erasing means for electrically erasing data recorded in a data recording area of the storage medium by a predetermined size;
A data processing apparatus comprising: physical formatting means for executing erasure of the logical format and a data recording area in accordance with an erasing state of the data erasing means.
前記フォーマット判別手段は、前記消去時間計測手段による計測結果により消去状態を判断することを特徴とする請求項2に記載のデータ処理装置。 Erasing time measuring means for measuring the erasing time of the data erasing means,
The data processing apparatus according to claim 2, wherein the format determination unit determines an erasure state based on a measurement result by the erasure time measurement unit.
前記ファイル管理領域を論理的にフォーマットを行う論理フォーマット工程と、
前記記憶媒体のデータ記録領域に記録されているデータを電気的に所定サイズ分消去するデータ消去工程と、
前記データ消去工程の消去状態に応じて、前記論理フォーマットとデータ記録領域の消去を併せて実行する物理フォーマット工程とを有することを特徴とするデータ処理方法。 A data processing method for recording the data on a recording medium having a data recording area for recording data and a management area of a file system,
A logical formatting step for logically formatting the file management area;
A data erasing step for electrically erasing data recorded in a data recording area of the storage medium by a predetermined size;
A data processing method comprising: a physical formatting step for executing both the logical format and erasing of the data recording area in accordance with an erasing state of the data erasing step.
前記フォーマット判別工程は、前記消去時間計測工程による計測結果により消去状態を判断することを特徴とする請求項5に記載のデータ処理方法。 An erasing time measuring step of measuring an erasing time of the data erasing step,
6. The data processing method according to claim 5, wherein the format determination step determines an erasure state based on a measurement result obtained by the erasure time measurement step.
前記ファイル管理領域を論理的にフォーマットを行う論理フォーマット工程と、
前記記憶媒体のデータ記録領域に記録されているデータを電気的に所定サイズ分消去するデータ消去工程と、
前記データ消去工程の消去状態に応じて、前記論理フォーマットとデータ記録領域の消去を併せて実行する物理フォーマット工程とをコンピュータに実行させることを特徴とするコンピュータプログラム。 A program for causing a computer to execute a data processing method for recording the data on a recording medium having a data recording area for recording data and a file system management area,
A logical formatting step for logically formatting the file management area;
A data erasing step for electrically erasing data recorded in a data recording area of the storage medium by a predetermined size;
A computer program for causing a computer to execute a logical formatting and a physical formatting process for executing erasing of a data recording area in accordance with an erasing state of the data erasing process.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2005000722A JP2006190030A (en) | 2005-01-05 | 2005-01-05 | Data processor and data processing method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2005000722A JP2006190030A (en) | 2005-01-05 | 2005-01-05 | Data processor and data processing method |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2006190030A true JP2006190030A (en) | 2006-07-20 |
Family
ID=36797179
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2005000722A Pending JP2006190030A (en) | 2005-01-05 | 2005-01-05 | Data processor and data processing method |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2006190030A (en) |
-
2005
- 2005-01-05 JP JP2005000722A patent/JP2006190030A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP4809960B2 (en) | Image processing apparatus, method, and recording medium | |
JP2008160792A (en) | Electronic camera and control method thereof | |
JP5072292B2 (en) | Imaging apparatus and control method thereof | |
JP4324116B2 (en) | Image processing apparatus, control method therefor, program, and storage medium | |
JP4681937B2 (en) | Imaging apparatus and imaging method | |
JP2006119996A (en) | Battery-driven device and its nonvolatile memory updating method | |
JP4498169B2 (en) | Image processing apparatus and control method thereof | |
JP4700796B2 (en) | Imaging apparatus, control method therefor, and storage medium | |
JP4574382B2 (en) | Information retrieval apparatus, control method therefor, program, and storage medium | |
JP2008072516A (en) | Image processing apparatus and image processing method | |
JP2006203689A (en) | Imaging apparatus and control method thereof, program, and storage medium | |
JP4574426B2 (en) | Data processing apparatus and data processing method | |
JP4878456B2 (en) | Recording medium and imaging apparatus | |
JP2006202051A (en) | Data processor and data processing method | |
JP4785778B2 (en) | Imaging device, control method thereof, and program | |
JP4701297B2 (en) | Image processing apparatus, method, and recording medium | |
JP4298534B2 (en) | Image display apparatus and method | |
JP4766706B2 (en) | Image processing apparatus, control method therefor, program, and storage medium | |
JP2006190030A (en) | Data processor and data processing method | |
JP4776967B2 (en) | RECORDING / REPRODUCING DEVICE, ITS CONTROL METHOD, PROGRAM, AND STORAGE MEDIUM | |
JP4208730B2 (en) | Data editing apparatus and method, and imaging apparatus | |
JP4717762B2 (en) | Image reproducing apparatus, control method for image reproducing apparatus, program, and recording medium | |
JP3697215B2 (en) | Imaging device | |
JP2008077402A (en) | Image processor, its control method, computer program and storage medium | |
JP2006109137A (en) | Image processing device |