JP2002368622A - Encoder and encoding method, decoder and decoding method, recording medium, and program - Google Patents

Encoder and encoding method, decoder and decoding method, recording medium, and program

Info

Publication number
JP2002368622A
JP2002368622A JP2001169415A JP2001169415A JP2002368622A JP 2002368622 A JP2002368622 A JP 2002368622A JP 2001169415 A JP2001169415 A JP 2001169415A JP 2001169415 A JP2001169415 A JP 2001169415A JP 2002368622 A JP2002368622 A JP 2002368622A
Authority
JP
Japan
Prior art keywords
encoding
sign
code string
decoding
value
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP2001169415A
Other languages
Japanese (ja)
Other versions
JP4534112B2 (en
Inventor
Shigesuke Higashiyama
恵祐 東山
Shiro Suzuki
志朗 鈴木
Minoru Tsuji
実 辻
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Sony Corp
Original Assignee
Sony Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Sony Corp filed Critical Sony Corp
Priority to JP2001169415A priority Critical patent/JP4534112B2/en
Publication of JP2002368622A publication Critical patent/JP2002368622A/en
Application granted granted Critical
Publication of JP4534112B2 publication Critical patent/JP4534112B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To provide an encoder that encodes data, without increasing the scale of an encode sequence table as in the case of employing multi-dimensional variable length codes. SOLUTION: A control section 31 controls an encoding section 32 for encode the quantized spectra 401 comprising a group of M-sets of spectra signals after negative quantized spectra, for example, are converted into positive values (by absolute value processing), to unify the positive and negative of the quantized spectra. Further, the control section 31 controls an encoding section 33, to encode data corresponding to positions of a particular value (value 0) and the negative quantized spectra in the group, by using number of bits on the basis of number of the quantized spectra other than those with the particular value among M-sets of the quantized spectra and to generate information for identifying the negative quantized spectra.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、符号化装置および
方法、復号装置および方法、記録媒体、並びにプログラ
ムに関し、いわゆる高能率符号化によって入力ディジタ
ルデータの符号化を行い、伝送、記録、再生し、復号化
して、再生信号を得る場合に用いて好適な符号化装置お
よび方法、復号装置および方法、記録媒体、並びにプロ
グラムに関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an encoding apparatus and method, a decoding apparatus and method, a recording medium, and a program, and performs encoding, transmission, recording, and reproduction of input digital data by so-called high-efficiency encoding. The present invention relates to an encoding device and method, a decoding device and method, a recording medium, and a program suitable for use in obtaining a reproduced signal by decoding.

【0002】[0002]

【従来の技術】オーディオ或いは音声等の信号の高能率
符号化の手法には種々あるが、例えば、時間軸上のオー
ディオ信号等をブロック化しないで、複数の周波数帯域
に分割して符号化する非ブロック化周波数帯域分割方式
である、帯域分割符号化(サブ・バンド・コーディン
グ:SBC(Subband Coding))や、時間軸の信号を周波数軸
上の信号に変換(スペクトル変換)して、複数の周波数
帯域に分割し、各帯域毎に符号化するブロック化周波数
帯域分割方式、いわゆる変換符号化等を挙げることがで
きる。
2. Description of the Related Art There are various methods for high-efficiency encoding of signals such as audio or voice. For example, an audio signal or the like on a time axis is divided into a plurality of frequency bands and encoded without being blocked. Sub-band coding (sub-band coding: SBC (Subband Coding)), which is a non-blocking frequency band division method, or converting a signal on the time axis to a signal on the frequency axis (spectral conversion), A divided frequency band division method in which the frequency band is divided into frequency bands and encoded for each band, so-called conversion encoding, or the like can be used.

【0003】また、上述の帯域分割符号化と変換符号化
とを組み合した高能率符号化の手法も考えられており、
この場合には、例えば、帯域分割符号化で帯域分割を行
った後、各帯域の信号を周波数軸上の信号にスペクトル
変換し、このスペクトル変換された各帯域に符号化が施
される。ここで上述した帯域分割のためのフィルタとし
ては、例えばQMFフィルタ(Quadrature Mirror Filter)
があり、これに ついては、例えば、1976 R.E.Crochier
e Digital coding of speech in subbands,Bell Sys
t.Tech. J. Vol.55,No.8 1976に、述べられている。
[0003] Also, a high-efficiency coding method combining the above-mentioned band division coding and transform coding has been considered.
In this case, for example, after band division is performed by band division coding, the spectrum of the signal in each band is converted into a signal on the frequency axis, and the spectrum-converted band is encoded. Here, as a filter for band division described above, for example, a QMF filter (Quadrature Mirror Filter)
For example, 1976 RECrochier
e Digital coding of speech in subbands, Bell Sys
t.Tech. J. Vol.55, No.8, 1976.

【0004】また、ICASSP 83,BOSTON Polyphase Quadr
ature filters-A new subband coding technique, Jose
ph H. Rothweilerには、等バンド幅のフィルタ分割手法
が述べられている。ここで、上述したスペクトル変換と
しては、例えば、入力オーディオ信号を所定単位時間
(フレーム)でブロック化し、当該ブロック毎に離散フ
ーリエ変換(Discrete Fourier Transform)(DFT)、離散
コサイン変換(Discrete Cosine Transform)(DCT)、モデ
ィファイドDCT変換(Modified Discrete Cosine Transfo
rm)(MDCT)等を行うことで、時間軸を周波数軸に変換す
るようなスペクトル変換がある。MDCTについては、例え
ば、ICASSP 1987 Subband/Transform CodingUsing Filt
er Bank Designs Based on Time Domain Aliasing Canc
ellation, J.P.Princen A.B.Bradley Univ. of Surr
ey Royal Melbourne Inst.of Tech.に述べられてい
る。
Also, ICASSP 83, BOSTON Polyphase Quadr
ature filters-A new subband coding technique, Jose
ph H. Rothweiler describes an equal bandwidth filter partitioning technique. Here, as the above-mentioned spectral transform, for example, an input audio signal is divided into blocks in a predetermined unit time (frame), and a discrete Fourier transform (DFT), a discrete cosine transform (Discrete Cosine Transform) is performed for each block. (DCT), Modified Discrete Cosine Transfo
rm) (MDCT) or the like, there is a spectrum conversion that converts the time axis to the frequency axis. For MDCT, for example, ICASSP 1987 Subband / Transform Coding Using Filt
er Bank Designs Based on Time Domain Aliasing Canc
ellation, JPPrincen ABBradley Univ. of Surr
ey Royal Melbourne Inst. of Tech.

【0005】このようにフィルタやスペクトル変換によ
って帯域毎に分割された信号を量子化することにより、
量子化雑音が発生する帯域を制御することができ、マス
キング効果などの性質を利用して、聴覚的に、より高能
率な符号化を行うことができる。また、ここで量子化を
行う前に、各帯域毎に、例えばその帯域における信号成
分の絶対値の最大値で正規化を行うようにすれば、さら
に高能率な符号化を行うことができる。
[0005] By quantizing the signal divided for each band by the filter or the spectrum conversion as described above,
A band in which quantization noise is generated can be controlled, and a more efficient coding can be perceptually performed by utilizing properties such as a masking effect. Further, if the normalization is performed for each band, for example, with the maximum value of the absolute value of the signal component in the band before performing the quantization, more efficient coding can be performed.

【0006】周波数帯域分割された各周波数成分を量子
化する周波数分割幅としては、例えば人間の聴覚特性を
考慮した帯域分割が行われる。すなわち、一般に臨界帯
域(クリティカルバンド)と呼ばれている、高域程、帯
域幅が広くなるような帯域幅で、オーディオ信号を複数
(例えば32バント)の帯域に分割することがある。ま
た、この時の各帯域毎のデータを符号化する際には、各
帯域毎に所定のビット配分、或いは、各帯域毎に適応的
なビット割当て(ビットアロケーシヨン)による符号化
が行われる。
[0006] As a frequency division width for quantizing each frequency component divided into frequency bands, for example, band division is performed in consideration of human auditory characteristics. That is, an audio signal may be divided into a plurality of bands (for example, 32 bands) in a band generally called a critical band (critical band) such that the higher the band, the wider the bandwidth. When encoding data for each band at this time, predetermined bits are allocated to each band, or encoding is performed by adaptive bit allocation (bit allocation) for each band. .

【0007】例えば、前記MDCT処理されて得られた係数
データを前記ビットアロケーションによって符号化する
際には、前記各ブロック毎のMDCT処理により得られる各
帯域毎のMDCT係数データに対して、適応的な割当てビッ
ト数で符号化が行われることになる。ビット割当手法と
しては、次の2手法が知られている。
For example, when the coefficient data obtained by the MDCT processing is encoded by the bit allocation, adaptively to the MDCT coefficient data for each band obtained by the MDCT processing for each block. The encoding is performed with a small number of allocated bits. The following two methods are known as bit allocation methods.

【0008】第1の手法は、Adaptive Transform Codin
g of Speech Signals,R.Zelinskiand P.Noll, IEEE Tr
ansactions of Accoustics,Speech,and Signal Process
ing, vol. ASSP-25,No.4,August 1977に開示されてい
る。ここでは、各帯域毎の信号 の大きさをもとに、ビ
ット割当を行っている。この方式では、量子化雑音スペ
クトルが平坦となり、雑音エネルギーが最小となるが、
聴感覚的にはマスキング効果が利用されていないために
実際の雑音感は最適ではない。
The first method is Adaptive Transform Codin
g of Speech Signals, R. Zelinskiand P. Noll, IEEE Tr
ansactions of Accoustics, Speech, and Signal Process
ing, vol. ASSP-25, No. 4, August 1977. Here, bit allocation is performed based on the magnitude of the signal for each band. In this method, the quantization noise spectrum becomes flat and the noise energy is minimized.
The sense of noise is not optimal because the masking effect is not used for the sense of hearing.

【0009】また第2の手法は、ICASSP 1980 The crit
ical band coder-digital encodingof the perceptual
requirements of the auditory system,M.A.Kransner
MITに開示されている。ここには、聴覚マスキングを利
用することで、各帯域に必要な信号対雑音比を得て、固
定的なビット割当を行う手法が述べられている。しかし
この手法では、サイン波入力で特性を測定する場合で
も、ビット割当が固定的であるために、特性値がそれほ
ど良い値とならない。
The second method is ICASSP 1980 The crit
ical band coder-digital encodingof the perceptual
requirements of the auditory system, MAKransner
Disclosed to MIT. Here, a method is described in which a necessary signal-to-noise ratio is obtained for each band by using auditory masking and fixed bit allocation is performed. However, in this method, even when the characteristic is measured with a sine wave input, the characteristic value is not so good because the bit allocation is fixed.

【0010】これらの問題を解決するために、ビット割
当に使用できる全ビットが、各小ブロック毎にあらかじ
め定められた固定ビット割当パターン分と、各ブロック
の信号の大きさに依存したビット配分を行う分に分割使
用され、その分割比を入力信号に関係する信号に依存さ
せ、前記信号のスペクトルが滑らかなほど前記固定ビッ
ト割当パターン分への分割比率を大きくする高能率符号
化装置が提案されている。
[0010] In order to solve these problems, all bits that can be used for bit allocation include a fixed bit allocation pattern predetermined for each small block and a bit allocation depending on the signal size of each block. A high-efficiency coding apparatus has been proposed in which a division ratio is used depending on the amount to be performed, and the division ratio depends on a signal related to an input signal, and the smoother the spectrum of the signal, the larger the division ratio into the fixed bit allocation pattern. ing.

【0011】この装置によれば、サイン波入力のよう
に、特定のスペクトルにエネルギーが集中する場合に
は、そのスペクトルを含むブロックに多くのビットを割
り当てる事により、全体の信号対雑音特性を著しく改善
することができる。一般に、急峻なスペクトル成分をも
つ信号に対して人間の聴覚は極めて敏感であるため、こ
のような方法を用いる事により、信号対雑音特性を改善
することは、単に測定上の数値を向上させるばかりでな
く、聴感上、音質を改善するのに有効である。
According to this apparatus, when energy is concentrated on a specific spectrum such as a sine wave input, a large number of bits are allocated to a block including the spectrum, thereby significantly improving the entire signal-to-noise characteristic. Can be improved. In general, human hearing is extremely sensitive to signals having steep spectral components. Therefore, using such a method to improve the signal-to-noise characteristics merely improves the numerical values measured. In addition, it is effective in improving sound quality in terms of hearing.

【0012】ビット割り当ての方法としては、この他に
も数多くの方法が提案されており、さらに聴覚に関する
モデルが精緻化され、符号化装置の能力があがれば、聴
覚的にみてより高能率な符号化が可能になる。
[0012] Many other methods of bit allocation have been proposed. In addition, if an auditory model is refined and the capacity of the encoding device is increased, a code that is more efficient in terms of auditory sense will be provided. Becomes possible.

【0013】また本発明者らは、特願平5−15286
5号として、スペクトル信号から聴感上特に重要なトー
ン性の成分を分離して、他のスペクトル成分とは別に符
号化する方法を先に提案した。これにより、オーディオ
信号等を聴感上の劣化を殆ど生じさせずに、高い圧縮率
で効率的に符号化することが可能になる。
The present inventors have also disclosed in Japanese Patent Application No. 5-15286.
No. 5 has previously proposed a method of separating a tone component, which is particularly important in terms of audibility, from a spectral signal and coding the component separately from other spectral components. As a result, it is possible to efficiently encode an audio signal or the like at a high compression rate with almost no audible deterioration.

【0014】波形信号をスペクトルに変換する方法とし
て、上述のDFTやDCTを使用した場合には、M個のサンプ
ルからなる時間ブロックで変換を行うと、M個の独立な
実数データが得られる。時間ブロック間の接続歪みを軽
減するために、通常、両隣のブロックとそれぞれM1個の
サンプルずつオーバーラップさせるので、平均して、DF
TやDCTでは(M-M1)個のサンプルに対してM個の実数デー
タを量子化して符号化することになる。
When the above-described DFT or DCT is used as a method of converting a waveform signal into a spectrum, M independent real number data can be obtained by performing conversion using a time block including M samples. In order to reduce the connection distortion between time blocks, each block usually overlaps the neighboring blocks with M1 samples each, so on average, DF
In T or DCT, M real number data is quantized and encoded for (M-M1) samples.

【0015】これに対してスペクトルに変換する方法と
して上述のMDCTを使用した場合には、両隣の時間とN個
ずつオーバーラップさせた2M個のサンプルから、独立な
M個の実数データが得られるので、平均して、MDCTで
は、M個のサンプルに対してM個の実数データを量子化し
て符号化することになる。復号装置においては、このよ
うにしてMDCTを用いて得られた符号から、各ブロックに
おいて逆変換を施して得られた波形要素を互いに干渉さ
せながら加え合わせることにより、波形信号を再構成す
ることができる。
On the other hand, when the above-mentioned MDCT is used as a method of converting into a spectrum, independent 2N samples are overlapped with N times each of the adjacent times.
Since M pieces of real number data are obtained, on average, the MDCT quantizes and codes M pieces of real number data for M samples. In the decoding device, it is possible to reconstruct the waveform signal from the code obtained by using the MDCT in this way by adding the waveform elements obtained by performing the inverse transform in each block while interfering with each other. it can.

【0016】一般に変換のための時間ブロックを長くす
ることによって、スペクトルの周波数分解能が高まり、
特定のスペクトル成分にエネルギーが集中する。従っ
て、両隣のブロックと半分ずつオーバーラップさせて長
いブロック長で変換を行い、しかも、得られたスペクト
ル信号の個数が、元の時間サンプルの個数に対して増加
しないMDCTを使用することにより、DFTやDCTを使用した
場合よりも効率の良い符号化を行うことが可能となる。
また、隣接するブロック同士に十分長いオーバーラップ
を持たせることによって、波形信号のブロック間歪みを
軽減することもできる。
In general, by extending the time block for the transformation, the frequency resolution of the spectrum is increased,
Energy concentrates on specific spectral components. Therefore, the DFT is performed by using a MDCT in which the conversion is performed with a long block length by overlapping the neighboring blocks by half each and the number of obtained spectral signals does not increase with respect to the number of original time samples. It is possible to perform more efficient coding than when DCT or DCT is used.
In addition, by providing a sufficiently long overlap between adjacent blocks, distortion between blocks of a waveform signal can be reduced.

【0017】実際の符号列を構成するにあたっては、先
ず、正規化および量子化が行われる帯域毎に量子化精度
情報、正規化係数情報を所定のビット数で符号化し、次
に、正規化および量子化されたスペクトル信号を符号化
すれば良い。
In constructing an actual code sequence, first, quantization accuracy information and normalization coefficient information are encoded with a predetermined number of bits for each band in which normalization and quantization are performed. What is necessary is just to encode the quantized spectrum signal.

【0018】スペクトル信号を符号化するにあたって
は、例えばハフマン符号のような可変長符号を用いる方
法が知られている。ハフマン符号については、例えば、
DavidA. Huffman, "A Method for the Construction of
Minimum - Redundancy Codes",Proceedings of the I.
R.E., pp1098-1101, Sep., 1952に述べられている。
For encoding a spectrum signal, a method using a variable length code such as a Huffman code is known. For Huffman codes, for example,
DavidA. Huffman, "A Method for the Construction of
Minimum-Redundancy Codes ", Proceedings of the I.
RE, pp 1098-1101, Sep., 1952.

【0019】さらに複数のスペクトル信号をまとめて1
つの符号で表現する多次元の可変長符号を用いる方法が
知られている。一般に多次元の可変長符号を用いる符号
化方法では、符号の次数が大きいほど、圧縮効率の面で
より効率の良い符号化が行える。但し、次数が大きくな
るに従って、符号列表の規模が飛躍的に増加してしまう
ため、実用面での問題が生じる。実際には圧縮効率と符
号列表の規模を考慮しながら目的に応じた最適な次数が
選択される。
Further, a plurality of spectral signals are collected into one
A method using a multidimensional variable length code expressed by two codes is known. Generally, in an encoding method using a multidimensional variable length code, as the order of the code is larger, more efficient encoding can be performed in terms of compression efficiency. However, as the order increases, the size of the code string table dramatically increases, which causes a problem in practical use. In practice, an optimal order according to the purpose is selected in consideration of the compression efficiency and the size of the code string table.

【0020】一般に音響波形信号では、基本周波数成分
と基本周波数の整数倍の周波数成分、いわゆる倍音成分
にエネルギーが集中する場合が多く、その周波数周辺の
スペクトル信号は、いわゆる倍音成分に比べてレベルが
非常に小さいため、0に量子化される確率が大きくな
る。このような信号を効率良く符号化するためには、発
生確率の大きな0に量子化されたスペクトル信号を、可
能な限り少ない情報量で符号化すればよいことになる。
1次元の可変長符号を用いる場合、各々のスペクトル信
号が最短符号長の1ビットで符号化されたとしても、N
本のスペクトルではNビットの情報が必要となる。次数N
の多次元の可変長符号を用いた場合では、N本のスペク
トルを最短符号長の1ビットで符号化することが出来る
ため、前記のような周波数成分を持つ信号に対して効率
の良い符号化が行える。
In general, in an acoustic waveform signal, energy is often concentrated on a fundamental frequency component and a frequency component that is an integral multiple of the fundamental frequency, that is, a so-called harmonic component, and the level of a spectrum signal around the frequency is higher than that of a so-called harmonic component. Since it is very small, the probability of being quantized to zero increases. In order to efficiently encode such a signal, it is sufficient to encode a spectrum signal quantized to 0 having a large occurrence probability with a minimum amount of information.
When a one-dimensional variable length code is used, even if each spectrum signal is encoded with the shortest code length of 1 bit, N
The spectrum of the book requires N bits of information. Order N
In the case of using the multi-dimensional variable-length code, since N spectra can be encoded with the shortest code length of 1 bit, efficient encoding can be performed on a signal having frequency components as described above. Can be performed.

【0021】但し、多次元の可変長符号を用いる符号化
方法において、符号の次数を大きくすることは、圧縮効
率の面でかなり有利に作用するものの、実用化を考慮し
た場合、際限無く符号の次数を大きくことは不可能であ
る。
However, in the encoding method using a multidimensional variable length code, increasing the order of the code has a considerable advantage in terms of compression efficiency, but in consideration of practical use, the code of the code is not limited. It is impossible to increase the order.

【0022】通常、符号列表は帯域毎に設定される量子
化精度情報毎に用意されている。量子化精度が低い場合
は、表現できるスペクトル信号の値が少ないため、次数
を大きくしてもそれほど符号列表の規模は増大しない
が、量子化精度が高い場合は、当然表現できるスペクト
ル信号の値も多くなるため、次数を1つ増加させるだけ
でも、符号列表の規模は著しく増加する。
Normally, a code string table is prepared for each piece of quantization accuracy information set for each band. If the quantization precision is low, the value of the spectral signal that can be represented is small, so increasing the order does not increase the size of the code string table so much, but if the quantization precision is high, the value of the spectral signal that can be represented Therefore, even if the order is increased by one, the size of the code string table is significantly increased.

【0023】以上のことを、具体例を用いてさらに説明
する。いま、入力信号をMDCT変換し、図1に示すような
スペクトルを得たとする。図1はMDCTのスペクトルの絶
対値を、レベルをdBに変換して示したものである。入力
信号は所定の時間ブロック毎に64個のスペクトル信号
に変換されており、それらが[1]から[8]の8個の
符号化ユニットにまとめられ、正規化および量子化が行
われる。
The above will be further described with reference to specific examples. Now, it is assumed that an input signal is subjected to MDCT conversion and a spectrum as shown in FIG. 1 is obtained. FIG. 1 shows the absolute value of the spectrum of the MDCT with the level converted to dB. The input signal is converted into 64 spectral signals for each predetermined time block, and these are combined into eight coding units [1] to [8], and normalization and quantization are performed.

【0024】周波数成分の分布の仕方によって符号化ユ
ニット毎に量子化精度を変化させることにより、音質の
劣化を最小限に押さえ、聴覚的に効率の良い符号化を行
うことが可能である。各符号化ユニットにおいて必要な
量子化精度情報は、例えば、聴覚モデルに基づいて、各
符号化ユニットに対応する帯域での最小可聴レベルやマ
スキングレベルを計算することによって求めることがで
きる。正規化及び量子化されたスペクトル信号は可変長
符号に変換されて、各符号化ユニットに量子化精度情報
及び正規化情報と共に符号化される。
By changing the quantization accuracy for each coding unit depending on the distribution of the frequency components, it is possible to minimize the deterioration of the sound quality and perform audio-efficient coding. The quantization accuracy information required in each coding unit can be obtained, for example, by calculating a minimum audible level and a masking level in a band corresponding to each coding unit based on an auditory model. The normalized and quantized spectrum signal is converted into a variable length code, and is encoded in each encoding unit together with quantization accuracy information and normalization information.

【0025】図2は、量子化精度情報の表現方法を説明
するための図である。量子化精度情報コードを3ビット
で表現する場合、最大8通りの量子化精度情報を設定す
ることが出来る。この例では、1段階、3段階、5段
階、7段階、15段階、31段階、63段階、または1
27段階の8通りのステップ数のどれかで量子化が行わ
れることになる。ここで、1段階のステップに量子化さ
れるというのは、その符号化ユニット内のスペクトル信
号がすべて0の値に量子化されるということを意味す
る。
FIG. 2 is a diagram for explaining a method of expressing quantization accuracy information. When the quantization accuracy information code is expressed by 3 bits, up to eight types of quantization accuracy information can be set. In this example, 1, 3, 5, 7, 15, 31, 63, or 1
The quantization is performed by any of the eight steps of 27 steps. Here, being quantized in one step means that the spectral signals in the coding unit are all quantized to a value of zero.

【0026】図3は、従来行われてきた可変長符号化の
方法を説明するための図である。スペクトル信号は、符
号化ユニット毎に決められた量子化精度情報に基づいて
量子化され、量子化スペクトルが求められる。量子化ス
ペクトルを符号化する際は、図4に示すような符号列表
を参照することにより、対応する符号列に変換される。
図4から明らかなように、符号列表は量子化精度情報毎
に用意されている。
FIG. 3 is a diagram for explaining a conventional variable-length coding method. The spectrum signal is quantized based on quantization accuracy information determined for each coding unit, and a quantized spectrum is obtained. When encoding the quantized spectrum, it is converted into a corresponding code string by referring to a code string table as shown in FIG.
As is clear from FIG. 4, a code string table is prepared for each piece of quantization accuracy information.

【0027】図3において、符号化ユニット[1]で
は、量子化精度情報としてコード”011”が選択され
ている。従って、図4に示すように、7段階のステップ
数で量子化が行われ、量子化されたスペクトル信号の値
(量子化スペクトル)は、周波数が低いほうから順に、
3,−1,2,2となる。これらを図4の量子化精度情
報コードが”011”の符号列表を用いて符号列に変換
すると、それぞれ1110,101,1100,110
0となり、符号長はそれぞれ4,3,4,4となる。
In FIG. 3, in the coding unit [1], a code “011” is selected as quantization accuracy information. Therefore, as shown in FIG. 4, quantization is performed in seven steps, and the values of the quantized spectrum signals (quantized spectrum) are in order from the lowest frequency.
3, -1, 2, and 2. When these are converted into code strings using the code string table in which the quantization accuracy information code of FIG. 4 is “011”, they are 1110, 101, 1100, and 110, respectively.
0, and the code lengths are 4, 3, 4, and 4, respectively.

【0028】また、符号化ユニット[2]では、量子化
精度情報としてコード”010”が選択されており、こ
の場合、図4に示すように、5段階のステップ数で量子
化が行われる。この例では、量子化スペクトルは周波数
が低いほうから順に、−2,1,0,1となる。これら
を図4の量子化精度情報コードが”010”の符号列表
を用いて符号列に変換すると、それぞれ111,10
0,0,100となり、符号長はそれぞれ3,3,1,
3となる。
In the coding unit [2], a code "010" is selected as quantization accuracy information. In this case, as shown in FIG. 4, quantization is performed in five steps. In this example, the quantization spectrum is -2, 1, 0, 1 in order from the lowest frequency. These are converted into code strings using the code string table with the quantization accuracy information code of “010” in FIG.
0, 0, 100, and the code lengths are 3, 3, 1,
It becomes 3.

【0029】同様に符号化ユニット[3]では、量子化
精度情報としてコード”001”が選択されており、3
段階のステップ数で量子化が行われ、量子化スペクトル
は0,−1,0,0、符号列は0,11,0,0、そし
て符号長は1,2,1,1となる。
Similarly, in the coding unit [3], the code “001” is selected as the quantization accuracy information.
The quantization is performed by the number of steps in the step, the quantized spectrum is 0, -1, 0, 0, the code sequence is 0, 11, 0, 0, and the code length is 1, 2, 1, 1.

【0030】図5は、2次元の可変長符号化の方法を説
明するための図である。なお、図5には、図3の場合と
同様の符号化ユニットが示されている。
FIG. 5 is a diagram for explaining a two-dimensional variable length coding method. FIG. 5 shows the same encoding unit as in FIG.

【0031】量子化精度情報コードが”001”の場合
の符号列表として、図6に示すような2次元の符号列表
を用いるとすると、図5における符号化ユニット[3]
の量子化スペクトルは、2本ずつ1つのグループにまと
められて1つの符号列に変換される。従って、4本のス
ペクトル信号の量子化スペクトルである0,−1,0,
0は、(0,−1),(0,0)の2つのグループにま
とめられ、101,0の2つの符号列に変換される。
Assuming that a two-dimensional code string table as shown in FIG. 6 is used as the code string table when the quantization accuracy information code is “001”, the coding unit [3] in FIG.
Are grouped into one group by two and converted into one code string. Therefore, the quantized spectra of the four spectral signals 0, -1, 0,
0s are grouped into two groups of (0, -1) and (0, 0) and are converted into two code strings of 101 and 0.

【0032】符号化ユニット[3]のスペクトル信号
を、図3に示したように、1次元の可変長符号で符号化
すると、必要な情報量は1+2+1+1=5ビットとな
る。それに対して、図5に示すように、2次元の可変長
符号で符号化すると、その情報量は、3+1=4ビット
となる。すなわち、次数を高くすると、より少ない情報
量で符号化が行えることが判る。
When the spectrum signal of the coding unit [3] is coded with a one-dimensional variable length code as shown in FIG. 3, the required information amount is 1 + 2 + 1 + 1 = 5 bits. On the other hand, as shown in FIG. 5, when encoding is performed using a two-dimensional variable length code, the information amount is 3 + 1 = 4 bits. That is, it can be seen that when the degree is increased, encoding can be performed with a smaller amount of information.

【0033】[0033]

【発明が解決しようとする課題】以上説明したように、
複数の(N本の)のスペクトル信号の量子化スペクトル
を、1つのグループにまとめて、N次元のデータとし、
これを符号列表に従って、可変長符号に符号化すること
で、1次元の可変長符号を用いる場合に較べて、符号長
を短くすることができる。しかしながら、次数(Nの
値)が増加すると、符号列表の規模が著しく増加し、実
用化が困難となる課題があった。
As described above,
Quantized spectra of a plurality of (N) spectral signals are grouped into one group to form N-dimensional data,
By encoding this into a variable length code according to the code string table, the code length can be reduced as compared with the case where a one-dimensional variable length code is used. However, when the order (the value of N) increases, the size of the code string table significantly increases, and there is a problem that practical use becomes difficult.

【0034】例えば、2次元の可変長符号を用いる場
合、量子化精度情報コードが”001” ,”01
0”,”110”の場合の符号列表は、図6乃至図8に
示すように、1次元の可変長符号を用いる場合の符号列
表(図4)に比べ、符号列表の規模が増加している。
For example, when a two-dimensional variable length code is used, the quantization accuracy information code is "001", "01".
As shown in FIGS. 6 to 8, the code sequence table in the case of 0 ″ and “110” has a larger code sequence table than the code sequence table in the case of using a one-dimensional variable length code (FIG. 4). I have.

【0035】本発明はこのような状況に鑑みてなされた
ものであり、多次元の可変長符号化を用いる場合のよう
に符号列表の規模を大きくすることなく、短い符号長で
符号化を行うことができるようにするものである。
The present invention has been made in view of such a situation, and performs encoding with a short code length without increasing the size of a code string table as in the case of using multidimensional variable length encoding. Is what you can do.

【0036】[0036]

【課題を解決するための手段】本発明の符号化装置は、
数値の正負を調整して、M個の数値の正負を統一する統
一手段と、統一手段により正負が統一された数値を符号
化する第1の符号化手段と、統一手段により正負が調整
された数値を特定するための正負情報を生成して符号化
する第2の符号化手段と、第1の符号化手段の出力と第
2の符号化手段の出力を含む符号列を生成する符号列生
成手段とを備えることを特徴とする。
An encoding apparatus according to the present invention comprises:
The unifying means for adjusting the sign of the numerical values to unify the positive and negative of the M numerical values, the first encoding means for encoding the numerical value whose sign is unified by the unifying means, and the positive and negative signs adjusted by the unifying means Second encoding means for generating and encoding positive / negative information for specifying a numerical value, and code string generation for generating a code string including an output of the first encoding means and an output of the second encoding means Means.

【0037】符号列生成手段は、第1の符号化手段の出
力と第2の符号化手段の出力を交互に含むように符号列
を生成することができる。
The code string generating means can generate the code string so as to include the output of the first coding means and the output of the second coding means alternately.

【0038】第2の符号化手段には、M個の数値のうち
の特定値以外の数値の数を計算する計算手段と、特定値
以外の数値の正負が調整されたかどうかの情報を計算手
段で求められた数だけ生成して正負情報とする生成手段
とを設けることができる。
The second encoding means includes a calculating means for calculating the number of numerical values other than the specific value among the M numerical values, and a calculating means for determining whether the sign of the numerical value other than the specific value has been adjusted. And generating means for generating the number obtained by the above and making the information positive and negative.

【0039】符号化手段は、数値を、可変長の符号列に
符号化することができる。
The encoding means can encode the numerical value into a variable-length code string.

【0040】可変長の符号列は、ハフマン符号とするこ
とができる。
The variable-length code string can be a Huffman code.

【0041】数値列は、量子化された音響波形信号とす
ることができる。
The numerical sequence can be a quantized acoustic waveform signal.

【0042】本発明の符号化方法は、数値の正負を調整
して、M個の数値の正負を統一する統一ステップと、統
一ステップの処理で正負が統一された数値を符号化する
第1の符号化ステップと、統一ステップの処理で正負が
調整された数値を特定するための正負情報を生成して符
号化する第2の符号化ステップと、第1の符号化ステッ
プの処理での出力と第2の符号化ステップの処理での出
力を含む符号列を生成する符号列生成ステップとを含む
ことを特徴とする。
The encoding method of the present invention adjusts the sign of the numerical values to unify the positive and negative of the M numerical values, and encodes the numerical values of which the sign is unified by the processing of the unifying step. An encoding step, a second encoding step of generating and encoding positive / negative information for specifying a numerical value whose sign has been adjusted in the processing of the unifying step, and an output in the processing of the first encoding step. A code string generating step of generating a code string including an output in the processing of the second encoding step.

【0043】本発明の第1の記録媒体のプログラムは、
数値の正負を調整して、M個の数値の正負を統一する統
一ステップと、統一ステップの処理で正負が統一された
数値を符号化する第1の符号化ステップと、統一ステッ
プの処理で正負が調整された数値を特定するための正負
情報を生成して符号化する第2の符号化ステップと、第
1の符号化ステップの処理での出力と第2の符号化ステ
ップの処理での出力を含む符号列を生成する符号列生成
ステップとを含むことを特徴とする。
The program of the first recording medium of the present invention comprises:
A unifying step of adjusting the sign of the numerical values to unify the sign of the M numbers, a first encoding step of encoding a numerical value of which the sign is unified by the unifying step processing, and a positive or negative sign by the processing of the unifying step A second encoding step for generating and encoding the positive / negative information for specifying the numerical value adjusted by, an output in the processing of the first encoding step, and an output in the processing of the second encoding step And a code string generating step of generating a code string including the following.

【0044】本発明の第1のプログラムは、数値の正負
を調整して、M個の数値の正負を統一する統一ステップ
と、統一ステップの処理で正負が統一された数値を符号
化する第1の符号化ステップと、統一ステップの処理で
正負が調整された数値を特定するための正負情報を生成
して符号化する第2の符号化ステップと、第1の符号化
ステップの処理での出力と第2の符号化ステップの処理
での出力を含む符号列を生成する符号列生成ステップと
を含む処理をコンピュータに実行させることを特徴とす
る。
A first program according to the present invention is a unifying step for adjusting the sign of a numerical value to unify the sign of M numbers, and a first step for encoding a numerical value of which the sign is unified by the processing of the unifying step. , A second encoding step of generating and encoding positive / negative information for specifying a numerical value whose sign has been adjusted in the processing of the unifying step, and an output in the processing of the first encoding step And causing the computer to execute processing including a code string generation step of generating a code string including an output in the processing of the second encoding step.

【0045】本発明の符号化装置および方法、第1の記
録媒体のプログラム、並びに第1のプログラムにおいて
は、数値の正負を調整して、M個の数値の正負が統一さ
れ、正負が統一された数値が符号化され、正負が調整さ
れた数値を特定するための正負情報が生成されて符号化
され、符号列が生成される。
In the encoding apparatus and method of the present invention, the program of the first recording medium, and the first program, the sign of the M values is adjusted so that the sign of the M numbers is unified, and the sign is unified. The calculated numerical value is encoded, and positive / negative information for specifying the numerical value with the adjusted positive / negative is generated and encoded to generate a code string.

【0046】本発明の復号装置は、M個の数値列を構成
する数値の正負を統一して一つのグループとして符号化
された第1の符号列と、正負を統一する際に正負が調整
された数値を特定するための情報を符号化した第2の符
号列とを含む符号列を受け取る入力手段と、第1の符号
列を復号する復号手段と、第2の符号列を復号し、正負
が調整された数値を特定するための情報を読み取る第1
の読み取り手段と、復号手段により復号されたM個の正
負が調整された数値列と、第1の読み取り手段により読
み取られた正負が調整された数値を特定するための情報
に基づいて、M個の数値列の正負を復元する復元手段と
を備えることを特徴とする。
The decoding apparatus of the present invention adjusts the sign of the first code string, which is encoded as one group by unifying the signs of the numbers forming the M number strings, and the sign is adjusted when the signs are unified. Input means for receiving a code string including a second code string obtained by encoding information for specifying the calculated numerical value; decoding means for decoding the first code string; decoding means for decoding the second code string; To read information for identifying the adjusted numerical value
Based on the read means, the M number-positive / negative value sequence decoded by the decoding means, and the information for specifying the positive / negative value read by the first reading means. And a restoring means for restoring the sign of the numerical sequence.

【0047】入力手段は、第1の符号列と第2の符号列
が交互に含まれる符号列を受け取ることができる。
The input means can receive a code string containing the first code string and the second code string alternately.

【0048】第1の読み取り手段には、M個の数値のう
ちの特定値以外の数値の数を計算する計算手段と、特定
値以外の数値の正負が調整されたかどうかの情報を計算
手段で求められた数だけ読み取る第2の読み取り手段と
を設けることができる。
The first reading means includes calculating means for calculating the number of numerical values other than the specific value out of the M numerical values, and information for determining whether the sign of the numerical value other than the specific value has been adjusted by the calculating means. Second reading means for reading the obtained number can be provided.

【0049】第2の読み取り手段は、復号手段により特
定値が復号された場合、第2の符号列の読み取りを行わ
ないことができる。
The second reading means can not read the second code string when the specific value is decoded by the decoding means.

【0050】特定値は、値0とすることができる。The specific value can be the value 0.

【0051】本発明の復号方法は、M個の数値列を構成
する数値の正負を統一して一つのグループとして符号化
された第1の符号列と、正負を統一する際に正負が調整
された数値を特定するための情報を符号化した第2の符
号列とを含む符号列を受け取る入力ステップと、第1の
符号列を復号する復号ステップと、第2の符号列を復号
し、正負が調整された数値を特定するための情報を読み
取る第1の読み取りステップと、復号ステップの処理で
復号されたM個の正負が調整された数値列と、第1の読
み取りステップの処理で読み取られた正負が調整された
数値を特定するための情報に基づいて、M個の数値列の
正負を復元する復元ステップとを含むことを特徴とす
る。
According to the decoding method of the present invention, the positive and negative values are adjusted when unifying the positive and negative values of the numerical value constituting the M numerical value sequences into a first code sequence encoded as one group. An input step of receiving a code string including a second code string obtained by encoding information for specifying the calculated numerical value, a decoding step of decoding the first code string, and a decoding step of decoding the second code string. A first reading step of reading information for specifying the adjusted numerical value, a sequence of M numbers of positive / negative numbers adjusted in the decoding step, and a number sequence read in the first reading step. A restoring step of restoring the sign of the M number sequence based on the information for specifying the numerical value whose sign has been adjusted.

【0052】本発明の第2の記録媒体のプログラムは、
M個の数値列を構成する数値の正負を統一して一つのグ
ループとして符号化された第1の符号列と、正負を統一
する際に正負が調整された数値を特定するための情報を
符号化した第2の符号列とを含む符号列を受け取る入力
ステップと、第1の符号列を復号する復号ステップと、
第2の符号列を復号し、正負が調整された数値を特定す
るための情報を読み取る第1の読み取りステップと、復
号ステップの処理で復号されたM個の正負が調整された
数値列と、第1の読み取りステップの処理で読み取られ
た正負が調整された数値を特定するための情報に基づい
て、M個の数値列の正負を復元する復元ステップとを含
むことを特徴とする。
The program of the second recording medium of the present invention comprises:
The first code string, which is encoded as one group by unifying the signs of the numbers constituting the M number strings, and the information for specifying the numbers whose signs have been adjusted when unifying the signs, are encoded. An input step of receiving a code string including the converted second code string, and a decoding step of decoding the first code string;
A first reading step of decoding the second code string and reading information for specifying the numerical value of which the sign has been adjusted, and a number string of M signs adjusted in the decoding step, A restoring step of restoring the sign of the M number sequence based on the information for specifying the sign whose sign has been adjusted read in the processing of the first reading step.

【0053】本発明の第2のプログラムは、M個の数値
列を構成する数値の正負を統一して一つのグループとし
て符号化された第1の符号列と、正負を統一する際に正
負が調整された数値を特定するための情報を符号化した
第2の符号列とを含む符号列を受け取る入力ステップ
と、第1の符号列を復号する復号ステップと、第2の符
号列を復号し、正負が調整された数値を特定するための
情報を読み取る第1の読み取りステップと、復号ステッ
プの処理で復号されたM個の正負が調整された数値列
と、第1の読み取りステップの処理で読み取られた正負
が調整された数値を特定するための情報に基づいて、M
個の数値列の正負を復元する復元ステップとを含むこと
を特徴とする。
The second program according to the present invention provides a first code string which is encoded as one group by unifying the sign of the numerical values constituting the M number string and the sign when the sign is unified. An input step of receiving a code string including a second code string in which information for specifying the adjusted numerical value is encoded; a decoding step of decoding the first code string; and a decoding step of decoding the second code string. , A first reading step of reading information for specifying a numerical value whose positive / negative has been adjusted, a sequence of M positive / negative numerical values decoded in the processing of the decoding step, and a processing of the first reading step. Based on the read information for identifying the adjusted numerical value, M
And restoring the sign of the number sequence.

【0054】本発明の復号装置および方法、第2の記録
媒体のプログラム、並びに第2のプログラムにおいて
は、M個の数値列を構成する数値の正負を統一して一つ
のグループとして符号化された第1の符号列と、正負を
統一する際に正負が調整された数値を特定するための情
報を符号化した第2の符号列とを含む符号列が受け取ら
れ、第1の符号列が復号され、第2の符号列が復号さ
れ、正負が調整された数値を特定するための情報が読み
取られ、復号されたM個の正負が調整された数値列と、
読み取られた正負が調整された数値を特定するための情
報に基づいて、M個の数値列の正負が復元される。
In the decoding device and method according to the present invention, the program of the second recording medium, and the second program, the positive and negative values constituting the M number sequence are unified and encoded as one group. A code string including a first code string and a second code string that encodes information for specifying a numerical value whose sign has been adjusted when unifying the positive and negative signs is received, and the first code string is decoded. And a second code string is decoded, information for identifying the positive / negative adjusted numerical value is read, and the decoded M positive / negative adjusted numerical string;
Based on the read information for specifying the adjusted numeric value, the positive / negative of the M number sequence is restored.

【0055】[0055]

【発明の実施の形態】図9は、本発明を適用した符号化
装置の構成例を示している。
FIG. 9 shows an example of the configuration of an encoding apparatus to which the present invention is applied.

【0056】この符号化装置に入力された信号波形10
1は変換回路1によって信号周波数成分102に変換さ
れた後、信号成分符号化回路2によって各成分が符号化
され、符号列生成回路3によって符号列が生成されるよ
うになされている。この符号列は所定の伝送路に伝送さ
れたり、情報記録媒体4に記録される。
The signal waveform 10 input to this encoding device
1 is converted into a signal frequency component 102 by a conversion circuit 1, each component is encoded by a signal component encoding circuit 2, and a code sequence is generated by a code sequence generation circuit 3. This code string is transmitted to a predetermined transmission path or recorded on the information recording medium 4.

【0057】図10は、変換回路1の構成例を示してい
る。
FIG. 10 shows a configuration example of the conversion circuit 1.

【0058】帯域分割フィルタ11によって2つの帯域
に分割された信号成分211,212が、それぞれの帯
域においてMDCT等の順スペクトル変換回路12,13に
よって、スペクトル信号成分221,222に変換され
るようになされている。信号211,212の帯域幅
は、信号201の帯域幅の1/2となっている(信号2
01の1/2に間引かれている)。
The signal components 211 and 212 divided into two bands by the band division filter 11 are converted into spectral signal components 221 and 222 by forward spectrum conversion circuits 12 and 13 such as MDCT in each band. It has been done. The bandwidth of the signals 211 and 212 is 1 / of the bandwidth of the signal 201 (signal 2
01 has been decimated to 1/2).

【0059】なお、図10の201は図9の101に、
図10の221,222は図9の102に、それぞれ対
応している。
Note that 201 in FIG. 10 is replaced with 101 in FIG.
221 and 222 in FIG. 10 respectively correspond to 102 in FIG.

【0060】変換回路1としてはこの実施例以外にも多
数考えられる。例えば、入力信号を、MDCTによってスペ
クトル信号に直接変換しても良いし、MDCTではなく、DF
TやDCTによって変換しても良い。
A large number of conversion circuits 1 can be considered in addition to this embodiment. For example, the input signal may be directly converted to a spectrum signal by MDCT, or DF instead of MDCT.
It may be converted by T or DCT.

【0061】帯域分割フィルタによって信号を帯域成分
に分割するだけで、スペクトルに変換しないで処理する
ことも可能であるが、本発明の方法は特定の周波数にエ
ネルギーが集中する場合に特に有効に作用するので、多
数の周波数成分が比較的少ない演算量で得られるスペク
トル変換によって周波数成分に変換する方法をとると都
合が良い。
Although it is possible to process a signal without converting it into a spectrum simply by dividing a signal into band components by a band division filter, the method of the present invention is particularly effective when energy is concentrated at a specific frequency. Therefore, it is convenient to adopt a method of converting a large number of frequency components into frequency components by spectral conversion that can be obtained with a relatively small amount of calculation.

【0062】図11は、信号成分符号化回路2の構成例
を示している。
FIG. 11 shows a configuration example of the signal component encoding circuit 2.

【0063】各信号成分301は、正規化回路21によ
って所定の帯域毎に正規化が施された後、信号302と
して量子化回路22に入力され、量子化精度決定回路2
3によって計算された量子化精度信号303に基づいて
量子化され、信号304として出力されるようになされ
ている。図11の301は、図9の102に、図11の
304は、図9の103に、それぞれ対応しているが、
ここで、304(103)には、量子化された信号成分
に加え、正規化係数情報や量子化精度情報も含まれてい
る。
Each signal component 301 is normalized by the normalizing circuit 21 for each predetermined band, and is then input as a signal 302 to the quantizing circuit 22 where the quantization precision determining circuit 2
3 is quantized on the basis of the quantization precision signal 303 calculated in Step 3 and is output as a signal 304. 11 corresponds to 102 in FIG. 9, and 304 in FIG. 11 corresponds to 103 in FIG. 9, respectively.
Here, 304 (103) includes normalization coefficient information and quantization accuracy information in addition to the quantized signal components.

【0064】図12は、符号列生成回路3の構成例を示
している。
FIG. 12 shows a configuration example of the code sequence generation circuit 3.

【0065】制御部31は、M個ずつ1つのグループに
まとめられたスペクトル信号の量子化スペクトル401
を、例えば、負の量子化スペクトルを正の値に変換して
(絶対値を取り)、量子化スペクトルの正負を統一した
後、それを、符号化部32を制御して符号化させる。
The control unit 31 controls the quantization spectrum 401 of the spectrum signals grouped into M groups by one.
For example, after converting a negative quantized spectrum into a positive value (obtaining an absolute value) and unifying the positive and negative of the quantized spectrum, the encoding unit 32 controls the encoding unit 32 to encode it.

【0066】また制御部31は、符号化部33を制御し
て、M個の量子化スペクトルのうちの特定値(この例の
場合、値0)以外の量子化スペクトルの数に基づくビッ
ト数で、特定値および負の量子化スペクトルのグループ
内での位置に対応するデータを符号化させ、負の量子化
スペクトルを特定するための情報(以下、正負符号情報
signと称する)を生成する。
Further, the control unit 31 controls the encoding unit 33 to calculate the number of bits based on the number of quantized spectra other than the specific value (in this example, the value 0) among the M quantized spectra. Information for coding a specific value and a position within a group of negative quantized spectra within a group, and specifying a negative quantized spectrum (hereinafter, positive / negative sign information
sign).

【0067】符号化部32により生成された符号列(量
子化スペクトルの符号列)402、および符号化部33
により生成された符号列(正負符号情報sign)403
は、所定の伝送路、または情報記録媒体4に出力され
る。
The code sequence (code sequence of the quantized spectrum) 402 generated by the coding unit 32 and the coding unit 33
403 (sign information sign) 403 generated by
Is output to a predetermined transmission path or the information recording medium 4.

【0068】なお、図12の401は、図9の103
に、図12の402,403は、図9の104に、それ
ぞれ対応している。
Note that reference numeral 401 in FIG.
In addition, 402 and 403 in FIG. 12 correspond to 104 in FIG. 9, respectively.

【0069】次に、符号化装置(図9)の動作を説明す
る。音響波形信号101(201)は、変換回路1の帯
域分割フィルタ11(図10)に入力され、より低い周
波数の信号成分211と、より高い周波数の信号成分2
12とに分割される。より低い周波数の信号成分211
は、順スペクトル変換回路12に入力され、スペクトル
信号成分221に変換される。同様に、より高い周波数
の信号成分212は、順スペクトル変換回路13に入力
され、スペクトル信号成分222に変換され、出力され
る。
Next, the operation of the encoding device (FIG. 9) will be described. The acoustic waveform signal 101 (201) is input to the band division filter 11 (FIG. 10) of the conversion circuit 1, and a lower frequency signal component 211 and a higher frequency signal component 2
12 are divided. Lower frequency signal component 211
Is input to the forward spectrum conversion circuit 12 and converted into a spectrum signal component 221. Similarly, the higher frequency signal component 212 is input to the forward spectrum conversion circuit 13, converted into a spectrum signal component 222, and output.

【0070】すなわち、図1を参照して説明すると、順
スペクトル変換回路12は、より低い周波数のスペクト
ル信号をユニット化し、符号化ユニット[1]乃至
[6]を生成する。また、順スペクトル変換回路13
は、より高い周波数のスペクトル信号成分をユニット化
し、符号化ユニット[7],[8]を生成する。
That is, with reference to FIG. 1, the forward spectrum transform circuit 12 unitizes a lower frequency spectrum signal to generate coding units [1] to [6]. Further, the forward spectrum conversion circuit 13
Unitizes the higher frequency spectral signal components to generate coding units [7], [8].

【0071】順スペクトル変換回路12,13より出力
されたスペクトル信号成分221,222(102)
は、信号成分符号化回路2の正規化回路21(図11)
と量子化精度決定回路23に入力される。正規化回路2
1は、符号化ユニット内の複数のスペクトル信号成分の
うち、その最大値で各信号の値を割算することにより、
正規化を行う。そして、得られた正規化係数302を量
子化回路22に供給する。
The spectrum signal components 221 and 222 (102) output from the forward spectrum conversion circuits 12 and 13
Is the normalization circuit 21 of the signal component encoding circuit 2 (FIG. 11)
Is input to the quantization accuracy determination circuit 23. Normalization circuit 2
1 divides the value of each signal by its maximum value among a plurality of spectral signal components in the encoding unit,
Perform normalization. Then, the obtained normalization coefficient 302 is supplied to the quantization circuit 22.

【0072】量子化精度決定回路23は、各符号化ユニ
ットに対応する帯域での最小可聴レベルやマスキングレ
ベルを演算することで、入力されたスペクトル信号成分
の量子化精度を符号化ユニット単位で決定する。量子化
回路22は、量子化精度決定回路23より供給された量
子化精度303で、正規化回路21より供給された正規
化係数302を量子化し、得られた量子化スペクトル3
04(103)を符号列生成回路3に供給する。
The quantization accuracy determination circuit 23 determines the quantization accuracy of the input spectral signal component by encoding unit by calculating the minimum audible level and masking level in the band corresponding to each encoding unit. I do. The quantization circuit 22 quantizes the normalization coefficient 302 supplied from the normalization circuit 21 with the quantization precision 303 supplied from the quantization precision determination circuit 23, and obtains the obtained quantization spectrum 3
04 (103) is supplied to the code string generation circuit 3.

【0073】符号列生成回路3は、量子化スペクトル3
04を符号列に変換するが、その処理の詳細を、図13
のフローチャートを参照して説明する。
The code string generation circuit 3 calculates the quantization spectrum 3
04 is converted into a code string.
This will be described with reference to the flowchart of FIG.

【0074】ステップS1において、符号列生成回路3
の制御部31は、それぞれ内蔵する、1つのグループに
まとめられたスペクトル信号の数をカウントするカウン
タiの値、並びにレジスタNの値およびレジスタsignの
値を、値0に初期設定する。
In step S1, the code string generation circuit 3
The control unit 31 initializes the value of the counter i, which counts the number of spectral signals grouped into one group, and the value of the register N and the value of the register sign to a value of 0.

【0075】次に、ステップS2において、制御部31
は、カウンタiの値に対応するスペクトル信号(以下、
適宜、QSP(i)と称する)の量子化スペクトルを調
べ、それが特定値(この例の場合、値0)であるか否か
を判定し、値0ではないと判定した場合、ステップS3
に進む。
Next, in step S2, the control unit 31
Is a spectrum signal corresponding to the value of the counter i (hereinafter, referred to as
The quantization spectrum of QSP (i) is examined as appropriate, and it is determined whether or not it is a specific value (value 0 in this example). If it is not 0, step S3 is performed.
Proceed to.

【0076】ステップS3において、制御部31は、レ
ジスタNの値を1だけ増加させ、そしてレジスタsignの
値を1ビットだけ左方向にシフトさせる(2倍にす
る)。
In step S3, the control section 31 increases the value of the register N by 1 and shifts the value of the register sign by 1 bit to the left (doubles).

【0077】次に、ステップS4において、制御部31
は、QSP(i)の量子化スペクトルが負の値であるか
否かを判定し、負の値であると判定した場合、ステップ
S5に進む。
Next, in step S4, the control unit 31
Determines whether the quantized spectrum of QSP (i) is a negative value. If it is determined that the quantized spectrum is a negative value, the process proceeds to step S5.

【0078】ステップS5において、制御部31は、Q
SP(i)の量子化スペクトルに値−1を乗算し、その
結果得られた値を、QSP(i)の量子化スペクトルと
する。すなわち、QSP(i)の量子化スペクトルが負
の値である場合、正の値に変換される。またこのとき制
御部31は、レジスタsignの値を1だけ増加させる。
In step S5, the control unit 31
The quantization spectrum of SP (i) is multiplied by the value −1, and the resulting value is used as the quantization spectrum of QSP (i). That is, when the quantization spectrum of QSP (i) is a negative value, it is converted to a positive value. At this time, the control unit 31 increases the value of the register sign by one.

【0079】ステップS4で、QSP(i)の量子化ス
ペクトルが正の値であると判定された場合、ステップS
5の処理はスキップされ、ステップS6に進み、またス
テップS2で、QSP(i)の量子化スペクトルが値0
であると判定された場合、ステップS3乃至ステップS
5の処理がスキップされ、ステップS6に進む。
If it is determined in step S4 that the quantized spectrum of QSP (i) has a positive value, the process proceeds to step S4.
5 is skipped, the process proceeds to step S6, and in step S2, the quantized spectrum of QSP (i) is set to the value 0.
If it is determined that step S3 to step S3
Step 5 is skipped, and the process proceeds to step S6.

【0080】ステップS6において、制御部31は、カ
ウンタiの値を1だけ増加させ、ステップS7におい
て、そのカウンタiの値が、1つのグループにまとめら
れたスペクトル信号の数M未満であるか否かを判定し、
M未満であると判定した場合、ステップS2に戻り、そ
れ以降の処理を実行する。
In step S6, the control section 31 increases the value of the counter i by 1, and in step S7, determines whether or not the value of the counter i is less than the number M of the spectral signals grouped into one group. Judge
If it is determined that it is less than M, the process returns to step S2, and the subsequent processing is executed.

【0081】ステップS7で、カウンタiの値が、スペ
クトル信号の数M未満ではないと判定された場合(それ
以上である場合)、ステップS8に進み、制御部31
は、符号化部32を制御して、QSP(0)乃至QSP
(M−1)の量子化スペクトル、すなわち、1つのグル
ープにまとめられた量子化スペクトルを、M次元の可変
長符号で符号化する。
If it is determined in step S7 that the value of the counter i is not less than the number M of spectrum signals (if it is more than M), the process proceeds to step S8, where the control unit 31
Controls the encoding unit 32 to control QSP (0) through QSP
The quantized spectrum of (M-1), that is, the quantized spectrums grouped into one group, is encoded with an M-dimensional variable length code.

【0082】例えば、2次元の可変長符号がなされる場
合(M=2の場合)、符号化部32は、図14に示すよ
うな符号列表を参照することにより、1つのグループに
まとめられた2個の量子化スペクトルを、それに対応す
る符号列に変換する。
For example, when a two-dimensional variable length code is performed (when M = 2), the encoding unit 32 collects the data into one group by referring to a code string table as shown in FIG. The two quantized spectra are converted into a corresponding code sequence.

【0083】図14には、量子化精度情報コードが”0
01”の場合の符号列、”010”の場合の符号列表、
および”011”の場合の符号列表が示されているが、
それらの符号列表には、4語の符号列、9語の符号列、
16語の符号列が用意されている。
FIG. 14 shows that the quantization accuracy information code is “0”.
01 ”, a code string table of“ 010 ”,
And the code string table for “011” are shown,
These code string tables include a code string of 4 words, a code string of 9 words,
A code string of 16 words is prepared.

【0084】この例の場合、負の値の量子化スペクトル
は、正の値に変換されるので(ステップS5)、負の値
の量子化スペクトルが符号化されることはない。従っ
て、図14の符号列表には、負の値の量子化スペクトル
に対応する符号列は含まれていない。このように、例え
ば、量子化スペクトルを正の値に統一することにより、
負の量子化スペクトルに対応する符号列を用意する必要
がなくなるので、符号列表の規模を、その分小さくする
ことができる。
In the case of this example, since the negative value quantized spectrum is converted into a positive value (step S5), the negative value quantized spectrum is not encoded. Therefore, the code string table of FIG. 14 does not include a code string corresponding to a negative-valued quantized spectrum. Thus, for example, by unifying the quantization spectrum to a positive value,
Since there is no need to prepare a code string corresponding to the negative quantization spectrum, the scale of the code string table can be reduced accordingly.

【0085】これに対して、従来の可変長符号において
は、正の値および負の値の量子化スペクトルに対応する
符号列を用意しなければならないので、符号列の規模が
大きくなる。例えば、2次元の可変長符号における量子
化精度情報コードが”001”の場合の符号列表には、
図6に示した9語の符号列を用意し、”010”の場合
の符号列表には、図7に示した25語の符号列が用意
し、そして”011”の場合の符号列表には、図8に示
した49語の符号列が用意する必要がある。
On the other hand, in the conventional variable-length code, a code string corresponding to a quantized spectrum of a positive value and a negative value must be prepared, so that the scale of the code string becomes large. For example, in the code string table in the case where the quantization accuracy information code in the two-dimensional variable length code is “001”,
The code string of 9 words shown in FIG. 6 is prepared, the code string table of “010” is prepared with the code string of 25 words shown in FIG. 7, and the code string table of “011” is , It is necessary to prepare the code string of 49 words shown in FIG.

【0086】また、その図示は省略するが、4次元の場
合、量子化精度情報コードが”010”および”01
1”のとき、本発明の符号列表の大きさは、81語およ
び256語であるが、従来の場合、625語および24
01語となる。
Although not shown, in the case of four dimensions, the quantization accuracy information codes are "010" and "01".
At 1 ″, the size of the code string table of the present invention is 81 words and 256 words, but in the conventional case, it is 625 words and 24 words.
It becomes 01 words.

【0087】図13に戻り、ステップS9において、制
御部31は、符号化部33を制御して、レジスタsignの
値を、レジスタNの値と同じビット数で符号化させ、正
負符号情報sign(符号列)を生成する。
Returning to FIG. 13, in step S9, the control unit 31 controls the encoding unit 33 to encode the value of the register sign with the same number of bits as the value of the register N, and sign information sign ( (Code sequence).

【0088】その後、処理は終了し、次のグループにま
とめられたスペクトル信号の量子化スペクトルに対して
ステップS1乃至ステップS9の処理が同様に実行させ
る。
After that, the process ends, and the processes of steps S1 to S9 are similarly performed on the quantized spectrums of the spectrum signals grouped into the next group.

【0089】次に、図15に示す、16本のスペクトル
信号が存在する符号化ユニット(図1の例では、[7]
または[8]の符号化ユニット)を例として、上述した
符号列生成回路3の動作を再度説明する。なお、この例
の場合、符号化ユニットのスペクトル信号は、2(=
M)本ずつ1つのグループにまとめられるものとする。
Next, as shown in FIG. 15, a coding unit having 16 spectral signals (in the example of FIG. 1, [7]
Alternatively, the operation of the above-described code sequence generation circuit 3 will be described again by taking the coding unit of [8] as an example. In this case, the spectrum signal of the coding unit is 2 (=
M) Books are grouped into one group.

【0090】周波数の低いほうから2本のスペクトル信
号の量子化スペクトル(1,−2)を符号化する場合に
おいて、カウンタi=0、レジスタN=0、およびレジ
スタsign=0であるとき(ステップS1)、QSP
(0)の量子化スペクトル(値1)は、値0ではないの
で(ステップS2)、レジスタNの値0が1だけ増加し
て値1となり、レジスタsignの値0が2倍されて値0と
なる(ステップS3)。
When encoding the quantized spectrum (1, -2) of the two spectral signals from the lower frequency, when the counter i = 0, the register N = 0, and the register sign = 0 (step S1), QSP
Since the quantized spectrum (value 1) of (0) is not the value 0 (step S2), the value 0 of the register N is increased by 1 to a value 1, and the value 0 of the register sign is doubled to a value 0. (Step S3).

【0091】またQSP(0)の量子化スペクトル(値
1)は、正の値であるので(ステップS4)、カウンタ
iの値0が1だけ増加して値1となる(ステップS
6)。
Since the quantized spectrum (value 1) of QSP (0) is a positive value (step S4), the value 0 of the counter i is increased by 1 to 1 (step S4).
6).

【0092】QSP(1)の量子化スペクトル(値−
2)は、値0ではないので、レジスタNの値1がさらに
1だけ増加して値2となり、レジスタsignの値0は2倍
されて値0となる。
The quantization spectrum of QSP (1) (value−
Since 2) is not the value 0, the value 1 of the register N is further increased by 1 to a value 2, and the value 0 of the register sign is doubled to a value 0.

【0093】またQSP(1)の量子化スペクトル(値
−2)は、負の値であるので、2(=−2×−1)が、
符号化されるQSP(1)の量子化スペクトルとされる
(ステップS5)。またこのとき、レジスタsignの値0
が1だけ増加して値1となる。
Since the quantization spectrum (value-2) of QSP (1) is a negative value, 2 (= -2 × -1) is
The quantized spectrum of the QSP (1) to be encoded is set (step S5). At this time, the value of the register sign is 0.
Increases by 1 to a value of 1.

【0094】すなわち、この場合、(1,2)が1つの
まとまりとして、図14の符号列表に基づき、5ビット
の”11110”に符号化され(ステップS8)、それ
に続いてレジスタsignの値1が、レジスタNの値2のビ
ット数、すなわち2ビットの符号列”01”に符号化さ
れて、正負符号情報sign”01”が生成される(ステッ
プS9)。
That is, in this case, (1, 2) is encoded as one unit into 5-bit "11110" based on the code string table of FIG. 14 (step S8), and subsequently, the value 1 of the register sign is set. Is encoded into the number of bits of the value 2 of the register N, that is, a 2-bit code string “01” to generate positive / negative sign information sign “01” (step S9).

【0095】正負符号情報signは、その”1”に対応す
る、ステップS8で符号化される値が負の値であること
を表す。いまの場合、(1,−2)が(1,2)とされ
て符号化されているが、このときの正負符号情報sign”
01”は、その”1”に対応する、(1,2)のうち
の”2”が、本来負の値(−2)であることを示す。後
述する復号装置においては、この正負符号情報signに基
づいて、信号成分の符号の正負が決定される。
The sign information sign indicates that the value corresponding to the "1" and encoded in step S8 is a negative value. In this case, (1, -2) is encoded as (1, 2), but the sign information "sign"
01 ”indicates that“ 2 ”of (1, 2) corresponding to“ 1 ”is originally a negative value (−2). The sign of the signal component is determined based on the sign.

【0096】なお、図15に示す符号化ユニットは、本
発明において、5ビットの”11110”((1,2)
の符号列)および2ビットの”01”(値1のレジスタ
signの符号列)、1ビットの”0”((0,0)の符号
列)、3ビットの”101”((1,0)の符号列)お
よび1ビットの”0”(値0のレジスタsignの符号
列)、3ビットの”110”((1,1)の符号列)お
よび2ビットの”10”(値2のレジスタsignの符号
列)、1ビットの”0”((0,0)の符号列)、5ビ
ットの”11100”((0,2)の符号列)および1
ビットの”0”(値0のレジスタsignの符号列)、3ビ
ットの”110”((1,1)の符号列)および2ビッ
トの”11”(値3のレジスタsignの符号列)、並びに
5ビットの”11100”((0,2)の符号列)およ
び1ビットの”0”(値0のレジスタsignの符号列)に
符号化されるので、その符号長は、35(=7+1+4
+5+1+6+5+6)となる。なお、従来の2次元の
可変長符号は、図16に示すように、35ビットとな
る。
In the present invention, the encoding unit shown in FIG. 15 is a 5-bit "11110" ((1, 2)
Code string) and 2-bit “01” (register of value 1)
sign code string), 1-bit “0” ((0, 0) code string), 3-bit “101” ((1, 0) code string) and 1-bit “0” (value 0 Register sign code string, 3-bit "110" (code string of (1,1)) and 2-bit "10" (code sign of register sign of value 2), 1-bit "0" ((0 , 0) code string), 5 bits of “11100” ((0, 2) code string) and 1
Bit “0” (code string of register sign of value 0), 3-bit “110” (code string of (1, 1)) and 2-bit “11” (code string of register sign of value 3), And a 5-bit "11100" (a code string of (0, 2)) and a 1-bit "0" (a code string of a register sign of value 0), the code length of which is 35 (= 7 + 1 + 4)
+ 5 + 1 + 6 + 5 + 6). The conventional two-dimensional variable length code has 35 bits as shown in FIG.

【0097】図17は、図9の符号化装置によって生成
された符号列から音響信号を復号、出力する復号装置の
構成例を示す。
FIG. 17 shows an example of the configuration of a decoding device for decoding and outputting an audio signal from a code sequence generated by the coding device of FIG.

【0098】伝送されてきたか、または情報記録媒体4
から再生された符号列501から符号列分解回路41に
よって各信号成分の符号が抽出され、それらの符号50
2から信号成分復号化回路42によって各信号成分50
3が復号された後、逆変換回路43によって音響波形信
号504が生成、出力されるようになされている。
The information recording medium 4 has been transmitted or
The code of each signal component is extracted by the code sequence decomposition circuit 41 from the code sequence 501 reproduced from
2 by the signal component decoding circuit 42
3 is decoded, and an acoustic waveform signal 504 is generated and output by the inverse conversion circuit 43.

【0099】図18は、符号列分解回路41の構成例を
示している。
FIG. 18 shows an example of the configuration of the code string decomposition circuit 41.

【0100】制御部51は、復号部52を制御して、符
号列分解回路41に入力された符号化ユニットの符号列
601から読み取った、量子化スペクトルの符号列(正
確には、すべて正の値とされた量子化スペクトルの符号
列)を復号させる。
The control section 51 controls the decoding section 52 to read the code sequence of the quantized spectrum (to be exact, all positive codes) read from the code sequence 601 of the coding unit input to the code sequence decomposition circuit 41. The code sequence of the quantized spectrum having the value is decoded.

【0101】制御部51はまた、符号化ユニットの符号
列601から正負符号情報signを読み取るとともに、そ
の正負符号情報signに基づいて、量子化スペクトルの正
負を検出し、信号成分の符号を決定する。
The controller 51 also reads the sign information sign from the code string 601 of the encoding unit, detects the sign of the quantized spectrum based on the sign information sign, and determines the sign of the signal component. .

【0102】図18の601は図17の501に、図1
8の602は図17の502に、それぞれ対応してい
る。
The reference numeral 601 in FIG. 18 corresponds to the reference numeral 501 in FIG.
Reference numeral 602 in FIG. 8 corresponds to reference numeral 502 in FIG.

【0103】図19は、逆変換回路43の構成例を示し
ている。これは図9の変換回路1に対応したもので、逆
スペクトル変換回路61,62によって信号701,7
02から得られた各帯域の信号711,712が、帯域
合成フィルタ63によって合成され、信号721として
出力されるようになされている。図19の701,70
2は図17の503に、図19の721は図17の50
4に、それぞれ対応している。
FIG. 19 shows a configuration example of the inverse conversion circuit 43. This corresponds to the conversion circuit 1 shown in FIG.
The signals 711 and 712 of each band obtained from the band 02 are synthesized by the band synthesizing filter 63 and output as a signal 721. 701 and 70 in FIG.
2 corresponds to 503 in FIG. 17, and 721 in FIG.
4 respectively.

【0104】次に、復号装置の動作について説明する。
符号列分解回路41は、図20のフローチャートに示す
ように、符号列分解処理を行う。
Next, the operation of the decoding device will be described.
The code string decomposition circuit 41 performs a code string decomposition process as shown in the flowchart of FIG.

【0105】ステップS21において、制御部51は、
復号部52を制御して、符号化ユニットの符号列から読
み取った、1つのグループにまとめられたQSP(0)
乃至QSP(M−1)の量子化スペクトルの符号列(正
の値に変換された量子化スペクトルの符号列)を復号さ
せる。なお、Mは、符号化される際に1つのグループに
まとめられたスペクトル信号の数である。
In step S21, the control unit 51
By controlling the decoding unit 52, the QSP (0) read from the code string of the coding unit and combined into one group
To QSP (M−1) to decode the code string of the quantized spectrum (code string of the quantized spectrum converted to a positive value). Note that M is the number of spectral signals that are grouped into one group when encoded.

【0106】ステップS22において、制御部51は、
ステップS21での復号により得られた値が、すべて値
0であるか否かを判定し、そうではないと判定した場
合、ステップS23に進む。
In step S22, the control unit 51
It is determined whether or not all the values obtained by the decoding in step S21 are 0, and if not, the process proceeds to step S23.

【0107】ステップS23において、量子化スペクト
ルの符号列に続いて入力される正負符号情報sign(量子
化スペクトルの正負を示す正負符号情報sign)が読み取
られる。ここでの処理の詳細は、図21のフローチャー
トに示されている。
In step S23, sign information sign (sign information sign indicating the sign of the quantized spectrum) input following the code string of the quantized spectrum is read. Details of the processing here are shown in the flowchart of FIG.

【0108】ステップS31において、制御部51は、
それぞれ内蔵するカウンタiおよびレジスタNの値を、
値0に初期設定する。
In step S31, the control unit 51
The values of the built-in counter i and the register N are
Initially set to the value 0.

【0109】次に、ステップS32において、制御部5
1は、QSP(i)に対応する、ステップS21での復
号により得られた値が値0であるか否かを判定し、値0
であると判定した場合、ステップS34に進む。
Next, in step S32, the control unit 5
1 determines whether or not the value corresponding to QSP (i) and obtained by decoding in step S21 is a value 0;
If it is determined that the above condition is satisfied, the process proceeds to step S34.

【0110】一方、ステップS32で、値0ではないと
判定された場合、ステップS33に進み、制御部51
は、レジスタNの値を1だけ増加させ、ステップS34
に進む。
On the other hand, if it is determined in step S32 that the value is not 0, the process proceeds to step S33, where the control unit 51
Increments the value of the register N by 1 and proceeds to step S34.
Proceed to.

【0111】ステップS34において、制御部51は、
カウンタiの値を1だけ増加させ、ステップS35にお
いて、カウンタiの値が、1つのグループにまとめられ
るスペクトル信号の数M未満であるか否かを判定し、M
未満であると判定した場合、ステップS32に戻り、そ
れ以降の処理を実行する。
At step S34, the control unit 51
The value of the counter i is increased by 1, and in step S35, it is determined whether or not the value of the counter i is less than the number M of the spectrum signals to be grouped into one group.
If it is determined that the difference is less than the predetermined value, the process returns to step S32, and the subsequent processing is executed.

【0112】ステップS35で、カウンタiの値が、ス
ペクトル信号の数M未満ではないと判定された場合(そ
れ以上である場合)、ステップS36に進み、制御部5
1は、符号化ユニットの符号列の、ステップS21で読
み取られた符号列の次のビットから、レジスタNの値の
ビット数分の符号列を、正負符号情報signとして読み取
る。
If it is determined in step S35 that the value of the counter i is not less than the number M of spectrum signals (if it is more than M), the process proceeds to step S36, where the control unit 5
1 reads the code string of the number of bits of the value of the register N from the next bit of the code string read in step S21 of the code string of the encoding unit as the sign information sign.

【0113】その後、図20のステップS24に進み、
QSP(0)乃至QSP(M−1)の符号が決定され
る。ここでの処理の詳細は、図22のフローチャートに
示されている。
Thereafter, the process proceeds to step S24 in FIG.
The signs of QSP (0) to QSP (M-1) are determined. Details of the processing here are shown in the flowchart of FIG.

【0114】ステップS41において、制御部51は、
カウンタiの値を、値0に初期設定するとともに、レジ
スタmaskに設定した値1を、このときのレジスタNの値
から1だけ減算して得られた値分のビット数だけ、左方
向にシフトさせる。
In step S41, the control unit 51
The value of the counter i is initialized to 0, and the value 1 set in the register mask is shifted to the left by the number of bits corresponding to the value obtained by subtracting 1 from the value of the register N at this time. Let it.

【0115】ステップS42において、制御部51は、
QSP(i)に対応する、ステップS21での復号によ
り得られた値が、値0であるか否かを判定し、値0では
ないと判定した場合、ステップS43に進み、ステップ
S36で読み取られた正負符号情報signとレジスタmask
の論理積を計算し、その計算結果が値0であるか否かを
判定する。
At step S42, the control unit 51
It is determined whether the value obtained by decoding in step S21 corresponding to QSP (i) is a value 0, and if it is determined that the value is not 0, the process proceeds to step S43 and is read in step S36. Sign information and register mask
Is calculated, and it is determined whether or not the calculation result is a value 0.

【0116】ステップS43で、論理積の計算結果が値
0ではないと判定された場合、QSP(i)に対応す
る、ステップS21での復号により得られた値に値−1
に乗算し、ステップS45に進む。
If it is determined in step S43 that the result of the AND operation is not the value 0, the value obtained by decoding in step S21 corresponding to QSP (i) is subtracted by the value -1.
, And the process proceeds to step S45.

【0117】一方、ステップS43で、論理積の計算結
果が値0であると判定された場合、ステップS44の処
理がスキップされて、ステップS45に進む。
On the other hand, if it is determined in step S43 that the calculation result of the logical product is 0, the process in step S44 is skipped, and the flow advances to step S45.

【0118】ステップS45において、制御部51は、
レジスタmaskの値を1ビットだけ右方向にシフトさせ、
ステップS46に進む。
In step S45, the control unit 51
Shift the value of the register mask right by one bit,
Proceed to step S46.

【0119】ステップS42で、QSP(i)に対応す
る、ステップS21での復号により得られた値が値0で
あると判定された場合、ステップS43乃至ステップS
45の処理がスキップされて、ステップS46に進む。
If it is determined in step S42 that the value corresponding to QSP (i) obtained by decoding in step S21 is 0, steps S43 to S43
The process of step 45 is skipped, and the process proceeds to step S46.

【0120】ステップS46において、制御部61は、
カウンタiの値を1だけ増加させ、ステップS47にい
て、カウンタiの値が、1つのグループにまとめられた
スペクトル信号の数M未満であるか否かを判定し、M未
満であると判定した場合、ステップS42に戻り、それ
以降の処理を実行する。
In step S46, the control unit 61
The value of the counter i is increased by 1, and in step S47, it is determined whether the value of the counter i is less than the number M of the spectral signals combined into one group, and it is determined that the value is less than M. In this case, the process returns to step S42, and the subsequent processing is executed.

【0121】ステップS47で、カウンタiの値がM未
満ではないと判定された場合(それ以上である場合)、
ここでの処理(ステップS24の処理)とともに、図2
0の処理が終了し、次に入力される量子化スペクトルの
符号列に対して、ステップS1以降の処理が同様に行わ
れる。
If it is determined in step S47 that the value of the counter i is not less than M (if it is more than M),
Along with the processing here (the processing of step S24), FIG.
When the processing of step S1 is completed, the processing of step S1 and subsequent steps is similarly performed on the code string of the next input quantized spectrum.

【0122】次に、符号化された図15に示す符号化ユ
ニットを復号する場合を例として、符号列分解回路41
の動作を再度説明する。
Next, as an example of decoding the encoded coding unit shown in FIG.
Will be described again.

【0123】最初に読み取られた符号列”11110”
が復号され(ステップS21)、(1,2)が得られ
る。(1,2)は、当然(0,0)ではないので(ステ
ップS22)、符号列”11110”に続いて入力され
る正負符号情報sign”01”が読み取られる(ステップ
S23)。
The code string “11110” read first
Is decoded (step S21), and (1, 2) is obtained. Since (1,2) is not (0,0) (step S22), the sign information “01” that is input following the code string “11110” is read (step S23).

【0124】具体的には、(1,2)のうち、QSP
(0)に対応する値1は、値0ではないので(ステップ
S32)、レジスタNの値0が1だけ増加して値1にな
り(ステップS33)、カウンタiの値0が1だけ増加
して値1となる(ステップS34)。
Specifically, of (1, 2), the QSP
Since the value 1 corresponding to (0) is not the value 0 (step S32), the value 0 of the register N increases by 1 to become 1 (step S33), and the value 0 of the counter i increases by 1. The value becomes 1 (step S34).

【0125】また(1,2)のうち、QSP(1)に対
応する値2も、値0ではないので、レジスタNの値1が
さらに1だけ増加して値2になり、カウンタiの値1が
1だけ増加して値2となる。
Since the value 2 corresponding to QSP (1) is not 0 in (1, 2), the value 1 of the register N is further increased by 1 to the value 2, and the value of the counter i is increased. 1 is increased by 1 to a value of 2.

【0126】そしてこの場合、量子化スペクトルの符号
列”11110”の次のビットから、レジスタNの値2
のビット数、すなわち、2ビット分のデータ”01”
が、正負符号情報signとして読み取られる。
In this case, the value 2 of the register N is calculated from the next bit of the code string “11110” of the quantized spectrum.
, Ie, two bits of data “01”
Is read as the sign information sign.

【0127】次に、QSP(0),QSP(1)の符号
が決定される(ステップS24)。
Next, the signs of QSP (0) and QSP (1) are determined (step S24).

【0128】具体的には、カウンタiの値が、値0に初
期設定され、レジスタmaskに設定された1が、1(=レ
ジスタNの値2−値1)ビットだけ左方向にシフトされ
る。すなわち、レジスタmaskは(10)となる(ステッ
プS41)。
Specifically, the value of the counter i is initialized to 0, and 1 set in the register mask is shifted leftward by 1 (= value of register N−value 1) bits. . That is, the register mask becomes (10) (step S41).

【0129】(1,2)のうち、QSP(0)に対応す
る値1は、値0ではないので(ステップS42)、正負
符号情報sign(01)とレジスタmask(10)の論理積
が計算され、その計算結果は、0であるので(ステップ
S43)、レジスタmask(10)が、1ビットだけ右方
向にシフトされて(01)となる(ステップS45)。
すなわち、QSP(0)に対応する値1は、もともと正
の値であったので、値1が、そのままQSP(0)の符
号とされる。
Since the value 1 corresponding to QSP (0) is not 0 in (1, 2) (step S42), the logical product of the sign information (sign (01)) and the register mask (10) is calculated. Since the calculation result is 0 (step S43), the register mask (10) is shifted rightward by one bit to become (01) (step S45).
That is, since the value 1 corresponding to QSP (0) was originally a positive value, the value 1 is directly used as the sign of QSP (0).

【0130】カウンタiの値0が1だけ増加して値1と
なる(ステップS46)。
The value 0 of the counter i increases by 1 to become 1 (step S46).

【0131】(1,2)のうち、QSP(1)に対応す
る値2は、値0でないので、正負符号情報sign(01)
とこのときのレジスタmask(01)の論理積が計算さ
れ、その計算結果は、値1であるので、QSP(1)に
対応する値2に値−1が乗算されて値−2が得られる
(ステップS44)。
Of (1, 2), the value 2 corresponding to QSP (1) is not 0, so that sign (01)
And the logical product of the register mask (01) at this time is calculated, and the calculation result is the value 1, so that the value 2 corresponding to QSP (1) is multiplied by the value -1 to obtain the value -2. (Step S44).

【0132】すなわち、QSP(1)に対応する値2
は、もともと負の値であったので、ここで述べたように
値−2とされ、それがQSP(1)の符号とされる。
That is, the value 2 corresponding to QSP (1)
Is originally a negative value, and is thus set to the value -2 as described herein, which is used as the sign of QSP (1).

【0133】このようにして、符号列分解回路41によ
り抽出された符号502(図17)は、信号成分復号化
回路42に入力され、復号される。この信号成分復号化
回路42は、図9に示す信号成分符号化回路2と逆の処
理を行う。
The code 502 (FIG. 17) extracted by the code string decomposing circuit 41 is input to the signal component decoding circuit 42 and decoded. This signal component decoding circuit 42 performs a process reverse to that of the signal component encoding circuit 2 shown in FIG.

【0134】そして、信号成分復号化回路42より出力
された信号503は、そのより低い周波数のスペクトル
信号成分701が、逆スペクトル変換回路61に入力さ
れ、より高い周波数のスペクトル信号成分702が、逆
スペクトル変換回路62に入力される。逆スペクトル変
換回路61と62は、それぞれ入力されたスペクトル信
号成分701,702を、時間軸上の音響信号711,
712に変換し、帯域合成フィルタ63に出力する。帯
域合成フィルタ63は、より低い周波数の音響信号71
1と、より高い周波数の音響信号712を合成し、合成
された音響信号721(504)として出力する。
In the signal 503 output from the signal component decoding circuit 42, the lower frequency spectrum signal component 701 is input to the inverse spectrum converter 61, and the higher frequency spectrum signal component 702 is inverted. The signal is input to the spectrum conversion circuit 62. The inverse spectrum conversion circuits 61 and 62 convert the input spectrum signal components 701 and 702 into acoustic signals 711 and 711 on the time axis, respectively.
712, and outputs the result to the band synthesis filter 63. The band synthesis filter 63 outputs the lower frequency sound signal 71.
1 and an audio signal 712 of a higher frequency are synthesized and output as a synthesized audio signal 721 (504).

【0135】一般に音響波形信号は基本周波数とそれの
整数倍の周波数成分、いわゆる倍音成分にエネルギーが
集中している場合が多く、それ以外の周波数成分のスペ
クトル信号は量子化しても0になる場合が多い。基本周
波数が高いほど、いわゆる倍音成分同士の距離が大きく
なるため、0の量子化スペクトルの出現確率が高くな
る。また、そのような周波数成分を持つ信号ほど、量子
化精度を高くして量子化を行わないと、十分な聴感上の
信号対雑音比を確保できないため、かなりの情報量を消
費してしまう。特に符号化ユニットの幅が広い帯域では
消費する情報量が大きい。
In general, an acoustic waveform signal often has energy concentrated in a fundamental frequency and a frequency component that is an integral multiple of the fundamental frequency, that is, a so-called harmonic component, and the spectral signal of other frequency components is zero even if quantized. There are many. The higher the fundamental frequency, the greater the distance between the so-called harmonic components, and therefore the higher the probability of occurrence of a quantized spectrum of 0. In addition, a signal having such a frequency component, unless quantization is performed with a higher quantization precision, a sufficient amount of information is consumed because a sufficient signal-to-noise ratio in audibility cannot be secured. In particular, the amount of information consumed is large in a band in which the width of the coding unit is wide.

【0136】そこで、このような信号に対して効率良く
符号化を行うためには、0に量子化されたスペクトル信
号をいかに少ない情報量で符号化するかが重要となる。
最も良く知られている方法として、多次元の可変長符号
を使う方法があるが、上述したように、膨大な量の符号
列表が必要となり、実用的とは言えない。しかしなが
ら、本発明による方法は、符号列表の規模を増大させる
ことなく、効率の良い符号化を実現している。
Therefore, in order to efficiently encode such a signal, it is important to encode the spectrum signal quantized to 0 with a small amount of information.
The best known method is to use a multi-dimensional variable-length code, but as described above, a huge amount of code string table is required, which is not practical. However, the method according to the present invention achieves efficient encoding without increasing the size of the code sequence table.

【0137】以上、帯域分割回路として、一旦、帯域分
割フィルタにかけた信号をMDCTによりスペクトル変換し
たものを用い、また、帯域合成回路として、逆MDCT(IMD
CT)により逆スペクトル変換したものを帯域合成フィル
タにかけたものを用いた実施例について説明を行った
が、もちろん、帯域分割フィルタ、帯域合成フィルタを
用いずに、MDCT変換、IMDCT変換を直接行うようにして
も良い。また、スペクトル変換の種類としては、MDCTに
限らず、DFT、DCT等を用いても良い。
As described above, a signal obtained by subjecting a signal once subjected to a band division filter to spectrum conversion by MDCT is used as a band division circuit, and an inverse MDCT (IMD
Although the embodiment using the inverse spectrum transformed by (CT) and applied to the band synthesizing filter has been described, it is needless to say that the MDCT transform and the IMDCT transform are performed directly without using the band dividing filter and the band synthesizing filter. You may do it. Also, the type of spectrum conversion is not limited to MDCT, and DFT, DCT, etc. may be used.

【0138】さらに、必ずしも、スペクトル変換を用い
なくても、帯域分割フィルタ、帯域合成フィルタのみに
よって帯域分割、帯域合成を行うようにしても良い。こ
の場合、フィルタによって分割された帯域、またはそれ
らの帯域を複数個まとめた帯域を符号化ユニットとす
る。しかし、MDCT等のスペクトル変換を行い、多数のス
ペクトル信号に変換してから、実施例を用いて説明した
ように符号化ユニットを構成することによって、本発明
の方法を効率良く適用することができる。
Further, the band division and the band synthesis may be performed only by the band division filter and the band synthesis filter without using the spectrum conversion. In this case, a band divided by the filter or a band obtained by combining a plurality of these bands is defined as an encoding unit. However, the method of the present invention can be applied efficiently by performing spectral conversion such as MDCT and converting into a large number of spectral signals, and then configuring the coding unit as described using the embodiment. .

【0139】また、以上においては、音響波形信号を処
理する場合について説明を行ったが、本発明の方法は他
の種類の信号に対しても適用することができ、例えば画
像信号にも適用することが可能である。しかし、本発明
は音響波形信号のもつ特徴を利用して、0に量子化され
たスペクトル信号が多い場合に効率の良い符号化を実現
しているため、音響波形信号に対して利用した場合に威
力を発揮する。
In the above description, the case of processing an acoustic waveform signal has been described. However, the method of the present invention can be applied to other types of signals, for example, to image signals. It is possible. However, the present invention realizes efficient encoding when there are many spectral signals quantized to 0 by using the characteristics of the acoustic waveform signal, and therefore, when the acoustic waveform signal is used for the acoustic waveform signal. Demonstrate power.

【0140】さらに、本発明による方法は、従来の可変
長符号による方法と組み合わせて使うことも可能であ
る。例えば、量子化精度が低い、すなわち量子化ステッ
プ数が小さい場合においては従来の方法によって、2次
元あるいは4次元の符号列表を用いて符号化を行い、量
子化精度が高い、すなわち量子化ステップ数が大きい場
合においては符号列表の規模を考慮し、本発明による方
法を用いて符号化を行うようにすれば、より効果的であ
る。
Further, the method according to the present invention can be used in combination with a conventional method using a variable length code. For example, when the quantization precision is low, that is, when the number of quantization steps is small, encoding is performed using a two-dimensional or four-dimensional code sequence table by a conventional method, and the quantization precision is high, that is, the number of quantization steps is large. In the case where is large, it is more effective if the encoding is performed using the method according to the present invention in consideration of the scale of the code string table.

【0141】また、上述した一連の処理は、ハードウエ
アにより実現させることもできるが、ソフトウエアによ
り実現させることもできる。一連の処理をソフトウエア
により実現する場合には、そのソフトウエアを構成する
プログラムがコンピュータにインストールされ、そのプ
ログラムがコンピュータで実行されることより、上述し
た符号化装置および復号装置が機能的に実現される。
Further, the above-described series of processing can be realized by hardware, but can also be realized by software. When a series of processing is realized by software, a program constituting the software is installed in a computer, and the program is executed by the computer, so that the above-described encoding device and decoding device are functionally realized. Is done.

【0142】図23は、上述のような符号化装置または
復号装置として機能するコンピュータ101の一実施の
形態の構成を示すブロック図である。CPU(Central Pro
cessing Unit)111にはバス115を介して入出力イ
ンタフェース116が接続されており、CPU111は、
入出力インタフェース116を介して、ユーザから、キ
ーボード、マウスなどよりなる入力部118から指令が
入力されると、例えば、ROM(Read Only Memory)11
2、ハードディスク114、またはドライブ120に装
着される磁気ディスク131、光ディスク132、光磁
気ディスク133、若しくは半導体メモリ134などの
記録媒体に格納されているプログラムを、RAM(Random
Access Memory)113にロードして実行する。これに
より、上述した各種の処理(例えば、図13,20のフ
ローチャートにより示される処理)が行われる。さら
に、CPU111は、その処理結果を、例えば、入出力イ
ンタフェース116を介して、LCD(Liquid Crystal Di
splay)などよりなる出力部117に必要に応じて出力
する。なお、プログラムは、ハードディスク114やRO
M112に予め記憶しておき、コンピュータ101と一
体的にユーザに提供したり、磁気ディスク131、光デ
ィスク132、光磁気ディスク133,半導体メモリ1
34等のパッケージメディアとして提供したり、衛星、
ネットワーク等から通信部119を介してハードディス
ク114に提供することができる。
FIG. 23 is a block diagram showing the configuration of an embodiment of the computer 101 functioning as the above-described encoding device or decoding device. CPU (Central Pro
), an input / output interface 116 is connected to the CPU 111 via a bus 115.
When a user inputs a command through the input / output interface 116 from an input unit 118 including a keyboard, a mouse, and the like, for example, the ROM (Read Only Memory) 11
2. A program stored in a recording medium such as a magnetic disk 131, an optical disk 132, a magneto-optical disk 133, or a semiconductor memory 134 mounted on the hard disk 114 or the drive 120 is stored in a RAM (Random).
Access Memory) 113 for execution. Thus, the various processes described above (for example, the processes shown by the flowcharts in FIGS. 13 and 20) are performed. Further, the CPU 111 transmits the processing result to an LCD (Liquid Crystal Diode) via the input / output interface 116, for example.
splay) or the like is output as necessary. The program is stored on the hard disk 114 or RO
M112 is stored in advance and provided to the user integrally with the computer 101, the magnetic disk 131, the optical disk 132, the magneto-optical disk 133, the semiconductor memory 1
34, packaged media such as satellite,
It can be provided to the hard disk 114 via a communication unit 119 from a network or the like.

【0143】なお、本明細書において、記録媒体により
提供されるプログラムを記述するステップは、記載され
た順序に沿って時系列的に行われる処理はもちろん、必
ずしも時系列的に処理されなくとも、並列的あるいは個
別に実行される処理をも含むものである。
In this specification, the step of describing a program provided by a recording medium may be performed not only in chronological order but also in chronological order according to the described order. This also includes processing executed in parallel or individually.

【0144】[0144]

【発明の効果】本発明の符号化装置および方法、第1の
記録媒体のプログラム、並びに第1のプログラムによれ
ば、数値の正負を調整して、M個の数値の正負を統一
し、正負が統一された数値を符号化し、正負が調整され
た数値を特定するための正負情報を生成して符号化し、
それらを含む符号列を生成するようにしたので、例え
ば、符号列表の規模を増大させることなく、圧縮効率の
高い符号化を行うことができる。
According to the encoding apparatus and method of the present invention, the program of the first recording medium, and the first program, the sign of the numerical values is adjusted to unify the sign of the M numerical values, and Encodes a unified numerical value, generates and encodes positive / negative information for identifying a numerical value whose positive / negative has been adjusted,
Since a code string including them is generated, for example, encoding with high compression efficiency can be performed without increasing the size of the code string table.

【0145】本発明の復号装置および方法、第2の記録
媒体のプログラム、並びに第2のプログラムによれば、
M個の数値列を構成する数値の正負を統一して一つのグ
ループとして符号化された第1の符号列と、正負を統一
する際に正負が調整された数値を特定するための情報を
符号化した第2の符号列とを含む符号列を受け取り、第
1の符号列を復号し、第2の符号列を復号し、正負が調
整された数値を特定するための情報を読み取り、復号さ
れたM個の正負が調整された数値列と、読み取られた正
負が調整された数値を特定するための情報に基づいて、
M個の数値列の正負を復元するようにしたので、例え
ば、符号列表の規模を増大させることなく、圧縮効率の
高い符号化を行うことができる。
According to the decoding device and method of the present invention, the program of the second recording medium, and the second program,
The first code string, which is encoded as one group by unifying the signs of the numbers constituting the M number strings, and the information for specifying the numbers whose signs have been adjusted when unifying the signs, are encoded. Receiving a code string including the converted second code string, decoding the first code string, decoding the second code string, reading information for specifying a numerical value whose sign has been adjusted, and decoding the information. Based on the M number-adjusted numeric value sequence and the read information for identifying the adjusted numeric value,
Since the sign of the M number sequences is restored, for example, encoding with high compression efficiency can be performed without increasing the size of the code sequence table.

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

【図1】符号化ユニットのスペクトルを説明する図であ
る。
FIG. 1 is a diagram illustrating a spectrum of an encoding unit.

【図2】量子化精度情報の表現方法を説明する図であ
る。
FIG. 2 is a diagram illustrating a method of expressing quantization accuracy information.

【図3】従来技術による可変長符号を用いた符号化方法
を説明する図である。
FIG. 3 is a diagram illustrating an encoding method using a variable length code according to the related art.

【図4】符号列表の例を示す図である。FIG. 4 is a diagram illustrating an example of a code string table.

【図5】従来技術による多次元の可変長符号を用いた符
号化方法を説明する図である。
FIG. 5 is a diagram illustrating an encoding method using a multidimensional variable length code according to the related art.

【図6】従来技術による多次元の符号列表の例を示す図
である。
FIG. 6 is a diagram showing an example of a multidimensional code string table according to the related art.

【図7】従来技術による多次元の他の符号列表の例を示
す図である。
FIG. 7 is a diagram showing an example of another multi-dimensional code string table according to the related art.

【図8】従来技術による多次元の他の符号列表の例を示
す図である。
FIG. 8 is a diagram showing an example of another multidimensional code string table according to the related art.

【図9】本発明を適用した符号化装置の構成例を示すブ
ロック図である。
FIG. 9 is a block diagram illustrating a configuration example of an encoding device to which the present invention has been applied.

【図10】図9の変換回路の構成例を示すブロック図で
ある。
FIG. 10 is a block diagram illustrating a configuration example of a conversion circuit in FIG. 9;

【図11】図9の信号成分符号化回路の構成例を示すブ
ロック図である。
11 is a block diagram illustrating a configuration example of a signal component encoding circuit in FIG. 9;

【図12】図9の符号列生成回路の構成例を示すブロッ
ク図である。
12 is a block diagram illustrating a configuration example of a code string generation circuit in FIG. 9;

【図13】符号列生成回路の動作を説明するフローチャ
ートである。
FIG. 13 is a flowchart illustrating an operation of the code sequence generation circuit.

【図14】本発明で利用される符号列表の例を表す図で
ある。
FIG. 14 is a diagram illustrating an example of a code string table used in the present invention.

【図15】本発明による符号化方法を説明する図であ
る。
FIG. 15 is a diagram illustrating an encoding method according to the present invention.

【図16】従来技術による符号化方法を説明する他の図
である。
FIG. 16 is another diagram illustrating an encoding method according to the related art.

【図17】本発明を適用した復号装置の構成例を示すブ
ロック図である。
FIG. 17 is a block diagram illustrating a configuration example of a decoding device to which the present invention has been applied.

【図18】図17の符号列分解回路の構成例を示すブロ
ック図である。
18 is a block diagram illustrating a configuration example of a code string decomposition circuit in FIG. 17;

【図19】図17の変換回路の構成例を示すブロック図
である。
19 is a block diagram illustrating a configuration example of the conversion circuit of FIG.

【図20】符号列分解回路の動作を説明するフローチャ
ートである。
FIG. 20 is a flowchart illustrating the operation of the code string decomposition circuit.

【図21】図20のステップS23の処理を説明するフ
ローチャートである。
FIG. 21 is a flowchart illustrating a process in step S23 of FIG. 20;

【図22】図20のステップS24の処理を説明するフ
ローチャートである。
FIG. 22 is a flowchart illustrating a process in step S24 of FIG. 20;

【図23】コンピュータ101の構成例を示すブロック
図である。
FIG. 23 is a block diagram illustrating a configuration example of a computer 101.

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

1 変換回路, 2 信号成分符号化回路, 3 符号
列生成回路, 4 情報記録媒体, 11 帯域分割フ
ィルタ, 12 順スペクトル変換回路, 13 順ス
ペクトル変換回路, 21 正規化回路, 22 量子
化回路, 23量子化精度決定回路, 31 制御部,
32 符号化部, 33 符号化部, 41 符号列
分解回路, 42 信号成分復号化回路, 43 逆変
換回路, 51 制御部, 52 復号部, 53 復
号部, 61,62 逆スペクトル変換回路, 63
帯域合成フィルタ
Reference Signs List 1 conversion circuit, 2 signal component coding circuit, 3 code string generation circuit, 4 information recording medium, 11 band division filter, 12 forward spectrum conversion circuit, 13 forward spectrum conversion circuit, 21 normalization circuit, 22 quantization circuit, 23 Quantization accuracy determination circuit, 31 control unit,
32 encoding unit, 33 encoding unit, 41 code string decomposition circuit, 42 signal component decoding circuit, 43 inverse conversion circuit, 51 control unit, 52 decoding unit, 53 decoding unit, 61, 62 inverse spectrum conversion circuit, 63
Band synthesis filter

───────────────────────────────────────────────────── フロントページの続き (72)発明者 辻 実 東京都品川区北品川6丁目7番35号 ソニ ー株式会社内 Fターム(参考) 5D045 DA00 5J064 AA02 AA04 BA09 BA16 BC01 BC02 BD03  ────────────────────────────────────────────────── ─── Continuing on the front page (72) Minoru Tsuji F-term (reference) in Sony Corporation 6-7-35 Kita Shinagawa, Shinagawa-ku, Tokyo 5D045 DA00 5J064 AA02 AA04 BA09 BA16 BC01 BC02 BD03

Claims (17)

【特許請求の範囲】[Claims] 【請求項1】 数値列を構成する数値を、M個ずつ1つ
のグループにまとめて符号化する符号化装置において、 前記数値の正負を調整して、M個の前記数値の正負を統
一する統一手段と、 前記統一手段により正負が統一された前記数値を符号化
する第1の符号化手段と、 前記統一手段により正負が調整された数値を特定するた
めの正負情報を生成して符号化する第2の符号化手段
と、 前記第1の符号化手段の出力と前記第2の符号化手段の
出力を含む符号列を生成する符号列生成手段とを備える
ことを特徴とする符号化装置。
1. An encoding apparatus that encodes numerical values forming a sequence of numerical values collectively into one group each of M numbers, wherein the sign of the numerical values is adjusted to unify the sign of the M numerical values. Means, first encoding means for encoding the numerical value of which the sign is unified by the unifying means, and sign information for identifying the numerical value whose sign is adjusted by the unifying means is generated and encoded. An encoding apparatus comprising: a second encoding unit; and a code sequence generation unit configured to generate a code sequence including an output of the first encoding unit and an output of the second encoding unit.
【請求項2】 前記符号列生成手段は、前記第1の符号
化手段の出力と前記第2の符号化手段の出力を交互に含
むように符号列を生成することを特徴とする請求項1に
記載の符号化装置。
2. The apparatus according to claim 1, wherein said code string generation means generates a code string so as to include an output of said first encoding means and an output of said second encoding means alternately. An encoding device according to claim 1.
【請求項3】 前記第2の符号化手段は、 M個の前記数値のうちの特定値以外の前記数値の数を計
算する計算手段と、 前記特定値以外の数値の正負が調整されたかどうかの情
報を前記計算手段で求められた数だけ生成して正負情報
とする生成手段とを備えることを特徴とする請求項1に
記載の符号化装置。
3. The second encoding means includes: a calculation means for calculating the number of the numerical values other than the specific value among the M numerical values; and whether the sign of the numerical value other than the specific value has been adjusted. 2. The encoding apparatus according to claim 1, further comprising: generating means for generating the number of pieces of information by the number obtained by the calculating means to generate positive / negative information.
【請求項4】 前記符号化手段は、前記数値を、可変長
の符号列に符号化することを特徴とする請求項1に記載
の符号化装置。
4. The encoding device according to claim 1, wherein the encoding unit encodes the numerical value into a variable-length code string.
【請求項5】 前記可変長の符号列は、ハフマン符号よ
りなることを特徴とする請求項4に記載の符号化装置。
5. The encoding apparatus according to claim 4, wherein the variable-length code string is formed of a Huffman code.
【請求項6】 前記数値列は、量子化された音響波形信
号であることを特徴とする請求項1に記載の符号化装
置。
6. The encoding apparatus according to claim 1, wherein the numerical sequence is a quantized acoustic waveform signal.
【請求項7】 数値列を構成する数値を、M個ずつ1つ
のグループにまとめて符号化する符号化装置の符号化方
法において、 前記数値の正負を調整して、M個の前記数値の正負を統
一する統一ステップと、 前記統一ステップの処理で正負が統一された前記数値を
符号化する第1の符号化ステップと、 前記統一ステップの処理で正負が調整された数値を特定
するための正負情報を生成して符号化する第2の符号化
ステップと、 前記第1の符号化ステップの処理での出力と前記第2の
符号化ステップの処理での出力を含む符号列を生成する
符号列生成ステップとを含むことを特徴とする符号化方
法。
7. An encoding method for an encoding apparatus, which encodes numerical values constituting a numerical value sequence into a group of M numbers at a time, adjusting the sign of the numerical values, and adjusting the sign of the M numerical values. A first encoding step of encoding the numerical value of which the sign is unified in the processing of the unifying step; A second encoding step for generating and encoding information; a code sequence for generating a code sequence including an output in the process of the first encoding step and an output in the process of the second encoding step And a generating step.
【請求項8】 数値列を構成する数値を、M個ずつ1つ
のグループにまとめて符号化する符号化装置のプログラ
ムであって、 前記数値の正負を調整して、M個の前記数値の正負を統
一する統一ステップと、 前記統一ステップの処理で正負が統一された前記数値を
符号化する第1の符号化ステップと、 前記統一ステップの処理で正負が調整された数値を特定
するための正負情報を生成して符号化する第2の符号化
ステップと、 前記第1の符号化ステップの処理での出力と前記第2の
符号化ステップの処理での出力を含む符号列を生成する
符号列生成ステップとを含むことを特徴とするコンピュ
ータが読み取り可能なプログラムが記録されている記録
媒体。
8. A program for an encoding apparatus for encoding numerical values constituting a numerical sequence into a group of M numbers each, wherein the program adjusts the sign of the numerical values and adjusts the sign of the M numerical values. A first encoding step of encoding the numerical values of which the sign is unified in the processing of the unifying step; and a positive / negative sign for specifying a numerical value whose sign has been adjusted in the processing of the unifying step. A second encoding step for generating and encoding information; a code sequence for generating a code sequence including an output in the process of the first encoding step and an output in the process of the second encoding step A recording medium on which a computer-readable program is recorded.
【請求項9】 数値列を構成する数値を、M個ずつ1つ
のグループにまとめて符号化する符号化装置のプログラ
ムであって、 前記数値の正負を調整して、M個の前記数値の正負を統
一する統一ステップと、 前記統一ステップの処理で正負が統一された前記数値を
符号化する第1の符号化ステップと、 前記統一ステップの処理で正負が調整された数値を特定
するための正負情報を生成して符号化する第2の符号化
ステップと、 前記第1の符号化ステップの処理での出力と前記第2の
符号化ステップの処理での出力を含む符号列を生成する
符号列生成ステップとを含む処理をコンピュータに実行
させることを特徴とするプログラム。
9. A program for an encoding apparatus for encoding numerical values constituting a numerical sequence into a group of M numbers each, wherein the program adjusts the sign of the numerical values and adjusts the sign of the M numerical values. A first encoding step of encoding the numerical value of which the sign is unified in the processing of the unifying step; and a positive / negative value for specifying a numerical value of which the sign is adjusted in the processing of the unifying step. A second encoding step for generating and encoding information; a code sequence for generating a code sequence including an output in the process of the first encoding step and an output in the process of the second encoding step A program for causing a computer to execute a process including a generation step.
【請求項10】 M個の数値列を構成する数値の正負を
統一して一つのグループとして符号化された第1の符号
列と、前記正負を統一する際に正負が調整された数値を
特定するための情報を符号化した第2の符号列とを含む
符号列を受け取る入力手段と、 前記第1の符号列を復号する復号手段と、 前記第2の符号列を復号し、正負が調整された数値を特
定するための情報を読み取る第1の読み取り手段と、 前記復号手段により復号されたM個の正負が調整された
数値列と、前記第1の読み取り手段により読み取られた
正負が調整された数値を特定するための情報に基づい
て、M個の数値列の正負を復元する復元手段とを備える
ことを特徴とする復号装置。
10. A first code string, which is encoded as one group by unifying the signs of the numbers forming the M number strings, and a number whose sign has been adjusted when unifying the signs. Input means for receiving a code string including a second code string obtained by encoding information for performing decoding, decoding means for decoding the first code string, decoding the second code string, and adjusting the sign. First reading means for reading the information for specifying the read numerical value; M number-positive / negative value sequences decoded by the decoding means; and positive / negative values read by the first reading means are adjusted. Decoding means for restoring the sign of the M number sequence based on the information for specifying the obtained numerical value.
【請求項11】 前記入力手段は、前記第1の符号列と
前記第2の符号列が交互に含まれる符号列を受け取るこ
とを特徴とする請求項10に記載の復号装置。
11. The decoding apparatus according to claim 10, wherein said input means receives a code string containing said first code string and said second code string alternately.
【請求項12】 前記第1の読み取り手段は、 M個の前記数値のうちの特定値以外の前記数値の数を計
算する計算手段と、 前記特定値以外の数値の正負が調整されたかどうかの情
報を前記計算手段で求められた数だけ読み取る第2の読
み取り手段とを備えることを特徴とする請求項10に記
載の復号装置。
12. The first reading means comprises: calculating means for calculating the number of the numerical values other than the specific value of the M numerical values; and determining whether the sign of the numerical value other than the specific value has been adjusted. 11. The decoding device according to claim 10, further comprising: a second reading unit that reads information by the number obtained by the calculation unit.
【請求項13】 前記第2の読み取り手段は、前記復号
手段により前記特定値が復号された場合、前記第2の符
号列の読み取りを行わないことを特徴とする請求項12
の記載の復号装置。
13. The apparatus according to claim 12, wherein the second reading unit does not read the second code string when the specific value is decoded by the decoding unit.
3. The decoding device according to claim 1.
【請求項14】 前記特定値は、値0であることを特徴
とする請求項12の復号装置。
14. The decoding device according to claim 12, wherein the specific value is a value 0.
【請求項15】 M個の数値列を構成する数値の正負を
統一して一つのグループとして符号化された第1の符号
列と、前記正負を統一する際に正負が調整された数値を
特定するための情報を符号化した第2の符号列とを含む
符号列を受け取る入力ステップと、 前記第1の符号列を復号する復号ステップと、 前記第2の符号列を復号し、正負が調整された数値を特
定するための情報を読み取る第1の読み取りステップ
と、 前記復号ステップの処理で復号されたM個の正負が調整
された数値列と、前記第1の読み取りステップの処理で
読み取られた正負が調整された数値を特定するための情
報に基づいて、M個の数値列の正負を復元する復元ステ
ップとを含むことを特徴とする復号方法。
15. A first code string which is encoded as one group by unifying the positive and negative values of numerical values constituting M numerical value strings, and a numerical value whose positive and negative are adjusted when the positive and negative are unified. An input step of receiving a code string including a second code string obtained by encoding information for performing decoding, a decoding step of decoding the first code string, and a decoding step of decoding the second code string so that the sign is adjusted. A first reading step of reading the information for specifying the decoded numerical value; a M number of positive / negative adjusted numerical strings decoded in the processing of the decoding step; and a numerical string read in the processing of the first reading step. A restoring step of restoring the sign of the M number sequence based on the information for specifying the sign whose sign has been adjusted.
【請求項16】 M個の数値列を構成する数値の正負を
統一して一つのグループとして符号化された第1の符号
列と、前記正負を統一する際に正負が調整された数値を
特定するための情報を符号化した第2の符号列とを含む
符号列を受け取る入力ステップと、 前記第1の符号列を復号する復号ステップと、 前記第2の符号列を復号し、正負が調整された数値を特
定するための情報を読み取る第1の読み取りステップ
と、 前記復号ステップの処理で復号されたM個の正負が調整
された数値列と、前記第1の読み取りステップの処理で
読み取られた正負が調整された数値を特定するための情
報に基づいて、M個の数値列の正負を復元する復元ステ
ップとを含むことを特徴とするコンピュータが読み取り
可能なプログラムが記録されている記録媒体。
16. A first code string, which is encoded as one group by unifying the signs of the numbers forming M number strings, and a number whose sign is adjusted when the signs are unified. An input step of receiving a code string including a second code string obtained by encoding information for performing decoding, a decoding step of decoding the first code string, and a decoding step of decoding the second code string so that the sign is adjusted. A first reading step of reading the information for specifying the decoded numerical value; a M number of positive / negative adjusted numerical strings decoded in the processing of the decoding step; and a numerical string read in the processing of the first reading step. A restoring step of restoring the sign of the M number sequence based on the information for specifying the sign whose sign has been adjusted. .
【請求項17】 M個の数値列を構成する数値の正負を
統一して一つのグループとして符号化された第1の符号
列と、前記正負を統一する際に正負が調整された数値を
特定するための情報を符号化した第2の符号列とを含む
符号列を受け取る入力ステップと、 前記第1の符号列を復号する復号ステップと、 前記第2の符号列を復号し、正負が調整された数値を特
定するための情報を読み取る第1の読み取りステップ
と、 前記復号ステップの処理で復号されたM個の正負が調整
された数値列と、前記第1の読み取りステップの処理で
読み取られた正負が調整された数値を特定するための情
報に基づいて、M個の数値列の正負を復元する復元ステ
ップとを含む処理をコンピュータに実行させることを特
徴とするプログラム。
17. A first code string which is encoded as one group by unifying the positive and negative values of numerical values constituting M numerical value strings, and a numerical value whose positive and negative have been adjusted when the positive and negative are unified. An input step of receiving a code string including a second code string obtained by encoding information for performing decoding, a decoding step of decoding the first code string, and a decoding step of decoding the second code string so that the sign is adjusted. A first reading step of reading the information for specifying the decoded numerical value; a M number of positive / negative adjusted numerical strings decoded in the processing of the decoding step; and a numerical string read in the processing of the first reading step. And a restoring step of restoring the sign of the M number sequence based on the information for specifying the numerical value whose sign has been adjusted.
JP2001169415A 2001-06-05 2001-06-05 Encoding apparatus and method, decoding apparatus and method, recording medium, and program Expired - Fee Related JP4534112B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2001169415A JP4534112B2 (en) 2001-06-05 2001-06-05 Encoding apparatus and method, decoding apparatus and method, recording medium, and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2001169415A JP4534112B2 (en) 2001-06-05 2001-06-05 Encoding apparatus and method, decoding apparatus and method, recording medium, and program

Publications (2)

Publication Number Publication Date
JP2002368622A true JP2002368622A (en) 2002-12-20
JP4534112B2 JP4534112B2 (en) 2010-09-01

Family

ID=19011488

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2001169415A Expired - Fee Related JP4534112B2 (en) 2001-06-05 2001-06-05 Encoding apparatus and method, decoding apparatus and method, recording medium, and program

Country Status (1)

Country Link
JP (1) JP4534112B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005326862A (en) * 2004-05-13 2005-11-24 Samsung Electronics Co Ltd Apparatus and method for speech signal compression, apparatus and method for speech signal decompression, and computer readable recording medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH07273665A (en) * 1994-04-01 1995-10-20 Sony Corp Data compression coding method, data compression coder and data recording medium
JPH0983378A (en) * 1995-09-18 1997-03-28 Toshiba Corp Encoding device and decoding device
JPH09135176A (en) * 1995-11-10 1997-05-20 Sony Corp Information coder and method, information decoder and method and information recording medium
JPH11196001A (en) * 1998-01-07 1999-07-21 Nec Corp Variable length code generation circuit
JP2000156861A (en) * 1998-11-20 2000-06-06 Oki Electric Ind Co Ltd Method and device for compressing multi-valued information and image information expanding device and cipher image reproducing system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH07273665A (en) * 1994-04-01 1995-10-20 Sony Corp Data compression coding method, data compression coder and data recording medium
JPH0983378A (en) * 1995-09-18 1997-03-28 Toshiba Corp Encoding device and decoding device
JPH09135176A (en) * 1995-11-10 1997-05-20 Sony Corp Information coder and method, information decoder and method and information recording medium
JPH11196001A (en) * 1998-01-07 1999-07-21 Nec Corp Variable length code generation circuit
JP2000156861A (en) * 1998-11-20 2000-06-06 Oki Electric Ind Co Ltd Method and device for compressing multi-valued information and image information expanding device and cipher image reproducing system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005326862A (en) * 2004-05-13 2005-11-24 Samsung Electronics Co Ltd Apparatus and method for speech signal compression, apparatus and method for speech signal decompression, and computer readable recording medium
US8019600B2 (en) 2004-05-13 2011-09-13 Samsung Electronics Co., Ltd. Speech signal compression and/or decompression method, medium, and apparatus

Also Published As

Publication number Publication date
JP4534112B2 (en) 2010-09-01

Similar Documents

Publication Publication Date Title
JP4506039B2 (en) Encoding apparatus and method, decoding apparatus and method, and encoding program and decoding program
JP3371590B2 (en) High efficiency coding method and high efficiency decoding method
KR100395190B1 (en) Apparatus and method for coding or decoding signals
KR100368854B1 (en) Digital signal encoders, decoders and record carriers thereof
JP3203657B2 (en) Information encoding method and apparatus, information decoding method and apparatus, information transmission method, and information recording medium
JP3277692B2 (en) Information encoding method, information decoding method, and information recording medium
JP4296752B2 (en) Encoding method and apparatus, decoding method and apparatus, and program
JPH1084284A (en) Signal reproducing method and device
JP3900000B2 (en) Encoding method and apparatus, decoding method and apparatus, and program
JP3341474B2 (en) Information encoding method and decoding method, information encoding device and decoding device, and information recording medium
JP3186290B2 (en) Encoding method, encoding device, decoding device, and recording medium
WO1995012920A1 (en) Signal encoder, signal decoder, recording medium and signal encoding method
KR100952065B1 (en) Coding method, apparatus, decoding method, and apparatus
JP3475985B2 (en) Information encoding apparatus and method, information decoding apparatus and method
JP3685823B2 (en) Signal encoding method and apparatus, and signal decoding method and apparatus
WO1999044291A1 (en) Coding device and coding method, decoding device and decoding method, program recording medium, and data recording medium
JP3255047B2 (en) Encoding device and method
JP2002374171A (en) Encoding device and method, decoding device and method, recording medium and program
JP4534112B2 (en) Encoding apparatus and method, decoding apparatus and method, recording medium, and program
JPH09135173A (en) Device and method for encoding, device and method for decoding, device and method for transmission and recording medium
JP2002359560A (en) Coder and coding method, decoder and decoding method, recording medium and program
JP2002050967A (en) Signal recording medium
JP3465698B2 (en) Signal decoding method and apparatus
JPH07273656A (en) Method and device for processing signal
US20010016810A1 (en) Signal reproduction apparatus and method therefor

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20080306

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20100217

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20100223

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20100426

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20100520

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20100602

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

Free format text: PAYMENT UNTIL: 20130625

Year of fee payment: 3

LAPS Cancellation because of no payment of annual fees