JP2888292B2 - Two-dimensional inverse discrete cosine transform (IDCT) device - Google Patents

Two-dimensional inverse discrete cosine transform (IDCT) device

Info

Publication number
JP2888292B2
JP2888292B2 JP19814997A JP19814997A JP2888292B2 JP 2888292 B2 JP2888292 B2 JP 2888292B2 JP 19814997 A JP19814997 A JP 19814997A JP 19814997 A JP19814997 A JP 19814997A JP 2888292 B2 JP2888292 B2 JP 2888292B2
Authority
JP
Japan
Prior art keywords
idct
point
dimensional
dct
selector
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
Application number
JP19814997A
Other languages
Japanese (ja)
Other versions
JPH1141601A (en
Inventor
英理 村田
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.)
NEC Corp
Original Assignee
Nippon Electric Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nippon Electric Co Ltd filed Critical Nippon Electric Co Ltd
Priority to JP19814997A priority Critical patent/JP2888292B2/en
Publication of JPH1141601A publication Critical patent/JPH1141601A/en
Application granted granted Critical
Publication of JP2888292B2 publication Critical patent/JP2888292B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

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

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、動画像復号化で用
いる2次元逆離散コサイン変換(IDCT)装置に関す
る。
[0001] 1. Field of the Invention [0002] The present invention relates to a two-dimensional inverse discrete cosine transform (IDCT) device used in video decoding.

【0002】[0002]

【従来の技術】近年マイクロプロセッサにおいて、デー
タを並列処理することにより演算能力を向上させる分割
ALU方式を用いた演算命令が採用されてきている。分
割ALU方式命令とは例えば64ビットのALUを4つ
の16ビットALUとして利用し、4個のデータを並列
処理する命令である。8点×8点2次元IDCTを実現
する場合、図14に示すように、DCT係数を入力とし
てまずrow0からrow7で表す行方向の8点1次元
IDCTを計算し、その結果を入力としてcolumn
0からcolumn7で表す列方向の8点1次元IDC
Tを計算するRow−Column方式と呼ばれる方式
が一般的である。分割ALU命令を用いてRow−Co
lumn方式を計算する方式を図15に示す。連続した
4つのデータを読み込んで分割ALU命令を用いるた
め、DCT係数は予め転置しておく。行方向の演算とし
ては、R0でrow0からrow3の8点1次元IDC
Tを4つ同時に計算し、R1でrow4からrow7の
8点1次元IDCTを4つ同時に計算する。列方向の演
算はR0,R1の演算結果を転置した値を入力とし、C
0でcolumn0からcolumn3の8点1次元I
DCTを4つ同時に計算し、C1でcolumn4から
column7の8点1次元IDCTを4つ同時に計算
する。このように、分割ALU命令を用いて4並列に演
算を行なうと、8点1次元IDCTを4回計算すること
で8点×8点2次元IDCTを実現できる。
2. Description of the Related Art In recent years, microprocessors have adopted an operation instruction using a divided ALU system for improving the operation capability by processing data in parallel. The split ALU instruction is, for example, an instruction that utilizes a 64-bit ALU as four 16-bit ALUs and processes four pieces of data in parallel. In the case of implementing an 8-point × 8-point two-dimensional IDCT, as shown in FIG. 14, first, an 8-point one-dimensional IDCT in the row direction represented by row0 to row7 is calculated by using a DCT coefficient as an input, and the result is used as an input.
8-point one-dimensional IDC in the column direction represented by 0 to column7
A method called Row-Column method for calculating T is generally used. Row-Co using split ALU instruction
FIG. 15 shows a method of calculating the lum method. To read four consecutive data and use the divided ALU instruction, the DCT coefficients are transposed in advance. As the operation in the row direction, R0 is an 8-point one-dimensional IDC from row0 to row3.
Four T's are calculated at the same time, and four one-dimensional IDCTs from row 4 to row 7 are simultaneously calculated at R1. In the column direction operation, a value obtained by transposing the operation results of R0 and R1 is input and C
0, 8 points 1-dimensional I from column0 to column3
Four DCTs are simultaneously calculated, and four eight-point one-dimensional IDCTs from column4 to column7 are simultaneously calculated in C1. As described above, when the operation is performed in four parallels using the divided ALU instruction, an eight-point × eight-point two-dimensional IDCT can be realized by calculating the eight-point one-dimensional IDCT four times.

【0003】8点×8点2次元IDCT演算を更に高速
化するために入力が零である演算を省略する方式が提案
されている。その一例が1996年アイ・シー・アイ・
ピー第2巻153頁から156頁(ICIP '96,V
ol.2,pp.153−156)に記載されている。
図21に従来例の構成を示す。有効係数検出部2100
はDCT係数を入力とし、同時に処理する4つのDCT
係数に非零データが含まれているかどうかを調べる。I
DCT方式選択部2101は、有効係数検出部2100
の結果を入力として、省略せずに演算を行う完全IDC
T演算方式とDCT係数が零である演算を省略する部分
IDCT演算方式のどちらかを選択する。スイッチ21
02とセレクタ2104はIDCT方式選択部2101
の選択結果に応じて切り替える。IDCT演算部210
3はIDCT方式選択部2101で選択されたIDCT
演算方式を用いてIDCT演算を行う。IDCT演算結
果はセレクタ2104を通して出力する。
In order to further speed up the 8-point × 8-point two-dimensional IDCT operation, a method has been proposed in which the operation with zero input is omitted. An example is the 1996 ICI
Vol. 2, pp. 153 to 156 (ICIP '96, V
ol. 2, pp. 153-156).
FIG. 21 shows a configuration of a conventional example. Effective coefficient detector 2100
Are four DCTs that take DCT coefficients as input and process simultaneously
Checks if coefficients contain non-zero data. I
DCT scheme selection section 2101 includes effective coefficient detection section 2100
Complete IDC that performs the operation without omitting the result of
One of the T operation method and the partial IDCT operation method in which the operation in which the DCT coefficient is zero is omitted is selected. Switch 21
02 and the selector 2104 are provided by an IDCT method selection unit 2101.
Switch according to the selection result of. IDCT operation unit 210
3 is the IDCT selected by the IDCT scheme selection unit 2101
The IDCT operation is performed using the operation method. The IDCT operation result is output through the selector 2104.

【0004】IDCT演算部2103で用いる完全ID
CT演算方式としては図15に示すIDCT演算方式を
用いる。また、IDCT演算部2103で用いる部分I
DCT演算方式としては図17に示す部分IDCT演算
方式2を用いる。入力のDCT係数を、図5に示すよう
に並列に処理する4つのDCT係数毎にまとめてX0か
らX15で表すと、部分IDCT演算方式2は1700
のX0からX3に非零係数が存在し、X4からX15が
全て零である場合に用いるIDCT演算方式である。行
方向の入力データはX0からX3だけに存在するため、
R0ではX4からX7の演算を省略したIDCT演算を
行う。R1は入力データが全て零であるため演算を行わ
ない。行方向の演算結果は1701のX0′からX7′
のみ非零で、それ以外は全て零となる。xy方向の転置
を行うと、列方向のIDCTの入力データは1702の
Y0からY3、Y8からY11のみ非零で、それ以外は
全て零となる。C0ではY0からY3以外の演算を省略
したIDCT演算を行ない、C1ではY8からY11以
外の演算を省略したIDCT演算を行って8点×8点2
次元IDCT演算結果1703を得る。
[0004] Complete ID used in IDCT calculation section 2103
The IDCT operation method shown in FIG. 15 is used as the CT operation method. Also, the part I used in the IDCT operation unit 2103
The partial IDCT operation method 2 shown in FIG. 17 is used as the DCT operation method. When the input DCT coefficients are collectively represented by X0 to X15 for each of the four DCT coefficients processed in parallel as shown in FIG. 5, the partial IDCT operation method 2 is 1700
This is an IDCT calculation method used when a non-zero coefficient exists in X0 to X3 and all of X4 to X15 are zero. Since the input data in the row direction exists only in X0 to X3,
In R0, an IDCT operation in which the operations from X4 to X7 are omitted is performed. R1 does not perform any operation because the input data is all zero. The operation result in the row direction is X0 'to X7' of 1701.
Only non-zero and all others are zero. When the transposition in the xy direction is performed, the input data of the IDCT in the column direction is non-zero in only Y0 to Y3 and Y8 to Y11 in 1702, and all others are zero. In C0, an IDCT operation in which operations other than Y0 to Y3 are omitted is performed. In C1, an IDCT operation in which operations other than Y8 to Y11 are omitted is performed, and 8 points × 8 points 2
A dimension IDCT operation result 1703 is obtained.

【0005】IDCT演算部2103で用いる部分ID
CT演算方式としては図18に示す部分IDCT演算方
式3を用いても良い。部分IDCT演算方式3は180
0のX0からX7に非零係数が存在し、X8からX15
が全て零である場合に用いるIDCT演算方式である。
行方向の入力データはX0からX7だけに存在するた
め、R0では省略無しの8点1次元IDCT演算を行
う。R1は入力データが全て零であるため演算を行わな
い。行方向の演算結果は1801のX0′からX7′の
み非零でそれ以外は全て零となる。xy方向の転置を行
うと、列方向のIDCTの入力データは1802のY0
からY3、Y8からY11のみ非零でそれ以外は全て零
となる。C0ではY0からY3以外の演算を省略したI
DCT演算を行ない、C1ではY8からY11以外の演
算を省略したIDCT演算を行なって8点×8点2次元
IDCT演算結果1803を得る。
[0005] Partial ID used in IDCT calculation section 2103
As the CT operation method, the partial IDCT operation method 3 shown in FIG. 18 may be used. The partial IDCT operation method 3 is 180
There are non-zero coefficients at X0 to X7 of 0, and at X8 to X15
Is an IDCT operation method used when all are zero.
Since input data in the row direction exists only in X0 to X7, an 8-point one-dimensional IDCT operation without omission is performed in R0. R1 does not perform any operation because the input data is all zero. As for the operation result in the row direction, only X0 'to X7' of 1801 are non-zero, and all others are zero. When the transposition in the xy direction is performed, the input data of the IDCT in the column direction becomes Y0 of 1802.
To Y3 and Y8 to Y11 are non-zero, and all others are zero. In C0, I in which operations other than Y0 to Y3 are omitted
A DCT operation is performed, and an IDCT operation in which the operations other than Y8 to Y11 are omitted is performed in C1 to obtain an 8-point × 8-point two-dimensional IDCT operation result 1803.

【0006】IDCT方式選択部2101で行なう選択
の方法はIDCT演算部2103に用意した部分IDC
T演算方式に応じて決まる。例えば部分IDCT演算方
式として上記部分IDCT演算2を用いる場合にはX4
からX15が全て零であれば部分IDCT演算方式を選
択し、それ以外は完全IDCT演算方式を選択する。ま
た、部分IDCT演算方式として上記部分IDCT演算
方式3を用いる場合には、X8からX15が全て零であ
れば部分IDCT演算方式を選択し、それ以外は完全I
DCT演算方式を選択する。
The selection method performed by the IDCT method selection unit 2101 is based on the partial IDC prepared in the IDCT operation unit 2103.
Determined according to the T operation method. For example, when the above partial IDCT operation 2 is used as the partial IDCT operation method, X4
If X15 to X15 are all zero, the partial IDCT operation method is selected, and otherwise the complete IDCT operation method is selected. When the partial IDCT operation method 3 is used as the partial IDCT operation method, if X8 to X15 are all zero, the partial IDCT operation method is selected.
Select the DCT operation method.

【0007】[0007]

【発明が解決しようとする課題】用意する部分IDCT
演算方式が1つであれば、どのような部分IDCT演算
方式を用意するかによって演算量削減効果が異なる。例
えば上記部分IDCT演算方式2を用いた場合には符号
化ブロックの30%で部分IDCT演算方式を選択で
き、上記部分IDCT演算方式3を用いた場合には符号
化ブロックの60%で部分IDCT演算方式を選択でき
るる画像では部分IDCT演算方式3を用意した方が演
算量削減効果が高いが、どちらを用意しても部分IDC
T演算の選択率が30%の画像では演算の削減量が大き
い部分IDCT演算方式2を用意した方がよい。このよ
うに部分IDCT演算と完全IDCT演算の演算量削減
効果は部分IDCT演算の選択率と部分IDCT演算を
用いることで削減できる演算量のトレードオフであり、
部分IDCT演算の選択率はDCT係数における非零係
数の分布に応じて決まる。非零係数の分布は画像に応じ
て、また動き補償予測を用いずにフレーム内符号化を行
うIピクチャタイプ、時間的に前に入力した画像信号だ
けを参照する前方向予測符号化を行うPピクチャタイ
プ、前後両方向の画像信号を参照する双方向予測符号化
を行うBピクチャタイプの各ピクチャタイプに応じて、
またフレーム内符号化を行うINTRAブロックタイ
プ、フレーム間符号化を行うINTERブロックタイプ
の各マクロブロックタイプに応じて変化するので1つの
部分IDCT演算方式を用意しただけで、全てのフレー
ムで演算量削減効果をあげることは難しい。上記の問題
を考慮してDCT係数の分布がどのような場合にでも演
算量削減効果が得られるように複数の部分IDCT演算
方式を用意すると、IDCT演算方式選択に伴う演算量
が増加するという問題が生じる。
[Problems to be Solved by the Invention] Partial IDCT to be prepared
If there is one calculation method, the effect of reducing the calculation amount differs depending on what partial IDCT calculation method is prepared. For example, when the partial IDCT operation method 2 is used, the partial IDCT operation method can be selected in 30% of the encoded blocks, and when the partial IDCT operation method 3 is used, the partial IDCT operation can be selected in 60% of the encoded blocks. For an image in which a method can be selected, preparing the partial IDCT calculation method 3 is more effective in reducing the amount of calculation.
For an image in which the selectivity of the T operation is 30%, it is better to prepare the partial IDCT operation method 2 in which the amount of reduction in the operation is large. As described above, the effect of reducing the amount of operation of the partial IDCT operation and the complete IDCT operation is a trade-off between the selectivity of the partial IDCT operation and the operation amount that can be reduced by using the partial IDCT operation.
The selectivity of the partial IDCT operation depends on the distribution of non-zero coefficients in DCT coefficients. The distribution of non-zero coefficients depends on the image, and the I-picture type for performing intra-frame encoding without using motion compensation prediction, and the P-type for performing forward prediction encoding that refers only to an image signal input earlier in time. According to each picture type, a B picture type for performing bidirectional predictive encoding with reference to a picture type and a forward and backward image signal,
In addition, since it changes according to each macro block type of the INTRA block type for performing intra-frame coding and the INTER block type for performing inter-frame coding, only one partial IDCT calculation method is prepared, thereby reducing the calculation amount for all frames. It is difficult to get an effect. In consideration of the above problem, if a plurality of partial IDCT operation methods are prepared so that the effect of reducing the operation amount can be obtained regardless of the distribution of DCT coefficients, the operation amount due to the selection of the IDCT operation method increases. Occurs.

【0008】また、有効係数検出部2100での有効係
数検出にかかる演算量が大きいという問題点もある。そ
の理由は、有効係数検出部では全てのDCT係数を調べ
て非零係数が存在するかどうかの判定を行っているため
である。
There is also a problem that the amount of calculation required to detect the effective coefficient in the effective coefficient detection unit 2100 is large. The reason is that the effective coefficient detection unit examines all DCT coefficients and determines whether or not a non-zero coefficient exists.

【0009】本発明の第1の目的はDCT係数における
非零係数の分布がどのような場合でも演算量削減効果が
得られるように部分IDCT演算方式を複数用意した場
合、有効係数検出結果をもとに最も演算量を削減できる
IDCT演算方式を選択するIDCT方式選択部でかか
る演算量を削減することにある。
A first object of the present invention is to provide an effective coefficient detection result when a plurality of partial IDCT operation methods are prepared so that the effect of reducing the operation amount can be obtained regardless of the distribution of non-zero coefficients in DCT coefficients. In order to reduce the amount of calculation, the IDCT method selection unit that selects the IDCT calculation method that can reduce the amount of calculation the most.

【0010】本発明の第2の目的は有効係数検出にかか
る演算量を削減することにある。
A second object of the present invention is to reduce the amount of calculation required for detecting an effective coefficient.

【0011】[0011]

【課題を解決するための手段】本発明の8点×8点2次
元IDCT装置は、複数のIDCT方式選択部を持ち、
それをピクチャタイプまたはマクロブロックタイプに応
じて切り替えるスイッチ及びセレクタを有する。IDC
T方式選択部はピクチャタイプまたはマクロブロックタ
イプ毎にIDCT演算部で用意した複数のIDCT演算
方式の中から、DCT係数の特徴に合わせて予め幾つか
のIDCT演算方式の選択候補を選んでおき、有効係数
検出結果をもとに、選んでおいたIDCT演算方式の中
から最も演算量が少なくなるIDCT演算方式を選択す
る。
An eight-point by eight-point two-dimensional IDCT apparatus according to the present invention has a plurality of IDCT scheme selection units.
It has a switch and a selector for switching it according to the picture type or macroblock type. IDC
The T-method selector selects a selection candidate of several IDCT calculation methods in advance according to the characteristic of the DCT coefficient from a plurality of IDCT calculation methods prepared by the IDCT calculation unit for each picture type or macroblock type. Based on the effective coefficient detection result, an IDCT operation method that requires the least amount of operation is selected from the selected IDCT operation methods.

【0012】また、EOB符号までのデータを非零デー
タと仮定して有効係数検出を行うことも特徴である。
Another feature is that effective coefficient detection is performed on the assumption that data up to the EOB code is non-zero data.

【0013】本発明によれば、一つの命令で同一の処理
を複数のデータに対して実行するプロセッサを用いて8
点1次元逆離散コサイン変換(IDCT)を4並列に実
行する8点×8点2次元IDCT装置において、同時に
処理する4つのDCT係数が非零であるかどうかを判定
する有効係数検出部と、有効係数検出結果に基づいて最
も演算量の少ないIDCT演算方式の選択を行う第1,
第2,第3のIDCT方式選択部と、該IDCT方式選
択部をピクチャタイプにより切り替える第1のスイッチ
および第1のセレクタと、複数のIDCT演算方式を持
つIDCT演算部と、前記IDCT方式選択部で選択さ
れたIDCT演算方式に応じて前記IDCT演算部で用
いるIDCT演算方式を切り替える第2のスイッチおよ
び第2のセレクタを持ち、前記IDCT演算部には、フ
レーム内符号化を行うIタイプ、前方向予測符号化を行
うPタイプ、双方向予測符号化を行うBタイプの各ピク
チャタイプにおけるDCT係数の分布の特徴に応じて予
め幾つかのIDCT演算方式が用意されており、ピクチ
ャタイプに応じて前記第1のスイッチおよび前記第1の
セレクタを切り替え、ピクチャタイプがIピクチャなら
ば前記第1のIDCT方式選択部、Pピクチャならば前
記第2のIDCT方式選択部、Bピクチャならば前記第
3のIDCT方式選択部において前記有効係数検出結果
に応じて最も演算量を削減できる前記IDCT演算方式
を選択し、該IDCT演算方式に応じて前記第2のスイ
ッチおよび前記第2のセレクタを切り替えて前記IDC
T方式選択部で選択したIDCT演算方式によりIDC
T演算を行うことを特徴とする8点×8点2次元IDC
T装置が得られる。
According to the present invention, a processor that executes the same processing on a plurality of data with one instruction is used.
An 8 × 8-point two-dimensional IDCT apparatus that performs point-one-dimensional inverse discrete cosine transform (IDCT) in four parallels; an effective coefficient detection unit that determines whether four DCT coefficients to be processed simultaneously are non-zero; Based on the effective coefficient detection result, the first and the first to select the IDCT operation method with the least operation amount
A second and a third IDCT scheme selector, a first switch and a first selector for switching the IDCT scheme selector according to a picture type, an IDCT calculator having a plurality of IDCT schemes, and the IDCT scheme selector Has a second switch and a second selector for switching an IDCT operation method used in the IDCT operation unit according to the IDCT operation method selected in the above. The IDCT operation unit includes an I type for performing intra-frame encoding, Several IDCT operation methods are prepared in advance according to the characteristics of the distribution of the DCT coefficients in each of the P type for performing directional prediction encoding and the B type for performing bidirectional prediction encoding. Switching the first switch and the first selector, and if the picture type is an I picture, the first ID The T method selector, the second IDCT method selector for a P picture, and the third IDCT method selector for a B picture use the IDCT operation method that can reduce the amount of operation most in accordance with the effective coefficient detection result. And switching the second switch and the second selector in accordance with the IDCT operation method to select the IDC
IDC by the IDCT operation method selected by the T method selection unit
8 points × 8 points 2D IDC characterized by performing T operation
A T device is obtained.

【0014】また本発明によれば、一つの命令で同一の
処理を複数のデータに対して実行するプロセッサを用い
て8点1次元逆離散コサイン変換(IDCT)を4並列
に実行する8点×8点2次元IDCT装置において、同
時に処理する4つのDCT係数が非零であるかどうかを
判定する有効係数検出部と、有効係数検出結果に基づい
て最も演算量の少ないIDCT演算方式の選択を行う第
1,第2のIDCT方式選択部と、該IDCT方式選択
部をマクロブロックタイプにより切り替える第1のスイ
ッチおよび第1のセレクタと、複数のIDCT演算方式
を持つIDCT演算部と、前記IDCT方式選択部で選
択されたIDCT演算方式に応じて前記IDCT演算部
で用いるIDCT演算方式を切り替える第2のスイッチ
および第2のセレクタを持ち、前記IDCT演算部に
は、フレーム内符号化を行うINTRAタイプ、フレー
ム間符号化を行うINTERタイプの各マクロブロック
タイプにおけるDCT係数の分布の特徴に応じて予め幾
つかのIDCT演算方式が用意されており、マクロブロ
ックタイプに応じて前記第1のスイッチおよび前記第1
のセレクタを切り替え、マクロブロックタイプがINT
RAならば前記第1のIDCT方式選択部、INTER
ならば前記第2のIDCT方式選択部において前記有効
係数検出結果に応じて最も演算量を削減できる前記ID
CT演算方式を選択し、該IDCT演算方式に応じて前
記第2のスイッチおよび前記第2のセレクタを切り替え
て前記IDCT方式選択部で選択したIDCT演算方式
によりIDCT演算を行うことを特徴とする8点×8点
2次元IDCT装置が得られる。
According to the present invention, an eight-point one-dimensional inverse discrete cosine transform (IDCT) is executed in four parallel by using a processor that executes the same processing on a plurality of data with one instruction. In an eight-point two-dimensional IDCT apparatus, an effective coefficient detection unit that determines whether or not four DCT coefficients to be simultaneously processed are non-zero, and an IDCT operation method that requires the least amount of operation is selected based on the effective coefficient detection result. A first and a second IDCT scheme selection section, a first switch and a first selector for switching the IDCT scheme selection section according to macroblock type, an IDCT computation section having a plurality of IDCT computation schemes, and an IDCT scheme selection section A second switch and a second selector for switching an IDCT operation method used in the IDCT operation unit according to the IDCT operation method selected by the unit. The IDCT operation unit includes several IDCT operation methods in advance according to the characteristics of the distribution of DCT coefficients in each of the macro block types of the INTRA type for performing intra-frame coding and the INTER type for performing inter-frame coding. Are prepared, and the first switch and the first switch are set according to a macroblock type.
Switch the macro block type to INT
If RA, the first IDCT scheme selector, INTER
Then, in the second IDCT scheme selection unit, the ID that can reduce the amount of calculation most according to the effective coefficient detection result
A CT operation method is selected, the second switch and the second selector are switched according to the IDCT operation method, and the IDCT operation is performed by the IDCT operation method selected by the IDCT method selection unit. A point × 8 point two-dimensional IDCT device is obtained.

【0015】IDCT方式選択部はIDCT演算部で用
意した複数のIDCT演算方式の中から各ピクチャタイ
プまたはマクロブロックタイプに応じて予めIDCT演
算方式の候補を限定している。例えばIDCT演算方式
として完全IDCT演算方式と、図17の1700でX
0からX3で示す低周波数領域以外が全て零である場合
の部分IDCT演算方式と、図19の1900で塗りつ
ぶして示すx=y=0のDC領域にあるDC成分以外が
全て零である場合の部分IDCT演算方式と、DC領域
以外の領域(AC領域)に一つだけ非零係数が存在する
場合の部分IDCT演算方式の4つのIDCT演算方式
を用意した場合、IピクチャまたはINTRAマクロブ
ロックでは、AC領域に一つだけ非零係数が存在するブ
ロックが殆ど無いという特徴があることから、AC領域
に一つだけ非零係数が存在する場合の部分IDCT演算
方式をIDCT演算方式の選択候補から外すことができ
る。また、高速化を第一に考えて画質の劣化が他のフレ
ームに伝搬しないBピクチャの画質劣化を許す場合に
は、BピクチャのIDCT方式選択部では完全IDCT
演算方式をIDCT演算方式の選択候補から外すことも
できる。このように、ピクチャタイプまたはマクロブロ
ックタイプ毎にIDCT方式選択部を持つことによって
各ピクチャの非零係数の分布の特徴に合わせて効率良く
IDCT演算方式の選択を行うことができ、効果的に演
算量を削減できる。
[0015] The IDCT scheme selection unit preliminarily limits the candidates of the IDCT scheme according to each picture type or macroblock type from among a plurality of IDCT schemes prepared by the IDCT computation unit. For example, a complete IDCT operation method is used as the IDCT operation method, and X
A partial IDCT operation method in which all the components other than the low frequency region represented by 0 to X3 are zero, and a case in which all the DC components other than the DC component in the DC region of x = y = 0 indicated by 1900 in FIG. 19 are zero. In the case of preparing four IDCT operation methods, a partial IDCT operation method and a partial IDCT operation method in which only one non-zero coefficient exists in an area other than the DC area (AC area), in an I picture or INTRA macro block, Since there is almost no block in which only one non-zero coefficient exists in the AC area, the partial IDCT operation method when only one non-zero coefficient exists in the AC area is excluded from the selection candidates of the IDCT operation method. be able to. Also, in consideration of high speed, if the image quality degradation allows image quality degradation of a B picture that does not propagate to other frames, the IDCT scheme selection unit for the B picture uses a complete IDCT method.
The operation method can be excluded from the selection candidates of the IDCT operation method. As described above, by having the IDCT scheme selection unit for each picture type or macroblock type, it is possible to efficiently select the IDCT calculation scheme in accordance with the characteristics of the distribution of the non-zero coefficients of each picture, and to effectively perform the computation. The amount can be reduced.

【0016】また、EOB符号までのデータを全て非零
データと仮定すると、係数毎に零であるかどうかを判定
する必要がなくなるため有効係数検出にかかる演算量を
削減できる。
Further, assuming that all data up to the EOB code is non-zero data, it is not necessary to determine whether or not each coefficient is zero, so that it is possible to reduce the amount of calculation for detecting an effective coefficient.

【0017】[0017]

【発明の実施の形態】BEST MODE FOR CARRYING OUT THE INVENTION

[構成の説明]次に、第1の発明の実施の形態について
図1を参照して詳細に説明する。有効係数検出部100
はDCT係数を入力として並列に処理する4つの係数が
全て零であるかどうかを調べてブロック単位に有効係数
を検出する。スイッチ101とセレクタ105はピクチ
ャタイプに応じて切り替える。有効係数検出結果は、ピ
クチャタイプがIピクチャであれば第1のIDCT方式
選択部102に、Pピクチャであれば第2のIDCT方
式選択部103に、Bピクチャであれば第3のIDCT
方式選択部104に入力される。第1のIDCT方式選
択部102ではIDCT演算部107に用意した複数の
IDCT演算方式の中から予めIピクチャにおけるDC
T係数の分布の特徴を考慮してIDCT演算方式の候補
を限定しておき、有効係数検出結果をもとに候補の中か
ら最も演算量が少なくなるIDCT演算方式を選択す
る。第2のIDCT方式選択部103ではIDCT演算
部107に用意した複数のIDCT演算方式の中から予
めPピクチャにおけるDCT係数の分布の特徴を考慮し
てIDCT演算方式の候補を限定しておき、有効係数検
出結果をもとに候補の中から最も演算量が少なくなるI
DCT演算方式を選択する。第3のIDCT方式選択部
104ではIDCT演算部107に用意した複数のID
CT演算方式の中から予めBピクチャにおけるDCT係
数の分布の特徴を考慮してIDCT演算方式の候補を限
定しておき、有効係数検出結果をもとに候補の中から最
も演算量が少なくなるIDCT演算方式を選択する。I
DCT演算部107には全ての係数に対して省略するこ
となくIDCT演算を行う完全IDCT演算方式と、零
係数を考慮して演算を省略する複数の部分IDCT演算
方式を用意しておく。スイッチ106、セレクタ108
はセレクタ105を通して送られるIDCT方式選択部
の選択結果をもとに切り替える。IDCT演算部107
ではIDCT方式選択部で選択されたIDCT演算方式
を用いてIDCT演算を行いセレクタ108を通してそ
の演算結果を出力する。
[Explanation of Configuration] Next, an embodiment of the first invention will be described in detail with reference to FIG. Effective coefficient detector 100
Detects whether all four coefficients processed in parallel with DCT coefficients as input are zero and detects effective coefficients in block units. The switch 101 and the selector 105 switch according to the picture type. The effective coefficient detection result is transmitted to the first IDCT scheme selecting section 102 if the picture type is an I picture, to the second IDCT scheme selecting section 103 if the picture type is a P picture, or to the third IDCT scheme if the picture type is a B picture.
It is input to the method selection unit 104. The first IDCT scheme selection unit 102 selects a DC ID for an I-picture from a plurality of IDCT calculation schemes prepared in the IDCT calculation unit 107 in advance.
The candidates of the IDCT operation method are limited in consideration of the characteristics of the distribution of the T coefficient, and the IDCT operation method that minimizes the operation amount is selected from the candidates based on the effective coefficient detection result. The second IDCT scheme selection unit 103 preliminarily considers the characteristics of the distribution of DCT coefficients in a P picture from among a plurality of IDCT schemes prepared in the IDCT calculation unit 107, and limits IDCT calculation scheme candidates. I that minimizes the amount of calculation among the candidates based on the coefficient detection result
Select the DCT operation method. In the third IDCT scheme selection unit 104, a plurality of IDs prepared in the IDCT
Among the CT operation methods, IDCT operation method candidates are limited in advance in consideration of the distribution characteristic of DCT coefficients in a B picture, and the IDCT operation amount is the smallest among the candidates based on the effective coefficient detection result. Select a calculation method. I
The DCT operation unit 107 prepares a complete IDCT operation method for performing an IDCT operation without omitting all coefficients, and a plurality of partial IDCT operation methods for omitting an operation in consideration of a zero coefficient. Switch 106, selector 108
Switch based on the selection result of the IDCT scheme selection unit sent through the selector 105. IDCT operation unit 107
In the above, the IDCT operation is performed using the IDCT operation method selected by the IDCT method selection unit, and the operation result is output through the selector 108.

【0018】次に、第2の発明の実施の形態について図
2を参照して詳細に説明する。有効係数検出部200は
DCT係数を入力として並列に処理する4つの係数が全
て零であるかどうかを調べてブロック単位に有効係数を
検出する。スイッチ201とセレクタ204はマクロブ
ロックタイプに応じて切り替える。有効係数検出結果
は、マクロブロックタイプがINTRAブロックであれ
ば第1のIDCT方式選択部202に、INTERブロ
ックであれば第2のIDCT方式選択部203に出力す
る。第1のIDCT方式選択部202ではIDCT演算
部206に用意した複数のIDCT演算方式の中から予
めINTRAブロックにおけるDCT係数の分布の特徴
を考慮してIDCT演算方式の候補を限定しておき、有
効係数検出結果をもとに候補の中から最も演算量が少な
くなるIDCT演算方式を選択する。第2のIDCT方
式選択部203ではIDCT演算部206に用意した複
数のIDCT演算方式の中から予めINTERブロック
におけるDCT係数の分布の特徴を考慮してIDCT演
算方式の候補を限定しておき、有効係数検出結果をもと
に候補の中から最も演算量が少なくなるIDCT演算方
式を選択する。IDCT演算部206には、全ての係数
に対して省略することなくIDCT演算を行う完全ID
CT演算方式と、零係数を考慮して演算を省略する複数
の部分IDCT演算方式を用意しておく。スイッチ20
5、セレクタ207はセレクタ204を通して送られる
IDCT方式選択部の選択結果をもとに切り替える。I
DCT演算部206ではIDCT方式選択部で選択され
たIDCT演算方式を用いてIDCT演算を行いセレク
タ207を通してその演算結果を出力する。
Next, an embodiment of the second invention will be described in detail with reference to FIG. The effective coefficient detection unit 200 detects whether all four coefficients processed in parallel with the DCT coefficient as input are zero, and detects an effective coefficient for each block. The switch 201 and the selector 204 switch according to the macroblock type. The effective coefficient detection result is output to the first IDCT scheme selecting section 202 if the macroblock type is an INTRA block, and to the second IDCT scheme selecting section 203 if the macroblock type is an INTER block. In the first IDCT scheme selection section 202, IDCT computation scheme candidates are limited in advance by considering the characteristics of the distribution of DCT coefficients in the INTRA block from among a plurality of IDCT computation schemes prepared in the IDCT computation section 206. Based on the coefficient detection result, an IDCT operation method that minimizes the operation amount is selected from the candidates. The second IDCT scheme selection section 203 limits the IDCT calculation scheme candidates in advance from among the plurality of IDCT calculation schemes prepared in the IDCT calculation section 206 in consideration of the distribution characteristic of DCT coefficients in the INTER block. Based on the coefficient detection result, an IDCT operation method that minimizes the operation amount is selected from the candidates. The IDCT calculation unit 206 includes a complete ID for performing IDCT calculation without omitting all coefficients.
There are prepared a CT operation method and a plurality of partial IDCT operation methods in which the operation is omitted in consideration of the zero coefficient. Switch 20
5. The selector 207 switches based on the selection result of the IDCT scheme selection unit sent through the selector 204. I
The DCT operation unit 206 performs the IDCT operation using the IDCT operation method selected by the IDCT method selection unit, and outputs the operation result through the selector 207.

【0019】次に第3の発明の実施の形態を図3を参照
して詳細に説明する。有効係数検出部300は、エンド
・オブ・ブロック(EOB)符号の位置情報を入力と
し、EOB符号が示す位置までのDCT係数を全て非零
データとみなして有効係数を検出する。スイッチ30
1、セレクタ305、第1のIDCT方式選択部30
2、第2のIDCT方式選択部303、第3のIDCT
方式選択部304、スイッチ306、セレクタ308、
IDCT演算部307の構成は第1の発明の実施の形態
と同様である。
Next, an embodiment of the third invention will be described in detail with reference to FIG. The effective coefficient detection unit 300 receives position information of an end-of-block (EOB) code, and detects an effective coefficient by regarding all DCT coefficients up to the position indicated by the EOB code as non-zero data. Switch 30
1, selector 305, first IDCT scheme selection unit 30
2, second IDCT scheme selection unit 303, third IDCT
A method selection unit 304, a switch 306, a selector 308,
The configuration of the IDCT operation unit 307 is the same as that of the first embodiment.

【0020】次に第4の発明の実施の形態を図4を参照
して詳細に説明する。有効係数検出部400は、エンド
・オブ・ブロック(EOB)符号の位置情報を入力と
し、EOB符号が示す位置までのDCT係数を全て非零
データとみなし、有効係数を検出する。スイッチ40
1、セレクタ404、第1のIDCT方式選択部40
2、第2のIDCT方式選択部403、スイッチ40
5、セレクタ407、IDCT演算部406の構成は第
2の発明の実施の形態と同様である。
Next, an embodiment of the fourth invention will be described in detail with reference to FIG. The effective coefficient detection unit 400 receives position information of an end-of-block (EOB) code as input, regards all DCT coefficients up to the position indicated by the EOB code as non-zero data, and detects an effective coefficient. Switch 40
1, selector 404, first IDCT scheme selection unit 40
2. Second IDCT scheme selection unit 403, switch 40
5, the configuration of the selector 407 and the IDCT operation unit 406 are the same as those of the second embodiment.

【0021】次に第5の発明の実施の形態を図22を参
照して詳細に説明する。上記第1の発明における8点×
8点2次元IDCT装置はマイクロプロセッサのプログ
ラムとして実現できる。マイクロプロセッサのプログラ
ムとして実現できる。マイクロプロセッサ2201は一
つの命令で複数の演算を処理する分割ALU演算を備え
たマイクロプロセッサである。記録媒体2203は第1
の発明における8点×8点2次元IDCT装置で行う処
理を実現するプログラムを記録している。この記録媒体
2203は磁気ディスク、半導体メモリその他の記録媒
体であってもよい。8点×8点2次元IDCTプログラ
ムは記録媒体2203からマイクロプロセッサ2201
に読み込まれ、マイクロプロセッサ2201の動作を制
御する。マイクロプロセッサ2201は入力装置220
0からピクチャタイプ及びDCT係数を得る。DCT係
数は一旦メモリ2202に書き込まれる。マイクロプロ
セッサ2201は第1の実施の形態における8点×8点
2次元IDCT装置と同一の処理を実行し、演算結果を
出力装置2204に出力する。
Next, an embodiment of the fifth invention will be described in detail with reference to FIG. 8 points in the first invention ×
The eight-point two-dimensional IDCT device can be realized as a microprocessor program. It can be realized as a microprocessor program. The microprocessor 2201 is a microprocessor having a divided ALU operation for processing a plurality of operations with one instruction. The recording medium 2203 is the first
A program for realizing the processing performed by the 8 point × 8 point two-dimensional IDCT apparatus according to the invention of the present application is recorded. This recording medium 2203 may be a magnetic disk, a semiconductor memory, or another recording medium. The 8-point × 8-point two-dimensional IDCT program is transferred from the recording medium 2203 to the microprocessor 2201.
To control the operation of the microprocessor 2201. The microprocessor 2201 is an input device 220
Get picture type and DCT coefficient from 0. The DCT coefficient is temporarily written to the memory 2202. The microprocessor 2201 executes the same processing as the 8-point × 8-point two-dimensional IDCT device according to the first embodiment, and outputs the calculation result to the output device 2204.

【0022】次に第6の発明の実施の形態を図23を参
照して詳細に説明する。上記第2の発明における8点×
8点2次元IDCT装置はマイクロプロセッサのプログ
ラムとして実現できる。マイクロプロセッサ2301は
一つの命令で複数の演算を処理する分割ALU演算を備
えたマイクロプロセッサである。記録媒体2203は第
2の発明における8点×8点2次元IDCT装置で行う
処理を実現するプログラムを記録している。この記録媒
体2303は磁気ディスク、半導体メモリその他の記録
媒体であってもよい。8点×8点2次元IDCTプログ
ラムは記録媒体2303からマイクロプロセッサ230
1に読み込まれ、マイクロプロセッサ2301の動作を
制御する。マイクロプロセッサ2301は入力装置23
00からマクロブロックタイプ及びDCT係数を得る。
DCT係数は一旦メモリ2302に書き込まれる。マイ
クロプロセッサ2301は第2の実施の形態における8
点×8点2次元IDCT装置と同一の処理を実行し、演
算結果を出力装置2304に出力する。
Next, an embodiment of the sixth invention will be described in detail with reference to FIG. 8 points in the second invention ×
The eight-point two-dimensional IDCT device can be realized as a microprocessor program. The microprocessor 2301 is a microprocessor having a divided ALU operation for processing a plurality of operations with one instruction. The recording medium 2203 stores a program for realizing the processing performed by the 8-point × 8-point two-dimensional IDCT apparatus according to the second invention. This recording medium 2303 may be a magnetic disk, a semiconductor memory, or another recording medium. The 8-point × 8-point two-dimensional IDCT program is executed by the microprocessor 230
1 to control the operation of the microprocessor 2301. The microprocessor 2301 is the input device 23
From 00, the macroblock type and DCT coefficients are obtained.
The DCT coefficient is temporarily written to the memory 2302. The microprocessor 2301 is the same as the microprocessor 230 in the second embodiment.
The same processing as that of the point × 8 point two-dimensional IDCT device is executed, and the calculation result is output to the output device 2304.

【0023】次に第7の発明の実施の形態を図24を参
照して詳細に説明する。上記第3の発明における8点×
8点2次元IDCT装置はマイクロプロセッサのプログ
ラムとして実現できる。マイクロプロセッサ2401は
一つの命令で複数の演算を処理する分割ALU演算を備
えたマイクロプロセッサである。記録媒体2403は第
3の発明における8点×8点2次元IDCT装置で行う
処理を実現するプログラムを記録している。この記録媒
体2403は磁気ディスク、半導体メモリその他の記録
媒体であってもよい。8点×8点2次元IDCTプログ
ラムは記録媒体2403からマイクロプロセッサ240
1に読み込まれ、マイクロプロセッサ2401の動作を
制御する。マイクロプロセッサ2401は入力装置24
00からピクチャタイプ、EOBアドレス及びDCT係
数を得る。DCT係数は一旦メモリ2402に書き込ま
れる。マイクロプロセッサ2401は第3の実施の形態
における8点×8点2次元IDCT装置と同一の処理を
実行し、演算結果を出力装置2404に出力する。
Next, an embodiment of the seventh invention will be described in detail with reference to FIG. 8 points in the third invention ×
The eight-point two-dimensional IDCT device can be realized as a microprocessor program. The microprocessor 2401 is a microprocessor having a divided ALU operation for processing a plurality of operations with one instruction. The recording medium 2403 records a program for realizing the processing performed by the 8-point × 8-point two-dimensional IDCT apparatus according to the third invention. This recording medium 2403 may be a magnetic disk, a semiconductor memory, or another recording medium. The 8-point × 8-point two-dimensional IDCT program is transferred from the recording medium 2403 to the microprocessor 240
1 to control the operation of the microprocessor 2401. The microprocessor 2401 is the input device 24
From 00, the picture type, EOB address and DCT coefficient are obtained. The DCT coefficient is temporarily written to the memory 2402. The microprocessor 2401 executes the same processing as the 8-point × 8-point two-dimensional IDCT apparatus according to the third embodiment, and outputs the calculation result to the output device 2404.

【0024】次に第8の発明の実施の形態を図25を参
照して詳細に説明する。上記第4の発明における8点×
8点2次元IDCT装置はマイクロプロセッサのプログ
ラムとして実現できる。マイクロプロセッサ2501は
一つの命令で複数の演算を処理する分割ALU演算を備
えたマイクロプロセッサである。記録媒体2503は第
4の発明における8点×8点2次元IDCT装置で行う
処理を実現するプログラムを記録している。この記録媒
体2503は磁気ディスク、半導体メモリその他の記録
媒体であってもよい。8点×8点2次元IDCTプログ
ラムは記録媒体2503からマイクロプロセッサ250
1に読み込まれ、マイクロプロセッサ2501の動作を
制御する。マイクロプロセッサ2501は入力装置25
00からマクロブロックタイプ、EOBアドレス及びD
CT係数を得る。DCT係数は一旦メモリ2502に書
き込まれる。マイクロプロセッサ2501は第4の実施
の形態における8点×8点2次元IDCT装置と同一の
処理を実行し、演算結果を出力装置2504に出力す
る。
Next, an embodiment of the eighth invention will be described in detail with reference to FIG. 8 points in the fourth invention ×
The eight-point two-dimensional IDCT device can be realized as a microprocessor program. The microprocessor 2501 is a microprocessor having a divided ALU operation for processing a plurality of operations with one instruction. The recording medium 2503 records a program for realizing the processing performed by the 8-point × 8-point two-dimensional IDCT apparatus according to the fourth invention. This recording medium 2503 may be a magnetic disk, a semiconductor memory, or another recording medium. The 8-point × 8-point two-dimensional IDCT program is transferred from the recording medium 2503 to the microprocessor 250.
1 to control the operation of the microprocessor 2501. The microprocessor 2501 is the input device 25
00 to macroblock type, EOB address and D
Obtain CT coefficients. The DCT coefficient is once written into the memory 2502. The microprocessor 2501 executes the same processing as the 8-point × 8-point two-dimensional IDCT device according to the fourth embodiment, and outputs the operation result to the output device 2504.

【0025】[動作の説明]次に、第1の発明の動作に
ついて詳細に説明する。有効係数検出部100では、D
CT係数を入力として並列に処理する4つの係数が全て
零であるかどうかを調べてブロック単位に有効係数を検
出する。入力のDCT係数は図5に示すように並列に処
理する4つの係数毎にまとめてX0からX15を表す。
図6を用いて有効係数検出部100の動作を説明する。
まずステップ600で有効係数検出結果を格納するフラ
グ(fbit)とインデックスiを初期化する。次にス
テップ601でXiが零かどうかを調べる。Xiが零で
ない場合はステップ602でfbitの最下位ビットか
らiビットめを1にしてステップ603に進む。Xiが
零であればなにもせずにステップ603へ進む。ステッ
プ603ではi=15かどうか調べる。i=15でなけ
ればステップ604でiに1加算してステップ601に
戻る。i=15になるまでステップ601から604を
繰り返す。ステップ603でi=15になればfbit
を有効係数検出結果として出力し、有効係数検出を終了
する。有効係数検出結果を表すfbitは図7に示すよ
うにX0からX15までの状態を、非零係数があれば有
効(1)、零であれば無効(0)として表している。例
えばfbitが16進数で0001であればX0以外は
は全て零ということになる。
[Description of Operation] Next, the operation of the first invention will be described in detail. In the effective coefficient detection unit 100, D
It is checked whether all four coefficients processed in parallel with the CT coefficient as input are zero, and an effective coefficient is detected for each block. As shown in FIG. 5, the input DCT coefficients collectively represent X0 to X15 for every four coefficients processed in parallel.
The operation of the effective coefficient detection unit 100 will be described with reference to FIG.
First, in step 600, a flag (fbit) for storing a valid coefficient detection result and an index i are initialized. Next, at step 601, it is checked whether Xi is zero. If Xi is not zero, the i-th bit from the least significant bit of fbit is set to 1 in step 602, and the process proceeds to step 603. If Xi is zero, the process proceeds to step 603 without doing anything. In step 603, it is checked whether i = 15. If it is not i = 15, 1 is added to i in step 604, and the process returns to step 601. Steps 601 to 604 are repeated until i = 15. If i = 15 in step 603, fbit
Is output as a valid coefficient detection result, and the valid coefficient detection ends. As shown in FIG. 7, fbit representing the effective coefficient detection result indicates the state from X0 to X15 as valid (1) if there is a non-zero coefficient, and invalid (0) if it is zero. For example, if fbit is 0001 in hexadecimal, all bits except for X0 are zero.

【0026】スイッチ101とセレクタ105の切り替
えはフレーム単位に行ない、ピクチャタイプに応じて切
り替えた後、次のピクチャまで固定しておく。有効係数
検出結果は、ピクチャタイプがIピクチャであれば第1
のIDCT方式選択部102に、ピクチャタイプがPピ
クチャであれば第2のIDCT方式選択部103に、ピ
クチャタイプがBピクチャであれば第3のIDCT方式
選択部104に出力される。
The switching between the switch 101 and the selector 105 is performed in frame units, and after switching according to the picture type, it is fixed until the next picture. The effective coefficient detection result is the first if the picture type is an I picture.
Is output to the second IDCT scheme selection section 103 if the picture type is a P picture, and to the third IDCT scheme selection section 104 if the picture type is a B picture.

【0027】次に第1,第2,第3のIDCT方式選択
部の動作を図8を用いて説明する。IDCT演算部10
7に用意したN個のIDCT演算方式の中から選択候補
として予めn個(1N)のIDCT演算方式を選
択したと仮定する。まずステップ800でカウンタjを
初期化する。ステップ801ではjとnを比較し、j<
nならばステップ802へ進み、そうでなければステッ
プ804でj(=n)番目のIDCT演算方式を選択す
る。ステップ802では入力の有効係数検出結果がn番
目の部分IDCT演算を行う条件を満たしているかどう
か調べる、満たしている場合はステップ804でj番目
のIDCT演算方式を選択する。満たしていない場合は
ステップ803でjに1加算し、ステップ801へ戻
る。
Next, the operation of the first, second, and third IDCT scheme selection units will be described with reference to FIG. IDCT operation unit 10
It is assumed that n (1 < n < N) IDCT operation methods have been previously selected as selection candidates from the N IDCT operation methods prepared in No. 7. First, at step 800, a counter j is initialized. In step 801, j and n are compared, and j <
If n, the process proceeds to step 802; otherwise, at step 804, the j (= n) -th IDCT operation method is selected. In step 802, it is checked whether the input effective coefficient detection result satisfies the condition for performing the n-th partial IDCT operation. If so, the j-th IDCT operation method is selected in step 804. If not, step 803 adds 1 to j, and the process returns to step 801.

【0028】スイッチ106、セレクタ108はIDC
T方式選択部で選択されたIDCT演算方式に応じて切
り替える。IDCT演算部107ではIDCT方式選択
部で選択されたIDCT演算方式を用いてIDCT演算
を行い、セレクタ108を通して演算結果を出力する。
The switch 106 and the selector 108 are IDC
Switching is performed according to the IDCT operation method selected by the T method selection unit. The IDCT operation unit 107 performs the IDCT operation using the IDCT operation method selected by the IDCT method selection unit, and outputs the operation result through the selector 108.

【0029】次に第2の発明の動作を説明する。有効係
数検出部200の動作は第1の発明と同様である。スイ
ッチ201およびセレクタ204は、マクロブロックタ
イプに応じてマクロブロック単位に切り替える。有効係
数検出結果fbitはマクロブロックタイプがINTR
Aブロックであれば第1のIDCT方式選択部202に
出力され、マクロブロックタイプがINTERブロック
であれば第2のIDCT方式選択部203に出力され
る。第1のIDCT方式選択部202、第2のIDCT
方式選択部203、スイッチ205、セレクタ207、
IDCT演算部206の動作は第1の発明と同様であ
る。
Next, the operation of the second invention will be described. The operation of the effective coefficient detector 200 is the same as that of the first invention. The switch 201 and the selector 204 switch on a macroblock basis according to the macroblock type. The macroblock type of the effective coefficient detection result fbit is INTR.
If it is an A block, it is output to the first IDCT scheme selection unit 202, and if the macroblock type is an INTER block, it is output to the second IDCT scheme selection unit 203. First IDCT scheme selecting section 202, second IDCT
A method selection unit 203, a switch 205, a selector 207,
The operation of the IDCT operation unit 206 is the same as that of the first invention.

【0030】次に第3の発明の動作を説明する。H.2
61、MPEG、JPEG等の画像符号化では有意なD
CT係数の最後にエンド・オブ・ブロック(EOB)符
号が付けられそれ以降のデータは省略される。第何番目
のデータの後にEOB符号があるかという情報をEOB
アドレスと呼ぶことにする。有効係数検出部300で
は、EOBアドレスを入力として有効係数検出を行な
う。EOBアドレスが示す位置までの係数は全て非零デ
ータと仮定する。DCT係数が図9(b)に示すように
ジグザグスキャンされて送られてきた場合、非零データ
が図9(a)に斜線で示した領域にしか存在しない場合
でも、EOBアドレスが9である場合は、図9(b)に
斜線で示すEOBアドレスが示す位置までのデータを全
て非零係数と仮定する。4つ並列に計算を行なうことを
考えると、図9(c)に示すX0からX3だけが非零デ
ータとなる。このようにして有効係数検出を行なうと、
EOBアドレスが9の場合の有効係数検出結果fbit
は16進数で000fと表せる。EOBアドレスから有
効係数検出を行なった結果は第1の発明同様IDCT方
式選択部に出力される。スイッチおよびセレクタ、ID
CT方式選択部、IDCT演算部の動作は第1の発明と
同じである。
Next, the operation of the third invention will be described. H. 2
61, significant D in image coding such as MPEG, JPEG, etc.
An end-of-block (EOB) code is added to the end of the CT coefficient, and data thereafter is omitted. The EOB code indicating the number of data after the EOB code
I will call it an address. The effective coefficient detection unit 300 detects an effective coefficient using the EOB address as an input. It is assumed that all coefficients up to the position indicated by the EOB address are non-zero data. When the DCT coefficient is sent in a zigzag scan as shown in FIG. 9B, the EOB address is 9 even when non-zero data exists only in the shaded area in FIG. 9A. In this case, it is assumed that all data up to the position indicated by the EOB address indicated by oblique lines in FIG. 9B are non-zero coefficients. Considering that four calculations are performed in parallel, only X0 to X3 shown in FIG. 9C are non-zero data. When the effective coefficient is detected in this way,
Effective coefficient detection result fbit when EOB address is 9
Can be expressed as 000f in hexadecimal. The result of the detection of the effective coefficient from the EOB address is output to the IDCT scheme selecting section as in the first invention. Switch and selector, ID
The operations of the CT method selection unit and the IDCT operation unit are the same as those of the first invention.

【0031】次に第4の発明の動作を説明する。有効係
数検出部400の動作は第3の発明の動作と同じであ
り、スイッチおよびセレクタ、IDCT方式選択部、I
DCT演算部の動作は第2の発明と同じである。
Next, the operation of the fourth invention will be described. The operation of the effective coefficient detection unit 400 is the same as the operation of the third invention, and includes a switch and a selector, an IDCT method selection unit,
The operation of the DCT operation unit is the same as that of the second invention.

【0032】[0032]

【実施例】図10に第1の発明の実施例を示す。有効領
域検出部1000は、図6に示すフローチャートにした
がってDCT係数が零であるかどうかを判定し、有効領
域検出結果fbitを出力する。fbitは、図5に示
すように並列に処理する4つのDCT係数をまとめてX
0からX15で表したとき、Xi(i=0,1,2,
…,15)の有効/無効を最下位ビットから数えてiビ
ット目の1/0で表している。スイッチ1001、セレ
クタ1005の切り替えはピクチャタイプに応じてピク
チャ単位に行なう。ピクチャタイプがIピクチャの場合
は有効領域検出結果は第1のIDCT方式選択部100
2に出力される。第1のIDCT方式選択部1002で
はfbitと16進数0001の論理積が1ならば部分
IDCT演算方式1を選択し、fbitと16進数00
0fの論理積が1の場合には部分IDCT演算方式2を
選択し、その他の場合は完全IDCT演算方式を選択す
る。ピクチャタイプがPピクチャの場合は有効領域検出
結果は第2のIDCT方式選択部1003に出力され
る。第2のIDCT方式選択部1003ではfbitと
16進数00ffの論理積が1であれば部分IDCT演
算方式3を選択し、その他の場合には完全IDCT演算
方式を選択する。ピクチャタイプがBピクチャの場合に
は有効領域検出結果は第3のIDCT方式選択部100
4に出力される。第3のIDCT方式選択部1004で
はfbitと16進数0001の論理積が1であれば部
分IDCT演算方式1を選択しそれ以外の場合には部分
IDCT演算方式2を選択する。IDCT演算部100
7には完全IDCT演算方式と部分IDCT演算方式
1,2,3の4つのIDCT演算方式が用意されてい
る。スイッチ1006、セレクタ1008はセレクタ1
005を通して送られるIDCT方式選択部の選択結果
をもとに切り替える。IDCT演算部1007では選択
されたIDCT演算方式を用いてIDCT演算を行いセ
レクタ1008を通して演算結果を出力する。
FIG. 10 shows an embodiment of the first invention. The effective area detection unit 1000 determines whether the DCT coefficient is zero according to the flowchart shown in FIG. 6 and outputs an effective area detection result fbit. fbit is a sum of four DCT coefficients processed in parallel as shown in FIG.
When expressed from 0 to X15, Xi (i = 0, 1, 2, 2,
, 15) are represented by 1/0 of the i-th bit counted from the least significant bit. Switching between the switch 1001 and the selector 1005 is performed on a picture basis according to the picture type. If the picture type is an I-picture, the result of the effective area detection is the first IDCT scheme selection unit 100
2 is output. If the logical product of fbit and hexadecimal number 0001 is 1, the first IDCT scheme selecting unit 1002 selects the partial IDCT operation scheme 1 and sets fbit and hexadecimal number 00.
When the logical product of 0f is 1, the partial IDCT operation method 2 is selected, and in other cases, the complete IDCT operation method is selected. When the picture type is a P picture, the effective area detection result is output to the second IDCT scheme selection unit 1003. The second IDCT scheme selection unit 1003 selects the partial IDCT scheme 3 if the logical product of fbit and the hexadecimal number 00ff is 1, and otherwise selects the complete IDCT scheme. When the picture type is a B picture, the effective area detection result is determined by the third IDCT scheme selection unit 100.
4 is output. The third IDCT scheme selection unit 1004 selects the partial IDCT scheme 1 if the logical product of fbit and hexadecimal 0001 is 1, and otherwise selects the partial IDCT scheme 2. IDCT operation unit 100
7 has four IDCT operation methods, a complete IDCT operation method and a partial IDCT operation method 1, 2, and 3. The switch 1006 and the selector 1008 are the selector 1
Switching is performed based on the selection result of the IDCT scheme selection unit transmitted through 005. The IDCT operation unit 1007 performs an IDCT operation using the selected IDCT operation method, and outputs an operation result through the selector 1008.

【0033】図15に完全IDCT演算方式の実施例を
示す。8点×8点2次元IDCTを4列同時に処理する
ため、まず入力のDCT係数を転置しておく。R0,R
1で示す8点1次元IDCTを実行する。R0,R1の
演算結果は転置し、C0,C1で示す8点1次元IDC
Tを実行し、8点×8点2次元IDCTの結果として出
力する。8点1次元IDCT演算の方式としてはどのよ
うな方式を用いても良い。
FIG. 15 shows an embodiment of the complete IDCT operation method. First, input DCT coefficients are transposed in order to simultaneously process four columns of 8 points × 8 points two-dimensional IDCT. R0, R
An 8-point one-dimensional IDCT indicated by 1 is executed. The operation results of R0 and R1 are transposed, and an 8-point one-dimensional IDC indicated by C0 and C1
T is executed, and the result is output as a result of the 8 points × 8 points two-dimensional IDCT. Any method may be used as the method of the eight-point one-dimensional IDCT operation.

【0034】図16に部分IDCT演算方式1の実施例
を示す。部分IDCT演算方式1は1600のX0だけ
に非零係数が存在し、それ以外は全て零である場合のI
DCT演算方式である。まずR0としてX0以外の演算
を省略した1次元IDCT演算を行なう。R0の演算結
果は8点全てX0′となる。R1は入力係数が全て零な
ので演算を省略する。行方向の演算結果は1601にX
0′で示すデータのみ非零で、それ以外は全て零とな
る。xy方向の転置を行うと、列方向のIDCTの入力
データは1602のY0からY3のみ非零でそれ以外は
全て零となり、C0とC1の入力データはいずれもY0
からY3で表せる。C0でY0からY3以外の演算を省
略した1次元IDCT演算を行ない、C0の演算結果Y
0′からY7′をC1の演算結果としてコピーして8点
×8点2次元IDCT演算結果1603を出力する。
FIG. 16 shows an embodiment of the partial IDCT operation method 1. In the partial IDCT operation method 1, the non-zero coefficient exists only in X0 of 1600, and the I
This is a DCT operation method. First, as R0, a one-dimensional IDCT operation in which operations other than X0 are omitted is performed. The calculation result of R0 is X0 'for all eight points. Since R1 has all zero input coefficients, the calculation is omitted. The operation result in the row direction is X in 1601
Only the data indicated by 0 'is non-zero, and all other data are zero. When the transposition in the xy direction is performed, the input data of the IDCT in the column direction is non-zero in only Y0 to Y3 of 1602 and all other data are zero, and the input data of C0 and C1 are both Y0.
To Y3. A one-dimensional IDCT operation in which operations other than Y0 to Y3 are omitted is performed in C0, and the operation result Y of C0 is performed.
From 0 'to Y7' are copied as the operation result of C1, and an 8-point × 8-point two-dimensional IDCT operation result 1603 is output.

【0035】図17に部分IDCT演算方式2の実施例
を示す。部分IDCT演算方式2は1700のX0から
X3だけに非零係数が存在し、それ以外の係数は全て零
である場合のIDCT演算方式である。まずR0として
X0からX3以外の演算を省略した1次元IDCT演算
を行う。R1は入力係数が全て零なので演算を省略す
る。行方向の演算結果は1701のX0′からX7′の
み非零で、それ以外は全て零となる。演算結果を転置す
ると、列方向のIDCTの入力データは1702のY0
からY3、Y8からY11だけが非零係数で、それ以外
は全て零となる。C0ではY0からY3以外の演算を省
略した1次元IDCTを行ない、C1ではY8からY9
以外の演算を省略した1次元IDCTを行って8点×8
点2次元IDCTの演算結果1703を出力する。
FIG. 17 shows an embodiment of the partial IDCT operation method 2. The partial IDCT operation method 2 is an IDCT operation method in which non-zero coefficients are present only in X0 to X3 of 1700, and all other coefficients are zero. First, as R0, a one-dimensional IDCT operation in which operations other than X0 to X3 are omitted is performed. Since R1 has all zero input coefficients, the calculation is omitted. The operation results in the row direction are non-zero only in X0 'to X7' of 1701, and all other values are zero. When the operation result is transposed, the input data of the IDCT in the column direction is Y0 of 1702.
To Y3 and only Y8 to Y11 are non-zero coefficients, and all others are zero. In C0, a one-dimensional IDCT in which operations other than Y0 to Y3 are omitted is performed, and in C1, Y8 to Y9
8x8 by performing one-dimensional IDCT omitting operations other than
The calculation result 1703 of the point two-dimensional IDCT is output.

【0036】図18に部分IDCT演算方式3の実施例
を示す。部分IDCT演算方式3は1800のX0から
X7だけに非零係数が存在し、それ以外の係数は全て零
である場合のIDCT演算方式である。まずR0として
8点1次元IDCT演算を省略無しに行なう。R1は入
力係数が全て零なので演算を省略する。行方向の演算結
果は1801のX0′からX7′のみ非零で、それ以外
は全て零となる。以下の演算は部分IDCT演算方式2
と同じである。
FIG. 18 shows an embodiment of the partial IDCT operation method 3. The partial IDCT operation method 3 is an IDCT operation method in which non-zero coefficients exist only in X0 to X7 of 1800 and all other coefficients are zero. First, an 8-point one-dimensional IDCT operation is performed without omission as R0. Since R1 has all zero input coefficients, the calculation is omitted. In the row-direction operation result, only X0 'to X7' of 1801 are non-zero, and all others are zero. The following operation is the partial IDCT operation method 2.
Is the same as

【0037】部分IDCT演算方式としては上記以外の
方式を用いても良い。例えば、DCT係数がDC成分に
しか存在しない場合は図19に示す部分IDCT演算方
式4を用いることができる。1900で塗りつぶして示
すx=y=0のDC領域にあるDC成分だけが非零係数
である場合、8点×8点2次元IDCT演算結果は64
点全て同じになる。そこで2次元IDCT演算結果aを
計算し、それを1901に示すように4点にコピーしY
0′とする。次に1902に示すようにY0′をコピー
して8点×8点2次元IDCTの結果として出力する。
この方式を用いる場合には有効係数検出部またはIDC
T方式選択部でDC成分にのみ零係数があることを調べ
る必要がある。
As a partial IDCT operation method, a method other than the above may be used. For example, when the DCT coefficient exists only in the DC component, the partial IDCT operation method 4 shown in FIG. 19 can be used. If only the DC component in the DC region of x = y = 0 indicated by the solid color at 1900 is a non-zero coefficient, the result of the 8-point × 8-point two-dimensional IDCT operation is 64
All points are the same. Therefore, a two-dimensional IDCT operation result a is calculated, and it is copied to four points as shown in 1901, and Y
Set to 0 '. Next, as indicated by 1902, Y0 'is copied and output as a result of an 8-point × 8-point two-dimensional IDCT.
When this method is used, the effective coefficient detector or IDC
It is necessary to check that only the DC component has a zero coefficient in the T-system selector.

【0038】また、DCT係数がAC領域に一つだけ存
在する場合は図20に示す部分IDCT演算方式5を用
いることができる。AC領域のDCT係数f(x,y)
(x,y=0,1,2,…7、ただしx=y=0の場合
は除く)に一つだけ非零係数Aが存在し、その他の係数
は全て零である場合の63通りの8点×8点2次元ID
CT演算結果T(x,y)を予め計算してテーブルに格
納しておく。2000に示すようにAC領域に一つだけ
非零係数f(x,y)=aが存在し、その他のDCT係
数が零である場合には、テーブルT(x,y)の64個
の要素をそれぞれa/A倍することにより8点×8点2
次元IDCT演算結果2001を計算できる。a/A倍
する乗算は4並列に行うこともできる。この方式を用い
る場合には有効係数検出部またはIDCT方式選択部で
1つだけ存在する非零係数の位置情報x,yを検出し、
IDCT演算部に送る必要がある。
When only one DCT coefficient exists in the AC area, the partial IDCT operation method 5 shown in FIG. 20 can be used. DCT coefficient f (x, y) in AC domain
(X, y = 0, 1, 2,... 7 except for x = y = 0), there is only one non-zero coefficient A, and the other coefficients are all zero. 8 points x 8 points 2D ID
The CT operation result T (x, y) is calculated in advance and stored in a table. If only one non-zero coefficient f (x, y) = a exists in the AC domain as shown in 2000 and the other DCT coefficients are zero, 64 elements of the table T (x, y) 8 × 8 points 2 by multiplying each by a / A
A dimension IDCT operation result 2001 can be calculated. The multiplication multiplied by a / A can also be performed in four parallel. When this method is used, the effective coefficient detecting unit or the IDCT method selecting unit detects the position information x, y of only one non-zero coefficient,
It is necessary to send to the IDCT operation part.

【0039】IDCT方式選択部の判定方法は用意した
部分IDCT演算方式に応じて変化する。
The judgment method of the IDCT method selection section changes according to the prepared partial IDCT operation method.

【0040】図11に第2の発明の実施例を示す。有効
領域判定部1100は、図6に示すフローチャートにし
たがってDCT係数が零であるかどうかを判定し、有効
領域検出結果fbitを出力する。スイッチ1101、
セレクタ1104はマクロブロックタイプに応じてマク
ロブロック毎に切り替える。マクロブロックタイプがI
NTRA Blockである場合には有効領域検出結果
はIDCT第1の方式選択部1102に出力される。第
1のIDCT方式選択部1102ではfbitと16進
数0001の論理積が1であれば部分IDCT演算方式
1を選択し、fbitと16進数000fの論理積が1
であれば部分IDCT演算方式2を選択し、その他の場
合には完全IDCT演算方式を選択する。マクロブロッ
クタイプがINTERブロックの場合には有効領域検出
結果は第2のIDCT方式選択部1103に出力され
る。第2のIDCT方式選択部1103ではfbitと
16進数000fの論理積が1の場合には部分IDCT
演算方式2を選択しその他の場合に完全IDCT演算方
式を選択する。IDCT演算部1106には完全IDC
T演算方式と部分IDCT演算方式1,2が用意されて
いる。スイッチ1105、セレクタ1107はセレクタ
1104を通して出力されるIDCT方式選択部の選択
結果に応じて切り替える。IDCT演算部1106では
選択されたIDCT演算方式を用いてIDCT演算を行
い、セレクタ1107を通して演算結果を出力する。
FIG. 11 shows an embodiment of the second invention. The effective area determination unit 1100 determines whether the DCT coefficient is zero according to the flowchart shown in FIG. 6 and outputs an effective area detection result fbit. Switch 1101,
The selector 1104 switches for each macroblock according to the macroblock type. Macro block type is I
In the case of NTRA Block, the effective area detection result is output to IDCT first scheme selection section 1102. If the logical product of fbit and hexadecimal number 0001 is 1, the first IDCT method selecting unit 1102 selects the partial IDCT operation method 1, and the logical product of fbit and hexadecimal number 000f is 1
If so, the partial IDCT operation method 2 is selected, and in other cases, the complete IDCT operation method is selected. When the macro block type is the INTER block, the effective area detection result is output to the second IDCT scheme selection unit 1103. When the logical product of fbit and hexadecimal number 000f is 1, the second IDCT scheme selecting unit 1103 sets the partial IDCT
The operation method 2 is selected, and in other cases, the complete IDCT operation method is selected. The IDCT calculation unit 1106 has a complete IDC
T operation method and partial IDCT operation methods 1 and 2 are prepared. The switch 1105 and the selector 1107 switch according to the selection result of the IDCT scheme selection unit output through the selector 1104. The IDCT operation unit 1106 performs the IDCT operation using the selected IDCT operation method, and outputs the operation result through the selector 1107.

【0041】図12に第3の発明の実施例を示す。有効
係数検出部1200は、EOBアドレスからfbitを
計算する。EOBアドレスまでのDCT係数を全て非零
係数と仮定すると、例えばEOBアドレスが9である場
合には9.2に0から9までの番号で表した位置にある
係数を全て非零であると考えることになる。4並列に計
算することを考慮するとX0,X1,X2,X3が非
零、x4からx15までが全て零であるということにな
るため、fbitは16進数で000fで表せる。この
ようにEOBアドレスに応じてfbitを算出する。I
DCT方式選択部、IDCT演算部、スイッチ、セレク
タについては第1の発明の実施例と同じものを用いるこ
とができる。
FIG. 12 shows an embodiment of the third invention. Effective coefficient detection section 1200 calculates fbit from the EOB address. Assuming that all the DCT coefficients up to the EOB address are non-zero coefficients, for example, when the EOB address is 9, all coefficients at positions represented by numbers from 0 to 9 in 9.2 are considered to be non-zero. Will be. Considering the calculation in four parallels, X0, X1, X2, and X3 are non-zero, and x4 to x15 are all zero. Therefore, fbit can be represented by hexadecimal 000f. Thus, fbit is calculated according to the EOB address. I
The same DCT scheme selection unit, IDCT calculation unit, switch, and selector as those in the first embodiment can be used.

【0042】図13に第4の発明の実施例を示す。有効
係数検出部1300は第3の発明の実施例で示したもの
を用い、その他の部分については第2の実施例と同じも
のを用いることができる。
FIG. 13 shows an embodiment of the fourth invention. As the effective coefficient detecting unit 1300, the one shown in the embodiment of the third invention is used, and the other parts can be the same as those of the second embodiment.

【0043】第3,第4の発明における有効係数検出部
ではEOBアドレスからfbitを算出しなくてもEO
Bアドレスそのものを有効係数検出結果として使うこと
もできる。その場合IDCT方式選択部ではEOBアド
レスが0ならば部分IDCT演算方式1を選択し、EO
Bアドレスが9以下ならば部分IDCT演算方式2を選
択し、それ以外なら完全IDCT演算方式をする、とい
うように変化する。
The effective coefficient detector in the third and fourth aspects of the present invention does not calculate fbit from the EOB address.
The B address itself can be used as the effective coefficient detection result. In this case, if the EOB address is 0, the IDCT method selection unit selects the partial IDCT operation method 1
If the B address is 9 or less, the partial IDCT operation method 2 is selected, otherwise the complete IDCT operation method is used.

【0044】以上述べたような第1から第4の発明の実
施例である図10から図13に示す8点×8点2次元I
DCT装置は、一つの命令で同一の処理を複数の命令に
対して実行するマイクロプロセッサのプログラムとして
実現できる。
The eight-point by eight-point two-dimensional I shown in FIGS. 10 to 13 according to the first to fourth embodiments of the present invention as described above.
The DCT device can be realized as a program of a microprocessor that executes the same process for a plurality of instructions with one instruction.

【0045】[0045]

【発明の効果】第1の発明を用いると、ピクチャタイプ
毎のDCT係数の分布の特徴に応じて効果的に演算量を
削減できる。その理由は、ピクチャタイプ毎にDCT係
数の分布の特徴に応じてIDCT演算方式の選択候補を
限定しているため、IDCT方式選択にかかる演算を抑
えながら多くの符号化ブロックで部分IDCT演算を選
択し演算量を削減できる為である。
According to the first aspect of the present invention, the amount of calculation can be effectively reduced according to the characteristics of the distribution of DCT coefficients for each picture type. The reason is that the selection candidates of the IDCT operation method are limited according to the characteristics of the distribution of the DCT coefficient for each picture type, so that the partial IDCT operation is selected in many coding blocks while suppressing the operation related to the IDCT method selection. This is because the amount of calculation can be reduced.

【0046】第2の発明を用いると、マクロブロックタ
イプ毎のDCT係数の分布の特徴に応じて効果的に演算
量を削減できる。その理由は、マクロブロックタイプ毎
にDCT係数の分布の特徴に応じてIDCT演算方式の
選択候補を限定しているため、IDCT方式選択にかか
る演算を抑えながら多くの符号化ブロックで部分IDC
T演算を選択し演算量を削減できる為である。
According to the second aspect of the present invention, the amount of calculation can be effectively reduced according to the characteristics of the distribution of DCT coefficients for each macroblock type. The reason is that the selection candidates of the IDCT operation method are limited in accordance with the characteristics of the distribution of the DCT coefficients for each macroblock type.
This is because the amount of calculation can be reduced by selecting the T calculation.

【0047】第3,第4の発明を用いると、有効領域検
出部の演算量を削減できる。その理由は全ての係数が零
であるかどうかを判定するかわりに、EOBアドレスま
での係数を全て非零係数と仮定して有効係数判定を行な
う為である。
According to the third and fourth aspects of the present invention, the amount of calculation of the effective area detecting section can be reduced. The reason is that, instead of determining whether or not all the coefficients are zero, the effective coefficient determination is performed on the assumption that all the coefficients up to the EOB address are non-zero coefficients.

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

【図1】第1の発明の構成を示すブロック図。FIG. 1 is a block diagram showing a configuration of a first invention.

【図2】第2の発明の構成を示すブロック図。FIG. 2 is a block diagram showing a configuration of the second invention.

【図3】第3の発明の構成を示すブロック図。FIG. 3 is a block diagram showing a configuration of the third invention.

【図4】第4の発明の構成を示すブロック図。FIG. 4 is a block diagram showing a configuration of the fourth invention.

【図5】入力のDCT係数を示す説明図。FIG. 5 is an explanatory diagram showing input DCT coefficients.

【図6】有効領域検出部の動作を説明する為の図。FIG. 6 is a diagram for explaining the operation of an effective area detection unit.

【図7】有効領域検出結果fbitを示す説明図。FIG. 7 is an explanatory diagram showing an effective area detection result fbit.

【図8】IDCT方式選択部の動作を説明する為の図。FIG. 8 is a diagram for explaining the operation of an IDCT scheme selection unit.

【図9】EOBアドレスを利用した有効領域検出部の動
作を説明する為の図。
FIG. 9 is a diagram for explaining the operation of an effective area detection unit using an EOB address.

【図10】第1の発明の実施例を示すブロック図。FIG. 10 is a block diagram showing an embodiment of the first invention.

【図11】第2の発明の実施例を示すブロック図。FIG. 11 is a block diagram showing an embodiment of the second invention.

【図12】第3の発明の実施例を示すブロック図。FIG. 12 is a block diagram showing an embodiment of the third invention.

【図13】第4の発明の実施例を示すブロック図。FIG. 13 is a block diagram showing an embodiment of the fourth invention.

【図14】Row−Column方式を示す説明図。FIG. 14 is an explanatory diagram showing a Row-Column method.

【図15】完全IDCT演算方式の実施例を示す説明
図。
FIG. 15 is an explanatory diagram showing an embodiment of a complete IDCT operation method.

【図16】部分IDCT演算方式1の実施例を示す説明
図。
FIG. 16 is an explanatory diagram showing an embodiment of a partial IDCT operation method 1;

【図17】部分IDCT演算方式2の実施例を示す説明
図。
FIG. 17 is an explanatory view showing an embodiment of a partial IDCT operation method 2;

【図18】部分IDCT演算方式3の実施例を示す説明
図。
FIG. 18 is an explanatory view showing an embodiment of a partial IDCT operation method 3;

【図19】部分IDCT演算方式4の実施例を示す説明
図。
FIG. 19 is an explanatory diagram showing an embodiment of a partial IDCT operation method 4.

【図20】部分IDCT演算方式5の実施例を示す説明
図。
FIG. 20 is an explanatory diagram showing an embodiment of a partial IDCT operation method 5.

【図21】従来例の構成を示すブロック図。FIG. 21 is a block diagram showing a configuration of a conventional example.

【図22】第5の発明の構成を示すブロック図。FIG. 22 is a block diagram showing a configuration of the fifth invention.

【図23】第6の発明の構成を示すブロック図。FIG. 23 is a block diagram showing a configuration of the sixth invention.

【図24】第7の発明の構成を示すブロック図。FIG. 24 is a block diagram showing a configuration of the seventh invention.

【図25】第8の発明の構成を示すブロック図。FIG. 25 is a block diagram showing a configuration of the eighth invention.

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

100,200,300,400,1000,110
0,1200,1300,2100 有効係数検出部 101,106,201,205,301,306,4
01,405,1001,1006,1101,110
5,1201,1206,1301,1305,210
2 スイッチ 102,103,104,202,203,303,3
04,402,403,1002,1003,100
4,1102,1103,1202,1203,120
4,1302,1303,2101 IDCT方式選
択部 107,206,307,406,1007,110
6,1207,1306,2103 IDCT演算部 105,108,204,207,305,308,4
04,407,1005,1008,1104,110
7,1205,1208,1304,1307,210
4 セレクタ 2200,2300 入力装置 2201,2301,2401,2501 マイクロ
プロセッサ 2202,2302,2402,2502 メモリ 2203,2303,2403,2503 記録媒体 2204,2304,2404,2504 出力装置
100, 200, 300, 400, 1000, 110
0, 1200, 1300, 2100 Effective coefficient detector 101, 106, 201, 205, 301, 306, 4
01,405,1001,1006,1101,110
5,1201,1206,1301,1305,210
2 switches 102, 103, 104, 202, 203, 303, 3
04, 402, 403, 1002, 1003, 100
4,1102,1103,1202,1203,120
4,1302,1303,2101 IDCT scheme selection unit 107,206,307,406,1007,110
6, 1207, 1306, 2103 IDCT operation unit 105, 108, 204, 207, 305, 308, 4
04,407,1005,1008,1104,110
7, 1205, 1208, 1304, 1307, 210
4 Selector 2200, 2300 Input device 2201, 2301, 2401, 2501 Microprocessor 2202, 2302, 2402, 2502 Memory 2203, 2303, 2403, 2503 Recording medium 2204, 2304, 2404, 2504 Output device

Claims (8)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 一つの命令で同一の処理を複数のデータ
に対して実行するプロセッサを用いて8点1次元逆離散
コサイン変換(IDCT)を4並列に実行する8点×8
点2次元IDCT装置において、同時に処理する4つの
DCT係数が非零であるかどうかを判定する有効係数検
出部と、有効係数検出結果に基づいて最も演算量の少な
いIDCT演算方式の選択を行う第1,第2,第3のI
DCT方式選択部と、該IDCT方式選択部をピクチャ
タイプにより切り替える第1のスイッチおよび第1のセ
レクタと、複数のIDCT演算方式を持つIDCT演算
部と、前記IDCT方式選択部で選択されたIDCT演
算方式に応じて前記IDCT演算部で用いるIDCT演
算方式を切り替える第2のスイッチおよび第2のセレク
タを持ち、前記IDCT演算部には、フレーム内符号化
を行うIタイプ、前方向予測符号化を行うPタイプ、双
方向予測符号化を行うBタイプの各ピクチャタイプにお
けるDCT係数の分布の特徴に応じて予め幾つかのID
CT演算方式が用意されており、ピクチャタイプに応じ
て前記第1のスイッチおよび前記第1のセレクタを切り
替え、ピクチャタイプがIピクチャならば前記第1のI
DCT方式選択部、Pピクチャならば前記第2のIDC
T方式選択部、Bピクチャならば前記第3のIDCT方
式選択部において前記有効係数検出結果に応じて最も演
算量を削減できる前記IDCT演算方式を選択し、該I
DCT演算方式に応じて前記第2のスイッチおよび前記
第2のセレクタを切り替えて前記IDCT方式選択部で
選択したIDCT演算方式によりIDCT演算を行うこ
とを特徴とする8点×8点2次元IDCT装置。
1. An 8-point × 8-point 8-point one-dimensional inverse discrete cosine transform (IDCT) is executed in parallel by using a processor that executes the same processing on a plurality of data with one instruction.
In the point two-dimensional IDCT apparatus, an effective coefficient detection unit that determines whether four DCT coefficients to be simultaneously processed are non-zero, and an IDCT operation method that requires the least amount of operation based on the effective coefficient detection result. 1st, 2nd, 3rd I
A DCT scheme selection section, a first switch and a first selector for switching the IDCT scheme selection section according to picture type, an IDCT computation section having a plurality of IDCT computation schemes, and an IDCT computation selected by the IDCT scheme selection section A second switch and a second selector for switching an IDCT operation method used in the IDCT operation unit according to a system, wherein the IDCT operation unit performs an I type for performing intra-frame encoding and performs forward prediction encoding Depending on the characteristics of the distribution of the DCT coefficients in each of the P-type and B-type picture types that perform bidirectional predictive encoding, some IDs are set in advance.
A CT operation method is prepared, and the first switch and the first selector are switched according to a picture type. If the picture type is an I picture, the first I
DCT method selection unit, if P picture, the second IDC
In the case of a T picture, if the picture is a B picture, the third IDCT method selecting section selects the IDCT calculation method capable of reducing the amount of calculation in accordance with the effective coefficient detection result.
An eight-point by eight-point two-dimensional IDCT apparatus, wherein the second switch and the second selector are switched according to a DCT operation method, and an IDCT operation is performed according to the IDCT operation method selected by the IDCT method selector. .
【請求項2】 一つの命令で同一の処理を複数のデータ
に対して実行するプロセッサを用いて8点1次元逆離散
コサイン変換(IDCT)を4並列に実行する8点×8
点2次元IDCT装置において、同時に処理する4つの
DCT係数が非零であるかどうかを判定する有効係数検
出部と、有効係数検出結果に基づいて最も演算量の少な
いIDCT演算方式の選択を行う第1,第2のIDCT
方式選択部と、該IDCT方式選択部をマクロブロック
タイプにより切り替える第1のスイッチおよび第1のセ
レクタと、複数のIDCT演算方式を持つIDCT演算
部と、前記IDCT方式選択部で選択されたIDCT演
算方式に応じて前記IDCT演算部で用いるIDCT演
算方式を切り替える第2のスイッチおよび第2のセレク
タを持ち、前記IDCT演算部には、フレーム内符号化
を行うINTRAタイプ、フレーム間符号化を行うIN
TERタイプの各マクロブロックタイプにおけるDCT
係数の分布の特徴に応じて予め幾つかのIDCT演算方
式が用意されており、マクロブロックタイプに応じて前
記第1のスイッチおよび前記第1のセレクタを切り替
え、マクロブロックタイプがINTRAならば前記第1
のIDCT方式選択部、INTERならば前記第2のI
DCT方式選択部において前記有効係数検出結果に応じ
て最も演算量を削減できる前記IDCT演算方式を選択
し、該IDCT演算方式に応じて前記第2のスイッチお
よび前記第2のセレクタを切り替えて前記IDCT方式
選択部で選択したIDCT演算方式によりIDCT演算
を行うことを特徴とする8点×8点2次元IDCT装
置。
2. An 8-point × 8-point 8-point one-dimensional inverse discrete cosine transform (IDCT) executed in parallel by using a processor that executes the same processing on a plurality of data with one instruction.
In the point two-dimensional IDCT apparatus, an effective coefficient detection unit that determines whether four DCT coefficients to be simultaneously processed are non-zero, and an IDCT operation method that requires the least amount of operation based on the effective coefficient detection result. 1, the second IDCT
A method selection unit, a first switch and a first selector for switching the IDCT method selection unit according to the macroblock type, an IDCT operation unit having a plurality of IDCT operation methods, and an IDCT operation selected by the IDCT method selection unit A second switch and a second selector for switching an IDCT operation method used in the IDCT operation unit in accordance with a system; an INTRA type for performing intra-frame encoding; an IN for performing inter-frame encoding;
DCT in each macroblock type of TER type
Several IDCT calculation methods are prepared in advance according to the characteristics of the coefficient distribution, and the first switch and the first selector are switched according to the macroblock type. 1
IDCT scheme selection unit, if INTER, the second I
The DCT method selection unit selects the IDCT operation method capable of reducing the amount of operation most according to the effective coefficient detection result, and switches the second switch and the second selector according to the IDCT operation method to switch the IDCT operation method. An eight-point by eight-point two-dimensional IDCT apparatus that performs an IDCT operation according to an IDCT operation method selected by a method selection unit.
【請求項3】 請求項1記載の8点×8点2次元IDC
T装置において、有効係数検出部がエンド・オブ・ブロ
ック(EOB)符号の位置情報を入力とし、EOB符号
が示す位置までのDCT係数を全て非零係数とみなして
有効係数検出を行なうことを特徴とする8点×8点2次
元IDCT装置。
3. An 8 point × 8 point two-dimensional IDC according to claim 1.
In the T device, an effective coefficient detection unit receives position information of an end-of-block (EOB) code as input, and performs effective coefficient detection by regarding all DCT coefficients up to the position indicated by the EOB code as non-zero coefficients. 8 points × 8 points two-dimensional IDCT apparatus.
【請求項4】 請求項2記載の8点×8点2次元IDC
T装置において、有効係数検出部がエンド・オブ・ブロ
ック(EOB)符号の位置情報を入力とし、EOB符号
が示す位置までのDCT係数を全て非零係数とみなして
有効係数検出を行なうことを特徴とする8点×8点2次
元IDCT装置。
4. The 8-point × 8-point two-dimensional IDC according to claim 2.
In the T device, an effective coefficient detection unit receives position information of an end-of-block (EOB) code as input, and performs effective coefficient detection by regarding all DCT coefficients up to the position indicated by the EOB code as non-zero coefficients. 8 points × 8 points two-dimensional IDCT apparatus.
【請求項5】 入力されたDCT係数をメモリに書き込
む処理と、請求項1記載の8点×8点2次元IDCT装
置で行う処理を、一つの命令で同一の処理を複数のデー
タに対して実行するマイクロプロセッサで実現する為の
プログラムを記録した記録媒体。
5. A process for writing an input DCT coefficient to a memory and a process for performing the process by an 8 point × 8 point two-dimensional IDCT apparatus according to claim 1, wherein the same process is performed for a plurality of data by one instruction. A recording medium on which a program to be executed by a microprocessor to be executed is recorded.
【請求項6】 入力されたDCT係数をメモリに書き込
む処理と、請求項2記載の8点×8点2次元IDCT装
置で行う処理を、一つの命令で同一の処理を複数のデー
タに対して実行するマイクロプロセッサで実現する為の
プログラムを記録した記録媒体。
6. A process for writing an input DCT coefficient into a memory and a process for performing the process by an 8 point × 8 point two-dimensional IDCT apparatus according to claim 2 by executing the same process with a single instruction for a plurality of data. A recording medium on which a program to be executed by a microprocessor to be executed is recorded.
【請求項7】 入力されたDCT係数をメモリに書き込
む処理と、請求項3記載の8点×8点2次元IDCT装
置で行う処理を、一つの命令で同一の処理を複数のデー
タに対して実行するマイクロプロセッサで実現する為の
プログラムを記録した記録媒体。
7. A process of writing an input DCT coefficient to a memory and a process of executing an 8 point × 8 point two-dimensional IDCT apparatus according to claim 3 by executing the same process with a single instruction for a plurality of data. A recording medium on which a program to be executed by a microprocessor to be executed is recorded.
【請求項8】 入力されたDCT係数をメモリに書き込
む処理と、請求項4記載の8点×8点2次元IDCT装
置で行う処理を、一つの命令で同一の処理を複数のデー
タに対して実行するマイクロプロセッサで実現する為の
プログラムを記録した記録媒体。
8. A process for writing the input DCT coefficient into a memory and a process for performing the process by the 8-point × 8-point two-dimensional IDCT apparatus according to claim 4, wherein the same process is executed for a plurality of data by one instruction. A recording medium on which a program to be executed by a microprocessor to be executed is recorded.
JP19814997A 1997-07-24 1997-07-24 Two-dimensional inverse discrete cosine transform (IDCT) device Expired - Fee Related JP2888292B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP19814997A JP2888292B2 (en) 1997-07-24 1997-07-24 Two-dimensional inverse discrete cosine transform (IDCT) device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP19814997A JP2888292B2 (en) 1997-07-24 1997-07-24 Two-dimensional inverse discrete cosine transform (IDCT) device

Publications (2)

Publication Number Publication Date
JPH1141601A JPH1141601A (en) 1999-02-12
JP2888292B2 true JP2888292B2 (en) 1999-05-10

Family

ID=16386282

Family Applications (1)

Application Number Title Priority Date Filing Date
JP19814997A Expired - Fee Related JP2888292B2 (en) 1997-07-24 1997-07-24 Two-dimensional inverse discrete cosine transform (IDCT) device

Country Status (1)

Country Link
JP (1) JP2888292B2 (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005184042A (en) * 2003-12-15 2005-07-07 Sony Corp Image decoding apparatus, image decoding method, and image decoding program
KR100667809B1 (en) 2005-08-30 2007-01-11 삼성전자주식회사 Picture decoding method and recording medium thereof
JP4772607B2 (en) * 2006-07-10 2011-09-14 パナソニック株式会社 Two-dimensional orthogonal transformation device, two-dimensional orthogonal transformation method, and imaging system
JP4888224B2 (en) * 2007-05-18 2012-02-29 ソニー株式会社 Image processing apparatus and method, and program
JP2010206486A (en) * 2009-03-03 2010-09-16 Sharp Corp Moving picture stream decoding apparatus, control method thereof, program, and recording medium
KR101436575B1 (en) * 2011-07-19 2014-09-16 한양대학교 산학협력단 Device for decoding motion image and method for completing inverse discrete cosine transform
CN111052111A (en) 2017-09-14 2020-04-21 三菱电机株式会社 Arithmetic circuit, arithmetic method, and program

Also Published As

Publication number Publication date
JPH1141601A (en) 1999-02-12

Similar Documents

Publication Publication Date Title
JP4006047B2 (en) Image reduction sampling method
US5371611A (en) Method for and system of decoding compressed continuous-tone digital image data
JP2003507804A (en) Method and apparatus for variable complexity decoding of motion compensated block-based compressed digital video
US20100321579A1 (en) Front End Processor with Extendable Data Path
EP0917362A1 (en) Macroblock variance estimator for MPEG-2 video encoder
KR100944928B1 (en) Apparatus and method for encoding and computing a discrete cosine transform using a butterfly processor
JP2888292B2 (en) Two-dimensional inverse discrete cosine transform (IDCT) device
EP0917070B1 (en) Method and apparatus for performing discrete cosine transformation and its inverse
US7076105B2 (en) Circuit and method for performing a two-dimensional transform during the processing of an image
US6181831B1 (en) Spatial frequency-domain video signal processing
JPS622721A (en) Coding and decoding device for picture signal
US5555321A (en) Image data binary coding method and apparatus
US5748514A (en) Forward and inverse discrete cosine transform circuits
JPH1196138A (en) Inverse cosine transform method and inverse cosine transformer
US6111989A (en) 1/4 size real time decoding of digital video
JP2802158B2 (en) Inverse orthogonal transform method and inverse orthogonal transform circuit
JP2006115536A (en) Decoding method and decoding apparatus
KR20020064913A (en) Decodong of data
US6038345A (en) Apparatus for encoding/decoding image data
JP4266512B2 (en) Data processing device
JP3385866B2 (en) Inverse quantization and inverse DCT circuit
JP3434904B2 (en) Image data encoding device
JP3371481B2 (en) Digital arithmetic unit
JP2001290797A (en) Signal processor
JP3352139B2 (en) Encoding device and method

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: 19990120

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080219

Year of fee payment: 9

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090219

Year of fee payment: 10

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100219

Year of fee payment: 11

LAPS Cancellation because of no payment of annual fees