JP3458942B2 - Digital signal decoding method - Google Patents

Digital signal decoding method

Info

Publication number
JP3458942B2
JP3458942B2 JP14188598A JP14188598A JP3458942B2 JP 3458942 B2 JP3458942 B2 JP 3458942B2 JP 14188598 A JP14188598 A JP 14188598A JP 14188598 A JP14188598 A JP 14188598A JP 3458942 B2 JP3458942 B2 JP 3458942B2
Authority
JP
Japan
Prior art keywords
unit
value
scale
decoding
scaling
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
JP14188598A
Other languages
Japanese (ja)
Other versions
JPH11340834A (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.)
Sharp Corp
Original Assignee
Sharp Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Sharp Corp filed Critical Sharp Corp
Priority to JP14188598A priority Critical patent/JP3458942B2/en
Publication of JPH11340834A publication Critical patent/JPH11340834A/en
Application granted granted Critical
Publication of JP3458942B2 publication Critical patent/JP3458942B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、符号化されたディ
ジタル信号を復号するためのディジタル信号の復号化方
法に関し、特に、復号のための演算処理における被演算
値に、スケーリングを施す工程を含むディジタル信号の
復号化方法に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a method for decoding a digital signal for decoding an encoded digital signal, and more particularly, it includes a step of scaling an operand value in an arithmetic operation for decoding. The present invention relates to a method for decoding a digital signal.

【0002】[0002]

【従来の技術】従来より、固定小数点表示を採用してい
るディジタル信号処理装置(DSP;digital signal p
rocessor)における符号化技術として、ブロックフロー
ティング技術が知られている。この技術は、所定時間や
所定ワード数毎にディジタル信号をブロック化し、ブロ
ック単位でフローティング処理を行うものである。
2. Description of the Related Art Conventionally, a digital signal processing device (DSP; digital signal
A block floating technique is known as an encoding technique for rocessor. In this technique, a digital signal is divided into blocks for a predetermined time or a predetermined number of words, and floating processing is performed in block units.

【0003】また、入力された時間軸上のディジタル信
号に対して直交変換を施し、周波数軸上のスペクトラム
データに変換して符号化を行う、直交変換符号化と呼ば
れる符号化技術も知られている。
An encoding technique called orthogonal transform encoding is also known in which an inputted digital signal on the time axis is subjected to orthogonal transformation, converted into spectrum data on the frequency axis and encoded. There is.

【0004】さらに、この直交変換符号化を行う前に、
ディジタル信号に対して上記したブロックフローティン
グ技術を施しておくことで、直交変換されるディジタル
信号のビット数を減少させる技術も知られている。そし
て、このような技術は、例えば、特開平4−30254
0号公報に開示されている。
Further, before performing this orthogonal transform coding,
A technique is also known in which the block floating technique described above is applied to a digital signal to reduce the number of bits of the digital signal that is orthogonally transformed. And such a technique is disclosed in, for example, Japanese Patent Application Laid-Open No. 4-30254
No. 0 publication.

【0005】この公報に記載の構成では、直交変換の際
に行なわれるブロックフローティングにおけるブロック
長が可変となっている。そして、この構成では、ブロッ
ク長を決定するための演算量を低減するために、ブロッ
ク長とブロックフローティング係数とが、ディジタル信
号の同一の指標、例えば信号の最大絶対値等、に基づい
て決定されるようになっている。
In the structure described in this publication, the block length in the block floating performed at the time of orthogonal transformation is variable. Then, in this configuration, in order to reduce the amount of calculation for determining the block length, the block length and the block floating coefficient are determined based on the same index of the digital signal, for example, the maximum absolute value of the signal. It has become so.

【0006】また、特開平6−164414号公報に
は、ディジタル信号のビット数の減少に起因する演算誤
差を低減するための構成が開示されている。すなわち、
この構成では、ディジタル信号に対して直交変換演算あ
るいは逆直交変換演算が施される際に、スケールダウン
が行われるようになっている。そして、この構成では、
上記各演算における入力データ値と、あらかじめ設定さ
れたスケールダウン判定基準値とが比較され、各演算過
程におけるスケールダウンの有無が判定されるようにな
っている。
Further, Japanese Patent Laid-Open No. 6-164414 discloses a configuration for reducing a calculation error caused by a decrease in the number of bits of a digital signal. That is,
With this configuration, the scale-down is performed when the orthogonal transform calculation or the inverse orthogonal transform calculation is performed on the digital signal. And in this configuration,
The input data value in each calculation is compared with a preset scale-down judgment reference value, and the presence or absence of scale-down in each calculation process is judged.

【0007】また、本願の発明者等は、スケールダウン
の判定時、各計算式の入力データの代わりに、各ユニッ
トのスペクトラムデータの代表値(例えばATRAC音
声符号化および復号化におけるスケールファクタ値)を
用いることによって、判定に要する演算量を低減し、か
つ、スケールダウンの幅を単純なビットシフトよりも細
かい精度で実現することを、特願平9−303002号
において提案している。
[0007] Further, the inventors of the present application, when determining scale down, instead of the input data of each calculation formula, a representative value of the spectrum data of each unit (for example, a scale factor value in ATRAC voice encoding and decoding). It is proposed in Japanese Patent Application No. 9-300002 that the calculation amount required for the determination is reduced and the scale-down width is realized with a finer precision than a simple bit shift by using.

【0008】[0008]

【発明が解決しようとする課題】しかしながら、上記し
た特開平6−164414号公報に記載の構成では、各
演算過程の入力データ列に基づいてスケールアップまた
はスケールダウンを行っているため、入力信号が中〜小
振幅の信号である場合にはある程度の効果があるもの
の、消費電力が多く、携帯用の小型機器には不向きであ
る。
However, in the configuration described in Japanese Patent Laid-Open No. 6-164414 mentioned above, since the scale-up or scale-down is performed based on the input data string of each operation process, the input signal is Although a signal of medium to small amplitude has some effect, it consumes a large amount of power and is not suitable for a small portable device.

【0009】また、特開平4−302540号公報に記
載の構成では、入力信号が大振幅である場合には、特開
平6−164414号公報に記載の構成より少ない演算
量で、同精度の演算結果を導き出すことができる。しか
しながら、入力信号が小振幅である場合には、演算精度
が劣ってしまう。
Further, in the configuration described in Japanese Patent Laid-Open No. 4-302540, when the input signal has a large amplitude, the amount of calculation is smaller than that in the configuration described in Japanese Patent Laid-Open No. 6-164414 and the same precision calculation is performed. The result can be derived. However, when the input signal has a small amplitude, the calculation accuracy becomes poor.

【0010】さらに、これら従来の構成では、入力信号
が無信号や微小信号である場合には、スケールアップお
よびスケールダウンの効果が少ない。従って、スケール
アップまたはスケールダウンを行うための演算量の増加
に見合うだけの、演算精度の改善は期待できない。
Furthermore, in these conventional configurations, the effect of scale-up and scale-down is small when the input signal is a non-signal or a minute signal. Therefore, it is not possible to expect an improvement in calculation accuracy commensurate with an increase in the amount of calculation for scale-up or scale-down.

【0011】本発明は、上記従来の問題点を解決するた
めになされたもので、その目的は、演算量を大きく増加
させることなく精度の高い復号を行うための、ディジタ
ル信号の復号化方法を提供することである。
The present invention has been made to solve the above-mentioned conventional problems, and an object thereof is to provide a digital signal decoding method for performing highly accurate decoding without greatly increasing the amount of calculation. Is to provide.

【0012】[0012]

【課題を解決するための手段】上記の目的を達成するた
めに、本発明の請求項1に記載のディジタル信号の復号
化方法は、時間範囲と周波数領域とによって複数のユニ
ットに分割され、各ユニット毎に設定される指標値に基
づいてユニット毎に符号化されているスペクトラムデー
タを復号するためのディジタル信号の復号化方法におい
て、各ユニットにおける指標値のなかから代表値を検索
する第1の工程と、この代表値に基づいて、復号のため
の演算における被演算値にスケーリングを行うか否かを
判断する第2の工程と、上記第2の工程における判断結
果に基づいて、被演算値にスケーリングを行う第3の工
程とを含むことを特徴としている。
In order to achieve the above object, the method for decoding a digital signal according to claim 1 of the present invention is divided into a plurality of units according to a time range and a frequency domain, and each unit is divided into a plurality of units. In a digital signal decoding method for decoding spectrum data coded for each unit based on an index value set for each unit, a first value is searched from index values in each unit for a representative value. A step, a second step of determining whether or not scaling is performed on the operand value in the operation for decoding based on the representative value, and the operand value based on the determination result in the second step. And a third step of scaling.

【0013】上記の方法では、スペクトラムデータと
は、サンプリングによって得られたディジタル信号に対
してMDCT(modified discrete cosine transform)
処理等を施すことによって得られる、周波数空間におけ
るディジタル信号である。そして、このスペクトラムデ
ータは、所定の時間範囲と、所定の周波数領域とによっ
て、複数のユニットに分割されている。ここで、時間範
囲とは、例えば、ディジタル信号がサンプリングされた
時間の範囲である。
In the above method, the spectrum data means MDCT (modified discrete cosine transform) for a digital signal obtained by sampling.
It is a digital signal in the frequency space obtained by performing processing and the like. Then, this spectrum data is divided into a plurality of units according to a predetermined time range and a predetermined frequency region. Here, the time range is, for example, a range of time when the digital signal is sampled.

【0014】各ユニットには、それぞれ所定数のスペク
トラムデータが属しており、スペクトラムデータは、こ
のユニット毎に符号化されている。そして、このユニッ
ト毎の量子化は、各ユニットにおける指標値に基づいて
行われている。この指標値には、例えば、請求項5に記
載のように、各ユニットに属するスペクトラムデータの
振幅値における最大値が用いられる。
A predetermined number of spectrum data belong to each unit, and the spectrum data is encoded for each unit. Then, the quantization for each unit is performed based on the index value in each unit. As the index value, for example, the maximum value in the amplitude value of the spectrum data belonging to each unit is used as described in claim 5.

【0015】そして、上記の方法では、このようなユニ
ットに分割されたスペクトラムデータを復号する際に、
復号の過程の演算処理におけるオーバーフローを避ける
ため、あるいは、微小な振幅のデータを精度良く復号す
るために、被演算値にスケーリングを施すことができる
ようになっている。被演算値とは、各演算処理における
入力値、すなわち、演算にかかるデータのことである。
なお、スケーリングとは被演算値の振幅値を拡大(スケ
ールアップ)、あるいは縮小(スケールダウン)するこ
とである。
In the above method, when decoding the spectrum data divided into such units,
In order to avoid overflow in the arithmetic processing in the decoding process, or to accurately decode data with a small amplitude, it is possible to perform scaling on the operated value. The calculated value is an input value in each calculation process, that is, data related to the calculation.
Scaling is to enlarge (scale up) or reduce (scale down) the amplitude value of the operand.

【0016】すなわち、まず、第1の工程において、各
ユニットにおける指標値のなかから代表値を検索する。
この代表値としては、例えば、請求項5に記載のよう
に、全指標値における最大値が用いられる。
That is, first, in the first step, a representative value is searched from index values in each unit.
As this representative value, for example, as described in claim 5, the maximum value in all index values is used.

【0017】そして、第2の工程において、この代表値
に基づいて、スケーリングを行うか否かを判断するよう
になっている。そして、この工程の判断結果に基づい
て、第3の工程において、スケーリングを行うようにな
っている。
Then, in the second step, whether or not to perform scaling is determined based on this representative value. Then, scaling is performed in the third step based on the determination result of this step.

【0018】これにより、上記の方法によれば、スケー
リングによって、オーバーフローによる演算誤差を回避
できるとともに、微小振幅のデータを精度良く復号する
ことができる。さらに、スケーリングを行うかどうかを
判断するようになっているので、スケーリングを行う必
要のないデータに対し、スケーリングを行うことがな
い。従って、復号処理における演算量を軽減することが
できる。さらに、この判断が、各ユニットにおける指標
値の代表値に基づいて行われるため、この判断のための
処理量は、非常に少ないものとなっている。このよう
に、上記の方法によれば、演算量を増加させることな
く、ディジタル信号の復号における精度を改善すること
が可能となっている。
Thus, according to the above method, it is possible to avoid an arithmetic error due to overflow by scaling and to decode the data having a minute amplitude with high accuracy. Furthermore, since it is determined whether or not to perform scaling, scaling is not performed on data that does not need to be scaled. Therefore, the amount of calculation in the decoding process can be reduced. Further, since this judgment is made based on the representative value of the index value in each unit, the processing amount for this judgment is very small. As described above, according to the above method, it is possible to improve the accuracy in decoding a digital signal without increasing the calculation amount.

【0019】また、本発明の請求項2に記載のディジタ
ル信号は、請求項1に記載の方法に加えて、スペクトラ
ムデータに対してIMDCT処理を施すIMDCT処理
工程をさらに含み、上記第3の工程は、上記IMDCT
処理の前に、周波数帯域毎に分けられたブロックにおけ
る、各ユニットのスケールファクタの最大値に基づい
て、上記IMDCT処理における演算処理の過程でオー
バーフローが生じないように、被演算値にスケーリング
を行う工程を含むことを特徴としている。 また、本発明
の請求項3に記載のディジタル信号は、請求項1または
2に記載の方法に加えて、上記第3の工程におけるスケ
ーリングのためのスケール量を、上記代表値に基づいて
決定する第4の工程を含むことを特徴としている。
Further, the digital signal according to claim 2 of the present invention, in addition to the method of claim 1, Spectra
IMDCT processing for performing IMDCT processing on system data
Further comprising the steps of:
Before processing, put it in blocks divided by frequency band.
Based on the maximum value of the scale factor of each unit
During the calculation process in the IMDCT process.
Scaling on operands to prevent bar flow
It is characterized by including the step of performing. Also, the present invention
The digital signal according to claim 3 is the signal according to claim 1 or
In addition to the method described in 2, it is characterized by including a fourth step of determining a scale amount for scaling in the third step based on the representative value.

【0020】上記の方法によれば、演算処理の全てのス
ケール量を、代表値に基づいて決定するようになってい
る。このため、スケール量の決定を、非常に簡潔な処理
によって行うことが可能となっている。従って、この方
法によれば、請求項1に記載のディジタル信号の復号化
方法を容易に実現することができるとともに、演算量を
さらに削減することができる。
According to the above method, all scale amounts of the arithmetic processing are determined based on the representative value. Therefore, the scale amount can be determined by a very simple process. Therefore, according to this method, the decoding method of the digital signal according to the first aspect can be easily realized, and the amount of calculation can be further reduced.

【0021】また、本発明の請求項に記載のディジタ
ル信号の復号化方法は、請求項1または2に記載の方法
に加えて、上記第3の工程におけるスケーリングのため
のスケール量を、上記演算における被演算値に基づいて
決定する第5の工程を含むことを特徴としている。
According to a fourth aspect of the present invention, in addition to the method according to the first or second aspect , the method for decoding a digital signal is characterized in that the scale amount for scaling in the third step is It is characterized in that it includes a fifth step of making a decision based on a value to be calculated in the calculation.

【0022】上記の方法によれば、演算処理におけるス
ケール量を、各演算処理の入力データである被演算値に
基づいて決定するようになっている。このため、各演算
処理において、最適なスケーリングを被演算値に施すこ
とができるようになっている。従って、この方法によれ
ば、ディジタル信号の復号の精度を、非常に高くするこ
とができる。
According to the above method, the scale amount in the arithmetic processing is determined based on the operated value which is the input data of each arithmetic processing. Therefore, in each calculation process, optimum scaling can be applied to the calculated value. Therefore, according to this method, the accuracy of decoding the digital signal can be made extremely high.

【0023】また、請求項に記載のディジタル信号の
復号化方法は、請求項1または2に記載の方法に加え
て、上記第3の工程におけるスケーリングのためのスケ
ール量を、上記代表値に基づいて決定するか、あるい
は、上記演算における被演算値に基づいて決定するかを
判断し、判断結果に基づいて、上記スケール量を決定す
る第6の工程を含むことを特徴としている。
According to a fifth aspect of the present invention, in addition to the method according to the first or second aspect , the digital signal decoding method uses a scale amount for scaling in the third step as the representative value. It is characterized by including a sixth step of determining whether to determine based on the result of the determination, based on the result of the determination.

【0024】上記の方法によれば、代表値に基づいてス
ケール量を決定するか、あるいは、被演算値に基づい
て、各演算処理においてスケール量を決定するかを、第
6の工程において判断するようになっている。そして、
この判断は、代表値に基づいて行われるようになってい
る。
According to the above method, it is determined in the sixth step whether the scale amount is determined based on the representative value or the scale amount is determined in each calculation process based on the calculated value. It is like this. And
This judgment is made based on the representative value.

【0025】従って、この方法によれば、復号にかかる
スペクトラムデータに応じて、スケール量の決定方法を
判断するので、スペクトラムデータの特性に応じて、最
適なスケーリングを行うことができるようになってい
る。さらに、この判断が、代表値を用いて行われるの
で、この判断のための演算処理量が非常に少ないものと
なっている。従って、上記の方法によれば、演算量を増
加させることなく、最適なスケーリングを行うことが可
能となる。
Therefore, according to this method, the method of determining the scale amount is determined according to the spectrum data to be decoded, so that the optimum scaling can be performed according to the characteristic of the spectrum data. There is. Furthermore, since this judgment is made using the representative value, the amount of calculation processing for this judgment is very small. Therefore, according to the above method, it is possible to perform optimal scaling without increasing the amount of calculation.

【0026】また、本発明の請求項に記載のディジタ
ル信号の復号化方法は、請求項1〜のいずれかに記載
のディジタル信号の復号化方法において、上記指標値
が、各ユニットにおけるスペクトラムデータの最大の振
幅値であるとともに、上記代表値が、全ユニットの指標
値における最大値であることを特徴としている。
A decoding method for a digital signal according to a sixth aspect of the present invention is the method for decoding a digital signal according to any one of the first to fifth aspects, wherein the index value is a spectrum in each unit. In addition to the maximum amplitude value of the data, the representative value is a maximum value among the index values of all units.

【0027】上記の構成によれば、代表値が、スペクト
ラムデータの振幅値における最大値となる。従って、こ
の代表値に基づいてスケーリングを行うようになるの
で、スケーリングの際に、演算処理におけるオーバーフ
ローを確実に回避することが可能となる。さらに、この
方法では、指標値と代表値とを選択するために、それぞ
れスケーリングおよび指標値の最大値を選択すればよい
ので、選択の処理を非常に簡単にすることができる。こ
のように、上記の方法によれば、演算量を増加させるこ
となく、演算処理におけるオーバーフローを確実に回避
することが可能となっている。
According to the above configuration, the representative value becomes the maximum value in the amplitude value of the spectrum data. Therefore, since the scaling is performed based on this representative value, it is possible to reliably avoid the overflow in the arithmetic processing during the scaling. Further, in this method, since the scaling value and the maximum value of the index values only have to be selected in order to select the index value and the representative value, the selection process can be greatly simplified. As described above, according to the method described above, it is possible to reliably avoid the overflow in the calculation processing without increasing the calculation amount.

【0028】また、本発明の請求項に記載のディジタ
ル信号の復号化方法は、時間範囲と周波数領域とによっ
て複数のユニットに分割され、各ユニット毎に設定され
る指標値に基づいてユニット毎に量子化されているスペ
クトラムデータを復号するためのディジタル信号の復号
化方法であって、各ユニットにおける指標値のなかから
代表値を検索する第7の工程と、復号のための演算にお
ける被演算値にスケーリングを行う第8の工程と、上記
第8の工程におけるスケーリングのためのスケール量
を、上記代表値に基づいて決定するか、あるいは、上記
演算における被演算値に基づいて決定するかを判断し、
判断結果に基づいて、上記スケール量を決定する第9の
工程とを含むことを特徴としている。
According to a seventh aspect of the present invention, there is provided a method for decoding a digital signal, wherein a unit is divided into a plurality of units according to a time range and a frequency domain, and each unit is divided based on an index value set for each unit. A method of decoding a digital signal for decoding spectrum data quantized in, comprising: a seventh step of searching a representative value from index values in each unit; The eighth step of scaling the value and the scale amount for scaling in the eighth step are determined based on the representative value or the calculated value in the calculation. Judge,
And a ninth step of determining the scale amount based on the result of the determination.

【0029】上記の方法によれば、ユニットに分割され
たスペクトラムデータを復号する際に、復号の過程にお
ける演算処理におけるオーバーフローを避けるため、あ
るいは、微小な振幅のデータを精度良く復号するため
に、被演算値にスケーリングを施すようになっている。
According to the above method, when the spectrum data divided into units is decoded, in order to avoid overflow in the arithmetic processing in the decoding process, or to decode the data of minute amplitude with high accuracy, The calculated value is scaled.

【0030】すなわち、まず、第7の工程において、各
ユニットにおける指標値のなかから代表値を検索する。
この代表値としては、例えば、請求項7に記載のよう
に、全指標値における最大値が用いられる。そして、第
9の工程において、代表値に基づいてスケール量を決定
するか、あるいは、被演算値に基づいて、各演算処理に
おいてスケール量を決定するかを判断するようになって
いる。そして、この判断は、上記代表値に基づいて行わ
れるようになっている。そして、この判断結果に基づい
て、スケール量が決定される。そして、このスケール量
に基づいて、第8の工程において、被演算値にスケーリ
ングが施されるようになっている。
That is, first, in the seventh step, a representative value is searched from index values in each unit.
As the representative value, for example, as described in claim 7, the maximum value in all the index values is used. Then, in the ninth step, it is determined whether the scale amount is determined based on the representative value or the calculated value is determined based on the calculated value. Then, this judgment is made based on the representative value. Then, the scale amount is determined based on this determination result. Then, based on this scale amount, in the eighth step, the calculated value is scaled.

【0031】これにより、上記の方法によれば、スケー
リングによって、オーバーフローによる演算誤差を回避
できるとともに、微小振幅のデータを精度良く復号する
ことができる。さらに、復号にかかるスペクトラムデー
タに応じて、スケール量の決定方法を判断するので、ス
ペクトラムデータの特性に応じて、最適なスケーリング
を行うことができる。さらに、この判断が代表値を用い
て行われるので、この判断のための演算処理量が非常に
少ないものとなっている。このように、上記の方法によ
れば、演算量を増加させることなく、最適なスケーリン
グによってディジタル信号を復号することが可能とな
る。
As a result, according to the above-mentioned method, it is possible to avoid arithmetic error due to overflow by scaling and to decode the data of minute amplitude with high accuracy. Furthermore, since the method of determining the scale amount is determined according to the spectrum data to be decoded, optimal scaling can be performed according to the characteristics of the spectrum data. Furthermore, since this judgment is made using the representative value, the amount of calculation processing for this judgment is very small. Thus, according to the above method, it is possible to decode a digital signal by optimal scaling without increasing the amount of calculation.

【0032】また、本発明の請求項に記載のディジタ
ル信号の復号化方法は、請求項7記載の方法において、
スペクトラムデータに対してIMDCT処理を施す工程
をさらに含み、上記第8の工程は、上記IMDCT処理
の前に、周波数帯域毎に分けられたブロックにおける、
各ユニットのスケールファクタの最大値に基づいて、上
記IMDCT処理における演算処理の過程でオーバーフ
ローが生じないように、被演算値にスケーリングを行う
工程を含むことを特徴としている。 また、本発明の請求
項9に記載のディジタル信号の復号化方法は、請求項7
または8に記載の方法において、上記指標値は、各ユニ
ットにおけるスペクトラムデータの最大の振幅値である
とともに、上記代表値は、全ユニットの指標値における
最大値であることを特徴としている。
The decoding method for a digital signal according to claim 8 of the present invention is the method according to claim 7,
IMDCT processing for spectrum data
And the eighth step further comprises the IMDCT treatment.
Before, in blocks divided by frequency band,
Based on the maximum scale factor of each unit,
In the process of calculation processing in IMDCT processing
Scales the operands so that there are no rows
It is characterized by including steps. Also, the claims of the present invention
The method for decoding a digital signal according to claim 9 is the method according to claim 7.
Alternatively, in the method described in Item 8, the index value is the maximum amplitude value of the spectrum data in each unit, and the representative value is the maximum value in the index values of all the units.

【0033】上記の方法によれば、代表値が、スペクト
ラムデータの振幅値における最大値となる。従って、こ
の代表値に基づいてスケーリングを行うようになるの
で、スケーリングの際に、演算処理におけるオーバーフ
ローを確実に回避することが可能となる。さらに、この
方法では、指標値と代表値とを選択するために、それぞ
れスケーリングおよび指標値の最大値を選択すればよい
ので、選択の処理を非常に簡単にすることができる。こ
のように、上記の方法によれば、演算量を増加させるこ
となく、演算処理におけるオーバーフローを確実に回避
することが可能となっている。また、本発明の請求項1
0に記載のディジタル信号の復号化方法は、請求項1〜
9のいずれかに記載の方法において、スペクトラムデー
タに対してIMDCT処理を施す工程と、IMDCT処
理が施されたスペクトラムデータの振幅値を補正する逆
フローティング処理を行う工程とを含むことを特徴とし
ている。 また、本発明の請求項11に記載のディジタル
信号の復号化方法は、請求項10に記載の方法におい
て、上記逆フローティング処理を行う工程では、上記ス
ケーリングに用いられたスケール量の総和を求め、求め
た総和を3倍した値を、上記IMDCT処理前の、各ユ
ニットにおけるスケールファクタのインデックスのオフ
セット値から減算し、新たなオフセット値を求め、この
新たなオフセット値を基準値から差し引いて、さらに新
たなオフセット値とし、このさらに新たなオフセット値
に応じたスケールファクタをスケール量とし、IMDC
T処理が施されたスペクトラムデータの振幅値に乗算す
ることを特徴としている。 また、本発明の請求項12に
記載のディジタル信号の復号化方法は、時間範囲と周波
数領域とによって複数のユニットに分割され、各ユニッ
ト毎に設定される指標値に基づいてユニット毎に符号化
されているスペクトラムデータを復号するためのディジ
タル信号の復号化方法において、スペクトラムデータに
対してIMDCT処理を施す工程と、各ブロックにおけ
る、最大のスケールファクタを有するユニットを検索
し、このユニットのスケールファクタを、ブロックの代
表値として取得する工程と、IMDCT処理の前に、周
波数帯域毎に分けられたブロッ クにおける、各ユニット
のスケールファクタの最大値に基づいて、上記IMDC
T処理における演算処理の過程でオーバーフローが生じ
ないように、被演算値にスケーリングを行う工程と、I
MDCT処理が施されたスペクトラムデータの振幅値を
補正する逆フローティング処理を行う工程とを含み、上
記逆フローティング処理を行う工程では、上記スケーリ
ングに用いられたスケール量の総和を求め、求めた総和
を3倍した値を、上記IMDCT処理工程における処理
前の、各ユニットにおけるスケールファクタのインデッ
クスのオフセット値から減算し、新たなオフセット値を
求め、この新たなオフセット値を基準値から差し引い
て、さらに新たなオフセット値とし、このさらに新たな
オフセット値に応じたスケールファクタをスケール量と
して、IMDCT処理が施されたスペクトラムデータの
振幅値に乗算することを特徴としている。
According to the above method, the representative value becomes the maximum value in the amplitude value of the spectrum data. Therefore, since the scaling is performed based on this representative value, it is possible to reliably avoid the overflow in the arithmetic processing during the scaling. Further, in this method, since the scaling value and the maximum value of the index values only have to be selected in order to select the index value and the representative value, the selection process can be greatly simplified. As described above, according to the method described above, it is possible to reliably avoid the overflow in the calculation processing without increasing the calculation amount. Further, claim 1 of the present invention
The method of decoding a digital signal according to claim 0,
The method according to any one of 9 above,
The IMDCT treatment of the data and the IMDCT treatment.
Reverse to correct the amplitude value of the processed spectrum data
And a step of performing a floating process.
ing. Further, a digital device according to claim 11 of the present invention.
The method for decoding a signal is the method according to claim 10.
In the step of performing the reverse floating process,
Calculate the total sum of the scales used for the caring
The value obtained by multiplying the sum obtained by 3 times is used for each unit before IMDCT processing.
Off scale factor index in knit
Subtract from the set value to obtain a new offset value
Subtract the new offset value from the reference value
This is a new offset value.
The scale factor is the scale factor according to
Multiply the amplitude value of spectrum data that has been subjected to T processing
It is characterized by that. Moreover, in claim 12 of the present invention.
The described digital signal decoding method is based on the time range and frequency.
It is divided into several units by several areas and each unit
Encoding for each unit based on the index value set for each
Digit for decoding the spectrum data being
Tal signal decoding method
For the process of performing IMDCT processing, and for each block
Find the unit with the largest scale factor
The scale factor of this unit
Before the IMDCT process and the process of obtaining the table values,
In blocks divided into each frequency band, each unit
IMDC based on the maximum scale factor of
Overflow occurs in the process of arithmetic processing in T processing
So that there is no
The amplitude value of the spectrum data that has been subjected to MDCT processing
Including the step of performing a reverse floating process for correction,
In the process of performing the reverse floating process, the scale
The sum of the scale quantities used for
The value obtained by multiplying by 3 is used in the IMDCT processing step.
Previous scale factor index for each unit
New offset value
Calculate and subtract this new offset value from the reference value
To a new offset value,
The scale factor according to the offset value is
Then, of the spectrum data that has been IMDCT processed
It is characterized by multiplying the amplitude value.

【0034】[0034]

【発明の実施の形態】〔実施の形態1〕本発明の第1の
実施形態について以下に説明する。図2は、本実施の形
態にかかるディジタル記録再生装置である、ミニディス
ク記録再生装置1の構成を示す説明図である。この図に
示すように、ミニディスク記録再生装置1は、入力端子
2,光電素子3,ディジタルPLL回路4,周波数変換
回路5,音声圧縮回路6,音声伸長回路9,ショックプ
ルーフメモリコントローラ7,ショックプルーフメモリ
8,信号処理回路10,ヘッド駆動回路11,記録ヘッ
ド12,光ピックアップ13,スピンドルモータ14,
送りモータ15,ドライバ回路16,サーボ回路17,
RFアンプ18,D/A変換器19,出力端子20,シ
ステムコントロールマイコン22および電源ON/OF
F回路23を備えている。また、この図における光磁気
ディスク25は、このミニディスク記録再生装置1にお
いて記録・再生が可能なミニディスクである。
BEST MODE FOR CARRYING OUT THE INVENTION [First Embodiment] A first embodiment of the present invention will be described below. FIG. 2 is an explanatory diagram showing the configuration of the mini disk recording / reproducing apparatus 1 which is the digital recording / reproducing apparatus according to the present embodiment. As shown in this figure, the mini disk recording / reproducing apparatus 1 comprises an input terminal 2, a photoelectric element 3, a digital PLL circuit 4, a frequency conversion circuit 5, an audio compression circuit 6, an audio expansion circuit 9, a shock proof memory controller 7, a shock. Proof memory 8, signal processing circuit 10, head drive circuit 11, recording head 12, optical pickup 13, spindle motor 14,
Feed motor 15, driver circuit 16, servo circuit 17,
RF amplifier 18, D / A converter 19, output terminal 20, system control microcomputer 22, and power ON / OF
The F circuit 23 is provided. Further, the magneto-optical disk 25 in this figure is a mini disk capable of recording / reproducing in this mini disk recording / reproducing apparatus 1.

【0035】まず、ミニディスク記録再生装置1の各構
成について説明する。光電素子3は、入力端子2に入力
された光信号のディジタル信号を、電気信号のディジタ
ル信号に変換するものである。ディジタルPLL回路4
は、光電素子3から出力されたディジタル信号からクロ
ックを抽出するとともに、この信号に対して、48kH
z,44.1kHzおよび32kHzの周波数でサンプ
リングを行い、量子化ビット数に対応した信号を生成し
て出力するものである。以下では、ディジタルPLL回
路4によって生成されるディジタル信号を、オーデイオ
データとする。
First, each component of the mini disk recording / reproducing apparatus 1 will be described. The photoelectric element 3 is for converting a digital signal of an optical signal input to the input terminal 2 into a digital signal of an electric signal. Digital PLL circuit 4
Extracts a clock from the digital signal output from the photoelectric element 3 and outputs 48 kH for this signal.
z, 44.1 kHz and 32 kHz are sampled, and a signal corresponding to the number of quantization bits is generated and output. Hereinafter, the digital signal generated by the digital PLL circuit 4 will be referred to as audio data.

【0036】周波数変換回路5は、ディジタルPLL回
路4で生成されたオーデイオデータのサンプリング周波
数を、ミニディスクの規格に対応した44.1kHzに
変換するためのものである。音声圧縮回路6は、周波数
変換回路5で周波数変換されたオーデイオデータに、A
TRAC(Adaptive TRansform Acoustic Coding)方式
による圧縮符号化を施し、音声データ(符号化されたオ
ーデイオデータ)として出力するものである。なお、音
声圧縮回路6の構成および動作については後述する。
The frequency conversion circuit 5 is for converting the sampling frequency of the audio data generated by the digital PLL circuit 4 into 44.1 kHz corresponding to the mini disk standard. The audio compression circuit 6 adds A to the audio data whose frequency is converted by the frequency conversion circuit 5.
The data is compressed and encoded by the TRAC (Adaptive TRansform Acoustic Coding) method and is output as audio data (encoded audio data). The configuration and operation of the audio compression circuit 6 will be described later.

【0037】ショックプルーフメモリ8は、ショックプ
ルーフ処理のためのメモリである。ショックプルーフメ
モリコントローラ7は、ショックプルーフメモリ8を利
用して、音声圧縮回路6が音声データを出力する速度
と、信号処理回路10の処理速度との差を吸収するため
のものである。また、ショックプルーフメモリコントロ
ーラ7は、ショックプルーフメモリ8を利用して、再生
時における振動等の外乱により、入力端子2に入力され
るディジタル信号が中断した際、信号処理回路10に入
力される音声データを補間し、ディジタル信号あるいは
オーディオデータを保護する。このような、ショックプ
ルーフメモリコントローラ7およびショックプルーフメ
モリ8による処理を、ショックプルーフ処理という。
The shock proof memory 8 is a memory for shock proof processing. The shock proof memory controller 7 utilizes the shock proof memory 8 to absorb the difference between the speed at which the audio compression circuit 6 outputs audio data and the processing speed of the signal processing circuit 10. Further, the shock proof memory controller 7 uses the shock proof memory 8 to output a sound input to the signal processing circuit 10 when the digital signal input to the input terminal 2 is interrupted by a disturbance such as vibration during reproduction. Data is interpolated to protect digital signals or audio data. Such processing by the shock proof memory controller 7 and the shock proof memory 8 is referred to as shock proof processing.

【0038】信号処理回路10は、エンコーダおよびデ
コーダとしての機能を備えている。すなわち、信号処理
回路10は、ディジタル信号の記録の際には、ショック
プルーフメモリ8から出力された音声データを入力し、
この音声データにパリティ付加等のエンコード処理を行
うとともに、音声データを光磁気ディスク25に記録可
能な磁気変調信号に変調し、ヘッド駆動回路11に出力
する。また、ディジタル信号の再生の際には、信号処理
回路10は、光磁気ディスク25から再生された音声デ
ータに対してデコード処理を行い、ショックプルーフメ
モリコントローラ7を介して音声伸長回路9に出力す
る。
The signal processing circuit 10 has functions as an encoder and a decoder. That is, the signal processing circuit 10 inputs the audio data output from the shock proof memory 8 when recording a digital signal,
The audio data is subjected to encoding processing such as parity addition, and the audio data is modulated into a magnetic modulation signal that can be recorded on the magneto-optical disk 25 and output to the head drive circuit 11. When reproducing a digital signal, the signal processing circuit 10 performs a decoding process on the audio data reproduced from the magneto-optical disk 25 and outputs it to the audio expansion circuit 9 via the shock proof memory controller 7. .

【0039】音声伸長回路9は、信号処理回路10から
出力された音声データに、ATRAC方式による復号化
を施すものである。そして、復号化を施された音声デー
タ、すなわち、オーディオデータは、D/A変換器19
によってアナログのオーディオ信号に変換され、出力端
子20から出力される。なお、音声伸長回路9の構成お
よび動作については後述する。
The audio decompression circuit 9 is for decoding the audio data output from the signal processing circuit 10 by the ATRAC method. Then, the decoded voice data, that is, the audio data is transferred to the D / A converter 19
Is converted into an analog audio signal by and output from the output terminal 20. The configuration and operation of the voice decompression circuit 9 will be described later.

【0040】ヘッド駆動回路11は、記録ヘッド12を
光磁気ディスク25の所定の記録位置に移動させるとと
もに、信号処理回路10から出力された磁気変調信号に
対応した磁界を、記録ヘッド12から発生させるもので
ある。
The head drive circuit 11 moves the recording head 12 to a predetermined recording position on the magneto-optical disk 25 and causes the recording head 12 to generate a magnetic field corresponding to the magnetic modulation signal output from the signal processing circuit 10. It is a thing.

【0041】光ピックアップ13は、記録および再生時
において、光磁気ディスク25の所定の記録位置にレー
ザー光を照射するものである。そして、再生時には、光
磁気ディスク25からのレーザー光の反射光を読みと
り、光磁気ディスク25に記録されたRF信号(変調さ
れた音声データ)を検出する。RFアンプ18は、光ピ
ックアップ13によって検出されたRF信号を増幅する
ものである。スピンドルモータ14は光磁気ディスク2
5を所定の方向に回転させるものである。送りモータ1
5は、光ピックアップ13を、光磁気ディスク25にお
けるトラックに直交する方向へ移動させるものである。
The optical pickup 13 irradiates a predetermined recording position on the magneto-optical disk 25 with laser light during recording and reproduction. Then, at the time of reproduction, the reflected light of the laser light from the magneto-optical disk 25 is read to detect the RF signal (modulated audio data) recorded on the magneto-optical disk 25. The RF amplifier 18 amplifies the RF signal detected by the optical pickup 13. The spindle motor 14 is the magneto-optical disk 2
5 is rotated in a predetermined direction. Feed motor 1
5 is for moving the optical pickup 13 in a direction orthogonal to the track on the magneto-optical disk 25.

【0042】ドライバ回路16は、光磁気ディスク25
の所定の記録位置にレーザ光が照射されるように、送り
モータ15、スピンドルモータ14、および、光ピック
アップ13の図示しない対物レンズを駆動する図示しな
い駆動装置に電力を供給するものである。サーボ回路1
7は、RFアンプ18の出力に基づいて、光ピックアッ
プ13から照射されるレーザ光を光磁気ディスク25の
目標トラックに追従させるなどの、記録・再生のための
動作が正確に行われるように、ドライバ回路16により
駆動される各装置をフィードバック制御するものであ
る。
The driver circuit 16 includes a magneto-optical disk 25.
The electric power is supplied to the feed motor 15, the spindle motor 14, and a drive device (not shown) that drives an objective lens (not shown) of the optical pickup 13 so that the laser beam is irradiated to a predetermined recording position of the above. Servo circuit 1
Reference numeral 7 is based on the output of the RF amplifier 18 so that an operation for recording / reproducing such as causing the laser light emitted from the optical pickup 13 to follow a target track of the magneto-optical disk 25 is accurately performed. The feedback control is performed on each device driven by the driver circuit 16.

【0043】電源ON/OFF回路23は、信号処理回
路10,光ピックアップ13,ドライバ回路16,サー
ボ回路17,RFアンプ18およびシステムコントロー
ルマイコン22等に電力を供給するためのものである。
システムコントロールマイコン22は、電源ON/OF
F回路23の電源ON/OFF動作の管理、および、上
記した各部材による信号処理動作における集中管理を行
うためのものであり、ミニディスク記録再生装置1にお
ける中枢部である。
The power ON / OFF circuit 23 is for supplying electric power to the signal processing circuit 10, the optical pickup 13, the driver circuit 16, the servo circuit 17, the RF amplifier 18, the system control microcomputer 22, and the like.
The system control microcomputer 22 turns on / off the power.
The central part of the mini disk recording / reproducing apparatus 1 is for managing the power ON / OFF operation of the F circuit 23 and for centralized management of the signal processing operation by the above-mentioned members.

【0044】なお、上記したように、音声圧縮回路6お
よび音声伸長回路9は、ATRAC方式によって符号・
復号を行うものであり、ミニディスク記録再生装置1に
おけるDSPである。ATRAC方式とは、楽音や音声
等のディジタル信号を高能率で圧縮符号化する方法とし
て、ミニディスクで用いられている方式である。この方
式では、44.1kHzでサンプリングされたディジタ
ル信号が、所定の周波数帯域(0〜5.5kHzの低
域、5.5〜11kHzの中域、11〜22kHzの高
域)に分割された後、各周波数帯域毎に、可変長の単位
時間でブロック化される。そして、ブロック化されたデ
ィジタル信号は、MDCT(modified discrete cosine
transform)処理によって、所定の周波数領域毎に符号
化される。この符号化は、聴覚心理特性を利用して割当
てられたビット数に基づいて行われる。
As described above, the voice compression circuit 6 and the voice decompression circuit 9 are coded by the ATRAC system.
It is a DSP in the mini-disc recording / reproducing apparatus 1 that performs decoding. The ATRAC method is a method used in a mini disk as a method of compressing and encoding a digital signal such as a musical sound or a voice with high efficiency. In this method, a digital signal sampled at 44.1 kHz is divided into a predetermined frequency band (low range of 0 to 5.5 kHz, middle range of 5.5 to 11 kHz, high range of 11 to 22 kHz). , Each frequency band is divided into blocks of variable length unit time. The blocked digital signal is converted into MDCT (modified discrete cosine).
Transform processing is performed to encode each predetermined frequency domain. This encoding is performed based on the number of bits assigned using the psychoacoustic characteristics.

【0045】次に、音声圧縮回路6について説明する。
図3は、音声圧縮回路6の構成を示す説明図である。こ
の図に示すように、音声圧縮回路6は、帯域分割フィル
タ部31,時間窓切り出し部32,MDCT部33,ビ
ット割り当て部34,ユニット分割部35,量子化部3
6および符号化部37を備えている。
Next, the voice compression circuit 6 will be described.
FIG. 3 is an explanatory diagram showing the configuration of the audio compression circuit 6. As shown in this figure, the voice compression circuit 6 includes a band division filter unit 31, a time window cutout unit 32, an MDCT unit 33, a bit allocation unit 34, a unit division unit 35, and a quantization unit 3.
6 and the encoding unit 37.

【0046】まず、音声圧縮回路6の各構成について説
明する。帯域分割フィルタ部31は、QMF(quadratu
re mirror filter)等からなり、周波数変換回路5から
入力されたオーディオデータを、高域側と低域側との2
つの周波数帯域に分割するものである。時間窓切り出し
部32は、入力されたオーディオデータを、所定の単位
時間(11.6ミリ秒,512サンプル)毎に区切るも
のである。
First, each component of the audio compression circuit 6 will be described. The band division filter unit 31 uses a QMF (quadratu).
re-mirror filter) etc., and the audio data input from the frequency conversion circuit 5 is divided into a high-frequency side and a low-frequency side.
It is divided into two frequency bands. The time window cutout unit 32 divides the input audio data into units of a predetermined unit time (11.6 milliseconds, 512 samples).

【0047】以下では、時間窓切り出し部32によって
単位時間毎に区切られたオーディオデータを、グループ
化されたオーディオデータとする。また、単位時間に区
切られ、帯域分割フィルタ部31によって周波数帯域毎
に分割されたオーディオデータを、ブロック化されたオ
ーディオデータとする。すなわち、ブロック化されたオ
ーディオデータとは、時間軸上でグループに分割され、
時間軸および周波数軸上でブロックに分割されたオーデ
ィオデータである。
In the following, the audio data sectioned by the time window cutout unit 32 for each unit time will be referred to as grouped audio data. In addition, the audio data divided into unit times and divided by the band division filter unit 31 for each frequency band is set as blocked audio data. That is, the blocked audio data is divided into groups on the time axis,
It is audio data divided into blocks on the time axis and the frequency axis.

【0048】MDCT部33は、ブロック化されたオー
ディオデータに対して、ブロック毎にMDCT(modifi
ed discrete cosine transform:変形離散コサイン変
換)処理を施すものである。なお、オーディオデータ
は、MDCT部33によってブロック毎にMDCT処理
が施されるので、処理後に生成されるスペクトラムデー
タもブロック化されている。
The MDCT unit 33 performs MDCT (modifi) on a block-by-block basis for the block-shaped audio data.
ed discrete cosine transform: modified discrete cosine transform). Since the MDCT unit 33 performs MDCT processing on the audio data for each block, the spectrum data generated after the processing is also divided into blocks.

【0049】ビット割り当て部34は、聴覚心理特性を
用いて、MDCT部33が生成したブロック化されたス
ペクトラムデータに対して、量子化ビット数、すなわ
ち、ワード長(WL)を割り当てるものである。ユニッ
ト分割部35は、MDCT部33が生成したブロック化
されたスペクトラムデータを、さらに複数の周波数領域
および時間範囲によって区切られた、ユニットに分割す
るものである。以下では、ユニットに分割されたスペク
トラムデータを、ユニット化されたスペクトラムデータ
とする。そして、各ユニットのスペクトラムデータにお
ける最大の振幅値を、各ユニットの指標値として求め
る。そして、この指標値を、各ユニットのスケールファ
クタ(SF)として設定するものである。
The bit allocation unit 34 allocates the number of quantized bits, that is, the word length (WL), to the blocked spectrum data generated by the MDCT unit 33 using the psychoacoustic characteristics. The unit dividing unit 35 divides the blocked spectrum data generated by the MDCT unit 33 into units that are further divided by a plurality of frequency regions and time ranges. In the following, the spectrum data divided into units will be referred to as unitized spectrum data. Then, the maximum amplitude value in the spectrum data of each unit is obtained as the index value of each unit. Then, this index value is set as a scale factor (SF) of each unit.

【0050】量子化部36は、ビット割り当て部34お
よびユニット分割部35が算出した各ユニットのワード
長およびスケールファクタに基づいて、ユニット化され
たスペクトラムデータを、ユニット毎に量子化するもの
である。
The quantizing unit 36 quantizes the unitized spectrum data for each unit based on the word length and scale factor of each unit calculated by the bit allocating unit 34 and the unit dividing unit 35. .

【0051】符号化部37は、量子化部36によって量
子化されたスペクトラムデータを、図2に示した光磁気
ディスク25に記録できるように、グループ毎に、所定
のフォーマットで424バイト(2×212バイト;1
サウンド・グループ)に圧縮(符号化)し、所定の圧縮
フォーマットの音声データを生成するものである。な
お、音声データとは、量子化され、圧縮(符号化)され
たスペクトラムデータである。また、この音声データの
圧縮フォーマットについては後述する。
The encoding unit 37 is capable of recording the spectrum data quantized by the quantization unit 36 on the magneto-optical disk 25 shown in FIG. 212 bytes; 1
Sound group) is compressed (encoded) to generate audio data in a predetermined compression format. The audio data is spectrum data that has been quantized and compressed (encoded). The compression format of this audio data will be described later.

【0052】次に、音声圧縮回路6による、オーディオ
データの圧縮動作について説明する。周波数変換回路5
(図2参照)から出力された、サンプリング周波数4
4.1kHzのオーディオデータは、音声圧縮回路6に
入力されると、帯域分割フィルタ部31によって、高域
側と低域側との2つのブロックに分割される。そして、
低域側ブロックのオーディオデータは、さらにもう一
度、帯域分割フィルタ部31に入力され、周波数帯域が
2分割される。これにより、音声圧縮回路6に入力され
たオーディオデータは、帯域分割フィルタ部31によっ
て、高域・中域・低域の3つの周波数帯域に分割される
ことになる。
Next, the audio data compression operation by the audio compression circuit 6 will be described. Frequency conversion circuit 5
Sampling frequency 4 output from (see Fig. 2)
When the 4.1 kHz audio data is input to the voice compression circuit 6, the band division filter unit 31 divides the audio data into two blocks, that is, a high frequency band and a low frequency band. And
The audio data of the low-frequency side block is input to the band division filter unit 31 again, and the frequency band is divided into two. As a result, the audio data input to the audio compression circuit 6 is divided by the band division filter unit 31 into three frequency bands of high band, middle band, and low band.

【0053】帯域分割フィルタ部31によって3つの帯
域に区切られたオーディオデータは、時間窓切り出し部
32によって、最大11.6ms(512サンプル)の
時間窓で区切られる。従って、オーディオデータは、5
12サンプルの時間窓によってグループ化され、グルー
プ内で3つの周波数帯域に区切られているといえる。こ
のように、オーディオデータは、512サンプルの時間
窓と3つの周波数帯域とに区切られた、ブロック化され
たオーディオデータとなる。
The audio data divided into three bands by the band division filter unit 31 is divided by the time window cutout unit 32 into a maximum time window of 11.6 ms (512 samples). Therefore, the audio data is 5
It can be said that they are grouped by a time window of 12 samples and are divided into three frequency bands within the group. In this way, the audio data becomes blocked audio data divided into a time window of 512 samples and three frequency bands.

【0054】その後、ブロック化されたオーディオデー
タは、ブロック毎に、MDCT部33によってMDCT
処理が施され、ブロック化されたスペクトラムデータに
変換される。そして、このブロック化されたスペクトラ
ムデータに対して、ビット割り当て部34によるビット
割り当ておよびワード長の算出が施された後、ユニット
分割部35によって、ユニット化されたスペクトラムデ
ータが生成されるとともに、各ユニットにおけるスケー
ルファクタが設定される。
Thereafter, the blocked audio data is MDCT processed by the MDCT unit 33 for each block.
It is processed and converted into blocked spectrum data. Then, after the bit allocation section 34 performs bit allocation and word length calculation on the blocked spectrum data, the unit division section 35 generates unitized spectrum data and The scale factor in the unit is set.

【0055】図4は、1つのグループのオーディオデー
タに応じた、ユニット化されたスペクトラムデータの例
を、時間軸と周波数軸とを用いて示す説明図である。こ
の図に示すように、低域のブロックは、時間軸について
4等分されるとともに、周波数軸について5等分される
ことにより、20個のユニット(図4におけるUnit
0〜Unit19) に分割されている。そして、低域の
ブロックにおける各ユニットには、それぞれ8個のスペ
クトラムデータ(例えば図4のUnit0におけるAS
FIG. 4 is an explanatory diagram showing an example of unitized spectrum data according to one group of audio data, using a time axis and a frequency axis. As shown in this figure, the low-frequency block is divided into four equal parts on the time axis and five parts on the frequency axis, so that 20 units (Unit in FIG. 4) can be obtained.
It is divided into 0 to Unit 19). Each unit in the low-frequency block has eight pieces of spectrum data (for example, AS in Unit 0 in FIG. 4).

〔0〕〜AS〔7〕)が含まれている。[0] to AS [7]) are included.

【0056】また、中域のブロックは、時間軸について
4等分されるとともに、周波数軸について4等分される
ことにより、16個のユニット(図4におけるUnit
20〜Unit35) に分割されている。そして、中域
のブロックにおける各ユニットには、6個のスペクトラ
ムデータ(例えば図4のUnit20におけるAS〔1
28〕〜AS〔133〕)が含まれている。
The mid-range block is divided into four equal parts on the time axis and on the frequency axis, so that 16 units (Unit in FIG. 4) can be obtained.
20-Unit35). Then, each unit in the mid-range block has six pieces of spectrum data (for example, AS [1 in Unit 20 in FIG. 4).
28] to AS [133]) are included.

【0057】また、高域のブロックは、時間軸について
8等分されるとともに、周波数軸について2等分される
ことにより、16個のユニット(図4におけるUnit
36〜Unit51) に分割されている。そして、高域
のブロックにおける各ユニットには、12個のスペクト
ラムデータ(例えば図4のUnit36におけるAS
〔256〕〜AS〔267〕)が含まれている。このよ
うに、この例では、512個(AS
The high-frequency block is divided into eight equal parts on the time axis and two equal parts on the frequency axis, so that 16 units (Unit in FIG. 4) can be obtained.
36 to Unit 51). 12 units of spectrum data (for example, AS in Unit 36 in FIG. 4) are included in each unit in the high frequency block.
[256] to AS [267]) are included. Thus, in this example, 512 (AS

〔0〕〜AS〔51
1〕)のスペクトラムデータが、52個(Unit0〜
Unit51)のユニットに分割されている。また、各
ユニットに含まれるスペクトラムデータの数は、3つの
ブロック毎に異なっている。なお、図4に示したブロッ
クおよびユニットの取り方は、一例であり、これに制限
されるものではない。
[0] to AS [51
1]) has 52 pieces of spectrum data (Unit0 to Unit0).
It is divided into units of Unit 51). Moreover, the number of spectrum data included in each unit is different for each of the three blocks. The method of taking the blocks and units shown in FIG. 4 is an example, and the present invention is not limited to this.

【0058】ユニット分割部35によって上記のように
ユニット化された後、スペクトラムデータは、量子化部
36によってワード長およびスケールファクタに基づい
た量子化が施される。そして、量子化されたスペクトラ
ムデータは、符号化部37によって、グループ毎に、所
定フォーマットの、424バイト(2×212バイト;
1サウンドグループ)の音声データに変換される。
After being unitized by the unit division unit 35 as described above, the spectrum data is quantized by the quantization unit 36 based on the word length and the scale factor. Then, the quantized spectrum data is 424 bytes (2 × 212 bytes; 2 × 212 bytes;
It is converted into audio data of one sound group).

【0059】図5は、この音声データのフォーマットを
示す説明図である。なお、図5には、424バイトのう
ちの、片チャンネル分(212バイト)が示してある。
この図に示すように、このフォーマットでは、メインデ
ータのBSM,SIA,ワード長のインデックスおよび
スケールファクタのインデックスと、量子化されたスペ
クトラムデータと、サブデータのBSM,SIA,ワー
ド長のインデックスおよびスケールファクタのインデッ
クスとが記録されるようになっている。また、サブデー
タの情報の内容は、メインデータにおける情報とほぼ同
一である。
FIG. 5 is an explanatory diagram showing the format of this audio data. Note that FIG. 5 shows one channel (212 bytes) of the 424 bytes.
As shown in this figure, in this format, main data BSM, SIA, word length index and scale factor index, quantized spectrum data, sub data BSM, SIA, word length index and scale The index of the factor is recorded. The content of the information of the sub data is almost the same as the information of the main data.

【0060】BSM(block size mode )は、スペクト
ラムデータのブロック化およびユニット化についての情
報である。また、SIA(sub information amount)
は、スペクトラムデータの各ブロックにおけるユニット
数の情報である。ワード長のインデックス(WLI)
は、各ユニットの量子化ビット数であるワード長(W
L)のインデックスである。表1に、これらWLIとワ
ード長(WL)との対応関係を示す。この表に示すよう
に、ワード長(WL)は、1を除いた0から16までの
整数であり、小さいほうから順に0から15のWLIが
対応している。
The BSM (block size mode) is information on blocking and unitizing the spectrum data. In addition, SIA (sub information amount)
Is information on the number of units in each block of spectrum data. Word length index (WLI)
Is the word length (W
L) is the index. Table 1 shows the correspondence between these WLI and word length (WL). As shown in this table, the word length (WL) is an integer from 0 to 16 excluding 1, and WLIs from 0 to 15 correspond in ascending order.

【0061】[0061]

【表1】 [Table 1]

【0062】スケールファクタのインデックス(SF
I)は、各ユニットの代表スペクトラムデータの振幅の
大きさである、スケールファクタ(SF)のインデック
スである。表2に、これらSFIとスケールファクタ
(SF)との対応関係を示す。この表に示すように、ス
ケールファクタ(SF)は、係数m[i]と2n との積
の形で表される数である。ここで、iおよびn は、1
≦i≦3,−5≦n≦16なる整数である。また、m
[i]は、m[1]=0.62996052,m[2]=0.793700
52,m[3]=0.99999999である。また、n=−5とm
[1]およびm[2]との積は、スケールファクタから
は除かれる。
Scale factor index (SF
I) is an index of the scale factor (SF), which is the magnitude of the amplitude of the representative spectrum data of each unit. Table 2 shows the correspondence between these SFIs and scale factors (SF). As shown in this table, the scale factor (SF) is a number represented in the form of a product of the coefficient m [i] and 2 n . Where i and n are 1
It is an integer satisfying ≦ i ≦ 3, −5 ≦ n ≦ 16. Also, m
[I] is m [1] = 0.62996052, m [2] = 0.793700
52, m [3] = 0.99999999. Also, n = -5 and m
The product of [1] and m [2] is excluded from the scale factor.

【0063】また、スケールファクタには、小さい方か
ら順に0から63のSFIが対応している。すなわち、
スケールファクタには、64の段階がある。また、1つ
のnに対して3つの係数m[1],m[2],m[3]
が対応するため、1ビットがSFIの3つ分に相当す
る。
The SFIs of 0 to 63 correspond to the scale factor in ascending order. That is,
The scale factor has 64 steps. Also, three coefficients m [1], m [2], m [3] for one n.
1 bit corresponds to three SFIs.

【0064】[0064]

【表2】 [Table 2]

【0065】なお、ブロック内のスケールファクタは、
各ブロックに含まれるユニット毎に存在するため最大5
2個である。これに対して、量子化されたスペクトラム
データは、サンプリングされたオーディオデータの数だ
け存在するため、最大512個ある。また、ユニットに
は量子化されたスペクトラムデータが少なくとも1個含
まれている。従って、ブロック内のスケールファクタの
数は、量子化されたスペクトラムデータの数よりも少な
いことは明らかである。
The scale factor in the block is
There is a maximum of 5 because it exists for each unit included in each block.
There are two. On the other hand, the maximum number of quantized spectrum data is 512 because there are the same number of sampled audio data. The unit also contains at least one piece of quantized spectrum data. Therefore, it is clear that the number of scale factors in a block is smaller than the number of quantized spectrum data.

【0066】次に、図2に示した音声伸長回路9につい
て説明する。図6は、この音声伸長回路9の構成を示す
説明図である。この図に示すように、音声伸長回路9
は、記憶部40,WL展開部41,SF展開部42,A
S展開部43,SF最大値決定部44,SFオフセット
付け部45,逆量子化部46,IMDCT部47,逆フ
ローティング部48,窓かけ部49および帯域合成フィ
ルタ部50を備えている。
Next, the audio decompression circuit 9 shown in FIG. 2 will be described. FIG. 6 is an explanatory diagram showing the configuration of the audio decompression circuit 9. As shown in this figure, the voice expansion circuit 9
Is a storage unit 40, a WL expansion unit 41, an SF expansion unit 42, A
The S expansion unit 43, the SF maximum value determination unit 44, the SF offset attaching unit 45, the inverse quantization unit 46, the IMDCT unit 47, the inverse floating unit 48, the windowing unit 49, and the band synthesis filter unit 50 are provided.

【0067】WL展開部41は、図5に示したフォーマ
ットの音声データにおけるWLIに基づいて、3つのブ
ロック内の各ユニットにおけるワード長を、上記した表
1に従って、実際のワード長の数値に展開するものであ
る。また、SF展開部42は、同様に、SFIに基づい
て、ブロック内の各ユニットにおけるスケールファクタ
を、表2に従って展開するものである。
The WL expansion unit 41 expands the word length in each unit in each of the three blocks into the actual word length value based on the WLI in the audio data of the format shown in FIG. To do. Further, the SF expansion unit 42 similarly expands the scale factor in each unit in the block according to Table 2 based on the SFI.

【0068】AS展開部43は、数ワードにまたがって
圧縮されているスペクトラムデータを、1ワード毎に展
開するものである。すなわち、AS展開部43は、種々
の状態で格納されている量子化されたスペクトラムデー
タを8ビットずつ読み出し、1ワード毎に展開するもの
である。
The AS decompression unit 43 decompresses the spectrum data compressed over several words, word by word. That is, the AS expansion unit 43 reads out the quantized spectrum data stored in various states by 8 bits and expands it for each word.

【0069】なお、ワード長の最大値が16ビットであ
るので、1ワードが1回の読み出しで読み出せる場合、
2回の読み出しで読み出せる場合、3回の読み出しで読
み出せる場合がある。つまり、上記AS展開部43の処
理内容は、種々の状態で格納された量子化されたスペク
トラムデータを8ビットずつ読み出し、1ワード(最大
16ビット)毎に切っていくことである。
Since the maximum value of the word length is 16 bits, if one word can be read by one reading,
In some cases, reading can be performed by reading twice, and reading can be performed by reading three times. That is, the processing content of the AS expansion unit 43 is to read out the quantized spectrum data stored in various states by 8 bits and cut it by 1 word (maximum 16 bits).

【0070】SF最大値決定部44は、各ブロックにお
ける、最大のスケールファクタを有するユニットを検索
し、このユニットのスケールファクタを、ブロックの代
表値として取得するものである。SFオフセット付け部
45は、SF最大値決定部44で取得されたスケールフ
ァクタの最大値がm[3]×216(SFI=63)とな
るように、ブロック毎に、各ユニットのSFIを更新す
るものである。すなわち、SFオフセット付け部45
は、各ブロックの最大のスケールファクタに応じたSF
Iを63から差し引き、SFIのオフセット値(スケー
ル量)として設定する。そして、SFオフセット付け部
45は、得られたオフセット値を、ブロック内の全ユニ
ットにおけるSFIにそれぞれ加算することで、これら
SFIを更新する。なお、このオフセット値は、SFI
の更新によって後述するIMDCT部47の処理にオー
バーフローが生じないように、決定される。
The SF maximum value determination unit 44 searches the unit having the maximum scale factor in each block and acquires the scale factor of this unit as the representative value of the block. The SF offset attaching unit 45 updates the SFI of each unit for each block so that the maximum value of the scale factor acquired by the SF maximum value determining unit 44 becomes m [3] × 2 16 (SFI = 63). To do. That is, the SF offset attaching unit 45
Is the SF according to the maximum scale factor of each block
I is subtracted from 63 and set as an SFI offset value (scale amount). Then, the SF offset attaching section 45 updates the SFIs by adding the obtained offset values to the SFIs of all the units in the block. This offset value is SFI
Is updated so that the processing of the IMDCT unit 47 described later does not overflow.

【0071】逆量子化部46は、WL展開部41で得ら
れたワード長と、SFオフセット付け部45で更新され
たSFIが示すスケールファクタとに基づいて、音声デ
ータにおけるスペクトラムデータの逆量子化を行うもの
である。この逆量子化については後述する。
The dequantization unit 46 dequantizes the spectrum data in the voice data based on the word length obtained by the WL expansion unit 41 and the scale factor indicated by the SFI updated by the SF offset attaching unit 45. Is to do. This dequantization will be described later.

【0072】IMDCT部47は、逆量子化部46で逆
量子化されたスペクトラムデータに対してIMDCT
(Inverse modified discrete cosine transform ) 処
理を施し、ブロック化されたオーディオデータを生成す
るものである。IMDCT部47の詳細な構成および処
理については後述する。
The IMDCT section 47 performs an IMDCT on the spectrum data dequantized by the dequantization section 46.
(Invers e modified discrete cosine transform) processing performed, and generates the audio data blocks. The detailed configuration and processing of the IMDCT unit 47 will be described later.

【0073】逆フローティング部48は、IMDCT部
47によって生成された、ブロック化されたオーディオ
データの振幅値を、適切に補正して出力するものであ
る。すなわち、IMDCT部47におけるIMDCT処
理では、演算処理のオーバーフローを防ぐために、スペ
クトラムデータに対してスケーリングが行われる。そこ
で、逆フローティング部48では、このスケーリングに
よって変換された振幅値を、適切な値に修正するように
なっている。なお、スケーリングとは、IMDCT部4
7におけるIMDCT処理において、演算にかかるデー
タ(被演算値)に施されるスケールダウンおよびスケー
ルアップのことである。
The inverse floating section 48 appropriately corrects and outputs the amplitude value of the blocked audio data generated by the IMDCT section 47. That is, in the IMDCT processing in the IMDCT unit 47, scaling is performed on the spectrum data in order to prevent overflow of the arithmetic processing. Therefore, the inverse floating unit 48 is adapted to correct the amplitude value converted by this scaling to an appropriate value. The scaling means the IMDCT unit 4
In the IMDCT process in 7, the scale down and scale up are performed on the data (calculated value) related to the calculation.

【0074】窓かけ部49は、逆フローティング部48
から出力されたブロック化されたオーディオデータを、
時間軸上で繋げるものである。すなわち、窓かけ部49
は、あるデータと、時間軸で1サンプル前のデータとの
窓かけ処理を施すものである。
The window portion 49 is the reverse floating portion 48.
Blocked audio data output from
They are connected on the time axis. That is, the window portion 49
Is a windowing process between certain data and data one sample before on the time axis.

【0075】帯域合成フィルタ部50は、IQMF(In
vers quadrature mirror filter )等の帯域合成フィル
タを備え、周波数帯域毎に3つに分けられたオーディオ
データを、1つにまとめるものである。すなわち、帯域
合成フィルタ部50は、ブロック化されたオーディオデ
ータを合成し、図2に示したD/A変換器19に出力す
るものである。記憶部40は、上記した音声伸長回路9
の各構成が、各処理に必要な情報を記憶させるためのも
のである。
The band synthesizing filter unit 50 uses the IQMF (In
vers quadrature mirror filter) and other band synthesis filters, and the audio data divided into three for each frequency band are combined into one. That is, the band synthesizing filter unit 50 synthesizes the blocked audio data and outputs it to the D / A converter 19 shown in FIG. The storage unit 40 includes the voice expansion circuit 9 described above.
Each of the configurations is for storing information necessary for each process.

【0076】次に、音声伸長回路9による音声データの
伸長動作について説明する。なお、後述する(2)〜
(6)式を用いるIMDCT処理は、信学技報,CAS90-
9 DSP90-13,「MDCT方式に関する一検討と高速算
法」,岩垂正宏,西谷隆夫,杉山昭彦,他、および、I
EEE,Transactions on ASSP,第34巻5号「時間領
域のエリアシングキャンセルを基礎にした分析/合成フ
ィルタバンク設計」,JohnP.Princen,Alan Bernard Br
adleyに詳しく記載されている。
Next, the operation of expanding the audio data by the audio expansion circuit 9 will be described. Note that (2) to be described later
IMDCT processing using equation (6) is described in IEICE Technical Report, CAS90-
9 DSP90-13, “A Study on MDCT Method and High-speed Arithmetic”, Masahiro Iwadare, Takao Nishitani, Akihiko Sugiyama, et al., And I
EEE, Transactions on ASSP, Vol. 34, No. 5, "Analysis / Synthesis Filterbank Design Based on Aliasing Cancellation in Time Domain", John P. Princen, Alan Bernard Br
See adley for details.

【0077】図2に示したショックプルーフメモリコン
トローラ7を介して、信号処理回路10から図5に示し
たフォーマットの音声データが音声伸長回路9に入力さ
れると、WL展開部41は、WLIに基づいて、この音
声データに応じたグループの、3つのブロックにおける
各ユニットのワード長を展開し、記憶部40に記憶させ
る。同様に、SF展開部42は、SFIに基づいて、各
ユニットのスケールファクタを展開し、記憶部40に記
憶させる。
When the audio data of the format shown in FIG. 5 is input to the audio decompression circuit 9 from the signal processing circuit 10 via the shock proof memory controller 7 shown in FIG. Based on this, the word length of each unit in the three blocks of the group corresponding to the audio data is expanded and stored in the storage unit 40. Similarly, the SF expansion unit 42 expands the scale factor of each unit based on the SFI and stores it in the storage unit 40.

【0078】その後、AS展開部43は、音声データに
おける量子化されたスペクトラムデータを、8ビットず
つ読み出し、1ワード毎に展開する。そして、SF最大
値決定部44が、ブロック毎に、最大のスケールファク
タを有するユニットを検索し、各ブロックにおけるスケ
ールファクタの最大値を取得する。そして、SFオフセ
ット付け部45が、各ブロックにおけるスケールファク
タの最大値が、m[3]×216(SFI=63)となる
ように、SFIのオフセット値(スケール量)を算出す
る。
After that, the AS expansion unit 43 reads out the quantized spectrum data in the audio data by 8 bits and expands it by each word. Then, the SF maximum value determination unit 44 searches the unit having the maximum scale factor for each block, and acquires the maximum value of the scale factor in each block. Then, the SF offset attaching unit 45 calculates the SFI offset value (scale amount) so that the maximum value of the scale factor in each block is m [3] × 2 16 (SFI = 63).

【0079】そして、SFオフセット付け部45は、こ
のオフセット値を、各ブロックに属する全てのユニット
におけるSFIに加えることで、各ユニットのSFIを
更新する。また、SFオフセット付け部45は、算出し
たオフセット値、更新されたSFI、および、このSF
Iに応じたスケールファクタを、記憶部40に記憶させ
る。
Then, the SF offset attaching section 45 updates the SFI of each unit by adding this offset value to the SFI of all the units belonging to each block. The SF offset attaching unit 45 also calculates the calculated offset value, the updated SFI, and this SF.
The scale factor corresponding to I is stored in the storage unit 40.

【0080】各ブロックのSFIが更新された後、逆量
子化部46は、WL展開部41が展開したワード長と、
SFオフセット付け部45が更新したSFIに応じたス
ケールファクタとを、記憶部40から取得する。そし
て、これらの値と下記の(1)式とを用いて、AS展開
部43が展開した量子化されたスペクトラムデータに対
して、ユニット毎に逆量子化処理を行う。これにより、
量子化されたスペクトラムデータAS〔j〕が逆量子化
され、ユニット化されたスペクトラムデータX〔k〕が
生成される。
After the SFI of each block is updated, the inverse quantization unit 46 calculates the word length expanded by the WL expansion unit 41,
The scale factor according to the SFI updated by the SF offset assigning unit 45 is acquired from the storage unit 40. Then, using these values and the following equation (1), inverse quantization processing is performed for each unit on the quantized spectrum data expanded by the AS expansion unit 43. This allows
The quantized spectrum data AS [j] is inversely quantized to generate unitized spectrum data X [k].

【0081】[0081]

【数1】 [Equation 1]

【0082】なお、この式では、WL〔i〕は各ユニッ
トのワード長を、iはユニットの番号を、jは量子化さ
れたスペクトラムデータの番号を、kはスペクトラムデ
ータの番号をそれぞれ示す。また、0≦i≦N、0≦
j,k≦M−1である。また、Nはユニット番号の最大
値を、M−1はスペクトラムデータ番号の最大値をそれ
ぞれ示す。また、N<M−1である。
In this equation, WL [i] indicates the word length of each unit, i indicates the unit number, j indicates the quantized spectrum data number, and k indicates the spectrum data number. In addition, 0 ≦ i ≦ N, 0 ≦
j, k ≦ M−1. N indicates the maximum value of the unit number, and M-1 indicates the maximum value of the spectrum data number. Also, N <M-1.

【0083】その後、IMDCT部47は、各ブロック
毎に、ユニット化されたスペクトラムデータに対してI
MDCT処理を施し、高域,中域および低域の3つの周
波数帯域にブロック化されたオーディオデータを生成
し、逆フローティング部48に出力する。なお、IMD
CT部47の詳細な構成および動作については後述す
る。
After that, the IMDCT unit 47 makes an I for the unitized spectrum data for each block.
MDCT processing is performed to generate audio data blocked in three frequency bands of high frequency band, middle frequency band, and low frequency band, and output to the inverse floating unit 48. In addition, IMD
The detailed configuration and operation of the CT unit 47 will be described later.

【0084】その後、逆フローティング部48は、所定
のSFI(例えば63)を基準として、IMDCT部4
7が出力したブロック化されたオーディオデータの振幅
値を補正し、窓かけ部49に出力して、逆フローティン
グを終了する。なお、逆フローティング部48の動作に
ついては後述する。
After that, the inverse floating unit 48 uses the predetermined SFI (for example, 63) as a reference, and the IMDCT unit 4
The amplitude value of the blocked audio data output by 7 is corrected and output to the windowing unit 49, and the reverse floating is completed. The operation of the reverse floating unit 48 will be described later.

【0085】その後、窓かけ部49は、逆フローティン
グ部48から出力された、ブロック化されたオーディオ
データに窓掛け処理を施し、時間軸上で隣接するフレー
ム間の調整を行って、帯域合成フィルタ部50に出力す
る。そして、帯域合成フィルタ部50が、1グループの
オーディオデータを生成し、音声伸長回路9による復号
化処理が終了する。
After that, the windowing section 49 performs windowing processing on the blocked audio data output from the inverse floating section 48 and adjusts between adjacent frames on the time axis to obtain a band synthesis filter. Output to the unit 50. Then, the band synthesis filter unit 50 generates one group of audio data, and the decoding processing by the audio decompression circuit 9 ends.

【0086】次に、IMDCT部47の構成および動作
について説明する。図7は、IMDCT部47の構成を
示す説明図である。この図に示すように、IMDCT部
47は、U(k)計算部51,FFT計算部52,u
(n)計算部53,y(n)計算部54,固定スケーリ
ング部55,固定スケール量ロード部56および固定ス
ケール量メモリ57を備えている。
Next, the configuration and operation of IMDCT section 47 will be described. FIG. 7 is an explanatory diagram showing the configuration of the IMDCT unit 47. As shown in this figure, the IMDCT unit 47 includes a U (k) calculation unit 51, an FFT calculation unit 52, u.
An (n) calculation unit 53, a y (n) calculation unit 54, a fixed scaling unit 55, a fixed scale amount loading unit 56, and a fixed scale amount memory 57 are provided.

【0087】上記したように、IMDCT部47は、ユ
ニット化されたスペクトラムデータに対して、IMDC
T処理を施すものである。すなわち、U(k)計算部5
1〜y(n)計算部54は、ユニット化されたスペクト
ラムデータに対して、下記の(2)〜(6)に示した演
算処理を行うものである。
As described above, the IMDCT unit 47 performs IMDCT processing on the unitized spectrum data.
T processing is performed. That is, the U (k) calculation unit 5
The 1-y (n) calculator 54 performs the arithmetic processing shown in the following (2)-(6) on the unitized spectrum data.

【0088】そして、固定スケーリング部55,固定ス
ケール量ロード部56および固定スケール量メモリ57
は、(3)〜(5)式に示した演算処理が行われる前
に、演算の過程でのオーバーフローを防止するために、
被演算値に対して所定のスケーリングを行うものであ
る。
Then, the fixed scaling unit 55, the fixed scale amount loading unit 56, and the fixed scale amount memory 57.
Is to prevent overflow in the process of calculation before the calculation process shown in the equations (3) to (5) is performed.
A predetermined scaling is performed on the calculated value.

【0089】以下に、IMDCT部47の動作について
説明する。IMDCT部47にユニット化されたスペク
トラムデータが入力されると、U(k)計算部51が、
下記の(2)式を用いて、IMDCT部47に入力され
たスペクトラムデータX〔k〕に応じたU(k)を算出
し、固定スケーリング部55に出力する。固定スケーリ
ング部55は、このU(k)に対して後述する所定のス
ケーリングを行い、U(k)計算部51に出力する。
The operation of IMDCT section 47 will be described below. When the unitized spectrum data is input to the IMDCT unit 47, the U (k) calculation unit 51
U (k) corresponding to the spectrum data X [k] input to the IMDCT unit 47 is calculated using the following equation (2), and is output to the fixed scaling unit 55. The fixed scaling unit 55 performs predetermined scaling described later on this U (k) and outputs it to the U (k) calculation unit 51.

【0090】その後、U(k)計算部51は、下記の
(3)式を用いて、各U(k)におけるZ(L)を導出
し、固定スケーリング部55に再び出力する。なお、こ
の式におけるRe[Z(L)]、Im[Z(L)]は、
複素数Z[L]の実部および虚部を示す。また、Lは、
0≦L<M/2なる数である。
After that, the U (k) calculator 51 derives Z (L) in each U (k) using the following equation (3) and outputs it again to the fixed scaling unit 55. Note that Re [Z (L)] and Im [Z (L)] in this equation are
The real and imaginary parts of the complex number Z [L] are shown. Also, L is
The number is 0 ≦ L <M / 2.

【0091】[0091]

【数2】 [Equation 2]

【0092】[0092]

【数3】 [Equation 3]

【0093】固定スケーリング部55は、入力されたZ
(L)に対して後述する所定のスケーリングを行い、F
FT計算部52に入力する。FFT計算部52は、入力
された各Z(L)に対して、下記の(4)式を用いて高
速フーリエ変換を行う。すなわち、FFT計算部52
は、P=log2(M/2) として、FFT1段目計算部
〜FFTP段目計算部を備え、P段のバタフライ演算に
よって高速フーリエ変換を行ってz(n)を算出する。
なお、(4)式におけるiは虚数単位である。また、n
は、0≦n<M/2なる数である。
The fixed scaling unit 55 receives the input Z
The predetermined scaling described later is performed on (L), and F
Input to the FT calculation unit 52. The FFT calculation unit 52 performs a fast Fourier transform on each input Z (L) using the following equation (4). That is, the FFT calculation unit 52
Is provided with an FFT first-stage calculation unit to an FFTP-stage calculation unit with P = log 2 (M / 2), and performs fast Fourier transform by a P-stage butterfly operation to calculate z (n).
Note that i in the equation (4) is an imaginary unit. Also, n
Is a number satisfying 0 ≦ n <M / 2.

【0094】この算出では、各FFTp段目計算部(p
=1〜Pの整数)は、算出した結果を固定スケーリング
部55に出力するようになっている。そして、固定スケ
ーリング部55が、入力された算出結果に対して所定の
スケーリングを行い、その結果を次段のFFT(p+
1)段目計算部に出力するようになっている。そして、
P段のバタフライ演算の終了後、FFT計算部52は、
z(n)を固定スケーリング部55に出力する。
In this calculation, each FFTp stage calculation unit (p
= 1 to P), the calculated result is output to the fixed scaling unit 55. Then, the fixed scaling unit 55 performs a predetermined scaling on the input calculation result and outputs the result to the FFT (p +
1) It is designed to be output to the stage calculation unit. And
After the P stage butterfly calculation is completed, the FFT calculation unit 52
The z (n) is output to the fixed scaling unit 55.

【0095】[0095]

【数4】 [Equation 4]

【0096】固定スケーリング部55は、入力されたz
(n)に対して、後述する所定のスケーリングを行い、
u(n)計算部53に出力する。u(n)計算部53
は、入力されたz(n)に基づいて、下記の(5)式を
用いてu(n)を算出し、y(n)計算部54に出力す
る。その後、y(n)計算部54は、入力されたu
(n)に基づいて、下記の(6)式を用いてIMDCT
処理を行い、ブロック化されたオーディオデータy
(n)を算出する。
The fixed scaling unit 55 receives the input z
(N) is subjected to predetermined scaling described later,
It is output to the u (n) calculator 53. u (n) calculator 53
Calculates u (n) using the following equation (5) based on the input z (n), and outputs it to the y (n) calculator 54. After that, the y (n) calculator 54 receives the input u
Based on (n), using the following equation (6), the IMDCT
Audio data y that has been processed and blocked
Calculate (n).

【0097】[0097]

【数5】 [Equation 5]

【0098】[0098]

【数6】 [Equation 6]

【0099】ここで、上記した固定スケーリング部55
におけるスケーリングについて説明する。IMDCT部
47の固定スケール量メモリ57には、U(k),各F
FTp段目計算部への入力値(Z(L)を含む)および
z(n)等の、スケーリングを行うことが好ましい被演
算値に対する、固定スケール量が記憶されている。
Here, the fixed scaling unit 55 described above is used.
The scaling in will be described. The fixed scale amount memory 57 of the IMDCT unit 47 stores U (k), F
A fixed scale amount is stored for an input value (including Z (L)) to the FTp-th stage calculation unit and a calculated value that is preferably scaled, such as z (n).

【0100】そして、固定スケーリング部55は、固定
スケール量ロード部56を制御して、各ブロックの最大
のスケールファクタの大きさに基づいて、各被演算処理
の種類に応じた固定スケール量を、固定スケール量メモ
リ57から読み出させる。そして、この読み出させた固
定スケール量に基づいて、被演算値に対して、順次、ス
ケーリングを施すようになっている。
Then, the fixed scaling unit 55 controls the fixed scale amount loading unit 56, and based on the maximum scale factor of each block, obtains the fixed scale amount according to the type of each operation to be performed. It is read from the fixed scale amount memory 57. Then, based on the read fixed scale amount, the calculated values are sequentially scaled.

【0101】表3に、固定スケール量メモリ57に記憶
されている固定スケール量を示す。この表に示すよう
に、これら固定スケール量は、各被演算値と、IMDC
T処理にかかるブロックにおけるスケールファクタ(S
F)の最大値に応じたものとなっている。
Table 3 shows the fixed scale amount stored in the fixed scale amount memory 57. As shown in this table, these fixed scale quantities are
Scale factor (S
It corresponds to the maximum value of F).

【0102】この表では、固定スケール量はビット数で
表されている。すなわち、この表における正の整数は、
被演算値をLSB(Least Significant Bit )側(以
下、右側とする)にビットシフトするスケーリングを行
うためのスケール量である。また、負の整数は、被演算
値をMSB(Most Significant Bit)側(以下、左側と
する)にビットシフトするスケーリングを行うためのス
ケール量である。なお、この表では、FFT計算部への
入力値は、4段目まで示している。また、この表では、
スケールファクタの最大値が28 〜2-4における値が省
略されているが、これは、スケールファクタの最大値が
9 以下での固定スケール量は、全て同じ値となるから
である。
In this table, the fixed scale amount is represented by the number of bits. That is, the positive integers in this table are
It is a scale amount for performing scaling for bit-shifting the operand value to the LSB (Least Significant Bit) side (hereinafter referred to as the right side). Further, the negative integer is a scale amount for performing scaling for bit-shifting the operand value to the MSB (Most Significant Bit) side (hereinafter, left side). In this table, the input values to the FFT calculation unit are shown up to the fourth level. Also, in this table,
The values at the maximum scale factor values of 2 8 to 2 −4 are omitted, because the fixed scale amounts at the maximum scale factor values of 2 9 or less are all the same value.

【0103】[0103]

【表3】 [Table 3]

【0104】この表に示したような固定スケール量は、
以下のように求められる。すなわち、上記した(3)〜
(5)式に示した演算処理によって得られる演算結果
は、被演算値と大きさが異なる。演算結果の被演算値に
対する倍率を、演算処理毎に表4に示す。演算結果の被
演算値の上位ビットには、演算の前後における被演算値
の比率(あるいは倍率)に応じて、表4に示すような余
裕ビットが生じる。この余裕ビットは、IMDCT部4
7の設計によって決定されるものである。また、被演算
値の演算結果に対する比率を、演算処理毎に表5に示
す。なお、これら表4・5に記載の倍率および比率を求
める方法は、特開平7−36666号公報に詳しく記載
されている。
The fixed scale amount shown in this table is
It is calculated as follows. That is, the above (3)-
The calculation result obtained by the calculation processing shown in the equation (5) is different in magnitude from the calculated value. Table 4 shows the multiplication factor of the calculation result with respect to the calculated value for each calculation process. A margin bit as shown in Table 4 is generated in the upper bits of the calculated value of the calculation result, depending on the ratio (or magnification) of the calculated value before and after the calculation. This margin bit is used by the IMDCT unit 4
7 design. Table 5 shows the ratio of the calculated value to the calculation result for each calculation process. The method for obtaining the magnifications and ratios shown in Tables 4 and 5 is described in detail in JP-A-7-36666.

【0105】[0105]

【表4】 [Table 4]

【0106】[0106]

【表5】 [Table 5]

【0107】従って、演算結果が大きくなり過ぎて、I
MDCT部47におけるいずれかの構成における処理が
オーバーフローしないように、固定スケール量が設定さ
れることが好ましいことがわかる。そして、固定スケー
ル量は、以下の〜に示す条件に基づいて決定され
る。
Therefore, the calculation result becomes too large and I
It can be seen that it is preferable to set the fixed scale amount so that the processing in any configuration in the MDCT unit 47 does not overflow. Then, the fixed scale amount is determined based on the following conditions.

【0108】IMDCT部47に入力されるスペクト
ラムデータにおける振幅値は、最大で216である。 IMDCT部47から出力されるオーディオデータに
おける振幅値は、最大で215である。 上記およびと、表4および表5に示した倍率・比
率とに応じて、IMDCT部47の各構成における演算
結果には、最大値となるものがある。
The maximum amplitude value of the spectrum data input to the IMDCT unit 47 is 2 16 . The maximum amplitude value of the audio data output from the IMDCT unit 47 is 2 15 . Depending on the above and the magnifications / ratios shown in Tables 4 and 5, the calculation result in each configuration of the IMDCT unit 47 has a maximum value.

【0109】そして、IMDCT部47の各構成におけ
る演算結果の最大値が2のべき乗で表される場合、各最
大値を表す包絡線を求めれば、表3に示した固定スケー
ル量を求めることができる。なお、固定スケール量を求
める方法については、上記した特開平7−36666号
公報に詳しく記載されている。
When the maximum value of the calculation result in each component of the IMDCT unit 47 is represented by a power of 2, the fixed scale amount shown in Table 3 can be obtained by obtaining the envelope curve representing each maximum value. it can. The method for obtaining the fixed scale amount is described in detail in the above-mentioned Japanese Patent Laid-Open No. 7-36666.

【0110】次に、逆フローティング部48の動作につ
いて説明する。上記したように、逆フローティング部4
8は、IMDCT部47から出力されたオーディオデー
タの振幅値を補正するものである。すなわち、逆フロー
ティング部48は、上記した(3)〜(5)式の処理前
に、被演算値に対して施されたスケーリングに用いられ
た固定スケール量の総和をを求め、求めた総和を3倍し
た値を、IMDCT部47における処理前の、各ユニッ
トにおけるSFIのオフセット値から減算し、新たにオ
フセット値を求める。
Next, the operation of the reverse floating section 48 will be described. As described above, the reverse floating portion 4
Reference numeral 8 corrects the amplitude value of the audio data output from the IMDCT unit 47. That is, the inverse floating unit 48 obtains the total sum of the fixed scale amounts used for the scaling performed on the operands before the processing of the above equations (3) to (5), and obtains the obtained total sum. The tripled value is subtracted from the offset value of the SFI in each unit before the processing in the IMDCT unit 47 to newly obtain the offset value.

【0111】そして、このオフセット値に基づいて、所
定のSFIを基準値として、オーディオデータの振幅値
を補正する。すなわち、逆フローティング部48は、得
られたオフセット値を基準値から差し引いて、さらに新
たなオフセット値とする。そしてこのオフセット値に応
じたスケールファクタをスケール量とし、IMDCT部
47から入力されたオーディオデータの振幅値に乗算す
る。これにより、逆フローティング部48による逆フロ
ーティング処理が終了する。なお、逆フローティング処
理とは、IMDCT処理が施され、IMDCT部47か
ら出力されたオーディオデータに、所定のオフセット値
に応じたスケールファクタを乗じる処理のことである。
Then, based on this offset value, the amplitude value of the audio data is corrected using a predetermined SFI as a reference value. That is, the inverse floating unit 48 subtracts the obtained offset value from the reference value to obtain a new offset value. Then, the scale factor corresponding to the offset value is used as the scale amount, and the amplitude value of the audio data input from the IMDCT unit 47 is multiplied. As a result, the reverse floating process by the reverse floating unit 48 ends. The inverse floating process is a process in which the IMDCT process is performed and the audio data output from the IMDCT unit 47 is multiplied by a scale factor according to a predetermined offset value.

【0112】ここで、逆フローティング部48が、SF
Iを更新する際に、固定スケール量の総和を3倍した値
を用いる理由を説明する。スペクトラムデータのスケー
ルファクタは、1dBを3等分した間隔で設定されてい
る。つまり、1ビットという単位は、SFIでは3レン
ジに相当する(1ビット=3インデックス)。従って、
逆フローティング部48は、SFIのオフセット値を戻
すために、固定スケール量のビット数の総和を3倍した
値を、オフセット値から減算するようになっている。
Here, the reverse floating portion 48 is
The reason why a value obtained by multiplying the total sum of fixed scale amounts by 3 is used when I is updated will be described. The scale factor of the spectrum data is set at intervals of 1 dB divided into three equal parts. That is, the unit of 1 bit corresponds to 3 ranges in SFI (1 bit = 3 indexes). Therefore,
The inverse floating unit 48 subtracts a value obtained by multiplying the sum of the numbers of bits of the fixed scale amount by 3 from the offset value in order to return the SFI offset value.

【0113】以下に、SF最大値決定部44によるスケ
ールファクタの最大値の取得以降の音声伸長回路9の処
理の例を示す。復号にかかる音声データの、あるブロッ
ク内における全ユニットのスケールファクタの最大値
が、m[1]×210=0.62996052×210(SFI=4
3)であるとする。SFオフセット付け部45は、この
値が、SFI=63(m[3]×216=0.99999999×2
16)となるように、オフセット値(スケール量)を算出
する。すなわち、この場合のオフセット値は、63−4
3=20となる。
An example of the processing of the audio decompression circuit 9 after the acquisition of the maximum scale factor value by the SF maximum value determination unit 44 will be described below. The maximum value of the scale factor of all units in a block of audio data for decoding is m [1] × 2 10 = 0.62996052 × 2 10 (SFI = 4
3). The SF offset attaching unit 45 determines that this value is SFI = 63 (m [3] × 2 16 = 0.99999999 × 2
16 ) Calculate the offset value (scale amount) so that That is, the offset value in this case is 63-4
3 = 20.

【0114】そして、例えば、このブロック内に、スケ
ールファクタがm[2]×26 =0.79370052×26 (S
FI=32)であるユニットがあるとする。SFオフセ
ット付け部45は、このユニットのSFIに、上記のス
ケール量をオフセット値として加算し、SFIを更新す
る。すなわち、更新されたSFIは、32+20=52
(SF=m[1]×213=0.62996052×213)となる。
このように、SFオフセット付け部45は、ブロック内
のすべてのユニットにおけるSFIを更新する。
Then, for example, in this block, the scale factor is m [2] × 2 6 = 0.79370052 × 2 6 (S
Suppose there is a unit with FI = 32). The SF offset attaching section 45 updates the SFI by adding the above scale amount as an offset value to the SFI of this unit. That is, the updated SFI is 32 + 20 = 52
(SF = m [1] × 2 13 = 0.62996052 × 2 13 )
In this way, the SF offset attaching unit 45 updates the SFI in all units in the block.

【0115】その後、逆量子化部46による逆量子化に
よって、上記した(1)式よりスペクトラムデータX
〔k〕が生成された後、IMDCT部47は、このブロ
ック内のスケールファクタの最大値がSF=m[1]×
10であったことから、表3のスケールファクタの最大
値が210の欄を参照して、各演算処理における固定スケ
ール量を読み出させる。そして、演算処理の前に、被演
算値にスケーリングを施した後、IMDCT処理の各演
算処理を行う。
After that, the inverse quantization unit 46 performs inverse quantization to obtain the spectrum data X from the above equation (1).
After [k] is generated, the IMDCT unit 47 determines that the maximum value of the scale factor in this block is SF = m [1] ×
Since it is 2 10 , the maximum scale factor value in Table 3 is referred to the column of 2 10 to read the fixed scale amount in each arithmetic processing. Then, before the arithmetic processing, after scaling the operand, each arithmetic processing of the IMDCT processing is performed.

【0116】すなわち、(3)式に示したU(k)計算
部51における演算処理の前に、被演算値を、右側へ1
ビットだけシフトする。そして、(4)式に示した、F
FT1段目計算部52〜FFT3段目計算部における処
理の前に、被演算値をそれぞれ右へ1ビットだけシフト
する。そして、FFT4段目計算部における処理の前に
は、被演算値を右側へ2ビットだけシフトする。そし
て、(5)式に示したu(n)計算部53における処理
の前には、ビットシフトを行わない。
That is, before the arithmetic processing in the U (k) calculation unit 51 shown in the equation (3), the calculated value is set to the right by 1
Only shift by bits. Then, F shown in equation (4)
Prior to the processing in the FT first stage calculation unit 52 to the FFT third stage calculation unit, the operands are each shifted to the right by one bit. Then, before the processing in the FFT fourth stage calculation unit, the operand value is shifted to the right by 2 bits. Then, before the processing in the u (n) calculation unit 53 shown in the equation (5), the bit shift is not performed.

【0117】その後、ブロック化されたオーディオデー
タが生成され、逆フローティング部48に入力される
と、逆フローティング部48は、まず、IMDCT部4
7における固定スケール量の総和を求める。すなわち、
このブロック内のスケールファクタの最大値がm[1]
×210であったことから、表3のスケールファクタの最
大値が210の欄を参照して、IMDCT部47における
固定スケール量を読み出して総和を求め、求めた値を3
倍してSFIのオフセット値を得る。
After that, when the blocked audio data is generated and input to the inverse floating unit 48, the inverse floating unit 48 firstly transfers the IMDCT unit 4 to the IMDCT unit 4.
The total of the fixed scale amount in 7 is calculated. That is,
The maximum value of the scale factor in this block is m [1]
Since it was × 2 10 , the maximum scale factor value in Table 3 was 2 10 and the fixed scale amount in the IMDCT unit 47 was read to obtain the total sum.
Multiply to get the SFI offset value.

【0118】この表より、固定スケール量の総和は、1
+1+1+1+2=6となり、SFIのオフセット値は
18である。また、SFオフセット付け部45から与え
られたオフセット値が20であったので、オフセット値
は、20−(6×3)=2に更新される。さらに、逆フ
ローティング部48は、SFI=15を基準値として、
オフセット値を更新する。すなわち、15−2=13と
なる。その後、逆フローティング部48は、このオフセ
ット値が示すスケールファクタm[1]×20 と、ブロ
ック化されたオーディオデータの振幅値とを乗算する。
なお、乗算は固定小数点で行うようにしてもよい。
From this table, the sum of fixed scale amounts is 1
+ 1 + 1 + 1 + 2 = 6, and the SFI offset value is 18. Further, since the offset value given from the SF offset attaching unit 45 is 20, the offset value is updated to 20− (6 × 3) = 2. Further, the inverse floating unit 48 uses SFI = 15 as a reference value,
Update the offset value. That is, 15-2 = 13. Thereafter, inverse floating unit 48 multiplies a scale factor m [1] × 2 0 indicated by this offset value and the amplitude value of the audio data blocks.
Note that the multiplication may be performed with a fixed point.

【0119】以上のように、ミニディスク録音再生装置
1に備えられた音声伸長回路9におけるIMDCT部4
7では、周波数帯域毎に分けられたブロックにおける、
各ユニットのスケールファクタの最大値に基づいて、I
MDCT処理における各演算処理の過程でオーバーフロ
ーが生じないように、被演算値がスケーリングされるよ
うになっている。これにより、オーバーフローに起因す
る演算誤差を確実に除去することが可能となっている。
As described above, the IMDCT section 4 in the audio decompression circuit 9 provided in the mini disk recording / reproducing apparatus 1.
In 7, in the blocks divided for each frequency band,
Based on the maximum scale factor of each unit, I
The operand value is scaled so that overflow does not occur in the course of each operation process in the MDCT process. As a result, it is possible to reliably remove the calculation error caused by the overflow.

【0120】また、IMDCT部47では、固定スケー
ル量を求めるために、スペクトラムデータよりも数が少
ないスケールファクタを検索するようになっている。従
って、固定スケール量を求める演算量を非常に少なくす
ることが可能となっている。さらに、スケールファクタ
が絶対値であるため、この演算量をさらに少なくするこ
とができる。これにより、演算処理のための消費電力を
削減することが可能となっている。
Further, the IMDCT unit 47 is designed to search for a scale factor having a smaller number than the spectrum data in order to obtain the fixed scale amount. Therefore, it is possible to significantly reduce the amount of calculation for obtaining the fixed scale amount. Furthermore, since the scale factor is an absolute value, this calculation amount can be further reduced. This makes it possible to reduce power consumption for arithmetic processing.

【0121】また、ミニディスク記録再生装置1では、
スペクトラムデータのスケールファクタは、1dBを3
等分した間隔で設定されている。従って、IMDCT部
47によるスケーリングは、1ビットよりも詳細な単位
で行うことができる。従って、ビット単位でスケーリン
グを行う構成に比して、演算処理の精度を高くすること
が可能となっている。
In the mini disk recording / reproducing apparatus 1,
The spectrum data scale factor is 1 dB to 3
It is set at equal intervals. Therefore, the scaling by the IMDCT unit 47 can be performed in units more detailed than 1 bit. Therefore, it is possible to improve the accuracy of the arithmetic processing as compared with the configuration in which the scaling is performed in bit units.

【0122】なお、本実施の形態では、IMDCT部4
7における固定スケール量メモリ57が記憶している固
定スケール量は、表3に示した値であるとしている。し
かしながら、固定スケール量メモリ57が記憶する固定
スケール量は、この表のものに限るものではない。固定
スケール量は、IMDCT部47におけるU(k)計算
部51〜y(n)計算部54の演算処理において、オー
バーフローが生じないように設定されていればよい。
In this embodiment, the IMDCT unit 4
The fixed scale amount stored in the fixed scale amount memory 57 in No. 7 is the value shown in Table 3. However, the fixed scale amount stored in the fixed scale amount memory 57 is not limited to that in this table. The fixed scale amount may be set so that overflow does not occur in the arithmetic processing of the U (k) calculation unit 51 to y (n) calculation unit 54 in the IMDCT unit 47.

【0123】また、IMDCT部47によるスケーリン
グと、逆量子化部46による逆量子化とは、同時に行わ
れるようにしてもよい。ミニディスク記録再生装置1で
は、スケールファクタを用いて上記の処理を行っている
ので、このような構成とすることが可能である。このよ
うにすれば、演算量をさらに削減できるため、消費電力
をさらに削減することが可能となる。
The scaling by the IMDCT unit 47 and the inverse quantization by the inverse quantization unit 46 may be performed simultaneously. Since the minidisk recording / reproducing apparatus 1 performs the above processing by using the scale factor, it is possible to adopt such a configuration. In this way, the amount of calculation can be further reduced, so that the power consumption can be further reduced.

【0124】また、本実施の形態では、各ユニットのス
ケールファクタ(指標値)を、各ユニットにおけるスペ
クトラムデータの最大の振幅値であるとし、各ブロック
の代表値を、スケールファクタの最大値としている。し
かしながら、指標値および代表値の選択方法は、これに
限るものではなく、ユーザの所望の方法で選択するよう
にしてもよい。また、逆フローティング部48が用いる
SFIの基準値としては、ユーザの所望の値を用いるこ
とが可能である。
In this embodiment, the scale factor (index value) of each unit is the maximum amplitude value of the spectrum data in each unit, and the representative value of each block is the maximum value of the scale factor. . However, the method of selecting the index value and the representative value is not limited to this, and may be selected by a method desired by the user. Further, as the SFI reference value used by the inverse floating unit 48, a value desired by the user can be used.

【0125】また、本実施の形態では、ミニディスク記
録再生装置1において、音声圧縮回路6と音声伸長回路
9とがATRAC方式の信号処理を行うようになってい
る。しかしながら、これに限らず、音声圧縮回路6およ
び音声伸長回路9に代えて、ATRAC処理回路が設け
られた音声圧縮伸長回路を備えるようにしてもよい。そ
して、この音声圧縮伸長回路におけるATRAC処理回
路により、音声圧縮回路6および音声伸長回路9の全て
の処理を行うようにしてもよい。
Further, in the present embodiment, in the mini disk recording / reproducing apparatus 1, the audio compression circuit 6 and the audio decompression circuit 9 are adapted to perform ATRAC system signal processing. However, the invention is not limited to this, and instead of the audio compression circuit 6 and the audio expansion circuit 9, an audio compression / expansion circuit provided with an ATRAC processing circuit may be provided. Then, the ATRAC processing circuit in this audio compression / expansion circuit may perform all the processes of the audio compression circuit 6 and the audio expansion circuit 9.

【0126】また、本実施形態の音声伸長回路9では、
各処理の際に所定のスケーリングを行うようにしている
が、スケーリングを行わない構成とすることも可能であ
る。図10は、スケーリングを行わない構成の、音声伸
長回路の構成を示す説明図である。この構成は、図6に
示したSF最大値決定部44,SFオフセット付け部4
5,IMDCT部47および逆フローティング部48に
代えて、IMDCT部81を備えた構成である。
Further, in the voice expansion circuit 9 of this embodiment,
Although predetermined scaling is performed in each processing, it is also possible to adopt a configuration in which scaling is not performed. FIG. 10 is an explanatory diagram showing the configuration of the voice decompression circuit that is not scaled. This configuration has the SF maximum value determining unit 44 and the SF offset attaching unit 4 shown in FIG.
5, instead of the IMDCT unit 47 and the reverse floating unit 48, an IMDCT unit 81 is provided.

【0127】図11は、このIMDCT部81の構成を
示す説明図である。この図に示すように、IMDCT部
81は、図7に示したIMDCT部47の構成におい
て、固定スケーリング部55,固定スケール量ロード部
56および固定スケール量メモリ57を備えていない構
成である。
FIG. 11 is an explanatory diagram showing the structure of the IMDCT unit 81. As shown in this figure, the IMDCT unit 81 is a configuration that does not include the fixed scaling unit 55, the fixed scale amount loading unit 56, and the fixed scale amount memory 57 in the configuration of the IMDCT unit 47 shown in FIG. 7.

【0128】このIMDCT部81は、スケーリングを
行わないこと以外は、IMDCT部47と同様のもので
ある。さらに、このIMDCT部81を備えた音声伸長
回路は、スケーリングを行わないこと以外は、音声伸長
回路9と同様のものである。すなわち、スケーリングを
行う必要がない場合には、このような構成の音声伸長回
路を用いることも可能である。
The IMDCT unit 81 is the same as the IMDCT unit 47 except that scaling is not performed. Further, the voice decompression circuit including the IMDCT unit 81 is the same as the voice decompression circuit 9 except that scaling is not performed. That is, when it is not necessary to perform scaling, it is possible to use the audio decompression circuit having such a configuration.

【0129】〔実施の形態2〕本発明の第2の実施形態
について以下に説明する。なお、上記した実施の形態1
に示した部材と同一の機能を有する部材には、同一の符
号を付し、その説明を省略する。
[Second Embodiment] A second embodiment of the present invention will be described below. In addition, the first embodiment described above
The members having the same functions as the members shown in (4) are designated by the same reference numerals, and the description thereof will be omitted.

【0130】本実施の形態にかかるディジタル記録再生
装置は、実施の形態1に示したミニディスク記録再生装
置1の構成において、図6に示した音声圧縮回路9のI
MDCT部47に代えて、IMDCT部61を備えた構
成である。
The digital recording / reproducing apparatus according to the present embodiment is the same as that of the audio compression circuit 9 shown in FIG.
This is a configuration including an IMDCT unit 61 instead of the MDCT unit 47.

【0131】図8は、このIMDCT部61の構成を示
す説明図である。この図に示すように、IMDCT部6
1は、実施の形態1に示したIMDCT部47の構成に
おいて、固定スケーリング部55,固定スケール量ロー
ド部56および固定スケール量メモリ57に代えて、可
変スケーリング部62,可変スケール量決定部63およ
び可変スケール量メモリ64を備えた構成である。
FIG. 8 is an explanatory diagram showing the structure of the IMDCT unit 61. As shown in this figure, the IMDCT unit 6
In the configuration of the IMDCT unit 47 shown in the first embodiment, 1 is a variable scaling unit 62, a variable scale amount determining unit 63, and a fixed scale amount loading unit 56 and a fixed scale amount memory 57, instead of the fixed scaling unit 62, the variable scale amount determining unit 63, and the variable scale amount determining unit 63. This is a configuration including a variable scale amount memory 64.

【0132】IMDCT部61は、IMDCT部47と
同様に、逆量子化部46から入力されたスペクトラムデ
ータに対して、各ブロック毎にIMDCT処理を施すも
のである。すなわち、IMDCT部61におけるU
(k)計算部51〜y(n)計算部54は、入力された
スペクトラムデータに対して、上記の(2)〜(6)に
示した演算処理を行うものである。
The IMDCT unit 61, like the IMDCT unit 47, performs IMDCT processing for each block on the spectrum data input from the inverse quantization unit 46. That is, U in the IMDCT unit 61
The (k) calculation unit 51 to y (n) calculation unit 54 performs the arithmetic processing shown in the above (2) to (6) on the input spectrum data.

【0133】そして、可変スケーリング部62,可変ス
ケール量決定部63および可変スケール量メモリ64
は、上記(3)〜(5)式に示した演算処理が行われる
前に、演算の過程でのオーバーフローを防止するため
に、被演算値に対して所定のスケーリングを行うもので
ある。
Then, the variable scaling unit 62, the variable scale amount determining unit 63 and the variable scale amount memory 64.
In order to prevent overflow in the process of calculation, a predetermined scaling is performed on the calculated value before the calculation process shown in the equations (3) to (5) is performed.

【0134】以下に、可変スケーリング部62による被
演算値に対するスケーリングについて説明する。可変ス
ケーリング部62は、固定スケーリング部55と同様
に、(3)〜(5)式に示した演算処理が行われる前
に、被演算値をいったん入力する。そして、可変スケー
リング部62は、可変スケール量決定部63を制御し
て、入力した被演算値に応じたスケール量(可変スケー
ル量)を以下のように決定させる。
The scaling of the calculated value by the variable scaling unit 62 will be described below. The variable scaling unit 62, like the fixed scaling unit 55, temporarily inputs the calculated value before the calculation processing shown in the equations (3) to (5) is performed. Then, the variable scaling unit 62 controls the variable scale amount determination unit 63 to determine the scale amount (variable scale amount) according to the input calculated value as follows.

【0135】すなわち、可変スケール量決定部63は、
まず、可変スケーリング部62に入力された被演算値の
最大絶対値を求める。そして、可変スケール量メモリ6
4に記憶されている、表4に示した各演算処理における
倍率を読み出す。そして、可変スケール量決定部63
は、読み出した倍率と求めた被演算値における最大絶対
値とを乗算しても、演算処理がオーバーフローしないよ
うに、被演算値に対する可変スケール量を決定し、可変
スケーリング部62に伝達する。
That is, the variable scale amount determination unit 63
First, the maximum absolute value of the calculated value input to the variable scaling unit 62 is obtained. And the variable scale amount memory 6
Then, the magnifications stored in No. 4 in the arithmetic processing shown in Table 4 are read out. Then, the variable scale amount determination unit 63
Determines a variable scale amount for the calculated value so that the calculation process does not overflow even if the read magnification is multiplied by the maximum absolute value of the calculated value, and transmits the variable scale amount to the variable scaling unit 62.

【0136】なお、可変スケール量決定部63は、求め
た被演算値における最大絶対値が小さい場合には、演算
処理がオーバーフローしない程度に被演算値をスケール
アップするような値を、可変スケール量として決定す
る。そして、可変スケーリング部62は、伝達された可
変スケール量に基づいて、被演算値をスケーリングす
る。
If the maximum absolute value of the calculated operands is small, the variable scale amount determining unit 63 sets the variable scale amount to a value that scales up the operands to the extent that the arithmetic processing does not overflow. To decide. Then, the variable scaling unit 62 scales the calculated value based on the transmitted variable scale amount.

【0137】このように、IMDCT部61は、被演算
値における可変スケール量を、表4における倍率と、入
力される被演算値の最大絶対値とに基づいて、演算処理
毎に決定するようになっている。そして、最大絶対値が
小さい場合、すなわち、被演算値が小さい振幅のデータ
である場合には、被演算値をスケールアップするように
なっている。
As described above, the IMDCT unit 61 determines the variable scale amount in the calculated value for each calculation process based on the magnification in Table 4 and the maximum absolute value of the calculated value to be input. Has become. Then, when the maximum absolute value is small, that is, when the operand is data of small amplitude, the operand is scaled up.

【0138】従って、被演算値が小さい振幅のデータで
ある場合における、各演算処理の精度を向上させること
が可能となる。また、被演算値の全データではなく、最
大絶対値だけに注目して可変スケール量を決定するよう
になっているため、可変スケール量を決定するための演
算量は、実施の形態1に示したIMDCT部47の演算
量とほぼ同量となっている。従って、IMDCT部61
は、IMDCT部47とほぼ同様の消費電力で、可変ス
ケール量を決定することができるうようになっている。
Therefore, it is possible to improve the accuracy of each calculation process when the calculated value is data of small amplitude. Further, since the variable scale amount is determined by focusing only on the maximum absolute value, not all the data of the calculated values, the calculation amount for determining the variable scale amount is shown in the first embodiment. The calculation amount of the IMDCT unit 47 is almost the same. Therefore, the IMDCT unit 61
Is capable of determining the variable scale amount with almost the same power consumption as the IMDCT unit 47.

【0139】〔実施の形態3〕本発明の第3の実施形態
について以下に説明する。なお、上記した実施の形態1
および2に示した部材と同一の機能を有する部材には、
同一の符号を付し、その説明を省略する。本実施の形態
にかかるディジタル記録再生装置は、実施の形態1に示
したミニディスク記録再生装置1の構成において、音声
圧縮回路9のIMDCT部47に代えて、IMDCT部
71を備えた構成である。
[Embodiment 3] A third embodiment of the present invention will be described below. In addition, the first embodiment described above
A member having the same function as the member shown in and
The same reference numerals are given and the description thereof is omitted. The digital recording / reproducing apparatus according to the present embodiment has a configuration including an IMDCT section 71 in place of the IMDCT section 47 of the audio compression circuit 9 in the configuration of the mini disk recording / reproducing apparatus 1 shown in the first embodiment. .

【0140】図9は、このIMDCT部71の構成を示
す説明図である。この図に示すように、IMDCT部7
1は、実施の形態1に示したIMDCT部47の構成に
おいて、固定スケーリング部55に代えてスケーリング
部72を備えるとともに、実施の形態2に示した可変ス
ケール量決定部63および可変スケール量メモリ64を
備えている構成である。
FIG. 9 is an explanatory diagram showing the structure of the IMDCT unit 71. As shown in this figure, the IMDCT unit 7
1 includes a scaling unit 72 in place of the fixed scaling unit 55 in the configuration of the IMDCT unit 47 shown in the first embodiment, and the variable scale amount determining unit 63 and the variable scale amount memory 64 shown in the second embodiment. It is a configuration provided with.

【0141】IMDCT部71は、IMDCT部47と
同様に、逆量子化部46から入力されたスペクトラムデ
ータに対して、各ブロック毎にIMDCT処理を施すも
のである。すなわち、IMDCT部71におけるU
(k)計算部51〜y(n)計算部54は、入力された
スペクトラムデータに対して、下記の(2)〜(6)に
示した演算処理を行うものである。
The IMDCT unit 71, like the IMDCT unit 47, performs IMDCT processing for each block on the spectrum data input from the inverse quantization unit 46. That is, U in the IMDCT unit 71
The (k) calculation unit 51 to y (n) calculation unit 54 performs arithmetic processing shown in the following (2) to (6) on the input spectrum data.

【0142】そして、スケーリング部72,固定スケー
ル量ロード部56,固定スケール量メモリ57,可変ス
ケール量決定部63および可変スケール量メモリ64
は、上記(3)〜(5)式に示した演算処理が行われる
前に、演算の過程でのオーバーフローを防止するため
に、被演算値に対して所定のスケーリングを行うもので
ある。
Then, the scaling unit 72, the fixed scale amount loading unit 56, the fixed scale amount memory 57, the variable scale amount determining unit 63, and the variable scale amount memory 64.
In order to prevent overflow in the process of calculation, a predetermined scaling is performed on the calculated value before the calculation process shown in the equations (3) to (5) is performed.

【0143】以下に、スケーリング部72による被演算
値のスケーリングについて説明する。図1は、このスケ
ーリング部72における動作の流れを示すフローチャー
トである。この図に示すように、スケーリング部72
は、U(k)計算部51に入力されるスペクトラムデー
タを入力する(S1)。そして、スケーリング部72
は、入力したスペクトラムデータにおけるスケールファ
クタの最大絶対値を求める(S2)。
The scaling of the calculated value by the scaling unit 72 will be described below. FIG. 1 is a flowchart showing a flow of operations in the scaling unit 72. As shown in this figure, the scaling unit 72
Inputs the spectrum data input to the U (k) calculator 51 (S1). Then, the scaling unit 72
Calculates the maximum absolute value of the scale factor in the input spectrum data (S2).

【0144】そして、スケーリング部72は、求めた最
大絶対値に基づいて、用いるスケール量を固定とする
か、あるいは、可変とするかを判断する(S3・S
5)。すなわち、求めた最大絶対値が、あらかじめ設定
されている第1閾値(例えば215)以上である場合に
は、固定スケーリング部55と同様に、固定スケール量
ロード部56を制御して、表3に示した固定スケール量
を読み出す。すなわち、IMDCT部71における演算
には、この固定のスケール量が用いられる(S4)。
Then, the scaling unit 72 determines whether the scale amount to be used is fixed or variable based on the obtained maximum absolute value (S3.S).
5). That is, when the calculated maximum absolute value is equal to or greater than the preset first threshold value (for example, 2 15 ), the fixed scale amount loading unit 56 is controlled in the same manner as the fixed scaling unit 55, and Table 3 Read the fixed scale amount shown in. That is, this fixed scale amount is used for the calculation in the IMDCT unit 71 (S4).

【0145】また、スケーリング部72は、求めた最大
絶対値が、上記した第1閾値より小さく、あらかじめ設
定されている第2閾値以上(例えば23 )以上である場
合には、可変スケーリング部62と同様に、可変スケー
ル量決定部63を制御して、被演算値に対する可変スケ
ール量を、演算処理毎に決定させる。すなわち、IMD
CT部71における演算には、可変スケール量が用いら
れる(S6)。
If the obtained maximum absolute value is smaller than the above-mentioned first threshold value and is equal to or more than the preset second threshold value (for example, 2 3 ) or more, the scaling section 72 determines the variable scaling section 62. Similarly, the variable scale amount determining unit 63 is controlled to determine the variable scale amount for the calculated value for each calculation process. IMD
A variable scale amount is used for the calculation in the CT unit 71 (S6).

【0146】さらに、スケーリング部72は、求めた最
大絶対値が、上記した第2閾値より小さい場合には、被
演算値に対するスケーリングを行わない。すなわち、I
MDCT部71における演算では、スケーリングが行わ
れない(S7)。そして、S4,S6あるいはS7の
後、ブロック化されたオーディオデータが出力され(S
8)、IMDCT部71による処理が終了する。
Further, the scaling section 72 does not perform scaling on the operand when the calculated maximum absolute value is smaller than the above-mentioned second threshold value. That is, I
No scaling is performed in the calculation in the MDCT unit 71 (S7). Then, after S4, S6 or S7, the blocked audio data is output (S
8) The processing by the IMDCT unit 71 ends.

【0147】このように、IMDCT部71におけるス
ケーリング部72は、スペクトラムデータのスケールフ
ァクタの値に応じて、スケール量の決定の処理を切り替
える構成となっている。これにより、IMDCT部71
におけるIMDCT処理の精度を、IMDCT部47お
よびIMDCT部61における変換処理の精度に比し
て、さらに良好にすることが可能となっている。
As described above, the scaling unit 72 in the IMDCT unit 71 is configured to switch the processing for determining the scale amount according to the value of the scale factor of the spectrum data. As a result, the IMDCT unit 71
It is possible to further improve the accuracy of the IMDCT processing in (1) in comparison with the accuracy of the conversion processing in the IMDCT section 47 and the IMDCT section 61.

【0148】また、スケーリング部72におけるスケー
リングは、固定スケーリング部55あるいは可変スケー
リング部62における処理に、スペクトラムデータのス
ケールファクタの最大値を閾値を用いて判定する処理だ
けを加えたものとなっている。このため、スケーリング
部72における演算量と、固定スケーリング部55およ
び可変スケーリング部62における演算量との差は、無
視できるほど僅かである。従って、IMDCT部71の
演算量および消費電力は、IMDCT部47およびIM
DCT部61とほぼ等しい量となっている。なお、上記
第1および第2閾値は、ユーザの所望の、演算量や演算
精度に応じて決定されるものである。
Further, the scaling in the scaling unit 72 is the process in the fixed scaling unit 55 or the variable scaling unit 62 added with only the process of determining the maximum value of the scale factor of the spectrum data using a threshold value. . Therefore, the difference between the calculation amount in the scaling unit 72 and the calculation amount in the fixed scaling unit 55 and the variable scaling unit 62 is negligibly small. Therefore, the amount of calculation and power consumption of the IMDCT unit 71 are the same as those of the IMDCT unit 47 and IM.
The amount is almost equal to that of the DCT unit 61. The first and second thresholds are determined according to the calculation amount and calculation accuracy desired by the user.

【0149】なお、図1に示したIMDCT部71にお
ける全ての、あるいは一部の処理を行うためのプログラ
ムを、CD−ROM(Read Only Memory)やFD(Flop
py Disk )等の記録媒体に記録し、このプログラムを読
み込み可能であって、かつ、外部からのディジタル信号
を入力可能な情報処理装置を、IMDCT部71に代え
て用いるようにしてもよい。
A program for performing all or a part of the processing in the IMDCT unit 71 shown in FIG. 1 has a CD-ROM (Read Only Memory) or an FD (Flop).
It is also possible to use an information processing device which is recorded in a recording medium such as a py disk) and which can read this program and which can input a digital signal from the outside, instead of the IMDCT unit 71.

【0150】また、上記したスケーリング部72は、U
(k)計算部51に入力されたスペクトラムデータの最
大値を求め、この最大値に基づいて、スケール量を固定
にするか、あるいは、可変にするかの判断を行うように
してもよい。
Further, the scaling unit 72 described above is
(K) The maximum value of the spectrum data input to the calculation unit 51 may be obtained, and it may be determined whether the scale amount is fixed or variable based on the maximum value.

【0151】また、IMDCT部47,IMDCT部6
1およびIMDCT部71の処理において行われるスケ
ーリングの際、スケール量は、スケールファクタのダイ
ナミックレンジ精度によって設定されるようにしてもよ
い。
Further, the IMDCT section 47 and the IMDCT section 6
1 and the scaling performed in the processing of the IMDCT unit 71, the scale amount may be set according to the dynamic range accuracy of the scale factor.

【0152】また、表4に示した余裕ビットは、上記し
た(3)〜(5)式に示した演算処理において、演算デ
ータのデータの比率により、演算後のデータの上位ビッ
トに生じるものであってもよい。
The margin bits shown in Table 4 are generated in the higher order bits of the data after the operation depending on the data ratio of the operation data in the operation processing shown in the equations (3) to (5). It may be.

【0153】以上のように、本発明の第1のディジタル
信号の復号化方法は、ディジタル入力信号が単位時間毎
に周波数領域のスペクトラムデータに直交変換され、該
スペクトラムデータがある周波数領域のユニットに分割
され、各ユニットのスペクトラムデータが、属するユニ
ットのスペクトラムデータの代表値に基づいて、量子
化、符号化された後、量子化されたスペクトラムデータ
と、各ユニットのスペクトラムデータの代表値とを少な
くとも備えた形式で記録された符号化データを復号化す
るディジタルデータの復号化方法において、上記各ユニ
ットのスペクトラムデータの代表値を検索し、該代表値
に基づいて、逆量子化、逆直交変換の過程でオーバーフ
ローが生じないように、あらかじめ定められた固定スケ
ール量によってスケールアップおよびスケールダウンす
る方法と、被演算データに応じた可変スケール量によっ
てスケールアップおよびスケールダウンする方法とを、
選択して用いる方法である。
As described above, according to the first digital signal decoding method of the present invention, the digital input signal is orthogonally transformed into frequency domain spectrum data at every unit time, and the spectrum data is converted into a frequency domain unit. The spectrum data of each unit is quantized and encoded based on the representative value of the spectrum data of the unit to which it is divided, and then the quantized spectrum data and the representative value of the spectrum data of each unit are at least In a digital data decoding method for decoding encoded data recorded in a provided format, a representative value of spectrum data of each unit is searched, and based on the representative value, inverse quantization and inverse orthogonal transform are performed. To prevent overflow in the process, the scale is fixed by a predetermined fixed scale amount. How to pull up and scale down, and how to scale up and scale down by a variable scale amount corresponding to the operand data,
This is a method of selecting and using.

【0154】また、本発明の第2のディジタル信号の復
号化方法は、上記第1のディジタル信号の復号化方法に
おいて、上記スケールアップおよびスケールダウンを、
各ユニットのスペクトラムデータ代表値の最大値を検索
し、該最大値に基づいて行う方法である。
A second method for decoding a digital signal according to the present invention is the same as the first method for decoding a digital signal.
This is a method of searching the maximum value of the spectrum data representative value of each unit and performing it based on the maximum value.

【0155】上記第1および第2のディジタル信号の復
号化方法によれば、各ユニットのスペクトラムデータの
代表値に基づいて、あらかじめ定められた固定スケール
量によってスケールアップおよびスケールダウンを行う
か、被演算データに応じた可変スケール量によってスケ
ールアップおよびスケールダウンを行うかの選択を行う
ことにより、従来の可変スケール量のみを用いてスケー
ルアップおよびスケールダウンを行う手法に比べ、復号
化の演算量を削減できる。また、従来の固定スケール量
のみを用いてスケールアップおよびスケールダウンを行
う手法に比べ、復号化の演算精度を向上させることがで
きる。
According to the first and second digital signal decoding methods, scale-up and scale-down are performed by a predetermined fixed scale amount based on the representative value of the spectrum data of each unit, or By selecting whether to perform scale-up and scale-down according to the variable scale amount according to the operation data, the amount of decoding operation can be reduced compared to the conventional method of performing scale-up and scale-down using only the variable amount. Can be reduced. Further, it is possible to improve the calculation accuracy of decoding as compared with the conventional method of performing scale-up and scale-down using only a fixed scale amount.

【0156】また、本発明の第3のディジタル信号の復
号化方法は、上記第1のディジタル信号の復号化方法に
おいて、上記各ユニットのスペクトラムデータの代表値
を検索し、該代表値に基づいて、逆量子化、逆直交変換
の過程でオーバーフローが生じないように、あらかじめ
定められた固定スケール量によってスケールアップおよ
びスケールダウンする方法と、スケールアップおよびス
ケールダウンを行わない方法とを、選択して用いる方法
である。
The third digital signal decoding method of the present invention is the same as the first digital signal decoding method, in which a representative value of the spectrum data of each unit is searched and based on the representative value. , A method of scaling up and down by a predetermined fixed scale amount and a method of not scaling up and down so that overflow does not occur in the process of inverse quantization and inverse orthogonal transform, This is the method used.

【0157】また、本発明の第4のディジタル信号の復
号化方法は、上記第3のディジタル信号の復号化方法に
おいて、上記スケールアップおよびスケールダウンを、
各ユニットのスペクトラムデータ代表値の最大値を検索
し、該最大値に基づいて行う方法である。
A fourth method for decoding a digital signal according to the present invention is the same as the third method for decoding a digital signal.
This is a method of searching the maximum value of the spectrum data representative value of each unit and performing it based on the maximum value.

【0158】上記第3および第4のディジタル信号の復
号化方法によれば、各ユニットのスペクトラムデータの
代表値に基づいて、あらかじめ定められた固定スケール
量によってスケールアップおよびスケールダウンを行う
か、またはスケールアップおよびスケールダウンを行わ
ないかの選択を行うことにより、従来の固定スケール量
のみを用いてスケールアップおよびスケールダウンを行
う手法に比べ、復号化の演算量を削減できる。
According to the third and fourth digital signal decoding methods, scale-up and scale-down are performed by a predetermined fixed scale amount based on the representative value of the spectrum data of each unit, or By selecting whether to perform scale-up and scale-down, it is possible to reduce the amount of decoding calculation as compared with the conventional method of performing scale-up and scale-down using only a fixed scale amount.

【0159】また、本発明の第5のディジタル信号の復
号化方法は、上記第1のディジタル信号の復号化方法に
おいて、上記各ユニットのスペクトラムデータの代表値
を検索し、該代表値に基づいて、逆量子化、逆直交変換
の過程でオーバーフローが生じないように、被演算デー
タに応じた可変スケール量によってスケールアップおよ
びスケールダウンする方法と、スケールアップおよびス
ケールダウンを行わない方法とを、選択して用いる方法
である。
The fifth digital signal decoding method of the present invention is the same as the first digital signal decoding method, in which the representative value of the spectrum data of each unit is searched and based on the representative value. , A method of scaling up and down with a variable scale amount according to the data to be processed and a method of not performing scale up and down so that overflow does not occur in the process of inverse quantization and inverse orthogonal transformation This is the method used.

【0160】また、本発明の第6のディジタル信号の復
号化方法は、上記第5のディジタル信号の復号化方法に
おいて、上記スケールアップおよびスケールダウンを、
各ユニットのスペクトラムデータ代表値の最大値を検索
し、該最大値に基づいて行う方法である。
A sixth method for decoding a digital signal according to the present invention is the same as the fifth method for decoding a digital signal.
This is a method of searching the maximum value of the spectrum data representative value of each unit and performing it based on the maximum value.

【0161】上記第5および第6のディジタル信号の復
号化方法によれば、各ユニットのスペクトラムデータの
代表値に基づいて、被演算データに応じた可変スケール
量によってスケールアップおよびスケールダウンを行う
か、またはスケールアップおよびスケールダウンを行わ
ないかの選択を行うことにより、従来の可変スケール量
のみを用いてスケールアップおよびスケールダウンを行
う手法に比べ、復号化の演算量を削減できる。
According to the fifth and sixth digital signal decoding methods, whether the scale-up or scale-down is performed by the variable scale amount according to the data to be calculated based on the representative value of the spectrum data of each unit. Alternatively, by selecting whether or not to perform scale-up and scale-down, the amount of decoding calculation can be reduced as compared with the conventional method of performing scale-up and scale-down using only the variable scale amount.

【0162】また、本発明の第7のディジタル信号の復
号化方法によれば、上記第1のディジタル信号の復号化
方法において、上記各ユニットのスペクトラムデータの
代表値を検索し、該代表値に基づいて、逆量子化、逆直
交変換の過程でオーバーフローが生じないように、あら
かじめ定められた固定スケール量によってスケールアッ
プおよびスケールダウンする方法と、被演算データに応
じた可変スケール量によってスケールアップおよびスケ
ールダウンする方法と、スケールアップおよびスケール
ダウンを行わない方法とを、選択して用いる方法であ
る。
Further, according to the seventh digital signal decoding method of the present invention, in the first digital signal decoding method, the representative value of the spectrum data of each unit is searched and the representative value is obtained. Based on this, a method of scaling up and down by a predetermined fixed scale amount and a scale up and down by a variable scale amount according to the data to be processed so that overflow does not occur in the process of inverse quantization and inverse orthogonal transformation. It is a method of selectively using a method of scaling down and a method of not performing scaling up and scaling down.

【0163】また、本発明の第8のディジタル信号の復
号化方法は、上記第7のディジタル信号の復号化方法に
おいて、上記スケールアップおよびスケールダウンを、
各ユニットのスペクトラムデータ代表値の最大値を検索
し、該最大値に基づいて行う方法である。
An eighth digital signal decoding method of the present invention is the same as the seventh digital signal decoding method, wherein the scale-up and scale-down are
This is a method of searching the maximum value of the spectrum data representative value of each unit and performing it based on the maximum value.

【0164】上記第7および第8のディジタル信号の復
号化方法によれば、各ユニットのスペクトラムデータの
代表値に基づいて、あらかじめ定められた固定スケール
量によってスケールアップおよびスケールダウンを行う
か、被演算データに応じた可変スケール量によってスケ
ールアップおよびスケールダウンを行うか、またはスケ
ールアップおよびスケールダウンを行わないかの選択を
行うことにより、従来の固定スケール量のみを用いてス
ケールアップおよびスケールダウンを行う手法に比べ、
復号化の演算量を削減し、また演算精度を向上させるこ
とができる。また、従来の従来の可変スケール量のみを
用いてスケールアップおよびスケールダウンを行う手法
に比べ、復号化の演算量を削減できる。
According to the seventh and eighth digital signal decoding methods, scale-up and scale-down are performed by a predetermined fixed scale amount based on the representative value of the spectrum data of each unit, or By selecting whether to scale up and down with a variable scale amount according to the calculation data or not to perform scale up and down, scale up and down can be performed using only a fixed amount of the conventional. Compared to the method
It is possible to reduce the amount of decoding calculation and improve the calculation accuracy. Further, the amount of decoding operation can be reduced as compared with the conventional method of performing scale-up and scale-down using only a variable scale amount.

【0165】[0165]

【発明の効果】以上のように、本発明の請求項1に記載
のディジタル信号の復号化方法は、時間範囲と周波数領
域とによって複数のユニットに分割され、各ユニット毎
に設定される指標値に基づいてユニット毎に符号化され
ているスペクトラムデータを復号するためのディジタル
信号の復号化方法において、各ユニットにおける指標値
のなかから代表値を検索する第1の工程と、この代表値
に基づいて、復号のための演算における被演算値にスケ
ーリングを行うか否かを判断する第2の工程と、上記第
2の工程における判断結果に基づいて、被演算値にスケ
ーリングを行う第3の工程とを含む方法である。
As described above, the digital signal decoding method according to the first aspect of the present invention is divided into a plurality of units according to the time range and the frequency domain, and the index value set for each unit. In the method of decoding a digital signal for decoding the spectrum data coded for each unit based on, the first step of searching a representative value from the index values in each unit, and based on this representative value And a second step of determining whether or not to scale the operand in the decoding operation, and a third step of scaling the operand based on the determination result in the second step. It is a method including and.

【0166】これにより、上記の方法によれば、スケー
リングによって、オーバーフローによる演算誤差を回避
できるとともに、微小振幅のデータを精度良く復号する
ことができる。さらに、スケーリングを行うかどうかを
判断するようになっているので、スケーリングを行う必
要のないデータに対し、スケーリングを行うことがな
い。従って、復号処理における演算量を軽減することが
できる。さらに、この判断が、各ユニットにおける指標
値の代表値に基づいて行われるため、この判断のための
処理量は、非常に少ないものとなっている。このよう
に、上記の方法によれば、演算量を増加させることな
く、ディジタル信号の復号における精度を改善すること
が可能となるという効果を奏する。
As a result, according to the above method, it is possible to avoid an arithmetic error due to overflow by scaling and to decode the data having a minute amplitude with high accuracy. Furthermore, since it is determined whether or not to perform scaling, scaling is not performed on data that does not need to be scaled. Therefore, the amount of calculation in the decoding process can be reduced. Further, since this judgment is made based on the representative value of the index value in each unit, the processing amount for this judgment is very small. As described above, according to the above method, it is possible to improve the accuracy in decoding a digital signal without increasing the amount of calculation.

【0167】また、本発明の請求項に記載のディジタ
ル信号は、請求項1または2に記載の方法に加えて、上
記第3の工程におけるスケーリングのためのスケール量
を、上記代表値に基づいて決定する第4の工程を含む方
法である。
According to a third aspect of the present invention, in addition to the method according to the first or second aspect , the digital signal has a scale amount for scaling in the third step, based on the representative value. It is a method including a fourth step of determining.

【0168】上記の方法によれば、演算処理の全てのス
ケール量を、代表値に基づいて決定するようになってい
る。このため、スケール量の決定を、非常に簡潔な処理
によって行うことが可能となっている。従って、この方
法によれば、請求項1の効果に加えて、請求項1に記載
のディジタル信号の復号化方法を容易に実現することが
できるとともに、演算量をさらに削減することができる
という効果を奏する。
According to the above method, all scale amounts of the arithmetic processing are determined based on the representative value. Therefore, the scale amount can be determined by a very simple process. Therefore, according to this method, in addition to the effect of claim 1, the method of decoding a digital signal according to claim 1 can be easily realized, and the amount of calculation can be further reduced. Play.

【0169】また、本発明の請求項に記載のディジタ
ル信号の復号化方法は、請求項1または2に記載の方法
に加えて、上記第3の工程におけるスケーリングのため
のスケール量を、上記演算における被演算値に基づいて
決定する第5の工程を含む方法である。
According to a fourth aspect of the present invention, in addition to the method according to the first or second aspect , the digital signal decoding method further comprises a scaling amount for scaling in the third step. It is a method including a fifth step of making a determination based on a value to be calculated in the calculation.

【0170】上記の方法によれば、演算処理におけるス
ケール量を、各演算処理の入力データである被演算値に
基づいて決定するようになっている。このため、各演算
処理において、最適なスケーリングを被演算値に施すこ
とができるようになっている。従って、この方法によれ
ば、請求項1の効果に加えて、ディジタル信号の復号の
精度を、非常に高くすることができるという効果を奏す
る。
According to the above method, the scale amount in the arithmetic processing is determined based on the operated value which is the input data of each arithmetic processing. Therefore, in each calculation process, optimum scaling can be applied to the calculated value. Therefore, according to this method, in addition to the effect of claim 1, there is an effect that the accuracy of decoding a digital signal can be made extremely high.

【0171】また、請求項に記載のディジタル信号の
復号化方法は、請求項1または2に記載の方法に加え
て、上記第3の工程におけるスケーリングのためのスケ
ール量を、上記代表値に基づいて決定するか、あるい
は、上記演算における被演算値に基づいて決定するかを
判断し、判断結果に基づいて、上記スケール量を決定す
る第6の工程を含む方法である。
In addition to the method according to claim 1 or 2 , the digital signal decoding method according to claim 5 is characterized in that the scale amount for scaling in the third step is set to the representative value. It is a method including a sixth step of determining whether to determine based on the result of the determination, and determining based on the result of the determination.

【0172】上記の方法によれば、復号にかかるスペク
トラムデータに応じて、スケール量の決定方法を判断す
るので、スペクトラムデータの特性に応じて、最適なス
ケーリングを行うことができるようになっている。さら
に、この判断が、代表値を用いて行われるので、この判
断のための演算処理量が非常に少ないものとなってい
る。従って、上記の方法によれば、請求項1の効果に加
えて、演算量を増加させることなく、最適なスケール量
でのスケーリングを行うことが可能となるという効果を
奏する。
According to the above method, the method of determining the scale amount is determined according to the spectrum data to be decoded, so that optimum scaling can be performed according to the characteristics of the spectrum data. . Furthermore, since this judgment is made using the representative value, the amount of calculation processing for this judgment is very small. Therefore, according to the above method, in addition to the effect of the first aspect, it is possible to perform scaling with an optimum scale amount without increasing the calculation amount.

【0173】また、本発明の請求項に記載のディジタ
ル信号の復号化方法は、請求項1〜のいずれかに記載
のディジタル信号の復号化方法において、上記指標値
が、各ユニットにおけるスペクトラムデータの最大の振
幅値であるとともに、上記代表値が、全ユニットの指標
値における最大値である方法である。
A digital signal decoding method according to a sixth aspect of the present invention is the digital signal decoding method according to any one of the first to fifth aspects, wherein the index value is a spectrum in each unit. This is a method in which the representative value is the maximum value among the index values of all units, as well as the maximum amplitude value of the data.

【0174】上記の構成によれば、代表値が、スペクト
ラムデータの振幅値における最大値となる。従って、こ
の代表値に基づいてスケーリングを行うようになるの
で、スケーリングの際に、演算処理におけるオーバーフ
ローを確実に回避することが可能となる。さらに、この
方法では、指標値と代表値とを選択するために、それぞ
れスケーリングおよび指標値の最大値を選択すればよい
ので、選択の処理を非常に簡単にすることができる。こ
のように、上記の方法によれば、請求項1〜4の効果に
加えて、演算量を増加させることなく、演算処理におけ
るオーバーフローを確実に回避することが可能となると
いう効果を奏する。
According to the above configuration, the representative value becomes the maximum value in the amplitude value of the spectrum data. Therefore, since the scaling is performed based on this representative value, it is possible to reliably avoid the overflow in the arithmetic processing during the scaling. Further, in this method, since the scaling value and the maximum value of the index values only have to be selected in order to select the index value and the representative value, the selection process can be greatly simplified. As described above, according to the above method, in addition to the effects of the first to fourth aspects, it is possible to reliably avoid the overflow in the arithmetic processing without increasing the arithmetic amount.

【0175】また、本発明の請求項に記載のディジタ
ル信号の復号化方法は、時間範囲と周波数領域とによっ
て複数のユニットに分割され、各ユニット毎に設定され
る指標値に基づいてユニット毎に量子化されているスペ
クトラムデータを復号するためのディジタル信号の復号
化方法であって、各ユニットにおける指標値のなかから
代表値を検索する第7の工程と、復号のための演算にお
ける被演算値にスケーリングを行う第8の工程と、上記
第8の工程におけるスケーリングのためのスケール量
を、上記代表値に基づいて決定するか、あるいは、上記
演算における被演算値に基づいて決定するかを判断し、
判断結果に基づいて、上記スケール量を決定する第9の
工程とを含む方法である。
According to a seventh aspect of the present invention, there is provided a method for decoding a digital signal, wherein the digital signal is divided into a plurality of units according to a time range and a frequency domain, and each unit is divided based on an index value set for each unit. A method of decoding a digital signal for decoding spectrum data quantized in, comprising: a seventh step of searching a representative value from index values in each unit; The eighth step of scaling the value and the scale amount for scaling in the eighth step are determined based on the representative value or the calculated value in the calculation. Judge,
A ninth step of determining the scale amount based on the determination result.

【0176】上記の方法によれば、スケーリングによっ
て、オーバーフローによる演算誤差を回避できるととも
に、微小振幅のデータを精度良く復号することができ
る。さらに、復号にかかるスペクトラムデータに応じ
て、スケール量の決定方法を判断するので、スペクトラ
ムデータの特性に応じて、最適なスケーリングを行うこ
とができる。さらに、この判断が代表値を用いて行われ
るので、この判断のための演算処理量が非常に少ないも
のとなっている。このように、上記の方法によれば、演
算量を増加させることなく、最適なスケーリングによっ
てディジタル信号を復号することが可能となるという効
果を奏する。
According to the above method, it is possible to avoid arithmetic error due to overflow by scaling, and also it is possible to accurately decode data of minute amplitude. Furthermore, since the method of determining the scale amount is determined according to the spectrum data to be decoded, optimal scaling can be performed according to the characteristics of the spectrum data. Furthermore, since this judgment is made using the representative value, the amount of calculation processing for this judgment is very small. Thus, according to the above method, it is possible to decode a digital signal by optimal scaling without increasing the amount of calculation.

【0177】また、本発明の請求項に記載のディジタ
ル信号の復号化方法は、請求項7または8に記載の方法
において、上記指標値は、各ユニットにおけるスペクト
ラムデータの最大の振幅値であるとともに、上記代表値
は、全ユニットの指標値における最大値である方法であ
る。
The digital signal decoding method according to claim 9 of the present invention is the method according to claim 7 or 8 , wherein the index value is the maximum amplitude value of the spectrum data in each unit. In addition, the above-mentioned representative value is a method in which the index value of all units is the maximum value.

【0178】上記の方法によれば、代表値が、スペクト
ラムデータの振幅値における最大値となる。従って、こ
の代表値に基づいてスケーリングを行うようになるの
で、スケーリングの際に、演算処理におけるオーバーフ
ローを確実に回避することが可能となる。さらに、この
方法では、指標値と代表値とを選択するために、それぞ
れスケーリングおよび指標値の最大値を選択すればよい
ので、選択の処理を非常に簡単にすることができる。こ
のように、上記の方法によれば、請求項6の効果に加え
て、演算量を増加させることなく、演算処理におけるオ
ーバーフローを確実に回避することが可能となるという
効果を奏する。また、本発明の請求項12に記載のディ
ジタル信号の復号化方法は、時間範囲と周波数領域とに
よって複数のユニットに分割され、各ユニット毎に設定
される指標値に基づいてユニット毎に符号化されている
スペクトラムデータを復号するためのディジタル信号の
復号化方法において、スペクトラムデータに対してIM
DCT処理を施す工程と、各ブロックにおける、最大の
スケールファクタを有するユニットを検索し、このユニ
ットのスケールファクタを、ブロックの代表値として取
得する工程と、IMDCT処理の前に、IMDCT処理
の前に、周波数帯域毎に分けられたブロックにおける、
各ユニットのスケールファクタの最大値に基づいて、上
記IMDCT処理における演算処理の過程でオーバーフ
ローが生じないように、被演算値にスケーリングを行う
工程と、IMDCT処理が施されたスペクトラムデータ
の振幅値を補正する逆フローティング処理を行う工程と
を含み、上記逆フローティング処理を行う工程では、上
記スケーリングに用いられたスケール量の総和を求め、
求めた総和を3倍した値を、上記IMDCT処理工程に
おける処理前の、各ユニットにおけるスケールファクタ
のインデックスのオフセット値から減算し、新たなオフ
セット値を求め、この新たなオフセット値を基準値から
差し引いて、さらに新たなオフセット値とし、このさら
に新たなオフセット値に応じたスケールファクタをスケ
ール量として、IMDCT処理が施されたスペクトラム
データの振幅値に乗算する方法である。 上記の方法によ
れば、スケーリングによって、IMDCT処理における
演算処理でのオーバーフローによる演算誤差を回避でき
るとともに、微小振幅のデータ を精度良く復号すること
ができるという効果を奏する。
According to the above method, the representative value becomes the maximum value in the amplitude value of the spectrum data. Therefore, since the scaling is performed based on this representative value, it is possible to reliably avoid the overflow in the arithmetic processing during the scaling. Further, in this method, since the scaling value and the maximum value of the index values only have to be selected in order to select the index value and the representative value, the selection process can be greatly simplified. Thus, according to the above method, in addition to the effect of claim 6, it is possible to reliably avoid the overflow in the arithmetic processing without increasing the arithmetic amount. In addition, according to claim 12 of the present invention,
The digital signal decoding method is divided into the time domain and the frequency domain.
Therefore, it is divided into multiple units and set for each unit.
Is encoded for each unit based on the index value
Of the digital signal for decoding the spectrum data
In decoding method, IM for spectrum data
The process of performing DCT processing and the maximum of each block
Find the unit with the scale factor and
Block scale factor as a representative value of the block.
IMDCT treatment before the step of obtaining and IMDCT treatment
Before, in blocks divided by frequency band,
Based on the maximum scale factor of each unit,
In the process of calculation processing in IMDCT processing
Scales the operands so that there are no rows
Process and spectrum data processed by IMDCT
And a step of performing a reverse floating process to correct the amplitude value of
In the step of performing the above-mentioned reverse floating process,
Find the sum of the scale amounts used for scaling,
The value obtained by multiplying the obtained total by 3 is used in the IMDCT processing step.
Scale factor in each unit before processing
Subtract from the offset value of the index of the new off
Find the set value and set this new offset value from the reference value
Subtract and set a new offset value
The scale factor according to the new offset value.
The spectrum that has undergone IMDCT processing
This is a method of multiplying the amplitude value of data. According to the above method
Then, by scaling, in IMDCT processing
Avoids calculation errors due to overflow in calculation processing
And to decode very small amplitude data with high accuracy.
There is an effect that can be.

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

【図1】本発明の第3の実施形態に示したミニディスク
記録再生装置におけるIMDCT部の動作の流れを示す
フローチャートである。
FIG. 1 is a flowchart showing an operation flow of an IMDCT section in a mini disk recording / reproducing apparatus shown in a third embodiment of the present invention.

【図2】本発明の第1の実施形態に示したミニディスク
記録再生装置の構成を示す説明図である。
FIG. 2 is an explanatory diagram showing the configuration of the mini-disc recording / reproducing apparatus shown in the first embodiment of the present invention.

【図3】図2に示したミニディスク記録再生装置におけ
る音声圧縮回路の構成を示す説明図である。
3 is an explanatory diagram showing a configuration of an audio compression circuit in the mini disk recording / reproducing device shown in FIG.

【図4】図3に示した音声圧縮回路によってユニット化
されたスペクトラムデータの例を示す説明図である。
4 is an explanatory diagram showing an example of spectrum data unitized by the audio compression circuit shown in FIG. 3. FIG.

【図5】図3に示した音声圧縮回路から出力される音声
データの圧縮フォーマットを示す説明図である。
5 is an explanatory diagram showing a compression format of audio data output from the audio compression circuit shown in FIG.

【図6】図2に示したミニディスク記録再生装置におけ
る音声伸長回路の構成を示す説明図である。
6 is an explanatory diagram showing a configuration of an audio decompression circuit in the mini disk recording / reproducing device shown in FIG.

【図7】図6に示した音声伸長回路における、IMDC
T部の構成を示す説明図である。
7 is an IMDC in the voice decompression circuit shown in FIG.
It is explanatory drawing which shows the structure of T section.

【図8】本発明の第2の実施形態におけるミニディスク
記録再生装置の、音声伸長回路におけるIMDCT部の
構成を示す説明図である。
FIG. 8 is an explanatory diagram showing a configuration of an IMDCT section in the audio decompression circuit of the mini-disc recording / reproducing apparatus according to the second embodiment of the present invention.

【図9】本発明の第3の実施形態におけるミニディスク
記録再生装置の、音声伸長回路におけるIMDCT部の
構成を示す説明図である。
FIG. 9 is an explanatory diagram showing a configuration of an IMDCT unit in an audio decompression circuit of a mini disk recording / reproducing device according to a third embodiment of the present invention.

【図10】スケーリングを行わない構成の音声伸長回路
の構成を示す説明図である。
FIG. 10 is an explanatory diagram showing a configuration of a voice decompression circuit configured not to perform scaling.

【図11】図10に示した音声伸長回路におけるIMD
CT部の構成を示す説明図である。
11 is an IMD in the audio decompression circuit shown in FIG.
It is explanatory drawing which shows the structure of CT part.

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

1 ミニディスク記録再生装置 6 音声圧縮回路 9 音声伸長回路 41 WL展開部 42 SF展開部 43 AS展開部 44 SF最大値決定部 45 SFオフセット付け部 46 逆量子化部 47 IMDCT部 48 逆フローティング部 49 窓かけ部 50 帯域合成フィルタ部 51 U(k)計算部 52 FFT計算部 53 u(n)計算部 54 y(n)計算部 55 固定スケーリング部 56 固定スケール量ロード部 57 固定スケール量メモリ 61 IMDCT部 62 可変スケーリング部 63 可変スケール量決定部 64 可変スケール量メモリ 71 IMDCT部 72 スケーリング部 1 Mini disk recording / reproducing device 6 Audio compression circuit 9 Voice expansion circuit 41 WL Development Department 42 SF development department 43 AS Development Department 44 SF maximum value determination unit 45 SF offset attaching section 46 inverse quantizer 47 IMDCT section 48 Reverse floating part 49 Window 50 band synthesis filter section 51 U (k) calculator 52 FFT calculator 53 u (n) calculator 54 y (n) calculator 55 Fixed scaling unit 56 Fixed scale amount loading section 57 Fixed scale amount memory 61 IMDCT section 62 Variable scaling unit 63 Variable scale amount determination unit 64 variable scale memory 71 IMDCT section 72 Scaling section

───────────────────────────────────────────────────── フロントページの続き (56)参考文献 特開 平6−318875(JP,A) 特開 平4−302540(JP,A) 特開 平6−164414(JP,A) 特開 平8−223574(JP,A) (58)調査した分野(Int.Cl.7,DB名) H03M 7/30 ─────────────────────────────────────────────────── --Continued front page (56) Reference JP-A-6-318875 (JP, A) JP-A-4-302540 (JP, A) JP-A-6-164414 (JP, A) JP-A-8- 223574 (JP, A) (58) Fields investigated (Int.Cl. 7 , DB name) H03M 7/30

Claims (11)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】時間範囲と周波数領域とによって複数のユ
ニットに分割され、各ユニット毎に設定される指標値に
基づいてユニット毎に符号化されているスペクトラムデ
ータを復号するためのディジタル信号の復号化方法にお
いて、 各ユニットにおける指標値のなかから代表値を検索する
第1の工程と、 この代表値に基づいて、復号のための演算における被演
算値にスケーリングを行うか否かを判断する第2の工程
と、 上記第2の工程における判断結果に基づいて、被演算値
にスケーリングを行う第3の工程とを含むことを特徴と
するディジタル信号の復号化方法。
1. Decoding of a digital signal for decoding spectrum data which is divided into a plurality of units according to a time range and a frequency domain and is coded for each unit based on an index value set for each unit. A first step of retrieving a representative value from the index values in each unit, and a first step of determining whether or not to scale the operand value in the operation for decoding based on the representative value. 2. A method of decoding a digital signal, comprising: the second step; and a third step of scaling the calculated value based on the judgment result of the second step.
【請求項2】2. スペクトラムデータに対してIMDCT処IMDCT processing for spectrum data
理を施すIMDCT処理工程をさらに含み、Further including an IMDCT processing step of applying 上記第3の工程は、The third step is 上記IMDCT処理の前に、周波数帯域毎に分けられたPrior to the IMDCT process, the frequency bands were divided.
ブロックにおける、各ユニットのスケールファクタの最The maximum scale factor of each unit in the block
大値に基づいて、上記IMDCT処理における演算処理Calculation processing in the IMDCT processing based on a large value
の過程でオーバーフローが生じないように、被演算値にIn order to prevent overflow in the process of
スケーリングを行う工程を含むことを特徴とする請求項A method comprising the step of performing scaling.
1に記載のディジタル信号の復号化方法。1. A method of decoding a digital signal according to 1.
【請求項3】上記第3の工程におけるスケーリングのた
めのスケール量を、上記代表値に基づいて決定する第4
の工程を含むことを特徴とする請求項1または2に記載
のディジタル信号の復号化方法。
3. A fourth method for determining a scale amount for scaling in the third step based on the representative value.
3. The method of decoding a digital signal according to claim 1, further comprising the step of.
【請求項4】上記第3の工程におけるスケーリングのた
めのスケール量を、上記演算における被演算値に基づい
て決定する第5の工程を含むことを特徴とする請求項1
または2に記載のディジタル信号の復号化方法。
4. The method according to claim 1, further comprising a fifth step of determining a scale amount for scaling in the third step, based on an operand value in the operation.
Alternatively, the decoding method of the digital signal according to the item 2 .
【請求項5】上記第3の工程におけるスケーリングのた
めのスケール量を、上記代表値に基づいて決定するか、
あるいは、上記演算における被演算値に基づいて決定す
るかを判断し、判断結果に基づいて、上記スケール量を
決定する第6の工程を含むことを特徴とする請求項1
たは2に記載のディジタル信号の復号化方法。
5. A scale amount for scaling in the third step is determined based on the representative value, or
Alternatively, it is determined whether the decision on the basis of the calculation value in the calculation, based on the determination result, according to claim 1, characterized in that it comprises a sixth step of determining the amount of scale or
Or a method for decoding a digital signal according to item 2 .
【請求項6】上記指標値は、各ユニットにおけるスペク
トラムデータの最大の振幅値であるとともに、上記代表
値は、全ユニットの指標値における最大値であることを
特徴とする請求項1〜のいずれかに記載のディジタル
信号の復号化方法。
Wherein the index value, with the largest amplitude value of the spectrum data of each unit, said representations, according to claim 1 to 5, characterized in that the maximum value of the index values of all units A method for decoding a digital signal according to any one of the above.
【請求項7】時間範囲と周波数領域とによって複数のユ
ニットに分割され、各ユニット毎に設定される指標値に
基づいてユニット毎に符号化されているスペクトラムデ
ータを復号するためのディジタル信号の復号化方法にお
いて、 各ユニットにおける指標値のなかから代表値を検索する
第7の工程と、 復号のための演算における被演算値にスケーリングを行
う第8の工程と、 上記第8の工程におけるスケーリングのためのスケール
量を、上記代表値に基づいて決定するか、あるいは、上
記演算における被演算値に基づいて決定するかを判断
し、判断結果に基づいて、上記スケール量を決定する第
9の工程とを含むことを特徴とするディジタル信号の復
号化方法。
7. A digital signal decoding for decoding spectrum data, which is divided into a plurality of units according to a time range and a frequency domain and is coded for each unit based on an index value set for each unit. In the coding method, a seventh step of searching a representative value from the index values in each unit, an eighth step of scaling the operand value in the calculation for decoding, and a scaling step in the eighth step. A ninth step of determining whether the scale amount for determining based on the representative value or the calculated value in the calculation and determining the scale amount based on the determination result. A method for decoding a digital signal, comprising:
【請求項8】8. スペクトラムデータに対してIMDCT処IMDCT processing for spectrum data
理を施す工程をさらに含み、Further including the step of applying 上記第8の工程は、The eighth step is 上記IMDCT処理の前に、周波数帯域毎に分けられたPrior to the IMDCT process, the frequency bands were divided.
ブロックにおける、各ユニットのスケールファクタの最The maximum scale factor of each unit in the block
大値に基づいて、上記IMDCT処理における演算処理Calculation processing in the IMDCT processing based on a large value
の過程でオーバーフローが生じないように、被演算値にIn order to prevent overflow in the process of
スケーリングを行う工程を含むことを特徴とする請求項A method comprising the step of performing scaling.
7に記載のディジタル信号の復号化方法。7. The method for decoding a digital signal according to 7.
【請求項9】上記指標値は、各ユニットにおけるスペク
トラムデータの最大の振幅値であるとともに、上記代表
値は、全ユニットの指標値における最大値であることを
特徴とする請求項7または8に記載のディジタル信号の
復号化方法。
9. The index value, with the largest amplitude value of the spectrum data of each unit, said representations, to claim 7 or 8, characterized in that the maximum value of the index values of all units A method for decoding a digital signal as described.
【請求項10】10. スペクトラムデータに対してIMDCTIMDCT for spectrum data
処理を施す工程と、The process of applying the treatment, IMDCT処理が施されたスペクトラムデータの振幅値Amplitude value of spectrum data processed by IMDCT
を補正する逆フローティング処理を行う工程とを含むこAnd a step of performing a reverse floating process for correcting
とを特徴とする請求項1〜9のいずれかに記載のディジThe digit according to any one of claims 1 to 9, characterized by
タル信号の復号化方法。Tal signal decoding method.
【請求項11】11. 上記逆フローティング処理を行う工程でIn the process of performing the reverse floating process
は、Is 上記スケーリングに用いられたスケール量の総和を求Calculate the sum of the scale amounts used for the above scaling
め、Because 求めた総和を3倍した値を、上記IMDCT処理前の、The value obtained by multiplying the obtained total by 3 is obtained before the IMDCT processing,
各ユニットにおけるスケールファクタのインデックスのOf the scale factor index in each unit
オフセット値から減算し、新たなオフセット値を求め、Subtract from the offset value to obtain a new offset value, この新たなオフセット値を基準値から差し引いて、さらSubtract this new offset value from the reference value to
に新たなオフセット値とし、To a new offset value, このさらに新たなオフセット値に応じたスケールファクScale factor according to this new offset value
タをスケール量とし、IMDCT処理が施されたスペクIs the scale value, and the IMDCT processed spectrum
トラムデータの振幅値に乗算することを特徴とする請求Claim to multiply the amplitude value of tram data
項10記載のディジタル信号の復号化方法。Item 10. A method for decoding a digital signal according to Item 10.
JP14188598A 1998-05-22 1998-05-22 Digital signal decoding method Expired - Fee Related JP3458942B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP14188598A JP3458942B2 (en) 1998-05-22 1998-05-22 Digital signal decoding method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP14188598A JP3458942B2 (en) 1998-05-22 1998-05-22 Digital signal decoding method

Publications (2)

Publication Number Publication Date
JPH11340834A JPH11340834A (en) 1999-12-10
JP3458942B2 true JP3458942B2 (en) 2003-10-20

Family

ID=15302436

Family Applications (1)

Application Number Title Priority Date Filing Date
JP14188598A Expired - Fee Related JP3458942B2 (en) 1998-05-22 1998-05-22 Digital signal decoding method

Country Status (1)

Country Link
JP (1) JP3458942B2 (en)

Also Published As

Publication number Publication date
JPH11340834A (en) 1999-12-10

Similar Documents

Publication Publication Date Title
EP1028411B1 (en) Coding apparatus
JP3173218B2 (en) Compressed data recording method and apparatus, compressed data reproducing method, and recording medium
US6675148B2 (en) Lossless audio coder
KR100348368B1 (en) A digital acoustic signal coding apparatus, a method of coding a digital acoustic signal, and a recording medium for recording a program of coding the digital acoustic signal
US20060212290A1 (en) Audio coding apparatus and audio decoding apparatus
CA2430111C (en) Speech parameter coding and decoding methods, coder and decoder, and programs, and speech coding and decoding methods, coder and decoder, and programs
JP3186307B2 (en) Compressed data recording apparatus and method
US6353807B1 (en) Information coding method and apparatus, code transform method and apparatus, code transform control method and apparatus, information recording method and apparatus, and program providing medium
JP2001142498A (en) Method and device for digital signal processing, method and device for digital signal recording, and recording medium
JP3531177B2 (en) Compressed data recording apparatus and method, compressed data reproducing method
JP3062226B2 (en) Conditional stochastic excitation coding
JP3175446B2 (en) Information compression method and device, compressed information decompression method and device, compressed information recording / transmission device, compressed information reproducing device, compressed information receiving device, and recording medium
US20010051870A1 (en) Pitch changer for audio sound reproduced by frequency axis processing, method thereof and digital signal processor provided with the same
US5511095A (en) Audio signal coding and decoding device
JP3458942B2 (en) Digital signal decoding method
JP3268750B2 (en) Speech synthesis method and system
JP3383202B2 (en) Digital data decoding method and decoding device
JP2002094385A (en) Compression data recorder and recording method, compression data recording and reproducing device, and recording and reproducing method and recording medium
JP3304717B2 (en) Digital signal compression method and apparatus
JP3175456B2 (en) Digital signal processor
JP4963955B2 (en) Signal processing method, signal processing apparatus, and program
JP4293833B2 (en) Digital signal recording / reproducing apparatus and control program therefor
JPH06232763A (en) Signal coder and signal decoder
JP3229784B2 (en) Audio encoding / decoding device and audio decoding device
JP3334375B2 (en) Digital signal compression method and apparatus

Legal Events

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

Free format text: PAYMENT UNTIL: 20070808

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20080808

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20080808

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20090808

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20090808

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20100808

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20110808

Year of fee payment: 8

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

Free format text: PAYMENT UNTIL: 20110808

Year of fee payment: 8

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

Free format text: PAYMENT UNTIL: 20120808

Year of fee payment: 9

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

Free format text: PAYMENT UNTIL: 20120808

Year of fee payment: 9

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

Free format text: PAYMENT UNTIL: 20130808

Year of fee payment: 10

LAPS Cancellation because of no payment of annual fees