[go: up one dir, main page]

JPH09187001A - Arithmetic unit and arithmetic method - Google Patents

Arithmetic unit and arithmetic method

Info

Publication number
JPH09187001A
JPH09187001A JP34254295A JP34254295A JPH09187001A JP H09187001 A JPH09187001 A JP H09187001A JP 34254295 A JP34254295 A JP 34254295A JP 34254295 A JP34254295 A JP 34254295A JP H09187001 A JPH09187001 A JP H09187001A
Authority
JP
Japan
Prior art keywords
data
output
arithmetic
circuit
calculation
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.)
Withdrawn
Application number
JP34254295A
Other languages
Japanese (ja)
Inventor
Mitsuharu Oki
光晴 大木
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.)
Sony Corp
Original Assignee
Sony Corp
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 Sony Corp filed Critical Sony Corp
Priority to JP34254295A priority Critical patent/JPH09187001A/en
Publication of JPH09187001A publication Critical patent/JPH09187001A/en
Withdrawn legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/44Decoders specially adapted therefor, e.g. video decoders which are asymmetric with respect to the encoder
    • H04N19/45Decoders specially adapted therefor, e.g. video decoders which are asymmetric with respect to the encoder performing compensation of the inverse transform mismatch, e.g. Inverse Discrete Cosine Transform [IDCT] mismatch
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/60Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using transform coding

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • Discrete Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Compression Or Coding Systems Of Tv Signals (AREA)
  • Compression Of Band Width Or Redundancy In Fax (AREA)
  • Complex Calculations (AREA)

Abstract

(57)【要約】 【課題】 IDCTミスマッチ対策により映像に誤差が
付加されることを抑制する。 【解決手段】 逆離散コサイン変換演算回路24の出力
を、丸め回路32を介して直接出力すると共に、±CO
S(*)COS(*)出力回路30によりIDCTミス
マッチを防止するためのデータを加算器31により加算
し、フレームメモリ27に記憶した後、加算器26によ
り、逆離散コサイン変換演算回路24からの出力に加算
する。
(57) Abstract: It is possible to prevent an error from being added to an image by a countermeasure against an IDCT mismatch. SOLUTION: The output of an inverse discrete cosine transform calculation circuit 24 is directly output via a rounding circuit 32, and ± CO
Data for preventing IDCT mismatch is added by the S (*) COS (*) output circuit 30 by the adder 31 and stored in the frame memory 27. Then, the adder 26 outputs the data from the inverse discrete cosine transform calculation circuit 24. Add to output.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、演算装置および演
算方法に関し、特に、丸めと累積とを含む演算により、
データを変換する演算装置および演算方法に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an arithmetic device and an arithmetic method, and more particularly, to an arithmetic operation including rounding and accumulation.
The present invention relates to an arithmetic device and an arithmetic method for converting data.

【0002】[0002]

【従来の技術】現在、映像圧縮の方法として一番多く使
用されているのが、MPEG(MovingPicture Experts
Group)1とMPEG2である。MPEG1とMPEG
2は、ISO(International Organization for Stand
ardization:国際標準化機構)が提案した映像圧縮方法
であり、詳細は、文献ISO/IEC11172−2、
およびISO/IEC13818−2に記されている。
2. Description of the Related Art Currently, MPEG (Moving Picture Experts) is the most widely used video compression method.
Group) 1 and MPEG2. MPEG1 and MPEG
2 is ISO (International Organization for Stand)
ardization: International Standardization Organization) proposed video compression method. For details, refer to document ISO / IEC11172-2,
And ISO / IEC 13818-2.

【0003】MPEG1またはMPEG2方式では、符
号化装置において、元となる映像を2次元離散コサイン
(DCT)変換し、伝送媒体により伝送するか、または
記録媒体に記録した後、復号化装置において2次元逆離
散コサイン変換(IDCT)を施し、元の映像を復号す
る。
In the MPEG1 or MPEG2 system, an encoding apparatus performs two-dimensional discrete cosine (DCT) conversion of an original image and transmits it by a transmission medium or records it on a recording medium and then two-dimensionally by a decoding apparatus. Inverse Discrete Cosine Transform (IDCT) is applied to decode the original video.

【0004】DCT係数に対してIDCT演算を施す
と、演算結果に小数部分が発生するので、この小数部分
を整数に丸める処理が行われる。IDCT演算の結果が
“整数+0.5”の場合(小数部分が0.5の場合)、
0.5を切り上げて丸めるときと、切り捨てるときとで
は、丸めによって結果が“1”だけ異なることになる。
When the IDCT operation is performed on the DCT coefficient, a decimal part is generated in the operation result, so that the decimal part is rounded to an integer. If the result of the IDCT operation is “integer + 0.5” (if the decimal part is 0.5),
When rounding up by rounding 0.5 up and when rounding down, the result will differ by "1" depending on the rounding.

【0005】切り上げと切り捨てのいずれで丸めるかを
規格で規定することも可能であったが、実際には、MP
EGが標準化される前に、複数のメーカのDCT、ID
CTチップが既に市販されていたため、これを規格化す
ることができなかった。その結果、丸めの方法は各メー
カのチップで異なっており、異なるメーカのチップを用
いるといわゆるIDCTミスマッチが発生する。
It was possible to specify whether to round by rounding up or rounding down, but in reality, MP
Before the EG is standardized, multiple manufacturers' DCTs, IDs
Since the CT chip was already on the market, it could not be standardized. As a result, the rounding method is different for each manufacturer's chip, and so-called IDCT mismatch occurs when chips of different manufacturers are used.

【0006】また、MPEG1またはMPEG2方式で
は、フレーム間予測処理を行って符号化しており、符号
化時に、復号化された画像を次のフレームを復号化する
ための予測画像として一旦記憶するようにしている。従
って、IDCTミスマッチによる誤差は予測画像を介し
て累積される。
In the MPEG1 or MPEG2 system, inter-frame prediction processing is performed for coding, and at the time of coding, the decoded image is temporarily stored as a predicted image for decoding the next frame. ing. Therefore, the error due to the IDCT mismatch is accumulated through the predicted image.

【0007】そこで、IDCTミスマッチの発生を防止
するために、例えば、MPEG1では、IDCT演算を
行う前のデータ(DCT係数)の、“0”でない偶数デ
ータに対して“+1”または“−1”を加算して強制的
に奇数に変換し、IDCT演算の結果が“整数+0.
5”になることを防止している。
Therefore, in order to prevent the occurrence of IDCT mismatch, for example, in MPEG1, "+1" or "-1" is applied to even data other than "0" of the data (DCT coefficient) before the IDCT calculation. , And forcibly converted to an odd number, and the result of the IDCT operation is “integer + 0.
It prevents it from becoming 5 ".

【0008】また、MPEG2では、DCT係数(8×
8画素ブロックを構成する64個の係数)の合計が偶数
のときは、(7,7)成分(DCT係数を8×8の行列
に配置した場合の行および列がそれぞれ7,7である成
分)に“+1”または“−1”を加算し、MPEG1の
場合と同様に、IDCT演算の結果が“整数+0.5”
になることを防止している。
In MPEG2, the DCT coefficient (8 ×
When the sum of the 64 coefficients forming the 8-pixel block is an even number, the (7,7) component (the component in which the row and the column are 7 and 7 when the DCT coefficients are arranged in an 8 × 8 matrix, respectively) ) Is added with “+1” or “−1”, and the result of the IDCT operation is “integer + 0.5” as in the case of MPEG1.
Are prevented from becoming.

【0009】図5は、従来のMPEG1方式の符号化装
置(エンコーダ)と復号化装置(デコーダ)の構成の一
例を示すブロック図である。この図において、エンコー
ダ1の減算器10は、入力される現在の画像と、ローカ
ルデコーダを介して入力される予測画像との減算を行
う。離散コサイン変換(DCT;Descrete Cosine Tran
sform)演算回路11は、減算器10の出力データに対
して離散コサイン変換を施すようになされている。量子
化(Q;Quantaization)回路12は、離散コサイン変
換が施された画像データを量子化し、ビットストリーム
として送出する。
FIG. 5 is a block diagram showing an example of the configuration of a conventional MPEG1 system encoding device (encoder) and decoding device (decoder). In this figure, the subtractor 10 of the encoder 1 performs subtraction between the current image input and the predicted image input via the local decoder. Discrete Cosine Transform (DCT)
The sform) arithmetic circuit 11 is adapted to perform a discrete cosine transform on the output data of the subtractor 10. A quantizer (Q) circuit 12 quantizes the image data that has been subjected to the discrete cosine transform, and sends it out as a bit stream.

【0010】デコーダ2の逆量子化(IQ;Inverse Qu
antization)回路20は、エンコーダ1から送られてき
たビットストリームを逆量子化する。判別回路21は、
逆量子化回路20の出力データ(DCT係数)が“0”
でない偶数であるか否かを判別し、±1出力回路22に
判別結果を出力する。±1出力回路22は、判別回路2
1の出力を参照し、DCT係数が“0”でない偶数の場
合は、“+1”または、“−1”のうち、DCT係数と
の和が“0”に近くなる方を出力する。
Inverse quantization (IQ; Inverse Qu) of the decoder 2
The antization circuit 20 dequantizes the bitstream sent from the encoder 1. The discrimination circuit 21
The output data (DCT coefficient) of the inverse quantization circuit 20 is "0".
It is determined whether or not it is an even number, and the determination result is output to the ± 1 output circuit 22. The ± 1 output circuit 22 is the discrimination circuit 2
If the DCT coefficient is an even number other than "0", the output of "+1" or "-1" whose sum with the DCT coefficient is closer to "0" is output.

【0011】例えば、DCT係数“4”に対しては、
“−1”が出力され、また、DCT係数“−6”に対し
ては、“+1”が出力される。
For example, for the DCT coefficient "4",
"-1" is output, and "+1" is output for the DCT coefficient "-6".

【0012】加算器23は、逆量子化回路20の出力
と、±1出力回路22の出力とを加算し、出力する。逆
離散コサイン変換(IDCT)演算回路24は、加算器
23の出力データに対して逆離散コサイン変換を施し、
その結果を出力する。丸め回路25は、逆離散コサイン
変換が施されたデータを整数に丸める処理を行う。加算
器26は、フレームメモリ27に記録された画像信号
(予測画像)と、丸め回路25から出力されるデータと
を加算し、出力する。
The adder 23 adds the output of the inverse quantization circuit 20 and the output of the ± 1 output circuit 22 and outputs the result. The inverse discrete cosine transform (IDCT) arithmetic circuit 24 performs the inverse discrete cosine transform on the output data of the adder 23,
Output the result. The rounding circuit 25 rounds the data subjected to the inverse discrete cosine transform into an integer. The adder 26 adds the image signal (predicted image) recorded in the frame memory 27 and the data output from the rounding circuit 25, and outputs the result.

【0013】加算器26の出力は、予測画像としてフレ
ームメモリ27に記憶されるとともに、図示せぬCRT
(Cathode Ray Tube)ディスプレイなどに入力され、映
像として表示されることになる。
The output of the adder 26 is stored in the frame memory 27 as a predicted image, and also the CRT (not shown).
(Cathode Ray Tube) It will be input to a display and will be displayed as an image.

【0014】実際の構成においては、エンコーダ1の量
子化回路12の出力データをバリアブルレングスコーデ
ィングした後、ビットストリームとして出力し、デコー
ダ2の逆量子化回路20へ入力される前に、バリアブル
レングスデコーディングするようになされているが、こ
こでは説明を簡略化するために省略してある。
In an actual configuration, the output data of the quantization circuit 12 of the encoder 1 is variable length coded, and then output as a bit stream, before being input to the inverse quantization circuit 20 of the decoder 2, the variable length data is output. Although they are coded, they are omitted here to simplify the description.

【0015】以上のような構成によれば、デコーダ2に
おいて、DCT係数を強制的に奇数に変更するので、逆
離散コサイン変換演算回路24の出力データの小数部分
が“0.5”になることが殆どなくなる。従って、丸め
回路25において丸め誤差が生じ、その誤差がフレーム
メモリ27に累積されることが無くなるので、IDCT
ミスマッチの発生を抑制することができる。
According to the above configuration, the decoder 2 forcibly changes the DCT coefficient to an odd number, so that the fractional part of the output data of the inverse discrete cosine transform arithmetic circuit 24 becomes "0.5". Is almost gone. Therefore, a rounding error is not generated in the rounding circuit 25 and the error is not accumulated in the frame memory 27.
The occurrence of mismatch can be suppressed.

【0016】以上の例では、MPEG1方式のエンコー
ダおよびデコーダを例に挙げて説明したが、MPEG2
方式のデコーダにおいても同様の構成でIDCTミスマ
ッチの発生を抑制することができる。
In the above example, the MPEG1 system encoder and decoder have been described as an example.
Even in the case of the decoder of the system, the occurrence of IDCT mismatch can be suppressed with the same configuration.

【0017】MPEG2方式のデーコーダにおいては、
判別回路21において、64個のDCT係数の合計値が
偶数であるか否かを判別し、そして、偶数であると判別
した場合には、DCT係数の(7,7)成分に対して
“+1”または“−1”を加算するようにしている。
In the MPEG2 system decoder,
The discrimination circuit 21 discriminates whether or not the total value of the 64 DCT coefficients is an even number, and when discriminating that the total value is an even number, "+1" is added to the (7, 7) component of the DCT coefficient. "" Or "-1" is added.

【0018】すなわち、判別回路21がDCT係数の合
計値が偶数であると判別し、更にDCT係数の(7,
7)成分が偶数であると判別した場合、±1出力回路2
2から“+1”を出力させ、DCT係数の(7,7)成
分に対し“1”を加算する。また、DCT係数の(7,
7)成分が奇数であると判別した場合は、±1出力回路
22から“−1”を出力させ、DCT係数の(7,7)
成分に対して“−1”を加算する。
That is, the discrimination circuit 21 discriminates that the total value of the DCT coefficients is an even number, and further the DCT coefficients (7,
7) ± 1 output circuit 2 when it is determined that the components are even
2 outputs "+1", and "1" is added to the (7,7) component of the DCT coefficient. In addition, the DCT coefficient (7,
7) When it is determined that the component is odd, the ± 1 output circuit 22 outputs “−1”, and the DCT coefficient (7, 7) is output.
Add "-1" to the component.

【0019】また、判別回路21がDCT係数の合計値
が奇数であると判別した場合は、±1出力回路22が出
力を行わないように制御する。
Further, when the discriminating circuit 21 discriminates that the total value of the DCT coefficients is an odd number, the ± 1 output circuit 22 is controlled so as not to output.

【0020】以上のような例によれば、MPEG2方式
のデコーダにおいても、丸め回路25における“整数+
0.5”のデータの取り扱いの相違(各デバイス間の相
違)により発生する誤差を防ぐことができる。その結
果、IDCTミスマッチの発生を抑制することができ
る。
According to the above example, even in the MPEG2 system decoder, "integer ++" in the rounding circuit 25 is used.
It is possible to prevent an error caused by a difference in handling of 0.5 ″ data (difference between devices). As a result, it is possible to suppress the occurrence of IDCT mismatch.

【0021】[0021]

【発明が解決しようとする課題】前述のように、IDC
Tミスマッチは、フレーム間予測が連続して行われた場
合に、フレームメモリ27に誤差が蓄積される現象であ
る。従って、フレームメモリ27に記憶され、フレーム
間予測に使用されるデータ(IピクチャまたはPピクチ
ャ)に対しては、誤差の累積を防ぐため、±1出力回路
22によりDCT係数の補正(“+1”または“−1”
を加算すること)を行う必要がある。
DISCLOSURE OF THE INVENTION Problems to be Solved by the Invention As described above, the IDC
T mismatch is a phenomenon in which errors are accumulated in the frame memory 27 when inter-frame prediction is continuously performed. Therefore, for the data (I picture or P picture) stored in the frame memory 27 and used for inter-frame prediction, the ± 1 output circuit 22 corrects the DCT coefficient (“+1”) to prevent the accumulation of errors. Or "-1"
Must be added).

【0022】±1出力回路22によるDCT係数の補正
は、フレームメモリ27に誤差が蓄積されることを防止
するためである。しかしながら、これらの演算の結果、
DCT係数が“+1”または“−1”だけ元の値からの
ずれ(誤差)を生ずることになるので、出力されるデー
タも誤差を含むことになる。すなわち、DCT係数をD
とし、±1出力回路22から出力される値をTとする
と、IDCT演算の線形性から、出力データに対して付
加される誤差Eは、以下のように示される。 E=IDCT×(D+T)−IDCT×D =IDCT×T ・・・ (1)
The correction of the DCT coefficient by the ± 1 output circuit 22 is to prevent an error from being accumulated in the frame memory 27. However, as a result of these operations,
Since the DCT coefficient causes a deviation (error) from the original value by "+1" or "-1", the output data also includes an error. That is, the DCT coefficient is D
And the value output from the ± 1 output circuit 22 is T, the error E added to the output data is expressed as follows from the linearity of the IDCT operation. E = IDCT × (D + T) −IDCT × D = IDCT × T (1)

【0023】このように、従来のデコーダでは、フレー
ムメモリ27に誤差が蓄積されることにより生ずるID
CTミスマッチを防止するために入力データに対して補
正を行っていたが、その結果、式(1)に示されるID
CT×Tの誤差が映像データに対して付加されるという
課題があった。
As described above, in the conventional decoder, the ID generated by the error accumulated in the frame memory 27
The input data was corrected to prevent CT mismatch, but as a result, the ID shown in equation (1)
There is a problem that an error of CT × T is added to the video data.

【0024】本発明は、このような状況に鑑みてなされ
たものであり、MPEG方式のデータデコーダの出力デ
ータに含まれる誤差を少なくするためのものである。
The present invention has been made in view of the above circumstances, and is intended to reduce an error contained in output data of an MPEG data decoder.

【0025】[0025]

【課題を解決するための手段】請求項1に記載の演算装
置は、データに所定の演算を施す演算手段と、演算手段
によって得られた演算結果に所定の値を加算する第1の
加算手段と、第1の加算手段によって得られた演算結果
を累積する累積手段と、累積手段の出力と、演算手段の
演算結果とを加算する第2の加算手段とを備えることを
特徴とする。
According to a first aspect of the present invention, there is provided an arithmetic device for performing a predetermined arithmetic operation on data, and a first adding means for adding a predetermined value to an arithmetic result obtained by the arithmetic means. And an accumulating means for accumulating the calculation result obtained by the first adding means, a second adding means for adding the output of the accumulating means and the calculation result of the calculating means.

【0026】請求項4に記載の演算方法は、データに所
定の演算を施し、得られた演算結果に所定の値を加算
し、得られた演算結果を累積し、演算結果と、累積され
た値とを加算することを特徴とする。
According to a fourth aspect of the present invention, a predetermined arithmetic operation is performed on data, a predetermined value is added to the obtained arithmetic result, the obtained arithmetic results are accumulated, and the arithmetic results are accumulated. It is characterized by adding the value and.

【0027】請求項5に記載の演算装置は、データに所
定の値を加算する第1の加算手段と、第1の加算手段の
演算結果に対して丸めを含む所定の演算を施す第1の演
算手段と、第1の演算手段の演算結果に対して累積を含
む所定の演算を施す第2の演算手段と、データに丸めを
含む所定の演算を施す第3の演算手段と、第2の演算手
段の演算結果と、第3の演算手段の演算結果とを加算す
る第2の加算手段とを備えることを特徴とする。
An arithmetic unit according to a fifth aspect of the present invention is a first addition means for adding a predetermined value to data, and a first calculation means for performing a predetermined calculation including rounding on the calculation result of the first addition means. Arithmetic means, second arithmetic means for performing a predetermined arithmetic operation including accumulation on the arithmetic result of the first arithmetic means, third arithmetic means for performing a predetermined arithmetic operation including rounding of data, and second arithmetic means It is characterized in that it is provided with a second addition means for adding the calculation result of the calculation means and the calculation result of the third calculation means.

【0028】請求項7に記載の演算方法は、データに所
定の値を加算し、加算結果に対して丸めを含む所定の演
算を施し、演算結果に対して累積を含む所定の演算を施
し、データに丸めを含む所定の演算を施し、累積を含む
所定の演算の演算結果と加算することを特徴とする。
According to a seventh aspect of the present invention, a predetermined value is added to data, a predetermined calculation including rounding is performed on the addition result, and a predetermined calculation including accumulation is performed on the calculation result. It is characterized in that a predetermined operation including rounding is performed on the data and the result is added to an operation result of a predetermined operation including accumulation.

【0029】請求項1に記載の演算装置においては、デ
ータに所定の演算を演算手段が施し、演算手段によって
得られた演算結果に所定の値を第1の加算手段が加算
し、第1の加算手段によって得られた演算結果を累積手
段が累積し、累積手段の出力と、演算手段の演算結果と
を第2の加算手段が加算する。
In the arithmetic unit according to the first aspect, the arithmetic means performs a predetermined arithmetic operation on the data, and the arithmetic operation result obtained by the arithmetic means adds a predetermined value to the first addition means to obtain the first arithmetic operation. The accumulating means accumulates the calculation results obtained by the adding means, and the output of the accumulating means and the calculation result of the calculating means are added by the second adding means.

【0030】請求項4に記載の演算方法においては、デ
ータに所定の演算を施し、得られた演算結果に所定の値
を加算し、得られた演算結果を累積し、演算結果と、累
積された値とを加算する。
In the operation method according to the fourth aspect, a predetermined operation is performed on the data, a predetermined value is added to the obtained operation result, the obtained operation result is accumulated, and the operation result is accumulated. And the value added.

【0031】請求項5に記載の演算装置においては、デ
ータに所定の値を第1の加算手段が加算し、第1の加算
手段の演算結果に対して丸めを含む所定の演算を第1の
演算手段が施し、第1の演算手段の演算結果に対して累
積を含む所定の演算を第2の演算手段が施し、データに
丸めを含む所定の演算を第3の演算手段が施し、第2の
演算手段の演算結果と、第3の演算手段の演算結果とを
第2の加算手段が加算する。
In the arithmetic unit according to the fifth aspect, the first adding means adds a predetermined value to the data, and the predetermined arithmetic operation including rounding is performed on the arithmetic result of the first adding means. The second calculation means performs a predetermined calculation including accumulation on the calculation result of the first calculation means, and the third calculation means performs a predetermined calculation including rounding of the data. The second addition means adds the calculation result of the calculation means and the calculation result of the third calculation means.

【0032】請求項7に記載の演算方法においては、デ
ータに所定の値を加算し、加算結果に対して丸めを含む
所定の演算を施し、演算結果に対して累積を含む所定の
演算を施し、データに丸めを含む所定の演算を施し、累
積を含む所定の演算の演算結果と加算する。
In the operation method according to claim 7, a predetermined value is added to the data, a predetermined operation including rounding is performed on the addition result, and a predetermined operation including accumulation is performed on the operation result. , Data is subjected to a predetermined operation including rounding, and the result is added to an operation result of a predetermined operation including accumulation.

【0033】[0033]

【発明の実施の形態】図1は、本発明の演算装置の一実
施例の構成を示すブロック図である。この図において、
図5に示すデコーダ2と対応する部分には対応する符号
が付してあるので、説明を適宜省略する。
1 is a block diagram showing the configuration of an embodiment of an arithmetic unit according to the present invention. In this figure,
Since the parts corresponding to those of the decoder 2 shown in FIG. 5 are denoted by the corresponding reference numerals, the description thereof will be omitted as appropriate.

【0034】逆量子化回路20の出力は、逆離散コサイ
ン変換演算回路24(演算手段)へ供給されると共に、
判別回路21へ供給される。判別回路21の出力は±C
OS(*)COS(*)出力回路30へ供給される。逆
離散コサイン変換演算回路24の出力は加算器26に供
給され、フレームメモリ27(累積手段)の出力と加算
され、加算器31と丸め回路32へ出力される。
The output of the inverse quantization circuit 20 is supplied to the inverse discrete cosine transform arithmetic circuit 24 (arithmetic means) and
It is supplied to the discrimination circuit 21. The output of the discrimination circuit 21 is ± C
It is supplied to the OS (*) COS (*) output circuit 30. The output of the inverse discrete cosine transform calculation circuit 24 is supplied to the adder 26, is added to the output of the frame memory 27 (accumulation means), and is output to the adder 31 and the rounding circuit 32.

【0035】±COS(*)COS(*)出力回路30
(記憶手段)は、判別回路21の出力を参照し、後述す
る所定の値を出力するようになされている。加算器31
(第1の加算手段)は、±COS(*)COS(*)出
力回路30の出力と、加算器26(第2の加算手段)の
出力とを加算するようになされている。加算器31の出
力は、丸め回路25を介してフレームメモリ27へ供給
され、遅延された後、加算器26へ出力される。
± COS (*) COS (*) output circuit 30
The (storage means) refers to the output of the discriminating circuit 21 and outputs a predetermined value described later. Adder 31
The (first adding means) is configured to add the output of the ± COS (*) COS (*) output circuit 30 and the output of the adder 26 (second adding means). The output of the adder 31 is supplied to the frame memory 27 via the rounding circuit 25, delayed, and then output to the adder 26.

【0036】丸め回路32は、加算器26の出力データ
(実数値)に対して丸め処理を施し、整数データを出力
するようになされている。丸め回路32の出力信号は、
図示せぬCRTディスプレイに入力されており、映像と
して出力されることになる。
The rounding circuit 32 rounds the output data (real value) of the adder 26 and outputs integer data. The output signal of the rounding circuit 32 is
It has been input to a CRT display (not shown) and will be output as an image.

【0037】この実施例においては、図5に示す±1出
力回路22が除外され、その代わりに±COS(*)C
OS(*)出力回路30が、フレームメモリ27を含む
ループ(加算器26、加算器31、丸め回路25、およ
びフレームメモリ27によって形成されるループ)上に
付加されている。以下、この実施例を従来例から導出す
るプロセスについて説明する。
In this embodiment, the ± 1 output circuit 22 shown in FIG. 5 is omitted and replaced with ± COS (*) C.
The OS (*) output circuit 30 is added on a loop including the frame memory 27 (a loop formed by the adder 26, the adder 31, the rounding circuit 25, and the frame memory 27). The process of deriving this embodiment from the conventional example will be described below.

【0038】図2は、図5に示す従来のデコーダ1から
本実施例を導出するためのプロセスを示すブロック図で
ある。
FIG. 2 is a block diagram showing a process for deriving the present embodiment from the conventional decoder 1 shown in FIG.

【0039】図2(a)は、従来のデコーダ1を示すブ
ロック図である。この図においては、逆量子化されたビ
ットストリームが逆離散コサイン変換演算回路24へ入
力される前に、図示せぬ±1出力回路22から出力され
る補正用のデータ(=±1)が加算され、DCT係数の
補正がなされる。
FIG. 2A is a block diagram showing a conventional decoder 1. In this figure, before the inversely quantized bit stream is input to the inverse discrete cosine transform operation circuit 24, the correction data (= ± 1) output from the ± 1 output circuit 22 (not shown) is added. Then, the DCT coefficient is corrected.

【0040】この補正を、逆離散コサイン変換演算回路
24の直後で行うようにするには、図2(b)に示すよ
うに補正用のデータ(=±1)に対して逆離散コサイン
変換を施し、その結果得られる値±COS(*)COS
(*)(*については後述する)を、逆離散コサイン変
換されたデータに対して加算器31により加算するよう
にすればよい。
In order to perform this correction immediately after the inverse discrete cosine transform calculation circuit 24, the inverse discrete cosine transform is applied to the correction data (= ± 1) as shown in FIG. 2B. Value obtained as a result ± COS (*) COS
(*) (* Will be described later) may be added by the adder 31 to the data subjected to the inverse discrete cosine transform.

【0041】加算器31で加算される補正用のデータ±
COS(*)COS(*)は、次のように表すことがで
きる。 COS(*)COS(*)=COS{iπ(2k+1)/16}COS{jπ (2h+1)/16} ・・・(2)
Correction data added by the adder 31 ±
COS (*) COS (*) can be expressed as follows. COS (*) COS (*) = COS {iπ (2k + 1) / 16} COS {jπ (2h + 1) / 16} (2)

【0042】ここで、i,jは、±1を加算する対象と
なるDCT係数(i,j)(DCT係数を8×8の行列
に並べたときに、第i行目の第j列目に配置されるデー
タ)のi,jに対応しており、また、h,kは、DCT
係数(i,j)を逆離散コサイン変換したときに得られ
る実空間データの第h行目の第k列目に配置されるデー
タh,kに対応している。
Here, i, j is the DCT coefficient (i, j) for which ± 1 is added (when the DCT coefficients are arranged in an 8 × 8 matrix, the i-th row and the j-th column) I) and (h) and (k) are DCTs.
This corresponds to the data h, k arranged in the h-th row and the k-th column of the real space data obtained when the coefficient (i, j) is subjected to the inverse discrete cosine transform.

【0043】以上の様なプロセスを経て、図2(b)に
示すように、逆離散コサイン変換演算回路24の出力
に、加算器31で、±COS(*)COS(*)を加算
し、丸め回路25に供給するブロック図を得る。
Through the above process, as shown in FIG. 2B, the adder 31 adds ± COS (*) COS (*) to the output of the inverse discrete cosine transform arithmetic circuit 24, A block diagram for supplying to the rounding circuit 25 is obtained.

【0044】次に、図2(b)に示すブロック図から、
加算器31および図示せぬ±COS(*)COS(*)
出力回路30を、フレームメモリ27を含むループ(図
2(b)において、フレームメモリ27および加算器2
6により構成されるループ)内に移動させることを考え
る。
Next, from the block diagram shown in FIG.
Adder 31 and ± COS (*) COS (*) not shown
The output circuit 30 is a loop including the frame memory 27 (in FIG. 2B, the frame memory 27 and the adder 2
6)).

【0045】図2(b)において、逆離散コサイン変換
演算回路24の出力をa、図示せぬ±COS(*)CO
S(*)出力回路30の出力をb、加算器31の出力を
c、丸め回路25の出力をd、および加算器26の出力
(または出力信号)eとする。
In FIG. 2 (b), the output of the inverse discrete cosine transform arithmetic circuit 24 is a, ± COS (*) CO not shown.
It is assumed that the output of the S (*) output circuit 30 is b, the output of the adder 31 is c, the output of the rounding circuit 25 is d, and the output (or output signal) e of the adder 26.

【0046】このとき、加算器26の出力は次のように
表すことができる。 e=e-1+d ・・・(3)
At this time, the output of the adder 26 can be expressed as follows. e = e -1 + d (3)

【0047】ここで、e-1は、フレームメモリ27によ
り遅延された加算器26の出力eを表している。式
(3)は、加算器31の出力cを用いると次のように表
すことができる。 e=e-1+d=e-1+round(c) ・・・(4)
Here, e −1 represents the output e of the adder 26 delayed by the frame memory 27. Equation (3) can be expressed as follows using the output c of the adder 31. e = e -1 + d = e -1 + round (c) (4)

【0048】なお、round(c)は、cに対して丸
め処理を行うことを意味する。
Note that round (c) means that rounding processing is performed on c.

【0049】更に、式(4)は、逆離散コサイン変換演
算回路24の出力aと図示せぬ±COS(*)COS
(*)出力回路30の出力bを用いて次のように表すこ
とができる。 e=e-1+round(a+b) ・・・(5)
Further, in the equation (4), the output a of the inverse discrete cosine transform arithmetic circuit 24 and ± COS (*) COS (not shown) are used.
(*) It can be expressed as follows using the output b of the output circuit 30. e = e -1 + round (a + b) (5)

【0050】ここで、e-1は整数であるので、これをr
ound()の括弧内に含めて、式(5)を次のように
変形することができる。 e=round(a+b+e-1) ・・・(6)
Here, since e -1 is an integer, this is r
The expression (5) can be modified as follows by including it in the parentheses of found (). e = round (a + b + e −1 ) (6)

【0051】この式に基づいて図2(b)を変形したも
のが図2(c)である。このブロック図では、加算器3
1および丸め回路25が、フレームメモリ27を含むル
ープに挿入されている。
FIG. 2C is a modification of FIG. 2B based on this equation. In this block diagram, the adder 3
1 and the rounding circuit 25 are inserted in a loop containing the frame memory 27.

【0052】ここで、加算器31により値±COS
(*)COS(*)を加算するのは、前述のように、フ
レームメモリ27に誤差が蓄積されることを防ぐためで
ある。しかしながら、図2(c)に示すように、補正用
のデータ±COS(*)COS(*)は加算器26の出
力に対して加算されるため、出力信号eに対してもこの
値が加算されることになる。このことは、式(6)に値
bが含まれていることからも分かる。
Here, the value ± COS is calculated by the adder 31.
The reason why (*) COS (*) is added is to prevent the error from being accumulated in the frame memory 27 as described above. However, as shown in FIG. 2C, since the correction data ± COS (*) COS (*) is added to the output of the adder 26, this value is also added to the output signal e. Will be done. This can be seen from the fact that the value b is included in the equation (6).

【0053】従って、この値を加算する場所を、加算器
26と出力データが取り出されるポイント(図中黒丸で
示されるポイントP(以下、出力ポイントPと略記す
る))との間から、出力ポイントPとフレームメモリ2
7の間に移動させると、図1に示す実施例のブロック図
を得ることになる。
Therefore, the output point is set between the adder 26 and the point where the output data is taken out (point P indicated by a black circle in the figure (hereinafter abbreviated as output point P)). P and frame memory 2
Moving during 7 results in the block diagram of the embodiment shown in FIG.

【0054】従って、図5におけるフレームメモリ27
への入力信号(IDCTミスマッチ対策のための補正が
施されたデータ)と、図2(a)に示すフレームメモリ
27への入力信号と、図2(b)に示すフレームメモリ
27への入力信号eと、図2(c)に示すフレームメモ
リ27への入力信号と、図1に示すフレームメモリ27
への入力信号とは、すべて同一の値である。このこと
は、図1に示す構成においても、図5に示す構成と同様
に、IDCTミスマッチによる誤差の累積がフレームメ
モリ27に起こらないことを示している。
Therefore, the frame memory 27 in FIG.
To the frame memory 27 shown in FIG. 2A, the input signal to the frame memory 27 shown in FIG. 2B, and the input signal to the frame memory 27 shown in FIG. e, the input signal to the frame memory 27 shown in FIG. 2C, and the frame memory 27 shown in FIG.
The input signals to all have the same value. This means that in the configuration shown in FIG. 1 as well, similar to the configuration shown in FIG. 5, accumulation of errors due to IDCT mismatch does not occur in the frame memory 27.

【0055】そして、図1に示す実施例において、丸め
回路32の出力信号fを式であらわすと、次にようにな
る。 f=round[a+g] ・・・(7)
Then, in the embodiment shown in FIG. 1, the output signal f of the rounding circuit 32 is expressed by the following equation. f = round [a + g] (7)

【0056】この式で、gはフレームメモリ27の出力
信号であり、即ち、IDCTミスマッチ対策を施したデ
ータに対してフレーム遅延したデータである。故に、式
(1)に示される誤差IDCT×Tのない、純粋にDC
T係数(逆量子化回路20の出力データ)に逆離散コサ
イン変換を施した値aと、値gが加算され、その後、丸
められた値fが出力される。
In this equation, g is the output signal of the frame memory 27, that is, the data delayed by the frame with respect to the data for which the IDCT mismatch countermeasure has been taken. Therefore, pure DC without the error IDCT × T shown in equation (1)
The value a obtained by performing the inverse discrete cosine transform on the T coefficient (output data of the inverse quantization circuit 20) and the value g are added, and then the rounded value f is output.

【0057】次に、本実施例の動作を説明する。Next, the operation of this embodiment will be described.

【0058】図示せぬエンコーダから送られてきたビッ
トストリームは、逆量子化回路20へ入力され、逆量子
化が施された後、逆離散コサイン変換演算回路24およ
び判別回路21へ出力される。逆離散コサイン変換演算
回路24は、逆量子化されたデータに対して逆離散コサ
イン変換を施し、加算器26へ出力する。
The bit stream sent from the encoder (not shown) is input to the dequantization circuit 20, dequantized, and then output to the inverse discrete cosine transform calculation circuit 24 and the discrimination circuit 21. The inverse discrete cosine transform calculation circuit 24 performs an inverse discrete cosine transform on the dequantized data and outputs it to the adder 26.

【0059】加算器26は、フレームメモリ27に記憶
されたデータ(予測画像としてのIピクチャまたはPピ
クチャ)と、逆離散コサイン変換演算回路24の出力デ
ータとを加算する。加算器26の出力は、丸め回路32
と、加算器31へ供給される。
The adder 26 adds the data (I picture or P picture as a predicted image) stored in the frame memory 27 and the output data of the inverse discrete cosine transform arithmetic circuit 24. The output of the adder 26 is the rounding circuit 32.
Is supplied to the adder 31.

【0060】加算器31は、±COS(*)COS
(*)出力回路30の出力データと、加算器26の出力
データとを加算する。なお、±COS(*)COS
(*)出力回路30は、判別回路21の出力を参照し、
所定の値を出力する。
The adder 31 uses ± COS (*) COS
(*) The output data of the output circuit 30 and the output data of the adder 26 are added. Note that ± COS (*) COS
(*) The output circuit 30 refers to the output of the discrimination circuit 21,
Output a predetermined value.

【0061】すなわち、判別回路21は、先ず、逆量子
化回路20に入力されているビットストリームがIピク
チャまたはPピクチャであるか否かを判別する。そし
て、入力されるビットストリームがIピクチャまたはP
ピクチャであると判別すると、DCT係数が“0”でな
い偶数であるか否かを更に判別する。その結果、“0”
でない偶数であると判別すると、“+1”または“−
1”の内、DCT係数との和が“0”に近い方を選択
し、その値をCOS(*)COS(*)に乗算した値
(=+COS(*)COS(*)または−COS(*)
COS(*))を出力回路30より出力させる。
That is, the discriminating circuit 21 first discriminates whether the bit stream input to the inverse quantizing circuit 20 is an I picture or a P picture. Then, the input bit stream is I picture or P
When it is determined that it is a picture, it is further determined whether or not the DCT coefficient is an even number other than "0". As a result, "0"
If it is determined to be an even number, “+1” or “−”
Of the 1's, the one whose sum with the DCT coefficient is closer to "0" is selected, and the value is multiplied by COS (*) COS (*) (= + COS (*) COS (*) or -COS ( *)
The output circuit 30 outputs COS (*).

【0062】その結果、IピクチャまたはPピクチャの
DCT係数の内、“0”でない偶数のデータに対して
は、加算器31により、+COS(*)COS(*)ま
たは−COS(*)COS(*)が加算されることにな
る。
As a result, for the even number data other than "0" among the DCT coefficients of the I picture or P picture, the adder 31 causes the + COS (*) COS (*) or -COS (*) COS ( *) Will be added.

【0063】加算器31の出力は、丸め回路25におい
て丸め処理を施され、整数データに変換され、フレーム
メモリ27に記憶される。このデータは、その後、所定
のタイミングで、予測画像として読み出され、出力され
ることになる。
The output of the adder 31 is rounded by the rounding circuit 25, converted into integer data, and stored in the frame memory 27. This data will then be read and output as a predicted image at a predetermined timing.

【0064】なお、フレームメモリ27の出力は、入力
されているビットストリームがPピクチャまたはBピク
チャである(予測画像を必要とする)場合にのみ、加算
器26に出力される。なお、加算器26の出力は丸め回
路32へ供給され、丸め処理を施された後、図示せぬC
RTディスプレイなどに出力され、映像として出力され
る。その結果、入力されているビットストリームがIピ
クチャの場合は、逆離散コサイン変換演算回路24の出
力データが加算器26から直接(IDCTミスマッチ対
策用の補正データと加算されないで)出力されることに
なるので、誤差を含まない映像信号を表示することがで
きる。
The output of the frame memory 27 is output to the adder 26 only when the input bit stream is a P picture or a B picture (which requires a prediction image). The output of the adder 26 is supplied to the rounding circuit 32, is subjected to rounding processing, and is then passed through a C (not shown).
It is output to an RT display or the like and output as a video. As a result, when the input bit stream is an I picture, the output data of the inverse discrete cosine transform operation circuit 24 is directly output from the adder 26 (without being added to the correction data for the IDCT mismatch countermeasure). Therefore, it is possible to display a video signal that does not include an error.

【0065】また、PピクチャあるいはBピクチャが入
力された場合は、フレームメモリ27に記憶されている
誤差が累積されていないデータ(IDCTミスマッチ対
策のための補正が施されたデータ)と、逆離散コサイン
変換演算回路24の出力データ(純粋にDCT係数に逆
離散コサイン変換を施した値)とが、加算器26にて加
算されて出力されることになるので、誤差を含まない映
像信号を表示することができる。
When a P picture or a B picture is input, the data stored in the frame memory 27 in which the error is not accumulated (data corrected for the IDCT mismatch countermeasure) and the inverse discrete data. The output data of the cosine transform calculation circuit 24 (a value obtained by purely performing inverse discrete cosine transform on the DCT coefficient) is added by the adder 26 and output, so that a video signal containing no error is displayed. can do.

【0066】なお、丸め回路32は、図示せぬCRTデ
ィスプレイへ入力されるデータが8ビットの整数データ
である場合が多いため、実数データを整数に変換する目
的で付加されている。従って、この丸め回路32は、場
合によっては除外することができる。
The rounding circuit 32 is added for the purpose of converting real number data into an integer because the data input to a CRT display (not shown) is often 8-bit integer data. Therefore, this rounding circuit 32 can be omitted in some cases.

【0067】図3は、本発明の実施例の他の構成を示す
ブロック図である。この図において、図1と対応する部
分には対応する符号を付してあるので、説明を適宜省略
する。
FIG. 3 is a block diagram showing another configuration of the embodiment of the present invention. In this figure, the parts corresponding to those in FIG. 1 are designated by the corresponding reference numerals, and the description thereof will be omitted as appropriate.

【0068】この実施例は、MPEG2方式のデコーダ
であり、図1の判別回路21に代えて、1ビット累加算
器40が新たに付加されている。その他の構成は、図1
における場合と同様である。
This embodiment is a decoder of the MPEG2 system, and a 1-bit cumulative adder 40 is newly added instead of the discrimination circuit 21 of FIG. Other configurations are shown in FIG.
Is the same as in the case of

【0069】1ビット累加算器40は、入力されている
ビットストリームがIピクチャまたはPピクチャである
か否かを判別する。そして、ビットストリームがIピク
チャまたはPピクチャであると判別すると、逆量子化回
路20により逆量子化が施された64個のDCT係数の
最下位ビットを累加算する。
The 1-bit cumulative adder 40 determines whether the input bit stream is an I picture or a P picture. When it is determined that the bit stream is an I picture or a P picture, the least significant bits of the 64 DCT coefficients that have been inversely quantized by the inverse quantization circuit 20 are cumulatively added.

【0070】累加算の結果が“0”になった場合は、6
4個のデータを加算した値が偶数であると判別し、更
に、DCT係数の(7,7)成分が偶数であるか否かを
判別する。(7,7)成分が偶数であると判別した場合
は、±COS(*)COS(*)出力回路30より+C
OS(*)COS(*)を出力させ、DCT係数が逆離
散コサイン変換されたデータに対して加算させる。ま
た、DCT係数の(7,7)成分が奇数であると判別し
た場合は、±COS(*)COS(*)出力回路30か
ら−COS(*)COS(*)を出力させ、DCT係数
が逆離散コサイン変換されたデータに対して加算させ
る。
When the cumulative addition result is "0", 6
It is determined that the value obtained by adding the four pieces of data is even, and whether or not the (7,7) component of the DCT coefficient is even is determined. If it is determined that the (7,7) component is an even number, + C is output from the ± COS (*) COS (*) output circuit 30.
OS (*) COS (*) is output, and the DCT coefficient is added to the data subjected to the inverse discrete cosine transform. When it is determined that the (7,7) component of the DCT coefficient is an odd number, the ± COS (*) COS (*) output circuit 30 outputs −COS (*) COS (*) so that the DCT coefficient is Add to the data obtained by inverse discrete cosine transform.

【0071】ここで、COS(*)COS(*)は、次
のように表すことができる。 COS(*)COS(*)=COS{7π(2k+1)/16}COS{7π (2h+1)/16} ・・・(8)
Here, COS (*) and COS (*) can be expressed as follows. COS (*) COS (*) = COS {7π (2k + 1) / 16} COS {7π (2h + 1) / 16} (8)

【0072】なお、ここでh,kは、DCT係数を逆離
散コサイン変換した場合の実空間上のデータの(h,
k)成分を示している。
Here, h and k are (h, k of the data in the real space when the DCT coefficient is inverse discrete cosine transformed.
k) component is shown.

【0073】また、1ビット累加算器40が、DCT係
数の合計値が奇数であると判別した場合は、±COS
(*)COS(*)出力回路30からの出力はなされな
い。
If the 1-bit cumulative adder 40 determines that the total value of the DCT coefficients is an odd number, ± COS
No output is made from the (*) COS (*) output circuit 30.

【0074】なお、その他の動作は、図1に示す実施例
における場合と同様であるので、説明を省略する。以上
のような実施例によれば、MPEG2方式のデコーダに
おいても、出力映像に含まれる誤差を減少させることが
できる。
Since the other operations are the same as those in the embodiment shown in FIG. 1, description thereof will be omitted. According to the above embodiment, the error contained in the output video can be reduced even in the MPEG2 system decoder.

【0075】図4は、本発明の演算装置の実施例の更に
他の構成を示すブロック図である。この図において、図
5に対応する部分には対応する符号が付してあるので、
説明を適宜省略する。
FIG. 4 is a block diagram showing still another configuration of the embodiment of the arithmetic unit of the present invention. In this figure, the parts corresponding to those in FIG.
Description is omitted as appropriate.

【0076】この実施例は、図5に示す従来のデコーダ
2に対して、逆離散コサイン変換演算回路24B(第3
の演算手段)、丸め回路25B(第3の演算手段)、お
よび加算器50(第2の加算手段)を新たに付加したも
のである。なお、その他の構成は図5における場合と同
様である。
This embodiment is different from the conventional decoder 2 shown in FIG. 5 in that it has an inverse discrete cosine transform arithmetic circuit 24B (third embodiment).
2), a rounding circuit 25B (third calculating means), and an adder 50 (second adding means) are newly added. The rest of the configuration is the same as in FIG.

【0077】次にこの実施例の動作について説明する。Next, the operation of this embodiment will be described.

【0078】図示せぬエンコーダから送られてきたビッ
トストリームは、逆量子化回路20により逆量子化が施
される。判別回路21は、逆量子化されたデータが
“0”でない偶数であるか否かを判別する。その結果、
“0”でない偶数であると判別すると、“+1”または
“−1”の内、逆量子化されたデータとの和が“0”に
近くなる方を選択し、その値を±1出力回路22から出
力させる。また、逆量子化されたデータが奇数であるか
または“0”であると判別した場合は、±1出力回路2
2が出力を行わないようにする。
The bit stream sent from the encoder (not shown) is inversely quantized by the inverse quantization circuit 20. The determination circuit 21 determines whether the dequantized data is an even number other than "0". as a result,
If it is determined to be an even number other than "0", then one of "+1" or "-1" whose sum with the dequantized data is closer to "0" is selected, and the value is selected as ± 1 output circuit. 22 to output. If it is determined that the inversely quantized data is odd or "0", the ± 1 output circuit 2
2 does not output.

【0079】±1出力回路22の出力は、加算器23
(第1の加算手段)により逆量子化回路20の出力と加
算され、逆離散コサイン変換演算回路24A(第1の演
算手段)へ出力される。逆離散コサイン変換演算回路2
4Aは、加算器23の出力に対して逆離散コサイン変換
を施した後、演算結果を丸め回路25A(第1の演算回
路)へ出力する。丸め回路25Aは、逆離散コサイン変
換演算回路24Aの出力データに対して丸め処理を行
い、整数に変換した後、加算器26(第2の演算手段)
へ出力する。
The output of the ± 1 output circuit 22 is the adder 23.
It is added to the output of the inverse quantization circuit 20 by (first adding means) and output to the inverse discrete cosine transform arithmetic circuit 24A (first arithmetic means). Inverse discrete cosine transform arithmetic circuit 2
4A performs an inverse discrete cosine transform on the output of the adder 23, and then outputs the calculation result to the rounding circuit 25A (first calculation circuit). The rounding circuit 25A rounds the output data of the inverse discrete cosine transform calculation circuit 24A, converts it into an integer, and then adds it to the adder 26 (second calculation means).
Output to

【0080】加算器26は、フレームメモリ27(第2
の演算手段)に記憶されたデータと、丸め回路25Aの
出力とを加算する。なお、入力されているビットストリ
ームがBピクチャの場合、加算器26の出力は、図示せ
ぬスイッチが“OFF”の状態になるので、フレームメ
モリ27へは供給されない。その結果、フレームメモリ
27へ記憶されるデータは、IピクチャまたはPピクチ
ャのみとなる。
The adder 26 includes a frame memory 27 (second
The data stored in the calculation means) is added to the output of the rounding circuit 25A. When the input bit stream is a B picture, the output of the adder 26 is not supplied to the frame memory 27 because the switch (not shown) is in the “OFF” state. As a result, the data stored in the frame memory 27 is only I pictures or P pictures.

【0081】一方、逆量子化回路20の出力は、逆離散
コサイン変換演算回路24Bへも供給され、逆離散コサ
イン変換がなされた後、丸め回路25Bへ出力される。
丸め回路25Bは、逆離散コサイン変換が施されたデー
タを整数に丸める処理を行う。加算器50は、フレーム
メモリ27に記憶されているデータと丸め回路25Bの
出力とを加算し、図示せぬCRTディスプレイなどに対
して出力する。
On the other hand, the output of the inverse quantization circuit 20 is also supplied to the inverse discrete cosine transform arithmetic circuit 24B, subjected to the inverse discrete cosine transform, and then output to the rounding circuit 25B.
The rounding circuit 25B rounds the data that has been subjected to the inverse discrete cosine transform into an integer. The adder 50 adds the data stored in the frame memory 27 and the output of the rounding circuit 25B and outputs the result to a CRT display (not shown) or the like.

【0082】なお、フレームメモリ27の出力は、入力
されているビットストリームがPピクチャまたはBピク
チャのときだけ“ON”の状態となる図示せぬスイッチ
により加算器50に供給される。従って、Iピクチャが
入力されている場合は、丸め回路25Bの出力が図示せ
ぬCRTディスプレイへ直接(フレームメモリ27から
の出力との加算がなされずに)供給されることになる。
The output of the frame memory 27 is supplied to the adder 50 by a switch (not shown) which is turned on only when the input bit stream is a P picture or a B picture. Therefore, when the I picture is input, the output of the rounding circuit 25B is directly supplied to the CRT display (not shown) (without being added to the output from the frame memory 27).

【0083】また、フレームメモリ27に記憶されるデ
ータは、±1出力回路22によりIDCTミスマッチ対
策のための補正が施されているので、IDCTミスマッ
チによる誤差の蓄積が生じていない。更に、逆離散コサ
イン変換演算回路24Bを介して出力されるデータも、
補正用のデータが加算されていないので、補正用のデー
タによる誤差のない元の映像に近いデータである。
Further, since the data stored in the frame memory 27 is corrected by the ± 1 output circuit 22 as a countermeasure against the IDCT mismatch, no error is accumulated due to the IDCT mismatch. Further, the data output via the inverse discrete cosine transform arithmetic circuit 24B is also
Since the correction data is not added, the data is close to the original image without error due to the correction data.

【0084】以上の点を考慮して、Iピクチャが入力さ
れた場合を考えると、この場合は、IDCTミスマッチ
対策が施されていない(誤差が付加されていない)デー
タが丸め回路25Bより直接出力される。Pピクチャが
入力された場合は、フレームメモリ27に記憶されてい
る誤差が蓄積されていないデータと、丸め回路25Bの
補正データによる誤差のない出力データとが加算され、
出力される。また、Bピクチャが入力された場合は、P
ピクチャの場合と同様に、フレームメモリ27の出力
と、丸め回路25Bの出力とが加算され、出力される。
従って、いずれのピクチャにおいても、誤差の少ない元
の映像に近い映像信号を得ることができる。
Considering the above points, considering a case where an I picture is input, in this case, the data for which the IDCT mismatch countermeasure is not taken (the error is not added) is directly output from the rounding circuit 25B. To be done. When a P picture is input, the error-free data stored in the frame memory 27 and the output data without error due to the correction data of the rounding circuit 25B are added,
Is output. When a B picture is input, P
Similar to the case of the picture, the output of the frame memory 27 and the output of the rounding circuit 25B are added and output.
Therefore, in any of the pictures, a video signal close to the original video with a small error can be obtained.

【0085】更に、逆離散コサイン変換演算回路24A
(または24B)は、丸め回路25A(または25B)
と共に、同じLSI(Large Scale Integrated Circui
t)上に構成されることが多いが、以上のような実施例
によれば、そのようなLSIを用いても誤差の少ない映
像信号を得ることが可能となる。
Further, the inverse discrete cosine transform arithmetic circuit 24A
(Or 24B) is a rounding circuit 25A (or 25B)
Together with the same LSI (Large Scale Integrated Circui
In many cases, the above configuration makes it possible to obtain a video signal with a small error even when using such an LSI.

【0086】また、以上の実施例は、MPEG1方式の
デコーダの構成例であるが、判別回路21を、図3に示
す1ビット累加算器40に置換することにより、MPE
G2方式のデコーダを得ることができる。
The above embodiment is an example of the structure of the MPEG1 system decoder. However, by replacing the discrimination circuit 21 with the 1-bit cumulative adder 40 shown in FIG.
A G2 type decoder can be obtained.

【0087】なお、図1または図3に示す実施例におけ
る、±COS(*)COS(*)出力回路30は、予め
これらの値を計算してルックアップテーブルとしてメモ
リに記憶しておき、必要があればこれらを読み出して使
用するようにしてもよい。そのような構成によれば、複
雑な計算を繰り返し実行する必要がなくなる。
The ± COS (*) COS (*) output circuit 30 in the embodiment shown in FIG. 1 or 3 calculates these values in advance and stores them in a memory as a look-up table. If necessary, these may be read and used. With such a configuration, it is not necessary to repeatedly execute complicated calculations.

【0088】[0088]

【発明の効果】請求項1に記載の演算装置および請求項
4に記載の演算方法によれば、データに所定の演算を施
し、得られた演算結果に所定の値を加算し、得られた演
算結果を累積し、演算結果と累積された値とを加算する
ようにしたので、誤差の少ないデータを得ることができ
る。
According to the arithmetic unit of the first aspect and the arithmetic method of the fourth aspect, a predetermined arithmetic operation is performed on the data and a predetermined value is added to the obtained arithmetic operation result. Since the calculation result is accumulated and the calculation result and the accumulated value are added, it is possible to obtain data with less error.

【0089】請求項5に記載の演算装置および請求項7
に記載の演算方法によれば、データに所定の値を加算
し、加算結果に対して丸めを含む所定の演算を施し、演
算結果に対して累積を含む所定の演算を施し、データに
丸めを含む所定の演算を施し、累積を含む所定の演算の
演算結果と加算するようにしたので、丸めを含む演算回
路(LSI)を用いて誤差の少ない演算装置を構成する
ことが可能となる。
An arithmetic unit according to claim 5 and claim 7
According to the calculation method described in (1), a predetermined value is added to the data, a predetermined calculation including rounding is performed on the addition result, a predetermined calculation including accumulation is performed on the calculation result, and the data is rounded. Since the predetermined arithmetic operation including the calculation is performed and the result is added to the calculation result of the predetermined arithmetic operation including the accumulation, it is possible to configure the arithmetic device with less error by using the arithmetic circuit (LSI) including the rounding.

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

【図1】本発明の演算装置の実施例の構成を示すブロッ
ク図である。
FIG. 1 is a block diagram showing a configuration of an embodiment of an arithmetic unit according to the present invention.

【図2】従来の演算装置から本発明の演算装置を得る過
程を示す図である。
FIG. 2 is a diagram showing a process of obtaining an arithmetic device of the present invention from a conventional arithmetic device.

【図3】本発明の演算装置の実施例の他の構成を示すブ
ロック図である。
FIG. 3 is a block diagram showing another configuration of the embodiment of the arithmetic unit of the present invention.

【図4】本発明の演算装置の実施例の更に他の構成を示
すブロック図である。
FIG. 4 is a block diagram showing still another configuration of the embodiment of the arithmetic unit of the present invention.

【図5】従来のエンコーダおよびデコーダの構成の一例
を示すブロック図である。
FIG. 5 is a block diagram showing an example of a configuration of a conventional encoder and decoder.

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

10 減算器 11 離散コサイン変換演算回路(演算手段) 12 量子化回路 20 逆量子化回路 21 判別回路 22 ±1出力回路 23 加算器(第1の加算手段、第2の加算手段) 24 逆離散コサイン変換演算回路(第1の演算手段、
第3の演算手段) 25 丸め回路(第1の演算手段、第3の演算手段) 26 加算器(第2の演算手段) 27 フレームメモリ(累積手段、第2の演算手段) 30 ±COS(*)COS(*)出力回路(記憶手
段) 31 加算器(第1の加算手段) 32 丸め回路 40 1ビット累加算器 50 加算器(第2の加算手段)
10 Subtractor 11 Discrete Cosine Transform Operation Circuit (Calculation Means) 12 Quantization Circuit 20 Inverse Quantization Circuit 21 Discrimination Circuit 22 ± 1 Output Circuit 23 Adder (First Addition Means, Second Addition Means) 24 Inverse Discrete Cosine Conversion arithmetic circuit (first arithmetic means,
Third calculation means) 25 Rounding circuit (first calculation means, third calculation means) 26 Adder (second calculation means) 27 Frame memory (accumulation means, second calculation means) 30 ± COS (* ) COS (*) output circuit (storage means) 31 adder (first addition means) 32 rounding circuit 40 1-bit cumulative adder 50 adder (second addition means)

Claims (7)

【特許請求の範囲】[Claims] 【請求項1】 データに所定の演算を施す演算手段と、 前記演算手段によって得られた演算結果に所定の値を加
算する第1の加算手段と、 前記第1の加算手段によって得られた演算結果を累積す
る累積手段と、 前記累積手段の出力と、前記演算手段の演算結果とを加
算する第2の加算手段とを備えることを特徴とする演算
装置。
1. A calculation means for performing a predetermined calculation on data, a first addition means for adding a predetermined value to a calculation result obtained by the calculation means, and a calculation obtained by the first addition means. An arithmetic unit comprising: an accumulating means for accumulating results; and an second adding means for adding the output of the accumulating means and the calculation result of the calculating means.
【請求項2】 前記データは周波数空間上のデータであ
り、 前記演算手段は、前記データに対して逆離散コサイン変
換を施すことを特徴とする請求項1に記載の演算装置。
2. The arithmetic unit according to claim 1, wherein the data is data in a frequency space, and the arithmetic unit applies an inverse discrete cosine transform to the data.
【請求項3】 前記所定の値は、記憶手段に記憶されて
いることを特徴とする請求項1に記載の演算装置。
3. The arithmetic unit according to claim 1, wherein the predetermined value is stored in a storage means.
【請求項4】 データに所定の演算を施し、 得られた演算結果に所定の値を加算し、 得られた演算結果を累積し、 前記演算結果と、前記累積された値とを加算することを
特徴とする演算方法。
4. A predetermined operation is performed on the data, a predetermined value is added to the obtained operation result, the obtained operation result is accumulated, and the operation result and the accumulated value are added. The calculation method characterized by.
【請求項5】 データに所定の値を加算する第1の加算
手段と、 前記第1の加算手段の演算結果に対して丸めを含む所定
の演算を施す第1の演算手段と、 前記第1の演算手段の演算結果に対して累積を含む所定
の演算を施す第2の演算手段と、 前記データに丸めを含む所定の演算を施す第3の演算手
段と、 前記第2の演算手段の演算結果と、前記第3の演算手段
の演算結果とを加算する第2の加算手段とを備えること
を特徴とする演算装置。
5. A first addition means for adding a predetermined value to the data, a first calculation means for performing a predetermined calculation including rounding on the calculation result of the first addition means, and the first calculation means. Second arithmetic means for performing a predetermined arithmetic operation including accumulation on the arithmetic result of the arithmetic operation means, third arithmetic means for performing a predetermined arithmetic operation including rounding on the data, and arithmetic operation of the second arithmetic means An arithmetic unit comprising: a result and a second addition means for adding the calculation result of the third calculation means.
【請求項6】 前記データは周波数空間上のデータであ
り、 前記第1および第3の演算手段は、入力されたデータに
対して逆離散コサイン変換を施すことを特徴とする請求
項5に記載の演算装置。
6. The data according to claim 6, wherein the data is data in a frequency space, and the first and third arithmetic means perform an inverse discrete cosine transform on the input data. Computing device.
【請求項7】 データに所定の値を加算し、 加算結果に対して丸めを含む所定の演算を施し、 演算結果に対して累積を含む所定の演算を施し、 前記データに丸めを含む所定の演算を施し、前記累積を
含む所定の演算の演算結果と加算することを特徴とする
演算方法。
7. A predetermined value including a rounding is added to the data, a predetermined operation including rounding is performed on the addition result, a predetermined operation including accumulation is performed on the operation result, and a predetermined operation including rounding is performed on the data. An arithmetic method characterized by performing an arithmetic operation and adding it to an arithmetic operation result of a predetermined arithmetic operation including the accumulation.
JP34254295A 1995-12-28 1995-12-28 Arithmetic unit and arithmetic method Withdrawn JPH09187001A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP34254295A JPH09187001A (en) 1995-12-28 1995-12-28 Arithmetic unit and arithmetic method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP34254295A JPH09187001A (en) 1995-12-28 1995-12-28 Arithmetic unit and arithmetic method

Publications (1)

Publication Number Publication Date
JPH09187001A true JPH09187001A (en) 1997-07-15

Family

ID=18354563

Family Applications (1)

Application Number Title Priority Date Filing Date
JP34254295A Withdrawn JPH09187001A (en) 1995-12-28 1995-12-28 Arithmetic unit and arithmetic method

Country Status (1)

Country Link
JP (1) JPH09187001A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2008136338A1 (en) * 2007-04-26 2008-11-13 Nec Corporation Dynamic image decoding device, dynamic image decoding program, and dynamic image decoding method
EP2222086A1 (en) 2009-02-18 2010-08-25 EcoDisc Technology AG Method and device for avoiding rounding errors after carrying out an inverse discrete orthogonal transformation

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2008136338A1 (en) * 2007-04-26 2008-11-13 Nec Corporation Dynamic image decoding device, dynamic image decoding program, and dynamic image decoding method
US8243813B2 (en) 2007-04-26 2012-08-14 Nec Corporation Moving picture decoding device, moving picture decoding program, and moving picture decoding method
EP2222086A1 (en) 2009-02-18 2010-08-25 EcoDisc Technology AG Method and device for avoiding rounding errors after carrying out an inverse discrete orthogonal transformation

Similar Documents

Publication Publication Date Title
CN1137584C (en) Image element processor for memory management system using recompression
US7079692B2 (en) Reduced complexity video decoding by reducing the IDCT computation in B-frames
JPH03139988A (en) Method and device for recovering image
CN101594536A (en) Encoding/decoding device, encoding/decoding method, and storage medium
JP2005503695A (en) Video transcoding method and apparatus
JP2002515705A (en) Method and apparatus for reducing video decoder costs
JP2000333163A (en) Decoding device and method, encoding device and method, image processing system, image processing method
JPH0818979A (en) Image processing device
US20010022817A1 (en) Image data processing apparatus and motion compensation processing method used therefor, and recording medium
US6650706B2 (en) Frequential-based data modifying method and device
JP2002152751A (en) Image processing apparatus, method and computer- readable recording medium
JP2723867B2 (en) Image signal decoding device
JP2824222B2 (en) Video data compensation method and compensation device
JPH09187001A (en) Arithmetic unit and arithmetic method
JP2768260B2 (en) Image coding control method
US6266448B1 (en) Method of and apparatus for compressing and encoding digitized moving picture signals
JP2820636B2 (en) Video compression device
US20090198757A1 (en) Method and device for avoiding rounding errors after performing an inverse discrete cosine transformation
JPH09187002A (en) Arithmetic unit and arithmetic method
JP2004120415A (en) Apparatus and method for converting moving image data stream
US6577773B1 (en) Method and arrangement for quantizing data
KR100210124B1 (en) Data deformatting circuit of picture encoder
US20070297517A1 (en) Entropy encoding and decoding apparatuses, and entropy encoding and decoding methods
JPH09247668A (en) Image signal coding method
KR100744442B1 (en) Improved Cascade Compression Method and System for Digital Video and Images

Legal Events

Date Code Title Description
A300 Application deemed to be withdrawn because no request for examination was validly filed

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20030304