JPH0918879A - Moving image encoding method and moving image communication device - Google Patents

Moving image encoding method and moving image communication device

Info

Publication number
JPH0918879A
JPH0918879A JP16345095A JP16345095A JPH0918879A JP H0918879 A JPH0918879 A JP H0918879A JP 16345095 A JP16345095 A JP 16345095A JP 16345095 A JP16345095 A JP 16345095A JP H0918879 A JPH0918879 A JP H0918879A
Authority
JP
Japan
Prior art keywords
moving image
image data
change amount
frame
data
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
JP16345095A
Other languages
Japanese (ja)
Inventor
Takaharu Nakamura
隆春 中村
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 JP16345095A priority Critical patent/JPH0918879A/en
Publication of JPH0918879A publication Critical patent/JPH0918879A/en
Pending legal-status Critical Current

Links

Landscapes

  • Image Processing (AREA)
  • Compression Or Coding Systems Of Tv Signals (AREA)
  • Compression, Expansion, Code Conversion, And Decoders (AREA)

Abstract

PURPOSE: To suppress the unnecessary codes which are produced at the static part of an image and to improve the compression efficiency in a moving image encoding mode by changing the noise component generated at the static part of the image into zero based on the set threshold value in an INTER mode. CONSTITUTION: A comparator 13 compares the image data on the n-th frame stored in a 1st frame memory 12 with the input image data on the (n+1)-th frame and takes out the difference between both data. A deciding device 14 compares the difference with the threshold value set at a CPU to output the difference after changing into zero when the difference is smaller than the threshold value. Then the device 14 outputs the difference as it is when the difference is larger than the threshold value. The difference is added to the image data on the n-th frame by an adder 15, written in a 2nd frame memory 16, and compressed and encoded by a moving image encoding circuit 17. In such a constitution, the noises are erased at the static part of an image and the compression efficiency is improved in a moving image encoding mode.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、画像通信等において動
画を符号化する動画符号化方法、および動画像を通信す
る動画通信装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a moving picture coding method for coding moving pictures in image communication and the like, and a moving picture communication apparatus for communicating moving pictures.

【0002】[0002]

【従来の技術】近年、デジタル通信網が普及し、また、
これに伴ってテレビ会議システムが普及してきている。
この傾向は今後とも拡大していくと考えられ、その中心
となる動画通信には動画符号化技術が不可欠である。
2. Description of the Related Art In recent years, digital communication networks have become widespread, and
Along with this, video conference systems have become widespread.
It is considered that this tendency will continue to expand, and moving image coding technology is essential for moving image communication, which is the center of this trend.

【0003】以下に従来の動画符号化方法およびその方
法が適用される動画通信装置について図面を参照して説
明する。
A conventional moving picture coding method and a moving picture communication apparatus to which the method is applied will be described below with reference to the drawings.

【0004】図3は従来の動画符号化方法が適用される
動画通信装置を示すブロック図である。図3の装置は、
ITU−Tの動画符号化の標準方式であるH.261勧
告から引用したものが適用される動画通信装置である。
図3において、1は入力端子T1から入力された画像デ
ータの減算を行う減算器、2はフレーム内符号化とフレ
ーム間符号化とのデータ経路を切り替える第1のスイッ
チ、2aはスイッチ2の共通端子、2b、2cはスイッ
チ2の切替端子、3は離散コサイン変換(Dis-crete Co
sine Transform、以下「DCT」という)を行うDCT
変換器、4は量子化を行う量子化器、5は量子化された
データを逆量子化する逆量子化器、6は逆離散的コサイ
ン変換(Inverse Discrete Cosine Transform 、以下
「逆DCT」という))を行う逆DCT変換器、7は2
入力データを加算する加算器、8は動き補償用可変遅延
機能を持つ動き補償用画像メモリ、9はフレーム間予測
による誤差の累積を低減する低域通過フィルタとしての
ループ内フィルタ、10は加算器7と動き補償用画像メ
モリ8とループ内フィルタ9とから成るループのオン、
オフを切り替える第2のスイッチ、10aはスイッチ1
0の共通端子、10b、10cはスイッチ10の切替端
子、11は全体を制御する符号化制御部である。
FIG. 3 is a block diagram showing a moving picture communication apparatus to which a conventional moving picture coding method is applied. The device of FIG.
The H.264 standard, which is a standard method for moving picture coding of ITU-T. The video communication device to which the one cited from the H.261 recommendation is applied.
In FIG. 3, 1 is a subtracter for subtracting the image data input from the input terminal T1, 2 is a first switch for switching the data path between intraframe coding and interframe coding, and 2a is a common switch 2. Terminals 2b and 2c are switching terminals of the switch 2 and 3 is a discrete cosine transform (Dis-crete Co
DCT that performs sine transform (hereinafter referred to as "DCT")
Transformer 4, quantizer for quantizing, 5 inverse quantizer for inverse quantizing quantized data, 6 inverse discrete cosine transform (hereinafter referred to as "inverse DCT") ) Inverse DCT converter, 7 is 2
An adder for adding input data, 8 a motion compensation image memory having a variable delay function for motion compensation, 9 an in-loop filter as a low-pass filter for reducing the accumulation of errors due to inter-frame prediction, and 10 an adder 7, a loop composed of the image memory 8 for motion compensation and the in-loop filter 9 is turned on,
Second switch for switching off, 10a is switch 1
0 is a common terminal, 10b and 10c are switching terminals of the switch 10, and 11 is an encoding control unit for controlling the whole.

【0005】以上のように構成された動画通信装置につ
いて、その動作を説明する。動画符号化にはフレーム内
符号化とフレーム間符号化の2種類があり、フレーム内
符号化の符号化モードをINTRAモード、フレーム間
符号化の符号化モードをINTERモードという。まず
INTRAモードから説明すると、このモードにおいて
は第1のスイッチ2、第2のスイッチ10の共通端子2
a、10aは上方の端子2b、10bに接続される。入
力端子T1から入力された画像データは第1のスイッチ
2を通じてDCT変換器3で16×16画素のマクロブ
ロック単位にDCT変換される。DCT変換は一種の周
波数変換である。DCT変換された画像データは量子化
器4により量子化され、そのDCT変換における変換係
数の量子化出力インデックスqが出力される。同時に符
号化制御部11からは、INTERモードとINTRA
モードとを識別するINTER/INTRA識別フラグ
p、伝送と非伝送とを識別する伝送/非伝送識別フラグ
tおよび量子化特性を指定する指定データqzが出力さ
れる。これらフラグp、tおよび指定データqzは復号
化に必要な情報である。このように1フレーム内で符号
化を行っているのがINTRAモードである。
The operation of the moving picture communication device configured as described above will be described. There are two types of moving picture coding, intraframe coding and interframe coding. The coding mode for intraframe coding is called INTRA mode, and the coding mode for interframe coding is called INTER mode. First, the INTRA mode will be described. In this mode, the common terminal 2 of the first switch 2 and the second switch 10 is
a and 10a are connected to the upper terminals 2b and 10b. The image data input from the input terminal T1 is DCT-converted by the DCT converter 3 through the first switch 2 into macroblock units of 16 × 16 pixels. The DCT transform is a kind of frequency transform. The DCT-transformed image data is quantized by the quantizer 4, and the quantized output index q of the transform coefficient in the DCT transform is output. At the same time, the encoding control unit 11 sends INTER mode and INTRA.
The INTER / INTRA identification flag p for identifying the mode, the transmission / non-transmission identifying flag t for identifying the transmission and non-transmission, and the designation data qz for designating the quantization characteristic are output. The flags p and t and the designated data qz are information necessary for decoding. The INTRA mode is such that encoding is performed within one frame.

【0006】次に、INTERモードについて説明する
と、このモードにおいては第1のスイッチ2、第2のス
イッチ10の共通端子2a、10aは下方の端子2c、
10cに接続される(図3はINTERモードにおける
接続状態を示す)。このモードでは、まず上記INTR
Aモードと同様の動作を行った後、INTRAモードで
出力された量子化出力インデックスqを逆量子化器5、
逆DCT変換器6を通じて復号化し、この復号化データ
を加算器7を通じて動き補償用画像メモリ8に入力す
る。動き補償用画像メモリ8は、入力端子T1から入力
された次のフレームの画像データと、加算器7を通じて
入力された復号化データとを比較し、動きベクトルvを
生成する。2つのフレームに渡って画像データと復号化
データとを比較した結果はループ内フィルタ9を通じて
画像の動き成分として減算器1に入力され、再びDCT
変換器3、量子化器4を通じて符号化され、量子化出力
インデックスqが出力される。同時にINTRAモード
時と同様、INTER/INTRA識別フラグp、伝送
/非伝送識別フラグtおよび量子化特性を指定する指定
データqzが出力されるほか、動きベクトルv、マクロ
ブロック単位にループ内フィルタ9を作用したか、しな
かったかの判断信号であるオン/オフ信号fも出力され
る。
Next, the INTER mode will be described. In this mode, the common terminals 2a and 10a of the first switch 2 and the second switch 10 are the lower terminals 2c,
10c (FIG. 3 shows a connection state in the INTER mode). In this mode, first the above INTR
After performing the same operation as in the A mode, the quantized output index q output in the INTRA mode is converted to the inverse quantizer 5,
Decoding is performed by the inverse DCT converter 6, and the decoded data is input to the motion compensation image memory 8 through the adder 7. The motion compensation image memory 8 compares the image data of the next frame input from the input terminal T1 with the decoded data input via the adder 7, and generates the motion vector v. The result of comparing the image data and the decoded data over the two frames is input to the subtracter 1 as a motion component of the image through the in-loop filter 9 and is again DCT.
Encoding is performed by the converter 3 and the quantizer 4, and the quantized output index q is output. At the same time, as in the INTRA mode, the INTER / INTRA identification flag p, the transmission / non-transmission identification flag t, and the designated data qz designating the quantization characteristic are output, and the motion vector v and the in-loop filter 9 are set for each macroblock. An on / off signal f, which is a determination signal as to whether or not it has acted, is also output.

【0007】以上が動画符号化の標準方式であるH.2
61勧告方式における動作の概要である。
The above is H.264, which is a standard method of moving picture coding. 2
61 is an outline of operation in the 61-recommended system.

【0008】[0008]

【発明が解決しようとする課題】しかしながら、上記従
来の動画符号化方式が適用される動画通信装置では、1
つのフレーム内で符号化を行ってしまうINTRAモー
ドの場合には、差分データの処理を行わないので、画像
の動きやノイズによる影響はないが、フレーム間で符号
化を行うINTERモードの場合には、前後のフレーム
の画像データと復号化データとを比較し、その差分デー
タを符号化する方式であるため、本来は符号が発生しな
い画像の静止部分についてノイズ等による画像データの
変化分があると、その変化分に基づいて余分な符号が発
生するという問題点があった。
However, in the moving picture communication device to which the above-mentioned conventional moving picture coding system is applied,
In the case of INTRA mode in which encoding is performed in one frame, since the difference data is not processed, there is no influence of image movement or noise, but in the case of INTER mode in which encoding is performed between frames, Since the method of comparing the image data of the preceding and succeeding frames with the decoded data and encoding the difference data, there is a change in the image data due to noise etc. in the static part of the image where no code originally occurs. However, there is a problem that an extra code is generated based on the change.

【0009】本発明は上記従来の問題点を解決するもの
で、INTERモード時に画像の静止部分にノイズが発
生しても、その発生ノイズを消去して圧縮効率の向上が
図れる動画符号化方法、およびINTERモード時に画
像の静止部分にノイズが発生しても、その発生ノイズを
消去して圧縮効率の向上が図れる動画通信装置を提供す
ることを目的とする。
The present invention solves the above-mentioned conventional problems. Even if noise occurs in a still portion of an image in the INTER mode, the generated noise can be eliminated to improve the compression efficiency. Another object of the present invention is to provide a moving image communication device capable of eliminating the generated noise and improving the compression efficiency even if noise occurs in the still portion of the image in the INTER mode.

【0010】[0010]

【課題を解決するための手段】この目的を達成するため
に本発明の請求項1記載の動画符号化方法は、連続する
フレームのうちのn(任意の自然数)番目のフレームの
動画像データに対する(n+1)番目のフレームの動画
像データのレベル変化分としての動画像データ変化分を
算出する変化分算出ステップと、算出した動画像データ
変化分が予め設定されたしきい値よりも小さいときには
レベル変化分としての動画像データ変化分をゼロとし、
算出した動画像データ変化分が予め設定されたしきい値
よりも大きいときにはレベル変化分としての動画像デー
タ変化分を算出した動画像データ変化分とする判断ステ
ップと、レベル変化分としての動画像データ変化分とn
番目のフレームの動画像データとを加算する加算ステッ
プと、加算した動画像データを圧縮、符号化して符号化
データを生成する符号化ステップとを有する構成を有し
ている。
In order to achieve this object, a moving picture coding method according to claim 1 of the present invention is applied to moving picture data of an nth (arbitrary natural number) frame of consecutive frames. A change amount calculating step of calculating a moving image data change amount as a level change amount of the moving image data of the (n + 1) th frame, and a level when the calculated moving image data change amount is smaller than a preset threshold value. Change the moving image data as a change to zero,
When the calculated moving image data change amount is larger than a preset threshold value, a determination step of setting the moving image data change amount as the level change amount to the calculated moving image data change amount, and a moving image as the level change amount Data change and n
It has a configuration including an addition step of adding moving image data of the th frame and an encoding step of compressing and encoding the added moving image data to generate encoded data.

【0011】請求項2記載の動画通信装置は、入力され
る動画像データを1フレーム単位に記憶する第1のフレ
ームメモリと、第1のフレームメモリに記憶されたn
(任意の自然数)番目のフレームの動画像データと(n
+1)番目のフレームの動画像データとを一定のブロッ
ク単位で比較し、n番目のフレームの動画像データに対
する(n+1)番目のフレームの動画像データのレベル
変化分としての動画像データ変化分を算出する比較手段
と、算出した動画像データ変化分が予め設定されたしき
い値よりも小さいときにはレベル変化分としての動画像
データ変化分をゼロとし、算出した動画像データ変化分
が予め設定されたしきい値よりも大きいときにはレベル
変化分としての動画像データ変化分を算出した動画像デ
ータ変化分とする判断手段と、レベル変化分としての動
画像データ変化分とn番目のフレームの動画像データと
を加算して加算動画像データを出力する加算手段と、加
算手段から出力される加算動画像データの1フレーム分
を記憶する第2のフレームメモリと、第2のフレームメ
モリに記憶された加算動画像データを圧縮、符号化して
符号化データを出力する動画符号化回路と、符号化デー
タを通信網を介して相手側に送信する通信回路と、通信
回路からの相手側の符号化データを元の加算動画像デー
タに復号化する動画復号化回路と、動画復号化回路から
の加算動画像データを1フレーム単位に動画像データと
して記憶する復号フレームメモリとを備えた構成を有し
ている。
According to a second aspect of the present invention, there is provided a moving image communication apparatus, wherein a first frame memory stores input moving image data in units of one frame, and n stored in the first frame memory.
The moving image data of the (arbitrary natural number) th frame and (n
The moving image data of the +1) th frame is compared in a fixed block unit, and the moving image data change amount as the level change amount of the moving image data of the (n + 1) th frame is compared with the moving image data of the nth frame. When the calculated moving image data change amount is smaller than a preset threshold value, the moving image data change amount as the level change amount is set to zero, and the calculated moving image data change amount is set in advance. And a moving image data change amount as the level change amount and the moving image data of the n-th frame. An addition unit for adding the data and outputting the addition moving image data; and a second unit for storing one frame of the addition moving image data output from the addition unit. A frame memory, a moving picture coding circuit for compressing and coding the added moving image data stored in the second frame memory and outputting the coded data, and communication for transmitting the coded data to the other party via the communication network. Circuit, a moving picture decoding circuit for decoding the encoded data of the other side from the communication circuit into the original added moving picture data, and the added moving picture data from the moving picture decoding circuit are stored as moving picture data in units of one frame. And a decoding frame memory for

【0012】[0012]

【作用】上記構成によって、前後のフレームの画像デー
タを比較し、それらのデータの差分データを符号化する
INTERモード時において、画像の静止部分に発生し
たノイズ成分を設定しきい値によりゼロとすることがで
きるので、画像の静止部分の余分な符号の発生を抑える
ことができ、動画符号化時の圧縮効率を向上させること
ができる。
With the above construction, in the INTER mode in which the image data of the preceding and succeeding frames are compared and the difference data of these data is encoded, the noise component generated in the still portion of the image is set to zero by the set threshold value. Therefore, it is possible to suppress the generation of extra codes in the still portion of the image, and it is possible to improve the compression efficiency at the time of moving image coding.

【0013】[0013]

【実施例】【Example】

(実施例1)以下、本発明の一実施例について図を用い
て説明する。
(Embodiment 1) An embodiment of the present invention will be described below with reference to the drawings.

【0014】図1は本発明の一実施例に係る動画符号化
方法が適用される動画通信装置を示すブロック図であ
る。図1において、12は入力端子T1から入力された
1フレーム分の動画像データを記憶する第1のフレーム
メモリ、13は第1のフレームメモリ12に記憶された
n(任意の自然数)番目のフレームの動画像データと
(n+1)番目のフレームの動画像データとを一定のブ
ロック単位で比較し、n番目のフレームの動画像データ
に対する(n+1)番目のフレームの動画像データのレ
ベル変化分としての動画像データ変化分を算出する比較
器(比較手段)、14は比較器13で算出した動画像デ
ータ変化分が予め設定されたしきい値よりも小さいとき
には出力する動画像データ変化分をゼロとし、比較器1
3で算出した動画像データ変化分が予め設定されたしき
い値よりも大きいときには出力する動画像データ変化分
を比較器13で算出した動画像データ変化分とする判断
器(判断手段)、15は判断器14から出力される動画
像データ変化分とn番目のフレームの動画像データとを
加算して加算動画像データを出力する加算器(加算手
段)、16は加算器15から出力される加算動画像デー
タの1フレーム分を記憶する第2のフレームメモリ、1
7は第2のフレームメモリ16に記憶された加算動画像
データを圧縮、符号化して符号化データを出力する動画
符号化回路、18は判断器14に予め上記しきい値を設
定するCPUである。
FIG. 1 is a block diagram showing a moving picture communication apparatus to which a moving picture coding method according to an embodiment of the present invention is applied. In FIG. 1, reference numeral 12 denotes a first frame memory that stores one frame of moving image data input from the input terminal T1, and 13 denotes an n (arbitrary natural number) th frame stored in the first frame memory 12. Of the moving image data of the (n + 1) th frame and the moving image data of the (n + 1) th frame are compared in a fixed block unit, and the level difference of the moving image data of the (n + 1) th frame is compared with the moving image data of the nth frame. A comparator (comparison means) for calculating the moving image data change amount, 14 sets the moving image data change amount to be output to zero when the moving image data change amount calculated by the comparator 13 is smaller than a preset threshold value. , Comparator 1
When the moving image data change amount calculated in 3 is larger than a preset threshold value, the moving image data change amount to be output is used as the moving image data change amount calculated by the comparator 13 (judging means), 15 Is an adder (adding means) that adds the moving image data change output from the determiner 14 and the moving image data of the nth frame to output the added moving image data, and 16 is output from the adder 15. A second frame memory for storing one frame of added moving image data, 1
Reference numeral 7 is a moving picture coding circuit which compresses and codes the added moving image data stored in the second frame memory 16 and outputs the coded data, and 18 is a CPU which sets the threshold value in the judging device 14 in advance. .

【0015】以上のように構成された動画通信装置につ
いて、以下その動作を説明する。まず、入力端子T1か
ら入力された動画像データの1フレーム分が第1のフレ
ームメモリ12に記憶される。動画像データは入力端子
T1から連続して入力されるので、第1のフレームメモ
リ12に記憶されたn番目のフレームの画像データと、
次の(n+1)番目のフレームの画像データとを比較器
13に入力して両者を比較することにより、フレーム間
の差分(画像データ変化分)、すなわち動き量のデータ
を取り出すことができる(変化分算出ステップ)。この
場合、動画符号化では16×16画素のように一定のブ
ロック(以下、「マクロブロック」という)単位で符号
化するので、比較器13もこれに従ってマクロブロック
単位で画像データを比較する。
The operation of the moving picture communication apparatus configured as described above will be described below. First, one frame of moving image data input from the input terminal T1 is stored in the first frame memory 12. Since the moving image data is continuously input from the input terminal T1, the image data of the nth frame stored in the first frame memory 12 and
By inputting the image data of the next (n + 1) th frame to the comparator 13 and comparing the two, the difference between the frames (image data change amount), that is, the amount of movement data can be extracted (change). Minute calculation step). In this case, in the moving image encoding, the image data is encoded in a fixed block (hereinafter referred to as “macroblock”) unit such as 16 × 16 pixels, and therefore the comparator 13 also compares the image data in macroblock units.

【0016】判断器14は、比較器13から出力された
上記動き量データを次のように変換する。まず、あらか
じめCPU18から設定されたしきい値と比較器13か
ら出力された動き量データとを比較する。その結果、動
き量データ(動画像データ変化分)がしきい値よりも小
さい場合、そのマクロブロックは画像の静止している部
分であり、比較器13から出力された動き量データはノ
イズによる変化であると見なし、判断器14は動き量デ
ータをゼロにして出力する(判断ステップ)。同様に動
き量データがしきい値よりも大きい場合、そのマクロブ
ロックは画像の動いている部分であり、比較器13から
出力された動き量データは本来の画像の動き量であると
見なし、判断器14はその動き量データを変更せずその
まま出力する(判断ステップ)。このようにして判断器
14で静止ブロックと動きブロックとを判断しながら、
nフレーム動画像データと(n+1)フレーム動画像デ
ータとの間の動き量データ(動画像データ変化分)と、
第1のフレームメモリ12からのnフレームの動画像デ
ータとを加算器15により加算する(加算ステップ)。
この加算器15からの出力データ(加算動画像データ)
は、画像の静止部分のマクロブロックの場合はnフレー
ムと全く同様の動画像データであり、動きのある部分の
マクロブロックの場合は本来の動きが反映された動画像
データであり、これらの動画像データが第2のフレーム
メモリ16に書き込まれる。すなわち、画像の静止部分
のマクロブロックの場合はnフレーム画像データおよび
ゼロデータが第2のフレームメモリ16に書き込まれ、
動きのある部分のマクロブロックの場合はnフレーム画
像データおよび差分データ(動画像データ変化分)が書
き込まれる。第2のフレームメモリ16に記憶された加
算動画像データは動画符号化回路17によって圧縮、符
号化され、符号化データとして出力される(符号化ステ
ップ)。
The decision unit 14 converts the above-mentioned motion amount data output from the comparator 13 as follows. First, the threshold value set in advance by the CPU 18 is compared with the motion amount data output from the comparator 13. As a result, when the motion amount data (moving image data change amount) is smaller than the threshold value, the macro block is a still part of the image, and the motion amount data output from the comparator 13 changes due to noise. Then, the decision unit 14 sets the motion amount data to zero and outputs it (decision step). Similarly, when the amount of motion data is larger than the threshold value, the macroblock is a moving part of the image, and the amount of motion data output from the comparator 13 is regarded as the original amount of motion of the image. The device 14 outputs the movement amount data as it is without changing it (decision step). In this way, the judging device 14 judges a still block and a moving block,
motion amount data (moving image data change amount) between n frame moving image data and (n + 1) frame moving image data;
The adder 15 adds n frames of moving image data from the first frame memory 12 (adding step).
Output data from this adder 15 (added moving image data)
In the case of a macro block in the still part of the image, the moving image data is exactly the same as in the n frame, and in the case of a macro block in a moving part, it is the moving image data in which the original motion is reflected. The image data is written in the second frame memory 16. That is, in the case of a macro block of the still portion of the image, n frame image data and zero data are written in the second frame memory 16,
In the case of a macro block of a moving portion, n frame image data and difference data (moving image data change amount) are written. The added moving image data stored in the second frame memory 16 is compressed and encoded by the moving image encoding circuit 17 and output as encoded data (encoding step).

【0017】以上のように本実施例によれば、本来は静
止しており、前後のフレームを比較しても差分がゼロで
あるべき画像静止部分のマクロブロックにA/D変換時
の量子化雑音などによりノイズが発生して或る差分値が
生じても、予め設定されたしきい値により、その差分値
をゼロとすることができるので、INTERモードにお
いても画像の静止部分の余分な符号の発生を抑えること
ができ、余分な符号を圧縮することを不要とし、動画符
号化時の圧縮効率を向上させることができる。
As described above, according to the present embodiment, a macroblock of an image still portion, which is originally still and should have a difference of zero even when the preceding and following frames are compared, is quantized during A / D conversion. Even if noise is generated due to noise or the like and a certain difference value is generated, the difference value can be set to zero by a preset threshold value. Therefore, even in the INTER mode, an extra code of the still portion of the image is generated. Can be suppressed, unnecessary compression of extra codes is unnecessary, and compression efficiency at the time of moving image coding can be improved.

【0018】(実施例2)以下、本発明の第2の実施例
について図面を参照しながら説明する。図2は本発明の
第2の実施例に係る動画通信装置を示すブロック図であ
る。図2において、12は第1のフレームメモリ、13
は比較器、14は判断器、15は加算器、16は第2の
フレームメモリ、17は動画符号化回路、18はCPU
であり、これらは図1と同様のものなので、同一符号を
付して説明は省略する。19は入力端子T1から入力さ
れたアナログ動画像信号をA/D変換してデジタル動画
像データに変換するA/Dコンバータ、20は通信網に
接続され、動画符号化回路17の出力データ(符号化デ
ータ)を相手の動画通信装置に送信、または相手の動画
通信装置からの符号化データを受信して後述の動画復号
化回路21へ出力する通信回路、21は相手の動画通信
装置から通信網を介して入力された符号化データを元の
加算動画像データに復号化する動画復号化回路、22は
動画復号化回路21からの加算動画像データを1フレー
ム単位に動画像データとして記憶する復号フレームメモ
リ、23は復号フレームメモリ22から出力されるデジ
タル動画像データをアナログ動画像信号に変換して出力
端子T2から出力するD/Aコンバータである。
(Second Embodiment) A second embodiment of the present invention will be described below with reference to the drawings. FIG. 2 is a block diagram showing a moving picture communication device according to the second embodiment of the present invention. In FIG. 2, 12 is the first frame memory, and 13
Is a comparator, 14 is a determiner, 15 is an adder, 16 is a second frame memory, 17 is a moving picture coding circuit, 18 is a CPU
Since these are the same as those in FIG. 1, the same reference numerals are given and description thereof is omitted. Reference numeral 19 is an A / D converter for A / D converting the analog moving image signal input from the input terminal T1 to convert it into digital moving image data, and 20 is connected to the communication network, and the output data of the moving image encoding circuit 17 (code Communication data) to a partner video communication device or to receive coded data from the partner video communication device and output it to a video decoding circuit 21, which will be described later. Reference numeral 21 denotes a communication network from the partner video communication device. A moving picture decoding circuit that decodes the coded data that is input via the original added moving picture data, and a decoding unit 22 that stores the added moving picture data from the moving picture decoding circuit 21 as moving picture data in units of one frame. A frame memory 23 is a D / A converter which converts the digital moving image data output from the decoding frame memory 22 into an analog moving image signal and outputs the analog moving image signal from the output terminal T2. That.

【0019】以上のように構成された動画通信装置につ
いて、その動作を説明する。入力端子T1には一般的に
ビデオカメラ等の画像入力装置が接続され、入力された
アナログ動画像信号はA/Dコンバータ19によりデジ
タル動画像データに変換される。以下、第1の実施例で
説明したように、第1のフレームメモリ12の出力デー
タ(nフレーム動画像データ)とA/Dコンバータ19
の出力データ((n+1)フレーム動画像データ)とを
比較器13でマクロブロック単位に比較し、その動き量
データと、判断器14によって予めCPU18から設定
されたしきい値とを比較して、その大小に従って、動き
ブロックか静止ブロックかを判断し、静止ブロックの変
化分はゼロに修正して出力し、動きブロックの変化分は
そのままの差分値を加算器15へ出力し、判断器14の
出力データ(差分データ)と第1のフレームメモリ12
の動画像データとを加算器15により加算して得られた
加算動画像データを第2のフレームメモリ16に記憶
し、その加算動画像データを動画符号化回路17で圧
縮、符号化して符号化データを得る。この動作によって
静止ブロックの動画像データの変化分をゼロにするた
め、ノイズ等によるINTERモードでの符号の発生を
ゼロにすることができる。以上の動作は第1の実施例の
場合と同様である。
The operation of the moving picture communication device configured as described above will be described. An image input device such as a video camera is generally connected to the input terminal T1, and the input analog moving image signal is converted into digital moving image data by the A / D converter 19. Hereinafter, as described in the first embodiment, the output data (n-frame moving image data) of the first frame memory 12 and the A / D converter 19 will be described.
Output data ((n + 1) frame moving image data) is compared by the comparator 13 on a macroblock basis, and the motion amount data is compared with a threshold value preset from the CPU 18 by the determiner 14. According to the magnitude, it is determined whether the block is a motion block or a still block, the change amount of the still block is corrected to zero and output, and the change amount of the motion block is output to the adder 15 as it is, and the determination unit 14 outputs the difference value. Output data (difference data) and the first frame memory 12
And the moving image data obtained by adding the moving image data of No. 2 to the second frame memory 16 and the moving image encoding circuit 17 compresses, encodes and encodes the added moving image data. Get the data. By this operation, the change amount of the moving image data of the still block is set to zero, so that the code generation in the INTER mode due to noise or the like can be set to zero. The above operation is similar to that of the first embodiment.

【0020】次に、動画符号化回路17から出力される
符号化データは通信回路20に入力される。通信回路2
0は一般の通信網に接続するための回路であり、接続さ
れる通信網の種類によってそれぞれ構成は異なる。例え
ば通信網がアナログ回線であれば、通信回路20はモデ
ムで構成されるであろうし、ISDN回線であればS/
Tインタフェース回路、LANであればLANコントロ
ーラ回路で構成されるであろう。いずれにしても通信回
路20は相手の動画通信装置と接続され、相手装置との
間でデータの送受信を行う。動画符号化回路17から出
力された符号化データは通信回路20により相手装置へ
送信され、相手装置から受信した符号化データは動画復
号化回路21によって復号化される。動画復号化回路2
1は相手装置から受信した符号化データを復号化し、加
算動画像データに変換する。動画像の復号化についても
符号化と同様にマクロブロック単位に実行され、その結
果が復号フレームメモリ22にデジタル動画像データと
して書き込まれる。復号フレームメモリ22に書き込ま
れたデジタル動画像データはD/Aコンバータ23によ
りアナログ動画像信号に変換され、出力される。D/A
コンバータ23から出力されたアナログ動画像信号はテ
レビモニタ等により表示することができる。以上の動作
を制御するため、CPU18は判断器14のしきい値の
設定、動画符号化回路17の動作制御、通信回路20に
おける相手装置との接続・切断制御、動画復号化回路2
1の動作制御などを行う。
Next, the encoded data output from the moving image encoding circuit 17 is input to the communication circuit 20. Communication circuit 2
Reference numeral 0 is a circuit for connecting to a general communication network, and has a different structure depending on the type of communication network to be connected. For example, if the communication network is an analog line, the communication circuit 20 will be composed of a modem, and if it is an ISDN line, S /
If it is a T interface circuit or a LAN, it will be composed of a LAN controller circuit. In any case, the communication circuit 20 is connected to the video communication device of the other party and transmits / receives data to / from the other device. The encoded data output from the moving image encoding circuit 17 is transmitted to the partner device by the communication circuit 20, and the encoded data received from the partner device is decoded by the moving image decoding circuit 21. Video decoding circuit 2
Reference numeral 1 decodes the encoded data received from the partner device and converts it into added moving image data. Similar to the encoding, the decoding of the moving image is executed in macro block units, and the result is written in the decoding frame memory 22 as digital moving image data. The digital moving image data written in the decoding frame memory 22 is converted into an analog moving image signal by the D / A converter 23 and output. D / A
The analog moving image signal output from the converter 23 can be displayed on a television monitor or the like. In order to control the above operation, the CPU 18 sets the threshold value of the judging device 14, the operation control of the moving picture coding circuit 17, the connection / disconnection control of the communication circuit 20 with the partner device, the moving picture decoding circuit 2
1 operation control is performed.

【0021】なお、上記動画通信装置にマイクなどの音
声入力装置と、スピーカなどの音声出力装置と、それぞ
れの音声入出力装置を接続された音声符号化復号化回路
と、画像符号化データと音声符号化データとを多重分離
して通信回路に接続する多重分離回路とを付加すること
によって、画像および音声を利用したテレビ電話端末装
置を構成できることはいうまでもない。
A voice input device such as a microphone, a voice output device such as a speaker, a voice encoding / decoding circuit to which the respective voice input / output devices are connected to the moving image communication device, image encoded data and voice. It goes without saying that a videophone terminal device using images and voices can be configured by adding a demultiplexing circuit for demultiplexing encoded data and connecting to a communication circuit.

【0022】以上のように本実施例によれば、画像静止
部分のマクロブロックにA/D変換時の量子化雑音など
によりノイズが発生して或る差分値が生じても、CPU
18により判断器14に予め設定されたしきい値によ
り、上記差分値をゼロとすることができるので、INT
ERモードにおいても画像の静止部分の余分な符号の発
生を抑えることができ、動画符号化時の圧縮効率を向上
させることができる。
As described above, according to this embodiment, even if a certain difference value is generated due to noise generated in the macroblock of the still image portion due to quantization noise during A / D conversion, the CPU
Since the difference value can be set to zero by the threshold value preset in the judging device 14 by 18,
In the ER mode as well, it is possible to suppress the generation of extra codes in the still portion of the image, and it is possible to improve the compression efficiency during video encoding.

【0023】[0023]

【発明の効果】以上のように本発明は、連続するフレー
ムのうちのn(任意の自然数)番目のフレームの動画像
データに対する(n+1)番目のフレームの動画像デー
タのレベル変化分としての動画像データ変化分を算出す
る変化分算出ステップと、算出した動画像データ変化分
が予め設定されたしきい値よりも小さいときにはレベル
変化分としての動画像データ変化分をゼロとし、算出し
た動画像データ変化分が予め設定されたしきい値よりも
大きいときにはレベル変化分としての動画像データ変化
分を算出した動画像データ変化分とする判断ステップ
と、レベル変化分としての動画像データ変化分とn番目
のフレームの動画像データとを加算する加算ステップ
と、加算した動画像データを圧縮、符号化して符号化デ
ータを生成する符号化ステップとを有することにより、
前後のフレームの画像データを比較し、それらのデータ
の差分データを符号化するINTERモード時におい
て、画像の静止部分に発生したノイズ成分を予め設定し
たしきい値によりゼロとすることができるので、画像の
静止部分の余分な符号の発生を抑えることができ、動画
符号化時の圧縮効率を向上させることが可能な動画符号
化方法を実現することができる。
As described above, according to the present invention, the moving image data of the (n + 1) th frame of the moving image data for the nth (arbitrary natural number) frame of the continuous frames is changed. A change amount calculation step of calculating the image data change amount, and when the calculated moving image data change amount is smaller than a preset threshold value, the moving image data change amount as the level change amount is set to zero, and the calculated moving image When the data change amount is larger than a preset threshold value, the moving image data change amount as the level change amount is determined as the calculated moving image data change amount, and the moving image data change amount as the level change amount is determined. An addition step of adding the moving image data of the n-th frame, and an encoding of generating the encoded data by compressing and encoding the added moving image data. By having a step,
In the INTER mode in which the image data of the preceding and succeeding frames are compared and the difference data of those data is encoded, the noise component generated in the still portion of the image can be made zero by the preset threshold value. It is possible to realize a moving image coding method that can suppress the generation of extra codes in the still portion of an image and can improve the compression efficiency during moving image coding.

【0024】また、入力される動画像データを1フレー
ム単位に記憶する第1のフレームメモリと、第1のフレ
ームメモリに記憶されたn(任意の自然数)番目のフレ
ームの動画像データと(n+1)番目のフレームの動画
像データとを一定のブロック単位で比較し、n番目のフ
レームの動画像データに対する(n+1)番目のフレー
ムの動画像データのレベル変化分としての動画像データ
変化分を算出する比較手段と、算出した動画像データ変
化分が予め設定されたしきい値よりも小さいときにはレ
ベル変化分としての動画像データ変化分をゼロとし、算
出した動画像データ変化分が予め設定されたしきい値よ
りも大きいときにはレベル変化分としての動画像データ
変化分を算出した動画像データ変化分とする判断手段
と、レベル変化分としての動画像データ変化分とn番目
のフレームの動画像データとを加算して加算動画像デー
タを出力する加算手段と、加算手段から出力される加算
動画像データの1フレーム分を記憶する第2のフレーム
メモリと、第2のフレームメモリに記憶された加算動画
像データを圧縮、符号化して符号化データを出力する動
画符号化回路と、符号化データを通信網を介して相手側
に送信する通信回路と、通信回路からの相手側の符号化
データを元の加算動画像データに復号化する動画復号化
回路と、動画復号化回路からの加算動画像データを1フ
レーム単位に動画像データとして記憶する復号フレーム
メモリとを設けたことにより、前後のフレームの画像デ
ータを比較し、それらのデータの差分データを符号化す
るINTERモード時において、判断手段は、予め設定
されたしきい値により、画像の静止部分に発生したノイ
ズ成分をゼロとすることができるので、画像の静止部分
の余分な符号の発生を抑えることができ、動画符号化回
路における圧縮効率を向上させ、通信効率が高く信頼性
の高い通信が可能な動画通信装置を実現することができ
る。
Also, the first frame memory for storing the input moving image data in units of one frame, the moving image data of the n (arbitrary natural number) -th frame stored in the first frame memory, and (n + 1) ) The moving image data of the (n + 1) th frame is compared with the moving image data of the (n + 1) th frame to calculate the moving image data change amount as the level change amount of the (n + 1) th frame moving image data. When the calculated moving image data change amount is smaller than a preset threshold value, the moving image data change amount as the level change amount is set to zero, and the calculated moving image data change amount is set in advance. When it is larger than the threshold value, the moving image data change amount as the level change amount is determined as the calculated moving image data change amount, and the level change amount Adding means for adding the moving image data change amount and the moving image data of the n-th frame to output the added moving image data; and storing one frame of the added moving image data output from the adding means. No. 2 frame memory, a moving picture coding circuit for compressing and coding the added moving image data stored in the second frame memory and outputting the coded data, and sending the coded data to the other party via the communication network. Communication circuit, a moving picture decoding circuit that decodes the encoded data of the other side from the communication circuit into the original added moving picture data, and the added moving picture data from the moving picture decoding circuit in units of moving picture data By providing a decoding frame memory for storing as, it is possible to judge in the INTER mode in which the image data of the preceding and following frames are compared and the difference data of those data is encoded. The stage can set the noise component generated in the still portion of the image to zero by a preset threshold value, so that it is possible to suppress the generation of extra codes in the still portion of the image. It is possible to realize a moving image communication device that improves the compression efficiency in the above and can perform highly reliable communication with high communication efficiency.

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

【図1】本発明の一実施例に係る動画符号化方法が適用
される動画通信装置を示すブロック図
FIG. 1 is a block diagram showing a moving picture communication device to which a moving picture coding method according to an embodiment of the present invention is applied.

【図2】本発明の第2の実施例に係る動画通信装置を示
すブロック図
FIG. 2 is a block diagram showing a moving picture communication device according to a second embodiment of the present invention.

【図3】従来の動画符号化方法が適用される動画通信装
置を示すブロック図
FIG. 3 is a block diagram showing a moving picture communication device to which a conventional moving picture coding method is applied.

【符号の説明】[Explanation of symbols]

12 第1のフレームメモリ 13 比較器(比較手段) 14 判断器(判断手段) 15 加算器(加算手段) 16 第2のフレームメモリ 17 動画符号化回路 18 CPU 19 A/Dコンバータ 20 通信回路 21 動画復号化回路 22 復号フレームメモリ 23 D/Aコンバータ T1 入力端子 T2 出力端子 12 First Frame Memory 13 Comparator (Comparison Means) 14 Judgment Machine (Judgment Means) 15 Adder (Addition Means) 16 Second Frame Memory 17 Video Coding Circuit 18 CPU 19 A / D Converter 20 Communication Circuit 21 Video Decoding circuit 22 Decoding frame memory 23 D / A converter T1 input terminal T2 output terminal

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】連続するフレームのうちのn(任意の自然
数)番目のフレームの動画像データに対する(n+1)
番目のフレームの動画像データのレベル変化分としての
動画像データ変化分を算出する変化分算出ステップと、
前記算出した動画像データ変化分が予め設定されたしき
い値よりも小さいときには前記レベル変化分としての動
画像データ変化分をゼロとし、前記算出した動画像デー
タ変化分が予め設定されたしきい値よりも大きいときに
は前記レベル変化分としての動画像データ変化分を前記
算出した動画像データ変化分とする判断ステップと、前
記レベル変化分としての動画像データ変化分と前記n番
目のフレームの動画像データとを加算する加算ステップ
と、前記加算した動画像データを圧縮、符号化して符号
化データを生成する符号化ステップとを有することを特
徴とする動画符号化方法。
1. (n + 1) for moving image data of an n-th (arbitrary natural number) frame of consecutive frames
A change amount calculating step of calculating a change amount of moving image data as a level change amount of moving image data of the th frame,
When the calculated moving image data change amount is smaller than a preset threshold value, the moving image data change amount as the level change amount is set to zero, and the calculated moving image data change amount is set in advance. When it is larger than the value, a step of determining that the moving image data change amount as the level change amount is the calculated moving image data change amount, the moving image data change amount as the level change amount and the moving image of the n-th frame A moving image coding method comprising: an addition step of adding image data, and an encoding step of compressing and encoding the added moving image data to generate encoded data.
【請求項2】入力される動画像データを1フレーム単位
に記憶する第1のフレームメモリと、前記第1のフレー
ムメモリに記憶されたn(任意の自然数)番目のフレー
ムの動画像データと(n+1)番目のフレームの動画像
データとを一定のブロック単位で比較し、n番目のフレ
ームの動画像データに対する(n+1)番目のフレーム
の動画像データのレベル変化分としての動画像データ変
化分を算出する比較手段と、前記算出した動画像データ
変化分が予め設定されたしきい値よりも小さいときには
前記レベル変化分としての動画像データ変化分をゼロと
し、前記算出した動画像データ変化分が予め設定された
しきい値よりも大きいときには前記レベル変化分として
の動画像データ変化分を前記算出した動画像データ変化
分とする判断手段と、前記レベル変化分としての動画像
データ変化分と前記n番目のフレームの動画像データと
を加算して加算動画像データを出力する加算手段と、前
記加算手段から出力される加算動画像データの1フレー
ム分を記憶する第2のフレームメモリと、前記第2のフ
レームメモリに記憶された加算動画像データを圧縮、符
号化して符号化データを出力する動画符号化回路と、前
記符号化データを通信網を介して相手側に送信する通信
回路と、前記通信回路からの相手側の符号化データを元
の加算動画像データに復号化する動画復号化回路と、前
記動画復号化回路からの加算動画像データを1フレーム
単位に動画像データとして記憶する復号フレームメモリ
とを備えたことを特徴とする動画通信装置。
2. A first frame memory for storing input moving image data in units of one frame, and moving image data of an n (arbitrary natural number) th frame stored in the first frame memory ( The moving image data of the (n + 1) th frame is compared in a fixed block unit, and the moving image data change amount as the level change amount of the moving image data of the (n + 1) th frame is compared with the moving image data of the nth frame. When the calculated moving image data change amount is smaller than a preset threshold value, the moving image data change amount as the level change amount is set to zero, and the calculated moving image data change amount is Judging means for setting the moving image data change amount as the level change amount to be the calculated moving image data change amount when it is larger than a preset threshold value An addition unit that adds the moving image data change amount as the level change amount and the moving image data of the n-th frame to output the added moving image data; and the addition moving image data output from the adding unit. A second frame memory for storing one frame, a moving picture coding circuit for compressing and coding the added moving image data stored in the second frame memory and outputting the coded data, and the coded data A communication circuit for transmitting to the other party via a communication network, a moving picture decoding circuit for decoding the other party's encoded data from the communication circuit into the original addition moving image data, and an addition from the moving picture decoding circuit A moving picture communication device, comprising: a decoding frame memory that stores moving image data as moving image data in units of one frame.
JP16345095A 1995-06-29 1995-06-29 Moving image encoding method and moving image communication device Pending JPH0918879A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP16345095A JPH0918879A (en) 1995-06-29 1995-06-29 Moving image encoding method and moving image communication device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP16345095A JPH0918879A (en) 1995-06-29 1995-06-29 Moving image encoding method and moving image communication device

Publications (1)

Publication Number Publication Date
JPH0918879A true JPH0918879A (en) 1997-01-17

Family

ID=15774117

Family Applications (1)

Application Number Title Priority Date Filing Date
JP16345095A Pending JPH0918879A (en) 1995-06-29 1995-06-29 Moving image encoding method and moving image communication device

Country Status (1)

Country Link
JP (1) JPH0918879A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2006047936A1 (en) * 2004-11-02 2006-05-11 Huawei Technologies Co., Ltd. A method for determining the condition in zero block prejudgment and for prejudging zero block

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2006047936A1 (en) * 2004-11-02 2006-05-11 Huawei Technologies Co., Ltd. A method for determining the condition in zero block prejudgment and for prejudging zero block

Similar Documents

Publication Publication Date Title
RU2322770C2 (en) Method and device for indication of quantizer parameters in video encoding system
US5870146A (en) Device and method for digital video transcoding
JP3133517B2 (en) Image region detecting device, image encoding device using the image detecting device
KR100235162B1 (en) Method and apparatus for determining whether to intra code a video block
JP3338460B2 (en) Video signal encoding device and video signal encoding method
JP2004248285A (en) Video encoder capable of differentially coding speaker's video image at pictorial call and video signal compression method using the same
JPH0468988A (en) High efficient coder for moving picture signal
JPH0775111A (en) Digital signal encoder
JP2002010261A (en) Image coding transform apparatus
JPH01228384A (en) Moving image coding system using area division
JPH07222173A (en) Picture processor
JP2914607B2 (en) Image signal decoding device
JPH0918879A (en) Moving image encoding method and moving image communication device
JP3738511B2 (en) Video coding system
JP2916027B2 (en) Image coding device
JPH09275550A (en) Video conference system
KR100778473B1 (en) Bit rate control method
JP3363476B2 (en) Encoding device and method
JPH06233292A (en) Picture signal transmitting device
KR0124162B1 (en) Prediction coding method
JPH10304382A (en) Inter-frame predictive coding system
JPH06276512A (en) Picture communication equipment
JPH09107543A (en) Quantizer control system
JPH06165148A (en) Dynamic picture communicate equipment
JPH06311534A (en) Picture coder