JP2005229553A - Image processing apparatus - Google Patents
Image processing apparatus Download PDFInfo
- Publication number
- JP2005229553A JP2005229553A JP2004060477A JP2004060477A JP2005229553A JP 2005229553 A JP2005229553 A JP 2005229553A JP 2004060477 A JP2004060477 A JP 2004060477A JP 2004060477 A JP2004060477 A JP 2004060477A JP 2005229553 A JP2005229553 A JP 2005229553A
- Authority
- JP
- Japan
- Prior art keywords
- image data
- bank
- period
- processing apparatus
- image processing
- 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
Links
Images
Landscapes
- Studio Devices (AREA)
- Television Signal Processing For Recording (AREA)
Abstract
Description
この発明は、画像処理装置に関し、特にたとえば、ディジタルビデオカメラに適用され、動画像データのフレームレートを変換する、画像処理装置に関する。 The present invention relates to an image processing apparatus, and more particularly to an image processing apparatus that is applied to, for example, a digital video camera and converts a frame rate of moving image data.
従来のこの種の画像処理装置の一例が、特許文献1に開示されている。この従来技術は、圧縮静止画像データからなる動画像データを再生するにあたって、1フレームの圧縮静止画像データの再生処理(1フレーム読み出し→1フレーム伸長→1フレーム表示)に要する時間と動画像データのフレームレートとに基づいてフレーム間引き数を算出し、算出されたフレーム間引き数に従う間引き処理を動画像データに施そうとするものである。これによって、再生処理に予想よりも長い時間がかかる場合でも、実時間で動く動画像を再生することができる。
しかし、従来技術では、再生処理に要する時間の測定は、1フレームについてしか行われない。このため、圧縮静止画像データのサイズがフレーム間で大きく変化し、かつ測定の対象となったフレームのサイズが小さい場合は、フレーム間引き数が最適値から外れてしまい、動画像を実時間で再生することができない。 However, in the conventional technique, the time required for the reproduction process is measured only for one frame. For this reason, when the size of compressed still image data varies greatly between frames and the size of the frame to be measured is small, the frame decimation number deviates from the optimum value, and the moving image is played back in real time. Can not do it.
それゆえに、この発明の主たる目的は、複数画面の静止画像データを任意の速度で再生することができる、新規な画像処理装置を提供することである。 Therefore, a main object of the present invention is to provide a novel image processing apparatus that can reproduce still image data of a plurality of screens at an arbitrary speed.
請求項1の発明に従う画像処理装置は、複数のメモリエリアの各々を第1期間毎に循環的に選択する選択手段、第1期間毎に得られる静止画像データを選択手段によって選択されたメモリエリアに書き込む書き込み手段、複数のメモリエリアのうち選択手段によって選択されたメモリエリアから所定エリア数離れたメモリエリアを第2期間が経過する毎に特定する特定手段、および特定手段によって特定されたメモリエリアに格納された静止画像データを読み出す読み出し手段を備える。 The image processing apparatus according to the first aspect of the present invention provides a selection means for cyclically selecting each of a plurality of memory areas for each first period, and a memory area in which still image data obtained for each first period is selected by the selection means. A writing means for writing to the memory, a specifying means for specifying a memory area that is a predetermined number of areas away from a memory area selected by the selecting means among a plurality of memory areas, each time the second period elapses, and a memory area specified by the specifying means Readout means for reading out still image data stored in the
複数のメモリエリアの各々は、選択手段によって第1期間毎に循環的に選択される。書き込み手段は、第1期間毎に得られる静止画像データをこうして選択されたメモリエリアに書き込む。特定手段は、選択されたメモリエリアから所定エリア数離れたメモリエリアを第2期間が経過する毎に特定する。特定されたメモリエリアに格納された静止画像データは、読み出し手段によって読み出される。 Each of the plurality of memory areas is cyclically selected by the selection unit every first period. The writing means writes the still image data obtained every first period into the memory area thus selected. The specifying unit specifies a memory area that is a predetermined number of areas away from the selected memory area every time the second period elapses. The still image data stored in the specified memory area is read by the reading means.
つまり、第1期間毎に得られる静止画像データは、複数のメモリエリアを介して第2期間毎に出力される。これによって、複数画面の静止画像データを任意の速度で再生することができる。 That is, still image data obtained every first period is output every second period via a plurality of memory areas. Thereby, still image data of a plurality of screens can be reproduced at an arbitrary speed.
請求項2の発明に従う画像処理装置は、請求項1に従属し、圧縮静止画像データを第1期間毎に伸長する伸長手段をさらに備え、書き込み手段は伸長手段によって伸長された静止画像データに書き込み処理を施す。 An image processing apparatus according to a second aspect of the invention is dependent on the first aspect, further comprising decompression means for decompressing the compressed still image data for each first period, and the writing means writes to the still image data decompressed by the decompression means. Apply processing.
請求項3の発明に従う画像処理装置は、請求項2に従属し、圧縮静止画像データはMPEG方式に従って圧縮された画像データである。
The image processing apparatus according to the invention of
請求項4の発明に従う画像処理装置は、請求項1ないし3のいずれかに従属し、読み出し手段は静止画像データをインタレース走査態様で読み出し、第1期間は第1フォーマットに対応する1フレーム期間であり、そして第2期間は第2フォーマットに対応する1フィールド期間である。これによって、特定手段は複数のメモリエリアを循環的に特定することとなり、再生画像の動きが滑らかになる。 An image processing apparatus according to a fourth aspect of the invention is dependent on any one of the first to third aspects, wherein the reading means reads still image data in an interlaced scanning mode, and the first period is one frame period corresponding to the first format. And the second period is a one-field period corresponding to the second format. As a result, the specifying unit cyclically specifies a plurality of memory areas, and the motion of the reproduced image becomes smooth.
請求項5の発明に従う画像処理装置は、請求項4に従属し、第1フォーマットに対応する1フレーム期間は、第2フォーマットに対応する1フレーム期間よりも短く、かつ第2フォーマットに対応する1フィールド期間よりも長い。 An image processing apparatus according to a fifth aspect of the invention is dependent on the fourth aspect, wherein one frame period corresponding to the first format is shorter than one frame period corresponding to the second format, and 1 corresponding to the second format. Longer than the field period.
請求項6の発明に従う画像処理装置は、請求項1ないし5のいずれかに従属し、第1期間毎に得られる静止画像データは動画像を形成する。 An image processing apparatus according to a sixth aspect of the present invention is dependent on any one of the first to fifth aspects, and the still image data obtained for each first period forms a moving image.
請求項7の発明に従う画像処理装置は、請求項1ないし6のいずれかに従属し、第1期間および第2期間の一方はNTSC方式に対応し、第1期間および第2期間の他方はPAL方式に対応する。これによって、NTSC方式およびPAL方式の一方に従って作成された複数画面の静止画像データを、NTSC方式およびPAL方式の他方に従う態様で再生することができる。 An image processing apparatus according to a seventh aspect of the invention is dependent on any one of the first to sixth aspects, wherein one of the first period and the second period corresponds to the NTSC system, and the other of the first period and the second period is PAL. Corresponds to the method. Thereby, still image data of a plurality of screens created according to one of the NTSC system and the PAL system can be reproduced in a mode according to the other of the NTSC system and the PAL system.
請求項8の発明に従う画像処理装置は、請求項1ないし7のいずれかに従属し、選択手段によって選択されるメモリエリアの数を第1期間および第2期間に基づいて決定する決定手段をさらに備える。これによって、メモリエリアのマッピングに要するサイズを柔軟に変更でき、メモリ容量の効率化が図られる。
An image processing apparatus according to an invention of claim 8 is dependent on any one of
請求項9の発明に従うディジタルビデオカメラは、請求項1ないし8のいずれかに記載の画像処理装置を備える。 A digital video camera according to a ninth aspect of the invention includes the image processing apparatus according to any one of the first to eighth aspects.
この発明によれば、第1期間毎に得られる静止画像データが複数のメモリエリアを介して第2期間毎に出力されるため、複数画面の静止画像データを任意の速度で再生することができる。 According to the present invention, still image data obtained every first period is output every second period via a plurality of memory areas, so that still image data of a plurality of screens can be reproduced at an arbitrary speed. .
この発明の上述の目的,その他の目的,特徴および利点は、図面を参照して行う以下の実施例の詳細な説明から一層明らかとなろう。 The above object, other objects, features and advantages of the present invention will become more apparent from the following detailed description of embodiments with reference to the drawings.
図1を参照して、この実施例のディジタルビデオカメラ10は、光学レンズ12を含む。被写界の光学像は、光学レンズ12を通してイメージセンサ14の撮像面に照射される。撮像面では、光電変換によって被写界の光学像に対応する電荷つまり生画像信号が生成される。
Referring to FIG. 1, a
キー入力装置36に設けられたモードキー36mによってカメラモードが選択されると、 スルー画像処理つまり被写界のリアルタイム動画像をLCDモニタ28に表示する処理が実行される。CPU30は、プリ露光および電荷読み出しの繰り返しをTG/SG(Timing Generator/Signal Generator)18に命令する。TG/SG18は、垂直同期信号および水平同期信号を周期的に発生し、これに同期する複数のタイミング信号をイメージセンサ14およびCDS/AGC/AD回路16に与える。この結果、イメージセンサ14のプリ露光とこれによって生成された生画像信号の読み出しとが繰り返し実行される。出力された各フレームの生画像信号は、CDS/AGC/AD回路16によってノイズ除去,レベル調整およびA/D変換の一連の処理を施され、これによってディジタル信号である生画像データが得られる。
When the camera mode is selected by the
なお、TG/SG18で生成される垂直同期信号は、NTSC方式を満足するべく、1/29.97秒に1回の割合で発生する。このため、CDS/AGC/AD回路16から出力される生画像データは、29.97fpsのフレームレートを有する。
The vertical synchronization signal generated by the TG /
CPU30は、TG/SG18から出力された垂直同期信号に応答して、信号処理回路20に処理命令を与える。信号処理回路20は、CDS/AGC/AD回路16から出力された各フレームの生画像データに白バランス調整,色分離,YUV変換などの処理を施し、YUV形式の画像データを生成する。生成された画像データはメモリ制御回路22によってSDRAM24に書き込まれる。
The
カメラモードが選択されたときは、NTSC方式に対応するクロックがビデオエンコーダ26および分周器40に与えられる。分周器40は、与えられたクロックを分周してNTSC方式に従う29.97Hzの垂直同期信号を出力する。CPU30は、この垂直同期信号に応答して、1フレームのエンコード処理をビデオエンコーダ26に命令する。
When the camera mode is selected, a clock corresponding to the NTSC system is supplied to the
ビデオエンコーダ26は、エンコード処理が命令される毎に、メモリ制御回路22を通してSDRAM24から1フレームの画像データをインタレーススキャン態様で読み出す。読み出された画像データはNTSC方式に従うコンポジットビデオ信号に変換され、変換されたコンポジットビデオ信号はLCDモニタ28に与えられる。この結果、被写界のスルー画像がモニタ画面に表示される。なお、以下では説明を適宜省略するが、SDRAM24へのアクセスは必ずメモリ制御回路22を通して行われる。
The
NTSC方式に対応するクロックは、MPEG4コーデック38および分周器42にも与えられる。分周器42は、与えられたクロックを分周してNTSC方式に従う29.97Hzの垂直同期信号を出力する。
The clock corresponding to the NTSC system is also supplied to the
動画記録キー36rが操作されたとき、CPU30は、分周器42から出力された垂直同期信号に応答して1フレームの圧縮処理をMPEG4コーデック38に命令する。MPEG4コーデック38は、圧縮処理が命令される毎にSDRAM24から1フレームの画像データを読み出す。読み出された画像データは、MPEG4方式のシンプルプロファイルに従う圧縮処理を施される。画像データは、数十〜数百フレームに1回程度の割合でイントラ符号化を施され、残りのフレームでインター符号化を施される。この結果、複数のGOP(Group Of Pictures)からなる圧縮画像データが生成される。
When the moving
生成された圧縮画像データは、SDRAM24に一旦書き込まれた後、CPU30によってファイル形式で記録媒体34に記録される。動画記録キー36rが再度操作されると、CPU30は、圧縮処理命令の発行を中止し、SDRAM24に残存する圧縮画像データの記録が完了した時点で動画ファイルをクローズする。なお、記録媒体34は着脱自在の媒体であり、スロット(図示せず)に装着されたときにI/F回路32を通してアクセス可能となる。
The generated compressed image data is once written in the
外部出力端子T1がPAL方式に対応するテレビジョンモニタ(図示せず)に接続され、 モードキー36mによって再生モードが選択されると、任意の動画ファイルの再生処理が実行される。このとき、SDRAM24上には、図2に示すように、バンク24a(バンク0),バンク24b(バンク1)およびバンク24c(バンク2)と、MPEGデータエリア24dとが形成される。
When the external output terminal T1 is connected to a television monitor (not shown) compatible with the PAL system and the playback mode is selected by the mode key 36m, playback processing of an arbitrary moving image file is executed. At this time, as shown in FIG. 2, a
CPU30は、動画ファイルに格納された圧縮画像データを1GOPずつMPEGデータエリア24dに転送する。分周器42は、再生モードにおいても29.97Hzの垂直同期信号を出力し、CPU30はかかる垂直同期信号が出力される毎にMPEG4コーデック38に伸長処理を命令する。MPEG4コーデック38は、1フレームの圧縮画像データをSDRAM24から読み出し、読み出された圧縮画像データを伸長し、そして伸長された画像データをバンク24a〜24cのいずれか1つに書き込む。
The
再生モードにおいて、ビデオエンコーダ26および分周器40に与えられるクロックは、PAL方式に対応する周波数を有する。分周器40は、かかるクロックを分周して25Hzの垂直同期信号を出力する。CPU30は、かかる垂直同期信号に応答して、1フレームの画像データのエンコード処理をビデオエンコーダ26に命令する。ビデオエンコーダ26は、1フレームの画像データをバンク24a〜24cのいずれか1つからインタレーススキャン態様で読み出し、読み出された画像データをPAL方式に従うコンポジットビデオ信号に変換する。変換されたコンポジットビデオ信号は、外部出力端子T1からテレビジョンモニタに向けて出力される。この結果、再生動画像がモニタ画面に表示される。なお、テレビジョンモニタに向けられた再生処理が実行されるとき、LCDモニタ28はオフ状態となる。
In the reproduction mode, the clock supplied to the
画像データを書き込むバンクつまり書き込み先バンクは、NTSC方式に対応する垂直同期信号に応答して指定され、画像データを読み出すバンクつまり読み出し先バンクは、PAL方式に対応する垂直同期信号に応答して指定される。書き込み先バンクは、バンク24a→バンク24b→バンク24c→バンク24a→…の順で循環的に指定される。読み出し先バンクは、書き込み先バンクの1つ手前のバンクとなる。したがって、画像データの書き込み/読み出しは、図3に示す要領で行われる。
A bank for writing image data, that is, a destination bank, is designated in response to a vertical synchronization signal corresponding to the NTSC system, and a bank for reading image data, that is, a destination bank, is designated in response to a vertical synchronization signal corresponding to the PAL system. Is done. The write destination bank is cyclically designated in the order of
NTSC方式の垂直同期信号は29.97Hzの周波数を有する一方、PAL方式の垂直同期信号は25Hzの周波数を有する。かかる周波数の相違に起因してSDRAM24上でアドレスの追い越しが発生しないように、CPU30は、再生モードが選択されたとき、図3に示す書込バンク制御タスクおよび図4に示す読出バンク制御タスクを並列的に実行する。なお、これらのタスクに対応する制御プログラムは、フラッシュメモリ44に記憶されている。
The NTSC vertical synchronizing signal has a frequency of 29.97 Hz, while the PAL vertical synchronizing signal has a frequency of 25 Hz. In order to prevent overtaking of the address on the
図3を参照して、ステップS1では、変数iおよびMP4_DEC_BANKを“0”に設定する。変数iはフレーム番号を示す変数であり、変数MP4_DEC_BANKはMPEG4コーデック38から出力された画像データを書き込むバンクの番号を示す変数である。
Referring to FIG. 3, in step S1, variable i and MP4_DEC_BANK are set to “0”. A variable i is a variable indicating a frame number, and a variable MP4_DEC_BANK is a variable indicating a bank number into which image data output from the
ステップS3ではNTSC方式に対応する垂直同期信号が分周器42から出力されたか否かを判別し、YESであればステップS5で数1に従って変数MP4_DEC_BANKを更新する。
In step S3, it is determined whether or not a vertical synchronization signal corresponding to the NTSC system has been output from the
数1によれば、変数MP4_DEC_BANKの現在の値に“1”が加算され、これによって得られた加算値が“3”で割り算される。割り算によって得られた余りが、更新後の変数MP4_DEC_BANKの値となる。たとえば求められた余りが“2”であれば、バンク24c(バンク2)が書き込み先バンクとなる。
According to
ステップS7では1フレームの伸長処理をMPEG4コーデック38に命令する。この命令には、フレーム番号(=i)とバンク番号(=MP4_DEC_BANK)とが含まれる。MPEG4コーデック38は指定されたフレームの圧縮画像データをMPEGデータエリア24dから読み出し、読み出された圧縮画像データを伸長し、そして伸長された画像データを指定されたバンクに書き込む。
In step S7, the
ステップS9では変数iをインクリメントし、続くステップS11では更新された変数iが動画ファイルに格納された圧縮画像データの総フレーム数を超えた否か判断する。ここでNOであればステップS3に戻り、YESであれば書込バンク制御タスクを終了する。 In step S9, the variable i is incremented, and in the subsequent step S11, it is determined whether or not the updated variable i exceeds the total number of frames of the compressed image data stored in the moving image file. If “NO” here, the process returns to the step S3, and if “YES”, the write bank control task is ended.
したがって、ステップS11でNOと判断される間は、書き込み先バンクが、29.97fpsの垂直同期信号に応答してバンク0→バンク1→バンク2→バンク0→…の要領で循環的に更新される。垂直同期信号に応答して伸長された各フレームの画像データは、こうして指定された書き込み先バンクに書き込まれる。
Therefore, while it is determined NO in step S11, the write destination bank is cyclically updated in the manner of
図4を参照して、ステップS21ではPAL方式に対応する垂直同期信号が分周器40から出力されたか否かを判別し、YESであればステップS23で数2に従って変数VID_ENC_BANKを求める。
Referring to FIG. 4, in step S21, it is determined whether or not a vertical synchronization signal corresponding to the PAL system is output from
数2によれば、変数MP4_DEC_BANKに“2”が加算され、これによって得られた加算値が“3”によって割り算される。割り算によって得られた余りが、変数VID_ENC_BANKとして設定される。こうして求められる変数VID_ENC_BANKは、ビデオエンコーダ26向けの画像データを読み出すバンクの番号を示す。たとえば求められた余りが“1”であれば、バンク24b(バンク1)が読み出し先バンクとなる。
According to
ステップS25では、1フレームのエンコード処理をビデオエンコーダ26に命令する。この命令には、バンク番号(=VID_ENC_BANK)が含まれる。ビデオエンコーダ26は、指定されたバンクから1フレームの画像データを読み出し、読み出された画像データをPAL方式に従うコンポジットビデオ信号に変換する。変換されたコンポジットビデオ信号は、外部出力端子T1から出力される。
In step S25, the
ステップS27では動画像の再生が完了したか否か判断し、NOであればステップS21に戻る。この結果、25fpsの垂直同期信号が発生する毎に、書き込み先バンクの1つ手前のバンクが読み出し先バンクとして指定される。 In step S27, it is determined whether the reproduction of the moving image is completed. If NO, the process returns to step S21. As a result, each time a 25 fps vertical synchronization signal is generated, the bank immediately before the write destination bank is designated as the read destination bank.
図6(A)に示す基準タイミングを参照して、バンク0に向けられた処理は図6(B)に示す要領で実行され、バンク1に向けられた処理は図6(C)に示す要領で実行され、そしてバンク2に向けられた処理は図6(D)に示す要領で実行される。
With reference to the reference timing shown in FIG. 6 (A), the processing directed to
ここで、ブロック1は、1フレームの圧縮画像データがMPEG4コーデック38によって伸長処理(デコード処理)を施される期間を示し、ブロック2は、伸長された1フレームの画像データがバンクに保持される期間を示す。また、ブロック3は、画像データが存在しない空き期間を示し、ブロック4は、1フレームの画像データがビデオエンコーダ26によってエンコードされる期間を示す。
Here,
さらに、ブロック5は、ビデオエンコーダ26によるエンコードが中止されるフレームの画像データに伸長処理が施される期間を示し、ブロック6は、ビデオエンコーダ26によるエンコードが中止されるフレームの画像データがバンクに保持される期間を示す。
Further,
読み出し先として指定されるバンクは、ブロック4の先頭タイミングで書き込み先として指定されているバンクの1つ手前のバンクである。したがって、ビデオエンコーダ26に向けられる5フレーム目の画像データは、バンク1ではなく、バンク2から読み出される。読み出される画像データは、MPEG4コーデック38から6フレーム目に出力されたデータである。同様に、ビデオエンコーダ26に向けられる10フレーム目の画像データも、バンク1ではなく、バンク2から読み出される。読み出される画像データは、MPEG4コーデック38から12フレーム目に出力されたデータである。
The bank designated as the read destination is the bank immediately before the bank designated as the write destination at the head timing of the block 4. Accordingly, the fifth frame of image data directed to the
このようなバンク切換制御を行うことによって、SDRAM24上でのアドレスの追い越しが回避され、モニタ画面上で水平方向に延びるノイズが現れるのを防止することができる。
By performing such bank switching control, address overtaking on the
他の実施例のディジタルビデオカメラ10は、再生モードが選択されたときに、分周器40がPAL方式に対応するクロックに基づいて50Hzの垂直同期信号を出力する点、およびCPU30が図7に示す読出バンク制御タスクを実行する点を除き、図1実施例と同じである。このため、同じ部分に関する重複した説明は省略する。
In the
図7を参照して、ステップS31では垂直同期信号が分周器42から出力されたか否かを判別する。YESであればステップS33に進み、上述の数2に従って変数VID_ENC_BANKを算出する。ステップS35では、1フィールドのエンコード処理をビデオエンコーダ26に命令する。この命令には、読み出し先のバンク番号(=VID_ENC_BANK)が含まれる。
Referring to FIG. 7, in step S <b> 31, it is determined whether or not a vertical synchronization signal is output from
ビデオエンコーダ26は、指定されたバンクから1フィールドの画像データを読み出す。読み出される画像データのフィールドは、バンク指定の変更に関係なく、奇数フィールド→偶数フィールド→奇数フィールド→…の要領で交互に変化する。ビデオエンコーダ26は、読み出された画像データをPAL方式に対応するコンポジットビデオ信号に変換し、変換されたコンポジットビデオ信号を外部出力端子T1から出力する。
The
ステップS37では動画像の再生が完了したか否かを判別し、NOであればステップS31に戻る。この結果、50fpsの垂直同期信号が発生する毎に1フィールドのエンコード処理が実行され、テレビジョンモニタから再生動画像が出力される。ステップS37でYESと判別されると、読出バンク制御タスクを終了する。 In step S37, it is determined whether or not the reproduction of the moving image is completed. If NO, the process returns to step S31. As a result, every time a 50 fps vertical synchronizing signal is generated, one field of encoding processing is executed, and a playback moving image is output from the television monitor. If YES is determined in the step S37, the read bank control task is ended.
図8(A)に示す基準タイミングを参照して、バンク0に向けられた処理は図8(B)に示す要領で実行され、バンク1に向けられた処理は図8(C)に示す要領で実行され、そしてバンク2に向けられた処理は図8(D)に示す要領で実行される。なお、ブロック4は、1フィールドの画像データがビデオエンコーダ26によってエンコードされる期間を示す。
Referring to the reference timing shown in FIG. 8 (A), the processing directed to
図1実施例と同様、読み出し先として指定されるバンクは、ブロック4の先頭タイミングで書き込み先として指定されているバンクの1つ手前のバンクである。ただし、ブロック4の先頭タイミングは、1/50秒に1回の割合で発生する。 As in the embodiment of FIG. 1, the bank designated as the read destination is the bank immediately before the bank designated as the write destination at the head timing of the block 4. However, the head timing of the block 4 occurs once every 1/50 seconds.
この結果、ビデオエンコーダ26に向けられる4フィールド目の画像データは、バンク1ではなく、バンク2から読み出される。読み出される画像データは、MPEG4コーデック38から4フレーム目に出力された画像データを形成する1フィールド目の画像データである。同様に、ビデオエンコーダ26に向けられる9フィールド目の画像データも、バンク1ではなく、バンク2から読み出される。読み出される画像データは、MPEG4コーデック38から7フレーム目に出力された画像データを形成する1フィールド目の画像データである。
As a result, the image data of the fourth field directed to the
このようなバンク切換制御を行うことによって、図1実施例と同様に、モニタ画面上で水平方向に延びるノイズが現れるのを防止することができる。さらに、この実施例では、読み出し先バンクもバンク0→バンク1→バンク2→バンク0→…の順で循環的に指定されるため、再生画像の動きが滑らかになる。
By performing such bank switching control, it is possible to prevent the occurrence of noise extending in the horizontal direction on the monitor screen, as in the embodiment of FIG. Further, in this embodiment, the read destination bank is also designated cyclically in the order of
図9を参照して、その他の実施例のディジタルビデオカメラ10は、以下で述べる点を除き、図1実施例と同じであるため、同じ部分についての重複した説明は省略する。
Referring to FIG. 9, the
TG/SG18はPAL方式に従う25Hzの垂直同期信号を発生し、カメラモードにおいてCDS/AGC/AD回路16から出力される生画像データは、25fpsのフレームレートを有する。ビデオエンコーダ26は、カメラモードにおいてPAL方式に対応するクロックに応答して動作し、NTSC方式のテレビジョンモニタ(図示せず)に向けられた再生モードにおいてNTSC方式に対応するクロックに応答して動作する。MPEG4コーデック38は、カメラモードおよび再生モードのいずれにおいても、PAL方式に対応するクロックに応答して動作する。
The TG /
分周器40は、カメラモードでPAL方式に従う25Hzの垂直同期信号を出力し、再生モードでNTSC方式に従う29.97Hzの垂直同期信号を出力する。分周器42は、カメラモードおよび再生モードのいずれにおいても、PAL方式に従う25Hzの垂直同期信号を出力する。
The
したがって、カメラモードでは、25fpsのフレームレートを有するスルー画像がLCDモニタ28から出力され、25fpsのフレームレートで生成される圧縮画像データがファイル形式で記録媒体34に記録される。再生モードでは、記録媒体34に記録された圧縮画像データが25fpsのフレームレートで伸長処理を施され、伸長された画像データが29.97fpsのフレームレートでNTSC方式のコンポジットビデオ信号に変換される。
Accordingly, in the camera mode, a through image having a frame rate of 25 fps is output from the
CPU30は、再生モードが選択されたとき、図10に示す書込バンク制御タスクと図11に示す読出バンク制御タスクとを並列的に実行する。ただし、これらのタスクは、ステップS43で注目される垂直同期信号の周波数が25Hzであり、ステップS61で注目される垂直同期信号の周波数が29.97Hzである点を除き、図1実施例と同じである。
When the reproduction mode is selected, the
しかし、かかる周波数の相違があるため、図12(A)に示す基準タイミングを参照して、バンク0に向けられた処理は図12(B)に示す要領で実行され、バンク1に向けられた処理は図12(C)に示す要領で実行され、そしてバンク2に向けられた処理は図12(D)に示す要領で実行される。図1実施例と同様、読み出し先として指定されるバンクは、ブロック4の先頭タイミングで書き込み先として指定されているバンクの1つ手前のバンクである。
However, since there is such a frequency difference, referring to the reference timing shown in FIG. 12 (A), the processing directed to
この結果、ビデオエンコーダ26に向けられる6フレーム目の画像データは、バンク2ではなく、バンク1から読み出される。読み出される画像データは、MPEG4コーデック38から5フレーム目に出力された画像データである。同様に、ビデオエンコーダ26に向けられる12フレーム目の画像データも、バンク1ではなく、バンク0から読み出される。読み出される画像データは、MPEG4コーデック38から10フレーム目に出力された画像データである。
As a result, the sixth frame image data directed to the
以上の説明から分かるように、SDRAM24に形成された複数のバンク24a〜24cの各々は、CPU30によって、1/29.97秒または1/25秒に1回の割合で循環的に選択される(S3 or S25)。MPEG4コーデック42は、1/29.97秒毎または1/25秒毎に得られる1フレームの画像データをこうして選択されたバンクに書き込む。CPU30はまた、選択された書き込み先バンクの1つ手前のバンクを1/25秒,1/50秒または1/29.97秒が経過する毎に特定する(S23, S33 or S63)。特定されたバンクに書き込まれた画像データは、ビデオエンコーダ26によって読み出される。
As can be seen from the above description, each of the plurality of
これによって、NTSC方式およびPAL方式の一方に対応する動画像をNTSC方式およびPAL方式の他方に従う態様で再生することができる。 Thereby, a moving image corresponding to one of the NTSC system and the PAL system can be reproduced in a mode according to the other of the NTSC system and the PAL system.
図13を参照して、さらにその他の実施例のディジタルビデオカメラ10は、以下で述べる点を除き、図1実施例と同じであるため、同じ部分についての重複した説明は省略する。
Referring to FIG. 13, the
CPU30は、再生モードが選択されたとき、図14に示すバンク数決定タスクを実行する。まずステップS71で、所望の動画ファイルに格納された動画像データのフレームレート情報をファイルヘッダから取得する。つまり、上述の説明では省略しているが、動画ファイルの先頭にはヘッダが形成され、ここにフレームレート情報が書き込まれている。ステップS71では、かかるフレームレート情報を取得する。取得されたフレームレート情報が示す数値は、変数MOV_FPSに設定される。
When the reproduction mode is selected, the
ステップS73では、変数MOV_FPSに対応するクロックの発生をクロック発生器46に命令する。ステップS75では、ビデオエンコーダ26から出力されるコンポジットビデオ信号の1フレーム期間を示す変数VF_TIME(図16参照)を、MPEG4デコーダが1フレームの圧縮画像データの伸長処理に費やす時間を示す変数DEC_TIME(=1/MOV_FPS)と比較する。
In step S73, the
ここで、変数VF_TIMEが変数DEC_TIMEと等しければ、ステップS75からステップS79に進み、動画ファイルの再生に必要なバンク数を示す変数BANK_Nを“2”に設定する。一方、変数VF_TIMEが変数DEC_TIMEと等しくなければ、ステップS75からステップS77に進み、数3に従って変数BANK_Nを算出する。
Here, if the variable VF_TIME is equal to the variable DEC_TIME, the process proceeds from step S75 to step S79, and the variable BANK_N indicating the number of banks necessary for reproducing the moving image file is set to “2”. On the other hand, if the variable VF_TIME is not equal to the variable DEC_TIME, the process proceeds from step S75 to step S77, and the variable BANK_N is calculated according to
図16から分かるように、変数ENC_TIMEは、ビデオエンコーダ26から出力される各フィールドのコンポジットビデオ信号に向けられた変数であり、具体的には、注目するフィールドの先頭からこのフィールドに属する映像期間の末尾までの期間である。
As can be seen from FIG. 16, the variable ENC_TIME is a variable directed to the composite video signal of each field output from the
数3によれば、変数ENC_TIMEが変数DEC_TIMEによって割り算され、これによって得られた割り算値の整数部に“3”が加算される。
According to
たとえば、動画ファイルに格納された動画像データのフレームレートが25fpsで、ビデオエンコーダ26から出力されるコンポジットビデオ信号のフレームレートが29.97fpsであれば、変数ENC_TIMEは“1/59.94−α”秒となり、変数DEC_TIMEは“1/25”秒となり、この結果、変数BANK_Nは“3”となる。なお、“α”は各フィールドの末尾のブランキング期間に相当する。
For example, if the frame rate of the moving image data stored in the moving image file is 25 fps and the frame rate of the composite video signal output from the
また、動画ファイルに格納された動画像データのフレームレートが25fpsで、ビデオエンコーダ26から出力されるコンポジットビデオ信号のフレームレートが10fpsであれば、変数ENC_TIMEは“1/10−α”秒となり、変数DEC_TIMEは“1/25”秒となり、この結果、変数BANK_Nは“5”となる。
If the frame rate of the moving image data stored in the moving image file is 25 fps and the frame rate of the composite video signal output from the
SDRAM24には、ステップS77またはS79で決定された変数BANK_Nに相当する数のバンクが形成される。ステップS81では書込バンク制御タスクおよび読出バンク制御タスクを起動し、その後このタスクを終了する。
In the
図15を参照して、この実施例の書込バンク制御タスクは、ステップS3´で変数MOV_FPSに相当する周期の垂直同期信号に注目する点を除き、上述の実施例と同じである。なお、かかる垂直同期信号は、ステップS73の処理によって分周器42から出力される。
Referring to FIG. 15, the write bank control task of this embodiment is the same as that of the above-described embodiment except that attention is paid to the vertical synchronization signal having a period corresponding to variable MOV_FPS in step S3 ′. The vertical synchronizing signal is output from the
この実施例によれば、動画ファイルに格納された動画像データのフレームレートに基づいてバンク数を変更するようにしたため、SDRAM24の効率的な利用を図ることができる。
According to this embodiment, since the number of banks is changed based on the frame rate of moving image data stored in a moving image file, the
なお、上述の実施例では、画像データのみを記録媒体に記録するようにしているが、画像データとともに音声データを記録し、互いに関連する画像データおよび音声データを同時に再生するようにしてもよい。 In the above-described embodiment, only the image data is recorded on the recording medium. However, the audio data may be recorded together with the image data, and the associated image data and audio data may be reproduced simultaneously.
また、上述の実施例では、書き込み先バンクの1つ手前のバンクを読み出し先バンクとして指定するが、バンク数が3つよりも大きければ、書き込み先バンクの2つ手前または3つ手前のバンクを読み出し先バンクとして指定してもよい。 In the above-described embodiment, the bank immediately before the write destination bank is designated as the read destination bank. However, if the number of banks is larger than three, the bank before the write destination bank or the bank before the third write destination bank is designated. It may be designated as a read destination bank.
10 …ディジタルビデオカメラ
14 …イメージセンサ
24 …SDRAM
26 …ビデオエンコーダ
30 …CPU
40,42 …分周器
46 …クロック発生器
10 ...
26 ...
40, 42 ...
Claims (9)
前記第1期間毎に得られる静止画像データを前記選択手段によって選択されたメモリエリアに書き込む書き込み手段、
前記複数のメモリエリアのうち前記選択手段によって選択されたメモリエリアから所定エリア数離れたメモリエリアを第2期間が経過する毎に特定する特定手段、および
前記特定手段によって特定されたメモリエリアに格納された静止画像データを読み出す読み出し手段を備える、画像処理装置。 Selection means for cyclically selecting each of the plurality of memory areas for each first period;
Writing means for writing still image data obtained for each first period into the memory area selected by the selection means;
A specifying unit that specifies a memory area that is a predetermined number of areas away from the memory area selected by the selection unit among the plurality of memory areas, and stores the memory area in the memory area that is specified by the specifying unit. An image processing apparatus comprising reading means for reading out still image data.
前記書き込み手段は前記伸長手段によって伸長された静止画像データに書き込み処理を施す、請求項1記載の画像処理装置。 Further comprising decompression means for decompressing compressed still image data for each of the first periods;
The image processing apparatus according to claim 1, wherein the writing unit performs a writing process on the still image data expanded by the expansion unit.
前記第1期間は第1フォーマットに対応する1フレーム期間であり、そして
前記第2期間は第2フォーマットに対応する1フィールド期間である、請求項1ないし3のいずれかに記載の画像処理装置。 The reading means reads the still image data in an interlaced scanning manner;
4. The image processing apparatus according to claim 1, wherein the first period is one frame period corresponding to a first format, and the second period is one field period corresponding to a second format. 5.
前記第1期間および前記第2期間の他方はPAL方式に対応する、請求項1ないし6のいずれかに記載の画像処理装置。 One of the first period and the second period corresponds to the NTSC system,
The image processing apparatus according to claim 1, wherein the other of the first period and the second period corresponds to a PAL system.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2004060477A JP2005229553A (en) | 2004-01-16 | 2004-03-04 | Image processing apparatus |
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2004009779 | 2004-01-16 | ||
JP2004060477A JP2005229553A (en) | 2004-01-16 | 2004-03-04 | Image processing apparatus |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2005229553A true JP2005229553A (en) | 2005-08-25 |
Family
ID=35003903
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2004060477A Pending JP2005229553A (en) | 2004-01-16 | 2004-03-04 | Image processing apparatus |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2005229553A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2010016619A (en) * | 2008-07-03 | 2010-01-21 | Nec Electronics Corp | Image processing integrated circuit, and image processing apparatus and method |
JP2012037690A (en) * | 2010-08-06 | 2012-02-23 | Sharp Corp | Image processor |
JP2012099931A (en) * | 2010-10-29 | 2012-05-24 | Ricoh Co Ltd | Image pickup apparatus |
-
2004
- 2004-03-04 JP JP2004060477A patent/JP2005229553A/en active Pending
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2010016619A (en) * | 2008-07-03 | 2010-01-21 | Nec Electronics Corp | Image processing integrated circuit, and image processing apparatus and method |
JP2012037690A (en) * | 2010-08-06 | 2012-02-23 | Sharp Corp | Image processor |
JP2012099931A (en) * | 2010-10-29 | 2012-05-24 | Ricoh Co Ltd | Image pickup apparatus |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP4525561B2 (en) | Imaging apparatus, image processing method, and program | |
US8411735B2 (en) | Data processing apparatus, data processing method, and program | |
US20090103630A1 (en) | Image processing device | |
US8743227B2 (en) | Imaging apparatus and control method for reducing a load of writing image data on a recording medium | |
JP4172504B2 (en) | Image processing apparatus, imaging apparatus, and method | |
WO2008075688A1 (en) | Imaging device and method, recording device and method, and reproduction device and method | |
JP4938615B2 (en) | Video recording / playback device | |
EP1176830A1 (en) | Improved processing apparatus, image recording apparatus and image reproduction apparatus | |
JP2010074241A (en) | Moving picture reproducing apparatus, moving picture reproducing method, program, and recording medium | |
JP5164610B2 (en) | Imaging apparatus and control method thereof | |
JP3604732B2 (en) | Video system | |
JP4513487B2 (en) | Video data compression device | |
JP2005229553A (en) | Image processing apparatus | |
JP2011049927A (en) | Image processing device, and imaging apparatus with the same mounted thereon | |
JP2007228119A (en) | Imaging apparatus, image processing method, and program | |
JP4293151B2 (en) | Video encoding method and video recording apparatus | |
JP2003018532A (en) | Image sensing device | |
JP2005295426A (en) | Video information recording system, and its method, video information reproduction device and its method | |
JP2005217493A (en) | Imaging apparatus | |
JP2011091592A (en) | Image encoder, code converter, image recorder, image reproduction device, image encoding method, and integrated circuit | |
JP4190458B2 (en) | Image processing device | |
JP2007074455A (en) | Image recording and reproducing device | |
JP3910606B2 (en) | Video data compression apparatus, video recording / playback apparatus, and video data compression encoding method | |
JP2005117400A (en) | Video camera | |
JP2015029211A (en) | Imaging device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20061115 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20080401 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20080602 |
|
A02 | Decision of refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A02 Effective date: 20080708 |