JP2009165158A - Moving image recording device, electronic camera device, moving image recording method, and program - Google Patents

Moving image recording device, electronic camera device, moving image recording method, and program Download PDF

Info

Publication number
JP2009165158A
JP2009165158A JP2009055338A JP2009055338A JP2009165158A JP 2009165158 A JP2009165158 A JP 2009165158A JP 2009055338 A JP2009055338 A JP 2009055338A JP 2009055338 A JP2009055338 A JP 2009055338A JP 2009165158 A JP2009165158 A JP 2009165158A
Authority
JP
Japan
Prior art keywords
recording
moving image
image
recorded
recording medium
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
JP2009055338A
Other languages
Japanese (ja)
Other versions
JP4687801B2 (en
Inventor
Kazuya Nara
和也 奈良
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Casio Computer Co Ltd
Original Assignee
Casio Computer Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Casio Computer Co Ltd filed Critical Casio Computer Co Ltd
Priority to JP2009055338A priority Critical patent/JP4687801B2/en
Publication of JP2009165158A publication Critical patent/JP2009165158A/en
Application granted granted Critical
Publication of JP4687801B2 publication Critical patent/JP4687801B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To provide a moving image recording device and electronic camera device capable of recording moving images with uniform image quality until the termination of moving image photographing, and a moving image recording method. <P>SOLUTION: During a moving image recording operation, a frame rate and a bit rate are stored when a time period used for write-processing of image data for each frame on a recording medium is beyond the limit, exceeding the time period permitted at that time. When the processing time period is beyond the limit, the frame rate and bit rate are reduced in the next moving image recording by a predetermined ratio. For example, when the processing time period is beyond the limit, the frame rate and bit rate are reduced according to the excess ratio of the processing time period beyond the limit with respect to the permitted time period. This enables continuous recording of moving images without deteriorating the image quality during recording thereof. <P>COPYRIGHT: (C)2009,JPO&INPIT

Description

本発明は、動画をストリーム記録する機能を備えた動画像記録装置及び電子カメラ装置と、動画像記録方法、プログラムに関する。   The present invention relates to a moving image recording device and an electronic camera device having a function of recording moving images in a stream, a moving image recording method, and a program.

従来、動画撮影機能を備えたデジタルカメラ、携帯電話などにおいて動画像を記録するときのデータ形式は、Motion JPEG(Joint Photographic coding Experts Group)やMPEG(Moving Picture coding Experts Group)などが多く用いられている。これらは、一定時間間隔毎に圧縮符号化された画像データを記録する形式である。動画像を記録する媒体としては、SDメモリカード(Serure Digital memory card)などが多く用いられている。   Conventionally, Motion JPEG (Joint Photographic coding Experts Group), MPEG (Moving Picture coding Experts Group), etc. have been used as the data format for recording moving images in digital cameras and mobile phones equipped with video shooting functions. Yes. These are formats for recording image data that is compression-coded at regular time intervals. As a medium for recording a moving image, an SD memory card (Serure Digital memory card) or the like is often used.

動画像を記録する場合、規定時間内での動画撮影については、一定時間間隔毎に圧縮符号化された画像データを内部メモリに一時蓄積して、撮影後に動画データを記録媒体に書き込むため、データ書き込み処理には時間的な制約がない。一方、記録媒体の容量一杯までの撮影が可能な動画撮影(以下、ストリーム録画という)については、撮影し圧縮符号化した動画データを逐次記録媒体に書き込まなければならないため、データ書き込み処理に時間的な制約がある。   When recording a moving image, for moving image shooting within a specified time, image data that has been compression-coded at regular time intervals is temporarily stored in the internal memory, and the moving image data is written to the recording medium after shooting. There is no time restriction in the writing process. On the other hand, for moving image shooting (hereinafter referred to as stream recording) capable of shooting up to the full capacity of the recording medium, moving image data that has been shot and compression-encoded must be sequentially written to the recording medium. There are some restrictions.

一方、メモリカードにおけるデータの書き込み性能は、メモリカードそれぞれにより異なり、書き込みが速いカード、遅いカードが存在する。そのため、書き込みが遅いカードを使用すると、書き込み時間がかかり過ぎることにより、一枚の画像を処理するために許された一定時間内に一連の処理が終了しないという状況が発生することがある。その場合には、撮影を中止するか、フレームレートを落とす(録画する画像の間隔を長くする)、またはビットレートを落とす(録画する画像の圧縮率を上げる)など、画質を低下させることにより、メモリカードに対するデータの書き込み量を減らすことにより撮影を継続させるなどの対応が一般に行われている。   On the other hand, the data writing performance of the memory card differs depending on the memory card, and there are a card with a fast writing and a card with a slow writing. For this reason, when a card with slow writing is used, it may take a long time to write, and a situation may occur in which a series of processing does not end within a fixed time allowed for processing one image. In that case, by reducing the image quality, such as stopping shooting, reducing the frame rate (increasing the interval between recorded images), or decreasing the bit rate (increasing the compression rate of the recorded images) In general, countermeasures such as continuing shooting by reducing the amount of data written to the memory card are performed.

また、例えば下記の特許文献1には、デジタルカメラにおいて、予め内部メモリに複数フレーム分のバッファ領域を確保しておき、動画像をストリーム録画する際には、撮影し圧縮符号化した動画データの内部メモリへの書込み動作と並行して、先に記憶された画像データを読み出してメモリカード等に随時記録し、かつ記録が終了した動画データを内部メモリから消去する、つまり内部メモリをリングバッファとして使用し、このリングバッファが撮影時間の経過に伴いメモリカードに記録されていない動画データで一杯になった時点で動画撮影を中止する動画記録方法が記載されている。   Also, for example, in Patent Document 1 below, in a digital camera, a buffer area for a plurality of frames is secured in the internal memory in advance, and when moving images are stream-recorded, moving image data that has been shot and compressed and encoded is recorded. In parallel with the write operation to the internal memory, the previously stored image data is read and recorded on a memory card, etc., and the recorded video data is erased from the internal memory. In other words, the internal memory is used as a ring buffer. A moving image recording method is described in which the moving image recording is stopped when the ring buffer becomes full of moving image data not recorded on the memory card as the shooting time elapses.

特開2000−232619号公報JP 2000-232619 A

しかしながら、上記従来の方法の場合、書き込み速度が遅いメモリカードあるいは書き込み速度が遅くなってしまったメモリカードを使用して何回も動画撮影を行うと、動画撮影を行う毎に撮影途中で撮影が強制的に中止されてしまうか、撮影途中で画質が変化してしまい、動画の撮影開始から撮影終了するまで均一な画質の動画像を得ることができなくなってしまうといった問題が発生する。   However, in the case of the conventional method described above, if a video card is shot many times using a memory card with a slow writing speed or a memory card with a slow writing speed, the shot is taken during the shooting each time a video is shot. There is a problem that the image is forcibly canceled or the image quality changes during shooting, and a moving image with uniform image quality cannot be obtained from the start of shooting a movie to the end of shooting.

本発明は、かかる従来の課題に鑑みてなされたものであり、動画の撮影が終了するまで均一な画質で動画像を記録することが可能となる動画記録装置及び電子カメラ装置、動画像記録方法と、それらの実現に使用されるプログラムを提供することを目的とする。   The present invention has been made in view of such a conventional problem, and a moving image recording apparatus, an electronic camera device, and a moving image recording method capable of recording a moving image with uniform image quality until shooting of the moving image is completed. And it aims at providing the program used for those realization.

前記課題を解決するため請求項1の発明にあっては、動画像を構成する画像データを所定のフレーム周期で画像処理しながら記録媒体に順次記録する動画像記録手段と、この動画像記録手段による前記記録媒体への画像処理後の画像データの書込み処理に、動画像の正常な記録を阻害する遅れが生じたか否かを判断する判断手段と、この判断手段により前記遅れが生じたと判断された場合に、その旨を示す情報を記憶する情報記憶手段と、この情報記憶手段に記憶されている前記情報に基づいて、前記動画像記録手段による次回の記録動作で記録される動画像の画質を設定する画質設定手段とを備えた動画像記録装置とした。   In order to solve the above-mentioned problem, in the invention of claim 1, moving image recording means for sequentially recording image data constituting a moving image on a recording medium while performing image processing at a predetermined frame period, and the moving image recording means Determining means for determining whether or not there has been a delay that hinders normal recording of moving images in the writing process of the image data after the image processing to the recording medium, and the determination means determines that the delay has occurred. Information storage means for storing information indicating that, and the image quality of the moving image recorded in the next recording operation by the moving image recording means based on the information stored in the information storage means A moving image recording apparatus provided with image quality setting means for setting

かかる構成においては、動画像の記録中に、記録媒体への画像処理後の画像データの書込み処理に動画像の正常な記録を阻害する遅れが生じた場合には、その旨を示す情報が記憶され、その情報に基づいて、次回の記録動作で記録する動画像の画質が自動的に設定される。したがって、動画像の記録中に、記録媒体への画像処理後の画像データの書込み処理に動画像の正常な記録を阻害する遅れが生じた場合には、次回以降の記録動作で記録する動画像の画質を、遅れが生じたときの画質よりも低い画質とすることが可能となる。   In such a configuration, when there is a delay that hinders normal recording of moving images in the writing processing of image data after image processing to the recording medium during recording of moving images, information indicating that is stored. Based on the information, the image quality of the moving image to be recorded in the next recording operation is automatically set. Accordingly, during the recording of a moving image, if there is a delay that hinders normal recording of the moving image in the writing process of the image data after the image processing to the recording medium, the moving image to be recorded in the subsequent recording operation It is possible to make the image quality lower than the image quality when the delay occurs.

また、請求項2の発明にあっては、前記情報記憶手段は、前記判断手段により遅れが生じたと判断されたときに前記動画像記録手段により記録媒体に順次記録されている動画像の画質を示す画質情報を記憶し、前記画質設定手段は、前記動画像記録手段による次回の記録動作で記録される動画像の画質を、前記情報記憶手段に記憶されている画質情報により示される画質よりも所定の割合だけ低い画質に設定するものとした。   According to a second aspect of the present invention, the information storage means determines the image quality of the moving images sequentially recorded on the recording medium by the moving image recording means when the determining means determines that a delay has occurred. The image quality setting means stores the image quality of the moving image recorded in the next recording operation by the moving image recording means more than the image quality indicated by the image quality information stored in the information storage means. The image quality is set to be lower by a predetermined ratio.

かかる構成においては、動画像の記録中に、記録媒体への画像処理後の画像データの書込み処理に動画像の正常な記録を阻害する遅れが生じた場合には、次回以降の記録動作で記録する動画像の画質を、遅れが生じたときの画質よりも所定の割合だけ低い画質とすることが可能となる。   In such a configuration, during the recording of a moving image, if there is a delay that hinders normal recording of the moving image in the writing process of the image data after the image processing to the recording medium, the recording operation is performed in the subsequent recording operation. It is possible to set the image quality of the moving image to be lower by a predetermined ratio than the image quality when the delay occurs.

また、請求項3の発明にあっては、前記情報記憶手段は、前記判断手段により遅れが生じたと判断された場合に、前記動画像記録手段による次回の記録動作で記録される動画像の画質を示す画質情報を記憶し、前記画質設定手段は、前記動画像記録手段による次回の記録動作で記録される動画像の画質を、前記情報記憶手段に記憶されている画質情報により示される画質に設定するものとした。   According to a third aspect of the present invention, when the information storage means determines that a delay has occurred by the determination means, the image quality of the moving image recorded in the next recording operation by the moving image recording means The image quality setting means sets the image quality of the moving image recorded in the next recording operation by the moving image recording means to the image quality indicated by the image quality information stored in the information storage means. It was supposed to be set.

かかる構成においては、動画像の記録中に、記録媒体への画像処理後の画像データの書込み処理に動画像の正常な記録を阻害する遅れが生じた場合には、次回以降の記録動作で記録する動画像の画質を、遅れが生じたとき記憶されていた画質情報により示される、遅れが生じたときの画質よりも低い画質とすることが可能となる。   In such a configuration, during the recording of a moving image, if there is a delay that hinders normal recording of the moving image in the writing process of the image data after the image processing to the recording medium, the recording operation is performed in the subsequent recording operation. It is possible to set the image quality of the moving image to be lower than the image quality when the delay occurs, which is indicated by the image quality information stored when the delay occurs.

また、請求項4の発明にあっては、前記動画像記録手段により画像処理後の画像データが前記記録媒体へ記録されるときの所要時間を計測する計測手段を備え、前記画質設定手段は、前記動画像記録手段による次回の記録動作で記録される動画像の画質を、前記判断手段により前記遅れが生じたと判断されたときの動画像の記録途中において前記計測手段により計測された所要時間における、前記画像処理後の画像データの記録に許容されていた時間に対する超過割合に応じた割合だけ低下した画質に設定するものとした。   According to a fourth aspect of the present invention, the image processing apparatus includes a measuring unit that measures a time required when the image data after image processing is recorded on the recording medium by the moving image recording unit, and the image quality setting unit includes: The image quality of the moving image recorded in the next recording operation by the moving image recording unit is determined according to the time required by the measuring unit during the recording of the moving image when the determination unit determines that the delay has occurred. The image quality is set to be lowered by a rate corresponding to the excess rate with respect to the time allowed for the recording of the image data after the image processing.

かかる構成においては、動画像の記録中に、記録媒体への画像処理後の画像データの書込み処理に動画像の正常な記録を阻害する遅れが生じた後の記録動作で記録する動画像の画質の下げ幅を必要最小限に止めることができる。   In such a configuration, during the recording of the moving image, the image quality of the moving image recorded in the recording operation after a delay that hinders normal recording of the moving image occurs in the writing process of the image data after the image processing to the recording medium. The amount of lowering can be minimized.

また、請求項5の発明にあっては、前記記録媒体に記録する複数フレーム分の画像処理後の画像データを一時記憶するバッファメモリを備え、前記判断手段は、前記バッファメモリにおける画像データの書き込み位置と読み出し位置とが所定の関係となったとき前記遅れが生じたと判断し、前記画質設定手段は、前記動画像記録手段による次回の記録動作で記録される動画像の画質を、前記判断手段により前記遅れが生じたと判断された時点で前記バッファメモリに記録されている前記記録媒体に未記録の画像データの合計サイズと、前記記録媒体に記録済みの画像データの合計サイズとの比率に応じた割合だけ低下した画質に設定するものとした。   The invention according to claim 5 further includes a buffer memory for temporarily storing image data after image processing for a plurality of frames to be recorded on the recording medium, wherein the determination means writes image data in the buffer memory. It is determined that the delay has occurred when the position and the read position are in a predetermined relationship, and the image quality setting means determines the image quality of the moving image recorded in the next recording operation by the moving image recording means. According to the ratio between the total size of image data not recorded on the recording medium recorded in the buffer memory and the total size of image data recorded on the recording medium when it is determined that the delay has occurred. The image quality was set to be reduced by a certain percentage.

かかる構成においても、動画像の記録中に、記録媒体への画像処理後の画像データの書込み処理に動画像の正常な記録を阻害する遅れが生じた後の記録動作で記録する動画像の画質の下げ幅を必要最小限に止めることができる。   Even in such a configuration, during the recording of the moving image, the image quality of the moving image recorded in the recording operation after a delay that hinders the normal recording of the moving image occurs in the writing process of the image data after the image processing to the recording medium. The amount of lowering can be minimized.

また、請求項6の発明にあっては、前記動画像記録手段により画像処理後の画像データが前記記録媒体へ記録されるときの所要時間を計測する計測手段と、前記動画像記録手段による動画像の記録途中に前記計測手段により計測された所要時間の合計、及び前記記録媒体に記録された全画像データの合計サイズから、前記記録媒体へのデータの平均書込み速度を算出する速度算出手段と、前記動画像記録手段により新たな動画像が前記記録媒体へ記録される毎に前記算出手段により算出された平均書込み速度を履歴情報として記憶する速度履歴記憶手段と、この速度履歴記憶手段に記憶されている履歴情報に基づき、所定期間における前記平均書込み速度の劣化度合を取得する取得手段と、この取得手段により取得された劣化度合が決められた劣化度合を超えた旨を報知する報知手段とを備えたものとした。   According to a sixth aspect of the present invention, there is provided a measuring means for measuring a time required for recording image data after image processing by the moving image recording means to the recording medium, and a moving image by the moving image recording means. Speed calculating means for calculating the average writing speed of data to the recording medium from the total required time measured by the measuring means during image recording and the total size of all image data recorded on the recording medium; Each time a new moving image is recorded on the recording medium by the moving image recording unit, a speed history storage unit that stores the average writing speed calculated by the calculation unit as history information, and the speed history storage unit stores the average writing speed. Acquisition means for acquiring the degree of deterioration of the average writing speed in a predetermined period, and the degree of deterioration acquired by the acquisition means are determined based on the history information that is obtained. It was that a notification means for notifying that exceeds the degree of deterioration.

かかる構成においては、使用期間の経過に伴い記録する画像データの断片化によって記録媒体におけるデータの書き込み性能が一定以上劣化した場合には、それをユーザーに認識させることができる。   In such a configuration, when the writing performance of data on the recording medium deteriorates by a certain level due to fragmentation of image data to be recorded as the usage period elapses, it can be recognized by the user.

また、請求項7の発明にあっては、動画像を構成する画像データを所定のフレーム周期で画像処理しながら記録媒体に順次記録する動画像記録方法において、前記記録媒体への画像処理後の画像データの書込み処理に、動画像の正常な記録を阻害する遅れが生じたか否かを判断する工程と、前記遅れが生じたと判断された場合に、その旨を示す情報を記憶する工程と、記憶した前記情報に基づいて、次回の動画像の記録動作に先立ち、記録する動画像の画質を設定する工程とを含む方法とした。   According to a seventh aspect of the present invention, in the moving image recording method for sequentially recording the image data constituting the moving image on the recording medium while performing image processing at a predetermined frame period, the image data after the image processing on the recording medium is performed. A step of determining whether or not a delay that hinders normal recording of moving images has occurred in the writing process of the image data; and a step of storing information indicating that when it is determined that the delay has occurred; And setting the image quality of the moving image to be recorded prior to the next moving image recording operation based on the stored information.

したがって、動画像の記録中に、記録媒体への画像処理後の画像データの書込み処理に動画像の正常な記録を阻害する遅れが生じた場合には、次回以降の記録動作で記録する動画像の画質を、遅れが生じたときの画質よりも低い画質とすることが可能となる。   Accordingly, during the recording of a moving image, if there is a delay that hinders normal recording of the moving image in the writing process of the image data after the image processing to the recording medium, the moving image to be recorded in the subsequent recording operation It is possible to make the image quality lower than the image quality when the delay occurs.

また、請求項8の発明にあっては、動画像を構成する画像データを所定のフレーム周期で画像処理しながら記録媒体に順次記録する動画像記録装置が有するコンピュータを、動画像を構成する画像データを所定のフレーム周期で画像処理しながら記録媒体に順次記録する動画像記録手段と、この動画像記録手段による前記記録媒体への画像処理後の画像データの書込み処理に、動画像の正常な記録を阻害する遅れが生じたか否かを判断する判断手段と、この判断手段により前記遅れが生じたと判断された場合に、その旨を示す情報を情報記憶手段に記憶させる制御手段と、前記情報記憶手段に記憶されている前記情報に基づいて、前記動画像記録手段による次回の記録動作で記録される動画像の画質を設定する画質設定手段として機能させるためのプログラムとした。   According to the eighth aspect of the present invention, there is provided a computer having a moving image recording apparatus that sequentially records image data constituting a moving image on a recording medium while performing image processing on a predetermined frame period. A moving image recording unit that sequentially records data on a recording medium while performing image processing at a predetermined frame period, and a writing process of image data after image processing on the recording medium by the moving image recording unit A determination unit that determines whether or not a delay that inhibits recording has occurred; a control unit that stores information indicating the fact in the information storage unit when the determination unit determines that the delay has occurred; and the information Based on the information stored in the storage means, it functions as an image quality setting means for setting the image quality of a moving image recorded in the next recording operation by the moving image recording means. It was because of the program.

また、請求項9の発明にあっては、撮像手段により所定のフレーム周期で撮像された、動画像を構成する画像データを前記所定のフレーム周期で圧縮しながら着脱自在な記録媒体に順次記録する動画撮影機能を備えた電子カメラ装置において、動画像を構成する画像データを所定のフレーム周期で画像処理しながら記録媒体に順次記録する動画像記録手段と、この動画像記録手段による前記記録媒体への画像処理後の画像データの書込み処理に、動画像の正常な記録を阻害する遅れが生じたか否かを判断する判断手段と、この判断手段により前記遅れが生じたと判断された場合に、その旨を示す情報を情報記憶手段に記憶させる制御手段と、前記情報記憶手段に記憶されている前記情報に基づいて、前記動画像記録手段による次回の記録動作で記録される動画像の画質を設定する画質設定手段とを備えた電子カメラ装置とした。   According to the ninth aspect of the present invention, the image data constituting the moving image captured at a predetermined frame period by the imaging unit is sequentially recorded on a removable recording medium while being compressed at the predetermined frame period. In an electronic camera device having a moving image shooting function, moving image recording means for sequentially recording image data constituting a moving image on a recording medium while performing image processing at a predetermined frame period, and to the recording medium by the moving image recording means A determination means for determining whether or not a delay that hinders normal recording of moving images has occurred in the writing process of the image data after the image processing, and when it is determined by the determination means that the delay has occurred, Control means for storing information indicating the effect in the information storage means, and the next recording operation by the moving image recording means based on the information stored in the information storage means And an electronic camera apparatus and a image quality setting means for setting the image quality of a moving image to be recorded.

かかる構成においては、撮像された画像からなる動画像の記録中に、記録媒体への画像処理後の画像データの書込み処理に動画像の正常な記録を阻害する遅れが生じた場合には、その旨を示す情報が記憶され、その情報に基づいて、次回の記録動作で記録する動画像の画質が自動的に設定される。したがって、動画像の記録中に、記録媒体への画像処理後の画像データの書込み処理に動画像の正常な記録を阻害する遅れが生じた場合には、次回以降の記録動作で記録する動画像の画質を、遅れが生じたときの画質よりも低い画質とすることが可能となる。   In such a configuration, if there is a delay that hinders normal recording of moving images in the writing processing of image data after image processing to the recording medium during recording of moving images composed of captured images, Information indicating this is stored, and the image quality of the moving image to be recorded in the next recording operation is automatically set based on the information. Accordingly, during the recording of a moving image, if there is a delay that hinders normal recording of the moving image in the writing process of the image data after the image processing to the recording medium, the moving image to be recorded in the subsequent recording operation It is possible to make the image quality lower than the image quality when the delay occurs.

本発明の装置及び方法においては、動画像の記録中に、記録媒体への画像処理後の画像データの書込み処理に動画像の正常な記録を阻害する遅れが生じた場合には、次回以降の記録動作で記録する動画像の画質を、遅れが生じたときの画質よりも低い(例えば所定の割合だけ低い)画質とすることが可能となるようにした。よって、動画像を記録する記録媒体として例えば同一の記録媒体を用いる場合、動画像の記録中に画像データの書込み処理に遅れが生じたとしても、次回以降の動画像の記録に際しては、その途中に画質を変更することなく正常な記録動作を継続させることができ、動画の撮影が終了するまで均一な画質で動画像を記録することが可能となる。   In the apparatus and method of the present invention, during the recording of a moving image, if there is a delay that hinders normal recording of the moving image in the writing process of the image data after the image processing to the recording medium, The image quality of the moving image recorded by the recording operation can be made lower than the image quality when the delay occurs (for example, lower by a predetermined ratio). Therefore, for example, when the same recording medium is used as a recording medium for recording a moving image, even if there is a delay in the writing process of the image data during recording of the moving image, the recording of the moving image from the next time onward is in progress. Therefore, the normal recording operation can be continued without changing the image quality, and a moving image can be recorded with a uniform image quality until the moving image shooting is completed.

これに加え、請求項4,5の発明においては、動画像の記録中に、記録媒体への画像処理後の画像データの書込み処理に動画像の正常な記録を阻害する遅れが生じた後の記録動作で記録する動画像の画質の下げ幅を必要最小限に止めることができるようにした。よって、より高品質の動画像を記録することができる。   In addition, in the inventions of claims 4 and 5, during the recording of the moving image, there is a delay that hinders normal recording of the moving image in the writing process of the image data after the image processing to the recording medium. The reduction in image quality of moving images recorded by recording operations can be minimized. Therefore, a higher quality moving image can be recorded.

さらに、請求項6の発明においては、使用期間の経過に伴い、記録する画像データの断片化によって記録媒体におけるデータの書き込み性能が一定以上劣化した場合には、それをユーザーに認識させることができるようにした。よって、記録媒体の初期化を実行させることにより、記録可能な動画像の品質を、できるだけ記録媒体が有する本来のデータの書き込み性能に応じた画質に維持することが可能となる。   Furthermore, in the invention of claim 6, when the writing performance of data in the recording medium deteriorates more than a certain amount due to fragmentation of the image data to be recorded as the usage period elapses, it can be recognized by the user. I did it. Therefore, by executing initialization of the recording medium, it is possible to maintain the quality of the recordable moving image as much as possible according to the original data writing performance of the recording medium.

本発明の各実施の形態に共通するデジタルカメラのブロック図である。It is a block diagram of a digital camera common to each embodiment of the present invention. 内蔵メモリのメモリ空間を示す模式図である。It is a schematic diagram which shows the memory space of a built-in memory. 同実施の形態における動画撮影処理の内容を示すフローチャートである。It is a flowchart which shows the content of the video recording process in the embodiment. 図3に続くフローチャートである。It is a flowchart following FIG. 事前処理の内容を示すフローチャートである。It is a flowchart which shows the content of pre-processing. 書込み時間履歴データを示す模式図である。It is a schematic diagram which shows write time history data. 録画情報の内容を示す模式図である。It is a schematic diagram which shows the content of recording information. 第2の実施の形態における内蔵メモリのメモリ空間を示す模式図である。It is a schematic diagram which shows the memory space of the built-in memory in 2nd Embodiment. 同実施の形態における動画撮影処理の内容を示すフローチャートである。It is a flowchart which shows the content of the video recording process in the embodiment. 事前処理の内容を示すフローチャートである。It is a flowchart which shows the content of pre-processing. 録画情報の内容を示す模式図である。It is a schematic diagram which shows the content of recording information.

以下、本発明の一実施の形態を図にしたがって説明する。
(実施形態1)
図1は、本発明の各実施の形態に共通するデジタルカメラのブロック図である。このデジタルカメラは動画撮影機能を備えたものであり、以下の構成を備えている。
Hereinafter, an embodiment of the present invention will be described with reference to the drawings.
(Embodiment 1)
FIG. 1 is a block diagram of a digital camera common to each embodiment of the present invention. This digital camera has a moving image shooting function and has the following configuration.

デジタルカメラは、カメラ本体1と、カメラ本体1に着脱可能な記録メディア20から構成されており、カメラ本体1には複数枚のレンズからなる光学系2、及び光学系2を介して自己の受光面に被写体の光像が結像される撮像手段であるベイヤ配列等の色フィルタが装着されたCCD3が配置されている。CCD3はタイミングジェネレータ7から送られる駆動信号により駆動され、被写体の光像を光電変換し撮像信号として出力する。CCD3からの出力信号はCDS回路4で相関二重サンプリング及びゲイン調整が行われ、A/D変換回路5でデジタル信号に変換される。A/D変換されたベイヤデータはDSP部6に入力され、ペデスタルクランプ等の処理が施された後、ブロック内の輝度・色差マトリックス回路で輝度(Y)信号及び色差(UV)信号に変換される。なお、DSP部6では、オートアイリス、オートホワイトバランス、輪郭強調、画素補間などの画品質向上のための処理も行われる。   The digital camera includes a camera body 1 and a recording medium 20 that can be attached to and detached from the camera body 1, and the camera body 1 receives an optical system 2 composed of a plurality of lenses, and receives light through the optical system 2. A CCD 3 mounted with a color filter such as a Bayer array, which is an imaging means for forming an optical image of a subject on the surface, is disposed. The CCD 3 is driven by a drive signal sent from the timing generator 7, photoelectrically converts the light image of the subject and outputs it as an imaging signal. The output signal from the CCD 3 is subjected to correlated double sampling and gain adjustment by the CDS circuit 4 and converted to a digital signal by the A / D conversion circuit 5. The A / D-converted Bayer data is input to the DSP unit 6 and subjected to processing such as pedestal clamping, and then converted into a luminance (Y) signal and a color difference (UV) signal by a luminance / color difference matrix circuit in the block. . Note that the DSP unit 6 also performs processing for improving image quality such as auto iris, auto white balance, contour enhancement, and pixel interpolation.

DSP部6から出力されたYUVデータは解像度変換ブロック8で予め設定された画像サイズに変換された後、1フレーム分のデータが順次内蔵メモリ14(例えばSDRAM)に確保される画像データ用作業領域14a(図2参照)に格納される。内蔵メモリ14に格納された1フレーム分のYUVデータは表示コントローラ11へ送られ、そこでビデオ信号に変換された後、LCD(液晶表示器)12によりスルー画像として表示される。なお、LCD12は、後述する動画撮影時においては本発明の報知手段としても機能する。   The YUV data output from the DSP unit 6 is converted into a preset image size by the resolution conversion block 8, and then one frame worth of data is sequentially secured in the built-in memory 14 (for example, SDRAM). 14a (see FIG. 2). The YUV data for one frame stored in the built-in memory 14 is sent to the display controller 11 where it is converted into a video signal and then displayed as a through image on an LCD (liquid crystal display) 12. The LCD 12 also functions as a notification unit of the present invention at the time of moving image shooting described later.

また、動画撮影時に内蔵メモリ14に格納されたYUVデータは順次データ圧縮伸長ブロック9へ送られ、所定の動画記録方式(例えばMotion−JPEGやMPEG)のコーデックによりデータ圧縮した後コード化され、内蔵メモリ14に一時的に記憶された後、メディアコントローラ10を介してフレームデータ(ビデオデータ)として記録メディア20に順次書き込まれる。係る一連の動作はフレーム毎に繰り返し実行される。つまりストリーム記録される。なお、動画撮影のフレームレートはタイミングジェネレータ7で作成されるタイミング信号によって決まり、コード化されるデータの圧縮率はデータ圧縮伸長ブロック9内の量子化テーブル値によって決定される。なお、静止画撮影時に内蔵メモリ14に格納された1フレーム分のYUVデータは、前記データ圧縮伸長ブロック9でJPEG方式等でデータ圧縮した後コード化され、内蔵メモリ14内でファイル化された後、メディアコントローラ10を介して記録メディア20に静止画データ(静止画ファイル)として記録される。また、データ圧縮伸長ブロック9は、静止画又は動画の再生時には記録メディア20から読み出された静止画や動画のデータを伸張し、静止画データやフレームデータとして内蔵メモリ14の画像データ用作業領域14aに展開する。   In addition, YUV data stored in the built-in memory 14 at the time of moving image shooting is sequentially sent to the data compression / decompression block 9, and after being compressed by a codec of a predetermined moving image recording method (for example, Motion-JPEG or MPEG), it is coded and embedded. After being temporarily stored in the memory 14, it is sequentially written to the recording medium 20 as frame data (video data) via the media controller 10. Such a series of operations is repeatedly executed for each frame. That is, stream recording is performed. The frame rate for moving image shooting is determined by the timing signal generated by the timing generator 7, and the compression rate of the encoded data is determined by the quantization table value in the data compression / decompression block 9. The YUV data for one frame stored in the built-in memory 14 at the time of still image shooting is encoded after being compressed by the data compression / decompression block 9 using the JPEG method or the like, and then filed in the built-in memory 14. The still image data (still image file) is recorded on the recording medium 20 via the media controller 10. The data compression / decompression block 9 decompresses still image data and moving image data read from the recording medium 20 during reproduction of a still image or moving image, and stores the image data work area in the built-in memory 14 as still image data or frame data. Expands to 14a.

音声処理ブロック15は、音声付の動画撮影時においてカメラ本体1に内蔵されたマイク16に入力した音声をデジタル信号に変換し、データ圧縮後にオーディオデータとして内蔵メモリ14へ送る。内蔵メモリ14に送られたオーディオデータはフレームデータと共に一連のストリームデータとして記録メディア20に順次書き込まれる。また、音声処理ブロック15は、音声付動画の再生時には、内蔵メモリ14から送られたオーディオデータを復号し、アナログの音声信号に変換した後、カメラ本体1に内蔵された内蔵スピーカ17から音声出力させる。   The voice processing block 15 converts voice input to the microphone 16 built in the camera body 1 during video recording with voice into a digital signal, and sends it to the built-in memory 14 as audio data after data compression. The audio data sent to the built-in memory 14 is sequentially written to the recording medium 20 as a series of stream data together with the frame data. The audio processing block 15 decodes the audio data sent from the built-in memory 14 and converts it into an analog audio signal at the time of reproducing the moving image with sound, and then outputs the sound from the built-in speaker 17 built in the camera body 1. Let

キー入力ブロック18は、シャッターボタン、電源キー、MENUキー等の複数の操作キーを含み、使用者によるキー操作に応じたキー入力信号をCPU13に出力する。なお、シャッターボタンは動画撮影時に録画開始/終了ボタンとしても機能する。   The key input block 18 includes a plurality of operation keys such as a shutter button, a power key, and a MENU key, and outputs a key input signal corresponding to the key operation by the user to the CPU 13. The shutter button also functions as a recording start / end button when shooting a moving image.

上述した各ブロックはCPU13により制御されており、CPU13が各ブロックの制御に必要とされるプログラムやデータはプログラムメモリ19に記憶されている。そして、CPU13は上記プログラム及びキー入力信号に基づき動作することにより本発明の動画像記録手段、判断手段、画質設定手段、計測手段、速度算出手段、制御手段、取得手段として機能する。   Each block described above is controlled by the CPU 13, and programs and data necessary for the CPU 13 to control each block are stored in the program memory 19. The CPU 13 operates based on the program and key input signals, thereby functioning as a moving image recording unit, a determination unit, an image quality setting unit, a measurement unit, a speed calculation unit, a control unit, and an acquisition unit of the present invention.

また、プログラムメモリ19はEEPROMやフラッシュメモリ等の書き換え可能な不揮発性メモリからなり、上記プログラムやデータ以外にも、ユーザーにより設定されたシステムや各機能に関する設定データ、例えば動画撮影時に記録する動画像の品質を決める画像サイズ、フレームレート、圧縮率等の録画パラメータが随時記憶される。また、動画撮影時において、前記内蔵メモリ14には、図2に示したように、後述する書込情報100(図6参照)等の作業用データを記憶するバッファとして使用する汎用作業領域14bが、前記画像データ用作業領域14aとは別に確保される。   The program memory 19 includes a rewritable non-volatile memory such as an EEPROM or a flash memory. In addition to the program and data, the program memory 19 is set by a user and setting data relating to each function, for example, a moving image recorded at the time of moving image shooting. Recording parameters such as an image size, a frame rate, and a compression rate that determine the quality of the image are stored as needed. Further, at the time of moving image shooting, as shown in FIG. 2, the built-in memory 14 has a general-purpose work area 14b used as a buffer for storing work data such as write information 100 (see FIG. 6) described later. Are secured separately from the image data work area 14a.

次に、以上の構成からなるデジタルカメラにおける本発明に係る動作を説明する。図3は、動画撮影モードにおいて、シャッターボタンによる撮影開始操作に応じCPU13が実行する動画撮影処理の内容を示すフローチャートである。なお、ここでは、記録メディア20の使用開始後、または初期化後において初めて動画撮影モードが設定されたものとする。   Next, the operation according to the present invention in the digital camera having the above configuration will be described. FIG. 3 is a flowchart showing the contents of the moving image shooting process executed by the CPU 13 in response to the shooting start operation by the shutter button in the moving image shooting mode. Here, it is assumed that the moving image shooting mode is set for the first time after the start of use of the recording medium 20 or after initialization.

CPU13は、撮影開始操作があると直ちに図5に示した事前処理に移行し(ステップSA1)、後述する録画情報200(図7参照)が記録メディア20に記録されているか否かを確認する(ステップSA101)。ここでは、記録メディア20に一度も動画記録が行われておらず録画情報200は存在しないため(ステップSA101でNO)、そのまま図3の処理に戻り、そのときユーザーにより設定されているフレームレート、画像サイズ、圧縮率に応じた動画記録処理(ストリーム録画)を開始する。撮影開始直後の撮像タイミングでは前回の画像データ(フレームデータ)が存在しないため(ステップSA2,SA3が共にYES)、直ちにCCD3による撮像処理を実施する(ステップSA4)。引き続き、撮像した1フレーム目の画像データを圧縮符号化した後(ステップSA5)、圧縮符号化した画像データの記録メディア20への書き込みを開始するとともに、タイマ機能による画像データの書き込み時間の計測を開始する(ステップSA6)。   When the photographing start operation is performed, the CPU 13 immediately proceeds to the pre-processing shown in FIG. 5 (step SA1), and confirms whether or not recording information 200 (see FIG. 7) described later is recorded on the recording medium 20 (see FIG. 7). Step SA101). Here, since no moving image recording has been performed on the recording medium 20 and the recording information 200 does not exist (NO in step SA101), the processing returns to the processing in FIG. 3 as it is, and the frame rate set by the user at that time, Video recording processing (stream recording) according to the image size and compression rate is started. Since there is no previous image data (frame data) at the imaging timing immediately after the start of imaging (both steps SA2 and SA3 are YES), imaging processing by the CCD 3 is immediately performed (step SA4). Subsequently, after compressing and encoding the captured first frame image data (step SA5), writing of the compressed and encoded image data to the recording medium 20 is started, and measurement of the image data writing time by the timer function is started. Start (step SA6).

その後、画像データの書き込みが終了したら(ステップSA7でYES)、書き込み時間の計測を終了し(ステップSA8)、その計測結果と、書き込んだデータサイズを内蔵メモリ14の汎用作業領域14bに記憶する(ステップSA9)。そして、撮影終了操作又は記録メディア20のフル状態の検出があるまでの間は(ステップSA10でNO)、新たな撮影タイミングが到来する毎に撮像処理、圧縮符号化、記録メディア20へのデータ書き込みを繰り返し(ステップSA4〜SA9)、その間に前記汎用作業領域14bにフレーム毎のフレーム数分の書き込み時間(T1,T2,T3,・・・)と書き込んだ画像データのサイズ(D1,D2,D3,・・・)からなる図6に示した書込み情報100を蓄積する。   Thereafter, when the writing of the image data is finished (YES in step SA7), the writing time measurement is finished (step SA8), and the measurement result and the written data size are stored in the general-purpose work area 14b of the built-in memory 14 ( Step SA9). Until a shooting end operation or detection of the full state of the recording medium 20 (NO in step SA10), every time a new shooting timing arrives, imaging processing, compression encoding, and data writing to the recording medium 20 are performed. Are repeated (steps SA4 to SA9), during which the writing time (T1, T2, T3,...) For the number of frames per frame and the size of the written image data (D1, D2, D3) are written in the general-purpose work area 14b. ,..., And the write information 100 shown in FIG.

また、上記処理を繰り返す間に、いずれかの撮影タイミングが到来したとき、前のフレームの画像データについて記録メディア20への書き込み処理(保存処理)が終了していなかったときには(ステップSA3でNO)、処理時間情報として「範囲外」を前記汎用作業領域14bに暫定的に記憶する(ステップSA11)。なお、前記汎用作業領域14bには、処理時間情報の初期値として「範囲内」が予め記憶されているものとする。さらに、今回のフレームの画像データに代えて前回のフレームの画像データを使用するための処理を実施することにより、記録メディア20へ対するデータの書込みデータ量を減らし(ステップSA12)、ステップSA2へ戻る。   Further, when any shooting timing arrives while the above processing is repeated, the writing process (storing process) to the recording medium 20 for the image data of the previous frame has not been completed (NO in step SA3). Then, “out of range” is temporarily stored as the processing time information in the general-purpose work area 14b (step SA11). In the general-purpose work area 14b, “within range” is stored in advance as an initial value of the processing time information. Further, by executing a process for using the image data of the previous frame instead of the image data of the current frame, the amount of data written to the recording medium 20 is reduced (step SA12), and the process returns to step SA2. .

やがて、ユーザーによる撮影終了操作又は記録メディア20のフル状態の検出があったら(ステップSA10でYES)、引き続き図4に示した処理に進み、バッファメモリに記憶されている処理時間情報が「範囲外」でなければ(ステップSA13でNO)、バッファメモリに記憶されている書込み情報100に基づき、書き込んだ画像データの合計サイズと書込み時間の合計時間から平均書込み速度を算出し(ステップSA14)、その算出結果と、前記処理時間情報(この場合は「範囲内」)、撮影時の設定フレームレート及び設定ビットレートを、図7に示したような録画情報200として記録メディア20の所定領域に記録し(ステップSA15)、そのまま動画撮影処理を終了する。なお、設定ビットレートは、ユーザにより設定されたフレームレート、画像サイズ、及び圧縮率により一義的に決まる値である。   Eventually, if there is a shooting end operation by the user or the full state of the recording medium 20 is detected (YES in step SA10), the processing continues to the processing shown in FIG. 4 and the processing time information stored in the buffer memory is “out of range”. If not (NO in step SA13), the average writing speed is calculated from the total size of the written image data and the total writing time based on the writing information 100 stored in the buffer memory (step SA14). The calculation result, the processing time information (in this case “within range”), the set frame rate and the set bit rate at the time of shooting are recorded in a predetermined area of the recording medium 20 as recording information 200 as shown in FIG. (Step SA15), the moving image shooting process is terminated as it is. The set bit rate is a value that is uniquely determined by the frame rate, image size, and compression rate set by the user.

また、バッファメモリに記憶されている処理時間情報が「範囲外」であったときには(ステップSA13でYES)、上記と同様に平均書込み速度を算出した後(ステップSA16)、さらに前記汎用作業領域14bに書込み情報100として記憶されている中の最大の書込み時間、つまり撮像タイミングの到来時に記録メディア20に書き込み中であった画像データの書込みに要した時間の中で最も長かった時間について、撮影時のフレームレートで画像データの書込み可能な時間(撮像処理間隔)を超えた分の、書込み許容時間に対する割合(超過割合)を算出する(ステップSA17)。そして、その算出結果と、前記処理時間情報(この場合は「範囲外」)、撮影時の設定フレームレート及び設定ビットレート、平均書込み速度を録画情報200として記録メディア20の所定領域に記録する(ステップSA18)。   If the processing time information stored in the buffer memory is “out of range” (YES in step SA13), the average writing speed is calculated in the same manner as described above (step SA16), and then the general-purpose work area 14b. The maximum writing time stored as the writing information 100, that is, the longest time required for writing the image data that was being written to the recording medium 20 when the imaging timing arrived, A ratio (excess ratio) with respect to the allowable writing time is calculated for an amount exceeding the writable time (imaging processing interval) of the image data at the frame rate (step SA17). Then, the calculation result, the processing time information (in this case, “out of range”), the set frame rate and set bit rate at the time of shooting, and the average writing speed are recorded as recording information 200 in a predetermined area of the recording medium 20 ( Step SA18).

次に、記録メディア20に規定回数(以下の説明では、100回とする。)以上の録画情報200が記録されているか否かを確認する(ステップSA19)。ここでは、記録メディア20を初期化した後等における初めての動画撮影であり、録画情報200が1回分しか記録されていないため(ステップSA19でNO)、そのまま動画撮影処理を終了する。なお、規定回数以上の録画情報が記録されていた場合の処理については後述する。   Next, it is confirmed whether or not the recording information 200 more than the prescribed number of times (in the following description, 100 times) is recorded on the recording medium 20 (step SA19). Here, it is the first moving image shooting after the recording medium 20 is initialized, and the recording information 200 is recorded only once (NO in step SA19), so the moving image shooting process is terminated. Note that the processing in the case where recording information more than the specified number of times has been recorded will be described later.

一方、2回目以後の動画撮影が開始されたときには、前述した図5の事前処理において、記録メディア20には前回の録画情報200が記録されているため(ステップSA101でYES)、まず記録メディア20から前回の録画情報200を読み込み(ステップSA102)、前回の処理時間情報が「範囲外」であるか否か、つまり前回の動画撮影時に記録メディア20ヘの画像データの書き込みに遅れが生じたか否かを確認する(ステップSA103)。このとき処理時間情報が「範囲内」であって、遅れが生じていなければ(ステップSA103でNO)、直ちに事前処理を終了し、図3の前述したステップSA2以降の処理によって新たな動画像を記録する。   On the other hand, when the second and subsequent moving image shootings are started, the previous recording information 200 is recorded on the recording medium 20 in the pre-processing of FIG. 5 described above (YES in step SA101). The previous recording information 200 is read (step SA102), and whether or not the previous processing time information is “out of range”, that is, whether or not there has been a delay in writing the image data to the recording medium 20 during the previous moving image shooting. (Step SA103). At this time, if the processing time information is “within range” and there is no delay (NO in step SA103), the pre-processing is immediately terminated, and a new moving image is obtained by the processing after step SA2 in FIG. Record.

また、前回の処理時間情報が「範囲外」であったときには、今回の動画記録時の録画パラメータにおけるフレームレート、ビットレートの値を、処理時間情報と対応して記録されている前回設定されていたフレームレート、ビットレートを、対応して記録されている超過割合に応じた分だけ下げた値に設定する、つまり動画像の画質(フレームレート、画像サイズ、圧縮率等)を記録メディア20におけるデータの書き込み性能に応じて低下させる設定を行う(ステップSA104)。例えば、図7に示したように、前回(1回目)の超過割合が20%であって、フレームレートが15fps、ビットレートが100Kバイトであったときには、下げる割合を80%として、フレームレートを12fps、ビットレートを80Kバイトに設定する。しかる後、事前処理を終了し、図3の前述したステップSA2以降の処理を実行する。これにより、2回目の動画撮影時においては、記録メディア20ヘの画像データの書き込みに遅れを生じさせることなく、つまりいずれかのフレームで前回の画像データを使用する処理(ステップSA12の処理)を行うことによる部分的な画質低下を生じさせることなく、撮影が終了するまで均一な画質で動画像を記録(ストリーム録画)することができる。   If the previous processing time information is “out of range”, the frame rate and bit rate values in the recording parameters at the time of the current video recording are set in correspondence with the processing time information. The frame rate and the bit rate are set to values corresponding to the corresponding excess ratio, that is, the image quality (frame rate, image size, compression rate, etc.) of the moving image is set in the recording medium 20. Setting is made to decrease according to the data writing performance (step SA104). For example, as shown in FIG. 7, when the previous (first) excess rate is 20%, the frame rate is 15 fps, and the bit rate is 100 Kbytes, the reduction rate is set to 80%, and the frame rate is set to Set 12fps and bit rate to 80K bytes. Thereafter, the pre-processing is terminated, and the processing after step SA2 in FIG. 3 is executed. As a result, at the time of the second moving image shooting, the process of using the previous image data in any frame without causing a delay in writing the image data to the recording medium 20 (the process of step SA12). It is possible to record a moving image with a uniform image quality (stream recording) until shooting is completed without causing a partial deterioration in image quality due to the execution.

他方、以上の処理より動画撮影が複数回行われると、記録メディア20内の所定領域には、図7に示したように撮影回数分の録画情報200が蓄積される。そして、いずれかの動画撮影の終了時において、前記汎用作業領域14bに記憶されている処理時間情報が「範囲外」であり(ステップSA13でYES)、しかも記録メディア20の所定領域に記録されている録画情報200の数が、その回の分を含めて規定回数(100回)以上に記録されているときには(ステップSA19でYES)、録画情報200に基づき平均書込み速度の劣化度合、つまり記録メディア20におけるデータの書き込み性能の劣化度合を算出する(ステップSA20)。具体的には、今回よりも100回以上前に保存されている、処理時間情報が「範囲外」である最も古い平均書込み速度に対する、ステップSA16において算出した今回の平均書込み速度の割合(パーセント)を劣化度合として、
劣化度合 = 最も古い平均書込み速度 ÷ 今回の平均書込み速度 ×100
により求める。
On the other hand, when moving image shooting is performed a plurality of times by the above processing, recording information 200 for the number of shooting times is accumulated in a predetermined area in the recording medium 20 as shown in FIG. At the end of any moving image shooting, the processing time information stored in the general-purpose work area 14b is “out of range” (YES in step SA13), and is recorded in a predetermined area of the recording medium 20. When the number of recorded information 200 is recorded more than the specified number of times (100 times) including that time (YES in step SA19), the degree of deterioration of the average writing speed based on the recorded information 200, that is, the recording medium The degree of deterioration of the data writing performance at 20 is calculated (step SA20). Specifically, the ratio (percentage) of the current average write speed calculated in step SA16 to the oldest average write speed that is stored 100 times or more before this time and whose processing time information is “out of range” As the degree of deterioration,
Degree of degradation = oldest average writing speed ÷ current average writing speed × 100
Ask for.

そして、算出した劣化度合が規定以上でなければ(ステップSA21でNO)、そのまま動画撮影処理を終了し、劣化度合が規定以上であったときには(ステップSA21でYES)、記録メディアの初期化を促すメッセージをLCD12に表示した後(ステップSA22)、動画撮影処理を終了する。例えば、記録メディア20に記録されている録画情報が図7に示した内容で、かつ上記規定の劣化度合が80パーセントであるとき、103回目である今回は、処理時間情報が「範囲外」であり、かつ平均書込み速度が63Kバイト/sであり、1回目の83Kバイト/sに対する劣化度合は75パーセントであるため、記録メディア20の初期化を促すメッセージをLCD12に表示させることとなる。   If the calculated degree of deterioration is not more than the specified value (NO in step SA21), the moving image shooting process is terminated, and if the degree of deterioration is more than the specified value (YES in step SA21), the initialization of the recording medium is prompted. After the message is displayed on the LCD 12 (step SA22), the moving image shooting process is terminated. For example, when the recording information recorded on the recording medium 20 has the contents shown in FIG. 7 and the specified deterioration degree is 80%, the processing time information is “out of range” this time, which is the 103rd time. In addition, since the average writing speed is 63 Kbytes / s and the degree of deterioration with respect to the first 83 Kbytes / s is 75%, a message prompting the initialization of the recording medium 20 is displayed on the LCD 12.

これにより、記録メディア20としてフラッシュメモリ等のディバイスを用いる場合に、使用期間の経過に伴い記録する画像データの断片化によってデータの書き込み性能が一定以上劣化した場合には、それをユーザーに認識させることができる。したがって、記録メディア20の初期化を実行させることにより、記録可能な動画像の品質を、できるだけ記録メディア20が有する本来のデータの書き込み性能に応じた画質に維持することが可能となる。   As a result, when a device such as a flash memory is used as the recording medium 20, if the data writing performance deteriorates more than a certain amount due to fragmentation of the image data to be recorded as the usage period elapses, the user is made to recognize it. be able to. Therefore, by executing the initialization of the recording medium 20, it is possible to maintain the quality of the recordable moving image as much as possible according to the original data writing performance of the recording medium 20.

なお、本実施の形態では、動画撮影時に、記録メディア20に対する画像データの書込み処理に遅れが生じたときには、今回のフレームの画像データに代えて前回のフレームの画像データを使用することにより、記録メディア20へ対するデータの書込み量を減らすようにしたが(ステップSA12)、その時点で動画撮影を中止させるようにしてもよい。その場合であっても、次回の動画撮影時には、撮影が終了するまで均一な画質で動画像を記録(ストリーム録画)することができる。但し、動画撮影処理を終了する前に前述したステップSA14〜SA18における録画情報200の記録処理を実施する必要がある。   In the present embodiment, when a delay occurs in the writing process of the image data to the recording medium 20 during moving image shooting, the image data of the previous frame is used instead of the image data of the current frame. Although the amount of data written to the medium 20 is reduced (step SA12), the moving image shooting may be stopped at that time. Even in such a case, at the next moving image shooting, a moving image can be recorded (stream recording) with uniform image quality until the shooting is completed. However, it is necessary to perform the recording process of the recording information 200 in steps SA14 to SA18 described above before ending the moving image shooting process.

また、動画撮影時に、記録メディア20に対する画像データの書込み処理に遅れが生じ、次回の動画撮影におけるフレームレートとビットレートを下げる際、それらを、遅れが生じたときの書込み時間の、書込み許容時間に対する超過割合に応じた分だけ下げるようにしたが、フレームレートとビットレートとを超過割合に関係なく、予め決めておいた規定の割合だけ下げるようにしてもよい。但し、本実施の形態のようにした方が、フレームレートとビットレートの下げ幅を必要最小限に止めることができ、次回の動画撮影時に、より高品質の動画像を記録することができる。   Further, when moving image shooting, there is a delay in the writing process of image data to the recording medium 20, and when lowering the frame rate and bit rate in the next moving image shooting, they are written in the allowable writing time of the writing time when the delay occurs. The frame rate and the bit rate may be decreased by a predetermined rate determined in advance, regardless of the excess rate. However, according to the present embodiment, the reduction rate of the frame rate and the bit rate can be minimized, and a higher quality moving image can be recorded at the next moving image shooting.

また、本実施の形態では、記録メディア20を本発明の情報記憶手段、速度履歴記録手段として機能させ、動画撮影を行う毎に取得した複数の録画情報200を履歴情報として記録メディア20に保存しておくようにしたが、上記のように次回の動画撮影におけるフレームレートとビットレートを予め決めておいた規定の割合だけ下げるものとし、またユーザーに記録メディア20の初期化を促すための処理を行わない場合には、前回の動画撮影時における録画情報200だけを記録メディア20に保存するだけでもよい。   In the present embodiment, the recording medium 20 functions as the information storage unit and the speed history recording unit of the present invention, and a plurality of pieces of recording information 200 acquired each time a moving image is taken are stored in the recording medium 20 as history information. However, as described above, the frame rate and the bit rate for the next moving image shooting are reduced by a predetermined ratio, and processing for prompting the user to initialize the recording medium 20 is performed. If not performed, only the recording information 200 at the time of the previous moving image shooting may be stored in the recording medium 20.

また、録画情報200は記録メディア20ではなくカメラ本体側(例えばプログラムメモリ19)に記録するようにしてもよい。その場合には、録画情報200を、記録メディア20を識別するための識別情報と共に、互いに対応づけて記憶しておき、使用する記録メディア20(識別情報)に対応する録画情報を読み出して使用する必要がある。   The recording information 200 may be recorded not on the recording medium 20 but on the camera body (for example, the program memory 19). In that case, the recording information 200 is stored in association with the identification information for identifying the recording medium 20, and the recording information corresponding to the recording medium 20 (identification information) to be used is read and used. There is a need.

(実施形態2)
次に、本発明の第2の実施の形態について説明する。本実施の形態は、第1の実施の形態で図1に示したものと同様の構成を備えたデジタルカメラにおいて、前記内蔵メモリ14に、図8に示したように画像データ用作業領域14aおよび汎用作業領域14bとは別に、先に説明したリングバッファとして使用されるリングバッファ領域(例えば60秒分程度の動画データが記録可能なサイズ領域)14cが割り当てられており、内蔵メモリ14が本発明のバッファメモリとして機能するとともに、前記プログラムメモリ19には、CPU13に後述する動画撮影処理を行わせることにより、CPU13を本発明の動画像記録手段、判断手段、画質設定手段、制御手段として機能させるためのプログラムが記録されているものである。
(Embodiment 2)
Next, a second embodiment of the present invention will be described. In the present embodiment, in the digital camera having the same configuration as that shown in FIG. 1 in the first embodiment, the built-in memory 14 stores the image data work area 14a and the image data work area 14a as shown in FIG. Apart from the general-purpose work area 14b, a ring buffer area (for example, a size area capable of recording moving image data of about 60 seconds) 14c used as the ring buffer described above is allocated, and the built-in memory 14 is the present invention. And the program memory 19 causes the CPU 13 to perform a moving image shooting process described later, thereby causing the CPU 13 to function as a moving image recording unit, a determination unit, an image quality setting unit, and a control unit of the present invention. The program for recording is recorded.

以下、本実施の形態の本発明に係る動作を説明する。図9は、動画撮影モードにおいて、シャッターボタンによる撮影開始操作に応じCPU13が実行する動画撮影処理の内容を示すフローチャートである。なお、ここでも、記録メディア20の使用開始後、または初期化後において初めて動画撮影モードが設定されたものとする。   Hereinafter, the operation of the present embodiment according to the present invention will be described. FIG. 9 is a flowchart showing the contents of the moving image shooting process executed by the CPU 13 in response to the shooting start operation by the shutter button in the moving image shooting mode. In this case as well, it is assumed that the moving image shooting mode is set for the first time after the start of use of the recording medium 20 or after initialization.

CPU13は、撮影開始操作があると直ちに図10に示した事前処理に移行し(ステップSB1)、記録メディア20に後述する録画情報が記録されているか否かを確認する(ステップSB101)。ここでは、記録メディア20に一度も動画記録が行われておらず録画情報は存在しないため(ステップSB101でNO)、そのまま図9の処理に戻り、そのときユーザーにより設定されているフレームレート、画像サイズ、圧縮率に応じた動画記録処理(ストリーム録画)を開始する。撮影開始直後の撮像タイミングでは、内蔵メモリ14のリングバッファ領域14cには空きが有るため(ステップSB2,SB3が共にYES)、直ちにCCD3による撮像処理を実施する(ステップSB4)。引き続き、撮像した1フレーム目の画像データを圧縮符号化した後(ステップSB5)、圧縮符号化した画像データをリングバッファ領域14cに記憶する(ステップSB6)。   When there is a shooting start operation, the CPU 13 immediately proceeds to the pre-processing shown in FIG. 10 (step SB1), and checks whether or not recording information to be described later is recorded on the recording medium 20 (step SB101). Here, since moving image recording has never been performed on the recording medium 20 and recording information does not exist (NO in step SB101), the processing returns to the processing of FIG. 9 as it is, and the frame rate and image set by the user at that time Video recording processing (stream recording) according to the size and compression rate is started. At the imaging timing immediately after the start of imaging, the ring buffer area 14c of the built-in memory 14 is empty (steps SB2 and SB3 are both YES), so the imaging processing by the CCD 3 is immediately performed (step SB4). Subsequently, after the image data of the captured first frame is compressed and encoded (step SB5), the compressed and encoded image data is stored in the ring buffer area 14c (step SB6).

その後、撮影終了操作があるまでの間は(ステップSB7でNO)、新たな撮影タイミングが到来する毎に撮像処理、圧縮符号化、前記リングバッファ領域14cへのデータ記憶を繰り返す(ステップSB4〜SB6)。なお、その間には、リングバッファ領域14cに記憶した画像データを、記憶順に読み出して記録メディア20に随時記録し、かつ記録が終了した動画データをリングバッファ領域14cから消去する処理(上書きを許可する処理)を並行して行う(図示せず)。   Thereafter, until a shooting end operation is performed (NO in step SB7), the imaging process, compression encoding, and data storage in the ring buffer area 14c are repeated each time a new shooting timing arrives (steps SB4 to SB6). ). In the meantime, the image data stored in the ring buffer area 14c is read out in the storage order and recorded on the recording medium 20 as needed, and the moving image data that has been recorded is erased from the ring buffer area 14c (overwriting is permitted). (Processing) is performed in parallel (not shown).

また、上記処理を繰り返す間に、いずれかの撮影タイミングが到来したとき、リングバッファ領域14cに次の画像データを記憶するのに十分な空きがなかった場合には(ステップSB3でNO)、リングバッファ状態として「一杯」を、またその時点で記録メディア20に書込み済みのデータ量をそれぞれバッファ(汎用作業領域14b)に暫定的に記憶する(ステップSB8)。なお、前記汎用作業領域14bには、予めリングバッファ状態として「空き有り」が記憶されているものとする。さらに、今回のフレームの画像データに代えて前回のフレームの画像データを使用するための処理を実施することにより、記録メディア20に対するデータの書込み量を減らし(ステップSB9)、ステップSB2へ戻る。   Further, when any shooting timing arrives while the above processing is repeated, if there is not enough space in the ring buffer area 14c to store the next image data (NO in step SB3), the ring The buffer state is “full” and the data amount already written in the recording medium 20 at that time is temporarily stored in the buffer (general-purpose work area 14b) (step SB8). In the general-purpose work area 14b, “available” is stored in advance as a ring buffer state. Further, by executing a process for using the image data of the previous frame in place of the image data of the current frame, the amount of data written to the recording medium 20 is reduced (step SB9), and the process returns to step SB2.

やがて、ユーザーによる撮影終了操作又は記録メディア20のフル状態の検出があったら(ステップSB7でYES)、バッファメモリに記憶されているリングバッファ状態、及び書込み済みデータ量と、撮影時のフレームレート及びビットレートとからなる録画情報300(図11参照)として記録メディア20の所定領域に記録した後(ステップSB10)、動画撮影処理を終了する。   Eventually, if there is a shooting end operation by the user or the full state of the recording medium 20 is detected (YES in step SB7), the ring buffer state stored in the buffer memory, the amount of written data, the frame rate at the time of shooting, After recording in a predetermined area of the recording medium 20 as recording information 300 (see FIG. 11) including the bit rate (step SB10), the moving image shooting process is terminated.

一方、2回目以後の動画撮影が開始されたときには、前述した図10の事前処理において、記録メディア20に録画情報が記録されているため(ステップSB101でYES)、まず記録メディア20から録画情報を読み込み(ステップSB102)、リングバッファ状態が「一杯」であるか否かを確認する(ステップSB103)。このときリングバッファ状態が「空き有り」であれば(ステップSB103でNO)、直ちに事前処理を終了し、図9の前述したステップSB2以降の処理によって新たな動画像を記録する。   On the other hand, when the second and subsequent moving image shootings are started, the recording information is recorded on the recording medium 20 in the above-described pre-processing of FIG. 10 (YES in step SB101). Reading (step SB102), it is confirmed whether or not the ring buffer state is “full” (step SB103). At this time, if the ring buffer state is “available” (NO in step SB103), the preliminary processing is immediately terminated, and a new moving image is recorded by the processing after step SB2 in FIG.

逆に、録画情報300が図11に示したような内容であって、リングバッファ状態が「一杯」であったときには、今回の動画記録時の録画パラメータにおけるフレームレート、ビットレートの値として、リングバッファ状態と共に記録されている書込み済みデータ量とリングバッファの容量の比率に合わせて、前回設定されていたフレームレート、ビットレートを下げた値に設定する、つまり動画像の画質を記録メディア20におけるデータの書き込み性能に応じて低下させる設定を行う(ステップSB104)。   On the contrary, when the recording information 300 has the contents as shown in FIG. 11 and the ring buffer state is “full”, the frame rate and bit rate values in the recording parameters at the time of the current video recording are In accordance with the ratio of the written data amount recorded together with the buffer state and the ring buffer capacity, the previously set frame rate and bit rate are set to lower values, that is, the image quality of the moving image is set in the recording medium 20. Setting is made to decrease according to the data writing performance (step SB104).

例えば、図示した例では、前回設定されていたフレームレートが15fps、ビットレートが100Kバイト、書込み済みデータ量が48000Kバイトであるため、仮にリングバッファの容量が6000Kバイトであれば(比率が8:1)、下げる割合を80%として、フレームレートを12fps、ビットレート(画像サイズ、圧縮率)を80Kバイトに設定する。しかる後、事前処理を終了し、図9の前述したステップSB2以降の処理を実行する。これにより、2回目の動画撮影時においては、動画撮影途中にリングバッファに溢れが生じることなく、つまりいずれかのフレームで前回の画像データを使用する処理(ステップSB9の処理)を行うことによる部分的な画質低下を生じさせることなく、撮影が終了するまで均一な画質で動画像を記録(ストリーム録画)することができる。   For example, in the illustrated example, the previously set frame rate is 15 fps, the bit rate is 100 Kbytes, and the amount of written data is 48000 Kbytes. Therefore, if the ring buffer capacity is 6000 Kbytes (ratio is 8: 1) The rate of reduction is set to 80%, the frame rate is set to 12 fps, and the bit rate (image size, compression rate) is set to 80 Kbytes. Thereafter, the pre-processing is terminated, and the processing from step SB2 onward in FIG. 9 is executed. Thereby, at the time of the second moving image shooting, the ring buffer does not overflow during the moving image shooting, that is, a portion obtained by performing the process using the previous image data in any frame (the process of step SB9). It is possible to record a moving image with a uniform image quality (stream recording) until shooting is completed without causing a deterioration in image quality.

なお、本実施の形態では、動画撮影時に、リングバッファが一杯となったときには、今回のフレームの画像データに代えて前回のフレームの画像データを使用することにより、記録メディア20に対するデータの書込み量を減らすようにしたが(ステップSB9)、その時点で動画撮影を中止させるようにしてもよい。その場合であっても、次回の動画撮影時には、撮影が終了するまで均一な画質(フレームレート、画像サイズ、圧縮率)で動画像を記録(ストリーム録画)することができる。但し、動画撮影処理を終了する前に前述したステップSB10における録画情報300の記録処理を実施する必要がある。   In the present embodiment, when the ring buffer becomes full during moving image shooting, the amount of data written to the recording medium 20 is used by using the image data of the previous frame instead of the image data of the current frame. (Step SB9), but the moving image shooting may be stopped at that time. Even in such a case, at the next moving image shooting, a moving image can be recorded (stream recording) with a uniform image quality (frame rate, image size, compression rate) until the shooting is completed. However, the recording process of the recording information 300 in step SB10 described above needs to be performed before the moving image shooting process is completed.

また、動画撮影途中にリングバッファが一杯となり、次回の動画撮影におけるフレームレートとビットレートを下げる際、それらを、リングバッファ領域14cの容量と、リングバッファが一杯となった時の書込み済みデータ量との比率に合わせて下げるようにしたが、フレームレートとビットレートとを上記比率に関係なく、予め決めておいた規定の割合だけ下げるようにしてもよい。その場合、前述した書込み済みデータ量の記録は当然不要となる。但し、本実施の形態のようにした方が、フレームレートとビットレートの下げ幅を必要最小限に止めることができ、次回の動画撮影時に、より高品質の動画像を記録することができる。   In addition, when the ring buffer becomes full during moving image shooting and the frame rate and bit rate for the next moving image shooting are lowered, the ring buffer area 14c capacity and the amount of data written when the ring buffer is full are used. However, the frame rate and the bit rate may be decreased by a predetermined ratio regardless of the ratio. In that case, the recording of the written data amount described above is naturally unnecessary. However, according to the present embodiment, the reduction rate of the frame rate and the bit rate can be minimized, and a higher quality moving image can be recorded at the next moving image shooting.

また、本実施の形態においても、記録メディア20を本発明の情報記憶手段として機能させ、録画情報300を記録メディア20に記録するようにしたが、記録メディア20ではなくカメラ本体側(例えばプログラムメモリ19)に記録するようにしてもよい。その場合には、録画情報を、記録メディア20を特定する識別情報と共に、互いに対応づけて記憶しておき、使用する記録メディア20(識別情報)に対応する録画情報を読み出して使用する必要がある。   Also in the present embodiment, the recording medium 20 is made to function as the information storage means of the present invention, and the recording information 300 is recorded on the recording medium 20. However, instead of the recording medium 20, the camera body side (for example, a program memory) 19) may be recorded. In this case, it is necessary to store the recording information together with the identification information for specifying the recording medium 20 in association with each other, and to read and use the recording information corresponding to the recording medium 20 (identification information) to be used. .

また、本実施の形態においては、記録メディア20におけるデータの書き込み性能が一定以上劣化した場合に、記録メディアの初期化を促すメッセージを表示するといった動作は行わないようにしたが、本実施の形態においても、第1の実施の形態のようにそれを実施するようにしてもよい。但し、その場合には、第1の実施の形態と同様に、動画像の記録を行っている間に画像データの書込み時間を計測するとともに、撮影毎に平均書込み速度を履歴情報として記憶しておき、それに基づき記録メディア20におけるデータの書き込み性能が一定以上劣化したか否かを判断する処理が別途必要となる。   Further, in the present embodiment, when the data writing performance in the recording medium 20 is deteriorated more than a certain level, an operation for displaying a message prompting the initialization of the recording medium is not performed. However, it may be implemented as in the first embodiment. However, in this case, as in the first embodiment, the writing time of the image data is measured while the moving image is being recorded, and the average writing speed is stored as history information for each shooting. In addition, a process for determining whether or not the data writing performance in the recording medium 20 has deteriorated more than a certain level is required.

また、本実施の形態においては、記録メディア20へ書込む以前にリングバッファ領域14cに一時的に記憶しておく画像データを、圧縮符号化した後の画像データとしたが、圧縮前のYUVデータ又はベイヤデータをリングバッファ領域14cに記憶するようにしてもよい。   In the present embodiment, the image data temporarily stored in the ring buffer area 14c before writing to the recording medium 20 is the image data after compression encoding, but the YUV data before compression is used. Alternatively, Bayer data may be stored in the ring buffer area 14c.

また、前述したステップSB3においては、リングバッファ領域14cに次の画像データを記憶するのに十分な空きがなかった場合にリングバッファ状態が「一杯」であると判断するようにしたが、例えばリングバッファ領域14cの空き容量が所定量よりも低下していたとき、バッファメモリが一杯になったと判断するようにしてもよい。つまり、バッファメモリが一杯になったか否かの判断は、リングバッファ領域14cにおける画像データの書き込み位置と読み出し位置とが所定の関係になったか否かによって行えばよい。   In step SB3 described above, when there is not enough space in the ring buffer area 14c to store the next image data, it is determined that the ring buffer state is “full”. When the free space in the buffer area 14c is lower than a predetermined amount, it may be determined that the buffer memory is full. In other words, whether or not the buffer memory is full may be determined based on whether or not the writing position and reading position of the image data in the ring buffer area 14c have a predetermined relationship.

また、前回設定されていたフレームレート、ビットレートを下げる割合についても、リングバッファ領域14cにおける画像データの書き込み位置と読み出し位置とが所定の関係になった時点において、記録メディア20に未だ書込まれずにリングバッファ領域14cに残存する画像データの合計サイズと、記録メディア20に書込みが完了している画像データの合計サイズとの比率に応じた割合とすればよい。   In addition, the rate at which the frame rate and the bit rate that were set last time are not yet written to the recording medium 20 when the image data writing position and the reading position in the ring buffer area 14c have a predetermined relationship. In addition, the ratio may be set in accordance with the ratio between the total size of the image data remaining in the ring buffer area 14c and the total size of the image data that has been written to the recording medium 20.

また、第1の実施の形態では、いずれかの撮像タイミングが到来した時点で記録メディア20に対する前のフレームの画像データの書込み処理が終了していない場合に、次回の動画撮影において記録する動画像の画質を下げるように、次回使用される録画パラメータ(フレームレート、画像サイズ、圧縮率)の値を下げ、また第2の実施の形態では、いずれかの撮像タイミングが到来した時点でリングバッファ状態が「一杯」であった場合に、次回使用される録画パラメータの値を下げるようにしたが、以下のようにしてもよい。   Further, in the first embodiment, when any of the imaging timings arrives and the writing process of the image data of the previous frame on the recording medium 20 is not completed, the moving image to be recorded in the next moving image shooting In the second embodiment, the value of the recording parameters (frame rate, image size, compression rate) to be used next time is lowered so that the image quality of the image is reduced. Is set to “full”, the value of the recording parameter to be used next time is lowered, but it may be as follows.

例えば、録画情報として、次回の動画撮影において使用される録画パラメータ(フレームレート、画像サイズ、圧縮率)を記録メディア20等へ記録しておき、次回の動画撮影時には、予め記録されている録画パラメータを使用した動画撮影を行うようにしてもよい。   For example, as recording information, recording parameters (frame rate, image size, compression rate) used in the next moving image shooting are recorded on the recording medium 20 or the like, and the recording parameters recorded in advance are recorded in the next moving image shooting. You may make it perform moving image photography using.

また、単純に録画情報として、動画撮影中に、いずれかの撮像タイミングが到来した時点で記録メディア20に対する前のフレームの画像データの書込み処理が終了していない状況や、リングバッファ状態が「一杯」となる状況が発生したことを示すフラグ情報を記録しておき、係るフラグ情報から上記状況が発生したか否かを判断し、それが発生した場合に、次回使用される録画パラメータ(フレームレート、画像サイズ、圧縮率)の値を下げるための処理を行わせるようにしてもよい。   In addition, simply as video recording information, when any imaging timing arrives during moving image shooting, the state where the writing process of the image data of the previous frame to the recording medium 20 has not been completed, or the ring buffer state is “full” ”Is recorded, and it is determined from the flag information whether or not the above situation has occurred, and if this occurs, the recording parameter (frame rate) to be used next time is recorded. , Image size, compression rate) may be reduced.

また、以上の説明においては、本発明を、動画撮影機能を備えたデジタルカメラに採用した場合について説明したが、これに限らず本発明は、録画時に動画をストリーム記録する構成を備えたものであれば、例えばデジタルビデオカメラ、カメラ付き携帯電話機、カメラ付きPDA、カメラ付きパソコン等の種々の電子カメラ装置にも採用することができる。その場合においても、前述した効果を得ることができる。   In the above description, the case where the present invention is applied to a digital camera having a moving image shooting function has been described. However, the present invention is not limited to this, and the present invention has a configuration for recording a moving image at the time of recording. If present, the present invention can be applied to various electronic camera devices such as a digital video camera, a camera-equipped mobile phone, a camera-equipped PDA, and a camera-equipped personal computer. Even in that case, the above-described effects can be obtained.

さらに、任意の形式で圧縮して記録する動画像は撮影されたものでなくとも、例えばアナログのテレビ放送の放送画像やビデオ入力端子から入力された動画像であってもよく、また、その場合を含め、動画を記録する記録媒体は半導体メモリに限らずハードディスク等であってもかまわない。   Furthermore, a moving image that is compressed and recorded in an arbitrary format may be a moving image input from a video input terminal or a broadcast image of an analog television broadcast, for example. In addition, a recording medium for recording a moving image is not limited to a semiconductor memory, and may be a hard disk or the like.

1 カメラ本体
2 光学系
3 CCD
12 LCD
13 CPU
14 内蔵メモリ
14a 画像データ用作業領域
14b 汎用作業領域
14c リングバッファ領域
17 内蔵スピーカ
18 キー入力ブロック
19 プログラムメモリ
20 記録メディア
200 録画情報
300 録画情報
1 Camera body 2 Optical system 3 CCD
12 LCD
13 CPU
14 Built-in memory 14a Image data work area 14b General-purpose work area 14c Ring buffer area 17 Built-in speaker 18 Key input block 19 Program memory 20 Recording medium 200 Recording information 300 Recording information

Claims (9)

動画像を構成する画像データを所定のフレーム周期で画像処理しながら記録媒体に順次記録する動画像記録手段と、
この動画像記録手段による前記記録媒体への画像処理後の画像データの書込み処理に、動画像の正常な記録を阻害する遅れが生じたか否かを判断する判断手段と、
この判断手段により前記遅れが生じたと判断された場合に、その旨を示す情報を記憶する情報記憶手段と、
この情報記憶手段に記憶されている前記情報に基づいて、前記動画像記録手段による次回の記録動作で記録される動画像の画質を設定する画質設定手段と
を備えたことを特徴とする動画像記録装置。
Moving image recording means for sequentially recording image data constituting the moving image on a recording medium while performing image processing at a predetermined frame period;
Determination means for determining whether or not a delay that hinders normal recording of moving images has occurred in the writing processing of image data after image processing on the recording medium by the moving image recording means;
When it is determined by the determining means that the delay has occurred, information storage means for storing information indicating that,
A moving image comprising: an image quality setting unit that sets an image quality of a moving image recorded in a next recording operation by the moving image recording unit based on the information stored in the information storage unit Recording device.
前記情報記憶手段は、前記判断手段により遅れが生じたと判断されたときに前記動画像記録手段により記録媒体に順次記録されている動画像の画質を示す画質情報を記憶し、
前記画質設定手段は、前記動画像記録手段による次回の記録動作で記録される動画像の画質を、前記情報記憶手段に記憶されている画質情報により示される画質よりも所定の割合だけ低い画質に設定することを特徴とする請求項1記載の動画像記録装置。
The information storage means stores image quality information indicating image quality of moving images sequentially recorded on a recording medium by the moving image recording means when it is determined that a delay has occurred by the determining means;
The image quality setting means sets the image quality of the moving image recorded in the next recording operation by the moving image recording means to an image quality lower by a predetermined ratio than the image quality indicated by the image quality information stored in the information storage means. The moving image recording apparatus according to claim 1, wherein the moving image recording apparatus is set.
前記情報記憶手段は、前記判断手段により遅れが生じたと判断された場合に、前記動画像記録手段による次回の記録動作で記録される動画像の画質を示す画質情報を記憶し、
前記画質設定手段は、前記動画像記録手段による次回の記録動作で記録される動画像の画質を、前記情報記憶手段に記憶されている画質情報により示される画質に設定することを特徴とする請求項1記載の動画像記録装置。
The information storage means stores image quality information indicating an image quality of a moving image recorded in a next recording operation by the moving image recording means when it is determined that a delay has occurred by the determining means;
The image quality setting means sets an image quality of a moving image recorded in a next recording operation by the moving image recording means to an image quality indicated by image quality information stored in the information storage means. Item 4. The moving image recording apparatus according to Item 1.
前記動画像記録手段により画像処理後の画像データが前記記録媒体へ記録されるときの所要時間を計測する計測手段を備え、
前記画質設定手段は、前記動画像記録手段による次回の記録動作で記録される動画像の画質を、前記判断手段により前記遅れが生じたと判断されたときの動画像の記録途中において前記計測手段により計測された所要時間における、前記画像処理後の画像データの記録に許容されていた時間に対する超過割合に応じた割合だけ低下した画質に設定することを特徴とする請求項2記載の動画像記録装置。
Measuring means for measuring a time required when image data after image processing is recorded on the recording medium by the moving image recording means;
The image quality setting means determines the image quality of the moving image recorded in the next recording operation by the moving image recording means by the measuring means during the recording of the moving image when the determination means determines that the delay has occurred. 3. The moving image recording apparatus according to claim 2, wherein the image quality is set to be reduced by a ratio corresponding to an excess ratio with respect to a time allowed for recording the image data after the image processing in the measured required time. .
前記記録媒体に記録する複数フレーム分の画像処理後の画像データを一時記憶するバッファメモリを備え、
前記判断手段は、前記バッファメモリにおける画像データの書き込み位置と読み出し位置とが所定の関係となったとき前記遅れが生じたと判断し、
前記画質設定手段は、前記動画像記録手段による次回の記録動作で記録される動画像の画質を、前記判断手段により前記遅れが生じたと判断された時点で前記バッファメモリに記録されている前記記録媒体に未記録の画像データの合計サイズと、前記記録媒体に記録済みの画像データの合計サイズとの比率に応じた割合だけ低下した画質に設定することを特徴とする請求項1記載の動画像記録装置。
A buffer memory that temporarily stores image data after image processing for a plurality of frames to be recorded on the recording medium;
The determining means determines that the delay has occurred when a write position and a read position of image data in the buffer memory have a predetermined relationship;
The image quality setting means records the image quality of a moving image recorded in the next recording operation by the moving image recording means, which is recorded in the buffer memory when the determination means determines that the delay has occurred. 2. The moving image according to claim 1, wherein the image quality is set to a quality reduced by a ratio corresponding to a ratio between a total size of image data not recorded on the medium and a total size of image data recorded on the recording medium. Recording device.
前記動画像記録手段により画像処理後の画像データが前記記録媒体へ記録されるときの所要時間を計測する計測手段と、
前記動画像記録手段による動画像の記録途中に前記計測手段により計測された所要時間の合計、及び前記記録媒体に記録された全画像データの合計サイズから、前記記録媒体へのデータの平均書込み速度を算出する速度算出手段と、
前記動画像記録手段により新たな動画像が前記記録媒体へ記録される毎に前記算出手段により算出された平均書込み速度を履歴情報として記憶する速度履歴記憶手段と、
この速度履歴記憶手段に記憶されている履歴情報に基づき、所定期間における前記平均書込み速度の劣化度合を取得する取得手段と、
この取得手段により取得された劣化度合が決められた劣化度合を超えた旨を報知する報知手段と
を備えたことを特徴とする請求項1,2,3,5いずれかに記載の動画像記録装置。
Measuring means for measuring a time required when image data after image processing is recorded on the recording medium by the moving image recording means;
The average writing speed of data to the recording medium from the total required time measured by the measuring means during the recording of moving images by the moving image recording means and the total size of all image data recorded on the recording medium Speed calculating means for calculating
Speed history storage means for storing, as history information, an average writing speed calculated by the calculation means each time a new moving image is recorded on the recording medium by the moving image recording means;
Based on the history information stored in the speed history storage means, an acquisition means for acquiring the degree of deterioration of the average writing speed in a predetermined period;
The moving image recording according to any one of claims 1, 2, 3, and 5, further comprising a notifying means for notifying that the degree of deterioration acquired by the acquiring means exceeds a predetermined degree of deterioration. apparatus.
動画像を構成する画像データを所定のフレーム周期で画像処理しながら記録媒体に順次記録する動画像記録方法において、
前記記録媒体への画像処理後の画像データの書込み処理に、動画像の正常な記録を阻害する遅れが生じたか否かを判断する工程と、
前記遅れが生じたと判断された場合に、その旨を示す情報を記憶する工程と、
記憶した前記情報に基づいて、次回の動画像の記録動作に先立ち、記録する動画像の画質を設定する工程と
を含むことを特徴とする動画像記録方法。
In a moving image recording method for sequentially recording image data constituting a moving image on a recording medium while performing image processing at a predetermined frame period,
A step of determining whether or not a delay that hinders normal recording of a moving image has occurred in a writing process of image data after image processing on the recording medium;
When it is determined that the delay has occurred, storing information indicating that effect;
And a step of setting the image quality of the moving image to be recorded prior to the next moving image recording operation based on the stored information.
動画像を構成する画像データを所定のフレーム周期で画像処理しながら記録媒体に順次記録する動画像記録装置が有するコンピュータを、
動画像を構成する画像データを所定のフレーム周期で画像処理しながら記録媒体に順次記録する動画像記録手段と、
この動画像記録手段による前記記録媒体への画像処理後の画像データの書込み処理に、動画像の正常な記録を阻害する遅れが生じたか否かを判断する判断手段と、
この判断手段により前記遅れが生じたと判断された場合に、その旨を示す情報を情報記憶手段に記憶させる制御手段と、
前記情報記憶手段に記憶されている前記情報に基づいて、前記動画像記録手段による次回の記録動作で記録される動画像の画質を設定する画質設定手段と
して機能させるためのプログラム。
A computer having a moving image recording apparatus for sequentially recording image data constituting a moving image on a recording medium while performing image processing at a predetermined frame period;
Moving image recording means for sequentially recording image data constituting the moving image on a recording medium while performing image processing at a predetermined frame period;
Determination means for determining whether or not a delay that hinders normal recording of moving images has occurred in the writing processing of image data after image processing on the recording medium by the moving image recording means;
Control means for storing information indicating that in the information storage means when it is determined by the determination means that the delay has occurred;
A program for functioning as image quality setting means for setting the image quality of a moving image recorded in the next recording operation by the moving image recording means based on the information stored in the information storage means.
撮像手段により所定のフレーム周期で撮像された、動画像を構成する画像データを前記所定のフレーム周期で圧縮しながら着脱自在な記録媒体に順次記録する動画撮影機能を備えた電子カメラ装置において、
動画像を構成する画像データを所定のフレーム周期で画像処理しながら記録媒体に順次記録する動画像記録手段と、
この動画像記録手段による前記記録媒体への画像処理後の画像データの書込み処理に、動画像の正常な記録を阻害する遅れが生じたか否かを判断する判断手段と、
この判断手段により前記遅れが生じたと判断された場合に、その旨を示す情報を情報記憶手段に記憶させる制御手段と、
前記情報記憶手段に記憶されている前記情報に基づいて、前記動画像記録手段による次回の記録動作で記録される動画像の画質を設定する画質設定手段と
を備えたことを特徴とする電子カメラ装置。
In an electronic camera device having a moving image photographing function for sequentially recording image data constituting a moving image captured by an imaging unit on a detachable recording medium while compressing at a predetermined frame cycle.
Moving image recording means for sequentially recording image data constituting the moving image on a recording medium while performing image processing at a predetermined frame period;
Determination means for determining whether or not a delay that hinders normal recording of moving images has occurred in the writing processing of image data after image processing on the recording medium by the moving image recording means;
Control means for storing information indicating that in the information storage means when it is determined by the determination means that the delay has occurred;
An electronic camera comprising: an image quality setting unit that sets an image quality of a moving image recorded in a next recording operation by the moving image recording unit based on the information stored in the information storage unit apparatus.
JP2009055338A 2009-03-09 2009-03-09 Moving image recording apparatus, electronic camera apparatus, moving image recording method, and program Expired - Fee Related JP4687801B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2009055338A JP4687801B2 (en) 2009-03-09 2009-03-09 Moving image recording apparatus, electronic camera apparatus, moving image recording method, and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2009055338A JP4687801B2 (en) 2009-03-09 2009-03-09 Moving image recording apparatus, electronic camera apparatus, moving image recording method, and program

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP2004112615A Division JP4305254B2 (en) 2004-04-07 2004-04-07 Moving image recording apparatus, electronic camera apparatus, moving image recording method, and program

Publications (2)

Publication Number Publication Date
JP2009165158A true JP2009165158A (en) 2009-07-23
JP4687801B2 JP4687801B2 (en) 2011-05-25

Family

ID=40967150

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2009055338A Expired - Fee Related JP4687801B2 (en) 2009-03-09 2009-03-09 Moving image recording apparatus, electronic camera apparatus, moving image recording method, and program

Country Status (1)

Country Link
JP (1) JP4687801B2 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104853129A (en) * 2014-02-13 2015-08-19 广东小天才科技有限公司 Blackboard writing recording method and system thereof
CN113686878A (en) * 2021-09-03 2021-11-23 太原理工大学 Multi-stage joint detection method and system for surface defects of special steel bars

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH08331555A (en) * 1995-05-31 1996-12-13 Sanyo Electric Co Ltd Dynamic image compression, recording medium and broadcast method
JPH10164503A (en) * 1996-11-26 1998-06-19 Matsushita Electric Ind Co Ltd Video-processing device and method therefor
JP2001346216A (en) * 2000-06-06 2001-12-14 Toshiba Corp Moving picture compression method and information processor
JP2002247509A (en) * 2001-02-21 2002-08-30 Sanyo Electric Co Ltd Camera device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH08331555A (en) * 1995-05-31 1996-12-13 Sanyo Electric Co Ltd Dynamic image compression, recording medium and broadcast method
JPH10164503A (en) * 1996-11-26 1998-06-19 Matsushita Electric Ind Co Ltd Video-processing device and method therefor
JP2001346216A (en) * 2000-06-06 2001-12-14 Toshiba Corp Moving picture compression method and information processor
JP2002247509A (en) * 2001-02-21 2002-08-30 Sanyo Electric Co Ltd Camera device

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104853129A (en) * 2014-02-13 2015-08-19 广东小天才科技有限公司 Blackboard writing recording method and system thereof
CN113686878A (en) * 2021-09-03 2021-11-23 太原理工大学 Multi-stage joint detection method and system for surface defects of special steel bars
CN113686878B (en) * 2021-09-03 2024-02-09 太原理工大学 Multi-stage joint detection method and system for surface defects of special steel bar

Also Published As

Publication number Publication date
JP4687801B2 (en) 2011-05-25

Similar Documents

Publication Publication Date Title
JP4725183B2 (en) Imaging apparatus and method
JP4315085B2 (en) Camera device and moving image shooting method
US7705904B2 (en) Moving-image recording device for recording moving image
US8743227B2 (en) Imaging apparatus and control method for reducing a load of writing image data on a recording medium
JP4777180B2 (en) Imaging apparatus and control method thereof
WO2008053716A1 (en) Imaging device and imaging method
JP4577557B2 (en) Electronic camera device, moving image recording method and program
JP2006310907A (en) Imaging apparatus and its control method
JP4687801B2 (en) Moving image recording apparatus, electronic camera apparatus, moving image recording method, and program
US8379093B2 (en) Recording and reproduction apparatus and methods, and a recording medium storing a computer program for executing the methods
JP4785460B2 (en) Imaging apparatus and imaging method
JP4962503B2 (en) Image recording apparatus, image recording method, and program
JP4305254B2 (en) Moving image recording apparatus, electronic camera apparatus, moving image recording method, and program
JP4799504B2 (en) Image decoding apparatus and control method thereof
JP4942288B2 (en) Electronic camera device
JP4254548B2 (en) Moving image recording apparatus and program
JP2008160860A (en) Electronic camera apparatus, moving image recording method and program
JP2009050017A (en) Moving image recording apparatus and program
JP2010147531A (en) Imaging apparatus and imaging method
US11089212B2 (en) Image capture apparatus that records video signal captured at variable frame rate as moving image data, method of controlling same, and storage medium
JP2011023928A (en) Imaging apparatus, image processing apparatus and image processing method
KR101332299B1 (en) Image recording apparatus and method thereof
JP4234662B2 (en) Electronic device and data recording method thereof
JP2013058853A (en) Moving image reproduction device, moving image reproduction method, and program
JP4894938B2 (en) Electronic camera device

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20101207

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

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

R150 Certificate of patent or registration of utility model

Ref document number: 4687801

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20140225

Year of fee payment: 3

LAPS Cancellation because of no payment of annual fees