JP2005276316A - Data recording method and device - Google Patents

Data recording method and device Download PDF

Info

Publication number
JP2005276316A
JP2005276316A JP2004087822A JP2004087822A JP2005276316A JP 2005276316 A JP2005276316 A JP 2005276316A JP 2004087822 A JP2004087822 A JP 2004087822A JP 2004087822 A JP2004087822 A JP 2004087822A JP 2005276316 A JP2005276316 A JP 2005276316A
Authority
JP
Japan
Prior art keywords
recording
data
bit rate
free space
buffer memory
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2004087822A
Other languages
Japanese (ja)
Inventor
Yoshiaki Ishimaru
善章 石丸
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fujifilm Holdings Corp
Original Assignee
Fuji Photo Film 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 Fuji Photo Film Co Ltd filed Critical Fuji Photo Film Co Ltd
Priority to JP2004087822A priority Critical patent/JP2005276316A/en
Publication of JP2005276316A publication Critical patent/JP2005276316A/en
Pending legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To provide a data recording method and device capable of recording moving picture data at a high bit rate close to a recordable maximum speed. <P>SOLUTION: A free area of a recording medium is retrieved before starting to record moving picture data (step S112), and test writing is respectively performed in one block of the first address of the free area and one block of the last address of the free area to measure recording speeds (step S114 and step S116). An initial bit rate is determined in accordance with the lower speed on the basis of measurement results (step S118). In addition, the free capacity of a recording buffer is monitored during recording the moving picture data, and a bit rate is controlled so as not to cause a buffer overflow. At this time, bit rates are changed in a unit equal to or greater than a minimum recording unit. <P>COPYRIGHT: (C)2006,JPO&NCIPI

Description

本発明はデータ記録方法及び装置に係り、特にデジルカメラやビデオカメラなどの画像記録装置における動画データの記録に好適なデータ記録技術に関する。   The present invention relates to a data recording method and apparatus, and more particularly to a data recording technique suitable for recording moving image data in an image recording apparatus such as a digital camera or a video camera.

特許文献1には、動画像信号を圧縮符号化したデジタルデータの記録又は再生を行う装置が開示されている。同文献に示された装置は、可変長符号化による動画記録の場合において、連続する複数枚の画像フレームをグループ化し、一定のグループ毎に一定のサイズ(情報量)になるように調整して符号化を行っている。   Patent Document 1 discloses an apparatus for recording or reproducing digital data obtained by compressing and encoding a moving image signal. In the case of moving image recording by variable-length coding, the apparatus shown in the same document groups a plurality of continuous image frames and adjusts them to have a certain size (information amount) for each certain group. Encoding is performed.

また、特許文献2には、記録媒体の転送速度に合わせて当該記録媒体に最適な動画又は静止画の記録モードを自動選択する映像信号記録装置が開示されている。
特開平6−284374号公報 特開平10−233986号公報
Patent Document 2 discloses a video signal recording apparatus that automatically selects a moving image or still image recording mode that is optimal for a recording medium in accordance with the transfer speed of the recording medium.
JP-A-6-284374 JP-A-10-233986

従来、動画記録を行う場合、通常は予め定められたビットレート以内に抑えるようにデータの圧縮処理が行われる。しかし、使用する記録メディアにより、また、ハードディスク(HDD)のようなディスク型メディアの場合、同じメディア内でも物理的な記録位置により、記録速度に差がある。装置にプリセットした固定値でビットレートを定めてしまう場合は、安全を見て一番遅い状態に合わせてしまうため、記録メディアの限界に近い高ビットレートでの記録ができない。   Conventionally, when performing moving image recording, data compression processing is usually performed so as to suppress the bit rate within a predetermined bit rate. However, there is a difference in recording speed depending on the recording medium used and in the case of a disk-type medium such as a hard disk (HDD), depending on the physical recording position even within the same medium. When the bit rate is determined with a fixed value preset in the apparatus, the slowest state is set for safety, so that recording at a high bit rate close to the limit of the recording medium cannot be performed.

本発明はこのような事情に鑑みてなされたもので、記録可能な最大速度に近い高ビットレートで記録を行うことができるデータ記録方法及び装置を提供することを目的とする。   The present invention has been made in view of such circumstances, and an object thereof is to provide a data recording method and apparatus capable of recording at a high bit rate close to the maximum recordable speed.

前記目的を達成するために、請求項1記載の発明に係るデータ記録方法は、記録メディアの空き領域を検出する空き領域検出工程と、前記検出された空き領域にデータの試し書きを行う試し書き工程と、前記試し書きの記録速度を測定する記録速度測定工程と、前記試し書きによる記録速度の測定結果に基づいて記録用データ書き込み時のビットレートを決定するビットレート決定工程と、を含むことを特徴とする。   In order to achieve the above object, a data recording method according to the first aspect of the present invention includes an empty area detecting step for detecting an empty area of a recording medium, and a trial writing for performing trial writing of data in the detected empty area. A recording speed measuring step for measuring the recording speed of the test writing, and a bit rate determining step for determining a bit rate at the time of writing the recording data based on the measurement result of the recording speed by the test writing. It is characterized by.

請求項1記載の発明によれば、記録用データを記録メディアに書き込む前に、記録メディアの空き領域を検出し、その空き領域に何らかのデータ(例えば、テスト用データ)を書き込む試し書き処理を行い、その記録速度を測定する。こうして得られた記録速度の実測情報から最適な(可能な限り高速の)ビットレートを設定することができる。これにより、記録メディアの種類や空き状況(逆に言えば、使用状況を示す蓄積情報量)に応じてビットレートを最適化でき、記録速度の向上を達成できる。   According to the first aspect of the present invention, before the recording data is written to the recording medium, a test writing process for detecting a free area of the recording medium and writing some data (for example, test data) in the free area is performed. Measure the recording speed. An optimum (highest possible) bit rate can be set from the actually measured information of the recording speed thus obtained. As a result, the bit rate can be optimized in accordance with the type of recording medium and the available status (in other words, the amount of stored information indicating the usage status), and the recording speed can be improved.

請求項2記載の発明は、請求項1記載のデータ記録方法に係り、前記空き領域検出工程で検出された前記空き領域のうち異なるアドレスで指定される複数箇所の記録ブロックでそれぞれ試し書きを行い、前記複数箇所の記録ブロックで実施された試し書きの記録速度の測定結果から、最も遅い記録速度に合わせて前記ビットレートを決定することを特徴とする。   A second aspect of the invention relates to the data recording method according to the first aspect, wherein each of the free areas detected in the free area detection step performs test writing in a plurality of recording blocks designated by different addresses. The bit rate is determined in accordance with the slowest recording speed from the measurement result of the recording speed of the trial writing performed in the plurality of recording blocks.

データを記録する物理位置によって書き込み速度に差がある記録メディアを使用する場合には、空き領域のうち異なる物理位置の複数の記録ブロックについてそれぞれ試し書きを行うことが好ましい。例えば、空き領域の先頭アドレスと最終アドレスの各ブロックでそれぞれ試し書きを実施して記録速度を測定し、遅い方を基準にしてビットレートを決定する。これにより、空き領域の全域について連続してデータを記録し続けることができる。   When using a recording medium having a writing speed difference depending on a physical position where data is recorded, it is preferable to perform test writing for each of a plurality of recording blocks at different physical positions in the free space. For example, trial writing is performed on each block of the free space start address and final address, the recording speed is measured, and the bit rate is determined based on the slower one. Thereby, data can be continuously recorded over the entire empty area.

請求項3記載の発明に係るデータ記録方法は、記録用データをバッファメモリに一時記憶するバッファリング工程と、前記バッファメモリから読み出した前記記録用データを記録メディアに記録する書き込み工程と、前記バッファメモリの空き容量を検出する空き容量検出工程と、前記バッファメモリのオーバーフローを発生させないように前記空き容量の検出結果に応じて前記記録用データのビットレートを制御するビットレート制御工程と、を含むことを特徴とする。   According to a third aspect of the present invention, there is provided a data recording method comprising: a buffering step for temporarily storing recording data in a buffer memory; a writing step for recording the recording data read from the buffer memory on a recording medium; and the buffer A free space detecting step for detecting a free space in the memory, and a bit rate control step for controlling the bit rate of the recording data in accordance with the detection result of the free space so as not to cause an overflow of the buffer memory. It is characterized by that.

記録用データの記録中にバッファメモリの空き具合を監視して、オーバーフローが発生しないようにビットレートを可変する。これにより、動画や音声等の時系列で連続するデータを途切れることなく記録し続けることができる。   While recording data is being recorded, the buffer memory is monitored to change the bit rate so that overflow does not occur. As a result, time-sequential data such as moving images and sounds can be recorded without interruption.

請求項4記載の発明は請求項3記載のデータ記録方法に係り、前記ビットレート制御工程は、前記バッファメモリの空き容量が所定の基準値を上回る場合に前記記録用データの圧縮率を第1の圧縮率に設定する一方、前記バッファメモリの空き容量が所定の基準値を下回る場合には前記記録用データの圧縮率を前記第1の圧縮率よりも高圧縮の第2の圧縮率に設定して符号量を削減することを特徴とする。   According to a fourth aspect of the present invention, there is provided the data recording method according to the third aspect, wherein the bit rate control step sets a first compression rate of the recording data when the free space of the buffer memory exceeds a predetermined reference value. On the other hand, when the free space of the buffer memory is lower than a predetermined reference value, the compression rate of the recording data is set to a second compression rate that is higher than the first compression rate. Thus, the code amount is reduced.

すなわち、バッファメモリの空きが所定の基準値を上回っているときは、相対的に低圧縮の第1の圧縮率で記録用データを生成し、データの品質(画像データの場合は画質)を確保する。その一方、バッファメモリの空きが所定の基準値を下回っているときは、相対的に高圧縮の第2の圧縮率で記録用データを生成し、符号量(データ量)を削減することで、バッファオーバーフローを回避して連続的なデータ記録を実現する。   That is, when the buffer memory space exceeds a predetermined reference value, recording data is generated at the first compression rate with a relatively low compression, and the data quality (image quality in the case of image data) is ensured. To do. On the other hand, when the free space in the buffer memory is lower than the predetermined reference value, the recording data is generated at the second compression rate of relatively high compression, and the code amount (data amount) is reduced. Continuous data recording is realized by avoiding buffer overflow.

請求項5記載乃至請求項9の発明は、請求項1乃至請求項4記載の方法発明を具現化する装置の発明を提供する。   The inventions according to claims 5 to 9 provide an invention of an apparatus that embodies the method invention according to claims 1 to 4.

すなわち、請求項5記載の発明に係るデータ記録装置は、記録メディアの空き領域を検出する空き領域検出手段と、前記検出された空き領域にデータの試し書きを行う試し書き処理手段と、前記試し書きの記録速度を測定する記録速度測定手段と、前記試し書きによる記録速度の測定結果に基づいて記録用データ書き込み時のビットレートを決定するビットレート決定手段と、前記決定されたビットレートに従って前記記録メディアにデータを書き込む制御を行うメディア記録手段と、を備えたことを特徴とする。   That is, the data recording apparatus according to the invention described in claim 5 includes an empty area detecting means for detecting an empty area of a recording medium, a trial writing processing means for performing a trial writing of data in the detected empty area, and the trial A recording speed measuring means for measuring the recording speed of writing, a bit rate determining means for determining a bit rate at the time of writing recording data based on the measurement result of the recording speed by the trial writing, and the bit rate according to the determined bit rate. Media recording means for performing control of writing data to the recording medium.

請求項6記載の発明は、請求項5記載のデータ記録装置に係り、前記試し書き処理手段は、前記空き領域検出手段で検出された前記空き領域のうち異なるアドレスで指定される複数箇所の記録ブロックでそれぞれ試し書きを行い、前記ビットレート決定手段は、前記複数箇所の記録ブロックで実施された試し書きの記録速度の測定結果から、最も遅い記録速度に合わせて前記ビットレートを決定することを特徴とする。   A sixth aspect of the present invention relates to the data recording apparatus according to the fifth aspect, wherein the test writing processing means records a plurality of locations designated by different addresses among the free areas detected by the free area detecting means. Each block performs test writing, and the bit rate determining means determines the bit rate according to the slowest recording speed from the measurement result of the recording speed of the test writing performed in the plurality of recording blocks. Features.

請求項7記載の発明に係るデータ記録装置は、記録用データを一時記憶するバッファメモリと、前記バッファメモリから読み出した前記記録用データを記録メディアに記録するメディア記録手段と、前記バッファメモリの空き容量を検出する空き容量検出手段と、前記バッファメモリのオーバーフローを発生させないように前記空き容量の検出結果に応じて前記記録用データのビットレートを制御するビットレート制御手段と、を備えたことを特徴とする。   According to a seventh aspect of the present invention, there is provided a data recording apparatus comprising: a buffer memory for temporarily storing recording data; a medium recording means for recording the recording data read from the buffer memory on a recording medium; Free space detecting means for detecting capacity, and bit rate control means for controlling the bit rate of the recording data in accordance with the detection result of the free capacity so as not to cause overflow of the buffer memory. Features.

請求項8記載の発明は、請求項7記載のデータ記録装置に係り、前記ビットレート制御手段は、前記バッファメモリの空き容量が所定の基準値を上回る場合に前記記録用データの圧縮率を第1の圧縮率に設定する一方、前記バッファメモリの空き容量が所定の基準値を下回る場合には前記記録用データの圧縮率を前記第1の圧縮率よりも高圧縮の第2の圧縮率に設定して符号量を削減することを特徴とする。   The invention according to claim 8 relates to the data recording apparatus according to claim 7, wherein the bit rate control means sets the compression rate of the recording data when the free space of the buffer memory exceeds a predetermined reference value. On the other hand, when the free space of the buffer memory is lower than a predetermined reference value, the compression rate of the recording data is set to a second compression rate that is higher than the first compression rate. The code amount is reduced by setting.

請求項9記載の発明は、請求項5乃至8の何れか1項記載のデータ記録装置を用いた画像記録装置を提供するものであり、請求項5乃至8の何れか1項記載のデータ記録装置と、光学像を電気信号に変換する撮像手段と、前記撮像手段を介して取得された連続画像のデータを符号化して前記記録用データを生成する信号処理手段と、を備えたことを特徴とする。   The invention according to claim 9 provides an image recording apparatus using the data recording apparatus according to any one of claims 5 to 8, and the data recording according to any one of claims 5 to 8. And an image pickup means for converting an optical image into an electric signal, and a signal processing means for generating data for recording by encoding continuous image data acquired via the image pickup means. And

本発明によれば、記録メディアの空き領域に試し書きを行ってその記録速度に応じてビットレートを決定するようにしたので、記録メディアの種類や空き状況(使用状況)に応じてビットレートを最適化でき、記録速度の向上を達成できる。   According to the present invention, since the trial writing is performed on the free space of the recording medium and the bit rate is determined according to the recording speed, the bit rate is set according to the type of recording medium and the free space (usage status). It can be optimized and the recording speed can be improved.

また、本発明の他の態様によれば、バッファメモリの空き具合を監視して、オーバーフローが発生しないようにビットレートを可変するようにしたので、動画や音声等の連続するデータを途切れることなく記録し続けることができる。   In addition, according to another aspect of the present invention, the bit rate is changed so as to prevent overflow from being monitored by monitoring the freeness of the buffer memory, so that continuous data such as moving images and sounds are not interrupted. You can keep recording.

以下添付図面に従って本発明の好ましい実施の形態について詳説する。   Hereinafter, preferred embodiments of the present invention will be described in detail with reference to the accompanying drawings.

図1は本発明の実施形態を示すデジタルカメラのブロック図である。このデジタルカメラ10は、静止画と動画の記録及び再生機能を有したデジタルカメラであり、図示のように、撮影レンズ12、撮像素子14、A/D変換器16、信号処理部18、圧縮処理部20、メディア制御部22、メモリ24、中央演算処理装置(CPU)26、表示制御部28及び表示部30を含んで構成されている。   FIG. 1 is a block diagram of a digital camera showing an embodiment of the present invention. The digital camera 10 is a digital camera having functions for recording and reproducing still images and moving images. As shown in the figure, the digital camera 10 has a photographing lens 12, an image sensor 14, an A / D converter 16, a signal processing unit 18, and a compression process. The unit 20 includes a media control unit 22, a memory 24, a central processing unit (CPU) 26, a display control unit 28, and a display unit 30.

撮影レンズ12は、単焦点レンズであってもよいし、ズームレンズなど焦点距離(撮影倍率)可変のレンズ系であってもよい。撮影レンズ12を通過した光は、撮像素子14に入射される。撮像素子14の受光面には多数のフォトセンサ(光電変換素子)が2次元的に配列され、各フォトセンサに対応して赤(R),緑(G),青(B)の原色カラーフィルタが所定の配列構造で配置されている。撮像素子14は、CCD型イメージセンサやCMOS型イメージセンサなど各種方式の撮像デバイスを用いることも可能である。また、本発明の実施に際しては単板式に限らず、3CCD方式など複数の撮像素子を用いる構成も可能である。   The taking lens 12 may be a single focus lens or a lens system such as a zoom lens with variable focal length (shooting magnification). The light that has passed through the photographing lens 12 enters the image sensor 14. A large number of photosensors (photoelectric conversion elements) are two-dimensionally arranged on the light receiving surface of the image sensor 14, and red (R), green (G), and blue (B) primary color filters corresponding to the photosensors. Are arranged in a predetermined arrangement structure. The imaging device 14 can also use various types of imaging devices such as a CCD image sensor and a CMOS image sensor. In implementing the present invention, not only a single plate type but also a configuration using a plurality of image sensors such as a 3CCD system is possible.

撮影レンズ12を介して撮像素子14の受光面に結像された被写体の光学像は、各フォトセンサによって入射光量に応じた量の信号電荷に変換され、信号電荷に応じた電気信号(画像信号)として順次読み出される。なお、撮像素子14は、シャッターゲートパルスのタイミングによって各フォトセンサの電荷蓄積時間(シャッタースピード)を制御する電子シャッター機能を有している。   The optical image of the subject formed on the light receiving surface of the image sensor 14 via the photographing lens 12 is converted into a signal charge corresponding to the amount of incident light by each photosensor, and an electric signal (image signal) corresponding to the signal charge is converted. ) Sequentially. The image sensor 14 has an electronic shutter function for controlling the charge accumulation time (shutter speed) of each photosensor according to the timing of the shutter gate pulse.

撮像素子14から出力された画像信号は、不図示のアナログ処理部によって相関二重サンプリング(CDS)処理、色分離処理、ゲイン調整等が行われた後、A/D変換器16によってデジタル信号に変換される。   The image signal output from the image sensor 14 is subjected to correlated double sampling (CDS) processing, color separation processing, gain adjustment, and the like by an analog processing unit (not shown), and then converted into a digital signal by the A / D converter 16. Converted.

A/D変換後の画像データは、信号処理部18に送られる。信号処理部18は、同時化回路(単板CCDのカラーフィルタ配列に伴う色信号の空間的なズレを補間して各点の色を計算する処理回路)、輝度・色差信号生成回路、ガンマ補正回路、輪郭補正回路、ホワイトバランス補正回路等を含む画像処理手段として機能するとともに音声処理手段して機能し、CPU26からのコマンドに従ってメモリ24を活用しながら画像信号及び音声信号を処理する。   The image data after A / D conversion is sent to the signal processing unit 18. The signal processing unit 18 includes a synchronization circuit (a processing circuit that calculates the color of each point by interpolating a spatial shift of the color signal associated with the color filter array of the single CCD), a luminance / color difference signal generation circuit, and a gamma correction. The image processing unit functions as an image processing unit including a circuit, a contour correction circuit, a white balance correction circuit, and the like and functions as an audio processing unit, and processes an image signal and an audio signal while utilizing the memory 24 in accordance with a command from the CPU 26.

A/D変換器16から信号処理部18に入力された画像データは、輝度信号(Y信号)及び色差信号(Cr,Cb 信号)に変換されるとともに、ガンマ補正等の所定の処理が施された後、メモリ24に記憶される。   The image data input from the A / D converter 16 to the signal processing unit 18 is converted into a luminance signal (Y signal) and a color difference signal (Cr, Cb signal) and subjected to predetermined processing such as gamma correction. And stored in the memory 24.

メモリ24は、CPU26の作業用領域として使用されるとともに、画像データや音声データの一時記憶領域としても使用される。また、該メモリ24は、記録メディア32へのデータ書き込み時のバッファメモリ(記録バッファ)、表示用データを格納する表示メモリとしても兼用される。   The memory 24 is used as a work area for the CPU 26 and is also used as a temporary storage area for image data and audio data. The memory 24 is also used as a buffer memory (recording buffer) for writing data to the recording medium 32 and a display memory for storing display data.

撮像中の映像をモニタ出力する場合、メモリ24に格納された画像データは表示制御部28へ送られる。表示制御部28は、入力された画像データを表示用の所定方式の信号(例えば、NTSC方式のカラー複合映像信号)に変換して表示部30に出力する。撮像素子14から出力される画像信号によってメモリ24内の画像データが定期的に書き換えられ、その画像データから生成される映像信号が表示部30に供給されることにより、撮像中の映像がリアルタイムに動画として表示される。撮影者は表示部30に表示される動画映像(スルームービー)によって撮影画角を確認できる。   When the image being captured is output to the monitor, the image data stored in the memory 24 is sent to the display control unit 28. The display control unit 28 converts the input image data into a predetermined display signal (for example, an NTSC color composite video signal) and outputs the converted signal to the display unit 30. The image data in the memory 24 is periodically rewritten by the image signal output from the image sensor 14, and the video signal generated from the image data is supplied to the display unit 30, so that the image being captured is real-time. Displayed as a video. The photographer can check the shooting angle of view from the moving image (through movie) displayed on the display unit 30.

表示部30には、撮像中の映像のみならず、記録メディア32に記録されている画像の再生映像、現在設定されているモードの情報、画像の圧縮率の情報、日時情報、コマ番号などの情報も表示可能である。また、表示部30は、利用者が各種の設定操作等を行う際のユーザインターフェース用の表示画面としても利用され、必要に応じて設定項目などのメニュー情報も表示される。なお、表示部30は、液晶表示装置、有機EL表示装置など様々な方式の表示手段を適用することが可能である。   The display unit 30 displays not only the image being captured, but also the playback image of the image recorded on the recording medium 32, information on the currently set mode, image compression rate information, date / time information, frame number, etc. Information can also be displayed. The display unit 30 is also used as a display screen for a user interface when the user performs various setting operations, and displays menu information such as setting items as necessary. Note that various types of display means such as a liquid crystal display device and an organic EL display device can be applied to the display unit 30.

不図示の操作部(例えは撮影ボタン)の操作により又は自動撮影プログラム等により発生する撮影実行指示信号に基づいて記録用画像の取り込みが開始される。こうして取り込まれた画像データは信号処理部18において所要の処理が施された後、圧縮処理部20によって圧縮符号化され、記録メディア32に記録できるビットレートに変換される。   Capture of a recording image is started based on a shooting execution instruction signal generated by an operation of an operation unit (not shown) (for example, a shooting button) or an automatic shooting program. The image data thus captured is subjected to necessary processing in the signal processing unit 18, and is then compression encoded by the compression processing unit 20 and converted into a bit rate that can be recorded on the recording medium 32.

メディア制御部22は、CPU26の指令に従い記録メディア32の読み書きを制御する手段であり、圧縮された画像データはメディア制御部22を介して記録メディア32に記録される。動画データの場合、例えば、モーション JPEG 形式やMPEG形式などのファイル形式によって記録される。   The media control unit 22 is means for controlling reading and writing of the recording medium 32 in accordance with instructions from the CPU 26, and the compressed image data is recorded on the recording medium 32 via the media control unit 22. In the case of video data, for example, it is recorded in a file format such as motion JPEG format or MPEG format.

モーションJPEG方式では、撮像素子14から取得した画像データを一旦、内部のメモリ24に記憶した後、信号処理部18において輝度/色差信号に変換し、1画像内でJPEG圧縮しながら、記録メディア32に一定のフレームレート(予め設定されているフレームレート)でフレーム画像を連続的に保存していく。MPEG方式の場合は、フレーム内圧縮及びフレーム間圧縮を行いながら記録メディア32に連続的に記録していく。もちろん、ファイル形式は上述の例に限定されない。ファイル形式は予め定められていてもよいし、利用者が選択できる構成であってもよい。   In the motion JPEG system, the image data acquired from the image sensor 14 is temporarily stored in the internal memory 24, and then converted into a luminance / color difference signal by the signal processing unit 18, and JPEG compression is performed within one image while recording media 32. The frame images are continuously stored at a constant frame rate (a preset frame rate). In the case of the MPEG system, recording is continuously performed on the recording medium 32 while performing intra-frame compression and inter-frame compression. Of course, the file format is not limited to the above example. The file format may be determined in advance or may be configured to be selectable by the user.

また、メディア制御部22は、記録メディア32の装着の有無を検出するためのメディア検知端子(不図示)を有し、記録メディア32の装着状態/未装着状態を示す検知信号はメディア制御部22からCPU26に送られる。   Further, the media control unit 22 has a media detection terminal (not shown) for detecting whether or not the recording medium 32 is mounted, and a detection signal indicating whether the recording medium 32 is mounted / not mounted is a media control unit 22. To the CPU 26.

CPU26は、デジタルカメラ10内におけるそれぞれの処理が滞りなく行われるように制御する。すなわち、CPU26は、所定のプログラムに従って本カメラシステムを統括制御する制御手段として機能するとともに、自動露出(AE)演算、自動焦点調節(AF)演算など各種の演算を実施する演算手段として機能する。CPU26は、不図示の操作部から受入する信号(操作信号)や各種センサからの検出信号に基づいてデジタルカメラ10内の各回路を制御し、例えば、記録メディア32のファイル管理や空き容量の管理、動作モードの切替制御、レンズ駆動制御、撮像制御、画像処理制御、圧縮処理部20の圧縮率制御、画像/音声データの記録・再生制御、電源制御、表示部30の表示制御等を行う。また、CPU26は、記録メディア32の書き込み速度(記録速度)を測定する手段としても機能する。   The CPU 26 performs control so that each process in the digital camera 10 is performed without delay. That is, the CPU 26 functions as a control unit that performs overall control of the camera system according to a predetermined program, and also functions as a calculation unit that performs various calculations such as automatic exposure (AE) calculation and automatic focus adjustment (AF) calculation. The CPU 26 controls each circuit in the digital camera 10 based on a signal (operation signal) received from an operation unit (not shown) and detection signals from various sensors, for example, file management of the recording medium 32 and management of free space. , Operation mode switching control, lens drive control, imaging control, image processing control, compression rate control of the compression processing unit 20, image / audio data recording / playback control, power supply control, display control of the display unit 30, and the like. The CPU 26 also functions as a means for measuring the writing speed (recording speed) of the recording medium 32.

不図示のモード選択手段によって動画撮影モードが選択され、動画記録が行われる場合、圧縮処理部20における圧縮率が低いとデータ量が大きくなり、記録メディア32への記録処理が追いつかなくなるので、かかる事態を回避すべく、本例のデジタルカメラ10では圧縮処理部20における圧縮率を適応的に可変する構成になっている。   When a moving image shooting mode is selected by a mode selection unit (not shown) and moving image recording is performed, if the compression rate in the compression processing unit 20 is low, the amount of data increases and the recording process on the recording medium 32 cannot catch up. In order to avoid the situation, the digital camera 10 of this example is configured to adaptively vary the compression rate in the compression processing unit 20.

なお、記録メディア32の形態は特に限定されず、スマートメディア(商標)やxDピクチャーカード(商標)に代表される半導体メモリカード、マイクロドライブ(商標)に代表される可搬型の小型ハードディスク、磁気ディスク、光ディスク、光磁気ディスクなど種々の媒体を用いることができる。   The form of the recording medium 32 is not particularly limited, and a semiconductor memory card represented by SmartMedia (trademark) or xD Picture Card (trademark), a portable small hard disk represented by Microdrive (trademark), or a magnetic disk. Various media such as optical disks and magneto-optical disks can be used.

図1では、1つの記録メディア32のみを示したが、本発明の実施に際しては、同種又は異種の複数の記録メディアを使用できる構成も可能である。また、画像データを保存する手段はリムーバブルメディア(デジタルカメラ10に対して着脱自在な構造の可搬型記録媒体)に限らず、デジタルカメラ10に内蔵された取外し不能な記録メディア(内部メモリ)であってもよい。   In FIG. 1, only one recording medium 32 is shown. However, in implementing the present invention, a configuration in which a plurality of recording media of the same type or different types can be used is also possible. The means for storing image data is not limited to a removable medium (a portable recording medium having a structure that is detachable from the digital camera 10), and is a non-removable recording medium (internal memory) built in the digital camera 10. May be.

次に上記の如く構成されたデジタルカメラ10の動作について説明する。   Next, the operation of the digital camera 10 configured as described above will be described.

図2は、記録開始前のシーケンスを示したフローチャートである。デジタルカメラ10に記録メディア32が挿入されると(ステップS110)、CPU26はメディア制御部22を通じて当該装着に係る記録メディア32の種類を把握し、該記録メディア32の空き領域の検索を行う(ステップS112)。   FIG. 2 is a flowchart showing a sequence before the start of recording. When the recording medium 32 is inserted into the digital camera 10 (step S110), the CPU 26 grasps the type of the recording medium 32 related to the mounting through the media control unit 22 and searches for an empty area of the recording medium 32 (step S110). S112).

空き領域の検索によって記録メディア32内に空き領域があると判定された場合は、空き領域の先頭アドレスの1ブロックで試し書きを行い、その記録速度を測定する(ステップS114)。次に、空き領域の最終アドレスの1ブロックで試し書きを行い、その記録速度を測定する(ステップS116)。   If it is determined by the free space search that there is a free space in the recording medium 32, trial writing is performed with one block at the head address of the free space, and the recording speed is measured (step S114). Next, trial writing is performed with one block at the final address of the free area, and the recording speed is measured (step S116).

これら測定結果から速度の遅い方(低速度側)に合わせて、記録可能な最大ビットレートを決定する(ステップS118)。こうして、記録開始時の(初期の)ビットレートが設定され、このビットレートに従って圧縮処理部20の圧縮率設定が行われるとともに、表示部30における記録モード表示に反映される(ステップS120)。例えば、決定されたビットレートの情報を表示させる態様、或いは、ビットレートの選択メニュー中の選択項目を制限する態様などがある。   From these measurement results, the maximum recordable bit rate is determined in accordance with the slower speed (lower speed side) (step S118). Thus, the (initial) bit rate at the start of recording is set, the compression rate of the compression processing unit 20 is set according to this bit rate, and is reflected in the recording mode display on the display unit 30 (step S120). For example, there is an aspect in which information on the determined bit rate is displayed, or an aspect in which selection items in the bit rate selection menu are limited.

このように、試し書きによって記録速度を測定し、記録メディア32への実際の書き込みスピートに応じて処理(ウエイト機能制御)を最適化することで、書き込み可能な最大ビットレートでの記録を実現する。   In this way, recording at the maximum writable bit rate is realized by measuring the recording speed by trial writing and optimizing the processing (weight function control) according to the actual writing speed to the recording medium 32. .

また、ステップS112において空き領域がない場合、又は、空き領域検索が終わる前に記録開始の指示が入力されてしまった場合など、試し書きを行うことができない場合は、メディア種ごとにプリセットされている値を使用する。この場合も、プリセットされている値によって決定されたビットレートの情報が表示部30における記録モード表示に反映される(ステップS120)。   If there is no free space in step S112 or if a recording start instruction is input before the free space search is completed, if trial writing cannot be performed, a preset is made for each media type. Use the value that is present. Also in this case, the information of the bit rate determined by the preset value is reflected in the recording mode display on the display unit 30 (step S120).

なお、空き領域が残されていないメディア(メディアフル)、書き込み防止(ライトプロテクト)状態のメディアなど、記録不能なメディアが挿入された場合には、ステップS120において表示部30にエラーメッセージ等が表示され、メディア交換が促される。   Note that if a non-recordable medium such as a medium with no free space (media full) or a write-protected (write-protected) medium is inserted, an error message or the like is displayed on the display unit 30 in step S120. And media exchange is prompted.

図2に示したフローチャートでは、空き領域の先頭アドレスの1ブロックと、最終アドレスの1ブロックについてそれぞれ試し書きを実施したが、半導体メモリカードのように、データを記録する物理位置の違いによる記録速度の差が殆どない記録メディアを使用する場合には、何れか一箇所のブロックで試し書きを実施するだけでもよい。   In the flowchart shown in FIG. 2, trial writing was performed for each of the first address block and the last address block in the empty area. However, as in the case of a semiconductor memory card, the recording speed depends on the physical position where data is recorded. In the case of using a recording medium with almost no difference, it is only necessary to perform test writing in any one block.

図3は、データ記録中のシーケンスを示すフローチャートである。動画撮影など、記録メディア32へのデータ記録が開始されると(ステップS210)、CPU26は記録バッファ(メモリ24の一部の領域を使用したバッファメモリ)の空き容量を判断する(S210)。記録バッファの空き容量が所定の基準値を上回っている場合には圧縮処理部20での圧縮率を下げて高画質を確保する(ステップS212)。   FIG. 3 is a flowchart showing a sequence during data recording. When data recording to the recording medium 32 such as moving image shooting is started (step S210), the CPU 26 determines the free capacity of the recording buffer (a buffer memory using a partial area of the memory 24) (S210). If the free space in the recording buffer exceeds a predetermined reference value, the compression rate in the compression processing unit 20 is lowered to ensure high image quality (step S212).

その一方、記録バッファのバッファ容量が所定の基準値を下回っている(空きが少ない)場合は、圧縮率を上げて符号量を削減し(ステップS214)、バッファオーバーフローを回避する。   On the other hand, if the buffer capacity of the recording buffer is below a predetermined reference value (there is little space), the compression rate is increased to reduce the code amount (step S214), thereby avoiding buffer overflow.

ステップS212又はステップS214において設定された圧縮率は記録モードに反映され(ステップS216)、記録メディア32の次ブロックへのデータ記録が行われる(ステップS218)。ステップS218の後は、ステップS212へ戻り、上述の処理工程が繰り返される。   The compression rate set in step S212 or step S214 is reflected in the recording mode (step S216), and data recording to the next block of the recording medium 32 is performed (step S218). After step S218, the process returns to step S212, and the above processing steps are repeated.

このように、動画記録中は記録バッファの空き容量を監視してビットレートを制御する。このとき、最小記録単位以上の単位でビットレートを変更することが好ましい。   In this way, the bit rate is controlled by monitoring the free space in the recording buffer during moving image recording. At this time, it is preferable to change the bit rate in units equal to or greater than the minimum recording unit.

不図示の操作部(例えは、撮影ボタンと兼用される撮影停止ボタン)の操作により又は自動撮影プログラムにより、或いはメディアフルに至った時などに発生する撮影停止指示信号に基づいて動画の取り込みが終了する。   Movie capture is performed based on a shooting stop instruction signal generated by operating an operation unit (not shown) (for example, a shooting stop button also used as a shooting button), by an automatic shooting program, or when the media is full. finish.

本発明の適用範囲は上述した実施形態に係るデジタルカメラを例に限定されず、ビデオカメラ、DVDカメラ、カメラ付き携帯電話機、PDA、モバイルパソコンなど、様々な情報機器についても本発明を適用できる。また、記録すべきデータは動画データに限定されず、音声データなど他のデータであってもよい。   The scope of application of the present invention is not limited to the digital camera according to the embodiment described above, and the present invention can also be applied to various information devices such as a video camera, a DVD camera, a camera-equipped mobile phone, a PDA, and a mobile personal computer. The data to be recorded is not limited to moving image data, and may be other data such as audio data.

本発明の実施形態を示すデジタルカメラのブロック図1 is a block diagram of a digital camera showing an embodiment of the present invention. 本例のデジタルカメラにおける記録開始前の制御手順を示すフローチャートThe flowchart which shows the control procedure before the recording start in the digital camera of this example 本例のデジタルカメラにおける記録中の制御手順を示すフローチャートFlowchart showing the control procedure during recording in the digital camera of this example

符号の説明Explanation of symbols

10…デジタルカメラ、14…撮像素子、18…信号処理部、20…圧縮処理部、22…メディア制御部、24…メモリ、26…CPU、32…記録メディア   DESCRIPTION OF SYMBOLS 10 ... Digital camera, 14 ... Imaging device, 18 ... Signal processing part, 20 ... Compression processing part, 22 ... Media control part, 24 ... Memory, 26 ... CPU, 32 ... Recording medium

Claims (9)

記録メディアの空き領域を検出する空き領域検出工程と、
前記検出された空き領域にデータの試し書きを行う試し書き工程と、
前記試し書きの記録速度を測定する記録速度測定工程と、
前記試し書きによる記録速度の測定結果に基づいて記録用データ書き込み時のビットレートを決定するビットレート決定工程と、
を含むことを特徴とするデータ記録方法。
A free space detection step for detecting a free space on the recording medium;
A trial writing step of performing trial writing of data in the detected free space;
A recording speed measuring step for measuring the recording speed of the test writing;
A bit rate determining step for determining a bit rate at the time of writing data for recording based on the measurement result of the recording speed by the test writing;
A data recording method comprising:
前記空き領域検出工程で検出された前記空き領域のうち異なるアドレスで指定される複数箇所の記録ブロックでそれぞれ試し書きを行い、
前記複数箇所の記録ブロックで実施された試し書きの記録速度の測定結果から、最も遅い記録速度に合わせて前記ビットレートを決定することを特徴とする請求項1記載のデータ記録方法。
Perform test writing in each of the plurality of recording blocks specified by different addresses among the free areas detected in the free area detection step,
2. The data recording method according to claim 1, wherein the bit rate is determined in accordance with the slowest recording speed from the measurement result of the recording speed of trial writing performed in the plurality of recording blocks.
記録用データをバッファメモリに一時記憶するバッファリング工程と、
前記バッファメモリから読み出した前記記録用データを記録メディアに記録する書き込み工程と、
前記バッファメモリの空き容量を検出する空き容量検出工程と、
前記バッファメモリのオーバーフローを発生させないように前記空き容量の検出結果に応じて前記記録用データのビットレートを制御するビットレート制御工程と、
を含むことを特徴とするデータ記録方法。
A buffering step for temporarily storing recording data in a buffer memory;
A writing step of recording the recording data read from the buffer memory on a recording medium;
A free space detecting step for detecting free space in the buffer memory;
A bit rate control step of controlling the bit rate of the recording data according to the detection result of the free capacity so as not to cause an overflow of the buffer memory;
A data recording method comprising:
前記ビットレート制御工程は、
前記バッファメモリの空き容量が所定の基準値を上回る場合に前記記録用データの圧縮率を第1の圧縮率に設定する一方、前記バッファメモリの空き容量が所定の基準値を下回る場合には前記記録用データの圧縮率を前記第1の圧縮率よりも高圧縮の第2の圧縮率に設定して符号量を削減することを特徴とする請求項3記載のデータ記録方法。
The bit rate control step includes
When the free space of the buffer memory exceeds a predetermined reference value, the compression rate of the recording data is set to the first compression rate, while when the free space of the buffer memory falls below a predetermined reference value, 4. The data recording method according to claim 3, wherein the code amount is reduced by setting the compression rate of the recording data to a second compression rate higher than the first compression rate.
記録メディアの空き領域を検出する空き領域検出手段と、
前記検出された空き領域にデータの試し書きを行う試し書き処理手段と、
前記試し書きの記録速度を測定する記録速度測定手段と、
前記試し書きによる記録速度の測定結果に基づいて記録用データ書き込み時のビットレートを決定するビットレート決定手段と、
前記決定されたビットレートに従って前記記録メディアにデータを書き込む制御を行うメディア記録手段と、
を備えたことを特徴とするデータ記録装置。
Free space detecting means for detecting free space on the recording medium;
Trial writing processing means for performing trial writing of data in the detected free space;
A recording speed measuring means for measuring the recording speed of the test writing;
A bit rate determining means for determining a bit rate at the time of recording data writing based on the measurement result of the recording speed by the test writing;
Media recording means for performing control to write data to the recording medium according to the determined bit rate;
A data recording apparatus comprising:
前記試し書き処理手段は、前記空き領域検出手段で検出された前記空き領域のうち異なるアドレスで指定される複数箇所の記録ブロックでそれぞれ試し書きを行い、
前記ビットレート決定手段は、前記複数箇所の記録ブロックで実施された試し書きの記録速度の測定結果から、最も遅い記録速度に合わせて前記ビットレートを決定することを特徴とする請求項5記載のデータ記録装置。
The test writing processing means performs test writing in each of a plurality of recording blocks specified by different addresses among the free areas detected by the free area detection means,
6. The bit rate determination unit according to claim 5, wherein the bit rate is determined in accordance with a slowest recording speed from a measurement result of a recording speed of trial writing performed in the plurality of recording blocks. Data recording device.
記録用データを一時記憶するバッファメモリと、
前記バッファメモリから読み出した前記記録用データを記録メディアに記録するメディア記録手段と、
前記バッファメモリの空き容量を検出する空き容量検出手段と、
前記バッファメモリのオーバーフローを発生させないように前記空き容量の検出結果に応じて前記記録用データのビットレートを制御するビットレート制御手段と、
を備えたことを特徴とするデータ記録装置。
A buffer memory for temporarily storing recording data;
Media recording means for recording the recording data read from the buffer memory on a recording medium;
Free space detecting means for detecting free space in the buffer memory;
Bit rate control means for controlling the bit rate of the recording data in accordance with the detection result of the free space so as not to cause an overflow of the buffer memory;
A data recording apparatus comprising:
前記ビットレート制御手段は、前記バッファメモリの空き容量が所定の基準値を上回る場合に前記記録用データの圧縮率を第1の圧縮率に設定する一方、前記バッファメモリの空き容量が所定の基準値を下回る場合には前記記録用データの圧縮率を前記第1の圧縮率よりも高圧縮の第2の圧縮率に設定して符号量を削減することを特徴とする請求項7記載のデータ記録装置。   The bit rate control means sets the compression rate of the recording data to a first compression rate when the free space of the buffer memory exceeds a predetermined reference value, while the free space of the buffer memory is set to a predetermined reference value. 8. The data according to claim 7, wherein when the value is lower than the value, the code amount is reduced by setting the compression rate of the recording data to a second compression rate higher than the first compression rate. Recording device. 請求項5乃至8の何れか1項記載のデータ記録装置と、
光学像を電気信号に変換する撮像手段と、
前記撮像手段を介して取得された連続画像のデータを符号化して前記記録用データを生成する信号処理手段と、
を備えたことを特徴とする画像記録装置。
A data recording device according to any one of claims 5 to 8,
Imaging means for converting an optical image into an electrical signal;
Signal processing means for generating data for recording by encoding data of a continuous image acquired via the imaging means;
An image recording apparatus comprising:
JP2004087822A 2004-03-24 2004-03-24 Data recording method and device Pending JP2005276316A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2004087822A JP2005276316A (en) 2004-03-24 2004-03-24 Data recording method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2004087822A JP2005276316A (en) 2004-03-24 2004-03-24 Data recording method and device

Publications (1)

Publication Number Publication Date
JP2005276316A true JP2005276316A (en) 2005-10-06

Family

ID=35175819

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2004087822A Pending JP2005276316A (en) 2004-03-24 2004-03-24 Data recording method and device

Country Status (1)

Country Link
JP (1) JP2005276316A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008177758A (en) * 2007-01-17 2008-07-31 Toshiba Corp Information processing device and recording control method
JP2010097365A (en) * 2008-10-15 2010-04-30 Kyocera Mita Corp Electronic apparatus
JP2021044705A (en) * 2019-09-11 2021-03-18 キヤノン株式会社 Imaging device, control method thereof, program, and recording medium

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008177758A (en) * 2007-01-17 2008-07-31 Toshiba Corp Information processing device and recording control method
JP2010097365A (en) * 2008-10-15 2010-04-30 Kyocera Mita Corp Electronic apparatus
JP2021044705A (en) * 2019-09-11 2021-03-18 キヤノン株式会社 Imaging device, control method thereof, program, and recording medium
JP7348783B2 (en) 2019-09-11 2023-09-21 キヤノン株式会社 Imaging device, its control method, program and recording medium

Similar Documents

Publication Publication Date Title
JP4441882B2 (en) Imaging device, display control method, program
JP4560422B2 (en) Imaging apparatus and control method thereof
JP3822380B2 (en) Image signal processing device
JP2007318725A (en) Camera, photographing control method of camera, program, and recording medium
US8054341B2 (en) Photographing apparatus for supporting overriding mode and method of controlling same
JP5141324B2 (en) Imaging apparatus, imaging apparatus control method, signal processing apparatus, and signal processing method
JP4273267B2 (en) Electronic camera
KR101770298B1 (en) digital image photographing apparatus and method for controling the same
US8040429B2 (en) Electronic apparatus having autofocus camera function
US20070058947A1 (en) Recording apparatus and recording medium managing method
JP2006148723A (en) Electronic camera apparatus, and animation recording method
US20090153677A1 (en) Recording and reproduction apparatus and methods, and a recording medium storing a computer program for executing the methods
JP5544917B2 (en) Imaging apparatus and imaging method
JP4189800B2 (en) Electronic camera
JP2005276316A (en) Data recording method and device
JP2014007454A (en) Image pickup device and image pickup method
US7479992B2 (en) Image recording apparatus
JP2006352227A (en) Imaging apparatus
JP4081814B2 (en) Electronic camera
JP4015914B2 (en) Digital camera
JP2007104292A (en) Photographing device, file management method, and file management program
JP2000197003A (en) Dynamic image recorder
JP4166148B2 (en) Image recording device
JP2008160860A (en) Electronic camera apparatus, moving image recording method and program
JP2006262128A (en) Digital camera

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20060522

A711 Notification of change in applicant

Free format text: JAPANESE INTERMEDIATE CODE: A712

Effective date: 20061213

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20080303

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20080319

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20080729