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
JP5811076B2 - Movie recording apparatus, movie recording method, and program - Google Patents
[go: Go Back, main page]

JP5811076B2 - Movie recording apparatus, movie recording method, and program - Google Patents

Movie recording apparatus, movie recording method, and program Download PDF

Info

Publication number
JP5811076B2
JP5811076B2 JP2012262521A JP2012262521A JP5811076B2 JP 5811076 B2 JP5811076 B2 JP 5811076B2 JP 2012262521 A JP2012262521 A JP 2012262521A JP 2012262521 A JP2012262521 A JP 2012262521A JP 5811076 B2 JP5811076 B2 JP 5811076B2
Authority
JP
Japan
Prior art keywords
image data
frame
image
compression
recording apparatus
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
JP2012262521A
Other languages
Japanese (ja)
Other versions
JP2014110446A (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.)
Casio Computer Co Ltd
Original Assignee
Casio Computer Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Casio Computer Co Ltd filed Critical Casio Computer Co Ltd
Priority to JP2012262521A priority Critical patent/JP5811076B2/en
Publication of JP2014110446A publication Critical patent/JP2014110446A/en
Application granted granted Critical
Publication of JP5811076B2 publication Critical patent/JP5811076B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Signal Processing For Digital Recording And Reproducing (AREA)
  • Television Signal Processing For Recording (AREA)
  • Studio Devices (AREA)
  • Compression Or Coding Systems Of Tv Signals (AREA)

Description

本発明は、動画記録装置、動画記録方法及びプログラムに関する。   The present invention relates to a moving image recording apparatus, a moving image recording method, and a program.

従来、動画データ等を記録する際に、同じ画像データが連続する場合に、連続する画像データの個数を記録することで画像データを圧縮する技術が知られている(例えば、特許文献1参照)。また、動画像データを圧縮しながら記録媒体にストリーム記録する際に、作業用メモリ上に書込み中のデータがある場合には、ダミーカウンタを1つ加算しておき、書込みが終了した時点でダミーカウンタ分のダミーフレームを記録する技術が知られている(例えば、特許文献2参照)。   2. Description of the Related Art Conventionally, a technique for compressing image data by recording the number of continuous image data when the same image data is continuous when recording moving image data or the like is known (see, for example, Patent Document 1). . When stream data is recorded on a recording medium while compressing moving image data, if there is data being written on the working memory, one dummy counter is added and the dummy data is written when the writing is completed. A technique for recording a dummy frame for a counter is known (see, for example, Patent Document 2).

特開平11−203457号公報JP-A-11-203457 特開2005−203922号公報JP 2005-203922 A

しかしながら、特許文献1の技術は単なる動画圧縮処理の代替にすぎない。また、特許文献2の技術では、動画像データを圧縮しながら記録媒体にストリーム記録する際に、記録速度に遅れが生じた場合にだけ(作業用メモリ上に書込み中のデータがある場合にだけ)データ削減を行っており、作業用メモリを効果的に使用していないので、必要なデータまでもが欠落してしまう場合が多かった。   However, the technique of Patent Document 1 is merely an alternative to moving image compression processing. Further, in the technique of Patent Document 2, only when there is a delay in recording speed when stream recording on a recording medium while compressing moving image data (only when there is data being written in the working memory). ) Since data is being reduced and the working memory is not used effectively, there are many cases where even necessary data is lost.

本発明は、このような状況に鑑みてなされたものであり、記録媒体への記録速度に遅れが生じるような状況であっても、必要なデータの欠落を低減しつつ、より効果的に動画データの記録を行えるようにすることを目的とする。   The present invention has been made in view of such a situation, and even in a situation where there is a delay in the recording speed on the recording medium, the moving image is more effectively reduced while reducing the lack of necessary data. The purpose is to enable data recording.

上記目的を達成するため、本発明の一態様の動画記録装置は、動画を構成する複数フレームの画像データを一度に記憶可能な所定の記憶容量を有する作業用メモリと、動画撮影により所定の速度で逐次取得される複数フレームの画像データを、前記所定の記憶容量を限度として前記作業用メモリに一度に格納する一時記憶制御手段と、前記一時記憶制御手段によって前記複数フレームの画像データを前記作業用メモリに格納する際に、前記所定の速度よりも単位フレーム当りの処理速度が速い第1の圧縮処理を施してから前記作業用メモリに一度に格納させる第1の圧縮手段と、前記作業用メモリに一度に格納された前記複数フレームの画像データに対して前記所定の速度よりも単位フレーム当りの処理速度が遅い第2の圧縮処理を施して記録用メモリに記録する第2の圧縮手段と、を備えることを特徴とする。 In order to achieve the above object, a moving image recording apparatus according to one embodiment of the present invention includes a working memory having a predetermined storage capacity capable of storing image data of a plurality of frames constituting a moving image at a time, and a predetermined speed by moving image shooting. in a plurality of frames of image data is sequentially acquired, a temporary storage control means for storing at once the working memory the predetermined storage capacity as a limit, the working image data of the plurality of frames by the temporary storage control unit A first compression means for performing a first compression process at a processing speed per unit frame faster than the predetermined speed when storing in the work memory, and storing the work memory at a time ; serial subjected to stored the predetermined processing speed is slow second compression per unit frame than the rate for the image data of the plurality of frames at a time in the memory And second compression means for recording the use memory, characterized in that it comprises a.

本発明によれば、記録媒体への記録速度に遅れが生じるような状況であっても、必要なデータの欠落を低減しつつ、より効果的に動画データの記録を行うことができる。   According to the present invention, even in a situation where the recording speed to the recording medium is delayed, moving image data can be recorded more effectively while reducing the loss of necessary data.

本発明の一実施形態に係る動画記録装置1のハードウェアの構成を示すブロック図である。It is a block diagram which shows the structure of the hardware of the moving image recording device 1 which concerns on one Embodiment of this invention. 図1の動画記録装置1の機能的構成のうち、動画記録処理を実行するための機能的構成を示す機能ブロック図である。It is a functional block diagram which shows the functional structure for performing a moving image recording process among the functional structures of the moving image recording device 1 of FIG. 画像一時記憶部に記憶された画像及び画像枚数インデックス記憶部に記憶された画像枚数インデックスを示す図である。It is a figure which shows the image number index memorize | stored in the image memorize | stored in the image and image number index memory | storage part of an image stored in the image temporary storage part. 図2の機能構成を有する図1の動画記録装置1が実行する動画記録処理の流れを示すフローチャートである。It is a flowchart which shows the flow of the moving image recording process which the moving image recording device 1 of FIG. 1 which has the function structure of FIG. 2 performs. 図4の動画記録処理のステップS3の第1圧縮処理を示すフローチャートである。It is a flowchart which shows the 1st compression process of step S3 of the moving image recording process of FIG. 図4の動画記録処理のステップS4の第2圧縮処理を示すフローチャートである。It is a flowchart which shows the 2nd compression process of step S4 of the moving image recording process of FIG.

以下、本発明の実施形態について、図面を用いて説明する。   Hereinafter, embodiments of the present invention will be described with reference to the drawings.

[構成] [Constitution]

図1は、本発明の一実施形態に係る動画記録装置1のハードウェアの構成を示すブロック図である。
動画記録装置1は、例えばデジタルカメラとして構成される。
FIG. 1 is a block diagram showing a hardware configuration of a moving image recording apparatus 1 according to an embodiment of the present invention.
The moving picture recording apparatus 1 is configured as a digital camera, for example.

動画記録装置1は、CPU(Central Processing Unit)11と、ROM(Read Only Memory)12と、RAM(Random Access Memory)13と、画像処理部14と、バス15と、入出力インターフェース16と、撮像部17と、入力部18と、出力部19と、記憶部20と、通信部21と、ドライブ22と、を備えている。   The moving image recording apparatus 1 includes a CPU (Central Processing Unit) 11, a ROM (Read Only Memory) 12, a RAM (Random Access Memory) 13, an image processing unit 14, a bus 15, an input / output interface 16, and an imaging. A unit 17, an input unit 18, an output unit 19, a storage unit 20, a communication unit 21, and a drive 22 are provided.

CPU11は、ROM12に記録されているプログラム、又は、記憶部20からRAM13にロードされたプログラムに従って各種の処理を実行する。   The CPU 11 executes various processes according to a program recorded in the ROM 12 or a program loaded from the storage unit 20 to the RAM 13.

RAM13には、CPU11が各種の処理を実行する上において必要なデータ等も適宜記憶される。   The RAM 13 appropriately stores data necessary for the CPU 11 to execute various processes.

画像処理部14は、DSP(Digital Signal Processor)や、VRAM(Video Random Access Memory)等から構成されており、CPU11と協働して、画像のデータに対して各種画像処理を施す。   The image processing unit 14 is configured by a DSP (Digital Signal Processor), a VRAM (Video Random Access Memory), and the like, and performs various image processing on image data in cooperation with the CPU 11.

CPU11、ROM12及びRAM13は、バス15を介して相互に接続されている。このバス15にはまた、入出力インターフェース16も接続されている。入出力インターフェース16には、撮像部17、入力部18、出力部19、記憶部20、通信部21及びドライブ22が接続されている。   The CPU 11, ROM 12 and RAM 13 are connected to each other via a bus 15. An input / output interface 16 is also connected to the bus 15. An imaging unit 17, an input unit 18, an output unit 19, a storage unit 20, a communication unit 21, and a drive 22 are connected to the input / output interface 16.

撮像部17は、図示はしないが、光学レンズ部と、イメージセンサと、を備えている。   Although not shown, the imaging unit 17 includes an optical lens unit and an image sensor.

光学レンズ部は、被写体を撮影するために、光を集光するレンズ、例えばフォーカスレンズやズームレンズ等で構成される。フォーカスレンズは、イメージセンサの受光面に被写体像を結像させるレンズである。ズームレンズは、焦点距離を一定の範囲で自在に変化させるレンズである。光学レンズ部にはまた、必要に応じて、焦点、露出、ホワイトバランス等の設定パラメータを調整する周辺回路が設けられる。   The optical lens unit is configured by a lens that collects light, for example, a focus lens or a zoom lens, in order to photograph a subject. The focus lens is a lens that forms a subject image on the light receiving surface of the image sensor. The zoom lens is a lens that freely changes the focal length within a certain range. The optical lens unit is also provided with a peripheral circuit for adjusting setting parameters such as focus, exposure, and white balance as necessary.

イメージセンサは、光電変換素子や、AFE(Analog Front End)等から構成される。光電変換素子は、例えばCMOS(Complementary Metal Oxide Semiconductor)型の光電変換素子等から構成される。光電変換素子には、光学レンズ部から被写体像が入射される。そこで、光電変換素子は、被写体像を光電変換(撮像)して画像信号を一定時間蓄積し、蓄積した画像信号をアナログ信号としてAFEに順次供給する。
AFEは、このアナログの画像信号に対して、A/D(Analog/Digital)変換処理等の各種信号処理を実行する。各種信号処理によって、ディジタル信号が生成され、撮像部17の出力信号として出力される。
このような撮像部17の出力信号を、以下、「撮像画像のデータ」と呼ぶ。撮像画像のデータは、CPU11、RAM13、及び画像処理部14等に適宜供給される。
ここで、本実施形態では、例えば1/30秒毎に1枚の撮像画像のデータが撮像部17から順次出力されて、動画像のデータが構成される。即ち、以下においては、撮像画像とは、断りのない限り、動画像を構成する単位画像(フレーム画像やフィールド画像)であるものとする。
The image sensor includes a photoelectric conversion element, AFE (Analog Front End), and the like. The photoelectric conversion element is composed of, for example, a CMOS (Complementary Metal Oxide Semiconductor) type photoelectric conversion element or the like. A subject image is incident on the photoelectric conversion element from the optical lens unit. Therefore, the photoelectric conversion element photoelectrically converts (captures) the subject image, accumulates the image signal for a predetermined time, and sequentially supplies the accumulated image signal as an analog signal to the AFE.
The AFE performs various signal processing such as A / D (Analog / Digital) conversion processing on the analog image signal. A digital signal is generated by various signal processing and output as an output signal of the imaging unit 17.
Such an output signal of the imaging unit 17 is hereinafter referred to as “captured image data”. The captured image data is appropriately supplied to the CPU 11, the RAM 13, the image processing unit 14, and the like.
Here, in the present embodiment, for example, data of one captured image is sequentially output from the imaging unit 17 every 1/30 seconds, and moving image data is configured. That is, in the following, a captured image is assumed to be a unit image (frame image or field image) constituting a moving image unless otherwise specified.

入力部18は、各種釦等で構成され、ユーザの指示操作に応じて各種情報を入力する。
出力部19は、ディスプレイやスピーカ等で構成され、画像や音声を出力する。
記憶部20は、ハードディスク或いはDRAM(Dynamic Random Access Memory)等で構成され、各種画像のデータを記憶する。
通信部21は、インターネットを含むネットワークを介して他の装置(図示せず)との間で行う通信を制御する。
The input unit 18 includes various buttons and the like, and inputs various types of information according to user instruction operations.
The output unit 19 includes a display, a speaker, and the like, and outputs images and sounds.
The storage unit 20 is configured by a hard disk, a DRAM (Dynamic Random Access Memory), or the like, and stores various image data.
The communication unit 21 controls communication with other devices (not shown) via a network including the Internet.

ドライブ22には、磁気ディスク、光ディスク、光磁気ディスク、或いは半導体メモリ等よりなる、リムーバブルメディア31が適宜装着される。ドライブ22によってリムーバブルメディア31から読み出されたプログラムは、必要に応じて記憶部20にインストールされる。また、リムーバブルメディア31は、記憶部20に記憶されている画像のデータ等の各種データも、記憶部20と同様に記憶することができる。   A removable medium 31 composed of a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is appropriately attached to the drive 22. The program read from the removable medium 31 by the drive 22 is installed in the storage unit 20 as necessary. The removable medium 31 can also store various data such as image data stored in the storage unit 20 in the same manner as the storage unit 20.

図2は、このような動画記録装置1の機能的構成のうち、動画記録処理を実行するための機能的構成を示す機能ブロック図である。
動画記録処理とは、動画像を撮像する際のフレームレートが所定以上の場合に、記憶部20内の作業用メモリ(後述する画像一時記憶部61)に記憶する画像のデータを圧縮する第1圧縮処理と、第1圧縮処理により圧縮されて記憶された画像のデータを伸長して、外部メモリであるリムーバブルメディア31に記憶する処理である。
本実施形態では、第1圧縮処理では、撮像された画像のデータと、記憶部20内の作業用メモリ(後述する画像一時記憶部61)に直近に記憶されている画像のデータと、の差分が所定の閾値以上であれば、当該撮像された画像のデータを当該作業用メモリに新たに追加して記憶し、当該差分が所定の閾値未満であれば、当該撮像された画像のデータを破棄して、当該直近に記憶されている画像のデータに対応する画像枚数インデックスを1増加させる処理が実行される。
また、第2圧縮処理では、記憶部20内の作業用メモリに記憶されている画像のデータと、当該画像のデータに対応する画像枚数インデックスの値に基づいて、当該画像のデータが、当該画像枚数インデックスの値の回数分、外部メモリであるリムーバブルメディア31に記録される。
FIG. 2 is a functional block diagram showing a functional configuration for executing the moving image recording process among the functional configurations of the moving image recording apparatus 1.
The moving image recording process is a first process of compressing image data stored in a working memory (an image temporary storage unit 61 described later) in the storage unit 20 when a frame rate when capturing a moving image is greater than or equal to a predetermined value. This is a process of decompressing the image data compressed and stored by the compression process and the first compression process and storing it in the removable medium 31 which is an external memory.
In the present embodiment, in the first compression process, the difference between the captured image data and the image data stored most recently in the work memory (the image temporary storage unit 61 described later) in the storage unit 20. If the difference is less than or equal to a predetermined threshold, the captured image data is newly added and stored in the working memory. If the difference is less than the predetermined threshold, the captured image data is discarded. Then, a process of incrementing the image number index corresponding to the most recently stored image data by 1 is executed.
In the second compression process, the image data is converted into the image data based on the image data stored in the working memory in the storage unit 20 and the value of the image number index corresponding to the image data. The number of times of the value of the number index is recorded on the removable medium 31 that is an external memory.

動画記録処理が実行される場合には、図2に示すように、CPU11において、主制御部41と、撮像制御部42と、画像取得部43と、が機能する。また、画像処理部14において、第1圧縮部51と、第2圧縮部52と、消去部53とが機能する。
第1圧縮部は、差分算出部511と、一時記憶制御部512と、インデックス記憶制御部513とを備える。第2圧縮部52は、伸長部521と、圧縮符号部522と、を備える。
When the moving image recording process is executed, as shown in FIG. 2, the main control unit 41, the imaging control unit 42, and the image acquisition unit 43 function in the CPU 11. In the image processing unit 14, a first compression unit 51, a second compression unit 52, and an erasing unit 53 function.
The first compression unit includes a difference calculation unit 511, a temporary storage control unit 512, and an index storage control unit 513. The second compression unit 52 includes an expansion unit 521 and a compression code unit 522.

動画記録処理が実行される場合、記憶部20の一領域として設けられた、画像一時記憶部61と、インデックス記憶部62とが用いられる。
画像一時記憶部61においては、撮像部17から出力され、画像取得部43により取得された動画像(複数の撮像画像)のデータが一時的に記憶されている。
インデックス記憶部62においては、画像一時記憶部61に記憶されている撮像画像のデータに対応する画像枚数インデックス(後述)の値が記憶される。
When the moving image recording process is executed, an image temporary storage unit 61 and an index storage unit 62 provided as an area of the storage unit 20 are used.
In the temporary image storage unit 61, data of moving images (a plurality of captured images) output from the imaging unit 17 and acquired by the image acquisition unit 43 is temporarily stored.
The index storage unit 62 stores a value of an image number index (described later) corresponding to captured image data stored in the temporary image storage unit 61.

撮像制御部42は、入力部18を介して入力される各種撮像条件を設定し、撮像部17における撮像の動作を制御する。
本実施形態においては、撮像制御部42は、撮像部17に、一連の画像を連続的に撮像させ、動画像のデータとして出力させる。
The imaging control unit 42 sets various imaging conditions input via the input unit 18 and controls the imaging operation in the imaging unit 17.
In the present embodiment, the imaging control unit 42 causes the imaging unit 17 to continuously capture a series of images and output them as moving image data.

画像取得部43は、撮像部17から出力された動画像のデータを取得する。その後、画像取得部43は、取得した1フレーム目の画像のデータを画像一時記憶部61に記憶させるとともに、画像枚数インデックスの値を1として当該1フレーム目の画像のデータに関連付けてインデックス記憶部62に記憶させる。また、画像取得部43は、取得した2フレーム目以降の画像のデータを画像処理部14が備える第1圧縮部51が有する差分算出部511に出力する。   The image acquisition unit 43 acquires moving image data output from the imaging unit 17. Thereafter, the image acquisition unit 43 stores the acquired image data of the first frame in the image temporary storage unit 61, and sets the value of the image number index to 1 and associates it with the data of the image of the first frame. 62 is stored. In addition, the image acquisition unit 43 outputs the acquired second and subsequent image data to the difference calculation unit 511 included in the first compression unit 51 included in the image processing unit 14.

差分算出部511は、画像取得部43から出力された2フレーム目以降の画像のデータと、画像一時記憶部61に直近に記憶された1フレーム目の画像のデータとの差分を順次算出する。さらに、差分算出部511は、順次算出された差分が所定の閾値以上であるか否かを判断する。
一時記憶制御部512は、差分算出部511により、当該差分が所定の閾値以上であると判断された場合、その判断の対象となったフレームの画像のデータを画像一時記憶部61に記憶し、さらに、画像枚数インデックスの値を1として当該フレームの画像のデータに対応付けて記憶する。例えば、100フレーム目までは1フレーム目の画像のデータとの差分が所定の閾値以上であると判断されず、101フレーム目の画像のデータと1フレーム目の画像のデータとの差分が所定の閾値以上であった場合、101フレーム目の画像のデータを画像一時記憶部61に記憶し、さらに、画像枚数インデックスの値を1として101フレーム目の画像のデータに対応付けて記憶する。
インデックス記憶制御部513は、差分算出部511により、順次算出された当該差分が所定の閾値以上であると判断されるまでの間、画像一時記憶部61に直近に記憶された1フレーム目の画像のデータに対応付けられてインデックス記憶部62に記憶されている画像枚数インデックス(以下、「1フレーム目対応画像インデックス」と適宜呼ぶ)の値を1増加させる処理を繰り返し実行する。
The difference calculation unit 511 sequentially calculates the difference between the image data of the second and subsequent frames output from the image acquisition unit 43 and the image data of the first frame stored most recently in the image temporary storage unit 61. Furthermore, the difference calculation unit 511 determines whether or not the sequentially calculated difference is equal to or greater than a predetermined threshold value.
When the difference calculation unit 511 determines that the difference is equal to or greater than a predetermined threshold, the temporary storage control unit 512 stores the image data of the frame that is the determination target in the image temporary storage unit 61. Further, the value of the image number index is set to 1, and stored in association with the image data of the frame. For example, until the 100th frame, the difference between the first frame image data and the first frame image data is not determined to be greater than or equal to a predetermined threshold, and the difference between the 101st frame image data and the first frame image data is a predetermined value. If it is equal to or greater than the threshold value, the image data of the 101st frame is stored in the image temporary storage unit 61, and further, the image number index value is set to 1 and stored in association with the image data of the 101st frame.
The index storage control unit 513 displays the first frame image stored in the temporary image storage unit 61 until the difference calculation unit 511 determines that the sequentially calculated difference is equal to or greater than a predetermined threshold. The process of incrementing the value of the image number index (hereinafter referred to as “first frame corresponding image index” as appropriate) stored in the index storage unit 62 in association with the data is repeatedly executed.

したがって、例えば、差分算出部511により、100フレーム目までは差分が所定の閾値以上であると判断されず、101フレーム目の画像のデータと1フレーム目の画像のデータとの差分が所定の閾値以上であると判断された場合、インデックス記憶制御部513により1フレーム目対応画像インデックスの値は100となる。さらに、この場合、一時記憶制御部512により101フレーム目の画像のデータが画像一時記憶部61に記憶され、かつ、画像枚数インデックスの値が1として101フレーム目の画像のデータに対応付けられてインデックス記憶部62に記憶される。
次に、差分算出部511は、直近に画像一時記憶部61に記憶されたフレーム(上述の例の場合、101フレーム目)の画像のデータと、以降のフレーム(上述の例の場合、102フレーム目以降のフレーム)の画像のデータとの差分を順次算出し、順次算出された差分が所定の閾値以上であるか否かを判断する。
以下、上述した、一時記憶制御部512による処理及びインデックス記憶制御部513による処理が同様に実行される。
Therefore, for example, the difference calculation unit 511 does not determine that the difference is equal to or greater than a predetermined threshold until the 100th frame, and the difference between the image data of the 101st frame and the data of the first frame is the predetermined threshold. When it is determined that the above is true, the index storage control unit 513 sets the value of the first frame corresponding image index to 100. Further, in this case, the image data of the 101st frame is stored in the image temporary storage unit 61 by the temporary storage control unit 512, and the value of the image number index is set to 1 and associated with the image data of the 101st frame. It is stored in the index storage unit 62.
Next, the difference calculation unit 511 transmits the image data of the frame (101th frame in the above example) most recently stored in the image temporary storage unit 61 and the subsequent frames (102 frames in the above example). The difference between the first frame and the subsequent image data is sequentially calculated, and it is determined whether the sequentially calculated difference is equal to or greater than a predetermined threshold.
Thereafter, the above-described processing by the temporary storage control unit 512 and the processing by the index storage control unit 513 are executed in the same manner.

以上の第1圧縮部51による処理を、図3を参照して説明する。
図3は、画像一時記憶部61に記憶された画像及びインデックス記憶部62に記憶された画像枚数インデックスを示す図である。
まず1フレーム目の画像が、画像取得部43から画像一時記憶部61に1番目に記憶される。以降、差分算出部511により、100フレーム目までは差分が所定の閾値以上であると判断されず、101フレーム目の画像のデータと1フレーム目の画像のデータとの差分が所定の閾値以上であると判断された場合について説明する。この場合、図3に示すように、1フレーム目の画像81のデータに対応する画像枚数インデックスの値が100となり、101フレーム目の画像82のデータが画像一時記憶部61に2番目に記憶され、101フレーム目の画像82のデータに対応する画像枚数インデックスの値が1としてインデックス記憶部62に記憶される。
The processing by the first compression unit 51 will be described with reference to FIG.
FIG. 3 is a diagram showing the images stored in the temporary image storage unit 61 and the image number index stored in the index storage unit 62.
First, the first frame image is stored first in the image temporary storage unit 61 from the image acquisition unit 43. Thereafter, the difference calculation unit 511 does not determine that the difference is equal to or greater than the predetermined threshold until the 100th frame, and the difference between the image data of the 101st frame and the data of the first frame is equal to or greater than the predetermined threshold. A case where it is determined that there will be described. In this case, as shown in FIG. 3, the value of the image number index corresponding to the data of the image 81 of the first frame is 100, and the data of the image 82 of the 101st frame is stored in the image temporary storage unit 61 second. The value of the image number index corresponding to the data of the image 82 of the 101st frame is stored in the index storage unit 62 as 1.

さらに、差分算出部511により算出された102フレーム目の画像83のデータと101フレーム目の画像82のデータとの差分値が、所定の閾値以上であると判断され、一時記憶制御部512により102フレーム目の画像83のデータが画像一時記憶部61に3番目に記憶される。さらに、一時記憶制御部512により、102フレーム目の画像83のデータに対応する画像枚数インデックスの値が1としてインデックス記憶部62に記憶される。   Further, it is determined that the difference value between the data of the image 83 of the 102nd frame and the data of the image 82 of the 101st frame calculated by the difference calculation unit 511 is equal to or greater than a predetermined threshold, and the temporary storage control unit 512 The data of the image 83 of the frame is stored in the image temporary storage unit 61 third. Further, the temporary storage control unit 512 stores the value of the image number index corresponding to the data of the image 83 of the 102nd frame as 1 in the index storage unit 62.

さらに、差分算出部511により算出された103フレーム目の画像84のデータと102フレーム目の画像83のデータとの差分値が、所定の閾値以上であると判断され、一時記憶制御部512により103フレーム目の画像84のデータが画像一時記憶部61に4番目に記憶される。さらに、一時記憶制御部512により、103フレーム目の画像84のデータに対応する画像枚数インデックスの値が1としてインデックス記憶部62に記憶される。   Further, it is determined that the difference value between the data of the image 84 of the 103rd frame and the data of the image 83 of the 102nd frame calculated by the difference calculation unit 511 is equal to or greater than a predetermined threshold, and the temporary storage control unit 512 determines 103 The data of the frame image 84 is stored in the image temporary storage unit 61 fourth. Further, the temporary storage control unit 512 stores the image number index value corresponding to the data of the image 84 of the 103rd frame as 1 in the index storage unit 62.

さらに、差分算出部511により算出された104フレーム目の画像85のデータと103フレーム目の画像84のデータとの差分値が、所定の閾値以上であると判断され、一時記憶制御部512により104フレーム目の画像85のデータが画像一時記憶部61に5番目に記憶される。さらに、一時記憶制御部512により、104フレーム目の画像85のデータに対応する画像枚数インデックスの値が1としてインデックス記憶部62に記憶される。その後、105フレーム目から203フレーム目の画像のデータと104フレーム目の画像84のデータとの差分値が、所定の閾値以上であると判断されず、インデックス記憶制御部513により、104フレーム目の画像85のデータに対応する画像枚数インデックスの値が100となる。なお、図3の例では、合計で203フレーム目までの画像のデータが記録されたことが示されている。   Further, it is determined that the difference value between the data of the image 85 of the 104th frame and the data of the image 84 of the 103th frame calculated by the difference calculation unit 511 is greater than or equal to a predetermined threshold, and the temporary storage control unit 512 The data of the image 85 of the frame is stored in the image temporary storage unit 61 fifth. Further, the temporary storage control unit 512 stores the image number index value corresponding to the data of the image 85 of the 104th frame as 1 in the index storage unit 62. Thereafter, the difference value between the data of the 105th to 203rd frame images and the 104th frame of the image 84 data is not determined to be greater than or equal to a predetermined threshold, and the index storage control unit 513 determines The value of the image number index corresponding to the data of the image 85 is 100. Note that the example of FIG. 3 shows that image data up to the 203rd frame in total has been recorded.

図2に戻って、主制御部41は、画像一時記憶部61にN(Nは2以上の整数)番目に画像のデータが格納されたことを契機として、N−1番目に画像一時記憶部61に格納された画像のデータの伸長処理を、第2圧縮部52が備える伸長部521に実行させる。
例えば、図3の例を参照すると、主制御部41は、画像一時記憶部61に2番目に画像82のデータが格納されたことを契機として、1番目に画像一時記憶部61に格納された画像81のデータの伸長処理を、伸長部521に実行させる。
Returning to FIG. 2, the main control unit 41 receives the Nth image data stored in the image temporary storage unit 61 (N is an integer equal to or greater than 2). The decompression unit 521 included in the second compression unit 52 executes the decompression process of the image data stored in 61.
For example, referring to the example of FIG. 3, the main control unit 41 is first stored in the image temporary storage unit 61 when the data of the image 82 is stored in the image temporary storage unit 61 second. The decompression unit 521 executes the decompression process of the data of the image 81.

図2に戻って、伸長部521は、画像一時記憶部61に2番目に画像82のデータが格納されたことを契機として、1番目に画像一時記憶部61に記憶された画像81のデータの伸長処理を実行する。具体的には、伸長部521は、画像81のデータを読み込み、画像81のデータに対応する画像枚数インデックスの値で表される回数分、画像81のデータを圧縮符号部522に順次転送する。
圧縮符号部522は、N−1番目に画像一時記憶部61に記憶された画像のデータが順次転送される度に、当該画像のデータを、ドライブを介してリムーバブルメディア31に記録する。例えば、圧縮符号部522は、画像81のデータが順次転送される度に、ドライブ22を介してリムーバブルメディア31に記録する。
Returning to FIG. 2, the decompression unit 521 receives the data of the image 81 stored first in the image temporary storage unit 61 when the data of the image 82 is stored second in the image temporary storage unit 61. Execute decompression processing. Specifically, the decompression unit 521 reads the data of the image 81 and sequentially transfers the data of the image 81 to the compression encoding unit 522 for the number of times represented by the value of the image number index corresponding to the data of the image 81.
The compression encoding unit 522 records the image data on the removable medium 31 via the drive each time the image data stored in the N−1th image temporary storage unit 61 is sequentially transferred. For example, the compression encoding unit 522 records the data of the image 81 on the removable medium 31 via the drive 22 every time the data of the image 81 is sequentially transferred.

消去部53は、N−1番目に画像一時記憶部61に記憶された画像のデータが全てリムーバブルメディア31に記録されたことを契機として、N−1番目に画像一時記憶部61に格納された画像のデータを画像一時記憶部61から消去する。   The erasing unit 53 stores the data of the image stored in the (N−1) th image temporary storage unit 61 in the removable medium 31 as a trigger, and stores the data in the N−1th image temporary storage unit 61. The image data is erased from the image temporary storage unit 61.

主制御部41は、上述した伸長部521、圧縮符号部522及び消去部53の処理を、画像一時記憶部61の格納された画像のデータが全てリムーバブルメディア31に記録されるまで繰り返す。   The main control unit 41 repeats the processing of the expansion unit 521, the compression encoding unit 522, and the deletion unit 53 described above until all the image data stored in the image temporary storage unit 61 is recorded in the removable medium 31.

[動画記録処理]
続いて、動画記録装置1が実行する動画記録処理について説明する。
図4は、図2の機能構成を有する図1の動画記録装置1が実行する動画記録処理(メインフロー)の流れの一例を示すフローチャートである。
[Movie recording process]
Next, the moving image recording process executed by the moving image recording apparatus 1 will be described.
FIG. 4 is a flowchart showing an example of a flow of a moving image recording process (main flow) executed by the moving image recording apparatus 1 of FIG. 1 having the functional configuration of FIG.

図4において、動画記録処理が開始されると、主制御部41は、ステップS1において、動画記録装置1の動画像撮像時のフレームレートが所定値以上であるか否かを判断する。フレームレートが所定値以上である場合には、ステップS1においてYESと判断され、主制御部41は、ステップS2へ処理を移行させる。
ステップS2において、画像取得部43は、撮像部17から出力された動画像のデータを取得する。
ステップS3において、第1圧縮部51等は、図5を参照して後述する第1圧縮処理を実行する。ここで、第1圧縮処理とは、連続して撮像された画像のデータの差分が所定の閾値未満である場合、当該連続して撮像された画像のデータのうち、最先に撮像されたデータのみが画像一時記憶部61に記録される処理である。
ステップS4において、第2圧縮部52等は、図6を参照して後述する第2圧縮処理を実行する。ここで、第2圧縮処理とは、第1圧縮処理が施された画像のデータを伸長して、リムーバブルメディア31に記録する処理である。
また、ステップS4の第2圧縮処理は、ステップS3の第1圧縮処理と平行して実行される。即ち、当該第2圧縮処理は、当該第1圧縮処理において、画像一時記憶部61に2番目に画像のデータが格納されたことを契機として、実行開始される。
In FIG. 4, when the moving image recording process is started, the main control unit 41 determines whether or not the frame rate at the time of moving image capturing of the moving image recording apparatus 1 is greater than or equal to a predetermined value in step S1. If the frame rate is equal to or higher than the predetermined value, YES is determined in step S1, and the main control unit 41 shifts the processing to step S2.
In step S <b> 2, the image acquisition unit 43 acquires moving image data output from the imaging unit 17.
In step S3, the first compression unit 51 and the like execute a first compression process which will be described later with reference to FIG. Here, the first compression processing refers to data that is first captured among data of continuously captured images when the difference between the data of continuously captured images is less than a predetermined threshold. Only the process is recorded in the temporary image storage unit 61.
In step S4, the second compression unit 52 and the like execute a second compression process which will be described later with reference to FIG. Here, the second compression process is a process of decompressing the data of the image subjected to the first compression process and recording it on the removable medium 31.
Further, the second compression process in step S4 is executed in parallel with the first compression process in step S3. That is, the second compression process is started when the second image data is stored in the image temporary storage unit 61 in the first compression process.

一方、ステップS1において、動画記録装置1の動画像撮像時のフレームレートが所定値以上でない場合には、ステップS1においてNOと判断され、主制御部41は、ステップS5に処理を移行させる。
ステップS5において、主制御部41等は、通常の動画記録処理を実行する。ここで、通常の動画記録処理とは、撮像部17から出力され、画像取得部43により取得された動画像(複数の撮像画像)のデータに対して、第1圧縮部による処理が行われずにリムーバブルメディア31に書き込まれる処理のことである。
ステップS4又はステップS5の処理が終了すると、動画記録処理は終了する。
On the other hand, when the frame rate at the time of moving image capturing of the moving image recording apparatus 1 is not equal to or higher than the predetermined value in step S1, NO is determined in step S1, and the main control unit 41 shifts the processing to step S5.
In step S5, the main control unit 41 and the like execute normal moving image recording processing. Here, the normal moving image recording processing means that the processing by the first compression unit is not performed on the data of the moving image (a plurality of captured images) output from the imaging unit 17 and acquired by the image acquisition unit 43. This process is written to the removable medium 31.
When the process of step S4 or step S5 ends, the moving image recording process ends.

[第1圧縮処理]
次に、動画記録装置1が実行する第1圧縮処理について説明する。
図5は、図2の機能構成を有する図1の動画記録装置1が実行する第1圧縮処理の流れの一例を示すフローチャートである。
[First compression processing]
Next, the 1st compression process which the moving image recording device 1 performs is demonstrated.
FIG. 5 is a flowchart showing an example of the flow of the first compression process executed by the moving picture recording apparatus 1 of FIG. 1 having the functional configuration of FIG.

図5において、第1圧縮処理が開始されると、ステップS11において、画像取得部43は、取得した1フレーム目の画像のデータを画像一時記憶部61に1番目に記憶させる。
ステップS12において、画像取得部43は、画像枚数インデックスの値を1として当該1フレーム目の画像のデータに関連付けてインデックス記憶部62に記憶させる。
ステップS13において、画像取得部43は、変数Nに1を代入する。
In FIG. 5, when the first compression process is started, in step S <b> 11, the image acquisition unit 43 first stores the acquired image data of the first frame in the image temporary storage unit 61.
In step S <b> 12, the image acquisition unit 43 sets the image number index value to 1 and stores it in the index storage unit 62 in association with the image data of the first frame.
In step S <b> 13, the image acquisition unit 43 substitutes 1 for the variable N.

ステップS14において、画像取得部43は、変数Nを1増加させる。
ステップS15において、画像取得部43は、Nフレーム目の画像のデータを画像処理部14が備える第1圧縮部51が有する差分算出部511に出力する。
ステップS16において、差分算出部511は、ステップS15において出力されたNフレーム目の画像のデータと、画像一時記憶部61に直近に記憶されたフレームの画像のデータとの差分を算出する。さらに、差分算出部511は、当該算出された差分が所定の閾値以上であるか否かを判断する。
In step S14, the image acquisition unit 43 increases the variable N by one.
In step S <b> 15, the image acquisition unit 43 outputs the image data of the Nth frame to the difference calculation unit 511 included in the first compression unit 51 provided in the image processing unit 14.
In step S <b> 16, the difference calculation unit 511 calculates a difference between the image data of the Nth frame output in step S <b> 15 and the image data of the frame stored most recently in the image temporary storage unit 61. Furthermore, the difference calculation unit 511 determines whether the calculated difference is equal to or greater than a predetermined threshold.

当該算出された差分が所定の閾値以上であると判断された場合、ステップS16においてYESと判断され、差分算出部511は、処理をステップS17に移行させる。
ステップS17において、一時記憶制御部512は、Nフレーム目の画像のデータを画像一時記憶部61にM番目に記憶する。ここで、Mは、ステップS16でYESと判断された回数に1を加算した値である。
ステップS18において、一時記憶制御部512は、画像枚数インデックスの値を1として、ステップS17において画像一時記憶部61に記憶されたNフレーム目の画像のデータに対応付けて記憶する。
If it is determined that the calculated difference is equal to or greater than the predetermined threshold value, YES is determined in step S16, and the difference calculation unit 511 shifts the processing to step S17.
In step S <b> 17, the temporary storage control unit 512 stores the Mth frame image data in the image temporary storage unit 61. Here, M is a value obtained by adding 1 to the number of times YES is determined in step S16.
In step S18, the temporary storage control unit 512 sets the value of the image number index to 1, and stores it in association with the data of the Nth frame image stored in the image temporary storage unit 61 in step S17.

一方、ステップS16において算出された差分が所定の閾値以上でないと判断された場合、ステップS16においてNOと判断され、差分算出部511は、処理をステップS19に移行させる。
ステップS19において、インデックス記憶制御部513は、直近に画像一時記憶部61に記憶されたフレームの画像のデータに対応付けられた画像枚数インデックスを1増加させる。
On the other hand, if it is determined that the difference calculated in step S16 is not equal to or greater than the predetermined threshold value, NO is determined in step S16, and the difference calculation unit 511 shifts the process to step S19.
In step S <b> 19, the index storage control unit 513 increments the image number index associated with the image data of the frame most recently stored in the image temporary storage unit 61 by one.

ステップS20において、主制御部41は、Nフレーム目の画像のデータが最後に撮像された画像データか否かを判断する。この判断がNOの場合、主制御部41は、ステップS14に処理を移行させる。一方、この判断がYESの場合、主制御部41は、第1圧縮処理を終了させる。   In step S <b> 20, the main control unit 41 determines whether the image data of the Nth frame is the image data captured last. If this determination is NO, the main control unit 41 shifts the processing to step S14. On the other hand, if this determination is YES, the main control unit 41 ends the first compression process.

[第2圧縮処理]
次に、動画記録装置1が実行する第2圧縮処理について説明する。
図6は、図2の機能構成を有する図1の動画記録装置1が実行する第2圧縮処理の流れの一例を示すフローチャートである。第2圧縮処理は、図5で説明した第1圧縮処理において、画像一時記憶部61に2番目に画像のデータが格納されたことを契機として、実行開始される。
[Second compression process]
Next, the 2nd compression process which the moving image recording device 1 performs is demonstrated.
6 is a flowchart showing an example of the flow of the second compression process executed by the moving picture recording apparatus 1 of FIG. 1 having the functional configuration of FIG. The second compression process is started when the second image data is stored in the image temporary storage unit 61 in the first compression process described with reference to FIG.

図6において、第2圧縮処理が開始されると、ステップS31において、伸長部521は、画像一時記憶部61に1番目に記憶された画像のデータを画像一時記憶部61から読み込む。
ステップS32において、伸長部521は、ステップS31又は後述するステップS39で画像一時記憶部61から読み込まれた画像のデータに対応する画像枚数インデックスの値が1である否かを判断する。当該画像枚数インデックスの値が1でない場合、ステップS32においてNOと判断され、当該画像枚数インデックスの値が1になるまで、以下のステップS33乃至S35が繰り返し実行される。
In FIG. 6, when the second compression process is started, the decompressing unit 521 reads the image data stored first in the image temporary storage unit 61 from the image temporary storage unit 61 in step S <b> 31.
In step S32, the decompression unit 521 determines whether or not the value of the image number index corresponding to the image data read from the image temporary storage unit 61 in step S31 or step S39 described later is 1. If the image number index value is not 1, NO is determined in step S32, and the following steps S33 to S35 are repeatedly executed until the image number index value becomes 1.

ステップS33において、伸長部521は、ステップS31又は後述するステップS39で画像一時記憶部61から読み込まれた画像のデータを圧縮符号部522に出力する。
ステップS34において、圧縮符号部522は、ステップS33において出力された画像のデータをリムーバブルメディア31にドライブ22を介して記録する。
ステップS35において、圧縮符号部522は、ステップS34において記録された画像のデータに対応する画像枚数インデックスの値を1減少させる。その後、圧縮符号部522は、処理をステップS32に移行させる。
ステップS32において、当該画像枚数インデックスの値が1である場合、ステップS32においてYESと判断され、処理がステップS36に移行される。
In step S <b> 33, the decompression unit 521 outputs the image data read from the image temporary storage unit 61 in step S <b> 31 or step S <b> 39 described later to the compression encoding unit 522.
In step S <b> 34, the compression encoding unit 522 records the image data output in step S <b> 33 on the removable medium 31 via the drive 22.
In step S35, the compression encoding unit 522 decrements the image number index value corresponding to the image data recorded in step S34 by one. Thereafter, the compression encoding unit 522 causes the process to proceed to step S <b> 32.
If the value of the image number index is 1 in step S32, YES is determined in step S32, and the process proceeds to step S36.

ステップS36において、伸長部521は、ステップS31又は後述するステップS39で画像一時記憶部61から読み込まれた画像のデータを圧縮符号部522に出力する。
ステップS37において、圧縮符号部522は、ステップS36において出力された画像のデータをリムーバブルメディア31にドライブ22を介して記録する。
In step S36, the decompression unit 521 outputs the image data read from the image temporary storage unit 61 in step S31 or step S39 described later to the compression encoding unit 522.
In step S <b> 37, the compression encoding unit 522 records the image data output in step S <b> 36 on the removable medium 31 via the drive 22.

ステップS38において、画像一時記憶部61に記憶された画像のデータが存在するか否かを判断する。当該画像のデータが存在する場合、ステップS38においてYESと判断され、処理がステップS39に移行される。
ステップS39において、消去部53は、ステップS37においてリムーバブルメディア31に記録された画像のデータを画像一時記憶部61から消去する。このようにすることで、記憶される画像のデータが画像一時記憶部61の容量を超えてしまうことを防止できる。
ステップS40において、伸長部521は、ステップS37においてリムーバブルメディア31に記録された画像のデータの次に画像一時記憶部61に記憶された画像のデータを画像一時記憶部61から読み込む。その後、伸長部521は、処理をステップS32に移行させる。
一方、ステップS38において、画像一時記憶部61に記憶された画像のデータが存在しない場合、ステップS38においてNOと判断され、第2圧縮処理は終了する。
In step S38, it is determined whether image data stored in the image temporary storage unit 61 exists. If the image data exists, YES is determined in step S38, and the process proceeds to step S39.
In step S39, the erasing unit 53 erases the image data recorded on the removable medium 31 in step S37 from the image temporary storage unit 61. By doing so, it is possible to prevent the stored image data from exceeding the capacity of the temporary image storage unit 61.
In step S <b> 40, the decompression unit 521 reads the image data stored in the image temporary storage unit 61 next to the image data recorded in the removable medium 31 in step S <b> 37 from the image temporary storage unit 61. Thereafter, the decompressing unit 521 shifts the process to step S32.
On the other hand, if there is no image data stored in the temporary image storage unit 61 in step S38, NO is determined in step S38, and the second compression process ends.

以上、本発明の実施形態について説明した。
以上のような動画記録処理を実行する動画記録装置1は、第1圧縮部51と、第2圧縮部52と、を備える。
第1圧縮部51は、動画撮影により逐次取得される各フレームの画像データを一時的に画像一時記憶部61に格納する際に実行される第1の圧縮処理を実行する。
第2圧縮部52は、画像一時記憶部61に一時的に格納された各フレームの画像データをリムーバブルメディア31に記録する際に実行される第2の圧縮処理を実行する。
また、第1の圧縮処理と、第2の圧縮処理とは圧縮処理の内容が異なる。
したがって、例えば、単位時間に記録する動画データの量が多く(フレームレートが高速であったり、高画質である場合など)記録媒体への記録速度に遅れが生じるような状況であっても、必要なデータの欠落を低減しつつ、より効果的に動画データの記録を行うことができる。例えば、少なくとも瞬間的に第1の圧縮処理の処理速度を第2の圧縮処理の処理速度より速くできる場合や、少なくとも瞬間的に第1の圧縮処理の圧縮率を第2の圧縮処理の圧縮率より高くできる場合には、作業用メモリを効果的に使用することで、必要なデータの欠落を低減しつつ、記録媒体への記録速度に遅れが生じることを防止できる。
The embodiment of the present invention has been described above.
The moving image recording apparatus 1 that executes the moving image recording process as described above includes a first compression unit 51 and a second compression unit 52.
The first compression unit 51 executes a first compression process that is executed when the image data of each frame sequentially acquired by moving image shooting is temporarily stored in the image temporary storage unit 61.
The second compression unit 52 executes a second compression process that is executed when the image data of each frame temporarily stored in the image temporary storage unit 61 is recorded on the removable medium 31.
Further, the contents of the compression process are different between the first compression process and the second compression process.
Therefore, for example, it is necessary even when the amount of moving image data to be recorded per unit time is large (when the frame rate is high or the image quality is high), and the recording speed to the recording medium is delayed. It is possible to record moving image data more effectively while reducing missing data. For example, when the processing speed of the first compression process can be made faster than the processing speed of the second compression process at least instantaneously, or the compression ratio of the first compression process is at least instantaneously changed to the compression ratio of the second compression process. If it can be increased, effective use of the working memory can reduce delay in the recording speed to the recording medium while reducing missing of necessary data.

動画記録装置1において、第1の圧縮処理と、第2の圧縮処理とは処理速度または圧縮率が異なる。
したがって、例えば、少なくとも瞬間的に第1の圧縮処理の処理速度を第2の圧縮処理の処理速度より速くできる場合や、少なくとも瞬間的に第1の圧縮処理の圧縮率を第2の圧縮処理の圧縮率より高くできる場合には、作業用メモリを効果的に使用することで、必要なデータの欠落を低減しつつ、記録媒体への記録速度に遅れが生じることを防止できる。
In the moving image recording apparatus 1, the first compression processing and the second compression processing are different in processing speed or compression rate.
Therefore, for example, when the processing speed of the first compression processing can be made faster than the processing speed of the second compression processing at least instantaneously, or when the compression rate of the first compression processing is at least instantaneously If it can be higher than the compression rate, it is possible to prevent the recording speed from being delayed on the recording medium while effectively reducing the missing data by using the working memory effectively.

動画記録装置1において、第1の圧縮処理は、少なくとも瞬間的には、第2の圧縮処理よりも処理速度を速く、または圧縮率を高くできる。
したがって、作業用メモリを効果的に使用することで、必要なデータの欠落を低減しつつ、記録媒体への記録速度に遅れが生じることを防止できる。
In the moving image recording apparatus 1, the first compression processing can be performed at a higher speed or higher compression rate than the second compression processing at least instantaneously.
Therefore, by effectively using the working memory, it is possible to prevent the recording speed from being recorded on the recording medium from being delayed while reducing the loss of necessary data.

また、動画記録装置1は、消去部53を備える。
画像一時記憶部61は複数フレームの画像データを記憶可能であり、
第1圧縮部51は、逐次取得される各フレームの画像データを、第2圧縮処理が施されてリムーバブルメディア31に記録されるまでのあいだ一時的に画像一時記憶部61に記憶させる一時記憶制御部512を備えている。
消去部53は、画像一時記憶部61に記憶された各フレームの画像データを、第2圧縮処理が施されてリムーバブルメディア31に記録された後に消去する。
したがって、記憶される画像データの容量が画像一時記憶部61の容量を超えることを防止できる。
In addition, the moving image recording apparatus 1 includes an erasing unit 53.
The image temporary storage unit 61 can store image data of a plurality of frames,
The first compression unit 51 temporarily stores the image data of each frame acquired in the temporary image storage unit 61 until the second compression process is performed and the image data is recorded on the removable medium 31. Part 512 is provided.
The erasing unit 53 erases the image data of each frame stored in the image temporary storage unit 61 after being subjected to the second compression process and recorded in the removable medium 31.
Therefore, it is possible to prevent the capacity of the stored image data from exceeding the capacity of the image temporary storage unit 61.

また、動画記録装置1は、伸長部521を備える。
伸長部521は、第1圧縮処理が施されて画像一時記憶部61に格納された画像データに対して伸長処理を実行する。
本実施形態の圧縮処理は、第1圧縮処理が施されて画像一時記憶部61に格納された画像データに対して伸長部521による伸長処理を施しながら第2圧縮処理を施してリムーバブルメディア31に記録していく処理である。
したがって、第1圧縮処理と第2圧縮処理とが平行して実行されるので、記憶される画像データの容量が画像一時記憶部61の容量を超えることを防止できるとともに、第2圧縮処理の効率を向上させることができる。
In addition, the moving image recording apparatus 1 includes an extension unit 521.
The decompression unit 521 performs decompression processing on the image data that has been subjected to the first compression processing and stored in the image temporary storage unit 61.
In the compression processing of the present embodiment, the second compression processing is performed on the removable media 31 while performing the decompression processing by the decompression unit 521 on the image data subjected to the first compression processing and stored in the image temporary storage unit 61. This is a process of recording.
Accordingly, since the first compression process and the second compression process are executed in parallel, it is possible to prevent the capacity of the stored image data from exceeding the capacity of the image temporary storage unit 61 and the efficiency of the second compression process. Can be improved.

第1圧縮処理は、新たに取得されたフレームの画像データと、既に画像一時記憶部61に格納されている他のフレームの画像データとの差分が所定の閾値以内である場合には、当該新たに取得されたフレームについて、当該フレームの画像データを画像一時記憶部61に記憶せずに、当該他のフレームの画像データで代替可能であることを示す画像枚数インデックスだけをインデックス記憶部62に記憶する処理である。
したがって、類似する画像のデータを画像一時記憶部61に記憶しなくて済むので、記憶される画像データの容量が画像一時記憶部61の容量を超えることを防止できる。
The first compression processing is performed when the difference between the image data of the newly acquired frame and the image data of other frames already stored in the image temporary storage unit 61 is within a predetermined threshold. In the index storage unit 62, only the image number index indicating that the image data of the frame can be replaced by the image data of the other frame without storing the image data of the frame in the image temporary storage unit 61 is stored. It is processing to do.
Accordingly, since it is not necessary to store similar image data in the image temporary storage unit 61, it is possible to prevent the capacity of the stored image data from exceeding the capacity of the image temporary storage unit 61.

本実施形態の伸長処理は、画像枚数インデックスが記憶されている場合に、第2圧縮処理を施すフレームの画像データを画像枚数インデックスが示す他のフレームの画像データとみなす処理である。
したがって、他のフレームの画像データに対して、画像枚数インデックスの値の数の分だけ第2圧縮処理を施すことができる。
The decompression process according to the present embodiment is a process that regards image data of a frame to be subjected to the second compression process as image data of another frame indicated by the image number index when an image number index is stored.
Therefore, the second compression processing can be performed on the image data of other frames by the number of image number index values.

第1圧縮処理は、新たに取得されたフレームの画像データと、直前に取得されたフレームの画像データとの差分が所定の閾値以内である場合に、当該新たに取得されたフレームの画像データが当該直前に取得されたフレームの画像データで代替可能であることを示す画像枚数インデックスを記憶する処理である。
したがって、類似する画像のデータを画像一時記憶部61に記憶しなくて済むので、記憶される画像データの容量が画像一時記憶部61の容量を超えることを防止できる。
In the first compression process, when the difference between the image data of the newly acquired frame and the image data of the frame acquired immediately before is within a predetermined threshold, the image data of the newly acquired frame is This is a process of storing an image number index indicating that the image data of the frame acquired immediately before can be substituted.
Accordingly, since it is not necessary to store similar image data in the image temporary storage unit 61, it is possible to prevent the capacity of the stored image data from exceeding the capacity of the image temporary storage unit 61.

第1の圧縮処理は、連続して取得された複数のフレームの画像データの各々と、直前に取得されたフレームの画像データとの差分が所定の閾値以内である場合に、連続して取得された複数のフレームの数を、直前のフレームの画像データで代替可能なフレームの連続する枚数を示す画像枚数インデックスとして記憶する処理である。
したがって、連続して類似する画像のデータを画像一時記憶部61に記憶しなくて済むので、記憶される画像データの容量が画像一時記憶部61の容量を超えることを防止できる。
The first compression processing is continuously acquired when the difference between each of the image data of a plurality of frames acquired continuously and the image data of the frame acquired immediately before is within a predetermined threshold. In this processing, the number of frames is stored as an image number index indicating the number of consecutive frames that can be replaced by the image data of the immediately preceding frame.
Accordingly, since it is not necessary to continuously store similar image data in the image temporary storage unit 61, the capacity of the stored image data can be prevented from exceeding the capacity of the image temporary storage unit 61.

また、動画記録装置1は、主制御部41を備える。
主制御部41は、画像一時記憶部61に記憶される画像データの容量が、画像一時記憶部61として利用可能なメモリ容量を超える所定状況である場合に、第1圧縮処理を有効とし、当該所定状況でない場合には第1圧縮処理を無効にする。
したがって、当該所定状況の場合にのみ、第1圧縮処理を実行できるので、元々の動画像データの情報の一部が失われる(非可逆圧縮の度合が強くなる)ことを防止できる。
In addition, the moving image recording apparatus 1 includes a main control unit 41.
The main control unit 41 validates the first compression processing when the capacity of the image data stored in the temporary image storage unit 61 is in a predetermined situation exceeding the memory capacity available as the temporary image storage unit 61. If it is not the predetermined situation, the first compression process is invalidated.
Therefore, since the first compression process can be executed only in the predetermined situation, it is possible to prevent a part of the information of the original moving image data from being lost (the degree of lossy compression becomes strong).

主制御部41は、動画撮影のフレームレートが所定以上である場合に当該所定状況であると判断する。
したがって、動画撮影のフレームレートが所定以上である場合にのみ、第1圧縮処理を実行できるので、元々の動画像データの情報の一部が失われる(非可逆圧縮の度合が強くなる)ことを防止できる。
The main control unit 41 determines that the predetermined situation exists when the frame rate of moving image shooting is equal to or higher than a predetermined level.
Therefore, since the first compression process can be executed only when the frame rate for moving image shooting is equal to or higher than a predetermined rate, a part of the information of the original moving image data is lost (the degree of irreversible compression becomes strong). Can be prevented.

なお、本発明は、上述の実施形態に限定されるものではなく、本発明の目的を達成できる範囲での変形、改良等は本発明に含まれるものである。   In addition, this invention is not limited to the above-mentioned embodiment, The deformation | transformation in the range which can achieve the objective of this invention, improvement, etc. are included in this invention.

上述の実施形態では、本発明が適用される動画記録装置1は、デジタルカメラを例として説明したが、特にこれに限定されない。
例えば、本発明は、画像処理機能を有する電子機器一般に適用することができる。具体的には、例えば、本発明は、ノート型のパーソナルコンピュータ、プリンタ、テレビジョン受像機、ビデオカメラ、携帯型ナビゲーション装置、携帯電話機、ポータブルゲーム機等に適用可能である。
In the above-described embodiment, the moving image recording apparatus 1 to which the present invention is applied has been described by taking a digital camera as an example, but is not particularly limited thereto.
For example, the present invention can be applied to general electronic devices having an image processing function. Specifically, for example, the present invention can be applied to a notebook personal computer, a printer, a television receiver, a video camera, a portable navigation device, a mobile phone, a portable game machine, and the like.

上述した一連の処理は、ハードウェアにより実行させることもできるし、ソフトウェアにより実行させることもできる。
換言すると、図2の機能的構成は例示に過ぎず、特に限定されない。即ち、上述した一連の処理を全体として実行できる機能が画像処理装置1に備えられていれば足り、この機能を実現するためにどのような機能ブロックを用いるのかは特に図2の例に限定されない。
また、1つの機能ブロックは、ハードウェア単体で構成しても良いし、ソフトウェア単体で構成しても良いし、それらの組み合わせで構成しても良い。
The series of processes described above can be executed by hardware or can be executed by software.
In other words, the functional configuration of FIG. 2 is merely an example and is not particularly limited. That is, it is sufficient that the image processing apparatus 1 has a function capable of executing the above-described series of processing as a whole, and what functional blocks are used to realize this function is not particularly limited to the example of FIG. .
In addition, one functional block may be constituted by hardware alone, software alone, or a combination thereof.

一連の処理をソフトウェアにより実行させる場合には、そのソフトウェアを構成するプログラムが、コンピュータ等にネットワークや記録媒体からインストールされる。
コンピュータは、専用のハードウェアに組み込まれているコンピュータであっても良い。また、コンピュータは、各種のプログラムをインストールすることで、各種の機能を実行することが可能なコンピュータ、例えば汎用のパーソナルコンピュータであっても良い。
When a series of processing is executed by software, a program constituting the software is installed on a computer or the like from a network or a recording medium.
The computer may be a computer incorporated in dedicated hardware. The computer may be a computer capable of executing various functions by installing various programs, for example, a general-purpose personal computer.

このようなプログラムを含む記録媒体は、ユーザにプログラムを提供するために装置本体とは別に配布される図1のリムーバブルメディア31により構成されるだけでなく、装置本体に予め組み込まれた状態でユーザに提供される記録媒体等で構成される。リムーバブルメディア31は、例えば、磁気ディスク(フロッピディスクを含む)、光ディスク、又は光磁気ディスク等により構成される。光ディスクは、例えば、CD−ROM(Compact Disk−Read Only Memory),DVD(Digital Versatile Disk)等により構成される。光磁気ディスクは、MD(Mini−Disk)等により構成される。また、装置本体に予め組み込まれた状態でユーザに提供される記録媒体は、例えば、プログラムが記録されている図1のROM12や、図1の記憶部20に含まれるハードディスク等で構成される。   The recording medium including such a program is not only constituted by the removable medium 31 of FIG. 1 distributed separately from the apparatus main body in order to provide the program to the user, but also in a state of being incorporated in the apparatus main body in advance. The recording medium etc. provided in The removable medium 31 is composed of, for example, a magnetic disk (including a floppy disk), an optical disk, a magneto-optical disk, or the like. The optical disk is composed of, for example, a CD-ROM (Compact Disk-Read Only Memory), a DVD (Digital Versatile Disk), or the like. The magneto-optical disk is configured by an MD (Mini-Disk) or the like. In addition, the recording medium provided to the user in a state of being preliminarily incorporated in the apparatus main body includes, for example, the ROM 12 in FIG. 1 in which a program is recorded, the hard disk included in the storage unit 20 in FIG.

なお、本明細書において、記録媒体に記録されるプログラムを記述するステップは、その順序に沿って時系列的に行われる処理はもちろん、必ずしも時系列的に処理されなくとも、並列的あるいは個別に実行される処理をも含むものである。   In the present specification, the step of describing the program recorded on the recording medium is not limited to the processing performed in chronological order according to the order, but is not necessarily performed in chronological order, either in parallel or individually. The process to be executed is also included.

以上、本発明のいくつかの実施形態について説明したが、これらの実施形態は、例示に過ぎず、本発明の技術的範囲を限定するものではない。本発明はその他の様々な実施形態を取ることが可能であり、更に、本発明の要旨を逸脱しない範囲で、省略や置換等種々の変更を行うことができる。これら実施形態やその変形は、本明細書等に記載された発明の範囲や要旨に含まれると共に、特許請求の範囲に記載された発明とその均等の範囲に含まれる。   As mentioned above, although several embodiment of this invention was described, these embodiment is only an illustration and does not limit the technical scope of this invention. The present invention can take other various embodiments, and various modifications such as omission and replacement can be made without departing from the gist of the present invention. These embodiments and modifications thereof are included in the scope and gist of the invention described in this specification and the like, and are included in the invention described in the claims and the equivalents thereof.

以下に、本願の出願当初の特許請求の範囲に記載された発明を付記する。
[付記1]
動画撮影により逐次取得される各フレームの画像データに対して圧縮処理を施しながら動画データとして記録用メモリに記録する動画記録装置であって、
動画撮影により逐次取得される前記各フレームの画像データを一時的に作業用メモリに格納する際に実行される第1の圧縮処理を実行する第1の圧縮手段と、
前記作業用メモリに一時的に格納された前記各フレームの画像データを前記記録用メモリに記録する際に実行される第2の圧縮処理を実行する第2の圧縮手段と、を備え、
前記第1の圧縮処理と、前記第2の圧縮処理とは圧縮処理の内容が異なることを特徴とする動画記録装置。
[付記2]
前記第1の圧縮処理と、前記第2の圧縮処理とは処理速度または圧縮率が異なることを特徴とする付記1に記載の動画記録装置。
[付記3]
前記第1の圧縮処理は、少なくとも瞬間的には、前記第2の圧縮処理よりも処理速度を速く、または圧縮率を高くできることを特徴とする付記2に記載の動画記録装置。
[付記4]
前記作業用メモリは複数フレームの画像データを記憶可能であり、
前記第1の圧縮手段は、前記逐次取得される前記各フレームの画像データを、前記第2の圧縮処理が施されて記録用メモリに記録されるまでのあいだ一時的に前記作業用メモリに記憶させる一時記憶制御手段を備え、
前記作業用メモリに記憶された前記各フレームの画像データを、前記第2の圧縮処理が施されて前記記録用メモリに記録された後に消去する消去手段、を更に備える、
ことを特徴とする付記1乃至3のいずれかに記載の動画記録装置。
[付記5]
前記第1の圧縮処理が施されて前記作業用メモリに格納された画像データに対して伸長処理を実行する伸長手段、を更に備え、
前記圧縮処理は、前記第1の圧縮処理が施されて前記作業用メモリに格納された画像データに対して前記伸長手段による前記伸長処理を施しながら前記第2の圧縮処理を施して前記記録用メモリに記録していく処理である、ことを特徴とする付記4に記載の動画記録装置。
[付記6]
前記第1の圧縮処理は、
新たに取得されたフレームの画像データと、既に前記作業用メモリに格納されている他のフレームの画像データとの差分が所定の閾値以内である場合には、当該新たに取得されたフレームについて、当該フレームの画像データを前記作業用メモリに記憶せずに、前記他のフレームの画像データで代替可能であることを示す代替情報だけを前記作業用メモリに記憶する処理である、ことを特徴とする付記5に記載の動画記録装置。
[付記7]
前記伸長処理は、前記代替情報が記憶されている場合に、前記第2の圧縮処理を施すフレームの画像データを前記代替情報が示す前記他のフレームの画像データとみなす処理である、ことを特徴とする付記6に記載の動画記録装置。
[付記8]
前記第1の圧縮処理は、
前記新たに取得されたフレームの画像データと、直前に取得されたフレームの画像データとの差分が所定の閾値以内である場合に、前記新たに取得されたフレームの画像データが前記直前に取得されたフレームの画像データで代替可能であることを示す代替情報を記憶する処理である、ことを特徴とする付記6又は7に記載の動画記録装置。
[付記9]
前記第1の圧縮処理は、
連続して取得された複数のフレームの画像データの各々と、直前に取得されたフレームの画像データとの差分が所定の閾値以内である場合に、連続して取得された複数のフレームの数を、直前のフレームの画像データで代替可能なフレームの連続する枚数を示す代替情報として記憶する処理である、ことを特徴とする付記8に記載の動画記録装置。
[付記10]
前記作業用メモリに記憶される画像データの容量が、前記作業用メモリとして利用可能なメモリ容量を超える所定状況である場合に、前記第1の圧縮処理を有効とし、前記所定状況でない場合には前記第1の圧縮処理を無効にする、第1の圧縮処理有効化手段、を更に備える、ことを特徴とする付記1から9のいずれかに記載の動画記録装置。
[付記11]
前記第1の圧縮処理有効化手段は、動画撮影のフレームレートが所定以上である場合に前記所定状況であると判断する、ことを特徴とする付記10に記載の動画記録装置。
[付記12]
動画撮影により逐次取得される各フレームの画像データに対して圧縮処理を施しながら動画データとして記録用メモリに記録する動画記録装置が実行する動画記録方法であって、
動画撮影により逐次取得される前記各フレームの画像データを一時的に作業用メモリに格納する際に実行される第1の圧縮処理を実行する第1の圧縮ステップと、
前記作業用メモリに一時的に格納された前記各フレームの画像データを前記記録用メモリに記録する際に実行される第2の圧縮処理を実行する第2の圧縮ステップと、を含み、
前記第1の圧縮処理と、前記第2の圧縮処理とは圧縮処理の内容が異なる、
動画記録方法。
[付記13]
動画撮影により逐次取得される各フレームの画像データに対して圧縮処理を施しながら動画データとして記録用メモリに記録する動画記録装置として用いられるコンピュータに、
動画撮影により逐次取得される前記各フレームの画像データを一時的に作業用メモリに格納する際に実行される第1の圧縮処理を実行する第1の圧縮ステップと、
前記作業用メモリに一時的に格納された前記各フレームの画像データを前記記録用メモリに記録する際に実行される第2の圧縮処理を実行する第2の圧縮ステップと、を実行させ、
前記第1の圧縮処理と、前記第2の圧縮処理とは圧縮処理の内容が異なる、
プログラム。
The invention described in the scope of claims at the beginning of the filing of the present application will be appended.
[Appendix 1]
A moving image recording apparatus for recording in a recording memory as moving image data while performing compression processing on image data of each frame sequentially acquired by moving image shooting,
First compression means for executing a first compression process executed when the image data of each frame sequentially acquired by moving image shooting is temporarily stored in a working memory;
Second compression means for executing a second compression process that is executed when the image data of each frame temporarily stored in the working memory is recorded in the recording memory;
The moving image recording apparatus according to claim 1, wherein the first compression process and the second compression process have different contents of the compression process.
[Appendix 2]
The moving image recording apparatus according to appendix 1, wherein the first compression processing and the second compression processing are different in processing speed or compression rate.
[Appendix 3]
The moving image recording apparatus according to appendix 2, wherein the first compression process can increase the processing speed or the compression rate higher than the second compression process at least instantaneously.
[Appendix 4]
The working memory is capable of storing a plurality of frames of image data,
The first compression means temporarily stores the sequentially acquired image data of each frame in the working memory until the second compression processing is performed and the image data is recorded in the recording memory. Temporary storage control means for causing
Erasing means for erasing the image data of each frame stored in the working memory after being subjected to the second compression processing and recorded in the recording memory;
The moving picture recording apparatus according to any one of appendices 1 to 3, wherein
[Appendix 5]
Decompression means for executing decompression processing on the image data that has been subjected to the first compression processing and stored in the working memory;
In the compression process, the second compression process is performed on the image data that has been subjected to the first compression process and stored in the working memory while performing the expansion process by the expansion unit, and the recording data The moving image recording apparatus according to attachment 4, wherein the moving image recording apparatus is a process of recording in a memory.
[Appendix 6]
The first compression process includes
When the difference between the image data of the newly acquired frame and the image data of the other frame already stored in the working memory is within a predetermined threshold, the newly acquired frame is It is a process of storing only replacement information indicating that the image data of the other frame can be replaced with the image data of the other frame without storing the image data of the frame in the work memory. The moving image recording apparatus according to appendix 5.
[Appendix 7]
The decompression process is a process in which, when the substitute information is stored, the image data of the frame subjected to the second compression process is regarded as the image data of the other frame indicated by the substitute information. The moving image recording apparatus according to appendix 6.
[Appendix 8]
The first compression process includes
When the difference between the image data of the newly acquired frame and the image data of the frame acquired immediately before is within a predetermined threshold, the image data of the newly acquired frame is acquired immediately before the frame. The moving image recording apparatus according to appendix 6 or 7, characterized in that it is a process of storing substitution information indicating that substitution is possible with image data of a frame.
[Appendix 9]
The first compression process includes
When the difference between each of the image data of a plurality of frames acquired continuously and the image data of the frame acquired immediately before is within a predetermined threshold, the number of the plurality of frames acquired continuously is calculated. 9. The moving image recording apparatus according to appendix 8, wherein the moving image recording apparatus stores the information as replacement information indicating a continuous number of frames that can be replaced with the image data of the immediately preceding frame.
[Appendix 10]
When the capacity of the image data stored in the working memory is in a predetermined situation exceeding the memory capacity available as the working memory, the first compression process is enabled, and when the capacity is not the prescribed situation 10. The moving image recording apparatus according to any one of appendices 1 to 9, further comprising: a first compression processing validation unit that invalidates the first compression processing.
[Appendix 11]
11. The moving image recording apparatus according to appendix 10, wherein the first compression processing enabling means determines that the predetermined situation occurs when a frame rate of moving image shooting is equal to or higher than a predetermined value.
[Appendix 12]
A moving image recording method executed by a moving image recording apparatus for recording in a recording memory as moving image data while performing compression processing on image data of each frame sequentially acquired by moving image shooting,
A first compression step of executing a first compression process that is executed when the image data of each frame sequentially acquired by moving image shooting is temporarily stored in a working memory;
A second compression step of performing a second compression process executed when recording the image data of each frame temporarily stored in the working memory in the recording memory,
The first compression process and the second compression process have different contents of the compression process.
Video recording method.
[Appendix 13]
In a computer used as a moving image recording apparatus that records data in a recording memory as moving image data while performing compression processing on image data of each frame sequentially acquired by moving image shooting,
A first compression step of executing a first compression process that is executed when the image data of each frame sequentially acquired by moving image shooting is temporarily stored in a working memory;
A second compression step for executing a second compression process executed when the image data of each frame temporarily stored in the working memory is recorded in the recording memory;
The first compression process and the second compression process have different contents of the compression process.
program.

1・・・動画記録装置,11・・・CPU,12・・・ROM,13・・・RAM,14・・・画像処理部,15・・・バス,16・・・入出力インターフェース,17・・・撮像部,18・・・入力部,19・・・出力部,20・・・記憶部,21・・・通信部,22・・・ドライブ,31・・・リムーバブルメディア,41・・・主制御部,42・・・撮像制御部,43・・・画像取得部,51・・・第1圧縮部,511・・・差分算出部,512・・・一時記憶制御部,513・・・インデックス記憶制御部,52・・・第2圧縮部,521・・・伸長部,522・・・圧縮符号部,53・・・消去部,61・・・画像一時記憶部,62・・・インデックス記憶部,81〜85・・・画像   DESCRIPTION OF SYMBOLS 1 ... Movie recording device, 11 ... CPU, 12 ... ROM, 13 ... RAM, 14 ... Image processing part, 15 ... Bus, 16 ... Input / output interface, 17. ..Imaging unit, 18 ... input unit, 19 ... output unit, 20 ... storage unit, 21 ... communication unit, 22 ... drive, 31 ... removable media, 41 ... Main control unit, 42... Imaging control unit, 43... Image acquisition unit, 51... First compression unit, 511 ... difference calculation unit, 512 ... temporary storage control unit, 513. Index storage control unit, 52... Second compression unit, 521... Decompression unit, 522... Compression encoding unit, 53. Storage unit, 81-85 ... Image

Claims (13)

動画を構成する複数フレームの画像データを一度に記憶可能な所定の記憶容量を有する作業用メモリと、
動画撮影により所定の速度で逐次取得される複数フレームの画像データを、前記所定の記憶容量を限度として前記作業用メモリに一度に格納する一時記憶制御手段と、
前記一時記憶制御手段によって前記複数フレームの画像データを前記作業用メモリに格納する際に、前記所定の速度よりも単位フレーム当りの処理速度が速い第1の圧縮処理を施してから前記作業用メモリに一度に格納させる第1の圧縮手段と、
前記作業用メモリに一度に格納された前記複数フレームの画像データに対して前記所定の速度よりも単位フレーム当りの処理速度が遅い第2の圧縮処理を施して記録用メモリに記録する第2の圧縮手段と、
を備えることを特徴とする動画記録装置。
A working memory having a predetermined storage capacity capable of storing a plurality of frames of image data constituting a video at a time;
Temporary storage control means for storing a plurality of frames of image data sequentially acquired at a predetermined speed by moving image shooting at a time in the working memory up to the predetermined storage capacity ;
When the plurality of frames of image data are stored in the working memory by the temporary storage control means, the working memory is subjected to a first compression process having a processing speed per unit frame higher than the predetermined speed. First compression means for storing at a time;
Wherein the working memory stored the relative image data given processing rate per unit frame is slower than the second compression alms second to be recorded in the recording memory of the plurality of frames at a time Compression means ;
Video recording apparatus comprising: a.
前記一時記憶制御手段は、前記作業用メモリ内の領域のうち、前記第2の圧縮処理を施して前記記録用メモリへの記録が済んだフレームの画像データが格納されていた領域を、新たに取得されるフレームの画像データを格納できるように逐次開放していく、The temporary storage control unit newly adds an area in which image data of a frame that has been subjected to the second compression processing and has been recorded in the recording memory is stored in the area in the working memory. Open sequentially so that the image data of the acquired frames can be stored,
ことを特徴とする請求項1に記載の動画記録装置。The moving image recording apparatus according to claim 1.
動画撮影により各フレームの画像データを取得していく速度であるフレームレートを変更可能であり、It is possible to change the frame rate, which is the speed at which the image data of each frame is acquired by movie shooting,
動画撮影のフレームレートが所定以上である場合に、前記第1の圧縮手段による前記第1の圧縮処理を実行する制御手段を更に備えた、A control means for executing the first compression processing by the first compression means when the frame rate of the moving image shooting is a predetermined value or more;
ことを特徴とする請求項1または2に記載の動画記録装置。The moving image recording apparatus according to claim 1 or 2, wherein
前記第1の圧縮手段は、前記一時記憶制御手段によって前記複数フレームの画像データを前記作業用メモリに格納する際に、フレーム数を削減するフレーム間引き処理を実行する、The first compression unit executes a frame thinning process for reducing the number of frames when the temporary storage control unit stores the image data of the plurality of frames in the working memory.
ことを特徴とする請求項1乃至3のいずれかに記載の動画記録装置。The moving picture recording apparatus according to claim 1, wherein the moving picture recording apparatus is a moving picture recording apparatus.
前記第1の圧縮処理が施された状態で前記作業用メモリに格納された前記複数フレームの画像データに対して前記第2の圧縮処理を施して前記記録用メモリに記録する際に、所定の伸長処理を実行して各フレームの画像データを伸張してから前記第2の圧縮処理を施すように制御する伸張手段を更に備えた、When the plurality of frames of image data stored in the working memory in a state where the first compression processing has been performed, the second compression processing is performed and recorded in the recording memory. Further comprising decompression means for performing decompression processing to decompress the image data of each frame and then performing the second compression processing;
ことを特徴とする請求項1乃至4のいずれかに記載の動画記録装置。The moving picture recording apparatus according to claim 1, wherein the moving picture recording apparatus is a moving picture recording apparatus.
前記第1の圧縮処理は、
新たに取得されたフレームの画像データと、既に前記作業用メモリに格納されている他のフレームの画像データとの差分が所定の閾値以内である場合には、当該新たに取得されたフレームについて、当該フレームの画像データを前記作業用メモリに記憶せずに、前記他のフレームの画像データで代替可能であることを示す代替情報だけを前記作業用メモリに記憶する処理である、ことを特徴とする請求項5に記載の動画記録装置。
The first compression process includes
When the difference between the image data of the newly acquired frame and the image data of the other frame already stored in the working memory is within a predetermined threshold, the newly acquired frame is It is a process of storing only replacement information indicating that the image data of the other frame can be replaced with the image data of the other frame without storing the image data of the frame in the work memory. The moving image recording apparatus according to claim 5.
前記伸長処理は、前記代替情報が記憶されている場合に、前記第2の圧縮処理を施すフレームの画像データを前記代替情報が示す前記他のフレームの画像データとみなす処理である、ことを特徴とする請求項6に記載の動画記録装置。   The decompression process is a process in which, when the substitute information is stored, the image data of the frame subjected to the second compression process is regarded as the image data of the other frame indicated by the substitute information. The moving image recording apparatus according to claim 6. 前記第1の圧縮処理は、
前記新たに取得されたフレームの画像データと、直前に取得されたフレームの画像データとの差分が所定の閾値以内である場合に、前記新たに取得されたフレームの画像データが前記直前に取得されたフレームの画像データで代替可能であることを示す代替情報を記憶する処理である、ことを特徴とする請求項6又は7に記載の動画記録装置。
The first compression process includes
When the difference between the image data of the newly acquired frame and the image data of the frame acquired immediately before is within a predetermined threshold, the image data of the newly acquired frame is acquired immediately before the frame. 8. The moving image recording apparatus according to claim 6 or 7, wherein the moving image recording apparatus stores the replacement information indicating that the image data of the frame can be replaced.
前記第1の圧縮処理は、
連続して取得された複数のフレームの画像データの各々と、直前に取得されたフレームの画像データとの差分が所定の閾値以内である場合に、連続して取得された複数のフレームの数を、直前のフレームの画像データで代替可能なフレームの連続する枚数を示す代替情報として記憶する処理である、ことを特徴とする請求項8に記載の動画記録装置。
The first compression process includes
When the difference between each of the image data of a plurality of frames acquired continuously and the image data of the frame acquired immediately before is within a predetermined threshold, the number of the plurality of frames acquired continuously is calculated. 9. The moving image recording apparatus according to claim 8, wherein the moving image recording apparatus stores the information as replacement information indicating a continuous number of frames that can be replaced with image data of the immediately preceding frame.
前記作業用メモリに記憶される画像データの容量が、前記作業用メモリとして利用可能なメモリ容量を超える所定状況である場合に、前記第1の圧縮処理を有効とし、前記所定状況でない場合には前記第1の圧縮処理を無効にする、第1の圧縮処理有効化手段、を更に備える、ことを特徴とする請求項1から9のいずれかに記載の動画記録装置。   When the capacity of the image data stored in the working memory is in a predetermined situation exceeding the memory capacity available as the working memory, the first compression process is enabled, and when the capacity is not the prescribed situation The moving image recording apparatus according to claim 1, further comprising first compression processing enabling means for invalidating the first compression processing. 前記第1の圧縮処理有効化手段は、動画撮影のフレームレートが所定以上である場合に前記所定状況であると判断する、ことを特徴とする請求項10に記載の動画記録装置。   The moving image recording apparatus according to claim 10, wherein the first compression processing enabling unit determines that the predetermined state is satisfied when a frame rate of moving image shooting is equal to or higher than a predetermined value. 動画を構成する複数フレームの画像データを一度に記憶可能な所定の記憶容量を有する作業用メモリを備えた動画記録装置が実行する動画記録方法であって、
動画撮影により所定の速度で逐次取得される複数フレームの画像データを、前記所定の記憶容量を限度として前記作業用メモリに一度に格納し、
前記複数フレームの画像データを前記作業用メモリに格納する際に、前記所定の速度よりも単位フレーム当りの処理速度が速い第1の圧縮処理を施してから前記作業用メモリに一度に格納させ、
前記作業用メモリに一度に格納された前記複数フレームの画像データに対して前記所定の速度よりも単位フレーム当りの処理速度が遅い第2の圧縮処理を施して記録用メモリに記録する
ことを特徴とする動画記録方法。
A moving image recording method executed by a moving image recording apparatus including a working memory having a predetermined storage capacity capable of storing a plurality of frames of image data constituting a moving image at a time ,
A plurality of frames of image data sequentially acquired at a predetermined speed by moving image shooting are stored in the working memory at a time with the predetermined storage capacity as a limit ,
When storing the plurality of frames of image data in the working memory, the first compression processing having a processing speed per unit frame higher than the predetermined speed is performed and then stored in the working memory at a time,
Processing speed per unit frame is recorded in the slow second recording memory is subjected to compression processing than the predetermined speed relative to the stored image data of the plurality of frames has been at once the working memory,
And a moving picture recording method.
動画を構成する複数フレームの画像データを一度に記憶可能な所定の記憶容量を有する作業用メモリを備えた動画記録装置コンピュータを、
動画撮影により所定の速度で逐次取得される複数フレームの画像データを、前記所定の記憶容量を限度として前記作業用メモリに一度に格納する一時記憶制御手段、
前記一時記憶制御手段によって前記複数フレームの画像データを前記作業用メモリに格納する際に、前記所定の速度よりも単位フレーム当りの処理速度が速い第1の圧縮処理を施してから前記作業用メモリに一度に格納させる第1の圧縮手段、
前記作業用メモリに一度に格納された前記複数フレームの画像データに対して前記所定の速度よりも単位フレーム当りの処理速度が遅い第2の圧縮処理を施して記録用メモリに記録する第2の圧縮手段
として機能させることを特徴とするプログラム。
A computer of a moving image recording apparatus provided with a working memory having a predetermined storage capacity capable of storing image data of a plurality of frames constituting a moving image at a time ,
Temporary storage control means for storing image data of a plurality of frames sequentially acquired at a predetermined speed by moving image shooting at a time in the working memory up to the predetermined storage capacity ;
When the plurality of frames of image data are stored in the working memory by the temporary storage control means, the working memory is subjected to a first compression process having a processing speed per unit frame higher than the predetermined speed. First compression means for storing at a time,
Wherein the working memory stored the relative image data given processing rate per unit frame is slower than the second compression alms second to be recorded in the recording memory of the plurality of frames at a time Compression means ,
A program characterized by functioning as
JP2012262521A 2012-11-30 2012-11-30 Movie recording apparatus, movie recording method, and program Expired - Fee Related JP5811076B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2012262521A JP5811076B2 (en) 2012-11-30 2012-11-30 Movie recording apparatus, movie recording method, and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2012262521A JP5811076B2 (en) 2012-11-30 2012-11-30 Movie recording apparatus, movie recording method, and program

Publications (2)

Publication Number Publication Date
JP2014110446A JP2014110446A (en) 2014-06-12
JP5811076B2 true JP5811076B2 (en) 2015-11-11

Family

ID=51030866

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2012262521A Expired - Fee Related JP5811076B2 (en) 2012-11-30 2012-11-30 Movie recording apparatus, movie recording method, and program

Country Status (1)

Country Link
JP (1) JP5811076B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0729584Y2 (en) 1986-10-31 1995-07-05 日本電気株式会社 Surface mount connector

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR102445699B1 (en) 2016-02-18 2022-09-21 삼성전자주식회사 Electronic device and operating method thereof
CN109429067B (en) * 2017-08-31 2022-10-25 腾讯科技(深圳)有限公司 Dynamic picture compression method and device, computer equipment and storage medium

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3197733B2 (en) * 1994-02-23 2001-08-13 株式会社リコー Information recording / reproducing device
JPH09147090A (en) * 1995-11-28 1997-06-06 Toppan Printing Co Ltd Image processing device
JP4305055B2 (en) * 2003-05-22 2009-07-29 株式会社日立製作所 Image recording device
JP2006121554A (en) * 2004-10-25 2006-05-11 Matsushita Electric Ind Co Ltd Mobile terminal with camera
JP4577557B2 (en) * 2004-11-24 2010-11-10 カシオ計算機株式会社 Electronic camera device, moving image recording method and program
JP2006270405A (en) * 2005-03-23 2006-10-05 Sony Corp Video processing apparatus, video processing method, and computer program

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0729584Y2 (en) 1986-10-31 1995-07-05 日本電気株式会社 Surface mount connector

Also Published As

Publication number Publication date
JP2014110446A (en) 2014-06-12

Similar Documents

Publication Publication Date Title
US8319859B2 (en) Digital camera having a variable frame rate and method of controlling the digital camera
JP5126207B2 (en) Imaging device
JP4992860B2 (en) Imaging apparatus and program
JP2008244873A (en) Image management system, digital camera, image management method, and image management program
JP5811076B2 (en) Movie recording apparatus, movie recording method, and program
KR20100015178A (en) Digital camera for supporting overriding mode and the controlling method thereof
JP5338373B2 (en) Imaging device
JP2017224939A (en) Imaging device
JP6929044B2 (en) Imaging device, control method of imaging device, and program
JP5896181B2 (en) Imaging apparatus, imaging control method, and program
JP6021594B2 (en) Imaging apparatus and program
KR20100018330A (en) Digital image processing apparatus, method for controlling the same and medium of recording the method
JP2018110300A (en) IMAGING DEVICE, ITS CONTROL METHOD, PROGRAM, AND RECORDING MEDIUM
JP5321108B2 (en) Camera, lens aberration correction program, and computer-readable recording medium recording lens aberration correction program
JP5352377B2 (en) Image processing apparatus and image processing method
JP6282136B2 (en) Imaging apparatus and control method thereof
US9955135B2 (en) Image processing apparatus, image processing method, and program wherein a RAW image to be subjected to special processing is preferentially subjected to development
JP7003286B2 (en) Shooting equipment, shooting method, and program
US11064117B2 (en) Imaging apparatus and recording control method
US9432650B2 (en) Image display apparatus, image capturing apparatus, and method of controlling image display apparatus
JP5944246B2 (en) Imaging device
US20110279695A1 (en) Imaging apparatus
JP6270712B2 (en) Imaging device
JP2013175803A (en) Image processing device and camera
JP6280402B2 (en) Image recording apparatus, image recording method, program, and storage medium

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20140929

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20150514

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20150526

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20150727

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20150831

R150 Certificate of patent or registration of utility model

Ref document number: 5811076

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

LAPS Cancellation because of no payment of annual fees