JP2009200627A - Imaging apparatus and imaging method - Google Patents
Imaging apparatus and imaging method Download PDFInfo
- Publication number
- JP2009200627A JP2009200627A JP2008037816A JP2008037816A JP2009200627A JP 2009200627 A JP2009200627 A JP 2009200627A JP 2008037816 A JP2008037816 A JP 2008037816A JP 2008037816 A JP2008037816 A JP 2008037816A JP 2009200627 A JP2009200627 A JP 2009200627A
- Authority
- JP
- Japan
- Prior art keywords
- encoding
- signal processing
- processing
- memory
- system control
- 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
- Television Signal Processing For Recording (AREA)
- Studio Devices (AREA)
- Compression Or Coding Systems Of Tv Signals (AREA)
Abstract
Description
本発明は撮像装置及び撮像方法に関し、特に、静止画と動画を同時撮影する際に、静止画の高精細化と動画のフレームレート保持を両立させるために用いて好適な技術に関する。 The present invention relates to an image pickup apparatus and an image pickup method, and more particularly to a technique suitable for use in achieving both high definition of a still image and holding of a frame rate of a moving image when simultaneously shooting a still image and a moving image.
動画と共に高精細な静止画を記録する技術として、例えば、特許文献1に記載された撮像装置が知られている。この撮像装置においては、静止画をキャプチャする操作キーからの指示を検知すると、撮像中のフレームにフラグを付ける。そして、一時的に記憶されたメモリから読み出して符号化する際に、フラグが付いているフレームをフレーム内符号化で符号化を行い、それ以外をフレーム間符号化を行って記憶することにより、高精細な静止画の記録を可能としている。
As a technique for recording a high-definition still image together with a moving image, for example, an imaging device described in
前記特許文献1において提案された撮像装置の場合、画素数の大きな静止画を記録するためには、撮像素子は通常動画時の画素加算読み出しから、全画素の読み出しとなる。このために、信号処理部で処理する画素数が多大になり、処理過程におけるメモリのアクセスの帯域も非常に大きなものになる問題点があった。
In the case of the image pickup apparatus proposed in
ところで、動画を記録するための符号化はフレーム単位でピクチャタイプが異なり、Iピクチャはフレーム内符号化なので、メモリのアクセス帯域は低いが、双方向参照を行うBピクチャはメモリのアクセス帯域は高い。 By the way, the encoding for recording a moving picture has different picture types for each frame, and the I picture is an intra-frame encoding. Therefore, the memory access band is low, but the B picture that performs bi-directional reference has a high memory access band. .
一方、静止画を記録するか、動画を記録するかの指示は撮影者からの操作トリガに同期したものであり、動画記録開始から一定周期で繰り返す符号化のピクチャタイプとは非同期の関係にある。 On the other hand, the instruction to record a still image or a moving image is synchronized with an operation trigger from the photographer, and has an asynchronous relationship with the encoded picture type that repeats at a fixed period from the start of moving image recording. .
したがって、1つのシステムで撮像信号処理と符号化処理とでメモリを共有する場合、メモリアクセスの高い静止画及び動画の同時処理と、Bピクチャ符号化処理とが同一時間で重なった場合、システムに破綻をきたす可能性がある。 Therefore, when the memory is shared between the imaging signal processing and the encoding processing in one system, when the simultaneous processing of still images and moving images with high memory access and the B picture encoding processing overlap in the same time, There is a possibility of bankruptcy.
図8は、静止画及び動画の同時処理を行う様子を図示したものである。図8(a)に示したように、動画撮影中に静止画トリガが発生した場合、センサはFr1フレームを全画素加算の高画素で読み出す。そして、図8(b)に示すように、1フレーム時間遅延して信号処理が行われるが、この信号処理でのメモリアクセスは画素数が大きいためアクセス帯域が高い状態である。さらに、図8(c)に示すように、これと同一フレームで行われている符号化がBピクチャ(B1)の場合、符号化側でもアクセス帯域が高いので、このような重複はシステム破綻の原因となり得る可能性があった。 FIG. 8 illustrates a state where simultaneous processing of a still image and a moving image is performed. As shown in FIG. 8A, when a still image trigger occurs during moving image shooting, the sensor reads the Fr1 frame with a high pixel of all pixel addition. Then, as shown in FIG. 8B, signal processing is performed with a delay of one frame time. Memory access in this signal processing is in a state where the access band is high because the number of pixels is large. Further, as shown in FIG. 8 (c), when the encoding performed in the same frame is a B picture (B1), the access band is high on the encoding side. There could be a possible cause.
本発明は前述の問題点に鑑み、静止画処理及び動画処理が重複した場合においてもシステム破綻が発生しないようにすることを目的としている。 An object of the present invention is to prevent a system failure even when still image processing and moving image processing overlap.
本発明の撮像装置は、撮像素子により生成された画像信号を処理する信号処理手段と、前記信号処理手段により処理されたデータを符号化する符号化手段と、前記信号処理手段により処理されたデータ、及び前記符号化手段により符号化されたデータをメモリに保持する記憶手段と、システムの各部の制御を行うシステム制御手段とを有し、前記システム制御手段は、前記信号処理手段において行われる信号処理の処理状況に応じて、前記メモリのアクセスの量を低減するように前記符号化手段の制御を行うことを特徴とする。 An imaging apparatus according to the present invention includes a signal processing unit that processes an image signal generated by an imaging element, an encoding unit that encodes data processed by the signal processing unit, and data processed by the signal processing unit. And storage means for holding the data encoded by the encoding means in a memory, and system control means for controlling each part of the system, wherein the system control means is a signal executed by the signal processing means. The encoding means is controlled so as to reduce the amount of access to the memory according to the processing status of the processing.
本発明の撮像方法は、撮像素子により生成された画像信号を処理する信号処理工程と、前記信号処理工程において処理されたデータを符号化する符号化工程と、前記信号処理工程において処理されたデータ、及び前記符号化工程において符号化されたデータをメモリに保持する記憶工程と、システムの各部の制御を行うシステム制御工程とを有し、前記システム制御工程は、前記信号処理工程において行われる信号処理の処理状況に応じて、前記メモリのアクセスの量を低減するように前記符号化工程の制御を行うことを特徴とする。 The imaging method of the present invention includes a signal processing step for processing an image signal generated by an image sensor, an encoding step for encoding data processed in the signal processing step, and data processed in the signal processing step. And a storage step for storing the data encoded in the encoding step in a memory, and a system control step for controlling each part of the system, wherein the system control step is a signal executed in the signal processing step. The encoding process is controlled so as to reduce the amount of access to the memory in accordance with the processing status of the process.
本発明のプログラムは、撮像素子により生成された画像信号を処理する信号処理工程と、前記信号処理工程において処理されたデータを符号化する符号化工程と、前記信号処理工程において処理されたデータ、及び前記符号化工程において符号化されたデータをメモリに保持する記憶工程と、システムの各部の制御を行うシステム制御工程とをコンピュータに実行させるプログラムであって、前記システム制御工程は、前記信号処理工程において行われる信号処理の処理状況に応じて、前記メモリのアクセスの量を低減するように前記符号化工程の制御を行うことをコンピュータに実行させることを特徴とする。 The program of the present invention includes a signal processing step for processing an image signal generated by an image sensor, an encoding step for encoding data processed in the signal processing step, and data processed in the signal processing step, And a program for causing a computer to execute a storage step of storing data encoded in the encoding step in a memory and a system control step of controlling each part of the system, wherein the system control step includes the signal processing According to a processing status of signal processing performed in the process, the computer is caused to execute the control of the encoding process so as to reduce the amount of access to the memory.
本発明によれば、静止画と動画とを同時に撮影する際に、静止画処理及び動画処理が重複した場合においてもシステム破綻が発生しないようにすることが可能となり、静止画の高精細化及び動画のフレームレート保持を両立させることができる。 According to the present invention, when taking a still image and a moving image at the same time, it is possible to prevent a system failure even when the still image processing and the moving image processing are overlapped. It is possible to achieve both the movie frame rate retention.
(第1の実施形態)
図1は、本発明の撮像装置の全体構成の一例を説明するブロックである。
図1に示したように、本実施形態の撮像装置において、レンズ101により結像された映像は、センサ(撮像素子)102へ入射される。そして、センサ102で光電変換されて画像信号として生成される。この画像信号は、AD変換部104でAD変換されてデジタルデータ化され、信号処理部105へ入力される。
(First embodiment)
FIG. 1 is a block diagram illustrating an example of the overall configuration of an imaging apparatus according to the present invention.
As shown in FIG. 1, in the imaging apparatus according to the present embodiment, an image formed by the
信号処理部105は、撮影モードに応じて動画用信号処理、静止画信号処理もしくは双方の処理を行う。すなわち、静止画動画同時処理を行い、記録、表示用のデータをIP変換部106に出力する。IP変換部106は、信号処理部105から入力される現フィールドのデータと、メモリ112から読み出した前フィールド画像のデータの何れかから、もう片方のフィールドデータを適応的に補間してプログレッシブ画像を生成する。
The
システム制御部115は、撮像システム制御部113及び動画符号化制御部114によって構成されている。撮像システム制御部113は撮影モードに応じて、フレームもしくはフィールド単位で動き予測パラメータを制御する。
The
TG103は、静止画動画同時記録、静止画記録ではセンサ102から全画素を読み出し、動画記録時には画素加算したデータをセンサ102から読み出すように駆動を行う。メモリ112に保持されたプログレッシブ画像は、静止画リサイズ部108で静止画記録画角に変換されてメモリ112に書き戻される。静止画符号化部109は、静止画リサイズ部108で静止画記録画角に変換されたデータを読み出して符号化し、記録装置(図示せず)に出力する。
The TG 103 performs driving so that all pixels are read from the
動画リサイズ部107は、センサ102から読み出される画角からビデオ、記録用の画角へ変換してメモリ112へ書き戻す。VIDEO IF 110は、動画画角データを読み出して表示処理を行い、表示装置(図示せず)に出力する。動画符号化部111は、メモリ112から動画フレームデータを読み出して符号化を行い、図示しない記録装置に出力する。システム制御部115のうちの、動画符号化制御部114は、静止画動画同時記録指示に応じて、静止画動画同時処理を行うフレームを検出する。そして、その同一時間に動画符号化部111で行われる信号処理の処理状況に応じて、メモリ112のアクセスの量を低減するように、動画符号化部111で用いられる符号化パラメータを制御する。
The moving
図2は、動画符号化部111の構成例を詳細に示したブロック図である。
図2に示すように、メモリ214(図1のメモリ112)には処理フレーム、前方向参照フレーム、後方向参照フレームがバッファされている。
FIG. 2 is a block diagram illustrating a detailed configuration example of the moving image encoding unit 111.
As shown in FIG. 2, a processing frame, a forward reference frame, and a backward reference frame are buffered in the memory 214 (
第1の前方向サーチ部203は、前方向リファレンスフレームデータを低解像度で読み出し、大まかな動き予測対象マクロブロックをサーチする。サーチを行うための動き予測パラメータは、符号化制御部201より供給され、サーチ結果は符号化制御部201へ出力する。
The first
第1の後方向サーチ部204は、後方向リファレンスフレームデータを低解像度で読み出し、大まかな動き予測対象マクロブロックをサーチする。サーチを行うための動き予測パラメータは符号化制御部201より供給され、サーチ結果は符号化制御部201へ出力する。
The first backward
第2の前方向サーチ部205は、第1の前方向サーチ部203で検出されたサーチ領域を高解像度で読み出し、動き予測対象マクロブロックを決定する。サーチを行うための動き予測パラメータは符号化制御部201より供給され、サーチ結果は符号化制御部201へ出力する。
The second
第2の後方向サーチ部206は、第1の後方向サーチ部204で検出されたサーチ領域を高解像度で読み出し動き予測対象マクロブロックを決定する。サーチを行うための動き予測パラメータは符号化制御部201より供給され、サーチ結果は符号化制御部201へ出力する。
The second backward
第1の動き検出部207は、現フレームの処理マクロブロックと第2の前方向サーチ部205で検出されたマクロブロックとの差分をとり、動き検出を行う。第2の動き検出部208は現フレームの処理マクロブロックと第2の後方向サーチ部206で検出されたマクロブロックとの差分をとり、動き検出を行う。
The first
参照フレーム切り替え部209は、符号化制御部201から指示される参照タイプ(イントラ、片方向、双方向)に応じて使用するデータを選択する。そして、離散コサイン変換部(DCT)210、量子化部211、可変長符号化部212、バッファ213を経て記録される。
The reference
次に、図3のフローチャートを参照しながら、符号化処理手順の一例を説明する。
処理が開始されると、まず、ステップS301においてメモリ112に符号化対象フレームがバッファされる。次に、ステップS302において、符号化対象マクロブロックが切り出される。
Next, an example of an encoding process procedure will be described with reference to the flowchart of FIG.
When the process is started, first, the encoding target frame is buffered in the
次に、ステップS303において、切り出したマクロブロックがIピクチャもしくはイントラタイプであるか判断される。この判断の結果、Iピクチャもしくはイントラタイプであれば、ステップS304に進んで離散コサイン変換される。次に、ステップS305において量子化された後、ステップS306において可変長符号化される。 Next, in step S303, it is determined whether the extracted macroblock is an I picture or an intra type. As a result of the determination, if it is an I picture or an intra type, the process proceeds to step S304 to perform discrete cosine transform. Next, after quantization in step S305, variable length coding is performed in step S306.
一方、ステップS303の判断の結果、ステップS302で切り出したマクロブロックがIピクチャもしくはイントラタイプではなかった場合にはステップS307に進む。ステップS307においては、Pピクチャもしくは前方向参照タイプ(片方向参照型)であるか否かを判断する。 On the other hand, if the result of determination in step S303 is that the macroblock cut out in step S302 is not an I picture or intra type, the process proceeds to step S307. In step S307, it is determined whether it is a P picture or a forward reference type (one-way reference type).
この判断の結果、Pピクチャもしくは前方向参照タイプであれば、ステップS308に進む。ステップS308においては、動き予測パラメータの設定を行う。次に、ステップS309に進み、第1の前方向サーチを行う。次に、ステップS310に進み、第2の前方向サーチを行う。 If the result of this determination is that the picture is a P picture or forward reference type, the process proceeds to step S308. In step S308, motion prediction parameters are set. In step S309, a first forward search is performed. Next, proceeding to step S310, a second forward search is performed.
その後、ステップS311に進み、動き検出を前方向でのみ行う。そして、検出結果をステップS312において離散コサイン変換処理するとともに、ステップS313において量子化し、ステップS314において可変長符号化する。 Thereafter, the process proceeds to step S311, and motion detection is performed only in the forward direction. The detection result is subjected to discrete cosine transform processing in step S312, quantized in step S313, and variable length encoded in step S314.
一方、ステップS307の判断の結果、Pピクチャもしくは前方向参照タイプではなかった場合には、Bピクチャもしくはマクロブロックタイプが双方向参照型であり、かつ静止画同時処理と重複しない。そこで、この場合はステップS315に進み、双方向サーチのパラメータ設定を行う。 On the other hand, if the result of determination in step S307 is that it is not a P picture or forward reference type, the B picture or macroblock type is a bidirectional reference type and does not overlap with still image simultaneous processing. Therefore, in this case, the process proceeds to step S315, and bidirectional search parameter setting is performed.
次に、ステップS322において、静止画同時処理が重複しているか否かを判断する。この判断の結果、重複していない場合にはステップS316に進み、第1の双方向サーチを行う。次に、ステップS317に進み、第2の双方向サーチを行う。その後、ステップS318に進み、動き検出を双方向で行う。そして、検出結果をステップS319において離散コサイン変換処理するとともに、ステップS320において量子化し、ステップS321において可変長符号化する。 Next, in step S322, it is determined whether or not the still image simultaneous processing is duplicated. If the result of this determination is that there is no overlap, the process proceeds to step S316 and a first bidirectional search is performed. Next, the process proceeds to step S317, and a second bidirectional search is performed. Then, it progresses to step S318 and performs motion detection bidirectionally. The detection result is subjected to discrete cosine transform processing in step S319, quantized in step S320, and variable-length encoded in step S321.
一方、ステップS322の判断の結果、静止画同時処理が重複している場合にはステップS323に進み、ピクチャ制御を行うか否かを判断する。この判断の結果、ピクチャ制御を行わない場合にはステップS324に進み、タイプ制御を行うか否かを判断する。この判断の結果、タイプ制御を行わない場合にはステップS316に進んで前述した処理を実行する。 On the other hand, as a result of the determination in step S322, when the still image simultaneous processing is duplicated, the process proceeds to step S323 to determine whether or not to perform picture control. As a result of the determination, if the picture control is not performed, the process proceeds to step S324, and it is determined whether or not the type control is performed. As a result of this determination, if type control is not performed, the process proceeds to step S316 and the above-described processing is executed.
また、ステップS324の判断の結果、タイプ制御を行う場合にはステップS326に進み、マクロブロックはイントラタイプへ変換される。また、ステップS323の判断の結果、ピクチャ制御を行う場合にはステップS325に進み、Iピクチャへ変換される。ステップS326またはステップS325の変換処理後はステップS319に進み、前述した処理を行う。 If the type control is performed as a result of the determination in step S324, the process proceeds to step S326, and the macroblock is converted to the intra type. If the result of determination in step S323 is that picture control is to be performed, processing proceeds to step S325, where it is converted to an I picture. After the conversion process in step S326 or step S325, the process proceeds to step S319, and the above-described process is performed.
ステップS306、ステップS314またはステップS321における可変長符号化処理の後はステップS327において全てのマクロブロックの処理が完了したか否かを判断する。この判断の結果、完了していない場合にはステップS302に戻って前述した処理を繰り返し行う。また、ステップS327の判断の結果、全てのマクロブロックについて可変長符号化が完了していたらステップS301に戻り、次のフレーム処理を行う。 After the variable length coding process in step S306, step S314, or step S321, it is determined in step S327 whether or not all macroblocks have been processed. If the result of this determination is that it has not been completed, processing returns to step S302 and the above-described processing is repeated. As a result of the determination in step S327, if variable length coding has been completed for all macroblocks, the process returns to step S301 to perform the next frame processing.
図4は、フレームの制御が行われた場合の時間遷移状況を説明する図である。図4(a)は、通常撮影時に行われる符号化の時間遷移を説明する図である。図4(a)において、例えばB3というBピクチャフレームはI2及びP5を参照して動き予測を行う。P5というPピクチャはI2を参照する。このため、フレーム参照の関係でDecodeで示されるフレーム順に並び替えられGOPを構成して符号化される。 FIG. 4 is a diagram for explaining the time transition state when the frame is controlled. FIG. 4A is a diagram for explaining the temporal transition of encoding performed during normal imaging. In FIG. 4A, for example, a B picture frame called B3 performs motion prediction with reference to I2 and P5. A P picture called P5 refers to I2. For this reason, the frames are rearranged in the order of the frames indicated by Decode in relation to the frame reference, and the GOP is configured and encoded.
図4(b)は、ピクチャタイプを変更した例である。この例の場合は、B3フレームが静止画同時記録処理と重複したのでI3に変更された場合、DecodeはI3を先頭とするGOP構造となる。I3はフレーム参照しないので、メモリアクセス帯域が低減する。 FIG. 4B shows an example in which the picture type is changed. In the case of this example, when the B3 frame is overlapped with the still image simultaneous recording process and is changed to I3, Decode has a GOP structure with I3 as the head. Since I3 does not refer to the frame, the memory access bandwidth is reduced.
図4(c)は、マクロブロックタイプを変更した例である。この例の場合は、B3フレームが静止画同時記録処理と重複したので、イントラ型のタイプへ変更される。その結果、ピクチャタイプはかわらないがB3はフレーム参照しないので、メモリアクセス帯域が低減する。 FIG. 4C shows an example in which the macroblock type is changed. In the case of this example, the B3 frame is overlapped with the still image simultaneous recording process, so the type is changed to the intra type. As a result, the picture access type is not changed, but B3 does not refer to the frame, so the memory access bandwidth is reduced.
(第2の実施形態)
次に、本発明の第2の実施形態を説明する。第2の実施形態の場合も装置構成は前述した第1の実施形態と同様なので、装置構成の説明を省略する。
図5は、第2の実施形態における撮像装置の処理手順の一例を説明するフローチャートである。
処理が開始されると、まず、ステップS501においてメモリ112にフレームバッファされる。次に、ステップS502において、処理単位であるマクロブロックが切り出される。
(Second Embodiment)
Next, a second embodiment of the present invention will be described. In the case of the second embodiment as well, the apparatus configuration is the same as that of the first embodiment described above, and thus the description of the apparatus configuration is omitted.
FIG. 5 is a flowchart for explaining an example of a processing procedure of the imaging apparatus according to the second embodiment.
When the process is started, first, the frame buffer is stored in the
次に、ステップS503において、切り出したマクロブロックがIピクチャもしくはイントラタイプであるか判断される。この判断の結果、Iピクチャもしくはイントラタイプであれば、ステップS504に進んで離散コサイン変換される。次に、ステップS505において量子化された後、ステップS506において可変長符号化される。 Next, in step S503, it is determined whether the extracted macroblock is an I picture or an intra type. As a result of the determination, if it is an I picture or an intra type, the process advances to step S504 to perform discrete cosine transform. Next, after quantization in step S505, variable length coding is performed in step S506.
一方、ステップS503の判断の結果、ステップS502で切り出したマクロブロックがIピクチャもしくはイントラタイプではなかった場合にはステップS507に進む。ステップS507においては、Pピクチャもしくは前方向参照タイプであるか否かを判断する。 On the other hand, if the result of determination in step S503 is that the macroblock cut out in step S502 is not an I picture or intra type, the process proceeds to step S507. In step S507, it is determined whether it is a P picture or a forward reference type.
この判断の結果、Pピクチャもしくは前方向参照タイプであれば、ステップS508に進む。ステップS508においては、動き予測パラメータの設定を行う。次に、ステップS509に進み、第1の前方向サーチを行う。次に、ステップS510に進み、第2の前方向サーチを行う。 If the result of this determination is that the picture is a P picture or forward reference type, the process proceeds to step S508. In step S508, motion prediction parameters are set. In step S509, a first forward search is performed. Next, proceeding to step S510, a second forward search is performed.
その後、ステップS511に進み、動き検出を前方向でのみ行う。そして、検出結果をステップS512において離散コサイン変換処理するとともに、ステップS513において量子化し、ステップS514において可変長符号化する。 Thereafter, the process proceeds to step S511, and motion detection is performed only in the forward direction. The detection result is subjected to discrete cosine transform processing in step S512, quantized in step S513, and variable-length encoded in step S514.
一方、ステップS507の判断の結果、Pピクチャもしくは前方向参照タイプではなかった場合(Bピクチャ若しくは双方向参照タイプ)には、ステップS515に進んで同時処理重複か否かを判断する。この判断の結果、重複の場合にはステップS516に進んで、第1のパラメータである動き予測パラメータ1を設定する。また、重複ではない場合にはステップS517に進んで第2のパラメータである動き予測パラメータ2を設定する。なお、動き予測パラメータ1及び動き予測パラメータ2の相違については後述する。
On the other hand, if the result of determination in step S507 is not P picture or forward reference type (B picture or bidirectional reference type), the process proceeds to step S515 to determine whether or not simultaneous processing overlaps. If it is determined that there is an overlap, the process proceeds to step S516 to set
ステップS516またはステップS517において動き予測パラメータを設定した後はステップS518に進んで第1のサーチ(サーチ1)を行う。その後、ステップS519において第2のサーチ(サーチ2)を行う。これらのサーチ1,2は双方向サーチである。
After setting the motion prediction parameters in step S516 or step S517, the process proceeds to step S518 to perform a first search (search 1). Thereafter, a second search (search 2) is performed in step S519. These
その後、ステップS520に進み、動き検出を双方向で行う。そして、検出結果をステップS521において離散コサイン変換処理するとともに、ステップS522において量子化し、ステップS523において可変長符号化する。 Then, it progresses to step S520 and motion detection is performed bidirectionally. The detection result is subjected to discrete cosine transform processing in step S521, quantized in step S522, and variable-length encoded in step S523.
ステップS506、ステップS514またはステップS523における可変長符号化処理の後はステップS524において全てのマクロブロックの処理が完了したか否かを判断する。この判断の結果、完了していない場合にはステップS502に戻って前述した処理を繰り返し行う。また、ステップS524の判断の結果、全てのマクロブロックについて可変長符号化が完了していたらステップS501に戻り、次のフレーム処理を行う。 After the variable length coding process in step S506, step S514 or step S523, it is determined in step S524 whether or not all macroblocks have been processed. If the result of this determination is that it has not been completed, processing returns to step S502 and the above-described processing is repeated. As a result of the determination in step S524, if variable length coding has been completed for all macroblocks, the process returns to step S501 to perform the next frame processing.
図6は、第1のサーチ及び第2のサーチで処理されるサイズについて詳細に説明する図である。
図6において、601は参照フレーム画像であり、HSIZE×VSIZEの画角の中(参照フレーム内)の1つのマクロブロック(HSIZE_MB×VSIZE_MB)を示している。602はマクロブロックを拡大したものである。動き予測はマクロブロックをさらにHNUM_MB×VNUM_MBに分割してそれぞれ実行できる。分割数は多ければ第1のサーチ、第2のサーチの処理が分割した数だけ発生するのでメモリアクセス帯域も増大する。
FIG. 6 is a diagram for explaining in detail the sizes processed in the first search and the second search.
In FIG. 6,
603は第1のサーチの画像を示している。第1のサーチでは、参照フレーム画像601より低い解像度(HSIZE1_ALL×VSIZE1_ALL)で読み出す。そして、その中のサーチ枠(HSIZE1_SRCH×VSIZE1_SRCH)の中から、第2のサーチのサーチ枠(HSIZE1_DET×VSIZE1_DET)を検出する。604は第2のサーチのフレームである。603で検出された画角を参照フレーム画像601と同一解像度で読み出し、その枠(HSIZE2_SRCH×VSIZE2_SRCH)の中で動き検出対象マクロブロックを決定する。
図7は、図6で示した動き予測パラメータの値を、図5のステップS516において設定する動き予測パラメータ1、ステップS517で設定する動き予測パラメータ2に分けてリストにした図である。同時処理重複した場合の動き予測パラメータ1は検出枠のサイズあるいはマクロブロック数、解像度が何れも低く設定されている(略半分に設定されている)。これにより、本実施形態においては、その同一時間に動画符号化部111で行われる動き予測検出ブロックの数を低減することができるのでメモリアクセスを低減することができる。
FIG. 7 is a diagram in which the motion prediction parameter values shown in FIG. 6 are divided into a
(本発明に係る他の実施の形態)
前述した本発明の実施の形態における撮像装置を構成する各手段は、コンピュータのRAMやROMなどに記憶されたプログラムが動作することによって実現できる。このプログラム及び前記プログラムを記録したコンピュータ読み取り可能な記録媒体は本発明に含まれる。
(Another embodiment according to the present invention)
Each unit constituting the imaging apparatus according to the embodiment of the present invention described above can be realized by operating a program stored in a RAM or a ROM of a computer. This program and a computer-readable recording medium recording the program are included in the present invention.
また、本発明は、例えば、システム、装置、方法、プログラムもしくは記憶媒体等としての実施の形態も可能であり、具体的には、複数の機器から構成されるシステムに適用してもよいし、また、一つの機器からなる装置に適用してもよい。 In addition, the present invention can be implemented as a system, apparatus, method, program, storage medium, or the like, and can be applied to a system composed of a plurality of devices. Moreover, you may apply to the apparatus which consists of one apparatus.
なお、本発明は、前述した撮像方法における各工程を実行するソフトウェアのプログラム(実施の形態では図3、図5に示すフローチャートに対応したプログラム)を、システムあるいは装置に直接、あるいは遠隔から供給する。そして、そのシステムあるいは装置のコンピュータが前記供給されたプログラムコードを読み出して実行することによっても達成される場合を含む。 In the present invention, a software program (in the embodiment, a program corresponding to the flowcharts shown in FIGS. 3 and 5) for executing each step in the above-described imaging method is directly or remotely supplied to the system or apparatus. . In addition, this includes a case where the system or the computer of the apparatus is also achieved by reading and executing the supplied program code.
したがって、本発明の機能処理をコンピュータで実現するために、前記コンピュータにインストールされるプログラムコード自体も本発明を実現するものである。つまり、本発明は、本発明の機能処理を実現するためのコンピュータプログラム自体も含まれる。 Accordingly, since the functions of the present invention are implemented by computer, the program code installed in the computer also implements the present invention. In other words, the present invention includes a computer program itself for realizing the functional processing of the present invention.
その場合、プログラムの機能を有していれば、オブジェクトコード、インタプリタにより実行されるプログラム、OSに供給するスクリプトデータ等の形態であってもよい。 In that case, as long as it has the function of a program, it may be in the form of object code, a program executed by an interpreter, script data supplied to the OS, and the like.
プログラムを供給するための記録媒体としては種々の記録媒体を使用することができる。例えば、フロッピー(登録商標)ディスク、ハードディスク、光ディスク、光磁気ディスク、MO、CD−ROM、CD−R、CD−RW、磁気テープ、不揮発性のメモリカード、ROM、DVD(DVD−ROM,DVD−R)などがある。 Various recording media can be used as a recording medium for supplying the program. For example, floppy (registered trademark) disk, hard disk, optical disk, magneto-optical disk, MO, CD-ROM, CD-R, CD-RW, magnetic tape, nonvolatile memory card, ROM, DVD (DVD-ROM, DVD- R).
その他、プログラムの供給方法としては、クライアントコンピュータのブラウザを用いてインターネットのホームページに接続する。そして、前記ホームページから本発明のコンピュータプログラムそのもの、もしくは圧縮され自動インストール機能を含むファイルをハードディスク等の記録媒体にダウンロードすることによっても供給できる。 As another program supply method, a browser on a client computer is used to connect to an Internet home page. The computer program itself of the present invention or a compressed file including an automatic installation function can be downloaded from the homepage by downloading it to a recording medium such as a hard disk.
また、本発明のプログラムを構成するプログラムコードを複数のファイルに分割し、それぞれのファイルを異なるホームページからダウンロードすることによっても実現可能である。つまり、本発明の機能処理をコンピュータで実現するためのプログラムファイルを複数のユーザに対してダウンロードさせるWWWサーバも、本発明に含まれるものである。 It can also be realized by dividing the program code constituting the program of the present invention into a plurality of files and downloading each file from a different homepage. That is, a WWW server that allows a plurality of users to download a program file for realizing the functional processing of the present invention on a computer is also included in the present invention.
また、本発明のプログラムを暗号化してCD−ROM等の記憶媒体に格納してユーザに配布し、所定の条件をクリアしたユーザに対し、インターネットを介してホームページから暗号化を解く鍵情報をダウンロードさせる。そして、その鍵情報を使用することにより暗号化されたプログラムを実行してコンピュータにインストールさせて実現することも可能である。 In addition, the program of the present invention is encrypted, stored in a storage medium such as a CD-ROM, distributed to users, and key information for decryption is downloaded from a homepage via the Internet to users who have cleared predetermined conditions. Let It is also possible to execute the encrypted program by using the key information and install the program on a computer.
また、コンピュータが、読み出したプログラムを実行することによって、前述した実施の形態の機能が実現される他、コンピュータ上で稼動しているOSなどが、実際の処理の一部または全部を行うことによっても前述した実施の形態の機能が実現され得る。 In addition to the functions of the above-described embodiments being realized by the computer executing the read program, the OS running on the computer performs part or all of the actual processing. Also, the functions of the above-described embodiments can be realized.
さらに、記録媒体から読み出されたプログラムが、コンピュータに挿入された機能拡張ボードやコンピュータに接続された機能拡張ユニットに備わるメモリに書き込まれる。その後、そのプログラムの指示に基づき、その機能拡張ボードや機能拡張ユニットに備わるCPUなどが実際の処理の一部または全部を行い、その処理によっても前述した実施の形態の機能が実現される。 Further, the program read from the recording medium is written in a memory provided in a function expansion board inserted into the computer or a function expansion unit connected to the computer. Thereafter, the CPU of the function expansion board or function expansion unit performs part or all of the actual processing based on the instructions of the program, and the functions of the above-described embodiments are realized by the processing.
101 レンズ
102 センサ
103 TG
104 AD変換部
105 信号処理部
106 IP変換部
107 動画リサイズ部
108 静止画リサイズ部
109 静止画符号化部
110 VIDEO IF
111 動画符号化部
112 メモリ
113 撮像システム制御部
114 動画符号化制御部
115 システム制御部
104
111
Claims (13)
前記信号処理手段により処理されたデータを符号化する符号化手段と、
前記信号処理手段により処理されたデータ、及び前記符号化手段により符号化されたデータをメモリに保持する記憶手段と、
システムの各部の制御を行うシステム制御手段とを有し、
前記システム制御手段は、前記信号処理手段において行われる信号処理の処理状況に応じて、前記メモリのアクセスの量を低減するように前記符号化手段の制御を行うことを特徴とする撮像装置。 Signal processing means for processing an image signal generated by the image sensor;
Encoding means for encoding the data processed by the signal processing means;
Storage means for holding the data processed by the signal processing means and the data encoded by the encoding means in a memory;
System control means for controlling each part of the system,
The imaging apparatus according to claim 1, wherein the system control unit controls the encoding unit so as to reduce an access amount of the memory according to a processing state of signal processing performed in the signal processing unit.
前記信号処理工程において処理されたデータを符号化する符号化工程と、
前記信号処理工程において処理されたデータ、及び前記符号化工程において符号化されたデータをメモリに保持する記憶工程と、
システムの各部の制御を行うシステム制御工程とを有し、
前記システム制御工程は、前記信号処理工程において行われる信号処理の処理状況に応じて、前記メモリのアクセスの量を低減するように前記符号化工程の制御を行うことを特徴とする撮像方法。 A signal processing step for processing an image signal generated by the image sensor;
An encoding step for encoding the data processed in the signal processing step;
Storing the data processed in the signal processing step and the data encoded in the encoding step in a memory;
A system control process for controlling each part of the system,
The imaging method according to claim 1, wherein the system control step controls the encoding step so as to reduce an access amount of the memory according to a processing state of signal processing performed in the signal processing step.
前記信号処理工程において処理されたデータを符号化する符号化工程と、
前記信号処理工程において処理されたデータ、及び前記符号化工程において符号化されたデータをメモリに保持する記憶工程と、
システムの各部の制御を行うシステム制御工程とをコンピュータに実行させるプログラムであって、
前記システム制御工程は、前記信号処理工程において行われる信号処理の処理状況に応じて、前記メモリのアクセスの量を低減するように前記符号化工程の制御を行うことをコンピュータに実行させることを特徴とするプログラム。 A signal processing step for processing an image signal generated by the image sensor;
An encoding step for encoding the data processed in the signal processing step;
Storing the data processed in the signal processing step and the data encoded in the encoding step in a memory;
A program for causing a computer to execute a system control process for controlling each part of the system,
The system control step causes the computer to execute the control of the encoding step so as to reduce the amount of access to the memory according to the processing status of the signal processing performed in the signal processing step. Program.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2008037816A JP2009200627A (en) | 2008-02-19 | 2008-02-19 | Imaging apparatus and imaging method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2008037816A JP2009200627A (en) | 2008-02-19 | 2008-02-19 | Imaging apparatus and imaging method |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2009200627A true JP2009200627A (en) | 2009-09-03 |
Family
ID=41143697
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2008037816A Pending JP2009200627A (en) | 2008-02-19 | 2008-02-19 | Imaging apparatus and imaging method |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2009200627A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2012111825A1 (en) * | 2011-02-18 | 2012-08-23 | 株式会社Jvcケンウッド | Image processor, image processing method, and program |
US10721485B2 (en) | 2016-10-19 | 2020-07-21 | Canon Kabushiki Kaisha | Image coding apparatus, image coding method, and non-transitory computer-readable storage medium |
-
2008
- 2008-02-19 JP JP2008037816A patent/JP2009200627A/en active Pending
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2012111825A1 (en) * | 2011-02-18 | 2012-08-23 | 株式会社Jvcケンウッド | Image processor, image processing method, and program |
JP2012175303A (en) * | 2011-02-18 | 2012-09-10 | Jvc Kenwood Corp | Imaging device, imaging method, and program |
US9179065B2 (en) | 2011-02-18 | 2015-11-03 | JVC Kenwood Corporation | Image processing apparatus, image processing method, and program product |
US10721485B2 (en) | 2016-10-19 | 2020-07-21 | Canon Kabushiki Kaisha | Image coding apparatus, image coding method, and non-transitory computer-readable storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9392278B2 (en) | Image encoding or decoding apparatus, system, method, and storage medium for encoding or decoding a plurality of images in parallel | |
EP3192251B1 (en) | Image processing apparatus and image processing method | |
JP5883052B2 (en) | Image processing apparatus and control method thereof | |
JP6278712B2 (en) | Imaging apparatus and control method thereof | |
JP2009200627A (en) | Imaging apparatus and imaging method | |
US10360660B2 (en) | Image processing apparatus and image processing method for handling raw images | |
JP4616765B2 (en) | Video encoding device | |
JP2008053848A (en) | Image processor and image processing method | |
JP4921326B2 (en) | Image processing apparatus and control method thereof | |
JP6294725B2 (en) | Image processing apparatus, imaging apparatus, image processing apparatus control method, and program | |
JP4700992B2 (en) | Image processing device | |
JP5189618B2 (en) | Video encoding method, video encoding apparatus, and video encoding program | |
JP4921331B2 (en) | Image processing apparatus and control method thereof | |
JP5094750B2 (en) | Moving picture coding apparatus and moving picture coding method | |
JP2012249116A (en) | Image encoder | |
EP2487910B1 (en) | Image coding device and image coding method | |
JP5053944B2 (en) | Imaging device | |
JP4850683B2 (en) | Video signal processing apparatus, video signal processing method, program, and storage medium | |
JP2016063252A (en) | Image processing device and image processing method | |
JP2014165736A (en) | Decoder device | |
JP2009021728A (en) | Transmission and receiving system | |
JP2011015358A (en) | Video decoding apparatus and video decoding method | |
JP2010232977A (en) | Video reproduction system | |
JP2001145111A (en) | Device and method for decoding dynamic image | |
JP2006093909A (en) | Video camera |