JP5840101B2 - Encoding method, encoding apparatus, decoding method, decoding apparatus, program, and recording medium - Google Patents

Encoding method, encoding apparatus, decoding method, decoding apparatus, program, and recording medium Download PDF

Info

Publication number
JP5840101B2
JP5840101B2 JP2012219184A JP2012219184A JP5840101B2 JP 5840101 B2 JP5840101 B2 JP 5840101B2 JP 2012219184 A JP2012219184 A JP 2012219184A JP 2012219184 A JP2012219184 A JP 2012219184A JP 5840101 B2 JP5840101 B2 JP 5840101B2
Authority
JP
Japan
Prior art keywords
signal sequence
range
code
normalized signal
samples
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.)
Active
Application number
JP2012219184A
Other languages
Japanese (ja)
Other versions
JP2014071401A (en
Inventor
勝宏 福井
勝宏 福井
祐介 日和▲崎▼
祐介 日和▲崎▼
登 原田
登 原田
守谷 健弘
健弘 守谷
優 鎌本
優 鎌本
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nippon Telegraph and Telephone Corp
Original Assignee
Nippon Telegraph and Telephone 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 Nippon Telegraph and Telephone Corp filed Critical Nippon Telegraph and Telephone Corp
Priority to JP2012219184A priority Critical patent/JP5840101B2/en
Publication of JP2014071401A publication Critical patent/JP2014071401A/en
Application granted granted Critical
Publication of JP5840101B2 publication Critical patent/JP5840101B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Compression, Expansion, Code Conversion, And Decoders (AREA)

Description

本発明は、音声や音楽などの音響信号を少ない情報量で符号化するための技術に関し、より詳しくは、量子化精度を向上させる符号化技術に関する。   The present invention relates to a technique for encoding an audio signal such as voice or music with a small amount of information, and more particularly to an encoding technique for improving quantization accuracy.

現在、音声や音楽などの音響信号を離散化したディジタルの入力信号を高能率に符号化する技術として、例えば、入力信号に含まれる5〜200ms程度の一定間隔の各区間(フレーム)の入力信号系列を処理対象として、1フレームの入力信号系列に時間−周波数変換を適用して得られた周波数領域信号を符号化することが知られている。このような従来技術のうち、非特許文献1に開示されている符号化装置と復号装置の概要を図1に示す。   At present, as a technique for efficiently coding a digital input signal obtained by discretizing an acoustic signal such as voice or music, for example, an input signal in each interval (frame) at a fixed interval of about 5 to 200 ms included in the input signal. It is known to encode a frequency domain signal obtained by applying time-frequency conversion to an input signal sequence of one frame with a sequence as a processing target. Among such conventional technologies, an outline of an encoding device and a decoding device disclosed in Non-Patent Document 1 is shown in FIG.

なお、非特許文献1によるとグローバルゲイン(正規化された入力信号系列の量子化精度に影響を及ぼすゲイン)の量子化値は時間領域で計算されている。しかし、時間領域における信号のエネルギーと周波数領域における信号のエネルギーは等しいため、グローバルゲインの量子化値を周波数領域で求めてもこの結果は時間領域におけるそれと異ならない。従って、ここでは、グローバルゲインの量子化値およびその復号値を周波数領域で計算する場合を例示する。   According to Non-Patent Document 1, the quantization value of the global gain (gain that affects the quantization accuracy of the normalized input signal sequence) is calculated in the time domain. However, since the energy of the signal in the time domain is equal to the energy of the signal in the frequency domain, even if the quantized value of the global gain is obtained in the frequency domain, this result is not different from that in the time domain. Therefore, here, a case where the quantized value of the global gain and the decoded value thereof are calculated in the frequency domain is illustrated.

以下、符号化装置での処理を説明する。   Hereinafter, processing in the encoding device will be described.

<周波数領域変換部101>
周波数領域変換部101には、時間領域の入力信号x(n)に含まれる連続する複数サンプルからなるフレーム単位の入力時間領域信号系列xF(n)が入力される。周波数領域変換部101は、1フレームの入力時間領域信号系列xF(n)に対応するL点(Lは、正整数で例えば256である)の周波数成分を入力周波数領域信号系列X(ω) [ω∈{0,…,L-1}]として出力する。ここで、nは離散時間のインデックス、ωは離散周波数のインデックスを表す。時間−周波数変換方法として、例えばMDCT(Modified Discrete Cosine Transform)またはDCT(Discrete Cosine Transform)を用いることができる。
<Frequency domain conversion unit 101>
The frequency domain transform unit 101 receives an input time domain signal sequence x F (n) in units of frames, which is composed of a plurality of consecutive samples included in the time domain input signal x (n). The frequency domain transform unit 101 converts the frequency component of L points (L is a positive integer, for example, 256) corresponding to the input time domain signal sequence x F (n) of one frame to the input frequency domain signal sequence X (ω). Output as [ω∈ {0,..., L-1}]. Here, n represents an index of discrete time, and ω represents an index of discrete frequency. As a time-frequency conversion method, for example, MDCT (Modified Discrete Cosine Transform) or DCT (Discrete Cosine Transform) can be used.

<正規化部102>
正規化部102には、入力周波数領域信号系列X(ω) [ω∈{0,…,L-1}]と、後述するゲイン制御部104で求められた入力周波数領域信号系列X(ω) [ω∈{0,…,L-1}]の各成分の量子化精度を決定するゲイン(以下、グローバルゲインという)gが入力される。正規化部102は、入力周波数領域信号系列X(ω) [ω∈{0,…,L-1}]の各成分をグローバルゲインgでそれぞれ除することによって、もしくは入力周波数領域信号系列X(ω) [ω∈{0,…,L-1}]の各成分にグローバルゲインgの逆数をそれぞれ乗ずることによって、入力周波数領域信号系列X(ω) [ω∈{0,…,L-1}]の正規化を行い、正規化済み信号系列XQ(ω) [ω∈{0,…,L-1}]を出力する。
<Normalization unit 102>
The normalization unit 102 includes an input frequency domain signal sequence X (ω) [ω∈ {0,..., L-1}] and an input frequency domain signal sequence X (ω) obtained by the gain control unit 104 described later. A gain (hereinafter referred to as a global gain) g that determines the quantization accuracy of each component of [ω∈ {0,..., L−1}] is input. The normalization unit 102 divides each component of the input frequency domain signal sequence X (ω) [ω∈ {0,..., L-1}] by the global gain g, or the input frequency domain signal sequence X ( ω) [ω∈ {0,..., L-1}] by multiplying each component of [ω∈ {0,..., L-1}] by the reciprocal of the global gain g, respectively. }] Is normalized, and a normalized signal sequence X Q (ω) [ω∈ {0,..., L−1}] is output.

<量子化部103>
量子化部103には、正規化済み信号系列XQ(ω) [ω∈{0,…,L-1}]が入力される。量子化部103は、事前に定められた方法で正規化済み信号系列XQ(ω) [ω∈{0,…,L-1}]の量子化を行い、正規化済み信号系列XQ(ω) [ω∈{0,…,L-1}]の各成分の量子化値による系列である量子化正規化済み信号系列X^Q(ω) [ω∈{0,…,L-1}]、および量子化正規化済み信号系列X^Q(ω) [ω∈{0,…,L-1}]に対応する符号である正規化信号符号を生成し、正規化信号符号のビット数(以下、消費ビット数という)を出力する。また、ゲイン制御部104から、量子化正規化済み信号系列X^Q(ω) [ω∈{0,…,L-1}]と正規化信号符号を出力する指令情報を受けた場合には、量子化正規化済み信号系列X^Q(ω) [ω∈{0,…,L-1}]と正規化信号符号を出力する。
<Quantization unit 103>
The quantizing unit 103 receives the normalized signal sequence X Q (ω) [ω∈ {0,..., L−1}]. The quantization unit 103 quantizes the normalized signal sequence X Q (ω) [ω∈ {0,..., L-1}] by a predetermined method, and the normalized signal sequence X Q ( ω) Quantized normalized signal sequence X ^ Q (ω) [ω∈ {0,..., L-1] which is a series of quantized values of each component of [ω∈ {0,. }], And a normalized signal code that is a code corresponding to the quantized normalized signal sequence X ^ Q (ω) [ω∈ {0,..., L-1}], and the bits of the normalized signal code Number (hereinafter referred to as the number of consumed bits). Further, when receiving from the gain control unit 104 command information for outputting a quantized normalized signal sequence X ^ Q (ω) [ω∈ {0,..., L-1}] and a normalized signal code Then, the quantized normalized signal sequence X ^ Q (ω) [ω∈ {0,..., L-1}] and the normalized signal code are output.

<ゲイン制御部104>
ゲイン制御部104には、消費ビット数が入力される。ゲイン制御部104は、消費ビット数が正規化信号符号に対して事前に割り当てられたビット数(以下、規定ビット数という)以下の最大値に近づくようにグローバルゲインgを調整し、調整後のグローバルゲインgを新たなグローバルゲインgとして出力する。グローバルゲインgの調整の一例として、消費ビット数が規定ビット数より大きい場合にはグローバルゲインgを大きくし、そうでなければグローバルゲインgを小さくする処理を例示できる。消費ビット数が規定ビット数以下の最大値となった場合には、量子化正規化済み信号系列X^Q(ω) [ω∈{0,…,L-1}]と正規化信号符号を出力する指令情報を量子化部103に対して出力する。
<Gain control unit 104>
The gain control unit 104 receives the number of consumed bits. The gain control unit 104 adjusts the global gain g so that the number of consumed bits approaches a maximum value that is less than or equal to the number of bits allocated in advance to the normalized signal code (hereinafter referred to as the specified number of bits). The global gain g is output as a new global gain g. As an example of the adjustment of the global gain g, a process of increasing the global gain g when the number of consumed bits is larger than the specified number of bits and decreasing the global gain g otherwise can be exemplified. When the number of consumed bits reaches the maximum value less than the specified number of bits, the quantized normalized signal sequence X ^ Q (ω) [ω∈ {0, ..., L-1}] and the normalized signal code are Command information to be output is output to the quantization unit 103.

<グローバルゲイン符号化部105>
グローバルゲイン符号化部105には、入力周波数領域信号系列X(ω) [ω∈{0,…,L-1}]と量子化正規化済み信号系列X^Q(ω) [ω∈{0,…,L-1}]が入力される。グローバルゲイン符号化部105は、予め設定されたグローバルゲインの量子化値の複数の候補のうち、入力周波数領域信号系列X(ω) [ω∈{0,…,L-1}]と、量子化正規化済み信号系列X^Q(ω) [ω∈{0,…,L-1}]の各成分とグローバルゲインの量子化値の候補との乗算値による系列と、の間の相関が最大または誤差が最小となるグローバルゲインの量子化値の候補g^に対応する符号をグローバルゲイン符号として出力する。
<Global Gain Encoding Unit 105>
The global gain encoding unit 105 includes an input frequency domain signal sequence X (ω) [ωε {0,..., L-1}] and a quantized normalized signal sequence X ^ Q (ω) [ωε {0. ,..., L-1}] is input. The global gain encoding unit 105 includes an input frequency domain signal sequence X (ω) [ω∈ {0,..., L-1}] and a quantum among a plurality of preset global gain quantization values. Correlation between each component of the normalized normalized signal sequence X ^ Q (ω) [ω∈ {0,..., L-1}] and the global gain quantized value candidate sequence The code corresponding to the global gain quantized value g ^ having the maximum or minimum error is output as the global gain code.

符号化装置の出力符号である正規化信号符号とグローバルゲイン符号は、復号装置に向けて送信され、復号装置に入力される。   The normalized signal code and the global gain code, which are output codes of the encoding device, are transmitted to the decoding device and input to the decoding device.

以下、復号装置での処理を説明する。   Hereinafter, processing in the decoding apparatus will be described.

<グローバルゲイン復号部106>
グローバルゲイン復号部106には、グローバルゲイン符号が入力される。グローバルゲイン復号部106は、グローバルゲイン符号化部105が行う符号化処理に対応する復号処理を適用して当該グローバルゲイン符号を復号し、復号グローバルゲインg^を出力する。
<Global Gain Decoding Unit 106>
A global gain code is input to the global gain decoding unit 106. The global gain decoding unit 106 applies a decoding process corresponding to the encoding process performed by the global gain encoding unit 105 to decode the global gain code, and outputs a decoded global gain g ^.

<正規化信号復号部107>
正規化信号復号部107には、正規化信号符号が入力される。正規化信号復号部107は、符号化装置の量子化部103で行われる符号化方法と対応する復号方法を適用して当該正規化信号符号を復号し、復号正規化済み信号系列X^Q(ω) [ω∈{0,…,L-1}]を出力する。
<Normalized signal decoding unit 107>
A normalized signal code is input to the normalized signal decoding unit 107. The normalized signal decoding unit 107 applies a decoding method corresponding to the encoding method performed by the quantization unit 103 of the encoding device, decodes the normalized signal code, and generates a decoded normalized signal sequence X ^ Q ( ω) [ω∈ {0,..., L-1}] is output.

<復号周波数成分計算部108>
復号周波数成分計算部108には、復号グローバルゲインg^と復号正規化済み信号系列X^Q(ω) [ω∈{0,…,L-1}]が入力される。復号周波数成分計算部108は、復号正規化済み信号系列X^Q(ω) [ω∈{0,…,L-1}]の各成分と復号グローバルゲインg^とをそれぞれ乗算して得られる系列を復号周波数領域信号系列X^(ω) [ω∈{0,…,L-1}]として出力する。
<Decoding Frequency Component Calculation Unit 108>
The decoded frequency component calculation unit 108 receives the decoded global gain g ^ and the decoded normalized signal sequence X ^ Q (ω) [ω∈ {0,..., L-1}]. The decoded frequency component calculation unit 108 is obtained by multiplying each component of the decoded normalized signal sequence X ^ Q (ω) [ω∈ {0,..., L-1}] and the decoded global gain g ^. The sequence is output as a decoded frequency domain signal sequence X ^ (ω) [ωε {0,..., L−1}].

<時間領域変換部109>
時間領域変換部109には、復号周波数領域信号系列X^(ω) [ω∈{0,…,L-1}]が入力される。時間領域変換部109は、復号周波数領域信号系列X^(ω) [ω∈{0,…,L-1}]に対して周波数−時間変換を適用して、フレーム単位の出力時間領域信号系列zF(n)を出力する。周波数−時間変換方法は、周波数領域変換部101で用いられた時間−周波数変換方法に対応する逆変換である。上述の例であれば、ここでの周波数−時間変換方法は、IMDCT(Inverse Modified Discrete Cosine Transform)またはIDCT(Inverse Discrete Cosine Transform)である。
<Time domain conversion unit 109>
Decoded frequency domain signal sequence X ^ (ω) [ω∈ {0,..., L−1}] is input to time domain transform section 109. The time domain transform unit 109 applies a frequency-time transform to the decoded frequency domain signal sequence X ^ (ω) [ω∈ {0,..., L-1}], and outputs an output time domain signal sequence in units of frames. Output z F (n). The frequency-time conversion method is an inverse conversion corresponding to the time-frequency conversion method used in the frequency domain conversion unit 101. In the above example, the frequency-time conversion method here is IMDCT (Inverse Modified Cosine Transform) or IDCT (Inverse Discrete Cosine Transform).

Guillaume Fuchs, Markus Multrus, Max Neuendorf and Ralf Geiger, “MDCT-BASED CODER FOR HIGHLY ADAPTIVE SPEECH AND AUDIO CODING,” 17th European Signal Processing Conference (EUSIPCO 2009), Glasgow, Scotland, August 24-28, 2009.Guillaume Fuchs, Markus Multrus, Max Neuendorf and Ralf Geiger, “MDCT-BASED CODER FOR HIGHLY ADAPTIVE SPEECH AND AUDIO CODING,” 17th European Signal Processing Conference (EUSIPCO 2009), Glasgow, Scotland, August 24-28, 2009.

上述のような符号化方法では、グローバルゲインを調整して正規化済み信号系列の量子化の粗さを適宜制御し、このことによって正規化信号符号の符号量である消費ビット数が規定ビット数以下の最大値となるように制御を行っている。このため、規定ビット数より消費ビット数が小さい場合は、正規化済み信号系列のために事前に割り当てられたビット数を十分に生かした符号化処理を行えていないという問題がある。   In the coding method as described above, the global gain is adjusted to appropriately control the coarseness of quantization of the normalized signal sequence, so that the number of bits consumed, which is the code amount of the normalized signal code, is the specified number of bits. Control is performed so that the following maximum value is obtained. For this reason, when the number of bits consumed is smaller than the specified number of bits, there is a problem in that the encoding process that makes full use of the number of bits allocated in advance for the normalized signal sequence cannot be performed.

このような状況に鑑みて、本発明は、正規化済み信号系列の量子化精度を少ない符号量の増加で改善する符号化技術とその復号技術を提供することを目的とする。   In view of such circumstances, an object of the present invention is to provide an encoding technique that improves the quantization accuracy of a normalized signal sequence with a small increase in code amount and a decoding technique thereof.

本発明の一態様による符号化方法は、複数の入力信号サンプルにより構成される、フレーム単位の入力信号系列を符号化する符号化方法において、入力信号系列に含まれる各入力信号サンプルが正規化された信号による系列を符号化して得られる正規化信号符号と、正規化信号符号に対応する量子化正規化済み信号系列とを得る正規化信号符号化ステップと、入力信号系列に対応するゲインである量子化グローバルゲインと、量子化グローバルゲインに対応するグローバルゲイン符号とを得るグローバルゲイン符号化ステップと、量子化正規化済み信号系列のサンプルの値の大きさが所定の値よりも大きいサンプルの個数又は入力信号サンプルが正規化された信号による系列のサンプル値の大きさが所定の値よりも大きいサンプルの個数に応じて、量子化グローバルゲインをゲイン補正量で補正して得られるゲインを量子化正規化済み信号系列の各サンプルの値又は量子化正規化済み信号系列を修正して得られる修正後量子化正規化済み信号系列の各サンプルの値に乗算して得られる信号系列と入力信号系列との誤差が最小となるゲイン補正量を特定するためのゲイン補正量符号を生成するゲイン補正量符号生成ステップ、及び、入力信号系列の各サンプル値を量子化グローバルゲイン又は量子化グローバルゲインをゲイン補正量符号に対応するゲイン補正量で補正して得られるゲインで除算して得られる信号系列と量子化正規化済み信号系列との誤差に対応する誤差符号を生成する誤差符号化ステップの一方のステップを他方のステップよりも優先的に行わせる制御部と、を有する。   An encoding method according to an aspect of the present invention is an encoding method for encoding an input signal sequence in units of frames, which includes a plurality of input signal samples, wherein each input signal sample included in the input signal sequence is normalized. A normalized signal encoding step for obtaining a normalized signal code obtained by encoding a sequence based on the received signal and a quantized normalized signal sequence corresponding to the normalized signal code, and a gain corresponding to the input signal sequence A global gain encoding step for obtaining a quantized global gain and a global gain code corresponding to the quantized global gain, and a number of samples in which the magnitude of a sample of a quantized normalized signal sequence is greater than a predetermined value Alternatively, the magnitude of the sample value of the sequence obtained by normalizing the input signal samples corresponds to the number of samples larger than a predetermined value. Then, the quantized global normalization is obtained by correcting the value obtained by correcting the quantized global gain with the gain correction amount and correcting the value of each sample of the quantized normalized signal sequence or the quantized normalized signal sequence. A gain correction amount code generation step for generating a gain correction amount code for specifying a gain correction amount that minimizes an error between the signal sequence obtained by multiplying the value of each sample of the completed signal sequence and the input signal sequence; and Quantized and normalized signal sequence obtained by dividing each sample value of the input signal sequence by the gain obtained by correcting the quantized global gain or the quantized global gain by the gain correction amount corresponding to the gain correction amount code A control unit that preferentially performs one step of an error encoding step that generates an error code corresponding to an error with the signal sequence over the other step. .

本発明の一態様による復号方法は、フレーム単位の符号を復号して出力信号系列を得る復号方法において、符号に含まれる正規化信号符号を復号して復号正規化済み信号系列を得る正規化信号復号ステップと、符号に含まれるグローバルゲイン符号を復号して復号グローバルゲインを得るグローバルゲイン復号ステップと、復号正規化済み信号系列のサンプルの値の大きさが所定の値よりも大きいサンプルの個数に応じて、符号に含まれるゲイン補正量符号に基づいて復号グローバルゲインを補正する復号グローバルゲイン補正ステップ及び符号に含まれる誤差符号に基づいて復号正規化済み信号系列を修正する復号正規化済み信号系列修正ステップの一方のステップを他方のステップよりも優先的に行わせる制御部と、補正された復号グローバルゲインと、修正された復号正規化済み信号系列の各サンプルとを乗算して得られる信号系列を出力信号系列として得る復号ステップと、を有する。   The decoding method according to one aspect of the present invention is a decoding method for obtaining an output signal sequence by decoding a frame-unit code, and obtaining a decoded normalized signal sequence by decoding a normalized signal code included in the code A decoding step; a global gain decoding step for obtaining a decoded global gain by decoding a global gain code included in the code; and a number of samples in which a sample value of a decoded normalized signal sequence is larger than a predetermined value. Accordingly, a decoding global gain correction step for correcting the decoding global gain based on the gain correction amount code included in the code, and a decoded normalized signal sequence for correcting the decoding normalized signal sequence based on the error code included in the code A control unit that preferentially performs one step of the correction step over the other step, and a corrected decoding group Has a Barugein, a decoding step of obtaining a signal sequence obtained by multiplying the samples of the modified decoded normalized signal sequence as an output signal sequence, the.

信号系列の特徴に応じて量子化グローバルゲインの補正と量子化正規化済み信号系列の修正の何れかを優先して行うことにより、少ない符号量の増加で入力信号の量子化精度が向上し、ミュージカルノイズや量子化ノイズなどに起因する音質劣化を軽減できる。   Prioritizing either the correction of the quantized global gain or the correction of the quantized normalized signal sequence according to the characteristics of the signal sequence improves the quantization accuracy of the input signal with a small increase in code amount, Sound quality degradation caused by musical noise or quantization noise can be reduced.

従来技術に関わる符号化装置と復号装置の機能構成例を示すブロック図。The block diagram which shows the function structural example of the encoding apparatus and decoding apparatus in connection with a prior art. 第1実施形態に係る符号化装置の機能構成例を示すブロック図。The block diagram which shows the function structural example of the encoding apparatus which concerns on 1st Embodiment. 第1実施形態に係る符号化処理の処理フローを示す図。The figure which shows the processing flow of the encoding process which concerns on 1st Embodiment. 第1基準による区分処理の第1例の具体例1の処理フローを示す図。The figure which shows the processing flow of the specific example 1 of the 1st example of the division process by a 1st reference | standard. 第1基準による区分処理の第1例の具体例2の処理フローを示す図。The figure which shows the processing flow of the specific example 2 of the 1st example of the division process by a 1st reference | standard. 第1基準による区分処理の第1例の具体例3の処理フローを示す図。The figure which shows the processing flow of the specific example 3 of the 1st example of the division process by a 1st reference | standard. 第1基準による区分処理の第3例の具体例1の処理フローを示す図。The figure which shows the processing flow of the specific example 1 of the 3rd example of the division process by a 1st reference | standard. 第1基準による区分処理の第3例の具体例2の処理フローを示す図。The figure which shows the processing flow of the specific example 2 of the 3rd example of the division process by a 1st reference | standard. 第1基準による区分処理の第3例の具体例3の処理フローを示す図。The figure which shows the processing flow of the specific example 3 of the 3rd example of the division process by a 1st reference | standard. 第1基準による区分処理の第5例の具体例1の処理フローを示す図。The figure which shows the processing flow of the specific example 1 of the 5th example of the division process by a 1st reference | standard. 第1基準による区分処理の第5例の具体例2の処理フローを示す図。The figure which shows the processing flow of the specific example 2 of the 5th example of the division process by a 1st reference | standard. 第1基準による区分処理の第5例の具体例3の処理フローを示す図。The figure which shows the processing flow of the specific example 3 of the 5th example of the division process by a 1st reference | standard. 第2基準による区分処理の第1例の具体例1の処理フローを示す図。The figure which shows the processing flow of the specific example 1 of the 1st example of the division process by a 2nd reference | standard. 第2基準による区分処理の第1例の具体例2の処理フローを示す図。The figure which shows the processing flow of the specific example 2 of the 1st example of the division process by a 2nd reference | standard. 第2基準による区分処理の第1例の具体例3の処理フローを示す図。The figure which shows the processing flow of the specific example 3 of the 1st example of the division process by a 2nd reference | standard. 第2基準による区分処理の第3例の具体例1の処理フローを示す図。The figure which shows the processing flow of the specific example 1 of the 3rd example of the division process by a 2nd reference | standard. 第2基準による区分処理の第3例の具体例2の処理フローを示す図。The figure which shows the processing flow of the specific example 2 of the 3rd example of the division process by a 2nd reference | standard. 第2基準による区分処理の第3例の具体例3の処理フローを示す図。The figure which shows the processing flow of the specific example 3 of the 3rd example of the division process by a 2nd reference | standard. 第2基準による区分処理の第5例の具体例1の処理フローを示す図。The figure which shows the processing flow of the specific example 1 of the 5th example of the division process by a 2nd reference | standard. 第2基準による区分処理の第5例の具体例2の処理フローを示す図。The figure which shows the processing flow of the specific example 2 of the 5th example of the division process by a 2nd reference | standard. 第2基準による区分処理の第5例の具体例3の処理フローを示す図。The figure which shows the processing flow of the specific example 3 of the 5th example of the division process by a 2nd reference | standard. 第1実施形態に係る復号装置の機能構成例を示すブロック図。The block diagram which shows the function structural example of the decoding apparatus which concerns on 1st Embodiment. 第1実施形態に係る復号処理の処理フローを示す図。The figure which shows the processing flow of the decoding process which concerns on 1st Embodiment. ゲイン補正量符号化部140の機能構成例を示すブロック図。FIG. 3 is a block diagram illustrating an example of a functional configuration of a gain correction amount encoding unit 140. 区分された範囲及び区分された範囲を纏めた範囲の例を説明するための図。The figure for demonstrating the example of the range which put together the divided range and the divided range. 制御部170及び制御部205の処理の例を説明するための図。The figure for demonstrating the example of a process of the control part 170 and the control part 205. FIG. 第2実施形態に係る符号化装置の機能構成例を示すブロック図。The block diagram which shows the function structural example of the encoding apparatus which concerns on 2nd Embodiment. 第2実施形態に係る復号装置の機能構成例を示すブロック図。The block diagram which shows the function structural example of the decoding apparatus which concerns on 2nd Embodiment.

本発明の実施形態を、図面を参照して説明する。同一構成要素ないし同一処理には同一符号を割り当てて重複説明を省略する場合がある。なお、各実施形態で扱う音響信号は音声や楽音などの音響、映像などの信号である。ここでは音響信号が時間領域信号であることを想定しているが、必要に応じて周知技術によって時間領域信号を周波数領域信号に変換することも、或いは周波数領域信号を時間領域信号に変換することもできる。従って、符号化処理の対象となる信号は、時間領域信号でも周波数領域信号でもよい(以下の説明では、説明を具体的にするため、周波数領域信号を扱う)。符号化処理の対象として入力される信号は複数のサンプルで構成される系列(サンプル系列)であり、符号化処理は通常、フレーム単位で実行されることから、処理対象の信号を入力信号系列と呼称することにする。   Embodiments of the present invention will be described with reference to the drawings. The same components or the same processes may be assigned the same reference numerals and redundant description may be omitted. In addition, the acoustic signal handled in each embodiment is a signal such as a sound, a sound such as a musical sound, and a video. Here, it is assumed that the acoustic signal is a time domain signal. However, the time domain signal may be converted into a frequency domain signal or a frequency domain signal may be converted into a time domain signal by a known technique as necessary. You can also. Therefore, the signal to be encoded may be a time domain signal or a frequency domain signal (in the following description, the frequency domain signal is treated for the sake of concrete explanation). The signal input as the target of the encoding process is a sequence (sample sequence) composed of a plurality of samples, and the encoding process is normally executed in units of frames. I will call it.

例えば図1に示す技術を参考にすると、入力信号系列X(ω) [ω∈{0,…,L-1}]に含まれる各成分、量子化グローバルゲインg^および量子化正規化済み信号系列X^Q(ω) [ω∈{0,…,L-1}]に含まれる各成分の間の関係は式(1)で表すことができる。ここで、egはグローバルゲインgと量子化グローバルゲインg^との量子化誤差を、eXQは正規化入力信号系列XQ(ω) [ω∈{0,…,L-1}]と量子化正規化済み信号系列X^Q(ω) [ω∈{0,…,L-1}]に含まれる対応する成分同士(同じωの値の成分同士)の量子化誤差を表している。 For example, referring to the technique shown in FIG. 1, each component included in the input signal sequence X (ω) [ω∈ {0,..., L-1}], the quantized global gain g ^, and the quantized normalized signal The relationship between the components included in the sequence X ^ Q (ω) [ω∈ {0,..., L-1}] can be expressed by Expression (1). Where e g is the quantization error between the global gain g and the quantized global gain g ^, and e XQ is the normalized input signal sequence X Q (ω) [ω∈ {0, ..., L-1}]. Quantization normalized signal sequence X ^ Q (ω) represents a quantization error between corresponding components (components having the same value of ω) included in [ω∈ {0, ..., L-1}] .

Figure 0005840101
Figure 0005840101

通常の量子化では、量子化正規化済み信号系列X^Q(ω) [ω∈{0,…,L-1}]に対応する符号である正規化信号符号に消費される消費ビット数は入力信号系列に依存し、正規化信号符号用に予め定められた規定ビット数の一部が未使用のビットとして残る場合が多い。そこで、この余った一つまたは複数のビット(以下、余剰ビットという)を量子化誤差egとeXQの低減に利用する。さらに言えば、余剰ビットに限らず、量子化誤差の低減のために事前に用意された一つまたは複数のビットを利用してもよい。以下、量子化誤差egの低減に利用可能なビットを「ゲイン修正ビット」と呼称する。ゲイン修正ビットのビット数をUgとする。また、量子化誤差eXQの低減に利用可能なビットを「誤差表現ビット」と呼称する。誤差表現ビットのビット数をUXQとする。 In normal quantization, the number of bits consumed by a normalized signal code that is a code corresponding to a quantized normalized signal sequence X ^ Q (ω) [ω∈ {0,..., L-1}] is Depending on the input signal sequence, a part of the predetermined number of bits predetermined for the normalized signal code often remains as unused bits. Therefore, the excess one or more bits (hereinafter, referred to as surplus bits) utilizing the reduction of the quantization error e g and e XQ. Furthermore, not only the surplus bits, but also one or a plurality of bits prepared in advance for reducing the quantization error may be used. Hereinafter referred to available bits in reducing the quantization error e g a "gain correction bits". Let U g be the number of gain correction bits. A bit that can be used to reduce the quantization error e XQ is referred to as an “error expression bit”. Let U XQ be the number of error expression bits.

なお、「量子化誤差egを低減する」ことは、換言すると、「量子化グローバルゲインを補正する」ことに他ならない。量子化グローバルゲインの補正に関して、一つのフレームに関する離散周波数のインデックスω∈{0,1,2,…,L-1}の全体、つまり系列全体、に共通の量子化グローバルゲインを補正する方法が考えられる。しかし、音響信号の特性を考慮すると、系列全体に共通の量子化グローバルゲインを補正するよりも、系列全体BをN個(ただし、Nは2以上の予め定められた整数である)の範囲{Bnn=1 N={B1,…,Bn,…,BN}に区分した後、各範囲に対応するゲインを、量子化グローバルゲインを補正することによって求める方が、音声品質の向上を期待できる。このような観点から、実施形態における適応量子化では、量子化グローバルゲインを補正する場合には、量子化正規化済み信号系列X^Q(ω) [ω∈{0,…,L-1}]の系列全体が複数の範囲に区分される。 Incidentally, the "to reduce the quantization error e g" is, in other words, "to correct the quantization global gain" especially none other. Regarding the correction of the quantized global gain, there is a method for correcting the quantized global gain common to the entire discrete frequency index ω∈ {0, 1, 2,..., L-1} of one frame, that is, the entire sequence. Conceivable. However, in consideration of the characteristics of the acoustic signal, the range of the entire sequence B is N (where N is a predetermined integer equal to or greater than 2) rather than correcting the quantization global gain common to the entire sequence { B n } n = 1 N = {B 1 ,..., B n ,..., B N }, and then obtaining the gain corresponding to each range by correcting the quantized global gain is better than the voice quality. Can be expected to improve. From this point of view, in the adaptive quantization in the embodiment, when correcting the quantized global gain, the quantized normalized signal sequence X ^ Q (ω) [ω∈ {0,..., L-1} ] Is divided into a plurality of ranges.

符号化装置と復号装置とで同じ信号系列BをN個の範囲に区分するために容易に考えられる方法は、隣接する範囲の境界位置や各範囲に含まれる成分数のような範囲を特定する情報を符号化装置の出力とする方法である。しかし、範囲を特定する情報を出力するためには大量のビット数が必要となる。範囲を特定する情報を符号化装置の出力とすることなく、すなわち、ビットを消費することなく、符号化装置と復号装置とで同じ基準で区分を行なう。また、各範囲に対してなるべく均等にゲイン修正ビット、すなわち、量子化グローバルゲインを修正するための情報量、を与えることを想定し、各範囲に含まれる量子化正規化済み信号系列の成分の情報量がなるべく均等となることが望ましい。そこで、系列区分の基準として「各範囲のエネルギーがなるべく等しくなるように区分する基準」又は「各範囲に含まれる有意のサンプルの個数がなるべく等しくなるように区分する基準」を採用する。これらの基準による具体的な区分方法については、後に詳述する。   An easily conceivable method for dividing the same signal sequence B into N ranges by the encoding device and the decoding device is to specify a range such as the boundary position of adjacent ranges and the number of components included in each range. In this method, information is output from the encoding device. However, a large number of bits are required to output information specifying the range. The coding apparatus and the decoding apparatus perform classification according to the same standard without using the information specifying the range as the output of the coding apparatus, that is, without consuming bits. Further, assuming that the gain correction bits, that is, the amount of information for correcting the quantized global gain, are given to each range as evenly as possible, the components of the quantized normalized signal sequence included in each range It is desirable that the amount of information be as uniform as possible. Therefore, as a criterion for series division, “criteria for classifying so that the energy in each range is as equal as possible” or “criteria for classifying so that the number of significant samples included in each range is as equal as possible” is adopted. Specific classification methods based on these criteria will be described in detail later.

実施形態の詳細を以下に説明する。   Details of the embodiment will be described below.

《第1実施形態》
第1実施形態の符号化装置1(図2参照)は、正規化信号符号化部120、グローバルゲイン符号化部105、ゲイン補正量符号化部140、区分部150、制御部170、誤差符号化部150及び加算部190を含む。符号化装置1は、必要に応じて、周波数領域変換部101と合成部160を含んでもよい。
<< First Embodiment >>
The encoding apparatus 1 (see FIG. 2) according to the first embodiment includes a normalized signal encoding unit 120, a global gain encoding unit 105, a gain correction amount encoding unit 140, a sorting unit 150, a control unit 170, and error encoding. Part 150 and adding part 190. The encoding device 1 may include a frequency domain transform unit 101 and a synthesis unit 160 as necessary.

まず、符号化装置1(encoder)が行う符号化処理を説明する(図3参照)。   First, an encoding process performed by the encoding device 1 (encoder) will be described (see FIG. 3).

ここでは、符号化装置1の入力信号系列は、フレーム単位の音響信号x(n)に対応するL点(Lは、正整数で例えば256である)の周波数成分である入力信号系列X(ω) [ω∈{Lmin,…,Lmax}]であるとして説明する。ここで、nは離散時間のインデックス、ωは離散周波数のインデックス、LminはL点の周波数成分のうちの最小の離散周波数のインデックス、LmaxはL点の周波数成分のうちの最大の離散周波数のインデックス、を表す。ただし、フレーム単位の音響信号x(n)そのものを符号化装置1の入力信号系列としてもよいし、フレーム単位の音響信号x(n)に対して線形予測分析をした残差信号を符号化装置1の入力信号系列としてもよいし、その残差信号に対応するL点(Lは、正整数で例えば256である)の周波数成分を入力信号系列としてもよい。 Here, the input signal sequence of the encoding device 1 is an input signal sequence X (ω that is a frequency component of L points (L is a positive integer, for example, 256) corresponding to the acoustic signal x (n) in units of frames. ) [Ω∈ {L min ,..., L max }] Here, n is an index of discrete time, ω is an index of discrete frequency, L min is an index of minimum discrete frequency among frequency components at L point, and L max is a maximum discrete frequency among frequency components at L point. Represents the index. However, the acoustic signal x (n) in units of frames may be used as the input signal sequence of the encoding device 1, or a residual signal obtained by performing linear prediction analysis on the acoustic signal x (n) in units of frames is encoded. 1 may be used as the input signal sequence, or a frequency component at L point (L is a positive integer, for example, 256) corresponding to the residual signal may be used as the input signal sequence.

<周波数領域変換部101>
符号化装置1は、符号化装置1の前処理部として、または符号化装置1内に、周波数領域変換部101を備えてもよい。この場合は、周波数領域変換部101がフレーム単位の時間領域の音響信号x(n)に対応するL点(Lは、正整数で例えば256である)の周波数成分を生成して入力信号系列X(ω) [ω∈{Lmin,…,Lmax}]として出力する。時間−周波数変換方法として、例えばMDCT(Modified Discrete Cosine Transform)やDCT(Discrete Cosine Transform)を用いることができる。この場合も、フレーム単位の時間領域の音響信号に代えて、フレーム単位の時間領域の音響信号を線形予測分析して得られる残差信号をx(n)としてもよい。
<Frequency domain conversion unit 101>
The encoding device 1 may include a frequency domain transform unit 101 as a preprocessing unit of the encoding device 1 or in the encoding device 1. In this case, the frequency domain transform unit 101 generates a frequency component of L points (L is a positive integer, for example, 256) corresponding to the acoustic signal x (n) in the time domain in units of frames, and the input signal sequence X (ω) [ω∈ {L min ,..., L max }] As the time-frequency conversion method, for example, MDCT (Modified Discrete Cosine Transform) or DCT (Discrete Cosine Transform) can be used. In this case as well, instead of the time domain acoustic signal in units of frames, a residual signal obtained by linear prediction analysis of the time domain acoustic signals in units of frames may be x (n).

<正規化信号符号化部120>
正規化信号符号化部120は、フレーム単位の入力信号系列X(ω) [ω∈{Lmin,…,Lmax}]の各成分が正規化された信号による系列(正規化済み信号系列XQ(ω) [ω∈{Lmin,…,Lmax}])を符号化して得られる正規化信号符号と、この正規化信号符号に対応する量子化正規化済み信号系列X^Q(ω) [ω∈{Lmin,…,Lmax}]を出力する(ステップS1e)。
<Normalized signal encoding unit 120>
The normalized signal encoding unit 120 includes a sequence (normalized signal sequence X) of signals obtained by normalizing each component of the input signal sequence X (ω) [ω∈ {L min ,..., L max }] in units of frames. Q (ω) [ω∈ {L min ,..., L max }]) is encoded, and a normalized normalized signal sequence X ^ Q (ω corresponding to the normalized signal code is obtained. ) [Ω∈ {L min ,..., L max }] is output (step S1e).

正規化信号符号化部120から、余剰ビットの数Uが得られる場合には、得られた余剰ビットの数Uは、制御部170に送信される。   When the number U of surplus bits is obtained from the normalized signal encoding unit 120, the obtained number U of surplus bits is transmitted to the control unit 170.

正規化信号符号化部120は、例えば、図1の正規化部102、量子化部103、ゲイン制御部104により実現される。正規化部102、量子化部103、ゲイン制御部104のそれぞれは、[背景技術]欄で説明した通りに動作する。   The normalized signal encoding unit 120 is realized by, for example, the normalization unit 102, the quantization unit 103, and the gain control unit 104 in FIG. Each of the normalization unit 102, the quantization unit 103, and the gain control unit 104 operates as described in the [Background Art] column.

<グローバルゲイン符号化部105>
グローバルゲイン符号化部105が、入力信号系列X(ω) [ω∈{Lmin,…,Lmax}]に対応するゲインである量子化グローバルゲインg^と、量子化グローバルゲインg^に対応するグローバルゲイン符号とを得る(ステップS2e)。また、グローバルゲイン符号化部105は、必要に応じて量子化グローバルゲインg^に対応する量子化ステップ幅も得る。
<Global Gain Encoding Unit 105>
The global gain encoding unit 105 supports a quantized global gain g ^ that is a gain corresponding to the input signal sequence X (ω) [ω∈ {L min ,..., L max }] and a quantized global gain g ^. The global gain code to be obtained is obtained (step S2e). The global gain encoding unit 105 also obtains a quantization step width corresponding to the quantized global gain g ^ as necessary.

グローバルゲイン符号化部105は、例えば、[背景技術]欄で説明した通りに動作する。   The global gain encoding unit 105 operates, for example, as described in the “Background art” column.

また、例えば、グローバルゲイン符号化部105は、量子化グローバルゲインの候補とその候補に対応するグローバルゲイン符号の組を複数組格納したテーブルを備え、正規化信号符号化部120で得られたグローバルゲインgと最も近い量子化グローバルゲインの候補を量子化グローバルゲインg^とし、その候補に対応するグローバルゲイン符号を出力してもよい。   In addition, for example, the global gain encoding unit 105 includes a table storing a plurality of sets of quantized global gain candidates and global gain codes corresponding to the candidates, and the global gain obtained by the normalized signal encoding unit 120 The candidate for the quantized global gain closest to the gain g may be set as the quantized global gain g ^, and the global gain code corresponding to the candidate may be output.

要は、グローバルゲイン符号化部105は、量子化正規化済み信号系列X^Q(ω) [ω∈{Lmin,…,Lmax}]の各成分とゲインとを乗算して得られる信号系列と入力信号系列X(ω) [ω∈{Lmin,…,Lmax}]との相関が最大または誤差が最小となるような基準で求められた量子化グローバルゲインg^とこの量子化グローバルゲインに対応するグローバルゲイン符号を求めて出力すればよい。 In short, the global gain coding unit 105 multiplies each component of the quantized normalized signal sequence X ^ Q (ω) [ω∈ {L min ,..., L max }] and the gain and obtains a signal. Quantized global gain g ^ obtained on the basis of the maximum correlation or minimum error between the sequence and the input signal sequence X (ω) [ω∈ {L min ,..., L max }] and this quantization A global gain code corresponding to the global gain may be obtained and output.

なお、ゲイン補正量符号化部140が量子化グローバルゲインg^に対応する量子化ステップ幅を用いた処理を行う場合は、量子化グローバルゲインg^に対応する量子化ステップ幅もゲイン補正量符号化部140に対して出力される。   When the gain correction amount encoding unit 140 performs processing using the quantization step width corresponding to the quantized global gain 量子, the quantization step width corresponding to the quantized global gain ^ is also the gain correction amount code. Is output to the conversion unit 140.

<制御部170>
制御部170は、量子化正規化済み信号系列X^Q(ω) [ω∈{Lmin,…,Lmax}]のサンプルの値の大きさが所定の値よりも大きいサンプルの個数に応じて、ゲイン補正量符号を生成する処理及び誤差符号を生成する処理の一方の処理を他方の処理よりも優先的に行わせる(ステップS3e)。所定の値とは、例えば0である。どちらの処理を優先的に行うかについての情報である優先情報(例えば、後述するUXQ,Ug)は、誤差符号化部180及びゲイン補正量符号化部140に送信される。
<Control unit 170>
The control unit 170 responds to the number of samples in which the value of the sample of the quantized normalized signal sequence X ^ Q (ω) [ω∈ {L min ,..., L max }] is larger than a predetermined value. Thus, one of the process of generating the gain correction amount code and the process of generating the error code is preferentially performed over the other process (step S3e). The predetermined value is 0, for example. Priority information (for example, U XQ , U g , which will be described later), which is information regarding which process is preferentially performed, is transmitted to the error encoding unit 180 and the gain correction amount encoding unit 140.

誤差符号は、一例として、後述するように、入力信号系列X(ω) [ω∈{Lmin,…,Lmax}]の各サンプル値を量子化グローバルゲインg^で除算して得られる信号系列と量子化正規化済み信号系列X^Q(ω) [ω∈{Lmin,…,Lmax}]との誤差に対応する符号である。この例では、誤差符号を生成する処理とは、後述する誤差符号化部180によるステップS4eの処理のことである。 As an example, the error code is a signal obtained by dividing each sample value of the input signal sequence X (ω) [ω∈ {L min ,..., L max }] by the quantized global gain g ^ as described later. This is a code corresponding to an error between the sequence and the quantized normalized signal sequence X ^ Q (ω) [ω∈ {L min ,..., L max }]. In this example, the process of generating an error code is the process of step S4e by an error encoding unit 180 described later.

この例では、ゲイン補正量符号は、後述するように、量子化グローバルゲインg^をゲイン補正量で補正して得られるゲインを量子化正規化済み信号系列を修正して得られる修正後量子化正規化済み信号系列X^’Q(ω) [ω∈{Lmin,…,Lmax}]の各サンプルの値に乗算して得られる信号系列と入力信号系列X(ω) [ω∈{Lmin,…,Lmax}]との誤差が最小となるゲイン補正量を特定するための符号である。この例では、ゲイン補正量符号を生成する処理とは、後述する区分部150及びゲイン補正量符号化部140によるステップS6e,S7eの処理のことである。なお、量子化正規化済み信号系列X^Q(ω) [ω∈{Lmin,…,Lmax}]を修正して修正後量子化正規化済み信号系列X^’Q(ω) [ω∈{Lmin,…,Lmax}]を得る処理は、後述する加算部190によるステップS5eの処理である。 In this example, as will be described later, the gain correction amount code is a corrected quantization obtained by correcting a quantized normalized signal sequence with a gain obtained by correcting the quantized global gain g ^ with a gain correction amount. The signal sequence obtained by multiplying the value of each sample of the normalized signal sequence X ^ ′ Q (ω) [ω∈ {L min ,..., L max }] and the input signal series X (ω) [ω∈ { L min ,..., L max }] is a code for specifying a gain correction amount that minimizes an error. In this example, the process of generating the gain correction amount code is the process of steps S6e and S7e by the sorting unit 150 and the gain correction amount encoding unit 140 described later. Note that the quantized normalized signal sequence X ^ Q (ω) [ω∈ {L min ,..., L max }] is modified to provide a corrected quantized normalized signal sequence X ^ ′ Q (ω) [ω The process of obtaining ε {L min ,..., L max }] is the process of step S5e by the adder 190 described later.

なお、別の例として、ゲイン補正量符号は、量子化グローバルゲインg^を量子化正規化済み信号系列X^Q(ω) [ω∈{Lmin,…,Lmax}]の各サンプルの値に乗算して得られる信号系列と入力信号系列X(ω) [ω∈{Lmin,…,Lmax}]との誤差が最小となるゲイン補正量を特定するための符号としてもよい。この例では、ゲイン補正量符号を生成する処理とは、後述する区分部150及びゲイン補正量符号化部140によるステップS6e,S7eの「修正後量子化正規化済み信号系列X^’Q(ω)」を「量子化正規化済み信号系列X^Q(ω)」に置き換えた処理のことである。 As another example, the gain correction amount code is the quantized global gain g ^ for each sample of the quantized normalized signal sequence X ^ Q (ω) [ω∈ {L min , ..., L max }]. A code for specifying a gain correction amount that minimizes an error between the signal sequence obtained by multiplying the value and the input signal sequence X (ω) [ω∈ {L min ,..., L max }] may be used. In this example, the process of generating the gain correction amount code is the “modified post-correction normalized signal sequence X ^ ′ Q (ω in steps S6e and S7e by the segmentation unit 150 and the gain correction amount encoding unit 140 described later. ) ”Is replaced with“ quantized normalized signal sequence X ^ Q (ω) ”.

この例では、誤差符号は、入力信号系列X(ω) [ω∈{Lmin,…,Lmax}]の各サンプル値を量子化グローバルゲインg^をゲイン補正量で補正して得られるゲインで除算して得られる信号系列と量子化正規化済み信号系列X^Q(ω) [ω∈{Lmin,…,Lmax}]との誤差に対応する符号としてもよい。この例では、誤差符号を生成する処理とは、後述する誤差符号化部180によるステップS4eの「量子化グローバルゲインg^」を「量子化グローバルゲインg^をゲイン補正量で補正して得られるゲイン」に置き換えた処理のことである。 In this example, the error code is a gain obtained by correcting each sample value of the input signal sequence X (ω) [ω∈ {L min ,..., L max }] with a quantized global gain g ^ using a gain correction amount. May be a code corresponding to an error between the signal sequence obtained by dividing by and the quantized normalized signal sequence X ^ Q (ω) [ω∈ {L min ,..., L max }]. In this example, the process for generating the error code is obtained by correcting “quantized global gain g ^” in step S4e by “error quantizing unit 180, which will be described later”, with “quantized global gain g ^ being corrected by the gain correction amount. It is the processing replaced with “Gain”.

量子化正規化済み信号系列X^Q(ω) [ω∈{Lmin,…,Lmax}]のサンプルの値の大きさが所定の値よりも大きいサンプルの個数とは、いわゆる量子化正規化済み信号系列X^Q(ω) [ω∈{Lmin,…,Lmax}]の非ゼロのサンプルの個数のことである。量子化正規化済み信号系列X^Q(ω) [ω∈{Lmin,…,Lmax}]の非ゼロのサンプルのことを、非ゼロ係数とも呼ぶ。 The number of samples in which the value of the sample of the quantized normalized signal sequence X ^ Q (ω) [ω∈ {L min ,..., L max }] is larger than a predetermined value is a so-called quantization normal. This is the number of non-zero samples of the digitized signal sequence X ^ Q (ω) [ω∈ {L min ,..., L max }]. A non-zero sample of the quantized normalized signal sequence X ^ Q (ω) [ω∈ {L min ,..., L max }] is also referred to as a non-zero coefficient.

以下、図26を用いて、制御部170の処理の一例を説明する。   Hereinafter, an example of processing of the control unit 170 will be described with reference to FIG.

図26の例では、制御部170は、ω=Lminとし、count=0として、変数ω及び変数countを初期化する(ステップS3e1)。 In the example of FIG. 26, the control unit 170 sets ω = L min and count = 0, and initializes the variable ω and the variable count (step S3e1).

制御部170は、ωがLmax以下であるか判定する(ステップS3e2)。ωがLmax以下であれば、ステップS3e3に進む。ωがLmax以下でなければ、ステップS3e6に進む。 The controller 170 determines whether ω is equal to or less than L max (step S3e2). If ω is equal to or less than L max , the process proceeds to step S3e3. If ω is not less than or equal to L max , the process proceeds to step S3e6.

制御部170は、X^Q(ω)の値が所定の値αg^よりも大きいか判定する(ステップS3e3)。αは所定の0以上の実数である。例えば、α=0である。図26の例では、|X^Q(ω)|2の値がαg^よりも大きいか判定することにより、X^Q(ω)の大きさが所定の値αg^よりも大きいか判定している。もちろん、これは一例に過ぎず、X^Q(ω)の大きさが所定の値αg^よりも大きいか判定することができれば、他の判定手法を用いてもよい。 The controller 170 determines whether the value of X ^ Q (ω) is larger than a predetermined value αg ^ (step S3e3). α is a predetermined real number of 0 or more. For example, α = 0. In the example of FIG. 26, it is determined whether the value of X ^ Q (ω) is larger than a predetermined value αg ^ by determining whether the value of | X ^ Q (ω) | 2 is larger than αg ^. ing. Of course, this is only an example, and other determination methods may be used as long as it can be determined whether the magnitude of X ^ Q (ω) is larger than a predetermined value αg ^.

|X^Q(ω)|2の値がαg^よりも大であれば、制御部170は、変数countを1だけインクリメントし(ステップS3e4)、変数ωを1だけインクリメントする(ステップS3e5)。その後、ステップS3e1に戻る。 If the value of | X ^ Q (ω) | 2 is larger than αg ^, the control unit 170 increments the variable count by 1 (step S3e4) and increments the variable ω by 1 (step S3e5). Then, it returns to step S3e1.

|X^Q(ω)|2の値がαg^よりも大でなければ、制御部170は、変数ωを1だけインクリメントする(ステップS3e5)。その後、ステップS3e1に戻る。 If the value of | X ^ Q (ω) | 2 is not larger than αg ^, the control unit 170 increments the variable ω by 1 (step S3e5). Then, it returns to step S3e1.

例えばこのようにして、制御部170は、量子化正規化済み信号系列X^Q(ω) [ω∈{Lmin,…,Lmax}]のサンプルの値の大きさが所定の値よりも大きいサンプルの個数をまずカウントする。 For example, in this way, the control unit 170 determines that the magnitude of the sample value of the quantized normalized signal sequence X ^ Q (ω) [ω∈ {L min ,..., L max }] is larger than a predetermined value. First count the number of large samples.

制御部170は、変数countがThよりも大きいか判定する(ステップS3e6)。ThはL点以下の所定の正の整数である。   The control unit 170 determines whether the variable count is larger than Th (step S3e6). Th is a predetermined positive integer equal to or less than the L point.

変数countがThよりも大きければ、制御部170は、ゲイン修正ビットに、Uビットの余剰ビットのうち所定の数のビットを割り当てる(ステップS3e7)。例えば、Uyesを所定の数として、Ug=min(Uyes,U)とする。minは、最小値を選択する関数である。したがって、UgはUyesとUのどちらか小さい方の値になる。Uyesは、例えば6である。その後、制御部170は、ビットが余っているか、言い換えればU-Ugが0より大であるか判定する(ステップS3e9)。ビットが余っていれば、制御部170は、誤差表現ビットに余ったビットを割り当てる(ステップS3e10)。例えば、UXQ=U-Ugとする。ビットが余っていなければ、ステップS3eの処理を終える。 If the variable count is larger than Th, the control unit 170 assigns a predetermined number of bits among the U-bit surplus bits to the gain correction bits (step S3e7). For example, U yes is a predetermined number, and U g = min (U yes , U). min is a function for selecting the minimum value. Therefore, U g is the smaller of U yes and U. U yes is 6, for example. Thereafter, the control unit 170 determines whether there are extra bits, in other words, whether UU g is greater than 0 (step S3e9). If there are more bits, the control unit 170 assigns the remaining bits to the error expression bits (step S3e10). For example, U XQ = UU g . If there are no more bits, the process in step S3e ends.

なお、C1を0.75等の所定の定数とし、floorを床関数として、Uyes=floor(C1U)としてもよい。また、C2を0.25等の所定の定数とし、ceilを天井関数として、Uyes=ceil(C1U)としてもよい。 Note that C 1 may be a predetermined constant such as 0.75, floor may be a floor function, and U yes = floor (C 1 U). Also, the C 2 to a predetermined constant such as 0.25, the ceil as a ceiling function may be U yes = ceil (C 1 U ).

変数countがThよりも大きくなければ、制御部170は、誤差表現ビットに、Uビットの余剰ビットのうち所定の数のビットを割り当てる(ステップS3e7)。例えば、UnoをUとして、UXQ=min(Uno,U)とする。その後、制御部170は、ビットが余っているか、言い換えればU-UXQが0より大であるか判定する(ステップS3e11)。ビットが余っていれば、制御部170は、ゲイン修正ビットに余ったビットを割り当てる(ステップS3e12)。例えば、Ug=U-UXQとする。ビットが余っていなければ、ステップS3eの処理を終える。なお、Unoは、U以外の所定の値であってもよい。 If the variable count is not greater than Th, the control unit 170 assigns a predetermined number of bits among the U-bit surplus bits to the error expression bits (step S3e7). For example, let U no be U and U XQ = min (U no , U). Thereafter, the control unit 170 determines whether there are extra bits, in other words, whether UU XQ is greater than 0 (step S3e11). If there are more bits, the controller 170 assigns the remaining bits to the gain correction bits (step S3e12). For example, U g = UU XQ . If there are no more bits, the process in step S3e ends. U no may be a predetermined value other than U.

UXQは誤差符号化部180に送信され、Ugはゲイン補正量符号化部140に送信される。 U XQ is transmitted to the error encoding unit 180, and U g is transmitted to the gain correction amount encoding unit 140.

このようにして、制御部170は、優先的に行われるステップで生成される符号に対して余剰ビットのうち所定の数のビットを割り当て、優先的に行われないステップで生成される符号に余剰ビットのうち上記割り当てたビット以外のビットを割り当てる。これにより、効率的な量子化誤差を修正が可能となる。   In this way, the control unit 170 allocates a predetermined number of bits among the surplus bits to the code generated in the step that is preferentially performed, and the surplus is added to the code generated in the step that is not preferentially performed. Of the bits, bits other than the assigned bits are assigned. Thereby, an efficient quantization error can be corrected.

量子化正規化済み信号系列X^Q(ω) [ω∈{Lmin,…,Lmax}]の非ゼロのサンプルの数が少ない場合には、量子化グローバルゲインg^の補正による量子化精度の改善への寄与度は小さい。量子化グローバルゲインg^の補正により影響を受ける量子化正規化済み信号系列X^Q(ω) [ω∈{Lmin,…,Lmax}]のサンプルの数自体が少ないからである。しがって、量子化正規化済み信号系列X^Q(ω) [ω∈{Lmin,…,Lmax}]の非ゼロのサンプルの数が少ない場合には、ゲイン補正量符号を生成する処理よりも、誤差符号を生成する処理を優先させた方が、量子化精度の改善への寄与度は大きい。 If the number of non-zero samples of the quantized normalized signal sequence X ^ Q (ω) [ω∈ {L min , ..., L max }] is small, quantization by correcting the quantized global gain g ^ The contribution to accuracy improvement is small. This is because the number of samples of the quantized normalized signal sequence X ^ Q (ω) [ω∈ {L min ,..., L max }] affected by the correction of the quantized global gain g ^ is small. Therefore, when the number of non-zero samples of the quantized normalized signal sequence X ^ Q (ω) [ω∈ {L min , ..., L max }] is small, a gain correction amount code is generated. Giving priority to the process of generating an error code over the process of making a greater contribution to the improvement of quantization accuracy.

<誤差符号化部180>
誤差符号化部180は、UXQビットの誤差符号ビットを用いて、量子化正規化済み信号系列X^Q(ω) [ω∈{Lmin,…,Lmax}]を修正するための誤差符号とこの誤差符号に対応する復号量子化誤差q(ω)とを生成する(ステップS4e)。
<Error encoding unit 180>
The error encoding unit 180 uses the error code bit of U XQ bits to correct an error for correcting the quantized normalized signal sequence X ^ Q (ω) [ω∈ {L min ,..., L max }]. A code and a decoded quantization error q (ω) corresponding to the error code are generated (step S4e).

入力信号系列X(ω) [ω∈{Lmin,…,Lmax}]と、量子化グローバルゲインg^と、量子化正規化済み信号系列X^Q(ω) [ω∈{Lmin,…,Lmax}]とが、誤差符号化部180の入力となる。 The input signal sequence X (ω) [ω∈ {L min ,..., L max }], the quantized global gain g ^, and the quantized normalized signal series X ^ Q (ω) [ω∈ {L min , .., L max }] is input to the error encoding unit 180.

まず、誤差符号化部180は、量子化誤差r(ω)=X(ω)/g^-X^Q(ω)[ω∈{Lmin,…,Lmax}]を計算する。 First, the error encoding unit 180 calculates a quantization error r (ω) = X (ω) / g ^ −X ^ Q (ω) [ω∈ {L min ,..., L max }].

量子化誤差r(ω)は、量子化による四捨五入での誤差であるので、-0.5から+0.5までにほぼ均等に分布する。任意のビット数ですべてのサンプルを符号化するために、誤差表現ビットによって符号化方法、対象とするサンプルの位置の規則を決めておく。   Since the quantization error r (ω) is a rounding error due to quantization, it is distributed almost uniformly from −0.5 to +0.5. In order to encode all samples with an arbitrary number of bits, the encoding method and the rule of the position of the target sample are determined by the error expression bits.

次に、誤差符号化部180は、量子化誤差r(ω)の列を誤差表現ビット数で符号化し、得られた誤差符号とこの誤差符号に対応する復号量子化誤差q(ω)とを出力する(ステップS4e)。この誤差符号は、合成部160に送信される。また、誤差符号化部180は、復号量子化誤差q(ω)を、加算部190に送信する。   Next, the error encoding unit 180 encodes the sequence of quantization errors r (ω) with the number of error expression bits, and obtains the obtained error code and the decoded quantization error q (ω) corresponding to the error code. Output (step S4e). This error code is transmitted to the synthesis unit 160. In addition, error encoding section 180 transmits decoded quantization error q (ω) to adding section 190.

<誤差符号化の具体例1>
量子化誤差の値を符号化する際に、複数のサンプルをまとめてベクトル量子化を行ってもよい。ただし、一般にテーブル(符号帳)中に符号系列を蓄積し、入力と符号系列の距離計算が必要で、メモリ量と演算量が多くなる。また任意のビット数に対応するために個別の符号帳が必要になるなど、構成が煩雑になる。
<Specific example 1 of error encoding>
When the quantization error value is encoded, a plurality of samples may be collected and vector quantization may be performed. However, generally, a code sequence is stored in a table (codebook), and a distance calculation between the input and the code sequence is necessary, which increases the amount of memory and the amount of calculation. Also, the configuration becomes complicated, for example, an individual codebook is required to cope with an arbitrary number of bits.

具体例1の動作は下記の通りである。   The operation of specific example 1 is as follows.

誤差符号化部180内の符号帳記憶部に、誤差表現ビット数の取り得る値ごとの符号帳を予め格納しておく。各符号帳には、その各符号帳に対応する誤差表現ビット数で表現可能な個数の量子化誤差の系列と同じサンプル数のベクトルと、そのベクトルに対応する符号とが対応付けて予め格納されている。   A code book for each possible value of the error expression bit number is stored in advance in the code book storage unit in the error coding unit 180. Each codebook stores in advance a vector having the same number of samples as the number of quantization error sequences that can be expressed by the number of error expression bits corresponding to each codebook, and a code corresponding to the vector. ing.

誤差符号化部180は、制御部170が決定した誤差表現ビット数に対応する符号帳を符号帳記憶部に格納された符号帳から選択し、選択された符号帳を用いてベクトル量子化を行なう。符号帳を選択した後の符号化処理は一般的なベクトル量子化と同じである。すなわち、選択された符号帳の各ベクトルと入力された量子化誤差の系列との距離が最小となるか、それらの相関が最大となるベクトルを復号量子化誤差q(ω)の系列として出力するとともに、このベクトルに対応する符号を誤差符号として出力する。   Error coding section 180 selects a codebook corresponding to the number of error expression bits determined by control section 170 from the codebook stored in the codebook storage section, and performs vector quantization using the selected codebook. . The encoding process after selecting a codebook is the same as general vector quantization. That is, a vector that minimizes the distance between each vector of the selected codebook and the input quantization error sequence or maximizes the correlation between them is output as a sequence of decoded quantization error q (ω) At the same time, a code corresponding to this vector is output as an error code.

なお、上記の説明では、符号帳に格納されるベクトルは、量子化誤差の系列と同じサンプル数としたが、符号帳に格納されるベクトルのサンプル数を量子化誤差の系列の整数分の1とし、量子化誤差の系列を複数の部分毎にベクトル量子化し、得られる複数の符号を誤差符号とし、各符号に対応するベクトルを部分毎の復号量子化誤差q(ω)の系列としても良い。   In the above description, the vector stored in the codebook has the same number of samples as the quantization error sequence, but the number of vector samples stored in the codebook is 1 / integer of the quantization error sequence. The quantization error sequence may be vector quantized for each of a plurality of portions, and the obtained plurality of codes may be error codes, and the vector corresponding to each code may be a sequence of the decoded quantization error q (ω) for each portion. .

<誤差符号化部180の具体例2>
量子化誤差列に含まれる量子化誤差を1サンプルずつ符号化する場合には、量子化誤差列に含まれる量子化誤差サンプルについての優先順位をきめて、優先順位の高い量子化誤差サンプルから誤差表現ビット数で符号化可能なもののみを符号化する。例えば、量子化誤差の絶対値又はエネルギーが大きい量子化誤差サンプルから優先的に符号化する。
<Specific Example 2 of Error Encoding Unit 180>
When encoding the quantization error included in the quantization error sequence one sample at a time, the priority order of the quantization error samples included in the quantization error sequence is determined, and the error from the quantization error sample having the higher priority is determined. Only those that can be encoded with the number of expression bits are encoded. For example, encoding is performed preferentially from quantization error samples having a large absolute value or energy of quantization error.

優先順位を決める際に例えばパワースペクトル包絡値を参考にすることができる。もちろん、パワースペクトル包絡値と同様に、パワースペクトル包絡値の概算値、パワースペクトル包絡値の推定値、これらの何れかの値を周波数方向で平滑化した値、これらの何れかの値の複数サンプルについての平均値、これらの値の少なくとも何れか1つと大小関係が同一となる値を参考にすることもできるが、以下ではパワースペクトル包絡値を用いる場合についてのみ説明する。入力信号系列X(ω)が非常に小さい値である場合、すなわちステップ幅の1/2より小さい値である場合には入力信号系列X(ω) を量子化グローバルゲインg^で割り算した結果は0で、量子化誤差r(ω)も0.5より大幅に小さい。すなわち、パワースペクトル包絡値がある程度小さい場合には、入力信号系列X(ω)の他に量子化誤差r(ω)の符号化をしたところで聴覚品質への影響は小さいので、誤差符号化部180での符号化対象から除外してもよい。パワースペクトル包絡値がある程度大きい場合にはどのサンプルの量子化誤差が大きいかはわからないので、例えばもとのサンプルの周波数軸上での位置の小さい順(周波数が低い順)、又は、パワースペクトル包絡値の大きい順に誤差表現ビット分だけ、量子化誤差のサンプルr(ω)の符号化を各1ビットで行う。また、パワースペクトル包絡値が一定以下の場合を除外するだけでもよい。   When determining the priority order, for example, the power spectrum envelope value can be referred to. Of course, as with the power spectrum envelope value, an approximate value of the power spectrum envelope value, an estimated value of the power spectrum envelope value, a value obtained by smoothing any of these values in the frequency direction, and a plurality of samples of any of these values Although an average value of the above and a value having the same magnitude relationship as at least one of these values can be referred to, only the case where the power spectrum envelope value is used will be described below. When the input signal sequence X (ω) is a very small value, that is, when the input signal sequence X (ω) is less than half the step width, the result of dividing the input signal sequence X (ω) by the quantized global gain g ^ is At 0, the quantization error r (ω) is also much smaller than 0.5. That is, when the power spectrum envelope value is small to some extent, the effect on the auditory quality is small when the quantization error r (ω) is encoded in addition to the input signal sequence X (ω). May be excluded from the encoding target. If the power spectrum envelope value is large to some extent, it is not known which quantization error of the sample is large. For example, the order of the position of the original sample on the frequency axis in ascending order (in order of decreasing frequency) or the power spectrum envelope The quantization error sample r (ω) is encoded by 1 bit for each error expression bit in descending order. Moreover, it is sufficient to exclude the case where the power spectrum envelope value is below a certain level.

なお、パワースペクトル包絡値として、量子化部103の内部で計算される正規化済みパワースペクトル包絡値を、グローバルゲイン符号化部105より求めた量子化グローバルゲインg^を用いて逆正規化した値を用いることができる。もちろん、それ以外の方法で求めた値でもよい。例えば、パワースペクトル包絡値は、入力された時間領域の音響信号x(n)を線形予測分析して得られた線形予測係数を量子化した量子化線形予測係数のパワースペクトルを表す値であってもよい。この場合、量子化線形予測係数の符号が復号装置2に送信される。   Note that, as the power spectrum envelope value, a value obtained by denormalizing the normalized power spectrum envelope value calculated inside the quantization unit 103 using the quantized global gain g ^ obtained from the global gain encoding unit 105 Can be used. Of course, values obtained by other methods may be used. For example, the power spectrum envelope value is a value representing a power spectrum of a quantized linear prediction coefficient obtained by quantizing a linear prediction coefficient obtained by linear prediction analysis of an input time domain acoustic signal x (n). Also good. In this case, the code of the quantized linear prediction coefficient is transmitted to the decoding device 2.

正規化済みパワースペクトル包絡値は、正規化済み信号系列XQ(ω)の概形を表すパラメータである。一般的には、量子化部103において、量子化効率の観点から、正規化済み信号系列XQ(ω)を概形(正規化済みパワースペクトル包絡値)と微細構造とに分け、それぞれのパラメータが符号化される。量子化部103が出力する正規化信号符号には、これらの符号化されたそれぞれのパラメータが含まれる。正規化済みパワースペクトル包絡値は、正規化済み入力信号系列XQ(ω)を8や16等の所定の正の整数であるサブバンド数で分割し、それぞれのサブバンドのエネルギーより算出される。 The normalized power spectrum envelope value is a parameter that represents the outline of the normalized signal sequence X Q (ω). In general, the quantizing unit 103 divides the normalized signal sequence X Q (ω) into a rough shape (normalized power spectrum envelope value) and a fine structure from the viewpoint of quantization efficiency, and sets each parameter. Are encoded. The normalized signal code output from the quantization unit 103 includes these encoded parameters. The normalized power spectrum envelope value is calculated from the energy of each subband by dividing the normalized input signal sequence X Q (ω) by the number of subbands that are predetermined positive integers such as 8 and 16. .

量子化誤差系列を符号化するにあたって、ある量子化誤差サンプルの値r(ω)=xとして、その量子化による歪をE=∫0 0.5f(x)(x-μ)2dxとする。ここでf(x)は確率分布関数、μは再構成値の絶対値である。量子化による歪Eを最小化するためには、dE/dμ=0とするようにμを決めればよい。すなわち、μは量子化誤差r(ω)の確率分布の重心点とすればよい。 In encoding a quantization error sequence, a value r (ω) = x of a certain quantization error sample is set, and distortion due to the quantization is E = ∫ 0 0.5 f (x) (x−μ) 2 dx. Here, f (x) is a probability distribution function, and μ is an absolute value of the reconstruction value. In order to minimize the distortion E due to quantization, μ may be determined so that dE / dμ = 0. That is, μ may be the center of gravity of the probability distribution of the quantization error r (ω).

量子化正規化済み信号系列X^Q(ω)を量子化グローバルゲインg^で割り算して四捨五入した結果、すなわち対応する量子化正規化済み信号系列X^Q(ω)の値が0でないなら、量子化誤差r(ω)の分布はほぼ均一であり、μ=0.25とできる。 If the quantized normalized signal sequence X ^ Q (ω) is divided by the quantized global gain g ^ and rounded, that is, if the corresponding quantized normalized signal sequence X ^ Q (ω) is not zero The distribution of the quantization error r (ω) is almost uniform, and μ = 0.25.

量子化正規化済み信号系列X^Q(ω)を量子化グローバルゲインg^で割り算して四捨五入した結果、すなわち対応する量子化正規化済み信号系列X^Q(ω)の値が0なら、量子化誤差r(ω)の分布は0に集中する傾向があるので、その分布の重心をμの値として使う必要がある。 If the quantized normalized signal sequence X ^ Q (ω) is divided by the quantized global gain g ^ and rounded, that is, if the corresponding quantized normalized signal sequence X ^ Q (ω) is zero, Since the distribution of the quantization error r (ω) tends to concentrate on 0, it is necessary to use the center of gravity of the distribution as the value of μ.

この場合、対応する量子化正規化済み信号系列X^Q(ω)の値が0ではない複数の量子化誤差サンプルごとに、符号化の対象とする量子化誤差サンプルを選択して、その選択された量子化誤差サンプルの複数の量子化誤差サンプルにおける位置と、その選択された量子化誤差サンプルの値とを符号化して誤差符号として復号装置2に送信してもよい。例えば、対応する量子化正規化済み信号系列X^Q(ω)の値が0ではない4個の量子化誤差サンプルのうち、値の絶対値が最も大きい量子化誤差サンプルを選択し、その選択された量子化誤差サンプルの値を量子化(例えば+か−かを決定)してその情報を1ビットで送るとともに、その選択された量子化誤差サンプルの位置を2ビットで送る。選択された量子化誤差サンプルの復号値は、μに+か−を与えた値とする。選択されなかった量子化誤差サンプルは符号が復号装置2に送られないので、復号値は0とする。一般に、2q個のサンプルの何れの位置のサンプルを選択したかを復号装置に伝えるためにはqビット必要である。 In this case, for each of a plurality of quantization error samples whose corresponding quantized normalized signal sequence X ^ Q (ω) is not 0, a quantization error sample to be encoded is selected and selected. The position of the quantized error sample in the plurality of quantized error samples and the value of the selected quantized error sample may be encoded and transmitted to the decoding device 2 as an error code. For example, select the quantization error sample with the largest absolute value among the four quantization error samples whose corresponding quantized normalized signal sequence X ^ Q (ω) is not 0, and select The quantized error sample value is quantized (for example, whether it is + or-) and the information is sent in 1 bit, and the position of the selected quantization error sample is sent in 2 bits. The decoded value of the selected quantization error sample is a value obtained by adding + or − to μ. Since the quantization error sample that has not been selected is not sent to the decoding device 2, the decoded value is set to zero. In general, q bits are required to inform the decoding device of which position of 2 q samples is selected.

この際のμは、複数サンプル単位で量子化誤差の値の絶対値が最も大きいサンプルだけの分布の重心の値を使えばよい。   At this time, the value of the center of gravity of the distribution of only the sample having the largest absolute value of the quantization error value may be used as μ.

誤差表現ビット数をUXQ、量子化誤差列を構成する量子化誤差サンプルの個数のうち、対応する量子化正規化済み信号系列X^Q(ω)の値が0でないものの量子化誤差サンプルの個数をT、対応する量子化正規化済み信号系列X^Q(ω)の値が0である量子化誤差サンプルの個数をSとするとき、次のような手順で符号化を行うことができる。 The number of error expression bits is U XQ , and the number of quantization error samples constituting the quantization error sequence, the value of the corresponding quantized normalized signal sequence X ^ Q (ω) is not zero, When the number is T and the number of quantization error samples whose corresponding quantized normalized signal sequence X ^ Q (ω) is 0 is S, encoding can be performed in the following procedure. .

(A)UXQ≦Tの場合
誤差符号化部180は、量子化誤差列のうちの対応する量子化正規化済み信号系列X^Q(ω)の値が0でないT個の量子化誤差サンプルのうち、対応するパワースペクトル包絡値が大きいものからUXQ個選択して、選択されたそれぞれの量子化誤差サンプルに対して、量子化誤差サンプルの正負を表わす情報である1ビットの符号を生成して、生成したUXQビットの符号を誤差符号として出力する。なお、対応するパワースペクトル包絡値が同一である場合は、例えば、より周波数軸上での位置の小さい量子化誤差サンプル(周波数が低い量子化誤差サンプル)を選択する等の予め定めた規則に従って選択する。
(A) In the case of U XQ ≦ T, the error encoding unit 180 includes T quantization error samples in which the value of the corresponding quantized normalized signal sequence X ^ Q (ω) in the quantization error sequence is not 0. Among the selected quantization error samples, U XQ are selected from the corresponding power spectrum envelope values that are large, and a 1-bit code that is information representing the positive / negative of the quantization error samples is generated. Then, the generated U XQ bit code is output as an error code. If the corresponding power spectrum envelope values are the same, for example, select according to a predetermined rule such as selecting a quantization error sample with a smaller position on the frequency axis (a quantization error sample with a lower frequency). To do.

また、誤差符号化部180は、選択された各量子化誤差サンプルについて、その各量子化誤差サンプルの正負を表わす情報を再構成値の絶対値0.25に与えて再構成値+0.25又は-0.25を得て、その各量子化誤差サンプルに対応する復号量子化誤差q(ω)として出力する。   Also, the error encoding unit 180 gives information indicating the sign of each quantization error sample to the absolute value 0.25 of the reconstruction value for each selected quantization error sample, and gives the reconstruction value +0.25 or -0.25. To obtain a decoded quantization error q (ω) corresponding to each quantization error sample.

さらに、誤差符号化部180は、選択されたなかった各量子化誤差サンプルについては、0をその各量子化誤差サンプルに対応する復号量子化誤差q(ω)として出力する。   Further, error encoding section 180 outputs 0 as a decoded quantization error q (ω) corresponding to each quantization error sample for each quantization error sample that has not been selected.

(B)T<UXQ≦T+Sの場合
誤差符号化部180は、量子化誤差列のうちの対応する量子化正規化済み信号系列X^Q(ω)の値が0でないT個の量子化誤差サンプルのそれぞれについて、量子化誤差サンプルの正負を表わす情報である1ビットの符号を生成する。
(B) When T <U XQ ≦ T + S The error encoding unit 180 includes T number of non-zero values of the corresponding quantized normalized signal sequence X ^ Q (ω) in the quantization error sequence. For each quantization error sample, a 1-bit code that is information representing the sign of the quantization error sample is generated.

誤差符号化部180はまた、UXQ-Tビットで量子化誤差系列のうちの対応する量子化正規化済み信号系列X^Q(ω)の値が0である量子化誤差サンプルを符号化する。対応する量子化正規化済み信号系列X^Q(ω)の値が0である量子化誤差サンプルが複数ある場合には、対応するパワースペクトル包絡値が大きいものから優先して符号化する。具体的には、対応する量子化正規化済み信号系列X^Q(ω)の値が0である量子化誤差サンプルのうち、対応するパワースペクトル包絡値が大きいものからUXQ-T個のそれぞれについて、量子化誤差サンプルの正負を表わす1ビットの符号を生成する。または、対応する量子化正規化済み信号系列X^Q(ω)の値が0である量子化誤差サンプルのうち、対応するパワースペクトル包絡値が大きいものから複数個を取り出し、複数個の量子化誤差サンプルごとにベクトル量子化して、UXQ-Tビットの符号を生成する。なお、対応するパワースペクトル包絡値が同一である場合は、例えば、より周波数軸上での位置の小さい量子化誤差サンプル(周波数が低い量子化誤差サンプル)を選択する等の予め定めた規則に従って選択する。 The error encoding unit 180 also encodes quantization error samples in which the value of the corresponding quantized normalized signal sequence X ^ Q (ω) in the quantization error sequence is 0 with U XQ -T bits. . When there are a plurality of quantization error samples whose corresponding quantized normalized signal sequence X ^ Q (ω) has a value of 0, encoding is performed with priority from the corresponding power spectrum envelope value. Specifically, from the quantization error samples whose corresponding quantized normalized signal sequence X ^ Q (ω) has a value of 0, the corresponding U XQ -T number from the largest power spectrum envelope value For 1, a 1-bit code representing the sign of the quantization error sample is generated. Alternatively, a plurality of quantization error samples having a corresponding power spectrum envelope value out of quantization error samples whose corresponding quantized normalized signal sequence X ^ Q (ω) is 0 are extracted, and a plurality of quantizations are obtained. Vector quantization is performed for each error sample to generate a U XQ -T bit code. If the corresponding power spectrum envelope values are the same, for example, select according to a predetermined rule such as selecting a quantization error sample with a smaller position on the frequency axis (a quantization error sample with a lower frequency). To do.

誤差符号化部180はさらに、生成したUXQビットの符号とUXQ-Tビットの符号とを合わせたものを誤差符号として出力する。 The error encoding unit 180 further outputs a combination of the generated U XQ bit code and the U XQ -T bit code as an error code.

また、誤差符号化部180は、量子化正規化済み信号系列X^Q(ω)の値が0でない各量子化誤差サンプルについて、その各量子化誤差サンプルの正負を表わす情報を再構成値の絶対値0.25に与えて再構成値+0.25又は-0.25を得て、その各量子化誤差サンプルに対応する復号量子化誤差q(ω)として出力する。 Further, the error encoding unit 180, for each quantization error sample for which the value of the quantized normalized signal sequence X ^ Q (ω) is not 0, information indicating the sign of each quantization error sample is represented as a reconstructed value. An absolute value of 0.25 is given to obtain a reconstructed value +0.25 or -0.25, which is output as a decoded quantization error q (ω) corresponding to each quantization error sample.

また、誤差符号化部180は、量子化正規化済み信号系列X^Q(ω)の値が0である量子化誤差サンプルのうち、対応するパワースペクトル包絡値が大きいものからUXQ-T個の各量子化誤差サンプルについて、その各量子化誤差サンプルの正負を表す情報を再構成値A(0<A<0.25)に与えて再構成値+A又は-Aを得て、その各量子化誤差サンプルに対応する復号量子化誤差q(ω)として出力する。または、誤差符号化部180は、量子化正規化済み信号系列X^Q(ω)の値が0である量子化誤差サンプルのうち、対応するパワースペクトル包絡値が大きいものから複数個の量子化誤差サンプルについて、誤差符号に含まれるベクトル量子化により得られたUXQ-Tビットの符号に対応する復号量子化誤差サンプル値の列を得て、その複数個の量子化誤差サンプルに対応する復号量子化誤差q(ω)として出力する。 Also, the error encoding unit 180 selects U XQ −T from the quantized error samples whose quantized normalized signal sequence X ^ Q (ω) has a value of 0 corresponding to a large power spectrum envelope value. For each quantization error sample of, information representing the sign of each quantization error sample is given to the reconstruction value A (0 <A <0.25) to obtain the reconstruction value + A or -A, and each quantization error The decoded quantization error q (ω) corresponding to the error sample is output. Alternatively, the error encoding unit 180 may perform quantization from a quantization error sample whose quantization normalized signal sequence X ^ Q (ω) has a value of 0 to a corresponding one having a large power spectrum envelope value. For an error sample, a sequence of decoded quantization error sample values corresponding to the U XQ -T bit code obtained by vector quantization included in the error code is obtained, and decoding corresponding to the plurality of quantization error samples is obtained. Output as quantization error q (ω).

さらに、誤差符号化部180は、符号化の対象とならなかった各量子化誤差サンプルについては、0をその各量子化誤差サンプルに対応する復号量子化誤差q(ω)として出力する。   Further, the error encoding unit 180 outputs 0 as a decoded quantization error q (ω) corresponding to each quantization error sample for each quantization error sample that has not been encoded.

(C)T+S<UXQの場合
誤差符号化部180は、量子化誤差系列に含まれるすべての量子化誤差サンプルのそれぞれについて、量子化誤差サンプルの正負を表わす1ビットの1巡目符号を生成する。
(C) In the case of T + S <U XQ The error encoding unit 180 generates a 1-bit first-round code representing the positive / negative of the quantization error sample for each of all the quantization error samples included in the quantization error sequence. To do.

また、誤差符号化部180は、残りのUXQ-(T+S)ビットを使って(A)や(B)の手順で量子化誤差サンプルを更に符号化する。すなわち、UXQ-(T+S)を新たなUXQとして1巡目の符号化の誤差についてさらに2巡目の(A)を実行する。すなわち、結果的には、少なくとも一部の量子化誤差サンプルについて、量子化誤差サンプルあたり2ビットの量子化を行うことになる。1巡目の符号化では量子化誤差r(ω)の値は-0.5から+0.5の範囲内で一様であったが、2巡目の符号化の対象となる1巡目の誤差の値は-0.25から+0.25の範囲内になる。 In addition, the error encoding unit 180 further encodes the quantization error sample using the remaining U XQ- (T + S) bits in the procedure (A) or (B). That is, U XQ- (T + S) is set as a new U XQ and the second round (A) is executed for the encoding error in the first round. That is, as a result, at least some quantization error samples are quantized by 2 bits per quantization error sample. In the first round coding, the quantization error r (ω) was uniform within the range of −0.5 to +0.5, but the first round error value to be coded in the second round Is in the range of -0.25 to +0.25.

具体的には、誤差符号化部180は、量子化誤差系列を構成する量子化誤差サンプルのうち、対応する量子化正規化済み信号系列X^Q(ω)の値が0でなく、かつ、量子化誤差r(ω)の値が正である量子化誤差サンプルについては、量子化誤差サンプルの値から再構成値である0.25を減算して得られた値について、その正負を表わす1ビットの2巡目符号を生成する。 Specifically, the error encoding unit 180 has a value of the corresponding quantized normalized signal sequence X ^ Q (ω) that is not 0 among the quantization error samples constituting the quantization error sequence, and For a quantization error sample having a positive quantization error r (ω), a 1-bit value representing the positive or negative value is obtained by subtracting the reconstruction value 0.25 from the quantization error sample value. A second round code is generated.

また、誤差符号化部180は、量子化誤差系列を構成する誤差サンプルのうち、対応する量子化正規化済み信号系列X^Q(ω)の値が0でなく、かつ、量子化誤差r(ω)の値が負である量子化誤差サンプルについては、量子化誤差サンプルの値から再構成値である-0.25を減算して得られた値について、その正負を表わす1ビットの2巡目符号を生成する。 Further, the error encoding unit 180 has a value of the corresponding quantized normalized signal sequence X ^ Q (ω) that is not 0 among the error samples constituting the quantization error sequence, and the quantization error r ( For a quantization error sample with a negative value of ω), a 1-bit second-round code representing the positive or negative value is obtained by subtracting the reconstruction value −0.25 from the quantization error sample value. Is generated.

また、誤差符号化部180は、量子化誤差系列を構成する誤差サンプルのうち、対応する量子化正規化済み信号系列X^Q(ω)の値が0であり、かつ、量子化誤差r(ω)の値が正である量子化誤差サンプルについては、量子化誤差サンプルの値から再構成値であるA(Aは、0.25より小さい予め定められた正の値)を減算して得られた値について、その正負を表わす1ビットの2巡目符号を生成する。 Further, the error encoding unit 180 has a value of the corresponding quantized normalized signal sequence X ^ Q (ω) among error samples constituting the quantization error sequence, and a quantization error r ( A quantization error sample having a positive value of ω) is obtained by subtracting the reconstruction value A (A is a predetermined positive value smaller than 0.25) from the quantization error sample value. For the value, a 1-bit second-round code representing the sign is generated.

さらに、誤差符号化部180は、量子化誤差系列を構成する誤差サンプルのうち、対応する量子化正規化済み信号系列X^Q(ω)の値が0であり、かつ、量子化誤差r(ω)の値が負である量子化誤差サンプルについては、量子化誤差サンプルの値から再構成値である−A(Aは、0.25より小さい予め定められた正の値)を減算して得られた値について、その正負を表わす1ビットの2巡目符号を生成する。 Further, the error encoding unit 180 has a value of the corresponding quantized normalized signal sequence X ^ Q (ω) among error samples constituting the quantization error sequence, and a quantization error r ( A quantization error sample having a negative value of ω) is obtained by subtracting the reconstruction value −A (A is a predetermined positive value smaller than 0.25) from the quantization error sample value. For each value, a 1-bit second-round code representing the sign is generated.

さらに、誤差符号化部180は、生成した1巡目符号と2巡目符号とを合わせたものを誤差符号として出力する。   Furthermore, the error encoding unit 180 outputs a combination of the generated first and second cycle codes as an error code.

誤差符号化部180は、量子化正規化済み信号系列X^Q(ω)の値が0でない各量子化誤差サンプルについては、以下の処理を行い、その各量子化誤差サンプルに対応する復号量子化誤差q(ω)を生成して出力する。まず、1巡目符号に対応する正負を表す情報を再構成値の絶対値0.25に与えて再構成値+0.25又は-0.25を得て1巡目復号量子化誤差q(ω)とする。また、2巡目符号に対応する正負の情報を再構成値の絶対値0.125に与えて得られる再構成値+0.125又は-0.125を2巡目復号量子化誤差q2(ω)とする。そして、1巡目復号量子化誤差q(ω)と2巡目復号量子化誤差q2(ω)とを加算して、その各量子化誤差サンプルに対応する復号量子化誤差q(ω)とする。 The error encoding unit 180 performs the following processing for each quantization error sample whose quantization normalized signal sequence X ^ Q (ω) is not 0, and decodes the quantized quantum corresponding to each quantization error sample. Generate and output the error q (ω). First, information representing positive / negative corresponding to the first-round code is given to the absolute value 0.25 of the reconstructed value to obtain a reconstructed value +0.25 or −0.25, which is defined as a first-round decoded quantization error q 1 (ω). Also, the reconstruction value +0.125 or −0.125 obtained by giving positive / negative information corresponding to the second round code to the absolute value 0.125 of the reconstruction value is set as the second round decoding quantization error q 2 (ω). Then, the first round decoding quantization error q 1 (ω) and the second round decoding quantization error q 2 (ω) are added, and the decoding quantization error q (ω) corresponding to each quantization error sample is added. And

また、誤差符号化部180は、量子化正規化済み信号系列X^Q(ω)の値が0である各量子化誤差サンプルについては、以下の処理を行い、その各量子化誤差サンプルに対応する復号量子化誤差q(ω)を生成して出力する。まず、1巡目符号に対応する正負の情報を再構成値の絶対値A(0<A<0.25)に与えて再構成値+A又は-Aを得て1巡目復号量子化誤差q(ω)とする。また、2巡目符号に対応する正負の情報を再構成値の絶対値A/2に与えて再構成値+A/2又は-A/2を得て2巡目復号量子化誤差q2(ω)とする。そして、1巡目復号量子化誤差q(ω)と2巡目復号量子化誤差q2(ω)とを加算して、その各量子化誤差サンプルに対応する復号量子化誤差q(ω)とする。 なお、各量子化誤差サンプルに対応する2巡目符号がない場合には、1巡目復号量子化誤差q(ω)を、その各量子化誤差サンプルに対応する復号量子化誤差q(ω)として出力する。
量子化誤差系列のうちのT+S個の量子化誤差サンプルのすべてを符号化しない場合や、対応する量子化正規化済み信号系列X^Q(ω)の値が0である量子化誤差サンプルを複数まとめてサンプルあたり1ビット以下で符号化する場合は、UXQビットより少ないUUビットで量子化誤差系列を符号化することになるので、(C)の条件はT+S<UUの場合とすればよい。
In addition, the error encoding unit 180 performs the following processing for each quantization error sample in which the value of the quantized normalized signal sequence X ^ Q (ω) is 0, and corresponds to each quantization error sample. The decoding quantization error q (ω) to be generated is generated and output. First, positive / negative information corresponding to the first round code is given to the absolute value A (0 <A <0.25) of the reconstructed value to obtain the reconstructed value + A or -A, and the first round decoding quantization error q 1 (ω). Also, positive / negative information corresponding to the second round code is given to the absolute value A / 2 of the reconstructed value to obtain the reconstructed value + A / 2 or -A / 2, and the second round decoding quantization error q 2 ( ω). Then, the first round decoding quantization error q 1 (ω) and the second round decoding quantization error q 2 (ω) are added, and the decoding quantization error q (ω) corresponding to each quantization error sample is added. And If there is no second-round code corresponding to each quantization error sample, the first-round decoded quantization error q 1 (ω) is converted to the decoded quantization error q (ω corresponding to each quantization error sample. ) Is output.
If not all of the T + S quantization error samples in the quantization error sequence are encoded, or the corresponding quantization normalized signal sequence X ^ Q (ω) has a value of 0 If multiple samples are encoded together with 1 bit or less per sample, the quantization error sequence is encoded with fewer UU bits than U XQ bits, so the condition of (C) is the case when T + S <UU. That's fine.

なお、上記の(A)及び(B)のパワースペクトル包絡値の代わりに、パワースペクトル包絡値の概算値又はパワースペクトル包絡値の推定値を用いてもよい。   Instead of the power spectrum envelope values (A) and (B) described above, an approximate value of the power spectrum envelope value or an estimated value of the power spectrum envelope value may be used.

また、上記の(A)及び(B)のパワースペクトル包絡値の代わりに、パワースペクトル包絡値、パワースペクトル包絡値の概算値又はパワースペクトル包絡値の推定値を周波数方向で平滑化して得られる値を用いてもよい。平滑化して得られる値として、重み付け包絡正規化部15で得られた重み付けスペクトル包絡係数を誤差符号化部180に入力して用いてもよいし、誤差符号化部180で算出してもよい。   Further, instead of the power spectrum envelope values of (A) and (B) above, a value obtained by smoothing the power spectrum envelope value, the approximate value of the power spectrum envelope value, or the estimated value of the power spectrum envelope value in the frequency direction May be used. As a value obtained by smoothing, the weighted spectrum envelope coefficient obtained by the weighted envelope normalization unit 15 may be input to the error encoding unit 180 and used, or may be calculated by the error encoding unit 180.

また、上記の(A)及び(B)のパワースペクトル包絡値の代わりに、複数のパワースペクトル包絡値を平均した値を用いてもよい。また、パワースペクトル包絡値W(ω) [Lmin≦ω≦Lmax]の代わりに、パワースペクトル包絡値の概算値の平均値、パワースペクトル包絡値の推定値の平均値を用いてもよい。さらに、パワースペクトル包絡値、パワースペクトル包絡値の概算値又はパワースペクトル包絡値の推定値を周波数方向で平滑化して得られる値の平均値を用いてもよい。ここでの平均値は、対象となる値を複数サンプルについて平均した値、すなわち複数サンプルの対象となる値を平均した値である。 Further, instead of the power spectrum envelope values (A) and (B) described above, a value obtained by averaging a plurality of power spectrum envelope values may be used. Instead of the power spectrum envelope value W (ω) [L min ≦ ω ≦ L max ], an average value of the approximate value of the power spectrum envelope value and an average value of the estimated value of the power spectrum envelope value may be used. Furthermore, an average value of values obtained by smoothing the power spectrum envelope value, the approximate value of the power spectrum envelope value, or the estimated value of the power spectrum envelope value in the frequency direction may be used. The average value here is a value obtained by averaging the target values for a plurality of samples, that is, a value obtained by averaging the target values for the plurality of samples.

また、上記の(A)及び(B)のパワースペクトル包絡値の代わりに、パワースペクトル包絡値と、パワースペクトル包絡値の概算値と、パワースペクトル包絡値の推定値と、これらの何れかの値を平滑化して得られる値と、これらの何れかの値を複数のサンプルについて平均して得られる値との少なくとも何れか1つと大小関係が同一となる値を用いてもよい。この場合は、大小関係が同一となる値を誤差符号化部180で算出して用いる。大小関係が同一となる値とは、二乗値や平方根などである。例えば、パワースペクトル包絡値W(ω) [Lmin≦ω≦Lmax]と大小関係が同一となる値はパワースペクトル包絡値の二乗値である(W(ω))2[Lmin≦ω≦Lmax]やパワースペクトル包絡値の平方根である(W(ω))1/2[Lmin≦ω≦Lmax]である。 Further, instead of the power spectrum envelope values of (A) and (B) above, a power spectrum envelope value, an approximate value of the power spectrum envelope value, an estimated value of the power spectrum envelope value, and any of these values A value having the same magnitude relationship as at least one of a value obtained by smoothing and a value obtained by averaging any one of these values for a plurality of samples may be used. In this case, the error encoding unit 180 calculates and uses values that have the same magnitude relationship. The value having the same magnitude relationship is a square value or a square root. For example, the power spectrum envelope value W (ω) [L min ≦ ω ≦ L max ] is the same value as the square of the power spectrum envelope value (W (ω)) 2 [L min ≦ ω ≦ L max ] or the square root of the power spectrum envelope value (W (ω)) 1/2 [L min ≦ ω ≦ L max ].

<加算部190>
加算部190には、復号量子化誤差q(ω)の列及び量子化正規化済み信号系列X^Q(ω)が入力される。加算部190は、復号量子化誤差q(ω)の列と量子化正規化済み信号系列X^Q(ω)とを加算して、修正後量子化正規化済み信号系列X^’Q(ω)とする(ステップS5e)。修正後量子化正規化済み信号系列X^’Q(ω)は、区分部150及びゲイン補正量符号化部140に送信される。
<Adding unit 190>
The adder 190 receives a sequence of decoded quantization errors q (ω) and a quantized normalized signal sequence X ^ Q (ω). The adder 190 adds the sequence of the decoded quantization error q (ω) and the quantized normalized signal sequence X ^ Q (ω), and the corrected quantized normalized signal sequence X ^ ′ Q (ω ) (Step S5e). The post-correction quantization normalized signal sequence X ^ ′ Q (ω) is transmitted to the segmentation unit 150 and the gain correction amount encoding unit 140.

<区分部150>
区分部150が、修正後量子化正規化済み信号系列X^’Q(ω) [ω∈{Lmin,…,Lmax}]を、「各範囲のエネルギーがなるべく等しくなるように区分する基準」又は「各範囲に含まれる有意のサンプルの個数がなるべく等しくなるように区分する基準」で、N個の範囲(ただし、N=2Dであり、Dは2以上の予め定められた整数である)に区分する(ステップS3e)。既述の説明と整合させると、修正後量子化正規化済み信号系列X^’Q(ω) [ω∈{Lmin,…,Lmax}]の離散周波数インデックスの集合を{Lmin,…,Lmax}として、修正後量子化正規化済み信号系列X^’Q(ω)[ω∈{Lmin,…,Lmax}]が系列全体Bに相当し、区分部150は、修正後量子化正規化済み信号系列X^’Q(ω)[ω∈{Lmin,…,Lmax}]を、「各範囲のエネルギーがなるべく等しくなるように区分する基準」又は「各範囲に含まれる有意のサンプルの個数がなるべく等しくなるように区分する基準」で、N個の範囲{Bnn=1 N={B1,…,Bn,…,BN}に区分する。「各範囲のエネルギーがなるべく等しくなるように区分する基準」又は「各範囲に含まれる有意のサンプルの個数がなるべく等しくなるように区分する基準」で区分する区分処理の詳細は後述する。この区分処理で得られるN個の範囲への区分に関する情報(以下、区分情報という)は区分部150から出力されゲイン補正量符号化部140に提供される。
<Division section 150>
The segmentation unit 150 classifies the corrected quantized normalized signal sequence X ^ ′ Q (ω) [ω∈ {L min ,..., L max }] so that the energy in each range is as equal as possible. Or “Criteria for classifying so that the number of significant samples included in each range is as equal as possible”, N ranges (where N = 2 D and D is a predetermined integer greater than or equal to 2 (Step S3e). When aligning the above description, it modified quantized normalized signal sequence X ^ 'Q (ω) [ ω∈ {L min, ..., L max}] {L min the set of discrete frequency index, ... , L max }, the modified quantized normalized signal sequence X ^ ′ Q (ω) [ω∈ {L min ,..., L max }] corresponds to the entire sequence B, and the segmentation unit 150 Quantized normalized signal sequence X ^ ′ Q (ω) [ω∈ {L min ,..., L max }] is included in each range as “criteria for classifying energy in each range to be as equal as possible” Is divided into N ranges {B n } n = 1 N = {B 1 ,..., B n ,..., B N }. Details of the sorting process for sorting by “criteria for sorting so that the energy of each range is as equal as possible” or “criteria for sorting so that the number of significant samples included in each range are as equal as possible” will be described later. Information relating to the division into N ranges obtained by this division processing (hereinafter referred to as division information) is output from the division unit 150 and provided to the gain correction amount encoding unit 140.

区分部150が行なう区分処理の詳細については後述する。   Details of the sorting process performed by the sorting unit 150 will be described later.

<ゲイン補正量符号化部140>
ゲイン補正量符号化部140は、図24に示すように、記憶部141、ビット割当部142及び符号化部143を例えば備えている。ゲイン補正量符号化部140は、必要に応じて、図24に破線で示した乗算部144を備えていてもよい。ゲイン補正量符号化部140には、入力信号系列X(ω) [ω∈{Lmin,…,Lmax}]と、量子化グローバルゲインg^と、修正後量子化正規化済み信号系列X^’Q(ω) [ω∈{Lmin,…,Lmax}]と区分情報が入力される。ゲイン補正量符号化部140は、ゲイン補正量符号化部140の記憶部141に記憶されている複数個のゲイン補正量コードブックを用いて、量子化グローバルゲインを複数個のゲイン補正量で区分された範囲ごとに補正して得られる補正ゲインと修正後量子化正規化済み信号系列X^’Q(ω) [ω∈{Lmin,…,Lmax}]の各サンプルの値とを乗算して得られる信号系列と入力信号系列X(ω) [ω∈{Lmin,…,Lmax}]との相関が最大又は誤差が最小となるゲイン補正量を特定するための符号であるゲイン補正量符号を出力する。ゲイン補正量符号化部140は、入力されたゲイン修正ビット数Ugに基づいて、Ugビットのゲイン補正量符号を出力するようにする。
<Gain Correction Amount Encoding Unit 140>
As shown in FIG. 24, the gain correction amount encoding unit 140 includes, for example, a storage unit 141, a bit allocation unit 142, and an encoding unit 143. The gain correction amount encoding unit 140 may include a multiplication unit 144 indicated by a broken line in FIG. 24 as necessary. The gain correction amount encoding unit 140 receives the input signal sequence X (ω) [ω∈ {L min ,..., L max }], the quantized global gain g ^, and the corrected quantized normalized signal sequence X ^ ' Q (ω) [ω∈ {L min ,..., L max }] and classification information are input. The gain correction amount encoding unit 140 classifies the quantized global gain into a plurality of gain correction amounts using a plurality of gain correction amount codebooks stored in the storage unit 141 of the gain correction amount encoding unit 140. Multiplying the correction gain obtained by correcting for each range and the value of each sample of the corrected quantized normalized signal sequence X ^ ′ Q (ω) [ω∈ {L min , ..., L max }] Gain that is a code for specifying a gain correction amount that maximizes the correlation or minimizes the error between the signal sequence obtained in this way and the input signal sequence X (ω) [ω∈ {L min ,..., L max }] The correction amount code is output. The gain correction amount encoding unit 140 outputs a U g bit gain correction amount code based on the input gain correction bit number U g .

この際、ゲイン補正量符号化部140のビット割当部142は、N個(N=2Dであり、Dは2以上の整数)に区分された各範囲に対応するゲイン補正量と区分された範囲を2個(kは1からD−1までの各整数)纏めた範囲のゲイン補正量とのうち範囲に含まれる区分された範囲の個数が多い範囲に対応するゲイン補正量に優先してビットを割り当てる。具体的には、区分された範囲を2N-1個纏めた範囲、区分された範囲を2N-2個纏めた範囲、…、区分された範囲を2個纏めた範囲、区分された範囲の順に優先してビットを割り当てる。 At this time, the bit allocation unit 142 of the gain correction amount encoding unit 140 has a range divided into gain correction amounts corresponding to each range divided into N pieces (N = 2D, where D is an integer of 2 or more). the (k is each integer from 1 to D-1) 2 k pieces in preference to the gain correction amount corresponding to the range number of segmented range is often within the scope of the gain correction amount in the summary range Assign bits. Specifically, a range of 2 N-1 divided ranges, a range of 2 N-2 divided ranges, ..., a range of 2 divided ranges, a divided range Prioritize bits in order of.

なお、範囲に含まれる区分された範囲の個数が多い範囲のことを、大きな範囲と省略して記載することもある。また、範囲に含まれる区分された範囲の個数が少ない範囲のことを、小さな範囲と省略して記載することもある。さらに、範囲に含まれる区分された範囲の個数が同じ範囲のことを、同じ大きさの範囲と省略して記載することもある。   A range having a large number of divided ranges included in the range may be abbreviated as a large range. In addition, a range having a small number of divided ranges included in the range may be abbreviated as a small range. Furthermore, a range in which the number of divided ranges included in the range is the same may be abbreviated as a range of the same size.

同じ大きさの範囲に対応するゲイン補正量については何れの範囲に対応するゲイン補正量に優先してビットを割り当ててもよいが、聴覚的な重要度が高い範囲に対応するゲイン補正量に対して優先的にビットを割り当てるほうが好ましい。例えば、符号化装置100内の図示しない手段又は符号化装置100の外から各範囲の聴覚的な重要度の情報が入力されたとする。この場合には、同じ大きさの範囲に対応するゲイン補正量については、各範囲の聴覚的な重要度の情報に従って、聴覚的な重要度が高い範囲に対応するゲイン補正量に優先してビットを割り当てる。すなわち、範囲に含まれる区分された範囲の個数が同じ範囲に対応するゲイン補正量については、聴覚的な重要度が高い範囲に対応するゲイン補正量に優先してビットを割り当ててもよい。   For the gain correction amount corresponding to the same size range, bits may be assigned in preference to the gain correction amount corresponding to any range, but for the gain correction amount corresponding to the range where auditory importance is high It is preferable to assign bits preferentially. For example, it is assumed that information on auditory importance in each range is input from a unit (not shown) in the encoding device 100 or from the outside of the encoding device 100. In this case, for the gain correction amount corresponding to the same size range, the bit is given priority over the gain correction amount corresponding to the high auditory importance range according to the auditory importance information of each range. Assign. In other words, for the gain correction amount corresponding to the range where the number of divided ranges included in the range is the same, a bit may be assigned in preference to the gain correction amount corresponding to the range having high auditory importance.

なお、一般的には、周波数が低い帯域の方が、周波数が高い帯域よりも、聴覚的な重要度が高いことが多い。このため、同じ大きさの範囲に対応するゲイン補正量については、周波数が低い範囲に対応するゲイン補正量に優先してビットを割り当ててもよい。すなわち、範囲に含まれる上記区分された範囲の個数が同じ範囲に対応するゲイン補正量については、周波数が低い範囲に対応するゲイン補正量に優先してビットを割り当ててもよい。   In general, the lower frequency band is often higher in auditory importance than the higher frequency band. For this reason, as for the gain correction amount corresponding to the same size range, a bit may be assigned in preference to the gain correction amount corresponding to the low frequency range. That is, for the gain correction amount corresponding to the range where the number of the divided ranges included in the range is the same, a bit may be assigned in preference to the gain correction amount corresponding to the low frequency range.

[ゲイン補正量符号化処理の第1例]
ゲイン補正量符号化処理の第1例は、量子化グローバルゲインg^とゲイン補正量とを加算したものを補正ゲインとする例である。ここでは、同じ大きさの範囲に対応するゲイン補正量については周波数が低い範囲に対応するゲイン補正量に優先してビットを割り当て、隣接する2つの範囲のゲイン補正量をベクトル量子化する例について説明する。修正後量子化正規化済み信号系列が4個の範囲に区分されている場合について説明する。
[First example of gain correction amount encoding process]
The first example of the gain correction amount encoding process is an example in which the gain obtained by adding the quantized global gain g ^ and the gain correction amount is used as the correction gain. Here, with respect to the gain correction amount corresponding to the same size range, the bit is assigned with priority over the gain correction amount corresponding to the low frequency range, and the vector correction is performed for the gain correction amounts in the two adjacent ranges. explain. A case where the post-correction quantization normalized signal sequence is divided into four ranges will be described.

この例では、修正後量子化正規化済み信号系列は、第1の範囲R1、第2の範囲R2、第3の範囲R3及び第4の範囲R4に区分されている。例えば図25に示すように、第1の範囲R1は区間[Lmin,L(1)-1]であり、第2の範囲R2は区間[L(1),L(2)-1]であり、第3の範囲R3は区間[L(2),L(3)-1]であり、第4の範囲R4は区間[L(3),Lmax]である。図25の横軸は、サンプル番号を表す。これらの範囲R1,R2,R3,R4は、2個(kは一般には1からD−1までの各整数であるが、この例ではk=1)ずつ纏められている。範囲R1及び範囲R2を纏めた範囲を範囲R12とし、範囲R3及び範囲R4を纏めた範囲を範囲R34とする。 In this example, the corrected quantized normalized signal sequence is divided into a first range R1, a second range R2, a third range R3, and a fourth range R4. For example, as shown in FIG. 25, the first range R1 is a section [L min , L (1) -1], and the second range R2 is a section [L (1) , L (2) -1]. Yes, the third range R3 is the section [L (2) , L (3) -1], and the fourth range R4 is the section [L (3) , L max ]. The horizontal axis in FIG. 25 represents the sample number. These ranges R1, R2, R3, R4 is (although k is each integer generally from 1 to D-1, k = 1 in this example) 2 k pieces are summarized by. A range in which the range R1 and the range R2 are combined is referred to as a range R12, and a range in which the range R3 and the range R4 are combined is referred to as a range R34.

これらの範囲R1,R2,R3,R4,R12,R34は、同じ大きさの範囲ごとにa個の範囲で構成されるグループに分割されている。aは一般には2以上の整数であるが、この例ではa=2である。この例では、範囲R1及び範囲R2がグループG12を構成しており、範囲R3及び範囲R4がグループG34を構成しており、範囲R12及び範囲R34がグループG1234を構成している。すなわち、各グループを構成する範囲は、以下のようになる。
グループG12={範囲R1,範囲R2}
グループG34={範囲R3,範囲R4}
グループG1234={範囲R12,範囲R34}
ベクトル量子化は、これらのグループG12,G34,G1234のそれぞれで行われる。
These ranges R1, R2, R3, R4, R12, and R34 are divided into groups each composed of a ranges for each range of the same size. In general, a is an integer of 2 or more, but in this example, a = 2. In this example, the range R1 and the range R2 constitute a group G12, the range R3 and the range R4 constitute a group G34, and the range R12 and the range R34 constitute a group G1234. That is, the range constituting each group is as follows.
Group G12 = {Range R1, Range R2}
Group G34 = {Range R3, Range R4}
Group G1234 = {range R12, range R34}
Vector quantization is performed in each of these groups G12, G34, and G1234.

具体的には、次の3つのベクトル量子化が行なわれる。第1のベクトル量子化は、グループG12についてのベクトル量子化、すなわち範囲R1に対応するゲイン補正量と範囲R2に対応するゲイン補正量とのベクトル量子化である。これを以下では「第1VQ」という。第2のベクトル量子化は、グループG34についてのベクトル量子化、すなわち範囲R3に対応するゲイン補正量と範囲R4に対応するゲイン補正量とのベクトル量子化である。これを以下では「第2VQ」という。第3のベクトル量子化は、グループG1234についてのベクトル量子化、すなわち範囲R12に対応するゲイン補正量と範囲R34に対応するゲイン補正量とのベクトル量子化である。これを以下では「第3VQ」という。   Specifically, the following three vector quantizations are performed. The first vector quantization is vector quantization for the group G12, that is, vector quantization of a gain correction amount corresponding to the range R1 and a gain correction amount corresponding to the range R2. This is hereinafter referred to as “first VQ”. The second vector quantization is vector quantization for the group G34, that is, vector quantization of a gain correction amount corresponding to the range R3 and a gain correction amount corresponding to the range R4. This is hereinafter referred to as “second VQ”. The third vector quantization is vector quantization for the group G1234, that is, vector quantization of a gain correction amount corresponding to the range R12 and a gain correction amount corresponding to the range R34. This is hereinafter referred to as “third VQ”.

<記憶部141>
ゲイン補正量符号化部140の記憶部141には、範囲R1に対応するゲイン補正量の候補Δ1(ma)と、範囲R2に対応するゲイン補正量の候補Δ2(ma)と、これらのゲイン補正量の候補を特定する符号idx12(ma)との組が2Ma個(2のMa乗個、Maは1以上の整数、ma∈{1,…,2Ma}])格納されている。具体的には、Δ1(1)とΔ2(1)とidx12(1)との組、Δ1(2)とΔ2(2)とidx12(2)との組、・・・、Δ1(2Ma)とΔ2(2Ma)とidx12(2Ma)との組が第1VQのゲイン補正量コードブックとして記憶部141に格納されている。符号idx12(ma)のビット数はMaビットである。すなわち、第1VQにより出力される符号(以下、第1VQ符号という)idx12はMaビットである。
<Storage unit 141>
The storage unit 141 of the gain correction amount encoding unit 140 stores a gain correction amount candidate Δ 1 (ma) corresponding to the range R1, a gain correction amount candidate Δ 2 (ma) corresponding to the range R2, and these 2 Ma pairs (2 Ma powers, Ma is an integer of 1 or more, ma∈ {1,..., 2 Ma }]) are stored with the code idx 12 (ma) that identifies gain correction amount candidates. Yes. Specifically, a set of Δ 1 (1), Δ 2 (1) and idx 12 (1), a set of Δ 1 (2), Δ 2 (2) and idx 12 (2), ... , Δ 1 (2 Ma ), Δ 2 (2 Ma ), and idx 12 (2 Ma ) are stored in the storage unit 141 as a first VQ gain correction amount codebook. The number of bits of the code idx 12 (ma) is Ma bits. That is, the code (hereinafter referred to as the first VQ code) idx 12 output by the first VQ is Ma bits.

a個(この例ではa=2)のゲイン補正量の候補で構成されたベクトルを、ゲイン補正量候補ベクトルと呼ぶことにすると、第1VQのゲイン補正量コードブックには、Δ1(1)及びΔ2(1)で構成されたゲイン補正量候補ベクトル、Δ1(2)及びΔ2(2)で構成されたゲイン補正量候補ベクトル、・・・、Δ1(2Ma)及びΔ2(2Ma)で構成されたゲイン補正量候補ベクトルの計2Ma個のゲイン補正量候補ベクトルと、計2Ma個のゲイン補正量候補ベクトルとそれぞれ対応する計2Ma個の符号Δ12(1),Δ12(2),・・・,idx12(2Ma)が格納されていると考えることができる。 If a vector composed of a number (a = 2 in this example) of gain correction amount candidates is called a gain correction amount candidate vector, the gain correction amount codebook of the first VQ has Δ 1 (1) and delta 2 (1) gain correction amount candidate vectors constructed by, Δ 1 (2) and delta 2 gain correction amount candidate vectors constructed by (2), ···, Δ 1 (2 Ma) and delta 2 (2 Ma) and a total of 2 Ma pieces of gain correction amount candidate vectors gain correction amount candidate vectors comprised of a total of 2 Ma pieces of gain correction amount candidate vector and the corresponding total 2 Ma number of code delta 12 (1 ), Δ 12 (2),..., Idx 12 (2 Ma ).

また、記憶部141には、範囲R3に対応するゲイン補正量の候補Δ3(mb)と、範囲R4に対応するゲイン補正量の候補Δ4(mb)と、これらのゲイン補正量の候補を特定する符号idx34(mb)との組が2Mb個(2のMb乗個、Mbは1以上の整数、mb∈{1,…,2Mb}]))格納されている。具体的には、Δ3(1)とΔ4(1)とidx34(1)との組、Δ3(2)とΔ4(2)とidx34 (2)との組、・・・、Δ3(2Mb)とΔ4(2Mb)とidx34(2Mb)との組が第2VQのゲイン補正量コードブックとして記憶部141に格納されている。MbはMaと同じ値であっても異なる値であってもよい。符号idx34(mb)のビット数はMbビットである。すなわち、第2VQにより出力される符号(以下、第2VQ符号という)idx34はMbビットである。 Further, the storage unit 141 stores gain correction amount candidates Δ 3 (mb) corresponding to the range R3, gain correction amount candidates Δ 4 (mb) corresponding to the range R4, and gain correction amount candidates. set of 2 Mb pieces of a code idx 34 (mb) for identifying (2 Mb th power, Mb is an integer of 1 or more, mb∈ {1, ..., 2 Mb}])) are stored. Specifically, a set of Δ 3 (1), Δ 4 (1) and idx 34 (1), a set of Δ 3 (2), Δ 4 (2) and idx 34 (2), ... , Δ 3 (2 Mb ), Δ 4 (2 Mb ), and idx 34 (2 Mb ) are stored in the storage unit 141 as a second VQ gain correction amount codebook. Mb may be the same value as Ma or a different value. The number of bits of the code idx 34 (mb) is Mb bits. That is, a code (hereinafter referred to as a second VQ code) idx 34 output by the second VQ is Mb bits.

第2VQのゲイン補正量コードブックには、Δ3(1)及びΔ4(1)で構成されたゲイン補正量候補ベクトル、Δ3(2)及びΔ4(2)で構成されたゲイン補正量候補ベクトル、・・・、Δ3(2Mb)及びΔ4(2Mb)で構成されたゲイン補正量候補ベクトルの計2Mb個のゲイン補正量候補ベクトルと、計2Mb個のゲイン補正量候補ベクトルとそれぞれ対応する計2Mb個の符号Δ34(1),Δ34(2),・・・,idx34(2Mb)が格納されていると考えてもよい。 The second VQ gain correction amount codebook includes a gain correction amount candidate vector composed of Δ 3 (1) and Δ 4 (1), and a gain correction amount composed of Δ 3 (2) and Δ 4 (2). Candidate vectors, 2 Mb gain correction amount candidate vectors, and a total of 2 Mb gain correction amounts of gain correction amount candidate vectors composed of Δ 3 (2 Mb ) and Δ 4 (2 Mb ) It can be considered that a total of 2 Mb codes Δ 34 (1), Δ 34 (2),..., Idx 34 (2 Mb ) corresponding to the candidate vectors are stored.

さらに、記憶部141には、範囲R12のゲイン補正量の候補Δ12(mc)と、範囲R34のゲイン補正量の候補Δ34(mc)と、これらのゲイン補正量の候補を特定する符号idx1234(mc)との組が2Mc個(2のMc乗個、Mcは1以上の整数、mc∈{1,…,2Mc}]))格納されている。具体的には、Δ12(1)とΔ34(1)とidx1234(1)との組、Δ12(2)とΔ34(2)とidx1234(2)との組、・・・、Δ12(2Mc)とΔ34(2Mc)とidx1234(2Mc)との組が第3VQのゲイン補正量コードブックとして記憶部141に格納されている。McはMaと同じ値であっても異なる値であってもよい。また、McはMbと同じ値であっても異なる値であってもよい。符号idx1234(mc)のビット数はMcビットである。第3VQにより出力される符号(以下、第3VQ符号という)idx1234はMcビットである。 Further, the storage unit 141 stores a gain correction amount candidate Δ 12 (mc) in the range R12, a gain correction amount candidate Δ 34 (mc) in the range R34, and a code idx for specifying these gain correction amount candidates. 1234 (mc) set of the can 2 Mc pieces (2 Mc th power, Mc is an integer of 1 or more, mc∈ {1, ..., 2 Mc}])) are stored. Specifically, a set of Δ 12 (1), Δ 34 (1) and idx 1234 (1), a set of Δ 12 (2), Δ 34 (2) and idx 1234 (2), ... , Δ 12 (2 Mc ), Δ 34 (2 Mc ), and idx 1234 (2 Mc ) are stored in the storage unit 141 as a third VQ gain correction amount codebook. Mc may be the same value as Ma or a different value. Further, Mc may be the same value as Mb or a different value. The number of bits of the code idx 1234 (mc) is Mc bits. A code (hereinafter referred to as a third VQ code) idx 1234 output by the third VQ is Mc bits.

第3VQのゲイン補正量コードブックには、Δ12(1)及びΔ34(1)で構成されたゲイン補正量候補ベクトル、Δ12(2)及びΔ34(2)で構成されたゲイン補正量候補ベクトル、・・・、Δ12(2Mc)及びΔ34(2Mc)で構成されたゲイン補正量候補ベクトルの計2Mc個のゲイン補正量候補ベクトルと、計2Mc個のゲイン補正量候補ベクトルとそれぞれ対応する計2Mc個の符号Δ1234(1),Δ1234(2),・・・,idx1234(2Mc)が格納されていると考えてもよい。 The third VQ gain correction amount codebook includes a gain correction amount candidate vector composed of Δ 12 (1) and Δ 34 (1), and a gain correction amount composed of Δ 12 (2) and Δ 34 (2). candidate vectors, ···, Δ 12 (2 Mc ) and delta 34 and a total of 2 Mc number of gain correction amount candidate vectors constructed gain correction amount candidate vector (2 Mc), a total of 2 Mc number of gain correction amount It may be considered that a total of 2 Mc codes Δ 1234 (1), Δ 1234 (2),..., Idx 1234 (2 Mc ) corresponding to the candidate vectors are stored.

このように、区分された範囲及び区分された範囲を2k個(kは1からD−1までの各整数)ずつ纏めた範囲のそれぞれには、複数個のゲイン補正量の候補が対応付けされている。この例では、範囲R1にはΔ1(1),…,Δ1(2Ma)が対応付けされており、範囲R2にはΔ2(1),…,Δ2(2Ma)が対応付けされており、範囲R3にはΔ3(1),…,Δ3(2Mb)が対応付けされており、範囲R4にはΔ4(1),…,Δ4(2Mb)が対応付けされており、範囲R12にはΔ12(1),…,Δ12(2Mc)が対応付けされており、範囲R34にはΔ34(1),…,Δ34(2Mc)が対応付けされている。 Thus, a plurality of gain correction amount candidates are associated with each of the divided ranges and the ranges obtained by collecting the divided ranges by 2 k pieces (k is an integer from 1 to D-1). Has been. In this example, Δ 1 (1), ..., Δ 1 (2 Ma ) is associated with the range R1, and Δ 2 (1), ..., Δ 2 (2 Ma ) is associated with the range R2. It is, in the range R3 Δ 3 (1), ... , Δ 3 (2 Mb) have been associated, in the range R4 Δ 4 (1), ... , Δ 4 (2 Mb) is correlated Δ 12 (1),..., Δ 12 (2 Mc ) is associated with the range R12, and Δ 34 (1),..., Δ 34 (2 Mc ) is associated with the range R34. Has been.

ゲイン補正量の候補には、大きな範囲に対応するゲイン補正量の候補の絶対値の方が、その大きな範囲よりも小さい範囲に対応するゲイン補正量の候補の絶対値よりも大きいという関係があってもよい。すなわち、範囲に含まれる区分された範囲の個数が多い範囲に対応するゲイン補正量の候補の絶対値の方が、その範囲に含まれる上記区分された範囲の個数よりも範囲に含まれる区分された範囲の個数が少ない範囲に対応するゲイン補正量の候補の絶対値よりも大きいという関係があってもよい。   The gain correction amount candidates have a relationship that the absolute value of the gain correction amount candidate corresponding to the large range is larger than the absolute value of the gain correction amount candidate corresponding to the smaller range. May be. That is, the absolute value of the gain correction amount candidate corresponding to a range having a large number of divided ranges included in the range is included in the range than the number of the divided ranges included in the range. Alternatively, there may be a relationship that the absolute value of gain correction amount candidates corresponding to a range with a small number of ranges is larger.

この例では、範囲R12及び範囲R34の方が、範囲R1、範囲R2、範囲R3及び範囲R4よりも大きな範囲である。   In this example, the range R12 and the range R34 are larger than the range R1, the range R2, the range R3, and the range R4.

したがって、Δ12(1),…,Δ12(2Mc)の絶対値が、Δ1(1),…,Δ1(2Ma)の絶対値、Δ2(1),…,Δ2(2Ma)の絶対値、Δ3(1),…,Δ3(2Mb)の絶対値及びΔ4(1),…,Δ4(2Mb)の絶対値よりも大きくなっていてもよい。 Thus, Δ 12 (1), ... , the absolute value of Δ 12 (2 Mc) is, Δ 1 (1), ... , the absolute value of Δ 1 (2 Ma), Δ 2 (1), ..., Δ 2 ( 2 Ma ) absolute value, Δ 3 (1), ..., Δ 3 (2 Mb ) absolute value and Δ 4 (1), ..., Δ 4 (2 Mb ) absolute value .

同様に、Δ34(1),…,Δ34(2Mc)の絶対値が、Δ1(1),…,Δ1(2Ma)の絶対値、Δ2(1),…,Δ2(2Ma)の絶対値、Δ3(1),…,Δ3(2Mb)の絶対値及びΔ4(1),…,Δ4(2Mb)の絶対値よりも大きくなっていてもよい。 Similarly, Δ 34 (1), ... , the absolute value of Δ 34 (2 Mc) is, Δ 1 (1), ... , the absolute value of Δ 1 (2 Ma), Δ 2 (1), ..., Δ 2 The absolute value of (2 Ma ), the absolute value of Δ 3 (1), ..., Δ 3 (2 Mb ) and the absolute value of Δ 4 (1), ..., Δ 4 (2 Mb ) Good.

例えば、次のようにしてゲイン補正量候補ベクトルを生成することができる。   For example, a gain correction amount candidate vector can be generated as follows.

まず、a個の値で構成される正規化ゲイン補正量候補ベクトルを2Md個記憶部141に格納しておく。例えば、Md=Ma=Mb=Mcである。正規化ゲイン補正量候補ベクトルを構成するa個の値をΔ1(m),…,Δa(m)と表記すると、正規化ゲイン補正量候補ベクトルは(Δ1(m),…,Δa(m))と表記することができる。記憶部141には、2Md個の正規化ゲイン補正量候補ベクトル、すなわち(Δ1(1),…,Δa(1)),…,(Δ1(2Md),…,Δa(2Md))が格納されている。 First, 2 Md number of normalized gain correction amount candidate vectors composed of a values are stored in the storage unit 141. For example, Md = Ma = Mb = Mc. When a value constituting the normalized gain correction amount candidate vector is expressed as Δ 1 (m),..., Δ a (m), the normalized gain correction amount candidate vector is (Δ 1 (m),. a (m)). The storage unit 141, 2 Md pieces of normalized gain correction amount candidate vectors, i.e. (Δ 1 (1), ... , Δ a (1)), ..., (Δ 1 (2 Md), ..., Δ a ( 2 Md )) is stored.

また、範囲の大きさごとに予め定められた係数が定められているものとする。この係数は、対応する範囲が大きいほど大きい。言い換えれば、この係数は、範囲に含まれる区分された範囲の個数が多い範囲ほど大きい。   In addition, it is assumed that a predetermined coefficient is determined for each size of the range. This coefficient is larger as the corresponding range is larger. In other words, this coefficient is larger as the number of divided ranges included in the range is larger.

上記の例では、範囲R12,R34は範囲R1,R2,R3,R4よりも大きい範囲である。このため、範囲R12,R34に対応する係数step1234は、範囲R1,R2に対応する係数step12よりも大きい。同様に、範囲R12,R34に対応する係数step1234は、範囲R3,R4に対応する係数step34よりも大きい。 In the above example, the ranges R12, R34 are larger than the ranges R1, R2, R3, R4. For this reason, the coefficient step 1234 corresponding to the ranges R12 and R34 is larger than the coefficient step 12 corresponding to the ranges R1 and R2. Similarly, the coefficient step 1234 corresponding to the ranges R12 and R34 is larger than the coefficient step 34 corresponding to the ranges R3 and R4.

量子化グローバルゲインg^の量子化ステップ幅の範囲内で補正するのが、範囲R12に対応するゲイン補正量及び範囲R34に対応するゲイン補正量である。範囲R12に対応するゲイン補正量の量子化ステップ幅×係数step12の範囲内で補正するのが、範囲R1に対応するゲイン補正量及び範囲R2に対応するゲイン補正量である。範囲R34に対応するゲイン補正量の量子化ステップ幅×係数step34の範囲内で補正するのが、範囲R3に対応するゲイン補正量及び範囲R4に対応するゲイン補正量である。 The gain correction amount corresponding to the range R12 and the gain correction amount corresponding to the range R34 are corrected within the quantization step width of the quantized global gain g ^. The gain correction amount corresponding to the range R1 and the gain correction amount corresponding to the range R2 are corrected within the range of the quantization step width of the gain correction amount corresponding to the range R12 × the coefficient step 12 . The gain correction amount corresponding to the range R3 and the gain correction amount corresponding to the range R4 are corrected within the range of the quantization step width of the gain correction amount corresponding to the range R34 × the coefficient step 34 .

このとき、正規化ゲイン補正量候補ベクトルに、範囲の大きさに対応する係数を乗算したベクトルを、その範囲のゲイン補正量候補ベクトルとする。言いかえれば、正規化ゲイン補正量候補ベクトル(Δ1(m),…,Δa(m))を構成するa個の値Δ1(m),…,Δa(m)のそれぞれに、範囲の大きさに対応する係数stepを乗算することにより得られたa個の値stepΔ1(m),…, stepΔa(m)により構成されるベクトル(stepΔ1(m),…,stepΔa(m))を、その範囲のゲイン補正量候補ベクトルとする。この乗算は、ゲイン補正量符号化部140の乗算部144により行われる。正規化ゲイン補正量候補ベクトル(Δ1(m),…,Δa(m))は2Md個あるため、m=1,…,2Mdのそれぞれについてこの乗算を行うことにより、2Md個のゲイン補正量候補ベクトル(stepΔ1(m),…, stepΔa(m))が得られる。 At this time, a vector obtained by multiplying the normalized gain correction amount candidate vector by a coefficient corresponding to the size of the range is set as the gain correction amount candidate vector of the range. In other words, the normalized gain correction amount candidate vector (Δ 1 (m), ... , Δ a (m)) a number of values delta 1 constituting the (m), ..., to each of the delta a (m), A vector (stepΔ 1 (m),..., StepΔ a composed of a values stepΔ 1 (m),..., StepΔ a (m) obtained by multiplying the coefficient step corresponding to the size of the range. (m)) is a gain correction amount candidate vector in that range. This multiplication is performed by the multiplication unit 144 of the gain correction amount encoding unit 140. Since there are 2 Md normalized gain correction amount candidate vectors (Δ 1 (m),..., Δ a (m)), by performing this multiplication for each of m = 1,..., 2 Md , 2 Md Gain correction amount candidate vectors (step Δ 1 (m),..., Step Δ a (m)) are obtained.

上記のa=2の例では、Md=Maとした場合、グループG12を構成する範囲R1,R2に対応するゲイン補正量候補ベクトル(Δ1(m),Δ2(m))は、(Δ1(m),Δ2(m))=(step12Δ1(m),step12Δ2(m))[m=1,…,2Ma]である。Md=Mbとした場合、グループG34を構成する範囲R3,R4に対応するゲイン補正量候補ベクトル(Δ3(m),Δ4(m))は、(Δ3(m),Δ4(m))=(step34Δ1(m),step34Δ2(m))[m=1,…,2Mb]である。Md=Mbとした場合、グループG1234を構成する範囲R12,R34に対応するゲイン補正量候補ベクトル(Δ12(m),Δ34(m))は、(Δ12(m),Δ34(m))=(step1234Δ1(m),step1234Δ2(m))[m=1,…,2Mc]である。 In the above example of a = 2, when Md = Ma, the gain correction amount candidate vectors (Δ 1 (m), Δ 2 (m)) corresponding to the ranges R1, R2 constituting the group G12 are (Δ 1 (m), Δ 2 (m)) = (step 12 Δ 1 (m), step 12 Δ 2 (m)) [m = 1,..., 2 Ma ]. When Md = Mb, the gain correction amount candidate vectors (Δ 3 (m), Δ 4 (m)) corresponding to the ranges R3, R4 constituting the group G34 are (Δ 3 (m), Δ 4 (m )) = (step 34 Δ 1 (m), step 34 Δ 2 (m)) [m = 1,..., 2 Mb ]. When Md = Mb, the gain correction amount candidate vectors (Δ 12 (m), Δ 34 (m)) corresponding to the ranges R 12, R 34 constituting the group G 1234 are (Δ 12 (m), Δ 34 (m )) = (step 1234 Δ 1 (m), step 1234 Δ 2 (m)) [m = 1,..., 2 Mc ].

なお、下記の[符号化処理の具体例3]で説明するように、符号化部143が、第1VQ符号idx12と第2VQ符号idx34と第3VQ符号idx1234の少なくとも何れかについて、ゲイン補正量の候補を特定する符号に含まれる一部のビットのみを符号として出力する場合もある。この場合には、ゲイン補正量コードブックに含まれる符号を例えば下記のようにしておく。 Note that, as described in [Specific Example 3 of Encoding Processing] below, the encoding unit 143 performs gain correction on at least one of the first VQ code idx 12 , the second VQ code idx 34, and the third VQ code idx 1234. In some cases, only some of the bits included in the code that specifies the quantity candidates are output as the code. In this case, the codes included in the gain correction amount code book are set as follows, for example.

Mc=2の場合の第3VQのゲイン補正量コードブックについて例示する。記憶部141には、Δ12(1)とΔ34(1)とidx1234(1)との組、Δ12(2)とΔ34(2)とidx1234(2)との組、Δ12(3)とΔ34(3)とidx1234(3)との組、Δ12(4)とΔ34(4)とidx1234(4)との組、の4組が第3VQのゲイン補正量コードブックとして格納されている。ここで、idx1234(1)を{0,0}の2ビット、idx1234(2)を{1,0}の2ビット、idx1234(3)を{0,1}の2ビット、idx1234(2)を{1,1}の2ビット、としておく。 An example of the third VQ gain correction amount codebook in the case of Mc = 2 will be described. The storage unit 141 includes a set of Δ 12 (1), Δ 34 (1) and idx 1234 (1), a set of Δ 12 (2), Δ 34 (2) and idx 1234 (2), Δ 12 (3), Δ 34 (3) and idx 1234 (3), and Δ 12 (4), Δ 34 (4), and idx 1234 (4) Stored as a codebook. Here, idx 1234 (1) is 2 bits of {0,0}, idx 1234 (2) is 2 bits of {1,0}, idx 1234 (3) is 2 bits of {0,1}, idx 1234 Let (2) be 2 bits of {1,1}.

<ビット割当部142>
ゲイン補正量符号化部140のビット割当部142は、範囲R1に対応するゲイン補正量、範囲R2に対応するゲイン補正量、範囲R3に対応するゲイン補正量、範囲R4に対応するゲイン補正量、範囲R12に対応するゲイン補正量、範囲34に対応するゲイン補正量の6個のゲイン補正量のうちの大きな範囲に対応するゲイン補正量に優先してビットを割り当てる。すなわち、範囲R12に対応するゲイン補正量と、範囲R34に対応するゲイン補正量とに優先してビットを割り当てる。
<Bit allocation unit 142>
The bit allocation unit 142 of the gain correction amount encoding unit 140 includes a gain correction amount corresponding to the range R1, a gain correction amount corresponding to the range R2, a gain correction amount corresponding to the range R3, a gain correction amount corresponding to the range R4, Bits are assigned in preference to the gain correction amount corresponding to a large range among the six gain correction amounts of the gain correction amount corresponding to the range R12 and the gain correction amount corresponding to the range 34. That is, bits are assigned with priority over the gain correction amount corresponding to the range R12 and the gain correction amount corresponding to the range R34.

言い換えれば、第1VQ符号と第2VQ符号と第3VQ符号のうち、より大きな範囲に対応する第3VQ符号に優先してビットを割り当てる。また、第1VQ符号と第2VQ符号については、より周波数が低い範囲に対応する第1VQ符号に優先してビットを割り当てる。具体的なビットの割り当て方法は以下の通りである。   In other words, bits are allocated in preference to the third VQ code corresponding to a larger range among the first VQ code, the second VQ code, and the third VQ code. For the first VQ code and the second VQ code, bits are assigned with priority over the first VQ code corresponding to a lower frequency range. A specific bit allocation method is as follows.

入力されたゲイン修正ビット数UgがMc以下である場合は、範囲R12,R34にそれぞれ対応するゲイン補正量Δ12(mc),Δ34(mc)にビットが割り当てられるが、範囲R1,R2,R3,囲R4にそれぞれ対応するゲイン補正量Δ1(ma),Δ2(ma),Δ3(mb),Δ4(mb)にはビットが割り当てられない。したがって、この場合、ビット割当部142は、第3VQのみを行い第3VQ符号idx1234をゲイン補正量符号として出力する指示を符号化部143に対して行う。 When the input gain correction bit number U g is equal to or smaller than Mc, bits are assigned to gain correction amounts Δ 12 (mc) and Δ 34 (mc) corresponding to the ranges R12 and R34, respectively, but the ranges R1 and R2 , R3, and R4, no bits are assigned to the gain correction amounts Δ 1 (ma), Δ 2 (ma), Δ 3 (mb), and Δ 4 (mb), respectively. Therefore, in this case, the bit allocation unit 142 instructs the encoding unit 143 to perform only the third VQ and output the third VQ code idx 1234 as the gain correction amount code.

入力されたゲイン修正ビット数UgがMcより大きくMa+Mc以下である場合は、範囲R12,R34にそれぞれ対応するゲイン補正量Δ12(mc),Δ34(mc)及び範囲R1,R2にそれぞれ対応するゲイン補正量Δ1(ma),Δ2(ma)にビットが割り当てられるが、範囲R3,R4にそれぞれ対応するゲイン補正量Δ3(mb),Δ4(mb)にはビットが割り当てられない。したがって、この場合、ビット割当部142は、第3VQと第1VQとを行い第3VQ符号idx1234と第1VQ符号idx12とをゲイン補正量符号として出力する指示を符号化部143に対して行う。 When the input gain correction bit number U g is greater than Mc and less than or equal to Ma + Mc, the gain correction amounts Δ 12 (mc) and Δ 34 (mc) corresponding to the ranges R12 and R34, respectively, and the ranges R1 and R2, respectively. Bits are assigned to the gain correction amounts Δ 1 (ma) and Δ 2 (ma) to be performed, but bits are assigned to the gain correction amounts Δ 3 (mb) and Δ 4 (mb) corresponding to the ranges R3 and R4, respectively. Absent. Therefore, in this case, the bit allocation unit 142 performs the third VQ and the first VQ, and instructs the encoding unit 143 to output the third VQ code idx 1234 and the first VQ code idx 12 as gain correction amount codes.

入力されたゲイン修正ビット数UgがMa+Mcより大きい場合は、範囲R1,R2,R3,R4,R12,R34のそれぞれに対応するゲイン補正量Δ1(ma),Δ2(ma),Δ3(mb),Δ4(mb),Δ3(mb),Δ4(mb)にビットが割り当てられる。この場合、ビット割当部142は、第3VQと第1VQと第2VQとを行い第3VQ符号idx1234と第1VQ符号idx12と第2VQ符号idx34とをゲイン補正量符号として出力する指示を符号化部143に対して行う。 When the input gain correction bit number U g is larger than Ma + Mc, gain correction amounts Δ 1 (ma), Δ 2 (ma), Δ 3 corresponding to the ranges R1, R2, R3, R4, R12, R34, respectively. Bits are assigned to (mb), Δ 4 (mb), Δ 3 (mb), and Δ 4 (mb). In this case, the bit allocation unit 142 performs the third VQ, the first VQ, and the second VQ, and encodes an instruction to output the third VQ code idx 1234 , the first VQ code idx 12, and the second VQ code idx 34 as gain correction amount codes. To the unit 143.

なお、入力されたゲイン修正ビット数Ugが0以下である場合は、何れの範囲にもビットは割り当てられず、ビット割当部142は、符号化部143に対する指示は行わない。 When the input gain correction bit number U g is 0 or less, no bit is allocated to any range, and the bit allocation unit 142 does not give an instruction to the encoding unit 143.

<符号化部143>
符号化部143には、ビット割当部142からの指示と、入力信号系列X(ω) [ω∈{Lmin,…,Lmax}]と、量子化グローバルゲインg^と、修正後量子化正規化済み信号系列X^’Q(ω) [ω∈{Lmin,…,Lmax}]と区分情報が入力される。
<Encoding unit 143>
The encoding unit 143 includes an instruction from the bit allocation unit 142, an input signal sequence X (ω) [ω∈ {L min ,..., L max }], a quantized global gain g ^, and a corrected quantized signal. Normalized signal sequence X ^ ′ Q (ω) [ω∈ {L min ,..., L max }] and classification information are input.

符号化部143は、各区分された範囲に対応する複数個のゲイン補正量の候補の中から、所定の誤差を最小にするゲイン補正量を選択する。また、符号化部143は、選択されたゲイン補正量を特定するためのゲイン補正量符号を出力する。   The encoding unit 143 selects a gain correction amount that minimizes a predetermined error from among a plurality of gain correction amount candidates corresponding to the divided ranges. Further, the encoding unit 143 outputs a gain correction amount code for specifying the selected gain correction amount.

各グループを構成するa個の範囲はそれぞれゲイン補正量候補ベクトルを構成するa個のゲイン補正量の候補に対応付けされているため、符号化部143は、複数のゲイン補正量候補ベクトルの中から所定の誤差を最小にするゲイン補正量候補ベクトルを各グループごとに特定するためのゲイン補正量符号を出力すると考えてもよい。   Since the a ranges constituting each group are respectively associated with a gain correction amount candidates constituting the gain correction amount candidate vector, the encoding unit 143 includes a plurality of gain correction amount candidate vectors. It may be considered that a gain correction amount code for specifying a gain correction amount candidate vector that minimizes a predetermined error for each group is output.

所定の誤差とは、各区分された範囲についての複数個のゲイン補正量で量子化グローバルゲインをその各区分された範囲ごとに補正して得られるゲインに修正後量子化正規化済み信号系列X^’Q(ω) [ω∈{Lmin,…,Lmax}]の各サンプルの値を乗算して得られる信号系列と入力信号系列X(ω) [ω∈{Lmin,…,Lmax}]との誤差のことである。具体的には、所定の誤差は、式(D1)、式(D3)、式(D5)で定義された加算値である。 The predetermined error is a quantized normalized signal sequence X after correction to a gain obtained by correcting the quantized global gain for each divided range with a plurality of gain correction amounts for each divided range. ^ ' Q (ω) The signal sequence obtained by multiplying the values of each sample of [ω∈ {L min , ..., L max }] and the input signal series X (ω) [ω∈ {L min , ..., L max }]. Specifically, the predetermined error is an addition value defined by the equations (D1), (D3), and (D5).

[符号化処理の具体例1:3つの場合で異なる加算式を用いる例]
具体例1は、入力されたゲイン修正ビット数UgがMcまたはMc+MaまたはMc+Ma+Mbの何れかである場合の例である。
[Specific Example of Encoding Process 1: Example Using Different Addition Formulas in Three Cases]
Specific example 1 is an example in which the input gain correction bit number U g is either Mc, Mc + Ma, or Mc + Ma + Mb.

(a) 入力されたゲイン修正ビット数UgがMcである場合
入力されたゲイン修正ビット数UgがMcである場合は、第3VQのみを行い第3VQ符号idx1234をゲイン補正量符号として出力する指示がビット割当部142から行われる。この場合は、符号化部143は、まず、1から2Mcのそれぞれのmcについて、式(D1)で定義される加算値を計算する。なお、式(D1)において、区間[Lmin,L(2)-1]が範囲R12に対応し、区間[L(2),Lmax]が範囲R34に対応している。
(a) When the input gain correction bit number U g is Mc When the input gain correction bit number U g is Mc, only the third VQ is performed and the third VQ code idx 1234 is output as the gain correction amount code An instruction to do this is given from the bit allocation unit 142. In this case, the encoding unit 143 first calculates an addition value defined by Expression (D1) for each mc of 1 to 2 Mc . In the equation (D1), the section [L min , L (2) −1] corresponds to the range R12, and the section [L (2) , L max ] corresponds to the range R34.

Figure 0005840101
Figure 0005840101

式(D1)で定義される加算値は、量子化グローバルゲインg^と範囲R12のゲイン補正量の候補Δ12(mc)とを加算して得られる値と範囲R12の修正後量子化正規化済み信号系列X^’Q(ω) [ω∈{Lmin,…,L(2)-1}]の各サンプルの値とを乗算して得られる信号系列と範囲R12の入力信号系列X(ω) [ω∈{Lmin,…,L(2)-1}]との対応するサンプル同士の差の二乗和と、量子化グローバルゲインg^と範囲R34のゲイン補正量の候補Δ34(mc)とを加算して得られる値と範囲34の修正後量子化正規化済み信号系列X^’Q(ω) [ω∈{L(2),…,Lmax}]の各サンプルの値とを乗算して得られる信号系列と範囲R34の入力信号系列X(ω)[ω∈{L(2),…,Lmax}]との対応するサンプル同士の差の二乗和と、の加算値である。 The added value defined by the equation (D1) is a value obtained by adding the quantized global gain g ^ and the gain correction amount candidate Δ 12 (mc) in the range R12 and the corrected quantization normalization in the range R12. Signal sequence X ^ ′ Q (ω) [ω∈ {L min ,..., L (2) −1}] multiplied by the value of each sample and the input signal sequence X ( ω) [ω∈ {L min ,..., L (2) −1}] corresponding to the sum of squares of the difference between samples, the quantized global gain g ^ and the gain correction amount candidate Δ 34 (in the range R34) mc) and the value of each sample of the corrected quantized normalized signal sequence X ^ ′ Q (ω) [ω∈ {L (2) ,..., L max }] in the range 34 And the sum of squares of the difference between corresponding samples of the signal sequence obtained by multiplying and the input signal sequence X (ω) [ω∈ {L (2) ,..., L max }] in the range R34 Value.

次に、符号化部143は、この加算値を最小にするmcを選択して、この選択されたmcに対応する符号idx1234(mc)を第3VQ符号idx1234として出力する。この例では、この第3VQ符号idx1234が、ゲイン補正量符号idxとなる。第3VQ符号idx1234は式(D2)により求まる。 Next, the encoding unit 143 selects mc that minimizes the addition value, and outputs the code idx 1234 (mc) corresponding to the selected mc as the third VQ code idx 1234 . In this example, the third VQ code idx 1234 becomes the gain correction amount code idx. The third VQ code idx 1234 is obtained by the equation (D2).

Figure 0005840101
Figure 0005840101

(b) 入力されたゲイン修正ビット数UgがMc+Maである場合
入力されたゲイン修正ビット数UgがMc+Maである場合は、第3VQと第1VQとを行い第3VQ符号idx1234と第1VQ符号idx12をゲイン補正量符号として出力する指示がビット割当部142から行われる。この場合は、符号化部143は、まず、1から2Mcの何れかであるmcと1から2Maの何れかであるmaとの組(mc,ma)のそれぞれについて、式(D3)で定義される加算値を計算する。なお、式(D3)において、区間[Lmin,L(1)-1]が範囲R1に対応し、区間[L(1),L(2)-1]が範囲R2に対応し、区間[Lmin,L(2)-1]が範囲R12に対応し、区間[L(2),Lmax]が範囲R34に対応している。
(b) When the input gain correction bit number U g is Mc + Ma When the input gain correction bit number U g is Mc + Ma, the third VQ and the first VQ are performed, and the third VQ code idx 1234 The bit allocation unit 142 instructs to output the first VQ code idx 12 as a gain correction amount code. In this case, the coding unit 143, first, for each set from mc and 1 is any one of 1 to 2 Mc and ma is either 2 Ma (mc, ma), the formula (D3) Calculate the added value to be defined. In Formula (D3), the section [L min , L (1) -1] corresponds to the range R1, the section [L (1) , L (2) -1] corresponds to the range R2, and the section [ L min , L (2) −1] corresponds to the range R12, and the section [L (2) , L max ] corresponds to the range R34.

Figure 0005840101
Figure 0005840101

式(D3)で定義される加算値は、量子化グローバルゲインg^と範囲R12のゲイン補正量の候補Δ12 (mc)と範囲R1のゲイン補正量の候補Δ1 (ma)とを加算して得られる値と範囲R1の修正後量子化正規化済み信号系列X^’Q(ω) [ω∈{Lmin,…,L(1)-1}]の各サンプルの値とを乗算して得られる信号系列と範囲R1の入力信号系列X(ω) [ω∈{Lmin,…,L(1)-1}]との対応するサンプル同士の差の二乗和と、量子化グローバルゲインg^と範囲R12のゲイン補正量の候補Δ12 (mc)と範囲R2のゲイン補正量の候補Δ2 (ma)とを加算して得られる値と範囲R2の修正後量子化正規化済み信号系列X^’Q(ω) [ω∈{L(1),…,L(2)-1}]の各サンプルの値とを乗算して得られる信号系列と範囲R2の入力信号系列X(ω) [ω∈{L(1),…,L(2)-1}]との対応するサンプル同士の差の二乗和と、量子化グローバルゲインg^と範囲R34のゲイン補正量の候補Δ34(mc)とを加算して得られる値と範囲R34の修正後量子化正規化済み信号系列X^’Q(ω) [ω∈{L(2),…,Lmax}]の各サンプルの値とを乗算して得られる信号系列と範囲R34の入力信号系列X(ω)[ω∈{L(2),…,Lmax}]との対応するサンプル同士の差の二乗和と、の加算値である。 The added value defined by the equation (D3) is obtained by adding the quantized global gain g ^, the gain correction amount candidate Δ 12 (mc) in the range R12, and the gain correction amount candidate Δ 1 (ma) in the range R1. Is multiplied by the value of each sample of the corrected quantized normalized signal sequence X ^ ′ Q (ω) [ω∈ {L min ,..., L (1) −1}] in the range R1. Sum of squares of differences between corresponding samples of the signal sequence obtained in this way and the input signal sequence X (ω) [ω∈ {L min ,..., L (1) −1}] in the range R1, and the quantized global gain The value obtained by adding g ^, the gain correction amount candidate Δ 12 (mc) of the range R12 and the gain correction amount candidate Δ 2 (ma) of the range R2, and the corrected quantized normalized signal of the range R2 The sequence X ^ ′ Q (ω) [ω∈ {L (1) ,..., L (2) −1}] multiplied by the value of each sample and the input signal sequence X (( ω) [ω∈ {L (1 ), ..., L (2) -1}] corresponding to the And square sum of the difference between the sample, the quantization global gain g ^ and the gain correction amount candidate delta 34 (mc) and the corrected quantized normalized signal sequence of values obtained by adding the range R34 ranging R34 X ^ ′ Q (ω) [ω∈ {L (2) ,..., L max }] multiplied by the value of each sample and the input signal series X (ω) [ω∈ {L (2) ,..., L max }] and the sum of squares of the differences between the corresponding samples.

次に、符号化部143は、この加算値が最小となるmcとmaとの組に対応する符号idx1234(mc)を第3VQ符号idx1234とし符号idx12 (ma) を第1VQ符号idx12として、第3VQ符号idx1234と第1VQ符号idx12とゲイン補正量符号idxとして出力する。第3VQ符号idx1234と第1VQ符号idx12は式(D4)により求まる。 Next, the encoding unit 143 sets the code idx 1234 (mc) corresponding to the pair of mc and ma that minimizes the added value as the third VQ code idx 1234 and sets the code idx 12 (ma) as the first VQ code idx 12. As the third VQ code idx 1234 , the first VQ code idx 12, and the gain correction amount code idx. The third VQ code idx 1234 and the first VQ code idx 12 are obtained by the equation (D4).

Figure 0005840101
Figure 0005840101

(c) 入力されたゲイン修正ビット数UgがMc+Ma+Mbである場合
入力されたゲイン修正ビット数UgがMc+Ma+Mbである場合は、第3VQと第1VQと第2VQを行い第3VQ符号idx1234と第1VQ符号idx12と第2VQ符号idx34をゲイン補正量符号として出力する指示がビット割当部142から行われる。この場合は、符号化部143は、まず、1から2Mcの何れかであるmcと1から2Maの何れかであるmaと1から2Mbの何れかであるmbとの組(mc,ma,mb)のそれぞれについて、式(D5)で定義される加算値を計算する。なお、式(D5)において、区間[Lmin,L(1)-1]が範囲R1に対応し、区間[L(1),L(2)-1]が範囲R2に対応し、区間[L(2),L(3)-1]が範囲R3に対応し、区間[L(3),Lmax]が範囲R4に対応し、区間[Lmin,L(2)-1]が範囲R12に対応し、区間[L(2),Lmax]が範囲R34に対応している。
(c) When the input gain correction bit number U g is Mc + Ma + Mb When the input gain correction bit number U g is Mc + Ma + Mb, the third VQ, the first VQ, and the second VQ are The bit allocation unit 142 instructs to output the third VQ code idx 1234 , the first VQ code idx 12 and the second VQ code idx 34 as gain correction amount codes. In this case, the encoding unit 143 firstly sets a pair (mc, 1) of mc that is any one of 1 to 2 Mc , ma that is any one of 1 to 2 Ma , and mb that is any one of 1 to 2 Mb . For each of ma, mb), the addition value defined by equation (D5) is calculated. In the equation (D5), the section [L min , L (1) -1] corresponds to the range R1, the section [L (1) , L (2) -1] corresponds to the range R2, and the section [ L (2) , L (3) -1] corresponds to range R3, section [L (3) , L max ] corresponds to range R4, and section [L min , L (2) -1] ranges Corresponding to R12, the section [L (2) , L max ] corresponds to the range R34.

Figure 0005840101
Figure 0005840101

式(D5)で定義される加算値は、量子化グローバルゲインg^と範囲R12のゲイン補正量の候補Δ12(mc)と範囲R1のゲイン補正量の候補Δ1(ma)とを加算して得られる値と範囲R1の修正後量子化正規化済み信号系列X^’Q(ω) [ω∈{Lmin,…,L(1)-1}]の各サンプルの値とを乗算して得られる信号系列と範囲R1の入力信号系列X(ω) [ω∈{Lmin,…,L(1)-1}]との対応するサンプル同士の差の二乗和と、量子化グローバルゲインg^と範囲R12のゲイン補正量の候補Δ12(mc)と範囲R1のゲイン補正量の候補Δ2(ma)とを加算して得られる値と範囲R2の修正後量子化正規化済み信号系列X^’Q(ω) [ω∈{L(1),…,L(2)-1}]の各サンプルの値とを乗算して得られる信号系列と範囲R2の入力信号系列X(ω) [ω∈{L(1),…,L(2)-1}]との対応するサンプル同士の差の二乗和と、量子化グローバルゲインg^と範囲R34のゲイン補正量の候補Δ34(mc)と範囲R3のゲイン補正量の候補Δ3(mb)とを加算して得られる値と範囲R3の修正後量子化正規化済み信号系列X^’Q(ω) [ω∈{L(2),…,L(3)-1}]の各サンプルの値とを乗算して得られる信号系列と範囲R3の入力信号系列X(ω) [ω∈{L(2),…,L(3)-1}]との対応するサンプル同士の差の二乗和と、量子化グローバルゲインg^と範囲R34のゲイン補正量の候補Δ34(mc)と範囲R4のゲイン補正量の候補Δ4(mb)とを加算して得られる値と範囲R4の修正後量子化正規化済み信号系列X^’Q(ω) [ω∈{L(3),…,Lmax}]の各サンプルの値とを乗算して得られる信号系列と範囲R3の入力信号系列X(ω) [ω∈{L(3),…,Lmax}]との対応するサンプル同士の差の二乗和と、の加算値である。 The added value defined by the equation (D5) is obtained by adding the quantized global gain g ^, the gain correction amount candidate Δ 12 (mc) in the range R12, and the gain correction amount candidate Δ 1 (ma) in the range R1. Is multiplied by the value of each sample of the corrected quantized normalized signal sequence X ^ ′ Q (ω) [ω∈ {L min ,..., L (1) −1}] in the range R1. Sum of squares of differences between corresponding samples of the signal sequence obtained in this way and the input signal sequence X (ω) [ω∈ {L min ,..., L (1) −1}] in the range R1, and the quantized global gain The value obtained by adding g ^ and the gain correction amount candidate Δ 12 (mc) in the range R12 and the gain correction amount candidate Δ 2 (ma) in the range R1 and the corrected quantized normalized signal in the range R2 The sequence X ^ ′ Q (ω) [ω∈ {L (1) ,..., L (2) −1}] multiplied by the value of each sample and the input signal sequence X (( ω) [ω∈ {L (1 ), ..., L (2) -1}] corresponding to the And square sum of the differences between the sample obtained by adding the quantized global gain g ^ and scope gain correction amount candidate delta 34 of R34 (mc) and the gain correction amount candidate delta 3 range R3 (mb) Multiplying the value by the value of each sample of the modified quantized normalized signal sequence X ^ ' Q (ω) [ω∈ {L (2) , ..., L (3) -1}] in the range R3 The sum of squares of the difference between corresponding samples of the obtained signal sequence and the input signal sequence X (ω) [ω∈ {L (2) ,..., L (3) -1}] in the range R3, and the quantization global A value obtained by adding the gain g ^, the gain correction amount candidate Δ 34 (mc) of the range R34, and the gain correction amount candidate Δ 4 (mb) of the range R4 and the corrected quantization normalized value of the range R4 Signal sequence X ^ ′ Q (ω) [ω∈ {L (3) ,..., L max }] multiplied by the value of each sample and the input signal sequence X (ω) [ The corresponding sun with ω∈ {L (3) ,…, L max }] The sum of squared differences between pulls.

次に、符号化部143は、この加算値が最小となるmcとmaとmbの組に対応する符号idx1234(mc)を第3VQ符号idx1234とし符号idx12(ma)を第1VQ符号idx12とし符号idx34(mb) を第2VQ符号idx34として、第3VQ符号idx1234と第1VQ符号idx12と第2VQ符号idx34とをゲイン補正量符号idxとして出力する。第3VQ符号idx1234と第1VQ符号idx12と第2VQ符号idx34は式(D6)により求まる。 Next, the encoding unit 143 sets the code idx 1234 (mc) corresponding to the set of mc, ma, and mb that minimizes the added value as the third VQ code idx 1234 and sets the code idx 12 (ma) as the first VQ code idx. 12 , the code idx 34 (mb) is output as the second VQ code idx 34 , and the third VQ code idx 1234 , the first VQ code idx 12, and the second VQ code idx 34 are output as the gain correction amount code idx. The third VQ code idx 1234 , the first VQ code idx 12, and the second VQ code idx 34 are obtained by the equation (D6).

Figure 0005840101
Figure 0005840101

[符号化処理の具体例2:3つの場合で同じ加算式を用いる例]
具体例2も、具体例1と同様に、入力されたゲイン修正ビット数UgがMcまたはMc+MaまたはMc+Ma+Mbの何れかである場合の例である。
[Specific example of encoding process 2: Example using the same addition formula in three cases]
Specific example 2 is also an example in the case where the input gain correction bit number U g is either Mc, Mc + Ma, or Mc + Ma + Mb, as in specific example 1.

具体例1では、式(D1)と式(D3)と式(D5)の何れかによって加算値を求めたが、具体例2では式(D5)のみによって加算値を求める。   In the first specific example, the addition value is obtained by any one of the equations (D1), (D3), and (D5). In the second specific example, the addition value is obtained only by the equation (D5).

(a) 入力されたゲイン修正ビット数UgがMcである場合
入力されたゲイン修正ビット数UgがMcである場合は、範囲R12,R34にそれぞれ対応するゲイン補正量Δ12(mc),Δ34(mc)にビットが割り当てられるが、範囲R1,R2,R3,R4にそれぞれ対応するゲイン補正量Δ1(ma),Δ2(ma),Δ3(mb),Δ4(mb)にはビットが割り当てられない。この場合、第3VQのみを行い第3VQ符号idx1234をゲイン補正量符号として出力する指示がビット割当部142から行われる。
(a) When the input gain correction bit number U g is Mc When the input gain correction bit number U g is Mc, the gain correction amount Δ 12 (mc), corresponding to the ranges R12 and R34, respectively. Although bits are assigned to Δ 34 (mc), gain correction amounts Δ 1 (ma), Δ 2 (ma), Δ 3 (mb), Δ 4 (mb) corresponding to ranges R1, R2, R3, and R4, respectively. No bits are assigned to. In this case, an instruction to perform only the third VQ and output the third VQ code idx 1234 as a gain correction amount code is issued from the bit allocation unit 142.

符号化部143は、Δ1(ma),Δ2(ma),Δ3(mb),Δ4(mb)を0として、1から2Mcのmcそれぞれについて、式(D5)により定義される加算値を求める。そして、符号化部143は、式(D5)により定義される加算値を最小にするmcを選択し、この選択されたmcに対応する符号idx1234(mc)を第3VQ符号idx1234として出力する。この例では、この第3VQ符号idx1234が、ゲイン補正量符号idxとなる。 The encoding unit 143 defines Δ 1 (ma), Δ 2 (ma), Δ 3 (mb), and Δ 4 (mb) as 0, and defines mc from 1 to 2 Mc by equation (D5). Find the added value. Then, the encoding unit 143 selects mc that minimizes the addition value defined by the equation (D5), and outputs the code idx 1234 (mc) corresponding to the selected mc as the third VQ code idx 1234 . . In this example, the third VQ code idx 1234 becomes the gain correction amount code idx.

(b) 入力されたゲイン修正ビット数UgがMc+Maである場合
入力されたゲイン修正ビット数UgがMc+Maである場合は、範囲R12,R34にそれぞれ対応するゲイン補正量Δ12(mc),Δ34(mc)及び範囲R1,R2にそれぞれ対応するゲイン補正量Δ1(ma),Δ2(ma)にビットが割り当てられるが、範囲R3,R4にそれぞれ対応するゲイン補正量Δ3(mb),Δ4(mb)にはビットが割り当てられない。この場合、第3VQと第1VQを行い第3VQ符号idx1234と第1VQ符号idx12をゲイン補正量符号として出力する指示がビット割当部142から行われる。
(b) When the input gain correction bit number U g is Mc + Ma When the input gain correction bit number U g is Mc + Ma, the gain correction amount Δ 12 corresponding to the ranges R12 and R34, respectively. Bits are assigned to gain correction amounts Δ 1 (ma) and Δ 2 (ma) corresponding to (mc), Δ 34 (mc) and ranges R1 and R2, respectively, but gain correction amounts corresponding to ranges R3 and R4, respectively. No bits are assigned to Δ 3 (mb) and Δ 4 (mb). In this case, an instruction to perform the third VQ and the first VQ and output the third VQ code idx 1234 and the first VQ code idx 12 as a gain correction amount code is issued from the bit allocation unit 142.

符号化部143は、この場合は、Δ3(mb),Δ4(mb)を0として、1から2Mcの何れかであるmc及び1から2Maの何れかであるmaの組(mc,ma)のそれぞれについて、式(D5)により定義される加算値を求める。そして、符号化部143は、この加算値が最小となる最小となるmcとmaに対応する符号idx1234(mc)を第3VQ符号idx1234とし符号idx12 (ma)を第1VQ符号idx12とし、第3VQ符号idx1234と第1VQ符号idx12とをゲイン補正量符号idxとして出力する。 Encoding unit 143, in this case, Δ 3 (mb), Δ 4 a (mb) as 0, ma set from mc and 1 is any one of 1 to 2 Mc are either 2 Ma (mc , ma), an addition value defined by the equation (D5) is obtained. Then, the encoding unit 143 sets the code idx 1234 (mc) corresponding to the minimum mc and ma that minimizes the addition value as the third VQ code idx 1234 and the code idx 12 (ma) as the first VQ code idx 12. The third VQ code idx 1234 and the first VQ code idx 12 are output as the gain correction amount code idx.

(c) 入力されたゲイン修正ビット数UgがMc+Ma+Mbである場合
入力されたゲイン修正ビット数UgがMc+Ma+Mcである場合は、すべての範囲R1,R2,R3,R4,R12,R34のそれぞれにビットが割り当てられる。この場合、第3VQと第1VQと第2VQを行い第3VQ符号idx1234と第1VQ符号idx12と第2VQ符号idx34をゲイン補正量符号として出力する指示がビット割当部142から行われる。
(c) When the input gain correction bit number U g is Mc + Ma + Mb When the input gain correction bit number U g is Mc + Ma + Mc, all ranges R1, R2, R3 A bit is assigned to each of R4, R12, and R34. In this case, an instruction to perform the third VQ, the first VQ, and the second VQ and output the third VQ code idx 1234 , the first VQ code idx 12, and the second VQ code idx 34 as the gain correction amount code is issued from the bit allocation unit 142.

符号化部143は、具体例1と同様に加算値を式(D5)により求め、この加算値が最小となる最小となるmcに対応する符号idx1234(mc) を第3VQ符号idx1234とし符号idx12 (ma) を第1VQ符号idx12とし符号idx34 (ma) を第2VQ符号idx34とし、第3VQ符号idx1234と第1VQ符号idx12と第2VQ符号idx34とをゲイン補正量符号idxとして出力する。 The encoding unit 143 obtains the addition value by the equation (D5) as in the first specific example, and sets the code idx 1234 (mc) corresponding to the minimum mc that minimizes the addition value as the third VQ code idx 1234. idx 12 (ma) is the first VQ code idx 12 and code idx 34 (ma) is the second VQ code idx 34 , and the third VQ code idx 1234 , the first VQ code idx 12 and the second VQ code idx 34 are the gain correction amount code idx. Output as.

このように、ビットが割り当てられなかったゲイン補正量は、記憶部141に格納されたものではなく0とされるため、補正を行わないことに対応するゲイン補正量と考えることができる。例えば、上記の「(a) 入力されたゲイン修正ビット数UgがMcである場合」では、ビットが割り当てられなかったゲイン補正量であるΔ1(ma),Δ2(ma),Δ3(mb),Δ4(mb)が、補正を行わないことに対応するゲイン補正量となる。 As described above, the gain correction amount to which no bit is assigned is not stored in the storage unit 141 but is set to 0. Therefore, it can be considered as a gain correction amount corresponding to the fact that no correction is performed. For example, in the above “(a) When the number of input gain correction bits U g is Mc”, Δ 1 (ma), Δ 2 (ma), Δ 3 which are gain correction amounts to which no bits are assigned. (mb) and Δ 4 (mb) are gain correction amounts corresponding to not performing correction.

[符号化処理の具体例3:ゲイン修正ビット数が半端な場合を含む例]
具体例3は、入力されたゲイン修正ビット数UgがMcとMc+MaとMc+Ma+Mb以外も含む場合、すなわち、入力されたゲイン修正ビット数Ugが1以上の値の何れかである場合の例である。
[Specific example 3 of encoding process: an example including a case where the number of gain correction bits is odd]
In the third example, when the input gain correction bit number U g includes other than Mc, Mc + Ma, and Mc + Ma + Mb, that is, the input gain correction bit number U g is any one of 1 or more. It is an example in the case of.

(a) 入力されたゲイン修正ビット数Ugが0より大きくMc以下である場合 (0<U≦Mc)
入力されたゲイン修正ビット数Ugが0より大きくMc以下である場合は、第3VQのみを行い第3VQ符号idx1234をゲイン補正量符号として出力する指示がビット割当部142から行われる。
(a) When the number of input gain correction bits U g is greater than 0 and less than or equal to Mc (0 <U ≦ Mc)
If the input gain correction bit number U g is greater than 0 and less than or equal to Mc, the bit allocation unit 142 instructs to perform only the third VQ and output the third VQ code idx 1234 as the gain correction amount code.

この場合は、符号化部143は、2Ug+1から2 Mcの範囲にある全てのmcについてΔ12(mc),Δ34(mc)を0とし、1からMaの全てのmaについてΔ1(ma),Δ2(ma)を0とし、1からMbの全てのmbについてΔ3(mb),Δ4(mb)を0として、加算値を式(D5)により求める。 In this case, the encoding unit 143 sets Δ 12 (mc) and Δ 34 (mc) to 0 for all mcs in the range of 2 Ug +1 to 2 Mc , and Δ 1 for all ma from 1 to Ma. (ma) and Δ 2 (ma) are set to 0, and Δ 3 (mb) and Δ 4 (mb) are set to 0 for all mb from 1 to Mb, and the added value is obtained by the equation (D5).

そして、符号化部143は、この加算値が最小となるmcに対応する符号idx1234(mc)のうち1から2 Ugの全てのmcを区別できるUgビットの部分を第3VQ符号idx1234とし、この第3VQ符号idx1234をゲイン補正量符号idxとして出力する。 Then, the encoding unit 143 sets, as the third VQ code idx 1234 , a portion of the U g bit that can distinguish all mcs of 1 to 2 Ug from the code idx 1234 (mc) corresponding to mc that minimizes the addition value. The third VQ code idx 1234 is output as the gain correction amount code idx.

例えば、Ug=1、Mc=2の場合であれば、idx1234(1)の{0,0}の2ビットのうち1ビット目である{0}、または、idx1234(2)の{1,0}の2ビットのうち1ビット目である{1}を第3VQ符号idx1234とする。 For example, in the case of U g = 1 and Mc = 2, {0} which is the first bit of the {0,0} bits of idx 1234 (1) or {x of idx 1234 (2) {1}, which is the first bit of the two bits of 1,0}, is set as the third VQ code idx 1234 .

(b) 入力されたゲイン修正ビット数UgがMcより大きくMc+Ma以下である場合 (Mc<U≦Mc+Ma)
入力されたゲイン修正ビット数UgがMcより大きくMc+Ma以下である場合は、第3VQと第1VQを行い第3VQ符号idx1234と第1VQ符号idx12をゲイン補正量符号として出力する指示がビット割当部142から行われる。
(b) When the number of input gain correction bits U g is greater than Mc and less than or equal to Mc + Ma (Mc <U ≦ Mc + Ma)
When the input gain correction bit number U g is greater than Mc and less than or equal to Mc + Ma, an instruction to perform the third VQ and the first VQ and output the third VQ code idx 1234 and the first VQ code idx 12 as a gain correction amount code is issued. This is performed from the bit allocation unit 142.

この場合は、符号化部143は、2Ug-Mc+1から2Maの範囲にある全てのmaについてΔ1(ma),Δ2(ma)を0とし、1から2Mbの全てのmbについてΔ3(mb),Δ4 (mb)を0として、加算値を式(D5)により求める。 In this case, the encoding unit 143 sets Δ 1 (ma) and Δ 2 (ma) to 0 for all ma in the range of 2 Ug-Mc +1 to 2 Ma , and sets all mb of 1 to 2 Mb. And Δ 3 (mb) and Δ 4 (mb) are set to 0, and the added value is obtained by equation (D5).

そして、符号化部143は、この加算値が最小となるmcとmaに対応する符号idx1234(mc)を第3VQ符号idx1234とし、符号idx12 (ma)のうちの1から2 Ug-Mcの全てのmaを区別できるUg-Mcビットの部分を第1VQ符号idx12として、第3VQ符号idx1234と第1VQ符号idx12とをゲイン補正量符号idxとして出力する。 Then, the encoding unit 143 sets the code idx 1234 (mc) corresponding to mc and ma having the minimum addition value as the third VQ code idx 1234, and 1 to 2 Ug-Mc of the codes idx 12 (ma) A portion of U g -Mc bits that can distinguish all of ma is output as the first VQ code idx 12 , and the third VQ code idx 1234 and the first VQ code idx 12 are output as the gain correction amount code idx.

(c) 入力されたゲイン修正ビット数UgがMc+Maより大きい場合 (Mc+Ma<U)
入力されたゲイン修正ビット数UgがMc+Maより大きい場合は、第3VQと第1VQと第2VQを行い第3VQ符号idx1234と第1VQ符号idx12と第2VQ符号idx34をゲイン補正量符号として出力する指示がビット割当部142から行われる。
(c) When the input gain correction bit number U g is larger than Mc + Ma (Mc + Ma <U)
When the input gain correction bit number U g is larger than Mc + Ma, the third VQ, the first VQ, and the second VQ are performed, and the third VQ code idx 1234 , the first VQ code idx 12, and the second VQ code idx 34 are gain correction amount codes. Is output from the bit allocation unit 142.

この場合は、符号化部143は、2Ug-Mc-Ma+1から2Mbの範囲にある全てのmbについてΔ3(mb),Δ4(mb)を0として、加算値を式(D5)により求める。 In this case, the encoding unit 143 sets Δ 3 (mb) and Δ 4 (mb) to 0 for all mbs in the range of 2 Ug-Mc-Ma +1 to 2 Mb , and sets the addition value as an expression (D5 )

そして、符号化部143は、この加算値が最小となる最小となるmcとmaとmbに対応する符号idx1234(mc) を第3VQ符号idx1234とし、符号idx12(ma) を第1VQ符号idx12とし、符号idx34(mc)のうちの1から2 Ug-Mc-Maの全てのmcを区別できるUg-Mc-Maビットの部分を第2VQ符号idx34とし、第3VQ符号idx1234と第1VQ符号idx12と第2VQ符号idx34とゲイン補正量符号idxとして出力する。 Then, the encoding unit 143 sets the code idx 1234 (mc) corresponding to the minimum mc, ma, and mb that minimizes the added value as the third VQ code idx 1234, and sets the code idx 12 (ma) as the first VQ code. and idx 12, a U g -Mc-Ma-bit part that can distinguish all mc 1 to 2 Ug-Mc-Ma of the code idx 34 (mc) and the 2VQ code idx 34, the 3VQ code idx 1234 And the first VQ code idx 12 , the second VQ code idx 34, and the gain correction amount code idx.

なお、式(D2)、式(D4)、式(D6)は誤差が最小となる基準でのベクトル量子化に対応するものであるが、相関が最大となる基準でのベクトル量子化、誤差が最小または相関が最大となる基準でのスカラ量子化などの手法を適用しても良いのは当然のことである。   Note that Equation (D2), Equation (D4), and Equation (D6) correspond to the vector quantization based on the criterion that minimizes the error, but the vector quantization and error based on the criterion that maximizes the correlation Of course, a technique such as scalar quantization based on the criterion that minimizes or maximizes the correlation may be applied.

なお、各ベクトル量子化で用いるゲイン補正量の候補をひとつのゲイン補正量コードブックに格納しておき、ゲイン補正量符号を生成するようにしてもよい。   Note that gain correction amount candidates used in each vector quantization may be stored in one gain correction amount codebook to generate a gain correction amount code.

区分された範囲の個数は、2Dであるとする。2D個の区分された範囲を2k個ずつ纏めた範囲の個数は、2D/2=2D-kである。したがって、区分された範囲及び区分された範囲を2k個(kは1からD−1までの各整数)ずつ纏めた範囲の個数は、2D+Σd=1 D-1D-dであり、合計でΣd=1 Dd=2D+Σd=1 D-1D-dである。以下、A=Σd=1 Ddとする。 It is assumed that the number of divided ranges is 2D . 2 D number of segmented 2 k pieces by summarizing the number of ranges range is 2 D / 2 k = 2 Dk . Therefore, the number of the divided ranges and the ranges obtained by collecting the divided ranges by 2 k pieces (k is an integer from 1 to D-1) is 2 D + Σ d = 1 D-1 2 Dd , In total, Σ d = 1 D 2 d = 2 D + Σ d = 1 D−1 2 Dd . Hereinafter, A = Σ d = 1 D 2 d .

この場合、ゲイン補正量候補ベクトルは、A個のゲイン補正量の候補で構成されているとする。2D個の区分された範囲及びこれらの2D個の区分された範囲を2k個(kは1からD−1までの各整数)ずつ纏めた範囲は、それぞれゲイン補正量候補ベクトルを構成するA個のゲイン補正量の候補に対応付けされているものとする。 In this case, it is assumed that the gain correction amount candidate vector includes A gain correction amount candidates. 2 D number of segmented range and by collectively range of 2 D number of segmented range of 2 k pieces (each integer from k 1 to D-1), respectively constituting the gain correction amount candidate vectors Assume that these are associated with A gain correction amount candidates.

上記のD=2,k=1であり、式(D5)を用いて加算値を求める例では、A=Σd=1 2d=2+4=6となり、インデックスidx(m)のゲイン補正量候補ベクトル(Δ12(m),Δ34(m),Δ1(m),Δ2(m),Δ3(m),Δ4(m))は、6個のゲイン補正量の候補Δ12(m),Δ34(m),Δ1(m),Δ2(m),Δ3(m),Δ4(m)で構成されている。ゲイン補正量の候補Δ12(m),Δ34(m),Δ1(m),Δ2(m),Δ3(m),Δ4(m)は、それぞれ範囲R12,R34,R1,R2,R3,R4に対応している。 In the example in which D = 2 and k = 1 and the addition value is obtained using the equation (D5), A = Σd = 1 2 2 d = 2 + 4 = 6, and the gain correction amount of the index idx (m) Candidate vectors (Δ 12 (m), Δ 34 (m), Δ 1 (m), Δ 2 (m), Δ 3 (m), Δ 4 (m)) are six gain correction amount candidates Δ 12 (m), Δ 34 (m), Δ 1 (m), Δ 2 (m), Δ 3 (m), Δ 4 (m). Candidate gain correction amounts Δ 12 (m), Δ 34 (m), Δ 1 (m), Δ 2 (m), Δ 3 (m), Δ 4 (m) are ranges R12, R34, R1, respectively. It corresponds to R2, R3, R4.

ゲイン補正量コードブックには、複数のゲイン補正量候補ベクトルが格納されている。上記の例では、例えば2Me個のゲイン補正量候補ベクトル(Δ12(m),Δ34(m),Δ1(m),Δ2(m),Δ3(m),Δ4(m))[m=1,…2Me]が、ゲイン補正量コードブックに格納されている。Meは、2以上の整数である。 The gain correction amount code book stores a plurality of gain correction amount candidate vectors. In the above example, for example, 2 Me gain correction amount candidate vectors (Δ 12 (m), Δ 34 (m), Δ 1 (m), Δ 2 (m), Δ 3 (m), Δ 4 (m )) [m = 1,... 2 Me ] is stored in the gain correction amount code book. Me is an integer of 2 or more.

この場合、符号化部143は、ゲイン補正量コードブックに格納された複数のゲイン補正量候補ベクトルの中から、所定の誤差を最小にするゲイン補正量候補ベクトルを特定するゲイン補正量符号を得る。ここでの、所定の誤差は、例えば式(D5)で定義される加算値である。   In this case, the encoding unit 143 obtains a gain correction amount code that identifies a gain correction amount candidate vector that minimizes a predetermined error from among a plurality of gain correction amount candidate vectors stored in the gain correction amount codebook. . Here, the predetermined error is an added value defined by, for example, the equation (D5).

合成部160には、正規化信号符号、グローバルゲイン符号、誤差符号及びゲイン補正量符号が入力される。誤差符号及びゲイン補正量符号はまとめて修正符号とされる。合成部は、正規化信号符号、グローバルゲイン符号及び修正符号をまとめたビットストリームを出力する。ビットストリームは復号装置2へ伝送される。   The synthesizing unit 160 receives a normalized signal code, a global gain code, an error code, and a gain correction amount code. The error code and the gain correction amount code are collectively set as a correction code. The synthesis unit outputs a bit stream in which the normalized signal code, the global gain code, and the correction code are collected. The bit stream is transmitted to the decoding device 2.

[符号化部143の変形例]
ゲイン補正量符号化部140の符号化部143は、式(D1)に代えて式(D13)で定義される加算値を最小にするゲイン補正量を特定するためのゲイン補正量符号を得てもよい。
[Modification of Encoding Unit 143]
The encoding unit 143 of the gain correction amount encoding unit 140 obtains a gain correction amount code for specifying the gain correction amount that minimizes the addition value defined by the equation (D13) instead of the equation (D1). Also good.

Figure 0005840101
Figure 0005840101

s12及びs34は、例えば以下の式のように定義される。 s 12 and s 34, for example, is defined as the following equation.

Figure 0005840101
Figure 0005840101

また、符号化部143は、式(D3)に代えて式(D14)で定義される加算値を最小にするゲイン補正量を特定するためのゲイン補正量符号を得てもよい。   The encoding unit 143 may obtain a gain correction amount code for specifying a gain correction amount that minimizes the addition value defined by the equation (D14) instead of the equation (D3).

Figure 0005840101
Figure 0005840101

s1及びs2は、例えば以下の式のように定義される。 For example, s 1 and s 2 are defined as in the following equations.

Figure 0005840101
Figure 0005840101

符号化部143は、式(D5)に代えて式(D15)で定義される加算値を最小にするゲイン補正量を特定するためのゲイン補正量符号を得てもよい。   The encoding unit 143 may obtain a gain correction amount code for specifying a gain correction amount that minimizes the addition value defined by the equation (D15) instead of the equation (D5).

Figure 0005840101
Figure 0005840101

s3及びs4は、例えば以下の式のように定義される。 For example, s 3 and s 4 are defined as follows.

Figure 0005840101
Figure 0005840101

このように、量子化グローバルゲインg^を、各区分された範囲についての複数個のゲイン補正量のそれぞれと、修正後量子化正規化済み信号系列X^’Q(ω) [ω∈{Lmin,…,Lmax}]の全てのサンプル値の二乗和をそのそれぞれのゲイン補正量に対応する範囲内の全てのサンプルの値の二乗和で除算した値とを乗算した値で各区分された範囲ごとに補正してもよい。 In this way, the quantized global gain g ^ is divided into each of a plurality of gain correction amounts for each divided range, and the corrected quantized normalized signal sequence X ^ ' Q (ω) [ω∈ {L min , ..., L max }] are divided into values obtained by multiplying the sum of squares of all sample values by the value obtained by dividing the sum of squares of all sample values within the range corresponding to the respective gain correction amounts. You may correct for every range.

また、符号化部143は、式(D5)に代えて式(D16)で定義される加算値を最小にするゲイン補正量を特定するためのゲイン補正量符号を得てもよい。   Also, the encoding unit 143 may obtain a gain correction amount code for specifying a gain correction amount that minimizes the addition value defined by the equation (D16) instead of the equation (D5).

Figure 0005840101
Figure 0005840101

このように、量子化グローバルゲインg^を、各区分された範囲についての複数個のゲイン補正量を加算した値と、修正後量子化正規化済み信号系列X^’Q(ω) [ω∈{Lmin,…,Lmax}]の全てのサンプル値の二乗和を上記各区分された範囲内の全てのサンプルの値の二乗和で除算した値とを乗算した値で各区分された範囲ごとに補正してもよい。 In this way, the quantized global gain g ^ is a value obtained by adding a plurality of gain correction amounts for each divided range, and the corrected quantized normalized signal sequence X ^ ' Q (ω) [ω∈ {L min ,..., L max }] each divided range with a value obtained by multiplying the sum of squares of all sample values by the value obtained by dividing the sum of squares of the values of all samples within the above divided ranges. You may correct every.

なお、s12,s34,s1,s2,s3,s4を、それぞれ以下の式のように定義してもよい。 Note that s 12 , s 34 , s 1 , s 2 , s 3 , and s 4 may be defined as in the following equations, respectively.

Figure 0005840101
Figure 0005840101

c12は、範囲R12のサンプルのエネルギーが所定値よりも大きいサンプルの個数である。c34は、範囲R34のサンプルのエネルギーが所定値よりも大きいサンプルの個数である。c1234は、範囲R1234のサンプルのエネルギーが所定値よりも大きいサンプルの個数である。c1は、範囲R1のサンプルのエネルギーが所定値よりも大きいサンプルの個数である。c2は、範囲R2のサンプルのエネルギーが所定値よりも大きいサンプルの個数である。c3は、範囲R3のサンプルのエネルギーが所定値よりも大きいサンプルの個数である。c4は、範囲R4のサンプルのエネルギーが所定値よりも大きいサンプルの個数である。 c 12, the energy of the samples in the range R12 is the number of sample that is larger than a predetermined value. c 34, the energy of the samples in the range R34 is the number of sample that is larger than a predetermined value. c 1234 is the number of samples in which the energy of the samples in the range R1234 is larger than a predetermined value. c 1 is the number of samples in which the energy of the samples in the range R1 is larger than a predetermined value. c 2 is the energy of the samples in the range R2 is the number of sample that is larger than a predetermined value. c 3 is the number of samples in which the energy of the sample in the range R3 is larger than a predetermined value. c 4 is the energy of the samples in the range R4 is the number of sample that is larger than a predetermined value.

この場合、量子化グローバルゲインg^は、各区分された範囲についての複数個のゲイン補正量のそれぞれと、修正後量子化正規化済み信号系列X^’Q(ω) [ω∈{Lmin,…,Lmax}]のサンプルのエネルギーが所定値よりも大きいサンプルの個数をそのそれぞれのゲイン補正量に対応する範囲内のサンプルのエネルギーが上記所定値よりも大きいサンプルの個数で除算した値とを乗算した値で補正されることになる。または、量子化グローバルゲインg^は、各区分された範囲についての複数個のゲイン補正量を加算した値と、修正後量子化正規化済み信号系列X^’Q(ω) [ω∈{Lmin,…,Lmax}]のサンプルのエネルギーが所定値よりも大きいサンプルの個数を上記各区分された範囲内のサンプルのエネルギーが上記所定値よりも大きいサンプルの個数で除算した値とを乗算した値で各区分された範囲ごとに補正されることになる。 In this case, the quantized global gain g ^ includes each of a plurality of gain correction amounts for each divided range and the corrected quantized normalized signal sequence X ^ ' Q (ω) [ω∈ {L min ,..., L max }] is obtained by dividing the number of samples whose sample energy is greater than a predetermined value by the number of samples whose sample energy within a range corresponding to each gain correction amount is greater than the predetermined value. It is corrected by the value obtained by multiplying. Alternatively, the quantized global gain g ^ is a value obtained by adding a plurality of gain correction amounts for each divided range, and a corrected quantized normalized signal sequence X ^ ' Q (ω) [ω∈ {L min , ..., Lmax }] is multiplied by the number of samples whose energy is greater than a predetermined value divided by the number of samples whose energy within each of the divided ranges is greater than the predetermined value. The corrected value is corrected for each divided range.

<区分部150が行なう区分処理の詳細>
まず「各範囲のエネルギーがなるべく等しくなるように区分する基準」での区分処理について説明し、次に「各範囲に含まれる有意のサンプルの個数がなるべく等しくなるように区分する基準」での区分処理について説明する。
<Details of Sorting Process Performed by Sorting Unit 150>
First, the classification process in “Criteria for classifying energy in each range to be as equal as possible” will be explained, and then classification in “Criteria for classifying so that the number of significant samples included in each range will be as equal as possible” Processing will be described.

以下、「各範囲のエネルギーがなるべく等しくなるように区分する基準」を第1基準、「各範囲に含まれる有意のサンプルの個数がなるべく等しくなるように区分する基準」を第2基準と略記することがある。   Hereinafter, the “criteria for classifying so that the energy of each range is as equal as possible” is abbreviated as the first standard, and the “criteria for classifying so that the number of significant samples included in each range is as equal as possible” is abbreviated as the second standard. Sometimes.

「各範囲のエネルギーがなるべく等しくなるように区分する基準」での区分処理は、例えば、修正後量子化正規化済み信号系列の第nの範囲(nは1からN−1までの各整数)を、
(a) 修正後量子化正規化済み信号系列の第1の範囲から第nの範囲までに含まれる全てのサンプルの値の二乗和と、修正後量子化正規化済み信号系列の全てのサンプルの値の二乗和のN分のnと、が最も近付くように、
または、
(b) 修正後量子化正規化済み信号系列の第1の範囲から第nの範囲までに含まれる全てのサンプルの値の絶対値和と、修正後量子化正規化済み信号系列の全てのサンプルの値の絶対値和のN分のnと、が最も近付くように、
または、
(c) 修正後量子化正規化済み信号系列の第1の範囲から第nの範囲までのサンプル数の合計が、修正後量子化正規化済み信号系列の第1の範囲から第nの範囲までに含まれる全てのサンプルの値の二乗和が修正後量子化正規化済み信号系列の全てのサンプルの値の二乗和のN分のn以上となる最小のサンプル数になるように、
または、
(d) 修正後量子化正規化済み信号系列の第1の範囲から第nの範囲までのサンプル数の合計が、修正後量子化正規化済み信号系列の第1の範囲から第nの範囲までに含まれる全てのサンプルの値の絶対値和が修正後量子化正規化済み信号系列の全てのサンプルの値の絶対値和のN分のn以上となる最小のサンプル数になるように、
または、
(e) 修正後量子化正規化済み信号系列の第1の範囲から第nの範囲までのサンプル数の合計が、修正後量子化正規化済み信号系列の第1の範囲から第nの範囲までに含まれる全てのサンプルの値の二乗和が修正後量子化正規化済み信号系列の全てのサンプルの値の二乗和のN分のn以下となる最大のサンプル数になるように、
または、
(f) 修正後量子化正規化済み信号系列の第1の範囲から第nの範囲までのサンプル数の合計が、修正後量子化正規化済み信号系列の第1の範囲から第nの範囲までに含まれる全てのサンプルの値の絶対値和が修正後量子化正規化済み信号系列の全てのサンプルの値の絶対値和のN分のn以下となる最大のサンプル数になるように、
求め、
修正後量子化正規化済み信号系列のうちの第1の範囲から第N−1の範囲以外の範囲を、修正後量子化正規化済み信号系列の第Nの範囲とすることで、修正後量子化正規化済み信号系列をN個の範囲に区分することにより行なわれる。
For example, the classification process based on the “criteria for classifying the energy of each range to be as equal as possible” is, for example, the nth range of the corrected quantized normalized signal sequence (n is each integer from 1 to N−1). The
(a) The sum of squares of the values of all samples included in the first range to the n-th range of the corrected quantized normalized signal sequence and all the samples of the corrected quantized normalized signal sequence So that n of N of the sum of squares of values is closest.
Or
(b) The sum of absolute values of the values of all samples included in the first range to the nth range of the corrected quantized normalized signal sequence and all the samples of the corrected quantized normalized signal sequence So that n / N of the absolute value sum of the values of
Or
(c) The total number of samples from the first range to the n-th range of the corrected quantized normalized signal sequence is from the first range to the n-th range of the corrected quantized normalized signal sequence. So that the sum of squares of the values of all samples included in is a minimum number of samples that is not less than n / N of the sum of squares of the values of all samples of the corrected quantized normalized signal sequence.
Or
(d) The sum of the number of samples from the first range to the nth range of the corrected quantized normalized signal sequence is from the first range to the nth range of the corrected quantized normalized signal sequence. So that the absolute value sum of the values of all the samples included in is a minimum number of samples that is not less than n / N of the absolute value sum of the values of all the samples of the corrected quantized normalized signal sequence.
Or
(e) The sum of the number of samples from the first range to the nth range of the corrected quantized normalized signal sequence is from the first range to the nth range of the corrected quantized normalized signal sequence. So that the sum of squares of the values of all samples included in is the maximum number of samples that is n or less of N / N of the sum of squares of the values of all samples of the corrected quantized normalized signal sequence,
Or
(f) The total number of samples from the first range to the nth range of the corrected quantized normalized signal sequence is from the first range to the nth range of the corrected quantized normalized signal sequence. So that the absolute value sum of the values of all the samples included in is the maximum number of samples that is not more than n / N of the absolute value sum of the values of all the samples of the corrected quantized normalized signal sequence,
Seeking
A range other than the first range to the (N−1) th range in the corrected quantized normalized signal sequence is set as the Nth range of the corrected quantized normalized signal sequence, whereby the corrected quantum This is done by dividing the normalized normalized signal sequence into N ranges.

上記に例示した区分処理は、「各範囲のエネルギーがなるべく等しくなるように区分する基準」による区分を、第1の範囲から順に逐次的に決定していく方法によって実現するものである。上記に例示した区分処理によれば、少ない演算処理量で「各範囲のエネルギーがなるべく等しくなるように区分する基準」による区分を実現できる。   The classification process exemplified above is realized by a method of sequentially determining the classification based on the “standard for classifying so that the energy in each range is as equal as possible” sequentially from the first range. According to the classification process exemplified above, it is possible to realize the classification based on the “standard for classifying the energy in each range so as to be as equal as possible” with a small amount of calculation processing.

[第1基準による区分処理の第1例]
第1基準による区分処理の第1例を図4と図5と図6を用いて説明する。第1例の区分処理は上記の(a)に対応する。第1例の区分処理は、修正後量子化正規化済み信号系列の第nの範囲(nは1からN−1までの各整数)を、修正後量子化正規化済み信号系列の第1の範囲から第nの範囲までに含まれる全てのサンプルの値の二乗和と、修正後量子化正規化済み信号系列の全てのサンプルの値の二乗和のN分のnと、が最も近付くように求め、修正後量子化正規化済み信号系列のうちの第1の範囲から第N−1の範囲以外の範囲を、修正後量子化正規化済み信号系列の第Nの範囲とすることで、修正後量子化正規化済み信号系列をN個の範囲に区分する処理である。
[First example of classification processing based on the first standard]
A first example of the sorting process based on the first reference will be described with reference to FIGS. 4, 5, and 6. FIG. The sorting process of the first example corresponds to the above (a). The division processing of the first example is performed using the nth range (n is an integer from 1 to N−1) of the corrected quantized normalized signal sequence, and the first quantized normalized signal sequence of the corrected first sequence. The sum of squares of the values of all the samples included in the range to the nth range and the n of N of the squares of the values of all the samples of the corrected quantized normalized signal sequence are closest to each other. Obtaining and correcting a range other than the range from the first range to the (N-1) th range in the corrected quantized normalized signal sequence as the Nth range of the corrected quantized normalized signal sequence This is a process of dividing the post-quantization normalized signal sequence into N ranges.

[[第1基準による区分処理の第1例の具体例1:2つの範囲に区分する例]]
図4は、2つの範囲に区分する例、すなわち、N=2の場合の例である。区分対象の修正後量子化正規化済み信号系列X^’Q(ω) [ω∈{Lmin,…,Lmax}]をX^’Q(ω) [ω∈{Lmin,…,Lmid-1}]とX^’Q(ω) [ω∈{L mid,…,Lmax}]の2つの範囲に区分する例、具体的には、第1の範囲である低域と第2の範囲である高域との境界を表す情報として第2の範囲の最も低域側にあるサンプル番号であるLmidを決定する場合の例である。
[[Specific example 1 of the first example of the sorting process based on the first standard: Example of dividing into two ranges]]
FIG. 4 shows an example of dividing into two ranges, that is, an example where N = 2. The modified quantized normalized signal sequence X ^ ′ Q (ω) [ω∈ {L min ,..., L max }] to be classified is changed to X ^ ′ Q (ω) [ω∈ {L min ,. mid −1}] and X ^ ′ Q (ω) [ω∈ {L mid ,..., L max }] An example of dividing into two ranges, specifically, the first range is the low range and the second range. This is an example in which Lmid , which is the sample number on the lowest frequency side of the second range, is determined as information representing the boundary with the high frequency range of 2.

まず、修正後量子化正規化済み信号系列X^’Q(ω) [ω∈{Lmin,…,Lmax}]の全サンプルX^’Q(Lmin),…,X^’Q(Lmax)の二乗和powを求める。二乗和powは、式(2)によって求まる。 First, all samples X ^ ' Q (L min ), ..., X ^' Q () of the modified quantized normalized signal sequence X ^ ' Q (ω) [ω∈ {L min , ..., L max }] determine the sum of squares pow of L max). The sum of squares pow is obtained by equation (2).

Figure 0005840101
Figure 0005840101

次に、式(2)により求めた修正後量子化正規化済み信号系列X^’Q [ω∈{Lmin,…,Lmax}]の全サンプルX^’Q(Lmin),…,X^’Q(Lmax)の二乗和の2分の1と、修正後量子化正規化済み信号系列の第1の範囲に含まれる全てのサンプルX^’Q(Lmin),…,X^’Q(Lmid-1)の値の二乗和との差が最小となるように、第2の範囲の最も低域側にあるサンプル番号であるLmidを求める。すなわち、Lmidは式(3)によって求まる。これにより第1の範囲がX^Q [ω∈{Lmin,…,Lmid-1}]と決定する。 Next, formula corrected quantized normalized signal sequence obtained by (2) X ^ 'Q [ ω∈ {L min, ..., L max}] of all samples X ^' Q (L min) , ..., 1/2 of the sum of squares of X ^ ' Q (L max ) and all samples X ^' Q (L min ), ..., X included in the first range of the modified quantized normalized signal sequence ^ 'such that the difference between the square sum of the values of Q (L mid -1) is minimized, obtaining the L mid is a sample number in the lowest frequency side of the second range. That is, L mid is obtained by the equation (3). Accordingly, the first range is determined as X ^ Q [ω∈ {L min ,..., L mid −1}].

Figure 0005840101
Figure 0005840101

そして、修正後量子化正規化済み信号系列X^’Q [ω∈{Lmin,…,Lmax}]の第1の範囲以外の範囲、すなわち、X^’Q [ω∈{Lmid,…,Lmax}]を第2の範囲とする。 Then, a range other than the first range of the modified quantized normalized signal sequence X ^ ′ Q [ω∈ {L min ,..., L max }], that is, X ^ ′ Q [ω∈ {L mid , ..., L max }] is the second range.

以上により、修正後量子化正規化済み信号系列X^’Q [ω∈{Lmin,…,Lmax}]は2つの範囲に区分される。 As described above, the corrected quantized normalized signal sequence X ^ ′ Q [ω∈ {L min ,..., L max }] is divided into two ranges.

区分部150が出力する区分情報は、Lmidであってもよいし、Lmidに予め定めた値を演算した値であってもよいし、第1の範囲のサンプル数Lmid−Lminであってもよいし、第2の範囲のサンプル数Lmax−Lmid+1であってもよいし、要は、第1の範囲と第2の範囲とを特定できる情報であれば何でもよい。 Sorting information identifying circuit 150 outputs may be the L mid, may be a value obtained by calculating the predetermined value in the L mid, number of samples L mid -L min of the first range The number of samples in the second range may be L max −L mid +1, or anything insofar as the information can identify the first range and the second range.

[[第1基準による区分処理の第1例の具体例2:4個の範囲に区分する例]]
図5は、区分対象の修正後量子化正規化済み信号系列X^’Q(ω) [ω∈{Lmin,…,Lmax}]を4個の範囲に区分する例、具体的には、第1の範囲と第2の範囲との境界を表す情報として第2の範囲の最も低域側にあるサンプル番号であるL(1)を決定し、第2の範囲と第3の範囲との境界を表す情報として第3の範囲の最も低域側にあるサンプル番号であるL(2)を決定し、第3の範囲と第4の範囲との境界を表す情報として第4の範囲の最も低域側にあるサンプル番号であるL(3)を決定する例である。
[[Example 2 of first example of sorting process based on first standard: Example of sorting into four ranges]]
FIG. 5 shows an example in which a modified quantized normalized signal sequence X ^ ′ Q (ω) [ω∈ {L min ,..., L max }] to be classified is divided into four ranges, specifically , L (1) , which is the sample number on the lowest side of the second range, is determined as information representing the boundary between the first range and the second range, and the second range and the third range are determined. L (2) which is the sample number on the lowest side of the third range is determined as information indicating the boundary of the third range, and information of the fourth range is determined as information indicating the boundary between the third range and the fourth range. This is an example of determining L (3) which is the sample number on the lowest side.

まず、修正後量子化正規化済み信号系列X^’Q(ω) [ω∈{Lmin,…,Lmax}]の全サンプルX^’Q(Lmin),…,X^’Q(Lmax)の二乗和powを求める。二乗和powは、式(2)によって求まる。 First, all samples X ^ ' Q (L min ), ..., X ^' Q () of the modified quantized normalized signal sequence X ^ ' Q (ω) [ω∈ {L min , ..., L max }] determine the sum of squares pow of L max). The sum of squares pow is obtained by equation (2).

次に、式(2)により求めた修正後量子化正規化済み信号系列X^’Q [ω∈{Lmin,…,Lmax}]の全サンプルX^’Q(Lmin),…,X^’Q(Lmax)の二乗和の4分の1と、修正後量子化正規化済み信号系列の第1の範囲に含まれる全てのサンプルX^’Q(Lmin),…,X^’Q(L(1)-1)の値の二乗和との差が最小となるように求めたL(1)を第2の範囲の最も低域側にあるサンプル番号とする。これにより、X^’Q [ω∈{Lmin,…,L(1)-1}]が第1の範囲として定まる。 Next, formula corrected quantized normalized signal sequence obtained by (2) X ^ 'Q [ ω∈ {L min, ..., L max}] of all samples X ^' Q (L min) , ..., A quarter sum of squares of X ^ ' Q (L max ) and all samples X ^' Q (L min ), ..., X included in the first range of the modified quantized normalized signal sequence ^ 'and Q (L (1) -1) sample number in the difference between the square sum of the values of determined so as to minimize L (1) to the lowest frequency side of the second range. Thereby, X ^ ′ Q [ω∈ {L min ,..., L (1) −1}] is determined as the first range.

また、式(2)により求めた修正後量子化正規化済み信号系列X^’Q [ω∈{Lmin,…,Lmax}]の全サンプルX^’Q(Lmin),…,X^’Q(Lmax)の二乗和の4分の2(すなわち、2分の1)と、修正後量子化正規化済み信号系列の第1の範囲から第2の範囲に含まれる全てのサンプルX^’Q(Lmin),…,X^’Q(L(2)-1)の値の二乗和との差が最小となるように求めたL(2)を第3の範囲の最も低域側にあるサンプル番号とする。これにより、X^’Q [ω∈{L(1),…,L(2)-1}]が第2の範囲として定まる。 Further, all samples X ^ ′ Q (L min ),..., X of the modified quantized normalized signal sequence X ^ ′ Q [ω∈ {L min ,..., L max }] obtained by the equation (2). ^ ' Q (L max ) 2/4 of the sum of squares (that is, 1/2) and all samples included in the first range to the second range of the modified quantized normalized signal sequence X ^ 'Q (L min) , ..., X ^' Q (L (2) -1) of the third range L (2) the difference is determined so as to minimize the sum of squared values most The sample number is on the low frequency side. Thereby, X ^ ′ Q [ω∈ {L (1) ,..., L (2) −1}] is determined as the second range.

また、式(2)により求めた修正後量子化正規化済み信号系列X^’Q [ω∈{Lmin,…,Lmax}]の全サンプルX^’Q(Lmin),…,X^’Q(Lmax)の二乗和の4分の3と、修正後量子化正規化済み信号系列の第1の範囲から第3の範囲に含まれる全てのサンプルX^’Q(Lmin),…,X^’Q(L(3)-1)の値の二乗和との差が最小となるように求めたL(3)を第4の範囲の最も低域側にあるサンプル番号とする。これにより、X^’Q [ω∈{L(2),…,L(3)-1}]が第3の範囲として定まる。 Further, all samples X ^ ′ Q (L min ),..., X of the modified quantized normalized signal sequence X ^ ′ Q [ω∈ {L min ,..., L max }] obtained by the equation (2). ^ ' Q (L max ) 3/4 of the sum of squares and all samples X ^' Q (L min ) included in the first to third ranges of the modified quantized normalized signal sequence , ..., X ^ ' Q (L (3) -1) L (3) obtained so that the difference from the sum of squares is minimized is the sample number on the lowest side of the fourth range. To do. Thereby, X ^ ′ Q [ω∈ {L (2) ,..., L (3) −1}] is determined as the third range.

そして、修正後量子化正規化済み信号系列X^’Q [ω∈{Lmin,…,Lmax}]の第1の範囲から第3の範囲以外の範囲、すなわち、X^’Q [ω∈{L(3),…,Lmax}]を第4の範囲とする。 Then, the corrected quantized normalized signal sequence X ^ ′ Q [ω∈ {L min ,..., L max }] is a range other than the first range to the third range, that is, X ^ ′ Q [ω Let ∈ {L (3) ,..., L max }] be the fourth range.

以上により、修正後量子化正規化済み信号系列X^’Q [ω∈{Lmin,…,Lmax}]は4個の範囲に区分される。 As described above, the corrected quantized normalized signal sequence X ^ ′ Q [ω∈ {L min ,..., L max }] is divided into four ranges.

区分部150が出力する区分情報は、L(1)とL(2)とL(3)であってもよいし、L(1)とL(2)とL(3)のそれぞれに予め定めた値を演算した値であってもよいし、各範囲のサンプル数であってもよいし、要は、4個の範囲の全てを特定できる情報であれば何でもよい。 Sorting information identifying circuit 150 outputs may be a L (1) and L (2) and L (3), predetermined to each of the L (1) and L (2) and L (3) The calculated value may be the number of samples in each range, or anything insofar as it is information that can identify all four ranges.

[[第1基準による区分処理の第1例の一般化:N個の範囲に区分する例]]
図6は、区分対象の修正後量子化正規化済み信号系列X^’Q(ω) [ω∈{Lmin,…,Lmax}]をN個の範囲に区分する例、具体的には、第nの範囲と第n+1の範囲との境界を表す情報として第n+1の範囲の最も低域側にあるサンプル番号であるL(n)を決定する例である。以下では、LminをL(0)として説明する。
[[Generalization of the first example of classification processing based on the first standard: Example of dividing into N ranges]]
FIG. 6 shows an example of dividing the modified quantized normalized signal sequence X ^ ′ Q (ω) [ω∈ {L min ,..., L max }] to be classified into N ranges, specifically, In this example, L (n) , which is the sample number on the lowest side of the (n + 1) th range, is determined as information indicating the boundary between the nth range and the (n + 1) th range. In the following description, L min is assumed to be L (0) .

まず、修正後量子化正規化済み信号系列X^’Q(ω) [ω∈{Lmin,…,Lmax}]の全サンプルX^Q(Lmin),…,X^Q(Lmax)の二乗和powを求める。二乗和powは、式(2)によって求まる。 First, modified quantized normalized signal sequence X ^ 'Q (ω) [ ω∈ {L min, ..., L max}] All samples X ^ Q (L min) of, ..., X ^ Q (L max ) Is calculated. The sum of squares pow is obtained by equation (2).

次に、n=1からN−1のそれぞれのnについて、式(2)により求めた修正後量子化正規化済み信号系列X^’Q [ω∈{Lmin,…,Lmax}]の全サンプルX^’Q(Lmin),…,X^’Q(Lmax)の二乗和のN分のnと、修正後量子化正規化済み信号系列の第1の範囲から第nの範囲に含まれる全てのサンプルX^’Q(Lmin),…,X^’Q(L(n)-1)の値の二乗和との差が最小となるように求めたL(n)を第n+1の範囲の最も低域側にあるサンプル番号とする。これにより、X^’Q [ω∈{L(n-1),…,L(n)-1}]が第nの範囲として定まる。 Next, for each n from n = 1 to N−1, the modified quantized normalized signal sequence X ^ ′ Q [ω∈ {L min ,..., L max }] obtained by the equation (2) is used. All samples X ^ ' Q ( Lmin ), ..., X ^' Q ( Lmax ) n-th of the square sum and the first range to the nth range of the corrected quantized normalized signal sequence L (n) obtained so that the difference from the sum of squares of the values of all the samples X ^ ' Q (L min ), ..., X ^' Q (L (n) -1 ) included in It is assumed that the sample number is on the lowest side of the (n + 1) th range. Thereby, X ^ ′ Q [ω∈ {L (n−1) ,..., L (n) −1}] is determined as the nth range.

そして、修正後量子化正規化済み信号系列X^’Q [ω∈{Lmin,…,Lmax}]の第1の範囲から第N−1の範囲以外の範囲、すなわち、X^’Q [ω∈{L(N-1),…,Lmax}]を第Nの範囲とする。 Then, the corrected quantized normalized signal sequence X ^ ′ Q [ω∈ {L min ,..., L max }] is in a range other than the first range to the (N−1) th range, that is, X ^ ′ Q Let [ω∈ {L (N−1) ,..., L max }] be the Nth range.

以上により、修正後量子化正規化済み信号系列X^’Q [ω∈{Lmin,…,Lmax}]はN個の範囲に区分される。 As described above, the corrected quantized normalized signal sequence X ^ ′ Q [ω∈ {L min ,..., L max }] is divided into N ranges.

区分部150が出力する区分情報は、L(n)(nは1からN−1までの各整数)であってもよいし、L(n)(nは1からN−1までの各整数)に予め定めた値を演算した値であってもよいし、各範囲のサンプル数であってもよいし、要は、N個の範囲の全てを特定できる情報であれば何でもよい。 Sorting information identifying circuit 150 is output, L (n) (n is the integer from 1 to N-1) may be a, L (n) (each n is an integer from 1 to N-1 ) May be a value obtained by calculating a predetermined value, may be the number of samples in each range, or may be anything as long as it is information that can specify all N ranges.

[第1基準による区分処理の第2例]
第1基準による区分処理の第2例は上記の(b)に対応する。第2例の区分処理は、第1例の区分処理における「二乗和」を「絶対値和」に置き換えた以外は、第1例の区分処理と同じ方法である。第2例の区分処理によれば、第1例の区分処理で行なう二乗計算を省略できる分、第1例の区分処理よりも少ない演算処理量で区分処理を行なうことが可能となる。
[Second example of classification processing based on the first standard]
The second example of the sorting process based on the first standard corresponds to the above (b). The sorting process of the second example is the same method as the sorting process of the first example, except that “sum of squares” in the sorting process of the first example is replaced with “sum of absolute values”. According to the sorting process of the second example, it is possible to perform the sorting process with a smaller amount of calculation processing than the sorting process of the first example because the square calculation performed in the sorting process of the first example can be omitted.

[第1基準による区分処理の第3例]
第1基準による区分処理の第3例を図7と図8と図9を用いて説明する。第3例の区分処理は上記の(c)に対応する。第3例の区分処理は、修正後量子化正規化済み信号系列の第nの範囲(nは1からN−1までの各整数)を、修正後量子化正規化済み信号系列の第1の範囲から第nの範囲までのサンプル数の合計が、修正後量子化正規化済み信号系列の第1の範囲から第nの範囲までに含まれる全てのサンプルの値の二乗和が修正後量子化正規化済み信号系列の全てのサンプルの値の二乗和のN分のn以上となる最小のサンプル数になるように求め、修正後量子化正規化済み信号系列のうちの第1の範囲から第N−1の範囲以外の範囲を、修正後量子化正規化済み信号系列の第Nの範囲とすることで、修正後量子化正規化済み信号系列をN個の範囲に区分する処理である。
[Third example of classification processing based on the first standard]
A third example of the sorting process based on the first reference will be described with reference to FIGS. 7, 8, and 9. FIG. The classification process of the third example corresponds to the above (c). The division processing of the third example is performed by using the nth range (n is an integer from 1 to N−1) of the corrected quantized normalized signal sequence and the first quantized normalized signal sequence of the corrected first sequence. The sum of the number of samples from the range to the nth range is the corrected quantized sum of the squares of the values of all samples included in the first range to the nth range of the corrected quantized normalized signal sequence The minimum number of samples that is equal to or greater than n / N of the square sum of the values of all samples of the normalized signal sequence is obtained, and the first range of the corrected quantized normalized signal sequence is changed from the first range. This is a process of dividing the corrected quantized normalized signal sequence into N ranges by setting a range other than the N−1 range as the Nth range of the corrected quantized normalized signal sequence.

[[第1基準による区分処理の第3例の具体例1:2つの範囲に区分する例]]
図7は、2つの範囲に区分する例、すなわち、N=2の場合の例である。区分対象の修正後量子化正規化済み信号系列X^’Q(ω) [ω∈{Lmin,…,Lmax}]をX^’Q(ω) [ω∈{Lmin,…,Lmid-1}]とX^’Q(ω) [ω∈{Lmid,…,Lmax}]の2つの範囲に区分する例、具体的には、第1の範囲である低域と第2の範囲である高域との境界を表す情報として第2の範囲の最も低域側にあるサンプル番号であるLmidを決定する場合の例である。
[[Specific example of the third example of the sorting process based on the first standard 1: Example of dividing into two ranges]]
FIG. 7 shows an example of dividing into two ranges, that is, an example in the case of N = 2. The modified quantized normalized signal sequence X ^ ′ Q (ω) [ω∈ {L min ,..., L max }] to be classified is changed to X ^ ′ Q (ω) [ω∈ {L min ,. mid −1}] and X ^ ′ Q (ω) [ω∈ {L mid ,..., L max }] An example of dividing into two ranges, specifically, the first range is the low range and the second range. This is an example in which Lmid , which is the sample number on the lowest frequency side of the second range, is determined as information representing the boundary with the high frequency range of 2.

まず、修正後量子化正規化済み信号系列X^’Q(ω) [ω∈{Lmin,…,Lmax}]の全サンプルX^’Q(Lmin),…,X^’Q(Lmax)の二乗和powを求める。二乗和powは、式(2)によって求まる。 First, all samples X ^ ' Q (L min ), ..., X ^' Q () of the modified quantized normalized signal sequence X ^ ' Q (ω) [ω∈ {L min , ..., L max }] determine the sum of squares pow of L max). The sum of squares pow is obtained by equation (2).

次に、離散周波数のインデックスωの番号をLminから順に増やしながら修正後量子化正規化済み信号系列X^’Q(ω)のLminから当該インデクスまでの二乗和plowがplow≧pow/2を満たすか否かを判定し、初めてplow≧pow/2を満たす場合の離散周波数のインデックスωまでを第1の範囲とし、当該インデックスωに1を加算したものを第2の範囲の最も低域側にあるサンプル番号であるインデックスLmidとして出力する。これにより第1の範囲がX^’Q [ω∈{Lmin,…,Lmid-1}]と決定する。 Next, the square sum p low is p low ≧ pow from L min to the index of the number of index omega discrete frequency L min from the modified quantized normalized signal sequence while increasing in the order X ^ 'Q (ω) / 2 is satisfied, the first range up to the discrete frequency index ω when p low ≧ pow / 2 is satisfied for the first time, and the value obtained by adding 1 to the index ω is the second range. Output as the index L mid which is the sample number on the lowest side. As a result, the first range is determined as X ^ ′ Q [ω∈ {L min ,..., L mid −1}].

図7は、上記の処理を実現するためのフローチャートである。離散周波数のインデックスωの初期値をLmin、低域のエネルギーplowの初期値を|X^’Q(Lmin)|2に設定する。そして、plow≧pow/2を満たすか否かを判定する。plow≧pow/2を満たさない場合には、離散周波数のインデックスωに1を加えたものを新たなωとし、plowにX^’Q(ω)のエネルギー|X^’Q(ω)|2を加算したものを新たなplowとする。plow≧pow/2を満たす場合には、その時点での離散周波数のインデックスωに1を加えたものをインデックスLmidとして出力する。 FIG. 7 is a flowchart for realizing the above processing. The initial value of the discrete frequency index ω is set to L min , and the initial value of the low frequency energy p low is set to | X ^ ′ Q (L min ) | 2 . Then, it is determined whether or not p low ≧ pow / 2 is satisfied. p low ≧ if the pow / 2 does not meet the will, the one plus the index of discrete frequency ω as a new ω, 'energy of Q (ω) | X ^' to p low X ^ Q (ω) | Add 2 to make new p low . When p low ≧ pow / 2 is satisfied, a value obtained by adding 1 to the index ω of the discrete frequency at that time is output as the index L mid .

そして、修正後量子化正規化済み信号系列X^’Q [ω∈{Lmin,…,Lmax}]の第1の範囲以外の範囲、すなわち、X^’Q [ω∈{Lmid,…,Lmax}]を第2の範囲とする。 Then, a range other than the first range of the modified quantized normalized signal sequence X ^ ′ Q [ω∈ {L min ,..., L max }], that is, X ^ ′ Q [ω∈ {L mid , ..., L max }] is the second range.

以上により、修正後量子化正規化済み信号系列X^’Q [ω∈{Lmin,…,Lmax}]は2つの範囲に区分される。 As described above, the corrected quantized normalized signal sequence X ^ ′ Q [ω∈ {L min ,..., L max }] is divided into two ranges.

区分部150が出力する区分情報は、Lmidであってもよいし、Lmidに予め定めた値を演算した値であってもよいし、第1の範囲のサンプル数Lmid−Lminであってもよいし、第2の範囲のサンプル数Lmax−Lmid+1であってもよいし、要は、第1の範囲と第2の範囲とを特定できる情報であれば何でもよい。 Sorting information identifying circuit 150 outputs may be the L mid, may be a value obtained by calculating the predetermined value in the L mid, number of samples L mid -L min of the first range The number of samples in the second range may be L max −L mid +1, or anything insofar as the information can identify the first range and the second range.

[[第1基準による区分処理の第3例の具体例2:4個の範囲に区分する例]]
図8は、区分対象の修正後量子化正規化済み信号系列X^’Q(ω) [ω∈{Lmin,…,Lmax}]を4個の範囲に区分する例、具体的には、第1の範囲と第2の範囲との境界を表す情報として第2の範囲の最も低域側にあるサンプル番号であるL(1)を決定し、第2の範囲と第3の範囲との境界を表す情報として第3の範囲の最も低域側にあるサンプル番号であるL(2)を決定し、第3の範囲と第4の範囲との境界を表す情報として第4の範囲の最も低域側にあるサンプル番号であるL(3)を決定する例である。
[[Example 2 of the third example of the sorting process based on the first standard: Example of sorting into four ranges]]
FIG. 8 shows an example in which the modified quantized normalized signal sequence X ^ ′ Q (ω) [ω∈ {L min ,..., L max }] to be classified is divided into four ranges, specifically , L (1) , which is the sample number on the lowest side of the second range, is determined as information representing the boundary between the first range and the second range, and the second range and the third range are determined. L (2) which is the sample number on the lowest side of the third range is determined as information indicating the boundary of the third range, and information of the fourth range is determined as information indicating the boundary between the third range and the fourth range. This is an example of determining L (3) which is the sample number on the lowest side.

まず、修正後量子化正規化済み信号系列X^’Q(ω) [ω∈{Lmin,…,Lmax}]の全サンプルX^’Q(Lmin),…,X^’Q(Lmax)の二乗和powを求める。二乗和powは、式(2)によって求まる。 First, all samples X ^ ' Q (L min ), ..., X ^' Q () of the modified quantized normalized signal sequence X ^ ' Q (ω) [ω∈ {L min , ..., L max }] determine the sum of squares pow of L max). The sum of squares pow is obtained by equation (2).

次に、修正後量子化正規化済み信号系列の第1の範囲に含まれる全てのサンプルX^’Q(Lmin),…,X^’Q(L(1)-1)の値の二乗和が、式(2)により求めた修正後量子化正規化済み信号系列X^’Q [ω∈{Lmin,…,Lmax}]の全サンプルX^’Q(Lmin),…,X^’Q(Lmax)の二乗和の4分の1以上であり、かつ、修正後量子化正規化済み信号系列の第1の範囲に含まれる全てのサンプルから第1の範囲の最も高域側にある1つのサンプルを除いた信号系列X^’Q(Lmin),…,X^’Q(L(1)-2)の値の二乗和が、式(2)により求めた修正後量子化正規化済み信号系列X^’Q [ω∈{Lmin,…,Lmax}]の全サンプルX^’Q(Lmin),…,X^’Q(Lmax)の二乗和の4分の1より小さい、L(1)を第2の範囲の最も低域側にあるサンプル番号として求める。これにより、X^’Q [ω∈{Lmin,…,L(1)-1}]が第1の範囲として定まる。 Next, the squares of the values of all the samples X ^ ′ Q (L min ),..., X ^ ′ Q (L (1) −1) included in the first range of the corrected quantized normalized signal sequence sum formula corrected quantized normalized determined by (2) signal sequence X ^ 'Q [ω∈ {L min, ..., L max}] of all samples X ^' Q (L min) , ..., X ^ ' Q (L max ) is not less than one quarter of the sum of squares, and the highest of the first range from all samples included in the first range of the corrected quantized normalized signal sequence Correction that the sum of squares of the value of the signal sequence X ^ ' Q (L min ), ..., X ^' Q (L (1) -2), excluding one sample on the band side, is obtained by equation (2) Square sum of all samples X ^ ' Q (L min ), ..., X ^' Q (L max ) of post-quantized normalized signal sequence X ^ ' Q [ω∈ {L min , ..., L max }] L (1), which is smaller than one-fourth of L, is obtained as the sample number on the lowest side of the second range. Thereby, X ^ ′ Q [ω∈ {L min ,..., L (1) −1}] is determined as the first range.

また、修正後量子化正規化済み信号系列の第1の範囲から第2の範囲に含まれる全てのサンプルX^’Q(Lmin),…,X^’Q(L(2)-1)の値の二乗和が、式(2)により求めた修正後量子化正規化済み信号系列X^’Q [ω∈{Lmin,…,Lmax}]の全サンプルX^’Q(Lmin),…,X^’Q(Lmax)の二乗和の4分の2(すなわち、2分の1)以上であり、かつ、修正後量子化正規化済み信号系列の第1の範囲から第2の範囲に含まれる全てのサンプルから第2の範囲の最も高域側にある1つのサンプルを除いた信号系列X^’Q(Lmin),…,X^’Q(L(2)-2)の値の二乗和が、式(2)により求めた修正後量子化正規化済み信号系列X^’Q [ω∈{Lmin,…,Lmax}]の全サンプルX^’Q(Lmin),…,X^’Q(Lmax)の二乗和の4分の2(すなわち、2分の1)より小さい、L(2)を第3の範囲の最も低域側にあるサンプル番号として求める。これにより、X^’Q [ω∈{L(1),…,L(2)-1}]が第2の範囲として定まる。 In addition, all samples X ^ ′ Q (L min ),..., X ^ ′ Q (L (2) −1) included in the first range to the second range of the corrected quantized normalized signal sequence The sum of squares of the values of all the samples X ^ ′ Q (L min ) of the modified quantized normalized signal sequence X ^ ′ Q [ω∈ {L min ,..., L max }] obtained by Equation (2) ), ..., X ^ ' Q (L max ) is greater than or equal to two-quarters of the sum of squares (ie, half), and from the first range of the modified quantized normalized signal sequence Signal sequence X ^ ' Q (L min ), ..., X ^' Q (L (2) -excluding one sample at the highest side of the second range from all samples included in range 2 The sum of squares of the values of 2) is the total sample X ^ ′ Q () of the modified quantized normalized signal sequence X ^ ′ Q [ω∈ {L min ,..., L max }] obtained by Equation (2). L min ), ..., X ^ ' Q (L max ) less than two-quarters of the sum of squares (ie, half), L (2) is the third range It is obtained as the sample number on the lowest side of. Thereby, X ^ ′ Q [ω∈ {L (1) ,..., L (2) −1}] is determined as the second range.

また、修正後量子化正規化済み信号系列の第1の範囲から第3の範囲に含まれる全てのサンプルX^’Q(Lmin),…,X^’Q(L(3)-1)の値の二乗和が、式(2)により求めた修正後量子化正規化済み信号系列X^’Q [ω∈{Lmin,…,Lmax}]の全サンプルX^’Q(Lmin),…,X^’Q(Lmax)の二乗和の4分の3以上であり、かつ、修正後量子化正規化済み信号系列の第1の範囲から第3の範囲に含まれる全てのサンプルから第3の範囲の最も高域側にある1つのサンプルを除いた信号系列X^’Q(Lmin),…,X^’Q(L(3)-2)の値の二乗和が、式(2)により求めた修正後量子化正規化済み信号系列X^’Q [ω∈{Lmin,…,Lmax}]の全サンプルX^’Q(Lmin),…,X^’Q(Lmax)の二乗和の4分の3より小さい、L(3)を第4の範囲の最も低域側にあるサンプル番号として求める。これにより、X^’Q [ω∈{L(2),…,L(3)-1}]が第3の範囲として定まる。 In addition, all samples X ^ ′ Q (L min ),..., X ^ ′ Q (L (3) −1) included in the first to third ranges of the corrected quantized normalized signal sequence The sum of squares of the values of all the samples X ^ ′ Q (L min ) of the modified quantized normalized signal sequence X ^ ′ Q [ω∈ {L min ,..., L max }] obtained by Equation (2) ), ..., X ^ ' Q (L max ), which is not less than three-quarters of the sum of squares, and all the signals included in the first range to the third range of the corrected quantized normalized signal sequence The sum of squares of the values of the signal sequence X ^ ' Q (L min ), ..., X ^' Q (L (3) -2), which is obtained by removing one sample at the highest side of the third range from the sample, is , All samples X ^ ′ Q (L min ),..., X ^ of the modified quantized normalized signal sequence X ^ ′ Q [ω∈ {L min ,..., L max }] obtained by the equation (2) 'L (3), which is smaller than three-quarters of the sum of squares of Q (L max ), is determined as the sample number on the lowest side of the fourth range. Thereby, X ^ ′ Q [ω∈ {L (2) ,..., L (3) −1}] is determined as the third range.

これら処理は、具体的には例えば、以下により実現できる。   Specifically, these processes can be realized by, for example, the following.

まず、式(2)によってエネルギーpowを求める。   First, the energy pow is obtained by equation (2).

次に、iをLminから順に1ずつ増やしながら式(4)の条件を満たすか否かを判断していき、式(4)の条件を満たすiに1を加算したものをL(1)として求める。これにより、X^’Q [ω∈{Lmin,…,L(1)-1}]が第1の範囲として定まる。 Next, it is determined whether or not the condition of the expression (4) is satisfied while increasing i sequentially by 1 from L min, and the value obtained by adding 1 to i satisfying the condition of the expression (4) is expressed as L (1) Asking. Thereby, X ^ ′ Q [ω∈ {L min ,..., L (1) −1}] is determined as the first range.

Figure 0005840101
Figure 0005840101

さらに、iをL(1)から順に1ずつ増やしながら式(5)の条件を満たすか否かを判断していき、式(5)の条件を満たすiに1を加算したものをL(2)として求める。これにより、X^’Q [ω∈{L(1),…,L(2)-1}]が第2の範囲として定まる。 Further, it is determined whether or not the condition of the expression (5) is satisfied while increasing i by 1 sequentially from L (1), and a value obtained by adding 1 to i satisfying the condition of the expression (5) is expressed as L (2 ) . Thereby, X ^ ′ Q [ω∈ {L (1) ,..., L (2) −1}] is determined as the second range.

Figure 0005840101
Figure 0005840101

さらに、iをL(2)から順に1ずつ増やしながら式(6)の条件を満たすか否かを判断していき、式(6)の条件を満たすiに1を加算したものをL(3)として求める。これにより、X^’Q [ω∈{L(2),…,L(3)-1}]が第3の範囲として定まる。 Further, it is determined whether or not the condition of Expression (6) is satisfied while i is incremented by 1 in order from L (2) , and the result of adding 1 to i satisfying the condition of Expression (6) is L (3 ) . Thereby, X ^ ′ Q [ω∈ {L (2) ,..., L (3) −1}] is determined as the third range.

Figure 0005840101
Figure 0005840101

そして、修正後量子化正規化済み信号系列X^’Q [ω∈{Lmin,…,Lmax}]の第1の範囲から第3の範囲以外の範囲、すなわち、X^’Q [ω∈{L(3),…,Lmax}]を第4の範囲とする。 Then, the corrected quantized normalized signal sequence X ^ ′ Q [ω∈ {L min ,..., L max }] is a range other than the first range to the third range, that is, X ^ ′ Q [ω Let ∈ {L (3) ,..., L max }] be the fourth range.

以上により、修正後量子化正規化済み信号系列X^’Q [ω∈{Lmin,…,Lmax}]は4個の範囲に区分される。 As described above, the corrected quantized normalized signal sequence X ^ ′ Q [ω∈ {L min ,..., L max }] is divided into four ranges.

区分部150が出力する区分情報は、L(1)とL(2)とL(3)であってもよいし、L(1)とL(2)とL(3)のそれぞれに予め定めた値を演算した値であってもよいし、各範囲のサンプル数であってもよいし、要は、4個の範囲の全てを特定できる情報であれば何でもよい。 Sorting information identifying circuit 150 outputs may be a L (1) and L (2) and L (3), predetermined to each of the L (1) and L (2) and L (3) The calculated value may be the number of samples in each range, or anything insofar as it is information that can identify all four ranges.

[[第1基準による区分処理の第3例の一般化:N個の範囲に区分する例]]
図9は、区分対象の修正後量子化正規化済み信号系列X^’Q(ω) [ω∈{Lmin,…,Lmax}]をN個の範囲に区分する例、具体的には、第nの範囲と第n+1の範囲との境界を表す情報として第n+1の範囲の最も低域側にあるサンプル番号であるL(n)を決定する例である。
[[Generalization of the third example of classification processing based on the first standard: Example of dividing into N ranges]]
FIG. 9 shows an example of dividing the modified quantized normalized signal sequence X ^ ′ Q (ω) [ω∈ {L min ,..., L max }] to be classified into N ranges, specifically, In this example, L (n) , which is the sample number on the lowest side of the (n + 1) th range, is determined as information indicating the boundary between the nth range and the (n + 1) th range.

まず、修正後量子化正規化済み信号系列X^’Q(ω) [ω∈{Lmin,…,Lmax}]の全サンプルX^’Q(Lmin),…,X^’Q(Lmax)の二乗和powを求める。二乗和powは、式(2)によって求まる。 First, all samples X ^ ' Q (L min ), ..., X ^' Q () of the modified quantized normalized signal sequence X ^ ' Q (ω) [ω∈ {L min , ..., L max }] determine the sum of squares pow of L max). The sum of squares pow is obtained by equation (2).

次に、n=1からN−1のそれぞれのnについて、修正後量子化正規化済み信号系列の第1の範囲から第nの範囲に含まれる全てのサンプルX^’Q(Lmin),…,X^’Q(L(n)-1)の値の二乗和が、式(2)により求めた修正後量子化正規化済み信号系列X^’Q [ω∈{Lmin,…,Lmax}]の全サンプルX^’Q(Lmin),…,X^’Q(Lmax)の二乗和のN分のn以上であり、かつ、修正後量子化正規化済み信号系列の第1の範囲から第nの範囲に含まれる全てのサンプルから第nの範囲の最も高域側にある1つのサンプルを除いた信号系列X^’Q(Lmin),…,X^’Q(L(n)-2)の値の二乗和が、式(2)により求めた修正後量子化正規化済み信号系列X^’Q [ω∈{Lmin,…,Lmax}]の全サンプルX^’Q(Lmin),…,X^’Q(Lmax)の二乗和のN分のnより小さい、L(n)を第n+1の範囲の最も低域側にあるサンプル番号として求める。これにより、X^’Q [ω∈{Lmin,…,L(1)-1}]が第1の範囲、n=2からN−1のそれぞれのnについて、X^’Q [ω∈{L(n-1),…,L(n)-1}]が第nの範囲、として定まる。 Next, for each n of n = 1 to N−1, all samples X ^ ′ Q (L min ), included in the first range to the n-th range of the modified quantized normalized signal sequence ..., X ^ ' Q (L (n) -1) is the sum of squares of the corrected quantized normalized signal sequence X ^' Q [ω∈ {L min , ..., L max }] of all samples X ^ ′ Q (L min ),..., X ^ ′ Q (L max ) is not less than n / N of the sum of squares, and the corrected quantized normalized signal sequence Signal sequence X ^ ' Q (L min ), ..., X ^' Q obtained by excluding one sample at the highest side of the nth range from all samples included in the first range to the nth range The sum of squares of the values of (L (n) -2) is the total of the corrected quantized normalized signal sequence X ^ ' Q [ω∈ {L min , ..., L max }] obtained by equation (2). sample X ^ 'Q (L min) , ..., X ^' Q (L max) N content of less than n, L (n) to the (n + 1) of the range of the sum of the squares of the In seeking the most sample number in the low frequency side. Thus, X ^ ′ Q [ω∈ {L min ,..., L (1) −1}] is X ′ ′ Q [ω∈ for each n in the first range, n = 2 to N−1. {L (n−1) ,..., L (n) −1}] is determined as the nth range.

この処理は、具体的には例えば、以下により実現できる。まず、式(2)によってエネルギーpowを求める。次に、n=1について、iをLminから順に1ずつ増やしながら式(7)の条件を満たすか否かを判断していき、式(7)の条件を満たすiに1を加算したものをL(1)として求める。これにより、X^’Q [ω∈{Lmin,…,L(1)-1}]が第1の範囲として定まる。 Specifically, this processing can be realized by, for example, the following. First, the energy pow is obtained by equation (2). Next, for n = 1, it is determined whether or not the condition of Expression (7) is satisfied while i is incremented by 1 from L min, and 1 is added to i satisfying the condition of Expression (7). Is determined as L (1) . Thereby, X ^ ′ Q [ω∈ {L min ,..., L (1) −1}] is determined as the first range.

Figure 0005840101
Figure 0005840101

さらに、n=2からN−1のそれぞれのnについて、iをL(n-1)から順に1ずつ増やしながら式(7)の条件を満たすか否かを判断していき、式(7)の条件を満たすiに1を加算したものをL(n)として求める処理をnが小さい順に繰り返す。以上の処理により、n=2からN−1のそれぞれのnについて、X^’Q [ω∈{L(n-1),…,L(n)-1}]が第nの範囲として定まる。 Further, for each n from n = 2 to N−1, it is determined whether or not the condition of Expression (7) is satisfied while i is increased by 1 from L (n−1) in order, and Expression (7) The process for obtaining L (n) by adding 1 to i satisfying the condition is repeated in ascending order of n. With the above processing, X ^ ′ Q [ω∈ {L (n−1) ,..., L (n) −1}] is determined as the nth range for each n from n = 2 to N−1. .

そして、修正後量子化正規化済み信号系列X^’Q [ω∈{Lmin,…,Lmax}]の第1の範囲から第N−1の範囲以外の範囲、すなわち、X^’Q [ω∈{L(N-1),…,Lmax}]を第Nの範囲とする。 Then, the corrected quantized normalized signal sequence X ^ ′ Q [ω∈ {L min ,..., L max }] is in a range other than the first range to the (N−1) th range, that is, X ^ ′ Q Let [ω∈ {L (N−1) ,..., L max }] be the Nth range.

以上により、修正後量子化正規化済み信号系列X^’Q [ω∈{Lmin,…,Lmax}]はN個の範囲に区分される。 As described above, the corrected quantized normalized signal sequence X ^ ′ Q [ω∈ {L min ,..., L max }] is divided into N ranges.

区分部150が出力する区分情報は、L(n)(nは1からN−1までの各整数)であってもよいし、L(n)(nは1からN−1までの各整数)に予め定めた値を演算した値であってもよいし、各範囲のサンプル数であってもよいし、要は、N個の範囲の全てを特定できる情報であれば何でもよい。 Sorting information identifying circuit 150 is output, L (n) (n is the integer from 1 to N-1) may be a, L (n) (each n is an integer from 1 to N-1 ) May be a value obtained by calculating a predetermined value, may be the number of samples in each range, or may be anything as long as it is information that can specify all N ranges.

[第1基準による区分処理の第4例]
第1基準による区分処理の第4例は上記の(d)に対応する。第4例の区分処理は、第3例の区分処理における「二乗和」を「絶対値和」に置き換えた以外は、第3例の区分処理と同じ方法である。第4例の区分処理によれば、第3例の区分処理で行なう二乗計算を省略できる分、第3例の区分処理よりも少ない演算処理量で区分処理を行なうことが可能となる。
[Fourth example of classification processing based on the first standard]
The fourth example of the sorting process based on the first standard corresponds to the above (d). The sorting process of the fourth example is the same method as the sorting process of the third example, except that “sum of squares” in the sorting process of the third example is replaced with “sum of absolute values”. According to the classification process of the fourth example, it is possible to perform the classification process with a smaller calculation processing amount than the classification process of the third example because the square calculation performed in the classification process of the third example can be omitted.

[第1基準による区分処理の第5例]
第1基準による区分処理の第5例を図10と図11と図12を用いて説明する。第3例の区分処理は上記の(e)に対応する。第5例の区分処理は、修正後量子化正規化済み信号系列の第nの範囲(nは1からN−1までの各整数)を、修正後量子化正規化済み信号系列の第1の範囲から第nの範囲までのサンプル数の合計が、修正後量子化正規化済み信号系列の第1の範囲から第nの範囲までに含まれる全てのサンプルの値の二乗和が修正後量子化正規化済み信号系列の全てのサンプルの値の二乗和のN分のn以下となる最大のサンプル数になるように求め、修正後量子化正規化済み信号系列のうちの第1の範囲から第N−1の範囲以外の範囲を、修正後量子化正規化済み信号系列の第Nの範囲とすることで、修正後量子化正規化済み信号系列をN個の範囲に区分する処理である。
[Fifth example of classification processing based on the first standard]
A fifth example of the sorting process based on the first reference will be described with reference to FIGS. 10, 11, and 12. The classification process of the third example corresponds to the above (e). The division processing of the fifth example is performed using the nth range (n is an integer from 1 to N−1) of the corrected quantized normalized signal sequence, and the first quantized normalized signal sequence of the corrected first sequence. The sum of the number of samples from the range to the nth range is the corrected quantized sum of the squares of the values of all samples included in the first range to the nth range of the corrected quantized normalized signal sequence The maximum number of samples that is equal to or less than n / N of the square sum of the values of all samples of the normalized signal sequence is obtained, and the first range of the corrected quantized normalized signal sequence is changed from the first range. This is a process of dividing the corrected quantized normalized signal sequence into N ranges by setting a range other than the N−1 range as the Nth range of the corrected quantized normalized signal sequence.

[[第1基準による区分処理の第5例の具体例1:2つの範囲に区分する例]]
図10は、2つの範囲に区分する例、すなわち、N=2の場合の例である。修正後区分対象の量子化正規化済み信号系列X^’Q(ω) [ω∈{Lmin,…,Lmax}]をX^’Q(ω) [ω∈{Lmin,…,Lmid-1}]とX^’Q(ω) [ω∈{Lmid,…,Lmax}]の2つの範囲に区分する例、具体的には、第1の範囲である低域と第2の範囲である高域との境界を表す情報として第2の範囲の最も低域側にあるサンプル番号であるLmidを決定する場合の例である。
[[Example 1 of the fifth example of the sorting process based on the first standard 1: Example of dividing into two ranges]]
FIG. 10 shows an example of dividing into two ranges, that is, an example where N = 2. Quantized normalized signal sequence X ^ ′ Q (ω) [ω∈ {L min ,..., L max }] to be classified after modification is changed to X ^ ′ Q (ω) [ω∈ {L min ,. mid −1}] and X ^ ′ Q (ω) [ω∈ {L mid ,..., L max }] An example of dividing into two ranges, specifically, the first range is the low range and the second range. This is an example in which Lmid , which is the sample number on the lowest frequency side of the second range, is determined as information representing the boundary with the high frequency range of 2.

まず、修正後量子化正規化済み信号系列X^’Q(ω) [ω∈{Lmin,…,Lmax}]の全サンプルX^’Q(Lmin),…,X^’Q(Lmax)の二乗和powを求める。二乗和powは、式(2)によって求まる。 First, all samples X ^ ' Q (L min ), ..., X ^' Q () of the modified quantized normalized signal sequence X ^ ' Q (ω) [ω∈ {L min , ..., L max }] determine the sum of squares pow of L max). The sum of squares pow is obtained by equation (2).

次に、離散周波数のインデックスωの番号をLminから順に増やしながら量子化正規化済み信号系列X^’Q(ω)のLminから当該インデクスまでの二乗和plowがplow≦pow/2を満たすか否かを判定し、初めてplow≦pow/2を満たさなくなる場合の離散周波数のインデックスωから1を減算した離散周波数までを第1の範囲とし、当該インデックスωをを第2の範囲の最も低域側にあるサンプル番号であるインデックスLmidとして出力する。これにより第1の範囲がX^’Q [ω∈{Lmin,…,Lmid-1}]と決定する。 Then, the number of the index omega discrete frequency L min quantized normalized signal while increasing in order from the sequence X ^ 'Q square sum p low from L min to the index (omega) is p low ≦ pow / 2 The first range is a discrete frequency obtained by subtracting 1 from the index ω of the discrete frequency when p low ≦ pow / 2 is not satisfied for the first time, and the index ω is set to the second range. Is output as the index L mid , which is the sample number on the lowest side of. As a result, the first range is determined as X ^ ′ Q [ω∈ {L min ,..., L mid −1}].

図10は、上記の処理を実現するためのフローチャートである。離散周波数のインデックスωの初期値をLmin、低域のエネルギーplowの初期値を|X^’Q(Lmin)|2に設定する。そして、plow≦pow/2を満たすか否かを判定する。plow≦pow/2を満たす場合には、離散周波数のインデックスωに1を加えたものを新たなωとし、plowにX^’Q(ω)のエネルギー|X^’Q(ω)|2を加算したものを新たなplowとする。plow≦pow/2を満たさない場合には、その時点での離散周波数のインデックスωをインデックスLmidとして出力する。 FIG. 10 is a flowchart for realizing the above processing. The initial value of the discrete frequency index ω is set to L min , and the initial value of the low frequency energy p low is set to | X ^ ′ Q (L min ) | 2 . Then, it is determined whether or not p low ≦ pow / 2 is satisfied. When satisfying p low ≦ pow / 2 is the one plus the index of discrete frequency omega as a new omega, 'energy Q (ω) | X ^' the p low X ^ Q (ω) | The sum of 2 is taken as the new p low . If p low ≦ pow / 2 is not satisfied, the discrete frequency index ω at that time is output as the index L mid .

そして、修正後量子化正規化済み信号系列X^’Q [ω∈{Lmin,…,Lmax}]の第1の範囲以外の範囲、すなわち、X^’Q [ω∈{Lmid,…,Lmax}]を第2の範囲とする。 Then, a range other than the first range of the modified quantized normalized signal sequence X ^ ′ Q [ω∈ {L min ,..., L max }], that is, X ^ ′ Q [ω∈ {L mid , ..., L max }] is the second range.

以上により、修正後量子化正規化済み信号系列X^’Q [ω∈{Lmin,…,Lmax}]は2つの範囲に区分される。 As described above, the corrected quantized normalized signal sequence X ^ ′ Q [ω∈ {L min ,..., L max }] is divided into two ranges.

区分部150が出力する区分情報は、Lmidであってもよいし、Lmidに予め定めた値を演算した値であってもよいし、第1の範囲のサンプル数Lmid−Lminであってもよいし、第2の範囲のサンプル数Lmax−Lmid+1であってもよいし、要は、第1の範囲と第2の範囲とを特定できる情報であれば何でもよい。 Sorting information identifying circuit 150 outputs may be the L mid, may be a value obtained by calculating the predetermined value in the L mid, number of samples L mid -L min of the first range The number of samples in the second range may be L max −L mid +1, or anything insofar as the information can identify the first range and the second range.

[[第1基準による区分処理の第5例の具体例2:4個の範囲に区分する例]]
図11は、区分対象の修正後量子化正規化済み信号系列X^’Q(ω) [ω∈{Lmin,…,Lmax}]を4個の範囲に区分する例、具体的には、第1の範囲と第2の範囲との境界を表す情報として第2の範囲の最も低域側にあるサンプル番号であるL(1)を決定し、第2の範囲と第3の範囲との境界を表す情報として第3の範囲の最も低域側にあるサンプル番号であるL(2)を決定し、第3の範囲と第4の範囲との境界を表す情報として第4の範囲の最も低域側にあるサンプル番号であるL(3)を決定する例である。
[[Example 2 of the fifth example of the sorting process based on the first standard: Example of sorting into four ranges]]
FIG. 11 shows an example of dividing the modified quantized normalized signal sequence X ^ ′ Q (ω) [ω∈ {L min ,..., L max }] to be divided into four ranges, specifically, , L (1) , which is the sample number on the lowest side of the second range, is determined as information representing the boundary between the first range and the second range, and the second range and the third range are determined. L (2) which is the sample number on the lowest side of the third range is determined as information indicating the boundary of the third range, and information of the fourth range is determined as information indicating the boundary between the third range and the fourth range. This is an example of determining L (3) which is the sample number on the lowest side.

まず、修正後量子化正規化済み信号系列X^’Q(ω) [ω∈{Lmin,…,Lmax}]の全サンプルX^Q(Lmin),…,X^Q(Lmax)の二乗和powを求める。二乗和powは、式(2)によって求まる。 First, modified quantized normalized signal sequence X ^ 'Q (ω) [ ω∈ {L min, ..., L max}] All samples X ^ Q (L min) of, ..., X ^ Q (L max ) Is calculated. The sum of squares pow is obtained by equation (2).

次に、修正後量子化正規化済み信号系列の第1の範囲に含まれる全てのサンプルX^’Q(Lmin),…,X^’Q(Lb(1)-1)の値の二乗和が、式(2)により求めた修正後量子化正規化済み信号系列X^’Q [ω∈{Lmin,…,Lmax}]の全サンプルX^’Q(Lmin),…,X^’Q(Lmax)の二乗和の4分の1以下であり、かつ、修正後量子化正規化済み信号系列の第1の範囲に含まれる全てのサンプルに第2の範囲の最も低域側にある1つのサンプルを加えた信号系列X^’Q(Lmin),…,X^’Q(L(1))の値の二乗和が、式(2)により求めた修正後量子化正規化済み信号系列X^’Q [ω∈{Lmin,…,Lmax}]の全サンプルX^’Q(Lmin),…,X^’Q(Lmax)の二乗和の4分の1より大きい、L(1)を第2の範囲の最も低域側にあるサンプル番号として求める。これにより、X^’Q [ω∈{Lmin,…,L(1)-1}]が第1の範囲として定まる。 Next, the values of all the samples X ^ ' Q (L min ), ..., X ^' Q (L b (1) -1) included in the first range of the corrected quantized normalized signal sequence are The sum of squares represents all samples X ^ ' Q (L min ), ... of the modified quantized normalized signal sequence X ^' Q [ω∈ {L min , ..., L max }] obtained by equation (2). , X ^ ' Q (L max ) is less than or equal to ¼ of the sum of squares, and all samples included in the first range of the corrected quantized normalized signal sequence have the second range most After correction, the sum of squares of the value of the signal sequence X ^ ' Q (L min ), ..., X ^' Q (L (1) ) plus one sample on the low-frequency side is obtained by equation (2) Quantized normalized signal sequence X ^ ' Q [ω∈ {L min , ..., L max }] of all samples X ^' Q (L min ), ..., X ^ ' Q (L max ) L (1), which is larger than a quarter, is obtained as the sample number on the lowest side of the second range. Thereby, X ^ ′ Q [ω∈ {L min ,..., L (1) −1}] is determined as the first range.

また、修正後量子化正規化済み信号系列の第1の範囲から第2の範囲に含まれる全てのサンプルX^’Q(Lmin),…,X^’Q(L(2)-1)の値の二乗和が、式(2)により求めた修正後量子化正規化済み信号系列X^’Q [ω∈{Lmin,…,Lmax}]の全サンプルX^’Q(Lmin),…,X^’Q(Lmax)の二乗和の4分の2(すなわち、2分の1)以下であり、かつ、修正後量子化正規化済み信号系列の第1の範囲から第2の範囲に含まれる全てのサンプルに第3の範囲の最も低域側にある1つのサンプルを加えた信号系列X^’Q(Lmin),…,X^’Q(L(2))の値の二乗和が、式(2)により求めた修正後量子化正規化済み信号系列X^’Q [ω∈{Lmin,…,Lmax}]の全サンプルX^’Q(Lmin),…,X^’Q(Lmax)の二乗和の4分の2(すなわち、2分の1)より大きい、L(2)を第3の範囲の最も低域側にあるサンプル番号として求める。これにより、X^’Q [ω∈{L(1),…,L(2)-1}]が第2の範囲として定まる。 In addition, all samples X ^ ′ Q (L min ),..., X ^ ′ Q (L (2) −1) included in the first range to the second range of the corrected quantized normalized signal sequence The sum of squares of the values of all the samples X ^ ′ Q (L min ) of the modified quantized normalized signal sequence X ^ ′ Q [ω∈ {L min ,..., L max }] obtained by Equation (2) ), ..., X ^ ' Q (L max ) is less than or equal to two-quarters of the sum of squares (ie, half), and the first range of the corrected quantized normalized signal sequence is Signal sequence X ^ ' Q ( Lmin ), ..., X ^' Q (L (2) ), which is obtained by adding one sample at the lowest side of the third range to all samples included in the range 2 sum of squares of the values, corrected quantized normalized signal sequence was determined by the equation (2) X ^ 'Q [ ω∈ {L min, ..., L max}] of all samples X ^' Q (L min ), ..., X ^ 'Q (2 quarters of the sum of the squares of the L max) (i.e., one-half) is greater than, L (2) of the third range Also determined as a sample number in the low frequency side. Thereby, X ^ ′ Q [ω∈ {L (1) ,..., L (2) −1}] is determined as the second range.

また、修正後量子化正規化済み信号系列の第1の範囲から第3の範囲に含まれる全てのサンプルX^’Q(Lmin),…,X^’Q(L(3)-1)の値の二乗和が、式(2)により求めた修正後量子化正規化済み信号系列X^’Q [ω∈{Lmin,…,Lmax}]の全サンプルX^’Q(Lmin),…,X^’Q(Lmax)の二乗和の4分の3以下であり、かつ、修正後量子化正規化済み信号系列の第1の範囲から第3の範囲に含まれる全てのサンプルに第4の範囲の最も低域側にある1つのサンプルを加えた信号系列X^’Q(Lmin),…,X^’Q(L(3))の値の二乗和が、式(2)により求めた修正後量子化正規化済み信号系列X^’Q [ω∈{Lmin,…,Lmax}]の全サンプルX^’Q(Lmin),…,X^’Q(Lmax)の二乗和の4分の3より大きい、L(3)を第4の範囲の最も低域側にあるサンプル番号として求める。これにより、X^’Q [ω∈{Lb(2),…,L(3)-1}]が第3の範囲として定まる。 In addition, all samples X ^ ′ Q (L min ),..., X ^ ′ Q (L (3) −1) included in the first to third ranges of the corrected quantized normalized signal sequence The sum of squares of the values of all the samples X ^ ′ Q (L min ) of the modified quantized normalized signal sequence X ^ ′ Q [ω∈ {L min ,..., L max }] obtained by Equation (2) ), ..., X ^ ' Q (L max ) is less than or equal to three-quarters of the sum of squares, and all the signals included in the first to third ranges of the corrected quantized normalized signal sequence The sum of squares of the values of the signal sequence X ^ ' Q ( Lmin ), ..., X ^' Q (L (3) ), which is obtained by adding one sample at the lowest side of the fourth range to the sample, is corrected quantized normalized determined by (2) signal sequence X ^ 'Q [ω∈ {L min, ..., L max}] All samples X ^ of' Q (L min), ... , X ^ 'Q L (3), which is greater than three-quarters of the sum of squares of (L max ), is determined as the sample number on the lowest side of the fourth range. Thereby, X ^ ′ Q [ω∈ {L b (2) ,..., L (3) −1}] is determined as the third range.

この処理は、具体的には例えば、以下により実現できる。   Specifically, this processing can be realized by, for example, the following.

まず、式(2)によってエネルギーpowを求める。   First, the energy pow is obtained by equation (2).

次に、iをLminから順に1ずつ増やしながら式(8)の条件を満たすか否かを判断していき、式(8)下の条件を満たすiに1を加算したものをL(1)として求める。これにより、X^’Q [ω∈{Lmin,…,L(1)-1}]が第1の範囲として定まる。 Next, it is determined whether or not the condition of Expression (8) is satisfied while i is incremented by 1 from L min in order, and a value obtained by adding 1 to i satisfying the condition of Expression (8) is L (1 ) . Thereby, X ^ ′ Q [ω∈ {L min ,..., L (1) −1}] is determined as the first range.

Figure 0005840101
Figure 0005840101

さらに、iをL(1)から順に1ずつ増やしながら式(9)の条件を満たすか否かを判断していき、式(9)下の条件を満たすiに1を加算したものをL(2)として求める。これにより、X^’Q [ω∈{L(1),…,L(2)-1}]が第2の範囲として定まる。 Further, it is determined whether or not the condition of Expression (9) is satisfied while i is incremented by 1 in order from L (1), and a value obtained by adding 1 to i satisfying the condition of Expression (9) is L ( Find as 2) . Thereby, X ^ ′ Q [ω∈ {L (1) ,..., L (2) −1}] is determined as the second range.

Figure 0005840101
Figure 0005840101

さらに、iをL(2)から順に1ずつ増やしながら式(10)の条件を満たすか否かを判断していき、式(10)の条件を満たすiに1を加算したものをL(3)として求める。これにより、X^’Q [ω∈{L(2),…,L(3)-1}]が第3の範囲として定まる。 Furthermore, while increasing the i from L (2) one by one in sequence will determine whether or not the condition of formula (10), a material obtained by adding 1 to satisfy the condition i of formula (10) L (3 ) . Thereby, X ^ ′ Q [ω∈ {L (2) ,..., L (3) −1}] is determined as the third range.

Figure 0005840101
Figure 0005840101

そして、修正後量子化正規化済み信号系列X^’Q [ω∈{Lmin,…,Lmax}]の第1の範囲から第3の範囲以外の範囲、すなわち、X^’Q [ω∈{L(3),…,Lmax}]を第4の範囲とする。 Then, the corrected quantized normalized signal sequence X ^ ′ Q [ω∈ {L min ,..., L max }] is a range other than the first range to the third range, that is, X ^ ′ Q [ω Let ∈ {L (3) ,..., L max }] be the fourth range.

以上により、修正後量子化正規化済み信号系列X^’Q [ω∈{Lmin,…,Lmax}]は4個の範囲に区分される。 As described above, the corrected quantized normalized signal sequence X ^ ′ Q [ω∈ {L min ,..., L max }] is divided into four ranges.

区分部150が出力する区分情報は、L(1)とL(2)とL(3)であってもよいし、L(1)とL(2)とL(3)のそれぞれに予め定めた値を演算した値であってもよいし、各範囲のサンプル数であってもよいし、要は、4個の範囲の全てを特定できる情報であれば何でもよい。 Sorting information identifying circuit 150 outputs may be a L (1) and L (2) and L (3), predetermined to each of the L (1) and L (2) and L (3) The calculated value may be the number of samples in each range, or anything insofar as it is information that can identify all four ranges.

[[第1基準による区分処理の第5例の一般化:N個の範囲に区分する例]]
図12は、区分対象の修正後量子化正規化済み信号系列X^’Q(ω) [ω∈{Lmin,…,Lmax}]をN個の範囲に区分する例、具体的には、第nの範囲と第n+1の範囲との境界を表す情報として第n+1の範囲の最も低域側にあるサンプル番号であるL(n)を決定する例である。
[[Generalization of the fifth example of classification processing based on the first standard: Example of dividing into N ranges]]
FIG. 12 shows an example of dividing the modified quantized normalized signal sequence X ^ ′ Q (ω) [ω∈ {L min ,..., L max }] to be classified into N ranges, specifically, In this example, L (n) , which is the sample number on the lowest side of the (n + 1) th range, is determined as information indicating the boundary between the nth range and the (n + 1) th range.

まず、修正後量子化正規化済み信号系列X^’Q(ω) [ω∈{Lmin,…,Lmax}]の全サンプルX^’Q(Lmin),…,X^’Q(Lmax)の二乗和powを求める。二乗和powは、式(2)によって求まる。 First, all samples X ^ ' Q (L min ), ..., X ^' Q () of the modified quantized normalized signal sequence X ^ ' Q (ω) [ω∈ {L min , ..., L max }] determine the sum of squares pow of L max). The sum of squares pow is obtained by equation (2).

次に、n=1からN−1のそれぞれのnについて、修正後量子化正規化済み信号系列の第1の範囲から第nの範囲に含まれる全てのサンプルX^’Q(Lmin),…,X^’Q(L(n)-1)の値の二乗和が、式(2)により求めた量子化正規化済み信号系列X^’Q [ω∈{Lmin,…,Lmax}]の全サンプルX^’Q(Lmin),…,X^’Q(Lmax)の二乗和のN分のn以下であり、かつ、修正後量子化正規化済み信号系列の第1の範囲から第nの範囲に含まれる全てのサンプルに第n+1の範囲の最も低域側にある1つのサンプルを加えた信号系列X^’Q(Lmin),…,X^’Q(L(n))の値の二乗和が、式(2)により求めた修正後量子化正規化済み信号系列X^’Q [ω∈{Lmin,…,Lmax}]の全サンプルX^’Q(Lmin),…,X^’Q(Lmax)の二乗和のN分のnより大きい、L(n)を第n+1の範囲の最も低域側にあるサンプル番号として求める。これにより、X^’Q [ω∈{Lmin,…,L(1)-1}]が第1の範囲、n=2からN−1のそれぞれのnについて、X^’Q [ω∈{L(n-1),…,L(n)-1}]が第nの範囲、として定まる。 Next, for each n of n = 1 to N−1, all samples X ^ ′ Q (L min ), included in the first range to the n-th range of the modified quantized normalized signal sequence ..., X ^ ' Q (L (n) -1) is the sum of squares of the quantized normalized signal sequence X ^' Q [ω∈ {L min , ..., L max }] Of all the samples X ^ ' Q (L min ),..., X ^' Q (L max ) is less than n / N of the sum of squares and is the first of the corrected quantized normalized signal sequence X ^ ′ Q (L min ),..., X ^ ′ Q (L, which is obtained by adding one sample at the lowest side of the (n + 1) th range to all samples included in the nth to nth ranges (n) ) is the sum of squares of all samples X ^ ′ Q [ω∈ {L min ,..., L max }] of the modified quantized normalized signal sequence X ^ ′ Q obtained by the equation (2) Q (L min), ..., X ^ 'Q N content greater than that of the n of the sum of the squares of the (L max), L (n) is of the (n + 1) of the range top Obtaining a sample number in the low frequency side. Thus, X ^ ′ Q [ω∈ {L min ,..., L (1) −1}] is X ′ ′ Q [ω∈ for each n in the first range, n = 2 to N−1. {L (n−1) ,..., L (n) −1}] is determined as the nth range.

この処理は、具体的には例えば、以下により実現できる。まず、式(2)によってエネルギーpowを求める。次に、n=1について、iをLminから順に1ずつ増やしながら式(11)の条件を満たすか否かを判断していき、式(11)の条件を満たすiに1を加算したものをL(1)として求める。これにより、X^’Q [ω∈{Lmin,…,L(1)-1}]が第1の範囲として定まる。 Specifically, this processing can be realized by, for example, the following. First, the energy pow is obtained by equation (2). Next, for n = 1, it is determined whether or not the condition of Expression (11) is satisfied while i is incremented by 1 from L min, and 1 is added to i satisfying the condition of Expression (11). Is determined as L (1) . Thereby, X ^ ′ Q [ω∈ {L min ,..., L (1) −1}] is determined as the first range.

Figure 0005840101
Figure 0005840101

さらに、n=2からN−1のそれぞれのnについて、iをL(n-1)から順に1ずつ増やしながら式(11)の条件を満たすか否かを判断していき、式(11)の条件を満たすiに1を加算したものをL (n)として求める処理をnが小さい順に繰り返す。以上の処理により、n=2からN−1のそれぞれのnについて、X^’Q [ω∈{L(n-1),…,L(n)-1}]が第nの範囲として定まる。 Further, for each n from n = 2 to N−1, it is determined whether or not the condition of equation (11) is satisfied while i is incremented by 1 sequentially from L (n−1 ). The process for obtaining L (n) by adding 1 to i satisfying the condition is repeated in ascending order of n. With the above processing, X ^ ′ Q [ω∈ {L (n−1) ,..., L (n) −1}] is determined as the nth range for each n from n = 2 to N−1. .

そして、修正後量子化正規化済み信号系列X^’Q [ω∈{Lmin,…,Lmax}]の第1の範囲から第N−1の範囲以外の範囲、すなわち、X^’Q [ω∈{L(N-1),…,Lmax}]を第Nの範囲とする。 Then, the corrected quantized normalized signal sequence X ^ ′ Q [ω∈ {L min ,..., L max }] is in a range other than the first range to the (N−1) th range, that is, X ^ ′ Q Let [ω∈ {L (N−1) ,..., L max }] be the Nth range.

以上により、修正後量子化正規化済み信号系列X^’Q [ω∈{Lmin,…,Lmax}]はN個の範囲に区分される。 As described above, the corrected quantized normalized signal sequence X ^ ′ Q [ω∈ {L min ,..., L max }] is divided into N ranges.

区分部150が出力する区分情報は、L(n)(nは1からN−1までの各整数)であってもよいし、L(n)(nは1からN−1までの各整数)に予め定めた値を演算した値であってもよいし、各範囲のサンプル数であってもよいし、要は、N個の範囲の全てを特定できる情報であれば何でもよい。 Sorting information identifying circuit 150 is output, L (n) (n is the integer from 1 to N-1) may be a, L (n) (each n is an integer from 1 to N-1 ) May be a value obtained by calculating a predetermined value, may be the number of samples in each range, or may be anything as long as it is information that can specify all N ranges.

[第1基準による区分処理の第6例]
区分処理の第6例は上記の(f)に対応する。第6例の区分処理は、第5例の区分処理における「二乗和」を「絶対値和」に置き換えた以外は、第5例の区分処理と同じ方法である。第6例の区分処理によれば、第5例の区分処理で行なう二乗計算を省略できる分、第5例の区分処理よりも少ない演算処理量で区分処理を行なうことが可能となる。
[Sixth example of classification processing based on the first standard]
The sixth example of the sorting process corresponds to the above (f). The sorting process of the sixth example is the same method as the sorting process of the fifth example, except that “sum of squares” in the sorting process of the fifth example is replaced with “sum of absolute values”. According to the sorting process of the sixth example, it is possible to perform the sorting process with a smaller calculation processing amount than the sorting process of the fifth example, because the square calculation performed in the sorting process of the fifth example can be omitted.

次に、第2基準である「各範囲に含まれる有意のサンプルの個数がなるべく等しくなるように区分する基準」での区分処理について説明する。   Next, the classification process according to the second standard “standard for classifying so that the number of significant samples included in each range is as equal as possible” will be described.

「各範囲に含まれる有意のサンプルの個数がなるべく等しくなるように区分する基準」での区分処理は、例えば、修正後量子化正規化済み信号系列の第nの範囲(nは1からN−1までの各整数)を、
(a) 修正後量子化正規化済み信号系列の第1の範囲から第nの範囲までに含まれる全てのサンプルのうちサンプルのエネルギーが所定値より大きいかまたは所定値以上であるサンプルの個数と、修正後量子化正規化済み信号系列に含まれる全てのサンプルのうちサンプルのエネルギーが所定値より大きいかまたは所定値以上であるサンプルの個数のN分のnと、が最も近付くように、
または、
(b) 修正後量子化正規化済み信号系列の第1の範囲から第nの範囲までに含まれる全てのサンプルのうちサンプルの絶対値が所定値より大きいかまたは所定値以上であるサンプルの個数と、修正後量子化正規化済み信号系列に含まれる全てのサンプルのうちサンプルの絶対値が所定値より大きいかまたは所定値以上であるサンプルの個数のN分のnと、が最も近付くように、
または、
(c) 修正後量子化正規化済み信号系列の第1の範囲から第nの範囲までに含まれる全てのサンプルのうちサンプルのエネルギーが所定値より大きいかまたは所定値以上であるサンプルの個数が、修正後量子化正規化済み信号系列に含まれる全てのサンプルのうちサンプルのエネルギーが所定値より大きいかまたは所定値以上であるサンプルの個数のN分のn以上となる最小のサンプル数となるように、
または、
(d) 修正後量子化正規化済み信号系列の第1の範囲から第nの範囲までに含まれる全てのサンプルのうちサンプルの絶対値が所定値より大きいかまたは所定値以上であるサンプルの個数が、修正後量子化正規化済み信号系列に含まれる全てのサンプルのうちサンプルの絶対値が所定値より大きいかまたは所定値以上であるサンプルの個数のN分のn以上となる最小のサンプル数となるように、
または、
(e) 修正後量子化正規化済み信号系列の第1の範囲から第nの範囲までに含まれる全てのサンプルのうちサンプルのエネルギーが所定値より大きいかまたは所定値以上であるサンプルの個数が、修正後量子化正規化済み信号系列に含まれる全てのサンプルのうちサンプルのエネルギーが所定値より大きいかまたは所定値以上であるサンプルの個数のN分のn以下となる最大のサンプル数となるように、
または、
(f) 修正後量子化正規化済み信号系列の第1の範囲から第nの範囲までに含まれる全てのサンプルのうちサンプルの絶対値が所定値より大きいかまたは所定値以上であるサンプルの個数が、修正後量子化正規化済み信号系列に含まれる全てのサンプルのうちサンプルの絶対値が所定値より大きいかまたは所定値以上であるサンプルの個数のN分のn以下となる最大のサンプル数となるように、
求め、
修正後量子化正規化済み信号系列のうちの第1の範囲から第N−1の範囲以外の範囲を、修正後量子化正規化済み信号系列の第Nの範囲とすることで、量子化正規化済み信号系列をN個の範囲に区分することにより行なわれる。
For example, the classification process in the “criteria for classifying so that the number of significant samples included in each range is as equal as possible” is performed by, for example, the nth range (n is 1 to N−) of the corrected quantized normalized signal sequence. Each integer up to 1)
(a) out of all samples included in the first range to the n-th range of the corrected quantized normalized signal sequence, the number of samples whose sample energy is greater than or equal to a predetermined value; , N of N samples of the number of samples whose sample energy is greater than or equal to or greater than a predetermined value among all samples included in the corrected quantized normalized signal sequence,
Or
(b) The number of samples whose absolute value of samples is greater than or equal to a predetermined value among all samples included in the first range to the n-th range of the corrected quantized normalized signal sequence And n / N of the number of samples whose absolute value of samples is greater than or equal to a predetermined value among all samples included in the corrected quantized normalized signal sequence is closest to each other. ,
Or
(c) The number of samples whose sample energy is greater than or equal to a predetermined value among all samples included in the first range to the n-th range of the corrected quantized normalized signal sequence is , Among all the samples included in the corrected quantized normalized signal sequence, the sample number is the minimum number of samples that is n or more of N / N of the number of samples that are greater than or equal to a predetermined value. like,
Or
(d) Number of samples whose absolute value of samples is greater than or equal to a predetermined value among all samples included in the first range to the nth range of the corrected quantized normalized signal sequence Is the minimum number of samples in which the absolute value of the samples among all the samples included in the corrected quantized normalized signal sequence is greater than or equal to a predetermined value and not less than n / N of the number of samples So that
Or
(e) The number of samples whose sample energy is greater than or equal to a predetermined value among all samples included in the first range to the nth range of the corrected quantized normalized signal sequence is , Among all the samples included in the post-correction quantized normalized signal sequence, the maximum number of samples is equal to or less than n / N of the number of samples whose sample energy is greater than a predetermined value or greater than a predetermined value. like,
Or
(f) Number of samples whose absolute value of samples is greater than or equal to a predetermined value among all samples included in the first range to the nth range of the corrected quantized normalized signal sequence Is the maximum number of samples in which the absolute value of the samples among all the samples included in the corrected quantized normalized signal sequence is less than or equal to n / N of the number of samples that are greater than or equal to the predetermined value So that
Seeking
A range other than the first range to the (N−1) th range in the corrected quantized normalized signal sequence is set as the Nth range of the corrected quantized normalized signal sequence. This is done by dividing the digitized signal sequence into N ranges.

上記に例示した区分処理は、「各範囲に含まれる有意のサンプルの個数がなるべく等しくなるように区分する基準」による区分を、各範囲を逐次的に決定していく方法によって実現するものである。上記に例示した区分処理によれば、少ない演算処理量で「各範囲に含まれる有意のサンプルの個数がなるべく等しくなるように区分する基準」による区分を実現できる。   The classification process exemplified above realizes the classification based on the “criteria for classifying so that the number of significant samples included in each range is as equal as possible” by a method of sequentially determining each range. . According to the classification process exemplified above, it is possible to realize classification according to “a criterion for classifying so that the number of significant samples included in each range is as equal as possible” with a small amount of calculation processing.

[第2基準による区分処理の第1例]
第2基準による区分処理の第1例を図13と図14と図15を用いて説明する。第1例の区分処理は上記の(a)に対応する。第1例の区分処理は、修正後量子化正規化済み信号系列の第nの範囲(nは1からN−1までの各整数)を、修正後量子化正規化済み信号系列の第1の範囲から第nの範囲までに含まれる全てのサンプルのうちサンプルのエネルギーが所定値より大きいかまたは所定値以上であるサンプルの個数と、修正後量子化正規化済み信号系列に含まれる全てのサンプルのうちサンプルのエネルギーが所定値より大きいかまたは所定値以上であるサンプルの個数のN分のnと、が最も近付くように求め、修正後量子化正規化済み信号系列のうちの第1の範囲から第N−1の範囲以外の範囲を、修正後量子化正規化済み信号系列の第Nの範囲とすることで、修正後量子化正規化済み信号系列をN個の範囲に区分する処理である。
[First example of classification processing based on the second standard]
A first example of the sorting process based on the second reference will be described with reference to FIGS. 13, 14, and 15. The sorting process of the first example corresponds to the above (a). The division processing of the first example is performed using the nth range (n is an integer from 1 to N−1) of the corrected quantized normalized signal sequence, and the first quantized normalized signal sequence of the corrected first sequence. The number of samples whose sample energy is greater than or equal to a predetermined value or more than all the samples included in the range to the nth range, and all samples included in the corrected quantized normalized signal sequence The first range of the corrected quantized normalized signal sequence is determined such that n of the number of samples whose sample energy is greater than or equal to or greater than a predetermined value is closest to N. To a range other than the (N−1) -th range as the Nth range of the corrected quantized normalized signal sequence, so that the corrected quantized normalized signal sequence is divided into N ranges. is there.

[[第2基準による区分処理の第1例の具体例1:2つの範囲に区分する例]]
図13は、2つの範囲に区分する例、すなわち、N=2の場合の例である。区分対象の修正後量子化正規化済み信号系列X^’Q(ω) [ω∈{Lmin,…,Lmax}]をX^’Q(ω) [ω∈{Lmin,…,Lmid-1}]とX^’Q(ω) [ω∈{Lmid,…,Lmax}]の2つの範囲に区分する例、具体的には、第1の範囲である低域と第2の範囲である高域との境界を表す情報として第2の範囲の最も低域側にあるサンプル番号であるL midを決定する場合の例である。
[[Example 1 of the first example of the sorting process based on the second standard 1: Example of dividing into two ranges]]
FIG. 13 shows an example of dividing into two ranges, that is, an example where N = 2. The modified quantized normalized signal sequence X ^ ′ Q (ω) [ω∈ {L min ,..., L max }] to be classified is changed to X ^ ′ Q (ω) [ω∈ {L min ,. mid −1}] and X ^ ′ Q (ω) [ω∈ {L mid ,..., L max }] An example of dividing into two ranges, specifically, the first range is the low range and the second range. This is an example in which Lmid , which is the sample number on the lowest frequency side of the second range, is determined as information representing the boundary with the high frequency range of 2.

まず、各インデックスωについてfcount(ω)を式(B2)によって定める。各インデックスωについてのfcount(ω)には、修正後量子化正規化済み信号系列X^’Q(ω) [ω∈{Lmin,…,Lmax}]のインデックスωに対応するサンプルのエネルギー|X^’Q(ω)|2が所定値より大きいサンプルに対して「サンプルのエネルギー|X^’Q(ω)|が所定値より大きい」ことを表す情報として1を設定し、それ以外のサンプルに対して「サンプルのエネルギー|X^’Q(ω)|が所定値より大きくない」ことを表す情報として0を設定する。この例では所定値を任意に予め定めた微小量ε(εは0以上の値)とする。 First, f count (ω) is determined for each index ω by the equation (B2). The f count (ω) for each index ω includes a sample corresponding to the index ω of the modified quantized normalized signal sequence X ^ ′ Q (ω) [ω∈ {L min ,..., L max }]. energy | X ^ 'Q (ω) | 2 is for large samples than the predetermined value "sample energy | X ^' | set 1 as information representing that Q (omega) is larger than the predetermined value", it 0 is set as information indicating that “the sample energy | X ^ ′ Q (ω) | is not larger than a predetermined value” for samples other than. In this example, the predetermined value is arbitrarily set to a minute amount ε (ε is a value of 0 or more).

Figure 0005840101
Figure 0005840101

次に、修正後量子化正規化済み信号系列に含まれる全てのサンプルX^’Q(ω) [ω∈{Lmin,…,Lmax}]のうちサンプルのエネルギーが所定値より大きいサンプルの個数fcount(Lmin)+…+fcount(Lmax)の2分の1と、修正後量子化正規化済み信号系列の第1の範囲に含まれる全てのサンプルX^’Q(ω) [ω∈{Lmin,…,Lmid-1}]のうちサンプルのエネルギーが所定値より大きいサンプルの個数fcount(Lmin)+…+fcount(Lmid-1)との差が最小となるように、第2の範囲の最も低域側にあるサンプル番号であるLmidを求める。すなわち、Lmidは式(B3)によって求まる。これにより第1の範囲がX^’Q [ω∈{Lmin,…,Lmid-1}]と決定される。 Next, among all the samples X ^ ′ Q (ω) [ω∈ {L min ,..., L max }] included in the corrected quantized normalized signal sequence, the samples whose energy is greater than a predetermined value Half the number f count (L min ) +... + F count (L max ) and all samples X ^ ′ Q (ω) included in the first range of the corrected quantized normalized signal sequence Among [ω∈ {L min , ..., L mid -1}], the difference between the number of samples whose sample energy is larger than a predetermined value f count (L min ) + ... + f count (L mid -1) is the smallest Lmid , which is the sample number on the lowest side of the second range, is obtained so that That is, L mid is obtained by the equation (B3). Accordingly, the first range is determined as X ^ ′ Q [ω∈ {L min ,..., L mid −1}].

Figure 0005840101
Figure 0005840101

そして、修正後量子化正規化済み信号系列X^’Q [ω∈{Lmin,…,Lmax}]の第1の範囲以外の範囲、すなわち、X^’Q [ω∈{Lmid,…,Lmax}]を第2の範囲とする。 Then, a range other than the first range of the modified quantized normalized signal sequence X ^ ′ Q [ω∈ {L min ,..., L max }], that is, X ^ ′ Q [ω∈ {L mid , ..., L max }] is the second range.

以上により、修正後量子化正規化済み信号系列X^’Q [ω∈{Lmin,…,Lmax}]は2つの範囲に区分される。 As described above, the corrected quantized normalized signal sequence X ^ ′ Q [ω∈ {L min ,..., L max }] is divided into two ranges.

区分部150が出力する区分情報は、Lmidであってもよいし、Lmidに予め定めた値を演算した値であってもよいし、第1の範囲のサンプル数Lmid-1−Lmin+1であってもよいし、第2の範囲のサンプル数Lmax−Lmid+1であってもよいし、要は、第1の範囲と第2の範囲とを特定できる情報であれば何でもよい。 Sorting information identifying circuit 150 outputs may be the L mid, may be a value obtained by calculating the predetermined value in the L mid, sample number of the first range L mid -1-L It may be min +1, may be the number of samples in the second range L max -L mid +1, or anything insofar as it is information that can identify the first range and the second range. Good.

[[第2基準による区分処理の第1例の具体例2:4個の範囲に区分する例]]
図14は、区分対象の修正後量子化正規化済み信号系列X^’Q(ω) [ω∈{Lmin,…,Lmax}]を4個の範囲に区分する例、具体的には、第1の範囲と第2の範囲との境界を表す情報として第2の範囲の最も低域側にあるサンプル番号であるL(1)を決定し、第2の範囲と第3の範囲との境界を表す情報として第3の範囲の最も低域側にあるサンプル番号であるL(2)を決定し、第3の範囲と第4の範囲との境界を表す情報として第4の範囲の最も低域側にあるサンプル番号であるL(3)を決定する例である。
[[Example 2 of first example of sorting process based on second standard: Example of sorting into four ranges]]
FIG. 14 shows an example in which the modified quantized normalized signal sequence X ^ ′ Q (ω) [ω∈ {L min ,..., L max }] to be classified is divided into four ranges, specifically , L (1) , which is the sample number on the lowest side of the second range, is determined as information representing the boundary between the first range and the second range, and the second range and the third range are determined. L (2) which is the sample number on the lowest side of the third range is determined as information indicating the boundary of the third range, and information of the fourth range is determined as information indicating the boundary between the third range and the fourth range. This is an example of determining L (3) which is the sample number on the lowest side.

まず、各インデックスωについてfcount(ω)を式(B2)によって定める。 First, f count (ω) is determined for each index ω by the equation (B2).

次に、修正後量子化正規化済み信号系列に含まれる全てのサンプルX^’Q(ω) [ω∈{Lmin,…,Lmax}]のうちサンプルのエネルギーが所定値より大きいサンプルの個数fcount(Lmin)+…+fcount(Lmax)の4分の1と、修正後量子化正規化済み信号系列の第1の範囲にに含まれる全てのサンプルX^’Q(ω) [ω∈{Lmin,…,L(1)-1}]のうちサンプルのエネルギーが所定値より大きいサンプルの個数fcount(Lmin)+…+fcount(L(1)-1)との差が最小となるように求めたL(1)を第2の範囲の最も低域側にあるサンプル番号とする。これにより、X^’Q [ω∈{Lmin,…,L(1)-1}]が第1の範囲として定まる。 Next, among all the samples X ^ ′ Q (ω) [ω∈ {L min ,..., L max }] included in the corrected quantized normalized signal sequence, the samples whose energy is greater than a predetermined value The number f count (L min ) +... + F count (L max ) and all samples X ^ ′ Q (ω included in the first range of the corrected quantized normalized signal sequence ) The number of samples of [ω∈ {L min , ..., L (1) -1}] whose sample energy is greater than a predetermined value f count (L min ) + ... + f count (L (1) -1) L (1) obtained so as to minimize the difference between is the sample number on the lowest side of the second range. Thereby, X ^ ′ Q [ω∈ {L min ,..., L (1) −1}] is determined as the first range.

また、修正後量子化正規化済み信号系列に含まれる全てのサンプルX^’Q(ω) [ω∈{Lmin,…,Lmax}]のうちサンプルのエネルギーが所定値より大きいサンプルの個数fcount(Lmin)+…+fcount(Lmax)の4分の2(すなわち、2分の1)と、修正後量子化正規化済み信号系列の第1の範囲から第2の範囲までに含まれる全てのサンプルのうちサンプルのエネルギーが所定値より大きいサンプルの個数fcount(Lmin)+…+fcount(L(2)-1)との差が最小となるように求めたL(2)を第3の範囲の最も低域側にあるサンプル番号とする。これにより、X^’Q [ω∈{L(1),…,L(2)-1}]が第2の範囲として定まる。 Also, the number of samples whose sample energy is greater than a predetermined value among all samples X ^ ′ Q (ω) [ω∈ {L min ,..., L max }] included in the corrected quantized normalized signal sequence From f count (L min ) +... + f count (L max ) to two- fourths (ie, half) and from the first range to the second range of the corrected quantized normalized signal sequence L samples of energy of all the samples included are determined as the difference between the number of larger samples than the predetermined value f count (L min) + ... + f count (L (2) -1) is minimum Let (2) be the sample number on the lowest side of the third range. Thereby, X ^ ′ Q [ω∈ {L (1) ,..., L (2) −1}] is determined as the second range.

また、修正後量子化正規化済み信号系列に含まれる全てのサンプルX^’Q(ω) [ω∈{Lmin,…,Lmax}]のうちサンプルのエネルギーが所定値より大きいサンプルの個数fcount(Lmin)+…+fcount(Lmax)の4分の3と、修正後量子化正規化済み信号系列の第1の範囲から第3の範囲までに含まれる全てのサンプルのうちサンプルのエネルギーが所定値より大きいサンプルの個数fcount(Lmin)+…+fcount(L(3)-1)との差が最小となるように求めたL(3)を第4の範囲の最も低域側にあるサンプル番号とする。これにより、X^’Q [ω∈{L(2),…,L(3)-1}]が第3の範囲として定まる。 Also, the number of samples whose sample energy is greater than a predetermined value among all samples X ^ ′ Q (ω) [ω∈ {L min ,..., L max }] included in the corrected quantized normalized signal sequence f count (L min ) +... + f count (L max ) of three quarters and all samples included in the first range to the third range of the corrected quantized normalized signal sequence The number of samples whose sample energy is greater than a predetermined value f count (L min ) +… + f count (L (3) −1) L (3) obtained so as to minimize the difference from the fourth range The sample number on the lowest side of Thereby, X ^ ′ Q [ω∈ {L (2) ,..., L (3) −1}] is determined as the third range.

そして、修正後量子化正規化済み信号系列X^’Q [ω∈{Lmin,…,Lmax}]の第1の範囲から第3の範囲以外の範囲、すなわち、X^’Q [ω∈{L(3),…,Lmax}]を第4の範囲とする。 Then, the corrected quantized normalized signal sequence X ^ ′ Q [ω∈ {L min ,..., L max }] is a range other than the first range to the third range, that is, X ^ ′ Q [ω Let ∈ {L (3) ,..., L max }] be the fourth range.

以上により、修正後量子化正規化済み信号系列X^’Q [ω∈{Lmin,…,Lmax}]は4個の範囲に区分される。 As described above, the corrected quantized normalized signal sequence X ^ ′ Q [ω∈ {L min ,..., L max }] is divided into four ranges.

区分部150が出力する区分情報は、L(1)とL(2)とL(3)であってもよいし、L(1)とL(2)とL(3)のそれぞれに予め定めた値を演算した値であってもよいし、各範囲のサンプル数であってもよいし、要は、4個の範囲の全てを特定できる情報であれば何でもよい。 Sorting information identifying circuit 150 outputs may be a L (1) and L (2) and L (3), predetermined to each of the L (1) and L (2) and L (3) The calculated value may be the number of samples in each range, or anything insofar as it is information that can identify all four ranges.

[[第2基準による区分処理の第1例の一般化:N個の範囲に区分する例]]
図15は、区分対象の修正後量子化正規化済み信号系列X^’Q(ω) [ω∈{Lmin,…,Lmax}]をN個の範囲に区分する例、具体的には、第nの範囲と第n+1の範囲との境界を表す情報として第n+1の範囲の最も低域側にあるサンプル番号であるL(n)を決定する例である。以下では、LminをL(0)として説明する。
[[Generalization of the first example of classification processing based on the second criterion: Example of dividing into N ranges]]
FIG. 15 shows an example of dividing the modified quantized normalized signal sequence X ^ ′ Q (ω) [ω∈ {L min ,..., L max }] to be classified into N ranges, specifically In this example, L (n) , which is the sample number on the lowest side of the (n + 1) th range, is determined as information indicating the boundary between the nth range and the (n + 1) th range. In the following description, L min is assumed to be L (0) .

まず、各インデックスωについてfcount(ω)を式(B2)によって定める。 First, f count (ω) is determined for each index ω by the equation (B2).

次に、n=1からN−1のそれぞれのnについて、修正後量子化正規化済み信号系列に含まれる全てのサンプルX^’Q(ω) [ω∈{Lmin,…,Lmax}]のうちサンプルのエネルギーが所定値より大きいサンプルの個数fcount(Lmin)+…+fcount(Lmax)のN分のnと、修正後量子化正規化済み信号系列の第1の範囲から第nの範囲までに含まれる全てのサンプルX^’Q(ω) [ω∈{Lmin,…,L(n)-1}]のうちサンプルのエネルギーが所定値より大きいサンプルの個数fcount(Lmin)+…+fcount(L(n)-1)との差が最小となるように求めたL(n)を第n+1の範囲の最も低域側にあるサンプル番号とする。これにより、X^’Q [ω∈{L(n-1),…,L(n)-1}]が第nの範囲として定まる。 Next, for each n from n = 1 to N−1, all samples X ^ ′ Q (ω) [ω∈ {L min ,..., L max } included in the corrected quantized normalized signal sequence ] Of the number of samples f count (L min ) +... + F count (L max ) of samples whose sample energy is greater than a predetermined value, and the first range of the corrected quantized normalized signal sequence To the nth range of samples X ^ ′ Q (ω) [ω∈ {L min ,..., L (n) −1}], the number f of samples whose sample energy is greater than a predetermined value f L (n) obtained so that the difference from count (L min ) +... + f count (L (n) −1) is minimized is set to the sample number on the lowest side of the ( n + 1 ) th range. Thereby, X ^ ′ Q [ω∈ {L (n−1) ,..., L (n) −1}] is determined as the nth range.

そして、修正後量子化正規化済み信号系列X^’Q [ω∈{Lmin,…,Lmax}]の第1の範囲から第N−1の範囲以外の範囲、すなわち、X^’Q [ω∈{L(N-1),…,Lmax}]を第Nの範囲とする。 Then, the corrected quantized normalized signal sequence X ^ ′ Q [ω∈ {L min ,..., L max }] is in a range other than the first range to the (N−1) th range, that is, X ^ ′ Q Let [ω∈ {L (N−1) ,..., L max }] be the Nth range.

以上により、修正後量子化正規化済み信号系列X^’Q [ω∈{Lmin,…,Lmax}]はN個の範囲に区分される。 As described above, the corrected quantized normalized signal sequence X ^ ′ Q [ω∈ {L min ,..., L max }] is divided into N ranges.

区分部150が出力する区分情報は、L(n)(nは1からN−1までの各整数)であってもよいし、L(n)(nは1からN−1までの各整数)に予め定めた値を演算した値であってもよいし、各範囲のサンプル数であってもよいし、要は、N個の範囲の全てを特定できる情報であれば何でもよい。 Sorting information identifying circuit 150 is output, L (n) (n is the integer from 1 to N-1) may be a, L (n) (each n is an integer from 1 to N-1 ) May be a value obtained by calculating a predetermined value, may be the number of samples in each range, or may be anything as long as it is information that can specify all N ranges.

なお、「修正後量子化正規化済み信号系列の第1の範囲から第nの範囲までに含まれる全てのサンプルのうちサンプルのエネルギーが所定値以上であるサンプルの個数と、修正後量子化正規化済み信号系列に含まれる全てのサンプルのうちサンプルのエネルギーが所定値以上であるサンプルの個数のN分のnと、が最も近付くように、」n=1からN−1のそれぞれのnについて、第nの範囲を定める場合は、式(B2)中の「<」を「≦」に置き換えればよい。   Note that “the number of samples whose sample energy is equal to or greater than a predetermined value among all samples included in the first range to the nth range of the post-correction quantization normalized signal sequence, and the post-correction quantization normalization “N = 1 to N−1” so that n / N of the number of samples whose sample energy is equal to or greater than a predetermined value among all the samples included in the digitized signal sequence In order to define the n-th range, “<” in the formula (B2) may be replaced with “≦”.

[第2基準による区分処理の第2例]
第2基準による区分処理の第2例は上記の(b)に対応する。第2例の区分処理は、第1例の区分処理における「二乗和」を「絶対値和」に置き換えた以外は、第1例の区分処理と同じ方法である。第2例の区分処理によれば、第1例の区分処理で行なう二乗計算を省略できる分、第1例の区分処理よりも少ない演算処理量で区分処理を行なうことが可能となる。
[Second example of classification processing based on the second standard]
A second example of the sorting process based on the second standard corresponds to the above (b). The sorting process of the second example is the same method as the sorting process of the first example, except that “sum of squares” in the sorting process of the first example is replaced with “sum of absolute values”. According to the sorting process of the second example, it is possible to perform the sorting process with a smaller amount of calculation processing than the sorting process of the first example because the square calculation performed in the sorting process of the first example can be omitted.

[第2基準による区分処理の第3例]
第2基準による区分処理の第3例を図16と図17と図18を用いて説明する。第3例の区分処理は上記の(c)に対応する。第3例の区分処理は、修正後量子化正規化済み信号系列の第nの範囲(nは1からN−1までの各整数)を、修正後量子化正規化済み信号系列の第1の範囲から第nの範囲までに含まれる全てのサンプルのうちサンプルのエネルギーが所定値より大きいかまたは所定値以上であるサンプルの個数が、修正後量子化正規化済み信号系列に含まれる全てのサンプルのうちサンプルのエネルギーが所定値より大きいかまたは所定値以上であるサンプルの個数のN分のn以上となる最小のサンプル数となるように求め、修正後量子化正規化済み信号系列のうちの第1の範囲から第N−1の範囲以外の範囲を、修正後量子化正規化済み信号系列の第Nの範囲とすることで、修正後量子化正規化済み信号系列をN個の範囲に区分する処理である。
[Third example of sorting process based on second standard]
A third example of the sorting process based on the second reference will be described with reference to FIGS. 16, 17, and 18. FIG. The classification process of the third example corresponds to the above (c). The division processing of the third example is performed by using the nth range (n is an integer from 1 to N−1) of the corrected quantized normalized signal sequence and the first quantized normalized signal sequence of the corrected first sequence. All samples in which the number of samples whose sample energy is greater than or equal to or greater than or equal to a predetermined value among all samples included in the range to the nth range is included in the corrected quantized normalized signal sequence Out of the corrected quantized normalized signal sequence, the sample energy is determined to be a minimum number of samples equal to or greater than n / N of the number of samples whose energy is greater than or equal to a predetermined value. The range other than the first range to the (N−1) th range is set as the Nth range of the corrected quantized normalized signal sequence, so that the corrected quantized normalized signal sequence is reduced to N ranges. It is a process to classify.

[[第2基準による区分処理の第3例の具体例1:2つの範囲に区分する例]]
図16は、2つの範囲に区分する例、すなわち、N=2の場合の例である。区分対象の修正後量子化正規化済み信号系列X^’Q(ω) [ω∈{Lmin,…,Lmax}]をX^’Q(ω) [ω∈{Lmin,…,Lmid-1}]とX^’Q(ω) [ω∈{Lmid,…,Lmax}]の2つの範囲に区分する例、具体的には、第1の範囲である低域と第2の範囲である高域との境界を表す情報として第2の範囲の最も低域側にあるサンプル番号であるLmidを決定する場合の例である。
[[Specific example 1 of the third example of the sorting process based on the second standard 1: Example of dividing into two ranges]]
FIG. 16 shows an example of dividing into two ranges, that is, an example where N = 2. The modified quantized normalized signal sequence X ^ ′ Q (ω) [ω∈ {L min ,..., L max }] to be classified is changed to X ^ ′ Q (ω) [ω∈ {L min ,. mid −1}] and X ^ ′ Q (ω) [ω∈ {L mid ,..., L max }] An example of dividing into two ranges, specifically, the first range is the low range and the second range. This is an example in which Lmid , which is the sample number on the lowest frequency side of the second range, is determined as information representing the boundary with the high frequency range of 2.

まず、各インデックスωについてfcount(ω)を式(B2)によって定める。 First, f count (ω) is determined for each index ω by the equation (B2).

次に、修正後量子化正規化済み信号系列に含まれる全てのサンプルX^’Q(ω) [ω∈{Lmin,…,Lmax}]のうちサンプルのエネルギーが所定値より大きいサンプルの個数fcount(Lmin)+…+fcount(Lmax)を求める。 Next, among all the samples X ^ ′ Q (ω) [ω∈ {L min ,..., L max }] included in the corrected quantized normalized signal sequence, the samples whose energy is greater than a predetermined value The number f count (L min ) +... + F count (L max ) is obtained.

次に、離散周波数のインデックスωの番号kをLminから順に増やしながらLminから当該インデクスkまでの修正後量子化正規化済み信号系列に含まれる全てのサンプルのうちサンプルのエネルギーが所定値より大きいサンプルの個数fcount(Lmin)+…+fcount(k)が(fcount(Lmin)+…+fcount(Lmax))/2以上であるか否かを判定し、初めてfcount(Lmin)+…+fcount(k)が (fcount(Lmin)+…+fcount(Lmax))/2以上となる離散周波数のインデックスkまでを第1の範囲とし、当該インデックスkに1を加算したものを第2の範囲の最も低域側にあるサンプル番号であるインデックスL midとして出力する。これにより第1の範囲がX^’Q [ω∈{Lmin,…,Lmid-1}]と決定される。 Next, the energy of the samples of all the samples included a number k of the index ω discrete frequency corrected quantized normalized signal sequence from L min from L min to the index k, while increasing the order of the predetermined value It is determined whether or not the number of large samples f count (L min ) + ... + f count (k) is (f count (L min ) + ... + f count (L max )) / 2 or more. count (L min ) +… + f count (k) is the first range up to index k of the discrete frequency where (f count (L min ) +… + f count (L max )) / 2 or more A value obtained by adding 1 to the index k is output as an index L mid which is a sample number on the lowest side of the second range. Accordingly, the first range is determined as X ^ ′ Q [ω∈ {L min ,..., L mid −1}].

そして、修正後量子化正規化済み信号系列X^’Q [ω∈{Lmin,…,Lmax}]の第1の範囲以外の範囲、すなわち、X^’Q [ω∈{Lmid,…,Lmax}]を第2の範囲とする。 Then, a range other than the first range of the modified quantized normalized signal sequence X ^ ′ Q [ω∈ {L min ,..., L max }], that is, X ^ ′ Q [ω∈ {L mid , ..., L max }] is the second range.

以上により、修正後量子化正規化済み信号系列X^’Q [ω∈{Lmin,…,Lmax}]は2つの範囲に区分される。 As described above, the corrected quantized normalized signal sequence X ^ ′ Q [ω∈ {L min ,..., L max }] is divided into two ranges.

区分部150が出力する区分情報は、L midであってもよいし、L midに予め定めた値を演算した値であってもよいし、第1の範囲のサンプル数Lmid−Lminであってもよいし、第2の範囲のサンプル数Lmax−Lmid+1であってもよいし、要は、第1の範囲と第2の範囲とを特定できる情報であれば何でもよい。 Sorting information identifying circuit 150 outputs may be the L mid, may be a value obtained by calculating the predetermined value in the L mid, number of samples L mid -L min of the first range The number of samples in the second range may be L max −L mid +1, or anything insofar as the information can identify the first range and the second range.

[[第2基準による区分処理の第3例の具体例2:4個の範囲に区分する例]]
図17は、区分対象の修正後量子化正規化済み信号系列X^’Q(ω) [ω∈{Lmin,…,Lmax}]を4個の範囲に区分する例、具体的には、第1の範囲と第2の範囲との境界を表す情報として第2の範囲の最も低域側にあるサンプル番号であるL(1)を決定し、第2の範囲と第3の範囲との境界を表す情報として第3の範囲の最も低域側にあるサンプル番号であるL(2)を決定し、第3の範囲と第4の範囲との境界を表す情報として第4の範囲の最も低域側にあるサンプル番号であるL(3)を決定する例である。
[[Specific example 2 of the third example of classification processing based on the second standard: Example of dividing into four ranges]]
FIG. 17 shows an example in which the corrected quantized normalized signal sequence X ^ ′ Q (ω) [ω∈ {L min ,..., L max }] to be classified is divided into four ranges, specifically , L (1) , which is the sample number on the lowest side of the second range, is determined as information representing the boundary between the first range and the second range, and the second range and the third range are determined. L (2) which is the sample number on the lowest side of the third range is determined as information indicating the boundary of the third range, and information of the fourth range is determined as information indicating the boundary between the third range and the fourth range. This is an example of determining L (3) which is the sample number on the lowest side.

まず、各インデックスωについてfcount(ω)を式(B2)によって定める。 First, f count (ω) is determined for each index ω by the equation (B2).

次に、修正後量子化正規化済み信号系列に含まれる全てのサンプルX^’Q(ω) [ω∈{Lmin,…,Lmax}]のうちサンプルのエネルギーが所定値より大きいサンプルの個数fcount(Lmin)+…+fcount(Lmax)を求める。 Next, among all the samples X ^ ′ Q (ω) [ω∈ {L min ,..., L max }] included in the corrected quantized normalized signal sequence, the samples whose energy is greater than a predetermined value The number f count (L min ) +... + F count (L max ) is obtained.

次に、修正後量子化正規化済み信号系列の第1の範囲に含まれる全てのサンプルX^’Q(ω)[ω∈{Lmin,…,L(1)-1}]のうちサンプルのエネルギーが所定値より大きいサンプルの個数fcount(Lmin)+…+fcount(L(1)-1)が、修正後量子化正規化済み信号系列に含まれる全てのサンプルX^’Q(ω) [ω∈{Lmin,…,Lmax}]のうちサンプルのエネルギーが所定値より大きいサンプルの個数fcount(Lmin)+…+fcount(Lmax)の4分の1以上であり、かつ、修正後量子化正規化済み信号系列の第1の範囲に含まれる全てのサンプルから第1の範囲の最も高域側にある1つのサンプルを除いた信号系列に含まれる全てのサンプルX^’Q(ω)[ω∈{Lmin,…,L(1)-2}]のうちサンプルのエネルギーが所定値より大きいサンプルの個数fcount(Lmin)+…+fcount(L(1)-2)が、修正後量子化正規化済み信号系列に含まれる全てのサンプルX^’Q(ω) [ω∈{Lmin,…,Lmax}]のうちサンプルのエネルギーが所定値より大きいサンプルの個数fcount(Lmin)+…+fcount(Lmax)の4分の1より小さい、L(1)を第2の範囲の最も低域側にあるサンプル番号として求める。これにより、X^’Q [ω∈{Lmin,…,L (1)-1}]が第1の範囲として定まる。 Next, among all samples X ^ ′ Q (ω) [ω∈ {L min ,..., L (1) −1}] included in the first range of the corrected quantized normalized signal sequence The number of samples f count (L min ) +… + f count (L (1) -1) whose energy is greater than a predetermined value is all samples X ^ ' Q included in the corrected quantized normalized signal sequence (ω) [ω∈ {L min , ..., L max}] number f count (L min) of the sample energy is greater than a predetermined value of a sample of the + ... + f count (L max ) 4 over one of And all the samples included in the signal sequence excluding the one sample at the highest frequency side of the first range from all the samples included in the first range of the corrected quantized normalized signal sequence. Number of samples in which the sample energy is greater than a predetermined value among the samples X ^ ' Q (ω) [ω∈ {L min , ..., L (1) -2}] f count (L min ) + ... + f count ( L (1) -2) is All samples X ^ 'Q contained in the corrected quantized normalized signal sequence (ω) [ω∈ {L min , ..., L max}] number f count energy sample is larger samples than the predetermined value among the L (1), which is smaller than a quarter of (L min ) +... + F count (L max ), is determined as the sample number on the lowest side of the second range. Thereby, X ^ ′ Q [ω∈ {L min ,..., L (1) −1}] is determined as the first range.

次に、修正後量子化正規化済み信号系列の第1と第2の範囲に含まれる全てのサンプルX^’Q(ω)[ω∈{Lmin,…,L(2)-1}]のうちサンプルのエネルギーが所定値より大きいサンプルの個数fcount(Lmin)+…+fcount(L(2)-1)が、修正後量子化正規化済み信号系列に含まれる全てのサンプルX^’Q(ω) [ω∈{Lmin,…,Lmax}]のうちサンプルのエネルギーが所定値より大きいサンプルの個数fcount(Lmin)+…+fcount(Lmax)の2分の1以上であり、かつ、修正後量子化正規化済み信号系列の第1と第2の範囲に含まれる全てのサンプルから第2の範囲の最も高域側にある1つのサンプルを除いた信号系列に含まれる全てのサンプルX^’Q(ω)[ω∈{Lmin,…,L(2)-2}]のうちサンプルのエネルギーが所定値より大きいサンプルの個数fcount(Lmin)+…+fcount(L(2)-2)が、修正後量子化正規化済み信号系列に含まれる全てのサンプルX^’Q(ω) [ω∈{Lmin,…,Lmax}]のうちサンプルのエネルギーが所定値より大きいサンプルの個数fcount(Lmin)+…+fcount(Lmax)の2分の1より小さい、L(2)を第3の範囲の最も低域側にあるサンプル番号として求める。これにより、X^’Q [ω∈{L(1),…,L (2)-1}]が第2の範囲として定まる。 Next, all samples X ^ ′ Q (ω) [ω∈ {L min ,..., L (2) −1}] included in the first and second ranges of the corrected quantized normalized signal sequence samples of energy is large sample number f count than a predetermined value among the (L min) + ... + f count (L (2) -1) , all the samples X contained in the revised quantization normalized signal sequence ^ ' Q (ω) [ω∈ {L min , ..., L max }] 2 minutes, the number of samples f count (L min ) + ... + f count (L max ) And a signal obtained by excluding one sample at the highest side of the second range from all samples included in the first and second ranges of the corrected quantized normalized signal sequence Number of samples f count (L min ) of all samples X ^ ′ Q (ω) [ω∈ {L min ,..., L (2) −2}] included in the sequence whose sample energy is greater than a predetermined value + ... + f co unt (L (2) -2) is the sample of all samples X ^ ' Q (ω) [ω∈ {L min , ..., L max }] included in the modified quantized normalized signal sequence Number of samples whose energy is greater than a predetermined value f count (L min ) + ... + f count (L max ) less than one half, L (2) is the sample number at the lowest side of the third range Asking. Thereby, X ^ ′ Q [ω∈ {L (1) ,..., L (2) −1}] is determined as the second range.

次に、修正後量子化正規化済み信号系列の第1と第2と第3の範囲に含まれる全てのサンプルX^’Q(ω)[ω∈{Lmin,…,L(3)-1}]のうちサンプルのエネルギーが所定値より大きいサンプルの個数fcount(Lmin)+…+fcount(L(3)-1)が、修正後量子化正規化済み信号系列に含まれる全てのサンプルX^’Q(ω) [ω∈{Lmin,…,Lmax}]のうちサンプルのエネルギーが所定値より大きいサンプルの個数fcount(Lmin)+…+fcount(Lmax)の3分の4以上であり、かつ、修正後量子化正規化済み信号系列の第1と第2と第3の範囲に含まれる全てのサンプルから第3の範囲の最も高域側にある1つのサンプルを除いた信号系列に含まれる全てのサンプルX^’Q(ω)[ω∈{Lmin,…,L(3)-2}]のうちサンプルのエネルギーが所定値より大きいサンプルの個数fcount(Lmin)+…+fcount(L(3)-2)が、修正後量子化正規化済み信号系列に含まれる全てのサンプルX^’Q(ω) [ω∈{Lmin,…,Lmax}]のうちサンプルのエネルギーが所定値より大きいサンプルの個数fcount(Lmin)+…+fcount(Lmax)の3分の4より小さい、L(3)を第4の範囲の最も低域側にあるサンプル番号として求める。これにより、X^’Q [ω∈{L(2),…,L (3)-1}]が第3の範囲として定まる。 Next, all samples X ^ ′ Q (ω) [ω∈ {L min ,..., L (3) − included in the first, second, and third ranges of the corrected quantized normalized signal sequence 1}], the number of samples f count (L min ) +... + F count (L (3) −1) in which the sample energy is greater than the predetermined value is included in the corrected quantized normalized signal sequence. Of samples X ^ ' Q (ω) [ω∈ {L min ,..., L max }], the number of samples whose sample energy is greater than a predetermined value f count (L min ) +... + F count (L max ) 1 that is equal to or higher than 4/3 of all the samples included in the first, second, and third ranges of the corrected quantized normalized signal sequence and that is the highest in the third range Number of samples whose sample energy is greater than a predetermined value among all samples X ^ ' Q (ω) [ω∈ {L min , ..., L (3) -2}] included in the signal sequence excluding two samples f count ( L min ) + ... + f count (L (3) -2) is the sum of all samples X ^ ' Q (ω) [ω∈ {L min , ..., L included in the modified quantized normalized signal sequence max}] of sample energy number of larger samples than the predetermined value f count (L min) + ... + f count 3 min 4 smaller than (L max), most L a (3) of the fourth range Obtained as the sample number on the low frequency side. Thereby, X ^ ′ Q [ω∈ {L (2) ,..., L (3) −1}] is determined as the third range.

これら処理は、具体的には例えば、以下により実現できる。   Specifically, these processes can be realized by, for example, the following.

まず、各インデックスωについてfcount(ω)を式(B2)によって定める。そして、fcount(Lmin)+…+fcount(Lmax)をFとする。 First, f count (ω) is determined for each index ω by the equation (B2). Then, let f count (L min ) +... + F count (L max ) be F.

次に、iをLminから順に1ずつ増やしながら式(B4)を満たすか否かを判断していき、式(B4)を満たすiに1を加算したものをL(1)として求める。これにより、X^’Q [ω∈{Lmin,…,L(1)-1}]が第1の範囲として定まる。 Next, it is determined whether or not the formula (B4) is satisfied while i is incremented by 1 sequentially from L min, and a value obtained by adding 1 to i satisfying the formula (B4) is obtained as L (1) . Thereby, X ^ ′ Q [ω∈ {L min ,..., L (1) −1}] is determined as the first range.

Figure 0005840101
Figure 0005840101

さらに、iをLminから順に1ずつ増やしながら式(B5)を満たすか否かを判断していき、式(B5)を満たすiに1を加算したものをL(2)として求める。これにより、X^’Q [ω∈{L(1),…,L(2)-1}]が第2の範囲として定まる。 Further, it is determined whether or not the formula (B5) is satisfied while increasing i sequentially by 1 from L min, and a value obtained by adding 1 to i satisfying the formula (B5) is obtained as L (2) . Thereby, X ^ ′ Q [ω∈ {L (1) ,..., L (2) −1}] is determined as the second range.

Figure 0005840101
Figure 0005840101

さらに、iをLminから順に1ずつ増やしながら式(B6)を満たすか否かを判断していき、式(B6)を満たすiに1を加算したものをL(3)として求める。これにより、X^’Q [ω∈{L(2),…,L(3)-1}]が第3の範囲として定まる。 Further, it is determined whether or not the formula (B6) is satisfied while increasing i sequentially by 1 from L min, and a value obtained by adding 1 to i satisfying the formula (B6) is obtained as L (3) . Thereby, X ^ ′ Q [ω∈ {L (2) ,..., L (3) −1}] is determined as the third range.

Figure 0005840101
Figure 0005840101

そして、修正後量子化正規化済み信号系列X^’Q [ω∈{Lmin,…,Lmax}]の第1の範囲から第3の範囲以外の範囲、すなわち、X^’Q [ω∈{L(3),…,Lmax}]を第4の範囲とする。 Then, the corrected quantized normalized signal sequence X ^ ′ Q [ω∈ {L min ,..., L max }] is a range other than the first range to the third range, that is, X ^ ′ Q [ω Let ∈ {L (3) ,..., L max }] be the fourth range.

以上により、修正後量子化正規化済み信号系列X^’Q [ω∈{Lmin,…,Lmax}]は4個の範囲に区分される。 As described above, the corrected quantized normalized signal sequence X ^ ′ Q [ω∈ {L min ,..., L max }] is divided into four ranges.

区分部150が出力する区分情報は、L(1)とL(2)とL(3)であってもよいし、L(1)とL(2)とL(3)のそれぞれに予め定めた値を演算した値であってもよいし、各範囲のサンプル数であってもよいし、要は、4個の範囲の全てを特定できる情報であれば何でもよい。 Sorting information identifying circuit 150 outputs may be a L (1) and L (2) and L (3), predetermined to each of the L (1) and L (2) and L (3) The calculated value may be the number of samples in each range, or anything insofar as it is information that can identify all four ranges.

[[第2基準による区分処理の第3例の一般化:N個の範囲に区分する例]]
図18は、区分対象の修正後量子化正規化済み信号系列X^’Q(ω) [ω∈{Lmin,…,Lmax}]をN個の範囲に区分する例、具体的には、第nの範囲と第n+1の範囲との境界を表す情報として第n+1の範囲の最も低域側にあるサンプル番号であるL(n)を決定する例である。
[[Generalization of the third example of classification processing based on the second criterion: Example of dividing into N ranges]]
FIG. 18 shows an example of dividing the modified quantized normalized signal sequence X ^ ′ Q (ω) [ω∈ {L min ,..., L max }] to be divided into N ranges, specifically, In this example, L (n) , which is the sample number on the lowest side of the (n + 1) th range, is determined as information indicating the boundary between the nth range and the (n + 1) th range.

まず、各インデックスωについてfcount(ω)を式(B2)によって定める。 First, f count (ω) is determined for each index ω by the equation (B2).

次に、修正後量子化正規化済み信号系列に含まれる全てのサンプルX^’Q(ω) [ω∈{Lmin,…,Lmax}]のうちサンプルのエネルギーが所定値より大きいサンプルの個数fcount(Lmin)+…+fcount(Lmax)を求める。 Next, among all the samples X ^ ′ Q (ω) [ω∈ {L min ,..., L max }] included in the corrected quantized normalized signal sequence, the samples whose energy is greater than a predetermined value The number f count (L min ) +... + F count (L max ) is obtained.

次に、n=1からN−1のそれぞれのnについて、修正後量子化正規化済み信号系列の第1の範囲から第nの範囲に含まれる全てのサンプルX^’Q(ω)[ω∈{Lmin,…,L(n)-1}]のうちサンプルのエネルギーが所定値より大きいサンプルの個数fcount(Lmin)+…+fcount(L(n)-1)が、修正後量子化正規化済み信号系列に含まれる全てのサンプルX^’Q(ω) [ω∈{Lmin,…,Lmax}]のうちサンプルのエネルギーが所定値より大きいサンプルの個数fcount(Lmin)+…+fcount(Lmax)のN分のn以上であり、かつ、修正後量子化正規化済み信号系列の第1の範囲から第nの範囲に含まれる全てのサンプルから第nの範囲の最も高域側にある1つのサンプルを除いた信号系列X^’Q(ω)[ω∈{Lmin,…,L(n)-2}]のうちサンプルのエネルギーが所定値より大きいサンプルの個数fcount(Lmin)+…+fcount(L(n)-2)が、修正後量子化正規化済み信号系列に含まれる全てのサンプルX^’Q(ω) [ω∈{Lmin,…,Lmax}]のうちサンプルのエネルギーが所定値より大きいサンプルの個数fcount(Lmin)+…+fcount(Lmax)のN分のnより小さい、L(n)を第n+1の範囲の最も低域側にあるサンプル番号として求める。これにより、X^’Q [ω∈{Lmin,…,L(1)-1}]が第1の範囲、n=2からN−1のそれぞれのnについて、X^’Q [ω∈{L(n-1),…,L(n)-1}]が第nの範囲、として定まる。 Next, for each n from n = 1 to N−1, all samples X ^ ′ Q (ω) [ω included in the first range to the n-th range of the corrected quantized normalized signal sequence ∈ {L min , ..., L (n) -1}], the number of samples f count (L min ) + ... + f count (L (n) -1) is corrected. The number of samples f count (where the sample energy is greater than a predetermined value among all the samples X ^ ′ Q (ω) [ω∈ {L min ,..., L max }] included in the post-quantization normalized signal sequence f count ( L min ) +... + F count (L max ) n times N or more, and the first through the nth range of the corrected quantized normalized signal sequence The energy of the sample in the signal sequence X ^ ′ Q (ω) [ω∈ {L min ,..., L (n) −2}] excluding one sample at the highest frequency in the range of n is a predetermined value. Greater than Sample number f count (L min) + ... + f count (L (n) -2) are all included in the corrected quantized normalized signal sequence samples X ^ 'Q (ω) [ ω∈ { L min, ..., L max} ] samples of energy number of larger samples than the predetermined value f count of (L min) + ... + f count n content less than the n of (L max), L (n) is Obtained as the sample number at the lowest side of the (n + 1) th range. Thus, X ^ ′ Q [ω∈ {L min ,..., L (1) −1}] is X ′ ′ Q [ω∈ for each n in the first range, n = 2 to N−1. {L (n−1) ,..., L (n) −1}] is determined as the nth range.

この処理は、具体的には例えば、以下により実現できる。   Specifically, this processing can be realized by, for example, the following.

まず、各インデックスωについてfcount(ω)を式(B2)によって定める。そして、fcount(Lmin)+…+fcount(Lmax)をFとする。 First, f count (ω) is determined for each index ω by the equation (B2). Then, let f count (L min ) +... + F count (L max ) be F.

次に、n=1について、iをLminから順に1ずつ増やしながら式(B7)を満たすか否かを判断していき、式(B7)を満たすiに1を加算したものをL(1)として求める。これにより、X^’Q [ω∈{Lmin,…,L(1)-1}]が第1の範囲として定まる。 Next, for n = 1, it is determined whether or not the formula (B7) is satisfied while increasing i sequentially by 1 from L min, and a value obtained by adding 1 to i satisfying the formula (B7) is represented by L (1 ) . Thereby, X ^ ′ Q [ω∈ {L min ,..., L (1) −1}] is determined as the first range.

Figure 0005840101
Figure 0005840101

さらに、n=2からN−1のそれぞれのnについて、iをL(n-1)から順に1ずつ増やしながら式(B7)を満たすか否かを判断していき、式(B7)を満たすiに1を加算したものをL(n)として求める処理をnが小さい順に繰り返す。以上の処理により、n=2からN−1のそれぞれのnについて、X^’Q [ω∈{L(n-1),…,L(n)-1}]が第nの範囲として定まる。 Further, for each n from n = 2 to N−1, it is determined whether or not Expression (B7) is satisfied while i is increased by 1 sequentially from L (n−1) , and Expression (B7) is satisfied. The process of obtaining the value obtained by adding 1 to i as L (n) is repeated in the order of increasing n. With the above processing, X ^ ′ Q [ω∈ {L (n−1) ,..., L (n) −1 }] is determined as the nth range for each n from n = 2 to N−1. .

そして、修正後量子化正規化済み信号系列X^’Q [ω∈{Lmin,…,Lmax}]の第1の範囲から第N−1の範囲以外の範囲、すなわち、X^’Q [ω∈{L(n),…,Lmax}]を第Nの範囲とする。 Then, the corrected quantized normalized signal sequence X ^ ′ Q [ω∈ {L min ,..., L max }] is in a range other than the first range to the (N−1) th range, that is, X ^ ′ Q Let [ω∈ {L (n) ,..., L max }] be the Nth range.

以上により、修正後量子化正規化済み信号系列X^’Q [ω∈{Lmin,…,Lmax}]はN個の範囲に区分される。 As described above, the corrected quantized normalized signal sequence X ^ ′ Q [ω∈ {L min ,..., L max }] is divided into N ranges.

区分部150が出力する区分情報は、L(n)(nは1からN−1までの各整数)であってもよいし、L(n)(nは1からN−1までの各整数)に予め定めた値を演算した値であってもよいし、各範囲のサンプル数であってもよいし、要は、N個の範囲の全てを特定できる情報であれば何でもよい。 Sorting information identifying circuit 150 is output, L (n) (n is the integer from 1 to N-1) may be a, L (n) (each n is an integer from 1 to N-1 ) May be a value obtained by calculating a predetermined value, may be the number of samples in each range, or may be anything as long as it is information that can specify all N ranges.

[第2基準による区分処理の第4例]
第2基準による区分処理の第4例は上記の(d)に対応する。第4例の区分処理は、第3例の区分処理における「二乗和」を「絶対値和」に置き換えた以外は、第3例の区分処理と同じ方法である。第4例の区分処理によれば、第3例の区分処理で行なう二乗計算を省略できる分、第3例の区分処理よりも少ない演算処理量で区分処理を行なうことが可能となる。
[Fourth example of classification processing based on the second standard]
The fourth example of the sorting process based on the second standard corresponds to the above (d). The sorting process of the fourth example is the same method as the sorting process of the third example, except that “sum of squares” in the sorting process of the third example is replaced with “sum of absolute values”. According to the classification process of the fourth example, it is possible to perform the classification process with a smaller calculation processing amount than the classification process of the third example because the square calculation performed in the classification process of the third example can be omitted.

[第2基準による区分処理の第5例]
第2基準による区分処理の第5例を図19と図20と図21を用いて説明する。第5例の区分処理は上記の(e)に対応する。第5例の区分処理は、修正後量子化正規化済み信号系列の第nの範囲(nは1からN−1までの各整数)を、修正後量子化正規化済み信号系列の第1の範囲から第nの範囲までに含まれる全てのサンプルのうちサンプルのエネルギーが所定値より大きいかまたは所定値以上であるサンプルの個数が、修正後量子化正規化済み信号系列に含まれる全てのサンプルのうちサンプルのエネルギーが所定値より大きいかまたは所定値以上であるサンプルの個数のN分のn以下となる最大のサンプル数となるように求め、修正後量子化正規化済み信号系列のうちの第1の範囲から第N−1の範囲以外の範囲を、修正後量子化正規化済み信号系列の第Nの範囲とすることで、修正後量子化正規化済み信号系列をN個の範囲に区分する処理である。
[Fifth example of sorting process based on second criterion]
A fifth example of the sorting process based on the second reference will be described with reference to FIGS. The classification process of the fifth example corresponds to the above (e). The division processing of the fifth example is performed using the nth range (n is an integer from 1 to N−1) of the corrected quantized normalized signal sequence, and the first quantized normalized signal sequence of the corrected first sequence. All samples in which the number of samples whose sample energy is greater than or equal to or greater than or equal to a predetermined value among all samples included in the range to the nth range is included in the corrected quantized normalized signal sequence Out of the corrected quantized normalized signal sequences, the energy of the samples is determined to be the maximum number of samples that is less than n / N of the number of samples that is greater than or equal to the predetermined value. The range other than the first range to the (N−1) th range is set as the Nth range of the corrected quantized normalized signal sequence, so that the corrected quantized normalized signal sequence is reduced to N ranges. It is a process to classify.

[[第2基準による区分処理の第5例の具体例1:2つの範囲に区分する例]]
図19は、2つの範囲に区分する例、すなわち、N=2の場合の例である。区分対象の修正後量子化正規化済み信号系列X^’Q(ω) [ω∈{Lmin,…,Lmax}]をX^’Q(ω) [ω∈{Lmin,…,Lmid-1}]とX^’Q(ω) [ω∈{Lmid,…,Lmax}]の2つの範囲に区分する例、具体的には、第1の範囲である低域と第2の範囲である高域との境界を表す情報として第2の範囲の最も低域側にあるサンプル番号であるLmidを決定する場合の例である。
[[Specific example of the fifth example of the sorting process based on the second standard 1: Example of dividing into two ranges]]
FIG. 19 shows an example of dividing into two ranges, that is, an example where N = 2. The modified quantized normalized signal sequence X ^ ′ Q (ω) [ω∈ {L min ,..., L max }] to be classified is changed to X ^ ′ Q (ω) [ω∈ {L min ,. mid −1}] and X ^ ′ Q (ω) [ω∈ {L mid ,..., L max }] An example of dividing into two ranges, specifically, the first range is the low range and the second range. This is an example in which Lmid , which is the sample number on the lowest frequency side of the second range, is determined as information representing the boundary with the high frequency range of 2.

まず、各インデックスωについてfcount(ω)を式(B2)によって定める。 First, f count (ω) is determined for each index ω by the equation (B2).

次に、修正後量子化正規化済み信号系列に含まれる全てのサンプルX^’Q(ω) [ω∈{Lmin,…,Lmax}]のうちサンプルのエネルギーが所定値より大きいサンプルの個数fcount(Lmin)+…+fcount(Lmax)を求める。 Next, among all the samples X ^ ′ Q (ω) [ω∈ {L min ,..., L max }] included in the corrected quantized normalized signal sequence, the samples whose energy is greater than a predetermined value The number f count (L min ) +... + F count (L max ) is obtained.

次に、離散周波数のインデックスωの番号kをLminから順に増やしながらLminから当該インデクスkまでの量子化正規化済み信号系列に含まれる全てのサンプルのうちサンプルのエネルギーが所定値より大きいサンプルの個数fcount(Lmin)+…+fcount(k)が(fcount(Lmin)+…+fcount(Lmax))/2より大であるか否かを判定し、初めてfcount(Lmin)+…+fcount(k)が (fcount(Lmin)+…+fcount(Lmax))/2より大となる離散周波数のインデックスkより1小さいk-1までを第1の範囲とし、当該インデックスkを第2の範囲の最も低域側にあるサンプル番号であるインデックスL midとして出力する。これにより第1の範囲がX^’Q [ω∈{Lmin,…,Lmid-1}]と決定する。 Next, the number k of the discrete frequency index ω is increased from L min in order, and the sample energy is greater than a predetermined value among all samples included in the quantized normalized signal sequence from L min to the index k. number f count (L min) + ... + f count (k) is (f count (L min) + ... + f count (L max)) / 2 than it is determined whether or not large, for the first time f count (L min ) + ... + f count (k) is k-1 less than the index k of the discrete frequency where (f count (L min ) + ... + f count (L max )) / 2 is greater than The index k is output as the index L mid which is the sample number on the lowest side of the second range. As a result, the first range is determined as X ^ ′ Q [ω∈ {L min ,..., L mid −1}].

そして、修正後量子化正規化済み信号系列X^’Q [ω∈{Lmin,…,Lmax}]の第1の範囲以外の範囲、すなわち、X^’Q [ω∈{Lmid,…,Lmax}]を第2の範囲とする。 Then, a range other than the first range of the modified quantized normalized signal sequence X ^ ′ Q [ω∈ {L min ,..., L max }], that is, X ^ ′ Q [ω∈ {L mid , ..., L max }] is the second range.

以上により、修正後量子化正規化済み信号系列X^’Q [ω∈{Lmin,…,Lmax}]は2つの範囲に区分される。 As described above, the corrected quantized normalized signal sequence X ^ ′ Q [ω∈ {L min ,..., L max }] is divided into two ranges.

区分部150が出力する区分情報は、Lmidであってもよいし、Lmidに予め定めた値を演算した値であってもよいし、第1の範囲のサンプル数Lmid−Lminであってもよいし、第2の範囲のサンプル数Lmax−Lmid+1であってもよいし、要は、第1の範囲と第2の範囲とを特定できる情報であれば何でもよい。 Sorting information identifying circuit 150 outputs may be the L mid, may be a value obtained by calculating the predetermined value in the L mid, number of samples L mid -L min of the first range The number of samples in the second range may be L max −L mid +1, or anything insofar as the information can identify the first range and the second range.

[[第2基準による区分処理の第5例の具体例2:4個の範囲に区分する例]]
図20は、区分対象の修正後量子化正規化済み信号系列X^’Q(ω) [ω∈{Lmin,…,Lmax}]を4個の範囲に区分する例、具体的には、第1の範囲と第2の範囲との境界を表す情報として第2の範囲の最も低域側にあるサンプル番号であるL(1)を決定し、第2の範囲と第3の範囲との境界を表す情報として第3の範囲の最も低域側にあるサンプル番号であるL(2)を決定し、第3の範囲と第4の範囲との境界を表す情報として第4の範囲の最も低域側にあるサンプル番号であるL(3)を決定する例である。
[[Example 2 of the fifth example of the sorting process based on the second standard: Example of sorting into four ranges]]
FIG. 20 shows an example in which the corrected quantized normalized signal sequence X ^ ′ Q (ω) [ω∈ {L min ,..., L max }] to be classified is divided into four ranges, specifically , L (1) , which is the sample number on the lowest side of the second range, is determined as information representing the boundary between the first range and the second range, and the second range and the third range are determined. L (2) which is the sample number on the lowest side of the third range is determined as information indicating the boundary of the third range, and information of the fourth range is determined as information indicating the boundary between the third range and the fourth range. This is an example of determining L (3) which is the sample number on the lowest side.

まず、各インデックスωについてfcount(ω)を式(B2)によって定める。 First, f count (ω) is determined for each index ω by the equation (B2).

次に、修正後量子化正規化済み信号系列に含まれる全てのサンプルX^’Q(ω) [ω∈{Lmin,…,Lmax}]のうちサンプルのエネルギーが所定値より大きいサンプルの個数fcount(Lmin)+…+fcount(Lmax)を求める。 Next, among all the samples X ^ ′ Q (ω) [ω∈ {L min ,..., L max }] included in the corrected quantized normalized signal sequence, the samples whose energy is greater than a predetermined value The number f count (L min ) +... + F count (L max ) is obtained.

次に、修正後量子化正規化済み信号系列の第1の範囲に含まれる全てのサンプルX^’Q(ω)[ω∈{Lmin,…,L(1)-1}]のうちサンプルのエネルギーが所定値より大きいサンプルの個数fcount(Lmin)+…+fcount(L(1)-1)が、修正後量子化正規化済み信号系列に含まれる全てのサンプルX^’Q(ω) [ω∈{Lmin,…,Lmax}]のうちサンプルのエネルギーが所定値より大きいサンプルの個数fcount(Lmin)+…+fcount(Lmax)の4分の1より大きく、かつ、修正後量子化正規化済み信号系列の第1の範囲に含まれる全てのサンプルから第1の範囲の最も高域側にある1つのサンプルを除いた信号系列に含まれる全てのサンプルX^’Q(ω)[ω∈{Lmin,…,L(1)-2}]のうちサンプルのエネルギーが所定値より大きいサンプルの個数fcount(Lmin)+…+fcount(L(1)-2)が、修正後量子化正規化済み信号系列に含まれる全てのサンプルX^’Q(ω) [ω∈{Lmin,…,Lmax}]のうちサンプルのエネルギーが所定値より大きいサンプルの個数fcount(Lmin)+…+fcount(Lmax)の4分の1以下となる、L(1)を第2の範囲の最も低域側にあるサンプル番号として求める。これにより、X^’Q [ω∈{Lmin,…,L (1)-1}]が第1の範囲として定まる。 Next, among all samples X ^ ′ Q (ω) [ω∈ {L min ,..., L (1) −1}] included in the first range of the corrected quantized normalized signal sequence The number of samples f count (L min ) +… + f count (L (1) -1) whose energy is greater than a predetermined value is all samples X ^ ' Q included in the corrected quantized normalized signal sequence (ω) [ω∈ {L min , ..., L max}] number f count (L min) of the energy is larger samples than a predetermined value of a sample of the + ... + than a quarter of the f count (L max) All samples included in the signal sequence that are large and exclude all samples included in the first range of the corrected quantized normalized signal sequence from one sample located on the highest side of the first range The number of samples f count (L min ) +... + F count (L) in which X ^ ' Q (ω) [ω∈ {L min ,..., L (1) −2}] (1) -2) is All samples X ^ 'Q contained in the corrected quantized normalized signal sequence (ω) [ω∈ {L min , ..., L max}] number f count energy sample is larger samples than the predetermined value among the (L min ) +... + F count (L max ), which is equal to or less than a quarter, L (1) is obtained as the sample number on the lowest side of the second range. Thereby, X ^ ′ Q [ω∈ {L min ,..., L (1) −1}] is determined as the first range.

次に、修正後量子化正規化済み信号系列の第1と第2の範囲に含まれる全てのサンプルX^’Q(ω)[ω∈{Lmin,…,L(2)-1}]のうちサンプルのエネルギーが所定値より大きいサンプルの個数fcount(Lmin)+…+fcount(L(2)-1)が、修正後量子化正規化済み信号系列に含まれる全てのサンプルX^’Q(ω) [ω∈{Lmin,…,Lmax}]のうちサンプルのエネルギーが所定値より大きいサンプルの個数fcount(Lmin)+…+fcount(Lmax)の2分の1より大きく、かつ、修正後量子化正規化済み信号系列の第1と第2の範囲に含まれる全てのサンプルから第2の範囲の最も高域側にある1つのサンプルを除いた信号系列に含まれる全てのサンプルX^’Q(ω)[ω∈{Lmin,…,L(2)-2}]のうちサンプルのエネルギーが所定値より大きいサンプルの個数fcount(Lmin)+…+fcount(L(2)-2)が、修正後量子化正規化済み信号系列に含まれる全てのサンプルX^’Q(ω) [ω∈{Lmin,…,Lmax}]のうちサンプルのエネルギーが所定値より大きいサンプルの個数fcount(Lmin)+…+fcount(Lmax)の2分の1以下となる、L(2)を第3の範囲の最も低域側にあるサンプル番号として求める。これにより、X^’Q [ω∈{L(1),…,L (2)-1}]が第2の範囲として定まる。 Next, all samples X ^ ′ Q (ω) [ω∈ {L min ,..., L (2) −1}] included in the first and second ranges of the corrected quantized normalized signal sequence samples of energy is large sample number f count than a predetermined value among the (L min) + ... + f count (L (2) -1) , all the samples X contained in the revised quantization normalized signal sequence ^ ' Q (ω) [ω∈ {L min , ..., L max }] 2 minutes, the number of samples f count (L min ) + ... + f count (L max ) And a signal sequence obtained by excluding one sample at the highest frequency side of the second range from all samples included in the first and second ranges of the corrected quantized normalized signal sequence Of all samples X ^ ′ Q (ω) [ω∈ {L min ,..., L (2) −2}] included in the sample f count (L min ) + … + F co unt (L (2) -2) is the sample of all samples X ^ ' Q (ω) [ω∈ {L min , ..., L max }] included in the modified quantized normalized signal sequence Number of samples whose energy is greater than a predetermined value f count (L min ) + ... + f count (L max ) or less, L (2) is the lowest sample in the third range Ask as a number. Thereby, X ^ ′ Q [ω∈ {L (1) ,..., L (2) −1}] is determined as the second range.

次に、修正後量子化正規化済み信号系列の第1と第2と第3の範囲に含まれる全てのサンプルX^’Q(ω)[ω∈{Lmin,…,L(3)-1}]のうちサンプルのエネルギーが所定値より大きいサンプルの個数fcount(Lmin)+…+fcount(L(3)-1)が、修正後量子化正規化済み信号系列に含まれる全てのサンプルX^’Q(ω) [ω∈{Lmin,…,Lmax}]のうちサンプルのエネルギーが所定値より大きいサンプルの個数fcount(Lmin)+…+fcount(Lmax)の3分の4より大きく、かつ、修正後量子化正規化済み信号系列の第1と第2と第3の範囲に含まれる全てのサンプルから第3の範囲の最も高域側にある1つのサンプルを除いた信号系列に含まれる全てのサンプルX^’Q(ω)[ω∈{Lmin,…,L(3)-2}]のうちサンプルのエネルギーが所定値より大きいサンプルの個数fcount(Lmin)+…+fcount(L(3)-2)が、修正後量子化正規化済み信号系列に含まれる全てのサンプルX^’Q(ω) [ω∈{Lmin,…,Lmax}]のうちサンプルのエネルギーが所定値より大きいサンプルの個数fcount(Lmin)+…+fcount(Lmax)の3分の4以下となる、L(3)を第4の範囲の最も低域側にあるサンプル番号として求める。これにより、X^’Q [ω∈{L(2),…,L (3)-1}]が第3の範囲として定まる。 Next, all samples X ^ ′ Q (ω) [ω∈ {L min ,..., L (3) − included in the first, second, and third ranges of the corrected quantized normalized signal sequence 1}], the number of samples f count (L min ) +... + F count (L (3) −1) in which the sample energy is greater than the predetermined value is included in the corrected quantized normalized signal sequence. Of samples X ^ ' Q (ω) [ω∈ {L min ,..., L max }], the number of samples whose sample energy is greater than a predetermined value f count (L min ) +... + F count (L max ) One of the highest frequencies in the third range from all samples included in the first, second, and third ranges of the corrected quantized normalized signal sequence. The number f of samples whose sample energy is greater than a predetermined value among all samples X ^ ′ Q (ω) [ω∈ {L min ,..., L (3) −2}] included in the signal sequence excluding the samples f count ( L min ) + ... + f count (L (3) -2) is the sum of all samples X ^ ' Q (ω) [ω∈ {L min , ..., L included in the modified quantized normalized signal sequence max}] energy of the sample becomes 4 or less thirds greater than the predetermined value sample number f count (L min) + ... + f count (L max) of the, L (3) a fourth range Obtained as the sample number on the lowest side. Thereby, X ^ ′ Q [ω∈ {L (2) ,..., L (3) −1}] is determined as the third range.

この処理は、具体的には例えば、以下により実現できる。   Specifically, this processing can be realized by, for example, the following.

まず、各インデックスωについてfcount(ω)を式(B2)によって定める。そして、fcount(Lmin)+…+fcount(Lmax)をFとする。 First, f count (ω) is determined for each index ω by the equation (B2). Then, let f count (L min ) +... + F count (L max ) be F.

次に、iをLminから順に1ずつ増やしながら式(B8)を満たすか否かを判断していき、式(B8)を満たすiに1を加算したものをL(1)として求める。これにより、X^’Q [ω∈{Lmin,…,L(1)-1}]が第1の範囲として定まる。 Next, it is determined whether or not the formula (B8) is satisfied while increasing i sequentially by 1 from L min, and a value obtained by adding 1 to i satisfying the formula (B8) is obtained as L (1) . Thereby, X ^ ′ Q [ω∈ {L min ,..., L (1) −1}] is determined as the first range.

Figure 0005840101
Figure 0005840101

さらに、iをLminから順に1ずつ増やしながら式(B9)を満たすか否かを判断していき、式(B9)を満たすiに1を加算したものをL(2)として求める。これにより、X^’Q [ω∈{L(1),…,L(2)-1}]が第2の範囲として定まる。 Further, it is determined whether or not the formula (B9) is satisfied while i is incremented by 1 sequentially from L min, and a value obtained by adding 1 to i satisfying the formula (B9) is obtained as L (2) . Thereby, X ^ ′ Q [ω∈ {L (1) ,..., L (2) −1}] is determined as the second range.

Figure 0005840101
Figure 0005840101

さらに、iをLminから順に1ずつ増やしながら式(B10)を満たすか否かを判断していき、式(B10)を満たすiに1を加算したものをL(3)として求める。これにより、X^Q [ω∈{L(2),…,L(3)-1}]が第3の範囲として定まる。 Further, it is determined whether or not the formula (B10) is satisfied while i is sequentially increased by 1 from L min, and a value obtained by adding 1 to i satisfying the formula (B10) is obtained as L (3) . Thereby, X ^ Q [ω∈ {L (2) ,..., L (3) −1}] is determined as the third range.

Figure 0005840101
Figure 0005840101

そして、修正後量子化正規化済み信号系列X^’Q [ω∈{Lmin,…,Lmax}]の第1の範囲から第3の範囲以外の範囲、すなわち、X^’Q [ω∈{Lb(3),…,Lmax}]を第4の範囲とする。 Then, the corrected quantized normalized signal sequence X ^ ′ Q [ω∈ {L min ,..., L max }] is a range other than the first range to the third range, that is, X ^ ′ Q [ω Let ∈ {L b (3) ,..., L max }] be the fourth range.

以上により、修正後量子化正規化済み信号系列X^’Q [ω∈{Lmin,…,Lmax}]は4個の範囲に区分される。 As described above, the corrected quantized normalized signal sequence X ^ ′ Q [ω∈ {L min ,..., L max }] is divided into four ranges.

区分部150が出力する区分情報は、L(1)とL(2)とL(3)であってもよいし、L(1)とL(2)とL(3)のそれぞれに予め定めた値を演算した値であってもよいし、各範囲のサンプル数であってもよいし、要は、4個の範囲の全てを特定できる情報であれば何でもよい。 Sorting information identifying circuit 150 outputs may be a L (1) and L (2) and L (3), predetermined to each of the L (1) and L (2) and L (3) The calculated value may be the number of samples in each range, or anything insofar as it is information that can identify all four ranges.

[[第2基準による区分処理の第5例の一般化:N個の範囲に区分する例]]
図21は、区分対象の修正後量子化正規化済み信号系列X^’Q(ω) [ω∈{Lmin,…,Lmax}]をN個の範囲に区分する例、具体的には、第nの範囲と第n+1の範囲との境界を表す情報として第n+1の範囲の最も低域側にあるサンプル番号であるLb(n)を決定する例である。
[[Generalization of the fifth example of classification processing based on the second standard: Example of dividing into N ranges]]
FIG. 21 shows an example of dividing the modified quantized normalized signal sequence X ^ ′ Q (ω) [ω∈ {L min ,..., L max }] to be divided into N ranges, specifically, In this example, L b (n) which is the sample number on the lowest side of the (n + 1) th range is determined as information indicating the boundary between the nth range and the (n + 1) th range.

まず、各インデックスωについてfcount(ω)を式(B2)によって定める。 First, f count (ω) is determined for each index ω by the equation (B2).

次に、修正後量子化正規化済み信号系列に含まれる全てのサンプルX^’Q(ω) [ω∈{Lmin,…,Lmax}]のうちサンプルのエネルギーが所定値より大きいサンプルの個数fcount(Lmin)+…+fcount(Lmax)を求める。 Next, among all the samples X ^ ′ Q (ω) [ω∈ {L min ,..., L max }] included in the corrected quantized normalized signal sequence, the samples whose energy is greater than a predetermined value The number f count (L min ) +... + F count (L max ) is obtained.

次に、n=1からN−1のそれぞれのnについて、修正後量子化正規化済み信号系列の第1の範囲から第nの範囲に含まれる全てのサンプルX^’Q(ω)[ω∈{Lmin,…,L(n)-1}]のうちサンプルのエネルギーが所定値より大きいサンプルの個数fcount(Lmin)+…+fcount(L(n)-1)が、修正後量子化正規化済み信号系列に含まれる全てのサンプルX^’Q(ω) [ω∈{Lmin,…,Lmax}]のうちサンプルのエネルギーが所定値より大きいサンプルの個数fcount(Lmin)+…+fcount(Lmax)のN分のnより大きく、かつ、修正後量子化正規化済み信号系列の第1の範囲から第nの範囲に含まれる全てのサンプルから第nの範囲の最も高域側にある1つのサンプルを除いた信号系列X^’Q(ω)[ω∈{Lmin,…,L(n)-2}]のうちサンプルのエネルギーが所定値より大きいサンプルの個数fcount(Lmin)+…+fcount(L(n)-2)が、修正後量子化正規化済み信号系列に含まれる全てのサンプルX^’Q(ω) [ω∈{Lmin,…,Lmax}]のうちサンプルのエネルギーが所定値より大きいサンプルの個数fcount(Lmin)+…+fcount(Lmax)のN分のn以下となる、L(n)を第n+1の範囲の最も低域側にあるサンプル番号として求める。これにより、X^’Q [ω∈{Lmin,…,L(1)-1}]が第1の範囲、n=2からN−1のそれぞれのnについて、X^’Q [ω∈{L(n-1),…,L(n)-1}]が第nの範囲、として定まる。 Next, for each n from n = 1 to N−1, all samples X ^ ′ Q (ω) [ω included in the first range to the n-th range of the corrected quantized normalized signal sequence ∈ {L min , ..., L (n) -1}], the number of samples f count (L min ) + ... + f count (L (n) -1) is corrected. The number of samples f count (where the sample energy is greater than a predetermined value among all samples X ^ ′ Q (ω) [ω∈ {L min ,..., L max }] included in the post-quantization normalized signal sequence f count ( L min ) +... + F count (L max ) n greater than n of N and included in all the samples included in the first range to the nth range of the corrected quantized normalized signal sequence. Of the signal sequence X ^ ′ Q (ω) [ω∈ {L min ,..., L (n) −2}] excluding one sample on the highest side of the range of large Sample number f count (L min) + ... + f count (L (n) -2) are all included in the corrected quantized normalized signal sequence samples X ^ 'Q (ω) [ ω∈ { L min, ..., L max} number f count (L min) of the sample energy is greater than a predetermined value of a sample of] + ... + f n content becomes n following the count (L max), L ( n) As the sample number on the lowest side of the (n + 1) th range. Thus, X ^ ′ Q [ω∈ {L min ,..., L (1) −1}] is X ′ ′ Q [ω∈ for each n in the first range, n = 2 to N−1. {L (n−1) ,..., L (n) −1}] is determined as the nth range.

この処理は、具体的には例えば、以下により実現できる。   Specifically, this processing can be realized by, for example, the following.

まず、各インデックスωについてfcount(ω)を式(B2)によって定める。そして、fcount(Lmin)+…+fcount(Lmax)をFとする。 First, f count (ω) is determined for each index ω by the equation (B2). Then, let f count (L min ) +... + F count (L max ) be F.

次に、n=1について、iをLminから順に1ずつ増やしながら式(B11)を満たすか否かを判断していき、式(B11)を満たすiに1を加算したものをL(1)として求める。これにより、X^’Q [ω∈{Lmin,…,L(1)-1}]が第1の範囲として定まる。 Next, for n = 1, it is determined whether or not the formula (B11) is satisfied while increasing i sequentially by 1 from L min, and a value obtained by adding 1 to i satisfying the formula (B11) is represented by L (1 ) . Thereby, X ^ ′ Q [ω∈ {L min ,..., L (1) −1}] is determined as the first range.

Figure 0005840101
Figure 0005840101

さらに、n=2からN−1のそれぞれのnについて、iをL(n-1)から順に1ずつ増やしながら式(B11)を満たすか否かを判断していき、式(B11)を満たすiに1を加算したものをL(n)として求める処理をnが小さい順に繰り返す。以上の処理により、n=2からN−1のそれぞれのnについて、X^’Q [ω∈{L(n-1),…,L(n)-1}]が第nの範囲として定まる。 Further, for each n from n = 2 to N−1, it is determined whether or not the equation (B11) is satisfied while increasing i by 1 from L (n−1) in order, and the equation (B11) is satisfied. The process of obtaining the value obtained by adding 1 to i as L (n) is repeated in the order of increasing n. With the above processing, X ^ ′ Q [ω∈ {L (n−1) ,..., L (n) −1 }] is determined as the nth range for each n from n = 2 to N−1. .

そして、修正後量子化正規化済み信号系列X^’Q [ω∈{Lmin,…,Lmax}]の第1の範囲から第N−1の範囲以外の範囲、すなわち、X^’Q [ω∈{Lb(n),…,Lmax}]を第Nの範囲とする。 Then, the corrected quantized normalized signal sequence X ^ ′ Q [ω∈ {L min ,..., L max }] is in a range other than the first range to the (N−1) th range, that is, X ^ ′ Q Let [ω∈ {L b (n) ,..., L max }] be the Nth range.

以上により、修正後量子化正規化済み信号系列X^’Q [ω∈{Lmin,…,Lmax}]はN個の範囲に区分される。 As described above, the corrected quantized normalized signal sequence X ^ ′ Q [ω∈ {L min ,..., L max }] is divided into N ranges.

区分部150が出力する区分情報は、L(n)(nは1からN−1までの各整数)であってもよいし、L(n)(nは1からN−1までの各整数)に予め定めた値を演算した値であってもよいし、各範囲のサンプル数であってもよいし、要は、N個の範囲の全てを特定できる情報であれば何でもよい。 Sorting information identifying circuit 150 is output, L (n) (n is the integer from 1 to N-1) may be a, L (n) (each n is an integer from 1 to N-1 ) May be a value obtained by calculating a predetermined value, may be the number of samples in each range, or may be anything as long as it is information that can specify all N ranges.

[第2基準による区分処理の第6例]
第2基準による区分処理の第6例は上記の(f)に対応する。第6例の区分処理は、第5例の区分処理における「二乗和」を「絶対値和」に置き換えた以外は、第5例の区分処理と同じ方法である。第6例の区分処理によれば、第5例の区分処理で行なう二乗計算を省略できる分、第5例の区分処理よりも少ない演算処理量で区分処理を行なうことが可能となる。
[Sixth example of classification processing based on the second standard]
The sixth example of the sorting process based on the second standard corresponds to the above (f). The sorting process of the sixth example is the same method as the sorting process of the fifth example, except that “sum of squares” in the sorting process of the fifth example is replaced with “sum of absolute values”. According to the sorting process of the sixth example, it is possible to perform the sorting process with a smaller calculation processing amount than the sorting process of the fifth example, because the square calculation performed in the sorting process of the fifth example can be omitted.

なお、符号化装置1から復号装置2へビットストリームを伝送する実施構成に限定されず、例えば、合成部160によって得られた情報を記録媒体に記録し、当該記録媒体から読み出された当該情報が復号装置2に入力される実施構成も許容される。   In addition, it is not limited to the implementation structure which transmits a bit stream from the encoding apparatus 1 to the decoding apparatus 2, For example, the information obtained by the synthesis | combination part 160 is recorded on a recording medium, and the said information read from the said recording medium Is also allowed to be input to the decoding device 2.

第1実施形態の復号装置2(図22参照)は、正規化信号復号部107、グローバルゲイン復号部106、制御部205、修正符号分離部220、誤差復号部230、加算部240、復号信号系列生成部250及び区分部260を含む。復号装置2は必要に応じて分離部210、時間領域変換部270を含んでもよい。   The decoding apparatus 2 (see FIG. 22) according to the first embodiment includes a normalized signal decoding unit 107, a global gain decoding unit 106, a control unit 205, a modified code separation unit 220, an error decoding unit 230, an addition unit 240, and a decoded signal sequence. A generation unit 250 and a sorting unit 260 are included. The decoding device 2 may include a separation unit 210 and a time domain conversion unit 270 as necessary.

以下、復号装置2(decoder)での処理を説明する(図23参照)。   Hereinafter, the process in the decoding apparatus 2 (decoder) is demonstrated (refer FIG. 23).

符号化装置1から送信されたビットストリームは復号装置2に入力される。分離部210が、ビットストリームから、正規化信号符号と、グローバルゲイン符号と、修正符号を取り出す。   The bit stream transmitted from the encoding device 1 is input to the decoding device 2. The separation unit 210 extracts the normalized signal code, the global gain code, and the correction code from the bit stream.

<正規化信号復号部107>
正規化信号復号部107には、正規化信号符号が入力される。正規化信号復号部107が、符号化装置1の正規化信号符号化部120が行う符号化方法と対応する復号方法を適用して、正規化信号符号を復号して復号正規化済み信号系列X^Q(ω) [ω∈{Lmin,…,Lmax}]を得る(ステップS1d)。この例では、符号化装置1に対応して説明を行なうため、ωは離散周波数のインデックスを表すものとし、L点の離散周波数の各成分をω=LminからLmaxのそれぞれで表すものとする。正規化信号復号部107は、[背景技術]欄で説明した図1の正規化信号復号部107と同じ動作をする。
<Normalized signal decoding unit 107>
A normalized signal code is input to the normalized signal decoding unit 107. The normalized signal decoding unit 107 applies a decoding method corresponding to the encoding method performed by the normalized signal encoding unit 120 of the encoding device 1 to decode the normalized signal code and decode the normalized signal sequence X ^ Q (ω) [ω∈ {L min ,..., L max }] is obtained (step S1d). In this example, in order to explain corresponding to the encoding device 1, ω represents an index of discrete frequency, and each component of the discrete frequency at point L is represented by ω = L min to L max respectively. To do. The normalized signal decoding unit 107 performs the same operation as the normalized signal decoding unit 107 of FIG. 1 described in the “Background Art” column.

例えば、正規化信号復号部107は、まず、正規化信号符号に含まれる符号から、正規化済み信号系列XQ(ω)の概形(正規化済みパワースペクトル包絡値)と微細構造とを復号する。そして、正規化信号復号部107は、正規化済みパワースペクトル包絡値と微細構造とから、復号正規化済み信号系列X^Q(ω) [ω∈{Lmin,…,Lmax}]を得る。 For example, the normalized signal decoding unit 107 first decodes the rough shape (normalized power spectrum envelope value) and the fine structure of the normalized signal sequence X Q (ω) from the code included in the normalized signal code. To do. Then, the normalized signal decoding unit 107 obtains a decoded normalized signal sequence X ^ Q (ω) [ω∈ {L min ,..., L max }] from the normalized power spectrum envelope value and the fine structure. .

<グローバルゲイン復号部106>
グローバルゲイン復号部106には、グローバルゲイン符号が入力される。グローバルゲイン復号部160は、当該グローバルゲイン符号を復号し、復号グローバルゲインg^を出力する(ステップS2d)。グローバルゲイン復号部106が行う復号処理は、グローバルゲイン復号部106が行う復号処理は、グローバルゲイン符号化部105が行う符号化処理に対応する処理であり、[背景技術]欄のグローバルゲイン復号部106でも説明した通りの周知技術である。
<Global Gain Decoding Unit 106>
A global gain code is input to the global gain decoding unit 106. The global gain decoding unit 160 decodes the global gain code and outputs a decoded global gain g ^ (step S2d). The decoding process performed by the global gain decoding unit 106 is a process corresponding to the encoding process performed by the global gain encoding unit 105, and the global gain decoding unit in the [Background Technology] column. This is a well-known technique as described in 106.

<制御部205>
制御部205には、復号正規化済み信号系列X^Q(ω) [ω∈{Lmin,…,Lmax}]が入力される。制御部205は、復号正規化済み信号系列X^Q(ω) [ω∈{Lmin,…,Lmax}]のサンプルの値の大きさが所定の値よりも大きいサンプルの個数に応じて、ゲイン補正量符号に基づいて復号グローバルゲインg^を補正する処理及び誤差符号に基づいて復号正規化済み信号系列X^Q(ω) [ω∈{Lmin,…,Lmax}]を修正する処理の一方の処理を他方の処理よりも優先的に行わせる(ステップS3d)。所定の値とは、例えば0である。
<Control unit 205>
The control unit 205 receives the decoded normalized signal sequence X ^ Q (ω) [ω∈ {L min ,..., L max }]. The control unit 205 determines the magnitude of the sample value of the decoded normalized signal sequence X ^ Q (ω) [ω∈ {L min ,..., L max }] according to the number of samples larger than a predetermined value. , Correction of decoding global gain g ^ based on gain correction amount code and correction normalized decoding signal sequence X ^ Q (ω) [ω∈ {L min , ..., L max }] One of the processes to be performed is prioritized over the other process (step S3d). The predetermined value is 0, for example.

量子化グローバルゲインg^を補正する処理とは、後述する区分部260及び復号信号系列生成部250によるステップS7d,S8dの処理のことである。   The process of correcting the quantized global gain g ^ is the process of steps S7d and S8d by the sorting unit 260 and the decoded signal sequence generation unit 250 described later.

復号正規化済み信号系列X^Q(ω) [ω∈{Lmin,…,Lmax}]を修正する処理とは、後述する誤差復号部230及び加算部240によるステップS5d,S6dの処理のことである。 The process of correcting the decoded normalized signal sequence X ^ Q (ω) [ω∈ {L min ,..., L max }] is the process of steps S5d and S6d by the error decoding unit 230 and the adding unit 240 described later. That is.

復号正規化済み信号系列X^Q(ω) [ω∈{Lmin,…,Lmax}]のサンプルの値の大きさが所定の値よりも大きいサンプルの個数とは、いわゆる復号正規化済み信号系列X^Q(ω) [ω∈{Lmin,…,Lmax}]の非ゼロのサンプルの個数のことである。復号正規化済み信号系列X^Q(ω) [ω∈{Lmin,…,Lmax}]の非ゼロのサンプルのことを、非ゼロ係数とも呼ぶ。 The number of samples whose value of the sample of the decoded normalized signal sequence X ^ Q (ω) [ω∈ {L min ,..., L max }] is larger than a predetermined value is the so-called decoding normalized This is the number of non-zero samples of the signal sequence X ^ Q (ω) [ω∈ {L min ,..., L max }]. A non-zero sample of the decoded normalized signal sequence X ^ Q (ω) [ω∈ {L min ,..., L max }] is also referred to as a non-zero coefficient.

制御部205が復号正規化済み信号系列X^Q(ω) [ω∈{Lmin,…,Lmax}]に対して行なう処理は、符号化装置1の制御部170が量子化正規化済み信号系列X^Q(ω) [ω∈{Lmin,…,Lmax}]に対して行なう処理と同様である。 The processing performed by the control unit 205 on the decoded normalized signal sequence X ^ Q (ω) [ω∈ {L min ,..., L max }] is quantized and normalized by the control unit 170 of the encoding device 1. This is similar to the processing performed for the signal sequence X ^ Q (ω) [ω∈ {L min ,..., L max }].

すなわち、制御部205は、例えば図26の処理を行うことにより、ゲイン修正ビット数Ug及び誤差表現ビット数UXQを決定する。制御部205は、ゲイン修正ビット数Ug及び誤差表現ビット数UXQを、修正符号分離部220に送信する。 That is, the control unit 205 determines the gain correction bit number U g and the error expression bit number U XQ by performing the process of FIG. 26, for example. The control unit 205 transmits the gain correction bit number U g and the error expression bit number U XQ to the correction code separation unit 220.

例えばこのようにして、制御部205は、どちらの処理を優先的に行うかについての情報である優先情報を決定し、その優先情報を修正符号分離部220に送信する。優先情報とは、上記の例ではゲイン修正ビット数Ug及び誤差表現ビット数UXQのことである。 For example, in this way, the control unit 205 determines priority information that is information about which process is to be preferentially performed, and transmits the priority information to the correction code separation unit 220. In the above example, the priority information is the number of gain correction bits U g and the number of error expression bits U XQ .

<修正符号分離部220>
修正符号分離部220には優先情報が入力される。修正符号分離部220は、優先情報に基づいて、修正符号から、誤差符号及びゲイン補正量符号を分離する(ステップS4d)。
<Modified code separation unit 220>
Priority information is input to the correction code separation unit 220. The correction code separation unit 220 separates the error code and the gain correction amount code from the correction code based on the priority information (step S4d).

復号正規化済み信号系列X^Q(ω) [ω∈{Lmin,…,Lmax}]は、量子化正規化済み信号系列X^Q(ω) [ω∈{Lmin,…,Lmax}]と一致する。このため、符号化装置1の制御部170によって決定される優先情報と、制御部205によって決定される優先情報とは一致する。言い換えれば、符号化装置1の制御部170によって決定されるUg及びUXQの値と、復号装置2の制御部205によって決定されるUg及びUXQの値とは一致する。このため、修正符号分離部220は、修正符号から、UXQビットの誤差符号及びUgビットのゲイン補正量符号を分離することができるのである。 The decoded normalized signal sequence X ^ Q (ω) [ω∈ {L min , ..., L max }] is converted into the quantized normalized signal series X ^ Q (ω) [ω∈ {L min , ..., L max }]. For this reason, the priority information determined by the control unit 170 of the encoding device 1 matches the priority information determined by the control unit 205. In other words, the values of U g and U XQ determined by the control unit 170 of the encoding device 1 coincide with the values of U g and U XQ determined by the control unit 205 of the decoding device 2. Therefore, the correction code separation unit 220 can separate the error code of U XQ bits and the gain correction amount code of U g bits from the correction code.

誤差符号は誤差復号部230に送信され、ゲイン補正量符号は復号信号系列生成部250に送信される。   The error code is transmitted to the error decoding unit 230, and the gain correction amount code is transmitted to the decoded signal sequence generation unit 250.

<誤差復号部230>
誤差復号部230には、誤差符号が入力される。誤差復号部230は、符号化装置1の誤差符号化部180に対応する復号方法で誤差符号を復号して復号量子化誤差q(ω)を得る(ステップS5d)。誤差表現ビット数ごとに符号、復号でサンプルや手順を符号化装置1と復号装置2とで対応するように決めておくので、一意に復号できる。
<Error decoding unit 230>
An error code is input to the error decoding unit 230. The error decoding unit 230 obtains a decoded quantization error q (ω) by decoding the error code by a decoding method corresponding to the error encoding unit 180 of the encoding device 1 (step S5d). Since the sample and the procedure are determined by the encoding device 1 and the decoding device 2 for each error expression bit number by code and decoding, it can be uniquely decoded.

<誤差復号の具体例1>(符号化装置1の<誤差符号化の具体例1>に対応)
誤差復号部230内の符号帳記憶部に、誤差表現ビット数の取り得る値ごとの符号帳を予め格納しておく。各符号帳には、その各符号帳に対応する誤差表現ビット数で表現可能な個数の復号量子化誤差の系列と同じサンプル数のベクトルと、そのベクトルに対応する符号、とが対応付けて予め格納される。
<Specific example 1 of error decoding> (corresponding to <specific example 1 of error encoding> of encoding apparatus 1)
A code book for each possible value of the error expression bit number is stored in advance in the code book storage unit in the error decoding unit 230. In each codebook, a vector having the same number of samples as the number of decoded quantization error sequences that can be expressed by the number of error expression bits corresponding to each codebook and a code corresponding to the vector are associated in advance. Stored.

誤差復号部230は、誤差表現ビット数を算出した後に、算出された誤差表現ビット数に対応する符号帳を符号帳記憶部に格納された符号帳から選択し、選択された符号帳を用いてベクトル逆量子化を行なう。符号帳を選択した後の復号処理は一般的なベクトル逆量子化と同じである。すなわち、選択された符号帳の各ベクトルのうち、入力された誤差符号に対応するベクトルを復号量子化誤差q(ω)の系列として出力する。   After calculating the error expression bit number, the error decoding unit 230 selects a code book corresponding to the calculated error expression bit number from the code book stored in the code book storage unit, and uses the selected code book Perform vector inverse quantization. The decoding process after selecting the codebook is the same as general vector inverse quantization. That is, out of each vector of the selected codebook, a vector corresponding to the input error code is output as a sequence of decoded quantization error q (ω).

なお、上記の説明では、符号帳に格納されるベクトルは、復号量子化誤差の系列と同じサンプル数としたが、符号帳に格納されるベクトルのサンプル数を復号量子化誤差の系列の整数分の1とし、復号量子化誤差の系列を複数の部分毎に入力された誤差符号に含まれる複数の符号それぞれをベクトル逆量子化しても良い。   In the above description, the vector stored in the codebook has the same number of samples as the sequence of the decoded quantization error, but the number of samples of the vector stored in the codebook is the integer number of the sequence of the decoded quantization error. It is also possible to perform vector inverse quantization on each of a plurality of codes included in an error code input for each of a plurality of portions of a decoding quantization error sequence.

<誤差復号部230の具体例2>(符号化装置1の<誤差符号化の具体例2>に対応)
誤差表現ビット数をUXQ、復号部21が出力した復号正規化済み信号系列X^Q(ω)の値が0でないもののサンプル数をT、復号部21が出力した復号正規化済み信号系列X^Q(ω)の値が0であるサンプル数をSとするとき、次のような復号手順が好ましい。
<Specific Example 2 of Error Decoding Unit 230> (corresponding to <Specific Example 2 of Error Coding> of Encoding Device 1)
The number of error expression bits is U XQ , the number of samples of the decoded normalized signal sequence X ^ Q (ω) output by the decoding unit 21 is not 0, the number of samples is T, and the decoded normalized signal sequence X output by the decoding unit 21 When the number of samples whose value of ^ Q (ω) is 0 is S, the following decoding procedure is preferable.

(A)UXQ≦Tの場合
誤差復号部230は、復号正規化済み信号系列X^Q(ω)の値が0でないT個サンプルのうち、対応するパワースペクトル包絡値が大きいものからUXQ個選択して、選択されたそれぞれのサンプルに対して、入力された誤差符号に含まれる1ビットの符号を復号してサンプルの正負の情報を得て、得られた正負の情報を再構成値の絶対値0.25に与えて得られる再構成値+0.25又は-0.25を、その復号正規化済み信号系列X^Q(ω)に対応する復号量子化誤差q(ω)として出力する。なお、対応するパワースペクトル包絡値が同一である場合は、例えば、より周波数軸上での位置の小さい量子化誤差サンプル(周波数が低い量子化誤差サンプル)を選択する等の予め定めた規則に従って選択する。例えば、符号化装置1の誤差符号化部180で用いた規則に対応する規則を誤差復号部230に予め保持しておく。
(A) U If error decoding unit 230 of the XQ ≦ T, of the T sample value of the decoded normalized signal sequence X ^ Q (ω) is not 0, U from having a large corresponding power spectral envelope values XQ For each selected sample, 1-bit code included in the input error code is decoded to obtain positive / negative information of the sample, and the obtained positive / negative information is reconstructed. The reconstructed value +0.25 or −0.25 obtained by giving the absolute value 0.25 is output as a decoded quantization error q (ω) corresponding to the decoded normalized signal sequence X ^ Q (ω). If the corresponding power spectrum envelope values are the same, for example, select according to a predetermined rule such as selecting a quantization error sample with a smaller position on the frequency axis (a quantization error sample with a lower frequency). To do. For example, a rule corresponding to the rule used in the error encoding unit 180 of the encoding device 1 is held in the error decoding unit 230 in advance.

パワースペクトル包絡値として、正規化信号復号部107の内部で復号された正規化済みパワースペクトル包絡値を、グローバルゲイン復号部106で復号された復号グローバルゲインg^を用いて逆正規化した値を用いることができる。もちろん、それ以外の方法で求めた値であってもよい。例えば、パワースペクトル包絡値は、量子化線形予測係数の符号より復号された復号線形予測係数のパワースペクトルを表す値であってもよい。   As a power spectrum envelope value, a value obtained by denormalizing the normalized power spectrum envelope value decoded inside the normalized signal decoding unit 107 using the decoded global gain g ^ decoded by the global gain decoding unit 106 is obtained. Can be used. Of course, values obtained by other methods may be used. For example, the power spectrum envelope value may be a value representing the power spectrum of the decoded linear prediction coefficient decoded from the code of the quantized linear prediction coefficient.

誤差復号部230はまた、選択されなかった各サンプルについては、0をその各サンプルに対応する復号量子化誤差q(ω)として出力する。   The error decoding unit 230 also outputs 0 as a decoded quantization error q (ω) corresponding to each sample for each sample that has not been selected.

(B)T<UXQ≦=T+Sの場合
誤差復号部230は、復号正規化済み信号系列X^Q(ω)の値が0でないサンプルに対して、入力された誤差符号に含まれる1ビットの符号を復号して復号量子化誤差サンプルの正負の情報を得て、得られた正負の情報を再構成値の絶対値0.25に与えて得られる再構成値+0.25または-0.25を、その復号正規化済み信号系列X^Q(ω)に対応する復号量子化誤差q(ω)として出力する。
(B) When T <U XQ ≦ = T + S The error decoding unit 230 is included in the input error code for samples whose decoding normalized signal sequence X ^ Q (ω) is not 0. Decode the 1-bit code to obtain the positive / negative information of the decoded quantization error sample, and give the obtained positive / negative information to the absolute value 0.25 of the reconstructed value, the reconstructed value +0.25 or −0.25, A decoded quantization error q (ω) corresponding to the decoded normalized signal sequence X ^ Q (ω) is output.

誤差復号部230はまた、復号正規化済み信号系列X^Q(ω)の値が0であるサンプルのうち、対応するパワースペクトル包絡値が大きいものからUXQ-T個のそれぞれについて、入力された誤差符号に含まれる1ビットの符号を復号して復号量子化誤差サンプルの正負の情報を得て、得られた正負の情報を0.25より小さい予め定められた正の値である再構成値の絶対値Aに与えて得られる再構成値+A又は-Aを、その復号正規化済み信号系列X^Q(ω)に対応する復号量子化誤差q(ω)として出力する。 The error decoding unit 230 is also input with respect to each of U XQ -T samples having a large power spectrum envelope value from among samples whose decoding normalized signal sequence X ^ Q (ω) is 0. By decoding the 1-bit code included in the error code, the positive and negative information of the decoded quantization error sample is obtained, and the obtained positive and negative information is converted into a reconstructed value that is a predetermined positive value smaller than 0.25. The reconstruction value + A or −A obtained by giving the absolute value A is output as a decoded quantization error q (ω) corresponding to the decoded normalized signal sequence X ^ Q (ω).

または、復号正規化済み信号系列X^Q(ω)の値が0であるサンプルのうち、対応するパワースペクトル包絡値が大きいものから複数個に対して、誤差符号に含まれるUXQ-Tビットの符号をベクトル逆量子化して、対応する復号量子化誤差サンプル値の列を得て、得られた各復号量子化誤差サンプル値を、その復号正規化済み信号系列X^Q(ω)に対応する復号量子化誤差q(ω)として出力する。 Alternatively, U XQ -T bits included in the error code for a plurality of samples having a corresponding power spectrum envelope value among samples whose decoding normalized signal sequence X ^ Q (ω) is 0 Vector is dequantized to obtain a sequence of corresponding decoded quantization error sample values, and each obtained decoded quantization error sample value corresponds to its decoded normalized signal sequence X ^ Q (ω) Is output as a decoded quantization error q (ω).

また、誤差復号部230は、正負の情報を表す符号が割り当てられていない各サンプルについては、0をその各サンプルに対応する復号量子化誤差q(ω)として出力する。   Also, the error decoding unit 230 outputs 0 as a decoded quantization error q (ω) corresponding to each sample for each sample to which no sign representing positive / negative information is assigned.

このように、量子化正規化済み信号系列X^Q(ω)の値及び復号正規化済み信号系列X^Q(ω)の値が0でない場合の再構成値の絶対値を例えば0.25とし、量子化正規化済み信号系列X^Q(ω)及び復号正規化済み信号系列X^Q(ω)の値が0である場合の再構成値の絶対値をA(0<A<0.25)とする。これらの再構成値の絶対値は一例であり、量子化正規化済み信号系列X^Q(ω)の値及び復号正規化済み信号系列X^Q(ω)の値が0でない場合の再構成値の絶対値は、量子化正規化済み信号系列X^Q(ω)の値及び復号正規化済み信号系列X^Q(ω)の値が0である場合の再構成値の絶対値よりも大きければよい。 Thus, the absolute value of the reconstructed value when the value of the quantized normalized signal sequence X ^ Q (ω) and the value of the decoded normalized signal sequence X ^ Q (ω) is not 0 is set to 0.25, for example. The absolute value of the reconstructed value when the value of the quantized normalized signal sequence X ^ Q (ω) and the decoded normalized signal sequence X ^ Q (ω) is 0 is A (0 <A <0.25). To do. The absolute values of these reconstructed values are examples, and reconstruction is performed when the value of the quantized normalized signal sequence X ^ Q (ω) and the value of the decoded normalized signal sequence X ^ Q (ω) are not zero. The absolute value of the value is greater than the absolute value of the reconstructed value when the value of the quantized normalized signal sequence X ^ Q (ω) and the value of the decoded normalized signal sequence X ^ Q (ω) are zero. It only needs to be large.

なお、対応するパワースペクトル包絡値が同一である場合は、例えば、より周波数軸上での位置の小さいサンプル(周波数が低いサンプル)を選択する等の予め定めた規則に従って選択する。   When the corresponding power spectrum envelope values are the same, for example, selection is made according to a predetermined rule such as selecting a sample having a smaller position on the frequency axis (a sample having a lower frequency).

(C)T+S<UXQの場合
誤差復号部230は、復号正規化済み信号系列X^Q(ω)の値が0でないサンプルについては、以下の処理を行う。
(C) In the case of T + S <U XQ The error decoding unit 230 performs the following process for samples whose decoded normalized signal sequence X ^ Q (ω) is not 0.

入力された誤差符号に含まれる1ビットの1巡目符号を復号して正負の情報を得て、得られた正負の情報を再構成値の絶対値0.25に与えて得られる再構成値+0.25又は-0.25をその復号正規化済み信号系列X^Q(ω)に対応する1巡目復号量子化誤差q(ω)とする。さらに、入力された誤差符号に含まれる1ビットの2巡目符号を復号して正負の情報を得て、得られた正負の情報を再構成値の絶対値0.125に与えて得られる再構成値+0.125または-0.125を2巡目復号量子化誤差q2(ω)とする。1巡目復号量子化誤差q(ω)と2巡目復号量子化誤差q2(ω)とを加算して復号量子化誤差q(ω)とする。 The 1-bit first-cycle code included in the input error code is decoded to obtain positive / negative information, and the obtained positive / negative information is given to the absolute value 0.25 of the reconstructed value + reconstructed value + 0.25 Alternatively, −0.25 is set as the first round decoding quantization error q 1 (ω) corresponding to the decoded normalized signal sequence X ^ Q (ω). Furthermore, a reconstructed value obtained by decoding the 1-bit second-round code included in the input error code to obtain positive / negative information, and giving the obtained positive / negative information to the absolute value 0.125 of the reconstructed value Let +0.125 or -0.125 be the second round decoding quantization error q 2 (ω). The first round decoding quantization error q 1 (ω) and the second round decoding quantization error q 2 (ω) are added to obtain a decoding quantization error q (ω).

また、誤差復号部230は、復号正規化済み信号系列X^Q(ω)の値が0であるサンプルについては、以下の処理を行う。 In addition, the error decoding unit 230 performs the following processing for samples whose value of the decoded normalized signal sequence X ^ Q (ω) is 0.

入力された誤差符号に含まれる1ビットの1巡目符号を復号して正負の情報を得て、得られた正負の情報を0.25より小さい正の値である再構成値の絶対値Aに与えて得られる再構成値+Aまたは-Aを、その復号正規化済み信号系列X^Q(ω)に対応する1巡目復号量子化誤差q(ω)とする。さらに、入力された誤差符号に含まれる1ビットの2巡目符号を復号して正負の情報を得て、得られた正負の情報を再構成値の絶対値A/2に与えて得られる再構成値+A/2または-A/2を2巡目復号量子化誤差q2(ω)とする。1巡目復号量子化誤差q(ω)と2巡目復号量子化誤差q2(ω)とを加算して復号量子化誤差q(ω)とする。 The 1-bit first-cycle code included in the input error code is decoded to obtain positive / negative information, and the obtained positive / negative information is given to the absolute value A of the reconstructed value which is a positive value smaller than 0.25. The reconstructed value + A or −A obtained in this way is defined as the first-round decoded quantization error q 1 (ω) corresponding to the decoded normalized signal sequence X ^ Q (ω). Further, the 1-bit second-round code included in the input error code is decoded to obtain positive / negative information, and the obtained positive / negative information is given to the absolute value A / 2 of the reconstructed value. The configuration value + A / 2 or −A / 2 is set as the second-round decoding quantization error q 2 (ω). The first round decoding quantization error q 1 (ω) and the second round decoding quantization error q 2 (ω) are added to obtain a decoding quantization error q (ω).

このように、対応する量子化正規化済み信号系列X^Q(ω)の値及び復号正規化済み信号系列X^Q(ω)の値が0である場合もそうでない場合も、2巡目符号に対応する再構成値の絶対値を1巡目符号に対応する再構成値の絶対値の1/2とする。 As described above, whether the value of the corresponding quantized normalized signal sequence X ^ Q (ω) and the value of the decoded normalized signal sequence X ^ Q (ω) is 0 or not is the second round. The absolute value of the reconstruction value corresponding to the code is set to ½ of the absolute value of the reconstruction value corresponding to the first cycle code.

なお、各サンプルに対応する2巡目符号がない場合には、その各サンプルに対応する1巡目復号量子化誤差q(ω)を、その各サンプルに対応する復号量子化誤差q(ω)とする。 If there is no second-round code corresponding to each sample, the first-round decoding quantization error q 1 (ω) corresponding to each sample is converted to the decoding quantization error q (ω corresponding to each sample. ).

また、上記の(A)及び(B)のパワースペクトル包絡値の代わりに、パワースペクトル包絡値の概算値、パワースペクトル包絡値の推定値、これらの何れかの値を平滑化して得られる値、これらの何れかの値を複数のサンプルについて平均して得られる値又はこれらの何れかの値と大小関係が同一となる値の何れかを用いてもよい。ただし、符号化装置1の誤差符号化部180と同一種類の値を用いる必要がある。   Further, instead of the power spectrum envelope values of the above (A) and (B), an approximate value of the power spectrum envelope value, an estimated value of the power spectrum envelope value, a value obtained by smoothing any of these values, Either a value obtained by averaging any of these values for a plurality of samples or a value having the same magnitude relationship as any of these values may be used. However, it is necessary to use the same type of value as the error encoding unit 180 of the encoding device 1.

<加算部240>
加算部240には、復号量子化誤差q(ω)の列及び復号正規化済み信号系列X^Q(ω)が入力される。加算部240は、復号量子化誤差q(ω)の列と復号正規化済み信号系列X^Q(ω)とを加算して、修正後復号正規化済み信号系列X^’Q(ω)とする(ステップS6d)。修正後復号正規化済み信号系列X^’Q(ω)は、復号信号系列生成部250及び区分部260に送信される。
<Adding unit 240>
The adder 240 receives a sequence of decoded quantization errors q (ω) and a decoded normalized signal sequence X ^ Q (ω). The adding unit 240 adds the sequence of the decoded quantization error q (ω) and the decoded normalized signal sequence X ^ Q (ω) to obtain a corrected decoded normalized signal sequence X ^ ′ Q (ω) and (Step S6d). The corrected decoded normalized signal sequence X ^ ′ Q (ω) is transmitted to the decoded signal sequence generation unit 250 and the sorting unit 260.

<区分部260>
区分部260が、修正後復号正規化済み信号系列X^’Q(ω) [ω∈{Lmin,…,Lmax}]を、「各範囲のエネルギーがなるべく等しくなるように区分する基準」又は「各範囲に含まれる有意のサンプルの個数がなるべく等しくなるように区分する基準」で、N個の範囲(ただし、N=2Dであり、Dは2以上の予め定められた整数である)に区分する(ステップS7d)。既述の説明と整合させると、修正後復号正規化済み信号系列X^’Q(ω)の離散周波数インデックスの集合を{Lmin,…,Lmax}として、修正後復号正規化済み信号系列X^’Q(ω)[ω∈{Lmin,…,Lmax}]が系列全体Bに相当し、区分部260は、修正後復号正規化済み信号系列X^’Q(ω)[ω∈{Lmin,…,Lmax}]をN個の範囲{Bnn=1 N={B1,…,Bn,…,BN}に区分する。この区分処理の詳細は後述する。この区分処理で得られる区分インデックスbは復号信号系列生成部250に提供される。
<Division section 260>
The sorting unit 260 classifies the modified decoded normalized signal sequence X ^ ′ Q (ω) [ω∈ {L min ,..., L max }] so that the energy in each range is as equal as possible. Or, according to the “criteria for classifying so that the number of significant samples included in each range is as equal as possible”, N ranges (where N = 2 D and D is a predetermined integer of 2 or more) ) (Step S7d). Consistent with the above description, the set of discrete frequency indexes of the corrected decoded normalized signal sequence X ^ ′ Q (ω) is {L min ,..., L max }, and the corrected decoded normalized signal sequence is set. X ^ ′ Q (ω) [ω∈ {L min ,..., L max }] corresponds to the entire sequence B, and the classification unit 260 uses the corrected decoded normalized signal sequence X ^ ′ Q (ω) [ω ∈ {L min, ..., L max}] of n in the range {B n} n = 1 n = {B 1, ..., B n, ..., B n} is partitioned into. Details of this sorting process will be described later. The division index b obtained by this division processing is provided to the decoded signal sequence generation unit 250.

区分数Nは、符号化装置1の区分部150における区分数Nと共通の値となるように、例えば符号化装置1の区分部150と復号装置2の区分部260とに予め設定されている。   The number of partitions N is set in advance in, for example, the partition unit 150 of the encoding device 1 and the partition unit 260 of the decoding device 2 so as to have a value common to the number of partitions N in the partition unit 150 of the encoding device 1. .

区分部260が修正後復号正規化済み信号系列X^’Q(ω) [ω∈{Lmin,…,Lmax}]に対して行なう区分処理は、符号化装置1の区分部150が修正後量子化正規化済み信号系列X^’Q(ω) [ω∈{Lmin,…,Lmax}]に対して行なう区分処理と同一の処理が行われるように、符号化装置1の区分部150と復号装置2の区分部260との間で予め設定されている。 The classification processing performed by the classification unit 260 on the corrected decoded normalized signal sequence X ^ ′ Q (ω) [ω∈ {L min ,..., L max }] is corrected by the classification unit 150 of the encoding device 1. The classification of the coding apparatus 1 is performed so that the same process as the classification process performed on the post-quantization normalized signal sequence X ^ ′ Q (ω) [ω∈ {L min ,..., L max }] is performed. It is preset between the unit 150 and the sorting unit 260 of the decoding device 2.

<区分部260が行なう区分処理の詳細>
区分部260が修正後復号正規化済み信号系列X^’Q(ω) [ω∈{Lmin,…,Lmax}]に対して行なう区分処理は、符号化装置1の区分部150が修正後量子化正規化済み信号系列X^’Q(ω) [ω∈{Lmin,…,Lmax}]に対して行なう区分処理と同一である。
<Details of Sorting Process Performed by Sorting Unit 260>
The classification processing performed by the classification unit 260 on the corrected decoded normalized signal sequence X ^ ′ Q (ω) [ω∈ {L min ,..., L max }] is corrected by the classification unit 150 of the encoding device 1. This is the same as the division processing performed for the post-quantization normalized signal sequence X ^ ′ Q (ω) [ω∈ {L min ,..., L max }].

「各範囲のエネルギーがなるべく等しくなるように区分する基準」での区分処理は、例えば、修正後復号正規化済み信号系列の第nの範囲(nは1からN−1までの各整数)を、
(a) 修正後復号正規化済み信号系列の第1の範囲から第nの範囲までに含まれる全てのサンプルの値の二乗和と、修正後復号正規化済み信号系列の全てのサンプルの値の二乗和のN分のnと、が最も近付くように、
または、
(b) 修正後復号正規化済み信号系列の第1の範囲から第nの範囲までに含まれる全てのサンプルの値の絶対値和と、修正後復号正規化済み信号系列の全てのサンプルの値の絶対値和のN分のnと、が最も近付くように、
または、
(c) 修正後復号正規化済み信号系列の第1の範囲から第nの範囲までのサンプル数の合計が、修正後復号正規化済み信号系列の第1の範囲から第nの範囲までに含まれる全てのサンプルの値の二乗和が修正後復号正規化済み信号系列の全てのサンプルの値の二乗和のN分のn以上となる最小のサンプル数になるように、
または、
(d) 修正後復号正規化済み信号系列の第1の範囲から第nの範囲までのサンプル数の合計が、修正後復号正規化済み信号系列の第1の範囲から第nの範囲までに含まれる全てのサンプルの値の絶対値和が修正後復号正規化済み信号系列の全てのサンプルの値の絶対値和のN分のn以上となる最小のサンプル数になるように、
または、
(e) 修正後復号正規化済み信号系列の第1の範囲から第nの範囲までのサンプル数の合計が、修正後復号正規化済み信号系列の第1の範囲から第nの範囲までに含まれる全てのサンプルの値の二乗和が修正後復号正規化済み信号系列の全てのサンプルの値の二乗和のN分のn以下となる最大のサンプル数になるように、
または、
(f) 修正後復号正規化済み信号系列の第1の範囲から第nの範囲までのサンプル数の合計が、修正後復号正規化済み信号系列の第1の範囲から第nの範囲までに含まれる全てのサンプルの値の絶対値和が修正後復号正規化済み信号系列の全てのサンプルの値の絶対値和のN分のn以下となる最大のサンプル数になるように、
求め、
修正後復号正規化済み信号系列のうちの第1の範囲から第N−1の範囲以外の範囲を、修正後復号正規化済み信号系列の第Nの範囲とすることで、修正後復号正規化済み信号系列をN個の範囲に区分することにより行なわれる。
For example, the sorting process based on the “criteria for sorting so that the energy in each range is as equal as possible” is performed by, for example, n-th range (n is an integer from 1 to N−1) of the corrected decoded normalized signal sequence. ,
(a) The sum of squares of the values of all samples included in the first range to the nth range of the corrected decoded normalized signal sequence and the values of all the samples of the corrected decoded normalized signal sequence As n of the N sum of squares is closest,
Or
(b) The sum of absolute values of the values of all samples included in the first range to the nth range of the corrected decoded normalized signal sequence and the values of all the samples of the corrected decoded normalized signal sequence N of N of the sum of absolute values of
Or
(c) The total number of samples from the first range to the nth range of the corrected decoded normalized signal sequence is included in the first range to the nth range of the corrected decoded normalized signal sequence So that the sum of squares of all sample values is the minimum number of samples that is not less than n / N of the sum of squares of all sample values of the corrected decoded normalized signal sequence,
Or
(d) The total number of samples from the first range to the n-th range of the corrected decoded normalized signal sequence is included in the first range to the n-th range of the corrected decoded normalized signal sequence So that the absolute value sum of all sample values is the minimum number of samples that is not less than n / N of the absolute value sum of all sample values of the corrected decoded normalized signal sequence,
Or
(e) The total number of samples from the first range to the n-th range of the corrected decoded normalized signal sequence is included in the first range to the n-th range of the corrected decoded normalized signal sequence So that the sum of squares of all sample values is the maximum number of samples that is n or less of N / N of the sum of squares of all sample values of the corrected decoded normalized signal sequence,
Or
(f) The total number of samples from the first range to the nth range of the corrected decoded normalized signal sequence is included in the first range to the nth range of the corrected decoded normalized signal sequence So that the absolute value sum of all sample values is the maximum number of samples that is not more than n / N of the absolute value sum of all sample values of the corrected decoded normalized signal sequence,
Seeking
The corrected decoding normalization is performed by setting a range other than the first range to the (N-1) th range in the corrected decoded normalized signal sequence as the Nth range of the corrected decoded normalized signal sequence. This is done by dividing the completed signal sequence into N ranges.

上記に例示した区分処理は、「各範囲のエネルギーがなるべく等しくなるように区分する基準」による区分を、第1の範囲から順に逐次的に決定していく方法によって実現するものである。上記に例示した区分処理によれば、少ない演算処理量で「各範囲のエネルギーがなるべく等しくなるように区分する基準」による区分を実現できる。   The classification process exemplified above is realized by a method of sequentially determining the classification based on the “standard for classifying so that the energy in each range is as equal as possible” sequentially from the first range. According to the classification process exemplified above, it is possible to realize the classification based on the “standard for classifying the energy in each range so as to be as equal as possible” with a small amount of calculation processing.

「各範囲に含まれる有意のサンプルの個数がなるべく等しくなるように区分する基準」での区分処理は、例えば、修正後復号正規化済み信号系列の第nの範囲(nは1からN−1までの各整数)を、
(a) 修正後復号正規化済み信号系列の第1の範囲から第nの範囲までに含まれる全てのサンプルのうちサンプルのエネルギーが所定値より大きいかまたは所定値以上であるサンプルの個数と、修正後復号正規化済み信号系列に含まれる全てのサンプルのうちサンプルのエネルギーが所定値より大きいかまたは所定値以上であるサンプルの個数のN分のnと、が最も近付くように、
または、
(b) 修正後復号正規化済み信号系列の第1の範囲から第nの範囲までに含まれる全てのサンプルのうちサンプルの絶対値が所定値より大きいかまたは所定値以上であるサンプルの個数と、修正後復号正規化済み信号系列に含まれる全てのサンプルのうちサンプルの絶対値が所定値より大きいかまたは所定値以上であるサンプルの個数のN分のnと、が最も近付くように、
または、
(c) 修正後復号正規化済み信号系列の第1の範囲から第nの範囲までに含まれる全てのサンプルのうちサンプルのエネルギーが所定値より大きいかまたは所定値以上であるサンプルの個数が、修正後復号正規化済み信号系列に含まれる全てのサンプルのうちサンプルのエネルギーが所定値より大きいかまたは所定値以上であるサンプルの個数のN分のn以上となる最小のサンプル数となるように、
または、
(d) 修正後復号正規化済み信号系列の第1の範囲から第nの範囲までに含まれる全てのサンプルのうちサンプルの絶対値が所定値より大きいかまたは所定値以上であるサンプルの個数が、修正後復号正規化済み信号系列に含まれる全てのサンプルのうちサンプルの絶対値が所定値より大きいかまたは所定値以上であるサンプルの個数のN分のn以上となる最小のサンプル数となるように、
または、
(e) 修正後復号正規化済み信号系列の第1の範囲から第nの範囲までに含まれる全てのサンプルのうちサンプルのエネルギーが所定値より大きいかまたは所定値以上であるサンプルの個数が、修正後復号正規化済み信号系列に含まれる全てのサンプルのうちサンプルのエネルギーが所定値より大きいかまたは所定値以上であるサンプルの個数のN分のn以下となる最大のサンプル数となるように、
または、
(f) 修正後復号正規化済み信号系列の第1の範囲から第nの範囲までに含まれる全てのサンプルのうちサンプルの絶対値が所定値より大きいかまたは所定値以上であるサンプルの個数が、修正後復号正規化済み信号系列に含まれる全てのサンプルのうちサンプルの絶対値が所定値より大きいかまたは所定値以上であるサンプルの個数のN分のn以下となる最大のサンプル数となるように、
求め、
修正後復号正規化済み信号系列のうちの第1の範囲から第N−1の範囲以外の範囲を、修正後復号正規化済み信号系列の第Nの範囲とすることで、修正後復号正規化済み信号系列をN個の範囲に区分することにより行なわれる。
For example, the classification process based on the “criteria for classifying so that the number of significant samples included in each range is as equal as possible” is performed by, for example, the nth range (n is 1 to N−1) of the corrected decoded normalized signal sequence. Each integer)
(a) the number of samples whose sample energy is greater than or equal to a predetermined value among all samples included in the first range to the nth range of the corrected decoded normalized signal sequence; N of N samples of the number of samples whose sample energy is greater than or equal to or greater than a predetermined value among all samples included in the corrected decoded normalized signal sequence is closest.
Or
(b) the number of samples whose absolute value of samples is greater than or equal to a predetermined value among all samples included in the first range to the nth range of the corrected decoded normalized signal sequence; , N of N samples of the number of samples whose absolute value of samples is greater than or equal to or greater than a predetermined value among all samples included in the corrected decoded normalized signal sequence is closest.
Or
(c) The number of samples whose sample energy is greater than or equal to a predetermined value among all samples included in the first range to the nth range of the corrected decoded normalized signal sequence, Among all samples included in the post-correction decoded normalized signal sequence, the minimum sample number is such that the energy of the sample is greater than a predetermined value or not less than n / N of the number of samples greater than or equal to a predetermined value. ,
Or
(d) The number of samples whose absolute value of samples is greater than or equal to a predetermined value among all samples included in the first range to the n-th range of the corrected decoded normalized signal sequence , Out of all the samples included in the modified decoded normalized signal sequence, the absolute value of the sample is the minimum number of samples that is n or more of N / N of the number of samples that is greater than or equal to the predetermined value. like,
Or
(e) The number of samples whose sample energy is greater than or equal to a predetermined value among all the samples included in the first range to the nth range of the corrected decoded normalized signal sequence, Among all samples included in the post-correction decoded normalized signal sequence, the maximum sample number is such that the sample energy is greater than a predetermined value or less than n / N of the number of samples greater than or equal to a predetermined value. ,
Or
(f) The number of samples whose absolute value of samples is greater than or equal to a predetermined value among all samples included in the first range to the nth range of the corrected decoded normalized signal sequence is The absolute number of samples among all samples included in the corrected decoded normalized signal sequence is the maximum number of samples that is n or less than N / N of the number of samples that are greater than or equal to a predetermined value. like,
Seeking
The corrected decoding normalization is performed by setting a range other than the first range to the (N-1) th range in the corrected decoded normalized signal sequence as the Nth range of the corrected decoded normalized signal sequence. This is done by dividing the completed signal sequence into N ranges.

上記に例示した区分処理は、「各範囲に含まれる有意のサンプルの個数がなるべく等しくなるように区分する基準」による区分を、各範囲を逐次的に決定していく方法によって実現するものである。上記に例示した区分処理によれば、少ない演算処理量で「各範囲に含まれる有意のサンプルの個数がなるべく等しくなるように区分する基準」による区分を実現できる。   The classification process exemplified above realizes the classification based on the “criteria for classifying so that the number of significant samples included in each range is as equal as possible” by a method of sequentially determining each range. . According to the classification process exemplified above, it is possible to realize classification according to “a criterion for classifying so that the number of significant samples included in each range is as equal as possible” with a small amount of calculation processing.

区分部260が行なう区分処理の具体例は、符号化装置1の区分部150が行う区分処理の具体例である「第1の基準による区分処理の第1例」から「第1の基準による区分処理の第6例」、「第2の基準による区分処理の第1例」から「第2の基準による区分処理の第6例」のそれぞれの具体例中の、修正後量子化正規化済み信号系列X^’Q(ω) [ω∈{Lmin,…,Lmax}]を修正後復号正規化済み信号系列X^’Q(ω) [ω∈{Lmin,…,Lmax}]に置き換えたものである。 A specific example of the sorting process performed by the sorting unit 260 is a specific example of the sorting process performed by the sorting unit 150 of the encoding device 1 to “a first example of a sorting process based on the first criterion” to “a sorting based on the first criterion”. Modified Quantized Normalized Signals in Specific Examples of “Sixth Example of Processing”, “First Example of Classification Processing Based on Second Criteria” to “Sixth Example of Classification Processing Based on Second Criteria” sequence X ^ 'Q (ω) [ ω∈ {L min, ..., L max}] corrected decoded normalized signal sequence X ^' Q (ω) [ ω∈ {L min, ..., L max}] It has been replaced with.

<復号信号系列生成部250>
復号信号系列生成部250には、修正後復号正規化済み信号系列X^’Q(ω) [ω∈{Lmin,…,Lmax}]と、ゲイン補正量符号idxと、復号グローバルゲインg^が入力される。復号信号系列生成部250は、修正後復号正規化済み信号系列X^’Q(ω)[ω∈{Lmin,…,Lmax}]を予め定められたN=2D個(Dは2以上の整数)の範囲に区分し、復号信号系列生成部250内の記憶部251に記憶されている複数個のゲイン補正量コードブックを用いて、各区分された範囲についての複数個のゲイン補正量で復号グローバルゲインg^を各区分された範囲ごとに補正して得られる補正ゲインと修正後復号正規化済み信号系列X^’Q(ω)[ω∈{Lmin,…,Lmax}]の各サンプルの値とを乗算して得られる信号系列を出力信号系列X^(ω) [ω∈{Lmin,…,Lmax}]として得る(ステップS8d)。
<Decoded signal sequence generation unit 250>
The decoded signal sequence generation unit 250 includes a corrected decoded normalized signal sequence X ^ ′ Q (ω) [ω∈ {L min ,..., L max }], a gain correction amount code idx, and a decoded global gain g. ^ Is entered. Decoded signal sequence generation unit 250, the correction decoded normalized signal sequence X ^ 'Q (ω) [ ω∈ {L min, ..., L max}] predetermined N = 2 D number of (D 2 A plurality of gain corrections for each divided range using a plurality of gain correction amount codebooks stored in the storage unit 251 in the decoded signal sequence generation unit 250. Correction gain obtained by correcting the decoded global gain g ^ by a quantity for each divided range and the corrected decoded normalized signal sequence X ^ ' Q (ω) [ω∈ {L min , ..., L max } ] Is obtained as an output signal sequence X ^ (ω) [ω∈ {L min ,..., L max }] (step S8d).

このゲイン補正量符号idxは、符号化装置1において、大きな範囲に対応するゲイン補正量に優先してビットが割り当てるという基準に基づいてビットが割り当てたゲイン補正量を特定するものである。言い換えれば、ゲイン補正量符号idxは、範囲に含まれる区分された範囲の個数が多い範囲に対応するゲイン補正量に対して優先的にビットが割り当てるという基準に基づいてビットが割り当てられたゲイン補正量を特定するものである。   The gain correction amount code idx specifies the gain correction amount assigned by the bit based on the criterion that the bit is assigned with priority over the gain correction amount corresponding to a large range in the encoding device 1. In other words, the gain correction amount code idx is a gain correction in which bits are allocated based on a criterion that bits are preferentially allocated to gain correction amounts corresponding to a range having a large number of divided ranges included in the range. The amount is specified.

同じ大きさの範囲に対応するゲイン補正量については何れの範囲に対応するゲイン補正量に優先してビットが割り当てられていてもよいが、聴覚的な重要度が高い範囲に対応するゲイン補正量に対して優先的にビットが割り当てられているほうが好ましい。なお、一般的には、周波数が低い帯域のほうが、周波数が高い帯域よりも、聴覚的な重要度が高いことが多い。このため、同じ大きさの範囲に対応するゲイン補正量については、周波数が低い範囲のゲイン補正量に優先してビットが割り当てられている。   For the gain correction amount corresponding to the same size range, bits may be assigned in preference to the gain correction amount corresponding to any range, but the gain correction amount corresponding to the range of high auditory importance It is preferable that bits are preferentially assigned to. In general, the low frequency band is often higher in auditory importance than the high frequency band. For this reason, with respect to the gain correction amount corresponding to the same size range, bits are assigned in preference to the gain correction amount in the low frequency range.

したがって、ゲイン補正量符号idxは、符号化装置1において、範囲に含まれる区分された範囲の個数が同じ範囲に対応するゲイン補正量については、聴覚的な重要度が高い範囲に対応するゲイン補正量に優先してビットを割り当てるという基準に更に基づいてビットが割り当てられたゲイン補正量を特定するものであってもよい。   Therefore, the gain correction amount code idx is a gain correction amount corresponding to a range of high auditory importance in the encoding apparatus 1 for a gain correction amount corresponding to the same number of divided ranges included in the range. The gain correction amount to which the bit is allocated may be specified based on the criterion that the bit is allocated with priority over the amount.

また、ゲイン補正量符号idxは、符号化装置1において、範囲に含まれる区分された範囲の個数が同じ範囲に対応するゲイン補正量については、周波数が低い範囲に対応するゲイン補正量に優先してビットを割り当てるという基準に更に基づいてビットが割り当てられたゲイン補正量を特定するものであってもよい。   Further, the gain correction amount code idx has priority over the gain correction amount corresponding to the low frequency range for the gain correction amount corresponding to the same number of the divided ranges included in the range in the encoding device 1. Further, the gain correction amount to which the bit is assigned may be specified based on the criterion of assigning the bit.

[復号信号系列生成処理の第1例]
復号信号系列生成処理の第1例は、量子化グローバルゲインg^とゲイン補正量とを加算したものを補正ゲインとする例である。ここでは、同じ大きさの範囲に対応するゲイン補正量については周波数が低い範囲のゲイン補正量に優先してビットが割り当てられており、隣接する2つの範囲のゲイン補正量をベクトル量子化により復号する例について説明する。修正後復号正規化済み信号系列が4個の範囲に区分されている場合について説明する。
[First Example of Decoded Signal Sequence Generation Processing]
The first example of the decoded signal sequence generation process is an example in which the gain obtained by adding the quantized global gain g ^ and the gain correction amount is used as the correction gain. Here, for the gain correction amount corresponding to the same size range, bits are assigned in preference to the gain correction amount in the low frequency range, and the gain correction amounts in the two adjacent ranges are decoded by vector quantization. An example will be described. A case will be described in which the corrected decoded normalized signal sequence is divided into four ranges.

この例では、修正後復号正規化済み信号系列は、第1の範囲R1、第2の範囲R2、第3の範囲R3及び第4の範囲R4に区分されている。例えば図25に示すように、第1の範囲R1は区間[Lmin,L(1)-1]であり、第2の範囲R2は区間[L(1),L(2)-1]であり、第3の範囲R3は区間[L(2),L(3)-1]であり、第4の範囲R4は区間[L(3),Lmax]である。図25の横軸は、サンプル番号を表す。これらの範囲R1,R2,R3,R4は、2個(kは一般には1からD−1までの各整数であるが、この例ではk=1)ずつ纏められている。範囲R1及び範囲R2を纏めた範囲を範囲R12とし、範囲R3及び範囲R4を纏めた範囲を範囲R34とする。 In this example, the corrected decoded normalized signal sequence is divided into a first range R1, a second range R2, a third range R3, and a fourth range R4. For example, as shown in FIG. 25, the first range R1 is a section [L min , L (1) -1], and the second range R2 is a section [L (1) , L (2) -1]. Yes, the third range R3 is the section [L (2) , L (3) -1], and the fourth range R4 is the section [L (3) , L max ]. The horizontal axis in FIG. 25 represents the sample number. These ranges R1, R2, R3, R4 is (although k is each integer generally from 1 to D-1, k = 1 in this example) 2 k pieces are summarized by. A range in which the range R1 and the range R2 are combined is referred to as a range R12, and a range in which the range R3 and the range R4 are combined is referred to as a range R34.

これらの範囲R1,R2,R3,R4,R12,R34は、同じ大きさの範囲ごとにa個の範囲で構成されるグループに分割されている。aは一般には2以上の整数であるが、この例ではa=2である。この例では、範囲R1及び範囲R2がグループG12を構成しており、範囲R3及び範囲R4がグループG34を構成しており、範囲R12及び範囲R34がグループG1234を構成している。すなわち、各グループを構成する範囲は、以下のようになる。   These ranges R1, R2, R3, R4, R12, and R34 are divided into groups each composed of a ranges for each range of the same size. In general, a is an integer of 2 or more, but in this example, a = 2. In this example, the range R1 and the range R2 constitute a group G12, the range R3 and the range R4 constitute a group G34, and the range R12 and the range R34 constitute a group G1234. That is, the range constituting each group is as follows.

グループG12={範囲R1,範囲R2}
グループG34={範囲R3,範囲R4}
グループG1234={範囲R12,範囲R34}
ベクトル量子化の復号は、これらのグループG12,G34,G1234のそれぞれで行われる。
Group G12 = {Range R1, Range R2}
Group G34 = {Range R3, Range R4}
Group G1234 = {range R12, range R34}
Vector quantization decoding is performed in each of these groups G12, G34, and G1234.

隣接する2つの範囲のゲイン補正量のベクトル量子化の復号は、具体的には、次の3つのベクトル量子化の復号により行なわれる。第1のベクトル量子化の復号は、範囲R1に対応するゲイン補正量と範囲R2に対応するゲイン補正量とのベクトル量子化の復号である。これを以下では「第1VQ復号」という。第2のベクトル量子化の復号は、の範囲R3に対応するゲイン補正量と範囲R4に対応するゲイン補正量とのベクトル量子化の復号である。これを以下では「第2VQ復号」という。第3のベクトル量子化の復号は、範囲R12に対応するゲイン補正量と範囲R34に対応するゲイン補正量とのベクトル量子化の復号である。これを以下では「第3VQ復号」という。   Specifically, the vector quantization decoding of the gain correction amounts in the two adjacent ranges is performed by decoding the following three vector quantizations. The first vector quantization decoding is a vector quantization decoding of a gain correction amount corresponding to the range R1 and a gain correction amount corresponding to the range R2. This is hereinafter referred to as “first VQ decoding”. The second vector quantization decoding is a vector quantization decoding of the gain correction amount corresponding to the range R3 and the gain correction amount corresponding to the range R4. This is hereinafter referred to as “second VQ decoding”. The third vector quantization decoding is a vector quantization decoding of the gain correction amount corresponding to the range R12 and the gain correction amount corresponding to the range R34. This is hereinafter referred to as “third VQ decoding”.

本明細書において、復号されたゲイン補正量のことを、復号ゲイン補正量も呼ぶこともある。   In the present specification, the decoded gain correction amount may be referred to as a decoded gain correction amount.

復号信号系列生成部250内の記憶部251には、符号化装置1の記憶部141と同じ第1VQのゲイン補正量コードブック、第2VQのゲイン補正量コードブック、第3VQのゲイン補正量コードブックが格納されている。   The storage unit 251 in the decoded signal sequence generation unit 250 has the same first VQ gain correction amount codebook, second VQ gain correction amount codebook, and third VQ gain correction amount codebook as the storage unit 141 of the encoding device 1. Is stored.

すなわち、a個(この例ではa=2)のゲイン補正量の候補で構成されたベクトルを、ゲイン補正量候補ベクトルと呼ぶことにすると、第1VQのゲイン補正量コードブックには、Δ1(1)及びΔ2(1)で構成されたゲイン補正量候補ベクトル、Δ1(2)及びΔ2(2)で構成されたゲイン補正量候補ベクトル、・・・、Δ1(2Ma)及びΔ2(2Ma)で構成されたゲイン補正量候補ベクトルの計2Ma個のゲイン補正量候補ベクトル、計2Ma個のゲイン補正量候補ベクトルとそれぞれ対応する計2Ma個の符号Δ12(1),Δ12(2),・・・,idx12(2Ma)が格納されている。 That is, if a vector composed of a number (a = 2 in this example) of gain correction amount candidates is called a gain correction amount candidate vector, Δ 1 ( 1) and Δ 2 (1) gain correction amount candidate vector, Δ 1 (2) and Δ 2 (2) gain correction amount candidate vector,..., Δ 1 (2 Ma ) and delta 2 total 2 Ma pieces of gain correction amount candidate vector of a gain correction amount candidate vectors comprised of (2 Ma), a total of 2 Ma pieces of gain correction amount candidate vector and the corresponding total 2 Ma number of code delta 12 ( 1), Δ 12 (2), ..., idx 12 (2 Ma ) are stored.

また、第2VQのゲイン補正量コードブックには、Δ3(1)及びΔ4(1)で構成されたゲイン補正量候補ベクトル、Δ3(2)及びΔ4(2)で構成されたゲイン補正量候補ベクトル、・・・、Δ3(2Mb)及びΔ4(2Mb)で構成されたゲイン補正量候補ベクトルの計2Mb個のゲイン補正量候補ベクトルと、計2Mb個のゲイン補正量候補ベクトルとそれぞれ対応する計2Mb個の符号Δ34(1),Δ34(2),・・・,idx34(2Mb)が格納されている。 The second VQ gain correction amount codebook includes a gain correction amount candidate vector composed of Δ 3 (1) and Δ 4 (1), and a gain composed of Δ 3 (2) and Δ 4 (2). correction amount candidate vectors, ···, Δ 3 (2 Mb ) and delta 4 and a total of 2 Mb pieces of gain correction amount candidate vectors constructed gain correction amount candidate vector (2 Mb), total 2 Mb number of gain A total of 2 Mb codes Δ 34 (1), Δ 34 (2),..., Idx 34 (2 Mb ) respectively corresponding to the correction amount candidate vectors are stored.

第3VQのゲイン補正量コードブックには、Δ12(1)及びΔ34(1)で構成されたゲイン補正量候補ベクトル、Δ12(2)及びΔ34(2)で構成されたゲイン補正量候補ベクトル、・・・、Δ12(2Mb)及びΔ34(2Mb)で構成されたゲイン補正量候補ベクトルの計2Mc個のゲイン補正量候補ベクトルと、計2Mc個のゲイン補正量候補ベクトルとそれぞれ対応する計2Mc個の符号Δ1234(1),Δ1234(2),・・・,idx1234(2Mc)が格納されている。 The third VQ gain correction amount codebook includes a gain correction amount candidate vector composed of Δ 12 (1) and Δ 34 (1), and a gain correction amount composed of Δ 12 (2) and Δ 34 (2). Candidate vectors, ..., 2 Mc gain correction amount candidate vectors composed of Δ 12 (2 Mb ) and Δ 34 (2 Mb ), and a total of 2 Mc gain correction amount vectors A total of 2 Mc codes Δ 1234 (1), Δ 1234 (2),..., Idx 1234 (2 Mc ) corresponding to the candidate vectors are stored.

このように、区分された範囲及び区分された範囲を2k個(kは1からD−1までの各整数)ずつ纏めた範囲のそれぞれには、複数個のゲイン補正量の候補が対応付けされている。この例では、範囲R1にはΔ1(1),…,Δ1(2Ma)が対応付けされており、範囲R2にはΔ2(1),…,Δ2(2Ma)が対応付けされており、範囲R3にはΔ3(1),…,Δ3(2Mb)が対応付けされており、範囲R4にはΔ4(1),…,Δ4(2Mb)が対応付けされており、範囲R12にはΔ12(1),…,Δ12(2Mc)が対応付けされており、範囲R34にはΔ34(1),…,Δ34(2Mc)が対応付けされている。 Thus, a plurality of gain correction amount candidates are associated with each of the divided ranges and the ranges obtained by collecting the divided ranges by 2 k pieces (k is an integer from 1 to D-1). Has been. In this example, Δ 1 (1), ..., Δ 1 (2 Ma ) is associated with the range R1, and Δ 2 (1), ..., Δ 2 (2 Ma ) is associated with the range R2. It is, in the range R3 Δ 3 (1), ... , Δ 3 (2 Mb) have been associated, in the range R4 Δ 4 (1), ... , Δ 4 (2 Mb) is correlated Δ 12 (1),..., Δ 12 (2 Mc ) is associated with the range R12, and Δ 34 (1),..., Δ 34 (2 Mc ) is associated with the range R34. Has been.

ゲイン補正量の候補には、大きな範囲に対応するゲイン補正量の候補の絶対値の方が、その大きな範囲よりも小さい範囲に対応するゲイン補正量の候補の絶対値よりも大きいという関係があってもよい。すなわち、範囲に含まれる区分された範囲の個数が多い範囲に対応するゲイン補正量の候補の絶対値の方が、その範囲に含まれる上記区分された範囲の個数よりも範囲に含まれる区分された範囲の個数が少ない範囲に対応するゲイン補正量の候補の絶対値よりも大きいという関係があってもよい。   The gain correction amount candidates have a relationship that the absolute value of the gain correction amount candidate corresponding to the large range is larger than the absolute value of the gain correction amount candidate corresponding to the smaller range. May be. That is, the absolute value of the gain correction amount candidate corresponding to a range having a large number of divided ranges included in the range is included in the range than the number of the divided ranges included in the range. Alternatively, there may be a relationship that the absolute value of gain correction amount candidates corresponding to a range with a small number of ranges is larger.

この例では、範囲R12及び範囲R34の方が、範囲R1、範囲R2、範囲R3及び範囲R4よりも大きな範囲である。   In this example, the range R12 and the range R34 are larger than the range R1, the range R2, the range R3, and the range R4.

したがって、Δ12(1),…,Δ12(2Mc)の絶対値が、Δ1(1),…,Δ1(2Ma)の絶対値、Δ2(1),…,Δ2(2Ma)の絶対値、Δ3(1),…,Δ3(2Mb)の絶対値及びΔ4(1),…,Δ4(2Mb)の絶対値よりも大きくなっていてもよい。 Thus, Δ 12 (1), ... , the absolute value of Δ 12 (2 Mc) is, Δ 1 (1), ... , the absolute value of Δ 1 (2 Ma), Δ 2 (1), ..., Δ 2 ( 2 Ma ) absolute value, Δ 3 (1), ..., Δ 3 (2 Mb ) absolute value and Δ 4 (1), ..., Δ 4 (2 Mb ) absolute value .

同様に、Δ34(1),…,Δ34(2Mc)の絶対値が、Δ1(1),…,Δ1(2Ma)の絶対値、Δ2(1),…,Δ2(2Ma)の絶対値、Δ3(1),…,Δ3(2Mb)の絶対値及びΔ4(1),…,Δ4(2Mb)の絶対値よりも大きくなっていてもよい。 Similarly, Δ 34 (1), ... , the absolute value of Δ 34 (2 Mc) is, Δ 1 (1), ... , the absolute value of Δ 1 (2 Ma), Δ 2 (1), ..., Δ 2 The absolute value of (2 Ma ), the absolute value of Δ 3 (1), ..., Δ 3 (2 Mb ) and the absolute value of Δ 4 (1), ..., Δ 4 (2 Mb ) Good.

例えば、次のようにしてゲイン補正量候補ベクトルを生成することができる。   For example, a gain correction amount candidate vector can be generated as follows.

まず、a個の値で構成される正規化ゲイン補正量候補ベクトルを2Md個記憶部141に格納しておく。例えば、Md=Ma=Mb=Mcである。正規化ゲイン補正量候補ベクトルを構成するa個の値をΔ1(m),…,Δa(m)と表記すると、正規化ゲイン補正量候補ベクトルは(Δ1(m),…,Δa(m))と表記することができる。記憶部141には、2Md個の正規化ゲイン補正量候補ベクトル、すなわち(Δ1(1),…,Δa(1)),…,(Δ1(2Md),…,Δa(2Md))が格納されている。 First, 2 Md number of normalized gain correction amount candidate vectors composed of a values are stored in the storage unit 141. For example, Md = Ma = Mb = Mc. When a value constituting the normalized gain correction amount candidate vector is expressed as Δ 1 (m),..., Δ a (m), the normalized gain correction amount candidate vector is (Δ 1 (m),. a (m)). The storage unit 141, 2 Md pieces of normalized gain correction amount candidate vectors, i.e. (Δ 1 (1), ... , Δ a (1)), ..., (Δ 1 (2 Md), ..., Δ a ( 2 Md )) is stored.

また、範囲の大きさごとに予め定められた係数が定められているものとする。この係数は、対応する範囲が大きいほど大きい。言い換えれば、この係数は、範囲に含まれる区分された範囲の個数が多い範囲ほど大きい。   In addition, it is assumed that a predetermined coefficient is determined for each size of the range. This coefficient is larger as the corresponding range is larger. In other words, this coefficient is larger as the number of divided ranges included in the range is larger.

上記の例では、範囲R12,R34は、範囲R1,R2,R3,R4よりも大きい範囲である。このため、範囲R12,R34に対応する係数step1234は、範囲R1,R2に対応する係数step12よりも大きい。同様に、範囲R12,R34に対応する係数step1234は、範囲R3,R4に対応する係数step34よりも大きい。 In the above example, the ranges R12, R34 are larger than the ranges R1, R2, R3, R4. For this reason, the coefficient step 1234 corresponding to the ranges R12 and R34 is larger than the coefficient step 12 corresponding to the ranges R1 and R2. Similarly, the coefficient step 1234 corresponding to the ranges R12 and R34 is larger than the coefficient step 34 corresponding to the ranges R3 and R4.

このとき、正規化ゲイン補正量候補ベクトルに、範囲の大きさに対応する係数を乗算したベクトルを、その範囲のゲイン補正量候補ベクトルとする。言いかえれば、正規化ゲイン補正量候補ベクトル(Δ1(m),…,Δa(m))を構成するa個の値Δ1(m),…,Δa(m)のそれぞれに、範囲の大きさに対応する係数stepを乗算することにより得られたa個の値stepΔ1(m),…, stepΔa(m)により構成されるベクトル(stepΔ1(m),…,stepΔa(m))を、その範囲のゲイン補正量候補ベクトルとする。この乗算は、例えば復号信号系列生成部250により行われる。正規化ゲイン補正量候補ベクトル(Δ1(m),…,Δa(m))は2Md個あるため、m=1,…,2Mdのそれぞれについてこの乗算を行うことにより、2Md個のゲイン補正量候補ベクトル(stepΔ1(m),…, stepΔa(m))が得られる。 At this time, a vector obtained by multiplying the normalized gain correction amount candidate vector by a coefficient corresponding to the size of the range is set as the gain correction amount candidate vector of the range. In other words, the normalized gain correction amount candidate vector (Δ 1 (m), ... , Δ a (m)) a number of values delta 1 constituting the (m), ..., to each of the delta a (m), A vector (stepΔ 1 (m),..., StepΔ a composed of a values stepΔ 1 (m),..., StepΔ a (m) obtained by multiplying the coefficient step corresponding to the size of the range. (m)) is a gain correction amount candidate vector in that range. This multiplication is performed by the decoded signal sequence generation unit 250, for example. Since there are 2 Md normalized gain correction amount candidate vectors (Δ 1 (m),..., Δ a (m)), by performing this multiplication for each of m = 1,..., 2 Md , 2 Md Gain correction amount candidate vectors (step Δ 1 (m),..., Step Δ a (m)) are obtained.

上記のa=2の例では、Md=Maとした場合、グループG12を構成する範囲R1,R2に対応するゲイン補正量候補ベクトル(Δ1(m),Δ2(m))は、(Δ1(m),Δ2(m))=(step12Δ1(m),step12Δ2(m))[m=1,…,2Ma]である。Md=Mbとした場合、グループG34を構成する範囲R3,R4に対応するゲイン補正量候補ベクトル(Δ3(m),Δ4(m))は、(Δ3(m),Δ4(m))=(step34Δ1(m),step34Δ2(m))[m=1,…,2Mb]である。Md=Mbとした場合、グループG1234を構成する範囲R12,R34に対応するゲイン補正量候補ベクトル(Δ12(m),Δ34(m))は、(Δ12(m),Δ34(m))=(step1234Δ1(m),step1234Δ2(m))[m=1,…,2Mc]である。 In the above example of a = 2, when Md = Ma, the gain correction amount candidate vectors (Δ 1 (m), Δ 2 (m)) corresponding to the ranges R1, R2 constituting the group G12 are (Δ 1 (m), Δ 2 (m)) = (step 12 Δ 1 (m), step 12 Δ 2 (m)) [m = 1,..., 2 Ma ]. When Md = Mb, the gain correction amount candidate vectors (Δ 3 (m), Δ 4 (m)) corresponding to the ranges R3, R4 constituting the group G34 are (Δ 3 (m), Δ 4 (m )) = (step 34 Δ 1 (m), step 34 Δ 2 (m)) [m = 1,..., 2 Mb ]. When Md = Mb, the gain correction amount candidate vectors (Δ 12 (m), Δ 34 (m)) corresponding to the ranges R 12, R 34 constituting the group G 1234 are (Δ 12 (m), Δ 34 (m )) = (step 1234 Δ 1 (m), step 1234 Δ 2 (m)) [m = 1,..., 2 Mc ].

[[復号信号系列生成処理の具体例1:3つの場合で異なる加算式を用いる例]]
具体例1は、入力されたゲイン補正量符号idxのビット数Ugが、McとMc+MaとMc+Ma+Mbとの何れかである場合の例である。
[[Example of Decoded Signal Sequence Generation Processing 1: Example Using Different Addition Formulas in Three Cases]]
Specific example 1 is an example in which the number of bits U g of the input gain correction amount code idx is any one of Mc, Mc + Ma, and Mc + Ma + Mb.

(a) 入力されたゲイン補正量符号idxのビット数UgがMcである場合
入力されたゲイン補正量符号idxのビット数UgがMcである場合は、ゲイン補正量符号idxには第3VQ符号idx1234のみが含まれる。従って、復号信号系列生成部250は、まず、第3VQ符号idx1234に対して第3VQ復号を行い、範囲R12に対応する復号ゲイン補正量Δ12と範囲R34に対応する復号ゲイン補正量Δ34を得る。具体的には、記憶部251に格納されたΔ12(1)とΔ34(1)とidx1234(1)との組、Δ12(2)とΔ34(2)とidx1234(2)との組、・・・、Δ12(2Mc)とΔ34(2Mc)とidx1234 (2Mc)との組を参照して、第3VQ符号idx1234と同一のidx1234(mc)に対応するΔ12(mc)を範囲R12に対応する復号ゲイン補正量Δ12として得て、第3VQ符号idx1234と同一のidx1234(mc)に対応するΔ34(mc)を範囲R34に対応する復号ゲイン補正量Δ34として得る。これは、周知のベクトル量子化の復号方法である。
(a) When the number of bits U g of the input gain correction amount code idx is Mc When the number of bits U g of the input gain correction amount code idx is Mc, the gain correction amount code idx includes the third VQ Only the code idx 1234 is included. Accordingly, the decoded signal sequence generation unit 250 first performs the third VQ decoding on the third VQ code idx 1234 , and obtains the decoding gain correction amount Δ 12 corresponding to the range R12 and the decoding gain correction amount Δ 34 corresponding to the range R34. obtain. Specifically, a set of Δ 12 (1), Δ 34 (1) and idx 1234 (1) stored in the storage unit 251, Δ 12 (2), Δ 34 (2) and idx 1234 (2) ,..., Δ 12 (2 Mc ), Δ 34 (2 Mc ) and idx 1234 (2 Mc ), and the same idx 1234 (mc) as the third VQ code idx 1234 The corresponding Δ 12 (mc) is obtained as the decoding gain correction amount Δ 12 corresponding to the range R12, and Δ 34 (mc) corresponding to the same idx 1234 (mc) as the third VQ code idx 1234 corresponds to the range R34. Obtained as a decoding gain correction amount Δ 34 . This is a well-known vector quantization decoding method.

次に、範囲R1については、範囲R1についての復号ゲイン補正量である範囲R12に対応する復号ゲイン補正量Δ12と、復号グローバルゲインg^とを加算して得られる補正ゲインg^+Δ12と、修正後復号正規化済み信号系列X^’Q(ω) [ω∈{Lmin,…,L(1)-1]の各サンプルの値と、を乗算して得られる信号系列を出力信号系列X^(ω) [ω∈{Lmin,…,L(1)-1}]として得る。すなわち、範囲R1の出力信号系列X^(ω) [ω∈{Lmin,…,L(1)-1}]の各サンプルは式(D7)により求まる。
X^(ω)=(g^+Δ12) X^’Q(ω) (D7)
Next, the range R1 includes a decoding gain correction amount delta 12 corresponding to the range R12 is decoded gain correction amount for the range R1, the correction gain g ^ + delta 12 obtained by adding the decoded global gain g ^ , The decoded decoded normalized signal sequence X ^ ′ Q (ω) [ω∈ {L min ,..., L (1) −1] and the signal sequence obtained by multiplying by the output signal Obtained as a sequence X ^ (ω) [ω∈ {L min ,..., L (1) −1}]. That is, each sample of the output signal sequence X ^ (ω) [ω∈ {L min ,..., L (1) −1}] in the range R1 is obtained by the equation (D7).
X ^ (ω) = (g ^ + Δ 12 ) X ^ ' Q (ω) (D7)

また、範囲R2については、範囲R2についての復号ゲイン補正量である範囲R12に対応する復号ゲイン補正量Δ12と、復号グローバルゲインg^とを加算して得られる補正ゲインg^+Δ12と、修正後復号正規化済み信号系列X^’Q(ω) [ω∈{L(1),…,L(2)-1]の各サンプルの値と、を乗算して得られる信号系列を出力信号系列X^(ω) [ω∈{L(1) ,…,L(2)-1]として得る。すなわち、範囲R2の出力信号系列X^(ω) [ω∈{L(1),…,L(2)-1]の各サンプルも式(D7)により求まる。 As for the range R2, the decoded gain correction amount delta 12 corresponding to the range R12 is decoded gain correction amount for the range R2, the correction gain g ^ + delta 12 obtained by adding the decoded global gain g ^, Post-correction decoded normalized signal sequence X ^ ' Q (ω) Outputs signal sequence obtained by multiplying each sample value of [ω∈ {L (1) , ..., L (2) -1]] The signal sequence X ^ (ω) [ω∈ {L (1) ,..., L (2) −1] is obtained. That is, each sample of the output signal sequence X ^ (ω) [ω∈ {L (1) ,..., L (2) −1] in the range R2 is also obtained by the equation (D7).

また、範囲R3については、範囲R3についての復号ゲイン補正量である範囲R34に対応する復号ゲイン補正量Δ34と、復号グローバルゲインg^とを加算して得られる補正ゲインg^+Δ34と、修正後復号正規化済み信号系列X^’Q(ω) [ω∈{L(2),…,L(3)-1]の各サンプルの値と、を乗算して得られる信号系列を出力信号系列X^(ω) [ω∈{L(2),…,L(3)-1]として得る。すなわち、範囲R3の出力信号系列X^(ω) [ω∈{L(2),…,L(3)-1]の各サンプルは式(D8)により求まる。
X^(ω)=(g^+Δ34) X^’Q(ω) (D8)
As for the range R3, and the decoded gain correction amount delta 34 corresponding to the range R34 is decoded gain correction amount for the range R3, the correction gain g ^ + delta 34 obtained by adding the decoded global gain g ^, Post-correction decoded normalized signal sequence X ^ ' Q (ω) Outputs signal sequence obtained by multiplying each sample value of [ω∈ {L (2) , ..., L (3) -1]] The signal sequence X ^ (ω) [ω∈ {L (2) ,..., L (3) −1] is obtained. That is, each sample of the output signal sequence X ^ (ω) [ω∈ {L (2) ,..., L (3) −1] in the range R3 is obtained by the equation (D8).
X ^ (ω) = (g ^ + Δ 34 ) X ^ ' Q (ω) (D8)

また、範囲R4については、範囲R4についての復号ゲイン補正量である範囲R34に対応する復号ゲイン補正量Δ34と、復号グローバルゲインg^とを加算して得られる補正ゲインg^+Δ34と、修正後復号正規化済み信号系列X^’Q(ω) [ω∈{L(3),…,Lmax]の各サンプルの値と、を乗算して得られる信号系列を出力信号系列X^(ω) [ω∈{L(3) ,…,Lmax]として得る。すなわち、範囲R4の出力信号系列X^(ω) [ω∈{L(3),…,Lmax]の各サンプルも式(D8)により求まる。 Also, the range R4, the decoded gain correction amount delta 34 corresponding to the range R34 is decoded gain correction amount for range R4, the correction gain g ^ + delta 34 obtained by adding the decoded global gain g ^, The signal sequence obtained by multiplying the corrected decoded normalized signal sequence X ^ ' Q (ω) [ω∈ {L (3) ,..., L max ] ) with the value of each sample is output signal sequence X ^ (ω) [ω∈ {L (3) ,..., L max ]. That is, each sample of the output signal sequence X ^ (ω) [ω∈ {L (3) ,..., L max ] in the range R4 is also obtained by the equation (D8).

(b) 入力されたゲイン補正量符号idxのビット数UgがMc+Maである場合
入力されたゲイン補正量符号idxのビット数UgがMc+Maである場合は、ゲイン補正量符号idxには第3VQ符号idx1234と第1VQ符号idx12が含まれる。従って、復号信号系列生成部250は、第3VQ符号idx1234に対して第3VQ復号を行い、範囲R12に対応する復号ゲイン補正量Δ12と範囲R34に対応する復号ゲイン補正量Δ34を得て、さらに、第1VQ符号idx12に対して第1VQ復号を行い、範囲R1に対応する復号ゲイン補正量Δ1と範囲R2に対応する復号ゲイン補正量Δ2を得る。各VQ復号は、周知のベクトル量子化の復号方法により行われる。
(b) When the number of bits U g of the input gain correction amount code idx is Mc + Ma When the number of bits U g of the input gain correction amount code idx is Mc + Ma, the gain correction amount code idx Includes a third VQ code idx 1234 and a first VQ code idx 12 . Therefore, the decoded signal sequence generation unit 250 performs third VQ decoding on the third VQ code idx 1234 to obtain a decoding gain correction amount Δ 12 corresponding to the range R12 and a decoding gain correction amount Δ 34 corresponding to the range R34. Further, the first VQ decoding is performed on the first VQ code idx 12 to obtain a decoding gain correction amount Δ 1 corresponding to the range R1 and a decoding gain correction amount Δ 2 corresponding to the range R2. Each VQ decoding is performed by a well-known vector quantization decoding method.

次に、範囲R1については、範囲R1についての復号ゲイン補正量である範囲R12に対応する復号ゲイン補正量Δ12及び範囲R1に対応する復号ゲイン補正量Δ1と、復号グローバルゲインg^とを加算して得られる補正ゲインg^+Δ12+Δ1と、修正後復号正規化済み信号系列X^’Q(ω) [ω∈{Lmin,…,L(1)-1]の各サンプルの値と、を乗算して得られる信号系列を出力信号系列X^(ω) [ω∈{Lmin,…,L(1)-1}]として得る。すなわち、範囲R1の出力信号系列X^(ω) [ω∈{Lmin,…,L(1)-1}]の各サンプルは式(D9)により求まる。
X^(ω)=(g^+Δ12+Δ1) X^’Q(ω) (D9)
Next, for the range R1, a decoding gain correction amount delta 1 corresponding to the decoding gain correction amount delta 12 and range R1 corresponds to the range R12 is decoded gain correction amount for the range R1, and a decoding global gain g ^ The correction gain g ^ + Δ 12 + Δ 1 obtained by the addition and the corrected decoded normalized signal sequence X ^ ' Q (ω) [ω∈ {L min , ..., L (1) -1] A signal sequence obtained by multiplying the value by is obtained as an output signal sequence X ^ (ω) [ω∈ {L min ,..., L (1) −1}]. That is, each sample of the output signal sequence X ^ (ω) [ω∈ {L min ,..., L (1) −1}] in the range R1 is obtained by the equation (D9).
X ^ (ω) = (g ^ + Δ 12 + Δ 1 ) X ^ ' Q (ω) (D9)

また、範囲R2については、範囲R1についての復号ゲイン補正量である範囲R12の復号ゲイン補正量Δ12及び範囲R2の復号ゲイン補正量Δ2と、復号グローバルゲインg^とを加算して得られる補正ゲインg^+Δ12+Δ2と、修正後復号正規化済み信号系列X^’Q(ω) [ω∈{L(1),…,L(2)-1]の各サンプルの値と、を乗算して得られる信号系列を出力信号系列X^(ω) [ω∈{L(1),…,L(2)-1}]として得る。すなわち、範囲R2の出力信号系列X^(ω) [ω∈{L(1),…,L(2)-1}]の各サンプルは式(D10)により求まる。
X^(ω)=(g^+Δ12+Δ2) X^’Q(ω) (D10)
As for the range R2, the decoded gain correction amount delta 2 of decoded gain correction amount in a range R12 decoding gain correction amount delta 12 and the range R2 for the range R1, is obtained by adding the decoded global gain g ^ The correction gain g ^ + Δ 12 + Δ 2 and the value of each sample of the corrected decoded normalized signal sequence X ^ ′ Q (ω) [ω∈ {L (1) ,..., L (2) −1]; Is obtained as an output signal sequence X ^ (ω) [ω∈ {L (1) ,..., L (2) −1}]. That is, each sample of the output signal sequence X ^ (ω) [ω∈ {L (1) ,..., L (2) −1}] in the range R2 is obtained by the equation (D10).
X ^ (ω) = (g ^ + Δ 12 + Δ 2 ) X ^ ' Q (ω) (D10)

また、範囲R3については、範囲R3についての復号ゲイン補正量である範囲R34に対応する復号ゲイン補正量Δ34と、復号グローバルゲインg^とを加算して得られる補正ゲインg^+Δ34と、修正後復号正規化済み信号系列X^’Q(ω) [ω∈{L(2),…,L(3)-1]の各サンプルの値と、を乗算して得られる信号系列を出力信号系列X^(ω) [ω∈{L(2),…,L(3)-1]として得る。すなわち、範囲R3の出力信号系列X^(ω) [ω∈{L(2),…,L(3)-1]の各サンプルは式(D8)により求まる。 As for the range R3, and the decoded gain correction amount delta 34 corresponding to the range R34 is decoded gain correction amount for the range R3, the correction gain g ^ + delta 34 obtained by adding the decoded global gain g ^, Post-correction decoded normalized signal sequence X ^ ' Q (ω) Outputs signal sequence obtained by multiplying each sample value of [ω∈ {L (2) , ..., L (3) -1]] The signal sequence X ^ (ω) [ω∈ {L (2) ,..., L (3) −1] is obtained. That is, each sample of the output signal sequence X ^ (ω) [ω∈ {L (2) ,..., L (3) −1] in the range R3 is obtained by the equation (D8).

また、範囲R4については、範囲R4についての復号ゲイン補正量である範囲R34に対応する復号ゲイン補正量Δ34と、復号グローバルゲインg^とを加算して得られる補正ゲインg^+Δ34と、修正後復号正規化済み信号系列X^’Q(ω) [ω∈{L(3),…,Lmax]の各サンプルの値と、を乗算して得られる信号系列を出力信号系列X^(ω) [ω∈{L(3) ,…,Lmax]として得る。すなわち、第4の範囲の出力信号系列X^(ω) [ω∈{L(3),…,Lmax]の各サンプルも式(D8)により求まる。 Also, the range R4, the decoded gain correction amount delta 34 corresponding to the range R34 is decoded gain correction amount for range R4, the correction gain g ^ + delta 34 obtained by adding the decoded global gain g ^, The signal sequence obtained by multiplying the corrected decoded normalized signal sequence X ^ ' Q (ω) [ω∈ {L (3) ,..., L max ] ) with the value of each sample is output signal sequence X ^ (ω) [ω∈ {L (3) ,..., L max ]. That is, each sample of the output signal sequence X ^ (ω) [ω∈ {L (3) ,..., L max ] in the fourth range is also obtained by Expression (D8).

(c) 入力されたゲイン補正量符号idxのビット数UgがMc+Ma+Mbである場合
入力されたゲイン補正量符号idxのビット数UgがMc+Ma+Mbである場合は、ゲイン補正量符号idxには第3VQ符号idx1234と第1VQ符号idx12と第2VQ符号idx34が含まれる。従って、復号信号系列生成部250は、第3VQ符号idx1234に対して第3VQ復号を行い、範囲R12に対応する復号ゲイン補正量Δ12と範囲R34に対応する復号ゲイン補正量Δ34を得て、さらに、第1VQ符号idx12に対して第1VQ復号を行い、範囲R1に対応する復号ゲイン補正量Δ1と範囲R2に対応する復号ゲイン補正量Δ2を得て、さらに、第2VQ符号idx34に対して第2VQ復号を行い、範囲R3に対応する復号ゲイン補正量Δ3と範囲R4に対応する復号ゲイン補正量Δ4を得る。各VQ復号は、周知のベクトル量子化の復号方法により行われる。
(c) When the number of bits U g of the input gain correction amount code idx is Mc + Ma + Mb When the number of bits U g of the input gain correction amount code idx is Mc + Ma + Mb, the gain The correction amount code idx includes a third VQ code idx 1234 , a first VQ code idx 12, and a second VQ code idx 34 . Therefore, the decoded signal sequence generation unit 250 performs third VQ decoding on the third VQ code idx 1234 to obtain a decoding gain correction amount Δ 12 corresponding to the range R12 and a decoding gain correction amount Δ 34 corresponding to the range R34. Further, the first VQ decoding is performed on the first VQ code idx 12 to obtain the decoding gain correction amount Δ 1 corresponding to the range R1 and the decoding gain correction amount Δ 2 corresponding to the range R2, and further, the second VQ code idx It performs the 2VQ decoding to 34 to obtain decoded gain correction amount delta 4 corresponding to the decoding gain correction amount delta 3 and scope R4 corresponding to the range R3. Each VQ decoding is performed by a well-known vector quantization decoding method.

次に、範囲R1については、範囲R1についての復号ゲイン補正量である範囲R12に対応する復号ゲイン補正量Δ12及び範囲R1に対応する復号ゲイン補正量Δ1と、復号グローバルゲインg^とを加算して得られる補正ゲインg^+Δ12+Δ1と、修正後復号正規化済み信号系列X^’Q(ω) [ω∈{Lmin,…,L(1)-1]の各サンプルの値と、を乗算して得られる信号系列を出力信号系列X^(ω) [ω∈{Lmin,…,L(1)-1}]として得る。すなわち、第1の範囲の出力信号系列X^(ω) [ω∈{Lmin,…,L(1)-1}]の各サンプルは式(D9)により求まる。 Next, for the range R1, a decoding gain correction amount delta 1 corresponding to the decoding gain correction amount delta 12 and range R1 corresponds to the range R12 is decoded gain correction amount for the range R1, and a decoding global gain g ^ The correction gain g ^ + Δ 12 + Δ 1 obtained by the addition and the corrected decoded normalized signal sequence X ^ ' Q (ω) [ω∈ {L min , ..., L (1) -1] A signal sequence obtained by multiplying the value by is obtained as an output signal sequence X ^ (ω) [ω∈ {L min ,..., L (1) −1}]. That is, each sample of the output signal sequence X ^ (ω) [ω∈ {L min ,..., L (1) −1}] in the first range is obtained by the equation (D9).

また、範囲R2については、範囲R2についての復号ゲイン補正量である範囲R12に対応する復号ゲイン補正量Δ12及び範囲R2に対応する復号ゲイン補正量Δ2と、復号グローバルゲインg^とを加算して得られる補正ゲインg^+Δ12+Δ2と、修正後復号正規化済み信号系列X^’Q(ω) [ω∈{L(1),…,L(2)-1]の各サンプルの値と、を乗算して得られる信号系列を出力信号系列X^(ω) [ω∈{L(1),…,L(2)-1}]として得る。すなわち、範囲R2の出力信号系列X^(ω) [ω∈{L(1),…,L(2)-1}]の各サンプルは式(D10)により求まる。 As for the range R2, added to the decoded gain correction amount delta 2 which corresponds to the decoded gain correction amount delta 12 and range R2 corresponding to the range R12 is decoded gain correction amount for the range R2, and a decoding global gain g ^ And the corrected gain g ^ + Δ 12 + Δ 2 and the corrected decoded normalized signal sequence X ^ ' Q (ω) [ω∈ {L (1) , ..., L (2) -1] Is obtained as an output signal sequence X ^ (ω) [ω∈ {L (1) ,..., L (2) −1}]. That is, each sample of the output signal sequence X ^ (ω) [ω∈ {L (1) ,..., L (2) −1}] in the range R2 is obtained by the equation (D10).

また、範囲R3については、範囲R3についての復号ゲイン補正量である範囲R34に対応する復号ゲイン補正量Δ34及び範囲R3に対応する復号ゲイン補正量Δ3と、復号グローバルゲインg^とを加算して得られる補正ゲインg^+Δ34+Δ3と、修正後復号正規化済み信号系列X^’Q(ω) [ω∈{L(2),…,L(3)-1]の各サンプルの値と、を乗算して得られる信号系列を出力信号系列X^(ω) [ω∈{L(2),…,L(3)-1}]として得る。すなわち、第3の範囲の出力信号系列X^(ω) [ω∈{L(2),…,L(3)-1}]の各サンプルは式(D11)により求まる。
X^(ω)=(g^+Δ34+Δ3) X^’Q(ω) (D11)
As for the range R3, added to the decoded gain correction amount delta 3 corresponding to the decoding gain correction amount delta 34 and range R3 corresponding to a range R34 is decoded gain correction amount for the range R3, and a decoding global gain g ^ Correction gain g ^ + Δ 34 + Δ 3 and the corrected decoded normalized signal sequence X ^ ' Q (ω) [ω∈ {L (2) , ..., L (3) -1] Is obtained as an output signal sequence X ^ (ω) [ω∈ {L (2) ,..., L (3) −1}]. That is, each sample of the output signal sequence X ^ (ω) [ω∈ {L (2) ,..., L (3) −1}] in the third range is obtained by the equation (D11).
X ^ (ω) = (g ^ + Δ 34 + Δ 3 ) X ^ ' Q (ω) (D11)

また、範囲R4については、範囲R4についての復号ゲイン補正量である範囲R34の復号ゲイン補正量Δ34及び範囲R4の復号ゲイン補正量Δ4と、復号グローバルゲインg^とを加算して得られる補正ゲインg^+Δ34+Δ4と、修正後復号正規化済み信号系列X^’Q(ω) [ω∈{L(3),…,Lmax]の各サンプルの値と、を乗算して得られる信号系列を出力信号系列X^(ω) [ω∈{L(3),…,Lmax}]として得る。すなわち、範囲R4の出力信号系列X^(ω) [ω∈{L(3),…,Lmax}]の各サンプルは式(D12)により求まる。
X^(ω)=(g^+Δ34+Δ4) X^’Q(ω) (D12)
Also, the range R4, the decoded gain correction amount delta 4 decoding gain correction amount delta 34 and scope R4 ranging R34 is decoded gain correction amount for range R4, obtained by adding the decoded global gain g ^ Multiplying the correction gain g ^ + Δ 34 + Δ 4 by the value of each sample of the corrected decoded normalized signal sequence X ^ ′ Q (ω) [ω∈ {L (3) ,..., L max ] The obtained signal sequence is obtained as an output signal sequence X ^ (ω) [ω∈ {L (3) ,..., L max }]. That is, each sample of the output signal sequence X ^ (ω) [ω∈ {L (3) ,..., L max }] in the range R4 is obtained by the equation (D12).
X ^ (ω) = (g ^ + Δ 34 + Δ 4 ) X ^ ' Q (ω) (D12)

[[復号信号系列生成処理の具体例2:3つの場合で同じ加算式を用いる例]]
具体例2も、具体例1と同様に、入力されたゲイン補正量符号idxのビット数Ugが、McとMc+MaとMc+Ma+Mbとの何れかである場合の例である。
[[Example of decoded signal sequence generation process 2: Example using the same addition formula in three cases]]
The specific example 2 is also an example in which the number of bits U g of the input gain correction amount code idx is any one of Mc, Mc + Ma, and Mc + Ma + Mb, as in the specific example 1.

(a) 入力されたゲイン補正量符号idxのビット数UgがMcである場合
入力されたゲイン補正量符号idxのビット数UgがMcである場合は、ゲイン補正量符号idxには第3VQ符号idx1234のみが含まれる。従って、復号信号系列生成部250は、まず、第3VQ符号idx1234に対して第3VQ復号を行い、範囲R12に対応する復号ゲイン補正量Δ12と範囲R34に対応する復号ゲイン補正量Δ34を得る。復号ゲイン補正量を得る方法は具体例1と同様である。
(a) When the number of bits U g of the input gain correction amount code idx is Mc When the number of bits U g of the input gain correction amount code idx is Mc, the gain correction amount code idx includes the third VQ Only the code idx 1234 is included. Accordingly, the decoded signal sequence generation unit 250 first performs the third VQ decoding on the third VQ code idx 1234 , and obtains the decoding gain correction amount Δ 12 corresponding to the range R12 and the decoding gain correction amount Δ 34 corresponding to the range R34. obtain. The method for obtaining the decoding gain correction amount is the same as in the first specific example.

また、復号ゲイン補正量Δ1234のそれぞれを0とする。 Also, each of the decoding gain correction amounts Δ 1 , Δ 2 , Δ 3 , Δ 4 is set to 0.

次に、範囲R1については、範囲R1についての復号ゲイン補正量である範囲R12に対応する復号ゲイン補正量Δ12及び範囲R1に対応する復号ゲイン補正量Δ1と、復号グローバルゲインg^とを加算して得られる補正ゲインg^+Δ12+Δ1と、修正後復号正規化済み信号系列X^’Q(ω) [ω∈{Lmin,…,L(1)-1]の各サンプルの値と、を乗算して得られる信号系列を出力信号系列X^(ω) [ω∈{Lmin,…,L(1)-1}]として得る。すなわち、範囲R1の出力信号系列X^(ω) [ω∈{Lmin,…,L(1)-1}]の各サンプルは式(D9)により求まる。 Next, for the range R1, a decoding gain correction amount delta 1 corresponding to the decoding gain correction amount delta 12 and range R1 corresponds to the range R12 is decoded gain correction amount for the range R1, and a decoding global gain g ^ The correction gain g ^ + Δ 12 + Δ 1 obtained by the addition and the corrected decoded normalized signal sequence X ^ ' Q (ω) [ω∈ {L min , ..., L (1) -1] A signal sequence obtained by multiplying the value by is obtained as an output signal sequence X ^ (ω) [ω∈ {L min ,..., L (1) −1}]. That is, each sample of the output signal sequence X ^ (ω) [ω∈ {L min ,..., L (1) −1}] in the range R1 is obtained by the equation (D9).

また、範囲R2については、範囲R2についての復号ゲイン補正量である範囲R12に対応する復号ゲイン補正量Δ12及び範囲R2に対応する復号ゲイン補正量Δ2と、復号グローバルゲインg^とを加算して得られる補正ゲインg^+Δ12+Δ2と、修正後復号正規化済み信号系列X^’Q(ω) [ω∈{L(1),…,L(2)-1]の各サンプルの値と、を乗算して得られる信号系列を出力信号系列X^(ω) [ω∈{L(1) ,…,L(2)-1]として得る。すなわち、範囲R2の出力信号系列X^(ω) [ω∈{L(1),…,L(2)-1]の各サンプルは式(D10)により求まる。 As for the range R2, added to the decoded gain correction amount delta 2 which corresponds to the decoded gain correction amount delta 12 and range R2 corresponding to the range R12 is decoded gain correction amount for the range R2, and a decoding global gain g ^ And the corrected gain g ^ + Δ 12 + Δ 2 and the corrected decoded normalized signal sequence X ^ ' Q (ω) [ω∈ {L (1) , ..., L (2) -1] Is obtained as an output signal sequence X ^ (ω) [ω∈ {L (1) ,..., L (2) −1]. That is, each sample of the output signal sequence X ^ (ω) [ω∈ {L (1) ,..., L (2) −1] in the range R2 is obtained by the equation (D10).

また、範囲R3については、範囲R3についての復号ゲイン補正量である範囲R34に対応する復号ゲイン補正量Δ34及び範囲R3に対応する復号ゲイン補正量Δ3と、復号グローバルゲインg^とを加算して得られる補正ゲインg^+Δ34+Δ3と、修正後復号正規化済み信号系列X^’Q(ω) [ω∈{L(2),…,L(3)-1]の各サンプルの値と、を乗算して得られる信号系列を出力信号系列X^(ω) [ω∈{L(2),…,L(3)-1]として得る。すなわち、範囲R3の出力信号系列X^(ω) [ω∈{L(2),…,L(3)-1]の各サンプルは式(D11)により求まる。 As for the range R3, added to the decoded gain correction amount delta 3 corresponding to the decoding gain correction amount delta 34 and range R3 corresponding to a range R34 is decoded gain correction amount for the range R3, and a decoding global gain g ^ Correction gain g ^ + Δ 34 + Δ 3 and the corrected decoded normalized signal sequence X ^ ' Q (ω) [ω∈ {L (2) , ..., L (3) -1] Is obtained as an output signal sequence X ^ (ω) [ω∈ {L (2) ,..., L (3) −1]. That is, each sample of the output signal sequence X ^ (ω) [ω∈ {L (2) ,..., L (3) −1] in the range R3 is obtained by the equation (D11).

また、範囲R4については、範囲R4についての復号ゲイン補正量である範囲R34に対応する復号ゲイン補正量Δ34及び範囲R4に対応する復号ゲイン補正量Δ4と、復号グローバルゲインg^とを加算して得られる補正ゲインg^+Δ34+Δ4と、修正後復号正規化済み信号系列X^’Q(ω) [ω∈{L(3),…,Lmax]の各サンプルの値と、を乗算して得られる信号系列を出力信号系列X^(ω) [ω∈{L(3) ,…,Lmax]として得る。すなわち、範囲R4の出力信号系列X^(ω) [ω∈{L(3),…,Lmax]の各サンプルは式(D12)により求まる。 Also, the range R4, added to the decoded gain correction amount delta 4 corresponding to the decoding gain correction amount delta 34 and scope R4 corresponding to a range R34 is decoded gain correction amount for range R4, and a decoding global gain g ^ And the corrected gain g ^ + Δ 34 + Δ 4 obtained as described above and the value of each sample of the corrected decoded normalized signal sequence X ^ ′ Q (ω) [ω∈ {L (3) ,..., L max ], Is obtained as an output signal sequence X ^ (ω) [ω∈ {L (3) ,..., L max ]. That is, each sample of the output signal sequence X ^ (ω) [ω∈ {L (3) ,..., L max ] in the range R4 is obtained by the equation (D12).

(b) 入力されたゲイン補正量符号idxのビット数UgがMc+Maである場合
入力されたゲイン補正量符号idxのビット数UgがMc+Maである場合は、ゲイン補正量符号idxには第3VQ符号idx1234と第1VQ符号idx12が含まれる。従って、復号信号系列生成部250は、第3VQ符号idx1234に対して第3VQ復号を行い、範囲R12に対応する復号ゲイン補正量Δ12と範囲R34に対応する復号ゲイン補正量Δ34を得て、さらに、第1VQ符号idx12に対して第1VQ復号を行い、範囲R1に対応する復号ゲイン補正量Δ1と範囲R2に対応する復号ゲイン補正量Δ2を得る。復号ゲイン補正量を得る方法は具体例1と同様である。
(b) When the number of bits U g of the input gain correction amount code idx is Mc + Ma When the number of bits U g of the input gain correction amount code idx is Mc + Ma, the gain correction amount code idx Includes a third VQ code idx 1234 and a first VQ code idx 12 . Therefore, the decoded signal sequence generation unit 250 performs third VQ decoding on the third VQ code idx 1234 to obtain a decoding gain correction amount Δ 12 corresponding to the range R12 and a decoding gain correction amount Δ 34 corresponding to the range R34. Further, the first VQ decoding is performed on the first VQ code idx 12 to obtain a decoding gain correction amount Δ 1 corresponding to the range R1 and a decoding gain correction amount Δ 2 corresponding to the range R2. The method for obtaining the decoding gain correction amount is the same as in the first specific example.

また、復号ゲイン補正量Δ34のそれぞれは、0とする。 Each of the decoding gain correction amounts Δ 3 and Δ 4 is set to 0.

復号ゲイン補正量Δ12341,Δ2,Δ34のそれぞれを得た後の、範囲R1から範囲R4の各範囲の出力信号系列を得る処理は、上記の(a)の場合と同じである。 After obtaining the decoding gain correction amounts Δ 12 , Δ 34 , Δ 1, Δ 2, Δ 3 , Δ 4 , the processing for obtaining the output signal series in each range from the range R 1 to the range R 4 is performed as described in (a ).

このようにビットが割り当てられていないゲイン補正量を0として復号グローバルゲインg^の補正を行うことは、対応するゲイン補正量がない範囲については補正を行わないことに対応するゲイン補正量を用いることと同義である。例えば、上記の「(a) 入力されたゲイン補正量符号idxのビット数UgがMcである場合」では、範囲R1,R2,R3,R4が対応するゲイン補正量がない範囲である。 In this way, performing the correction of the decoded global gain g ^ with the gain correction amount to which no bit is assigned as 0 uses the gain correction amount corresponding to not performing correction for a range where there is no corresponding gain correction amount. It is synonymous with that. For example, in “(a) When the number of bits U g of the input gain correction amount code idx is Mc”, the ranges R1, R2, R3, and R4 are ranges in which there is no corresponding gain correction amount.

(c) 入力されたゲイン補正量符号idxのビット数UgがMc+Ma+Mbである場合
入力されたゲイン補正量符号idxのビット数UgがMc+Ma+Mbである場合は、ゲイン補正量符号idxには第3VQ符号idx1234と第1VQ符号idx12と第2VQ符号idx34が含まれる。従って、復号信号系列生成部250は、第3VQ符号idx1234に対して第3VQ復号を行い、範囲R12に対応する復号ゲイン補正量Δ12と範囲R34に対応する復号ゲイン補正量Δ34を得て、さらに、第1VQ符号idx12に対して第1VQ復号を行い、範囲R1に対応する復号ゲイン補正量Δ1と範囲R2に対応する復号ゲイン補正量Δ2を得て、さらに、第2VQ符号idx34に対して第2VQ復号を行い、範囲R3に対応する復号ゲイン補正量Δ3と範囲R4に対応する復号ゲイン補正量Δ4を得る。復号ゲイン補正量を得る方法は具体例1と同様である。
(c) When the number of bits U g of the input gain correction amount code idx is Mc + Ma + Mb When the number of bits U g of the input gain correction amount code idx is Mc + Ma + Mb, the gain The correction amount code idx includes a third VQ code idx 1234 , a first VQ code idx 12, and a second VQ code idx 34 . Therefore, the decoded signal sequence generation unit 250 performs third VQ decoding on the third VQ code idx 1234 to obtain a decoding gain correction amount Δ 12 corresponding to the range R12 and a decoding gain correction amount Δ 34 corresponding to the range R34. Further, the first VQ decoding is performed on the first VQ code idx 12 to obtain the decoding gain correction amount Δ 1 corresponding to the range R1 and the decoding gain correction amount Δ 2 corresponding to the range R2, and further, the second VQ code idx It performs the 2VQ decoding to 34 to obtain decoded gain correction amount delta 4 corresponding to the decoding gain correction amount delta 3 and scope R4 corresponding to the range R3. The method for obtaining the decoding gain correction amount is the same as in the first specific example.

復号ゲイン補正量Δ12341234のそれぞれを得た後の、範囲R1から範囲R4の各範囲の出力信号系列を得る処理は、上記の(a)の場合と同じである。 After obtaining the decoding gain correction amounts Δ 12 , Δ 34 , Δ 1 , Δ 2 , Δ 3 , Δ 4 , the process of obtaining the output signal series in each range from the range R 1 to the range R 4 is performed as described in (a ).

[[復号信号系列生成処理の具体例3:ゲイン補正量符号のビット数が半端な場合を含む例]]
具体例3は、入力されたゲイン補正量符号idxのビット数UgがMcとMc+MaとMc+Ma+Mb以外も含む場合、すなわち入力されたゲイン補正量符号idxのビット数Ugが1以上の値の何れかである場合の例である。
[[Specific Example 3 of Decoded Signal Sequence Generation Processing: An Example Including the Case where the Number of Bits of the Gain Correction Amount Code is Halfway]]
In the third specific example, the number of bits U g of the input gain correction amount code idx includes other than Mc, Mc + Ma, and Mc + Ma + Mb, that is, the number of bits U g of the input gain correction amount code idx is This is an example when the value is one of 1 or more.

(a) 入力されたゲイン補正量符号idxのビット数Ugが0より大きくMc以下である場合 (0<U≦Mc)
入力されたゲイン補正量符号idxのビット数Ugが0より大きくMc以下である場合は、ゲイン補正量符号idxには第3VQ符号idx1234のみが含まれる。従って、復号信号系列生成部250は、まず、第3VQ符号idx1234に対して第3VQ復号を行い、範囲R12に対応する復号ゲイン補正量Δ12と範囲R34に対応する復号ゲイン補正量Δ34を得る。この場合は、1から2 Ugの全てのmcを区別できるUgビットの部分が、ゲイン補正量符号idxとされている。例えば、Ug=1、Mc=2の場合であれば、idx1234(1)の{0,0}の2ビットのうち1ビット目である{0}、または、idx1234(2)の{1,0}の2ビットのうち1ビット目である{1}が第3VQ符号idx1234とされている。復号ゲイン補正量を得る方法は具体例1と同様である。
(a) When the number of bits U g of the input gain correction amount code idx is greater than 0 and less than or equal to Mc (0 <U ≦ Mc)
When the number of bits U g of the input gain correction amount code idx is greater than 0 and equal to or less than Mc, the gain correction amount code idx includes only the third VQ code idx 1234 . Accordingly, the decoded signal sequence generation unit 250 first performs the third VQ decoding on the third VQ code idx 1234 , and obtains the decoding gain correction amount Δ 12 corresponding to the range R12 and the decoding gain correction amount Δ 34 corresponding to the range R34. obtain. In this case, the portion of the U g bit that can distinguish all mc from 1 to 2 Ug is set as the gain correction amount code idx. For example, in the case of U g = 1 and Mc = 2, {0} which is the first bit of the {0,0} bits of idx 1234 (1) or {x of idx 1234 (2) {1}, which is the first bit of the two bits of 1,0}, is the third VQ code idx 1234 . The method for obtaining the decoding gain correction amount is the same as in the first specific example.

また、復号ゲイン補正量Δ1234のそれぞれは、0とする。 Each of the decoding gain correction amounts Δ 1 , Δ 2 , Δ 3 , Δ 4 is set to 0.

次に、範囲R1については、範囲R1についての復号ゲイン補正量である範囲R12に対応する復号ゲイン補正量Δ12及び範囲R1の復号ゲイン補正量Δ1と、復号グローバルゲインg^とを加算して得られる補正ゲインg^+Δ12+Δ1と、修正後復号正規化済み信号系列X^’Q(ω) [ω∈{Lmin,…,L(1)-1]の各サンプルの値と、を乗算して得られる信号系列を出力信号系列X^(ω) [ω∈{Lmin,…,L(1)-1}]として得る。すなわち、範囲R1の出力信号系列X^(ω) [ω∈{Lmin,…,L(1)-1}]の各サンプルは式(D9)により求まる。 Next, for the range R1, a decoding gain correction amount delta 1 of decoding gain correction amount delta 12 and range R1 corresponds to the range R12 is decoded gain correction amount for the range R1, and adds the decoded global gain g ^ And the corrected gain g ^ + Δ 12 + Δ 1 and the value of each sample of the corrected decoded normalized signal sequence X ^ ' Q (ω) [ω∈ {L min , ..., L (1) -1] , Are obtained as an output signal sequence X ^ (ω) [ω∈ {L min ,..., L (1) −1}]. That is, each sample of the output signal sequence X ^ (ω) [ω∈ {L min ,..., L (1) −1}] in the range R1 is obtained by the equation (D9).

また、範囲R2については、範囲R2についての復号ゲイン補正量である範囲R12に対応する復号ゲイン補正量Δ12及び範囲R2に対応する復号ゲイン補正量Δ2と、復号グローバルゲインg^とを加算して得られる補正ゲインg^+Δ12+Δ2と、修正後復号正規化済み信号系列X^’Q(ω) [ω∈{L(1),…,L(2)-1]の各サンプルの値と、を乗算して得られる信号系列を出力信号系列X^(ω) [ω∈{L(1) ,…,L(2)-1]として得る。すなわち、範囲R2の出力信号系列X^(ω) [ω∈{L(1),…,L(2)-1]の各サンプルは式(D10)により求まる。 As for the range R2, added to the decoded gain correction amount delta 2 which corresponds to the decoded gain correction amount delta 12 and range R2 corresponding to the range R12 is decoded gain correction amount for the range R2, and a decoding global gain g ^ And the corrected gain g ^ + Δ 12 + Δ 2 and the corrected decoded normalized signal sequence X ^ ' Q (ω) [ω∈ {L (1) , ..., L (2) -1] Is obtained as an output signal sequence X ^ (ω) [ω∈ {L (1) ,..., L (2) −1]. That is, each sample of the output signal sequence X ^ (ω) [ω∈ {L (1) ,..., L (2) −1] in the range R2 is obtained by the equation (D10).

また、範囲R3については、範囲R3についての復号ゲイン補正量である範囲R34に対応する復号ゲイン補正量Δ34及び範囲R3に対応する復号ゲイン補正量Δ3と、復号グローバルゲインg^とを加算して得られる補正ゲインg^+Δ34+Δ3と、修正後復号正規化済み信号系列X^’Q(ω) [ω∈{L(2),…,L(3)-1]の各サンプルの値と、を乗算して得られる信号系列を出力信号系列X^(ω) [ω∈{L(2),…,L(3)-1]として得る。すなわち、第3の範囲の出力信号系列X^(ω) [ω∈{L(2),…,L(3)-1]の各サンプルは式(D11)により求まる。 As for the range R3, added to the decoded gain correction amount delta 3 corresponding to the decoding gain correction amount delta 34 and range R3 corresponding to a range R34 is decoded gain correction amount for the range R3, and a decoding global gain g ^ Correction gain g ^ + Δ 34 + Δ 3 and the corrected decoded normalized signal sequence X ^ ' Q (ω) [ω∈ {L (2) , ..., L (3) -1] Is obtained as an output signal sequence X ^ (ω) [ω∈ {L (2) ,..., L (3) −1]. That is, each sample of the output signal sequence X ^ (ω) [ω∈ {L (2) ,..., L (3) −1] in the third range is obtained by the equation (D11).

また、範囲R4については、範囲R4についての復号ゲイン補正量である範囲R34に対応する復号ゲイン補正量Δ34及び範囲R4に対応する復号ゲイン補正量Δ4と、復号グローバルゲインg^とを加算して得られる補正ゲインg^+Δ34+Δ4と、修正後復号正規化済み信号系列X^’Q(ω) [ω∈{L(3),…,Lmax]の各サンプルの値と、を乗算して得られる信号系列を出力信号系列X^(ω) [ω∈{L(3) ,…,Lmax]として得る。すなわち、第4の範囲の出力信号系列X^(ω) [ω∈{L(3),…,Lmax]の各サンプルは式(D11)により求まる。 Also, the range R4, added to the decoded gain correction amount delta 4 corresponding to the decoding gain correction amount delta 34 and scope R4 corresponding to a range R34 is decoded gain correction amount for range R4, and a decoding global gain g ^ And the corrected gain g ^ + Δ 34 + Δ 4 obtained as described above, and the value of each sample of the corrected decoded normalized signal sequence X ^ ′ Q (ω) [ω∈ {L (3) ,..., L max ], Is obtained as an output signal sequence X ^ (ω) [ω∈ {L (3) ,..., L max ]. That is, each sample of the output signal sequence X ^ (ω) [ω∈ {L (3) ,..., L max ] in the fourth range is obtained by Expression (D11).

(b) 入力されたゲイン補正量符号idxのビット数UgがMcより大きくMc+Ma以下である場合 (Mc<Ug≦Mc+Ma)
入力されたゲイン補正量符号idxのビット数UgがMcより大きくMc+Ma以下である場合は、ゲイン補正量符号idxには第3VQ符号idx1234と第1VQ符号idx12が含まれる。従って、復号信号系列生成部250は、第3VQ符号idx1234に対して第3VQ復号を行い、範囲R12に対応する復号ゲイン補正量Δ12と範囲R34に対応する復号ゲイン補正量Δ34を得て、さらに、第1VQ符号idx12に対して第1VQ復号を行い、範囲R1に対応する復号ゲイン補正量Δ1と範囲R2に対応する復号ゲイン補正量Δ2を得る。この場合は、2Ug-Mc+1から2Maの範囲にある全てのmaを区別できるUg-Mcビットの部分が第1VQ符号idx12とされている。復号ゲイン補正量を得る方法は具体例1と同様である。
(b) When the number of bits U g of the input gain correction amount code idx is greater than Mc and less than or equal to Mc + Ma (Mc <U g ≦ Mc + Ma)
When the number of bits U g of the input gain correction amount code idx is greater than Mc and equal to or less than Mc + Ma, the gain correction amount code idx includes the third VQ code idx 1234 and the first VQ code idx 12 . Therefore, the decoded signal sequence generation unit 250 performs third VQ decoding on the third VQ code idx 1234 to obtain a decoding gain correction amount Δ 12 corresponding to the range R12 and a decoding gain correction amount Δ 34 corresponding to the range R34. Further, the first VQ decoding is performed on the first VQ code idx 12 to obtain a decoding gain correction amount Δ 1 corresponding to the range R1 and a decoding gain correction amount Δ 2 corresponding to the range R2. In this case, the portion of U g -Mc bits that can distinguish all ma in the range of 2 Ug-Mc +1 to 2 Ma is the first VQ code idx 12 . The method for obtaining the decoding gain correction amount is the same as in the first specific example.

また、復号ゲイン補正量Δ34のそれぞれは、0とする。 Each of the decoding gain correction amounts Δ 3 and Δ 4 is set to 0.

復号ゲイン補正量Δ12341234のそれぞれを得た後の、範囲R1から範囲R4の各範囲の出力信号系列を得る処理は、上記の(a)の場合と同じである。 After obtaining the decoding gain correction amounts Δ 12 , Δ 34 , Δ 1 , Δ 2 , Δ 3 , Δ 4 , the process of obtaining the output signal series in each range from the range R 1 to the range R 4 is performed as described in (a ).

(c) 入力されたゲイン補正量符号idxのビット数UgがMc+Maより大きい場合 (Mc+Ma<Ug
入力されたゲイン補正量符号idxのビット数UgがMc+Maより大きい場合は、ゲイン補正量符号idxには第3VQ符号idx1234と第1VQ符号idx12と第2VQ符号idx34が含まれる。従って、復号信号系列生成部250は、第3VQ符号idx1234に対して第3VQ復号を行い、範囲R12に対応する復号ゲイン補正量Δ12と範囲R34に対応する復号ゲイン補正量Δ34を得て、さらに、第1VQ符号idx12に対して第1VQ復号を行い、範囲R1に対応する復号ゲイン補正量Δ1と範囲R2に対応する復号ゲイン補正量Δ2を得て、さらに、第2VQ符号idx34に対して第2VQ復号を行い、範囲R3に対応する復号ゲイン補正量Δ3と範囲R4に対応する復号ゲイン補正量Δ4を得る。この場合は、2Ug-Mc-Ma+1から2Mbの範囲にある全てのmbを区別できるUg-Mc-Maビットの部分が第2VQ符号idx34とされている。
(c) When the number of bits U g of the input gain correction amount code idx is greater than Mc + Ma (Mc + Ma <U g )
When the number of bits U g of the input gain correction amount code idx is larger than Mc + Ma, the gain correction amount code idx includes the third VQ code idx 1234 , the first VQ code idx 12, and the second VQ code idx 34 . Therefore, the decoded signal sequence generation unit 250 performs third VQ decoding on the third VQ code idx 1234 to obtain a decoding gain correction amount Δ 12 corresponding to the range R12 and a decoding gain correction amount Δ 34 corresponding to the range R34. Further, the first VQ decoding is performed on the first VQ code idx 12 to obtain the decoding gain correction amount Δ 1 corresponding to the range R1 and the decoding gain correction amount Δ 2 corresponding to the range R2, and further, the second VQ code idx It performs the 2VQ decoding to 34 to obtain decoded gain correction amount delta 4 corresponding to the decoding gain correction amount delta 3 and scope R4 corresponding to the range R3. In this case, the portion of U g -Mc-Ma bits that can distinguish all mbs in the range of 2 Ug-Mc-Ma +1 to 2 Mb is set as the second VQ code idx 34 .

復号ゲイン補正量Δ12341234のそれぞれを得た後の、範囲R1から範囲R4の各範囲の出力信号系列を得る処理は、上記の(a)の場合と同じである。 After obtaining the decoding gain correction amounts Δ 12 , Δ 34 , Δ 1 , Δ 2 , Δ 3 , Δ 4 , the process of obtaining the output signal series in each range from the range R 1 to the range R 4 is performed as described in (a ).

なお、各ベクトル量子化で用いるゲイン補正量の候補をひとつのゲイン補正量コードブックに格納しておき、1回のベクトル量子化の復号でゲイン補正量を生成するようにしてもよい。   Note that the gain correction amount candidates used in each vector quantization may be stored in one gain correction amount codebook, and the gain correction amount may be generated by one-time vector quantization decoding.

区分された範囲の個数は、2Dであるとする。2D個の区分された範囲を2k個ずつ纏めた範囲の個数は、2D/2=2D-kである。したがって、区分された範囲及び区分された範囲を2k個(kは1からD−1までの各整数)ずつ纏めた範囲の個数は、2D+Σd=1 D-1D-dであり、合計でΣd=1 Dd=2D+Σd=1 D-1D-dである。以下、A=Σd=1 Ddとする。 It is assumed that the number of divided ranges is 2D . 2 D number of segmented 2 k pieces by summarizing the number of ranges range is 2 D / 2 k = 2 Dk . Therefore, the number of the divided ranges and the ranges obtained by collecting the divided ranges by 2 k pieces (k is an integer from 1 to D-1) is 2 D + Σ d = 1 D-1 2 Dd , In total, Σ d = 1 D 2 d = 2 D + Σ d = 1 D−1 2 Dd . Hereinafter, A = Σ d = 1 D 2 d .

この場合、ゲイン補正量候補ベクトルは、A個のゲイン補正量の候補で構成されているとする。2D個の区分された範囲及びこれらの2D個の区分された範囲を2k個(kは1からD−1までの各整数)ずつ纏めた範囲は、それぞれゲイン補正量候補ベクトルを構成するA個のゲイン補正量の候補に対応付けされているものとする。 In this case, it is assumed that the gain correction amount candidate vector includes A gain correction amount candidates. 2 D number of segmented range and by collectively range of 2 D number of segmented range of 2 k pieces (each integer from k 1 to D-1), respectively constituting the gain correction amount candidate vectors Assume that these are associated with A gain correction amount candidates.

上記のD=2,k=1であり、[[復号信号系列生成処理の具体例2:3つの場合で同じ加算式を用いる例]]の「(c) 入力されたゲイン補正量符号idxのビット数UgがMc+Ma+Mbである場合」の例では、A=Σd=1 2d=2+4=6となり、インデックスidx(m)のゲイン補正量候補ベクトル(Δ12(m),Δ34(m),Δ1(m),Δ2(m),Δ3(m),Δ4(m))は、6個のゲイン補正量の候補Δ12(m),Δ34(m),Δ1(m),Δ2(m),Δ3(m),Δ4(m)で構成されている。ゲイン補正量の候補Δ12(m),Δ34(m),Δ1(m),Δ2(m),Δ3(m),Δ4(m)は、それぞれ範囲R12,R34,R1,R2,R3,R4に対応している。 D = 2 and k = 1, and [[c) Example of decoded signal sequence generation process: Example using the same addition formula in three cases] “(c) Input gain correction amount code idx” In the example of “when the number of bits U g is Mc + Ma + Mb”, A = Σ d = 1 2 2 d = 2 + 4 = 6, and the gain correction amount candidate vector (Δ 12 (m) of index idx (m) , Δ 34 (m), Δ 1 (m), Δ 2 (m), Δ 3 (m), Δ 4 (m)) are six gain correction amount candidates Δ 12 (m), Δ 34 ( m), Δ 1 (m), Δ 2 (m), Δ 3 (m), Δ 4 (m). Candidate gain correction amounts Δ 12 (m), Δ 34 (m), Δ 1 (m), Δ 2 (m), Δ 3 (m), Δ 4 (m) are ranges R12, R34, R1, respectively. It corresponds to R2, R3, R4.

ゲイン補正量コードブックには、複数のゲイン補正量候補ベクトルが格納されている。上記の例では、例えば2Me個のゲイン補正量候補ベクトル(Δ12(m),Δ34(m),Δ1(m),Δ2(m),Δ3(m),Δ4(m))[m=1,…2Me]が、ゲイン補正量コードブックに格納されている。Meは、2以上の整数である。 The gain correction amount code book stores a plurality of gain correction amount candidate vectors. In the above example, for example, 2 Me gain correction amount candidate vectors (Δ 12 (m), Δ 34 (m), Δ 1 (m), Δ 2 (m), Δ 3 (m), Δ 4 (m )) [m = 1,... 2 Me ] is stored in the gain correction amount code book. Me is an integer of 2 or more.

この場合、復号信号系列生成部250は、ゲイン補正量コードブックに格納された複数のゲイン補正量候補ベクトルの中から、入力されたゲイン補正量符号で特定されるゲイン補正量候補ベクトルを選択する。この選択されたゲイン補正量候補ベクトルを構成するゲイン補正量を用いて、復号グローバルゲインの補正を行う。
[復号信号系列生成部250の変形例]
復号信号系列生成部250は、式(D7),式(D8)にそれぞれ代えて式(D17),式(D18)に基づいて、出力信号系列X^(ω)を求めてもよい。
X^(ω)=(g^+s12Δ12) X^’Q(ω) (D17)
X^(ω)=(g^+s34Δ34) X^’Q(ω) (D18)
s12及びs34は、例えば以下の式のように定義される。
In this case, the decoded signal sequence generation unit 250 selects a gain correction amount candidate vector specified by the input gain correction amount code from a plurality of gain correction amount candidate vectors stored in the gain correction amount codebook. . The decoding global gain is corrected using the gain correction amount constituting the selected gain correction amount candidate vector.
[Modification of Decoded Signal Sequence Generation Unit 250]
Decoded signal sequence generation section 250 may obtain output signal sequence X ^ (ω) based on equations (D17) and (D18) instead of equations (D7) and (D8), respectively.
X ^ (ω) = (g ^ + s 12 Δ 12 ) X ^ ' Q (ω) (D17)
X ^ (ω) = (g ^ + s 34 Δ 34 ) X ^ ' Q (ω) (D18)
s 12 and s 34, for example, is defined as the following equation.

Figure 0005840101
Figure 0005840101

また、復号信号系列生成部250は、式(D9),式(D10),式(D11),式(D12)にそれぞれ代えて式(D19),式(D20),式(D21),式(D22)に基づいて、出力信号系列X^(ω)を求めてもよい。
X^(ω)=(g^+s12Δ12+s1Δ1) X^’Q(ω) (D19)
X^(ω)=(g^+s12Δ12+s2Δ2) X^’Q(ω) (D20)
X^(ω)=(g^+s34Δ34+s3Δ3) X^’Q(ω) (D21)
X^(ω)=(g^+s34Δ34+s4Δ4) X^’Q(ω) (D22)
s1及びs2は、例えば以下の式のように定義される。
The decoded signal sequence generation unit 250 replaces the equations (D9), (D10), (D11), and (D12) with equations (D19), (D20), (D21), and ( Based on D22), an output signal sequence X ^ (ω) may be obtained.
X ^ (ω) = (g ^ + s 12 Δ 12 + s 1 Δ 1 ) X ^ ' Q (ω) (D19)
X ^ (ω) = (g ^ + s 12 Δ 12 + s 2 Δ 2 ) X ^ ' Q (ω) (D20)
X ^ (ω) = (g ^ + s 34 Δ 34 + s 3 Δ 3 ) X ^ ' Q (ω) (D21)
X ^ (ω) = (g ^ + s 34 Δ 34 + s 4 Δ 4 ) X ^ ' Q (ω) (D22)
For example, s 1 and s 2 are defined as in the following equations.

Figure 0005840101
Figure 0005840101

また、s3及びs4は、例えば以下の式のように定義される。 Further, s 3 and s 4 are defined as in the following equations, for example.

Figure 0005840101
Figure 0005840101

このように、復号グローバルゲインg^を、各区分された範囲についての複数個のゲイン補正量のそれぞれと、修正後復号正規化済み信号系列X^’Q(ω)の全てのサンプル値の二乗和をそのそれぞれのゲイン補正量に対応する範囲内の全てのサンプルの値の二乗和で除算した値とを乗算した値で各区分された範囲ごとに補正してもよい。 Thus, the decoded global gain g ^ is the square of each of a plurality of gain correction amounts for each divided range and all sample values of the corrected decoded normalized signal sequence X ^ ' Q (ω). The sum may be corrected for each divided range by a value obtained by multiplying a value obtained by dividing the sum by the square sum of the values of all the samples within the range corresponding to the respective gain correction amounts.

また、復号信号系列生成部250は、式(D9),式(D10),式(D11),式(D12)にそれぞれ代えて式(D23),式(D24),式(D25),式(D26)に基づいて、出力信号系列X^(ω)を求めてもよい。
X^(ω)=(g^+s112+Δ1)) X^’Q(ω) (D23)
X^(ω)=(g^+s212+Δ2)) X^’Q(ω) (D24)
X^(ω)=(g^+s334+Δ3)) X^’Q(ω) (D25)
X^(ω)=(g^+s434+Δ4)) X^’Q(ω) (D26)
The decoded signal sequence generation unit 250 replaces the equations (D9), (D10), (D11), and (D12) with equations (D23), (D24), (D25), and ( The output signal sequence X ^ (ω) may be obtained based on D26).
X ^ (ω) = (g ^ + s 112 + Δ 1 )) X ^ ' Q (ω) (D23)
X ^ (ω) = (g ^ + s 212 + Δ 2 )) X ^ ' Q (ω) (D24)
X ^ (ω) = (g ^ + s 334 + Δ 3 )) X ^ ' Q (ω) (D25)
X ^ (ω) = (g ^ + s 434 + Δ 4 )) X ^ ' Q (ω) (D26)

このように、復号グローバルゲインg^を、各区分された範囲についての複数個のゲイン補正量を加算した値と、修正後復号正規化済み信号系列X^’Q(ω)の全てのサンプル値の二乗和を各区分された範囲内の全てのサンプルの値の二乗和で除算した値とを乗算した値で各区分された範囲ごとに補正してもよい。 In this way, the decoded global gain g ^ is a value obtained by adding a plurality of gain correction amounts for each divided range, and all the sample values of the corrected decoded normalized signal sequence X ^ ' Q (ω). May be corrected for each divided range by a value obtained by multiplying a value obtained by dividing the sum of squares by the sum of squares of the values of all the samples in each divided range.

なお、s12,s34,s1,s2,s3,s4を、それぞれ以下の式のように定義してもよい。 Note that s 12 , s 34 , s 1 , s 2 , s 3 , and s 4 may be defined as in the following equations, respectively.

Figure 0005840101
Figure 0005840101

c12は、範囲R12のサンプルのエネルギーが所定値よりも大きいサンプルの個数である。c34は、範囲R34のサンプルのエネルギーが所定値よりも大きいサンプルの個数である。c1234は、範囲R1234のサンプルのエネルギーが所定値よりも大きいサンプルの個数である。c1は、範囲R1のサンプルのエネルギーが所定値よりも大きいサンプルの個数である。c2は、範囲R2のサンプルのエネルギーが所定値よりも大きいサンプルの個数である。c3は、範囲R3のサンプルのエネルギーが所定値よりも大きいサンプルの個数である。c4は、範囲R4のサンプルのエネルギーが所定値よりも大きいサンプルの個数である。 c 12, the energy of the samples in the range R12 is the number of sample that is larger than a predetermined value. c 34, the energy of the samples in the range R34 is the number of sample that is larger than a predetermined value. c 1234 is the number of samples in which the energy of the samples in the range R1234 is larger than a predetermined value. c 1 is the number of samples in which the energy of the samples in the range R1 is larger than a predetermined value. c 2 is the energy of the samples in the range R2 is the number of sample that is larger than a predetermined value. c 3 is the number of samples in which the energy of the sample in the range R3 is larger than a predetermined value. c 4 is the energy of the samples in the range R4 is the number of sample that is larger than a predetermined value.

この場合、復号グローバルゲインg^は、各区分された範囲についての複数個のゲイン補正量のそれぞれと、修正後復号正規化済み信号系列X^’Q(ω)のサンプルのエネルギーが所定値よりも大きいサンプルの個数をそのそれぞれのゲイン補正量に対応する範囲内のサンプルのエネルギーが上記所定値よりも大きいサンプルの個数で除算した値とを乗算した値で補正されることになる。また、復号グローバルゲインg^は、各区分された範囲についての複数個のゲイン補正量を加算した値と、修正後復号正規化済み信号系列X^'Q(ω)のサンプルのエネルギーが所定値よりも大きいサンプルの個数を各区分された範囲内のサンプルのエネルギーが上記所定値よりも大きいサンプルの個数で除算した値とを乗算した値で各区分された範囲ごとに補正されることになる。 In this case, the decoded global gain g ^ has a plurality of gain correction amounts for each divided range and the energy of the sample of the corrected decoded normalized signal sequence X ^ ' Q (ω) from a predetermined value. Is corrected by a value obtained by multiplying the number of samples obtained by dividing the energy of the samples within the range corresponding to the respective gain correction amounts by the number of samples larger than the predetermined value. The decoded global gain g ^ includes a value obtained by adding a plurality of gain correction amounts for each divided range, and a sampled energy of the corrected decoded normalized signal sequence X ^ ' Q (ω) having a predetermined value. The energy of the samples in each divided range is multiplied by the value obtained by dividing the number of samples larger than the predetermined number by the number of samples larger than the predetermined value, and is corrected for each divided range. .

<時間領域変換部270>
必要に応じて備える時間領域変換部270には、出力信号系列X^(ω)が入力される。時間領域変換部270は、出力信号系列X^(ω)に対して周波数−時間変換を適用して、フレーム単位の時間領域信号系列zF(n)を出力する。周波数−時間変換方法は、周波数領域変換部101で用いられた時間−周波数変換方法に対応する逆変換である。上述の例であれば、ここでの周波数−時間変換方法は、IMDCT(Inverse Modified Discrete Cosine Transform)またはIDCT(Inverse Discrete Cosine Transform)である。
<Time domain conversion unit 270>
The output signal sequence X ^ (ω) is input to the time domain conversion unit 270 provided as necessary. The time domain transform unit 270 applies a frequency-time transform to the output signal sequence X ^ (ω) and outputs a time domain signal sequence z F (n) in units of frames. The frequency-time conversion method is an inverse conversion corresponding to the time-frequency conversion method used in the frequency domain conversion unit 101. In the above example, the frequency-time conversion method here is IMDCT (Inverse Modified Cosine Transform) or IDCT (Inverse Discrete Cosine Transform).

符号化装置1の制御部170の処理において、UXQ=0と決定された場合には、誤差符号化部180及び加算部190の処理は行われない。この場合、修正後量子化正規化済み信号系列X^’Q(ω) [ω∈{Lmin,…,Lmax}]に代えて、量子化正規化済み信号系列X^Q(ω) [ω∈{Lmin,…,Lmax}]に基づいて区分部150及びゲイン補正量符号化部140の処理が行われる。同様に、復号装置2の制御部205の処理において、UXQ=0と決定された場合には、誤差復号部230及び加算部240の処理は行われない。この場合、修正後復号正規化済み信号系列X^’Q(ω) [ω∈{Lmin,…,Lmax}]に代えて、復号正規化済み信号系列X^Q(ω) [ω∈{Lmin,…,Lmax}]に基づいて区分部260及び復号信号系列生成部250の処理が行われる。 In the processing of the control unit 170 of the encoding device 1, when it is determined that U XQ = 0, the processing of the error encoding unit 180 and the addition unit 190 is not performed. In this case, instead of the modified quantized normalized signal sequence X ^ ′ Q (ω) [ω∈ {L min ,..., L max }], the quantized normalized signal sequence X ^ Q (ω) [ Based on ω∈ {L min ,..., L max }], the processing of the classification unit 150 and the gain correction amount encoding unit 140 is performed. Similarly, in the processing of the control unit 205 of the decoding device 2, when U XQ = 0 is determined, the processing of the error decoding unit 230 and the addition unit 240 is not performed. In this case, instead of the modified decoded normalized signal sequence X ^ ′ Q (ω) [ω∈ {L min ,..., L max }], the decoded normalized signal series X ^ Q (ω) [ω∈ Based on {L min ,..., L max }], processing of the sorting unit 260 and the decoded signal sequence generation unit 250 is performed.

一方、符号化装置1の制御部170の処理において、Ug=0と決定された場合には、加算部190、区分部150及びゲイン補正量符号化部140の処理は行われない。この場合、復号信号系列生成部250は、復号装置2の加算部240で生成された修正後復号正規化済み信号系列X^’Q(ω) [ω∈{Lmin,…,Lmax}]に復号グローバルゲインg^を乗算することにより得た系列を出力信号系列X^(ω) [ω∈{Lmin,…,Lmax}]とする。 On the other hand, when U g = 0 is determined in the processing of the control unit 170 of the encoding device 1, the processing of the adding unit 190, the sorting unit 150, and the gain correction amount encoding unit 140 is not performed. In this case, the decoded signal sequence generation unit 250 uses the corrected decoded normalized signal sequence X ^ ′ Q (ω) [ω∈ {L min ,..., L max }] generated by the addition unit 240 of the decoding device 2. A sequence obtained by multiplying by the decoded global gain g ^ is an output signal sequence X ^ (ω) [ω∈ {L min ,..., L max }].

《第2実施形態》
制御部170は、図27に例示するように、量子化正規化済み信号系列X^Q(ω) [ω∈{Lmin,…,Lmax}]のサンプルの値の大きさが所定の値よりも大きいサンプルの個数ではなく、正規化済み信号系列XQ(ω) [ω∈{0,…,L-1}]のサンプルの値の大きさが所定の値よりも大きいサンプルの個数に応じて、ゲイン補正量符号を生成する処理及び誤差符号を生成するの処理の一方の処理を他方の処理よりも優先的に行わせてもよい。
<< Second Embodiment >>
As illustrated in FIG. 27, the control unit 170 determines that the sample value of the quantized normalized signal sequence X ^ Q (ω) [ω∈ {L min ,..., L max }] has a predetermined value. The number of samples of the normalized signal sequence X Q (ω) [ω∈ {0,..., L-1}] is not the number of samples larger than the number of samples larger than a predetermined value. Accordingly, one of the process of generating the gain correction amount code and the process of generating the error code may be performed with priority over the other process.

この場合、制御部170は、どちらの処理を優先的に行うかについての情報である優先情報を、誤差符号化部180及びゲイン補正量符号化部140だけではなく、合成部160に更に送信する。合成部160は、この優先情報を含めたビットストリームを復号装置2に送信する。合成部160に送信される優先情報は、例えば1ビットの情報である。   In this case, the control unit 170 further transmits priority information, which is information regarding which processing is preferentially performed, not only to the error encoding unit 180 and the gain correction amount encoding unit 140 but also to the synthesis unit 160. . The synthesizing unit 160 transmits the bit stream including the priority information to the decoding device 2. The priority information transmitted to the combining unit 160 is, for example, 1-bit information.

この場合、図28に例示するように、復号装置2には、制御部205が備えられていない。分離部210は、ビットストリームから優先情報を分離して、修正符号分離部220に送信する。修正符号分離部200は、その優先情報に基づいて、修正符号からゲイン補正量符号及び誤差符号を分離する。   In this case, as illustrated in FIG. 28, the decoding device 2 is not provided with the control unit 205. The separation unit 210 separates priority information from the bitstream and transmits the priority information to the correction code separation unit 220. The correction code separation unit 200 separates the gain correction amount code and the error code from the correction code based on the priority information.

他の処理は、第1実施形態と同様であるため、ここでは説明を省略する。   Since other processes are the same as those in the first embodiment, description thereof is omitted here.

《第3実施形態》
第3実施形態は、区分された範囲の数Nに対応する情報を符号化装置1から復号装置2に伝える例である。
<< Third Embodiment >>
The third embodiment is an example in which information corresponding to the number N of divided ranges is transmitted from the encoding device 1 to the decoding device 2.

符号化装置1の区分部150は、何らかの基準や区分部150の外から伝えられた情報により区分後の範囲数Nを決定し、区分後の範囲の数がNとなるように区分処理を行う。符号化装置1の区分部150は、区分後の範囲の数であるNを特定できる補助符号も出力する。復号装置2の区分部260には、補助符号が入力され、区分後の範囲の数が補助符号により特定される数Nとなるように、区分処理を行なう。   The sorting unit 150 of the encoding device 1 determines the number N of ranges after sorting based on some standard or information transmitted from outside the sorting unit 150, and performs sorting processing so that the number of ranges after sorting becomes N. . The division unit 150 of the encoding device 1 also outputs an auxiliary code that can specify N, which is the number of ranges after the division. The sorting unit 260 of the decoding device 2 receives the auxiliary code, and performs the sorting process so that the number of ranges after the division becomes the number N specified by the auxiliary code.

以上の各実施形態の他、本発明である符号化装置、符号化方法、復号装置、復号方法は上述の実施形態に限定されるものではなく、本発明の趣旨を逸脱しない範囲で適宜変更が可能である。また、上記実施形態において説明した処理は、記載の順に従って時系列に実行されるのみならず、処理を実行する装置の処理能力あるいは必要に応じて並列的にあるいは個別に実行されるとしてもよい。   In addition to the above embodiments, the encoding device, the encoding method, the decoding device, and the decoding method according to the present invention are not limited to the above-described embodiments, and can be appropriately changed without departing from the spirit of the present invention. Is possible. In addition, the processing described in the above embodiment may be executed not only in time series according to the order of description but also in parallel or individually as required by the processing capability of the apparatus that executes the processing. .

また、上記符号化装置/上記復号装置における処理機能をコンピュータによって実現する場合、符号化装置/復号装置が有すべき機能の処理内容はプログラムによって記述される。そして、このプログラムをコンピュータで実行することにより、上記符号化装置/上記復号装置における処理機能がコンピュータ上で実現される。   When the processing functions in the encoding device / decoding device are realized by a computer, the processing contents of the functions that the encoding device / decoding device should have are described by a program. By executing this program on a computer, the processing functions of the encoding device / decoding device are realized on the computer.

この処理内容を記述したプログラムは、コンピュータで読み取り可能な記録媒体に記録しておくことができる。コンピュータで読み取り可能な記録媒体としては、例えば、磁気記録装置、光ディスク、光磁気記録媒体、半導体メモリ等どのようなものでもよい。   The program describing the processing contents can be recorded on a computer-readable recording medium. As the computer-readable recording medium, for example, any recording medium such as a magnetic recording device, an optical disk, a magneto-optical recording medium, and a semiconductor memory may be used.

また、この形態では、コンピュータ上で所定のプログラムを実行させることにより、符号化装置、復号装置を構成することとしたが、これらの処理内容の少なくとも一部をハードウェア的に実現することとしてもよい。   In this embodiment, the encoding device and the decoding device are configured by executing a predetermined program on the computer. However, at least a part of the processing contents may be realized by hardware. Good.

Claims (20)

複数の入力信号サンプルにより構成される、フレーム単位の入力信号系列を符号化する符号化方法において、
上記入力信号系列に含まれる各入力信号サンプルが正規化された信号による系列を符号化して得られる正規化信号符号と、上記正規化信号符号に対応する量子化正規化済み信号系列とを得る正規化信号符号化ステップと、
上記入力信号系列に対応するゲインである量子化グローバルゲインと、上記量子化グローバルゲインに対応するグローバルゲイン符号とを得るグローバルゲイン符号化ステップと、
上記量子化正規化済み信号系列のサンプルの値の大きさが所定の値よりも大きいサンプルの個数又は上記入力信号サンプルが正規化された信号による系列のサンプル値の大きさが所定の値よりも大きいサンプルの個数に応じて、上記量子化グローバルゲインをゲイン補正量で補正して得られるゲインを上記量子化正規化済み信号系列の各サンプルの値又は上記量子化正規化済み信号系列を修正して得られる修正後量子化正規化済み信号系列の各サンプルの値に乗算して得られる信号系列と上記入力信号系列との誤差が最小となるゲイン補正量を特定するためのゲイン補正量符号を生成するゲイン補正量符号化ステップ、及び、上記入力信号系列の各サンプル値を上記量子化グローバルゲイン又は上記量子化グローバルゲインを上記ゲイン補正量符号に対応するゲイン補正量で補正して得られるゲインで除算して得られる信号系列と上記量子化正規化済み信号系列との誤差に対応する誤差符号を生成する誤差符号化ステップの一方のステップを他方のステップよりも優先的に行わせる制御ステップと、
を含む符号化方法。
In an encoding method for encoding an input signal sequence in units of frames, which is constituted by a plurality of input signal samples,
A normal signal that obtains a normalized signal code obtained by encoding a signal sequence obtained by normalizing each input signal sample included in the input signal sequence, and a quantized normalized signal sequence corresponding to the normalized signal code. Encoded signal encoding step;
A global gain encoding step for obtaining a quantized global gain corresponding to the input signal sequence and a global gain code corresponding to the quantized global gain;
The number of samples whose sample value of the quantized normalized signal sequence is larger than a predetermined value or the sample value size of a sequence obtained by normalizing the input signal sample is larger than a predetermined value. According to the number of large samples, the gain obtained by correcting the quantized global gain with the gain correction amount is corrected for the value of each sample of the quantized normalized signal sequence or the quantized normalized signal sequence. A gain correction amount code for specifying a gain correction amount that minimizes an error between the signal sequence obtained by multiplying the value of each sample of the corrected quantized normalized signal sequence obtained by the above and the input signal sequence. A gain correction amount encoding step to be generated; and each quantized global gain or each quantized global gain of the input signal sequence is corrected by the gain One step of an error encoding step for generating an error code corresponding to an error between a signal sequence obtained by dividing by a gain obtained by correcting with a gain correction amount corresponding to a code and the quantized normalized signal sequence A control step for performing the operation in preference to the other step;
An encoding method including:
請求項1に記載の符号化方法であって、
上記制御ステップは、上記個数が多いほど、上記ゲイン補正量符号化ステップを上記誤差符号化ステップよりも優先的に行わせる、
符号化方法。
The encoding method according to claim 1, comprising:
The control step causes the gain correction amount encoding step to be preferentially performed over the error encoding step as the number increases.
Encoding method.
請求項1に記載の符号化方法であって、
上記制御ステップは、上記個数が所定の値よりも大きい場合には、上記ゲイン補正量符号化ステップを上記誤差符号化ステップよりも優先的に行わせる、
符号化方法。
The encoding method according to claim 1, comprising:
In the control step, when the number is larger than a predetermined value, the gain correction amount encoding step is preferentially performed over the error encoding step.
Encoding method.
請求項1から3の何れかに記載の符号化方法であって、
上記制御ステップは、優先的に行われるステップで生成される符号に対して余剰ビットのうち所定の数のビットを割り当て、優先的に行われないステップで生成される符号に上記余剰ビットのうち上記割り当てたビット以外のビットを割り当てる、
符号化方法。
The encoding method according to any one of claims 1 to 3,
The control step allocates a predetermined number of surplus bits to the code generated in the step performed preferentially, and the code generated in the step not performed preferentially Assign bits other than the assigned bits,
Encoding method.
フレーム単位の符号を復号して出力信号系列を得る復号方法において、
上記符号に含まれる正規化信号符号を復号して復号正規化済み信号系列を得る正規化信号復号ステップと、
上記符号に含まれるグローバルゲイン符号を復号して復号グローバルゲインを得るグローバルゲイン復号ステップと、
上記復号正規化済み信号系列のサンプルの値の大きさが所定の値よりも大きいサンプルの個数に応じて、上記符号に含まれるゲイン補正量符号に基づいて上記復号グローバルゲインを補正する復号グローバルゲイン補正ステップ及び上記符号に含まれる誤差符号に基づいて上記復号正規化済み信号系列を修正する復号正規化済み信号系列修正ステップの一方のステップを他方のステップよりも優先的に行わせる制御ステップと、
上記補正された復号グローバルゲインと、上記修正された復号正規化済み信号系列の各サンプルとを乗算して得られる信号系列を出力信号系列として得る復号ステップと、
を含む復号方法。
In a decoding method for obtaining an output signal sequence by decoding a code in frame units,
A normalized signal decoding step of decoding a normalized signal code included in the code to obtain a decoded normalized signal sequence;
A global gain decoding step of obtaining a decoded global gain by decoding a global gain code included in the code;
A decoding global gain that corrects the decoding global gain based on a gain correction amount code included in the code according to the number of samples in which the value of the sample of the decoding normalized signal sequence is larger than a predetermined value A control step for preferentially performing one step of the decoded normalized signal sequence correction step for correcting the decoded normalized signal sequence based on the error code included in the correction step and the code over the other step;
A decoding step of obtaining a signal sequence obtained by multiplying the corrected decoded global gain by each sample of the corrected decoded normalized signal sequence as an output signal sequence;
A decoding method including:
請求項5に記載の復号方法であって、
上記制御ステップは、上記個数が多いほど、上記復号グローバルゲイン補正ステップを上記復号正規化済み信号系列修正ステップよりも優先的に行わせる、
を有する復号方法。
The decoding method according to claim 5, wherein
The control step causes the decoding global gain correction step to be performed in preference to the decoding normalized signal sequence correction step as the number increases.
A decryption method.
請求項5に記載の復号方法であって、
上記制御ステップは、上記個数が所定の値よりも大きい場合には、上記復号グローバルゲイン補正ステップを上記復号正規化済み信号系列修正ステップよりも優先的に行わせる、
復号方法。
The decoding method according to claim 5, wherein
When the number is greater than a predetermined value, the control step causes the decoding global gain correction step to be performed in preference to the decoding normalized signal sequence correction step.
Decryption method.
請求項5から7の何れかに記載の復号方法であって、
優先的に行われるステップで用いられる符号に対しては余剰ビットのうち所定の数のビットが割り当てられており、優先的に行われないステップで用いられる符号には上記余剰ビットのうち上記割り当てられたビット以外のビットが割り当てられている、
復号方法。
A decoding method according to any one of claims 5 to 7,
A predetermined number of surplus bits are assigned to the code used in the step performed preferentially, and the code used in the step not preferentially assigned is assigned the above-mentioned surplus bits. Bits other than those assigned are assigned,
Decryption method.
複数の入力信号サンプルにより構成される、フレーム単位の入力信号系列を符号化する符号化装置において、
上記入力信号系列に含まれる各入力信号サンプルが正規化された信号による系列を符号化して得られる正規化信号符号と、上記正規化信号符号に対応する量子化正規化済み信号系列とを得る正規化信号符号化部と、
上記入力信号系列に対応するゲインである量子化グローバルゲインと、上記量子化グローバルゲインに対応するグローバルゲイン符号とを得るグローバルゲイン符号化部と、
上記量子化正規化済み信号系列のサンプルの値の大きさが所定の値よりも大きいサンプルの個数又は上記入力信号サンプルが正規化された信号による系列のサンプル値の大きさが所定の値よりも大きいサンプルの個数に応じて、上記量子化グローバルゲインをゲイン補正量で補正して得られるゲインを上記量子化正規化済み信号系列の各サンプルの値又は上記量子化正規化済み信号系列を修正して得られる修正後量子化正規化済み信号系列の各サンプルの値に乗算して得られる信号系列と上記入力信号系列との誤差が最小となるゲイン補正量を特定するためのゲイン補正量符号を生成する処理、及び、上記入力信号系列の各サンプル値を上記量子化グローバルゲイン又は上記量子化グローバルゲインを上記ゲイン補正量符号に対応するゲイン補正量で補正して得られるゲインで除算して得られる信号系列と上記量子化正規化済み信号系列との誤差に対応する誤差符号を生成する処理の一方の処理を他方の処理よりも優先的に行わせる制御部と、
を含む符号化装置。
In an encoding apparatus that encodes an input signal sequence in units of frames, which is configured by a plurality of input signal samples,
A normal signal that obtains a normalized signal code obtained by encoding a signal sequence obtained by normalizing each input signal sample included in the input signal sequence, and a quantized normalized signal sequence corresponding to the normalized signal code. An encoded signal encoding unit;
A global gain encoding unit for obtaining a quantized global gain corresponding to the input signal sequence and a global gain code corresponding to the quantized global gain;
The number of samples whose sample value of the quantized normalized signal sequence is larger than a predetermined value or the sample value size of a sequence obtained by normalizing the input signal sample is larger than a predetermined value. According to the number of large samples, the gain obtained by correcting the quantized global gain with the gain correction amount is corrected for the value of each sample of the quantized normalized signal sequence or the quantized normalized signal sequence. A gain correction amount code for specifying a gain correction amount that minimizes an error between the signal sequence obtained by multiplying the value of each sample of the corrected quantized normalized signal sequence obtained by the above and the input signal sequence. Processing to generate, and each sample value of the input signal sequence is the gain corresponding to the quantized global gain or the quantized global gain to the gain correction amount code One process of generating an error code corresponding to an error between a signal sequence obtained by dividing by a gain obtained by correcting with a positive amount and the quantized normalized signal sequence has priority over the other process. A control unit to be
An encoding device including:
請求項9に記載の符号化装置であって、
上記制御部は、上記個数が多いほど、上記ゲイン補正量符号を生成する処理を上記誤差符号を生成する処理よりも優先的に行わせる、
符号化装置。
The encoding device according to claim 9, comprising:
The control unit causes the process of generating the gain correction amount code to be preferentially performed over the process of generating the error code as the number increases.
Encoding device.
請求項9に記載の符号化装置であって、
上記制御部は、上記個数が所定の値よりも大きい場合には、上記ゲイン補正量符号を生成する処理を上記誤差符号を生成する処理よりも優先的に行わせる、
符号化装置。
The encoding device according to claim 9, comprising:
When the number is greater than a predetermined value, the control unit causes the process of generating the gain correction amount code to be performed with priority over the process of generating the error code.
Encoding device.
請求項9から11の何れかに記載の符号化装置であって、
上記制御部は、優先的に行われる処理で生成される符号に対して余剰ビットのうち所定の数のビットを割り当て、優先的に行われない処理で生成される符号に上記余剰ビットのうち上記割り当てたビット以外のビットを割り当てる、
符号化装置。
The encoding device according to any one of claims 9 to 11,
The control unit allocates a predetermined number of surplus bits to a code generated by a process that is performed preferentially, and the code among the surplus bits is generated by a code that is generated by a process that is not performed preferentially. Assign bits other than the assigned bits,
Encoding device.
フレーム単位の符号を復号して出力信号系列を得る復号装置において、
上記符号に含まれる正規化信号符号を復号して復号正規化済み信号系列を得る正規化信号復号部と、
上記符号に含まれるグローバルゲイン符号を復号して復号グローバルゲインを得るグローバルゲイン復号部と、
上記復号正規化済み信号系列のサンプルの値の大きさが所定の値よりも大きいサンプルの個数に応じて、上記符号に含まれるゲイン補正量符号に基づいて上記復号グローバルゲインを補正する処理及び上記符号に含まれる誤差符号に基づいて上記復号正規化済み信号系列を修正する処理の一方の処理を他方の処理よりも優先的に行わせる制御部と、
上記補正された復号グローバルゲインと、上記修正された復号正規化済み信号系列の各サンプルとを乗算して得られる信号系列を出力信号系列として得る復号部と、
を含む復号装置。
In a decoding device that obtains an output signal sequence by decoding a code in frame units,
A normalized signal decoding unit for decoding a normalized signal code included in the code to obtain a decoded normalized signal sequence;
A global gain decoding unit for decoding the global gain code included in the code to obtain a decoded global gain;
Processing for correcting the decoding global gain based on a gain correction amount code included in the code according to the number of samples whose sample value of the decoding normalized signal sequence is larger than a predetermined value; and A control unit that preferentially performs one process of the process of correcting the decoded normalized signal sequence based on an error code included in the code over the other process;
A decoding unit that obtains, as an output signal sequence, a signal sequence obtained by multiplying the corrected decoded global gain and each sample of the corrected decoded normalized signal sequence;
A decoding device.
請求項13に記載の復号装置であって、
上記制御部は、上記個数が多いほど、上記復号グローバルゲインを補正する処理を上記復号正規化済み信号系列を修正する処理よりも優先的に行わせる、
を有する復号装置。
The decoding device according to claim 13,
The control unit causes the process of correcting the decoded global gain to be performed in preference to the process of correcting the decoded normalized signal sequence as the number increases.
A decoding device.
請求項13に記載の復号装置であって、
上記制御部は、上記個数が所定の値よりも大きい場合には、上記復号グローバルゲインを補正する処理を上記復号正規化済み信号系列を修正する処理よりも優先的に行わせる、
復号装置。
The decoding device according to claim 13,
When the number is greater than a predetermined value, the control unit causes the process of correcting the decoded global gain to be performed with higher priority than the process of correcting the decoded normalized signal sequence.
Decoding device.
請求項13から15の何れかに記載の復号装置であって、
優先的に行われる処理で用いられる符号に対しては余剰ビットのうち所定の数のビットが割り当てられており、優先的に行われない処理で用いられる符号には上記余剰ビットのうち上記割り当てられたビット以外のビットが割り当てられている、
復号装置。
The decoding device according to any one of claims 13 to 15,
A predetermined number of surplus bits are allocated to a code used in a process that is preferentially performed, and a code used in a process that is not performed preferentially is allocated to the code that is allocated in the surplus bits. Bits other than those assigned are assigned,
Decoding device.
請求項1から4の何れかに記載の符号化方法の各ステップをコンピュータに実行させるためのプログラム。 Program for executing the respective steps of the encoding method according to the computer in any one of claims 1 to 4. 請求項5から8の何れかに記載の復号方法の各ステップをコンピュータに実行させるためのプログラム。The program for making a computer perform each step of the decoding method in any one of Claim 5 to 8. 請求項1から4の何れかに記載の符号化方法の各ステップをコンピュータに実行させるためのプログラムを記録した記録媒体。 Recording medium for recording a program for executing the respective steps of the encoding method according to the computer in any one of claims 1 to 4. 請求項5から8の何れかに記載の復号方法の各ステップをコンピュータに実行させるためのプログラムを記録した記録媒体。A recording medium on which a program for causing a computer to execute each step of the decoding method according to claim 5 is recorded.
JP2012219184A 2012-10-01 2012-10-01 Encoding method, encoding apparatus, decoding method, decoding apparatus, program, and recording medium Active JP5840101B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2012219184A JP5840101B2 (en) 2012-10-01 2012-10-01 Encoding method, encoding apparatus, decoding method, decoding apparatus, program, and recording medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2012219184A JP5840101B2 (en) 2012-10-01 2012-10-01 Encoding method, encoding apparatus, decoding method, decoding apparatus, program, and recording medium

Publications (2)

Publication Number Publication Date
JP2014071401A JP2014071401A (en) 2014-04-21
JP5840101B2 true JP5840101B2 (en) 2016-01-06

Family

ID=50746622

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2012219184A Active JP5840101B2 (en) 2012-10-01 2012-10-01 Encoding method, encoding apparatus, decoding method, decoding apparatus, program, and recording medium

Country Status (1)

Country Link
JP (1) JP5840101B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107966161B (en) * 2017-11-09 2020-04-28 内蒙古大学 Walking detection method based on FFT

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3552881B2 (en) * 1997-08-08 2004-08-11 松下電器産業株式会社 Signal encoding device
US7408481B2 (en) * 2004-10-15 2008-08-05 Nippon Telegraph And Telephone Corporation Information encoding method, decoding method, common multiplier estimating method, and apparatus, program, and recording medium using these methods
JP5734519B2 (en) * 2012-06-15 2015-06-17 日本電信電話株式会社 Encoding method, encoding apparatus, decoding method, decoding apparatus, program, and recording medium

Also Published As

Publication number Publication date
JP2014071401A (en) 2014-04-21

Similar Documents

Publication Publication Date Title
KR101343267B1 (en) Method and apparatus for audio coding and decoding using frequency segmentation
KR102055022B1 (en) Encoding device and method, decoding device and method, and program
JP6779966B2 (en) Advanced quantizer
KR101740359B1 (en) Encoding method, encoder, periodic feature amount determination method, periodic feature amount determination apparatus, program and recording medium
KR20080025404A (en) Modification of codewords in dictionary used for efficient coding of digital media spectral data
WO2012122299A1 (en) Bit allocation and partitioning in gain-shape vector quantization for audio coding
KR20130032980A (en) Coding apparatus and method using residual bits
WO2011045926A1 (en) Encoding device, decoding device, and methods therefor
JP2014509408A (en) Audio encoding method and apparatus
JP5840101B2 (en) Encoding method, encoding apparatus, decoding method, decoding apparatus, program, and recording medium
CA2803276A1 (en) Encoding method, decoding method, encoding device, decoding device, program, and recording medium
US9953659B2 (en) Apparatus and method for audio signal envelope encoding, processing, and decoding by modelling a cumulative sum representation employing distribution quantization and coding
AU2014280256B2 (en) Apparatus and method for audio signal envelope encoding, processing and decoding by splitting the audio signal envelope employing distribution quantization and coding
JP5734519B2 (en) Encoding method, encoding apparatus, decoding method, decoding apparatus, program, and recording medium
JP5799824B2 (en) Audio encoding apparatus, audio encoding method, and audio encoding computer program
JP5738480B2 (en) Encoding method, encoding apparatus, decoding method, decoding apparatus, and program
JP5442888B2 (en) Encoding device, decoding device, encoding method, decoding method, and program thereof
JPWO2019167706A1 (en) Encoding device, coding method, program, and recording medium
JP5635213B2 (en) Encoding method, encoding apparatus, decoding method, decoding apparatus, program, and recording medium
JP5786044B2 (en) Encoding method, encoding apparatus, decoding method, decoding apparatus, program, and recording medium
KR102539165B1 (en) Residual coding method of linear prediction coding coefficient based on collaborative quantization, and computing device for performing the method
JP5800920B2 (en) Encoding method, encoding apparatus, decoding method, decoding apparatus, program, and recording medium
JP5990954B2 (en) Audio encoding apparatus, audio encoding method, audio encoding computer program, audio decoding apparatus, audio decoding method, and audio decoding computer program
KR20130047630A (en) Apparatus and method for coding signal in a communication system
JP2006235253A (en) Encoder, encoding method, decoder, and decoding method

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20140326

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20141120

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20141209

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20150203

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20150825

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20150908

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20151110

R150 Certificate of patent or registration of utility model

Ref document number: 5840101

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150