JP2015159484A - Recording device, recording method, program and imaging apparatus - Google Patents

Recording device, recording method, program and imaging apparatus Download PDF

Info

Publication number
JP2015159484A
JP2015159484A JP2014034182A JP2014034182A JP2015159484A JP 2015159484 A JP2015159484 A JP 2015159484A JP 2014034182 A JP2014034182 A JP 2014034182A JP 2014034182 A JP2014034182 A JP 2014034182A JP 2015159484 A JP2015159484 A JP 2015159484A
Authority
JP
Japan
Prior art keywords
data
recording
moving image
raw data
predetermined
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.)
Granted
Application number
JP2014034182A
Other languages
Japanese (ja)
Other versions
JP6278353B2 (en
JP2015159484A5 (en
Inventor
浩信 有福
Hironobu Arifuku
浩信 有福
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 JP2014034182A priority Critical patent/JP6278353B2/en
Publication of JP2015159484A publication Critical patent/JP2015159484A/en
Publication of JP2015159484A5 publication Critical patent/JP2015159484A5/ja
Application granted granted Critical
Publication of JP6278353B2 publication Critical patent/JP6278353B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Television Signal Processing For Recording (AREA)
  • Studio Devices (AREA)
  • Signal Processing For Digital Recording And Reproducing (AREA)
  • Management Or Editing Of Information On Record Carriers (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide a recording device which facilitates recording of an image file including RAW data, and development and deletion of the RAW data within the image file.SOLUTION: The recording device includes: acquisition means for acquiring RAW data of a moving image; developing means which performs development processing on the RAW data to produce moving image data; encoding means for encoding the moving image data; and recording control means which performs control for recording a predetermined amount of encoded moving image data and RAW data on a recording medium as a unit of one time of writing, the recording control means being configured to store first data including encoded moving image data and second data including RAW data in one image file and to record the image file on the recording medium in accordance with a predetermined filing system for dividing a recording region of the recording medium into a plurality of predetermined recording regions and managing the recording regions. The recording control means starts recording the first data and the second data which are recorded by one time of writing, from a head of a predetermined unit region formed from at least one of predetermined recording regions.

Description

本発明は記録装置、記録方法、プログラム、ならびに撮像装置に関し、特にRAWデータを記録することが可能な記録装置および記録方法に関する。   The present invention relates to a recording apparatus, a recording method, a program, and an imaging apparatus, and more particularly to a recording apparatus and a recording method capable of recording RAW data.

従来、撮像装置においては、撮影された静止画や動画を、JPEG(Joint Photographic Experts Group)やH.264等の符号化方式により符号化して記録する構成を備える。また、近年では、撮影した画像を現像せず、圧縮しない状態、または可逆圧縮して記録する撮像装置も登場している。このように、現像しない形式の画像は、RAW画像形式と呼ばれる。RAW形式に従って画像データを記録することにより、画質の劣化を抑えることができ、また、記録後に、所望の現像パラメータによってRAWデータに現像処理を施すことが可能となる。   2. Description of the Related Art Conventionally, in an imaging apparatus, captured still images and moving images are converted into JPEG (Joint Photographic Experts Group) or H.264. H.264 or the like is used for encoding and recording. In recent years, an imaging apparatus that records a photographed image without developing and compressing it or by performing reversible compression has also appeared. Thus, an image in a format that is not developed is called a RAW image format. By recording the image data in accordance with the RAW format, it is possible to suppress deterioration in image quality, and after recording, it is possible to perform development processing on the RAW data using desired development parameters.

通常、RAW形式の画像を見るためにはRAWデータの現像処理が必要となる。現像処理は、その内容によっては時間がかかる場合があり、そのため、撮影後すぐに画像を確認できない場合がある。そこで、1回の撮影時にJPEG形式の画像データとRAW形式の画像データを同時に生成し、別々のファイルとして記録することが提案されている(例えば、特許文献1参照)。   Normally, RAW data development processing is required to view a RAW format image. Depending on the contents of the development process, it may take time, and therefore, the image may not be confirmed immediately after shooting. Therefore, it has been proposed to simultaneously generate JPEG format image data and RAW format image data and record them as separate files during one shooting (see, for example, Patent Document 1).

静止画をRAW形式で保存する場合は、RAWファイルとして拡張子を設定して保存する方法や、マルチピクチャーフォーマットに収めることでデータが散逸することを防止する方法(例えば特許文献1)がある。   In the case of saving a still image in the RAW format, there are a method of setting an extension as a RAW file and saving, and a method of preventing data from being scattered by being stored in a multi-picture format (for example, Patent Document 1).

一方、近年では動画記録が可能な撮像装置が普及してきており、特に、静止画撮影に特化していた一眼レフカメラのような撮像装置においても、動画記録が可能な製品が広まりつつある。動画記録では、動画のフレームを動画圧縮規格(たとえばH.264)に従って圧縮し、MOVなどの記録規格に従って動画ファイルとして記録媒体に記録して保存する。MOVでは、動画ファイルには、圧縮された動画のフレームが動画ファイルのどこに記録されているかを素早く検索できるようにインデックスが格納される。インデックスは、動画ファイルのチャンク構造の一部として記録される。   On the other hand, in recent years, imaging devices capable of recording moving images have become widespread. In particular, products capable of recording moving images are becoming widespread even in imaging devices such as single-lens reflex cameras specialized for still image shooting. In moving image recording, a frame of a moving image is compressed according to a moving image compression standard (for example, H.264), and is recorded and stored in a recording medium as a moving image file according to a recording standard such as MOV. In the MOV, an index is stored in the moving image file so that a search can quickly be made where the compressed moving image frame is recorded in the moving image file. The index is recorded as part of the chunk structure of the moving image file.

特開2012−80590号公報JP 2012-80590 A

しかしながら、従来は、JPEG形式の画像データとRAW形式の画像データを別々のファイルとして記録しているため、互いに対応するファイルを容易に確認することができなかった。そのため、ユーザは、例えば、JPEG画像を再生、表示しているときに、このJPEG画像に対応するRAW画像の現像を行いたい場合には、改めてRAW画像を指定して抽出した後に、現像処理を行う必要があった。   However, conventionally, since the JPEG image data and the RAW image data are recorded as separate files, it is not possible to easily check the corresponding files. Therefore, for example, when a user wants to develop a RAW image corresponding to a JPEG image while reproducing and displaying the JPEG image, the user designates and extracts the RAW image again, and then performs development processing. There was a need to do.

そこで本発明では、RAW形式の画像データと現像、圧縮された画像データを記録した場合に、容易にRAW形式の画像データを指定することができ、また、RAW画像を削除する場合に、容易に削除することを可能とする記録装置の提供を目的とする。   Therefore, in the present invention, when RAW format image data and developed and compressed image data are recorded, the RAW format image data can be easily specified, and when a RAW image is deleted, it can be easily specified. It is an object of the present invention to provide a recording apparatus that can be deleted.

本発明によれば、記録装置は、動画像のRAWデータを取得するRAWデータ取得手段と、RAWデータに現像処理を行って動画データを生成する現像手段と、動画データを符号化する符号化手段と、記録媒体の記録領域を複数の所定の記録領域に区分して管理する所定のファイルシステムに従って、符号化手段により符号化された動画データを含む第1のデータおよびRAWデータを含む第2のデータを、一つの画像ファイルに格納して前記記録媒体に記録する手段であって、所定量の符号化された動画データ及びRAWデータを1回の書き込みの単位として記録媒体に記録する制御を行う記録制御手段とを備え、記録制御手段は、1回の書き込みにより記録される第1のデータと第2のデータとをそれぞれ、所定の記録領域の少なくとも一つからなる所定の単位領域の先頭から記録する。   According to the present invention, a recording apparatus includes a RAW data acquisition unit that acquires RAW data of a moving image, a development unit that performs development processing on the RAW data to generate moving image data, and an encoding unit that encodes moving image data. And first data including moving image data encoded by the encoding means and second data including RAW data in accordance with a predetermined file system that divides and manages the recording area of the recording medium into a plurality of predetermined recording areas. A means for storing data in a single image file and recording it on the recording medium, and performing control to record a predetermined amount of encoded moving image data and RAW data on the recording medium as a unit of writing once Recording control means, wherein the recording control means is configured to record first data and second data recorded by one writing at least in a predetermined recording area, respectively. Recorded from the beginning of the predetermined unit regions consisting One.

本発明では、RAW形式の画像データと現像、圧縮された画像データとを記録した場合に、RAW形式の画像の指定および削除することができ、また、RAW画像を容易に削除することを可能とする記録装置を提供することができる。   In the present invention, when RAW format image data and developed and compressed image data are recorded, the RAW format image can be specified and deleted, and the RAW image can be easily deleted. A recording apparatus can be provided.

第1の実施形態に係る記録装置を適用した撮像装置の概略構成図である。1 is a schematic configuration diagram of an imaging apparatus to which a recording apparatus according to a first embodiment is applied. 動画ファイルの構成例を示す図である。It is a figure which shows the structural example of a moving image file. 図2に示す動画ファイルのstcoアトムを説明するための図である。It is a figure for demonstrating the stco atom of the moving image file shown in FIG. 第1の実施形態に係る記録装置が記録媒体に動画ファイルを記録する場合の記録媒体の記録領域と記録データの配置関係の例を示す図である。It is a figure which shows the example of the arrangement | positioning relationship of the recording area of a recording medium, and recording data in case the recording device which concerns on 1st Embodiment records a moving image file on a recording medium. 第1の実施形態に係る記録装置の動画記録処理動作のフローチャートを示す図である。It is a figure which shows the flowchart of the moving image recording processing operation of the recording device which concerns on 1st Embodiment. 第1の実施形態に係る記録装置の現像処理動作のフローチャートを示す図である。FIG. 5 is a diagram illustrating a flowchart of a developing process operation of the recording apparatus according to the first embodiment. 第1の実施形態に係る記録装置により記録されたRAWデータを削除する場合の記録媒体の記録領域と記録データの配置関係の例を示す図である。It is a figure which shows the example of the arrangement | positioning relationship between the recording area of a recording medium, and recording data in the case of deleting the RAW data recorded by the recording device which concerns on 1st Embodiment. 第1の実施形態に係る記録装置のRAWデータの削除処理動作のフローチャートを示す図である。FIG. 6 is a flowchart of a RAW data deletion process operation of the recording apparatus according to the first embodiment. 第2の実施形態の変形例に係る記録装置が記録媒体に動画ファイルを記録する場合の記録媒体の記録領域と記録データの配置関係の例を示す図である。It is a figure which shows the example of the arrangement | positioning relationship of the recording area of a recording medium, and recording data in case the recording device which concerns on the modification of 2nd Embodiment records a moving image file on a recording medium.

以下、本発明の好ましい実施の形態を、添付の図面に基づいて詳細に説明する。
図1は、本発明の第1の実施形態に係る記録装置を適用した撮像装置100の概略構成図である。本撮像装置は、後述するように動画記録のモードと通常モードを有し、動画撮影と静止画撮影が可能な撮像装置であるが、この場合、動画撮影中に静止画撮影が可能な構成であってもよい。
Hereinafter, preferred embodiments of the present invention will be described in detail with reference to the accompanying drawings.
FIG. 1 is a schematic configuration diagram of an imaging apparatus 100 to which the recording apparatus according to the first embodiment of the present invention is applied. As will be described later, this imaging apparatus has a moving image recording mode and a normal mode and is capable of capturing moving images and still images. There may be.

同図において、110は電源であり、撮像装置100内の各回路に電源を供給する。172はカードスロットであり、メモリカード(着脱可能な記録媒体)173を差し込める。メモリカード173をカードスロット172に差し込んだ状態で、メモリカード173は、記録再生部171と電気的に接続する。なお、本実施形態では記録媒体としてメモリカード173を採用しているが、その他の記録媒体、例えば、ハードディスク、光ディスク、光磁気ディスク、磁気ディスク、その他の固体メモリを使用してもよい。   In the figure, reference numeral 110 denotes a power supply, which supplies power to each circuit in the imaging apparatus 100. Reference numeral 172 denotes a card slot into which a memory card (detachable recording medium) 173 can be inserted. With the memory card 173 inserted into the card slot 172, the memory card 173 is electrically connected to the recording / reproducing unit 171. In this embodiment, the memory card 173 is used as a recording medium. However, other recording media such as a hard disk, an optical disk, a magneto-optical disk, a magnetic disk, and other solid-state memories may be used.

101は被写体の光学像を撮像素子103に結像させる撮像レンズで、レンズ駆動部141によってズーム制御、フォーカス制御、絞り制御などが行なわれる。102はメカニカルシャッタでシャッタ駆動部142によって制御される。170は音声取得部であり、マイクロフォンはAD変換器などを備え、被写体の周辺の音声を取得し、音声データを出力する。音声データはメモリ132に記憶される。   Reference numeral 101 denotes an image pickup lens that forms an optical image of a subject on the image pickup device 103, and performs zoom control, focus control, aperture control, and the like by a lens driving unit 141. Reference numeral 102 denotes a mechanical shutter which is controlled by a shutter driving unit 142. Reference numeral 170 denotes an audio acquisition unit. The microphone includes an AD converter and the like, acquires audio around the subject, and outputs audio data. The audio data is stored in the memory 132.

映像信号処理部121は、撮像素子103からの動画信号や静止画信号をデジタル信号に変換し、各種の処理を施したのち、メモリ132に記憶する。例えば、後述のように、圧縮された動画データを記録するため、撮像素子からの動画信号に対して現像処理を施し、圧縮するために適した形式に変換する。また、映像信号処理部121は、RAW形式の動画データを記録するため、現像処理を施さずに出力する。   The video signal processing unit 121 converts a moving image signal or a still image signal from the image sensor 103 into a digital signal, performs various processes, and stores the digital signal in the memory 132. For example, as described later, in order to record compressed moving image data, the moving image signal from the image sensor is subjected to development processing and converted into a format suitable for compression. In addition, the video signal processing unit 121 records RAW format moving image data and outputs it without performing development processing.

コーデック122は、記録時においては、メモリ132より動画データを読み出し、記録する動画データに応じた圧縮処理を施す。例えば、圧縮された動画データを記録する場合、メモリ132より現像処理が施された動画データを読み出し、H.264等の符号化形式に従って符号化し、情報量を圧縮する。また、コーデック122は、RAW形式の動画信号を記録する場合、現像処理されていない動画信号をメモリ132より読み出し、可逆圧縮方式により圧縮処理を施す。なお、RAW形式の動画データについては、圧縮処理を施さずに記録することも可能である。   During recording, the codec 122 reads the moving image data from the memory 132 and performs compression processing according to the moving image data to be recorded. For example, when recording compressed moving image data, the moving image data subjected to development processing is read from the memory 132, The amount of information is compressed by encoding according to an encoding format such as H.264. Further, when recording a RAW format moving image signal, the codec 122 reads out a moving image signal that has not been subjected to development processing from the memory 132 and performs compression processing using a lossless compression method. Note that RAW format moving image data can also be recorded without being subjected to compression processing.

また、コーデック122は、記録時においては、メモリ132から音声データを読み出し、AAC(Advanced Audio Coding)などの公知の符号化方式に従って符号化して、情報量を圧縮する。また、再生時においては、再生された音声データを復号し、情報量を伸張する。   Further, at the time of recording, the codec 122 reads audio data from the memory 132 and encodes it according to a known encoding method such as AAC (Advanced Audio Coding) to compress the information amount. At the time of reproduction, the reproduced audio data is decoded and the amount of information is expanded.

撮像素子103は、CMOS(ComplementaryMetal−OxideSemiconductor)撮像素子等で構成される光電変換手段である。撮像素子103は、撮像レンズ101、シャッタ102からなる撮像光学系で形成された被写体像を光電変換し、画像信号を出力することができる。   The image sensor 103 is a photoelectric conversion unit configured by a CMOS (Complementary Metal-Oxide Semiconductor) image sensor or the like. The imaging element 103 can photoelectrically convert a subject image formed by an imaging optical system including an imaging lens 101 and a shutter 102 and output an image signal.

メモリ132は、映像信号処理部121の出力画像データの他、音声取得部170が出力する音声データ、CPU(CentralProcessingUnit)131が各種処理を行なう際にデータを一時的に記憶する。タイミングジェネレータ143は、撮像素子103、映像信号処理部121にタイミングを提供する。バス150には、レンズ駆動部141、シャッタ駆動部142、撮像素子103、タイミングジェネレータ143、映像信号処理部121、CPU131、電源110、メモリ132、表示制御装置151、操作部161、および記録再生部171が接続される。CPU131は、バス150を介して撮像装置全体の制御を司り、例えば撮像素子103から画像信号を読み出して処理するために、撮像素子103、映像信号処理部121、メモリ132などの各部の動作タイミングを制御する。   In addition to the output image data of the video signal processing unit 121, the memory 132 temporarily stores audio data output by the audio acquisition unit 170 and data when a CPU (Central Processing Unit) 131 performs various processes. The timing generator 143 provides timing to the image sensor 103 and the video signal processing unit 121. The bus 150 includes a lens driving unit 141, a shutter driving unit 142, an image sensor 103, a timing generator 143, a video signal processing unit 121, a CPU 131, a power supply 110, a memory 132, a display control device 151, an operation unit 161, and a recording / reproducing unit. 171 is connected. The CPU 131 controls the entire imaging apparatus via the bus 150. For example, in order to read and process an image signal from the imaging element 103, the CPU 131 determines the operation timing of each unit such as the imaging element 103, the video signal processing unit 121, and the memory 132. Control.

表示制御装置151は、液晶表示素子からなるTFT(ThinFilmTransistor)152、およびVIDEO出力端子153の駆動および制御をする。表示制御装置151は、HDMI(登録商標)(High−DefinitionMultimediaInterface)端子154の駆動および制御も行う。また、表示制御装置151は、メモリ132の記録領域に表示用の画像フォーマットで配置された画像データをそれぞれの表示装置へ出力する。ここでメモリ132に配置された表示用画像データ領域をVRAM(Video Random Access Memory)と呼ぶ。   The display control device 151 drives and controls a TFT (Thin Film Transistor) 152 formed of a liquid crystal display element and a VIDEO output terminal 153. The display control device 151 also drives and controls an HDMI (registered trademark) (High-Definition Multimedia Interface) terminal 154. Further, the display control device 151 outputs the image data arranged in the display image format in the recording area of the memory 132 to each display device. Here, the display image data area arranged in the memory 132 is referred to as a VRAM (Video Random Access Memory).

操作部161は、各種のスイッチ、動作モードの切り替え、表示画像等の選択などを行なうタッチパネルなどの操作部材を含む。例えば、図示するように、メインスイッチ(SW)、第1レリーズスイッチ(SW1)、第2レリーズスイッチ(SW2)、ライブビュー開始/終了ボタン(LV)、動画記録開始/終了ボタン(R)、上下左右選択ボタン(+)、および設定ボタン(Set)を含む。   The operation unit 161 includes an operation member such as a touch panel that performs various switches, operation mode switching, display image selection, and the like. For example, as shown in the figure, a main switch (SW), a first release switch (SW1), a second release switch (SW2), a live view start / end button (LV), a moving image recording start / end button (R), up and down It includes a left / right selection button (+) and a setting button (Set).

ユーザがメインスイッチ(SW)をオンにすると、CPU131は、図示しないメモリに記憶されている所定の制御プログラムを実行して、撮像装置全体の制御を開始する。メインスイッチ(SW)をオフにすると所定のプログラムを実行し、撮像装置をスタンバイモードにする。第1レリーズスイッチ(SW1)は図示しないレリーズボタンの第1ストローク(半押し状態)でオンになり、第2レリーズスイッチ(SW2)はレリーズボタンの第2ストローク(全押し状態)でオンとなる。   When the user turns on the main switch (SW), the CPU 131 executes a predetermined control program stored in a memory (not shown) to start control of the entire imaging apparatus. When the main switch (SW) is turned off, a predetermined program is executed, and the image pickup apparatus is set to the standby mode. The first release switch (SW1) is turned on with a first stroke (half-pressed state) of a release button (not shown), and the second release switch (SW2) is turned on with a second stroke (full-pressed state) of the release button.

また、CPU131は、上下左右選択ボタン(+)および設定ボタン(Set)の押下と撮像装置100の動作状態に従って撮像装置100の制御を行なう。例えば、上下左右選択ボタン(+)と設定ボタン(Set)により、グラフィカルユーザインタフェースでの選択と設定を行なうことで、動画記録のモードを通常モードとRAW保存モードとで切り替えることができる。   In addition, the CPU 131 controls the imaging device 100 according to pressing of the up / down / left / right selection button (+) and the setting button (Set) and the operation state of the imaging device 100. For example, the moving image recording mode can be switched between the normal mode and the RAW storage mode by performing selection and setting on the graphical user interface using the up / down / left / right selection button (+) and the setting button (Set).

ライブビュー開始/終了ボタン(LV)を押すと、定期的(例えば1秒に30回)に撮像素子103から画像データを取り込み、VRAMへ配置することで、リアルタイムに撮像素子103から取り込んだ画像を表示することができる。ライブビューが動作している状態で、ライブビュー開始/終了ボタン(LV)を押すとライブビューを終了する。   When the live view start / end button (LV) is pressed, image data is captured from the image sensor 103 on a regular basis (for example, 30 times per second) and placed in the VRAM, so that an image captured from the image sensor 103 in real time can be obtained. Can be displayed. If the live view start / end button (LV) is pressed while the live view is operating, the live view is ended.

動画記録開始/終了ボタン(R)を押すと、動画記録動作を開始することができる。動画記録動作では、撮像素子103から取り込んだ画像データ、および不図示の音声入力手段から取り込んだ音声データをコーデック122で動画圧縮規格に従い圧縮し、後述の方法で動画ファイルを形成し、記録媒体173へ記録する。動画記録中に動画記録開始/終了ボタン(R)ボタンを押すと、動画記録が停止する。   When the moving image recording start / end button (R) is pressed, the moving image recording operation can be started. In the moving image recording operation, the image data captured from the image sensor 103 and the audio data captured from a sound input unit (not shown) are compressed by the codec 122 according to the moving image compression standard, a moving image file is formed by a method described later, and the recording medium 173 is recorded. To record. When moving image recording start / end button (R) is pressed during moving image recording, moving image recording is stopped.

<動画ファイル構造>
次に、本実施形態で扱う動画ファイルの構成について説明する。図2は本実施形態で扱う動画ファイルの構成例を示す図である。動画ファイル200は、動画データや音声データなどの各種データを格納する。また、動画ファイル200は、動画データの位置や、音声データの位置に関する位置情報を含むメタデータを含む。動画ファイル200に格納される動画データ、音声データ、およびメタデータは記録時間に応じてサイズが大きくなる。また、メタデータに格納される各情報は、動画データおよび音声データに関する情報である。そのため、動画データおよび音声データが記録された後にその内容が確定する。
<Video file structure>
Next, the configuration of the moving image file handled in this embodiment will be described. FIG. 2 is a diagram illustrating a configuration example of a moving image file handled in the present embodiment. The moving image file 200 stores various data such as moving image data and audio data. The moving image file 200 includes metadata including position information regarding the position of moving image data and the position of audio data. The moving image data, audio data, and metadata stored in the moving image file 200 increase in size according to the recording time. Further, each piece of information stored in the metadata is information related to moving image data and audio data. Therefore, after the moving image data and audio data are recorded, the contents are determined.

この様なファイル形式で動画データおよび音声データを記録するときのファイル形式として、MOVファイル形式が知られている。本実施形態では、MOVファイル形式に従い、動画ファイルを記録する。   The MOV file format is known as a file format for recording moving image data and audio data in such a file format. In the present embodiment, a moving image file is recorded according to the MOV file format.

MOVファイルはアトムと呼ばれる単位で構成される。一つのアトムは、アトムサイズ、アトムタイプ、アトムデータの領域を含む。アトムサイズにはこのアトムのデータ長(サイズ)の情報が格納される。アトムタイプにはアトムデータに格納されるデータ種別を示す情報が格納される。アトムデータには実データが格納される。アトムタイプは32ビットの固定長のデータ領域である。アトムデータは可変長の領域である。アトムサイズは、通常は32ビットであり、一つのアトムのサイズは通常0xFFFFFFFFバイト以下である。また、アトムサイズは64ビットに拡張することが可能である。そのため、後述の様に、mdatアトムに格納した動画のサイズが4GBを超える場合には、mdatアトムのアトムサイズを64ビットのデータとして記録する。   An MOV file is composed of units called atoms. One atom includes an atom size, an atom type, and an atom data area. The atom size stores information on the data length (size) of the atom. The atom type stores information indicating the data type stored in the atom data. Actual data is stored in the atom data. The atom type is a 32-bit fixed length data area. Atom data is a variable length area. The atom size is usually 32 bits, and the size of one atom is usually 0xFFFFFFFF bytes or less. The atom size can be extended to 64 bits. Therefore, as described later, when the size of the moving image stored in the mdat atom exceeds 4 GB, the atom size of the mdat atom is recorded as 64-bit data.

動画ファイル200は、ファイル種別アトム(ftyp),ムービーデータアトム(mdat),ムービーアトム(moov)の三つのアトムから構成される。ftyp、mdat、moovの各アトムは、最上位の階層である。   The moving image file 200 is composed of three atoms: a file type atom (ftyp), a movie data atom (mdat), and a movie atom (moov). Each atom of ftyp, mdat, and moov is the highest layer.

ftypは、アトムタイプがftypであり、ファイルの種別に関する情報が格納されるアトムである。ftypに記述されたアトムデータに基づいて、MOVファイルに格納された動画データや音声データの符号化方式等を判別することができる。   “ftyp” is an atom having an atom type of “ftyp” and storing information related to the file type. Based on the atom data described in ftyp, it is possible to determine the encoding method of moving image data and audio data stored in the MOV file.

mdatは、アトムタイプがmdatであり、動画データや音声データの各サンプルが格納されるアトムである。符号化された動画データや音声データは、それぞれチャンクという単位に分割されて格納される。本実施形態では、動画データの1チャンクを、H.264方式で規定された1GOP(Group of Pictures)の動画データとする。また、音声データの1チャンクを、この1GOPに対応したフレーム数の音声データとする。さらに、RAWデータの1チャンクも、この1GOPに対応したフレーム数のRAWデータとする。   mdat is an atom in which the atom type is mdat and each sample of moving image data and audio data is stored. The encoded moving image data and audio data are divided and stored in units of chunks. In the present embodiment, one chunk of moving image data is assigned to H.264. The video data is 1 GOP (Group of Pictures) defined by the H.264 system. Further, one chunk of audio data is set as audio data of the number of frames corresponding to this 1 GOP. Further, one chunk of RAW data is also RAW data of the number of frames corresponding to this 1 GOP.

moovは、アトムタイプがmoovであり、動画データや音声データに関するメタデータが格納されるアトムである。moovのアトムデータには、動画データや音声データの各チャンクのファイル先頭からのオフセットを示すチャンクオフセット、各チャンクのサンプル数、サンプルサイズなどの情報が格納される。moovは、1以上のtrakを含む。trakアトムは、1以上のビデオトラックやオーディオトラックを定義する情報である。   The moov is an atom that has an atom type of moov and stores metadata related to moving image data and audio data. In the moov atom data, information such as a chunk offset indicating an offset from the file head of each chunk of moving image data and audio data, the number of samples of each chunk, and a sample size are stored. A moov includes one or more traks. The trak atom is information that defines one or more video tracks and audio tracks.

図2では、説明のために、trakをtrak1,trak2,trak3と記述し、それぞれ音声、映像、RAWのトラックとする。trakは、mdiaを含む。mdiaは各トラックのメディアタイプなどを記述した情報である。例えば、mdiaチャンクの情報には、そのtrakが映像の情報を収めたものなのか、音声の情報を収めたものなのか、それともRAWの情報を収めたものなのかどうかを判断する情報が含まれる。   In FIG. 2, for the sake of explanation, trak is described as trak1, trak2, and trak3, which are audio, video, and RAW tracks, respectively. trak includes mdia. mdia is information describing the media type of each track. For example, the mdia chunk information includes information for determining whether the trak contains video information, audio information, or RAW information. .

本実施形態では、mdiaの情報を使い、RAWの情報を収めたtrakであるかどうかを判断する。mdiaはmdhdとstblを含む。stblには、動画データや音声データの各チャンクのファイル先頭からのオフセットを示すチャンクオフセット、各チャンクのサンプル数、サンプルの表示時間、サンプルサイズなどの情報が格納される。ここで、動画データの1サンプルはフレームに対応し、音声データの1サンプルは音声フレームに対応する。   In the present embodiment, the mdia information is used to determine whether the trak contains the RAW information. mdia includes mdhd and stbl. In stbl, information such as a chunk offset indicating an offset from the beginning of each chunk of moving image data and audio data, the number of samples of each chunk, the display time of the sample, and the sample size are stored. Here, one sample of moving image data corresponds to a frame, and one sample of audio data corresponds to an audio frame.

stcoおよびco64は、mdatに格納された動画データや音声データの各チャンク先頭のファイル先頭からの位置(オフセット位置)を示す情報を格納するアトムである。これらの位置情報は、この動画ファイル内に格納された動画データや音声データを再生するために必要な情報である。なお、co64は、64ビットで表現可能な位置情報を格納することができるアトムである。   stco and co64 are atoms that store information indicating the position (offset position) from the beginning of each chunk of the moving image data and audio data stored in mdat. These pieces of position information are information necessary for reproducing moving image data and audio data stored in the moving image file. Note that co64 is an atom that can store position information that can be expressed in 64 bits.

stcoアトム、およびco64アトムに格納されるデータを図3に示す。図3(a)はstcoアトムを示している。アトムサイズはこのアトムの全体のサイズを示している。アトムタイプはstcoが格納される。バージョンはアトムのバージョンを示し通常0が格納される。フラグは他のアトムタイプで使用されるが、ここでは使用されないため0が格納される。   FIG. 3 shows data stored in the stco atom and the co64 atom. FIG. 3A shows a stco atom. The atom size indicates the overall size of this atom. The atom type stores stco. The version indicates the version of the atom and normally 0 is stored. Although the flag is used in other atom types, 0 is stored because it is not used here.

エントリ数は、次の要素”オフセット”の個数を示している。オフセットはmdatに格納される動画データや音声データの各チャンクのファイル先頭からの位置を示す値が格納される。一つのエントリは、一つのチャンクのオフセットを示している。再生を行う場合にこのオフセットを参照することで、再生対象の動画像データがファイルのどこに存在するのかがわかるようになっている。stcoアトムに格納されるオフセットは4バイト(32ビット)のデータである。そのため、stcoでは、動画ファイルのサイズが4GBまでの場合に、各チャンクのオフセット値を表すことができる。   The number of entries indicates the number of the next element “offset”. As the offset, a value indicating the position from the file head of each chunk of moving image data and audio data stored in mdat is stored. One entry indicates the offset of one chunk. By referring to this offset when performing reproduction, it is possible to know where the moving image data to be reproduced exists in the file. The offset stored in the stco atom is 4 bytes (32 bits) of data. Therefore, stco can represent the offset value of each chunk when the size of the moving image file is up to 4 GB.

一方、図3(b)はco64アトムを示している。co64は、最後のオフセット以外はstcoと同じである。co64アトムに格納されるオフセットは8バイト(64ビット)のデータである。従って、co64アトムでは、各チャンクのオフセット値として、stcoアトムよりも大きな値を表すことができる。そのため、co64では、動画ファイルのサイズが4GBを超えた場合でも、各チャンクのオフセット値を表すことができる。stszアトムは、stcoまたはco64の1要素ごとに、そのオフセットにあるデータのサイズ情報を格納する。   On the other hand, FIG. 3B shows a co64 atom. co64 is the same as stco except for the last offset. The offset stored in the co64 atom is 8 bytes (64 bits) of data. Therefore, the co64 atom can represent a larger value than the stco atom as the offset value of each chunk. For this reason, co64 can represent the offset value of each chunk even when the size of the moving image file exceeds 4 GB. The stsz atom stores the size information of the data at the offset for each element of stco or co64.

<動画ファイル作成>
以下、図4と図5を参照して、本実施形態に係わる動画ファイル作成処理について説明する。
本実施形態では、FAT(File Allocation Tables)ファイルシステムに従い、生成した動画ファイルを記録媒体(メモリカード)173に記録する。また、本実施形態では、記録時において、撮像された動画データから、圧縮された動画データと、RAW形式の動画データを両方生成する。そして、圧縮された動画データと、この動画データに対応するRAW形式の動画データとを、音声データと共に、一つの動画ファイル(MOV形式のファイル)に格納することにより記録する。
<Create movie file>
Hereinafter, the moving image file creation processing according to the present embodiment will be described with reference to FIGS.
In the present embodiment, the generated moving image file is recorded on a recording medium (memory card) 173 according to a FAT (File Allocation Tables) file system. In this embodiment, at the time of recording, both compressed moving image data and RAW format moving image data are generated from the captured moving image data. The compressed moving image data and the RAW format moving image data corresponding to the moving image data are recorded together with the audio data by storing them in one moving image file (MOV format file).

図4は、本実施形態で生成した動画ファイルをFAT(File Allocation Tables)ファイルシステムに従って記録媒体(メモリカード)173に記録した場合の、クラスタと動画ファイのデータの配置関係の例を示す図である。同図に示すように、FATファイルシステムは、記録媒体の記録領域をクラスタ(所定の記録領域)に区分して管理する。本実施形態では、動画ファイルの音声データおよび動画データの符号化データとRAWデータの記録領域を、記録媒体の記録領域の管理単位であるクラスタで形成される所定の単位領域に基づいて決定する。以下、所定の単位領域を1クラスタとする本実施形態の記録構成を説明する。   FIG. 4 is a diagram showing an example of the arrangement relationship between clusters and moving image file data when the moving image file generated in the present embodiment is recorded on a recording medium (memory card) 173 according to a FAT (File Allocation Tables) file system. is there. As shown in the figure, the FAT file system manages the recording area of the recording medium by dividing it into clusters (predetermined recording areas). In the present embodiment, the recording area of the audio data of the moving image file, the encoded data of the moving image data, and the RAW data is determined based on a predetermined unit area formed by clusters that are management units of the recording area of the recording medium. Hereinafter, a recording configuration of the present embodiment in which a predetermined unit area is one cluster will be described.

図5は、本実施形態の記録装置の記録処理動作のフローチャートを示す図である。本処理動作は、CPU131が各部を制御することにより実行される、動画記録のフローである。CPU131は撮像装置100の各部の制御を通して様々に機能する。例えば、画像のRAWデータを取得するRAWデータ取得手段として、および取得されたRAWデータから画像データを生成する現像手段として機能する。また、画像データを符号化して符号化データを生成する符号化手段として、および符号化データとRAWデータとから画像ファイルを形成するファイル生成手段としても機能する。また、CPU131は、画像ファイルを所定のファイルシステムに従って記録媒体に記録する記録制御手段として、およびファイルシステムの管理情報を生成するファイル管理手段として機能する。CPU131を上記の各手段として機能させるプログラムは、本実施形態では図示しないコンピュータで読み取り可能な記録媒体に記録される。   FIG. 5 is a flowchart illustrating the recording processing operation of the recording apparatus according to the present embodiment. This processing operation is a moving image recording flow executed by the CPU 131 controlling each unit. The CPU 131 functions variously through control of each unit of the imaging apparatus 100. For example, it functions as RAW data acquisition means for acquiring image RAW data and as development means for generating image data from the acquired RAW data. It also functions as an encoding unit that encodes image data to generate encoded data, and a file generation unit that forms an image file from the encoded data and RAW data. The CPU 131 functions as a recording control unit that records an image file on a recording medium according to a predetermined file system, and as a file management unit that generates management information of the file system. A program that causes the CPU 131 to function as each of the above-described means is recorded on a computer-readable recording medium (not shown) in the present embodiment.

図5のフローチャートにおいて、まずステップS101にて、CPU131はライブビュー開始/終了ボタン(LV)の押下を検知してライブビューを開始する。ステップS102にて、CPU131は、記録開始/終了ボタン(R)の押下を検知すると、新たに動画ファイルを作成する。そして、trakを生成し(ステップS103)、動画の符号化を開始する(ステップS104)。ここでは、音声データのトラック、圧縮された動画データのトラック及びRAW形式の動画データのトラック、の三つのトラックが生成される。また、圧縮された動画データと、RAW形式の動画データとが、並列に生成され、それぞれの符号化方式で符号化されて、メモリ132に記憶される。   In the flowchart of FIG. 5, first, in step S101, the CPU 131 detects the pressing of the live view start / end button (LV) and starts the live view. In step S102, when the CPU 131 detects that the recording start / end button (R) is pressed, it creates a new moving image file. Then, trak is generated (step S103), and encoding of the moving image is started (step S104). Here, three tracks are generated: an audio data track, a compressed moving image data track, and a RAW format moving image data track. Also, the compressed moving image data and the RAW format moving image data are generated in parallel, encoded by the respective encoding methods, and stored in the memory 132.

符号化された動画データと音声データは、メモリ132に順次記憶される。また、CPU131は、動画や音声の符号化処理に伴い、信号処理部121からの発生符号量などの情報をメモリ132に記憶する。この様に、符号化された未記録の動画データと音声データが順次メモリ132に記憶される。メモリ132に記憶された未記録の動画データと音声データが所定量に達すると、CPU131は、記録媒体173への書き込みタイミングであると判断する(ステップS105)。そして、CPU131は記録再生部171に対し、メモリ132に記憶された動画データと音声データを記録するように指示する(ステップS106)。この指示に応じて、記録再生部171は、動画データと音声データを、図2で説明したmdatアトムに順次格納し、動画ファイルとして記録媒体173に記録する。   The encoded moving image data and audio data are sequentially stored in the memory 132. In addition, the CPU 131 stores information such as the generated code amount from the signal processing unit 121 in the memory 132 in accordance with the encoding process of the moving image and the sound. In this manner, encoded unrecorded moving image data and audio data are sequentially stored in the memory 132. When the unrecorded moving image data and audio data stored in the memory 132 reach a predetermined amount, the CPU 131 determines that it is a writing timing to the recording medium 173 (step S105). Then, the CPU 131 instructs the recording / playback unit 171 to record the moving image data and audio data stored in the memory 132 (step S106). In response to this instruction, the recording / playback unit 171 sequentially stores the moving image data and the audio data in the mdat atom described with reference to FIG. 2 and records them on the recording medium 173 as a moving image file.

図2におけるmdatアトムは、図4のようにクラスタ単位に区分された記録領域を有する記録媒体173に記録される。図4において、クラスタ4から、音声データと動画データが記録媒体上に記録される。   The mdat atom in FIG. 2 is recorded on a recording medium 173 having recording areas divided into cluster units as shown in FIG. In FIG. 4, audio data and moving image data are recorded on the recording medium from the cluster 4.

ステップS107にて、データパディングを行う。パディングでは、図4において、クラスタ5の途中まで動画データが記録されているところで、クラスタ5の残り部分を意図的にダミーデータで消費して、RAWデータの記録領域の終端とクラスタの終端を一致させる。このようにすることによって、次回データを記録媒体に記録するときに、ファイルシステムが記憶媒体の記憶領域を区分して管理する区分領域の先頭から記録することができる。そしてステップS108にて、記録再生部171を介してRAWデータを書き込む。   In step S107, data padding is performed. In the padding, when moving image data is recorded partway through the cluster 5 in FIG. 4, the remaining part of the cluster 5 is intentionally consumed with dummy data, and the end of the RAW data recording area coincides with the end of the cluster. Let By doing so, the next time data is recorded on the recording medium, the file system can start recording from the beginning of the divided area managed by dividing the storage area of the storage medium. In step S108, the RAW data is written via the recording / playback unit 171.

RAWデータを書き込んだ段階で、CPU131は、図4に示すようにクラスタ7に記録領域が残っていることを判定し、判定の結果に従って再びパディングを行う(ステップS109)。このように、パディングでは、有効なデータがクラスタの途中までしか消費していないとき、そのクラスタの残り部分を、ダミーデータで消費する。   At the stage of writing the RAW data, the CPU 131 determines that a recording area remains in the cluster 7 as shown in FIG. 4, and performs padding again according to the determination result (step S109). Thus, in padding, when valid data is consumed only halfway through a cluster, the rest of the cluster is consumed as dummy data.

ステップS110にて、trak情報を更新する。ステップS106で書き込みを行った音声データと映像データ、およびステップS108で書き込みを行ったRAWデータのオフセットとサイズを、図3で説明したstcoまたはco64にオフセット情報として、およびstszにサイズ情報として記憶する。ステップS111にて、記録開始/終了ボタン165が押下されたかを判断する。記録開始/終了ボタン165が押下されていないとき、ステップS104に戻り、動画記録を続ける。   In step S110, the trak information is updated. The audio data and video data written in step S106 and the offset and size of the RAW data written in step S108 are stored as offset information in stco or co64 described in FIG. 3 and as size information in stsz. . In step S111, it is determined whether recording start / end button 165 has been pressed. When the recording start / end button 165 is not pressed, the process returns to step S104 to continue moving image recording.

ステップ112でCPU131は、メモリ132に記憶された未記録の符号化データおよびRAWデータが存在しているかどうかを判定する。存在しないと判定したら、ステップS118へ進む。存在していると判定したら、CPU131は存在しないと判断したら、ステップS118へ進む。存在していると判断したら、CPU131は記録再生部171に対し、メモリ132に記憶された動画データと音声データを記録するように指示する(ステップS113)。そして、パディングを行い(ステップS114)、RAWデータを書き込み(ステップS115)、パディングを行い(ステップS116)、trak情報を更新する(ステップS117)。   In step 112, the CPU 131 determines whether unrecorded encoded data and RAW data stored in the memory 132 are present. If it is determined that it does not exist, the process proceeds to step S118. If it is determined that it exists, the CPU 131 proceeds to step S118 if it determines that it does not exist. If it is determined that the data exists, the CPU 131 instructs the recording / playback unit 171 to record the moving image data and audio data stored in the memory 132 (step S113). Then, padding is performed (step S114), RAW data is written (step S115), padding is performed (step S116), and the trak information is updated (step S117).

ステップS118にて、CPU131は、MOVファイル形式で定められたメタデータを生成する。CPU131は、記録再生部171に対し、メタデータをmoovアトムに格納して記録するように指示する。なお、CPU131は、映像信号処理部121を制御して、記録された動画データの1画面から、サムネイル画像を生成し、動画ファイルの所定の領域に格納する。   In step S118, the CPU 131 generates metadata defined in the MOV file format. The CPU 131 instructs the recording / playback unit 171 to store the metadata in the moov atom for recording. The CPU 131 controls the video signal processing unit 121 to generate a thumbnail image from one screen of the recorded moving image data and store it in a predetermined area of the moving image file.

<動画ファイルのRAWデータの利用方法>
次に、図6を参照して、本実施例に関わる、動画ファイルのRAWデータを用い、現像処理動作について説明する。
ユーザは、操作部161に含まれるタッチパネルを操作して、再生モードへの切り替えを指示する。CPU131は、再生モードの指示があった場合、記録再生部171に対し、各動画ファイルから、サムネイル画像(代表画像)を読み出すように指示する。記録再生部171は、記録媒体173から、各動画ファイルのサムネイル画像データを読み出し、映像信号処理部121に送る。映像信号処理部121はサムネイル画像データを復号し、更に、インデックス画面に適した大きさに変更することにより、インデックス画面を生成して表示制御部151に送る。表示制御部151は、映像信号処理部121からのインデックス画面を表示部152に表示する。
<How to use RAW data of video files>
Next, with reference to FIG. 6, the development processing operation using the RAW data of the moving image file according to the present embodiment will be described.
The user operates the touch panel included in the operation unit 161 to instruct switching to the playback mode. When there is an instruction for the playback mode, the CPU 131 instructs the recording / playback unit 171 to read a thumbnail image (representative image) from each moving image file. The recording / playback unit 171 reads the thumbnail image data of each moving image file from the recording medium 173 and sends the thumbnail image data to the video signal processing unit 121. The video signal processing unit 121 decodes the thumbnail image data, and further changes the size to a size suitable for the index screen, thereby generating an index screen and sending it to the display control unit 151. The display control unit 151 displays the index screen from the video signal processing unit 121 on the display unit 152.

ユーザは、タッチパネルを操作して、インデックス画面に表示された各サムネイル画像から、所望の画像を選択して、再生を指示した場合、CPU131は選択された動画を再生するよう機能する。すなわち、指定されたサムネイル画像に対応した動画ファイルから、圧縮された動画データおよび音声データを再生するように、記録再生部171に指示する。   When the user operates the touch panel to select a desired image from the thumbnail images displayed on the index screen and instructs playback, the CPU 131 functions to play back the selected moving image. That is, the recording / reproducing unit 171 is instructed to reproduce the compressed moving image data and audio data from the moving image file corresponding to the designated thumbnail image.

記録再生部171は、指定された動画ファイルから、圧縮された動画データおよび音声データを読み出して、映像信号処理部121に送る。映像信号処理部121は、圧縮された動画および音声データを復号し、表示制御部151に送る。表示制御部151は復号された動画を表示部152に表示する。ユーザにより再生停止が指示されると、CPU131は動画の再生を停止して、再度インデックス画面を表示するように制御する。   The recording / playback unit 171 reads the compressed moving image data and audio data from the specified moving image file, and sends them to the video signal processing unit 121. The video signal processing unit 121 decodes the compressed moving image and audio data and sends them to the display control unit 151. The display control unit 151 displays the decoded moving image on the display unit 152. When playback stop is instructed by the user, the CPU 131 controls to stop playback of the moving image and display the index screen again.

また、インデックス画面が表示されている状態で、ユーザが操作部161に含まれるタッチパネルを操作して所望のサムネイル画像を選択し、現像処理を指示すると、CPU131は映像信号処理部121を介して現像手段として機能する。即ち、現像指示に応じて、選択されたサムネイル画像に対応したRAWデータの現像処理が行われる。なお、ユーザが選択したサムネイル画像に対応したRAWデータの現像処理が既に行われている場合、CPU131は、その旨を表示部152に表示し、現像処理は行わない。   When the index screen is displayed, when the user operates the touch panel included in the operation unit 161 to select a desired thumbnail image and instructs development processing, the CPU 131 performs development via the video signal processing unit 121. Functions as a means. That is, in accordance with the development instruction, RAW data development processing corresponding to the selected thumbnail image is performed. If the development processing of the RAW data corresponding to the thumbnail image selected by the user has already been performed, the CPU 131 displays that fact on the display unit 152 and does not perform the development processing.

図6の処理はCPU131が各部を制御することにより実行される、動画ファイルのRAWデータを用いて現像を行うフローである。
まずステップS201にて、CPU131は記録再生部171に対し、記録媒体173に記録されている、RAWデータを含んだ動画ファイルのmoovアトムを読み取ることを指示する。ステップS202にて、trakから、RAWの情報を収めたtrakの検索を行う。この中からRAWの情報を含めたtrakを見つけるために、CPU131は、図2のtrak1,trak2,trak3それぞれのmdiaチャンクの情報を調べる。この結果、trak3がRAWデータの情報を含んだtrakであることがわかる。そこで、CPU131は、trak3のstcoまたはco64と、stszの情報を読み取り(S203)、これらの情報に基づいて、ステップS204にて、記録再生部171を介して動画ファイルに含まれるRAWデータを読み出す(抽出する)。ここで、CPU131は、記録再生部171を介して、動画ファイルからRAWデータを抽出するRAWデータ抽出手段として機能している。
The processing in FIG. 6 is a flow for performing development using RAW data of a moving image file, which is executed by the CPU 131 controlling each unit.
First, in step S201, the CPU 131 instructs the recording / playback unit 171 to read the moov atom of the moving image file including the RAW data recorded on the recording medium 173. In step S202, a search for trak containing RAW information is performed from trak. In order to find the trak including the RAW information from among them, the CPU 131 checks the information on the mdia chunks of trak1, trak2, and trak3 in FIG. As a result, it can be seen that trak3 is a trak including RAW data information. Therefore, the CPU 131 reads information about stk or co64 of trak3 and stsz (S203), and reads RAW data included in the moving image file via the recording / playback unit 171 based on the information (step S204) (step S204). Extract). Here, the CPU 131 functions as a RAW data extraction unit that extracts RAW data from a moving image file via the recording / playback unit 171.

次に、映像信号処理部121により、読み出されたRAWデータを順次現像処理する(ステップS205)。この際、現像のための処理パラメータをユーザが任意に設定できるようにしてもよい。映像信号処理部121は、現像した動画データを圧縮せずに、或いは、H.264に従って圧縮して、メモリ132に記憶する。記録再生部171は、メモリ132から、現像された動画データを読み出し、元の動画ファイルとは別のファイルとして記録媒体173に記録する。この場合、元の動画ファイルと関連を示す情報を、現像された動画データのファイルに付加していてもよい。   Next, the read out raw data is sequentially developed by the video signal processing unit 121 (step S205). At this time, the user may arbitrarily set processing parameters for development. The video signal processing unit 121 does not compress the developed moving image data. Compressed according to H.264 and stored in the memory 132. The recording / playback unit 171 reads the developed moving image data from the memory 132 and records it on the recording medium 173 as a file different from the original moving image file. In this case, information indicating the relationship with the original moving image file may be added to the developed moving image data file.

また、現像処理されたRAWデータを含む動画ファイルに対し、現像処理済みであることを示す付加情報を付加してもよい。そして、次回のサムネイル画像の表示の際に、この付加情報に基づき、現像済みのRAWデータを含む動画ファイルのサムネイルに対し、現像済みを示す情報を付加して表示するようにしてもよい。このようにすることで、ユーザは、各動画ファイルに含まれるRAW形式の動画データが現像済みであるか否かを容易に認識することが可能となる。   Further, additional information indicating that the development process has been completed may be added to the moving image file including the developed RAW data. Then, when the thumbnail image is displayed next time, based on the additional information, information indicating that the image has been developed may be added to the thumbnail of the moving image file including the developed RAW data. In this way, the user can easily recognize whether or not the RAW format moving image data included in each moving image file has been developed.

<動画ファイルからRAWデータを削除>
次に、図7と図8を参照して、本実施形態に係る、動画ファイルからRAWデータを削除する処理動作について説明する。本処理動作も、現像処理動作と同様に、インデックス画面に対してタッチパネルにより画像選択操作およびRAWデータの削除指示を行うことによって行われる。
<Delete RAW data from video file>
Next, a processing operation for deleting RAW data from a moving image file according to the present embodiment will be described with reference to FIGS. Similar to the development processing operation, this processing operation is also performed by performing an image selection operation and RAW data deletion instruction on the index screen using the touch panel.

図7は、図4で説明した記録媒体のクラスタと記録された動画ファイルのデータの配置関係において、図8のフローチャートに従ってRAWデータを削除する処理動作が行われたときの上記配置関係を示す図である。本処理動作により、mdatの実データが記録されているクラスタデータを変更することなく、FATチェーン(図4のFATのデータ)を再構成するだけでRAWデータを削除することが可能となる。   FIG. 7 is a diagram showing the arrangement relationship when the processing operation for deleting RAW data is performed according to the flowchart of FIG. 8 in the arrangement relationship between the recording medium cluster and the recorded moving image file data described in FIG. It is. With this processing operation, it is possible to delete the RAW data simply by reconfiguring the FAT chain (FAT data in FIG. 4) without changing the cluster data in which the actual data of mdat is recorded.

図8の処理はCPU131が各部を制御することにより実行される、動画ファイルからRAWデータの削除を行うフローである。
まずステップS301にて、CPU131は記録再生部171に対し、記録媒体173に記録されている、削除が指示されたRAWデータを含んだ動画ファイルのmoovアトムを読み取ることを指示する。ステップS302にて、trakから、RAWデータの情報を収めたtrakの検索を行う。このときCPU131は、先述のようにmdiaの情報を調べることによって検索を行う。RAWデータの情報を含んだtrak3が見つかり、CPU131は、stcoまたはco64と、stszの情報を読み取る(ステップS303)。
The process of FIG. 8 is a flow for deleting RAW data from a moving image file, which is executed by the CPU 131 controlling each unit.
First, in step S301, the CPU 131 instructs the recording / playback unit 171 to read the moov atom of the moving image file including the RAW data instructed to be deleted, recorded in the recording medium 173. In step S302, a search for a trak containing RAW data information is performed from the trak. At this time, the CPU 131 performs a search by examining the information of mdia as described above. The trak3 including the RAW data information is found, and the CPU 131 reads stco or co64 and stsz information (step S303).

ステップS304にて、CPU131は、RAWデータのstcoまたはco64、およびstszが示すRAWデータの位置情報と、動画ファイルのFAT情報から、RAWデータが配置されているFATチェーンを特定する。stcoまたはco64から、動画ファイルの先頭からのオフセットがわかるので、CPU131は、動画ファイルの先頭からオフセット位置までFATチェーンをたどり、RAWデータの開始位置であるFATを特定する。また、stszからRAWデータのサイズがわかるので、CPU131は、FATチェーンをたどってRAWデータの終了位置であるFATを特定する。このとき、RAWデータはパディングを使ってクラスタの終端に合わせこまれているので、開始位置から終了位置までのFATチェーン(一連のクラスタ)が、そのまま削除対象となる。   In step S304, the CPU 131 identifies the FAT chain in which the RAW data is arranged from the RAW data position information indicated by stco or co64 of the RAW data and the RAW data indicated by stsz and the FAT information of the moving image file. Since the offset from the beginning of the moving image file is known from stco or co64, the CPU 131 follows the FAT chain from the beginning of the moving image file to the offset position, and specifies the FAT that is the starting position of the RAW data. Further, since the size of the RAW data can be known from stsz, the CPU 131 follows the FAT chain and identifies the FAT that is the end position of the RAW data. At this time, since the RAW data is aligned with the end of the cluster by using padding, the FAT chain (a series of clusters) from the start position to the end position is directly deleted.

ステップS305にて、CPU131は、FAT(管理テーブル)を操作し、RAWデータとパディングが記録されているクラスタを、ファイルから切り離す。具体的には、図7にて、クラスタ6とクラスタ7に記録されているRAWデータとパディングをファイルから切り離すために、FATのクラスタ5のデータを”0006”から”0008”に変更する。そして、FATのクラスタ6および7のデータを”0000”に変更する。これにより、FATの上ではクラスタ5の次のデータはクラスタ8となり、RAWデータとパディングが切り離される。この操作をすべてのRAWデータに対して行い、図7に示すように、クラスタ10および11、クラスタ14および15も、FATの再構成によって切り離される。   In step S305, the CPU 131 operates the FAT (management table) to separate the cluster in which the RAW data and the padding are recorded from the file. Specifically, in FIG. 7, in order to separate the RAW data and padding recorded in cluster 6 and cluster 7 from the file, the data of FAT cluster 5 is changed from “0006” to “0008”. Then, the data of the FAT clusters 6 and 7 is changed to “0000”. As a result, on the FAT, the data next to the cluster 5 becomes the cluster 8, and the RAW data and the padding are separated. This operation is performed on all the RAW data, and as shown in FIG. 7, the clusters 10 and 11 and the clusters 14 and 15 are also separated by the FAT reconfiguration.

ステップS306にて、CPU131は、動画ファイルのサイズ情報を更新する。具体的には、図7にて、”MVI_0001.MOV”動画ファイルのディレクトリエントリのサイズ情報を更新し、FATの操作で切り離したFATチェーンのサイズを反映させる。図7の例において、サイズは12から6に変更される。   In step S306, CPU 131 updates the size information of the moving image file. Specifically, in FIG. 7, the size information of the directory entry of the “MVI — 0001.MOV” moving image file is updated to reflect the size of the FAT chain separated by the FAT operation. In the example of FIG. 7, the size is changed from 12 to 6.

ステップS307にて、CPU131は、moovアトムからステップS302で検索した、RAWデータの管理情報を収めたtrak3を削除する。ステップS308にて、CPU131は、更新したFATチェーンとディレクトリエントリ、およびmoovアトムを記録媒体173に書き戻す。   In step S307, the CPU 131 deletes trak3 containing the management information of the RAW data retrieved from the moov atom in step S302. In step S308, the CPU 131 writes the updated FAT chain, directory entry, and moov atom back to the recording medium 173.

以上の実施形態では、RAWデータを含む動画ファイルを作成し、現像し、動画ファイルからRAWデータを削除することが可能となる。さらに、RAWデータを削除する際、mdatの実データが記録されているクラスタデータを変更せずにRAWデータが削除できるため、記録媒体173へのアクセスが減り、削除処理をより素早く行うことができる。   In the above embodiment, a moving image file including RAW data can be created and developed, and RAW data can be deleted from the moving image file. Furthermore, when deleting RAW data, the RAW data can be deleted without changing the cluster data in which the actual data of mdat is recorded. Therefore, access to the recording medium 173 is reduced, and the deletion process can be performed more quickly. .

次に、上述した第1の実施形態の変形例を、図9を用いて説明する。第1の実施形態では、動画ファイルの符号化データとRAWデータの記録領域の制御を、一つのクラスタからなる所定の単位領域に基づいて行ったが、本変形例は、複数(所定数)のクラスタからなる所定の単位領域に基づいて行う点で第1の実施形態と異なる。本変形例における撮像装置の構成およびその処理動作のフローチャートは第1の実施形態と同様であるので、ここでの説明は特に必要がない限り省略する。   Next, a modification of the first embodiment described above will be described with reference to FIG. In the first embodiment, the encoded data of the moving image file and the recording area of the RAW data are controlled based on a predetermined unit area made up of one cluster. This is different from the first embodiment in that the processing is performed based on a predetermined unit area composed of clusters. Since the configuration of the imaging apparatus and the flowchart of the processing operation in the present modification are the same as those in the first embodiment, the description here is omitted unless particularly necessary.

前述のように、本変形例では、RAWデータを含む動画ファイルの記録および記録したRAWデータの削除のときのデータ記録領域の制御を、複数のスタから成る所定の領域を単位として制御する動画ファイルの記録構成を示す。即ち、本発明は、ファイルシステムが記録媒体の記録領域を区分して管理するときの単位の少なくとも一つからなる所定の単位領域のいずれについても適用可能である。本変形例では、記録媒体173であるSDカードにスピードクラスで動画ファイルを記録する場合において、所定の単位領域が3つのクラスタから成る場合を例にして、動画ファイルの記録構成を説明する。   As described above, in this modification, the moving image file that controls the recording of the moving image file including the RAW data and the control of the data recording area at the time of deleting the recorded RAW data in units of a predetermined area including a plurality of stars. The recording configuration of is shown. That is, the present invention can be applied to any of predetermined unit areas including at least one unit when the file system divides and manages the recording area of the recording medium. In the present modification, when a moving image file is recorded in the speed class on an SD card, which is the recording medium 173, the recording configuration of the moving image file will be described by taking as an example a case where a predetermined unit area is composed of three clusters.

撮像装置に含まれるメモリ132は有限の大きさなので、動画記録においては、一定時間以内に動画データを記録媒体173に書き込み、メモリ132がいっぱいにならないようにする必要がある。これを実現する方法として、記録媒体がSDカードのとき、SDカードの規格であるスピードクラス書き込みを行うことによって、SDカード上に書き込む速度を保障させる方法がある。   Since the memory 132 included in the imaging apparatus has a finite size, in moving image recording, it is necessary to write moving image data to the recording medium 173 within a certain time so that the memory 132 does not become full. As a method for realizing this, when the recording medium is an SD card, there is a method of guaranteeing a writing speed on the SD card by performing speed class writing which is a standard of the SD card.

スピードクラス書き込みでは、AUと呼ばれる書き込み単位で書き込みを行う。AUは、複数の連続するクラスタで構成される。一度に書き込む量がAUに満たない場合、次の書き込みをAUの途中から始めてしまうと、スピードクラスの条件を満たさず、SDカードに書き込む速度は保障されない。スピードクラス書き込みは、1回の書き込みをAUの境界まで行うことで、実現される。   In speed class writing, writing is performed in a writing unit called AU. The AU is composed of a plurality of continuous clusters. If the amount to be written at one time is less than AU, if the next writing is started from the middle of AU, the speed class condition is not satisfied and the writing speed to the SD card is not guaranteed. Speed class writing is realized by performing one writing to the AU boundary.

図9は、本変形例に従って、生成した動画ファイルをスピードクラス書き込みを行ってFATファイルシステムに従って記録媒体(SDカード)173に記録した場合の、クラスタと動画ファイのデータの配置関係の例を示す図である。   FIG. 9 shows an example of the arrangement relationship between the cluster and the moving image file data when the generated moving image file is recorded in the recording medium (SD card) 173 according to the FAT file system by performing speed class writing according to the present modification. FIG.

動画作成のフローを、図5を引用して説明する。動画作成のフローは、第一の実施形態では、ステップS109のとき、パディングする量が、クラスタ境界までであったが、本変形例では、パディングをAU境界(クラスタの境界でもある)まで行う。   The flow of creating a moving image will be described with reference to FIG. In the first embodiment, in the first embodiment, the padding amount is up to the cluster boundary at step S109. In this modification, the padding is performed up to the AU boundary (also the cluster boundary).

図5の動画作成のフローにおいて、ステップS105で記録媒体173への書き込みタイミングであると判断すると、音声データと動画データを書き込み、クラスタ境界までパディングを行う。ステップS108にて、RAWデータを書き込んだら、ステップS109では、パディングをAU境界まで行う。   In the moving image creation flow of FIG. 5, if it is determined in step S105 that the writing timing to the recording medium 173 is reached, the audio data and moving image data are written and padding is performed up to the cluster boundary. After the RAW data is written in step S108, padding is performed up to the AU boundary in step S109.

これにより、次にステップS105で記録媒体173への書き込みタイミングであると判断し、音声データと動画データを書き込むときに、AUの境界から書き込みを開始することができ、スピードクラス書き込みを実現することが出来る。つまり、SDカードに書き込む速度を保障できる。   As a result, it is determined that it is time to write to the recording medium 173 in step S105, and when writing audio data and moving image data, writing can be started from the AU boundary, and speed class writing can be realized. I can do it. That is, the writing speed on the SD card can be guaranteed.

スピードクラス書き込みで作成する動画ファイルは、図9で示すように、パディングの量が多くなり、ファイルサイズが大きくなる。図4と図9では、同じデータを書き込んでいるが、サイズが図9の方が大きい。ただし、本変形例で作成される動画ファイルは、クラスタ境界にRAWデータおよびパディングが合っており、現像時の処理は、第1の実施形態と同様の方法で実施できる。   As shown in FIG. 9, a moving image file created by speed class writing has a large amount of padding and a large file size. 4 and 9, the same data is written, but the size of FIG. 9 is larger. However, the moving image file created in this modification has RAW data and padding that match the cluster boundaries, and the processing at the time of development can be performed by the same method as in the first embodiment.

RAWデータの削除は、第1の実施形態と同様に、RAWデータとパディングの領域をFATチェーンから切り離し、RAWデータのtrakをmoovから削除する。このとき、FATチェーンから切り離すパディングの量は、クラスタ境界ではなくAU境界で計算する。   As in the first embodiment, the RAW data is deleted by separating the RAW data and the padding area from the FAT chain and deleting the RAW data trak from the moov. At this time, the amount of padding to be separated from the FAT chain is calculated not at the cluster boundary but at the AU boundary.

以上、本変形例によれば、SDに書き込む速度を保障するために、RAWデータを含む動画ファイルを、スピードクラス書き込みで作成した場合でも、現像などの処理や、動画ファイルからRAWデータを削除することが容易となる。   As described above, according to the present modification, even when a moving image file including RAW data is created by speed class writing in order to guarantee the writing speed to the SD, processing such as development or RAW data is deleted from the moving image file. It becomes easy.

以上、本発明の記録装置を撮像装置100に適用した例について述べたが、本発明の記録装置はコンピュータなどの情報処理装置にも適用可能である。   The example in which the recording apparatus of the present invention is applied to the imaging apparatus 100 has been described above, but the recording apparatus of the present invention can also be applied to an information processing apparatus such as a computer.

また、上記第1の実施形態およびその変形例は、動画データとRAWデータを含む画像ファイルを記録媒体に記録する場合を例にして説明したが、これに限られるものではない。静止画の符号化データとRAWデータを含む画像ファイル、あるいは動画データ、動画撮影中に撮影された静止画のデータおよびRAWデータを含む画像ファイルを記録媒体に記録する場合に適用してもよい。   In the first embodiment and its modification, the case where an image file including moving image data and RAW data is recorded on a recording medium has been described as an example. However, the present invention is not limited to this. The present invention may be applied to a case where an image file including still image encoded data and RAW data, or moving image data, an image file including still image data and RAW data captured during moving image shooting, is recorded on a recording medium.

また、本発明の目的は、前述した実施形態の機能を実現するソフトウェアのプログラムコードを記録した記憶媒体を、システム或いは装置に供給することによっても達成される。すなわち、そのシステム或いは装置のコンピュータ(またはCPUやMPU)が記憶媒体に格納されたプログラムコードを読み出し実行することによっても本件発明の目的が達成されることは言うまでもない。   The object of the present invention can also be achieved by supplying a storage medium storing software program codes for realizing the functions of the above-described embodiments to a system or apparatus. That is, it goes without saying that the object of the present invention can also be achieved when the computer (or CPU or MPU) of the system or apparatus reads and executes 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 program code itself and the storage medium storing the program code constitute the present invention.

プログラムコードを供給するための記憶媒体としては、例えば、フレキシブルディスク、ハードディスク、光ディスク、光磁気ディスク、CD−ROM、CD−R、磁気テープ、不揮発性のメモリカード、ROM等を用いることができる。   As a storage medium for supplying the program code, for example, a flexible disk, a hard disk, an optical disk, a magneto-optical disk, a CD-ROM, a CD-R, a magnetic tape, a nonvolatile memory card, a ROM, or the like can be used.

また、コンピュータが読み出したプログラムコードの指示に基づき、コンピュータ上で稼動しているOS(基本システム或いはオペレーティングシステム)などが実際の処理の一部又は全部を行うことによっても前述した実施形態の機能が実現される。この場合も本件発明に含まれることは言うまでもない。   In addition, the functions of the above-described embodiment can also be realized when an OS (basic system or operating system) operating on the computer performs part or all of the actual processing based on the instruction of the program code read by the computer. Realized. Needless to say, this case is also included in the present invention.

さらに、記憶媒体から読み出されたプログラムコードが、コンピュータに挿入された機能拡張ボードやコンピュータに接続された機能拡張ユニットに備わるメモリに書込まれた後、そのプログラムコードの指示に基づく処理も本件発明に含まれる。すなわち、機能拡張ボードや機能拡張ユニットに備わるCPU等がプログラムコードの指示に基づき実際の処理の一部又は全部を行って前述した実施形態の機能を実現する場合も本件発明に含まれることは言うまでもない。   Furthermore, after the program code read from the storage medium is written to the memory provided in the function expansion board inserted in the computer or the function expansion unit connected to the computer, the processing based on the instruction of the program code is also performed. Included in the invention. That is, it goes without saying that the present invention also includes the case where the CPU or the like provided in the function expansion board or function expansion unit performs part or all of the actual processing based on the instruction of the program code to realize the functions of the above-described embodiment. Yes.

上記実施形態は、何れも本発明を実施するにあたっての具体化の例を示したものに過ぎず、これらによって本発明の技術的範囲が限定的に解釈されてはならないものである。すなわち、本発明はその技術思想、またはその主要な特徴から逸脱することなく、様々な形で実施することができる。   The above-described embodiments are merely examples of implementation in carrying out the present invention, and the technical scope of the present invention should not be construed as being limited thereto. That is, the present invention can be implemented in various forms without departing from the technical idea or the main features thereof.

Claims (14)

動画像のRAWデータを取得するRAWデータ取得手段と、
前記RAWデータに現像処理を行って動画データを生成する現像手段と、
前記動画データを符号化する符号化手段と、
記録媒体の記録領域を複数の所定の記録領域に区分して管理する所定のファイルシステムに従って、前記符号化手段により符号化された動画データを含む第1のデータおよび前記RAWデータを含む第2のデータを、一つの画像ファイルに格納して前記記録媒体に記録する手段であって、所定量の前記符号化された動画データ及び前記RAWデータを1回の書き込みの単位として前記記録媒体に記録する制御を行う記録制御手段と、
を備え、
前記記録制御手段は、1回の書き込みにより記録される前記第1のデータと前記第2のデータとをそれぞれ、前記所定の記録領域の少なくとも一つからなる所定の単位領域の先頭から記録することを特徴とする記録装置。
RAW data acquisition means for acquiring RAW data of moving images;
Developing means for developing moving image data by developing the RAW data;
Encoding means for encoding the moving image data;
In accordance with a predetermined file system for dividing and managing the recording area of the recording medium into a plurality of predetermined recording areas, the first data including the moving image data encoded by the encoding means and the second including the RAW data A means for storing data in a single image file and recording it on the recording medium, wherein a predetermined amount of the encoded moving image data and the RAW data are recorded on the recording medium as a single writing unit. Recording control means for controlling,
With
The recording control means records the first data and the second data recorded by one writing from the beginning of a predetermined unit area composed of at least one of the predetermined recording areas. A recording apparatus.
前記所定のファイルシステムは、前記複数の所定の記録領域の管理テーブルを有し、前記記録制御手段は、前記記録媒体に記録された画像ファイルに格納されたRAWデータの削除指示に応じて、前記削除が指示されたRAWデータを含む前記第2のデータの記録領域に係わる前記所定の記録領域を未記録の領域とするように前記管理テーブルを変更することにより、前記削除を指示されたRAWデータを、前記削除が指示されたRAWデータを含む画像ファイルから削除することを特徴とする請求項1に記載の記録装置。   The predetermined file system includes a management table of the plurality of predetermined recording areas, and the recording control unit is configured to delete the RAW data stored in the image file recorded on the recording medium according to an instruction to delete the RAW data. The RAW data instructed to be deleted by changing the management table so that the predetermined recording area related to the recording area of the second data including the RAW data instructed to be deleted is an unrecorded area. The recording apparatus according to claim 1, wherein the recording device is deleted from an image file including the RAW data instructed to be deleted. 前記画像ファイルに格納される前記第1のデータと前記第2のデータに関する管理情報を生成する手段を備え、
前記記録制御手段は、前記管理情報を前記画像ファイルに格納して前記記録媒体に記録し、前記削除指示に応じて、前記画像ファイルに格納された前記管理情報のうち、前記削除を指示されたRAWデータを含む前記第2のデータに関する前記管理情報を前記画像ファイルから削除することを特徴とする請求項1に記載の記録装置。
Means for generating management information relating to the first data and the second data stored in the image file;
The recording control means stores the management information in the image file and records it on the recording medium, and is instructed to delete the management information stored in the image file in response to the deletion instruction. The recording apparatus according to claim 1, wherein the management information related to the second data including RAW data is deleted from the image file.
前記管理情報は、前記画像ファイルにおける、前記第1のデータの位置と前記第2のデータの位置に関する位置情報を含むことを特徴とする請求項3に記載の記録装置。   The recording apparatus according to claim 3, wherein the management information includes position information related to a position of the first data and a position of the second data in the image file. 前記管理情報は、前記第1のデータに関する情報を含む第1のトラックと、前記第2のデータに関する第2のトラックとを含み、前記記録制御手段は、前記削除指示に応じて、前記第2のトラックを前記画像ファイルから削除することを特徴とする請求項3に記載の記録装置。   The management information includes a first track including information related to the first data and a second track related to the second data, and the recording control means responds to the deletion instruction in response to the second instruction. The recording apparatus according to claim 3, wherein the track is deleted from the image file. 前記画像ファイルにおける、前記第1のデータの位置と前記第2のデータの位置に関する位置情報を含む管理情報を生成する手段を備え、
前記記録制御手段は、前記管理情報を前記画像ファイルに格納して前記記録媒体に記録し、前記記録媒体に記録された画像ファイルに含まれるRAWデータの現像指示に応じて、前記現像指示に対応する画像ファイルから、前記位置情報に基づいてRAWデータを読み出し、前記現像手段は前記読み出されたRAWデータに現像処理を行うことにより現像された動画データを生成することを特徴とする請求項1に記載の記録装置。
Means for generating management information including position information regarding the position of the first data and the position of the second data in the image file;
The recording control means stores the management information in the image file and records it on the recording medium, and responds to the development instruction in response to a development instruction for RAW data included in the image file recorded on the recording medium. 2. The apparatus according to claim 1, wherein RAW data is read from the image file to be processed based on the position information, and the developing means generates developed moving image data by performing development processing on the read RAW data. The recording device described in 1.
前記記録制御手段は、前記現像手段からの前記現像された動画データを含むファイルを前記記録媒体に記録し、前記現像された動画データを含むファイルは、前記現像された動画データを含む画像ファイルとの関連を示す情報を含むことを特徴とする請求項4に記載の記録装置。   The recording control unit records a file including the developed moving image data from the developing unit on the recording medium, and the file including the developed moving image data includes an image file including the developed moving image data; The recording apparatus according to claim 4, further comprising information indicating a relationship between the recording apparatus and the recording apparatus. 前記所定の単位領域は、一つの前記所定の記録領域からなることを特徴とする請求項1から5のいずれか1項に記載の記録装置。   The recording apparatus according to claim 1, wherein the predetermined unit area includes one predetermined recording area. 前記所定の単位領域は、所定数の前記所定の記録領域からなり、前記記録媒体の書き込み単位に等しいことを特徴とする請求項1から8のいずれか1項に記載の記録装置。   9. The recording apparatus according to claim 1, wherein the predetermined unit area includes a predetermined number of the predetermined recording areas and is equal to a writing unit of the recording medium. 前記第1のデータは、前記符号化された動画データと、音声データとを有することを特徴とする請求項1に記載の記録装置。   The recording apparatus according to claim 1, wherein the first data includes the encoded moving image data and audio data. 動画像のRAWデータを取得するRAWデータ取得ステップと、
前記RAWデータに現像処理を行って動画データを生成する現像ステップと、
前記動画データを符号化する符号化ステップと、
記録媒体の記録領域を複数の所定の記録領域に区分して管理する所定のファイルシステムに従って、前記符号化ステップで符号化された動画データを含む第1のデータおよび前記RAWデータを含む第2のデータを、一つの画像ファイルに格納して前記記録媒体に記録するステップであって、所定量の前記符号化された動画データ及び前記RAWデータを1回の書き込みの単位として前記記録媒体に記録する制御を行う記録制御ステップと、
を備え、
前記記録制御ステップは、1回の書き込みにより記録される前記第1のデータと前記第2のデータとをそれぞれ、前記所定の記録領域の少なくとも一つからなる所定の単位領域の先頭から記録するステップを有することを特徴とする記録方法。
RAW data acquisition step for acquiring RAW data of a moving image;
A development step of performing development processing on the raw data to generate moving image data;
An encoding step of encoding the moving image data;
In accordance with a predetermined file system that divides and manages a recording area of the recording medium into a plurality of predetermined recording areas, a first data including the moving image data encoded in the encoding step and a second including the RAW data A step of storing data in one image file and recording it on the recording medium, wherein a predetermined amount of the encoded moving image data and the RAW data are recorded on the recording medium as a unit of writing once. A recording control step for performing control;
With
The recording control step is a step of recording the first data and the second data recorded by one writing from the beginning of a predetermined unit area including at least one of the predetermined recording areas. A recording method characterized by comprising:
記録装置を制御するプログラムであり、
コンピュータを、
動画像のRAWデータを取得するRAWデータ取得手段、
前記RAWデータに現像処理を行って動画データを生成する現像手段、
前記動画データを符号化する符号化手段、
記録媒体の記録領域を複数の所定の記録領域に区分して管理する所定のファイルシステムに従って、前記符号化手段により符号化された動画データを含む第1のデータおよび前記RAWデータを含む第2のデータを、一つの画像ファイルに格納して前記記録媒体に記録する手段であって、所定量の前記符号化された動画データ及び前記RAWデータを1回の書き込みの単位として前記記録媒体に記録する制御を行い、1回の書き込みにより記録される前記第1のデータと前記第2のデータとをそれぞれ、前記所定の記録領域の少なくとも一つからなる所定の単位領域の先頭から記録する記録制御手段として機能させるプログラム。
A program for controlling a recording device,
Computer
RAW data acquisition means for acquiring RAW data of moving images;
Developing means for generating moving image data by developing the raw data;
Encoding means for encoding the moving image data;
In accordance with a predetermined file system for dividing and managing the recording area of the recording medium into a plurality of predetermined recording areas, the first data including the moving image data encoded by the encoding means and the second including the RAW data A means for storing data in a single image file and recording it on the recording medium, wherein a predetermined amount of the encoded moving image data and the RAW data are recorded on the recording medium as a single writing unit. Recording control means for performing control and recording each of the first data and the second data recorded by one writing from a head of a predetermined unit area including at least one of the predetermined recording areas Program to function as.
請求項12に記載のプログラムを記憶するコンピュータで読み取り可能な記憶媒体。   A computer-readable storage medium storing the program according to claim 12. 被写体の光学像を撮像して画像信号を出力する撮像手段と、
前記撮像手段が出力する画像信号からRAWデータを生成する生成手段と、
前記RAWデータに現像処理を行って動画データを生成する現像手段と、
前記動画データを符号化する符号化手段と、
記録媒体の記録領域を複数の所定の記録領域に区分して管理する所定のファイルシステムに従って、前記符号化手段により符号化された動画データを含む第1のデータおよび前記RAWデータを含む第2のデータを、一つの画像ファイルに格納して前記記録媒体に記録する手段であって、所定量の前記符号化された動画データ及び前記RAWデータを1回の書き込みの単位として前記記録媒体に記録する制御を行う記録制御手段と、
を備え、
前記記録制御手段は、1回の書き込みにより記録される前記第1のデータと前記第2のデータとをそれぞれ、前記所定の記録領域の少なくとも一つからなる所定の単位領域の先頭から記録することを特徴とする撮像装置。
Imaging means for capturing an optical image of a subject and outputting an image signal;
Generating means for generating RAW data from an image signal output by the imaging means;
Developing means for developing moving image data by developing the RAW data;
Encoding means for encoding the moving image data;
In accordance with a predetermined file system for dividing and managing the recording area of the recording medium into a plurality of predetermined recording areas, the first data including the moving image data encoded by the encoding means and the second including the RAW data A means for storing data in a single image file and recording it on the recording medium, wherein a predetermined amount of the encoded moving image data and the RAW data are recorded on the recording medium as a single writing unit. Recording control means for controlling,
With
The recording control means records the first data and the second data recorded by one writing from the beginning of a predetermined unit area composed of at least one of the predetermined recording areas. An imaging apparatus characterized by the above.
JP2014034182A 2014-02-25 2014-02-25 RECORDING DEVICE, RECORDING METHOD, PROGRAM, AND IMAGING DEVICE Active JP6278353B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2014034182A JP6278353B2 (en) 2014-02-25 2014-02-25 RECORDING DEVICE, RECORDING METHOD, PROGRAM, AND IMAGING DEVICE

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2014034182A JP6278353B2 (en) 2014-02-25 2014-02-25 RECORDING DEVICE, RECORDING METHOD, PROGRAM, AND IMAGING DEVICE

Publications (3)

Publication Number Publication Date
JP2015159484A true JP2015159484A (en) 2015-09-03
JP2015159484A5 JP2015159484A5 (en) 2017-03-30
JP6278353B2 JP6278353B2 (en) 2018-02-14

Family

ID=54183175

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2014034182A Active JP6278353B2 (en) 2014-02-25 2014-02-25 RECORDING DEVICE, RECORDING METHOD, PROGRAM, AND IMAGING DEVICE

Country Status (1)

Country Link
JP (1) JP6278353B2 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017002328A1 (en) * 2015-06-29 2017-01-05 Canon Kabushiki Kaisha Data recording apparatus and method of controlling the same, and image capture apparatus
JP2020021998A (en) * 2018-07-30 2020-02-06 キヤノン株式会社 Image processing device, image processing method, and program

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH07274108A (en) * 1994-03-31 1995-10-20 Fuji Photo Film Co Ltd Digital electronic still camera and recording method into memory card
JP2003244507A (en) * 2002-02-20 2003-08-29 Fuji Photo Film Co Ltd Digital camera
JP2008301286A (en) * 2007-05-31 2008-12-11 Canon Inc Imaging apparatus and control method thereof
JP2009147832A (en) * 2007-12-17 2009-07-02 Samsung Techwin Co Ltd Moving image recording apparatus, moving image reproduction apparatus, and program
JP2009147549A (en) * 2007-12-12 2009-07-02 Samsung Techwin Co Ltd Moving image recording apparatus, moving image reproducing apparatus and program
JP2010009205A (en) * 2008-06-25 2010-01-14 Nikon Corp Recording control device
JP2010021710A (en) * 2008-07-09 2010-01-28 Nikon Corp Imaging device, image processor, and program

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH07274108A (en) * 1994-03-31 1995-10-20 Fuji Photo Film Co Ltd Digital electronic still camera and recording method into memory card
JP2003244507A (en) * 2002-02-20 2003-08-29 Fuji Photo Film Co Ltd Digital camera
JP2008301286A (en) * 2007-05-31 2008-12-11 Canon Inc Imaging apparatus and control method thereof
JP2009147549A (en) * 2007-12-12 2009-07-02 Samsung Techwin Co Ltd Moving image recording apparatus, moving image reproducing apparatus and program
JP2009147832A (en) * 2007-12-17 2009-07-02 Samsung Techwin Co Ltd Moving image recording apparatus, moving image reproduction apparatus, and program
JP2010009205A (en) * 2008-06-25 2010-01-14 Nikon Corp Recording control device
JP2010021710A (en) * 2008-07-09 2010-01-28 Nikon Corp Imaging device, image processor, and program

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017002328A1 (en) * 2015-06-29 2017-01-05 Canon Kabushiki Kaisha Data recording apparatus and method of controlling the same, and image capture apparatus
JP2017017447A (en) * 2015-06-29 2017-01-19 キヤノン株式会社 Data recording apparatus, control method of the same, and imaging apparatus
US10362262B2 (en) 2015-06-29 2019-07-23 Canon Kabushiki Kaisha Data recording apparatus and method of controlling the same
JP2020021998A (en) * 2018-07-30 2020-02-06 キヤノン株式会社 Image processing device, image processing method, and program
JP7222627B2 (en) 2018-07-30 2023-02-15 キヤノン株式会社 Image processing device, image processing method, and program

Also Published As

Publication number Publication date
JP6278353B2 (en) 2018-02-14

Similar Documents

Publication Publication Date Title
JP4416606B2 (en) Display control apparatus, display control method, program, and storage medium
US8165455B2 (en) Data processing apparatus and data processing method, and computer program
WO2014141637A1 (en) Imaging apparatus and imaging apparatus control method
JP2013258510A (en) Imaging device, and method and program of controlling the same
JP2012161048A (en) Imaging apparatus
GB2491948A (en) Different high speed image data reproduction modes with preset frame intervals or intervals based on frame rate (fps)
JP2016167788A (en) Moving image recorder
JP6278353B2 (en) RECORDING DEVICE, RECORDING METHOD, PROGRAM, AND IMAGING DEVICE
JP2012156587A (en) Video recording device
JP2014096766A (en) Recording apparatus and recording method
US9197815B2 (en) Image management apparatus and image management method
JP5713701B2 (en) Movie recording device
JP2005303336A (en) Video signal recording apparatus and video signal reproducing apparatus
JP2015023317A5 (en) Image management apparatus, image management method, program, and storage medium
US10410674B2 (en) Imaging apparatus and control method for combining related video images with different frame rates
JP2022095374A (en) Moving image file creation device, creation method for the same, and program
JP2008113111A (en) Recording device
JP6218489B2 (en) Image processing device
JP5511739B2 (en) Recording apparatus and recording method
JP5889459B2 (en) Recording device
JP6395532B2 (en) Image recording apparatus and method, and program
JP2015029211A (en) Imaging device
JP2021180396A (en) Imaging apparatus and method for controlling imaging apparatus
JP2020170998A (en) Image processing apparatus, imaging apparatus, image processing method, and program
JP2010011416A (en) Imaging apparatus

Legal Events

Date Code Title Description
A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20170223

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20170223

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20171207

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

RD05 Notification of revocation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7425

Effective date: 20171214

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20180109

R151 Written notification of patent or utility model registration

Ref document number: 6278353

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151

RD04 Notification of resignation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7424

Effective date: 20180126