[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

JP2002199340A - Electronic camera and method for controlling the same - Google Patents

Electronic camera and method for controlling the same

Info

Publication number
JP2002199340A
JP2002199340A JP2000397039A JP2000397039A JP2002199340A JP 2002199340 A JP2002199340 A JP 2002199340A JP 2000397039 A JP2000397039 A JP 2000397039A JP 2000397039 A JP2000397039 A JP 2000397039A JP 2002199340 A JP2002199340 A JP 2002199340A
Authority
JP
Japan
Prior art keywords
moving image
image
work memory
electronic camera
image data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2000397039A
Other languages
Japanese (ja)
Inventor
Takatoshi Haraguchi
隆俊 原口
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 JP2000397039A priority Critical patent/JP2002199340A/en
Publication of JP2002199340A publication Critical patent/JP2002199340A/en
Pending legal-status Critical Current

Links

Landscapes

  • Television Signal Processing For Recording (AREA)
  • Studio Devices (AREA)
  • Cameras In General (AREA)
  • Cameras Adapted For Combination With Other Photographic Or Optical Apparatuses (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide an electronic camera capable of recording an animation file of a necessary and sufficient quality without causing cost up. SOLUTION: The electronic camera 10 is provided with an image pickup device (32) for picking up the image of a subject to generate animation data by using a periodical image signal, and a control part 36. The part 36 functions as an animation generating means for generating animation data by using the periodical image signal and an animation compressing means for performing animation compressing processing of animation data to store it in a storage device. During a time for photographing animation, the animation generating means successively stores the periodical image signal generated by the image pickup device in a work memory to generate the animation data on the work memory, and the animation compressing means carries out animation compressing processing to the animation data on the work memory asynchronously with the animation photographic period.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、電子カメラに関
し、詳しくは、被写体の画像信号を生成して周期的に出
力する撮像デバイスを有する電子カメラであって、被写
体の静止画像のみならず動画像も記録できるようにした
電子カメラに関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an electronic camera, and more particularly, to an electronic camera having an image pickup device for generating an image signal of a subject and periodically outputting the signal, and not only a still image of the subject but also a moving image. The present invention also relates to an electronic camera capable of recording an image.

【0002】[0002]

【従来の技術】ディジタルカメラに代表されるいわゆる
電子カメラは、CCD(Charge Coupled Device)やC
MOS(Complementary Mental Oxide Semiconductor)
などの撮像デバイスで構成された二次元イメージセンサ
を用いて被写体の画像信号を生成し、その画像ファイル
を記憶デバイスに書き込んで電子的に記録するものであ
り、フィルムカメラに比べて、画像の即時再生や不要画
像の消去及び画像データの転送容易性等の点で格別の利
便性を持っている。
2. Description of the Related Art A so-called electronic camera represented by a digital camera is known as a CCD (Charge Coupled Device) or a CCD.
MOS (Complementary Mental Oxide Semiconductor)
It generates an image signal of a subject using a two-dimensional image sensor composed of an imaging device such as a camera, writes the image file to a storage device, and electronically records the image file. It has exceptional convenience in terms of reproduction, erasure of unnecessary images, and ease of transferring image data.

【0003】電子カメラの記録画像は静止画像である
が、イメージセンサの多くは、毎秒数十フレームの周期
で静止画信号を生成できる点に着目し、シャッターキー
の押し下げ操作時点から静止画信号の記録動作を数秒間
程度繰り返すことにより、動画像記録を可能にした電子
カメラも一部で普及している。
An image recorded by an electronic camera is a still image, but most image sensors focus on the point that a still image signal can be generated at a period of several tens of frames per second. Electronic cameras that enable moving image recording by repeating a recording operation for several seconds have been widely used.

【0004】[0004]

【発明が解決しようとする課題】しかしながら、上記の
ように単に複数枚の静止画で動画像ファイルを構成した
場合は、1枚の静止画サイズの複数倍もの大きな記憶容
量を必要とするため、動画の記録時間が制限されてしま
う上、とりわけ、記憶デバイスの空き容量が少なくなっ
た場合は静止画の撮影にも支障をきたすという不都合が
ある。
However, when a moving image file is simply composed of a plurality of still images as described above, a storage capacity as large as a multiple of one still image is required. In addition to the limitation of the recording time of the moving image, there is a disadvantage that even when the free space of the storage device is reduced, the shooting of the still image is hindered.

【0005】動画像の再生品質、特に動きの滑らかさは
毎秒あたりのフレーム数で決まり、たとえば、テレビジ
ョン放送レベルの品質を得るためには毎秒60フレーム
程度の画像を記憶しなければならないため、仮に10秒
間の動画像を記録するには、60×10=600枚もの
フレーム画像(静止画)を記憶できる大容量の記憶デバ
イスを必要とする。これを具体的数値で例示すると、一
般に640×480画素構成の静止画像は200KB
(キロバイト)程度の大きさであるので、600枚の静
止画からなる動画ファイルの大きさは、600×200
=120000KB、すなわち、120MB(メガバイ
ト)にも及び、ハードディスクなどの大容量記憶デバイ
スを用いない限り、到底実現不可能である。このこと
は、数十メガバイト程度の記憶容量しか持たない電子カ
メラにとって、超えることができない大きな壁である。
[0005] The reproduction quality of a moving image, particularly the smoothness of motion, is determined by the number of frames per second. For example, in order to obtain television broadcast level quality, an image of about 60 frames per second must be stored. To record a moving image for 10 seconds, a large-capacity storage device capable of storing as many as 60 × 10 = 600 frame images (still images) is required. To illustrate this with specific numerical values, a still image having a 640 × 480 pixel configuration is generally 200 KB.
(Kilobytes), the size of a moving image file composed of 600 still images is 600 × 200.
= 120,000 KB, that is, 120 MB (megabytes), and cannot be realized unless a large-capacity storage device such as a hard disk is used. This is a major barrier that cannot be exceeded for an electronic camera having a storage capacity of only several tens of megabytes.

【0006】そこで、記憶容量を有効利用するために、
動画ファイルを圧縮して記憶デバイスに書き込むことが
考えられる。たとえば、今日における動画圧縮の代表技
術はMPEG(Moving Picture Experts Group)である
から、このMPEGを用いて動画ファイルを構成すれ
ば、少なくとも、その圧縮率に相当する分だけ動画のフ
ァイルサイズを小さくすることができ、上記の不都合を
解消できる。
Therefore, in order to effectively use the storage capacity,
It is conceivable to compress the moving image file and write it to the storage device. For example, since the typical technology of moving image compression today is MPEG (Moving Picture Experts Group), if a moving image file is formed using MPEG, the file size of the moving image is reduced at least by an amount corresponding to the compression ratio. And the above-mentioned disadvantages can be solved.

【0007】しかしながら、MPEGは蓄積メディア系
の圧縮技術であり、その原理上、リアルタイム性に欠け
ることから、撮像デバイスから出力されたフレーム画像
を取り込みながら同時に圧縮処理を行うためには、専用
の圧縮処理系(いわゆるMPEGコーディック装置)を
必要とし、あるいは、ソフトウェアによる圧縮を行うの
であれば高性能なマイクロプロセッサを必要とするか
ら、いずれの対策も電子カメラのコストアップにつなが
るという問題点がある。
[0007] However, MPEG is a compression technology for storage media. Since it lacks real-time performance in principle, a dedicated compression method is required to simultaneously perform compression processing while capturing frame images output from an imaging device. Since a processing system (a so-called MPEG codec device) is required, or a high-performance microprocessor is required to perform compression by software, there is a problem that any countermeasure leads to an increase in the cost of the electronic camera.

【0008】したがって、本発明が解決しようとする課
題は、コストアップを招くことなく、必要十分な品質の
動画ファイルを記録できる電子カメラを提供することに
ある。
Therefore, an object of the present invention is to provide an electronic camera capable of recording a moving image file of necessary and sufficient quality without increasing the cost.

【0009】[0009]

【課題を解決するための手段】本発明は、上記の課題を
解決するために、被写体を撮像して周期的な画像信号を
生成する撮像デバイスと、該周期的な画像信号を用いて
動画データを生成する動画生成手段と、該動画データを
動画圧縮処理して記憶デバイスに記憶する動画圧縮手段
とを備えた電子カメラであって、前記動画生成手段は、
動画撮影時間の間、前記撮像デバイスにより生成された
周期的な画像信号をワークメモリに順次記憶することに
よって該ワークメモリ上に前記動画データを生成し、前
記動画圧縮手段は、動画撮影周期と非同期で前記ワーク
メモリ上の動画データに対する動画圧縮処理を実行する
ことを特徴とする。
SUMMARY OF THE INVENTION In order to solve the above-mentioned problems, the present invention provides an imaging device for imaging a subject and generating a periodic image signal, and a moving image data using the periodic image signal. An electronic camera comprising: a moving image generating unit that generates a moving image; and a moving image compressing unit that performs moving image compression processing on the moving image data and stores the moving image data in a storage device.
During the moving image shooting time, the moving image data is generated on the work memory by sequentially storing the periodic image signals generated by the imaging device in the work memory, and the moving image compression unit is asynchronous with the moving image shooting period. And performing a moving image compression process on the moving image data on the work memory.

【0010】[0010]

【発明の実施の形態】以下、本発明の実施の形態を、デ
ィジタルカメラ等の電子カメラを例にして、図面を参照
しながら説明する。
DESCRIPTION OF THE PREFERRED EMBODIMENTS Embodiments of the present invention will be described below with reference to the drawings, taking an electronic camera such as a digital camera as an example.

【0011】まず、構成を説明する。図1は、電子カメ
ラの外観図である。図において、電子カメラ10は、カ
メラボディ11の前面に、レンズ鏡筒部12、ファイン
ダ窓13及びストロボ窓14などを備えるとともに、上
面に、シャッターキー15、ストロボオンオフキー16
及びセルフタイマーキー17などを備え、さらに、背面
に、電源スイッチ18、ズームボタン19、記録/再生
モード切り替えスイッチ20、ファインダ接眼窓21、
液晶ディスプレイ22及び複数の機能キー23〜25な
どを備える。
First, the configuration will be described. FIG. 1 is an external view of an electronic camera. In the figure, an electronic camera 10 includes a lens barrel 12, a finder window 13, a flash window 14, and the like on a front surface of a camera body 11, and a shutter key 15, a flash on / off key 16
And a self-timer key 17, and a power switch 18, a zoom button 19, a recording / playback mode switching switch 20, a finder eyepiece window 21,
A liquid crystal display 22 and a plurality of function keys 23 to 25 are provided.

【0012】ここで、本実施の形態では、第1から第3
までの3個の機能キー23〜25を備えるものとし、且
つ、第1の機能キー23を後述のメニュー処理起動キー
(以下「メニューキー23」という。)に割り当て、ま
た、第2の機能キー24をカーソルの上下左右移動キー
(以下「カーソルキー24」という。)に割り当て、さ
らに、第3の機能キー25を選択実行キー(以下「エン
ターキー25」という。)に割り当てることにする。
Here, in the present embodiment, first to third
Up to three function keys 23 to 25, and the first function key 23 is assigned to a menu processing activation key (hereinafter, referred to as “menu key 23”), which will be described later. 24 is assigned to a cursor up / down / left / right key (hereinafter, referred to as “cursor key 24”), and the third function key 25 is assigned to a selection execution key (hereinafter, referred to as “enter key 25”).

【0013】レンズ鏡筒部12は、光学ズーム機能付き
の撮影レンズ群やメカニカルシャッタ機構などを収めた
ものであり、レンズ鏡筒部12の後端に配置された不図
示のイメージセンサの受光面に被写体の像を結像させる
ものである。ファインダ窓13は、カメラボディ11の
背面側のファインダ接眼窓21と一体をなしており、目
視で構図確認を行う際に用いられるものである。ストロ
ボ窓14は、後述のストロボ発光を通すための透過窓で
あり、多くの場合、撮影レンズ群の画角に合わせてスト
ロボ発光の光束の広がりを調節するための小さなレンズ
が全面に並べられている。
The lens barrel 12 contains a photographing lens group having an optical zoom function and a mechanical shutter mechanism. The light receiving surface of an image sensor (not shown) arranged at the rear end of the lens barrel 12 is provided. To form an image of the subject. The finder window 13 is integrated with the finder eyepiece window 21 on the rear side of the camera body 11 and is used when visually confirming the composition. The strobe window 14 is a transmission window through which strobe light is emitted, which will be described later. In many cases, a small lens for adjusting the spread of the luminous flux of the strobe light according to the angle of view of the photographing lens group is arranged on the entire surface. I have.

【0014】シャッターキー15は、撮影時に2段押し
されるものである。1段目で露出等を設定し、2段目で
画像をキャプチャ(記録)する。このシャッターキー1
5は、動画像の撮影開始キーとしても用いられるように
なっており、動画モードで2段目まで押し下げると、そ
れ以降の所定の記録時間の間、静止画画像を周期的にキ
ャプチャーして、複数枚のキャプチャー画像からなる動
画像ファイルを生成記録するようになっている。
The shutter key 15 is depressed two steps at the time of photographing. Exposure and the like are set in the first step, and an image is captured (recorded) in the second step. This shutter key 1
Reference numeral 5 is also used as a moving image shooting start key. When the key is pressed down to the second stage in the moving image mode, a still image is periodically captured during a predetermined recording time thereafter, A moving image file including a plurality of captured images is generated and recorded.

【0015】ストロボオンオフキー16は、ストロボ発
光を許容するか禁止するかを設定するものである。許容
に設定されている場合、シャッターキー15の1段目押
し下げ操作時に露出不足が判定されると、画像キャプチ
ャーの際に、後述するストロボ部34を駆動してストロ
ボ光を発射し、禁止に設定されている場合は、同ストロ
ボ部34の駆動を強制禁止する。
A strobe on / off key 16 is used to set whether to permit or prohibit strobe light emission. If the exposure is set to allow, if the underexposure is determined at the time of the first-step-down operation of the shutter key 15, a strobe unit 34 to be described later is driven to emit a strobe light at the time of image capture and set to prohibit. If so, the driving of the flash unit 34 is forcibly prohibited.

【0016】また、セルフタイマーキー17はセルフタ
イマーのオンオフを切り替えるものであり、電源スイッ
チ18は、電子カメラ10の電源を入れたり切ったりす
るものである。ズームボタン19は光学レンズの画角
(すなわちズーム比)を変更するものである。「+」側
を押すと画角が小さくなり、「−」側を押すと逆に大き
くなる。記録/再生モード切り替えスイッチ20は、電
子カメラ10の動作モードを記録モードと再生モードに
切り替えるものである。
A self-timer key 17 is for switching the self-timer on and off, and a power switch 18 is for turning on and off the power of the electronic camera 10. The zoom button 19 changes the angle of view of the optical lens (that is, the zoom ratio). Pressing the "+" side decreases the angle of view, and pressing the "-" side increases the angle. The recording / playback mode switch 20 switches the operation mode of the electronic camera 10 between a recording mode and a playback mode.

【0017】液晶ディスプレイ22は高解像度のカラー
液晶ディスプレイである。この液晶ディスプレイ22を
用いて、記録済みの画像をいつでも自由に再生確認でき
るとともに、記録モードにおいては、スルー画像を表示
させてファインダ代わりに用いることができ、さらに、
逆光撮影などの際の自動露出が不適切であるときはスル
ー画像を見ながら手動で適正露出に設定したり、あるい
は、ホワイトバランスの自動設定値が不適切であるとき
は同様にスルー画像を見ながら撮影光源に応じたホワイ
トバランス設定値を手動で選択したりすることができる
ようになっている。
The liquid crystal display 22 is a high-resolution color liquid crystal display. Using this liquid crystal display 22, the recorded image can be freely played back and checked at any time, and in the recording mode, a through image can be displayed and used in place of a finder.
If the automatic exposure in backlight shooting or the like is inappropriate, set the appropriate exposure manually while viewing the through image.If the automatic setting of the white balance is inappropriate, view the through image in the same way. However, it is possible to manually select a white balance setting value according to a shooting light source.

【0018】図2は、電子カメラ10の概念的な機能ブ
ロック図である。このブロック図では、便宜的に、撮像
部32、画像処理部33、ストロボ部34、操作部3
5、制御部36、表示制御部37、表示部38(図1の
液晶ディスプレイ22に相当)及び画像記憶部39など
の各機能ブロックに分けられている。
FIG. 2 is a conceptual functional block diagram of the electronic camera 10. In this block diagram, for convenience, the imaging unit 32, the image processing unit 33, the strobe unit 34, the operation unit 3
5, each of which is divided into functional blocks such as a control unit 36, a display control unit 37, a display unit 38 (corresponding to the liquid crystal display 22 in FIG. 1), and an image storage unit 39.

【0019】撮像部32は、撮影レンズ群やメカニカル
シャッタ機構などを含むとともに、被写体31の像を撮
像して毎秒数十フレームのカラー画像信号を生成するC
CD等のカラーイメージセンサを含む。このカラーイメ
ージセンサは、タイミング回路やサンプリングホールド
回路及びアナログディジタル変換回路などの付帯回路を
備え、制御部36からの制御信号に基づいてシャッター
速度や露出値などを可変的に設定するとともに、その設
定値に対応した毎秒数十フレーム周期のカラー画像信号
(以下、単に画像信号という。)を生成し、アナログデ
ィジタル変換回路でディジタル信号に変換して画像処理
部33に出力する。
The imaging section 32 includes a photographing lens group, a mechanical shutter mechanism, and the like, and captures an image of the subject 31 to generate a color image signal of several tens of frames per second.
Includes a color image sensor such as a CD. The color image sensor includes an auxiliary circuit such as a timing circuit, a sampling hold circuit, and an analog-to-digital conversion circuit. A color image signal having a period of several tens of frames per second (hereinafter simply referred to as an image signal) corresponding to the value is generated, converted into a digital signal by an analog / digital conversion circuit, and output to the image processing unit 33.

【0020】画像処理部33は、入力された画像信号を
輝度成分(Y)と色成分(Cr、Cb)に分離し、制御
部36からの制御信号に基づいてホワイトバランス補正
を施した後、そのホワイトバランス補正後のYCrCb
信号を制御部36に出力する。ストロボ部34は、制御
部36からの駆動信号に従って被写体31を照明するた
めの補助光(ストロボ光)34aを発射する。操作部3
5は、カメラボディ11に設けられた各種操作キー、す
なわち、前述のシャッターキー15、、ストロボオンオ
フキー16、セルフタイマーキー17、メニューキー2
3、カーソルキー24及びエンターキー25などの操作
に応答したキー信号を生成して制御部36に出力する。
The image processing unit 33 separates the input image signal into a luminance component (Y) and color components (Cr, Cb), and performs white balance correction based on a control signal from the control unit 36. YCrCb after white balance correction
The signal is output to the control unit 36. The strobe unit 34 emits auxiliary light (strobe light) 34 a for illuminating the subject 31 in accordance with a drive signal from the control unit 36. Operation unit 3
Reference numeral 5 denotes various operation keys provided on the camera body 11, that is, the above-described shutter key 15, strobe on / off key 16, self-timer key 17, menu key 2,
3. Generate a key signal in response to operations of the cursor key 24 and the enter key 25 and output the key signal to the control unit 36.

【0021】制御部36は、図3にそのブロック図を示
すように、CPU(Central Processing Unit)36a
を備えるとともに、このCPU36aに、バス36bを
介して、プログラムメモリ36c、ワークメモリ36
d、データメモリ36e、入力部36f及び出力部36
gなどを接続して構成されている。CPU36aはプロ
グラムメモリ36cに格納された所定の制御プログラム
をワークメモリ36dにロードして実行することによ
り、入力部36fからのデータ(画像処理部33からの
画像信号、操作部35からの各種キー信号、画像記憶部
39からの画像信号など)の取り込みや出力部36gへ
のデータ(撮像部32へのシャッター速度や露出設定値
の制御信号、画像処理部33へのホワイトバランス補正
制御信号、表示制御部37への表示用信号、画像記憶部
39への記録用画像信号、ストロボ部34へのストロボ
駆動信号など)の書き出しを行いつつ、あるいは、後述
のメニュー処理を実行したときには、そのメニュー処理
で選択された各種設定値をデータメモリ36eに不揮発
的(電源をオフにしても情報を失わないこと)に書き込
むなどして、電子カメラ10の全体動作を制御する。
The control unit 36 has a CPU (Central Processing Unit) 36a as shown in FIG.
And a program memory 36c and a work memory 36 connected to the CPU 36a via a bus 36b.
d, data memory 36e, input unit 36f, and output unit 36
g etc. are connected. The CPU 36a loads a predetermined control program stored in the program memory 36c into the work memory 36d and executes the same, thereby receiving data from the input unit 36f (image signals from the image processing unit 33, various key signals from the operation unit 35). , The image signal from the image storage unit 39, the data to the output unit 36g (the control signal of the shutter speed and the exposure set value to the imaging unit 32, the white balance correction control signal to the image processing unit 33, the display control) When writing a display signal to the unit 37, a recording image signal to the image storage unit 39, a strobe drive signal to the strobe unit 34), or executing a menu process to be described later, the menu process is executed. The selected various set values are written in the data memory 36e in a nonvolatile manner (the information is not lost even if the power is turned off). And the like, controls the overall operation of the electronic camera 10.

【0022】表示制御部37は、制御部36から出力さ
れたスルー画像やプレビュー画像又は各種設定画面など
の表示信号を表示部38の表示形式に変換して当該表示
部36に出力するもので、これらの表示制御部37及び
表示部38は一体として表示手段を構成する。画像記憶
部39は、撮影画像(キャプチャ画像ともいう。)を不
揮発的に記録するための記録媒体で構成されており、た
とえば、フラッシュメモリ等の半導体記憶デバイスや磁
気メモリデバイスなどをその記録媒体に用いることがで
きる。なお、画像記憶部39は取り外し可能な状態で電
子カメラに実装されていてもよい。
The display controller 37 converts a display signal such as a through image, a preview image, or various setting screens output from the controller 36 into a display format of the display unit 38 and outputs the display signal to the display unit 36. The display control unit 37 and the display unit 38 together constitute a display unit. The image storage unit 39 is configured by a recording medium for recording a captured image (also referred to as a captured image) in a nonvolatile manner. For example, a semiconductor storage device such as a flash memory or a magnetic memory device is used as the recording medium. Can be used. Note that the image storage unit 39 may be detachably mounted on the electronic camera.

【0023】次に、作用を説明する。図4は、制御部3
6のCPU36aで実行される制御プログラムの全体的
な概略を示すフローチャートである。このプログラム
は、電源を投入したとき(図1の電源スイッチ18をオ
ンにしたとき)に実行を開始し、まず、ステップS1で
動作チェックなどの初期設定を行った後、ステップS2
でメニューキー23が押されているか否かを判定し、押
されていればステップS3に分岐して後述の「メニュー
処理」を実行してからステップS4のモード判定に進む
一方、押されていなければそのままステップS4のモー
ド判定に進み、ステップS4で記録/再生モード切り替
えスイッチ20の現在の切り替え状態から記録モードで
あるか再生モードであるかを判定して、その判定結果に
応じた分岐処理(ステップS5の「再生モード処理」や
ステップS6の「記録モード処理」)を実行するという
動作を繰り返す。
Next, the operation will be described. FIG.
6 is a flowchart illustrating an overall outline of a control program executed by a CPU 36a. This program starts to be executed when the power is turned on (when the power switch 18 in FIG. 1 is turned on). First, an initial setting such as an operation check is performed in a step S1, and then a step S2 is performed.
It is determined whether or not the menu key 23 has been pressed, and if it has been pressed, the flow branches to step S3 to execute "menu processing" described later, and then proceeds to the mode determination of step S4. If it is, the process directly proceeds to the mode determination in step S4, and in step S4, it is determined whether the recording / reproduction mode switch 20 is in the recording mode or the reproduction mode based on the current switching state, and the branching process ( The operation of executing “reproduction mode processing” in step S5 and “recording mode processing” in step S6) is repeated.

【0024】以下、上記各処理のうち本発明に関係する
「メニュー処理」と「記録モード処理(特に動画記録処
理)」について詳しく説明する。
Hereinafter, the "menu processing" and "recording mode processing (especially, moving picture recording processing)" related to the present invention among the above-described processing will be described in detail.

【0025】図5は、図4のステップS3で実行される
「メニュー処理」の概略的な流れ図であり、液晶ディス
プレイ22の画面表示の遷移状態を示す図である。この
図において、メニュー画面41は、図4のステップS2
の判定結果が“YES”となったとき、すなわち、図4
のループ実行中にユーザによってメニューキー23が押
し下げ操作されたときに、最初に液晶ディスプレイ22
に表示される画面である。このメニュー画面41には、
記録モードを静止画記録モードにするか動画記録モード
にするかを選択するためのメニュー項目41a(以下
「記録モード設定41a」という。)をはじめとした様
々なメニュー項目がリスト状に表示されるようになって
おり、リストの最後にはメニュー画面41を閉じて図4
のループに復帰するためのメニュー項目41b(以下
「閉じる41b」という。)が設けられている。
FIG. 5 is a schematic flow chart of the “menu processing” executed in step S 3 of FIG. 4, and is a diagram showing a transition state of the screen display of the liquid crystal display 22. In this figure, a menu screen 41 corresponds to step S2 in FIG.
Is "YES", that is, FIG.
When the menu key 23 is pressed down by the user during the execution of the loop of FIG.
This is the screen displayed on the screen. On this menu screen 41,
Various menu items including a menu item 41a (hereinafter referred to as “recording mode setting 41a”) for selecting whether to set the recording mode to the still image recording mode or the moving image recording mode are displayed in a list. At the end of the list, the menu screen 41 is closed and FIG.
Menu item 41b (hereinafter referred to as “close 41b”) for returning to the loop of FIG.

【0026】ユーザがカーソルキー24を操作して、記
録モード設定41aを選択し、エンターキー25を押す
と、メニュー画面41の代わりに記録モード設定画面4
2が表示される。この記録モード設定画面42には、
「静止画モード」ボタン42aと「動画モード」ボタン
42bが設けられており、「静止画モード」ボタン42
aを選択すると、記録モードを静止画記録モードに設定
した後、記録モード設定画面42を閉じ、再びメニュー
画面41を表示する。また、「動画モード」ボタン42
bを選択すると、記録モードを動画モードに設定した
後、記録モード設定画面42を閉じ、再びメニュー画面
41を表示する。
When the user operates the cursor key 24 to select the recording mode setting 41 a and presses the enter key 25, the recording mode setting screen 4 is displayed instead of the menu screen 41.
2 is displayed. On the recording mode setting screen 42,
A “still image mode” button 42 a and a “moving image mode” button 42 b are provided.
When a is selected, the recording mode is set to the still image recording mode, the recording mode setting screen 42 is closed, and the menu screen 41 is displayed again. Also, a “movie mode” button 42
When b is selected, the recording mode is set to the moving image mode, the recording mode setting screen 42 is closed, and the menu screen 41 is displayed again.

【0027】メニュー画面41におけるメニュー設定
値、たとえば、記録モード(静止画モード/動画モー
ド)などの設定値は、制御部36のデータメモリ36e
に不揮発的に記憶されるようになっており、次回の記録
モード処理実行の際にその記憶値が参照されるようにな
っている。
A menu setting value on the menu screen 41, for example, a setting value such as a recording mode (still image mode / moving image mode) is stored in the data memory 36e of the controller 36.
Is stored in a nonvolatile manner, and the stored value is referred to at the time of executing the next recording mode process.

【0028】図6は、図4のステップS6で実行される
記録モード処理プログラムのフローチャートを示す図で
ある。このフローチャートを開始すると、まず、ステッ
プS11でCCD画像、すなわち、画像処理部33から
の画像信号を読み込み、ステップS12でその画像信号
を表示制御部37に出力して表示部38(図1の液晶デ
ィスプレイ22)に表示させるという動作をシャッター
キー15が半押しされるまで繰り返し実行する。これに
より、液晶ディスプレイ22に構図調整のためのスルー
画像が所定周期(撮像部32の出力フレーム周期;たと
えば、毎秒60フレームなど)で更新されつつ表示され
る。
FIG. 6 is a diagram showing a flowchart of the recording mode processing program executed in step S6 of FIG. When this flowchart is started, first, in step S11, a CCD image, that is, an image signal from the image processing unit 33 is read, and in step S12, the image signal is output to the display control unit 37, and the display unit 38 (the liquid crystal in FIG. The operation of displaying on the display 22) is repeatedly executed until the shutter key 15 is half-pressed. As a result, a through image for composition adjustment is displayed on the liquid crystal display 22 while being updated at a predetermined cycle (the output frame cycle of the imaging unit 32; for example, 60 frames per second).

【0029】しかる後、ステップS13でシャッターキ
ー15の半押しを検出すると、ステップS14でそのと
きの被写体の明るさに応じた露出や被写体の光源種別に
応じたホワイトバランス値などの撮影条件を自動設定
し、ステップS15でシャッターキー15の全押しを検
出すると、ステップS16で、データメモリ36eの記
憶値を参照して動画モードであるか否かを判定し、動画
モードでない場合、すなわち、静止画モードである場合
は、ステップS17でそのときのCCD画像を静止画像
として、たとえば、静止画圧縮の代表技術(JPEG:
Joint Photographic Experts Groupなど)を用いて圧縮
処理した後、画像記憶部39に記録する。
Thereafter, when half-pressing of the shutter key 15 is detected in step S13, the photographing conditions such as the exposure corresponding to the brightness of the subject and the white balance value corresponding to the type of the light source of the subject are automatically determined in step S14. If the full-press of the shutter key 15 is detected in step S15, it is determined in step S16 whether or not the mode is the moving image mode by referring to the stored value of the data memory 36e. If the mode is the mode, in step S17, the CCD image at that time is used as a still image, for example, a representative technique of still image compression (JPEG:
After compression processing using a Joint Photographic Experts Group or the like, it is recorded in the image storage unit 39.

【0030】一方、ステップS16で動画モードである
と判定された場合は、上記の静止画記録処理(ステップ
S17)の代わりに、動画記録処理(ステップS18)
を実行する。
On the other hand, if it is determined in step S16 that the mode is the moving image mode, a moving image recording process (step S18) is performed instead of the above-described still image recording process (step S17).
Execute

【0031】この動画記録処理は、動画圧縮の代表技術
(MPEG)を用いており、そのMPEG圧縮処理の詳
細は以下のとおりである。MPEG標準の符号化方式
(以下、単に「MPEG」という。)は、蓄積メディア
系や通信メディア系への動画像適用を目的としてCCI
TT H.261(テレビ電話、テレビ会議用符号化)
から発展した符号化標準である。MPEGは、MC(Mo
tion Compensation;動き補償)やDCT(Discrete Co
sine Transform;離散コサイン変換)などの符号化ツー
ルを持つ点で基本的にH.261と共通するが、早送
り、巻戻し、途中再生及び逆転再生などのトリックモー
ドを実現するための特殊な構造、すなわち、GOP(Gr
oup Of Pictures)構造を持つ点で相違する。
This moving image recording process uses a typical technology of moving image compression (MPEG). Details of the MPEG compression process are as follows. The MPEG standard encoding method (hereinafter simply referred to as “MPEG”) is a CCI for the purpose of applying moving images to storage media systems and communication media systems.
TT H. 261 (encoding for videophone and videoconference)
It is an encoding standard developed from. MPEG is compatible with MC (Mo
Motion Compensation and DCT (Discrete Co
H. sine Transform (Discrete Cosine Transform)). 261, but has a special structure for realizing trick modes such as fast forward, rewind, midway playback, and reverse playback, that is, GOP (Gr.
oup Of Pictures).

【0032】図7は、MPEGのシンタクス(構文;ビ
ットストリームの満たすべき順序と内容)を示す模式図
である。このシンタクスは、シーケンスヘッダとシーケ
ンスエンドの間に幾つかのGOPを持つシーケンス層
と、その下位のGOP層からなり、GOP層はGOPヘ
ッダの後にN個のピクチャフレーム(符号化された画面
データ)を持つ構造になっている。一つのGOPがラン
ダムアクセスの1単位であり、この単位で上述のトリッ
クモードを可能にする。N個のピクチャフレームのタイ
プ(ピクチャタイプ)は、Iピクチャ(略号:I)、P
ピクチャ(略号:P)又はBピクチャ(略号:B)の何
れかであり、各ピクチャタイプの内容は、以下のとおり
である。
FIG. 7 is a schematic diagram showing the syntax (syntax; order and contents to be satisfied by a bit stream) of MPEG. This syntax consists of a sequence layer having several GOPs between a sequence header and a sequence end, and a GOP layer below the sequence layer. The GOP layer includes N picture frames (coded screen data) after the GOP header. It has a structure with. One GOP is one unit of random access, and this unit enables the above trick mode. The types (picture types) of N picture frames are I picture (abbreviation: I), P
This is either a picture (abbreviation: P) or a B picture (abbreviation: B), and the contents of each picture type are as follows.

【0033】(1)Iピクチャ フレーム内符号化画像(Intra-Coded Picture)の略。
画面の全てをイントラ符号化する画像である。GOP内
の独立性(参照画像を必要としない)を持つ点で他のピ
クチャタイプと異なる。 (2)Pピクチャ フレーム間順方向予測符号化画像(Predictive-Coded P
icture)の略。前のIピクチャ又はPピクチャから順方
向予測される画像である。 (3)Bピクチャ フレーム内挿双方向予測符号化画像(Bidirectionally
Predictive-Coded Picture)の略。前後のIピクチャ又
はPピクチャから双方向予測される画像である。
(1) I picture Abbreviation of Intra-Coded Picture.
This is an image in which all of the screen is intra-coded. It differs from other picture types in that it has independence within the GOP (does not require a reference picture). (2) P picture Predictive-Coded P picture between frames
icture). This is an image predicted in the forward direction from the previous I picture or P picture. (3) B picture Frame-interpolated bidirectional predictive coded image (Bidirectionally coded image)
Predictive-Coded Picture). This is an image that is bidirectionally predicted from preceding and succeeding I or P pictures.

【0034】図8は、GOP構造の一例を示す図であ
り、GOPのピクチャ数(いわゆるNパラメータ)を
“15”とするとともに、IピクチャとPピクチャの周
期(いわゆるMパラメータ)を“3”とした場合の例で
ある。すなわち、1GOPが15枚のフレームで構成さ
れており、且つ、Iピクチャ(又はPピクチャ)から次
のPピクチャまでのフレーム数が3枚の場合の例を示し
ている。図において、Iピクチャは参照画像を必要とし
ないイントラ符号化画像(非予測符号化画像)である。
また、PピクチャとBピクチャは、それぞれ順方向と双
方向の予測符号化画像であり、図に示すように、Pピク
チャは既に符号化済みのIピクチャ又はPピクチャを参
照画像とし、Bピクチャは前後のIピクチャ又はPピク
チャを参照画像として、それぞれ順方向予測及び双方向
予測された予測符号化画像である。
FIG. 8 is a diagram showing an example of the GOP structure. The number of pictures in the GOP (so-called N parameter) is set to "15", and the cycle of the I picture and P picture (so-called M parameter) is set to "3". This is an example of the case where That is, an example is shown in which one GOP is composed of 15 frames, and the number of frames from an I picture (or P picture) to the next P picture is three. In the figure, an I picture is an intra-coded image (a non-predicted coded image) that does not require a reference image.
Further, the P picture and the B picture are forward and bidirectional predictive coded images, respectively. As shown in the figure, the P picture is an already coded I picture or P picture as a reference image, and the B picture is This is a predicted coded image that has been forward-predicted and bidirectionally predicted using the preceding and succeeding I pictures or P pictures as reference images.

【0035】図9は、原画像の画面順(B0、B1、I
2、B3、B4、P5、……)が符号化処理の段階で一
部入れ替わり、再生画像の段階で元の並び順に復帰する
様子を表す図である。符号化処理段階におけるBピクチ
ャの挿入は、その前後のIピクチャ(又はPピクチャ)
とPピクチャの符号化後に行われる。例えば、原画像の
B3、B4に着目すると、I2とP5の符号化後、これ
らのI2とP5を参照画像にしてB3、B4が符号化さ
れ、I2とP5の後に挿入される結果、原画像の段階で
「I2、B3、B4、P5」であった並び順が、「I
2、……、P5、B3、B4」と入れ替わることにな
る。
FIG. 9 shows the screen order of the original images (B0, B1, I
2, B3, B4, P5,...) Are partially replaced at the stage of the encoding process, and are returned to the original arrangement order at the stage of the reproduced image. Insertion of a B picture in the encoding process is performed by inserting an I picture (or a P picture) before and after the B picture.
And after the encoding of the P picture. For example, focusing on B3 and B4 of the original image, after encoding I2 and P5, B3 and B4 are encoded using these I2 and P5 as reference images, and inserted after I2 and P5. In the order of “I2, B3, B4, P5” at the stage of
2,..., P5, B3, B4 ".

【0036】GOP構造の重要なパラメータは、上述の
“Nパラメータ”と“Mパラメータ”、すなわち、GO
P内のピクチャ数(N)と、I又はPピクチャの現れる
周期(M)である。これらのパラメータに使用上の制限
はない。ビットストリーム上でGOPの最初がIピク
チャであることと、原画像の並び順でGOPの最後が
I又はPピクチャであるという条件を満たしている限
り、値の選択は自由であるが、実際には画質や動画像の
動きなどから最適と思われる値が設定されている。例え
ば、Mは2〜3程度の値に選ばれることが多く、また、
Nはランダムアクセス単位が0.4秒〜1秒程度になる
ような値に選ばれることが多い。ちなみに、Mの最適値
は動画像の動き(激しい動きは小さなM、穏やかな動き
は大きなM)で決まるが、Nの最適値は画質とランダム
アクセス単位の妥協で決まる。これは、Nを小さくする
とランダムアクセス単位がきめ細かくなって、トリック
モードの利便性向上を図ることができる点で好ましい反
面、符号化効率が低下して画質の劣化を招くからであ
る。
The important parameters of the GOP structure are the above-mentioned “N parameter” and “M parameter”, that is, GO
The number (N) of pictures in P and the period (M) in which I or P pictures appear. There are no restrictions on the use of these parameters. As long as the first GOP on the bit stream satisfies the condition that the first picture is an I-picture and the order of the original pictures is that the last GOP is an I-picture or a P-picture, the value can be freely selected. Is set to a value that is considered to be optimal in terms of image quality, motion of a moving image, and the like. For example, M is often selected to be a value of about 2-3,
N is often selected to be a value such that the random access unit is about 0.4 to 1 second. Incidentally, the optimal value of M is determined by the motion of the moving image (small motion is small M and gentle motion is large M), but the optimal value of N is determined by compromise between image quality and random access unit. This is because, when N is reduced, random access units become finer and the convenience of the trick mode can be improved, but on the other hand, coding efficiency decreases and image quality deteriorates.

【0037】図10は、MPEG圧縮処理(特にGOP
層生成処理)の原理的な動作フローチャートである。こ
のフローチャートにおいて、“CN”、“CM”、
“i”及び“iΣ”は変数であり、その用途は次のとお
りである。
FIG. 10 shows the MPEG compression processing (especially GOP
6 is a principle operation flowchart of a layer generation process). In this flowchart, “CN”, “CM”,
“I” and “iΣ” are variables, and their uses are as follows.

【0038】CN:Nパラメータ(GOP内のピクチャ
数)の格納用変数 CM:Mパラメータ(I又はPピクチャの現れる周期)
の格納用変数 i :I又はPピクチャの現れる周期を数えるためのカ
ウンタ変数 iΣ:GOP内のピクチャ数を数えるためのカウンタ変
CN: Variable for storing N parameters (the number of pictures in a GOP) CM: M parameter (period in which I or P picture appears)
I: a counter variable for counting the period in which an I or P picture appears iΣ: a counter variable for counting the number of pictures in a GOP

【0039】このフローチャートでは、まず、変数CN
とCMにNパラメータとMパラメータをセットし(ステ
ップS41)、変数iとiΣに初期値(0)をセット
(ステップS42、S43)して初期化処理を実行した
後、以降のピクチャ生成処理(ステップS44〜ステッ
プS53)を実行する。
In this flowchart, first, the variable CN
, CM and N parameters and M parameters are set (step S41), initial values (0) are set to variables i and iΣ (steps S42 and S43), and initialization processing is executed. Steps S44 to S53) are executed.

【0040】このピクチャ生成処理では、まず、原画像
の画面GiΣを読み込み(ステップS44)、次いで、
iΣ=0であるか否かを判定し(ステップS45)、そ
の判定結果がYESであれば画面GiΣのフレーム内符
号化画像(Iピクチャ)を生成し(ステップS46)、
NOであればi<CMであるか否かを判定して(ステッ
プS48)、その判定結果がYESであれば画面GiΣ
のフレーム内挿双方向予測符号化画像(Bピクチャ)を
生成し(ステップS49)、NOであれば画面GiΣの
フレーム間順方向予測符号化画像(Pピクチャ)を生成
する(ステップS50)。
In this picture generation processing, first, the screen Gi # of the original image is read (step S44),
It is determined whether or not iΣ = 0 (step S45). If the determination result is YES, an intra-frame coded image (I picture) of the screen GiG is generated (step S46).
If NO, it is determined whether or not i <CM (step S48), and if the determination result is YES, the screen Gi 画面
(Step S49), and if NO, an inter-frame forward predictive coded image (P picture) of the screen Gi # is generated (step S50).

【0041】そして、IピクチャとBピクチャを生成し
た場合は変数iとiΣの両方をカウントアップし(ステ
ップS47、ステップS52)、Pピクチャを生成した
場合は変数iの初期化(ステップS51)と変数iΣの
カウントアップ(ステップS52)を行い、何れの場合
も、iΣ=CNであるか否かを判定して(ステップS5
3)、その判定結果がNOの場合にGiΣの読み込み処
理(ステップS44)以降を繰り返すという処理を実行
する。
When the I picture and the B picture are generated, both the variables i and iΣ are counted up (steps S47 and S52), and when the P picture is generated, the variable i is initialized (step S51). The variable iΣ is counted up (step S52), and in any case, it is determined whether or not iΣ = CN (step S5).
3) If the determination result is NO, a process of repeating the process of reading Gi # (step S44) and thereafter is executed.

【0042】図11は、Nパラメータを“21”、Mパ
ラメータを“3”とした場合のGOP構造図である。こ
のGOP構造ではIピクチャの出現間隔がNパラメータ
で設定された21画面ごとになっている。すなわち、i
Σ=0のときの画面GiΣ(=G0)はビットストリー
ム上でGOPの最初となる画面であり、前述の条件に
当てはまる画面であるから、その画面GiΣはIピクチ
ャでなければならないが、ステップS44、ステップS
45及びステップS46に至るIピクチャの生成処理に
よって、かかる条件を満たすことができ、ビットスト
リーム上でGOPの最初となる画面G0をIピクチャに
することができる。さらに、ビットストリーム上でGO
Pの最初以降の画面G1、G2、……については、変数
iがMパラメータ(I又はPピクチャの現れる周期)に
満たないとき、そのときの画面GiΣをBピクチャにす
ることができ、且つ、変数iがMパラメータを満たした
とき、そのときの画面GiΣをPピクチャにすることが
できる。したがって、Nを“21”、Mを“3”とした
場合は、原画像のG0、G2、G3、G4、‥‥につい
て、その最初の画面G0をIピクチャにできるととも
に、以降、i<CM、すなわち、i<3となるときの画
面GiΣ(例えば、G1とG2、G4とG5、G7とG
8、……)の全てをBピクチャにでき、且つ、i=3と
なるときの画面GiΣ(例えば、G3、G6、G9、…
…)の全てをPピクチャにできるので、あらかじめ最適
値に設定されたNパラメータとMパラメータに応じたピ
クチャ配列のMPEG画像をメディア上に構成すること
ができる。
FIG. 11 is a GOP structure diagram when the N parameter is "21" and the M parameter is "3". In this GOP structure, the appearance interval of the I picture is every 21 screens set by the N parameter. That is, i
The screen GiΣ (= G0) when Σ = 0 is the first screen of the GOP on the bit stream and satisfies the above-described conditions. Therefore, the screen GiΣ must be an I-picture, but the step S44. , Step S
Such a condition can be satisfied by the generation processing of the I picture up to step 45 and step S46, and the screen G0 that is the first of the GOP on the bit stream can be an I picture. Furthermore, GO on the bit stream
For the screens G1, G2,... After the beginning of P, when the variable i is less than the M parameter (the period in which the I or P picture appears), the screen Gi # at that time can be set to a B picture, and When the variable i satisfies the M parameter, the screen Gi # at that time can be set to a P picture. Therefore, when N is "21" and M is "3", the first screen G0 of the original image G0, G2, G3, G4,... Can be an I picture, and i <CM That is, the screen GiΣ when i <3 (for example, G1 and G2, G4 and G5, G7 and G
,...) Can be B-pictures, and a screen GiΣ when i = 3 (eg, G3, G6, G9,...).
..) Can be P pictures, so that an MPEG image having a picture arrangement corresponding to the N and M parameters set to the optimum values in advance can be formed on the medium.

【0043】本実施の形態のポイントは、要するに、か
かるMPEG圧縮処理(図10)の実行タイミングを動
画撮影期間の終了後とすることにあり、専用の圧縮処理
系(いわゆるMPEGコーディック装置)を必要とせ
ず、且つ、高性能なマイクロプロセッサも必要とせず
に、ソフトウェア圧縮を行うことができ、以て、電子カ
メラ10のコストアップを回避しつつ必要十分な品質の
動画ファイルを記録することにある。
The point of this embodiment is that the execution timing of the MPEG compression processing (FIG. 10) is after the end of the moving image shooting period, and a dedicated compression processing system (a so-called MPEG codec device) is required. Software compression can be performed without the need for a high-performance microprocessor, and the recording of moving image files of necessary and sufficient quality while avoiding an increase in the cost of the electronic camera 10 can be achieved. .

【0044】図12は、上記ポイントを含む動画記録処
理のフローチャートを示す図であり、このフローチャー
トは、図6のステップS18に相当するものである。す
なわち、図6のステップS18を実行すると、まず、ル
ープ変数iΣに0をセットして初期化し(ステップS6
1)、次いで、画像処理部33からの画像信号を読み込
み(ステップS62)、ワークメモリ36dのフル状態
を判定する(ステップS63)。ここに、“フル状態”
とはワークメモリ36dの空き容量が静止画1枚分以下
になった状態のことをいい、もはやそれ以上、静止画を
格納できなくなった満杯状態のことをいう。ステップS
63でフル状態を判定した場合は直ちに、図10のMP
EG圧縮処理を実行する(ステップS67)が、ワーク
メモリ36dがフル状態でなければ、次に、ワークメモ
リ36dに、原画像の画面GiΣを生成(ステップS6
4)した後、動画撮影時間経過か否かを判定し(ステッ
プS65)、経過していれば、上記のフル状態判定時と
同様に、図10のMPEG圧縮処理を実行し(ステップ
S67)、一方、動画撮影時間が経過していなければ、
ループ変数(iΣ)を+1して(ステップS66)ステ
ップS62以降を繰り返す。
FIG. 12 is a diagram showing a flowchart of the moving image recording process including the above points, and this flowchart corresponds to step S18 in FIG. That is, when step S18 in FIG. 6 is executed, first, the loop variable i # is set to 0 and initialized (step S6).
1) Then, the image signal from the image processing unit 33 is read (step S62), and the full state of the work memory 36d is determined (step S63). Here, “full state”
This means a state in which the free space of the work memory 36d is less than one still image, and a full state in which a still image can no longer be stored. Step S
When the full state is determined at 63, the MP of FIG.
The EG compression process is executed (step S67). If the work memory 36d is not full, a screen Gi # of the original image is generated in the work memory 36d (step S6).
4) After that, it is determined whether or not the moving image shooting time has elapsed (step S65). If it has elapsed, the MPEG compression processing of FIG. 10 is executed as in the above-described full state determination (step S67), On the other hand, if the movie shooting time has not elapsed,
The loop variable (i 変 数) is incremented by 1 (step S66), and the steps from step S62 are repeated.

【0045】この動画記録処理によれば、ワークメモリ
36dがフル状態にならない限り、動画撮影時間が経過
するまでの間に取り込まれた複数枚のCCD画像(画像
処理部33から出力された画像信号)を、図13に示す
ように、それぞれ原画像の画面(G0、G1、G2、G
4、‥‥)としてワークメモリ36dに保持することが
でき、そして、ワークメモリ36dのフル状態または動
画撮影時間の経過に伴って、ワークメモリ36dに保持
された原画像の画面(G0、G1、G2、G4、‥‥)
を用いてMPEG圧縮処理(図10参照)を開始するこ
とができる。
According to the moving image recording process, unless the work memory 36d becomes full, a plurality of CCD images (image signals output from the image processing unit 33) captured until the moving image shooting time elapses. ) To the original image screens (G0, G1, G2, G2) as shown in FIG.
4, ‥‥) can be stored in the work memory 36d, and the original image screens (G0, G1,... G2, G4, ‥‥)
Can be used to start the MPEG compression process (see FIG. 10).

【0046】したがって、MPEG圧縮処理の開始後
は、もはや動画撮影の期間が終了しているため、制御部
36はその圧縮処理のみに専念することができる。その
結果、専用の圧縮処理系(MPEGコーディック装置)
を具備しない電子カメラ10、言い換えれば、ソフトウ
ェアによるMPEG圧縮を行う電子カメラ10であって
も、格別高性能なCPU36aを必要とせずに、電子カ
メラ10のコストアップを招くことなく、必要十分な品
質の動画ファイルを記録することができるようになる。
Therefore, after the start of the MPEG compression process, the moving image shooting period has already ended, and the control unit 36 can concentrate on only the compression process. As a result, a dedicated compression processing system (MPEG codec device)
, An electronic camera 10 that performs MPEG compression by software, does not require an exceptionally high-performance CPU 36a, and does not cause an increase in the cost of the electronic camera 10. Movie files can be recorded.

【0047】以上のことから、本実施の形態における電
子カメラ10を用いて動画撮影を行う場合は、図14に
示すように、動画撮影の段階Aと、その動画撮影によっ
てワークメモリ36dに保持された原画像の画面(G
0、G1、G2、G4、‥‥)を用いたMPEGファイ
ルの生成段階Bと、そのMPEGファイルの画像記憶部
39への記録段階Cとを明確に区別できるため、特に、
制御部36の能力を撮影段階Aと生成段階Bとにそれぞ
れ占有させることができ、結局、各々の段階に適合した
過不足のない能力を備えた制御部36(のCPU36
a)とすることができる。
As described above, when a moving image is photographed using the electronic camera 10 according to the present embodiment, as shown in FIG. 14, the moving image is captured in the work memory 36d as shown in step A of FIG. Original image screen (G
0, G1, G2, G4,...), And the recording step C of the MPEG file in the image storage unit 39 of the MPEG file can be clearly distinguished.
The capability of the control unit 36 can be occupied by the photographing stage A and the generation stage B, respectively.
a).

【0048】なお、以上の実施の形態では、動画段階A
と生成段階Bとを明確に区別し、段階Aの完了後に段階
Bを実行するようにしているが、これに限定されない。
制御部36の能力が段階Aにとって過剰である場合(余
剰能力がある場合)は、その余剰能力を段階Bに振り分
けてもよく、この場合は、段階Aを実行しながら、段階
Bの一部処理(余剰能力で賄える処理)を並行して実行
してもよい。たとえば、以上の実施の形態では、動画段
階Aにおいて、ワークメモリ36dに画像信号そのもの
を一時記憶しているが、画像信号からMPEGのIピク
チャ(フレーム内符号化画像)を生成し、この生成した
Iピクチャをワークメモリ36dに一時記憶してもよ
い。このようにすれば、少なくとも、生成段階Bにおい
て、図10のMPEG圧縮処理のステップS46(Iピ
クチャ生成)を省略できるから好ましい。
In the above embodiment, the moving image stage A
And the generation step B are clearly distinguished, and the step B is executed after the completion of the step A, but is not limited thereto.
When the capability of the control unit 36 is excessive for the stage A (when there is a surplus capability), the surplus capability may be allocated to the stage B. In this case, while performing the stage A, a part of the stage B The processing (the processing covered by the surplus capacity) may be executed in parallel. For example, in the above embodiment, in the moving image stage A, the image signal itself is temporarily stored in the work memory 36d, but an MPEG I picture (intra-frame coded image) is generated from the image signal, and this generated The I picture may be temporarily stored in the work memory 36d. This is preferable because at least the step S46 (I-picture generation) of the MPEG compression processing in FIG. 10 can be omitted in the generation stage B.

【0049】[0049]

【発明の効果】本発明によれば、動画記録時に、まず、
動画撮影時間の間、撮像デバイスにより生成された周期
的な画像信号をワークメモリに順次記憶することによっ
て該ワークメモリ上に動画データを生成し、次いで、動
画撮影周期と非同期で前記ワークメモリ上の動画データ
に対する圧縮処理を実行するので、たとえ、蓄積メディ
ア系の動画圧縮技術であるMPEGを用いたとしても、
その圧縮処理が動画撮影の完了後に行われるから、圧縮
処理のための専用機能(MPEGコーディック装置な
ど)を必要とせず、しかも、マイクロプロセッサにも相
応の能力しか要求されないので、電子カメラのコストア
ップを回避しつつ、必要十分な品質の動画ファイルを記
録することができる。
According to the present invention, when recording a moving image, first,
During the video shooting time, video data is generated on the work memory by sequentially storing the periodic image signals generated by the imaging device in the work memory, and then the video data on the work memory is asynchronous with the video shooting cycle. Since compression processing is performed on video data, even if MPEG, which is a video compression technology for storage media, is used,
Since the compression processing is performed after the completion of moving image shooting, a dedicated function for the compression processing (such as an MPEG codec device) is not required, and a microprocessor is also required to have only a corresponding capability, thereby increasing the cost of an electronic camera. , And a moving image file of necessary and sufficient quality can be recorded.

【図面の簡単な説明】[Brief description of the drawings]

【図1】電子カメラの外観図である。FIG. 1 is an external view of an electronic camera.

【図2】電子カメラ10の概念的な機能ブロック図であ
る。
FIG. 2 is a conceptual functional block diagram of the electronic camera 10.

【図3】制御部36のブロック図である。FIG. 3 is a block diagram of a control unit 36.

【図4】制御プログラムの全体的な概略を示すフローチ
ャートである。
FIG. 4 is a flowchart showing an overall outline of a control program.

【図5】メニュー処理の概略的な流れ図である。FIG. 5 is a schematic flowchart of menu processing.

【図6】記録モード処理プログラムのフローチャートを
示す図である。
FIG. 6 is a diagram showing a flowchart of a recording mode processing program.

【図7】MPEGのシンタクスを示す模式図である。FIG. 7 is a schematic diagram showing the syntax of MPEG.

【図8】GOP構造の一例を示す図である。FIG. 8 is a diagram illustrating an example of a GOP structure.

【図9】ピクチャの入れ替わり模式図である。FIG. 9 is a schematic diagram of replacement of pictures.

【図10】MPEG圧縮処理の原理的な動作フローチャ
ートである。
FIG. 10 is a principle operation flowchart of MPEG compression processing.

【図11】Nパラメータを“21”、Mパラメータを
“3”とした場合のGOP構造図である。
FIG. 11 is a GOP structure diagram when the N parameter is “21” and the M parameter is “3”.

【図12】動画記録処理のフローチャートを示す図であ
る。
FIG. 12 is a diagram showing a flowchart of a moving image recording process.

【図13】ワークメモリ36dに保持された原画像の画
面(G0、G1、G2、G4、‥‥)の模式図である。
FIG. 13 is a schematic diagram of a screen (G0, G1, G2, G4,...) Of an original image held in a work memory 36d.

【図14】本実施の形態の電子カメラ10における動画
撮影段階A、MPEGファイルの生成段階B及びそのM
PEGファイルの画像記憶部39への記録段階Cを示す
概念図である。
FIG. 14 shows a moving image photographing stage A, an MPEG file generation stage B, and its M in the electronic camera 10 of the present embodiment.
FIG. 7 is a conceptual diagram showing a recording step C of a PEG file in an image storage unit 39.

【符号の説明】[Explanation of symbols]

10 電子カメラ 31 被写体 32 撮像部(撮像デバイス) 36 制御部(動画生成手段、動画圧縮手段) 36d ワークメモリ 39 画像記憶部(記憶デバイス) Reference Signs List 10 electronic camera 31 subject 32 imaging unit (imaging device) 36 control unit (moving image generation unit, moving image compression unit) 36d work memory 39 image storage unit (storage device)

───────────────────────────────────────────────────── フロントページの続き (51)Int.Cl.7 識別記号 FI テーマコート゛(参考) G03B 19/02 H04N 5/225 F H04N 5/225 5/907 B 5/907 101:00 // H04N 101:00 5/92 H Fターム(参考) 2H054 AA01 BB11 2H104 AA12 AA16 5C022 AA13 AC03 AC12 AC31 AC42 AC69 5C052 GA01 GB06 GC05 GE04 GE06 GE08 5C053 FA08 GB37 HA33 ──────────────────────────────────────────────────の Continued on the front page (51) Int.Cl. 7 Identification symbol FI Theme coat ゛ (Reference) G03B 19/02 H04N 5/225 F H04N 5/225 5/907 B 5/907 101: 00 // H04N 101 : 00 5/92 HF term (reference) 2H054 AA01 BB11 2H104 AA12 AA16 5C022 AA13 AC03 AC12 AC31 AC42 AC69 5C052 GA01 GB06 GC05 GE04 GE06 GE08 5C053 FA08 GB37 HA33

Claims (6)

【特許請求の範囲】[Claims] 【請求項1】 被写体を撮像して周期的な画像信号を生
成する撮像デバイスと、該周期的な画像信号を用いて動
画データを生成する動画生成手段と、該動画データを動
画圧縮処理して記憶デバイスに記憶する動画圧縮手段と
を備えた電子カメラであって、 前記動画生成手段は、動画撮影時間の間、前記撮像デバ
イスにより生成された周期的な画像信号をワークメモリ
に順次記憶することによって該ワークメモリ上に前記動
画データを生成し、 前記動画圧縮手段は、動画撮影周期と非同期で前記ワー
クメモリ上の動画データに対する動画圧縮処理を実行す
ることを特徴とする電子カメラ。
1. An imaging device that images a subject to generate a periodic image signal, a moving image generation unit that generates moving image data using the periodic image signal, and performs a moving image compression process on the moving image data. An electronic camera comprising: a moving image compression unit that stores a moving image in a storage device, wherein the moving image generation unit sequentially stores a periodic image signal generated by the imaging device in a work memory during a moving image shooting time. An electronic camera, wherein the moving image data is generated on the work memory by the moving image compression unit, and the moving image compression unit executes a moving image compression process on the moving image data on the work memory asynchronously with a moving image photographing cycle.
【請求項2】 前記動画生成手段によりワークメモリ上
に記憶される動画データはフレーム内符号化画像であっ
て、前記動画圧縮手段は、該フレーム内符号化画像から
フレーム間順方向予測符号化画像またはフレーム内挿双
方向予測符号化画像若しくはその両方を予測することに
よって前記動画データに対する圧縮処理を行うことを特
徴とする請求項1記載の電子カメラ。
2. The moving image data stored on the work memory by the moving image generating means is an intra-frame coded image, and the moving image compressing means includes an inter-frame forward prediction coded image from the intra-frame coded image. 2. The electronic camera according to claim 1, wherein the compression processing is performed on the moving image data by predicting a frame interpolation bidirectionally predicted coded image or both.
【請求項3】 前記動画圧縮手段は、前記動画撮影時間
の経過後または前記ワークメモリのフル状態検出時に前
記ワークメモリ上の動画データに対する動画圧縮処理を
開始することを特徴とする請求項1又は2記載の電子カ
メラ。
3. The moving image compression unit starts moving image compression processing on moving image data in the work memory after the lapse of the moving image shooting time or when the full state of the work memory is detected. 2. The electronic camera according to 2.
【請求項4】 前記動画圧縮手段は、MPEG圧縮処理
を実行することを特徴とする請求項1乃至3いずれかに
記載の電子カメラ。
4. The electronic camera according to claim 1, wherein the moving image compression unit executes an MPEG compression process.
【請求項5】 撮像デバイスにより被写体を撮像して周
期的な画像信号を生成しながら、該周期的な画像信号を
用いて動画データを生成する動画生成処理工程と、該動
画データを動画圧縮処理して記憶デバイスに記憶する動
画圧縮処理工程とを実行する電子カメラの制御方法であ
って、 前記動画生成処理工程は、動画撮影時間の間、前記撮像
デバイスによって生成された周期的な画像信号をワーク
メモリに順次記憶することによって該ワークメモリ上に
前記動画データを生成し、 前記画像圧縮処理工程は、動画撮影周期と非同期で前記
ワークメモリ上の動画データに対する動画圧縮処理を実
行することを特徴とする電子カメラの制御方法。
5. A moving image generating process for generating moving image data by using a periodic image signal while generating a periodic image signal by capturing an image of a subject by an imaging device, and a moving image compression process of the moving image data. And a moving image compression processing step of storing the moving image in a storage device, wherein the moving image generation processing step includes, during a moving image shooting time, a periodic image signal generated by the imaging device. The moving image data is generated on the work memory by sequentially storing the moving image data in the work memory, and the image compression processing step performs the moving image compression processing on the moving image data on the work memory asynchronously with a moving image shooting cycle. Electronic camera control method.
【請求項6】 前記動画生成処理工程によりワークメモ
リ上に記憶される動画データはフレーム内符号化画像で
あって、前記動画圧縮処理工程は、該フレーム内符号化
画像からフレーム間順方向予測符号化画像またはフレー
ム内挿双方向予測符号化画像若しくはその両方を予測す
ることによって前記動画データに対する圧縮処理を行う
ことを特徴とする請求項5記載の電子カメラの制御方
法。
6. The moving image data stored in the work memory by the moving image generation processing step is an intra-frame coded image, and the moving image compression processing step includes: 6. The control method for an electronic camera according to claim 5, wherein the compression processing is performed on the moving image data by predicting a coded image or a frame interpolation bidirectionally coded image or both.
JP2000397039A 2000-12-27 2000-12-27 Electronic camera and method for controlling the same Pending JP2002199340A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2000397039A JP2002199340A (en) 2000-12-27 2000-12-27 Electronic camera and method for controlling the same

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2000397039A JP2002199340A (en) 2000-12-27 2000-12-27 Electronic camera and method for controlling the same

Publications (1)

Publication Number Publication Date
JP2002199340A true JP2002199340A (en) 2002-07-12

Family

ID=18862228

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2000397039A Pending JP2002199340A (en) 2000-12-27 2000-12-27 Electronic camera and method for controlling the same

Country Status (1)

Country Link
JP (1) JP2002199340A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103051888A (en) * 2011-10-14 2013-04-17 华晶科技股份有限公司 Image processing method for generating dynamic image and image acquisition device thereof
KR101480407B1 (en) 2008-08-06 2015-01-08 삼성전자주식회사 Digital image processing apparatus, control method thereof, and recording medium recording the control method

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101480407B1 (en) 2008-08-06 2015-01-08 삼성전자주식회사 Digital image processing apparatus, control method thereof, and recording medium recording the control method
CN103051888A (en) * 2011-10-14 2013-04-17 华晶科技股份有限公司 Image processing method for generating dynamic image and image acquisition device thereof

Similar Documents

Publication Publication Date Title
US8400528B2 (en) Imaging device
US8553092B2 (en) Imaging device, edition device, image processing method, and program
US6781629B2 (en) Digital camera and image reproducing apparatus and method
JP4234968B2 (en) Digital camera
JP2003008948A (en) Electronic camera and its image display method, and image recording method
JP5126207B2 (en) Imaging device
JP4239442B2 (en) Electronic camera and program thereof
JP2007325152A (en) Imaging device, and program thereof
JP2005117369A (en) Moving image recorder, moving image reproducer and digital camera
JP2003262786A (en) Imaging device and its automatic focusing method
JP3918228B2 (en) Information processing apparatus and recording medium
JP3945059B2 (en) Moving image recording apparatus and moving image recording method
JP4247701B2 (en) Movie recording apparatus and movie recording method
JP2002199340A (en) Electronic camera and method for controlling the same
JP2004186866A (en) Image recording apparatus
JP3794529B2 (en) Moving picture recording apparatus and moving picture encoding method
JP2014049798A (en) Digital camera
JP2006165770A (en) Digital camera
JP4276763B2 (en) Electronic camera device
JP2000278641A (en) Device and method for processing moving picture
JP2001230959A (en) Electronic camera apparatus
JP4384094B2 (en) Electronic still camera
JP3835657B2 (en) Electronic still camera and continuous shot image reproduction method
JP4300959B2 (en) Electronic camera and image editing apparatus and method
JP4622748B2 (en) Electronic camera, output control method, and program