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
JP4865207B2 - Image recording / playback device - Google Patents
[go: Go Back, main page]

JP4865207B2 - Image recording / playback device - Google Patents

Image recording / playback device Download PDF

Info

Publication number
JP4865207B2
JP4865207B2 JP2004320640A JP2004320640A JP4865207B2 JP 4865207 B2 JP4865207 B2 JP 4865207B2 JP 2004320640 A JP2004320640 A JP 2004320640A JP 2004320640 A JP2004320640 A JP 2004320640A JP 4865207 B2 JP4865207 B2 JP 4865207B2
Authority
JP
Japan
Prior art keywords
recording medium
erasure
data file
image
recording
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
JP2004320640A
Other languages
Japanese (ja)
Other versions
JP2006135504A (en
JP2006135504A5 (en
Inventor
秀一 細川
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Canon Inc
Original Assignee
Canon Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Canon Inc filed Critical Canon Inc
Priority to JP2004320640A priority Critical patent/JP4865207B2/en
Publication of JP2006135504A publication Critical patent/JP2006135504A/en
Publication of JP2006135504A5 publication Critical patent/JP2006135504A5/ja
Application granted granted Critical
Publication of JP4865207B2 publication Critical patent/JP4865207B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Signal Processing For Digital Recording And Reproducing (AREA)
  • Management Or Editing Of Information On Record Carriers (AREA)

Description

本発明は、動画像や静止画像等をデータファイル化して適宜複数のブロックに分割して記録媒体に記録するビデオカメラ等の画像記録再生装置に関し、特に記録時のデータ転送レート向上を目的とした記録媒体制御に関する技術である。   The present invention relates to an image recording / reproducing apparatus such as a video camera that records a moving image, a still image, or the like as a data file and appropriately divides it into a plurality of blocks and records it on a recording medium. This is a technique related to recording medium control.

従来から磁気ディスク、光磁気ディスク、光ディスクまたは半導体メモリカード等に、動画像や音声等の情報をデータファイルとして記録する記録再生装置が各種提案されている。このような装置において、各種ディスクやメモリカードといったリライタブルでランダムアクセス可能な記録媒体を用いて記録と消去を何度も繰り返すうちに、記録媒体への転送レートが低下する現象が発生していた。   Conventionally, various recording / reproducing apparatuses for recording information such as moving images and sounds as data files on a magnetic disk, a magneto-optical disk, an optical disk, or a semiconductor memory card have been proposed. In such an apparatus, a phenomenon occurs in which the transfer rate to the recording medium decreases while recording and erasing are repeated many times using a rewritable and randomly accessible recording medium such as various disks and memory cards.

この現象は、記録媒体に記録されたデータファイルが消去されることにより、データが消去された空きスペースと、消去されずに残っている有効なデータとが、それぞれ分散することに起因するものである。分散される程度が記録と消去の回数に応じて増長した結果、記録媒体上に連続的に記録可能な広い(長い)スペースが少なくなり、故に新たなデータファイルの記録を行う場合には離散化された空きスペースに断片的に記録することになり、その結果、記録媒体上でのシーク等の動作が忙しく複雑になるため発生する現象と考えられる。   This phenomenon is caused by the fact that the empty space from which the data has been erased and the valid data remaining without being erased are dispersed by erasing the data file recorded on the recording medium. is there. As a result of increasing the degree of dispersion according to the number of times of recording and erasing, there is less wide (long) space that can be continuously recorded on the recording medium, and therefore discretization when recording a new data file. This is considered to be a phenomenon that occurs because the operations such as seek on the recording medium become busy and complicated as a result of recording in pieces in the free space.

この問題を解消する為、従来の装置では様々なタイミングで記録媒体上のデータの再配置を行うなどして、連続的な記録スペースを確保するようにしていた(例えば、特許文献1参照。)。
特開2001−8165号公報
In order to solve this problem, the conventional apparatus secures a continuous recording space by rearranging data on the recording medium at various timings (see, for example, Patent Document 1). .
JP 2001-8165 A

しかしながら、記録媒体の記録容量が巨大化している今日においては、上記従来技術のようにデータの再配置を行う方法では、再配置処理に多大な時間を要する可能性があり、その場合にユーザへのレスポンスの悪化を招く恐れがあった。   However, in the present day when the recording capacity of the recording medium has become enormous, the method of rearranging data as in the above prior art may require a lot of time for the rearrangement process, in which case to the user There was a risk of worsening the response.

本発明は上記の如き問題点を鑑みてなされたものであり、従来技術とは異なる方法により、各種ディスクやメモリカード等の記録媒体に対して記録と消去を繰り返した場合でも記録媒体への転送レートが低下することを回避または低減させられる画像記録再生装置を提供することを目的とする。   The present invention has been made in view of the above-described problems, and is transferred to a recording medium even when recording and erasing are repeatedly performed on the recording medium such as various disks and memory cards by a method different from the conventional technique. An object of the present invention is to provide an image recording / reproducing apparatus capable of avoiding or reducing a decrease in rate.

本発明に係る画像記録再生装置は、画像のデータファイルをブロック単位に分割して記録媒体に記録する画像記録再生装置において、前記記録媒体に記録されたデータファイルの全消去を指示するための消去指示手段と、前記消去指示手段から前記全消去の指示を受けつけた場合に、消去禁止設定が施されたデータファイルが前記記録媒体上に存在するか否かを判断する第1の判断手段と、前記第1の判断手段によって前記消去禁止設定が施されたデータファイルが存在すると判断された場合には、前記消去禁止設定が施されたデータファイル以外の前記記録媒体に記録された各データファイルを消去し、前記第1の判断手段によって前記消去禁止設定が施されたデータファイルが存在しないと判断された場合には、前記記録媒体上の前記画像のデータファイルを記録するための全領域が未使用可能領域となるように前記記録媒体の初期化を行う消去制御手段とを備え、前記消去制御手段は、前記記録媒体の初期化を行う場合には、前記記録媒体の論理アドレスの初期化を行うことを特徴とする。 An image recording / reproducing apparatus according to the present invention is an image recording / reproducing apparatus that divides an image data file into block units and records the data file on a recording medium. An instruction means; and a first determination means for determining whether or not a data file for which erasure prohibition has been set exists on the recording medium when the instruction to erase all is received from the erasure instruction means; If it is determined by the first determination means that there is a data file for which the erasure prohibition setting has been performed, each data file recorded on the recording medium other than the data file for which the erasure prohibition setting has been performed is stored. erased, when the first data file the erasure prohibition setting has been performed by the determining means determines that there is no, the image on the recording medium And a deletion control means for the entire region for recording performs initialization of the recording medium so that an unused area of the data file, the erase control means, when performing initialization of the recording medium Performs initialization of the logical address of the recording medium .

本発明によれば、記録媒体に記録済みの画像ファイルに対する全消去指に応じて、記録媒体の初期化を行うことにより、記録領域の離散化の進行を未然に防止し、転送レートが低下することを回避または低減できる。
According to the present invention, depending on the total consumption Sayubi shown for recorded image file to the recording medium, by a row Ukoto the initialization of the recording medium, to prevent the progression of discretization of the recording area in advance, the transfer A decrease in rate can be avoided or reduced.

以下、図面を参照しながら本発明の好適な実施の形態について説明する。   Hereinafter, preferred embodiments of the present invention will be described with reference to the drawings.

(第1の実施形態)
図1は記録媒体に記録された画像ファイルの全消去処理に関して説明する為の図であり、データの記録と再生が繰り返された記録媒体の状態を表わした図(A)と、この記録媒体に対して、従来の方法を用いて全消去処理を実行したときの記録媒体の状態を表わした図(B)と、本発明の制御方法を用いて全消去処理を実行したときの記録媒体の状態を表わした図(C)とを、それぞれ示したものである。
(First embodiment)
FIG. 1 is a diagram for explaining all erasure processing of an image file recorded on a recording medium. FIG. 1A shows a state of the recording medium in which data recording and reproduction are repeated, and FIG. On the other hand, a diagram (B) showing the state of the recording medium when the all erasing process is executed using the conventional method, and the state of the recording medium when the all erasing process is executed using the control method of the present invention. The figure (C) showing is respectively shown.

図1−(A)では、まず記録媒体の初期状態(初期時(1))から、画像ファイルの追記を行って追記後(2)の状態となり、次に所望の画像ファイルの消去を行って消去後(3)の状態となり、さらに新たな画像ファイルの追記を最終書き込み位置(破線矢印)から行って追記後(4)の状態となったことを表わしている。また、最終書き込み位置は図中の上から下へサイクリックに空き領域中を移動している。   In FIG. 1- (A), from the initial state of the recording medium (initial time (1)), an additional image file is added to the state after additional recording (2), and then the desired image file is deleted. This indicates that the state after (3) after erasure and the additional writing of a new image file has been performed from the final writing position (broken arrow) to the state after (4) additional recording. The final writing position is cyclically moved in the empty area from the top to the bottom in the figure.

このような追記後(4)の状態となった記録媒体に対して、図1−(B)では、従来の全消去処理を行って、全消去後(5)の状態になり、その後新たな画像ファイルの追記を最終書き込み位置から行って、追記後(6)の状態となったことを表わしている。従来の全消去処理では論理アドレスを初期化せず、記録媒体上のブロックの使用頻度(書き込み回数)の情報を引き継ぐので、全消去処理後の最終書き込み位置は全消去後(5)の位置となり、そこから、他のブロックより書き込み回数が多くなったブロックは避けて追記が行われ、追記後(6)の如き状態となっている。すなわち、従来の全消去処理後には、書き込み回数が少ないブロックが優先的に使用されるので、次第に記録領域が離散化し、その結果レスポンスの悪化を招く恐れがある。   In FIG. 1- (B), the conventional all erasing process is performed on the recording medium that has been in the state (4) after such additional recording, and the state becomes (5) after all erasing, and then a new state is created. This indicates that the image file is additionally written from the final writing position and the state after (6) has been reached. In the conventional all erasing process, the logical address is not initialized and the information on the use frequency (number of times of writing) of the block on the recording medium is taken over. Therefore, the final writing position after the all erasing process is the position after the all erasing (5). From there, additional writing is performed avoiding blocks where the number of times of writing is higher than other blocks, and the state is as shown in (6) after additional writing. That is, after the conventional all erasure process, blocks with a small number of write operations are preferentially used, so that the recording area gradually becomes discrete, and as a result, the response may be deteriorated.

一方、上記追記後(4)の状態となった記録媒体に対して、図1−(C)では、本発明による全消去処理を行って、全消去後(7)の状態になり、その後新たな画像ファイルの追記を最終書き込み位置から行って、追記後(8)の状態となったことを表わしている。本発明による全消去処理では論理アドレスを初期化し、記録媒体上のブロックの使用頻度(書き込み回数)の情報を引き継がないので、全消去処理後の最終書き込み位置は全消去後(7)の位置となり、そこから、連続して追記が行われ、追記後(8)の如き状態となっている。すなわち、本発明による全消去処理後には、記録媒体の連続的なブロックを使用できるため、記録領域の離散化は起こらず、良好なレスポンスを維持できる。   On the other hand, in FIG. 1- (C), the entire erasing process according to the present invention is performed on the recording medium that has been in the state (4) after the additional recording, and the state becomes (7) after the entire erasing. This shows that the additional writing of the image file is performed from the final writing position and the state after the additional writing is (8). In the all erasing process according to the present invention, the logical address is initialized and the information on the use frequency (number of times of writing) of the block on the recording medium is not carried over, so the final writing position after the all erasing process is the position after the all erasing (7). From there, additional writing is performed continuously, and the state is as shown in (8) after the additional writing. That is, after the entire erasing process according to the present invention, since a continuous block of the recording medium can be used, the recording area is not discretized and a good response can be maintained.

図2は、図1−(C)を用いて説明したような全消去処理を実行可能な画像記録再生装置の例として、デジタルビデオカメラの構成を示したブロック図である。   FIG. 2 is a block diagram showing a configuration of a digital video camera as an example of an image recording / reproducing apparatus capable of executing the all erasing process as described with reference to FIG.

図2において200は記録再生部、201はビデオカメラ部である。なお、記録再生部200をビデオカメラ部201と一体的に構成することにより、全体システムをビデオカムコーダとしても良い。   In FIG. 2, reference numeral 200 denotes a recording / playback unit, and 201 denotes a video camera unit. Note that the entire system may be a video camcorder by integrally configuring the recording / reproducing unit 200 with the video camera unit 201.

また、202は画像データ(動画データ及び/又は静止画データ)の圧縮伸長部、203は画像データを一時的に保存する為の画像メモリ、204は記録媒体205とのインターフェース(I/F)、205は圧縮された画像データを記録再生可能な記録媒体であり、本実施形態ではハードディスクとして説明する。206は各部の動作を制御し、所定の制御プログラム等を実行するマイコン、207は前記制御プログラムが格納され、プログラムを実行する際に用いられるプログラムメモリ、208はユーザが各種指示入力を行う為の操作キー、209は撮影画像、再生画像、キャラクタやメニュー等の表示が可能な液晶等のディスプレイ、210はディスプレイ209に出力する表示画像を、撮影画像と再生画像とで切り替えるスイッチ、211は表示画像信号とキャラクタ信号等を合成する加算回路、212は上記キャラクタ信号やメニュー画面を生成するキャラクタジェネレータ、213は制御バス及びデータバスである。なお、202〜213の各部は記録再生部200内の構成である。   202 is a compression / decompression unit for image data (moving image data and / or still image data), 203 is an image memory for temporarily storing image data, 204 is an interface (I / F) with a recording medium 205, Reference numeral 205 denotes a recording medium capable of recording and reproducing compressed image data. In the present embodiment, the recording medium will be described as a hard disk. 206 is a microcomputer that controls the operation of each unit and executes a predetermined control program, 207 is a program memory in which the control program is stored and used to execute the program, and 208 is for a user to input various instructions. Operation keys, 209 is a captured image, a reproduced image, a display such as a liquid crystal display capable of displaying characters and menus, 210 is a switch for switching a display image to be output to the display 209 between the captured image and the reproduced image, and 211 is a displayed image An adder circuit that synthesizes a signal and a character signal, 212 is a character generator that generates the character signal and menu screen, and 213 is a control bus and a data bus. In addition, each part of 202-213 is the structure in the recording / reproducing part 200. FIG.

図2において、まず記録動作について説明する。ビデオカメラ部201にて被写体を撮影して得た画像信号は、スイッチ210を通って加算回路211へ入力されるとともに、圧縮伸長部202へ入力される。加算回路211に送られた撮影画像信号は、キャラクタジェネレータ212で必要に応じて生成されたキャラクタ信号と合成された上で、ディスプレイ209で表示される。   In FIG. 2, the recording operation will be described first. An image signal obtained by photographing the subject with the video camera unit 201 is input to the addition circuit 211 through the switch 210 and also to the compression / decompression unit 202. The captured image signal sent to the adding circuit 211 is combined with the character signal generated as necessary by the character generator 212 and then displayed on the display 209.

圧縮伸長部202は、マイコン206から指示された圧縮率とタイミングに従って、撮影画像信号を画像メモリ203を用いて圧縮する。圧縮伸長部202で圧縮された圧縮画像データは、インターフェース204を介して記録媒体(ハードディスク)205上にファイル化されて記録される。記録媒体205への記録は、図示しないファイルシステムを経由して書き込みを行うが、この際、ファイルシステムは論理アドレスをベースに書き込み位置を決める。ファイルシステムの使う論理アドレスは、記録媒体205の物理アドレスと一致していても良いが、不良セクタや媒体の均一利用を考慮し、論理アドレスと物理アドレスが一致しないのが一般的である。ファイルシステムを経由して記録媒体205に画像ファイルを書き込むときに行う、物理アドレスと論理アドレスを、変換テーブルを用いて変換して記録媒体上に書き込むイメージ図を図3に示す。なお、物理アドレスと論理アドレスの変換テーブルは、本実施形態では記録媒体205上に配置されており、記録媒体205への書き込み及び読み出しは、この変換テーブルを用いる。   The compression / decompression unit 202 compresses the captured image signal using the image memory 203 in accordance with the compression rate and timing instructed from the microcomputer 206. The compressed image data compressed by the compression / decompression unit 202 is recorded as a file on a recording medium (hard disk) 205 via the interface 204. Recording on the recording medium 205 is performed via a file system (not shown). At this time, the file system determines a writing position based on a logical address. The logical address used by the file system may coincide with the physical address of the recording medium 205, but in general, the logical address does not coincide with the physical address in consideration of uniform use of defective sectors and the medium. FIG. 3 shows an image diagram in which a physical address and a logical address are converted using a conversion table and written on the recording medium when writing the image file to the recording medium 205 via the file system. Note that the physical address / logical address conversion table is arranged on the recording medium 205 in this embodiment, and this conversion table is used for writing to and reading from the recording medium 205.

次に、記録画像の再生動作について説明する。記録媒体(ハードディスク)205から記録された圧縮画像データが読み出されてインターフェース204を介して圧縮伸長部202へと入力される。圧縮伸長部202は画像メモリ203を用いて圧縮画像データの伸長を行い、伸長された再生画像信号はスイッチ210を通ってディスプレイ209に表示される。   Next, a recorded image reproduction operation will be described. The compressed image data recorded from the recording medium (hard disk) 205 is read out and input to the compression / decompression unit 202 via the interface 204. The compression / decompression unit 202 decompresses the compressed image data using the image memory 203, and the decompressed reproduced image signal is displayed on the display 209 through the switch 210.

マイコン206は、このような記録または再生動作を制御するとともに、キャラクタ生成を行うキャラクタジェネレータ212に必要なキャラクタの生成を行わせる。また、マイコン206は、操作キー208から入力されたユーザの指示に基づいて、記録媒体205に記録された任意の画像ファイルの消去禁止設定を行ったり、画像ファイルの選択的消去や画像ファイルの全消去といった処理を制御したりする。マイコン206が制御する記録媒体205に対する画像ファイルの全消去処理とは、図1−(C)で既に説明した如き内容である。なお、消去禁止設定が施された、すなわち保護状態の画像ファイルについては、操作キー208から当該画像ファイルの選択消去または全消去の指示を受けても、記録媒体205上から当該画像ファイルの消去を行わない。逆にいうと、全消去が指示された際には、消去禁止設定された画像ファイルのみを残し、消去禁止設定されていない画像ファイル全てを対象に全消去処理を行うことになる。   The microcomputer 206 controls the recording or reproducing operation as described above and causes the character generator 212 that performs character generation to generate a necessary character. In addition, the microcomputer 206 performs an erasure prohibition setting for an arbitrary image file recorded on the recording medium 205 based on a user instruction input from the operation key 208, or selectively deletes an image file or all image files. Control processing such as erasure. The image file all erasing process for the recording medium 205 controlled by the microcomputer 206 is as described above with reference to FIG. For an image file for which deletion prohibition is set, that is, a protected image file, even if an instruction to select or delete the image file is received from the operation key 208, the image file is deleted from the recording medium 205. Not performed. In other words, when all erasure is instructed, only the image file set for erasure prohibition is left, and all erasure processing is performed for all the image files not set for erasure prohibition.

続いて、図4に、操作キー208から記録媒体205に記録済みの画像ファイルの全消去を指示されたときの、本発明の画像記録再生装置の処理シーケンスをフローチャートで示す。なお、図4のフローチャートは、プログラムメモリ204に格納された所定の制御プログラムに基づくものであり、マイコン206によって実行される制御手順を図示化したものである。   Next, FIG. 4 is a flowchart showing a processing sequence of the image recording / reproducing apparatus of the present invention when an instruction to erase all of the image files recorded on the recording medium 205 is given from the operation key 208. The flowchart in FIG. 4 is based on a predetermined control program stored in the program memory 204, and illustrates a control procedure executed by the microcomputer 206.

図4において、画像ファイルの全消去指示があって、全画像ファイルの消去処理を開始する(ステップS400)。次に、記録媒体205中に消去禁止設定されている画像ファイルが一つ以上あるか否か判断し(ステップS401)、一つ以上の消去禁止設定された画像ファイルがあればステップS402へと進み、消去禁止設定されている画像ファイルが無ければステップS406へと進む。   In FIG. 4, when there is an instruction to delete all image files, the erasing process of all image files is started (step S400). Next, it is determined whether or not there is one or more image files set for erasure prohibition in the recording medium 205 (step S401), and if there are one or more image files set for erasure prohibition, the process proceeds to step S402. If there is no image file for which deletion prohibition is set, the process proceeds to step S406.

ステップS401において、記録媒体205中に消去禁止設定されている画像ファイルが一つ以上ある場合は、記録媒体205上のある画像ファイルに対し、それが消去禁止設定された画像ファイルであるか否かを判断し(ステップS402)、消去禁止設定された画像ファイルであればステップS405に進み(このときは消去処理は行われず、当該画像ファイルが保存されている領域はそのまま残される)、消去禁止設定された画像ファイルでなければステップS403に進む。消去禁止設定された画像ファイルでないときは、当該画像ファイルを保存する領域を未使用領域化し(ステップS403)、さらに、当該画像ファイル保存領域へのファイルシステム上の接続パスを削除して(ステップS404)、ステップS405へ進む。続いて、次に消去処理すべき画像ファイルがあるか否か判断し(ステップS405)、ある場合はステップS402から次の画像ファイルについて同様に繰り返し、無い場合は全消去処理が終了となる(ステップS409)。これにより、記録媒体205中に消去禁止設定されている画像ファイルが一つ以上ある場合は、ステップS402からS405間の処理を各画像ファイルに対して繰り返し行って、全画像分を作業した結果、消去禁止設定がされていない画像ファイルのみの全消去処理が完了することになる。   In step S401, if there is one or more image files on the recording medium 205 that are set to be erase-prohibited, whether or not the image file on the recording medium 205 is an image file that is set to be erase-prohibited. (Step S402), if the image file is set to be erase-prohibited, the process proceeds to Step S405 (in this case, the erasure process is not performed and the area where the image file is stored is left as it is), and the erasure prohibition setting is set. If it is not the processed image file, the process proceeds to step S403. If the image file is not set to be erase-prohibited, the area for storing the image file is changed to an unused area (step S403), and the connection path on the file system to the image file storage area is deleted (step S404). ), The process proceeds to step S405. Subsequently, it is determined whether there is an image file to be erased next (step S405). If there is, the same image file is repeated from step S402, and if there is no image file, the entire erase process is terminated (step S405). S409). As a result, when there is one or more image files that are set to be erase-prohibited in the recording medium 205, the process between steps S402 to S405 is repeated for each image file, and all the images are processed. All erasure processing is completed only for image files that are not set to be erasable.

一方、ステップS401において消去禁止設定されている画像ファイルが無い場合は、記録媒体205上の全領域を未使用領域化し(ステップS406)、物理アドレス・論理アドレス変換テーブルを、論理アドレスの先頭アドレスと物理アドレスの先頭アドレスが一致し、記録媒体205内の全アクセス単位への書き込み回数が均等であるように初期化する(ステップS407)。なお、この変換テーブルの初期化の際、記録媒体205の不良セクタ等を考慮にいれ、論理アドレスは、物理アドレスの一部をスキップするようにアドレッシングしても良い。その後、記録媒体205上にファイルシステムを再構築して(ステップS408)、全消去処理が終了となる(ステップS409)。これにより、記録媒体205中に消去禁止設定されている画像ファイルが無い場合の全消去処理が完了することになる。   On the other hand, if there is no image file for which erasure prohibition is set in step S401, all areas on the recording medium 205 are converted to unused areas (step S406), and the physical address / logical address conversion table is set to the start address of the logical address. Initialization is performed so that the top addresses of the physical addresses match and the number of times of writing to all access units in the recording medium 205 is equal (step S407). When initializing the conversion table, the logical address may be addressed so as to skip a part of the physical address in consideration of a defective sector of the recording medium 205 or the like. Thereafter, the file system is reconstructed on the recording medium 205 (step S408), and the all erasure process is completed (step S409). As a result, the entire erasure process is completed when there is no image file that is erasure-prohibited in the recording medium 205.

以上の手順を踏むことにより、画像記録再生装置において記録媒体205の全消去処理が実行でき、さらには記録媒体205中に消去禁止設定されている画像ファイルが有るか否かに応じた適切な全消去処理が実行でき、その結果として、レスポンスがよくない再配置等の手法を用いることなく、記録媒体上に連続的な記録スペースを容易かつ速やかに確保することができるので、転送レートが低下する問題を回避または低減させられる。   By following the above procedure, the image recording / playback apparatus can execute the entire erasing process of the recording medium 205, and further, an appropriate all process can be performed depending on whether or not there is an image file in the recording medium 205 that is set to be erasable. The erasing process can be executed, and as a result, a continuous recording space can be easily and quickly secured on the recording medium without using a method such as rearrangement that does not have a good response. Problems can be avoided or reduced.

(第2の実施形態)
上述した第1の実施形態では、物理アドレスと論理アドレスを一致させる初期化について説明したが、本実施形態では、媒体の均等利用を考慮して初期化する例を説明する。
(Second Embodiment)
In the first embodiment described above, the initialization for matching the physical address and the logical address has been described. In the present embodiment, an example in which the initialization is performed in consideration of equal use of the medium will be described.

画像記録再生装置の構成や、その記録・再生動作ともに第1の実施形態と同じなので省略するが、第2の実施形態ではさらに最後に書き込みを行った記録媒体205上の物理アドレスを記録しておく構成とする。記録先は記録媒体205上であっても、画像記録再生装置内の不図示のメモリであっても良い。なお、最終書き込みのあった物理アドレスは、最後に画像データを書き込んだ物理アドレスであっても、システムデータを含め全データを対象とした最終書き込みであっても構わないが、本実施形態では最後に画像データを書き込んだ物理アドレスを最終書き込みアドレスとする。   Since the configuration of the image recording / reproducing apparatus and the recording / reproducing operation are the same as those in the first embodiment, a description thereof will be omitted. However, in the second embodiment, the physical address on the recording medium 205 to which writing was performed last is recorded. It is set as a structure. The recording destination may be on the recording medium 205 or a memory (not shown) in the image recording / reproducing apparatus. Note that the last written physical address may be the last written physical address or the last written data for all data including system data. The physical address at which the image data is written in is used as the final write address.

具体的な動作について説明する。操作キー208から記録媒体205上の画像ファイルの全消去が指示されたのを受け、消去禁止設定された画像ファイルが1つ以上ある場合は、第1の実施形態と同じシーケンスで消去処理する。一方、消去禁止設定された画像ファイルが無い場合は、図4のステップS406の処理は同じであるが、ステップS407において論理アドレスの初期値を、最終書き込みのあった物理アドレスをもつ書き込み単位の、次の書き込み単位の先頭と一致するように変換テーブルを初期化する。すなわち、本実施形態では記録媒体205がハードディスクであるため、最終書き込みのあったセクタの次のセクタを、論理アドレスの初期値となるように変換テーブルを初期化する。そして、第1の実施形態と同様に不良セクタ等を考慮にいれて順次論理アドレスと物理アドレスをインクリメントしつつ対応づけていき、最終物理アドレスまで辿り着くと、物理アドレスの先頭にもどって、引き続きインクリメントを行い対応付けする。論理アドレスの初期値とした物理アドレスの一つ前の物理アドレスに辿り着いたところで変換テーブルは完了となり、以下は第1の実施形態と同じである。   A specific operation will be described. In response to an instruction from the operation key 208 to erase all of the image files on the recording medium 205, if there are one or more image files that are set to be prohibited from being erased, they are erased in the same sequence as in the first embodiment. On the other hand, if there is no image file that is set to be erasure-prohibited, the processing in step S406 in FIG. The conversion table is initialized to coincide with the beginning of the next writing unit. That is, in this embodiment, since the recording medium 205 is a hard disk, the conversion table is initialized so that the sector next to the last written sector becomes the initial value of the logical address. Then, as in the first embodiment, taking into account defective sectors and the like, the logical address and the physical address are sequentially incremented and associated with each other. When the final physical address is reached, the physical address is returned to the beginning and continues. Increment and associate. The conversion table is completed when the physical address immediately preceding the physical address as the initial value of the logical address is reached, and the following is the same as in the first embodiment.

これにより、第1の実施形態で説明した全消去処理の動作を、ハードディスクにより適した形態にして実現することができる。   Thereby, the operation of all erasure processing explained in the first embodiment can be realized in a form more suitable for the hard disk.

(第3の実施形態)
上述した第1及び第2の実施形態では、記録媒体205がハードディスクであることを想定して説明したが、本実施形態では、記録媒体205が画像記録再生装置に着脱式のSDメモリカード(Secure Digital memory card)であることを想定して、以下にその動作の説明を行う。
(Third embodiment)
In the first and second embodiments described above, the description has been made assuming that the recording medium 205 is a hard disk. However, in the present embodiment, the recording medium 205 is attached to the image recording / reproducing apparatus in a removable SD memory card (Secure). The operation will be described below assuming that it is a digital memory card).

画像記録再生装置の構成は図2と同様であるが、記録媒体205に着脱式のSDメモリカードを用いた構成である。図5に、操作キー208から記録媒体(SDメモリカード)205に記録済みの画像ファイルの全消去を指示されたときの、本発明の画像記録再生装置の処理シーケンスをフローチャートで示す。なお、図5のフローチャートは、プログラムメモリ204に格納された所定の制御プログラムに基づくものであり、マイコン206によって実行される制御手順を図示化したものである。   The configuration of the image recording / reproducing apparatus is the same as that shown in FIG. 2, except that a removable SD memory card is used as the recording medium 205. FIG. 5 is a flowchart showing a processing sequence of the image recording / reproducing apparatus of the present invention when an instruction to erase all image files recorded on the recording medium (SD memory card) 205 is issued from the operation key 208. The flowchart in FIG. 5 is based on a predetermined control program stored in the program memory 204, and illustrates the control procedure executed by the microcomputer 206.

図5において、画像ファイルの全消去指示があって、全画像ファイルの消去処理を開始する(ステップS400)。次に、記録媒体205中に消去禁止設定されている画像ファイルが一つ以上あるか否か判断し(ステップS401)、一つ以上の消去禁止設定された画像ファイルがあればステップS402へと進み、消去禁止設定されている画像ファイルが無ければステップS506へと進む。   In FIG. 5, there is an instruction to erase all image files, and the erasure process of all image files is started (step S400). Next, it is determined whether or not there is one or more image files set for erasure prohibition in the recording medium 205 (step S401), and if there are one or more image files set for erasure prohibition, the process proceeds to step S402. If there is no image file for which deletion prohibition is set, the process proceeds to step S506.

ステップS402からS405間の処理は図4を用いて説明したものと同じであるので省略する。ステップS402からS405間の処理を各画像ファイルに対して繰り返し行って、ステップS405で次に消去処理すべき画像ファイルが無いと判断したならば(すなわち全画像分を作業したならば)、全消去処理は終了となり(ステップS508)、消去禁止設定がされていない画像ファイルのみの全消去処理が完了する。   The processing between steps S402 to S405 is the same as that described with reference to FIG. If the processing from step S402 to S405 is repeated for each image file and it is determined in step S405 that there is no image file to be erased next (that is, if all the images have been processed), all the images are erased. The processing ends (step S508), and all erasure processing of only the image file for which erasure prohibition is not set is completed.

一方、ステップS401において消去禁止設定されている画像ファイルが無い場合は、記録媒体205であるSDメモリカードの全領域に対してイレーズコマンドを発行する(ステップS506)。イレーズコマンドとは、SDメモリカードが内部的に持っている論理アドレス・物理アドレス変換テーブルを含む全域を初期化するためのコマンドである。これによって記録媒体205のイレーズ動作が終了した後に、記録媒体205上にファイルシステムを再構築して(ステップS507)、全消去処理が終了となる(ステップS508)。これにより、記録媒体205中に消去禁止設定されている画像ファイルが無い場合の全消去処理が完了することになる。   On the other hand, if there is no image file for which deletion is prohibited in step S401, an erase command is issued to the entire area of the SD memory card as the recording medium 205 (step S506). The erase command is a command for initializing the entire area including the logical address / physical address conversion table that the SD memory card has internally. Thus, after the erase operation of the recording medium 205 is completed, the file system is reconstructed on the recording medium 205 (step S507), and the all erasing process is completed (step S508). As a result, the entire erasure process is completed when there is no image file that is erasure-prohibited in the recording medium 205.

以上の手順を踏むことにより、記録媒体205がSDメモリカード(または同様のメモリカード)の場合であっても、第1の実施形態と同様に全消去処理が実行でき、その結果として、SDメモリカード上に連続的な記録スペースを容易かつ速やかに確保することができるので、転送レートが低下する問題を回避または低減させられる。   By following the above procedure, even if the recording medium 205 is an SD memory card (or a similar memory card), the entire erasure process can be executed as in the first embodiment. As a result, the SD memory Since a continuous recording space can be easily and quickly secured on the card, the problem of a decrease in transfer rate can be avoided or reduced.

以上、各実施形態において、本発明の画像記録再生装置の例としてデジタルビデオカメラを挙げ、用いる記録媒体としてハードディスクの例と、SDメモリカードの例を挙げて説明したが、本発明の適用はこれに限定されるものではない。例えば、ブロック単位で書き込み可能なその他の内蔵型の記録媒体または着脱可能な記録媒体を用いた、画像データ及び/またはオーディオデータ等を記録再生する装置に対しても適用可能である。   As described above, in each embodiment, a digital video camera has been described as an example of the image recording / playback apparatus of the present invention, and an example of a hard disk and an example of an SD memory card have been described as recording media to be used. It is not limited to. For example, the present invention can also be applied to an apparatus that records and reproduces image data and / or audio data using other built-in recording media that can be written in block units or removable recording media.

(その他の実施形態)
また、本発明の目的は、前述した実施形態の機能を実現するソフトウェアのプログラムコードを記録した記憶媒体(または記録媒体)を、システムあるいは装置に供給し、そのシステムあるいは装置のコンピュータ(またはCPUやMPU)が記憶媒体に格納されたプログラムコードを読み出し実行することによっても、達成されることは言うまでもない。この場合、記憶媒体から読み出されたプログラムコード自体が前述した実施形態の機能を実現することになり、そのプログラムコードを記憶した記憶媒体は本発明を構成することになる。また、コンピュータが読み出したプログラムコードを実行することにより、前述した実施形態の機能が実現されるだけでなく、そのプログラムコードの指示に基づき、コンピュータ上で稼働しているオペレーティングシステム(OS)などが実際の処理の一部または全部を行い、その処理によって前述した実施形態の機能が実現される場合も含まれることは言うまでもない。ここでプログラムコードを記憶する記憶媒体としては、例えば、フレキシブルディスク、ハードディスク、ROM、RAM、磁気テープ、不揮発性のメモリカード、CD−ROM、CD−R、DVD、ブルーレイディスク、光ディスク、光磁気ディスクなどが考えられる。
(Other embodiments)
Another object of the present invention is to supply a storage medium (or recording medium) in which a program code of software that realizes the functions of the above-described embodiments is recorded to a system or apparatus, and the computer (or CPU or Needless to say, this can also be achieved by the MPU) reading and executing the program code stored in the storage medium. In this case, the program code itself read from the storage medium realizes the functions of the above-described embodiments, and the storage medium storing the program code constitutes the present invention. Further, by executing the program code read by the computer, not only the functions of the above-described embodiments are realized, but also an operating system (OS) running on the computer based on the instruction of the program code. It goes without saying that a case where the function of the above-described embodiment is realized by performing part or all of the actual processing and the processing is included. Examples of the storage medium for storing the program code include a flexible disk, hard disk, ROM, RAM, magnetic tape, nonvolatile memory card, CD-ROM, CD-R, DVD, Blu-ray disk, optical disk, and magneto-optical disk. And so on.

さらに、記憶媒体から読み出されたプログラムコードが、コンピュータに挿入された機能拡張カードやコンピュータに接続された機能拡張ユニットに備わるメモリに書き込まれた後、そのプログラムコードの指示に基づき、その機能拡張カードや機能拡張ユニットに備わるCPUなどが実際の処理の一部または全部を行い、その処理によって前述した実施形態の機能が実現される場合も含まれることは言うまでもない。   Further, after the program code read from the storage medium is written in a memory provided in a function expansion card inserted into the computer or a function expansion unit connected to the computer, the function expansion is performed based on the instruction of the program code. It goes without saying that the CPU or the like provided in the card or 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.

本発明を上記記憶媒体に適用する場合、その記憶媒体には、先に説明したフローチャート図に対応するプログラムコードが格納されることになる。   When the present invention is applied to the above-described storage medium, the program code corresponding to the flowchart described above is stored in the storage medium.

記録媒体に記録された画像ファイルの全消去処理に関して説明するための図である。It is a figure for demonstrating about the all deletion process of the image file recorded on the recording medium. 本実施形態におけるデジタルビデオカメラのブロック図である。It is a block diagram of the digital video camera in this embodiment. ファイルシステム経由の記録媒体への書き込みイメージ図である。FIG. 3 is an image diagram of writing to a recording medium via a file system. 第1、第2の実施形態における全消去処理のシーケンスを表わしたフローチャート図である。It is a flowchart figure showing the sequence of the all erasure | elimination process in 1st, 2nd embodiment. 第3の実施形態における全消去処理のシーケンスを表わしたフローチャート図である。It is a flowchart figure showing the sequence of the all erasure | elimination process in 3rd Embodiment.

符号の説明Explanation of symbols

200 記録再生部
201 ビデオカメラ部
202 圧縮伸長部
203 画像メモリ
204 インターフェース(I/F)
205 記録媒体
206 マイコン
207 プログラムメモリ
208 操作キー
209 ディスプレイ
210 スイッチ
211 加算回路
212 キャラクタジェネレータ
213 制御バス及びデータバス
200 Recording / playback unit 201 Video camera unit 202 Compression / decompression unit 203 Image memory 204 Interface (I / F)
205 Recording Medium 206 Microcomputer 207 Program Memory 208 Operation Key 209 Display 210 Switch 211 Adder Circuit 212 Character Generator 213 Control Bus and Data Bus

Claims (4)

画像のデータファイルをブロック単位に分割して記録媒体に記録する画像記録再生装置において、
前記記録媒体に記録されたデータファイルの全消去を指示するための消去指示手段と、
前記消去指示手段から前記全消去の指示を受けつけた場合に、消去禁止設定が施されたデータファイルが前記記録媒体上に存在するか否かを判断する第1の判断手段と、
前記第1の判断手段によって前記消去禁止設定が施されたデータファイルが存在すると判断された場合には、前記消去禁止設定が施されたデータファイル以外の前記記録媒体に記録された各データファイルを消去し、前記第1の判断手段によって前記消去禁止設定が施されたデータファイルが存在しないと判断された場合には、前記記録媒体上の前記画像のデータファイルを記録するための全領域が未使用領域となるように前記記録媒体の初期化を行う消去制御手段と、
を備え
前記消去制御手段は、前記記録媒体の初期化を行う場合には、前記記録媒体の論理アドレスの初期化を行うことを特徴とする画像記録再生装置。
In an image recording / reproducing apparatus that divides an image data file into blocks and records them on a recording medium,
Erasure instruction means for instructing erasure of all data files recorded on the recording medium;
First determination means for determining whether or not a data file for which erasure prohibition has been set exists on the recording medium when the instruction to erase all is received from the erasure instruction means;
If it is determined by the first determination means that there is a data file for which the erasure prohibition setting has been performed, each data file recorded on the recording medium other than the data file for which the erasure prohibition setting has been performed is stored. If it is determined that there is no data file for which the deletion prohibition setting has been made by the first determination means, the entire area for recording the image data file on the recording medium is not yet stored. An erasing control means for initializing the recording medium so as to be a use area;
Equipped with a,
The image recording / reproducing apparatus according to claim 1, wherein the erasing control means initializes a logical address of the recording medium when the recording medium is initialized .
前記消去制御手段は、前記記録媒体の初期化を行う場合には、前記記録媒体のブロックの書き込み回数が均等となるように前記書き込み回数の情報を初期化することを特徴とする請求項1に記載の画像記録再生装置。   2. The erasure control unit, when performing initialization of the recording medium, initializes the information on the number of times of writing so that the number of times of writing on the block of the recording medium becomes equal. The image recording / reproducing apparatus described. 前記消去制御手段は、前記論理アドレスの初期化を行う場合には、前記全消去の指示以前で最後に書き込みがあった前記記録媒体の物理アドレスに基づいて前記論理アドレスの初期値を決定することを特徴とする請求項に記載の画像記録再生装置。 When the logical address is initialized, the erasure control means determines an initial value of the logical address based on a physical address of the recording medium which was last written before the all erasure instruction. The image recording / reproducing apparatus according to claim 1 . 前記第1の判断手段によって前記消去禁止設定が施されたデータファイルが存在すると判断された場合に、前記記録媒体に記録されたデータファイル夫々について前記消去禁止設定が施されたデータファイルであるか否かを判断する第2の判断手段を更に有し、
前記消去制御手段は、前記第2の判断手段によって前記消去禁止設定が施されたデータファイルであると判断されたデータファイルについては、当該データファイルが保存されている領域を未使用領域化せずし、前記第2の判断手段によって前記消去禁止設定が施されたデータファイルではないと判断されたデータファイルについては、当該データファイルが保存されている領域を未使用領域にすることを特徴とする請求項1乃至3のいずれか一項に記載の画像記録再生装置。
Whether the data file set with the erasure prohibition is set for each data file recorded on the recording medium when the first determination means determines that the data file with the erasure prohibition set exists. A second judging means for judging whether or not,
Said erasure control means, wherein the data file determined to be a data file said erasure prohibition setting has been performed by the second determination means, not an unused area of the region where the data files are stored and remaining in, the the data file determined not to be a data file said erasure prohibition setting has been performed by the second determination means, characterized in that the region where the data files are stored in the unused area The image recording / reproducing apparatus according to any one of claims 1 to 3 .
JP2004320640A 2004-11-04 2004-11-04 Image recording / playback device Expired - Fee Related JP4865207B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2004320640A JP4865207B2 (en) 2004-11-04 2004-11-04 Image recording / playback device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2004320640A JP4865207B2 (en) 2004-11-04 2004-11-04 Image recording / playback device

Publications (3)

Publication Number Publication Date
JP2006135504A JP2006135504A (en) 2006-05-25
JP2006135504A5 JP2006135504A5 (en) 2007-12-20
JP4865207B2 true JP4865207B2 (en) 2012-02-01

Family

ID=36728668

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2004320640A Expired - Fee Related JP4865207B2 (en) 2004-11-04 2004-11-04 Image recording / playback device

Country Status (1)

Country Link
JP (1) JP4865207B2 (en)

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4069665B2 (en) * 2001-04-23 2008-04-02 株式会社ニコン Electronic camera and shooting information file management method

Also Published As

Publication number Publication date
JP2006135504A (en) 2006-05-25

Similar Documents

Publication Publication Date Title
JP3566152B2 (en) Data recording / reproducing device and program recording medium
US20050259542A1 (en) Reproduction device and method, recording medium, and program
JP5814739B2 (en) Recording device
KR100646301B1 (en) Data recording and reproducing device, memory device and file access method
JP4158774B2 (en) Playback method
JP4865207B2 (en) Image recording / playback device
JP4401666B2 (en) Digital image recording apparatus and image viewer apparatus
JP5178355B2 (en) Recording device
JP2000215644A (en) Image recording and playback device
JP4211563B2 (en) Playback / recording device
JP2009141851A (en) Image recording / reproducing apparatus and image display method
JP2005302276A (en) Data recording / reproducing device, storage device, and file access method
JPH0773098A (en) Data writing method
JP3443304B2 (en) Video recording device
JP4965990B2 (en) Playback apparatus and file information display method
JP2005182864A (en) Recording / reproducing apparatus and recording / reproducing method
JP3607279B2 (en) File management method and apparatus
JP4000462B2 (en) Recording apparatus and method, and program
JP2004199767A (en) Data processing device, data processing method, and program
JP4208029B2 (en) Data management method
JP2001312876A (en) Information processing apparatus, information processing system, information processing method, and storage medium
JP2002074851A (en) Disk recording and playback device
JP3998015B2 (en) Data editing apparatus and data editing method
JPH07200181A (en) Information transfer device and information recording device
JP2000339202A (en) Disk controller, control method therefor and disk storage medium

Legal Events

Date Code Title Description
A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20071102

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20071102

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20091117

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20100114

RD04 Notification of resignation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7424

Effective date: 20100201

RD01 Notification of change of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7421

Effective date: 20100630

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20110201

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: 20111108

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: 20111110

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20141118

Year of fee payment: 3

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20141118

Year of fee payment: 3

LAPS Cancellation because of no payment of annual fees