JP2006210970A - Video camera - Google Patents

Video camera Download PDF

Info

Publication number
JP2006210970A
JP2006210970A JP2005016227A JP2005016227A JP2006210970A JP 2006210970 A JP2006210970 A JP 2006210970A JP 2005016227 A JP2005016227 A JP 2005016227A JP 2005016227 A JP2005016227 A JP 2005016227A JP 2006210970 A JP2006210970 A JP 2006210970A
Authority
JP
Japan
Prior art keywords
compression
frame
video camera
compressed
image
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
JP2005016227A
Other languages
Japanese (ja)
Other versions
JP4484719B2 (en
Inventor
Yoshitaka Anada
好孝 穴田
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.)
Sanyo Electric Co Ltd
Original Assignee
Sanyo Electric 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 Sanyo Electric Co Ltd filed Critical Sanyo Electric Co Ltd
Priority to JP2005016227A priority Critical patent/JP4484719B2/en
Publication of JP2006210970A publication Critical patent/JP2006210970A/en
Application granted granted Critical
Publication of JP4484719B2 publication Critical patent/JP4484719B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To provide a video camera in which the quality of a compressed field image can be judged easily. <P>SOLUTION: Field images outputted repeatedly from an image sensor 12 are compressed in units of 15 frames by the encoding circuit of an MPEG encoder 30. A decision is made whether compression operation of the encoding circuit satisfies error conditions or not by the controller of the MPEG encoder 30 every frame period. If the decision results are affirmative, the controller turns the encoding circuit off during the remaining period of a remarked 15 frames. A CPU 32 delivers a message for notifying turn-off of the encoding circuit toward an operator. Consequently, the quality of MPEG data can be judged easily at the time of imaging. <P>COPYRIGHT: (C)2006,JPO&NCIPI

Description

この発明は、ビデオカメラに関し、特にたとえば撮影された被写界の動画像を圧縮状態で記録媒体に記録する、ビデオカメラに関する。   The present invention relates to a video camera, and more particularly to a video camera that records a captured moving image of a scene on a recording medium in a compressed state.

従来のこの種のビデオカメラの一例が、特許文献1に開示されている。この従来技術によれば、撮影モードが選択されると、被写界がイメージセンサによって撮影され、撮影された被写界のスルー画像がモニタに表示される。この状態でシャッタボタンが操作されると、被写界像がM−JPEG方式またはMPEG方式で圧縮され、圧縮被写界像が記録媒体に記録される。
特開2004−104471号公報[H04N5/91]
An example of a conventional video camera of this type is disclosed in Patent Document 1. According to this prior art, when the shooting mode is selected, the scene is shot by the image sensor, and a through image of the shot scene is displayed on the monitor. When the shutter button is operated in this state, the object scene image is compressed by the M-JPEG method or the MPEG method, and the compressed object image is recorded on the recording medium.
JP 2004-104471 A [H04N5 / 91]

しかし、M−JPEG方式およびMPEG方式のいずれも非可逆圧縮であり、記録される被写界像の品質は、被写界像が高周波成分を多く含むほど大きく低下する。従来技術では、この品質の劣化の程度が撮影時に判別されることはなく、この結果、使い勝手に問題があった。     However, both the M-JPEG method and the MPEG method are irreversible compression, and the quality of the recorded scene image is greatly lowered as the scene image contains more high-frequency components. In the prior art, the degree of deterioration of the quality is not determined at the time of shooting, and as a result, there is a problem in usability.

それゆえに、この発明の主たる目的は、圧縮被写界像の品質を撮影時に容易に判別することができる、ビデオカメラを提供することである。     Therefore, a main object of the present invention is to provide a video camera capable of easily discriminating the quality of a compressed field image at the time of shooting.

請求項1の発明に従うビデオカメラは、被写界を繰り返し撮影する撮影手段、撮影手段から出力された被写界像をMフレーム(M:2以上の整数)を1単位として圧縮する圧縮手段、圧縮手段の圧縮動作がエラー条件に合致するか否かをNフレーム(N:M未満の整数)に相当する周期で判別する判別手段、判別手段の判別結果が肯定的であるとき注目するMフレームの残存期間に圧縮手段を不能化する不能化手段、および圧縮手段が不能化手段によって不能化されたことを通知するメッセージを操作者に向けて出力する出力手段を備える。   The video camera according to the invention of claim 1 is a photographing means for repeatedly photographing the object scene, a compression means for compressing the object scene image output from the photographing means in units of M frames (M: an integer of 2 or more), Discriminating means for discriminating whether or not the compression operation of the compressing means matches an error condition with a period corresponding to N frames (N: integer less than M), and M frame of interest when the discrimination result of the discriminating means is positive Disabling means for disabling the compression means during the remaining period of time, and output means for outputting a message notifying the operator that the compression means has been disabled by the disabling means.

撮影手段から繰り返し出力された被写界像は、Mフレーム(M:2以上の整数)を1単位として、圧縮手段によって圧縮される。圧縮手段の圧縮動作がエラー条件に合致するか否かは、Nフレーム(N:M未満の整数)に相当する周期で、判別手段によって判別される。不能化手段は、判別手段の判別結果が肯定的であるとき、注目するMフレームの残存期間に圧縮手段を不能化する。圧縮手段が不能化手段によって不能化されたことを通知するメッセージは、出力手段によって、操作者に向けて出力される。   The object scene image repeatedly output from the imaging unit is compressed by the compression unit with M frames (M: an integer of 2 or more) as one unit. Whether or not the compression operation of the compression means matches the error condition is determined by the determination means at a period corresponding to N frames (N: an integer less than M). The disabling unit disables the compression unit during the remaining period of the noticed M frame when the determination result of the determining unit is affirmative. A message notifying that the compression means has been disabled by the disabling means is output to the operator by the output means.

圧縮手段の不能化によって、圧縮被写界像に欠落が生じる。これが、品質の劣化の原因となる。請求項1の発明では、圧縮手段が不能化されたときに操作者に向けてメッセージが出力される。このため、操作者は、圧縮動画像の品質を撮影時に容易に判別することができる。   Due to the disabling of the compression means, the compressed scene image is missing. This causes quality degradation. In the invention of claim 1, a message is output to the operator when the compression means is disabled. Therefore, the operator can easily determine the quality of the compressed moving image at the time of shooting.

請求項2の発明に従うビデオカメラは、請求項1に従属し、圧縮手段によって生成された圧縮被写界像のサイズに対応するキャラクタを操作者に向けて出力する第2出力手段をさらに備える。キャラクタの出力によって、操作者は、圧縮動画像の品質が劣化する可能性を容易に予測することができる。   A video camera according to a second aspect of the invention is dependent on the first aspect, and further comprises a second output means for outputting a character corresponding to the size of the compressed scene image generated by the compression means to the operator. By the output of the character, the operator can easily predict the possibility that the quality of the compressed moving image will deteriorate.

請求項3の発明に従うビデオカメラは、請求項2に従属し、キャラクタはMフレームの圧縮被写界像の合計サイズ値を示すキャラクタである。   A video camera according to a third aspect of the invention is dependent on the second aspect, and the character is a character indicating a total size value of a compressed scene image of M frames.

請求項4の発明に従うビデオカメラは、請求項1ないし3のいずれかに従属し、圧縮手段によって生成された圧縮被写界像を一時的に格納するメモリ、およびメモリに格納された圧縮被写界像をMフレームに相当する周期で読み出す第1読み出し手段をさらに備え、エラー条件はメモリがオーバフローするという条件を含む。これによって、メモリから未だ読み出されていない圧縮被写界像が後続の圧縮被写界像によって上書きされるのを防止できる。つまり、時間軸の反転が回避される。   According to a fourth aspect of the present invention, there is provided a video camera according to any one of the first to third aspects, wherein the compressed scene image generated by the compression means is temporarily stored, and the compressed subject stored in the memory. First reading means for reading the field image at a period corresponding to M frames is further provided, and the error condition includes a condition that the memory overflows. As a result, it is possible to prevent the compressed scene image that has not yet been read from the memory from being overwritten by the subsequent compressed scene image. In other words, time axis inversion is avoided.

請求項5の発明に従うビデオカメラは、請求項4に従属し、判別手段の判別結果が肯定的であるとき注目するMフレームに続く1フレームの圧縮静止画像をメモリから繰り返し読み出す第2読み出し手段をさらに備える。圧縮手段の不能化に起因して欠落した圧縮被写界像は、注目するMフレームに続く1フレームの圧縮被写界像によって補償される。これによって、時間軸が短縮される事態を回避することができる。   According to a fifth aspect of the present invention, there is provided a video camera according to the fourth aspect, wherein the second readout means for repeatedly reading out one frame of the compressed still image following the noticed M frame from the memory when the discrimination result of the discrimination means is affirmative. Further prepare. The compressed scene image missing due to the disabling of the compression means is compensated for by one frame of the compressed scene image following the M frame of interest. As a result, a situation in which the time axis is shortened can be avoided.

請求項6の発明に従うビデオカメラは、請求項1ないし5のいずれかに従属し、圧縮率変更操作を受け付ける受付手段をさらに備え、圧縮手段は受付手段によって受け付けられた圧縮率変更操作に従う圧縮率で被写界像を圧縮する。操作者は、圧縮率変更操作によって圧縮手段の不能化を回避することができる。   A video camera according to a sixth aspect of the present invention is dependent on any one of the first to fifth aspects, further comprising accepting means for accepting a compression rate changing operation, wherein the compressing means is a compression rate according to the compressing rate changing operation accepted by the accepting means. To compress the scene image. The operator can avoid disabling the compression means by the compression rate changing operation.

請求項7の発明に従うビデオカメラは、請求項1ないし6のいずれかに従属し、圧縮手段によって生成された圧縮静止画像を記録媒体に記録する記録手段をさらに備える。   A video camera according to a seventh aspect of the invention is dependent on any one of the first to sixth aspects, and further comprises a recording means for recording the compressed still image generated by the compression means on a recording medium.

請求項8の発明に従うビデオカメラは、請求項1ないし7のいずれかに従属し、圧縮手段は、Mフレームのうち先頭フレームでイントラ符号化を行い、Mフレームのうち先頭フレーム以外のフレームでインター符号化を行う。   The video camera according to an eighth aspect of the present invention is dependent on any one of the first to seventh aspects, wherein the compression means performs intra coding on the first frame of the M frames, and performs inter coding on a frame other than the first frame of the M frames. Encoding is performed.

この発明によれば、圧縮手段が不能化されたときに操作者に向けてメッセージが出力されるため、操作者は、圧縮動画像の品質を撮影時に容易に判別することができる。   According to the present invention, since the message is output to the operator when the compression unit is disabled, the operator can easily determine the quality of the compressed moving image at the time of shooting.

この発明の上述の目的,その他の目的,特徴および利点は、図面を参照して行う以下の実施例の詳細な説明から一層明らかとなろう。   The above object, other objects, features and advantages of the present invention will become more apparent from the following detailed description of embodiments with reference to the drawings.

図1を参照して、この実施例のディジタルビデオカメラ10は、イメージセンサ12を含む。被写界の光学像は、イメージセンサ12の撮像面に照射され、光電変換を施される。これによって、被写界像を表す電荷つまり生画像信号が生成される。   Referring to FIG. 1, a digital video camera 10 of this embodiment includes an image sensor 12. The optical image of the object scene is irradiated on the imaging surface of the image sensor 12 and subjected to photoelectric conversion. As a result, a charge representing the object scene image, that is, a raw image signal is generated.

TG14は、CPU32から読み出し命令が与えられたとき、イメージセンサ12に向けてタイミング信号を発生する。撮像面で生成された生画像信号は、1/30秒に1回の割合で発生する垂直同期信号Vsyncに応答して、ラスタ走査に従う順序でイメージセンサ12から読み出される。読み出される生画像信号は、30fpsのフレームレートを有する。   The TG 14 generates a timing signal toward the image sensor 12 when a read command is given from the CPU 32. The raw image signal generated on the imaging surface is read from the image sensor 12 in an order according to raster scanning in response to a vertical synchronization signal Vsync generated at a rate of once every 1/30 seconds. The raw image signal to be read has a frame rate of 30 fps.

イメージセンサ12から出力された生画像信号は、カメラ処理回路16によってAGC,ADS,A/D変換,白バランス調整,色分離,YUV変換などの処理を施される。この一連の処理によって、被写界像を表すYUV形式の画像データが作成される。作成される画像データは、生画像信号と同様、30fpsのフレームレートを有する。   The raw image signal output from the image sensor 12 is subjected to processing such as AGC, ADS, A / D conversion, white balance adjustment, color separation, and YUV conversion by the camera processing circuit 16. By this series of processing, YUV format image data representing the object scene image is created. The created image data has a frame rate of 30 fps, like the raw image signal.

カメラ処理回路16は、こうして作成された画像データをメモリ制御回路18を通してSDRAM20に書き込む。SDRAM20は、表示画像エリア20a,圧縮画像エリア20bおよびキャラクタ画像エリア20cを有する。カメラ処理回路16からの画像データは、表示画像エリア20aに書き込まれる。   The camera processing circuit 16 writes the image data thus created in the SDRAM 20 through the memory control circuit 18. The SDRAM 20 has a display image area 20a, a compressed image area 20b, and a character image area 20c. Image data from the camera processing circuit 16 is written in the display image area 20a.

ビデオエンコーダ22は、メモリ制御回路18を通してSDRAM20にアクセスし、表示画像エリア20aに格納された画像データを1/30秒に1フレームの割合で読み出す。読み出された各フレームの画像データはNTSC方式のコンポジットビデオ信号に変換され、変換されたコンポジットビデオ信号は加算器24を介してLCDモニタ26に与えられる。この結果、被写界のリアルタイム動画像つまりスルー画像がモニタ画面に表示される。   The video encoder 22 accesses the SDRAM 20 through the memory control circuit 18 and reads out the image data stored in the display image area 20a at a rate of 1 frame per 1/30 second. The read image data of each frame is converted into an NTSC composite video signal, and the converted composite video signal is applied to the LCD monitor 26 via the adder 24. As a result, a real-time moving image of the object scene, that is, a through image is displayed on the monitor screen.

なお、キー入力装置36によって記録開始操作が行われない限り、キャラクタ合成回路28は停止状態にある。このため、加算器24は、コンポジットビデオ信号をそのままLCDモニタ26に与える。   As long as the recording start operation is not performed by the key input device 36, the character composition circuit 28 is in a stopped state. Therefore, the adder 24 gives the composite video signal to the LCD monitor 26 as it is.

記録開始操作が行われると、CPU32は、MPEGエンコーダ30およびキャラクタ合成回路28を起動する。MPEGエンコーダ30は、メモリ制御回路18を通してSDRAM20の表示画像エリア20aから画像データを読み出し、読み出された画像データをMPEG4方式で圧縮する。圧縮率は、キー入力装置36の圧縮率変更キー36aの操作に従う。イントラ符号化は15フレームに1回の割合で実行され、インター符号化は残りのフレームで実行される。この結果、1GOPは、先頭フレームに割り当てられるイントラ符号化データと残りの14フレームに割り当てられるインター符号化データとよって形成される。   When the recording start operation is performed, the CPU 32 activates the MPEG encoder 30 and the character synthesis circuit 28. The MPEG encoder 30 reads image data from the display image area 20a of the SDRAM 20 through the memory control circuit 18, and compresses the read image data by the MPEG4 method. The compression rate follows the operation of the compression rate change key 36a of the key input device 36. Intra coding is performed at a rate of once every 15 frames, and inter coding is performed on the remaining frames. As a result, 1 GOP is formed by intra-encoded data assigned to the first frame and inter-encoded data assigned to the remaining 14 frames.

こうして得られたMPEGデータは、バッファメモリ30mに一旦蓄積され、1GOPに相当する周期でバッファメモリ30mから読み出される。読み出されたMPEGデータは、メモリ制御回路18を通してSDRAM20の圧縮画像エリア20bに書き込まれる。   The MPEG data obtained in this way is temporarily stored in the buffer memory 30m, and is read from the buffer memory 30m at a period corresponding to 1 GOP. The read MPEG data is written into the compressed image area 20 b of the SDRAM 20 through the memory control circuit 18.

ただし、バッファメモリ30mの容量には限界があるため、パンニングやチルティングによる被写界の変化に起因してMPEGデータのサイズが急激に増大すると、1GOP相当のMPEGデータがバッファメモリ30mに蓄積される前にバッファメモリ30mがオーバフローを引き起こす可能性がある。   However, since the capacity of the buffer memory 30m is limited, if the size of the MPEG data suddenly increases due to a change in the scene due to panning or tilting, MPEG data equivalent to 1 GOP is accumulated in the buffer memory 30m. The buffer memory 30m may cause an overflow before

かかるオーバフローが発生したとき、圧縮動作は注目する1GOPの残存期間にわたって停止される。さらに、圧縮動作の停止に起因して欠落したMPEGデータが、次の1GOPの先頭フレームのMPEGデータ(イントラ符号化データ)によって補償される。たとえば、注目する1GOPの第11フレームをバッファメモリ30mに書き込む途中でオーバフローが発生すると、第1フレーム〜第10フレームのMPEGデータがバッファメモリ30mから読み出された後に、次の1GOPの先頭フレームのMPEGデータがバッファメモリ30mから繰り返し読み出される。つまり、MPEGデータは、図3に示す要領でMPEGエンコーダ30から出力される。   When such an overflow occurs, the compression operation is stopped for the remaining period of 1 GOP of interest. Furthermore, MPEG data that is lost due to the stop of the compression operation is compensated by MPEG data (intra-coded data) of the first frame of the next 1 GOP. For example, if an overflow occurs while the 11th frame of the 1GOP of interest is being written to the buffer memory 30m, the MPEG data of the 1st to 10th frames is read from the buffer memory 30m, and then the first frame of the next 1GOP MPEG data is repeatedly read from the buffer memory 30m. That is, MPEG data is output from the MPEG encoder 30 in the manner shown in FIG.

このように、オーバフローの発生に応答して圧縮動作を中断することで、バッファメモリ30mから未だ読み出されていないMPEGデータが後続のMPEGデータによって上書きされる事態が回避される。つまり、時間軸の反転が回避される。   Thus, by interrupting the compression operation in response to the occurrence of overflow, a situation in which MPEG data that has not yet been read from the buffer memory 30m is overwritten by subsequent MPEG data is avoided. In other words, time axis inversion is avoided.

また、圧縮処理の中断によって欠落したMPEGデータを次の1GOPの先頭フレームのMPEGデータによって補償することで、時間軸が短縮される事態が回避される。   Further, by compensating the MPEG data lost due to the interruption of the compression process with the MPEG data of the first frame of the next 1 GOP, a situation in which the time axis is shortened can be avoided.

さらに、符号化回路30bの圧縮率は、圧縮率変更キー36aの操作によって変更できるため、バッファメモリ30cがオーバフローする事態を操作者が主体的に回避することができる。   Furthermore, since the compression rate of the encoding circuit 30b can be changed by operating the compression rate change key 36a, the operator can avoid the situation where the buffer memory 30c overflows.

CPU32は、圧縮動作によって生成されるMPEGデータのサイズを1フレーム期間毎に検出し、検出されたサイズを1GOP毎に積算し、そして積算値を示すバーキャラクタデータをメモリ制御回路18を通してSDRAM20のキャラクタ画像エリア20cに書き込む。ただし、上述のオーバフローが発生すると、CPU32は、デフォルトのバーキャラクタデータをキャラクタ画像エリア20cに書き込む。   The CPU 32 detects the size of the MPEG data generated by the compression operation for each frame period, integrates the detected size for each GOP, and sends the bar character data indicating the integrated value to the character of the SDRAM 20 through the memory control circuit 18. Write to the image area 20c. However, when the above overflow occurs, the CPU 32 writes default bar character data in the character image area 20c.

キャラクタ合成回路28は、このようなキャラクタデータをキャラクタ画像エリア20cから読み出し、読み出されたキャラクタデータをアナログのキャラクタ信号に変換し、そして変換されたキャラクタ信号を加算器24に与える。キャラクタ信号は、ビデオエンコーダ22から出力されたコンポジットビデオ信号と加算され、LCDモニタ26に与えられる。モニタ画面には、被写界のスルー画像とバーキャラクタとが図6(C)に示す要領で表示される。なお、1GOPのサイズに対応するバーキャラクタBsは白色であり、デフォルトのバーキャラクタBdは赤色である。   The character synthesizing circuit 28 reads out such character data from the character image area 20c, converts the read character data into an analog character signal, and supplies the converted character signal to the adder 24. The character signal is added to the composite video signal output from the video encoder 22 and provided to the LCD monitor 26. On the monitor screen, the through image of the object scene and the bar character are displayed as shown in FIG. The bar character Bs corresponding to the size of 1 GOP is white, and the default bar character Bd is red.

CPU32は、圧縮画像エリア20bに蓄積されたデータ量が閾値に達する毎に、メモリ制御回路18を通して圧縮画像エリア20bからMPEGデータを読み出す。読み出されたMPEGデータは、I/F38を通して記録媒体40に記録される。動画記録終了操作が行われると、CPU30は、MPEGエンコーダ30およびキャラクタ合成回路28を停止し、圧縮画像エリア20bに残存するMPEGデータの記録が完了した後にSDRAM20へのアクセスを終了する。   The CPU 32 reads MPEG data from the compressed image area 20b through the memory control circuit 18 every time the amount of data accumulated in the compressed image area 20b reaches a threshold value. The read MPEG data is recorded on the recording medium 40 through the I / F 38. When the moving image recording end operation is performed, the CPU 30 stops the MPEG encoder 30 and the character synthesis circuit 28, and ends the access to the SDRAM 20 after the recording of the MPEG data remaining in the compressed image area 20b is completed.

MPEGエンコーダ30は、図2に示すように構成される。符号化回路30eは、メモリ制御回路18から与えられたYUV形式の画像データをMPEG4方式で圧縮する。圧縮率は、上述のように、圧縮率変更キー36aによって設定された圧縮率に従う。符号化回路30eによって生成されたMPEGデータは、バッファメモリ30mに格納される。また、各フレームのMPEGデータのサイズ値は、コントローラ30cによってレジスタ30rに設定される。バッファメモリ30mに格納されたMPEGデータは、1GOP期間が経過する毎に、メモリ制御回路18に向けて転送される。   The MPEG encoder 30 is configured as shown in FIG. The encoding circuit 30e compresses the YUV format image data given from the memory control circuit 18 by the MPEG4 system. As described above, the compression rate follows the compression rate set by the compression rate change key 36a. The MPEG data generated by the encoding circuit 30e is stored in the buffer memory 30m. The size value of the MPEG data of each frame is set in the register 30r by the controller 30c. The MPEG data stored in the buffer memory 30m is transferred toward the memory control circuit 18 every time one GOP period elapses.

バッファメモリ30mがオーバフローを起こすと、コントローラ30cは、注目する1GOP期間の途中で符号化回路30eをオフし、このことをCPU32に通知するべくレジスタ30rをクリアする。コントローラ30cはまた、バッファメモリ30mに正当に格納された1GOP未満のMPEGデータをメモリ制御回路18に転送した後、次の1GOPの先頭フレームで生成されたMPEGデータを繰り返しメモリ制御回路18に転送する。符号化回路30eの停止によって欠落したフレームは、繰り返し転送されるMPEGデータによって補償される。   When the buffer memory 30m overflows, the controller 30c turns off the encoding circuit 30e in the middle of the noticed 1 GOP period, and clears the register 30r to notify the CPU 32 of this. The controller 30c also transfers MPEG data less than 1 GOP that is properly stored in the buffer memory 30m to the memory control circuit 18, and then repeatedly transfers the MPEG data generated in the first frame of the next 1GOP to the memory control circuit 18. . Frames lost due to the stop of the encoding circuit 30e are compensated by MPEG data repeatedly transferred.

コントローラ30cは、詳しくは、図4〜図5に示すフロー図に従う動作を実行する。まず、起動命令がCPU32から与えられたか否かをステップS1で判別する。ここでYESであれば、ステップS3で符号化回路30eをオンし、ステップS5で変数Kを“0”に設定する。垂直同期信号Vsyncが発生すると、ステップS7からステップS9に進み、変数Kをインクリメントする。   Specifically, the controller 30c performs an operation according to the flowcharts shown in FIGS. First, in step S1, it is determined whether or not a start command is given from the CPU 32. If “YES” here, the encoding circuit 30e is turned on in a step S3, and a variable K is set to “0” in a step S5. When the vertical synchronization signal Vsync is generated, the process proceeds from step S7 to step S9, and the variable K is incremented.

符号化回路30eは、オンされた後に最初に発生する垂直同期信号Vsyncに応答して、圧縮動作を開始する。また、後述するように、変数Kは、垂直同期信号Vsyncに応答して“1”〜“15”の間で変化する。したがって、変数Kは、1GOPを形成する15フレームの各々の識別番号となる。   The encoding circuit 30e starts a compression operation in response to a vertical synchronization signal Vsync that is first generated after being turned on. Further, as will be described later, the variable K changes between “1” and “15” in response to the vertical synchronization signal Vsync. Therefore, the variable K is an identification number of each of the 15 frames forming 1 GOP.

ステップS11では、前フレームつまり第K−1フレームのMPEGデータが書き込まれた時点のバッファメモリ30mの残量を検出する。ステップS13では、現フレームつまり第KフレームのMPEGデータのサイズ値を符号化回路30eから取得する。取得されたサイズ値つまり圧縮サイズ情報は、レジスタ30rに設定される。レジスタ30rに設定された前フレームの圧縮サイズ情報は、現フレームの圧縮サイズ情報によって更新される。   In step S11, the remaining amount of the buffer memory 30m at the time when the previous frame, that is, the (K-1) th frame of MPEG data is written, is detected. In step S13, the size value of the MPEG data of the current frame, that is, the Kth frame is acquired from the encoding circuit 30e. The acquired size value, that is, the compressed size information is set in the register 30r. The compression size information of the previous frame set in the register 30r is updated with the compression size information of the current frame.

ステップS15ではバッファメモリ30mがオーバフローしたか否かを判別し、ステップS17では変数Kが“15”に達したか否かを判別する。ステップS15の判別処理は、ステップS11で検出された残量とステップS13で取得されたサイズ値とに基づいて実行される。ステップS15およびS17のいずれもNOであれば、ステップS7に戻る。ステップS17でYESであれば、バッファメモリ30mに格納された1GOP相当のMPEGデータをメモリ制御回路18に向けて転送し、その後ステップS5に戻る。   In step S15, it is determined whether or not the buffer memory 30m has overflowed. In step S17, it is determined whether or not the variable K has reached “15”. The determination process in step S15 is executed based on the remaining amount detected in step S11 and the size value acquired in step S13. If both steps S15 and S17 are NO, the process returns to step S7. If “YES” in the step S17, the MPEG data corresponding to 1 GOP stored in the buffer memory 30m is transferred to the memory control circuit 18, and then the process returns to the step S5.

ステップS15でYESと判断されると、ステップS21で符号化回路30eをオフし、ステップS23でレジスタ30rをクリアし、そしてステップS25で変数K−1を変数Ksに設定する。符号化回路30eのオフは、レジスタ30dのクリアによって明らかとなる。変数Ksは、バッファメモリ30mに正当に格納された最新フレームの識別番号を示す。ステップS27では、バッファメモリ30mに正当に格納されたMPEGデータつまり第1フレーム〜第KsフレームのMPEGデータをメモリ制御回路18に転送する。   If YES is determined in the step S15, the encoding circuit 30e is turned off in a step S21, the register 30r is cleared in a step S23, and the variable K-1 is set to the variable Ks in a step S25. The off of the encoding circuit 30e becomes clear by clearing the register 30d. The variable Ks indicates the identification number of the latest frame legitimately stored in the buffer memory 30m. In step S27, MPEG data legitimately stored in the buffer memory 30m, that is, MPEG data of the first frame to the Ks frame is transferred to the memory control circuit 18.

ステップS29では変数Kが“15”に達したか否かを判別し、ステップS31では垂直同期信号Vsyncが発生したか否かを判別する。ステップS27でNOである限り、垂直同期信号Vsyncが発生する毎にステップS33に進み、変数Kをインクリメントする。インクリメントされた変数Kの値は、ステップS29で再度判別される。   In step S29, it is determined whether or not the variable K has reached “15”. In step S31, it is determined whether or not the vertical synchronization signal Vsync has been generated. As long as NO in step S27, the process proceeds to step S33 each time the vertical synchronization signal Vsync is generated, and the variable K is incremented. The incremented value of the variable K is determined again in step S29.

変数Kが“15”に達すると、ステップS27からステップS35に進み、符号化回路30eをオンする。垂直同期信号Vsyncが発生するとステップS37でYESと判断し、ステップS38で変数Kを“1”に設定する。ステップS39では、バッファメモリ30mに格納された第1フレームのMPEGデータをメモリ制御回路18に繰り返し転送する。繰り返し回数は、15−Ks回である。ステップS39の処理が完了すると、ステップS7に戻る。   When the variable K reaches “15”, the process proceeds from step S27 to step S35, and the encoding circuit 30e is turned on. When the vertical synchronization signal Vsync is generated, YES is determined in a step S37, and the variable K is set to “1” in a step S38. In step S39, the MPEG data of the first frame stored in the buffer memory 30m is repeatedly transferred to the memory control circuit 18. The number of repetitions is 15-Ks. When the process of step S39 is completed, the process returns to step S7.

CPU32は、記録開始操作が行われたとき、キャラクタ表示に関連して図7〜図8に示すフロー図に従う処理を実行する。なお、このフロー図に対応する制御プログラムは、フラッシュメモリ34に記憶される。   When the recording start operation is performed, the CPU 32 executes processing according to the flowcharts shown in FIGS. 7 to 8 in association with the character display. The control program corresponding to this flowchart is stored in the flash memory 34.

図7を参照して、ステップS41ではMPEGエンコーダ30およびキャラクタ合成回路28に起動命令を発行し、ステップS43ではSDRAM20のキャラクタ画像エリア20cに設定される読み出しアドレスWpおよび書き込みアドレスRpを初期化する。読み出しアドレスWpはキャラクタ読み出しエリアCRの基準アドレスであり、書き込みアドレスRpはキャラクタ書き込みエリアCWの基準アドレスである。   Referring to FIG. 7, in step S41, an activation command is issued to MPEG encoder 30 and character synthesis circuit 28. In step S43, read address Wp and write address Rp set in character image area 20c of SDRAM 20 are initialized. The read address Wp is a reference address for the character read area CR, and the write address Rp is a reference address for the character write area CW.

図6(A)を参照して、初期化された読み出しアドレスWpは、キャラクタ画像エリア20cの左端に位置する。また、初期化された書き込みアドレスRpは、キャラクタ画像エリア20cの左端からキャラクタ読み出しエリアCRの横幅に相当する距離を隔てて、キャラクタ画像エリア20cのほぼ中央に位置する。   Referring to FIG. 6A, the initialized read address Wp is located at the left end of the character image area 20c. The initialized write address Rp is located approximately at the center of the character image area 20c at a distance corresponding to the horizontal width of the character read area CR from the left end of the character image area 20c.

ステップS45では変数Iszを“0”に設定し、ステップS47では変数Nを“0”に設定する。変数Iszは、注目する1GOPを形成するMPEGデータのサイズの積算値である。また、変数Nは、注目する1GOPを形成する各フレームの識別番号であり、変数Kと同じ値を示す。   In step S45, the variable Isz is set to “0”, and in step S47, the variable N is set to “0”. The variable Isz is an integrated value of the size of MPEG data forming one GOP of interest. A variable N is an identification number of each frame forming the 1GOP of interest, and shows the same value as the variable K.

垂直同期信号Vsyncが発生するとステップS49でYESと判断し、ステップS51で変数Nをインクリメントする。ステップS53では、第NフレームのMPEGデータが生成されるまで待機し、ステップS55では図2に示すレジスタ30rから圧縮サイズ情報を取得する。   When the vertical synchronization signal Vsync is generated, YES is determined in a step S49, and the variable N is incremented in a step S51. In step S53, the process waits until MPEG data of the Nth frame is generated. In step S55, compressed size information is acquired from the register 30r shown in FIG.

ステップS57では、取得された圧縮サイズ情報が示すサイズ値が“0”であるか否かを判別する。ここでNOであれば、取得された圧縮サイズ情報は第NフレームのMPEGデータのサイズを示しているとみなし、ステップS59に進む。一方、YESであれば、バッファメモリ30mのオーバフローによって圧縮動作が中断されたとみなし、ステップS67に進む。   In step S57, it is determined whether or not the size value indicated by the acquired compressed size information is “0”. If “NO” here, the acquired compressed size information is regarded as indicating the size of the MPEG data of the Nth frame, and the process proceeds to step S59. On the other hand, if YES, it is considered that the compression operation has been interrupted due to the overflow of the buffer memory 30m, and the process proceeds to step S67.

ステップS59では第NフレームのMPEGデータのサイズ値を変数Iszに積算し、ステップS61では変数Nが“15”に達したか否かを判別する。ここでNOであれば、そのままステップS45に戻る。YESであればステップS63に進み、変数Iszに対応するバーキャラクタデータをキャラクタ書き込みエリアCWに書き込む。続くステップS65では、読み出しアドレスRpおよび書き込みアドレスWpの各々の値をキャラクタ書き込みエリアCWの横幅に相当する数値だけ増大させる。ステップS65の処理が完了すると、ステップS45に戻る。   In step S59, the size value of the MPEG data of the Nth frame is added to the variable Isz. In step S61, it is determined whether or not the variable N has reached “15”. If “NO” here, the process returns to the step S45 as it is. If YES, the process proceeds to step S63, and the bar character data corresponding to the variable Isz is written in the character writing area CW. In the subsequent step S65, the values of the read address Rp and the write address Wp are increased by a numerical value corresponding to the horizontal width of the character write area CW. When the process of step S65 is completed, the process returns to step S45.

ステップS67では、デフォルトのバーキャラクタデータをキャラクタ書き込みエリアCWに書き込む。垂直同期信号Vsyncが発生するとステップS69でYESと判断し、ステップS71で変数Nをインクリメントする。ステップS73では変数Nが“15”に達したか否かを判別し、NOであればステップS69に戻る一方、YESであればステップS45に戻る。   In step S67, default bar character data is written in the character writing area CW. When the vertical synchronization signal Vsync is generated, YES is determined in a step S69, and the variable N is incremented in a step S71. In step S73, it is determined whether or not the variable N has reached “15”. If NO, the process returns to step S69, whereas if YES, the process returns to step S45.

このような処理が繰り返されることによって、キャラクタ読み出しエリアCRおよびキャラクタ書き込みエリアCWは、図6(B)に示すように右側に移動する。キャラクタ読み出しエリアCRに属するバーキャラクタは、キャラクタ合成回路28によって読み出され、図6(C)に示す要領でスルー画像に多重される。   By repeating such processing, the character reading area CR and the character writing area CW move to the right as shown in FIG. The bar characters belonging to the character read area CR are read by the character synthesis circuit 28 and multiplexed on the through image in the manner shown in FIG.

以上の説明から分かるように、イメージセンサ12から繰り返し出力された被写界像は、15フレームを1単位として、符号化回路30eによって圧縮される。符号化回路30eの圧縮動作がエラー条件(バッファメモリ30mのオーバフロー)に合致するか否かは、コントローラ30cによって1フレーム期間毎に判別される(S15)。コントローラ30cは、この判別結果が肯定的であるとき、注目する15フレームの残存期間に符号化回路30eを不能化する(S21)。CPU32は、符号化回路30eが不能化されたことを通知するメッセージ(デフォルトのバーキャラクタBd)を操作者に向けて出力する(S67)。   As can be understood from the above description, the object scene image repeatedly output from the image sensor 12 is compressed by the encoding circuit 30e with 15 frames as one unit. Whether or not the compression operation of the encoding circuit 30e matches the error condition (the overflow of the buffer memory 30m) is determined by the controller 30c every frame period (S15). When this determination result is affirmative, the controller 30c disables the encoding circuit 30e during the remaining period of 15 frames of interest (S21). The CPU 32 outputs a message (default bar character Bd) notifying that the encoding circuit 30e has been disabled to the operator (S67).

符号化回路30eの不能化によって、MPEGデータに欠落が生じる。これが、品質の劣化の原因となる。この実施例では、符号化回路30eが不能化されたときに操作者に向けてメッセージが出力される。このため、操作者は、MPEGデータの品質を撮影時に容易に判別することができる。   Due to the disabling of the encoding circuit 30e, the MPEG data is lost. This causes quality degradation. In this embodiment, a message is output to the operator when the encoding circuit 30e is disabled. Therefore, the operator can easily determine the quality of the MPEG data at the time of shooting.

また、符号化回路30eの圧縮動作がエラー条件に合致しないときは、1GOP相当のMPEGデータのサイズを表すバーキャラクタBsが操作者に向けて出力される(S63)。かかるキャラクタの出力によって、操作者は、MPEGデータの品質が劣化する可能性を容易に予測することができる。   When the compression operation of the encoding circuit 30e does not match the error condition, a bar character Bs representing the size of MPEG data equivalent to 1 GOP is output to the operator (S63). By outputting such characters, the operator can easily predict the possibility that the quality of the MPEG data will deteriorate.

なお、この実施例では、1GOP相当のMPEGデータのサイズをバーキャラクタBsおよびBdによって表現するようにしているが、これに代えて、サイズに応じて“晴れ”,“曇り”および“雨”の間で変化するお天気マークを表示するようにしてもよい。さらに。この実施例では、1GOP毎にバーキャラクタを作成するようにしているが、バーキャラクタの作成周期はこれに限られない。   In this embodiment, the size of MPEG data equivalent to 1 GOP is expressed by the bar characters Bs and Bd, but instead of “clear”, “cloudy” and “rainy” depending on the size. You may make it display the weather mark which changes between. further. In this embodiment, a bar character is created for each GOP, but the bar character creation cycle is not limited to this.

この発明の一実施例の構成を示すブロック図である。It is a block diagram which shows the structure of one Example of this invention. 図1実施例に適用されるMPEGエンコーダの構成の一例を示すブロック図である。It is a block diagram which shows an example of a structure of the MPEG encoder applied to the FIG. 1 Example. 図1に示すMPEGエンコーダから出力されるMPEGデータの構造の一例を示す図解図である。It is an illustration figure which shows an example of the structure of the MPEG data output from the MPEG encoder shown in FIG. 図3実施例に適用されるコントローラの動作の一部を示すフロー図である。FIG. 4 is a flowchart showing a part of the operation of the controller applied to the embodiment in FIG. 3; 図3実施例に適用されるコントローラの動作の他の一部を示すフロー図である。It is a flowchart which shows a part of other operation | movement of the controller applied to the FIG. 3 Example. (A)はSDRAMに形成されたキャラクタ画像エリアのアクセス動作の一例を示す図解図であり、(B)はキャラクタ画像エリアから読み出されたキャラクタ画像データの一例を示す図解図であり、(C)は表示画像の一例を示す図解図である。(A) is an illustrative view showing an example of an access operation of a character image area formed in the SDRAM, (B) is an illustrative view showing an example of character image data read from the character image area, (C ) Is an illustrative view showing one example of a display image. 図1実施例に適用されるCPUの動作の一部を示すフロー図である。It is a flowchart which shows a part of operation | movement of CPU applied to the FIG. 1 Example. 図1実施例に適用されるCPUの動作の他の一部を示すフロー図である。It is a flowchart which shows a part of other operation | movement of CPU applied to the FIG. 1 Example.

符号の説明Explanation of symbols

10 …ディジタルビデオカメラ
12 …イメージセンサ
16 …カメラ処理回路
20 …SDRAM
22 …ビデオエンコーダ
26 …LCDモニタ
28 …キャラクタ合成回路
30 …MPEGエンコーダ
32 …CPU
DESCRIPTION OF SYMBOLS 10 ... Digital video camera 12 ... Image sensor 16 ... Camera processing circuit 20 ... SDRAM
22 ... Video encoder 26 ... LCD monitor 28 ... Character synthesis circuit 30 ... MPEG encoder 32 ... CPU

Claims (8)

被写界を繰り返し撮影する撮影手段、
前記撮影手段から出力された被写界像をMフレーム(M:2以上の整数)を1単位として圧縮する圧縮手段、
前記圧縮手段の圧縮動作がエラー条件に合致するか否かをNフレーム(N:M未満の整数)に相当する周期で判別する判別手段、
前記判別手段の判別結果が肯定的であるとき注目するMフレームの残存期間に前記圧縮手段を不能化する不能化手段、および
前記圧縮手段が前記不能化手段によって不能化されたことを通知するメッセージを操作者に向けて出力する出力手段を備える、ビデオカメラ。
Photography means to repeatedly shoot the scene,
Compression means for compressing the object scene image output from the photographing means with M frames (M: integer of 2 or more) as one unit;
A discriminating means for discriminating whether or not the compressing operation of the compressing means meets an error condition in a cycle corresponding to N frames (N: an integer less than M);
A disabling unit that disables the compression unit during the remaining period of the M frame of interest when the determination result of the determination unit is affirmative; and a message notifying that the compression unit has been disabled by the disabling unit A video camera comprising output means for outputting the image to the operator.
前記圧縮手段によって生成された圧縮被写界像のサイズに対応するキャラクタを前記操作者に向けて出力する第2出力手段をさらに備える、請求項1記載のビデオカメラ。   The video camera according to claim 1, further comprising second output means for outputting a character corresponding to a size of the compressed scene image generated by the compression means to the operator. 前記キャラクタは前記Mフレームの圧縮被写界像の合計サイズ値を示すキャラクタである、請求項2記載のビデオカメラ。   The video camera according to claim 2, wherein the character is a character indicating a total size value of the compressed scene image of the M frame. 前記圧縮手段によって生成された圧縮被写界像を一時的に格納するメモリ、および
前記メモリに格納された圧縮被写界像を前記Mフレームに相当する周期で読み出す第1読み出し手段をさらに備え、
前記エラー条件は前記メモリがオーバフローするという条件を含む、請求項1ないし3のいずれかに記載のビデオカメラ。
A memory for temporarily storing the compressed object scene image generated by the compression means; and a first reading means for reading out the compressed object image stored in the memory at a period corresponding to the M frame,
4. The video camera according to claim 1, wherein the error condition includes a condition that the memory overflows.
前記判別手段の判別結果が肯定的であるとき前記注目するMフレームに続く1フレームの圧縮静止画像を前記メモリから繰り返し読み出す第2読み出し手段をさらに備える、請求項4記載のビデオカメラ。   5. The video camera according to claim 4, further comprising: a second reading unit that repeatedly reads from the memory one frame of a compressed still image following the target M frame when the determination result of the determination unit is positive. 圧縮率変更操作を受け付ける受付手段をさらに備え、
前記圧縮手段は前記受付手段によって受け付けられた圧縮率変更操作に従う圧縮率で前記被写界像を圧縮する、請求項1ないし5のいずれかに記載のビデオカメラ。
A receiving means for receiving a compression rate change operation;
The video camera according to claim 1, wherein the compression unit compresses the object scene image at a compression rate according to a compression rate changing operation received by the reception unit.
前記圧縮手段によって生成された圧縮静止画像を記録媒体に記録する記録手段をさらに備える、請求項1ないし6のいずれかに記載のビデオカメラ。   7. The video camera according to claim 1, further comprising recording means for recording the compressed still image generated by the compression means on a recording medium. 前記圧縮手段は、前記Mフレームのうち先頭フレームでイントラ符号化を行い、前記Mフレームのうち先頭フレーム以外のフレームでインター符号化を行う、請求項1ないし7のいずれかに記載のビデオカメラ。   The video camera according to any one of claims 1 to 7, wherein the compression unit performs intra coding on a top frame of the M frames and performs inter coding on a frame other than the top frame of the M frames.
JP2005016227A 2005-01-25 2005-01-25 Video camera Expired - Fee Related JP4484719B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2005016227A JP4484719B2 (en) 2005-01-25 2005-01-25 Video camera

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2005016227A JP4484719B2 (en) 2005-01-25 2005-01-25 Video camera

Publications (2)

Publication Number Publication Date
JP2006210970A true JP2006210970A (en) 2006-08-10
JP4484719B2 JP4484719B2 (en) 2010-06-16

Family

ID=36967372

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2005016227A Expired - Fee Related JP4484719B2 (en) 2005-01-25 2005-01-25 Video camera

Country Status (1)

Country Link
JP (1) JP4484719B2 (en)

Also Published As

Publication number Publication date
JP4484719B2 (en) 2010-06-16

Similar Documents

Publication Publication Date Title
KR101905648B1 (en) Apparatus and method for shooting a moving picture of camera device
US8237815B2 (en) Image processing apparatus, control method therefor, for suppressing deterioration of image quality caused by a foreign substance
US8743227B2 (en) Imaging apparatus and control method for reducing a load of writing image data on a recording medium
JP4687807B2 (en) Movie recording apparatus, moving image tilt correction method, and program
US8035699B2 (en) Image capturing apparatus, control method therefor, and program
US8559510B2 (en) Image decoding apparatus
US10674110B2 (en) Image encoding apparatus, and control method thereof
US8503855B2 (en) Image processing apparatus, control method therefor, and program
US8964109B2 (en) Image processing device and method
JP2002247517A (en) Digital camera
JP5583439B2 (en) Image encoding apparatus and camera system
US8405745B2 (en) Image processing apparatus, image processing method, and program
JP2007049320A (en) Electronic camera
JP2010021710A (en) Imaging device, image processor, and program
JP4484719B2 (en) Video camera
KR100675387B1 (en) Image processing apparatus
JP3984665B2 (en) Image signal coding and compression apparatus and method
JP5211947B2 (en) Imaging apparatus and program
JP2008300953A (en) Image processor and imaging device mounted with the same
JP2009141882A (en) Imaging apparatus and its image automatic selection method
JP4936799B2 (en) Electronic camera
JP2005217493A (en) Imaging apparatus
JP4610488B2 (en) Electronic camera
JP2006148456A (en) Electronic camera
JP4726660B2 (en) Electronic camera

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20080115

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20091119

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20091208

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20100121

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

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

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

Free format text: PAYMENT UNTIL: 20130402

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20140402

Year of fee payment: 4

S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313113

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

Free format text: PAYMENT UNTIL: 20140402

Year of fee payment: 4

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

LAPS Cancellation because of no payment of annual fees