JPH0364189A - Moving compensation inter-frame coding device - Google Patents

Moving compensation inter-frame coding device

Info

Publication number
JPH0364189A
JPH0364189A JP1200573A JP20057389A JPH0364189A JP H0364189 A JPH0364189 A JP H0364189A JP 1200573 A JP1200573 A JP 1200573A JP 20057389 A JP20057389 A JP 20057389A JP H0364189 A JPH0364189 A JP H0364189A
Authority
JP
Japan
Prior art keywords
motion vector
amount
circuit
quantization step
encoding
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
JP1200573A
Other languages
Japanese (ja)
Inventor
Shuji Inoue
修二 井上
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.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial 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 Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP1200573A priority Critical patent/JPH0364189A/en
Publication of JPH0364189A publication Critical patent/JPH0364189A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To improve the quality of a reproduced picture by predicting a code quantity when a moving vector is coded to discriminate whether or not the moving vector is to be coded. CONSTITUTION:A moving vector discrimination section 50 is provided, which discriminates whether or not a moving vector detected by a moving vector detection circuit 2 is valid or invalid and predicts a coded orthogonal transformation coefficient and a code quantity of the moving vector or the code quantity of the moving vector only and also discriminates whether or not a succeeding quantization step wide is largely increased based on the predicted code quantity and the residual code quantity of a buffer 10. When a difference of the evaluation of the predicted values using the moving vector and not is between 1st and 2nd threshold levels and the succeeding quantization step width is largely increased, the moving vector is not coded. Thus, the deterioration in the quality of the reproduced picture due to an increased quantization steps is avoided and the quality of the reproduced picture is improved.

Description

【発明の詳細な説明】 産業上の利用分野 本発明は、テレビ会議、テレビ電話、テレビ監視システ
ム等に利用する動き補償フレーム間符号化装置に関する
DETAILED DESCRIPTION OF THE INVENTION Field of the Invention The present invention relates to a motion compensated interframe coding device used in video conferences, video telephones, television monitoring systems, and the like.

従来の技術 第7図は、従来の動き補償フレーム間符号化装置の構成
を示している。
BACKGROUND OF THE INVENTION FIG. 7 shows the configuration of a conventional motion compensated interframe coding device.

第7図において、ディジタル化された画像が端子1に入
力すると、動ベクトル検出回路2は、この画像と、フレ
ームメモリ3からの前フレームの再生画素値により動ベ
クトルを検出し、スイッチ4を介してフレームメモリ3
と符号化回路9に出力する。
In FIG. 7, when a digitized image is input to terminal 1, motion vector detection circuit 2 detects a motion vector based on this image and the reproduced pixel values of the previous frame from frame memory 3, and detects a motion vector via switch 4. frame memory 3
is output to the encoding circuit 9.

動ベクトル判定部5は後述するように、端子1からの画
像と、動ベクトル検出回路2により検出された動ベクト
ルと、フレームメモリ3からの前フレームの再生画素値
によりこの動ベクトルが有効か又は無効かを判定し、ス
イッチ4を制御する。
As will be described later, the motion vector determination unit 5 determines whether this motion vector is valid or not based on the image from the terminal 1, the motion vector detected by the motion vector detection circuit 2, and the reproduced pixel value of the previous frame from the frame memory 3. It is determined whether it is invalid or not, and the switch 4 is controlled.

また、加算器6は、端子1からの画像から、フレームメ
モリ3からの予測値を減算して予測誤差を出力し、直交
変換回路7は、この予測誤差を直交変換し、量子化回路
8は、直交変換回路7により変換された直交変換係数を
量子化し、符号化回路9は、この量子化された直交変換
係数と、動ベクトル検出回路2により検出された動ベク
トルを符号化し、回線バッフ710を介して回線に送出
する。
Further, the adder 6 subtracts the predicted value from the frame memory 3 from the image from the terminal 1 and outputs a prediction error, the orthogonal transformation circuit 7 orthogonally transforms this prediction error, and the quantization circuit 8 , the orthogonal transform coefficients transformed by the orthogonal transform circuit 7 are quantized, and the encoding circuit 9 encodes the quantized orthogonal transform coefficients and the motion vector detected by the motion vector detection circuit 2. to the line via.

尚、回線バッファ10からは、回線の伝送速度に整合す
るように符号化データが読み出されて回線に送出され、
また、回線バッファ10に蓄積されている残留符号化デ
ータ量に応じて量子化回路8の量子化ステップ幅が制御
され、したがって、回線バッファ10のオーバフロー、
アンダフローを防止することができる。
Note that encoded data is read out from the line buffer 10 and sent out to the line so as to match the transmission speed of the line.
Further, the quantization step width of the quantization circuit 8 is controlled according to the amount of residual encoded data stored in the line buffer 10, so that overflow of the line buffer 10,
Underflow can be prevented.

他方、逆直交変換回路11は、量子化回路8により量子
化された直交変換係数を逆量子化して予測誤差を出力し
、加算器12は、この予測誤差とフレームメモリ3から
の予測値を加算して画素値を再生し、この画素値はフレ
ームメモリ3に書き込まれる。
On the other hand, the inverse orthogonal transform circuit 11 inversely quantizes the orthogonal transform coefficients quantized by the quantization circuit 8 and outputs a prediction error, and the adder 12 adds this prediction error to the predicted value from the frame memory 3. to reproduce the pixel value, and this pixel value is written into the frame memory 3.

第8図は、動ベクトル判定部5の詳細な構成を示してい
る。
FIG. 8 shows a detailed configuration of the motion vector determining section 5. As shown in FIG.

第8図において、評価量算出回路5aは、端子1からの
入力画像と、動ベクトル検出回路2により検出された動
ベクトルと、フレームメモリ3からの前フレームの再生
画素値により、動ベクトルを用いて予測値を求めた場合
の入力画像との誤差、すなわち誤差の絶対和や誤差の2
乗和等を求め、動ベクトルを用いた場合の評価量を算出
する。
In FIG. 8, the evaluation amount calculation circuit 5a uses a motion vector based on the input image from the terminal 1, the motion vector detected by the motion vector detection circuit 2, and the reproduced pixel value of the previous frame from the frame memory 3. The error from the input image when the predicted value is calculated using
Find the sum of products, etc., and calculate the evaluation amount when using a motion vector.

他方、評価量算出回路5bは、端子1からの入力画像と
、フレームメモリ3からの前フレームの再生画素値によ
り、同様に誤差の絶対和や誤差の2乗和等を求め、動ベ
クトルを用いない場合の評価量を算出する。
On the other hand, the evaluation amount calculation circuit 5b similarly calculates the absolute sum of errors, the sum of squares of errors, etc. using the input image from the terminal 1 and the reproduced pixel values of the previous frame from the frame memory 3, and uses the motion vector. Calculate the evaluation amount when there is no one.

比較回路5cは、評価量算出回路5bにより算出された
評価量から評価量算出回路5aにより算出された評価量
を差引き、この差が所定の値以下のときに、動ベクトル
検出回路2により検出された動ベクトルを無効とする。
The comparison circuit 5c subtracts the evaluation amount calculated by the evaluation amount calculation circuit 5a from the evaluation amount calculated by the evaluation amount calculation circuit 5b, and when this difference is less than a predetermined value, the motion vector detection circuit 2 detects the evaluation amount. Invalidates the motion vector.

したがって、動ベクトル検出回路2により検出された動
ベクトルが無効とされた場合には、符号化回路9は、量
子化された直交変換係数のみを符号化するので、発生す
る符号量を抑圧することができる。
Therefore, when the motion vector detected by the motion vector detection circuit 2 is invalidated, the encoding circuit 9 encodes only the quantized orthogonal transform coefficients, thereby suppressing the amount of generated code. I can do it.

発明が解決しようとする課題 しかしながら、上記従来の動き補償フレーム間符号化装
置では、動ベクトル判定部5が予測誤差等の評価量のみ
により動ベクトルが有効か無効かを判定するので、多く
の動ベクトルを有効と判定すると、符号化回路9により
符号化される符号量が多くなり、したがって、回線バッ
フ710に蓄積される残留符号化データ量が多くなって
量子化回路8の量子化ステップ幅が大きくなり、再生画
質が劣化するという問題点がある。
Problems to be Solved by the Invention However, in the conventional motion-compensated interframe coding device described above, the motion vector determining unit 5 determines whether a motion vector is valid or invalid based only on an evaluation amount such as a prediction error. If the vector is determined to be valid, the amount of code encoded by the encoding circuit 9 increases, and therefore the amount of residual encoded data accumulated in the line buffer 710 increases, and the quantization step width of the quantization circuit 8 increases. There is a problem in that the size of the image increases and the quality of the reproduced image deteriorates.

本発明は上記従来の問題点に鑑み、再生画像を向上する
ことができる動き補償フレーム間符号化装置を提供する
ことを目的とする。
SUMMARY OF THE INVENTION In view of the above-mentioned conventional problems, it is an object of the present invention to provide a motion compensated interframe coding device that can improve reproduced images.

課題を解決するための手段 本発明は上記目的を達成するために、符号化される直交
変換係数と動ベクトルの符号量又は動ベクトルのみの符
号量を予測するとともに、この予測された符号量と、バ
ッファの残留符号量により次の量子化ステップ幅が大き
く増加するか否かを判定し、動ベクトルを用いた場合の
予測値の評価量と動ベクトルを用いない場合の予測値の
評価量の差が第1、第2の閾値の間にある場合に、次の
量子化ステップ幅が大きく増加するときは動ベクトルを
符号化しないようにしたものである。
Means for Solving the Problems In order to achieve the above object, the present invention predicts the code amount of orthogonal transform coefficients and motion vectors to be encoded, or the code amount of only the motion vector, and also combines the predicted code amount and , determine whether the next quantization step width will increase significantly depending on the amount of residual code in the buffer, and calculate the evaluation amount of the predicted value when using a motion vector and the evaluation amount of the predicted value when using no motion vector. When the difference is between the first and second thresholds and the next quantization step width increases significantly, the motion vector is not encoded.

作用 本発明は上記構成により、動ベクトルを符号化した場合
の符号量を予測して勤ベクトルを符号化するか否かを判
定するので、量子化ステップ幅が増加して再生画質が劣
化することがなくなり、したがって、再生画像を向上す
ることができる。
Effect of the Invention With the above configuration, the present invention predicts the code amount when a motion vector is encoded and determines whether or not to encode a motion vector, so that the quantization step width increases and the reproduced image quality deteriorates. Therefore, the reproduced image can be improved.

実施例 以下、図面を参照して本発明の詳細な説明する。第1図
は、本発明に係る動き補償フレーム間符号化装置の一実
施例を示すブロック図、第2図は、第1図の動ベクトル
判定部の詳細な構成を示すブロック図、第3図は、第2
図の発生符号量予測回路の動作説明図、第4図は、第2
図の動ベクトル判定回路の動作説明図であり、第7図に
示す構成部材と同一のものには同一の参照符号を附す。
EXAMPLES Hereinafter, the present invention will be described in detail with reference to the drawings. FIG. 1 is a block diagram showing an embodiment of a motion compensated interframe coding device according to the present invention, FIG. 2 is a block diagram showing a detailed configuration of the motion vector determining section in FIG. 1, and FIG. is the second
FIG. 4 is an explanatory diagram of the operation of the generated code amount prediction circuit shown in FIG.
8 is an explanatory diagram of the operation of the motion vector determination circuit shown in FIG. 7, and the same reference numerals are given to the same components as those shown in FIG. 7. FIG.

第1図において、1は、ディジタル化された画像の入力
゛端子、2は、端子1からの画像と、フレームメモリ3
からの前フレームの再生画素値により動ベクトルを検出
し、スイッチ4を介してフレームメモリ3と符号化回路
9に出力する動ベクトル検出回路である。
In FIG. 1, 1 is an input terminal for a digitized image, and 2 is an input terminal for an image from terminal 1 and a frame memory 3.
This is a motion vector detection circuit that detects a motion vector based on the reproduced pixel value of the previous frame from , and outputs it to the frame memory 3 and the encoding circuit 9 via the switch 4 .

50は、後述するように、端子1からの画像と、動ベク
トル検出回路2により検出された動ベクトルと、フレー
ムメモリ3からの前フレームの再生画素値と、量子化回
路8aからの量子化ステップ輻と、回線バッファ10に
蓄積されている残留符号化量により、動ベクトル検出回
路2により検出された動ベクトルが有効か又は無効かを
判定する動ベクトル判定部である。
50, as described later, represents an image from the terminal 1, a motion vector detected by the motion vector detection circuit 2, a reproduced pixel value of the previous frame from the frame memory 3, and a quantization step from the quantization circuit 8a. This is a motion vector determination unit that determines whether the motion vector detected by the motion vector detection circuit 2 is valid or invalid based on the congestion and the amount of residual encoding stored in the line buffer 10.

尚、動ベクトル判定部50が動ベクトルを有効と判定し
た場合には、符号化回路9は、動ベクトルを直交変換係
数とともに符号化し、無効と判定した場合には、符号化
回路9は直交変換係数のみを符号化する。
Note that when the motion vector determination unit 50 determines that the motion vector is valid, the encoding circuit 9 encodes the motion vector together with orthogonal transformation coefficients, and when it is determined that the motion vector is invalid, the encoding circuit 9 encodes the motion vector together with orthogonal transformation coefficients. Encode only the coefficients.

6は、端子1からの画像から、フレームメモリ3からの
予測値を減算して予測誤差を出力する加算器、7は、こ
の予測誤差を離散コサイン変換等により直交変換する直
交変換回路、8aは、直交変換回路7により変換された
直交変換係数を量子化する量子化回路であり、符号化回
路9は、この量子化された直交変換係数と、動ベクトル
検出回路2により検出された動ベクトルの両方又は前者
のみを符号化し、回線バッファ10を介して回線に送出
する。
6 is an adder that subtracts the predicted value from frame memory 3 from the image from terminal 1 and outputs a prediction error; 7 is an orthogonal transform circuit that orthogonally transforms this prediction error by discrete cosine transform, etc.; 8a is , is a quantization circuit that quantizes the orthogonal transform coefficients transformed by the orthogonal transform circuit 7, and the encoding circuit 9 quantizes the quantized orthogonal transform coefficients and the motion vector detected by the motion vector detection circuit 2. Both or only the former are encoded and sent to the line via the line buffer 10.

回線バッファ10からは、回線の伝送速度に整合するよ
うに符号化データが読み出されて回線に送出されるとも
に、回線バッファ10に蓄積されている残留符号化デー
タ量に応じて量子化回路8aの量子化ステップ幅が制御
され、したがって、回線バッファ10のオーバフロー、
アンダフローを防止することができる。また、この残留
符号化データ量は、前述したように動ベクトル判定回路
50に供給される。
Encoded data is read out from the line buffer 10 so as to match the transmission speed of the line and sent out to the line, and the quantization circuit 8a reads out the encoded data in accordance with the amount of residual encoded data stored in the line buffer 10. The quantization step width of is controlled, thus preventing an overflow of the line buffer 10,
Underflow can be prevented. Further, this residual encoded data amount is supplied to the motion vector determination circuit 50 as described above.

11は、量子化回路8aにより量子化された直交変換係
数を逆量子化して予?11@差を出力する逆直交変換回
路、12は、この予測誤差とフレームメモリ3からの予
測値を加算して画素値を再生し、この画素値をフレーム
メモリ3に書き込むための加算器である。
11 inversely quantizes the orthogonal transform coefficients quantized by the quantization circuit 8a. 11 is an inverse orthogonal transform circuit that outputs the difference, and 12 is an adder that adds this prediction error and the predicted value from the frame memory 3 to reproduce a pixel value, and writes this pixel value to the frame memory 3. .

ここで、逆直交変換回路11により逆量子化された予測
誤差は、量子化回路8aの量子化誤差を含み、したがっ
て、加算器6が出力する予測誤差と異なる。
Here, the prediction error dequantized by the inverse orthogonal transform circuit 11 includes the quantization error of the quantization circuit 8a, and is therefore different from the prediction error output by the adder 6.

第2図において、51は、端子1からの入力画像と、動
ベクトル検出回路2により検出された動ベクトルと、フ
レームメモリ3からの前フレームの再生画素値により、
動ベクトルを用いて予測値を求めた場合の入力画像との
誤差、すなわち誤差の絶対和や誤差の2乗和等を求め、
動ベクトルを用いた場合の評価量を算出する評価量算出
回路、52は、端子lからの入力画像と、フレームメモ
リ3からの前フレームの再生画素値により、同様に誤差
の絶対和や誤差の2乗和等を求め、動ベクトルを用いな
い場合の評価量を算出する評価量算出回路である。
In FIG. 2, 51 is based on the input image from the terminal 1, the motion vector detected by the motion vector detection circuit 2, and the reproduced pixel value of the previous frame from the frame memory 3.
Calculate the error from the input image when a predicted value is calculated using a motion vector, that is, the absolute sum of errors, the sum of squared errors, etc.
An evaluation amount calculation circuit 52 that calculates an evaluation amount when a motion vector is used similarly calculates the absolute sum of errors and the error amount using the input image from the terminal l and the reproduced pixel value of the previous frame from the frame memory 3. This is an evaluation amount calculation circuit that calculates the sum of squares, etc., and calculates the evaluation amount when no motion vector is used.

53は、第3図に示すように、量子化ステップ幅q1、
q2・・・qn毎貞こ、評価量算出回路51により算出
された評価量に応じた発生符号量が予め実験的又は計算
で求められて設定され、動ベクトル検出回路2により検
出された動ベクトルと、評価量算出回路51により算出
された評価量と、量子化回路8aの量子化ステップ幅に
より、後述するように符号化回路9による符号化後に発
生する符号量を予測する発生符号量予測回路である。
53 is the quantization step width q1, as shown in FIG.
For each q2...qn, the generated code amount corresponding to the evaluation amount calculated by the evaluation amount calculation circuit 51 is determined and set in advance experimentally or by calculation, and the motion vector detected by the motion vector detection circuit 2. A generated code amount prediction circuit predicts the amount of code generated after encoding by the encoding circuit 9, as described later, based on the evaluation amount calculated by the evaluation amount calculation circuit 51 and the quantization step width of the quantization circuit 8a. It is.

54は、発生符号量予測回路53により予測された符号
量と、回線バッフ710の残留符号量により、量子化回
路8aの量子化ステップ幅がどのように更新されるかを
検出する量子化ステップ幅更新検出回路、55は、評価
量算出回路51により算出された評価量から評価量算出
回路52により算出された評価量を差引き、後述するよ
うにこの差と、量子化ステップ幅更新検出回路54によ
り検出された量子化ステップ幅の更新の大きさにより、
動ベクトル検出回路2により検出された動ベクトルの有
効、無効の判定を行う動ベクトル判定回路である。
A quantization step width 54 detects how the quantization step width of the quantization circuit 8a is updated based on the code amount predicted by the generated code amount prediction circuit 53 and the residual code amount of the line buffer 710. The update detection circuit 55 subtracts the evaluation amount calculated by the evaluation amount calculation circuit 52 from the evaluation amount calculated by the evaluation amount calculation circuit 51, and uses this difference and the quantization step width update detection circuit 54 as described later. Due to the magnitude of the quantization step width update detected by
This is a motion vector determination circuit that determines whether the motion vector detected by the motion vector detection circuit 2 is valid or invalid.

次に、第3図、第4図を参照して上記実施例の動作、特
に動ベクトル判定部50の発生符号量予測回路53、動
ベクトル判定回路55の動作を説明する。
Next, the operation of the above embodiment, particularly the operation of the generated code amount prediction circuit 53 and the motion vector determination circuit 55 of the motion vector determination section 50, will be described with reference to FIGS. 3 and 4.

先ず、第1図において、量子化回路8aにより量子化さ
れた直交変換係数と、動ベクトル検出回路2により検出
された動ベクトルが符号化回路9により符号化された場
合、符号量が増加して回線バッフ710の残留符号量が
増加すると、量子化回路8aの量子化ステップ幅が大き
くなり、量子化雑音が多くなる。
First, in FIG. 1, when the orthogonal transform coefficients quantized by the quantization circuit 8a and the motion vectors detected by the motion vector detection circuit 2 are encoded by the encoding circuit 9, the amount of code increases. When the amount of residual codes in the line buffer 710 increases, the quantization step width of the quantization circuit 8a increases, and quantization noise increases.

そこで、動ベクトル判定回路500発生符号量予測回路
53は、評価量算出回路51により算出された評価量と
、量子化回路8aの量子化ステップ幅と、第3図に示す
ように予め設定されたグラフにより、直交変換係数の符
号化後の符号量と、動ベクトル検出回路2により・検出
された動ベクトルを符号化するための符号化量を予測す
る。
Therefore, the generated code amount prediction circuit 53 of the motion vector determination circuit 500 uses the evaluation amount calculated by the evaluation amount calculation circuit 51, the quantization step width of the quantization circuit 8a, and the quantization step width set in advance as shown in FIG. The amount of code after encoding the orthogonal transform coefficients and the amount of encoding for encoding the motion vector detected by the motion vector detection circuit 2 are predicted from the graph.

尚、評価量算出回路51により算出された評価量は、予
測誤差の大きさに対応しているので、量子化ステップ幅
により符号量を予測することができる。
Note that since the evaluation amount calculated by the evaluation amount calculation circuit 51 corresponds to the magnitude of the prediction error, the code amount can be predicted based on the quantization step width.

次いで、量子化ステップ幅更新検出回路54が発生符号
量予測回路53により予測された符号量と、回線バッフ
ァ10の残留符号量により、量子化回路8aの量子化ス
テップ幅がどのように更新されるかを検出すると、動ベ
クトル判定回路55は、評価量算出回路51により算出
された評価量から評価量算出回路52により算出された
評価量を差引く。
Next, the quantization step width update detection circuit 54 determines how the quantization step width of the quantization circuit 8a is updated based on the code amount predicted by the generated code amount prediction circuit 53 and the remaining code amount of the line buffer 10. When the motion vector determination circuit 55 detects the difference, the motion vector determination circuit 55 subtracts the evaluation amount calculated by the evaluation amount calculation circuit 52 from the evaluation amount calculated by the evaluation amount calculation circuit 51.

そして、動ベクトル判定回路55は第4図に示すように
、この差が著しく大きいときには勤ベクトルを有効とし
、差が著しく小さいときには無効とし、また、この差が
所定の幅にある場合は、差が大きくなっても量子化ステ
ップ幅の変動量が大きいときは、動ベクトルを無効と判
定する。
As shown in FIG. 4, the motion vector determination circuit 55 validates the motion vector when the difference is extremely large, invalidates it when the difference is extremely small, and determines the motion vector when the difference is within a predetermined width. If the amount of variation in the quantization step width is large even if the quantization step width becomes large, the motion vector is determined to be invalid.

すなわち、量子化ステップ幅の変動量が大きい場合には
量子化雑音が増加するが、この場合には勤ベクトルを無
効にして符号化しないので、回線バッフ710の残留符
号量が少なくなって量子化回路8aのステップ幅が小さ
くなり、したがって、再生画質を向上することができる
In other words, when the amount of variation in the quantization step width is large, quantization noise increases, but in this case, the signal vector is invalidated and no encoding is performed, so the amount of residual code in the line buffer 710 is reduced and the quantization The step width of the circuit 8a becomes smaller, and therefore the reproduced image quality can be improved.

次に、第5図、第6図を参照して本発明の第2の実施例
を説明する。
Next, a second embodiment of the present invention will be described with reference to FIGS. 5 and 6.

この実施例では、動ベクトル符号量算出回路53aは、
動ベクトル検出回路2により検出された動ベクトルを符
号化して伝送するために必要な符号量を算出し、量子化
ステップ幅変動検出回路54^は、この動ベクトル符号
量と、回線バッファ1Oの残留符号量を用いて、動ベク
トルが符号化された場合に量子化ステップ幅が更新され
るか否かを検出する。
In this embodiment, the motion vector code amount calculation circuit 53a is
The motion vector detection circuit 2 calculates the amount of code necessary to encode and transmit the detected motion vector, and the quantization step width variation detection circuit 54 calculates the amount of code necessary for encoding and transmitting the motion vector detected by the motion vector detection circuit 2. Using the code amount, it is detected whether the quantization step width is updated when the motion vector is encoded.

そして、勤ベクトル判定回路55aは、第6図に示すよ
うに、評価量算出回路51により算出された評価量と、
評価量算出回路52により算出された評価量の比が「1
」に近い場合には無効と判定し、「O」に近い場合に有
効と判定し、そして、上記評価量の比が所定の輻α以内
の場合は、次の量子化ステップ幅が大きくなるにつれて
無効とする。
As shown in FIG. 6, the performance vector determination circuit 55a calculates the evaluation amount calculated by the evaluation amount calculation circuit 51,
The ratio of the evaluation amounts calculated by the evaluation amount calculation circuit 52 is “1”.
”, it is determined to be invalid, and when it is close to “O”, it is determined to be valid, and if the ratio of the evaluation amounts is within a predetermined radius α, as the next quantization step width becomes larger, shall be invalidated.

尚、この輻aを、量子化された直交変換係数の符号量が
動ベクトルの符号量より小さくなるときの値にすること
により、動ベクトル符号量と、回線バッフ7の残留符号
量を用いて、動ベクトル符号量により量子化ステップ幅
が更新されるか否かを検出することができる。
By setting this convergence a to a value when the code amount of the quantized orthogonal transform coefficient is smaller than the code amount of the motion vector, the motion vector code amount and the residual code amount of the line buffer 7 can be used. , it is possible to detect whether the quantization step width is updated based on the amount of motion vector code.

したがって、この実施例においても、再生画質を向上す
ることができるが、前記実施例に比べて装置を簡素化す
ることができる。
Therefore, in this embodiment as well, the reproduced image quality can be improved, but the apparatus can be simplified compared to the previous embodiment.

発明の詳細 な説明したように、本発明は、符号化される直交変換係
数と動ベクトルの符号量又は動ベクトルのみの符号量を
予測するとともに、この予測された符号量と、バッファ
の残留符号量により次の量子化ステップ幅が大きく増加
するか否かを判定し、動ベクトルを用いた場合の予測値
の評価量と動ベクトルを用いない場合の予測値の評価量
の差が第1、第2の閾値の間にある場合に、次の量子化
ステップ幅が大きく増加するときは動ベクトルを符号化
しないようにしたので、量子化ステップ幅が増加して再
生画質が劣化することがなくなり、したがって、再生画
像を向上することができる。
As described in detail, the present invention predicts the code amount of orthogonal transform coefficients and motion vectors to be encoded, or the code amount of only the motion vector, and uses the predicted code amount and the residual code of the buffer. It is determined whether the next quantization step width increases significantly depending on the amount, and the difference between the evaluation amount of the predicted value when using a motion vector and the evaluation amount of the predicted value when using no motion vector is determined as the first, Since the motion vector is not encoded when the next quantization step width increases significantly when it is between the second threshold, the playback quality does not deteriorate due to the increase in the quantization step width. , Therefore, the reproduced image can be improved.

【図面の簡単な説明】[Brief explanation of drawings]

第1図は、本発明に係る動き補償フレーム間符号化装置
の一実施例を示すブロック図、第2図は、第1図の動ベ
クトル判定部の詳細な構成を示すブロック図、第3図は
、第2図の発生符号量予測回路の動作説明図、第4図は
、第2図の動ベクトル判定回路の動作説明図、第5図は
、本発明に係る動き補償フレーム間符号化装置の第2の
実施例を示す要部ブロック図、第6図は、第5図の動き
補償フレーム間符号化装置の動作説明図、第7図は、従
来の動き補償フレーム間符号化装置を示すブロック図、
第8図は、第7図の動ベクトル判定回路の詳細な構成を
示すブロック図である。 2・・・動ベクトル&飲回路、3・・・フレームメモリ
、6,12・・・加算器、7・・・直交変換回路、8a
・・・量子化回路、9・・・符号化回路、10・・・送
信バッファ、11・・・逆直交変換回路、50・・・動
ベクトル判定部、51.52・・・評価量算出回路、5
3・・・発生符号量予測回路、53a・・・動ベクトル
符号量算出回路、54・・・量子化ステップ輻更新検出
回路、54a・・・量子化ステップ幅変動検出回路、5
5゜552−・・動ベクトル判定回路。
FIG. 1 is a block diagram showing an embodiment of a motion compensated interframe coding device according to the present invention, FIG. 2 is a block diagram showing a detailed configuration of the motion vector determining section in FIG. 1, and FIG. is an explanatory diagram of the operation of the generated code amount prediction circuit of FIG. 2, FIG. 4 is an explanatory diagram of the operation of the motion vector determination circuit of FIG. 2, and FIG. 5 is an explanatory diagram of the motion compensation interframe coding apparatus according to the present invention. FIG. 6 is an explanatory diagram of the operation of the motion-compensated interframe coding device of FIG. 5, and FIG. 7 shows a conventional motion-compensated interframe coding device. Block Diagram,
FIG. 8 is a block diagram showing the detailed configuration of the motion vector determination circuit of FIG. 7. 2... Motion vector & drink circuit, 3... Frame memory, 6, 12... Adder, 7... Orthogonal transformation circuit, 8a
Quantization circuit, 9 Encoding circuit, 10 Transmission buffer, 11 Inverse orthogonal transform circuit, 50 Motion vector determination unit, 51.52 Evaluation amount calculation circuit ,5
3... Generated code amount prediction circuit, 53a... Motion vector code amount calculation circuit, 54... Quantization step radius update detection circuit, 54a... Quantization step width variation detection circuit, 5
5゜552--Movement vector determination circuit.

Claims (2)

【特許請求の範囲】[Claims] (1)動画像信号の予測値により予測誤差を算出する手
段と、 前記予測誤差を直交変換して係数を算出する手段と、 前記直交変換係数を量子化する手段と、 動画像信号の動ベクトルを検出する手段と、前記量子化
された直交変換係数と動ベクトルを符号化するための符
号化手段と、 前記符号化手段により符号化された符号を一時蓄積して
出力し、蓄積されている残留符号量に応じて前記量子化
手段の量子化ステップ幅を制御するバッファと、 前記動ベクトルを用いた場合の予測値の評価量を算出す
る第1の算出手段と、 前記動ベクトルを用いない場合の予測値の評価量を算出
する第2の算出手段と、 前記動ベクトル検出手段により検出された動ベクトルと
、前記第1の算出手段の評価量と、前記量子化手段の量
子化ステップ幅により、前記符号化手段により符号化さ
れる直交変換係数と動ベクトルの符号量を予測する手段
と、 前記予測された符号量と、前記バッファの残留符号量に
より次の量子化ステップ幅が大きく増加するか否かを判
定する手段と、 前記第1、第2の算出手段の評価量の差が第1の閾値よ
り大きい場合に前記符号化手段が動ベクトルを符号化す
るように制御し、この差が前記第1の閾値より小さい第
2の閾値より小さい場合に前記符号化手段が動ベクトル
を符号化しないように制御し、この差が前記第1、第2
の閾値の間にある場合に次の量子化ステップ幅が大きく
増加するときは前記符号化手段が動ベクトルを符号化し
ないように制御する手段とを有する動き補償フレーム間
符号化装置。
(1) means for calculating a prediction error based on a predicted value of a video signal; means for orthogonally transforming the prediction error to calculate a coefficient; means for quantizing the orthogonal transformation coefficient; and a motion vector of the video signal. a means for detecting the quantized orthogonal transform coefficients and a motion vector; an encoding means for encoding the quantized orthogonal transform coefficients and the motion vector; and a means for temporarily accumulating and outputting the code encoded by the encoding means. a buffer that controls the quantization step width of the quantization means according to the amount of residual code; a first calculation means that calculates an evaluation amount of a predicted value when the motion vector is used; and a first calculation means that does not use the motion vector. a second calculation means for calculating an evaluation amount of a predicted value for a case; a motion vector detected by the motion vector detection means; an evaluation amount of the first calculation means; and a quantization step width of the quantization means. means for predicting the code amount of orthogonal transform coefficients and motion vectors to be encoded by the encoding means; and the next quantization step width is greatly increased by the predicted code amount and the residual code amount of the buffer. a means for determining whether or not to perform a motion vector; and controlling the encoding means to encode the motion vector when the difference between the evaluation amounts of the first and second calculation means is larger than a first threshold; If the difference is smaller than a second threshold value which is smaller than the first threshold value, the encoding means is controlled not to encode the motion vector, and this difference is smaller than the first threshold value and the second threshold value.
and means for controlling the encoding means so as not to encode the motion vector when the next quantization step width increases significantly when the width is between the threshold values.
(2)前記符号化手段により符号化される直交変換係数
と動ベクトルの符号量を予測する代わりに、動ベクトル
のみを符号化した場合の符号量を予測することを特徴と
する請求項(1)記載の動き補償フレーム間符号化装置
(2) Instead of predicting the code amount of the orthogonal transform coefficient and motion vector encoded by the encoding means, the code amount when only the motion vector is encoded is predicted. ) The motion compensated interframe coding device described in (a).
JP1200573A 1989-08-01 1989-08-01 Moving compensation inter-frame coding device Pending JPH0364189A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1200573A JPH0364189A (en) 1989-08-01 1989-08-01 Moving compensation inter-frame coding device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1200573A JPH0364189A (en) 1989-08-01 1989-08-01 Moving compensation inter-frame coding device

Publications (1)

Publication Number Publication Date
JPH0364189A true JPH0364189A (en) 1991-03-19

Family

ID=16426581

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1200573A Pending JPH0364189A (en) 1989-08-01 1989-08-01 Moving compensation inter-frame coding device

Country Status (1)

Country Link
JP (1) JPH0364189A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008035134A (en) * 2006-07-27 2008-02-14 Matsushita Electric Ind Co Ltd Image coding device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008035134A (en) * 2006-07-27 2008-02-14 Matsushita Electric Ind Co Ltd Image coding device
US8144789B2 (en) 2006-07-27 2012-03-27 Panasonic Corporation Picture coding apparatus

Similar Documents

Publication Publication Date Title
JP2963416B2 (en) Video encoding method and apparatus for controlling bit generation amount using quantization activity
KR100415494B1 (en) Image encoding method and apparatus, recording apparatus, video signal encoding apparatus, processing apparatus and method, video data processing apparatus and method
JPH04334190A (en) Video signal coder
JPH0468988A (en) High efficient coder for moving picture signal
US7912124B2 (en) Motion compensation for fine-grain scalable video
US6266447B1 (en) Coding apparatus
JP3738511B2 (en) Video coding system
JPH0364189A (en) Moving compensation inter-frame coding device
JPH08154250A (en) Moving image coder
JPH0364186A (en) Inter-frame encoder for compensating movement
JP3200518B2 (en) Image signal encoding device
JPS61201570A (en) Coding system between frames and in frame
JP2512165B2 (en) Video signal encoder
JP2553712B2 (en) Video coding device
JP2892701B2 (en) Video signal encoding device
JPH0456492A (en) Moving image encoding control system
JPH09327023A (en) Intra-frame/inter-frame coding changeover method and image coding device
JP4359273B2 (en) Coding mode selection method
JPH0670308A (en) Coder for motion compensation inter-frame prediction
JPH06233279A (en) Motion compensating encoder
KR0124162B1 (en) Prediction coding method
KR100774455B1 (en) Bit rate operation apparatus for realtime video transmit application
JPH06105299A (en) Dynamic image compressor
JPH07203442A (en) Digital transmitter
JPH0316490A (en) Moving picture encoder