JP3136953B2 - Data processing device - Google Patents
Data processing deviceInfo
- Publication number
- JP3136953B2 JP3136953B2 JP16435095A JP16435095A JP3136953B2 JP 3136953 B2 JP3136953 B2 JP 3136953B2 JP 16435095 A JP16435095 A JP 16435095A JP 16435095 A JP16435095 A JP 16435095A JP 3136953 B2 JP3136953 B2 JP 3136953B2
- Authority
- JP
- Japan
- Prior art keywords
- output
- data
- input
- zero
- absolute value
- 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.)
- Expired - Fee Related
Links
- 238000006243 chemical reaction Methods 0.000 claims description 32
- 230000000295 complement effect Effects 0.000 claims description 18
- 238000001514 detection method Methods 0.000 claims description 12
- 238000010586 diagram Methods 0.000 description 9
- 238000013139 quantization Methods 0.000 description 8
- 230000001419 dependent effect Effects 0.000 description 6
- 238000000034 method Methods 0.000 description 5
- 230000000694 effects Effects 0.000 description 2
- 101000969688 Homo sapiens Macrophage-expressed gene 1 protein Proteins 0.000 description 1
- 102100021285 Macrophage-expressed gene 1 protein Human genes 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 238000007796 conventional method Methods 0.000 description 1
Landscapes
- Compression Or Coding Systems Of Tv Signals (AREA)
- Compression, Expansion, Code Conversion, And Decoders (AREA)
Description
【0001】[0001]
【産業上の利用分野】本発明はデータ処理装置に関し、
特に動画像データを処理するデータ処理装置に関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a data processing device,
In particular, the present invention relates to a data processing device that processes moving image data.
【0002】[0002]
【従来の技術】動画像データを処理する方式として、国
際動画像符号化復号化方式がある。たとえば、図2およ
び図3は、国際動画像符号化復号化方式の符号化装置お
よび復号化装置の1例をそれぞれ示すブロック図であ
る。2. Description of the Related Art As a system for processing moving image data, there is an international moving image encoding / decoding system. For example, FIG. 2 and FIG. 3 are block diagrams respectively showing an example of an encoding device and an example of a decoding device of the international video encoding / decoding system.
【0003】図2および図3を参照すると、符号化装置
および復号化装置の両方に逆DCT回路が存在する。符
号化装置で逆DCT回路が必要な理由は、動き補償予測
に用いる参照画像を、量子化、逆量子化、逆DCTの処
理を経て復号化しているからである。復号化装置では逆
量子化した後、逆DCTと動き補償で画像を復号化す
る。符号化装置と復号化装置それぞれの逆DCTの演算
方法によっては、符号化装置内で復号化した画像と復号
化装置の出力となる画像が異なり、誤りが蓄積してしま
う。これを逆DCTミスマッチという。国際標準規格で
あるH.261やMPEG1では、全てのDCT係数を
ゼロに近づける方向で奇数化して、逆DCTミスマッチ
を解決している。Referring to FIG. 2 and FIG. 3, an inverse DCT circuit exists in both the encoding device and the decoding device. The reason why the encoding apparatus requires the inverse DCT circuit is that the reference image used for motion compensation prediction is decoded through quantization, inverse quantization, and inverse DCT processing. After performing the inverse quantization, the decoding apparatus decodes the image using inverse DCT and motion compensation. Depending on the operation method of the inverse DCT of each of the encoding device and the decoding device, an image decoded in the encoding device and an image output from the decoding device are different, and errors are accumulated. This is called an inverse DCT mismatch. H. International Standards In H.261 and MPEG1, all DCT coefficients are odd-numbered in a direction approaching zero to solve the inverse DCT mismatch.
【0004】図4は、これらのデータ処理装置における
逆量子化回路の詳細構成を示すブロック図である。FIG. 4 is a block diagram showing a detailed configuration of an inverse quantization circuit in these data processing devices.
【0005】図4を参照すると、この逆量子化回路に
は、乗算回路が用いられ、その次段にDCTミスマッチ
を解決するための偶数から奇数への0方向丸め変換回路
が付加され、その次段にはオーバフローを防止するため
のリミッタが付加されており、最終段に逆量子化された
データかもしくは変換しないデータかを選択するマルチ
プレクサが備えられている。復号化の場合、可変長復号
化での計算を簡便に、ハードウェア量を少なくするため
に絶対値での処理を行う。それに対して逆DCTでは2
の補数表現にて演算しなければならないため、符号付き
絶対値表現を2の補数表現に変換する処理も必要とな
る。従って、符号依存による偶数から奇数への0方向丸
め変換処理が必要となる。Referring to FIG. 4, a multiplication circuit is used in the inverse quantization circuit, and a 0-direction rounding conversion circuit from an even number to an odd number for solving a DCT mismatch is added to the next stage. Each stage is provided with a limiter for preventing overflow, and a final stage is provided with a multiplexer for selecting whether the data is inversely quantized or not to be converted. In the case of decoding, the calculation in the variable length decoding is simply performed, and the processing with the absolute value is performed to reduce the amount of hardware. On the other hand, in the inverse DCT, 2
Therefore, a process of converting a signed absolute value expression into a two's complement expression is also required. Therefore, a zero-direction rounding conversion process from an even number to an odd number depending on the sign is required.
【0006】図5は、従来のデータ処理装置における符
号依存による偶数から奇数への0方向丸め変換回路を示
す回路図である。FIG. 5 is a circuit diagram showing a sign-dependent even-to-odd zero-direction rounding conversion circuit in a conventional data processing apparatus.
【0007】図5を参照すると、この変換回路は、絶対
値入力DI[17:0]および符号入力SIを入力と
し、偶奇丸め変換部5−1と、2の補数演算部5−2
と、この2の補数演算部5−2の出力に最上位ビットの
符号を付加する出力手段5−3とから大きく構成され、
2の補数表現での符号依存による偶数から奇数への0方
向丸め変換出力DO[18:0]を出力する。Referring to FIG. 5, this conversion circuit receives an absolute value input DI [17: 0] and a sign input SI as inputs, and converts it into an even-odd rounding conversion unit 5-1 and a two's complement operation unit 5-2.
And output means 5-3 for adding the sign of the most significant bit to the output of the two's complement arithmetic unit 5-2.
It outputs a zero-direction rounding conversion output DO [18: 0] from an even number to an odd number depending on the sign in the two's complement representation.
【0008】偶奇丸め変換部5−1は、絶対値を偶数か
ら奇数へ変換、つまり0以外の偶数の場合は−1し奇数
および0の場合はそのまま出力する回路であり、2の補
数演算部5−2は、符号が正の場合5−1の出力をその
まま出力し、負の場合2の補数演算を行う回路である。The even-odd rounding conversion unit 5-1 is a circuit for converting an absolute value from an even number to an odd number, that is, -1 for an even number other than 0, and outputs as it is for an odd number and 0. Reference numeral 5-2 denotes a circuit that outputs the output of 5-1 as it is when the sign is positive, and performs a two's complement operation when the sign is negative.
【0009】さらに、説明を続けると、偶奇丸め変換部
5−1は、入力(DI[17:0])が0の場合のみ
“1”を出力する0検出回路501と、インバータ50
2,503と、2入力論理積504と、制御信号(50
4の出力)が“1”の場合入力値をデクリメントし制御
信号が“0”の場合入力値をそのまま出力する(以下ス
ルーと呼ぶ)制御信号付きデクリメンタ505から構成
され、2の補数演算部5−2は、排他的論理和506
と、制御信号(SI)が“1”の場合入力値をインクリ
メントし制御信号が“0”の場合スルーする制御信号付
きインクリメンタ507とから構成されている。Continuing the description, the even-odd rounding conversion unit 5-1 includes a 0 detection circuit 501 that outputs "1" only when the input (DI [17: 0]) is 0, and an inverter 50.
2, 503, a 2-input AND 504, and a control signal (50
When the control signal is “0”, the input value is decremented. When the control signal is “0”, the input value is output as it is (hereinafter referred to as “through”). -2 is exclusive OR 506
And an incrementer 507 with a control signal that increments the input value when the control signal (SI) is "1" and passes through when the control signal (0) is "0".
【0010】次に、図5を参照し動作の詳細を説明す
る。まず、偶奇丸め変換部5−1について説明する。Next, the operation will be described in detail with reference to FIG. First, the even-odd rounding conversion unit 5-1 will be described.
【0011】DI[17:0]が奇数の場合、DI
[0]は“1”となり、インバータ503の出力は
“0”となる。2入力論理積504の出力は“0”とな
るため、デクリメンタ505にてDI[17:0]はス
ルーされる。If DI [17: 0] is an odd number, DI
[0] becomes “1”, and the output of the inverter 503 becomes “0”. Since the output of the two-input logical product 504 becomes “0”, DI [17: 0] is passed through by the decrementer 505.
【0012】DI[17:0]が0以外の偶数の場合、
DI[0]は“0”となりインバータ503の出力は
“1”となる。また、0検出回路501の出力は“0”
となり、インバータ502の出力は“1”となる。2入
力論理積504の出力は“1”となるため、デクリメン
タ505にてDI[17:0]はデクリメントされる。
つまり、0方向に1丸められ奇数となる。When DI [17: 0] is an even number other than 0,
DI [0] becomes “0” and the output of the inverter 503 becomes “1”. The output of the 0 detection circuit 501 is “0”.
And the output of the inverter 502 becomes “1”. Since the output of the two-input logical product 504 is “1”, DI [17: 0] is decremented by the decrementer 505.
That is, 1 is rounded in the 0 direction and becomes an odd number.
【0013】DI[17:0]が0の場合、0検出回路
501の出力は“1”となり、インバータ502の出力
は“0”となる。2入力論理積504の出力は“0”と
なるため、デクリメンタ505にてDI[17:0]は
スルーされる。When DI [17: 0] is 0, the output of the 0 detection circuit 501 becomes "1" and the output of the inverter 502 becomes "0". Since the output of the two-input logical product 504 becomes “0”, DI [17: 0] is passed through by the decrementer 505.
【0014】次に、2の補数演算部5−2について説明
する。Next, the two's complement arithmetic unit 5-2 will be described.
【0015】符号入力SIが正の場合、値は“0”とな
り、排他的論理和506は他方の入力を反転することな
くそのまま出力し、インクリメンタ507もスルーす
る。つまり、結果的にはデータの変換は行わない。When the sign input SI is positive, the value becomes "0", the exclusive OR 506 outputs the other input without inverting the other input, and the incrementer 507 also passes through. That is, data conversion is not performed as a result.
【0016】符号入力SIが負の場合、値は“1”とな
り、排他的論理和506は他方の入力を反転させ、イン
クリメンタ507にてインクリメントされるため結果的
に2の補数が取られることになる。If the sign input SI is negative, the value is "1", and the exclusive OR 506 inverts the other input and is incremented by the incrementer 507, so that the two's complement is obtained. become.
【0017】以上の説明で解るように、絶対値入力DI
[17:0]が偶数であり且つ符号入力SIが正の数つ
まり“0”である場合、偶奇丸め変換部5−1でデクリ
メントされ2の補数演算部5−2でスルーされるため、
0方向に1丸められる。As understood from the above description, the absolute value input DI
When [17: 0] is an even number and the sign input SI is a positive number, that is, “0”, it is decremented by the even-odd rounding conversion unit 5-1 and passed through by the two's complement operation unit 5-2.
One is rounded in the zero direction.
【0018】絶対値入力DI[17:0]が奇数であり
且つ符号入力SIが正の数つまり“0”である場合、偶
奇変換部5−1ではスルーされ2の補数演算部5−2で
もスルーされるため、出力値は入力値と同じである。When the absolute value input DI [17: 0] is an odd number and the sign input SI is a positive number, that is, "0", the even-odd conversion section 5-1 passes through and the 2's complement operation section 5-2 also performs the processing. The output value is the same as the input value because it is passed through.
【0019】絶対値入力DI[17:0]が偶数であり
且つ符号入力SIが負の数つまり“1”である場合、偶
奇変換部5−1でデクリメントされ2の補数演算部5−
2で2の補数が取られ最上位ビットが“1”となるた
め、0方向に1丸められる。When the absolute value input DI [17: 0] is an even number and the sign input SI is a negative number, that is, "1", it is decremented by the even-odd conversion unit 5-1 and decremented by two's complement operation unit 5-
Since the 2's complement is obtained by 2 and the most significant bit is "1", 1 is rounded toward 0.
【0020】絶対値入力DI[17:0]が奇数であり
且つ符号入力SIが負の数つまり“1”出ある場合、偶
奇変換部5−1ではスルーされ2の補数演算部5−2で
2の補数が取られるため、符号反転のみされる。If the absolute value input DI [17: 0] is an odd number and the sign input SI is a negative number, that is, "1", the even-odd conversion unit 5-1 passes through and the two's complement operation unit 5-2 outputs. Since two's complement is taken, only the sign is inverted.
【0021】絶対値入力DI[17:0]が0であり且
つ符号入力SIが“0”である場合、偶奇変換部5−1
ではスルーされ2の補数演算部5−2でもスルーされる
ため、出力値は0となる。When the absolute value input DI [17: 0] is 0 and the sign input SI is "0", the even-odd conversion section 5-1
In this case, the output value is 0 because the data is passed through and is also passed through by the two's complement arithmetic unit 5-2.
【0022】以上をまとめると、表1のようになる。The above is summarized in Table 1.
【0023】 [0023]
【0024】[0024]
【発明が解決しようとする課題】上述した従来のデータ
処理装置における符号依存による偶数から奇数への0方
向丸め変換回路は、インクリメンタとデクリメンタを持
っているため回路規模が大きいという問題を有してい
た。The above-mentioned conventional data processing apparatus, in which the sign-dependent 0-direction rounding conversion circuit from an even number to an odd number has a problem that the circuit scale is large because it has an incrementer and a decrementer. I was
【0025】したがって、本発明の目的は、国際動画像
符号化復号化方式に準拠して画像データを処理するデー
タ処理装置の回路規模を縮小することにある。Accordingly, it is an object of the present invention to reduce the circuit scale of a data processing device for processing image data in accordance with the international video coding / decoding system.
【0026】[0026]
【課題を解決するための手段】そのため、本発明は、国
際動画像符号化復号化方式に準拠して符号ビットおよび
絶対値により表現された画像データを偶数から奇数へゼ
ロ方向に丸め変換して2の補数表現で出力するデータ変
換手段を有するデータ処理装置において、前記データ変
換手段は、前記データの絶対値のゼロ値を検出するゼロ
検出手段と、前記データが偶数であるとき前記絶対値を
デクリメントするデクリメント手段と、前記データが負
数であるとき前記デクリメント手段の出力をビット反転
し出力する排他的論理和手段と、前記絶対値の最下位ビ
ットの変換データとして前記ゼロ検出手段の出力に対応
した信号を出力し前記絶対値の下位2ビット目から最上
位ビットまでの変換データとして前記排他的論理和手段
の対応するビット出力を出力する出力手段とを備えてい
る。Therefore SUMMARY OF THE INVENTION The present invention converts rounded image data represented by the sign bit and absolute value in accordance with International moving picture coding and decoding system to zero direction from even to odd In a data processing apparatus having data conversion means for outputting data in two's complement representation, the data conversion means includes: zero detection means for detecting a zero value of an absolute value of the data; Decrementing means for decrementing, exclusive OR means for bit-inverting and outputting the output of the decrementing means when the data is a negative number, and corresponding to the output of the zero detecting means as converted data of the least significant bit of the absolute value And outputs the converted signal as the converted data from the second least significant bit to the most significant bit of the absolute value. And an output means for outputting a force.
【0027】また、前記出力手段は、前記データの絶対
値のゼロ値を検出したとき、前記絶対値の変換データと
してゼロ値を出力する。Further, when the output means detects a zero value of the absolute value of the data, the output means outputs a zero value as the converted data of the absolute value.
【0028】前記データ変換手段の入出力をまとめる
と、表2のようになる。Table 2 summarizes the inputs and outputs of the data conversion means.
【0029】 [0029]
【0030】さらに、前記データ変換手段の構成につい
て、詳細説明を続ける。Further, the configuration of the data conversion means will be described in detail.
【0031】本発明のデータ処理装置における符号依存
による偶数から奇数への0方向丸め変換回路は、符号反
転をビット反転した後+1する方法から、−1した後ビ
ット反転する方法に変えることにより、表2に示す真理
値表に基づいた回路構成となっている。The sign-dependent zero-to-odd rounding conversion circuit in the data processing apparatus of the present invention changes the method of sign inversion to +1 after bit inversion and then to -1 and then bit inversion. The circuit configuration is based on the truth table shown in Table 2.
【0032】表1との大きな違いは負の偶数の場合であ
り、従来−1と+1の両方で行っていたものを−2する
ことで実現している。−2するということは1ビットめ
以上を−1することに等しく、つまりデクリメンタ1個
で符号依存による偶数から奇数への0方向丸めを行える
ということになる。つまり入力データを最下位ビットと
それ以外のビットに分割して演算すればよい。最下位ビ
ットとそれ以外のビットに分割した場合の式を表3に示
す。なお、“{ , , }”はビットの連結を意味す
る。The major difference from Table 1 is the case of a negative even number, which is realized by subtracting -2 from what was conventionally performed with both -1 and +1. The value of -2 is equivalent to the value of -1 for the first bit or more. In other words, one decrementer can perform sign-dependent rounding in the zero direction from an even number to an odd number. That is, it is sufficient to divide the input data into the least significant bit and the other bits to perform the operation. Table 3 shows an equation in the case of division into the least significant bit and other bits. Note that “{,,}” means bit concatenation.
【0033】 [0033]
【0034】各々について説明すると、まず、符号入力
SIが正(0)であり且つデータDIが0以外の偶数で
あるとき、必ずボローが発生するためビット17〜1の
データDI[17:1]は−1されて出力される。その
とき最下位ビットは必ず“1”となる。First, when the code input SI is positive (0) and the data DI is an even number other than 0, a borrow always occurs, so that the data DI [17: 1] of bits 17 to 1 are generated. Is output after being decremented by 1. At that time, the least significant bit is always "1".
【0035】符号入力SIが正(0)であり且つデータ
DIが奇数であるとき、入力データがそのまま出力され
るためビット17〜1のデータDI[17:1]はその
まま出力され、最下位ビットは必ず“1”となる。When the sign input SI is positive (0) and the data DI is an odd number, the input data is output as it is, so that the data DI [17: 1] of bits 17 to 1 is output as it is, and the least significant bit is output. Is always "1".
【0036】符号入力SIが負(1)であり且つデータ
DIが0以外の偶数であるとき、−2して反転するた
め、ビット17〜1のデータDI[17:1]を−1
し、さらに反転出力し、最下位ビットを“1”にする。When the sign input SI is negative (1) and the data DI is an even number other than 0, the data DI [17: 1] of the bits 17-1 is reduced by -1 because it is inverted by -2.
Then, the output is inverted and the least significant bit is set to "1".
【0037】符号入力SIが負(1)であり且つデータ
DIが奇数であるとき、最下位ビットが“1”のため、
入力データを−1しても、ビット17〜1のデータDI
[17:1]は影響を受けないのでそのまま反転のみさ
れて出力され、最下位ビットは1−1(=0)の反転で
“1”が出力される。When the sign input SI is negative (1) and the data DI is an odd number, since the least significant bit is "1",
Even if the input data is decremented by 1, the data DI of bits 17 to 1
Since [17: 1] is not affected, it is only inverted and output as it is, and the least significant bit is inverted by 1-1 (= 0) and "1" is output.
【0038】データDIが0であるとき、最下位ビット
には“0”を出力し、ビット17〜1のデータDI[1
7:1]をそのまま出力する。When the data DI is 0, "0" is output as the least significant bit, and the data DI [1] of bits 17-1 is output.
7: 1] is output as it is.
【0039】符号ビットである最上位ビットDO[1
8]としては、最後に、上述の各出力にそれぞれに符号
入力SIを付加すればよい。The most significant bit DO [1] which is a sign bit
8], a sign input SI may be added to each of the outputs described above.
【0040】[0040]
【実施例】次に、本発明について図面を参照して説明す
る。Next, the present invention will be described with reference to the drawings.
【0041】図1は、本発明のデータ処理装置における
符号依存による偶数から奇数への0方向丸め変換回路の
1実施例を示す回路図である。FIG. 1 is a circuit diagram showing one embodiment of a sign-dependent even-to-odd zero-direction rounding conversion circuit in the data processing apparatus of the present invention.
【0042】図1を参照すると、この変換回路は、絶対
値入力DI[17:0]および符号入力SIを入力と
し、0検出回路101と、インバータ102および10
3と、2入力論理積104と、デクリメンタ105と、
排他的論理和106と、最上位ビットの符号を付加する
出力手段1−1と、絶対値の最下位ビットの変換データ
として0検出回路101の出力に対応した信号を出力し
絶対値の下位2ビット目から最上位ビットまでの変換デ
ータとして排他的論理和106の対応するビット出力を
出力する出力手段1−2とから構成され、2の補数表現
での符号依存による偶数から奇数への0方向丸め変換出
力DO[18:0]を出力する。Referring to FIG. 1, this conversion circuit receives an absolute value input DI [17: 0] and a sign input SI as inputs, and outputs a 0 detection circuit 101, inverters 102 and 10
3, a two-input logical product 104, a decrementer 105,
An exclusive OR 106, an output means 1-1 for adding the sign of the most significant bit, and a signal corresponding to the output of the 0 detection circuit 101 as the converted data of the least significant bit of the absolute value to output Output means 1-2 for outputting the corresponding bit output of the exclusive OR 106 as the conversion data from the bit to the most significant bit, and 0 from the even number to the odd number depending on the sign in the 2's complement representation The rounding conversion output DO [18: 0] is output.
【0043】さらに、説明を続けると、0検出回路10
1は、絶対値入力(DI[17:0])が0の場合のみ
“1”を出力する。この出力は、インバータ102によ
って反転され出力DO[18:0]のビット0を出力す
る出力手段に接続されている。従って、出力DO[1
8:0]のビット0には、入力DI[17:0]が0の
場合のみ0であり、それ以外の場合には“1”を出力す
る回路構成となっている。これは、表3の真理値表のD
O[18:0]の最下位ビット(DO[0])と一致す
る。Continuing the description, the 0 detection circuit 10
1 outputs “1” only when the absolute value input (DI [17: 0]) is 0. This output is inverted by the inverter 102 and connected to output means for outputting bit 0 of the output DO [18: 0]. Therefore, the output DO [1
The bit 0 of [8: 0] is 0 only when the input DI [17: 0] is 0, and otherwise outputs “1”. This is D in the truth table of Table 3.
It matches the least significant bit (DO [0]) of O [18: 0].
【0044】デクリメンタ105は制御信号付きデクリ
メンタである。入力DI[17:0]が0の場合は、0
検出回路101の出力は“1”となり、インバータ10
2の出力は“0”となるため、2入力論理積104の出
力は“0”となり、デクリメンタ105の制御信号は
“0”となるため、デクリメンタ105の入力データで
あるDI[17:1](オール0)はスルーされる。The decrementer 105 is a decrementer with a control signal. If input DI [17: 0] is 0, 0
The output of the detection circuit 101 becomes “1”,
2 is "0", the output of the two-input logical product 104 is "0", and the control signal of the decrementer 105 is "0", so that DI [17: 1] which is the input data of the decrementer 105 is used. (All 0) is passed through.
【0045】入力DI[17:0]が奇数の場合は、D
I[0]は“1”となるためインバータ103の入力は
“1”で出力は“0”となり、2入力論理積104の出
力は“0”となり、デクリメンタ105の制御信号は
“0”となるため、デクリメンタ105の入力データD
I[17:1]はスルーされる。When the input DI [17: 0] is an odd number, D
Since I [0] is “1”, the input of the inverter 103 is “1” and the output is “0”, the output of the two-input AND circuit 104 is “0”, and the control signal of the decrementer 105 is “0”. Input data D of the decrementer 105
I [17: 1] is passed through.
【0046】入力DI[17:0]が0以外の偶数の場
合は、0検出回路101の出力は“0”となり、インバ
ータ102の出力は“1”となる。またDI[0]は
“0”となるためインバータ103の入力は“0”で出
力は“1”となるため、2入力論理積104の出力は
“1”となり、デクリメンタ105の制御信号は“1”
となるため、デクリメンタ105の入力データDI[1
7:1]はデクリメントされる。When the input DI [17: 0] is an even number other than 0, the output of the 0 detection circuit 101 becomes "0" and the output of the inverter 102 becomes "1". Also, DI [0] is "0", so that the input of the inverter 103 is "0" and the output is "1", the output of the two-input logical product 104 is "1", and the control signal of the decrementer 105 is "1". 1 "
Therefore, the input data DI [1 of the decrementer 105
7: 1] is decremented.
【0047】排他的論理和106は、デクリメンタ10
5の出力と符号入力SIとを入力信号としている。符号
入力SIが正(0)のときはデクリメンタ105の出力
をスルーし、符号入力SIが負(1)のときはデクリメ
ンタ105の出力を反転させる。The exclusive OR 106 is calculated by the decrementer 10
5 and the code input SI are input signals. When the sign input SI is positive (0), the output of the decrementer 105 is passed through, and when the sign input SI is negative (1), the output of the decrementer 105 is inverted.
【0048】したがって、排他的論理和106の出力
は、符号入力SIが正(0)であり且つ絶対値入力DI
[17:0]が0以外の偶数であるとき入力DI[1
7:1]を−1した値となり、符号入力SIが正(0)
であり且つ絶対値入力DI[17:0]が奇数であると
き入力DI[17:1]そのものとなり、符号入力SI
が負(1)であり且つ絶対値入力DI[17:0]が0
以外の偶数であるとき入力DI[17:1]を−1した
後ビット反転した値となり、符号入力SIが負(1)で
あり且つ絶対値入力DI[17:0]が奇数であるとき
入力DI[17:1]をビット反転した値となり、符号
入力SIが正(0)であり且つ絶対値入力DI[17:
0]が0であるとき入力DI[17:1]そのものとな
る。Therefore, the output of the exclusive OR 106 is such that the sign input SI is positive (0) and the absolute value input DI
When [17: 0] is an even number other than 0, the input DI [1
7: 1], and the sign input SI is positive (0).
And when the absolute value input DI [17: 0] is an odd number, the input DI [17: 1] itself becomes the sign input SI
Is negative (1) and the absolute value input DI [17: 0] is 0
When the input DI [17: 1] is other than an even number, the value becomes a bit-inverted value after subtracting -1 from the input DI, and is input when the sign input SI is negative (1) and the absolute value input DI [17: 0] is an odd number. DI [17: 1] is a bit-inverted value, the sign input SI is positive (0), and the absolute value input DI [17:
When [0] is 0, the input DI [17: 1] is itself.
【0049】これは、表3の真理値表の出力DO[1
8:0]の中位ビットDO[17:1]と一致する。This corresponds to the output DO [1] of the truth table of Table 3.
8: 0] and the middle bit DO [17: 1].
【0050】出力DO[18]には符号入力SIそのも
のが出力される構成となっているため表3の真理値表の
出力DO[18:0]の最上位ビットDO[18]と一
致する。Since the output DO [18] is configured to output the code input SI itself, it matches the most significant bit DO [18] of the output DO [18: 0] in the truth table of Table 3.
【0051】[0051]
【発明の効果】以上説明したように、本発明のデータ処
理装置における符号依存による偶数から奇数への0方向
丸め変換回路は、演算回路としてのデクリメンタを1つ
のみにて構成することが可能ななめ、回路規模を大幅に
縮小できる効果がある。As described above, in the data processing apparatus according to the present invention, the sign-dependent 0-to-odd rounding conversion circuit can be constituted by only one decrementer as an arithmetic circuit. This has the effect of greatly reducing the circuit scale.
【0052】具体的には、従来の手法にてCMOS回路
を設計する場合、18ビットのデクリメンタが252T
rs、18ビットのインクリメンタが252Trs、1
8ビットの0検出器が46Trs、18ビットの排他的
論理和が108Trs、その他が4Trs、合計662
Trsの設計が必要であった。それに対し、本発明の回
路は、17ビットのデクリメンタが238Trs、18
ビットの0検出器が46Trs、17ビットの排他的論
理和が102Trs、その他が4Trs、合計390T
rsの設計で済むため、40%以上縮小できる効果があ
る。More specifically, when a CMOS circuit is designed by a conventional method, an 18-bit decrementer is 252T.
rs, 18-bit incrementer is 252 Trs, 1
The 8-bit 0 detector is 46 Trs, the exclusive OR of 18 bits is 108 Trs, and the others are 4 Trs, for a total of 662.
Trs design was required. In contrast, the circuit of the present invention has a 17-bit decrementer of 238 Trs, 18 bits.
Bit 0 detector is 46 Trs, exclusive OR of 17 bits is 102 Trs, others are 4 Trs, 390 T in total
Since the design of rs is sufficient, there is an effect of reducing the size by 40% or more.
【図1】本発明のデータ処理装置における0方向丸め変
換回路の1実施例を示す回路図である。FIG. 1 is a circuit diagram showing one embodiment of a zero-direction rounding conversion circuit in a data processing device of the present invention.
【図2】典型的な動画像符号化装置を示すブロック図で
ある。FIG. 2 is a block diagram illustrating a typical moving picture encoding device.
【図3】典型的な動画像復号化装置を示すブロック図で
ある。FIG. 3 is a block diagram showing a typical moving picture decoding device.
【図4】図2および図3における逆量子化回路の詳細構
成を示すブロック図である。FIG. 4 is a block diagram showing a detailed configuration of an inverse quantization circuit in FIGS. 2 and 3;
【図5】従来のデータ処理装置における0方向丸め変換
回路の1例を示す回路図である。FIG. 5 is a circuit diagram showing an example of a zero-direction rounding conversion circuit in a conventional data processing device.
101,501 0検出器 102,103,502,503 インバータ 104,504 2入力論理積 105,505 デクリメンタ 106,506 排他的論理和 1−1,1−2,5−3 出力手段 201 離散余弦変換(DCT)回路 202 量子化回路 203,302 逆量子化回路 204,303 逆離散余弦変換(DCT)回路 205,305 フレーム・メモリ 206,304 動き補償回路 207 動きベクトル検出回路 208,306 加算部 209 減算部 210 可変長符号化回路 301 可変長復号化回路 401 乗算回路 402 符号依存による偶数から奇数への0方向丸め
変換回路 403 リミッタ回路 404 2入力マルチプレクサ 507 インクリメンタ 5−1 偶数から奇数への0方向丸め変換部 5−2 2の補数演算部101, 5010 detector 102, 103, 502, 503 inverter 104, 504 two-input logical product 105, 505 decrementer 106, 506 exclusive OR 1-1, 1-2, 5-3 output means 201 discrete cosine transform ( DCT) circuit 202 Quantization circuit 203, 302 Inverse quantization circuit 204, 303 Inverse discrete cosine transform (DCT) circuit 205, 305 Frame memory 206, 304 Motion compensation circuit 207 Motion vector detection circuit 208, 306 Addition unit 209 Subtraction unit 210 Variable Length Encoding Circuit 301 Variable Length Decoding Circuit 401 Multiplication Circuit 402 Sign-Dependent O-to-Odd Rounding Conversion Circuit 403 Limiter Circuit 404 2-Input Multiplexer 507 Incrementer 5-1 Odd-to-Odd Rounding from Odd to Odd Conversion unit 5-2 Two's complement arithmetic unit
───────────────────────────────────────────────────── フロントページの続き (56)参考文献 特開 平5−265709(JP,A) 特開 平7−153195(JP,A) (58)調査した分野(Int.Cl.7,DB名) H04N 7/30 H03M 7/30 ────────────────────────────────────────────────── ─── Continuation of the front page (56) References JP-A-5-265709 (JP, A) JP-A-7-153195 (JP, A) (58) Fields investigated (Int. Cl. 7 , DB name) H04N 7/30 H03M 7/30
Claims (2)
符号ビットおよび絶対値により表現された画像データを
偶数から奇数へゼロ方向に丸め変換して2の補数表現で
出力するデータ変換手段を有するデータ処理装置におい
て、 前記データ変換手段は、前記データの絶対値のゼロ値を
検出するゼロ検出手段と、前記データが偶数であるとき
前記絶対値をデクリメントするデクリメント手段と、前
記データが負数であるとき前記デクリメント手段の出力
をビット反転し出力する排他的論理和手段と、前記絶対
値の最下位ビットの変換データとして前記ゼロ検出手段
の出力に対応した信号を出力し前記絶対値の下位2ビッ
ト目から最上位ビットまでの変換データとして前記排他
的論理和手段の対応するビット出力を出力する出力手段
とを備えることを特徴とするデータ処理装置。1. Data conversion means for converting image data represented by code bits and absolute values in the direction of zero from an even number to an odd number in accordance with the international moving picture encoding / decoding system in a zero direction and outputting the result in a two's complement representation. In the data processing device having the above, the data conversion means includes: a zero detection means for detecting a zero value of an absolute value of the data; a decrement means for decrementing the absolute value when the data is even; When exclusive, the exclusive-OR means for inverting the output of the decrement means and outputting a signal corresponding to the output of the zero detection means as converted data of the least significant bit of the absolute value, Output means for outputting a corresponding bit output of the exclusive OR means as converted data from the second bit to the most significant bit. The data processing apparatus according to claim.
ゼロ値を検出したとき、前記絶対値の変換データとして
ゼロ値を出力する、請求項1記載のデータ処理装置。2. The data processing apparatus according to claim 1, wherein the output unit outputs a zero value as the converted data of the absolute value when detecting a zero value of the absolute value of the data.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP16435095A JP3136953B2 (en) | 1995-06-29 | 1995-06-29 | Data processing device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP16435095A JP3136953B2 (en) | 1995-06-29 | 1995-06-29 | Data processing device |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPH0918875A JPH0918875A (en) | 1997-01-17 |
| JP3136953B2 true JP3136953B2 (en) | 2001-02-19 |
Family
ID=15791498
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP16435095A Expired - Fee Related JP3136953B2 (en) | 1995-06-29 | 1995-06-29 | Data processing device |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP3136953B2 (en) |
Families Citing this family (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| ITMI20010395A1 (en) | 2001-02-27 | 2002-08-27 | Dompe Spa | OMEGA-AMINO ALKYLAMIDS OF R-2-ARYL-PROPIONIC ACIDS AS INHIBITORS OF CHEMOTAXIS OF POLYMORPHONUCLEATED AND MONONUCLEATE CELLS |
| US7970165B2 (en) | 2007-03-13 | 2011-06-28 | Taiwan Semiconductor Manufacturing Company, Ltd. | System and method for watermarking data |
-
1995
- 1995-06-29 JP JP16435095A patent/JP3136953B2/en not_active Expired - Fee Related
Also Published As
| Publication number | Publication date |
|---|---|
| JPH0918875A (en) | 1997-01-17 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US6798833B2 (en) | Video frame compression/decompression hardware system | |
| JP3013381B2 (en) | Variable length data decoding device | |
| KR19980044992A (en) | Quantization / Dequantization Circuit with Differential Pulse Code Modulator | |
| US5835389A (en) | Calculating the absolute difference of two integer numbers in a single instruction cycle | |
| JP3136953B2 (en) | Data processing device | |
| US5305249A (en) | Digital signal processor for video signals | |
| JPS6320075B2 (en) | ||
| JP2668180B2 (en) | Absolute value comparison device | |
| US9287852B2 (en) | Methods and systems for efficient filtering of digital signals | |
| US20050131979A1 (en) | Apparatus for calculating absolute difference value, and motion estimation apparatus and motion picture encoding apparatus which use the apparatus for calculating the absolute difference value | |
| KR100241069B1 (en) | Calculating the average of four integer numbers rounded away from zero in a single instruction cycle | |
| US5917739A (en) | Calculating the average of four integer numbers rounded towards zero in a single instruction cycle | |
| US6007232A (en) | Calculating the average of two integer numbers rounded towards zero in a single instruction cycle | |
| US5140323A (en) | Digital signal orthogonal transformer apparatus | |
| JPH01171324A (en) | High efficiency encoding device | |
| JPS61232725A (en) | Data compression circuit | |
| US5751617A (en) | Calculating the average of two integer numbers rounded away from zero in a single instruction cycle | |
| JPH0435590A (en) | Difference encoding circuit | |
| JP2560987B2 (en) | Image processing device | |
| KR100195014B1 (en) | Motion Decoder for Bitstream Video Decoder | |
| JPS62254524A (en) | Data reduction circuit equipped with video signal pulse codemodulator | |
| JP2004328480A (en) | Inverse quantization circuit | |
| JP2570794B2 (en) | High-efficiency encoder for television signals. | |
| JP3240706B2 (en) | Butterfly operation circuit | |
| JPH04222121A (en) | Data compressor |
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: 20001107 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20071208 Year of fee payment: 7 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20081208 Year of fee payment: 8 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20091208 Year of fee payment: 9 |
|
| LAPS | Cancellation because of no payment of annual fees |