JP2008113349A - Image processing apparatus, imaging apparatus and image processing method - Google Patents

Image processing apparatus, imaging apparatus and image processing method Download PDF

Info

Publication number
JP2008113349A
JP2008113349A JP2006296148A JP2006296148A JP2008113349A JP 2008113349 A JP2008113349 A JP 2008113349A JP 2006296148 A JP2006296148 A JP 2006296148A JP 2006296148 A JP2006296148 A JP 2006296148A JP 2008113349 A JP2008113349 A JP 2008113349A
Authority
JP
Japan
Prior art keywords
moving image
compression
compression rate
recompressed
file
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP2006296148A
Other languages
Japanese (ja)
Other versions
JP4791329B2 (en
Inventor
Kazuto Washio
和人 鷲尾
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.)
Fujifilm Corp
Original Assignee
Fujifilm Corp
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 Fujifilm Corp filed Critical Fujifilm Corp
Priority to JP2006296148A priority Critical patent/JP4791329B2/en
Publication of JP2008113349A publication Critical patent/JP2008113349A/en
Application granted granted Critical
Publication of JP4791329B2 publication Critical patent/JP4791329B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Television Signal Processing For Recording (AREA)
  • Compression Or Coding Systems Of Tv Signals (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To minimize file size of a moving image file by recompressing moving image data of an original moving image file by the optimal compression ratio by which a moving image with image quality desired by a user is obtained. <P>SOLUTION: An apparatus is constituted so that the original moving image file is reproduced, the compression ratio is instructed while watching the reproduced moving image and the moving image recompressed by the instructed compression ratio is watched in real time. Namely, while recompressing the moving image data of the moving image file in real time on the basis of the present compression ratio instructed (a step S20), the recompressed moving image data are extended (a step S26) and the moving image is displayed on the basis of the recompressed/extended moving image data (a step S28). Since a result of the recompression by the instructed compression ratio is reflected on the moving image displayed in this way, the optimal compression ratio is sequentially set according to scenes or motions, etc. of the moving image while watching the moving image. <P>COPYRIGHT: (C)2008,JPO&INPIT

Description

本発明は画像処理装置、撮像装置及び画像処理方法に係り、特に動画の圧縮率を最適化する技術に関する。   The present invention relates to an image processing apparatus, an imaging apparatus, and an image processing method, and more particularly to a technique for optimizing a moving image compression rate.

特許文献1には、周辺機器からのパラメータをデジタルカメラで受け付け、パラメータに応じた画像を周辺機器に送信することで、例えば、ある解像度をもつ周辺機器を対象として、その周辺機器の解像度にマッチした画像をデジタルカメラで生成して送信することができるデジタルカメラシステムが記載されている。   In Patent Document 1, a parameter from a peripheral device is received by a digital camera, and an image according to the parameter is transmitted to the peripheral device. For example, a peripheral device having a certain resolution is matched with the resolution of the peripheral device. A digital camera system capable of generating and transmitting a captured image with a digital camera is described.

特許文献2には、ユーザからの指示によって、元の動画をより高い圧縮率で再圧縮する技術が記載されている。尚、再圧縮の際の圧縮率の設定は、画質と記録媒体の空き容量とを調整するために行われる。   Patent Document 2 describes a technique for recompressing an original moving image at a higher compression rate in accordance with an instruction from a user. Note that the compression rate at the time of recompression is set in order to adjust the image quality and the free capacity of the recording medium.

また、特許文献2には、異なる圧縮率の画質サンプルを表示し、所望の画質サンプルを選択することによって再圧縮の際の圧縮率を指定する記載があり、更に、ユーザによる圧縮率の設定では、記録媒体の空き容量が足りない場合には、自動的に再圧縮処理をする記載がある。   Further, Patent Document 2 has a description that displays image quality samples with different compression ratios and specifies a compression ratio at the time of recompression by selecting a desired image quality sample. There is a description that the recompression process is automatically performed when the recording medium has insufficient free space.

特許文献3には、「フレームを間引く」、「画質を落とす」、又は「解像度を落とす」等の動画の再圧縮時の圧縮方法をユーザに選択させておき、記録媒体の残り容量が不足する場合には、前記選択した再圧縮方法に応じて再圧縮処理する画像記録装置が記載されている。
特開2004−32564号公報 特開平10−243344号公報 特開2005−136671号公報
In Patent Document 3, the user selects a compression method when recompressing a moving image such as “thinning out frames”, “degrading image quality”, or “decreasing resolution”, and the remaining capacity of the recording medium is insufficient. In this case, an image recording apparatus that performs recompression processing according to the selected recompression method is described.
JP 2004-32564 A JP-A-10-243344 JP 2005-136671 A

特許文献1に記載の発明は、動画に対して圧縮率を再設定して再圧縮するものではない。また、引用文献2に記載の発明は、動画に対して圧縮率を再設定する際に、異なる圧縮率の画質サンプルから所望の画質サンプルを選択することによって圧縮率を指定する発明が記載されているが、実際に撮影された動画と画質サンプルとは、撮影条件や撮影対象が異なるため、画質サンプルの選択によって圧縮率を設定してもユーザが希望する画質が保証されず、また、画質サンプルの選択によって圧縮率を設定する場合には、動画の圧縮率をきめ細かく設定することができないという問題がある。   The invention described in Patent Document 1 does not reset the compression rate of a moving image and recompress it. Further, the invention described in the cited document 2 describes an invention that specifies a compression rate by selecting a desired image quality sample from image quality samples having different compression rates when resetting the compression rate for a moving image. However, because the shooting conditions and shooting targets differ between the actually shot video and the image quality sample, the desired image quality is not guaranteed even if the compression rate is set by selecting the image quality sample, and the image quality sample When the compression rate is set by selecting the above, there is a problem that the compression rate of the moving image cannot be set finely.

また、特許文献3に記載の発明では、記録媒体の残り容量に応じて圧縮率を設定しており、画質が考慮されていない。   In the invention described in Patent Document 3, the compression rate is set according to the remaining capacity of the recording medium, and the image quality is not taken into consideration.

一般に、デジタルカメラで撮影された動画データに対する圧縮率の変更は、動画データをパーソナルコンピュータ(以下、「PC」という)に取り込み、PC内のソフトウエアを使用して実施している。PCでは、中央処理装置(CPU)、メモリなど汎用的に設計されているため、細かな圧縮率の変更後、変更結果の表示が得られるまでに時間を要していた。その結果、圧縮率の変更による画質劣化をリアルタイムに認識することができず、対象となる動画データに最適な圧縮率を設定することができないという問題がある。   In general, the compression rate of moving image data captured by a digital camera is changed by loading the moving image data into a personal computer (hereinafter referred to as “PC”) and using software in the PC. Since the PC is designed for general purposes such as a central processing unit (CPU) and a memory, it takes time until a display of the change result is obtained after a fine change of the compression rate. As a result, there is a problem that image quality deterioration due to a change in the compression rate cannot be recognized in real time, and an optimal compression rate cannot be set for the target moving image data.

本発明はこのような事情に鑑みてなされたもので、元の動画ファイルの動画データを最適な圧縮率で再圧縮することができ、これによりユーザが希望する画質の動画が得られるとともに、動画ファイルのファイルサイズを最小限にすることができる画像処理装置、撮像装置及び画像処理方法を提供することを目的とする。   The present invention has been made in view of such circumstances, and the moving image data of the original moving image file can be recompressed at an optimal compression rate, thereby obtaining a moving image having the image quality desired by the user. An object is to provide an image processing apparatus, an imaging apparatus, and an image processing method capable of minimizing the file size of a file.

前記目的を達成するために請求項1に係る画像処理装置は、元の動画ファイルが記録された記録媒体と、動画の圧縮率を指示する圧縮率指示手段と、前記記憶媒体に記録されている元の動画ファイルを読み出し、前記圧縮率指示手段によって指示されている現在の圧縮率に基づいて前記読み出した動画ファイルの動画データをリアルタイムに再圧縮するとともに、再圧縮した動画データを伸長する圧縮伸長手段と、前記圧縮伸長手段によってリアルタイムに再圧縮・伸長された動画データを表示する内部の表示手段、又は前記動画データを外部の表示手段に出力する出力手段と、を備え、前記圧縮伸長手段によってリアルタイムに再圧縮・伸長された動画データに基づいて内部の表示手段又は外部の表示手段に表示された動画を見ながら前記圧縮率指示手段によってリアルタイムに圧縮率の指示を行うことができるようにしたことを特徴としている。   In order to achieve the above object, an image processing apparatus according to claim 1 is recorded in the recording medium on which the original moving image file is recorded, the compression rate instruction means for instructing the compression rate of the moving image, and the storage medium. Compression decompression that reads the original video file and recompresses the video data of the read video file in real time based on the current compression rate specified by the compression rate instruction means, and decompresses the recompressed video data Means, and internal display means for displaying the moving image data recompressed / expanded in real time by the compression / expansion means, or output means for outputting the moving image data to an external display means, and the compression / expansion means While viewing the video displayed on the internal display means or the external display means based on the video data recompressed / expanded in real time, It is characterized in that to be able to issue an instruction of the compression ratio in real time by condensation rate instructing means.

請求項1に係る発明によれば、動画ファイルを再生し、その再生された動画を見ながら圧縮率を指示するようにしているが、指示された圧縮率で再圧縮された動画をリアルタイムに見ることできるようにしている。即ち、圧縮率指示手段によって指示されている現在の圧縮率に基づいて動画ファイルの動画データをリアルタイムに再圧縮するとともに、再圧縮した動画データを伸長し、この再圧縮・伸長された動画データに基づいて動画を表示させるようにしている。表示される動画には、圧縮率指示手段によって指示された圧縮率による再圧縮の結果が反映されるため、その動画を見ながら動画のシーンや動き等に応じて逐次、最適な圧縮率を設定することができる。動画は、画像処理装置に付属の液晶モニタ等の表示手段に表示させるようにしてもよいし、外部の表示手段(PCのモニタ等)に表示させてもよいが、動画の画質が確認しやすい外部の表示手段(大きなモニタ)に動画を表示させる方が好ましい。また、圧縮伸長手段としては、画像処理装置内の専用ハードウエアを使用することで、リアルタイムに圧縮率を変更しながら動画データの圧縮・伸長を行うことができる。   According to the first aspect of the present invention, the moving image file is reproduced and the compression rate is instructed while viewing the reproduced moving image, but the recompressed moving image is viewed in real time at the instructed compression rate. To be able to do that. That is, the moving image data of the moving image file is recompressed in real time based on the current compression rate instructed by the compression rate instruction means, and the recompressed moving image data is expanded, and the recompressed / expanded moving image data is The video is displayed based on this. The displayed video reflects the result of recompression at the compression rate specified by the compression rate instruction means, so the optimal compression rate is set sequentially according to the scene and movement of the video while watching the video. can do. The moving image may be displayed on a display unit such as a liquid crystal monitor attached to the image processing apparatus or may be displayed on an external display unit (such as a PC monitor), but it is easy to check the image quality of the moving image. It is preferable to display a moving image on an external display means (large monitor). As the compression / decompression means, by using dedicated hardware in the image processing apparatus, it is possible to compress / decompress moving image data while changing the compression rate in real time.

請求項2に示すように請求項1に記載の画像処理装置において、前記圧縮伸長手段によって再圧縮された再圧縮フレームを予め作成した一時ファイルに追記し、前記元の動画ファイルの全ての再圧縮フレームを一時ファイルに追記すると、一時ファイルを元の動画ファイルに置き換える記録手段を備えたことを特徴としている。これにより、再圧縮された動画ファイルの作成時間の短縮化を図ることができる。   The image processing apparatus according to claim 1, wherein the recompressed frame recompressed by the compression / expansion unit is added to a temporary file created in advance, and all the original moving image files are recompressed. It is characterized by having recording means for replacing the temporary file with the original video file when the frame is added to the temporary file. Thereby, the creation time of the recompressed moving image file can be shortened.

請求項3に示すように請求項1に記載の画像処理装置において、前記圧縮伸長手段によってリアルタイムに指示された圧縮率を動画データの位置に関連して記録する圧縮率設定手段を有し、前記圧縮伸長手段は、前記元の動画ファイルの全ての動画データの圧縮率が設定されると、前記圧縮率設定手段によって設定された圧縮率によって前記元の動画ファイルの動画データを再圧縮することを特徴としている。   The image processing apparatus according to claim 1, further comprising: a compression rate setting unit that records a compression rate instructed in real time by the compression / decompression unit in relation to a position of moving image data, The compression / decompression unit re-compresses the moving image data of the original moving image file according to the compression rate set by the compression rate setting unit when the compression rate of all moving image data of the original moving image file is set. It is a feature.

即ち、前記圧縮率設定手段は、リアルタイムに指示された圧縮率を動画データの位置(例えば、動画の再生開始からの時間やフレーム番号等)に関連して記録する。そして、前記圧縮伸長手段は、全ての動画データの圧縮率の設定後に、前記記録された圧縮率によって元の動画ファイルの動画データを再圧縮するようにしている。   That is, the compression rate setting means records the compression rate instructed in real time in relation to the position of the moving image data (for example, the time from the start of moving image reproduction or the frame number). Then, the compression / decompression unit recompresses the moving image data of the original moving image file at the recorded compression rate after setting the compression rate of all the moving image data.

尚、再圧縮の処理を複数回繰り返し、所望の圧縮率になるようにしてもよい。但し、請求項2に記載の発明では、2回目以降の圧縮率の設定は、前回の圧縮率よりも高くする方向のみ圧縮率を設定することができるが、請求項3に記載の発明では、リアルタイムに指示された圧縮率を動画データの位置に関連して記録するようにしているため、この記録された圧縮率を補正することで、圧縮率を高くする方向ばかりでなく、低くする方向にも補正することが可能である。   Note that the recompression process may be repeated a plurality of times to achieve a desired compression rate. However, in the invention described in claim 2, the setting of the compression ratio for the second and subsequent times can be set only in the direction in which the compression ratio is higher than the previous compression ratio, but in the invention described in claim 3, Since the compression rate specified in real time is recorded in relation to the position of the video data, by correcting this recorded compression rate, not only to increase the compression rate, but also to decrease it Can also be corrected.

請求項4に示すように請求項3に記載の画像処理装置において、前記再圧縮された動画データの動画ファイルを前記記録媒体に記録された元の動画ファイルに置き換える記録手段、又は外部に出力する手段を備えたことを特徴としている。   4. The image processing apparatus according to claim 3, wherein the moving image file of the recompressed moving image data is replaced with an original moving image file recorded on the recording medium, or output to the outside. It is characterized by having means.

請求項5に示すように請求項1から4のいずれかに記載の画像処理装置において、パーソナルコンピュータと双方向通信を行うための接続手段を有し、前記圧縮率指示手段に代えて、前記接続手段に接続されたパーソナルコンピュータのユーザインターフェースの操作に応じて動画の圧縮率の指示を受入することを特徴としている。パーソナルコンピュータのユーザインターフェースを使用することで、より詳細な圧縮率の設定が可能になる。   5. The image processing apparatus according to claim 1, further comprising connection means for performing bidirectional communication with a personal computer, wherein the connection is performed instead of the compression rate instruction means. In accordance with an operation of a user interface of a personal computer connected to the means, a moving image compression rate instruction is accepted. By using the user interface of the personal computer, a more detailed compression rate can be set.

請求項6に示すように請求項1から5のいずれかに記載の画像処理装置において、パーソナルコンピュータと双方向通信を行うための接続手段を有し、前記接続手段に接続されたパーソナルコンピュータから元の動画ファイルを受信して前記記録媒体に記録することを特徴としている。即ち、画像処理装置の記録媒体に記録される元の動画ファイルは、外部機器から転送されたものでもよい。   6. The image processing apparatus according to claim 1, further comprising a connection unit for performing bidirectional communication with the personal computer, wherein the original computer is connected to the connection unit. The moving image file is received and recorded on the recording medium. That is, the original moving image file recorded on the recording medium of the image processing apparatus may be transferred from an external device.

請求項7に係る撮像装置は、動画撮影が可能な撮像手段と、前記撮像手段を介して取得した動画データを元の動画ファイルとして記録媒体に記録する記録手段と、請求項1から6のいずれかに記載の画像処理装置と、を備えたことを特徴としている。   An imaging apparatus according to a seventh aspect includes an imaging unit capable of capturing a moving image, a recording unit that records the moving image data acquired via the imaging unit as an original moving image file on a recording medium, and any one of claims 1 to 6 And an image processing apparatus as described above.

撮像装置は、動画データの圧縮・伸長を行う専用ハードウエアを備えているため、これを有効活用することができる。   Since the imaging apparatus includes dedicated hardware for compressing and decompressing moving image data, it can be used effectively.

請求項8に係る動画処理方法は、記録媒体に記録されている元の動画ファイルを読み出し、現在指示されている圧縮率に基づいて前記読み出した動画ファイルの動画データをリアルタイムに再圧縮するとともに、再圧縮した動画データを伸長するステップと、前記リアルタイムに再圧縮・伸長された動画データに基づいて動画を表示手段に表示させるステップと、前記表示手段に表示された動画を見ながらユーザインターフェースを操作してリアルタイムに圧縮率を指示するステップと、前記再圧縮した動画データを記録するステップと、を含むことを特徴としている。   The moving image processing method according to claim 8 reads the original moving image file recorded on the recording medium, re-compresses the moving image data of the read moving image file in real time based on the currently instructed compression rate, The step of expanding the recompressed moving image data, the step of displaying the moving image on the display means based on the moving image data recompressed / expanded in real time, and operating the user interface while watching the moving image displayed on the display means And a step of instructing the compression rate in real time and a step of recording the recompressed moving image data.

本発明によれば、指定した現在の圧縮率に基づいて元の動画ファイルの動画データをリアルタイムに再圧縮するとともに、再圧縮した動画データを伸長し、この再圧縮・伸長された動画データに基づいて動画を表示可能にしたため、指示した圧縮率による再圧縮の結果がリアルタイムに反映された動画を見ながら、最適な圧縮率を設定することができ、これによりユーザが希望する画質の動画が得られるとともに、再圧縮される動画ファイルのファイルサイズを最小限にすることができる。   According to the present invention, the moving image data of the original moving image file is recompressed in real time based on the designated current compression rate, and the recompressed moving image data is expanded, and the recompressed / expanded moving image data is used. Since the video can be displayed, the optimal compression rate can be set while viewing the video that reflects the result of the recompression at the specified compression rate in real time. And the file size of the recompressed moving image file can be minimized.

以下、添付図面に従って本発明に係る画像処理装置、撮像装置及び画像処理方法の好ましい実施の形態について説明する。   Preferred embodiments of an image processing apparatus, an imaging apparatus, and an image processing method according to the present invention will be described below with reference to the accompanying drawings.

[デジタルカメラの全体構成]
図1は本発明に係る撮像装置(デジタルカメラ)10の内部構成の実施の形態を示すブロック図である。
[Overall configuration of digital camera]
FIG. 1 is a block diagram showing an embodiment of an internal configuration of an imaging apparatus (digital camera) 10 according to the present invention.

同図に示すように、本実施の形態のデジタルカメラ10は、静止画及び動画の撮影・再生ができるもので、主として撮影光学系12、CCD等の固体撮像素子からなるメージセンサ14(以下「CCD」という)、アナログ信号処理回路16、A/D変換器18、画像入力コントローラ20、画像処理回路22、圧縮パラメータ処理回路24、圧縮・伸長処理回路26、メディアコントロール回路 28、メモリ(RAM)30、音声処理回路32、音声再生回路34、スピーカ36、音声入力回路(マイク)38、画像再生処理回路40、ビデオエンコード回路42、LCDドライブ回路44、液晶(LCD)モニタ46、通信インタフェース48、操作スイッチSW1〜スイッチSWnを有する操作部、撮影光学系12のフォーカスレンズ、ズームレンズ、絞り等を駆動するためのモータ50及びドライバ52、及び中央処理装置(CPU)54等から構成されている。   As shown in the figure, the digital camera 10 of the present embodiment is capable of shooting and reproducing still images and moving images. The image sensor 14 (hereinafter referred to as “CCD”) mainly composed of a shooting optical system 12 and a solid-state imaging device such as a CCD. Analog signal processing circuit 16, A / D converter 18, image input controller 20, image processing circuit 22, compression parameter processing circuit 24, compression / decompression processing circuit 26, media control circuit 28, memory (RAM) 30 , Audio processing circuit 32, audio reproduction circuit 34, speaker 36, audio input circuit (microphone) 38, image reproduction processing circuit 40, video encoding circuit 42, LCD drive circuit 44, liquid crystal (LCD) monitor 46, communication interface 48, operation An operation unit having switches SW1 to SWn and a focus lens of the photographing optical system 12 , And a zoom lens, a motor 50 and a driver 52 for driving the diaphragm or the like, and a central processing unit (CPU) 54 and the like.

尚、操作部50は、電源スイッチSW1、撮影/再生モード選択スイッチSW2、シャッターボタン(録画ボタン)SW3、メニュー/OKスイッチ、及びマルチファンクションの十字キー等を含んで構成されている。   The operation unit 50 includes a power switch SW1, a shooting / playback mode selection switch SW2, a shutter button (recording button) SW3, a menu / OK switch, a multifunction cross key, and the like.

デジタルカメラ10の全体の動作は、CPU54によって統括制御されており、CPU54は操作部50からの入力に基づき所定のプログラムに従ってデジタルカメラ10の各部を制御する。   The overall operation of the digital camera 10 is comprehensively controlled by the CPU 54, and the CPU 54 controls each part of the digital camera 10 according to a predetermined program based on an input from the operation unit 50.

CCD14は、所定のカラーフィルタ配列(例えば、ハニカム配列)のカラーCCDで構成されている。撮影光学系12を介してCCD14の受光面に入射した光は、その受光面に配列された各フォトダイオードによって入射光量に応じた量の信号電荷に変換される。そして、各フォトダイオードに蓄積された信号電荷は、電圧信号(画像信号)としてCCD14から順次出力される。   The CCD 14 is composed of a color CCD having a predetermined color filter array (for example, honeycomb array). Light incident on the light receiving surface of the CCD 14 via the photographing optical system 12 is converted into signal charges of an amount corresponding to the amount of incident light by each photodiode arranged on the light receiving surface. The signal charges accumulated in each photodiode are sequentially output from the CCD 14 as a voltage signal (image signal).

アナログ信号処理部16は、CDS回路及びアナログアンプを含み、CDS回路は、CCD16から入力するCCD出力信号を相関二重サンプリング処理し、アナログアンプは、撮影感度に応じて設定されたゲインによってCDS回路から出力される画像信号を増幅する。A/D変換器18は、このアナログ信号処理部16から出力されたアナログの画像信号をデジタルの画像信号に変換する。   The analog signal processing unit 16 includes a CDS circuit and an analog amplifier. The CDS circuit performs a correlated double sampling process on the CCD output signal input from the CCD 16, and the analog amplifier performs a CDS circuit with a gain set according to the photographing sensitivity. The image signal output from is amplified. The A / D converter 18 converts the analog image signal output from the analog signal processing unit 16 into a digital image signal.

画像入力コントローラ20は、所定容量のバッファメモリを内蔵しており、A/D変換器18から出力された画像信号を1コマ分蓄積して、RAM30に格納する。   The image input controller 20 includes a buffer memory having a predetermined capacity, accumulates one frame of the image signal output from the A / D converter 18, and stores it in the RAM 30.

画像処理回路22は、ホワイトバランス補正回路、ガンマ補正回路、同時化回路、輪郭補正回路、輝度・色差信号生成回路等を含み、CPU54からの指令に従ってRAM30に格納された画像信号を処理し、輝度信号Yと色差信号Cb,CrとからなるYC信号を生成する。   The image processing circuit 22 includes a white balance correction circuit, a gamma correction circuit, a synchronization circuit, a contour correction circuit, a luminance / color difference signal generation circuit, etc., and processes an image signal stored in the RAM 30 in accordance with a command from the CPU 54 to obtain a luminance. A YC signal composed of the signal Y and the color difference signals Cb and Cr is generated.

LCDモニタ46にライブビュー画像(動画)を表示させる場合は、CCD14で画像を連続的に撮像し、得られた画像信号を連続的に処理してYC信号を生成する。生成されたYC信号は、RAM30及び画像再生処理回路40を介してビデオエンコード回路42及びLCDドライブ回路44に加えられる。ビデオエンコード回路42は、入力するYC信号からTV表示用(NTSC方式)のビデオ信号を生成し、ビデオ出力端子にTVモニタ60が接続されている場合には、TVモニタ60にビデオ信号を出力する。また、LCDドライブ回路44は、入力するYC信号をLCD表示用の信号形式に変換し、LCDモニタ46に出力する。これにより、LCDモニタ46(及びTVモニタ60)にライブビュー画像(動画)が表示される。   When a live view image (moving image) is displayed on the LCD monitor 46, images are continuously captured by the CCD 14, and the obtained image signal is continuously processed to generate a YC signal. The generated YC signal is applied to the video encoding circuit 42 and the LCD drive circuit 44 via the RAM 30 and the image reproduction processing circuit 40. The video encoding circuit 42 generates a video signal for TV display (NTSC system) from the input YC signal, and outputs the video signal to the TV monitor 60 when the TV monitor 60 is connected to the video output terminal. . The LCD drive circuit 44 converts the input YC signal into a signal format for LCD display and outputs it to the LCD monitor 46. Thereby, a live view image (moving image) is displayed on the LCD monitor 46 (and the TV monitor 60).

静止画又は動画を記録する場合は、シャッターボタンSW3からの撮影指令に応じてCCD14で画像を撮像し、得られた画像信号を処理してYC信号を生成する。生成されたYC信号は、圧縮・伸長処理部32に加えられ、圧縮パラメータ処理回路24で設定された圧縮パラメータ(概ね圧縮率)にしたがって所定の圧縮画像データ(例えば、静止画の場合にはJPEG、動画の場合にはモーションJPEG)のファイルとしてメディアコントロール回路28を介して記録メディア62に格納される。   When a still image or a moving image is recorded, an image is picked up by the CCD 14 in response to a shooting command from the shutter button SW3, and the obtained image signal is processed to generate a YC signal. The generated YC signal is added to the compression / decompression processing unit 32, and predetermined compressed image data (for example, JPEG in the case of a still image) according to the compression parameter (substantially compression rate) set by the compression parameter processing circuit 24. In the case of a moving image, it is stored in the recording medium 62 via the media control circuit 28 as a motion JPEG file.

記録メディア62に格納されたファイル(静止画ファイル、動画ファイル)は、再生指令に応じて記録メディア62から読み出され、圧縮・伸長処理回路26で非圧縮のYC信号とされたのち、画像再生処理回路40及びLCDドライブ回路44を介してLCDモニタ46に出力される。これにより、記録メディア62に記録された静止画、又は動画がLCDモニタ46に再生表示される。   A file (still image file, moving image file) stored in the recording medium 62 is read from the recording medium 62 in accordance with a reproduction command, converted into an uncompressed YC signal by the compression / decompression processing circuit 26, and then reproduced. The data is output to the LCD monitor 46 via the processing circuit 40 and the LCD drive circuit 44. As a result, the still image or moving image recorded on the recording medium 62 is reproduced and displayed on the LCD monitor 46.

音声処理回路32は、動画の撮影時にマイク38から入力する音声信号を処理して圧縮・伸長処理回路26に送り、圧縮・伸長処理回路26では、動画データと音声データとをリアルタイムにモーションJPEGに変換して動画ファイルを作成する。また、動画再生時には、圧縮・伸長処理回路26によって伸長された動画ファイルのデータのうちの音声データが音声処理回路32に加えられ、ここで所要の音声処理がされた後、音声再生回路(D/A変換器、アンプ)34を介してスピーカ36に出力される。これにより、動画とともに記録された音声を再生することができる。   The audio processing circuit 32 processes an audio signal input from the microphone 38 when shooting a moving image and sends it to the compression / decompression processing circuit 26. The compression / decompression processing circuit 26 converts the moving image data and audio data into motion JPEG in real time. Convert to create a video file. Further, at the time of moving image reproduction, audio data among the data of the moving image file expanded by the compression / decompression processing circuit 26 is added to the audio processing circuit 32, and after necessary audio processing is performed here, the audio reproduction circuit (D / A converter, amplifier) 34 and output to the speaker 36. Thereby, the sound recorded together with the moving image can be reproduced.

通信インタフェース48は、例えばUSB又はIEEE1394の通信規格のもので、PCと接続できるようになっている。この通信インタフェース48を介してPCと各種データやコマンドが双方向通信される。   The communication interface 48 is, for example, a USB or IEEE 1394 communication standard, and can be connected to a PC. Via this communication interface 48, various data and commands are communicated with the PC in two ways.

このデジタルカメラ10は、動画を最高画質(圧縮率が最小、又は非圧縮)で記録メディア62に記録することができる。また、メニュー/OKスイッチ、及び十字キー等を操作して圧縮率変更モードを設定することにより、記録メディア62に記録された動画ファイル(元の動画ファイル)を任意の圧縮率に再圧縮し、元の動画ファイルに置換する機能を有している。   The digital camera 10 can record a moving image on the recording medium 62 with the highest image quality (the compression rate is minimum or uncompressed). Further, by operating the menu / OK switch and the cross key to set the compression rate change mode, the moving image file (original moving image file) recorded on the recording medium 62 is recompressed to an arbitrary compression rate, It has a function to replace the original movie file.

以下、本発明に係る動画の圧縮率を変更する動画処理方法について説明する。   Hereinafter, a moving image processing method for changing the compression rate of a moving image according to the present invention will be described.

<第1の実施の形態>
図2は本発明に係るデジタルカメラ10での処理の第1の実施の形態を示すフローチャートである。
<First Embodiment>
FIG. 2 is a flowchart showing a first embodiment of processing in the digital camera 10 according to the present invention.

まず、デジタルカメラ10の通信インタフェース48と、図3に示すPC100の通信インタフェース116とを接続し、PCのモニタ120に動画を表示できるようにする。尚、PCのモニタ120の代わりに、デジタルカメラ10のビデオ出力端子にTVモニタ60を接続し、このTVモニタ60に動画を表示できるようにしてもよい。   First, the communication interface 48 of the digital camera 10 and the communication interface 116 of the PC 100 shown in FIG. 3 are connected so that a moving image can be displayed on the monitor 120 of the PC. Instead of the PC monitor 120, a TV monitor 60 may be connected to the video output terminal of the digital camera 10 so that a moving image can be displayed on the TV monitor 60.

上記の準備をした後、デジタルカメラ10を圧縮率変更モードに設定し、動画の再生を指示することにより、その再生が指示された記録メディア62内の動画ファイルの再圧縮を行うための処理を開始させる(ステップS10)。   After making the above preparations, the digital camera 10 is set to the compression rate change mode, and a process for recompressing the moving image file in the recording medium 62 instructed to reproduce the moving image is instructed. Start (step S10).

再圧縮の開始指示により記録メディア62内の指定された動画ファイルの先頭から動画データ(圧縮フレーム)を1フレーム読み取る(ステップS12)。読み取ったフレームが動画の最終フレームか否かを判別し(ステップS14)、最終フレームでない場合には、ステップS16に遷移させ、最終フレームの場合には、ステップS18に遷移させる。   One frame of moving image data (compressed frame) is read from the head of the specified moving image file in the recording medium 62 according to the recompression start instruction (step S12). It is determined whether or not the read frame is the final frame of the moving image (step S14). If it is not the final frame, the process proceeds to step S16, and if it is the final frame, the process proceeds to step S18.

ステップS16では、記録メディア62内に再圧縮フレームを格納するための一時ファイルが作成されているか否かを判別し、作成されている場合にはステップS20に遷移させ、作成されていない場合には、ステップS22に遷移させ、ここで一時ファイルを作成させる。   In step S16, it is determined whether or not a temporary file for storing the recompressed frame is created in the recording medium 62. If it is created, the process proceeds to step S20. In step S22, a temporary file is created.

ステップS20では、読み取った1フレームの動画データ(圧縮フレーム)を、圧縮・伸長処理回路26にて伸長させた後、現在設定されている圧縮率で再圧縮させる。圧縮率の設定(指示)は、デジタルカメラ10のユーザインターフェース(UI)を使用して適宜設定できるようになっている。例えば、現設定の圧縮率(%)をカメラのLCDモニタ46上に表示し、操作部50の十字キーの上キー又は下キーを操作して圧縮率(%)をアップダウンさせることによって圧縮率の変更を指示できるようにする。尚、元の動画ファイルの圧縮率を100%としている。   In step S20, the read one frame of moving image data (compressed frame) is decompressed by the compression / decompression processing circuit 26 and then recompressed at the currently set compression rate. The compression rate setting (instruction) can be set as appropriate using the user interface (UI) of the digital camera 10. For example, the currently set compression rate (%) is displayed on the LCD monitor 46 of the camera, and the compression rate (%) is increased or decreased by operating the up key or the down key of the cross key of the operation unit 50. Can be instructed to change Note that the compression rate of the original moving image file is 100%.

上記のようにして再圧縮した再圧縮フレームを一時ファイルに追記し(ステップS24)、続いて再圧縮フレームを伸長する(ステップS26)。この伸長された1フレームの動画データは、通信インタフェース48を介してPC100に送られ、フレーム画像としてモニタ120に表示される(ステップS28)。これにより、ユーザは、上記のようにして表示されたモニタ120上の現設定の圧縮率で圧縮された画像(動画)の画質をリアルタイムに確認しながら、カメラのUIを使用して圧縮率の指示を行うことができる。   The recompressed frame recompressed as described above is added to the temporary file (step S24), and then the recompressed frame is expanded (step S26). The expanded one-frame moving image data is sent to the PC 100 via the communication interface 48 and displayed on the monitor 120 as a frame image (step S28). As a result, the user can confirm the image quality of the image (moving image) compressed with the currently set compression rate on the monitor 120 displayed as described above in real time while using the camera UI. You can give instructions.

ステップS30では、カメラUIから圧縮率の変更指示が入力されたか否かを判別し、圧縮率の変更指示が入力されていない場合には、そのままステップS12に遷移させ、圧縮率の変更指示が入力された場合には、ステップS32に遷移させ、ここで、現設定の圧縮率を変更させた後、ステップS12に遷移させる。   In step S30, it is determined whether or not a compression rate change instruction is input from the camera UI. If no compression rate change instruction is input, the process proceeds to step S12 as it is, and the compression rate change instruction is input. If so, the process proceeds to step S32, where the current compression ratio is changed, and then the process proceeds to step S12.

上記のようにしてステップS12からステップS32の処理を、動画全体にわたって繰り返す。そして、動画のフレーム終端までの処理が終了すると、ステップS18に進み、ここで元の動画ファイルを記録メディア62から削除するとともに(ステップS18)、再圧縮された動画データが記録された一時ファイルを元の動画ファイル名に変更する(ステップS34)。   As described above, the processing from step S12 to step S32 is repeated over the entire moving image. When the process up to the end of the frame of the moving image is completed, the process proceeds to step S18, where the original moving image file is deleted from the recording medium 62 (step S18), and the temporary file in which the recompressed moving image data is recorded. The original movie file name is changed (step S34).

尚、上記のようにして再圧縮を設定する際に動画の再生速度は、通常の再生速度に限らず、任意に設定してもよい。   Note that when setting recompression as described above, the playback speed of the moving image is not limited to the normal playback speed, and may be set arbitrarily.

図3は上記デジタルカメラ10と接続されるPC100のハードウエア構成例を示すブロック図である。   FIG. 3 is a block diagram illustrating a hardware configuration example of the PC 100 connected to the digital camera 10.

同図に示すようにPC100は、主として各構成要素の動作を制御する中央処理装置(CPU)102と、装置の制御プログラムが格納されたり、プログラム実行時の作業領域となる主メモリ104と、PC100のオペレーティングシステム(OS)、PC100に接続された周辺機器のデバイスドライバ、動画圧縮時に使用されるプログラムを含む各種のアプリケーションソフト、動画ファイル等が格納されるハードディスク装置106と、CD−ROMドライブ108と、モニタ120の表示制御が可能なグラフィックボード110と、キーボード122のキー操作を検出して指示入力としてCPU102に出力するキーボードコントローラ112と、位置入力装置としてのマウス124の状態を検出してモニタ120上のマウスポインタの位置やマウス124の状態等の信号をCPU102に出力するマウスコントローラ114と、デジタルカメラ100と接続して動画ファイル、動画データ、コマンド等の送受信が可能なUSB、IEEE1394などの通信インタフェース116と、上記各構成要素を接続するバス118とから構成されている。   As shown in the figure, the PC 100 includes a central processing unit (CPU) 102 that mainly controls the operation of each component, a main memory 104 that stores a control program for the device and serves as a work area when the program is executed, and the PC 100. Operating system (OS), device drivers for peripheral devices connected to the PC 100, various application software including programs used when compressing moving images, moving image files and the like, a CD-ROM drive 108, The monitor 120 detects the state of the graphic board 110 that can control the display of the monitor 120, the keyboard controller 112 that detects the key operation of the keyboard 122 and outputs it to the CPU 102 as an instruction input, and the mouse 124 as the position input device. Mousepoi on A mouse controller 114 for outputting signals such as the position of the computer and the state of the mouse 124 to the CPU 102; , And a bus 118 for connecting the above components.

尚、上記構成のPC100は、ハードディスク装置108に格納されている、動画圧縮時に使用されるプログラムを除いて周知のものであるため、各構成要素の詳細な説明については省略する。   The PC 100 having the above-described configuration is well known except for a program stored in the hard disk device 108 and used when compressing a moving image, and a detailed description of each component will be omitted.

第1の実施の形態では、元の動画ファイルは、デジタルカメラ10で撮影されて記録メディア62に記録されたものであるが、これに限らず、PC100のハードディスク装置106に格納されている動画ファイルであって、PCの通信インタフェース116、及びカメラの通信インタフェース48を介してデジタルカメラ10に転送され、記録メディア62に格納された動画ファイルでもよい。   In the first embodiment, the original moving image file is recorded by the digital camera 10 and recorded on the recording medium 62. However, the moving image file is not limited to this and is stored in the hard disk device 106 of the PC 100. The moving image file may be transferred to the digital camera 10 via the PC communication interface 116 and the camera communication interface 48 and stored in the recording medium 62.

また、この実施の形態では、カメラのUIを使用して圧縮率の設定を行うようにしたが、カメラのUIの代わりにPC100のUIを使用して圧縮率の設定(指示)を行うようにしてもよい。PC100のUIを使用する場合には、カメラのUIを使用する場合に比べて、より複雑な圧縮パラメータによる適切な圧縮率の設定が可能になる。   In this embodiment, the compression rate is set using the camera UI, but the compression rate is set (instructed) using the UI of the PC 100 instead of the camera UI. May be. When using the UI of the PC 100, it is possible to set an appropriate compression rate using more complicated compression parameters than when using the UI of the camera.

例えば、図4に示すようにモニタ120の一部に、圧縮率の推移を示すグラフを表示させ、動画のある部分の圧縮率を高くする場合には、その部分に対応するグラフ上の位置をマウスでドラッグし、点線で示すように圧縮率を設定することができる。   For example, as shown in FIG. 4, when a graph showing the transition of the compression rate is displayed on a part of the monitor 120 and the compression rate of a certain part of the moving image is increased, the position on the graph corresponding to the part is displayed. You can drag with the mouse and set the compression rate as shown by the dotted line.

また、第1の実施の形態によって再圧縮された動画ファイルを元の動画ファイルとし、この元の動画ファイルを更に再圧縮するようにしてもよい。   The moving image file recompressed according to the first embodiment may be used as the original moving image file, and the original moving image file may be further recompressed.

<第2の実施の形態>
図5は本発明に係るデジタルカメラ10での処理の第2の実施の形態を示すフローチャートである。
<Second Embodiment>
FIG. 5 is a flowchart showing a second embodiment of processing in the digital camera 10 according to the present invention.

第1の実施の形態と同様に、事前にデジタルカメラ10とPC100とを接続し(図3参照)、続いてデジタルカメラ10を圧縮率変更モードに設定し、動画の再生を指示することにより、その再生が指示された記録メディア62内の動画ファイルの再圧縮を行うための処理を開始させる(ステップS50)。   As in the first embodiment, the digital camera 10 and the PC 100 are connected in advance (see FIG. 3), then the digital camera 10 is set to the compression rate change mode, and the playback of the moving image is instructed. A process for recompressing the moving image file in the recording medium 62 instructed to be reproduced is started (step S50).

再圧縮の開始指示により記録メディア62内の指定された動画ファイルの先頭から動画データ(圧縮フレーム)を1フレーム読み取り、この読み取った1フレームの動画データを、圧縮・伸長処理回路26にて伸長させた後、現在設定されている圧縮率で再圧縮させる(ステップS52)。尚、圧縮率の設定(指示)は、前述したようにPC100のUIを使用して適宜行われる。   One frame of moving image data (compressed frame) is read from the head of the specified moving image file in the recording medium 62 in response to the start of recompression, and the one frame of moving image data thus read is decompressed by the compression / decompression processing circuit 26. Then, recompression is performed at the currently set compression rate (step S52). Note that the compression rate is set (instructed) as appropriate using the UI of the PC 100 as described above.

上記のようにして再圧縮した再圧縮フレームを伸長(展開)し(ステップS54)、この展開データをPC100に送信してPC100のモニタ120に画像(動画)を表示させる(ステップS56)。これにより、ユーザは、モニタ120上に表示された画像から現在設定されている圧縮率で圧縮された画像(動画)の画質を確認することができ、PC100のUIを使用して動画の圧縮率を、動画のシーン、カット等に応じてリアルタイムに設定することができる。   The recompressed frame recompressed as described above is expanded (decompressed) (step S54), and the expanded data is transmitted to the PC 100 to display an image (moving image) on the monitor 120 of the PC 100 (step S56). Thereby, the user can check the image quality of the image (moving image) compressed with the currently set compression rate from the image displayed on the monitor 120, and the compression rate of the moving image using the UI of the PC 100 Can be set in real time according to the scene, cut, etc. of the moving image.

ステップS58では、PC100のUIから圧縮率の変更指示が入力されたか否かを判別し、圧縮率の変更指示が入力されていない場合には、そのままステップS60に遷移させ、圧縮率の変更指示が入力された場合には、ステップS62に遷移させ、ここで、現在設定されている圧縮率を変更させた後、ステップS60に遷移させる。   In step S58, it is determined whether or not an instruction to change the compression ratio is input from the UI of the PC 100. If no instruction to change the compression ratio is input, the process proceeds to step S60 as it is, and an instruction to change the compression ratio is issued. If it is input, the process proceeds to step S62, where the currently set compression rate is changed, and then the process proceeds to step S60.

尚、ステップS62では、動画データの位置情報(動画の再生開始からの時間やフレーム番号等)に関連付けて圧縮率を保存し、これにより圧縮率の推移の履歴を保存するようにしている。   In step S62, the compression rate is stored in association with the position information of the moving image data (the time from the start of playback of the moving image, the frame number, etc.), and the history of the transition of the compression rate is thereby stored.

ステップS60では、動画のフレーム終端までの処理が終了したか否かを判別し、終了していない場合には、ステップS52に遷移させる。一方、動画のフレーム終端までの処理が終了したと判別されると、元の動画ファイルの圧縮率の設定処理が終了する。   In step S60, it is determined whether or not the process up to the end of the frame of the moving image has been completed. If not, the process proceeds to step S52. On the other hand, when it is determined that the processing up to the end of the frame of the moving image has been completed, the processing for setting the compression rate of the original moving image file ends.

また、上記のようにして元の動画ファイルの圧縮率の設定処理が終了した後も、再度圧縮率の設定処理を再開させるようにしてもよい。この場合、ステップS62で保存した前回設定した圧縮率を基準にして圧縮率の再設定を可能にする。即ち、PC100のUIからの圧縮率の変更指示(圧縮率のアップダウン)がない場合には、前回設定した圧縮率が維持され、圧縮率の変更指示がある場合には、その変更指示があった部分のフレームに対する圧縮率が前回の圧縮率から変更されるようにする。   In addition, after the setting process of the compression rate of the original moving image file is completed as described above, the compression rate setting process may be restarted again. In this case, the compression rate can be reset based on the previously set compression rate saved in step S62. That is, if there is no instruction to change the compression ratio (up / down compression ratio) from the UI of the PC 100, the previously set compression ratio is maintained, and if there is an instruction to change the compression ratio, there is an instruction to change it. The compression rate for the part of the frame is changed from the previous compression rate.

尚、この実施の形態では、PC100のUIを使用して圧縮率の設定を行うようにしたが、これに限らず、カメラUIを使用して圧縮率の設定を行うようにしてもよい。   In this embodiment, the compression rate is set using the UI of the PC 100. However, the present invention is not limited to this, and the compression rate may be set using the camera UI.

<第2の実施の形態の第1の変形例>
図6は本発明に係るデジタルカメラ10での処理の第2の実施の形態の第1の変形例を示すフローチャートである。尚、第2の実施の形態と共通する部分には同一のステップ番号を付し、その詳細な説明は省略する。
<First Modification of Second Embodiment>
FIG. 6 is a flowchart showing a first modification of the second embodiment of the processing in the digital camera 10 according to the present invention. In addition, the same step number is attached | subjected to the part which is common in 2nd Embodiment, The detailed description is abbreviate | omitted.

図6に示すように、第2の実施の形態の第1の変形例では、第2の実施の形態のものに対して、ステップS70及びS72の処理が追加されている。   As shown in FIG. 6, in the first modification of the second embodiment, the processes of steps S70 and S72 are added to those of the second embodiment.

まず、事前にデジタルカメラ10とPC100とを接続し、またデジタルカメラ10を圧縮率変更モードに設定して動画ファイルの再圧縮の準備をする点は、第2の実施の形態と同様である。   First, the digital camera 10 and the PC 100 are connected in advance, and the digital camera 10 is set to the compression rate change mode to prepare for the recompression of the moving image file, as in the second embodiment.

上記の準備をした後、PC100から再圧縮する動画ファイルをデジタルカメラ10に送信し、デジタルカメラ10はこの動画ファイルを再圧縮する元の動画ファイルとして受信し、デジタルカメラ10の記録メディア62に保存する(ステップS70)。   After the above preparation, the video file to be recompressed is transmitted from the PC 100 to the digital camera 10, and the digital camera 10 receives the video file as the original video file to be recompressed and saves it in the recording medium 62 of the digital camera 10. (Step S70).

デジタルカメラ10はPC100からの動画ファイルの受信が終了すると、受信終了回答をPC100に送信する(ステップS72)。   When the digital camera 10 finishes receiving the moving image file from the PC 100, the digital camera 10 transmits a reception end reply to the PC 100 (step S72).

その後、デジタルカメラ10は、受信した動画ファイルを再圧縮の対象ファイルとして、第1の実施の形態と同様に圧縮率設定の処理を実施する。   Thereafter, the digital camera 10 uses the received moving image file as a file to be recompressed, and performs a compression rate setting process as in the first embodiment.

<第2の実施の形態の第2の変形例>
図7は本発明に係るデジタルカメラ10での処理の第2の実施の形態の第2の変形例を示すフローチャートである。尚、第2の実施の形態の第1の変形例と共通する部分には同一のステップ番号を付し、その詳細な説明は省略する。
<Second Modification of Second Embodiment>
FIG. 7 is a flowchart showing a second modification of the second embodiment of the processing in the digital camera 10 according to the present invention. In addition, the same step number is attached | subjected to the part which is common in the 1st modification of 2nd Embodiment, The detailed description is abbreviate | omitted.

図7に示すように、第2の実施の形態の第2の変形例では、第2の実施の形態の第1の変形例に対して、ステップS80、S82、S84及びS86の処理が追加されている。   As shown in FIG. 7, in the second modification of the second embodiment, the processes of steps S80, S82, S84, and S86 are added to the first modification of the second embodiment. ing.

ステップS80では、PC100から転送されたデータが、デジタルカメラ10で再圧縮が可能な動画ファイルかどうかを判別し、対応データの場合にはステップS50に遷移させ、一方、対応データでない場合には、ステップS82に遷移させ、ここで、PC100にエラー回答を送信させる。例えば、デジタルカメラ10がモーションJPEGの動画ファイルのみに対応している場合に、MPEG等の他の動画ファイルを受信した場合にエラー回答を送信する。   In step S80, it is determined whether or not the data transferred from the PC 100 is a moving image file that can be recompressed by the digital camera 10. If the data is corresponding data, the process proceeds to step S50. The process proceeds to step S82 where an error response is transmitted to the PC 100. For example, when the digital camera 10 supports only motion JPEG moving image files, an error response is transmitted when another moving image file such as MPEG is received.

ステップS84では、PC100のUIで変更指示させた圧縮率が、カメラで対応可能な圧縮率が否かを判別し、対応圧縮率の場合にはステップS62に遷移させ、一方、対応圧縮率でない場合には、ステップS86に遷移させ、ここで、PC100にエラー回答を送信させる。   In step S84, it is determined whether or not the compression rate instructed to change by the UI of the PC 100 is a compression rate that can be supported by the camera. If the compression rate is a corresponding compression rate, the process proceeds to step S62. In step S86, an error response is transmitted to the PC 100.

<第2の実施の形態の第3の変形例>
図8は本発明に係るデジタルカメラ10での処理の第2の実施の形態の第3の変形例を示すフローチャートである。尚、第2の実施の形態の第2の変形例と共通する部分には同一のステップ番号を付し、その詳細な説明は省略する。
<Third Modification of Second Embodiment>
FIG. 8 is a flowchart showing a third modification of the second embodiment of the processing in the digital camera 10 according to the present invention. In addition, the same step number is attached | subjected to the part which is common in the 2nd modification of 2nd Embodiment, The detailed description is abbreviate | omitted.

図8に示すように、第2の実施の形態の第3の変形例では、第2の実施の形態の第2の変形例に対して、ステップS90、及びS92の処理が追加されている。   As illustrated in FIG. 8, in the third modification example of the second embodiment, the processes of steps S90 and S92 are added to the second modification example of the second embodiment.

ステップS90では、ステップS62で設定され、動画データの位置情報に関連付けて保存された圧縮率を使用し、元の動画ファイルの動画データを伸長し、各フレームごとに対応する圧縮率で再圧縮する。ステップS92では、ステップS90で再圧縮した動画ファイルをPC100に転送する。   In step S90, using the compression ratio set in step S62 and stored in association with the position information of the moving image data, the moving image data of the original moving image file is decompressed and recompressed at a compression rate corresponding to each frame. . In step S92, the moving image file recompressed in step S90 is transferred to the PC 100.

デジタルカメラ10は、再圧縮した動画ファイルのPC100への転送後、記録メディア62内の元の動画ファイルを自動的消去してもよい。また、再圧縮した動画ファイルをPC100に転送せずに、記録メディア62に記録してもよいし、記録メディア62内の元の動画ファイルと置き換えてもよい。   The digital camera 10 may automatically delete the original moving image file in the recording medium 62 after transferring the recompressed moving image file to the PC 100. Further, the recompressed moving image file may be recorded on the recording medium 62 without being transferred to the PC 100, or may be replaced with the original moving image file in the recording medium 62.

尚、この実施の形態では、撮像装置としてデジタルカメラ10を例に説明したが、これに限らず、デジタルビデオカメラにも本発明は適用できる。また、動画ファイルの圧縮・伸長処理回路の専用ハードウエアを備えた他の画像処理装置にも本発明は適用できる。   In this embodiment, the digital camera 10 is described as an example of the imaging apparatus. However, the present invention is not limited to this, and the present invention can also be applied to a digital video camera. The present invention can also be applied to other image processing apparatuses equipped with dedicated hardware for a compression / decompression processing circuit for moving image files.

更にまた、この実施の形態では、動画ファイルとしてモーションJPEGの場合について説明したが、これに限らず、MPEG等の他のファイル形式の動画ファイルの再圧縮にも本発明は適用できる。   Furthermore, in this embodiment, the case of motion JPEG as a moving image file has been described. However, the present invention is not limited to this, and the present invention can also be applied to recompression of moving image files of other file formats such as MPEG.

また、モーションJPEGの場合には、圧縮率設定の最小単位としては、1フレームずつ可能であるが、動画ファイルがMPEGの場合には、Iピクチャ(Intra-coded picture)、Bピクチャ(Bidirectionally predictive-coded picture)、Pピクチャ(Predictive-coded picture)の1グループ(Iピクチャから始まるひとまとまり(GOP:Group of picture))以上の単位で圧縮率を設定し、その圧縮率で再圧縮することになる。   In the case of motion JPEG, the minimum unit for setting the compression rate can be one frame at a time. However, when the moving image file is MPEG, I picture (Intra-coded picture), B picture (Bidirectionally predictive- Coded picture), P picture (Predictive-coded picture) 1 group (GOP: Group of picture (GOP: Group of picture) starting from I picture) and set the compression rate, it will recompress at that compression rate .

図1は本発明に係る撮像装置(デジタルカメラ)の内部構成の実施の形態を示すブロック図である。FIG. 1 is a block diagram showing an embodiment of an internal configuration of an imaging apparatus (digital camera) according to the present invention. 図2は本発明に係るデジタルカメラでの処理の第1の実施の形態を示すフローチャートである。FIG. 2 is a flowchart showing a first embodiment of processing in the digital camera according to the present invention. 図3はデジタルカメラと接続されるPCのハードウエア構成例を示すブロック図である。FIG. 3 is a block diagram illustrating a hardware configuration example of a PC connected to the digital camera. 図4はPCのユーザインターフェース(UI)によって圧縮率を設定する場合の操作画面の一例を示す図である。FIG. 4 is a diagram illustrating an example of an operation screen when the compression rate is set by the user interface (UI) of the PC. 図5は本発明に係るデジタルカメラでの処理の第2の実施の形態を示すフローチャートである。FIG. 5 is a flowchart showing a second embodiment of processing in the digital camera according to the present invention. 図6は本発明に係るデジタルカメラでの処理の第2の実施の形態の第1の変形例を示すフローチャートである。FIG. 6 is a flowchart showing a first modified example of the second embodiment of the processing in the digital camera according to the present invention. 図7は本発明に係るデジタルカメラでの処理の第2の実施の形態の第2の変形例を示すフローチャートである。FIG. 7 is a flowchart showing a second modification of the second embodiment of the processing in the digital camera according to the present invention. 図8は本発明に係るデジタルカメラでの処理の第2の実施の形態の第3の変形例を示すフローチャートである。FIG. 8 is a flowchart showing a third modification of the second embodiment of the processing in the digital camera according to the present invention.

符号の説明Explanation of symbols

10…撮像装置(デジタルカメラ)、12…撮影光学系、14…CCD、24…圧縮パラメータ処理回路、26…圧縮・伸長処理回路、28…メディアコントロール回路、40…画像再生処理回路、42…ビデオエンコード回路、44…LCDドライブ回路、46…液晶モニタ、48、116…通信インタフェース、50…操作部、54、102…中央処理装置(CPU)、60…TVモニタ、62…記録メディア、100…パーソナルコンピュータ(PC)、104…主メモリ、106…ハードディスク装置、110…グラフィックボード、120…モニタ、124…マウス   DESCRIPTION OF SYMBOLS 10 ... Imaging device (digital camera), 12 ... Imaging optical system, 14 ... CCD, 24 ... Compression parameter processing circuit, 26 ... Compression / decompression processing circuit, 28 ... Media control circuit, 40 ... Image reproduction processing circuit, 42 ... Video Encoding circuit, 44 ... LCD drive circuit, 46 ... Liquid crystal monitor, 48, 116 ... Communication interface, 50 ... Operation unit, 54, 102 ... Central processing unit (CPU), 60 ... TV monitor, 62 ... Recording media, 100 ... Personal Computer (PC) 104 ... Main memory 106 ... Hard disk device 110 ... Graphic board 120 ... Monitor 124 ... Mouse

Claims (8)

元の動画ファイルが記録された記録媒体と、
動画の圧縮率を指示する圧縮率指示手段と、
前記記憶媒体に記録されている元の動画ファイルを読み出し、前記圧縮率指示手段によって指示されている現在の圧縮率に基づいて前記読み出した動画ファイルの動画データをリアルタイムに再圧縮するとともに、再圧縮した動画データを伸長する圧縮伸長手段と、
前記圧縮伸長手段によってリアルタイムに再圧縮・伸長された動画データを表示する内部の表示手段、又は前記動画データを外部の表示手段に出力する出力手段と、を備え、
前記圧縮伸長手段によってリアルタイムに再圧縮・伸長された動画データに基づいて内部の表示手段又は外部の表示手段に表示された動画を見ながら前記圧縮率指示手段によってリアルタイムに圧縮率の指示を行うことができるようにしたことを特徴とする画像処理装置。
A recording medium on which the original video file is recorded;
Compression rate instruction means for indicating the compression rate of the video,
The original moving image file recorded in the storage medium is read out, and the moving image data of the read moving image file is recompressed in real time based on the current compression rate instructed by the compression rate instruction means, and the recompression is performed. Compression / decompression means for decompressing the recorded video data,
An internal display means for displaying moving image data recompressed and expanded in real time by the compression / expansion means, or an output means for outputting the moving image data to an external display means,
Instructing the compression ratio in real time by the compression ratio instruction means while watching the moving picture displayed on the internal display means or the external display means based on the moving picture data recompressed / expanded in real time by the compression / expansion means An image processing apparatus characterized by being capable of performing
前記圧縮伸長手段によって再圧縮された再圧縮フレームを予め作成した一時ファイルに追記し、前記元の動画ファイルの全ての再圧縮フレームを一時ファイルに追記すると、一時ファイルを元の動画ファイルに置き換える記録手段を備えたことを特徴とする請求項1に記載の画像処理装置。   A record in which the recompressed frame recompressed by the compression / decompression unit is added to a temporary file created in advance, and when all the recompressed frames of the original moving image file are added to the temporary file, the temporary file is replaced with the original moving image file. The image processing apparatus according to claim 1, further comprising: means. 前記圧縮伸長手段によってリアルタイムに指示された圧縮率を動画データの位置情報に関連して記録する圧縮率設定手段を有し、
前記圧縮伸長手段は、前記元の動画ファイルの全ての動画データの圧縮率が設定されると、前記圧縮率設定手段によって設定された圧縮率によって前記元の動画ファイルの動画データを再圧縮することを特徴とする請求項1に記載の画像処理装置。
Compression ratio setting means for recording the compression ratio instructed in real time by the compression / expansion means in relation to the position information of the moving image data;
The compression / decompression unit recompresses the moving image data of the original moving image file according to the compression rate set by the compression rate setting unit when the compression rate of all moving image data of the original moving image file is set. The image processing apparatus according to claim 1.
前記再圧縮された動画データの動画ファイルを前記記録媒体に記録された元の動画ファイルに置き換える記録手段、又は外部に出力する手段を備えたことを特徴とする請求項3に記載の画像処理装置。   4. The image processing apparatus according to claim 3, further comprising a recording unit that replaces the moving image file of the recompressed moving image data with an original moving image file recorded on the recording medium, or a unit that outputs the moving image file to the outside. . パーソナルコンピュータと双方向通信を行うための接続手段を有し、前記圧縮率指示手段に代えて、前記接続手段に接続されたパーソナルコンピュータのユーザインターフェースの操作に応じて動画の圧縮率の指示を受入することを特徴とする請求項1から4のいずれかに記載の画像処理装置。   Connection means for performing two-way communication with a personal computer, instead of the compression ratio instruction means, accepts instructions for the compression ratio of moving images in accordance with the operation of the user interface of the personal computer connected to the connection means The image processing apparatus according to claim 1, wherein the image processing apparatus is an image processing apparatus. パーソナルコンピュータと双方向通信を行うための接続手段を有し、前記接続手段に接続されたパーソナルコンピュータから元の動画ファイルを受信して前記記録媒体に記録することを特徴とする請求項1から5のいずれかに記載の画像処理装置。   6. A connection means for performing bidirectional communication with a personal computer, wherein the original moving image file is received from the personal computer connected to the connection means and recorded on the recording medium. An image processing apparatus according to any one of the above. 動画撮影が可能な撮像手段と、
前記撮像手段を介して取得した動画データを元の動画ファイルとして記録媒体に記録する記録手段と、
請求項1から6のいずれかに記載の画像処理装置と、
を備えたことを特徴とする撮像装置。
Imaging means capable of video recording;
Recording means for recording the moving image data acquired via the imaging means as an original moving image file on a recording medium;
An image processing device according to any one of claims 1 to 6,
An imaging apparatus comprising:
記録媒体に記録されている元の動画ファイルを読み出し、現在指示されている圧縮率に基づいて前記読み出した動画ファイルの動画データをリアルタイムに再圧縮するとともに、再圧縮した動画データを伸長するステップと、
前記リアルタイムに再圧縮・伸長された動画データに基づいて動画を表示手段に表示させるステップと、
前記表示手段に表示された動画を見ながらユーザインターフェースを操作してリアルタイムに圧縮率を指示するステップと、
前記再圧縮した動画データを記録するステップと、
を含むことを特徴とする画像処理方法。
Reading the original moving image file recorded in the recording medium, recompressing the moving image data of the read moving image file in real time based on the currently designated compression rate, and decompressing the recompressed moving image data; ,
Displaying a moving image on a display means based on the moving image data recompressed and expanded in real time;
Instructing the compression rate in real time by operating the user interface while watching the video displayed on the display means;
Recording the recompressed video data;
An image processing method comprising:
JP2006296148A 2006-10-31 2006-10-31 Image processing apparatus, imaging apparatus, and image processing method Expired - Fee Related JP4791329B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2006296148A JP4791329B2 (en) 2006-10-31 2006-10-31 Image processing apparatus, imaging apparatus, and image processing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2006296148A JP4791329B2 (en) 2006-10-31 2006-10-31 Image processing apparatus, imaging apparatus, and image processing method

Publications (2)

Publication Number Publication Date
JP2008113349A true JP2008113349A (en) 2008-05-15
JP4791329B2 JP4791329B2 (en) 2011-10-12

Family

ID=39445604

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2006296148A Expired - Fee Related JP4791329B2 (en) 2006-10-31 2006-10-31 Image processing apparatus, imaging apparatus, and image processing method

Country Status (1)

Country Link
JP (1) JP4791329B2 (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH1056586A (en) * 1996-08-13 1998-02-24 Nikon Corp Image pickup device
JP2000299664A (en) * 1999-04-14 2000-10-24 Casio Comput Co Ltd Data processor and storage medium storing data processing program
JP2001036844A (en) * 1999-07-16 2001-02-09 Nec Corp Image quality confirming device, image quality confirming method and recording medium storing its program
JP2005235333A (en) * 2004-02-20 2005-09-02 Canon Inc Reproduction device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH1056586A (en) * 1996-08-13 1998-02-24 Nikon Corp Image pickup device
JP2000299664A (en) * 1999-04-14 2000-10-24 Casio Comput Co Ltd Data processor and storage medium storing data processing program
JP2001036844A (en) * 1999-07-16 2001-02-09 Nec Corp Image quality confirming device, image quality confirming method and recording medium storing its program
JP2005235333A (en) * 2004-02-20 2005-09-02 Canon Inc Reproduction device

Also Published As

Publication number Publication date
JP4791329B2 (en) 2011-10-12

Similar Documents

Publication Publication Date Title
US7986345B2 (en) Image pickup apparatus, image processing method, and program
JP4943721B2 (en) Color noise removal method for image data and imaging apparatus using the method
US7535495B2 (en) Digital camera, control method thereof and portable terminal
EP2974265B1 (en) Imaging apparatus and imaging apparatus control method
US9894270B2 (en) Image processing apparatus and image processing method for handling a raw image, of a moving image or a still image
JP4958758B2 (en) Recording apparatus, reproducing apparatus, recording method, reproducing method, and program
JP4901673B2 (en) Imaging apparatus, recording apparatus, reproducing apparatus, imaging method, recording method, reproducing method, and program
RU2655662C1 (en) Image processing apparatus and image processing method
JP2010021710A (en) Imaging device, image processor, and program
KR101480406B1 (en) Recording apparatus, replaying apparatus, recording method, replaying method and program recording medium
JP4429148B2 (en) Image photographing and recording apparatus and method
JP4826480B2 (en) Imaging apparatus, image management method, and program
JP4791329B2 (en) Image processing apparatus, imaging apparatus, and image processing method
KR101480407B1 (en) Digital image processing apparatus, method for controlling the same and medium of recording the method
JP6327939B2 (en) IMAGING DEVICE AND IMAGING DEVICE CONTROL METHOD
JP5223974B2 (en) Video camera and control method thereof
US20060023083A1 (en) Method of controlling digital photographing apparatus for efficient reproduction operation and digital photographing apparatus adopting the same
JP4306555B2 (en) Video camera
US20100149375A1 (en) Apparatus and method for faster recording and reproduction of digital video images
JP5062207B2 (en) Video camera and control method thereof
JP4355857B2 (en) Movie recording apparatus, file creation method, and program
JP2009118195A (en) Imaging apparatus and method
JP4293082B2 (en) Playback device with server function
JP2005260735A (en) Digital camera
JP2012129892A (en) Imaging apparatus, and control method and program for the same

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20090909

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20100929

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20101001

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20101130

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

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20110721

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

Free format text: PAYMENT UNTIL: 20140729

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

LAPS Cancellation because of no payment of annual fees