JP2005352899A - Image recording device and control method thereof - Google Patents

Image recording device and control method thereof Download PDF

Info

Publication number
JP2005352899A
JP2005352899A JP2004174597A JP2004174597A JP2005352899A JP 2005352899 A JP2005352899 A JP 2005352899A JP 2004174597 A JP2004174597 A JP 2004174597A JP 2004174597 A JP2004174597 A JP 2004174597A JP 2005352899 A JP2005352899 A JP 2005352899A
Authority
JP
Japan
Prior art keywords
partition
image
storage medium
moving image
cluster size
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
Application number
JP2004174597A
Other languages
Japanese (ja)
Other versions
JP2005352899A5 (en
Inventor
Shuichiro Matsushima
修一郎 松島
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Canon Inc
Original Assignee
Canon Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Canon Inc filed Critical Canon Inc
Priority to JP2004174597A priority Critical patent/JP2005352899A/en
Priority to US11/130,116 priority patent/US7683942B2/en
Publication of JP2005352899A publication Critical patent/JP2005352899A/en
Publication of JP2005352899A5 publication Critical patent/JP2005352899A5/ja
Priority to US12/698,110 priority patent/US7932933B2/en
Pending legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To effectively use a memory area in a storage medium by allowing the storage medium as an object of storage to have a plurality of partition areas and determining an optimum storage destination partition area according to which of a still picture and a moving picture an image to be recorded is. <P>SOLUTION: When a removable medium 107 is connected, a plurality of partition areas set on the removable medium 107 are discriminated, cluster sides of data storage units of each partition area are detected, and the result is stored in an information storage part 111. A system controller 108 when storing a picked-up still picture as a file on the removable medium 107 stores the still picture preferentially from a partition area having a small cluster side. When a moving picture is stored, the picture is stored preferentially from a partition area having a large cluster size. <P>COPYRIGHT: (C)2006,JPO&NCIPI

Description

本発明は動画像や静止画像を記憶媒体へ記録する技術に関するものである。   The present invention relates to a technique for recording a moving image or a still image on a storage medium.

一般に、リムーバブルメディアはクラスタを単位に情報を記憶する。1クラスタは複数のセクタをまとめたものである。クラスタのサイズはファイルシステムやメディアの容量によっても変化する。クラスタはファイルを扱うための最小単位であるため、1クラスタの容量に満たない小さなデータでもファイルとして保存すると1クラスタの領域を使用する。そのため、1つのリムーバブルメディアに格納するファイル数が増えると無駄な領域の合計容量も増えていき、リムーバブルメディアが持つ全記憶容量を活用することはできない。換言すれば、1クラスタのサイズが小さいと、無駄に消費するサイズも小さくなり、記録可能な容量を増やすことができることを意味する。   Generally, removable media store information in units of clusters. One cluster is a group of a plurality of sectors. The size of the cluster also changes depending on the file system and media capacity. Since a cluster is the smallest unit for handling a file, even if small data less than the capacity of one cluster is saved as a file, an area of one cluster is used. For this reason, if the number of files stored in one removable medium increases, the total capacity of useless areas also increases, and the total storage capacity of the removable medium cannot be utilized. In other words, if the size of one cluster is small, the wasteful consumption size is also reduced, which means that the recordable capacity can be increased.

一方、動画のような一連の大きなデータの場合、同じサイズのファイルであれば1クラスタの容量が大きいほどファイルを構成するクラスタ数が減るため、クラスタへのアクセス回数が減りメディアへのアクセス速度が速くなる。これらのことから扱うデータサイズ(クラスタサイズと言い換えても良い)とアクセス速度とは、互いにトレードオフの関係にあると言える。   On the other hand, in the case of a series of large data such as a movie, if the file has the same size, the larger the capacity of one cluster, the smaller the number of clusters that make up the file. Get faster. From these facts, it can be said that the data size handled (which may be called the cluster size) and the access speed are in a trade-off relationship with each other.

さて、メディアのアクセス速度向上のためにユーザがリムーバブルメディアの最適フォーマットを変更できる手法が知られている(特許文献1)。さらにリムーバブルメディアのフォーマットを初期化する際に、ユーザが容量を重視するかアクセス速度を重視するかを選択できる手法も知られている(特許文献2)。
特開平11−112937号公報 特開2004−80461公報
A technique is known in which a user can change the optimum format of a removable medium in order to improve the access speed of the medium (Patent Document 1). Furthermore, a method is also known in which, when initializing the format of a removable medium, the user can select whether to place importance on capacity or on access speed (Patent Document 2).
Japanese Patent Laid-Open No. 11-12937 JP 2004-80461 A

しかし、デジタルカメラやデジタルビデオカメラ等の撮像装置でリムーバブルメディアを使用する際、最初のフォーマットによってその後の性質が決定されてしまうことになり、記録する画像の性質に応じて適応的に対処するには至っていないのが現状である。   However, when using removable media in an imaging device such as a digital camera or digital video camera, the subsequent properties will be determined by the initial format, and this will be handled adaptively according to the properties of the image to be recorded. The current situation is not.

本発明はかかる課題に鑑みなされたものであり、格納対象となる記憶媒体に複数のパーティション領域があることを許容し、且つ、記録すべき画像が静止画、動画のいずれであるかに応じて最適な格納先パーティション領域を決定することで、記憶媒体が持つメモリ領域を有効活用する技術を提供しようとするものである。   The present invention has been made in view of such problems, and allows a storage medium to be stored to have a plurality of partition areas, and depending on whether an image to be recorded is a still image or a moving image. It is an object of the present invention to provide a technique for effectively utilizing a memory area of a storage medium by determining an optimum storage destination partition area.

この課題を解決するため、例えば本発明の画像記録装置は以下の構成を備える。すなわち、
着脱自在でランダムアクセス可能な記憶媒体に、静止画像、動画像それぞれをファイルとして記録する画像記録装置であって、
装着した記憶媒体に設定された複数のパーティション領域を識別し、各パーティション領域のデータ格納単位であるクラスタサイズを検出する検出手段と、
静止画像を前記記憶媒体にファイルとして保存する場合には、クラスタサイズの小さいパーティション領域から優先して格納する静止画格納制御手段と、
動画像を前記記憶媒体にファイルとして保存する場合には、クラスタサイズの大きなパーティション領域から優先して格納する動画像格納制御手段とを備える。
In order to solve this problem, for example, an image recording apparatus of the present invention has the following configuration. That is,
An image recording device for recording still images and moving images as files on a removable and randomly accessible storage medium,
Detecting means for identifying a plurality of partition areas set in the mounted storage medium and detecting a cluster size which is a data storage unit of each partition area;
When storing a still image as a file in the storage medium, still image storage control means for preferentially storing from a partition area having a small cluster size;
When storing a moving image as a file in the storage medium, a moving image storage control unit that preferentially stores a partition area having a large cluster size is provided.

本発明によれば、格納対象となる記憶媒体に複数のパーティション領域があることを許容し、且つ、記録すべき画像が静止画、動画のいずれであるかに応じて最適な格納先パーティション領域を決定することで、記憶媒体が持つメモリ領域を有効活用することが可能になる。   According to the present invention, the storage medium to be stored is allowed to have a plurality of partition areas, and the optimum storage destination partition area is determined depending on whether the image to be recorded is a still image or a moving image. By determining, it becomes possible to effectively use the memory area of the storage medium.

以下、添付図面に従って本発明に係る実施形態を詳細に説明する。   Hereinafter, embodiments according to the present invention will be described in detail with reference to the accompanying drawings.

図1は、実施形態における動画・静止画を撮像記録するデジタルビデオカメラのブロック構成図である。以下に、その構成をその動作処理と共に説明する。   FIG. 1 is a block diagram of a digital video camera that captures and records moving images and still images in the embodiment. The configuration will be described below together with the operation process.

光学ユニット(レンズ、絞り、及びそれらを駆動するモータ等で構成される)101から取り込まれた外光は撮像素子102面上に結像し、電気的な信号に変換される。この信号は画像処理部103に供給され、デジタル画像データとなる。画像データは画像表示部(液晶表示装置)に表示され、撮像画像として確認可能となる。   External light taken from an optical unit 101 (comprising a lens, a diaphragm, a motor for driving them, etc.) 101 forms an image on the surface of the image sensor 102 and is converted into an electrical signal. This signal is supplied to the image processing unit 103 and becomes digital image data. The image data is displayed on an image display unit (liquid crystal display device) and can be confirmed as a captured image.

リムーバブルメディア(書き込み可能な記憶媒体)に書き込まれるデータは動画の場合、動画圧縮/伸長部105aで、静止画の場合は静止画圧縮/伸長部105bで画像圧縮されメディアインターフェイス106経由でリムーバブルメディア107に書き込まれる。また逆にリムーバブルメディア107のデータを再生する場合はメディアインターフェイス106を通して圧縮/伸長部105a、105bにて伸長され画像処理部103を経由で映像表示部104に表示される。なお、場合によっては外部出力端子より外部装置(外部表示装置)に再生信号を出力することも可能である。   When the data written to the removable medium (writable storage medium) is a moving image, the data is compressed by the moving image compression / decompression unit 105a. Is written to. Conversely, when data on the removable medium 107 is reproduced, it is decompressed by the compression / decompression units 105 a and 105 b through the media interface 106 and displayed on the video display unit 104 via the image processing unit 103. In some cases, a reproduction signal can be output from an external output terminal to an external device (external display device).

システムコントローラ108は、マイクロプロセッサ及びその処理手順であるプログラム(後述する各フローチャートに対応する)を格納するROM、及び、ワークエリアとして使用するRAMで構成される。そして、このシステムコントローラ108は、画像処理部103、動画圧縮/伸長部105a、静止画圧縮/伸長部105b、メディアインターフェイス106、光学ユニット制御部109を制御する。また、ユーザは操作部110に設けられた各種スイッチ、ボタン、ダイヤル等を操作して使用して装置の操作を行う。システムコントローラ108は必要に応じて情報記憶部111に情報を記憶することができる。   The system controller 108 includes a microprocessor that stores a microprocessor and a program (corresponding to each flowchart described later) that is a processing procedure thereof, and a RAM that is used as a work area. The system controller 108 controls the image processing unit 103, the moving image compression / decompression unit 105a, the still image compression / decompression unit 105b, the media interface 106, and the optical unit control unit 109. In addition, the user operates the apparatus by operating various switches, buttons, dials, and the like provided on the operation unit 110. The system controller 108 can store information in the information storage unit 111 as necessary.

図2に、実施形態におけるリムーバブルメディアのデータ構造とシステムコントローラ108の関係を示す。実施形態では、同一リムーバブルメディア121を3つのパーティション領域(領域A、B、C)123乃至125を有し、それぞれフォーマットされているものとして説明する。各パーティション領域は、例えば、デジタルカメラでは標準のファイルシステムとなっているFAT16でフォーマットされているものとする。   FIG. 2 shows the relationship between the data structure of the removable medium and the system controller 108 in the embodiment. In the embodiment, it is assumed that the same removable medium 121 has three partition areas (areas A, B, and C) 123 to 125 and is formatted respectively. Each partition area is assumed to be formatted in FAT16, which is a standard file system for digital cameras, for example.

リムーバブルメディア107を装置に装着した直後、或いは、本装置の電源がONになると、システムコントローラ108はメディア内に存在するファイルシステムを認識し、各領域A乃至Cのクラスタサイズを検出する。この検出情報は情報記憶部111に記憶され、リムーバブルメディアが取り外しされるかもしくは装置の電源切られるまで保持される。   Immediately after the removable medium 107 is installed in the apparatus or when the power of the apparatus is turned on, the system controller 108 recognizes the file system existing in the medium and detects the cluster sizes of the areas A to C. This detection information is stored in the information storage unit 111 and held until the removable medium is removed or the apparatus is turned off.

なお、FAT16のファイルシステムの場合、領域サイズが1GB超〜2GBではクラスタサイズは32KB、同512MB超〜1GBではクラスタサイズは16KB、同256M超〜512MBではクラスタサイズは8KBとなる。   In the case of the FAT16 file system, the cluster size is 32 KB when the region size is more than 1 GB to 2 GB, the cluster size is 16 KB when the region size is more than 512 MB to 1 GB, and the cluster size is 8 KB when the region size is more than 256 MB to 512 MB.

以下では、説明を簡単なものとするため、各パーティション領域のクラスタサイズは、
A>B>C
の関係にあるものとして説明する。
Below, the cluster size of each partition area is
A>B> C
It is assumed that the relationship is

静止画の場合、1つ1つの画像をJPEG符号化した結果をファイルとして格納するが、一般に、JPEG符号化は可変長符号化を採用しているので、JPEGファイルのサイズは固定とはならない。仮に、或る1つの静止画データ(JPEG画像データ)が500KBであり、それをクラスタサイズ32KBのパーティションに格納する場合を想定すると、
500/32=15 余り 20
となり、16個のクラスタを消費し、その最後のクラスタの32KB中の12KB(=32−20)は無駄な領域として消費される。
In the case of a still image, the result of JPEG encoding of each image is stored as a file. However, since JPEG encoding generally employs variable length encoding, the JPEG file size is not fixed. Assuming that one still image data (JPEG image data) is 500 KB and is stored in a partition having a cluster size of 32 KB,
500/32 = 15 remainder 20
Thus, 16 clusters are consumed, and 12 KB (= 32-20) in 32 KB of the last cluster is consumed as a useless area.

同じ条件で、クラスタサイズが8KBであるとしたとき、
500/8=62 余り 4
となり、63個のクラスタを消費し、その最後のクラスタの8KB中の4KBが無駄な領域となる。つまり、無駄に消費されるメモリサイズは、クラスタサイズによって異なることがわかる。
If the cluster size is 8KB under the same conditions,
500/8 = 62 remainder 4
Thus, 63 clusters are consumed, and 4 KB in 8 KB of the last cluster becomes a useless area. That is, it can be seen that the memory size that is wasted is different depending on the cluster size.

静止画の場合、上記のようにそのサイズは固定とはならない。1ファイルにつき無駄に消費されるデータ量は平均してクラスタサイズの半分となる。つまり、ファイル数がN個あって、クラスタサイズをCとしたとき、無駄に消費してしまうメモリ量は、ほぼ
N×C/2
となる。すなわち、無駄に消費されるメモリサイズは、クラスタサイズとファイル数に比例する。
In the case of a still image, the size is not fixed as described above. The amount of data consumed wastefully per file is half of the cluster size on average. That is, when there are N files and the cluster size is C, the amount of memory that is wasted is approximately N × C / 2.
It becomes. That is, the wasteful memory size is proportional to the cluster size and the number of files.

また、静止画の場合、1つ1つのファイルサイズは動画のそれより小さいが、ファイル数は多くなる傾向にある。また、静止画の場合には、動画ほど、リムーバブルメディアに対して、高速な書き込み/読出しは要求されない。   In the case of a still image, each file size is smaller than that of a moving image, but the number of files tends to increase. Further, in the case of a still image, a high-speed writing / reading is not required for a removable medium as with a moving image.

以上の考察のように、静止画の格納先は、クラスタサイズの小さなパーティション領域にすると、無駄なメモリ消費を少なくでき、都合が良いことがわかる。   As described above, it can be understood that use of a still image storage destination in a partition area having a small cluster size can reduce wasteful memory consumption and is convenient.

一方、動画像ファイルの場合、そのファイルサイズは、撮像時間に依存するものの、静止画より遥かに大きなものとなる。そして、一般にファイル数は静止画と比較して少なくなる傾向がある。換言すれば、1つの動画像ファイルに占める無駄に消費される領域の比率は小さなものとなるわけであるから、クラスタサイズが大きくてもさほど問題にはならないし、アクセス速度の点でもクラスタサイズが大きい方が望ましい(クラスタサイズが大きい分だけアクセス回数が減る)。   On the other hand, in the case of a moving image file, the file size depends on the imaging time, but is much larger than that of a still image. In general, the number of files tends to be smaller than that of still images. In other words, since the ratio of the wastefully consumed area to one moving image file is small, it does not matter so much even if the cluster size is large, and the cluster size is also small in terms of access speed. A larger size is desirable (the number of accesses decreases as the cluster size increases).

説明を戻す。実施形態におけるリムーバブルメディア107のパーティション領域A,B,Cのクラスタサイズは、A>B>Cの関係にあって、この情報を情報記憶部111に格納している。   Return explanation. The cluster sizes of the partition areas A, B, and C of the removable medium 107 in the embodiment have a relationship of A> B> C, and this information is stored in the information storage unit 111.

従って、動画書き込みの際には、システムコントローラ108は情報記憶部111の情報に基づき、書き込み先として、リムーバブルメディア107のクラスタサイズの最も大きい(従ってアクセス速度の最も速い)領域Aを選択し、メディアインターフェイス106を通してデータを記録する。なお、領域Aの記録可能残容量が無くなった場合、次回の動画記録開始時には、領域A以外の領域から最もアクセス速度の速い領域(実施形態ではパーティション領域B)を選択し記録を行う。   Therefore, when writing a moving image, the system controller 108 selects the area A having the largest cluster size (and hence the fastest access speed) of the removable medium 107 as the writing destination based on the information in the information storage unit 111, and Data is recorded through the interface 106. When there is no recordable remaining capacity in the area A, when the next moving image recording starts, the area having the fastest access speed (partition area B in the embodiment) is selected from the areas other than the area A and recording is performed.

一方、静止画書き込みの際には、システムコントローラ108は情報記憶部111の情報に基づき、書き込み先として、リムーバブルメディア107のクラスタサイズの最も小さいパーティション領域Cを選択し、メディアインターフェイス106を通してデータを記録する。なお、パーティション領域Cの記録可能残容量が無くなった場合、次回の動画記録開始時には、領域C以外の領域から最もクラスタサイズの小さいパーティション領域Bを選択し記録を行う。   On the other hand, when writing a still image, the system controller 108 selects a partition area C having the smallest cluster size of the removable medium 107 as a write destination based on information in the information storage unit 111 and records data through the media interface 106. To do. When there is no recordable remaining capacity in the partition area C, the partition area B having the smallest cluster size is selected from areas other than the area C and recorded when the next moving image recording starts.

以上、実施形態の概要を説明したが、システムコントローラ108の処理の詳細を以下に説明する。   The outline of the embodiment has been described above, but details of the processing of the system controller 108 will be described below.

先ず、本装置の電源がONした初期段階、及び、電源ONの状態でリムーバブルメディアを抜き差しされた場合(不図示のセンサで検出した場合)の処理を図3のフローチャートに従って説明する。   First, processing in the initial stage when the power of the apparatus is turned on and when the removable medium is inserted / removed in the power-on state (detected by a sensor (not shown)) will be described with reference to the flowchart of FIG.

先ず、ステップS1にて装着されたリムーバブルメディアのパーティション解析を行い、ステップS2にて各パーティションのクラスタサイズを検出する。このクラスタサイズの検出は、パーティションの全容量から判定できる。   First, the partition analysis of the removable media loaded in step S1 is performed, and the cluster size of each partition is detected in step S2. The cluster size can be detected from the total capacity of the partition.

次いで、ステップS3に進んで、クラスタサイズの大きい順に、各パーティションを特定する情報(パーティション名、或いは、各パーティション領域のリムーバブルメディア内における開始アドレス)を情報記憶部111に格納する。次いで、ステップS4に進んで、デフォルトとして静止画、動画それぞれの記録モードを「自動記録モード」にし、それを情報記憶部111に格納する。   Next, the process proceeds to step S3, and information for identifying each partition (partition name or start address in the removable medium of each partition area) is stored in the information storage unit 111 in descending order of cluster size. Next, the process proceeds to step S 4, where the recording mode of each of the still image and moving image is set to “automatic recording mode” as a default, and is stored in the information storage unit 111.

なお、リムーバブルメディアを抜き差しした場合、情報記憶部111は自動的に書き換えられるが、このとき、記録モードとして自動記録モードにしたことを示すメッセージを表示することが望ましい。理由は、後述する説明から明らかになるが、ユーザが格納すべきパーティションの順序を設定する場合があるからである。   When the removable medium is inserted or removed, the information storage unit 111 is automatically rewritten. At this time, it is desirable to display a message indicating that the automatic recording mode is set as the recording mode. The reason will become clear from the description to be described later, because the user may set the order of partitions to be stored.

図4は上記の処理の直後の情報記憶部111の状態を示している。図示に示すように、第1レコードには、自動記録モードフラグが設けられており、静止画、動画の記録モードが格納される(2ビットあれば十分)。   FIG. 4 shows the state of the information storage unit 111 immediately after the above processing. As shown in the figure, an automatic recording mode flag is provided in the first record, and a recording mode for still images and moving images is stored (two bits are sufficient).

図3の処理直後では、静止画、動画それぞれの記録モードは自動記録モードになっている。次の第2レコードは、リムーバブルメディアのパーティション数を示す領域であり、その後に、動画像を記憶するパーティションの順番、静止画を記憶するパーティション順番が格納される。最後の「−」はそれ以降に有意なデータが存在しないことを示す所定コードを示している。図示に示すように、動画像と静止画の記録するパーティション領域の順番は逆となっている。   Immediately after the processing of FIG. 3, the recording mode of each of the still image and the moving image is the automatic recording mode. The next second record is an area indicating the number of partitions of the removable medium. After that, the order of partitions for storing moving images and the order of partitions for storing still images are stored. The last “-” indicates a predetermined code indicating that there is no significant data thereafter. As shown in the figure, the order of the partition areas for recording the moving image and the still image is reversed.

通常は、情報記憶部111は上記の通りで構わないが、利用者によっては、動画、静止画それぞれについて格納するパーティション領域を設定したいという要望に応えるため、情報記憶部111の内容を変更できるようにした。   Normally, the information storage unit 111 may be as described above, but depending on the user, the contents of the information storage unit 111 can be changed in order to respond to a request to set a partition area for storing a moving image and a still image. I made it.

図5(a)は操作部110よりメニュー表示指示キーが押下された際に画像表示部104に表示されるメニューを示している。図に示すように、設定項目としてはカメラ設定、カード設定、オーディオ設定、システム設定等の大項目のメニューが表示される。利用者は、操作部110に設けられた十字キーを操作して所望とする項目にカーソル50を移動した後、「決定」キーを押下することで、その項目に対する更なる詳細設定メニューを表示させることが可能となっている。なお、「カメラ設定」では、圧縮率をはじめ、撮像解像度等が設定可能であるが、ここでは、「カード設定」、すなわち、装着されたリムーバブルメディアに対する設定が選択された場合を説明する。このとき、画像表示部104には同図(b)のサブメニューが表示される。ここでは、パーティション&フォーマット、動画及び静止画の記録モードが選択項目として表示されると共に、動画及び静止画については現在のモード(オート、マニュアルのいずれか)が表示される。パーティション&フォーマットを選択すると、装着されたリムーバブルメディアのパーティションの削除、新規作成(領域サイズ)、並びに、そのパーティションにFAT16のファイルシステムを作成するためのフォーマットが行える。   FIG. 5A shows a menu displayed on the image display unit 104 when the menu display instruction key is pressed from the operation unit 110. As shown in the figure, menus of large items such as camera settings, card settings, audio settings, and system settings are displayed as setting items. The user operates the cross key provided on the operation unit 110 to move the cursor 50 to a desired item, and then presses the “OK” key to display a further detailed setting menu for the item. It is possible. In “camera setting”, the compression rate, the imaging resolution, and the like can be set, but here, “card setting”, that is, the case where the setting for the mounted removable medium is selected will be described. At this time, the submenu shown in FIG. Here, the partition & format, the moving image and still image recording modes are displayed as selection items, and the current mode (either auto or manual) is displayed for the moving images and still images. When the partition & format is selected, it is possible to delete a partition of the mounted removable medium, create a new one (area size), and format for creating a FAT16 file system in the partition.

ここでは、「動画像記録モード」が選択された場合を説明する。これが選択されると、同図(c)の画面を表示し、動画像を記録する際の順位を設定可能になる。例えば、図(c)の状態ではカーソルがパーティションAにあるので、この状態で、変更キーを操作し、上下キーを操作することで、隣接するパーティションと並びを交換できる。また、「オート」を選択すると、設定された順位は無視され、クラスタサイズの大きい順に並び変えられる。   Here, a case where the “moving image recording mode” is selected will be described. When this is selected, the screen shown in FIG. 5C is displayed, and the order for recording moving images can be set. For example, since the cursor is in the partition A in the state shown in FIG. 3C, the array can be exchanged with the adjacent partition by operating the change key and the up / down key in this state. When “Auto” is selected, the set order is ignored and the cluster is rearranged in descending order of cluster size.

このようにして、動画像の記録する順位を決定すると、その決定した順位が、デフォルトである自動モードの順番と違う場合には、情報記憶部111の第1レコード中の動画像記録モードのフラグをOFFにし、設定されたパーティションの順番を格納している領域を変更する。   When the order of recording moving images is determined in this way, if the determined order is different from the order of the default automatic mode, the flag of the moving image recording mode in the first record of the information storage unit 111 is determined. And change the area that stores the set partition order.

なお、図5(b)において「静止画記録モード」を選択した場合は、「動画記録モード」と実質的に同じであるのは容易に理解できよう。従ってその説明は省略する。   Note that it is easy to understand that when the “still image recording mode” is selected in FIG. 5B, it is substantially the same as the “moving image recording mode”. Therefore, the description is omitted.

次に、実施形態における撮像装置における全体処理を図6のフローチャートに従って説明する。   Next, the overall processing in the imaging apparatus according to the embodiment will be described with reference to the flowchart of FIG.

先ず、ステップS11において、操作部110からの入力を待つ。何らかの入力がなされると、処理はステップS12に進み、静止画撮影モードであるか、動画撮影モードか、或いはそれ以外かを判定する。撮影モード以外の指示入力の場合には、ステップS13に進んで対応する処理を行う(例えば図5(a)に示すメニューによる各種設定処理)。   First, in step S11, an input from the operation unit 110 is awaited. If any input is made, the process proceeds to step S12 to determine whether the mode is the still image shooting mode, the moving image shooting mode, or the other mode. In the case of an instruction input other than the shooting mode, the process proceeds to step S13 to perform a corresponding process (for example, various setting processes using the menu shown in FIG. 5A).

また、ステップS12にて、静止画撮影モードが指示されたと判定した場合には、ステップS14にて撮像した静止画の格納先パーティションを探索する処理を行う。そして、ステップS15にて、格納先パーティションが探索に成功したか否か(格納すべき空き領域がない場合には、格納先パーティションの探索は失敗扱いになる)を判定する。格納先パーティションに探索できた場合には、ステップS16に進み、操作部110に設けられたシャッターボタン等の押下に応じて、静止画の撮像と撮像画像の符号化を行い、ステップS14にて探索したリムーバブルメディアのパーティション領域に静止画像ファイルとして格納する。なお、撮像の際、AF、AE処理等を行うが、それは本発明には直接には関係しないので、その説明については省略する。   If it is determined in step S12 that the still image shooting mode has been instructed, processing for searching for a storage destination partition of the still image captured in step S14 is performed. Then, in step S15, it is determined whether or not the storage destination partition has been successfully searched (if there is no free space to store, the search for the storage destination partition is treated as failure). If the storage partition can be searched, the process proceeds to step S16, and a still image is captured and the captured image is encoded in response to pressing of a shutter button or the like provided on the operation unit 110, and the search is performed in step S14. Stored as a still image file in the partition area of the removable media. Note that AF, AE processing, and the like are performed at the time of imaging, but since they are not directly related to the present invention, description thereof is omitted.

一方、動画撮影モードが選択された場合、ステップS17に進み、動画像の格納先パーティションを探索する。そして、ステップS18にて格納先パーティションの探索が成功したか否かを判定する。格納先パーティションの探索に成功した場合には、ステップS19に進み、操作部110に設けられた記録開始指示ボタンの押下に応じて、動画像の撮影と符号化処理、及び、決定されたリムーバブルメディアのパーティション領域に動画像のファイルとして蓄積を開始する。そして、ステップS20にて、録画終了を示す指示が入力されたと判定するまで動画像の撮像を継続する。なお、動画像を蓄積している最中に、該当するパーティション領域がフル状態になった場合にも、終了と判定する。   On the other hand, if the moving image shooting mode is selected, the process proceeds to step S17 to search for a moving image storage destination partition. In step S18, it is determined whether the search for the storage destination partition has succeeded. If the search for the storage destination partition is successful, the process proceeds to step S19, and moving image shooting and encoding processing and the determined removable media are performed in response to pressing of the recording start instruction button provided on the operation unit 110. Start storing video files in the partition area. Then, in step S20, moving image capturing is continued until it is determined that an instruction indicating the end of recording has been input. It should be noted that the end is also determined when the corresponding partition area becomes full while moving images are being accumulated.

次に、上記のステップS14における静止画データの格納先パーティションの格納先探索処理を図7のフローチャートに従って説明する。   Next, the storage location search processing of the still image data storage destination partition in step S14 will be described with reference to the flowchart of FIG.

先ず、ステップS21において、情報記憶部111から静止画を記録するパーティション領域の順序情報を読込む。ここで注意したい点は、電源投入時、或いは、リムーバブルメディアを装着してから、図5(c)の表示画面(ユーザインタフェース)にてパーティションの順位を変更していない限りは、クラスタサイズの小さい順に並んでいることである。   First, in step S21, the order information of the partition area in which the still image is recorded is read from the information storage unit 111. Note that the cluster size is small unless the partition order is changed on the display screen (user interface) shown in FIG. 5C when the power is turned on or a removable medium is mounted. They are in order.

次いで、ステップS22にて変数iに初期値として“1”を設定し、情報記憶部111に格納されている静止画格納先のパーティション順位の一番目を差すように設定する。   Next, in step S22, “1” is set as an initial value for the variable i, and the first partition order of the still image storage destination stored in the information storage unit 111 is set to be different.

そして、ステップS23にて注目しているi番目のパーティション領域に空き領域があるか否かを判定する。空き領域がない場合には、ステップS24に進んで、全パーティション(実施形態では3つの例であるので、変数iが“3”か否かで判定することになる)についてチェックしたか否かを判定する。この判定で否の場合には、ステップS25で変数iを“1”だけ増加し、ステップS23に戻る。また、全パーティションに空き領域がない場合には、エラー処理(撮影不可であることを示すメッセージの表示等)を行い、本処理のコール元に探索失敗を通知し、この処理を終える。   In step S23, it is determined whether or not there is a free area in the i-th partition area of interest. If there is no free space, the process proceeds to step S24 to check whether or not all partitions have been checked (since in the embodiment, there are three examples, it is determined whether the variable i is “3”). judge. If this determination is negative, the variable i is increased by “1” in step S25, and the process returns to step S23. If there is no free space in all partitions, error processing (displaying a message indicating that photography is not possible, etc.) is performed, a search failure is notified to the call source of this processing, and this processing ends.

また、i番目のパーティション領域に空き領域があると判定した場合には、ステップS23からステップS27に進み、i番目のパーティション領域を探索結果としてコール元に返し、本処理を終える。   If it is determined that there is a free area in the i-th partition area, the process proceeds from step S23 to step S27, the i-th partition area is returned to the caller as a search result, and the process ends.

次に、図6の上記のステップS17における動画像データの格納先パーティションの格納先探索処理を図8のフローチャートに従って説明する。   Next, the storage location search process for the storage location partition for moving image data in step S17 in FIG. 6 will be described with reference to the flowchart in FIG.

この処理は、図7とほぼ同じである。先ず、ステップS31において、情報記憶部111から動画像を記録するパーティション領域の順序情報を読込む。本装置に電源投入時、或いは、リムーバブルメディアを装着してから、パーティションの順位を変更していない限りは、クラスタサイズの大きい順に並んでいることになる。   This process is almost the same as in FIG. First, in step S31, the order information of the partition area in which the moving image is recorded is read from the information storage unit 111. As long as the order of the partitions is not changed when the power is turned on to the apparatus or after the removable media is mounted, the clusters are arranged in the descending order of the cluster size.

次いで、ステップS32にて変数iに初期値として“1”を設定し、情報記憶部111に格納されている動画像格納先のパーティション順位の一番目を差すように設定する。   Next, in step S32, “1” is set as an initial value for the variable i, and is set so that the first partition order of the moving image storage destination stored in the information storage unit 111 is added.

そして、ステップS33にて注目しているi番目のパーティション領域に空き領域があるか否かを判定する。空き領域がない場合には、ステップS34に進んで、全パーティション(実施形態では3つの例であるので、変数iが“3”か否かで判定することになる)についてチェックしたか否かを判定する。この判定で否の場合には、ステップS35で変数iを“1”だけ増加し、ステップS33に戻る。また、全パーティションに空き領域がない場合には、エラー処理(撮影不可であることを示すメッセージの表示等)を行い、本処理のコール元に探索失敗を通知し、この処理を終える。   In step S33, it is determined whether or not there is a free area in the i-th partition area of interest. If there is no free space, the process goes to step S34 to check whether all partitions (in the embodiment, there are three examples, so whether the variable i is “3” or not) are checked. judge. If this determination is negative, the variable i is increased by “1” in step S35, and the process returns to step S33. If there is no free space in all partitions, error processing (displaying a message indicating that photography is not possible, etc.) is performed, a search failure is notified to the call source of this processing, and this processing ends.

また、i番目のパーティション領域に空き領域があると判定した場合には、ステップS33からステップS37に進み、i番目のパーティション領域を探索結果としてコール元に返し、本処理を終える。   If it is determined that there is a free area in the i-th partition area, the process proceeds from step S33 to step S37, the i-th partition area is returned to the caller as a search result, and the process ends.

以上説明したように、本実施形態によれば、撮像して得た動画像のファイル数は少ない傾向がある点、並びに、ファイルサイズが大きく、アクセス速度が要求される点に鑑みて、クラスタサイズの大きいパーティション領域に格納することで、メモリ使用効率上も問題とはなりにくく、且つ、静止画の格納領域を専有しにくくすることが可能になる。   As described above, according to the present embodiment, in view of the fact that the number of moving image files obtained by imaging tends to be small and that the file size is large and access speed is required, the cluster size By storing in a large partition area, it is difficult to cause a problem in terms of memory use efficiency, and it becomes possible to make it difficult to occupy a still image storage area.

一方、静止画の場合、個々のファイルサイズは動画像ファイルサイズよりも遥かに小さいものの、記録するファイル数が多くなる傾向にあることに鑑み、クラスタサイズの小さいパーティションを優先して格納することで、記憶媒体のメモリ使用効率を向上させることができるようになる。   On the other hand, in the case of still images, although the individual file size is much smaller than the moving image file size, in consideration of the tendency to increase the number of files to be recorded, partition with a small cluster size is preferentially stored. Thus, the memory usage efficiency of the storage medium can be improved.

なお、実施形態では、記憶媒体を特に特定しなかったが、ランダムアクセス可能で着脱自在な記憶媒体であればその種類を問わない。例えば半導体メモリカードでも良いし、スピンドル系の記憶媒体でも構わない。   In the embodiment, the storage medium is not particularly specified, but the type is not limited as long as it is a randomly accessible and removable storage medium. For example, a semiconductor memory card or a spindle storage medium may be used.

また、実施形態では、記憶媒体に設けるパーティションのファイルシステムとしてFAT16を例にして説明したが、これに限らず、他のファイルシステムでも良いし、異なるファイルシステムを混在させるようにしても構わない。要は、静止画の場合にはクラスタサイズの小さいファイルシステムを優先し、動画像はそれとは反対の性質のファイルシステムを優先するようにすればよい。   In the embodiment, the FAT 16 is described as an example of the partition file system provided in the storage medium. However, the present invention is not limited to this, and other file systems may be used, or different file systems may be mixed. In short, in the case of a still image, a file system with a small cluster size may be given priority, and for a moving image, a file system having the opposite property may be given priority.

なお、1つの記憶媒体のメモリ領域を複数のパーティション領域に分割することで、副次的に、ファイルシステムのアクセス可能な最大サイズを越える容量を有する記憶媒体の利用が可能になるという作用効果を奏することに成功する。例えば、FAT16はその規格上、最大2GBを上限としている。従って、2GBを越えるメモリ容量を有する記憶媒体の場合、FAT16で1つのパーティションを設定してしまうと、残りのメモリ空間は未使用領域となってしまう。かかる点、複数のパーティション領域を設定することで、大容量の記憶媒体を利用することが可能となる。   In addition, by dividing the memory area of one storage medium into a plurality of partition areas, it is possible to use a storage medium having a capacity exceeding the maximum accessible size of the file system as a secondary function. Succeed in playing. For example, FAT16 has a maximum of 2 GB due to its standard. Therefore, in the case of a storage medium having a memory capacity exceeding 2 GB, if one partition is set with FAT16, the remaining memory space becomes an unused area. In this respect, a large-capacity storage medium can be used by setting a plurality of partition areas.

実施形態における撮像装置のブロック構成図である。It is a block block diagram of the imaging device in an embodiment. 実施形態における撮像装置におけるシステムコントローラのリムーバブルメディアに対するアクセス処理を模式的に示す図である。It is a figure which shows typically the access process with respect to the removable medium of the system controller in the imaging device in embodiment. 装置電源ON時、或いは、リムーバブルメディアの装着の処理内容を示すフローチャートである。10 is a flowchart showing the processing contents when a device is turned on or a removable medium is mounted. 実施形態における情報記憶部の記憶内容の例を示す図である。It is a figure which shows the example of the memory content of the information storage part in embodiment. 実施形態におけるパーティション格納順を設定するためのGUIに到達するまでの推移を示す図である。It is a figure which shows transition until it arrives at GUI for setting the partition storage order in embodiment. 実施形態における撮像装置の全体処理を示すフローチャートである。It is a flowchart which shows the whole process of the imaging device in embodiment. 図6のステップS14の詳細を示すフローチャートである。It is a flowchart which shows the detail of step S14 of FIG. 図6のステップS17の詳細を示すフローチャートである。It is a flowchart which shows the detail of step S17 of FIG.

Claims (4)

着脱自在でランダムアクセス可能な記憶媒体に、静止画像、動画像それぞれをファイルとして記録する画像記録装置であって、
装着した記憶媒体に設定された複数のパーティション領域を識別し、各パーティション領域のデータ格納単位であるクラスタサイズを検出する検出手段と、
静止画像を前記記憶媒体にファイルとして保存する場合には、クラスタサイズの小さいパーティション領域から優先して格納する静止画格納制御手段と、
動画像を前記記憶媒体にファイルとして保存する場合には、クラスタサイズの大きなパーティション領域から優先して格納する動画像格納制御手段と
を備えることを特徴とする画像記録装置。
An image recording device for recording still images and moving images as files on a removable and randomly accessible storage medium,
Detecting means for identifying a plurality of partition areas set in the mounted storage medium and detecting a cluster size which is a data storage unit of each partition area;
When storing a still image as a file in the storage medium, still image storage control means for preferentially storing from a partition area having a small cluster size;
An image recording apparatus comprising: a moving image storage control unit that preferentially stores a moving image as a file in the storage medium, and stores the moving image with priority from a partition area having a large cluster size.
更に、前記記憶媒体に格納するための動画像、静止画像を撮像する撮像手段を備えることを特徴とする請求項1に記載の画像記録装置。   The image recording apparatus according to claim 1, further comprising an imaging unit that captures a moving image and a still image to be stored in the storage medium. 前記検出手段は、装置の電源がONした初期段階、及び、記憶媒体が脱着した場合に実行することを特徴とする請求項1又は2に記載の画像記録装置。   The image recording apparatus according to claim 1, wherein the detection unit is executed at an initial stage when the power of the apparatus is turned on and when a storage medium is detached. 着脱自在でランダムアクセス可能な記憶媒体に、静止画像、動画像それぞれをファイルとして記録する画像記録装置の制御方法であって、
装着した記憶媒体に設定された複数のパーティション領域を識別し、各パーティション領域のデータ格納単位であるクラスタサイズを検出する検出工程と、
静止画像を前記記憶媒体にファイルとして保存する場合には、クラスタサイズの小さいパーティション領域から優先して格納する静止画格納制御工程と、
動画像を前記記憶媒体にファイルとして保存する場合には、クラスタサイズの大きなパーティション領域から優先して格納する動画像格納制御工程と
を備えることを特徴とする画像記録装置の制御方法。
A control method of an image recording apparatus for recording still images and moving images as files on a removable and randomly accessible storage medium,
A detection step of identifying a plurality of partition areas set in the mounted storage medium and detecting a cluster size which is a data storage unit of each partition area;
When storing a still image as a file in the storage medium, a still image storage control step for preferentially storing a partition area having a small cluster size;
A method for controlling an image recording apparatus, comprising: a moving image storage control step for preferentially storing a moving image as a file in the storage medium, wherein the moving image is stored in priority from a partition area having a large cluster size.
JP2004174597A 2004-05-18 2004-06-11 Image recording device and control method thereof Pending JP2005352899A (en)

Priority Applications (3)

Application Number Priority Date Filing Date Title
JP2004174597A JP2005352899A (en) 2004-06-11 2004-06-11 Image recording device and control method thereof
US11/130,116 US7683942B2 (en) 2004-05-18 2005-05-17 Information recording apparatus and control method thereof
US12/698,110 US7932933B2 (en) 2004-05-18 2010-02-01 Information recording apparatus and control method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2004174597A JP2005352899A (en) 2004-06-11 2004-06-11 Image recording device and control method thereof

Publications (2)

Publication Number Publication Date
JP2005352899A true JP2005352899A (en) 2005-12-22
JP2005352899A5 JP2005352899A5 (en) 2007-07-26

Family

ID=35587322

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2004174597A Pending JP2005352899A (en) 2004-05-18 2004-06-11 Image recording device and control method thereof

Country Status (1)

Country Link
JP (1) JP2005352899A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009116954A (en) * 2007-11-06 2009-05-28 Canon Inc Recording device and recording method
US7626841B2 (en) 2007-03-19 2009-12-01 Kabushiki Kaisha Toshiba Content data storage device and its control method
JP2011141709A (en) * 2010-01-07 2011-07-21 Sanyo Electric Co Ltd Access control apparatus
JP2015029228A (en) * 2013-07-30 2015-02-12 キヤノン株式会社 Recording apparatus and control method therefor

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH01184763A (en) * 1988-01-20 1989-07-24 Hitachi Ltd Data storage system in file system
JPH05204725A (en) * 1992-01-28 1993-08-13 Casio Comput Co Ltd File managing device
JPH0744429A (en) * 1993-07-26 1995-02-14 Dainippon Screen Mfg Co Ltd Picture processing unit
JPH0887433A (en) * 1994-09-20 1996-04-02 Matsushita Electric Ind Co Ltd Block management system of file system
JPH08101783A (en) * 1994-09-30 1996-04-16 Kubota Corp File system
JPH10283230A (en) * 1997-03-31 1998-10-23 Nec Corp File data storage device and machine-readable recording medium with program recorded
JP2001265628A (en) * 2000-03-21 2001-09-28 Sanyo Electric Co Ltd File recording management system
JP2002132546A (en) * 2000-10-24 2002-05-10 Xaxon R & D Corp Storage device
JP2003296156A (en) * 2002-04-04 2003-10-17 Sony Corp Information recording management device, data recording and regenerating device, information recording management method and file management method
JP2004013276A (en) * 2002-06-04 2004-01-15 Victor Co Of Japan Ltd Filesystem and recording medium
JP2004080461A (en) * 2002-08-20 2004-03-11 Sanyo Electric Co Ltd Recording medium management apparatus and digital camera using the same

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH01184763A (en) * 1988-01-20 1989-07-24 Hitachi Ltd Data storage system in file system
JPH05204725A (en) * 1992-01-28 1993-08-13 Casio Comput Co Ltd File managing device
JPH0744429A (en) * 1993-07-26 1995-02-14 Dainippon Screen Mfg Co Ltd Picture processing unit
JPH0887433A (en) * 1994-09-20 1996-04-02 Matsushita Electric Ind Co Ltd Block management system of file system
JPH08101783A (en) * 1994-09-30 1996-04-16 Kubota Corp File system
JPH10283230A (en) * 1997-03-31 1998-10-23 Nec Corp File data storage device and machine-readable recording medium with program recorded
JP2001265628A (en) * 2000-03-21 2001-09-28 Sanyo Electric Co Ltd File recording management system
JP2002132546A (en) * 2000-10-24 2002-05-10 Xaxon R & D Corp Storage device
JP2003296156A (en) * 2002-04-04 2003-10-17 Sony Corp Information recording management device, data recording and regenerating device, information recording management method and file management method
JP2004013276A (en) * 2002-06-04 2004-01-15 Victor Co Of Japan Ltd Filesystem and recording medium
JP2004080461A (en) * 2002-08-20 2004-03-11 Sanyo Electric Co Ltd Recording medium management apparatus and digital camera using the same

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7626841B2 (en) 2007-03-19 2009-12-01 Kabushiki Kaisha Toshiba Content data storage device and its control method
JP2009116954A (en) * 2007-11-06 2009-05-28 Canon Inc Recording device and recording method
JP2011141709A (en) * 2010-01-07 2011-07-21 Sanyo Electric Co Ltd Access control apparatus
JP2015029228A (en) * 2013-07-30 2015-02-12 キヤノン株式会社 Recording apparatus and control method therefor

Similar Documents

Publication Publication Date Title
US7598988B2 (en) Systems and methods for data recording
KR100705303B1 (en) Recording and reproducing apparatus and recording medium
US7936380B2 (en) Imaging apparatus having groups with designated representative images
US7683942B2 (en) Information recording apparatus and control method thereof
US20030117505A1 (en) Intermediate memory for a digital camera
US20090217204A1 (en) Display control apparatus, display control method and program
JP5634057B2 (en) Recording apparatus and recording method
US8660400B2 (en) Imaging apparatus and method of starting the same
US20070058947A1 (en) Recording apparatus and recording medium managing method
US8077221B2 (en) Image capturing apparatus and control method therefor with determination whether storage medium is limited-rewriteable storage medium
JP4653019B2 (en) Display control device
US9786317B2 (en) Recording apparatus and method of controlling recording apparatus
US20060245751A1 (en) Camera having functions of copying and moving images by one single operation
JP2005352899A (en) Image recording device and control method thereof
US20060152602A1 (en) Recording and reproducing apparatus
JP2006211022A (en) Electronic camera
JP2006109062A (en) Image processor, method for controlling image processor and storage medium
JP2007104292A (en) Photographing device, file management method, and file management program
JP5950798B2 (en) Recording apparatus and control method thereof
JP2003224809A (en) Data recording apparatus
JP6504927B2 (en) Recording apparatus and control method of recording apparatus
JP4830044B2 (en) Display control device
JP2005086763A (en) Image display control apparatus, digital camera and image display control program
JP2000293975A (en) Copying device and method and program storage medium
JP2012019373A (en) Recording apparatus and method

Legal Events

Date Code Title Description
A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20070611

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20070611

RD03 Notification of appointment of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7423

Effective date: 20070611

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20100215

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20100222

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20100423

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20100705

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20101101