JPH0638243A - Motion vector calculation circuit for color difference signal - Google Patents

Motion vector calculation circuit for color difference signal

Info

Publication number
JPH0638243A
JPH0638243A JP21077692A JP21077692A JPH0638243A JP H0638243 A JPH0638243 A JP H0638243A JP 21077692 A JP21077692 A JP 21077692A JP 21077692 A JP21077692 A JP 21077692A JP H0638243 A JPH0638243 A JP H0638243A
Authority
JP
Japan
Prior art keywords
motion vector
color difference
bit
difference signal
significant
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.)
Granted
Application number
JP21077692A
Other languages
Japanese (ja)
Other versions
JP2815510B2 (en
Inventor
Akira Nakagawa
章 中川
Eiji Morimatsu
映史 森松
Yuji Nomura
祐司 野村
Kiichi Matsuda
喜一 松田
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.)
Fujitsu Ltd
Original Assignee
Fujitsu 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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP21077692A priority Critical patent/JP2815510B2/en
Publication of JPH0638243A publication Critical patent/JPH0638243A/en
Application granted granted Critical
Publication of JP2815510B2 publication Critical patent/JP2815510B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Compression Or Coding Systems Of Tv Signals (AREA)
  • Color Television Systems (AREA)
  • Processing Of Color Television Signals (AREA)

Abstract

PURPOSE:To reduce the circuit scale and to decrease a signal delay by adding a carry to a value resulting from a motion vector of a macro block from which m-bits toward the least significant bit are eliminated so as to use the result of sum as a motion vector of a color difference signal. CONSTITUTION:When the H.261 system is applied to a motion vector M of a macro block, '1' is always outputted from an OR gate 2, and it is regarded that only a 2nd bit MLSB-1 from the least significant bit and the most significant code bit MMSB in the vector M are inputted to an AND gate 3. Then a motion vector CH.261 of a color difference signal of this system is obtained from an adder 1. On the other hand, when the vector M is the MPEG system vector, the bit MLSB is directly inputted to the gate 3. In this case, the gate 3 outputs '1' only when the remainder of division of two-bits MLSB, MLSB-1 toward the least divided by 2<2> and fractions are rounded off is realized, and the motion vector CMPEG of a color difference signal of the MPEG system is obtained from the adder 1.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、通信用符号化標準
(H.261)と蓄積用符号化標準(MPEG)といっ
た複数の動画像符号化標準方式に対して共通に色差信号
の動きベクトルを計算できる色差信号の動きベクトル計
算回路に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention commonly uses a motion vector of a color difference signal for a plurality of moving image coding standard systems such as a communication coding standard (H.261) and a storage coding standard (MPEG). The present invention relates to a motion vector calculation circuit for a color difference signal that can be calculated.

【0002】[0002]

【従来の技術】動画像符号化方式の国際標準は通信用符
号化標準に関してはCCITT勧告H.261方式が既
に完了し、また、蓄積用符号化標準に関してもMPEG
方式がほぼ確定している。両者はアルゴリズム的に似通
った部分が数多くあり、ハードウェアの共用に適してい
る。
2. Description of the Related Art The international standard for moving picture coding is CCITT Recommendation H.264 as a coding standard for communication. The H.261 system has already been completed, and the storage coding standard is MPEG.
The method is almost fixed. Both have many similar parts algorithmically and are suitable for sharing hardware.

【0003】H.261方式とMPEG方式に共通に用
いられているマクロブロックの動きベクトルMから、輝
度、色差の各信号の動きベクトルY、Cを求める回路を
作成する場合、回路上でベクトルの信号線を共有する方
法が広く用いられている。
H. When a circuit for obtaining the motion vectors Y and C of the luminance and color difference signals from the motion vector M of the macroblock commonly used in the H.261 system and the MPEG system is created, the vector signal line is shared on the circuit. The method is widely used.

【0004】図3の(A)には復号されたマクロブロッ
クに対する動きベクトルMを共有する方式の例が示され
る。H.261方式の動きベクトルMは画素単位(つま
り整数単位)であり、これに対してMPEG方式の動き
ベクトルMは1/2画素単位(つまり1/2整数単位)
である。このためMPEG方式ではその動きベクトルM
の最下位ビットMLSB が小数点以下第1桁とみなされ
る。一方、H.261方式の動きベクトルMは本来小数
点以下の桁を持たないが、H.261方式とMPEG方
式の動きベクトルMを共通化するために、その最下位ビ
ットMLSB を小数点以下第1桁とみなすとともにその値
を常に“0”とし、H.261方式の動きベクトルMと
して用いるときにはこの最下位ビットMLSB を無視して
いる。
FIG. 3A shows an example of a method of sharing a motion vector M for a decoded macroblock. H. The H.261 system motion vector M is in pixel units (that is, integer units), whereas the MPEG system motion vector M is in 1/2 pixel units (that is, 1/2 integer units).
Is. Therefore, in the MPEG system, the motion vector M
The least significant bit M LSB of is considered to be the first digit after the decimal point. On the other hand, H. The motion vector M of the H.261 system originally has no digits after the decimal point, but In order to make the motion vector M of the H.261 system and the MPEG system common, the least significant bit M LSB is regarded as the first digit after the decimal point and its value is always “0”, and the H.264 standard is used. When used as the motion vector M of the H.261 system, this least significant bit M LSB is ignored.

【0005】図3の(B)にはH.261方式とMPE
G方式で共有した動きベクトルM(すなわちH.261
方式の復号されたマクロブロックの動きベクトルMにつ
いてはMPEG方式に合わせてその最下位ビットMLSB
に“0”を詰めたもの)から輝度信号の動きベクトルY
と色差信号の動きベクトルCを導出する仕方を示してい
る。
In FIG. 3B, H.264 is used. 261 system and MPE
The motion vector M shared by the G method (that is, H.261
For the motion vector M of the decoded macroblock of the system, the least significant bit M LSB of the system is adjusted according to the MPEG system.
From "0") to the luminance signal motion vector Y
And how to derive the motion vector C of the color difference signal.

【0006】輝度信号の動きベクトルYは、H.261
方式とMPEG方式ともに整数を単位としており、よっ
てその小数点以下は切り捨てる。したがってH.261
方式とMPEG方式の輝度信号の動きベクトルYの導出
方法は同じであり、マクロブロックに対する動きベクト
ルMの小数点以下第1桁に相当する最下位ビットMLSB
を切り捨てるというものである。この切り捨ての処理は
動きベクトルの全ビットを1ビット右シフトして最下位
ビットMLSB を捨てることで実現できる。
The motion vector Y of the luminance signal is H.264. 261
Both the system and the MPEG system use an integer as a unit, and therefore, fractions below the decimal point are truncated. Therefore, H. 261
The method of deriving the motion vector Y of the luminance signal is the same as that of the MPEG system and the least significant bit M LSB corresponding to the first digit after the decimal point of the motion vector M for the macroblock.
Is to cut off. This truncation processing can be realized by shifting all the bits of the motion vector to the right by 1 bit and discarding the least significant bit M LSB .

【0007】また、色差信号の動きベクトルCは、マク
ロブロックに対する動きベクトルMを1/2にすること
で求め、小数点以下の桁は切り捨てている。
Further, the motion vector C of the color difference signal is obtained by halving the motion vector M for the macroblock, and the digits below the decimal point are truncated.

【0008】ここで2進数の整数Rを1/2にして小数
点以下の桁を切り捨てる操作(以下、「2で割る」操作
と称する)について述べると、この整数Rが正の数であ
る場合には、整数Rを1ビット右シフトしてその最下位
ビットRLSB を切り捨てればよい。また、整数Rが負の
偶数である場合(最下位ビットRLSB が“0”)、上述
同様に1ビット右シフトすればよい。ところが整数Rが
負の偶数である場合(最下位ビットRLSB が“1”)、
1ビット右シフトして“1”の最下位ビットRLSB を捨
てる処理は負方向に整数Rを切り上げることになり、正
方向の切り捨てと一致しなくなってしまう。そこで、整
数が負の奇数である場合には、整数Rを1ビット右シフ
トした値の最下位ビット(=RLSB-1 )に“1”を加算
することで切り捨てとなるようにしている。
The operation of halving the binary integer R and discarding the digits after the decimal point (hereinafter referred to as the "division by 2" operation) will now be described. When the integer R is a positive number, Can shift the integer R right by 1 bit and discard the least significant bit R LSB . If the integer R is a negative even number (the least significant bit R LSB is “0”), it may be right-shifted by 1 bit as described above. However, when the integer R is a negative even number (the least significant bit R LSB is “1”),
The process of right-shifting by 1 bit and discarding the least significant bit R LSB of "1" results in rounding up the integer R in the negative direction, which does not coincide with the truncation in the positive direction. Therefore, when the integer is a negative odd number, "1" is added to the least significant bit (= R LSB-1 ) of the value obtained by right-shifting the integer R by 1 bit so that the integer R is discarded.

【0009】図4にはこのような「2で割る」操作を行
う回路の例が示される。いまnビットの整数Rを2で割
るものとする。この整数Rの最上位ビットRMSB は符号
ビットである。21は加算器であり、整数Rのうちの最
下位ビットRLSB を除いた(n−1)ビットが入力され
ており、キャリィ入力が“1”のときにはこれを入力値
の最下位ビットRLSB-1 に加算して出力し、キャリィ入
力が“0”のときには入力値をそのまま出力する。整数
Rの最下位ビットRLSB はアンドゲート22を通して加
算器21のキャリィ入力端子に入力され、アンドゲート
22の他の入力端子には整数Rの最上位ビットRMSB
入力される。
FIG. 4 shows an example of a circuit for performing such a "divide by two" operation. Now, assume that the n-bit integer R is divided by 2. The most significant bit R MSB of this integer R is the sign bit. Reference numeral 21 denotes an adder, which receives (n-1) bits excluding the least significant bit R LSB of the integer R. When the carry input is "1", this is the least significant bit R LSB of the input value. -1 is added and output, and when the carry input is "0", the input value is output as it is. The least significant bit R LSB of the integer R is input to the carry input terminal of the adder 21 through the AND gate 22, and the most significant bit R MSB of the integer R is input to the other input terminal of the AND gate 22.

【0010】このようにすると、アンドゲート22は、
整数Rが負の奇数(すなわち最上位ビットRMSB と最下
位ビットRLSB が共に“1”)であることを判定して
“1”を加算器21へそのキャリィ信号として出力する
ことになり、よって加算器21では整数Rが負の奇数で
ある場合にはその最下位ビットRLSB を捨てた値に
“1”を加える処理が行われ、これにより整数Rを2で
割る操作が実現される。
In this way, the AND gate 22 is
It is determined that the integer R is a negative odd number (that is, the most significant bit R MSB and the least significant bit R LSB are both “1”), and “1” is output to the adder 21 as its carry signal. Therefore, when the integer R is a negative odd number, the adder 21 performs a process of adding "1" to the value obtained by discarding the least significant bit R LSB , thereby realizing the operation of dividing the integer R by 2. .

【0011】さて、上述の2で割る操作を用いて、マク
ロブロックの動きベクトルMから色差信号の動きベクト
ルCを求める方法を図3の(B)を参照して説明する。
Now, a method for obtaining the motion vector C of the color difference signal from the motion vector M of the macroblock by using the above-mentioned operation of dividing by 2 will be described with reference to FIG.

【0012】まず、H.261方式について色差信号の
動きベクトルCH.261 を求める場合には、その動きベク
トルMは小数点以下第1桁とみなされる最下位ビットM
LSBは常に“0”であるから、この最下位ビットMLSB
を捨てて「2で割る」回路に入力させればよい。つまり
小数点以下の桁を切り捨てて2で割ればよい。
First, H. When the motion vector C H.261 of the color difference signal is obtained for the H.261 system, the motion vector M is the least significant bit M which is regarded as the first digit after the decimal point.
Since the LSB is always "0", this least significant bit M LSB
Should be discarded and input to the "divide by 2" circuit. In other words, the digits below the decimal point can be truncated and divided by two.

【0013】一方、MPEG方式について色差信号の動
きベクトルCMPEGを求める場合、小数点以下第1桁とみ
なされる最下位ビットMLSB は“0”だけでなく“1”
のときもある。このように、動きベクトルMが負で最下
位ビットMLSB が“1”である場合には、動きベクトル
Mを2で割ってからその小数点以下を切り捨てる操作が
必要となる。
On the other hand, when the motion vector C MPEG of the color difference signal is obtained in the MPEG system, the least significant bit M LSB regarded as the first digit after the decimal point is not only "0" but also "1".
Sometimes As described above, when the motion vector M is negative and the least significant bit M LSB is "1", it is necessary to divide the motion vector M by 2 and then discard the fractional part.

【0014】図5には、このような2で割る回路を用い
てマクロブロックの動きベクトルMからH.261方式
とMPEG方式の色差信号の動きベクトルCを計算する
回路の従来例が示される。図5において、2で割る回路
11はMPEG方式の色差信号の動きベクトルCMPEG
計算する回路、2で割る回路12はH.261方式の色
差信号の動きベクトルCH.261 を計算する回路、セレク
タ13はその一方をH.261/MPEGの識別信号に
よって選択する回路である。
In FIG. 5, the motion vector M to H.H. A conventional example of a circuit for calculating a motion vector C of color difference signals of the H.261 system and the MPEG system is shown. In FIG. 5, a circuit 11 that divides by 2 is a circuit that calculates a motion vector C MPEG of a color difference signal of the MPEG system, and a circuit 12 that divides by 2 is an H.264 signal. The circuit for calculating the motion vector C H.261 of the color difference signal of the H.261 system, the selector 13 uses one of the H.261 and H.261 . It is a circuit that is selected by the 261 / MPEG identification signal.

【0015】ここで、2で割る回路12は動きベクトル
M(=nビット)の最下位ビットMLSB を除く残りのM
MSB 〜MLSB-1 が入力され、その入力値(=n−1ビッ
ト)を2で割ってH.261方式の色差信号の動きベク
トルCH.261 (=n−2ビット)を生成している。すな
わち、前述したH.261方式についての色差信号の動
きベクトルCH.261 の求め方である「小数点以下を切り
捨ててから2で割る」操作を行っている。
Here, the circuit 12 for dividing by 2 has the remaining M excluding the least significant bit M LSB of the motion vector M (= n bits).
MSB to MLSB -1 are input, the input value (= n-1 bit) is divided by 2, and H.264 is input. The H.261 color difference signal motion vector C H.261 (= n-2 bits) is generated. That is, the H. The operation of “truncation after the decimal point and dividing by 2”, which is a method of obtaining the motion vector C H.261 of the color difference signal for the H.261 system, is performed.

【0016】一方、2で割る回路11は動きベクトルM
(=nビット)の全ビットMMSB 〜MLSB が入力されて
その入力値を2で割り、その出力値(=n−1ビット)
の最下位ビットを無視することで、MPEG方式の色差
信号の動きベクトルCMPEG(=n−2ビット)を生成し
ている。すなわち、前述したMPEG方式についての色
差信号の動きベクトルCMPEGの求め方である「2で割っ
てから小数点以下を切り捨てる」操作を行っている。
On the other hand, the circuit 11 that divides by 2 has the motion vector M
(= N bits) All bits M MSB to M LSB are input, the input value is divided by 2, and the output value (= n-1 bit)
By ignoring the least significant bit of, the motion vector C MPEG (= n−2 bits) of the color difference signal of the MPEG system is generated. That is, the operation of “dividing by 2 and then discarding the fractional part”, which is the method of obtaining the motion vector C MPEG of the color difference signal for the MPEG system described above, is performed.

【0017】セレクタ13はH.261方式とMPEG
方式を識別する識別信号によって、入力されているマク
ロブロックの動きベクトルMが何れの方式のものである
かを識別し、その方式に応じて色差信号の動きベクトル
を選択し出力する。
The selector 13 is an H.264. 261 system and MPEG
The identification signal for identifying the system identifies which system the motion vector M of the input macroblock belongs to, and selects and outputs the motion vector of the color difference signal according to the system.

【0018】[0018]

【発明が解決しようとする課題】この従来の色差信号の
動きベクトル計算回路は、加算器が2個とセレクタが必
要であり、このため回路規模が大きい。またセレクタが
ある分だけ余分な信号遅延が生じる。
This conventional motion vector calculation circuit for color difference signals requires two adders and a selector, and therefore the circuit scale is large. In addition, an extra signal delay occurs due to the presence of the selector.

【0019】本発明はかかる問題点に鑑みてなされたも
のであり、その目的とするところは、色差信号の動きベ
クトル計算回路の回路規模を縮小化し、また信号遅延を
小さくすることにある。
The present invention has been made in view of the above problems, and it is an object of the present invention to reduce the circuit scale of a motion vector calculation circuit for color difference signals and reduce the signal delay.

【0020】[0020]

【課題を解決するための手段】図1は本発明に係る原理
説明図である。本発明の色差信号の動きベクトル計算回
路は、マクロブロックの動きベクトルの最下位側mビッ
ト(但し、mは整数)を除いた値にキャリィを加算して
色差信号の動きベクトルとする加算器30と、マクロブ
ロックの動きベクトルの最下位側mビットを2m で割っ
たときの剰余とその符号ビットと複数の符号化方式を識
別する識別信号との論理演算により加算器30に入力す
るキャリィを生成する論理回路31とを備えたものであ
る。
FIG. 1 is a diagram illustrating the principle of the present invention. The color difference signal motion vector calculating circuit of the present invention adds a carry to the value excluding the least significant bits (where m is an integer) of the macroblock motion vector to obtain a color difference signal motion vector. And a carry input to the adder 30 by a logical operation of the remainder when the least significant bit m of the motion vector of the macroblock is divided by 2 m , its code bit, and an identification signal for identifying a plurality of encoding methods. And a logic circuit 31 for generating.

【0021】また本発明の色差信号の動きベクトル計算
回路は、マクロブロックの動きベクトルの最下位側2ビ
ットを除いた値にキャリィを加算して色差信号の動きベ
クトルとする加算器と、2つの符号化方式を識別する識
別信号と動きベクトルの最下位ビットが入力されるオア
ゲートと、オアゲートの出力信号と動きベクトルの最上
位ビットと最下位側から2番目のビットが入力されて該
加算器にキャリィを出力するアンドゲートとで構成され
るものである。
Further, the color difference signal motion vector calculating circuit of the present invention includes an adder for adding a carry to a value excluding the least significant 2 bits of the macroblock motion vector to obtain a color difference signal motion vector, and two adders. An OR gate to which the identification signal for identifying the encoding method and the least significant bit of the motion vector are input, and an output signal of the OR gate, the most significant bit of the motion vector and the second bit from the least significant side are input to the adder. It is composed of an AND gate that outputs a carry.

【0022】[0022]

【作用】論理回路31は、マクロブロックの動きベクト
ルの最下位側mビットを2m で割ったときの剰余とその
符号ビットと複数の符号化方式を識別する識別信号との
論理演算により加算器30に入力するキャリィを生成す
る。加算器30はマクロブロックの動きベクトルの最下
位側mビットを除いた値にこのキャリィを加算して色差
信号の動きベクトルとする。
The logic circuit 31 performs the logical operation of the remainder when the least significant m bits of the macroblock motion vector are divided by 2 m , the sign bit thereof, and the identification signal for identifying a plurality of encoding methods. A carry to be input to 30 is generated. The adder 30 adds this carry to the value excluding the least significant m bits of the motion vector of the macroblock to obtain the motion vector of the color difference signal.

【0023】[0023]

【実施例】以下、図面を参照して本発明の実施例を説明
する。図2には本発明の一実施例としての色差信号の動
きベクトル計算回路が示される。図2において、Mはマ
クロブロックの動きベクトルであり、これはnビットか
らなり、そのうちの最上位ビットMMSB は符号ビットで
あり、最下位ビットMLSB は小数点以下第1桁と見なさ
れるものである。加算器1にはこの動きベクトルMのう
ちの最下位ビット側の2ビットMLSB 、MLSB-1 を除い
たビットMMSB〜MLSB-2 が入力される。加算器1はこ
の入力値の最下位ビット(=MLSB-2 )にキャリイ入力
を加算して色差信号の動きベクトルCとして出力する。
Embodiments of the present invention will be described below with reference to the drawings. FIG. 2 shows a motion vector calculation circuit for color difference signals as an embodiment of the present invention. In FIG. 2, M is a motion vector of the macroblock, which consists of n bits, of which the most significant bit M MSB is the sign bit and the least significant bit M LSB is considered to be the first digit after the decimal point. is there. The bits M MSB to M LSB-2 of the motion vector M excluding the least significant two bits M LSB and M LSB-1 of the motion vector M are input to the adder 1. The adder 1 adds the carry input to the least significant bit (= M LSB-2 ) of this input value and outputs it as the motion vector C of the color difference signal.

【0024】オアゲート2には、動きベクトルMの最下
位ビットMLSB とH.261/MPEG方式の識別信号
とが入力される。この識別信号はH.261方式の場合
に“1”、MPEG方式の場合に“0”である。オアゲ
ート2の出力はアンドゲート3に入力される。このアン
ドゲート3にはこの他に動きベクトルMの最下位から2
番目のビットMLSB-1 と最上位の符号ビットMMSB が入
力されており、その出力信号は加算器1のキャリィ入力
端子に入力される。
In the OR gate 2, the least significant bit M LSB of the motion vector M and the H.V. 261 / MPEG type identification signal is input. This identification signal is an H.264 signal. It is “1” in the case of the H.261 system and “0” in the case of the MPEG system. The output of the OR gate 2 is input to the AND gate 3. In addition to this, the AND gate 3 has 2 bits from the bottom of the motion vector M.
The second bit M LSB-1 and the most significant sign bit M MSB are input, and the output signal thereof is input to the carry input terminal of the adder 1.

【0025】この実施例回路の動作を以下に説明する。
まず、マクロブロックの動きベクトルMがH.261方
式のものである場合、オアゲート2からは常に“1”が
出力され、よってアンドゲート3は動きベクトルMの最
下位から2番目のビットMLSB-1 と最上位の符号ビット
MSB だけが入力されるアンドゲートと見なせる。する
と、この実施例回路は図5の従来回路におけるH.26
1方式の2で割る回路12と同じになり、よって加算器
1からはH.261方式の色差信号の動きベクトルC
H.261 が得られる。
The operation of this embodiment circuit will be described below.
First, the motion vector M of the macroblock is H.264. In the case of the H.261 system, the OR gate 2 always outputs "1", so that the AND gate 3 outputs only the second least significant bit M LSB-1 and the most significant code bit M MSB of the motion vector M. It can be regarded as an input AND gate. Then, the circuit of this embodiment is the H.264 circuit in the conventional circuit of FIG. 26
It becomes the same as the circuit 12 that divides by 2 in the first method, and therefore the H. 261 system color difference signal motion vector C
H.261 is obtained.

【0026】一方、マクロブロックの動きベクトルMが
MPEG方式のものである場合、オアゲート2へ入力さ
れる識別信号は常に“0”であるから、このオアゲート
2は無いと同じで、動きベクトルMの最下位ビットM
LSB はアンドゲート3に直接に入力されていると同じに
なる。つまりアンドゲート3には動きベクトルMのうち
のMLSB 、MLSB-1 、MMSB の3ビットに入力されてい
ることになる。この場合、このアンドゲート3が“1”
を出力する論理条件は、動きベクトルMが負であると
き、動きベクトルMのうちの最下位側の2ビット
LSB 、MLSB-1 を22 =4で割って求まる剰余が−1
の場合(すなわち最下位側の2ビットが−1、−5、−
9の場合で、このときMMSB 、MLSB-1 、MLSB が共に
“1”となる)にだけ“1”を出力するというものにな
る。このようにすると、動きベクトルMを2で割って小
数点以下を切り捨てる操作が実現でき、従来回路におけ
る2で割る回路11と同じになり、したがって加算器1
からはMPEG方式の色差信号の動きベクトルCMPEG
得られる。
On the other hand, when the motion vector M of the macroblock is of the MPEG system, the identification signal input to the OR gate 2 is always "0". Least significant bit M
LSB is the same as being input directly to AND gate 3. That is, the AND gate 3 is input to 3 bits of M LSB , M LSB-1 , and M MSB of the motion vector M. In this case, this AND gate 3 is "1"
When the motion vector M is negative, the remainder obtained by dividing the least significant 2 bits M LSB and M LSB-1 of the motion vector M by 2 2 = 4 is −1.
(That is, the two least significant bits are -1, -5,-
In the case of 9, at this time, "1" is output only to M MSB , M LSB-1 , and M LSB ). By doing so, the operation of dividing the motion vector M by 2 and discarding the fractional part can be realized, which is the same as the circuit 11 by 2 in the conventional circuit, and therefore the adder 1
From, a motion vector C MPEG of the color difference signal of the MPEG system is obtained.

【0027】本発明の実施にあたっては種々の変形形態
が可能である。例えば、上述の実施例では動きベクトル
Mの最下位側2ビットと最上位ビットについて論理演算
を行って加算器に入力するキャリィを生成するか否かを
決めたが、これに限られるものではない。これを2m
剰余系で考えて一般論として述べれば、動きベクトルM
をnビットとしたとき、最下位側mビットを2m で割っ
たときの剰余に応じてキャリィを生成するか否かを決定
する論理演算となる。
Various modifications are possible in carrying out the present invention. For example, in the above-described embodiment, it is determined whether to carry out a logical operation on the least significant 2 bits and the most significant bit of the motion vector M to generate a carry input to the adder. However, the present invention is not limited to this. . If we consider this as a 2 m residue system and describe it as a general theory, the motion vector M
Is n bits, it is a logical operation for determining whether or not to generate a carry according to the remainder when the least significant m bits are divided by 2 m .

【0028】[0028]

【発明の効果】以上に説明したように、本発明によれ
ば、必要な加算器が1個だけとなり、またセレクタは不
要となるので、回路規模を大幅に削減でき、またセレク
タによる信号遅延もなくせる。
As described above, according to the present invention, since only one adder is required and the selector is unnecessary, the circuit scale can be greatly reduced and the signal delay due to the selector can be reduced. I can lose it.

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

【図1】本発明に係る原理説明図である。FIG. 1 is a diagram illustrating the principle of the present invention.

【図2】本発明の一実施例としての色差信号の動きベク
トル計算回路を示す図である。
FIG. 2 is a diagram showing a color difference signal motion vector calculation circuit as one embodiment of the present invention.

【図3】H.261/MPEG方式のベクトルの共用化
と導出方法を説明する図である。
FIG. It is a figure explaining the sharing and derivation | leading-out method of the 261 / MPEG system vector.

【図4】従来の「2で割る」操作を行う回路を示す図で
ある。
FIG. 4 is a diagram showing a circuit for performing a conventional “divide by 2” operation.

【図5】従来の色差信号の動きベクトル計算回路を示す
図である。
FIG. 5 is a diagram showing a conventional motion vector calculation circuit for color difference signals.

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

1、21 加算器 2 オアゲート 3、22 アンドゲート 11 MPEG方式用の2で割る回路 12 H.261方式用の2で割る回路 13 セレクタ 1, 21 adder 2 OR gate 3, 22 AND gate 11 circuit for dividing by 2 for MPEG system 12 H. Circuit to divide by 2 for 261 system 13 Selector

───────────────────────────────────────────────────── フロントページの続き (72)発明者 松田 喜一 神奈川県川崎市中原区上小田中1015番地 富士通株式会社内 ─────────────────────────────────────────────────── ─── Continuation of the front page (72) Inventor Kiichi Matsuda 1015 Kamiodanaka, Nakahara-ku, Kawasaki-shi, Kanagawa Fujitsu Limited

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 マクロブロックの動きベクトルの最下位
側mビット(但し、mは整数)を除いた値にキャリィを
加算して色差信号の動きベクトルとする加算器(30)
と、 該マクロブロックの動きベクトルの最下位側mビットを
m で割ったときの剰余とその符号ビットと複数の符号
化方式を識別する識別信号との論理演算により該加算器
に入力するキャリィを生成する論理回路(31)とを備
えた色差信号の動きベクトル計算回路。
1. An adder (30) for adding a carry to a value excluding m least significant bits (where m is an integer) of a motion vector of a macroblock to obtain a motion vector of a color difference signal.
And a carry input to the adder by a logical operation of the remainder when the least significant m bits of the motion vector of the macroblock are divided by 2 m , its code bit and an identification signal for identifying a plurality of encoding methods. And a logic circuit (31) for generating the color difference signal motion vector calculation circuit.
【請求項2】 マクロブロックの動きベクトルの最下位
側2ビットを除いた値にキャリィを加算して色差信号の
動きベクトルとする加算器と、 2つの符号化方式を識別する識別信号と動きベクトルの
最下位ビットが入力されるオアゲートと、 該オアゲートの出力信号と動きベクトルの最上位ビット
と最下位側から2番目のビットが入力されて該加算器に
キャリィを出力するアンドゲートとで構成された請求項
1記載の色差信号の動きベクトル計算回路。
2. An adder for adding a carry to a value excluding the least significant 2 bits of a motion vector of a macroblock to obtain a motion vector of a color difference signal, an identification signal for identifying two coding methods, and a motion vector. Of the OR gate to which the least significant bit of is input and the most significant bit and the second bit from the least significant side of the output signal of the OR gate and the motion vector are input to output a carry to the adder. The motion vector calculation circuit for color difference signals according to claim 1.
JP21077692A 1992-07-15 1992-07-15 Motion vector calculation circuit for color difference signal Expired - Fee Related JP2815510B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP21077692A JP2815510B2 (en) 1992-07-15 1992-07-15 Motion vector calculation circuit for color difference signal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP21077692A JP2815510B2 (en) 1992-07-15 1992-07-15 Motion vector calculation circuit for color difference signal

Publications (2)

Publication Number Publication Date
JPH0638243A true JPH0638243A (en) 1994-02-10
JP2815510B2 JP2815510B2 (en) 1998-10-27

Family

ID=16594958

Family Applications (1)

Application Number Title Priority Date Filing Date
JP21077692A Expired - Fee Related JP2815510B2 (en) 1992-07-15 1992-07-15 Motion vector calculation circuit for color difference signal

Country Status (1)

Country Link
JP (1) JP2815510B2 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4874207A (en) * 1987-06-27 1989-10-17 Aisin Seiki Kabushiki Kaisha Hydraulic braking system for an automotive vehicle
JP2009526485A (en) * 2006-02-10 2009-07-16 エヌヴィディア コーポレイション Video data processing
US9113162B2 (en) 2003-11-25 2015-08-18 Nvidia Corporation Dynamic packet size control for MPEG-4 data partition mode

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4874207A (en) * 1987-06-27 1989-10-17 Aisin Seiki Kabushiki Kaisha Hydraulic braking system for an automotive vehicle
US9113162B2 (en) 2003-11-25 2015-08-18 Nvidia Corporation Dynamic packet size control for MPEG-4 data partition mode
JP2009526485A (en) * 2006-02-10 2009-07-16 エヌヴィディア コーポレイション Video data processing
DE112007000359B4 (en) * 2006-02-10 2013-04-11 Nvidia Corp. Processing of video data
US8705630B2 (en) 2006-02-10 2014-04-22 Nvidia Corporation Adapting one type of encoder to another type of encoder

Also Published As

Publication number Publication date
JP2815510B2 (en) 1998-10-27

Similar Documents

Publication Publication Date Title
US4749983A (en) Compression of multilevel signals
US5218563A (en) Data round-off device for rounding-off m-bit digital data into (m-n)-bit digital data
US5563813A (en) Area/time-efficient motion estimation micro core
US5008668A (en) Method and apparatus for encoding and decoding data in residue number system
US5134579A (en) Digital adder circuit
US4463377A (en) Arrangement for storing or transmitting and for recovering picture signals
JPH08340553A (en) Video signal encoding device
US5305249A (en) Digital signal processor for video signals
JPH0638243A (en) Motion vector calculation circuit for color difference signal
US20060197689A1 (en) Parallelized binary arithmetic coding
US5838392A (en) Adaptive block-matching motion estimator with a compression array for use in a video coding system
US5917739A (en) Calculating the average of four integer numbers rounded towards zero in a single instruction cycle
JP3645298B2 (en) Shift and round circuit and method thereof
KR100231901B1 (en) Method and apparatus for calculating the average of two integer numbers rounded towards zero in a single instruction cycle
US5937088A (en) Apparatus and method for improving memory usage of look-up table mapping
JPH0250491B2 (en)
KR100264957B1 (en) Calculating the average of two integer numbers rounded away from zero in a single instruction cycle
JPH0537916A (en) Image transmission equipment
JP2885039B2 (en) Motion vector detection circuit
JP2675903B2 (en) Image coding method
JP2570794B2 (en) High-efficiency encoder for television signals.
JPS61144990A (en) High efficient coding device of television signal
JP2699358B2 (en) Decoder circuit
JPH06276101A (en) Quantization circuit
JP2638842B2 (en) Decoder circuit

Legal Events

Date Code Title Description
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 19980804

LAPS Cancellation because of no payment of annual fees