JPH06232824A - Correcting discrete cosine transformation, inverse transforming method and its device - Google Patents

Correcting discrete cosine transformation, inverse transforming method and its device

Info

Publication number
JPH06232824A
JPH06232824A JP1991193A JP1991193A JPH06232824A JP H06232824 A JPH06232824 A JP H06232824A JP 1991193 A JP1991193 A JP 1991193A JP 1991193 A JP1991193 A JP 1991193A JP H06232824 A JPH06232824 A JP H06232824A
Authority
JP
Japan
Prior art keywords
intermediate data
equation
data
mdct
output
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP1991193A
Other languages
Japanese (ja)
Other versions
JP3060767B2 (en
Inventor
Masataka Nikaido
正隆 二階堂
Takafumi Ueno
孝文 上野
Tomoaki Izumi
智紹 泉
Tetsushi Kasahara
哲志 笠原
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP5019911A priority Critical patent/JP3060767B2/en
Publication of JPH06232824A publication Critical patent/JPH06232824A/en
Application granted granted Critical
Publication of JP3060767B2 publication Critical patent/JP3060767B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Abstract

PURPOSE:To provide a high-speed calculating method and its device for efficiently performing the calculation of MDCT in the case of compressing audio signals. CONSTITUTION:This device is provided with a first intermediate data generating part 1 for providing first intermediate data x2(n) (O<=n<=M-1) from the combination of specified two points in input sample data x(n) (0<=n<=2M-1) of two M points, a second intermediate data generating part 2 for providing M/2 pieces of second intermediate data z(n) (0<=n<=M/2-1) by dividing the intermediate data x2(n) into the first half and the latter half, an FTT executing part 3 for providing M/2 pieces of Fourier coefficients Z(k) (0<=k<=M/2-1) by performing high-speed Fourier transformation to the second intermediate data z(n) and an extension part 4 for providing the even-numbered spectrum and odd-numbered spectrum of the input data x(n) from the output Z(k) of the FFT executing means.

Description

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

【0001】[0001]

【産業上の利用分野】本発明はオーディオ信号等の圧縮
符号化において用いられる変換符号化の高速計算方法及
び装置に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a transform coding high-speed calculation method and apparatus used in compression coding of audio signals and the like.

【0002】[0002]

【従来の技術】近年、ディジタルオーディオ信号の情報
量を、人の聴覚特性を積極的に利用して圧縮し、伝送ま
たは記録再生する装置が提案されている。これらの装置
においては、ディジタルオーディオ信号を帯域分割フィ
ルタを用いるか、または直交変換を用いて、いくつかの
周波数成分に分割する。分割した信号毎に、オーディオ
信号の成分の遍在に応じて、また聴覚の特性を考慮して
情報量の割当を決定していく。このようにすることで、
情報量の効率的な配分が可能となり、結果として、情報
量の圧縮が達成される。
2. Description of the Related Art In recent years, there has been proposed a device for compressing the information amount of a digital audio signal by positively utilizing human auditory characteristics and transmitting or recording / reproducing. In these devices, a digital audio signal is divided into several frequency components by using a band division filter or an orthogonal transformation. For each of the divided signals, the allocation of the information amount is determined according to the ubiquity of the components of the audio signal and considering the auditory characteristics. By doing this,
The information amount can be efficiently distributed, and as a result, the compression of the information amount is achieved.

【0003】オーディオ信号の圧縮に適した直交変換と
して、修正離散余弦変換(以下、MDCTと略す)が提
案されている。MDCTについては、アイトリプルイー
・トランザクションズ・オン・エイエスエスピー(IE
EE TRANSACTIONS ON ASSP)第
34巻5号の、第1153ページから第1161ページ
に掲載された、ジョン・ピー・プリンセンとアレン・ベ
ルナード・ブラッドリー共著の論文「時間領域のエリア
ジングキャンセレーションを基礎にした分析/合成フィ
ルタバンク設計」に詳しい。
A modified discrete cosine transform (hereinafter abbreviated as MDCT) has been proposed as an orthogonal transform suitable for compressing audio signals. For MDCT, I Triple E Transactions on EYSP (IE
EE TRANSACTIONS ON ASSP) Vol. 34, No. 5, pp. 1153 to 1161, by John P. Princen and Allen Bernard Bradley, "Based on Aliasing Cancellation in the Time Domain" Detailed analysis / synthesis filter bank design ”.

【0004】MDCTの順変換式はつぎのように表現さ
れる。ここで、x(k)はMDCTのk番目のスペクト
ル、x(n)はMDCTのn番目の入力サンプルであ
る。
The forward transform formula of MDCT is expressed as follows. Here, x (k) is the kth spectrum of MDCT, and x (n) is the nth input sample of MDCT.

【0005】[0005]

【数3】 [Equation 3]

【0006】従ってX(k)は、入力サンプルからなる
ベクトルX(n)とコサイン係数マトリクスとのマトリ
クス乗算によって求めることができる。M個のX(k)
を求めるには、2M2回の乗算とM×(2M−1)回の
加算が必要となる。
Therefore, X (k) can be obtained by matrix multiplication of the vector X (n) consisting of input samples and the cosine coefficient matrix. M X (k)
2M 2 multiplications and M × (2M−1) additions are required to obtain

【0007】また、MDCTの逆変換式はつぎのように
表現される。但し、X(k)はMDCTのスペクトルで
あり、y(n)は変換によって得られたサンプル列であ
る。
The inverse transform formula of MDCT is expressed as follows. However, X (k) is the spectrum of MDCT and y (n) is the sample sequence obtained by the conversion.

【0008】[0008]

【数4】 [Equation 4]

【0009】この式は順変換と同じ形をしており、2M
個のy(n)を求めるには、やはり2M2回の乗算と、
2M×(M−1)回の加算が必要となる。
This equation has the same form as the forward transform, and is 2M
To obtain the number of y (n), 2M 2 multiplications are required and
2M × (M−1) additions are required.

【0010】[0010]

【発明が解決しようとする課題】(数3)において、例
えばMが256とすれば、MDCT順変換に要する乗算
回数は131072回、加算回数は130816回とな
り、膨大な計算が必要であることがわかる。この数はM
が増えるとMの2乗に比例して増え、オーディオ機器に
おいて半導体回路でたやすく実行するには、演算回数が
多すぎ、結果として装置のコストアップや、装置消費電
力の増大を招来するといった不都合があった。
In Equation 3, if M is 256, for example, the number of multiplications required for MDCT forward conversion is 131072, and the number of additions is 130816, which requires enormous calculation. Recognize. This number is M
Is increased in proportion to the square of M, the number of calculations is too large to be easily executed by a semiconductor circuit in an audio device, resulting in an increase in device cost and an increase in device power consumption. was there.

【0011】[0011]

【課題を解決するための手段】本発明はかかる不都合に
鑑みてなされたものであり、下記のように構成すること
で効率的にMDCT計算を行うようにしている。即ち、
2M点の入力サンプルデータx(n)(0≦n≦2M−
1)の、特定の2点どうしの組み合わせを加算または減
算し、或いは負号反転して、M点の第1の中間データx
2(n)(0≦n≦M−1)を得る第1の中間データ発
生部と、上記中間データx2(n)を前半と後半に区分
し、前半のx2(n)を実数部とすると同時に後半のx
2(n+M/2)の負号を反転して虚数部とし、更にe
xp(−jπn/M)をかけ算して、M/2個の第2の
中間データz(n)(0≦n≦M/2−1)を得る第2
の中間データ発生部と、上記第2の中間データz(n)
に高速フーリエ変換を施してM/2個のフーリエ係数Z
(k)(0≦k≦M/2−1)を得るFFT実行部と、
FFT実行手段の出力Z(k)と、それに対応する所定
の回転要素との乗算結果の実数部を求めることで、入力
データx(n)の偶数番目のスペクトルを得、また、F
FT実行手段の出力Z(k)の共役複素数Z2(M/2
−1−k)と、それに対応する所定の回転要素との乗算
結果の実数部を求めることで、入力データx(n)の奇
数番目のスペクトルを出力する展開部とを備えている。
SUMMARY OF THE INVENTION The present invention has been made in view of such inconvenience, and has the following configuration to efficiently perform MDCT calculation. That is,
Input sample data x (n) at 2M points (0 ≦ n ≦ 2M−
The first intermediate data x at M points is added or subtracted or the negative sign is inverted for the specific combination of two points in 1).
If the first intermediate data generator that obtains 2 (n) (0 ≦ n ≦ M−1) and the intermediate data x2 (n) are divided into the first half and the second half, and the first half x2 (n) is the real part. At the same time x in the latter half
Invert the negative sign of 2 (n + M / 2) to form the imaginary part, and then e
The second to obtain M / 2 second intermediate data z (n) (0 ≦ n ≦ M / 2−1) by multiplying xp (−jπn / M)
Intermediate data generating section of the second intermediate data z (n)
Fast Fourier transform to M / 2 Fourier coefficients Z
(K) an FFT execution unit that obtains (0 ≦ k ≦ M / 2−1),
By obtaining the real part of the multiplication result of the output Z (k) of the FFT execution means and the corresponding predetermined rotation element, an even-numbered spectrum of the input data x (n) is obtained, and F
Conjugate complex number Z 2 (M / 2 of output Z (k) of FT execution means
-1-k) and the expansion part that outputs the odd-numbered spectrum of the input data x (n) by obtaining the real part of the multiplication result of the corresponding predetermined rotation element.

【0012】また、MDCTの逆変換計算を行うには、
下記のように構成している。即ち、M個の入力スペクト
ルデータX(k)(0≦k≦M−1)の、偶数番目のデ
ータをM個の第1の中間データU(k)(0≦k≦M−
1)の前半(0≦k≦M/2−1)に配置し、奇数番目
のデータを負号反転し、更に順序を反転した後、前記第
1の中間データU(k)の後半(M/2≦k≦M−1)
に配置する第1の中間データ発生部と、前記第1の中間
データU(k)を前半と後半に区分し、前半のU(k)
を実数部とすると同時に後半のU(k+M/2)の負号
を反転して虚数部とし、更にexp(−jπk/M)を
かけ算して、M/2個の第2の中間データZ(k)(0
≦k≦M/2−1)を得る第2の中間データ発生部と、
上記第2の中間データZ(k)に高速フーリエ変換を施
してM/2個のフーリエ係数z(n)(0≦n≦M/2
−1)を得るFFT実行部と、FFT実行手段の出力z
(n)と、それに対応する所定の回転要素exp(−j
π(2n+1/2)/2M)との乗算結果の実数部を求
めることで、第3の中間データy1(n)の偶数番目の
値を得、また、FFT実行手段の出力z(M/2−1−
n)の共役複素数z 2(M/2−1−n)と、それに対
応する所定の回転要素exp(−jπ・(2n+3/
2)/2M)との乗算結果の実数部を求めることで、第
3の中間データy1(n)の奇数番目の値を得る第3の
中間データ発生部と、前記第3の中間データを2度ずつ
使用して所定の順序に並べ、或いは負号反転する展開部
とを備えているのである。
In addition, in order to perform the inverse transform calculation of MDCT,
It is configured as follows. That is, M input spectra
Data X (k) (0 ≦ k ≦ M−1) of even-numbered data
Data of M first intermediate data U (k) (0 ≦ k ≦ M−
Arranged in the first half of (1) (0 ≦ k ≦ M / 2−1) and odd-numbered
After inverting the data in the negative sign and inverting the order,
Second half of the intermediate data U (k) of 1 (M / 2 ≦ k ≦ M−1)
A first intermediate data generating section arranged in
The data U (k) is divided into the first half and the second half, and the first half U (k)
Is the real part and at the same time the negative sign of U (k + M / 2) in the latter half
Is inverted to the imaginary part, and exp (-jπk / M)
Multiplying by M / 2 second intermediate data Z (k) (0
A second intermediate data generating unit for obtaining ≦ k ≦ M / 2−1),
Fast Fourier transform is applied to the second intermediate data Z (k).
Then, M / 2 Fourier coefficients z (n) (0 ≦ n ≦ M / 2
-1) and an output z of the FFT execution means
(N) and a predetermined rotation element exp (-j corresponding to it)
π (2n + 1/2) / 2M) to find the real part of the multiplication result
By doing so, even-numbered third intermediate data y1 (n)
Value, and the output z (M / 2-1-) of the FFT execution means.
n) conjugate complex number z 2(M / 2-1-n) and it
Corresponding predetermined rotation element exp (-jπ · (2n + 3 /
2) / 2M) to obtain the real part of the result of multiplication
3rd intermediate data y1 (n) to obtain the odd-numbered value of the third
The intermediate data generator and the third intermediate data are provided twice
Expanding part that uses and arranges in a predetermined order, or reverses the negative sign
And are equipped with.

【0013】[0013]

【作用】本発明の構成によれば、MDCTの順変換及び
逆変換の計算において、ベクトルx(n)やベクトルX
(k)とコサイン係数マトリクスとのマトリクス乗算を
実行する代わりに、余弦関数の対称性を巧妙に利用し
て、高速フーリエ変換のアルゴリズムが利用できるよう
に計算手順を構成し、さらに高速フーリエ変換に供され
るサンプルの数も半減しているので、計算手順を大幅に
効率化することができる。
According to the configuration of the present invention, the vector x (n) and the vector X are calculated in the calculation of the forward transform and the inverse transform of MDCT.
Instead of performing the matrix multiplication of (k) and the cosine coefficient matrix, the calculation procedure is configured so that the fast Fourier transform algorithm can be used by skillfully utilizing the symmetry of the cosine function, and further the fast Fourier transform is performed. Since the number of samples provided is halved, the calculation procedure can be greatly streamlined.

【0014】[0014]

【実施例】始めにMDCTの順変換に対する高速計算法
を説明する。MDCTの定義式は次式で表現できる。こ
こに、x(n)は入力サンプル、X(k)はk番目のス
ペクトルである。
DESCRIPTION OF THE PREFERRED EMBODIMENTS First, a high speed calculation method for MDCT forward transform will be described. The definition formula of MDCT can be expressed by the following formula. Where x (n) is the input sample and X (k) is the kth spectrum.

【0015】[0015]

【数5】 [Equation 5]

【0016】図1は本発明によるMDCT順変換の高速
計算法の流れを示している。図1のステップ1では、次
式に従ってx(n)からx2(n)を求めている。
FIG. 1 shows the flow of a high-speed calculation method of MDCT forward transform according to the present invention. In step 1 of FIG. 1, x2 (n) is calculated from x (n) according to the following equation.

【0017】[0017]

【数6】 [Equation 6]

【0018】このことについて説明する。まず、コサイ
ンの対称性を利用するためにx(n)の順序及び負号を
変換して、次式のようにx1(n)を定義する。
This will be described. First, in order to utilize the cosine symmetry, the order of x (n) and the negative sign are converted, and x1 (n) is defined as in the following equation.

【0019】[0019]

【数7】 [Equation 7]

【0020】このx1(n)を用いて(数3)を書き直
すと次式となる。
Rewriting (Equation 3) using this x1 (n) gives the following equation.

【0021】[0021]

【数8】 [Equation 8]

【0022】ここで(数7)の操作は図3のように表せ
る。図3では数列x(n)を4つの部分に分割してい
る。Aの部分はx(n)の0≦n≦M/2−1の部分で
あり、BはM/2≦n≦M−1の部分であり、CはM≦
n≦3M/2−1の部分であり、Dは3M/2≦n≦2
M−1の部分である。(数7)では、図3のABCの部
分はM/2サンプル分後ろへシフトする。また、x
(n)のDの部分は負号反転して、x(n)の先頭に配
置する。このようにすることによって、(数5)のコサ
イン項の中のM/2を消去している。つぎにコサイン関
数の対称性により(数8)を書き換えて、
The operation of (Equation 7) can be expressed as shown in FIG. In FIG. 3, the sequence x (n) is divided into four parts. The part A is 0 ≦ n ≦ M / 2−1 of x (n), the part B is M / 2 ≦ n ≦ M−1, and the part C is M ≦.
n ≦ 3M / 2−1, and D is 3M / 2 ≦ n ≦ 2
It is the part of M-1. In (Equation 7), the portion ABC in FIG. 3 is shifted backward by M / 2 samples. Also, x
The sign D of (n) is inverted by the negative sign and placed at the beginning of x (n). By doing so, M / 2 in the cosine term of (Equation 5) is eliminated. Next, rewriting (Equation 8) according to the symmetry of the cosine function,

【0023】[0023]

【数9】 [Equation 9]

【0024】ここで、Here,

【0025】[0025]

【数10】 [Equation 10]

【0026】としてまとめると、When summarized as

【0027】[0027]

【数11】 [Equation 11]

【0028】と表すことができる。但しRe[x]はx
の実数部を意味する。ここで(数7)と(数10)をま
とめることにより、図4に示すように(数6)が導かれ
る。図4ではnの各区間毎にx1(2n)と、x1(2
M−1−2n)が示されており、各区間毎に、x2
(n)=x1(2n)−x1(2M−1−2n)が示さ
れている。例えば、nが0≦n≦M/4−1の範囲であ
れば、x1(2n)=−x(3M/2+2n)であり、
x1(2M−1−2n)=x(3M/2−1−2n)で
あるので、x2(n)=x1(2n)−x1(2M−1
−2n)=−x(3M/2+2n)−x(3M/2−1
−2n)である。
It can be expressed as However, Re [x] is x
Means the real part of. Here, by combining (Equation 7) and (Equation 10), (Equation 6) is derived as shown in FIG. In FIG. 4, x1 (2n) and x1 (2n) for each section of n.
M-1-2n) is shown, and for each section, x2
(N) = x1 (2n) -x1 (2M-1-2n) is shown. For example, when n is in the range of 0 ≦ n ≦ M / 4−1, x1 (2n) = − x (3M / 2 + 2n),
Since x1 (2M-1-2n) = x (3M / 2-1-2n), x2 (n) = x1 (2n) -x1 (2M-1)
-2n) =-x (3M / 2 + 2n) -x (3M / 2-1)
-2n).

【0029】つぎに、(数11)の累和Σに続く項をX
2(k)とすると、
Next, the term following the cumulative sum Σ of (Equation 11) is X.
2 (k)

【0030】[0030]

【数12】 [Equation 12]

【0031】累和の範囲n=0〜M−1を、n=0〜M
/2−1とn=M/2〜M−1とに分割して書き直し、
更にkを2kに置き換えて、
The range of cumulative sum n = 0 to M-1, n = 0 to M
/ 2-1 and n = M / 2 to M-1 and rewrite,
Replace k with 2k,

【0032】[0032]

【数13】 [Equation 13]

【0033】ここで、Here,

【0034】[0034]

【数14】 [Equation 14]

【0035】とおくと、X2(2k)はPutting this, X2 (2k) is

【0036】[0036]

【数15】 [Equation 15]

【0037】と表せる。ここにDFT[x]はxの離散
フーリエ変換である。従って、図1におけるステップ2
では、ステップ1で求めたx2(n)から、複素数z
(n)を求めている。そして続くステップ3では高速フ
ーリエ変換のアルゴリズムを用いて、z(n)の離散フ
ーリエ変換を実行してZ(k)を求めている。
Can be expressed as Where DFT [x] is the discrete Fourier transform of x. Therefore, step 2 in FIG.
Then, from x2 (n) obtained in step 1, the complex number z
Seeking (n). Then, in the subsequent step 3, the fast Fourier transform algorithm is used to execute the discrete Fourier transform of z (n) to obtain Z (k).

【0038】また、X2(M−1−k)=X2*(k)
の関係より、X2(2k+1)は次式より求められる。
但し*は複素共役を表す。
Further, X2 (M-1-k) = X2 * (k)
From the relationship of, X2 (2k + 1) is calculated by the following equation.
However, * represents a complex conjugate.

【0039】[0039]

【数16】 [Equation 16]

【0040】ここで、(数15),(数16)を用いて
(数11)を書き改めると、
Here, by rewriting (Equation 11) using (Equation 15) and (Equation 16),

【0041】[0041]

【数17】 [Equation 17]

【0042】[0042]

【数18】 [Equation 18]

【0043】となり、図1ののステップ4によって、X
(k)がZ(k)から求められる。以上をまとめると、
MDCTは図1に示されるように、以下のステップで効
率的に計算できる。
Then, in step 4 of FIG. 1, X
(K) is obtained from Z (k). To summarize the above,
The MDCT can be efficiently calculated in the following steps, as shown in FIG.

【0044】[0044]

【数19】 [Formula 19]

【0045】図6は、図1に示したMDCTの順変換の
ステップを実行する装置のブロック図である。図6にお
いて第1の中間データ発生部1は、入力データx(n)
から、(数6)のようなx2(n)を計算して出力す
る。第2の中間データ発生部2は第1の中間データ発生
部1の出力したx2(n)から(数14)を計算してz
(n)を出力する。FFT実行部3は、第2の中間デー
タ発生部2の出力したz(n)に対して高速フーリエ変
換を実行して結果をZ(k)として出力する。展開部4
はFFT実行部3の出力Z(k)から、(数17)及び
(数18)に従ってX(k)を計算する。この展開部4
の出力を入力x(n)のMDCTとしているのである。
FIG. 6 is a block diagram of an apparatus for executing the steps of MDCT forward transform shown in FIG. In FIG. 6, the first intermediate data generator 1 receives the input data x (n)
Then, x2 (n) as in (Equation 6) is calculated and output. The second intermediate data generation unit 2 calculates z from the x2 (n) output from the first intermediate data generation unit 1 to obtain z.
(N) is output. The FFT execution unit 3 executes fast Fourier transform on z (n) output by the second intermediate data generation unit 2 and outputs the result as Z (k). Development unit 4
Calculates X (k) from the output Z (k) of the FFT execution unit 3 according to (Expression 17) and (Expression 18). This development part 4
Is used as the MDCT of the input x (n).

【0046】つぎに、MDCTの逆変換について説明す
る。逆変換も、先に述べた順変換と類似の手順で計算す
ることができる。MDCTの逆変換は次式で表される。
但し、X(k)はMDCTのスペクトルであり、y
(n)は変換によって得られたサンプル列である。
Next, the inverse transform of MDCT will be described. The inverse transformation can also be calculated by a procedure similar to the forward transformation described above. The inverse transform of MDCT is expressed by the following equation.
However, X (k) is the spectrum of MDCT, and y
(N) is a sample sequence obtained by the conversion.

【0047】[0047]

【数20】 [Equation 20]

【0048】コサイン関数の対称性を利用するために、
y1(n)をつぎのように定義する。
To take advantage of the symmetry of the cosine function,
Define y1 (n) as follows.

【0049】[0049]

【数21】 [Equation 21]

【0050】(数16)より、y1(n)はつぎのよう
に表現できる。
From (Equation 16), y1 (n) can be expressed as follows.

【0051】[0051]

【数22】 [Equation 22]

【0052】ここで、U(k)を次式のように定義す
る。
Here, U (k) is defined by the following equation.

【0053】[0053]

【数23】 [Equation 23]

【0054】(数23)を用いて(数22)を書き直す
と、
Rewriting (Equation 22) using (Equation 23),

【0055】[0055]

【数24】 [Equation 24]

【0056】(数24)は、2/Mが掛けられていない
以外は(数11)と同じ形をしている。従って、(数2
4)の計算は、(数11)を用いたMDCTの順変換と
同様な計算手法を用いることができる。このとき(数2
0)で定義された2M個のY1(n)のうち、0≦n≦
M−1のM個のみが求まるが、(数22)から、導かれ
るように、y1(n)=−y(2M−1−n)なる関係
があるので、図5に示すように、M≦n≦2M−1のy
1(n)は、0≦n≦M−1のy1(n)より直ちに求
められる。即ち図5のy1(n)の0≦n≦M−1にあ
るA,B,C,Dは、M≦n≦2M−1に負号反転の
後、複写され−D,−C,−B,−Aとして求められ
る。故に、(数21)を考え合わせると、結局y(n)
はy1(n)からつぎのようにして求められる。即ち、
(Equation 24) has the same form as (Equation 11) except that it is not multiplied by 2 / M. Therefore, (Equation 2
The calculation of 4) can use the same calculation method as the forward transform of MDCT using (Equation 11). At this time (Equation 2
0) of 2M Y1 (n) defined in 0)
Only M of M−1 are obtained, but since there is a relation of y1 (n) = − y (2M−1−n) as derived from (Equation 22), as shown in FIG. ≤n≤2M-1 y
1 (n) is immediately obtained from y1 (n) with 0 ≦ n ≦ M−1. That is, A, B, C and D in 0 ≦ n ≦ M−1 of y1 (n) in FIG. 5 are copied to M ≦ n ≦ 2M−1 after negative sign inversion and −D, −C, −. It is calculated as B, -A. Therefore, considering (Equation 21), y (n)
Is calculated from y1 (n) as follows. That is,

【0057】[0057]

【数25】 [Equation 25]

【0058】以上述べてきたことをまとめるとMDCT
の逆変換は図2に示すように、つぎのステップで求める
ことができる。
Summarizing what has been described above, MDCT
The inverse transformation of can be obtained in the next step, as shown in FIG.

【0059】[0059]

【数26】 [Equation 26]

【0060】[0060]

【数27】 [Equation 27]

【0061】[0061]

【数28】 [Equation 28]

【0062】[0062]

【数29】 [Equation 29]

【0063】[0063]

【数30】 [Equation 30]

【0064】図7は、図2に示したMDCTの逆変換の
ステップを実行する装置のブロック図である。図7にお
いて第1の中間データ発生部5は、入力データX(k)
から、(数23)に表現されるU(k)を計算して出力
する。第2の中間データ発生部6は第1の中間データ発
生部5の出力したU(k)から(数27)を計算してZ
(k)を出力する。FFT実行部7は、第2の中間デー
タ発生部6の出力したZ(k)に対して高速フーリエ変
換を実行して結果をz(n)として出力する。第3の中
間データ発生部8はFFT実行部7の出力z(n)か
ら、(数29)を実行して第3の中間データであるy1
(n)を求めて出力する。展開部9は第3の中間データ
発生部8の出力y1(n)を、(数30)に従って並べ
変え、或いは負号反転してy(n)を求めて出力する。
この展開部9の出力を入力データX(k)のMDCT逆
変換とする。
FIG. 7 is a block diagram of an apparatus for performing the steps of inverse transform of MDCT shown in FIG. In FIG. 7, the first intermediate data generator 5 receives the input data X (k)
From, the U (k) expressed in (Equation 23) is calculated and output. The second intermediate data generator 6 calculates (Equation 27) from U (k) output by the first intermediate data generator 5, and Z
Output (k). The FFT execution unit 7 executes fast Fourier transform on Z (k) output from the second intermediate data generation unit 6 and outputs the result as z (n). The third intermediate data generation unit 8 executes (Equation 29) from the output z (n) of the FFT execution unit 7 to generate y1 which is the third intermediate data.
(N) is calculated and output. The expansion unit 9 rearranges the output y1 (n) of the third intermediate data generation unit 8 according to (Equation 30) or inverts the negative sign to obtain y (n) and outputs it.
The output of the expansion unit 9 is the MDCT inverse transform of the input data X (k).

【0065】以上、述べてきたようにMDCTの順変換
及び逆変換は、本発明を用いて効率的に計算することが
できる。
As described above, the forward transform and inverse transform of MDCT can be efficiently calculated using the present invention.

【0066】[0066]

【発明の効果】例えば(数5)において、M=256と
すれば、MDCTの順変換において必要な乗算回数は、
512×256=131072回、加算回数は511×
256=130816回となり、膨大な計算が必要であ
る。しかし本発明の高速計算法によれば、MDCTの順
変換における各ステップに必要な演算回数はつぎのよう
になる。
For example, if M = 256 in (Equation 5), the number of multiplications required in the forward transform of MDCT is
512 × 256 = 131072 times, the number of additions is 511 ×
This is 256 = 130816 times, which requires a huge amount of calculation. However, according to the high-speed calculation method of the present invention, the number of operations required for each step in MDCT forward transform is as follows.

【0067】(ステップ1の演算回数)加算 M=25
6回 (ステップ2の演算回数)複素数どうしのかけ算である
ので、実数部と虚数部それぞれを求めるのに、M回の乗
算とM/2回の加算が必要。従って、 加算 M=256回 乗算 2M=512回 (ステップ3の演算回数)M/2点のFFTは、(M/
2)・log2M回のバタフライ演算を要する。従って
M=256では、1024回のバタフライ演算が必要で
ある。1回のバタフライ演算には2回の複素加算と1回
の複素乗算が含まれるので、これは実数演算に直すと加
算6回と乗算4回であるので、総計としては、 加算 1024×6=6144回 乗算 1024×4=4096回 (ステップ4の演算回数)(2/M)A0(k)〜(2
/M)A3(k)は、予め計算しテーブルとして用意で
きるので1つのX(k)に対しては、乗算2回と加算1
回が必要である。従って、 加算 256回 乗算 512回 これらを計算すると、MDCTの順変換として必要な計
算量は、加算が6912回、乗算が5120回となり、
乗算及び加算ともに演算回数が約25分の1に削減され
る。MDCTの逆変換においても同様に大幅に演算回数
が削減される。
(Calculation count in step 1) Addition M = 25
6 times (the number of operations in step 2) Since it is a multiplication of complex numbers, M times of multiplication and M / 2 times of addition are required to obtain each of the real number part and the imaginary number part. Therefore, addition M = 256 times multiplication 2M = 512 times (the number of calculations in step 3) The FFT of M / 2 points is (M /
2) ・ Log 2 M butterfly calculations are required. Therefore, M = 256 requires 1024 butterfly calculations. Since one butterfly operation includes two complex additions and one complex multiplication, this is 6 additions and four multiplications when converted to a real number operation, so the total is 1024 × 6 = additions. 6144 times Multiplication 1024 × 4 = 4096 times (number of calculations in step 4) (2 / M) A0 (k) to (2
/ M) A3 (k) can be calculated in advance and prepared as a table, so for one X (k), two multiplications and one addition
Needs times. Therefore, when these are calculated as 256 additions and 512 multiplications, the amount of calculation required for the forward transform of MDCT is 6912 additions and 5120 multiplications.
The number of operations for both multiplication and addition is reduced to about 1/25. Similarly, in the inverse transform of MDCT, the number of calculations is greatly reduced.

【0068】このように本発明によれば、MDCTの計
算を非常に効率よく実行することができる。
As described above, according to the present invention, the MDCT calculation can be executed very efficiently.

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

【図1】本発明の実施例のMDCTの順変換計算手順流
れ図
FIG. 1 is a flowchart of a forward transform calculation procedure of MDCT according to an embodiment of the present invention.

【図2】本発明の実施例のMDCTの逆変換計算手順流
れ図
FIG. 2 is a flow chart of an inverse transform calculation procedure of MDCT according to the embodiment of the present invention.

【図3】(数7)の説明図FIG. 3 is an explanatory diagram of (Equation 7).

【図4】(数6)の説明図FIG. 4 is an explanatory diagram of (Equation 6).

【図5】(数30)の説明図FIG. 5 is an explanatory diagram of (Equation 30).

【図6】本発明の実施例のMDCTの順変換装置のブロ
ック図
FIG. 6 is a block diagram of an MDCT forward transform device according to an embodiment of the present invention.

【図7】本発明の実施例のMDCTの逆変換装置のブロ
ック図
FIG. 7 is a block diagram of an MDCT inverse transform device according to an embodiment of the present invention.

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

1 第1の中間データ発生部 2 第2の中間データ発生部 3 FFT実行部 4 展開部 5 第1の中間データ発生部 6 第2の中間データ発生部 7 FFT実行部 8 第3の中間データ発生部 9 展開部 1 1st intermediate data generation part 2 2nd intermediate data generation part 3 FFT execution part 4 expansion part 5 1st intermediate data generation part 6 2nd intermediate data generation part 7 FFT execution part 8 3rd intermediate data generation Department 9 Development Department

───────────────────────────────────────────────────── フロントページの続き (72)発明者 笠原 哲志 大阪府門真市大字門真1006番地 松下電器 産業株式会社内 ─────────────────────────────────────────────────── ─── Continuation of the front page (72) Inventor Satoshi Kasahara 1006 Kadoma, Kadoma City, Osaka Prefecture Matsushita Electric Industrial Co., Ltd.

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】 2M点の入力サンプルデータx(n)
(0≦n≦2M−1)の、特定の2点どうしの組み合わ
せを加算または減算し、或いは負号反転して、M点の第
1の中間データx2(n)(0≦n≦M−1)を得る第
1の中間データ発生部と、上記中間データx2(n)を
前半と後半に区分し、前半のx2(n)を実数部とする
と同時に後半のx2(n+M/2)の負号を反転して虚
数部とし、更にexp(−jπn/M)をかけ算して、
M/2個の第2の中間データz(n)(0≦n≦M/2
−1)を得る第2の中間データ発生部と、上記第2の中
間データz(n)に高速フーリエ変換を施してM/2個
のフーリエ係数Z(k)(0≦k≦M/2−1)を得る
FFT実行部と、FFT実行手段の出力Z(k)と、そ
れに対応する所定の回転要素との乗算結果の実数部を求
めることで、入力データx(n)の偶数番目のスペクト
ルを得、また、FFT実行手段の出力Z(k)の共役複
素数Z*(M/2−1−k)と、それに対応する所定の
回転要素との乗算結果の実数部を求めることで、入力デ
ータx(n)の奇数番目のスペクトルを出力する展開部
とを備えてなる修正余弦変換装置。
1. Input sample data x (n) at 2M points
The first intermediate data x2 (n) (0 ≦ n ≦ M−) at M points is added or subtracted or the sign is inverted for a specific combination of two points (0 ≦ n ≦ 2M−1). 1) which obtains 1) and the above intermediate data x2 (n) is divided into the first half and the second half, and the first half x2 (n) is used as the real part, and at the same time, the second half x2 (n + M / 2) is negative Signal is inverted to the imaginary part, and then multiplied by exp (-jπn / M),
M / 2 second intermediate data z (n) (0 ≦ n ≦ M / 2
−1) and a second intermediate data generator z, and fast Fourier transform is performed on the second intermediate data z (n) to obtain M / 2 Fourier coefficients Z (k) (0 ≦ k ≦ M / 2 −1) to obtain the real part of the multiplication result of the FFT execution unit, the output Z (k) of the FFT execution means, and the predetermined rotation element corresponding to the output Z (k). By obtaining a spectrum and obtaining the real part of the multiplication result of the conjugate complex number Z * (M / 2−1−k) of the output Z (k) of the FFT execution means and the corresponding predetermined rotation element, A modified cosine transform device, comprising: an expansion unit that outputs an odd-numbered spectrum of input data x (n).
【請求項2】 M個の入力スペクトルデータX(k)
(0≦k≦M−1)の、偶数番目のデータをM個の第1
の中間データU(k)(0≦k≦M−1)の前半(0≦
k≦M/2−1)に配置し、奇数番目のデータを負号反
転し、更に順序を反転した後、前記第1の中間データU
(k)の後半(M/2≦k≦M−1)に配置する第1の
中間データ発生部と、前記第1の中間データU(k)を
前半と後半に区分し、前半のU(k)を実数部とすると
同時に後半のU(k+M/2)の負号を反転して虚数部
とし、更にexp(−jπk/M)をかけ算して、M/
2個の第2の中間データZ(k)(0≦k≦M/2−
1)を得る第2の中間データ発生部と、上記第2の中間
データZ(k)に高速フーリエ変換を施してM/2個の
フーリエ係数z(n)(0≦n≦M/2−1)を得るF
FT実行部と、FFT実行手段の出力z(n)と、それ
に対応する所定の回転要素exp(−jπ(2n+1/
2)/2M)との乗算結果の実数部を求めることで、第
3の中間データy1(n)の偶数番目の値を得、また、
FFT実行手段の出力z(M/2−1−n)の共役複素
数z*(M/2−1−n)と、それに対応する所定の回
転要素exp(−jπ・(2n+3/2)/2M)との
乗算結果の実数部を求めることで、第3の中間データy
1(n)の奇数番目の値を得る第3の中間データ発生部
と、前記第3の中間データを2度ずつ使用して所定の順
序に並べ、或いは負号反転する展開部とを備えてなる修
正余弦変換の逆変換装置。
2. M pieces of input spectrum data X (k)
The even-numbered data of (0 ≦ k ≦ M−1) is converted into M first data.
Intermediate data U (k) (0 ≦ k ≦ M−1) of the first half (0 ≦
k ≦ M / 2-1), the odd-numbered data is negative-inverted, the order is further inverted, and then the first intermediate data U
The first intermediate data generation unit arranged in the second half (M / 2 ≦ k ≦ M−1) of (k) and the first intermediate data U (k) are divided into the first half and the second half, and the first half U ( k) is the real part, and at the same time, the negative sign of U (k + M / 2) in the latter half is inverted to form the imaginary part, and then exp (-jπk / M) is multiplied to obtain
Two pieces of second intermediate data Z (k) (0 ≦ k ≦ M / 2−
1) and the second intermediate data Z (k) are subjected to fast Fourier transform to obtain M / 2 Fourier coefficients z (n) (0 ≦ n ≦ M / 2− F) to get 1)
The output z (n) of the FT execution unit and the FFT execution unit and a predetermined rotation element exp (-jπ (2n + 1 /
2) / 2M) to obtain the real part of the multiplication result to obtain an even-numbered value of the third intermediate data y1 (n), and
A conjugate complex number z * (M / 2-1-n) of the output z (M / 2-1-n) of the FFT execution means and a predetermined rotation element exp (-jπ · (2n + 3/2) / 2M corresponding thereto. ) And the real part of the multiplication result, the third intermediate data y
A third intermediate data generating unit for obtaining an odd-numbered value of 1 (n); and a developing unit for arranging the third intermediate data twice in a predetermined order or inverting the negative sign. An inverse transform device for modified cosine transform.
【請求項3】 修正離散余弦変換(MDCTと略す)の
計算において、つぎの各ステップを実行することにより
該変換を行うことを特徴とした修正離散余弦変換方法。 【数1】
3. A modified discrete cosine transform method characterized by performing the following steps in a modified discrete cosine transform (abbreviated as MDCT) calculation. [Equation 1]
【請求項4】 修正離散余弦変換(MDCTと略す)の
逆変換計算において、つぎの各ステップを実行すること
により該逆変換を行うことを特徴とした修正離散余弦変
換の逆変換方法。 【数2】
4. An inverse transform method of modified discrete cosine transform (Abbreviated as MDCT) in which inverse transform is performed by executing the following steps. [Equation 2]
JP5019911A 1993-02-08 1993-02-08 Modified discrete cosine transform and inverse transform method and apparatus Expired - Fee Related JP3060767B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP5019911A JP3060767B2 (en) 1993-02-08 1993-02-08 Modified discrete cosine transform and inverse transform method and apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP5019911A JP3060767B2 (en) 1993-02-08 1993-02-08 Modified discrete cosine transform and inverse transform method and apparatus

Publications (2)

Publication Number Publication Date
JPH06232824A true JPH06232824A (en) 1994-08-19
JP3060767B2 JP3060767B2 (en) 2000-07-10

Family

ID=12012401

Family Applications (1)

Application Number Title Priority Date Filing Date
JP5019911A Expired - Fee Related JP3060767B2 (en) 1993-02-08 1993-02-08 Modified discrete cosine transform and inverse transform method and apparatus

Country Status (1)

Country Link
JP (1) JP3060767B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2000057399A1 (en) * 1999-03-19 2000-09-28 Sony Corporation Additional information embedding method and its device, and additional information decoding method and its decoding device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2000057399A1 (en) * 1999-03-19 2000-09-28 Sony Corporation Additional information embedding method and its device, and additional information decoding method and its decoding device
US7299189B1 (en) 1999-03-19 2007-11-20 Sony Corporation Additional information embedding method and it's device, and additional information decoding method and its decoding device

Also Published As

Publication number Publication date
JP3060767B2 (en) 2000-07-10

Similar Documents

Publication Publication Date Title
JP4396233B2 (en) Complex exponential modulation filter bank signal analysis method, signal synthesis method, program thereof, and recording medium thereof
Goodwin et al. Matching pursuit and atomic signal models based on recursive filter banks
Portnoff Time-frequency representation of digital signals and systems based on short-time Fourier analysis
Yegnanarayana et al. Significance of group delay functions in signal reconstruction from spectral magnitude or phase
Balazs et al. Theory, implementation and applications of nonstationary Gabor frames
Dugré et al. Generating covariance sequences and the calculation of quantization and rounding error variances in digital filters
Gao et al. A study of two-channel complex-valued filterbanks and wavelets with orthogonality and symmetry properties
JPH06232824A (en) Correcting discrete cosine transformation, inverse transforming method and its device
Kozuka et al. Investigation on wavelet basis function of DNN-based time domain audio source separation inspired by multiresolution analysis
Smith The fast fourier transform
US20080307026A1 (en) Memory Address Generating Method and Twiddle Factor Generator Using the Same
Palani Digital signal processing
Feichtinger Sampling via the Banach Gelfand Triple
Cooley et al. The 1968 Arden House workshop on fast Fourier transform processing
Marelli et al. An efficient time–frequency method for synthesizing noisy sounds with short transients and narrow spectral components
JP2007228349A (en) Sampling frequency converting method, its program, and its recording medium
Rajmic et al. New generalized projection speeds up audio declipping
Bistritz et al. Immittance-versus scattering-domain fast algorithms for non-Hermitian Toeplitz and quasi-Toeplitz matrices
Campbell et al. Design of a class of multirate systems using a maximum relative/spl Lscr//sup 2/-error criterion
Anand Digital Signal Processing: An Introduction
JPH0391303A (en) Sine wave generator
Lopes et al. Signal reconstruction from the reassigned spectrogram
KR19990014716A (en) Decomposition / Synthesis Filtering System with Efficient Radix Stack Single-sided Filter Bank Using Time Domain Aliasing Cancellation
CN118038883A (en) Audio repair method, device, program, medium, and apparatus
JPH0219478B2 (en)

Legal Events

Date Code Title Description
FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080428

Year of fee payment: 8

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

Free format text: PAYMENT UNTIL: 20090428

Year of fee payment: 9

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

Free format text: PAYMENT UNTIL: 20100428

Year of fee payment: 10

LAPS Cancellation because of no payment of annual fees