KR101762210B1 - Encoding method, encoder, program and recording medium - Google Patents

Encoding method, encoder, program and recording medium Download PDF

Info

Publication number
KR101762210B1
KR101762210B1 KR1020177015504A KR20177015504A KR101762210B1 KR 101762210 B1 KR101762210 B1 KR 101762210B1 KR 1020177015504 A KR1020177015504 A KR 1020177015504A KR 20177015504 A KR20177015504 A KR 20177015504A KR 101762210 B1 KR101762210 B1 KR 101762210B1
Authority
KR
South Korea
Prior art keywords
gain
value
unit
bits
consumed
Prior art date
Application number
KR1020177015504A
Other languages
Korean (ko)
Other versions
KR20170069294A (en
Inventor
타케히로 모리야
유타카 카마모토
노보루 하라다
유스케 히와사키
마사히로 후쿠이
Original Assignee
니폰 덴신 덴와 가부시끼가이샤
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
Family has litigation
First worldwide family litigation filed litigation Critical https://patents.darts-ip.com/?family=49673352&utm_source=google_patent&utm_medium=platform_link&utm_campaign=public_patent_search&patent=KR101762210(B1) "Global patent litigation dataset” by Darts-ip is licensed under a Creative Commons Attribution 4.0 International License.
Application filed by 니폰 덴신 덴와 가부시끼가이샤 filed Critical 니폰 덴신 덴와 가부시끼가이샤
Publication of KR20170069294A publication Critical patent/KR20170069294A/en
Application granted granted Critical
Publication of KR101762210B1 publication Critical patent/KR101762210B1/en

Links

Images

Classifications

    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS OR SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING; SPEECH OR AUDIO CODING OR DECODING
    • G10L19/00Speech or audio signals analysis-synthesis techniques for redundancy reduction, e.g. in vocoders; Coding or decoding of speech or audio signals, using source filter models or psychoacoustic analysis
    • G10L19/02Speech or audio signals analysis-synthesis techniques for redundancy reduction, e.g. in vocoders; Coding or decoding of speech or audio signals, using source filter models or psychoacoustic analysis using spectral analysis, e.g. transform vocoders or subband vocoders
    • G10L19/032Quantisation or dequantisation of spectral components
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS OR SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING; SPEECH OR AUDIO CODING OR DECODING
    • G10L19/00Speech or audio signals analysis-synthesis techniques for redundancy reduction, e.g. in vocoders; Coding or decoding of speech or audio signals, using source filter models or psychoacoustic analysis
    • G10L19/002Dynamic bit allocation
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS OR SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING; SPEECH OR AUDIO CODING OR DECODING
    • G10L19/00Speech or audio signals analysis-synthesis techniques for redundancy reduction, e.g. in vocoders; Coding or decoding of speech or audio signals, using source filter models or psychoacoustic analysis
    • G10L19/02Speech or audio signals analysis-synthesis techniques for redundancy reduction, e.g. in vocoders; Coding or decoding of speech or audio signals, using source filter models or psychoacoustic analysis using spectral analysis, e.g. transform vocoders or subband vocoders
    • G10L19/032Quantisation or dequantisation of spectral components
    • G10L19/035Scalar quantisation
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS OR SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING; SPEECH OR AUDIO CODING OR DECODING
    • G10L19/00Speech or audio signals analysis-synthesis techniques for redundancy reduction, e.g. in vocoders; Coding or decoding of speech or audio signals, using source filter models or psychoacoustic analysis
    • G10L19/04Speech or audio signals analysis-synthesis techniques for redundancy reduction, e.g. in vocoders; Coding or decoding of speech or audio signals, using source filter models or psychoacoustic analysis using predictive techniques
    • G10L19/08Determination or coding of the excitation function; Determination or coding of the long-term prediction parameters
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS OR SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING; SPEECH OR AUDIO CODING OR DECODING
    • G10L19/00Speech or audio signals analysis-synthesis techniques for redundancy reduction, e.g. in vocoders; Coding or decoding of speech or audio signals, using source filter models or psychoacoustic analysis
    • G10L19/04Speech or audio signals analysis-synthesis techniques for redundancy reduction, e.g. in vocoders; Coding or decoding of speech or audio signals, using source filter models or psychoacoustic analysis using predictive techniques
    • G10L19/08Determination or coding of the excitation function; Determination or coding of the long-term prediction parameters
    • G10L19/083Determination or coding of the excitation function; Determination or coding of the long-term prediction parameters the excitation function being an excitation gain

Abstract

소정 구간의 입력 음향 신호에 유래하는 샘플열의 샘플열의 각 샘플을 갱신 전의 이득으로 제산하여 얻어지는 정수값 샘플에 의한 열을 부호화 하여 얻어지는 부호의 비트수 또는 추정 비트수와, 소정의 배분 비트수(B)의 차가 클수록, 갱신 전의 이득과 갱신 후의 이득의 차가 커지도록 이득의 값을 갱신하고, 얻어진 이득에 대응하는 이득 부호와, 샘플열의 각 샘플을 이득으로 제산하여 얻어지는 정수값 샘플에 의한 열을 부호화 하여 얻어지는 정수 신호 부호를 얻는다.The number of bits or the number of bits to be obtained by coding a column of an integer value sample obtained by dividing each sample of the sample string of the sample string derived from the input acoustic signal of a predetermined section by the gain before the update and the predetermined number of distribution bits B ), The gain value is updated so that the difference between the gain before update and the gain after update becomes larger, and a gain code corresponding to the obtained gain and a column with an integer value sample obtained by dividing each sample of the sample string by the gain are encoded To obtain an integer signal code.

Figure R1020177015504
Figure R1020177015504

Description

부호화 방법, 부호화 장치, 프로그램 및 기록 매체{ENCODING METHOD, ENCODER, PROGRAM AND RECORDING MEDIUM}BACKGROUND OF THE INVENTION 1. Field of the Invention [0001] The present invention relates to an encoding method, an encoding apparatus, a program,

본 발명은 음향 신호의 부호화 기술에 관한 것이다. 특히, 음향 신호에 유래하는 샘플열을 이득으로 제산하여 얻어지는 계열의 부호화 기술에 관한 것이다.TECHNICAL FIELD The present invention relates to a technique for encoding acoustic signals. Particularly, the present invention relates to a sequence encoding technique obtained by dividing a sample sequence derived from an acoustic signal by a gain.

저비트(예를 들면, 10kbit/s∼20kbit/s 정도)의 음성 신호나 음향 신호의 부호화 방법으로서, DFT(이산 푸리에 변환)나 MDCT(변형 이산 코사인 변환) 등의 직교 변환 계수에 대한 적응 부호화가 알려져 있다. 예를 들면, 비특허문헌 1의 표준규격 기술인 AMR-WB+(Extended Adaptive Multi-Rate Wideband)는 TCX(transform coded excitation: 변환 부호화 여진) 부호화 모드를 갖는다. TCX 부호화에서는, 프레임마다 주어진 총 비트수에서의 부호화를 행할 수 있도록, 주파수 영역의 음향 디지털 신호 계열을 파워 스펙트럼 포락 계수열에 의해 정규화하여 얻어지는 계수열에 대하여, 계수열 중의 각 계수를 이득으로 제산하여 얻어지는 계열을 소정의 비트수로 부호화 할 수 있도록 이득을 결정한다. As an encoding method of a speech signal or a sound signal of a low bit (for example, about 10 kbit / s to 20 kbit / s), adaptive encoding for orthogonal transform coefficients such as DFT (Discrete Fourier Transform) or MDCT (Modified Discrete Cosine Transform) Is known. For example, AMR-WB + (Extended Adaptive Multi-Rate Wideband), which is a standard specification of non-patent document 1, has a transform coded excitation (transform coded excitation) coding mode. In TCX encoding, a coefficient sequence obtained by normalizing an acoustic digital signal sequence in the frequency domain by a power spectral envelope coefficient sequence so as to be able to perform coding with a given total number of bits per frame is obtained by dividing each coefficient in the coefficient sequence by a gain. The gain is determined so that the sequence can be encoded with a predetermined number of bits.

<TCX 부호화 장치(1000)><TCX encoding apparatus 1000>

종래의 TCX 부호화의 부호화 장치(1000)의 구성예를 도 1에 나타낸다. 이하, 도 1의 각 부에 대하여 설명한다. A configuration example of a conventional TCX encoding apparatus 1000 is shown in Fig. Hereinafter, each section of Fig. 1 will be described.

<주파수 영역 변환부(1001)>&Lt; Frequency domain converter 1001 >

주파수 영역 변환부(1001)는 소정의 시간 구간인 프레임 단위에서, 입력된 음향 디지털 신호를 주파수 영역의 N점의 MDCT 계수열(X(1),···, X(N))로 변환하여 출력한다. 단 N은 양의 정수이다. The frequency domain transforming unit 1001 transforms the inputted acoustic digital signal into N MDCT coefficient columns (X (1), ..., X (N)) in the frequency domain in units of frames which are a predetermined time period Output. Where N is a positive integer.

<파워 스펙트럼 포락 계수열 계산부(1002)>&Lt; Power spectral envelope coefficient column calculation unit 1002 >

파워 스펙트럼 포락 계수열 계산부(1002)는 프레임 단위의 음향 디지털 신호 에 대한 선형 예측 분석을 행하여 선형 예측 계수를 구하고, 그 선형 예측 계수를 사용하여 N점의 음향 디지털 신호의 파워 스펙트럼 포락 계수열(W(1),···, W(N))을 얻어 출력한다. The power spectral envelope coefficient arithmetic unit 1002 performs linear prediction analysis on an acoustic digital signal on a frame-by-frame basis to obtain a linear prediction coefficient, and uses the linear prediction coefficient to compute a power spectral envelope coefficient column of the N acoustic digital signals W (1), ..., W (N)).

<가중 포락 정규화부(1003)><Weighted-envelope normalization unit 1003>

가중 포락 정규화부(1003)는, 파워 스펙트럼 포락 계수열 계산부(1002)가 얻은 파워 스펙트럼 포락 계수열을 사용하여, 주파수 영역 변환부(1001)가 얻은 MDCT 계수열의 각 계수를 정규화하고, 가중 정규화 MDCT 계수열(XN(1),···, XN(N))을 출력한다. 여기에서는 청각적으로 변형이 작아지는 양자화의 실현을 위해, 가중 포락 정규화부(1003)는, 파워 스펙트럼 포락을 약해지게 한 가중 파워 스펙트럼 포락 계수열을 사용하여, 프레임 단위로 MDCT 계수열의 각 계수를 정규화한다. 이 결과, 가중 정규화 MDCT 계수열(XN(1),···, XN(N))은 입력된 MDCT 계수열 정도의 큰 진폭의 경사나 진폭의 요철을 갖지 않지만, 음향 디지털 신호의 파워 스펙트럼 포락 계수열과 유사한 대소 관계를 갖는 것, 즉 낮은 주파수에 대응하는 계수측의 영역에 약간 큰 진폭을 갖고, 피치 주기에 기인하는 미세 구조를 갖는 것으로 된다.The weighted envelope normalization unit 1003 normalizes each coefficient of the MDCT coefficient sequence obtained by the frequency domain transform unit 1001 using the power spectral envelope coefficient sequence obtained by the power spectrum envelope coefficient column calculation unit 1002, And outputs MDCT coefficient columns X N (1), ..., X N (N). In order to realize the quantization in which the deformation of the auditory sound is reduced, the weighted envelope normalization unit 1003 uses the weighted power spectral envelope coefficient column which weakens the power spectrum envelope, and calculates the coefficients of the MDCT coefficient columns Normalize. As a result, the weighted normalized MDCT coefficient columns (X N (1), ..., X N (N)) do not have irregularities of inclination or amplitude of a large amplitude about the input MDCT coefficient column, A small amplitude similar to the spectral envelope coefficient column, that is, a region on the coefficient side corresponding to the low frequency, and a fine structure due to the pitch period.

<초기화부(1004)><Initialization Unit 1004>

초기화부(1004)는 이득(글로벌 게인)(g)의 초기값을 설정한다. 이득의 초기값은 가중 정규화 MDCT 계수열(XN(1),···, XN(N))의 에너지와 가변길이 부호화부(1006)가 출력하는 부호에 미리 배분된 비트수 등으로 정할 수 있다. 이하, 가변길이 부호화부(1006)가 출력하는 부호에 미리 배분된 비트수를 배분 비트수(B)라고 부른다. 또한 초기화부는 이득의 갱신 횟수의 초기값으로서 0을 설정한다. The initialization unit 1004 sets the initial value of the gain (global gain) g. The initial value of the gain is determined by the energy of the weighted normalized MDCT coefficient column (X N (1), ..., X N (N)) and the number of bits previously allocated to the code output from the variable length coding unit 1006 . Hereinafter, the number of bits allocated in advance to the code output from the variable length coding unit 1006 is referred to as a distribution bit number (B). Further, the initialization unit sets 0 as an initial value of the number of times of updating of the gain.

<이득 갱신 루프 처리부(1130)>&Lt; Gain Update Loop Processor 1130 >

이득 갱신 루프 처리부(1130)는 가중 정규화 MDCT 계수열(XN(1),···, XN(N)) 중의 각 계수를 이득으로 제산(除算)하여 얻어지는 계열을 소정의 비트수로 부호화 할 수 있도록 이득을 결정하고, 가중 정규화 MDCT 계수열(XN(1),···, XN(N)) 중의 각 계수를 결정한 이득으로 제산하여 얻어지는 계열을 가변길이 부호화하여 얻은 정수 신호 부호와, 결정한 이득을 부호화하여 얻은 이득 부호를 출력한다. The gain update loop processing unit 1130 encodes a series obtained by dividing each coefficient in the weighted normalized MDCT coefficient columns X N (1), ..., X N (N) by a gain into a predetermined number of bits And obtains a constant signal code obtained by performing variable length coding on a series obtained by dividing the weighted normalized MDCT coefficient string (X N (1), ..., X N (N) And a gain code obtained by encoding the determined gain.

이득 갱신 루프 처리부(1130)는 양자화부(1005)와, 가변길이 부호화부(1006)와, 판정부(1007)와, 이득 확대 갱신부(1131)와, 이득 축소 갱신부(1132)와, 버림부(1016)와, 이득 부호화부(1017)를 갖는다. The gain update loop processing unit 1130 includes a quantization unit 1005, a variable length coding unit 1006, a determination unit 1007, a gain expansion update unit 1131, a gain reduction update unit 1132, Unit 1016, and a gain encoding unit 1017. [

<양자화부(1005)><Quantization Unit 1005>

양자화부(1005)는 가중 정규화 MDCT 계수열(XN(1),···, XN(N))의 각 계수를 이득(g)으로 나누어 얻어지는 값을 양자화하고, 정수값에 의한 계열인 양자화 정규화된 계수계열(XQ(1),···, XQ(N))을 얻어 출력한다. The quantization unit 1005 quantizes a value obtained by dividing each coefficient of the weighted normalized MDCT coefficient column X N (1), ..., X N (N) by a gain g, and it outputs the obtained quantized normalized coefficient sequence (X Q (1), ··· , X Q (N)).

<가변길이 부호화부(1006)><Variable-length coding unit 1006>

가변길이 부호화부(1006)는 양자화 정규화된 계수계열(XQ(1),···, XQ(N))을 가변길이 부호화하여 부호를 얻어 출력한다. 이 부호를 정수 신호 부호라고 부른다. 이 가변길이 부호화에는, 예를 들면, 양자화 정규화된 계수계열 중의 복수의 계수를 정리하여 부호화하는 방법을 사용한다. 또한 가변길이 부호화부(1006)는 가변길이 부호화에서 얻은 정수 신호 부호의 비트수를 계측한다. 이하에서는, 이 비트수를 소비 비트수(c)라고 부른다. Variable length coding unit 1006 outputs a code obtained by variable length coding the quantized normalized coefficient sequence (X Q (1), ··· , X Q (N)). This code is called an integer signal code. In this variable-length coding, for example, a method of arranging a plurality of coefficients in the quantized normalized coefficient sequence and encoding them is used. The variable length coding unit 1006 measures the number of bits of the integer signal code obtained in the variable length coding. Hereinafter, this number of bits is called the number of consumed bits (c).

<판정부(1007)>&Lt; Judgment section 1007 >

판정부(1007)는, 이득의 갱신 횟수가 미리 정한 횟수인 경우에는, 이득, 정수 신호 부호, 소비 비트수(c)를 출력한다. When the number of times of updating the gain is a predetermined number, the determining section 1007 outputs the gain, the integer signal code, and the number of consumed bits (c).

이득의 갱신 횟수가 미리 정한 횟수 미만인 경우에는, 가변길이 부호화부(1006)가 계측한 소비 비트수(c)가 배분 비트수(B)보다 많은 경우에는 이득 확대 갱신부(1131)가, 가변길이 부호화부(1006)가 계측한 소비 비트수(c)가 배분 비트수(B)보다 적은 경우에는 이득 축소 갱신부(1132)가 다음 처리를 행하도록 제어한다. 또한, 소비 비트수(c)와 배분 비트수(B)가 동일할 때는, 이번 이득의 값이 최적의 값인 것을 의미하므로, 이득, 정수 신호 부호, 소비 비트수(c)를 출력한다. If the number of times of updating of the gain is less than the predetermined number, the gain increase updating unit 1131 updates the variable length coding unit 1006 when the number of consumed bits c measured by the variable length coding unit 1006 is larger than the distribution bit number B, When the number of consumed bits c measured by the encoding unit 1006 is smaller than the number of allocated bits B, the gain reduction updating unit 1132 performs control to perform the following processing. When the number of consumed bits c and the number of allocated bits B are equal to each other, it means that the value of the present gain is the optimum value, and outputs the gain, the integer signal code, and the number of consumed bits c.

<이득 확대 갱신부(1131)><Gain Expansion Updating Unit 1131>

이득 확대 갱신부(1131)는 금회의 이득(g)의 값보다도 큰 값(g'>g)을 새로운 이득으로서 설정한다. 이득 확대 갱신부(1131)는 이득 하한 설정부(1008)와, 제 1 분기부(1009)와, 제 1 이득 갱신부(1010)와, 이득 확대부(1011)를 갖는다. The gain increase updating unit 1131 sets a value (g '> g) larger than the current gain g as a new gain. The gain enhancement updating unit 1131 has a gain lower limit setting unit 1008, a first branching unit 1009, a first gain updating unit 1010, and a gain increasing unit 1011.

<이득 하한 설정부(1008)>&Lt; Gain lower limit setting unit 1008 >

이득 하한 설정부(1008)는 금회의 이득(g)의 값을 이득의 하한값(gmin)으로서 설정한다(gmin←g). 이 이득의 하한값(gmin)은 적어도 이득의 값은 이것 이상이어야 하는 것을 의미한다.Gain lower limit setting unit 1008 sets the value of the gain (g) of this time as a lower limit value (g min) of the gain (g min ← g). The lower limit value ( gmin ) of this gain means that the value of the gain should be at least above this value.

<제 1 분기부(1009)>&Lt; First branch portion 1009 >

이득 하한 설정부(1008)에서 이득의 하한값(gmin)이 설정된 경우, 제 1 분기부(1009)는 이득의 상한값(gmax)이 이미 설정되어 있는 경우에는 제 1 이득 갱신부(1010)가, 그렇지 않은 경우에는 이득 확대부(1011)가 다음 처리를 행하도록 제어한다. If the gain lower limit setting unit 1008, the lower limit value (g min) of a gain is set in the first branch 1009 is a case that the upper limit value (g max), the gain is already set, the first gain updating unit 1010 , And otherwise controls the gain increasing unit 1011 to perform the next process.

<제 1 이득 갱신부(1010)><First Gain Updating Unit 1010>

제 1 이득 갱신부(1010)는, 예를 들면, 금회의 이득(g)의 값과 이득의 상한값(gmax)의 평균값을 새롭게 이득(g)의 값으로서 설정한다(g←(g+gmax)/2). 이것은 최적의 이득의 값은 금회의 이득(g)의 값과 이득의 상한값(gmax) 사이에 존재하기 때문이다. 금회의 이득(g)의 값은 이득의 하한값(gmin)으로서 설정되어 있으므로, 이득의 상한값(gmax)과 이득의 하한값(gmin)의 평균값을 새롭게 이득(g)의 값으로서 설정한다고도 할 수 있다(g←(gmax+gmin)/2). 그 후에 양자화부(1005)의 처리로 되돌아온다. The first gain updating unit 1010 newly sets the value of the current gain g and the average value of the upper limit value g max of the gain as the value of the gain g newly (g? G + g max ) / 2). This is because the value of the optimum gain exists between the value of the current gain g and the upper limit value g max of the gain. The value of the gain (g) for this time is also that it is set as a lower limit value (g min) of the gain, the new mean value of the upper limit value (g max) and the gain lower limit value (g min) of the gain set to the value of the gain (g) (G? ( Gmax + gmin ) / 2). And thereafter returns to the processing of the quantization unit 1005.

<이득 확대부(1011)><Gain Expansion Unit 1011>

이득 확대부(1011)는 금회의 이득(g)의 값보다 큰 값을 새로운 이득(g)의 값으로서 설정한다. 예를 들면, 금회의 이득(g)의 값에 미리 정한 값인 이득 변경량(Δg)을 가산한 것을 새로운 이득(g)의 값으로서 설정한다(g←g+Δg). 또한, 예를 들면, 이득의 상한값(gmax)이 설정되지 않고, 소비 비트수(c)가 배분 비트수(B)보다 많은 상태가 복수회 계속되고 있는 경우에는, 미리 정한 값보다 큰 값을 이득 변경량(Δg)으로서 사용한다. 그 후에 양자화부(1005)의 처리로 되돌아온다. The gain increasing unit 1011 sets a value larger than the value of the current gain g as a value of the new gain g. For example, a value obtained by adding a gain change amount? G, which is a predetermined value to the value of the current gain g, is set as the value of the new gain g (g? G +? G). Further, for example, when the state where the upper limit value g max of the gain is not set and the number of consumed bits c is more than the distribution bit number B is continued plural times, a value larger than a predetermined value is set to Is used as the gain change amount? G. And thereafter returns to the processing of the quantization unit 1005.

<이득 축소 갱신부(1132)><Gain Reduction Updating Unit 1132>

이득 축소 갱신부(1132)는 금회의 이득(g)의 값보다도 작은 값(g'<g)을 새로운 이득으로서 설정한다. 이득 축소 갱신부(1132)는 이득 상한 설정부(1012)와, 제 2 분기부(1013)와, 제 2 이득 갱신부(1014)와, 이득 축소부(1015)를 갖는다. The gain reduction updating unit 1132 sets a value (g '<g) smaller than the value of the current gain g as a new gain. The gain reduction unit 1132 has a gain upper limit setting unit 1012, a second branching unit 1013, a second gain updating unit 1014, and a gain reducing unit 1015.

<이득 상한 설정부(1012)><Gain upper limit setting unit 1012>

이득 상한 설정부(1012)는 금회의 이득(g)의 값을 이득의 상한값(gmax)으로 설정한다(gmax←g). 이 이득의 상한값(gmax)은 적어도 이득의 값은 이것 이하이어야 하는 것을 의미한다. The gain upper limit setting unit 1012 sets the value of the current gain g to the upper limit value g max of the gain (g max? G). The upper limit value ( gmax ) of this gain means that the value of the gain should be at least below this value.

<제 2 분기부(1013)>&Lt; Second branching part 1013 >

이득 상한 설정부(1012)에서 이득의 상한값(gmax)이 설정된 경우, 제 2 분기부(1013)는 이득의 하한값(gmin)이 이미 설정되어 있는 경우에는 제 2 이득 갱신부(1014)가, 그렇지 않은 경우에는 이득 축소부(1015)가 다음 처리를 행하도록 제어한다. If the gain upper limit setting portion 1012 is set the upper limit value (g max) of the gain, and the second branch 1013 is if the lower limit value (g min) of a gain is already set, the second gain updating unit 1014, the , And otherwise controls the gain reducing unit 1015 to perform the next processing.

<제 2 이득 갱신부(1014)>&Lt; Second gain updating unit 1014 >

제 2 이득 갱신부(1014)는, 예를 들면, 금회의 이득(g)의 값과 이득의 하한값(gmin)의 평균값을 새로운 이득(g)의 값으로서 설정한다(g←(g+gmin)/2). 이것은 최적의 이득의 값은 금회의 이득(g)의 값과 이득의 하한값(gmin) 사이에 존재하기 때문이다. 금회의 이득(g)의 값은 이득의 상한값(gmax)으로서 설정되어 있으므로, 이득의 상한값(gmax)과 이득의 하한값(gmin)의 평균값을 새롭게 이득(g)의 값으로서 설정한다고도 할 수 있다(g←(gmax+gmin)/2). 그 후에 양자화부(1005)의 처리로 되돌아온다. Second gain updating unit 1014 is, for example, and sets the average value of the gain (g) values and the gain lower limit value (gmin) of the current time as the value of the new gain (g) (g ← (g + g min )/2). This is because the value of the optimum gain is to exist between the lower limit value (g min) of a gain value and a gain (g) of the current time. The value of the gain (g) for this time is also that it is set as the upper limit value (g max) of the gain, the new mean value of the upper limit value (g max) and the gain lower limit value (g min) of the gain set to the value of the gain (g) (G? ( Gmax + gmin ) / 2). And thereafter returns to the processing of the quantization unit 1005.

<이득 축소부(1015)>&Lt; Gain reducing unit 1015 >

이득 축소부(1015)는 금회의 이득(g)의 값보다 작은 값을 새로운 이득(g)의 값으로서 설정한다. 예를 들면, 금회의 이득(g)의 값으로부터 미리 정한 값인 이득 변경량(Δg)을 감산한 것을 새로운 이득(g)의 값으로서 설정한다(g←g-Δg). 또한, 예를 들면, 이득의 하한값(gmin)이 설정되지 않고, 소비 비트수(c)가 배분 비트수(B)보다 적은 상태가 복수회 계속되고 있는 경우에는, 미리 정한 값보다 큰 값을 이득 변경량(Δg)으로서 사용한다. 그 후에 양자화부(1005)의 처리로 되돌아온다. The gain reduction unit 1015 sets a value smaller than the current gain g as a value of the new gain g. For example, a value obtained by subtracting the gain change amount? G, which is a predetermined value from the value of the current gain g, is set as the value of the new gain g (g? G-? G). Also, for example, when no minimum value (g min) of the gain is not set, the number of spent bits (c) The allocation bit number (B) with less state continues a plurality of times, a value that is greater than a predetermined value Is used as the gain change amount? G. And thereafter returns to the processing of the quantization unit 1005.

<버림부(1016)><Discard part 1016>

버림부(1016)는 판정부(1007)가 출력한 소비 비트수(c)가 배분 비트수(B)보다 많은 경우에는, 판정부(1007)가 출력한 정수 신호 부호 중, 소비 비트수(c)가 배분 비트수(B)를 상회하는 분만큼의 부호를, 높은 주파수측의 양자화 정규화된 계수에 대응하는 부호로부터 제거한 것을 새로운 정수 신호 부호로서 출력한다. 즉 버림부(1016)는 소비 비트수(c)의 배분 비트수(B)에 대한 상회분(c-B)에 대응하는 높은 주파수측의 양자화 정규화된 계수에 대응하는 부호를 정수 신호 부호로부터 제거함으로써 얻어지는, 나머지의 부호를 새로운 정수 신호 부호로서 출력한다. When the number of consumed bits c output from the determining section 1007 is larger than the number of allocated bits B, the discard section 1016 sets the number of consumed bits c (c) out of the integer signal codes output from the determining section 1007 ) Is removed from the code corresponding to the quantized normalized coefficient on the higher frequency side, as a new integer signal code. In other words, the discard unit 1016 obtains the quantization normalized coefficient obtained by removing the sign corresponding to the higher frequency side quantized normalized coefficient corresponding to the upper fraction cB with respect to the distribution bit number B of the consumed bit number c from the integer signal code , And outputs the remaining sign as a new integer signal code.

<이득 부호화부(1017)>&Lt; Gain coding unit 1017 >

판정부(1007)가 출력한 이득을 소정의 비트수로 부호화하여 이득 부호를 얻고, 출력한다.Obtains a gain code by encoding the gain output from the determination section 1007 to a predetermined number of bits, and outputs the gain code.

3rd Generation Partnership Project(3GPP), Technical Specification(TS) 26.290, "Extended Adaptive Multi-Rate-Wideband(AMR-WB+) codec; Transcoding functions", Version 10.0.0(2011-03) (3GPP), Technical Specification (TS) 26.290, "Extended Adaptive Multi-Rate-Wideband (AMR-WB +) codec; Transcoding functions", Version 10.0.0 (2011-03)

(발명의 개요)(Summary of the Invention)

(발명이 해결하고자 하는 과제)(Problems to be Solved by the Invention)

종래의 부호화 장치(1000)의 이득 확대부(1011)에서는, 이득(g)의 값에 소정의 값인 이득 변경량(Δg)을 가산한 것을 새로운 이득(g)의 값으로 함으로써 고정적으로 이득의 값을 확대하고 있었다. The gain enlarging unit 1011 of the conventional encoding apparatus 1000 fixedly adds the value of the gain g to the value of the gain g by adding the gain change amount? G, which is a predetermined value, .

이득의 상한값이 설정되지 않고, 이득 확대부(1011)의 처리가 복수회 필요한 경우에는 이득의 초기값이 극에 지나치게 작았을 가능성이 있으므로, 이득 변경량(Δg)을 소정의 값보다 크게 하여, 이득의 상한값에 도달할 수 있는 확률을 높이지 않을 수 없지만, 이것에 의해 적정한 이득을 대폭 초과한 값을 새로운 이득의 값으로서 설정해 버리는 일도 있어, 수렴에 횟수(回數)가 필요하여, 소정의 횟수로 적절한 이득의 값을 구할 수 없는 경우가 있었다. When the upper limit value of the gain is not set and the process of the gain increasing unit 1011 is required a plurality of times, the initial value of the gain may be too small to the pole, so that the gain changing amount? The probability of reaching the upper limit value of the gain can not be increased. However, a value greatly exceeding the proper gain may be set as the value of the new gain, and the number of times of convergence is required, The value of the appropriate gain can not be obtained by the number of times.

마찬가지로, 종래의 부호화 장치(1000)의 이득 축소부(1015)에서는, 이득(g)의 값으로부터 소정의 값인 이득 변경량(Δg)을 감산한 것을 새로운 이득(g)의 값으로 함으로써, 고정적으로 이득의 값을 축소하고 있었다. Likewise, in the gain reducing unit 1015 of the conventional encoding apparatus 1000, the value obtained by subtracting the gain change amount? G, which is a predetermined value, from the value of the gain g is set as the value of the new gain g, The gain value was reduced.

이득의 하한값이 설정되지 않고, 이득 축소부(1015)의 처리가 복수회 필요하게 되는 경우에는 이득의 초기값이 극히 지나치게 컸을 가능성이 있으므로, 이득 변경량(Δg)을 소정의 값보다 크게 하여, 이득의 하한값에 도달할 수 있는 확률을 높이지 않을 수 없지만, 이것에 의해 적정한 이득을 대폭 초과한 값을 새로운 이득의 값으로서 설정해 버리는 경우도 있어, 수렴에 횟수가 필요하여, 소정의 횟수로 적절한 이득의 값을 구할 수 없는 경우가 있었다. If the lower limit value of the gain is not set and the processing of the gain reducing section 1015 is required a plurality of times, the initial value of the gain may be excessively large. Therefore, the gain change amount? G may be made larger than a predetermined value, The probability of reaching the lower limit value of the gain can not be increased. However, a value greatly exceeding the appropriate gain may be set as the value of the new gain, and the number of times of convergence is required. The value of the gain can not be obtained in some cases.

소정의 횟수로 구해진 이득의 값이 지나치게 작은 경우에는, 가변길이 부호화에 의해 얻어진 부호의 비트수가 배분 비트보다 크기 때문에, 가변길이 부호화에 의해 얻어진 부호의 일부밖에 정수 신호 부호로 할 수 없어, 고역(高域)의 양자화 정규화된 계수에 대응하는 부호가 부호화 장치로부터 출력되지 않고, 복호 장치에도 전해지지 않기 때문에, 복호 장치에서는 고역의 계수를 0으로 하여 복호 신호를 얻지 않으면 안되는 등에 의해, 복호 신호의 변형이 커지게 된다고 하는 문제가 있다. 소정의 횟수로 정해진 이득의 값이 지나치게 큰 경우에는, 정수 신호 부호의 비트수가 배분 비트보다 적기 때문에, 충분한 음향 신호의 품질을 얻을 수 없는 문제가 있다.If the value of the gain obtained by the predetermined number of times is too small, the number of bits of the code obtained by the variable length coding is larger than the allocation bit, so that only a part of the code obtained by the variable length coding can not be converted into the integer signal code. Since the code corresponding to the quantized normalized coefficient of the high frequency band is not outputted from the coding device nor transmitted to the decoding device, the decoding device must obtain a decoded signal by setting the coefficient of the high frequency band to 0, There is a problem that the deformation becomes large. If the value of the gain determined by the predetermined number of times is too large, the number of bits of the integer signal code is smaller than the allocation bit, so that there is a problem that sufficient quality of the acoustic signal can not be obtained.

소정 구간의 입력 음향 신호에 유래하는 샘플열의 샘플열의 각 샘플을 갱신 전의 이득으로 제산하여 얻어지는 정수값 샘플에 의한 열을 부호화하여 얻어지는 부호의 비트수 또는 추정 비트수와 소정의 배분 비트수(B)의 차가 클수록, 갱신 전의 이득과 갱신 후의 이득과의 차가 커지도록 이득의 값을 갱신하고, 얻어진 이득에 대응하는 이득 부호와, 샘플열의 각 샘플을 이득으로 제산하여 얻어지는 정수값 샘플에 의한 열을 부호화하여 얻어지는 정수 신호 부호를 얻는다.The number of bits or the estimated number of bits and the predetermined number of distribution bits (B) obtained by coding a column of integer value samples obtained by dividing each sample of the sample string of the sample string derived from the input acoustic signal of a predetermined section by the gain before the update, The gain value is updated so that the difference between the gain before the update and the gain after the update becomes larger as the difference between the gain before the update and the gain after the update becomes larger, and the gain code corresponding to the obtained gain and the column with the integer value obtained by dividing each sample of the sample string by the gain To obtain an integer signal code.

본 발명의 부호화에 의하면, 이득의 값의 적절한 값으로의 수렴을 빠르게 함으로써, 종래기술보다도 가변길이 부호화에 의해 얻어지는 부호의 비트수를 배분 비트에 근접시키는 것이 가능하게 되어, 종래기술보다도 고품질의 부호화를 행하는 것이 가능하게 된다. According to the encoding method of the present invention, it is possible to bring the number of bits of the code obtained by the variable length coding closer to the distribution bits than that of the prior art, by accelerating the convergence of the gain value to an appropriate value, Can be performed.

도 1은 종래의 부호화 장치의 구성을 예시한 블록도.
도 2는 제 1 실시형태의 부호화 장치의 구성을 예시한 블록도.
도 3은 제 1 실시형태의 변형예의 부호화 장치의 구성을 예시한 블록도.
도 4는 제 2 실시형태의 부호화 장치의 구성을 예시한 블록도.
도 5는 제 2 실시형태의 변형예의 부호화 장치의 구성을 예시한 블록도.
도 6은 제 3 실시형태의 부호화 장치의 구성을 예시한 블록도.
1 is a block diagram illustrating a configuration of a conventional encoding apparatus;
2 is a block diagram exemplifying a configuration of an encoding apparatus according to the first embodiment;
3 is a block diagram exemplifying a configuration of a coding apparatus according to a modification of the first embodiment;
4 is a block diagram illustrating the configuration of an encoding apparatus according to a second embodiment;
5 is a block diagram exemplifying a configuration of a coding apparatus according to a modification of the second embodiment;
6 is a block diagram exemplifying a configuration of an encoding apparatus according to a third embodiment;

(발명을 실시하기 위한 형태)(Mode for carrying out the invention)

도면을 참조하면서 본 발명의 실시형태를 설명한다. 동일 구성 요소 또는 동일 처리에는 동일한 부호를 할당하여 중복 설명을 생략하는 경우가 있다. 또한, 각 실시형태에서 취급하는 음향 디지털 신호(입력 음향 신호)는 음성이나 악음(樂音) 등의 음향 신호가 디지탈화된 신호이다. 각 실시형태에서는, 입력되는 음향 디지털 신호가 소정의 시간 구간의 시간 영역 신호이며, 음향 디지털 신호를 주파수 영역 신호로 변환하고, 또한 파워 스펙트럼 포락 계수열을 사용하여 당해 주파수 영역 신호를 정규화하여 얻어지는 열이, 부호화 대상의 샘플열(입력 음향 신호에 유래하는 샘플열)인 것을 상정하고 있다. 그러나, 입력된 음향 디지털 신호가 소정의 시간 구간의 시간 영역 신호이며, 당해 음향 디지털 신호 자체가 부호화 대상의 샘플열이어도 되고, 당해 음향 디지털 신호에 대하여 선형 예측 분석을 하여 얻어진 잔차 신호가 부호화 대상의 샘플열이어도 되고, 당해 음향 디지털 신호로부터 변환된 주파수 영역 신호가 부호화 대상의 샘플열이어도 된다. 또는, 입력된 음향 디지털 신호가 소정 구간의 주파수 영역 신호(소정의 시간 구간에 대응하는 주파수 영역 신호, 또는 당해 주파수 영역 신호의 소정의 주파수 구간의 주파수 영역 신호)이며, 당해 음향 디지털 신호 자체가 부호화 대상의 샘플열이어도 되고, 당해 음향 디지털 신호로부터 변환된 시간 영역 신호가 부호화 대상의 샘플열이어도 되고, 그 시간 영역 신호에 대하여 선형 예측 분석을 하여 얻어진 잔차 신호가 부호화 대상의 샘플열이어도 된다. 즉, 입력되는 음향 디지털 신호는 시간 영역 신호여도 주파수 영역 신호여도 되고, 부호화 처리의 대상의 샘플열도 시간 영역 신호여도 주파수 영역 신호여도 된다. 또한 시간 영역 신호로부터 주파수 영역 신호로의 변환 방법 및 주파수 영역 신호로부터 시간 영역 신호로의 변환 방법에 한정은 없으며, 예를 들면, MDCT(Modified Discrete Cosine Transform)나 DCT(Discrete Cosine Transform) 및 그것들의 역변환 등을 사용할 수 있다. Embodiments of the present invention will be described with reference to the drawings. The same reference numerals are assigned to the same component or the same process, and redundant description may be omitted. In addition, the acoustic digital signal (input acoustic signal) handled in each embodiment is a signal in which acoustic signals such as voice or musical tones are digitized. In each embodiment, the input acoustic digital signal is a time-domain signal of a predetermined time interval, and the acoustic digital signal is converted into a frequency domain signal, and a column obtained by normalizing the frequency domain signal using the power spectrum envelope coefficient string Is a sample string to be encoded (a sample string derived from an input acoustic signal). However, if the input acoustic digital signal is a time-domain signal of a predetermined time interval, the acoustic digital signal itself may be a sample stream to be encoded, and a residual signal obtained by performing linear prediction analysis on the acoustic digital signal may be a sample- Sample stream, and the frequency domain signal converted from the acoustic digital signal may be a sample stream to be encoded. Alternatively, if the inputted acoustic digital signal is a frequency domain signal of a predetermined section (a frequency domain signal corresponding to a predetermined time interval or a frequency domain signal of a predetermined frequency domain of the frequency domain signal) The time-domain signal converted from the acoustic digital signal may be a sample stream to be encoded, and the residual signal obtained by performing a linear prediction analysis on the time-domain signal may be a sample stream to be encoded. That is, the inputted acoustic digital signal may be either a time domain signal or a frequency domain signal, and a sample stream to be subjected to the encoding processing may be a time domain signal or a frequency domain signal. Also, there is no limitation on a method of converting a time domain signal into a frequency domain signal and a method of converting a frequency domain signal into a time domain signal. For example, a modified discrete cosine transform (MDCT) or a discrete cosine transform (DCT) Inverse transformation and the like can be used.

상기의 상정에 기초하여, 각 실시형태에서는, 부호화 장치가 주파수 영역 변환부, 파워 스펙트럼 포락 계수열 계산부 및 가중 포락 정규화부를 갖고, 가중 포락 정규화부에서 얻어진 샘플열이 양자화부에 입력되는 예를 제시한다. 그렇지만, 입력된 음향 디지털 신호 자체를 부호화 대상의 샘플열로 하는 경우에는, 예를 들면, 주파수 영역 변환부, 파워 스펙트럼 포락 계수열 계산부 및 가중 포락 정규화부가 생략되고, 음향 디지털 신호의 샘플열이 그대로 양자화부에 입력된다. 입력된 시간 영역 신호인 음향 디지털 신호에 대하여 선형 예측 분석을 하여 얻어진 잔차 신호를 부호화 대상의 샘플열로 하는 경우에는, 예를 들면, 부호화 장치가 주파수 영역 변환부, 파워 스펙트럼 포락 계수열 계산부 및 가중 포락 정규화부 대신에 음향 디지털 신호를 입력으로 하여 선형 예측 계수 또는 그것들로 변환 가능한 계수를 얻는 선형 예측부 및 당해 선형 예측 계수에 대응하는 선형 예측 필터와 음향 디지털 신호로부터 예측 잔차를 얻는 잔차 계산부를 갖고, 당해 잔차 신호의 샘플열이 양자화부에 입력된다. 입력된 시간 영역 신호인 음향 디지털 신호로부터 변환된 주파수 영역 신호를 부호화 대상의 샘플열로 하는 경우에는, 예를 들면, 파워 스펙트럼 포락 계수열 계산부 및 가중 포락 정규화부가 생략되고, 주파수 영역 변환부에서 얻어진 주파수 영역 신호의 샘플열이 양자화부에 입력된다. 입력된 주파수 영역 신호인 음향 디지털 신호로부터 변환된 시간 영역 신호를 부호화 대상의 샘플열로 하는 경우에는, 예를 들면, 부호화 장치가, 주파수 영역 변환부, 파워 스펙트럼 포락 계수열 계산부 및 가중 포락 정규화부 대신에 음향 디지털 신호를 시간 영역 신호로 변환하는 시간 영역 변환부를 갖고, 당해 시간 영역 신호의 샘플열이 양자화부에 입력된다. 입력된 주파수 영역 신호인 음향 디지털 신호로부터 변환된 시간 영역 신호에 대하여 선형 예측 분석을 하여 얻어진 잔차 신호를 부호화 대상의 샘플열로 하는 경우에는, 예를 들면, 부호화 장치가 주파수 영역 변환부, 파워 스펙트럼 포락 계수열 계산부 및 가중 포락 정규화부 대신에 시간 영역 변환부, 선형 예측부 및 잔차 계산부를 갖고, 잔차 계산부에서 얻어진 잔차 신호의 샘플열이 양자화부에 입력된다. On the basis of the above assumption, in each of the embodiments, the encoder has a frequency domain transformer, a power spectral envelope coefficient column calculator, and a weighted envelope normalizer, and an example in which the sample string obtained in the weighted envelope normalizer is input to the quantizer present. However, in the case where the input acoustic digital signal itself is used as a sample sequence to be encoded, for example, a frequency domain transform unit, a power spectral envelope coefficient column calculating unit, and a weighted envelope normalizing unit are omitted, Is directly input to the quantization unit. When a residual signal obtained by performing a linear prediction analysis on an input acoustic digital signal as a time-domain signal is used as a sample stream to be encoded, for example, the encoding apparatus includes a frequency domain transform unit, a power spectrum envelope coefficient column calculator, A linear prediction unit that receives an acoustic digital signal as input and obtains a linear prediction coefficient or a coefficient convertible thereto, a linear prediction filter that corresponds to the linear prediction coefficient, and a residual calculation unit that obtains a prediction residual from the acoustic digital signal And a sample sequence of the residual signal is input to the quantization unit. For example, the power spectral envelope coefficient column calculator and the weighted envelope normalizer are omitted in the case where the frequency-domain signal converted from the input digital signal as the input time-domain signal is used as the sample string to be encoded, A sample sequence of the obtained frequency domain signal is input to the quantization section. In the case where the time-domain signal converted from the acoustic digital signal, which is the input frequency-domain signal, is used as the sample string to be coded, for example, the coding apparatus includes a frequency domain transformer, a power spectrum envelope coefficient column calculator and a weighted envelope normalization And a time domain converter for converting the acoustic digital signal into a time domain signal instead of the time domain signal. The sample sequence of the time domain signal is input to the quantizer. When a residual signal obtained by performing a linear prediction analysis on a time-domain signal transformed from an acoustic digital signal, which is an input frequency-domain signal, is used as a sample stream to be encoded, for example, A time-domain transform unit, a linear predictor, and a residual calculating unit instead of the envelope coefficient column calculating unit and the weighted envelop normalizing unit, and the sample sequence of the residual signal obtained by the residual calculating unit is input to the quantizing unit.

[제 1 실시형태][First Embodiment]

<부호화 장치(100)>&Lt; Encoder 100 >

도 2를 참조하여 제 1 실시형태의 부호화 장치(100)가 행하는 부호화 처리를 설명한다. The encoding process performed by the encoding apparatus 100 of the first embodiment will be described with reference to Fig.

<주파수 영역 변환부(101)><Frequency Domain Conversion Unit 101>

주파수 영역 변환부(101)는 소정의 시간 구간인 프레임 단위로, 입력된 음향 디지털 신호(입력 음향 신호)를 주파수 영역의 N점의 MDCT 계수열(X(1),···, X(N))로 변환하여 출력한다. 단, N은 양의 정수이다. The frequency domain transforming unit 101 transforms the input acoustic digital signal (input acoustic signal) into N MDCT coefficient strings in the frequency domain (X (1), ..., X (N )) And outputs it. However, N is a positive integer.

<파워 스펙트럼 포락 계수열 계산부(102)>&Lt; Power spectral envelope coefficient arithmetic unit 102 >

파워 스펙트럼 포락 계수열 계산부(102)는 프레임 단위의 음향 디지털 신호 에 대한 선형 예측 분석을 행하여 선형 예측 계수를 구하고, 그 선형 예측 계수를 사용하여 N점의 음향 디지털 신호의 파워 스펙트럼 포락 계수열(W(1),···, W(N))을 얻어 출력한다. The power spectral envelope coefficient arithmetic unit 102 calculates a linear predictive coefficient by performing a linear prediction analysis on an acoustic digital signal on a frame basis and calculates a power spectral envelope coefficient column of the acoustic digital signal of N points using the linear predictive coefficient W (1), ..., W (N)).

<가중 포락 정규화부(103)><Weighted-envelope normalization unit 103>

가중 포락 정규화부(103)는 파워 스펙트럼 포락 계수열 계산부(102)가 얻은 파워 스펙트럼 포락 계수열을 사용하여, 주파수 영역 변환부(101)가 얻은 MDCT 계수열의 각 계수를 정규화하고, 가중 정규화 MDCT 계수열(XN(1),···, XN(N))을 출력한다. 여기에서는 청각적으로 변형이 작아지는 양자화의 실현을 위해, 가중 포락 정규화부(103)는 파워 스펙트럼 포락을 약해지게 한 가중 파워 스펙트럼 포락 계수열을 사용하여, 프레임 단위로 MDCT 계수열의 각 계수를 정규화한다. 이 결과, 가중 정규화 MDCT 계수열(XN(1),···, XN(N))은 입력된 MDCT 계수열 정도의 큰 진폭의 경사나 진폭의 요철을 갖지 않지만, 음향 디지털 신호의 파워 스펙트럼 포락 계수열과 유사한 대소 관계를 갖는 것, 즉 낮은 주파수에 대응하는 계수측의 영역에 약간 큰 진폭을 갖고, 피치 주기에 기인하는 미세구조를 갖는 것이 된다. The weighted envelope normalization unit 103 normalizes each coefficient of the MDCT coefficient sequence obtained by the frequency domain transform unit 101 using the power spectral envelope coefficient sequence obtained by the power spectrum envelope coefficient column calculation unit 102 and outputs the weighted normalized MDCT And outputs the coefficient sequence X N (1), ..., X N (N). Here, in order to realize quantization in which the deformation becomes small audibly, the weighted envelope normalization unit 103 normalizes each coefficient of the MDCT coefficient column in frame units by using a weighted power spectral envelope coefficient column that weakens the power spectrum envelope do. As a result, the weighted normalized MDCT coefficient columns (X N (1), ..., X N (N)) do not have irregularities of inclination or amplitude of a large amplitude about the input MDCT coefficient column, Has a similar magnitude to the spectral envelope coefficient column, that is, has a slightly larger amplitude in the area on the coefficient side corresponding to the lower frequency, and has a fine structure due to the pitch period.

[가중 포락 정규화 처리의 구체예][Specific example of weighted envelope normalization processing]

N점의 MDCT 계수열의 각 계수(X(1),···, X(N))에 대응하는 파워 스펙트럼 포락 계수열의 각 계수(W(1),···, W(N))는 선형 예측 계수를 주파수 영역으로 변환하여 얻을 수 있다. 예를 들면, 전극형 모델인 p차 자기 회귀 과정에 의해(단 p는 양의 정수), 시각(t)의 시간 신호(x(t))는 p 시점까지 거슬러 올라간 과거의 자기 자신의 값(x(t-1),···, X(t-p))과 예측 잔차(e(t))와 선형 예측 계수(α1,···,αp)에 의해 식 (1)로 표시된다. 이 때, 파워 스펙트럼 포락 계수열의 각 계수(W(n))[1≤n≤N]는 식 (2)로 표시된다. exp(·)은 네이피어수를 밑으로 하는 지수함수, j는 허수 단위, σ2은 예측 잔차 에너지이다. W (N) of the power spectral envelope coefficient column corresponding to each coefficient (X (1), ..., X (N)) of the MDCT coefficient column of N points is linear Can be obtained by converting the prediction coefficients into the frequency domain. For example, the time signal x (t) at time t can be obtained by a p-th order autoregressive process (where p is a positive integer), which is an electrode model, by x (t-1), ··· , x (tp)) and a prediction residual (e (t)) and a linear predictive coefficient (α 1, ···, α p ) is represented by the formula (1). At this time, each coefficient (W (n)) [1? N? N] of the power spectral envelope coefficient column is expressed by equation (2). exp (·) is an exponential function whose number is lower than the number of Napier, j is an imaginary unit, and σ 2 is the predicted residual energy.

(수식 1)(Equation 1)

Figure 112017054077375-pat00001
Figure 112017054077375-pat00001

선형 예측 계수는 주파수 영역 변환부(101)에 입력된 음향 디지털 신호를 가중 포락 정규화부(103)에 의해 선형 예측 분석하여 얻어진 것이어도 되고, 부호화 장치(100) 내에 있는 도시하지 않은 다른 수단에 의해 음향 디지털 신호를 선형 예측 분석하여 얻어진 것이어도 된다. 이러한 경우에는, 가중 포락 정규화부(103)가 선형 예측 계수를 사용하여 파워 스펙트럼 포락 계수열의 각 계수(W(1),···, W(N))를 구한다. 또한 부호화 장치(100) 내에 있는 다른 수단(파워 스펙트럼 포락 계수열 계산부(102) 등)에 의해 파워 스펙트럼 포락 계수열의 각 계수(W(1),···, W(N))가 이미 얻어지고 있는 경우에는, 가중 포락 정규화부(103)는 이 파워 스펙트럼 포락 계수열의 각 계수(W(1),···, W(N))를 사용할 수 있다. 또한, 복호 장치에서도 부호화 장치(100)에서 얻어진 값과 동일한 값을 얻을 필요가 있기 때문에, 양자화된 선형 예측 계수 및/또는 파워 스펙트럼 포락 계수열이 이용된다. 이후의 설명에서, 특별히 설명이 없는 한, 「선형 예측 계수」또는 「파워 스펙트럼 포락 계수열」은 양자화된 선형 예측 계수 또는 파워 스펙트럼 포락 계수열을 의미한다. 또한 선형 예측 계수는, 예를 들면, 종래적인 부호화 기술에 의해 부호화되어 예측 계수 부호가 복호측으로 전송된다. 종래적인 부호화 기술이란, 예를 들면, 선형 예측 계수 자체에 대응하는 부호를 예측 계수 부호로 하는 부호화 기술, 선형 예측 계수를 LSP 패러미터로 변환하고 LSP 패러미터에 대응하는 부호를 예측 계수 부호로 하는 부호화 기술, 선형 예측 계수를 PARCOR 계수로 변환하여 PARCOR 계수에 대응하는 부호를 예측 계수 부호로 하는 부호화 기술 등이다. 부호화 장치(100) 내에 있는 다른 수단에 의해 파워 스펙트럼 포락 계수열이 얻어지는 구성인 경우에는, 부호화 장치(100) 내에 있는 다른 수단에 있어서 선형 예측 계수가 종래적인 부호화 기술에 의해 부호화되어 예측 계수 부호가 복호측으로 전송된다.The linear predictive coefficient may be obtained by linear predictive analysis of the acoustic digital signal input to the frequency domain transform unit 101 by the weighted envelope normalization unit 103 or by other means not shown in the encoding apparatus 100 It may be obtained by linear prediction analysis of an acoustic digital signal. In this case, the weighted envelope normalization section 103 uses the linear prediction coefficients to obtain the respective coefficients W (1), ..., W (N) of the power spectral envelope coefficient row. (W (1), ..., W (N)) of the power spectral envelope coefficient column are already obtained by other means (such as the power spectral envelope coefficient column calculating section 102) in the encoding apparatus 100 The weighted envelope normalization unit 103 can use the respective coefficients W (1), ..., W (N) of this power spectral envelope coefficient column. Also, since it is necessary to obtain the same value as that obtained by the encoding apparatus 100 also in the decoding apparatus, quantized linear prediction coefficients and / or power spectral envelope coefficient columns are used. In the following description, &quot; linear prediction coefficient &quot; or &quot; power spectral envelope coefficient column &quot; means a quantized linear prediction coefficient or power spectral envelope coefficient column unless otherwise specified. Further, the linear prediction coefficients are coded by, for example, a conventional coding technique, and the prediction coefficient codes are transmitted to the decoding side. Conventional encoding techniques include, for example, a coding technique that uses a code corresponding to the linear prediction coefficient itself as a prediction coefficient code, a coding technique that converts a linear prediction coefficient to an LSP parameter and uses a code corresponding to the LSP parameter as a prediction coefficient code A coding technique for converting a linear prediction coefficient into a PARCOR coefficient, and using a code corresponding to the PARCOR coefficient as a prediction coefficient code. In the case where the power spectral envelope coefficient sequence is obtained by other means in the encoding apparatus 100, the linear prediction coefficients are encoded by the conventional encoding technique in other means in the encoding apparatus 100, And transmitted to the decoding side.

여기에서는, 가중 포락 정규화 처리의 구체예로서 2개의 예를 제시하는데, 본 발명에서는 이것들의 예에 한정되는 것은 아니다.Here, two specific examples of the weighted envelope normalization process are presented, but the present invention is not limited to these examples.

<예 1><Example 1>

가중 포락 정규화부(103)는 MDCT 계수열의 각 계수(X(1),···, X(N))를 당해 각 계수에 대응하는 파워 스펙트럼 포락 계수열의 각 계수의 보정값(Wγ(1),···, Wγ(N))으로 제산함으로써, 가중 정규화 MDCT 계수열의 각 계수(X(1)/Wγ(1),···, X(N)/Wγ(N))을 얻는 처리를 행한다. 보정값(Wγ(n))[1≤n≤N]은 식 (3)으로 주어진다. 단, γ는 1 이하의 양의 상수이며, 파워 스펙트럼 정수 계수를 약해지게 하는 상수이다.The weighted envelope normalization unit 103 multiplies each coefficient (X (1), ..., X (N)) of the MDCT coefficient column by the correction value W ? (1 ), ···, W γ (N) by dividing a), the weighted normalized MDCT coefficients of columns for each coefficient (X (1) / W γ (1), ···, X (N) / W γ (N)) Is obtained. The correction value W ? (N) (1 ? N? N) is given by equation (3). However,? Is a positive constant of 1 or less and is a constant that weakens the power spectral coefficient.

(수식 2)(Equation 2)

Figure 112017054077375-pat00002
Figure 112017054077375-pat00002

<예 2><Example 2>

가중 포락 정규화부(103)는 MDCT 계수열의 각 계수(X(1),···, X(N))를 당해 각 계수에 대응하는 파워 스펙트럼 포락 계수열의 각 계수의 β승(0<β<1)의 값(W(1)β,···, W(N)β)으로 제산함으로써, 가중 정규화 MDCT 계수열의 각 계수(X(1)/W(1)β,···, X(N)/W(N)β)를 얻는 처리를 행한다. The weighted envelope normalization unit 103 multiplies each coefficient (X (1), ..., X (N)) of the MDCT coefficient string by the beta power of each coefficient of the power spectrum envelope coefficient column corresponding to each coefficient (0 < 1) of the value (W (1) β, ··· , W (N) β) by dividing, the weighted normalized MDCT coefficients of columns for each coefficient (X (1) / W ( 1) β, ···, X ( N) / W (N) ? ).

이 결과, 프레임 단위의 가중 정규화 MDCT 계수열이 얻어지는데, 가중 정규화 MDCT 계수열은 입력된 MDCT 계수열 정도의 큰 진폭의 경사나 진폭의 요철을 가지지 않지만, 입력된 MDCT 계수열의 파워 스펙트럼 포락과 유사의 대소 관계를 갖는 것, 즉 낮은 주파수에 대응하는 계수측의 영역에 약간 큰 진폭을 갖고, 피치 주기에 기인하는 미세구조를 갖는 것으로 된다. As a result, a weighted normalized MDCT coefficient column in frame units is obtained. The weighted normalized MDCT coefficient column does not have a large amplitude inclination or amplitude irregularity about the input MDCT coefficient column, but is similar to the power spectrum envelope of the input MDCT coefficient column That is, the area on the coefficient side corresponding to the low frequency has a slightly large amplitude and has a fine structure due to the pitch period.

또한, 가중 포락 정규화 처리에 대응하는 역처리, 즉 가중 정규화 MDCT 계수열로부터 MDCT 계수열을 복원하는 처리가 복호측에서 행해지기 때문에, 파워 스펙트럼 포락 계수열로부터 가중 파워 스펙트럼 포락 계수열을 산출하는 방법을 부호화측과 복호측에서 공통의 설정으로 해 두는 것이 필요하다. In addition, since the inverse process corresponding to the weighted envelope normalization process, that is, the process of restoring the MDCT coefficient sequence from the weighted normalized MDCT coefficient sequence is performed on the decoding side, a method of calculating the weighted power spectrum envelope coefficient column from the power spectrum envelope coefficient sequence To be common to the encoding side and the decoding side.

<초기화부(104)><Initialization Unit 104>

초기화부(104)는 이득(글로벌 게인)(g)의 초기값을 설정한다. 이득의 초기값은 가중 정규화 MDCT 계수열(XN(1),···, XN(N))의 에너지와 가변길이 부호화부(106)가 출력하는 부호로 미리 배분된 비트수 등으로 정할 수 있다. 또한 이득(g)의 초기값은 양의 값이다. 이하, 가변길이 부호화부(106)가 출력하는 부호로 미리 배분된 비트수를 배분 비트수(B)라고 부른다. 또한 초기화부는 이득의 갱신 횟수의 초기값으로서 0을 설정한다. The initialization unit 104 sets the initial value of the gain (global gain) g. The initial value of the gain is determined by the energy of the weighted normalized MDCT coefficient column (X N (1), ..., X N (N)) and the number of bits allocated in advance by the code output from the variable length coding unit 106 . The initial value of the gain g is a positive value. Hereinafter, the number of bits allocated in advance to the code output from the variable length coding unit 106 is referred to as a distribution bit number (B). Further, the initialization unit sets 0 as an initial value of the number of times of updating of the gain.

<이득 갱신 루프 처리부(130)>&Lt; Gain Update Loop Processor 130 >

이득 갱신 루프 처리부(130)는 가중 정규화 MDCT 계수열(XN(1),···, XN(N)) 중의 각 계수를 이득으로 제산하여 얻어지는 계열(정수값 샘플에 의한 열)을 소정의 비트수로 부호화 할 수 있게 이득을 결정하고, 가중 정규화 MDCT 계수열(XN(1),···, XN(N)) 중의 각 계수를 결정한 이득으로 제산하여 얻어지는 계열(정수값 샘플에 의한 열)을 가변길이 부호화하여 얻은 정수 신호 부호와, 결정한 이득을 부호화 하여 얻은 이득 부호(이득에 대응하는 이득 부호)를 출력한다. 이득 갱신 루프 처리부(130)는 상기의 정수값 샘플에 의한 열을 부호화하여 얻어지는 부호의 비트수와, 소정의 배분 비트수(B)와의 차가 클수록, 갱신 전의 이득과 갱신 후의 이득과의 차가 커지도록 이득의 값을 갱신한다. The gain update loop processing unit 130 sets a series obtained by dividing each coefficient in the weighted normalized MDCT coefficient columns X N (1), ..., X N (N) by a gain (Integer number of samples) obtained by dividing the coefficient in the weighted normalized MDCT coefficient string (X N (1), ..., X N (N)) by the determined gain, , And a gain code (gain code corresponding to gain) obtained by coding the determined gain are output. The gain update loop processing unit 130 sets the difference between the gain before update and the gain after update to be larger as the difference between the number of bits of the code obtained by encoding the column by the integer value samples and the predetermined number of distribution bits (B) And updates the value of the gain.

이득 갱신 루프 처리부(130)는 양자화부(105)와, 가변길이 부호화부(106)와, 판정부(107)와, 이득 확대 갱신부(131)와, 이득 축소 갱신부(132)와, 버림부(116)와, 이득 부호화부(117)를 포함한다. The gain update loop processing unit 130 includes a quantization unit 105, a variable length coding unit 106, a determination unit 107, a gain expansion update unit 131, a gain reduction update unit 132, Unit 116, and a gain encoding unit 117. [

<양자화부(105)><Quantization Unit 105>

양자화부(105)는 입력된 가중 정규화 MDCT 계수열(XN(1),···, XN(N))(소정 구간의 입력 음향 신호에 유래하는 샘플열)의 각 계수(각 샘플)를 이득(g)으로 나누어 얻어지는 값을 양자화하고, 정수값(양자화 정규화된 샘플)에 의한 계열인 양자화 정규화된 계수계열(XQ(1),···, XQ(N))을 얻어 출력한다. The quantization unit 105 quantizes each coefficient (each sample) of input weighted normalized MDCT coefficient columns X N (1), ..., X N (N) (sample sequences derived from input acoustic signals of a predetermined section) Quantized normalized coefficient series X Q (1), ..., X Q (N)), which is a series based on an integer value (a quantized normalized sample) do.

또한 양자화부(105)는 가장 낮은 주파수측에 있는 양자화 정규화된 계수로부터, 값이 0이 아닌 가장 높은 주파수측에 있는 양자화 정규화된 계수까지의 샘플수(s)를 계수하고, 이 샘플수(s)를 출력한다. The quantization unit 105 also counts the number of samples (s) from the quantized normalized coefficient on the lowest frequency side to the quantized normalized coefficient on the highest frequency side where the value is not 0, ).

<가변길이 부호화부(106)><Variable-length coding unit 106>

가변길이 부호화부(106)는 입력된 양자화 정규화된 계수계열(XQ(1),···, XQ(N))을 가변길이 부호화하여 부호(샘플열 부호)를 얻어 출력한다. 이 부호를 정수 신호 부호라고 부른다. 이 가변길이 부호화에는, 예를 들면, 양자화 정규화된 계수계열 중의 복수의 계수를 정리하여 부호화하는 방법을 사용한다. 또한 가변길이 부호화부(106)는 가변길이 부호화에서 얻은 정수 신호 부호의 비트수를 계측한다. 본 형태에서는, 이 비트수를 소비 비트수(c)라고 부른다. The variable length coding unit 106 outputs the inputted quantized normalized coefficient sequence (X Q (1), ··· , X Q (N)) to the variable-length encoding takes the sign (sign of samples). This code is called an integer signal code. In this variable-length coding, for example, a method of arranging a plurality of coefficients in the quantized normalized coefficient sequence and encoding them is used. The variable length coding unit 106 measures the number of bits of the integer signal code obtained in the variable length coding. In this embodiment, this number of bits is called the number of consumed bits (c).

<판정부(107)>&Lt; Judgment section 107 >

판정부(107)는, 이득의 갱신 횟수가 미리 정한 횟수인 경우에는, 이득(g), 정수 신호 부호, 소비 비트수(c)를 출력한다. The determination unit 107 outputs the gain g, the integer signal code, and the number of consumed bits c when the number of times of updating the gain is a predetermined number.

이득의 갱신 횟수가 미리 정한 횟수 미만인 경우에는, 가변길이 부호화부(106)가 계측한 소비 비트수(c)가 배분 비트수(B)보다 많은 경우에는 이득 확대 갱신부(131)가, 가변길이 부호화부(106)가 계측한 소비 비트수(c)가 배분 비트수(B)보다 적은 경우에는 이득 축소 갱신부(132)가 다음 처리를 행하도록 제어한다. 또한, 가변길이 부호화부(106)가 계측한 소비 비트수(c)가 배분 비트수(B)와 동일한 경우에는, 판정부(107)는 이득(g), 정수 신호 부호, 소비 비트수(c)를 출력한다. When the number of times of updating of the gain is less than the predetermined number, the gain enlargement updating unit 131 updates the variable length encoding unit 106 when the number of consumed bits c measured by the variable length coding unit 106 is larger than the distribution bit number B, When the number of consumed bits c measured by the encoding unit 106 is smaller than the number of allocated bits B, the gain reduction updating unit 132 performs control to perform the next process. When the number of consumed bits c measured by the variable length coding unit 106 is equal to the number of allocated bits B, the determining unit 107 determines the gain g, the integer signal code, and the number of consumed bits c ).

<이득 확대 갱신부(131)><Gain Expansion Updating Unit 131>

이득 확대 갱신부(131)는 금회의 이득(g)의 값보다도 큰 값(g'>g)을 새로운 이득으로서 설정한다. 이득 확대 갱신부(131)는 샘플수 계측부(118)와, 이득 하한 설정부(108)와, 제 1 분기부(109)와, 제 1 이득 갱신부(110)와, 이득 확대부(111)를 포함한다. The gain increase updating unit 131 sets a value (g '> g) larger than the current gain g as a new gain. The gain enlarging and updating unit 131 includes a sample number measuring unit 118, a gain lower limit setting unit 108, a first branching unit 109, a first gain updating unit 110, a gain enlarging unit 111, .

<샘플수 계측부(118)>&Lt; Sample number measuring section 118 >

샘플수 계측부(118)는, 소비 비트수(c)가 배분 비트수(B)보다 많은 경우에는, 판정부(107)가 출력한 정수 신호 부호 중, 소비 비트수(c)가 배분 비트수(B)를 상회하지 않도록, 높은 주파수측의 양자화 정규화된 계수에 대응하는 부호를 제거한 부호에 대응하는 양자화 정규화된 계수의 샘플수(t)를 출력한다. When the number of consumed bits c is larger than the number of allocated bits B, the number-of-samples measuring unit 118 sets the number of consumed bits c to the number of allocated bits B), the number of samples of the quantized normalized coefficient corresponding to the code from which the sign corresponding to the quantized normalized coefficient on the high frequency side is removed is output.

즉, 샘플수 계측부(118)는 소비 비트수(c)의 배분 비트수(B)에 대한 상회분(c-B)에 대응하는 부호(버림 부호)에 대응하는 높은 주파수측의 양자화 정규화된 계수를 양자화부(105)가 출력한 양자화 정규화된 계수계열로부터 제거한 나머지인, 대응하는 부호가 제거되지 않은 양자화 정규화된 계수의 샘플수(t)를 출력한다. 버림 부호의 예는, 가장 높은 주파수를 포함하는 영역 내의 1개 이상의 양자화 정규화된 계수에 대응하는 부호 중, 비트수가 c-B 이상이고 또한 최소의 부호이다. 바꿔 말하면, 낮은 주파수측의 양자화 정규화된 계수만을 부호화 대상으로 하고, 나머지의 높은 주파수측의 양자화 정규화된 계수를 부호화 대상으로 하지 않음으로써, 대응하는 가변길이 부호의 길이가 배분 비트수(B) 이하이고 또한 최대로 될 때의, 부호화 대상으로 삼는 양자화 정규화된 계수의 샘플수가 t이다. That is, the number-of-samples measuring unit 118 quantizes the high-frequency-side quantized normalized coefficient corresponding to the sign (decimal notation) corresponding to the upper fraction cB to the distribution bit number B of the consumed bit number c, (T) of the quantized normalized coefficient from which the corresponding sign has not been removed, which is the remainder obtained by removing the quantized normalized coefficient series output from the quantization normalized coefficient series outputted from the quantization normalized coefficient sequence output unit 105. [ An example of the discard code is that the number of bits corresponding to one or more quantized normalized coefficients in the region including the highest frequency is not less than c-B and is a minimum code. In other words, by setting only the quantized normalized coefficients on the low frequency side to be encoded and the remaining quantized normalized coefficients on the high frequency side as the encoding targets, the length of the corresponding variable length code is equal to or smaller than the distribution bit number B And the maximum number of samples of the quantized normalized coefficient to be encoded is t.

<이득 하한 설정부(108)>&Lt; Gain lower limit setting unit 108 >

소비 비트수(c)가 배분 비트수(B)보다 많은 경우에는, 또한 이득 하한 설정부(108)가 금회의 이득(g)의 값(당해 소비 비트수(c)에 대응하는 이득(g))을 이득의 하한값(gmin)으로서 설정한다(gmin←g). 이 이득의 하한값(gmin)은 적어도 이득의 값은 이것 이상이어야 하는 것을 의미한다. When the number of consumed bits c is larger than the number of allocated bits B, the gain lower limit setting unit 108 sets the value of the present gain g (the gain g corresponding to the consumed bit number c) ) Is set as the lower limit value (g min ) of the gain (g min? G). The lower limit value ( gmin ) of this gain means that the value of the gain should be at least above this value.

<제 1 분기부(109)>&Lt; First branch portion 109 >

이득 하한 설정부(108)에서 이득의 하한값(gmin)이 설정된 경우, 제 1 분기부(109)는, 이득의 상한값(gmax)이 이미 설정되어 있는 경우에는 제 1 이득 갱신부(110)가, 그렇지 않은 경우에는 이득 확대부(111)가 다음 처리를 행하도록 제어한다. If the gain lower limit setting unit 108, the lower limit value (g min) of a gain is set in the first branch 109, the first gain updating unit 110. If the upper limit value (g max), the gain is already set And if not, controls the gain expanding unit 111 to perform the next process.

<제 1 이득 갱신부(110)><First Gain Updating Unit 110>

제 1 이득 갱신부(110)는 금회의 이득(g)의 값(소비 비트수(c)에 대응하는 이득(g))과 이득의 상한값(gmax) 사이의 값을 이득(g)의 새로운 값으로 한다. 이것은 최적의 이득의 값은 금회의 이득(g)의 값과 이득의 상한값(gmax) 사이에 존재하기 때문이다. 제 1 이득 갱신부(110)는, 예를 들면, 금회의 이득(g)의 값과 이득의 상한값(gmax)의 평균값을 새롭게 이득(g)으로서 설정한다(g←(g+gmax)/2). 금회의 이득(g)의 값은 이득의 하한값(gmin)으로서 설정되어 있으므로, 이득의 상한값(gmax)과 이득의 하한값(gmin)의 평균값을 새롭게 이득(g)의 값으로서 설정한다고도 할 수 있다(g←(gmax+gmin)/2). 그 후에 양자화부(105)의 처리로 되돌아온다. The first gain updating unit 110 sets a value between the present value of the gain g (the gain g corresponding to the number of consumed bits c) and the upper limit value g max of the gain to the new Value. This is because the value of the optimum gain exists between the value of the current gain g and the upper limit value g max of the gain. First gain update unit 110, for example, is set as the gain (g) a new mean value of the gain (g) values and the gain upper limit value (g max) of the current time (g ← (g + g max) /2). The value of the gain (g) for this time is also that it is set as a lower limit value (g min) of the gain, the new mean value of the upper limit value (g max) and the gain lower limit value (g min) of the gain set to the value of the gain (g) (G? ( Gmax + gmin ) / 2). And then returns to the processing of the quantization unit 105. [

<이득 확대부(111)><Gain Expansion Unit 111>

이득 확대부(111)는 가장 낮은 주파수측에 있는 양자화 정규화된 계수로부터 값이 0이 아닌 가장 높은 주파수측에 있는 양자화 정규화된 계수까지의 샘플수(s)로부터, 샘플수 계측부(118)가 출력한 샘플수(t)를 감산하여 얻어지는 값(u=s-t)이 클수록 금회의 이득으로부터 새로운 이득으로의 증분이 커지도록 한다. 예를 들면, 새로운 이득(g)←금회의 이득(g)×(1+u/N×α)로 한다. 여기에서, α는 미리 정한 양의 상수로 한다. The gain enlarging unit 111 obtains the number of samples (s) from the quantized normalized coefficient on the lowest frequency side to the quantized normalized coefficient on the highest frequency side where the value is not 0, The larger the value (u = st) obtained by subtracting the number of samples t, the larger the increment from the current gain to the new gain. For example, the new gain (g) ← the gain (g) of this time × (1 + u / N × α). Here, α is a predetermined constant.

또는, 이득 확대부(111)는 부호화 대상의 모든 샘플수(N)로부터, 샘플수 계측부(118)가 출력한 샘플수(t)를 감산하여 얻어지는 v=N-t가 클수록 금회의 이득으로부터 새로운 이득으로의 증분이 커지도록 한다. 예를 들면, 새로운 이득(g)←금회의 이득(g)×(1+v/N×α)으로 한다. Alternatively, the gain expanding unit 111 may increase the gain from the present gain to a new gain as v = Nt obtained by subtracting the number of samples (t) outputted by the number-of-samples measuring unit 118 from the number of samples N to be encoded . For example, the new gain (g) ← the gain (g) of this time × (1 + v / N × α).

즉 이득 확대부(111)는 양자화 정규화된 샘플열의 일부 또는 모든 샘플수로부터, 상기의 대응하는 부호가 제거되지 않은 양자화 정규화된 계수의 샘플수를 감산하여 얻어지는 값이 클수록, 이득(g)의 값을 크게 증가시킨다. 그 후에 양자화부(105)의 처리로 되돌아온다. 바꿔 말하면, 이득 확대부(111)는 양자화 정규화된 샘플열의 일부 또는 모든 샘플수로부터, 상기의 대응하는 부호가 제거되지 않은 양자화 정규화된 계수의 샘플수를 감산하여 얻어지는 값이 클수록, 이득의 갱신 전의 값으로부터 갱신 후의 값으로의 증분이 커지도록 이득의 값을 갱신하고, 그 후의 양자화부(105)의 처리를 행하게 한다. That is, the gain enlarging unit 111 increases the value of the gain g (g) as the value obtained by subtracting the number of samples of the quantized normalized coefficient from which a corresponding code is not removed from a part or all of the number of samples of the quantized normalized sample sequence, . And then returns to the processing of the quantization unit 105. [ In other words, the gain enlarging unit 111 increases the value obtained by subtracting the number of samples of the quantized normalized coefficient from which a corresponding code is not removed from a part or all the sample numbers of the quantized normalized sample sequence, The value of the gain is updated so that the increment from the value to the updated value becomes larger, and the subsequent processing of the quantization unit 105 is performed.

<이득 축소 갱신부(132)><Gain Reduction Updating Unit 132>

이득 축소 갱신부(132)는 금회의 이득(g)의 값보다도 작은 값(g'<g)을 새로운 이득으로서 설정한다. 이득 축소 갱신부(132)는 이득 상한 설정부(112)와, 제 2 분기부(113)와, 제 2 이득 갱신부(114)와, 이득 축소부(115)를 포함한다. The gain reduction updating unit 132 sets a value (g '<g) smaller than the current gain g as a new gain. The gain reduction unit 132 includes a gain upper limit setting unit 112, a second branching unit 113, a second gain updating unit 114, and a gain reducing unit 115.

<이득 상한 설정부(112)><Gain upper limit setting unit 112>

소비 비트수(c)가 배분 비트수(B)보다도 적은 경우에는, 이득 상한 설정부(112)가 금회의 이득(g)의 값(당해 소비 비트수(c)에 대응하는 이득(g)의 값)을 이득의 상한값(gmax)으로 설정한다(gmax←g). 이 이득의 상한값(gmax)은 적어도 이득의 값은 이것 이하이어야 하는 것을 의미한다. When the number of consumed bits c is smaller than the number of allocated bits B, the gain upper limit setting unit 112 sets the value of the present gain g (the gain g corresponding to the consumed bit number c) Value) is set to the upper limit value (g max ) of the gain (g max? G). The upper limit value ( gmax ) of this gain means that the value of the gain should be at least below this value.

<제 2 분기부(113)>
&Lt; Second branching part 113 >

*이득 상한 설정부(112)에서 이득의 상한값(gmax)이 설정된 경우, 제 2 분기부(113)는, 이득의 하한값(gmin)이 이미 설정되어 있는 경우에는 제 2 이득 갱신부(114)가, 그렇지 않은 경우에는 이득 축소부(115)가 다음 처리를 행하도록 제어한다. When the upper limit value g max of the gain is set in the gain upper limit setting unit 112, the second branching unit 113, if the lower limit value g min of the gain is already set, the second gain updating unit 114 ), And if not, controls the gain reduction unit 115 to perform the next process.

<제 2 이득 갱신부(114)>&Lt; Second gain updating unit 114 >

제 2 이득 갱신부(114)는 금회의 이득(g)의 값(소비 비트수(c)에 대응하는 이득(g)의 값)과, 이득의 하한값(gmin) 사이의 값을 이득(g)의 새로운 값으로 한다. 이것은 최적의 이득의 값은 금회의 이득(g)의 값과 이득의 하한값(gmin) 사이에 존재하기 때문이다. 제 2 이득 갱신부(114)는, 예를 들면, 금회의 이득(g)의 값과 이득의 하한값(gmin)의 평균값을 새로운 이득(g)의 값으로서 설정한다(g←(g+gmin)/2). 금회의 이득(g)의 값은 이득의 상한값(gmax)으로서 설정되어 있으므로, 이득의 상한값(gmax)과 이득의 하한값(gmin)의 평균값을 새롭게 이득(g)의 값으로서 설정한다고도 할 수가 있다(g←(gmax+gmin)/2). 그 후에 양자화부(105)의 처리로 되돌아온다. Second gain updating unit 114 is the value of the gain (g) of the current time values between (consumed bit number (the value of the gain (g) corresponding to c)), and the lower limit value (g min) of the gain the gain (g ) As the new value. This is because the value of the optimum gain is to exist between the lower limit value (g min) of a gain value and a gain (g) of the current time. Second gain update unit 114, for example, and sets the average value of the gain (g) the lower limit value (g min) of the value and the gain of the current time as the value of the new gain (g) (g ← (g + g min ) / 2). The value of the gain (g) for this time is also that it is set as the upper limit value (g max) of the gain, the new mean value of the upper limit value (g max) and the gain lower limit value (g min) of the gain set to the value of the gain (g) (G ← (g max + g min ) / 2). And then returns to the processing of the quantization unit 105. [

<이득 축소부(115)>&Lt; Gain reducing unit 115 >

이득 축소부(115)는, 배분 비트수(B)로부터 소비 비트수(c)를 감산하여 얻어지는 값인 잉여 비트수(B-c)가 클수록, 금회의 이득(g)의 값으로부터 새로운 이득(g)의 값으로의 감소분이 커지도록 한다. 단, 새로운 이득(g)의 값도 양의 값이다. 예를 들면, 새로운 이득(g)←금회의 이득(g)×(1-(B-c)/B×β)로 한다. 여기에서, β는 미리 정한 양의 상수로 한다. 즉 이득 축소부(115)는 배분 비트수(B)로부터 소비 비트수(c)를 감산하여 얻어지는 값(B-c)이 클수록 이득(g)의 값을 크게 감소시킨다. 그 후에 양자화부(105)의 처리로 되돌아온다. 바꿔 말하면, 이득 축소부(115)는 배분 비트수(B)로부터 소비 비트수(c)를 감산하여 얻어지는 값(B-c)이 클수록, 이득(g)의 갱신 전의 값으로부터 갱신 후의 값으로의 감소분이 커지도록 이득(g)의 값을 갱신하고, 그 후의 양자화부(105)의 처리를 행하게 한다. The gain reduction unit 115 reduces the gain of the new gain g from the value of the present gain g as the number of redundant bits Bc which is a value obtained by subtracting the consumption bit number c from the distribution bit number B, So that the decrease in the value is increased. However, the value of the new gain g is also a positive value. For example, the new gain (g) ← the gain (g) of this time × (1- (B-c) / B × β). Here, β is a predetermined constant. That is, the gain reduction unit 115 greatly reduces the value of the gain g as the value B-c obtained by subtracting the consumption bit number c from the distribution bit number B is larger. And then returns to the processing of the quantization unit 105. [ In other words, as the value Bc obtained by subtracting the number of consumed bits c from the number of allocated bits B from the number of allocated bits B is greater, the gain reduction unit 115 reduces the gain g from the value before update to the value after update The value of the gain g is updated so as to be larger, and the subsequent processing of the quantization unit 105 is performed.

<버림부(116)><Discard part 116>

버림부(116)는 판정부(107)가 출력한 소비 비트수(c)가 배분 비트수(B)보다 많은 경우에는, 판정부(107)가 출력한 정수 신호 부호 중, 소비 비트수(c)가 배분 비트수(B)를 상회하는 분만큼의 부호를 높은 주파수측의 양자화 정규화된 계수에 대응하는 부호로부터 제거한 것을 새로운 정수 신호 부호로서 출력한다. 즉 버림부(116)는 소비 비트수(c)의 배분 비트수(B)에 대한 상회분(c-B)에 대응하는 높은 주파수측의 양자화 정규화된 계수에 대응하는 부호(버림 부호)를 정수 신호 부호(샘플열 부호)로부터 제거함으로써 얻어지는, 나머지의 부호(버림 처리된 샘플열 부호)를 새로운 정수 신호 부호로서 출력한다.
When the number of consumed bits c output from the determining unit 107 is larger than the number of allocated bits B, the discarding unit 116 sets the number of consumed bits c (c) out of the integer signal codes output from the determining unit 107 ) Is removed from the code corresponding to the quantized normalized coefficient on the high frequency side by the number of codes which exceeds the distribution bit number (B), as a new integer signal code. That is, the discard unit 116 stores the sign (discard code) corresponding to the quantized normalized coefficient on the high frequency side corresponding to the upper fraction cB with respect to the distribution bit number B of the consumed bit number c as the integer signal code (Sampled column code) obtained by removing the residual code (sample code) from the sample code.

*<이득 부호화부(117)>&Lt; Gain coding unit 117 >

판정부(107)가 출력한 이득을 소정의 비트수로 부호화하여 이득 부호를 얻고, 출력한다. Obtains a gain code by encoding the gain output from the determining section 107 to a predetermined number of bits, and outputs the gain code.

[제 1 실시형태의 변형예][Modifications of First Embodiment]

<부호화 장치(150)>&Lt; Encoder 150 >

도 3을 참조하여 제 1 실시형태의 변형예의 부호화 장치(150)가 행하는 부호화 처리를 설명한다. 제 1 실시형태의 변형예의 부호화 장치(150)가 제 1 실시형태의 부호화 장치(100)와 상이한 것은 가변길이 부호화에서 얻은 정수 신호 부호의 비트수 대신에 정수 신호 부호의 추정 비트수를 소비 비트수(c)로 하는 점이다. 부호화 장치(150)는, 부호화 장치(100)의 이득 갱신 루프 처리부(130) 대신에 이득 갱신 루프 처리부(190)를 구비한다. 이득 갱신 루프 처리부(190)는 이득 갱신 루프 처리부(130)의 가변길이 부호화부(106), 판정부(107), 이득 확대 갱신부(131) 및 버림부(116) 대신에 비트수 추정부(156), 판정부(157), 이득 확대 갱신부(191) 및 가변길이 부호화부(159)를 구비한다. 이득 확대 갱신부(191)는 이득 확대 갱신부(131)의 이득 확대부(111) 및 샘플수 계측부(118) 대신에 이득 확대부(151) 및 샘플수 계측부(168)를 구비한다. The encoding process performed by the encoding apparatus 150 according to the modification of the first embodiment will be described with reference to FIG. The encoding apparatus 150 according to the modification of the first embodiment is different from the encoding apparatus 100 according to the first embodiment in that the estimated number of bits of the integer signal code is used as the number of consumed bits instead of the number of bits of the integer signal code obtained in the variable- (c). The encoding apparatus 150 includes a gain update loop processing unit 190 in place of the gain update loop processing unit 130 of the encoding apparatus 100. [ The gain update loop processing unit 190 includes a bit number estimation unit (not shown) in place of the variable length coding unit 106, the determination unit 107, the gain expansion update unit 131, and the shuffle unit 116 of the gain update loop processing unit 130 156, a determining section 157, a gain expansion updating section 191, and a variable length coding section 159. The gain enlarging and updating unit 191 includes a gain enlarging unit 151 and a sample number measuring unit 168 instead of the gain enlarging unit 111 and the sample number measuring unit 118 of the gain enlarging and updating unit 131. [

이하, 제 1 실시형태와의 차분에 대해서만 설명한다. Only differences from the first embodiment will be described below.

<비트수 추정부(156)>&Lt; Bit number estimation unit 156 >

비트수 추정부(156)는 양자화 정규화된 계수계열(XQ(1),···, XQ(N))을 가변길이 부호화하여 얻어지는 부호의 비트수의 추정값(추정 비트수)을 구하여 출력한다. 제 1 실시형태의 변형예에서는, 이 추정 비트수를 소비 비트수(c)라고 부른다. Bits estimation unit 156 is quantized normalized coefficient sequence (X Q (1), ···, X Q (N)), the estimated value of the number of bits of the code obtained by variable length coding to obtain (the number of estimated bit) output do. In the modified example of the first embodiment, this estimated bit number is called the consumed bit number c.

<판정부(157)>&Lt; Judgment section 157 >

판정부(157)는 이득의 갱신 횟수가 미리 정한 횟수인 경우에는, 이득(g), 양자화 정규화된 계수계열(XQ(1),···, XQ(N))을 출력한다. The determining section 157 outputs the gain g and the quantized normalized coefficient series X Q (1), ..., X Q (N) when the number of times of updating the gain is a predetermined number.

이득의 갱신 횟수가 미리 정한 횟수 미만인 경우에는, 비트수 추정부(156)가 추정한 소비 비트수(c)가 배분 비트수(B)보다 많은 경우에는 이득 확대 갱신부(191)가, 비트수 추정부(156)가 추정한 소비 비트수(c)가 배분 비트수(B)보다 적은 경우에는 이득 축소 갱신부(132)가 다음 처리를 행하도록 제어한다. 또한, 비트수 추정부(156)가 추정한 소비 비트수(c)가 배분 비트수(B)와 동일한 경우에는, 판정부(157)는 이득(g), 양자화 정규화된 계수계열(XQ(1),···, XQ(N))을 출력한다.If the number of times of updating of the gain is less than the predetermined number, the gain enlargement updating unit 191 sets the number of bits (c) when the number of consumed bits c estimated by the bit number estimating unit 156 is larger than the allocated bit number (B) When the number of consumed bits c estimated by the estimating unit 156 is smaller than the number of allocated bits B, the gain reduction updating unit 132 performs the following processing. When the number of consumed bits c estimated by the bit number estimating unit 156 is equal to the number of allocated bits B, the determining unit 157 determines the gain g, the quantized normalized coefficient sequence X Q ( 1), ..., X Q (N)).

<샘플수 계측부(168)>&Lt; Sample number measuring section 168 >

샘플수 계측부(168)는, 소비 비트수(c)가 배분 비트수(B)보다 많은 경우에는, 소비 비트수(c)의 배분 비트수(B)에 대한 상회분(c-B)에 대응하는 부호(버림 부호)의 대상이 되는 높은 주파수측의 양자화 정규화된 계수를 양자화부(105)가 출력한 양자화 정규화된 계수계열(XQ(1),···, XQ(N))로부터 제거한 나머지의 양자화 정규화된 계수의 샘플수(t)를 출력한다.When the number of consumed bits c is larger than the number of allocated bits B, the number-of-samples measuring section 168 sets the sign corresponding to the upper portion cB to the number of allocated bits B of the consumed bit number c (X Q (1), ..., X Q (N)) output from the quantization unit 105, which are the quantization normalized coefficients of the higher frequency side to which the quantization normalization coefficient (T) of the quantized normalized coefficients of the quantized coefficients.

<이득 확대부(151)><Gain Expansion Unit 151>

이득 확대부(151)는 제 1 실시형태의 이득 확대부(111)에서의 샘플수 계측부(118)가 출력한 샘플수(t) 대신에 샘플수 계측부(168)가 출력한 샘플수(t)를 사용하는 점을 제외하고 동일하다. The gain expanding section 151 is configured to change the number of samples t output by the sample number measuring section 168 instead of the number of samples t output by the sample number measuring section 118 in the gain expanding section 111 of the first embodiment, Is used.

즉, 이득 확대부(151)는 가장 낮은 주파수측에 있는 양자화 정규화된 계수로부터 값이 0이 아닌 가장 높은 주파수측에 있는 양자화 정규화된 계수까지의 샘플수(s)로부터, 샘플수 계측부(118)가 출력한 샘플수(t)를 감산하여 얻어지는 값(u=s-t)이 클수록 금회의 이득으로부터 새로운 이득으로의 증분이 커지도록 한다. 예를 들면, 새로운 이득(g)←금회의 이득(g)×(1+u/N×α)로 한다. 여기에서, α는 미리 정한 양의 상수로 한다. That is, the gain enlarging unit 151 obtains the number of samples (s) from the quantized normalized coefficient on the lowest frequency side to the quantized normalized coefficient on the highest frequency side where the value is not 0, The larger the value (u = st) obtained by subtracting the number of samples t output from the current gain, the larger the increment from the present gain to the new gain. For example, the new gain (g) ← the gain (g) of this time × (1 + u / N × α). Here, α is a predetermined constant.

또는, 이득 확대부(151)는, 부호화 대상의 모든 샘플수(N)로부터, 샘플수 계측부(118)가 출력한 샘플수(t)를 감산하여 얻어지는 v=N-t가 클수록 금회의 이득으로부터 새로운 이득으로의 증분이 커지도록 한다. 예를 들면, 새로운 이득(g)←금회의 이득(g)×(1+v/N×α)으로 한다. Alternatively, the gain expanding unit 151 may increase the gain from the current gain to the new gain (V) by increasing the value v = Nt obtained by subtracting the number of samples (t) output from the sample number measurer 118 from the number of samples To be increased. For example, the new gain (g) ← the gain (g) of this time × (1 + v / N × α).

즉 이득 확대부(151)는 양자화 정규화된 샘플열의 일부 또는 모든 샘플수로부터, 상기의 대응하는 부호가 제거되지 않은 양자화 정규화된 계수의 샘플수를 감산하여 얻어지는 값이 클수록 이득(g)의 값을 크게 증가시킨다. 그 후에 양자화부(105)의 처리로 되돌아온다. 바꿔 말하면, 이득 확대부(151)는, 양자화 정규화된 샘플열의 일부 또는 모든 샘플수로부터, 상기의 버림 부호의 대상이 되는 높은 주파수측의 양자화 정규화된 계수를 양자화부(105)가 출력한 양자화 정규화된 계수계열(XQ(1),···, XQ(N))로부터 제거한 나머지의 양자화 정규화된 계수의 샘플수(t)를 감산하여 얻어지는 값이 클수록, 이득의 갱신 전의 값으로부터 갱신 후의 값으로의 증분이 커지도록 이득의 값을 갱신하고, 그 후의 양자화부(105)의 처리를 행하게 한다. That is, the gain increasing unit 151 obtains the value of the gain g as the value obtained by subtracting the number of samples of the quantized normalized coefficient from which a corresponding code is not removed from a part or all of the number of samples of the quantized normalized sample sequence . And then returns to the processing of the quantization unit 105. [ In other words, the gain expander 151 extracts the quantized normalized coefficient on the high frequency side, which is the subject of the discard code, from a part or all of the number of samples of the quantized and normalized sample sequence by the quantization normalization the coefficient line (X Q (1), ··· , X Q (N)) the greater the value obtained by subtracting the number of samples of the quantized normalized coefficients of the remaining (t) has been removed from, updated from the value prior to the update of the gain after The value of the gain is updated so that the increment to the value becomes larger, and the subsequent processing of the quantization unit 105 is performed.

<가변길이 부호화부(159)><Variable-length coding unit 159>

가변길이 부호화부(159)는 판정부(157)로부터 출력된 양자화 정규화된 계수계열(XQ(1),···, XQ(N))을 가변길이 부호화하여 부호를 얻고, 얻어진 부호를 정수 신호 부호(샘플열 부호)로서 출력한다. 가변길이 부호화에 의해 배분 비트수(B)를 초과하는 비트수의 부호가 얻어지는 경우, 가변길이 부호화부(159)는 가변길이 부호화에 의해 얻어진 부호 중, 배분 비트수(B)를 상회하는 분만큼의 부호를 높은 주파수측의 양자화 정규화된 계수에 대응하는 부호로부터 제거한 것을 정수 신호 부호로서 출력한다. Variable length coding unit 159 to variable length coding for judging quantized normalized coefficient sequence output from the (157) (X Q (1), ···, X Q (N)) to obtain a code, the code obtained And outputs it as an integer signal code (sample code). When the code of the number of bits exceeding the allocation bit number B is obtained by the variable length coding, the variable length coding unit 159 stores, in the code obtained by the variable length coding, the number of bits exceeding the distribution bit number B Is removed from the code corresponding to the quantized normalized coefficient on the high frequency side, and is output as an integer signal code.

[제 2 실시형태][Second Embodiment]

<부호화 장치(200)>&Lt; Encoding device 200 >

도 4를 참조하여 제 2 실시형태의 부호화 장치(200)가 행하는 부호화 처리를 설명한다. 제 2 실시형태의 부호화 장치(200)가 제 1 실시형태의 부호화 장치(100)와 상이한 것은 이득 갱신 루프 처리부(130) 대신에 이득 갱신 루프 처리부(230)를 구비하고, 이득 갱신 루프 처리부(230)가 이득 갱신 루프 처리부(130)의 양자화부(105), 판정부(107), 이득 확대 갱신부(131) 및 버림부(116) 대신에 양자화부(205), 판정부(207), 이득 확대 갱신부(231) 및 버림부(216)를 구비하는 점, 그리고 제 1 이득 갱신부(110), 제 2 이득 갱신부(114) 및 이득 축소부(115)의 처리 후, 양자화부(105)의 처리로 되돌아오는 대신에 양자화부(205)의 처리로 되돌아오는 점이다. 이득 확대 갱신부(231)는 제 1 실시형태의 이득 확대 갱신부(131)에서의 샘플수 계측부(118)를 포함하지 않고, 이득 하한 설정부(108)와, 제 1 분기부(109)와, 제 1 이득 갱신부(110)와, 이득 확대부(211)로 구성된다. 이하, 제 1 실시형태와의 차분에 대해서만 설명한다. The encoding process performed by the encoding apparatus 200 of the second embodiment will be described with reference to FIG. The encoding apparatus 200 of the second embodiment differs from the encoding apparatus 100 of the first embodiment in that a gain update loop processing unit 230 is provided in place of the gain update loop processing unit 130 and a gain update loop processing unit 230 In place of the quantization unit 105, the determination unit 107, the gain expansion update unit 131, and the discarding unit 116 of the gain update loop processing unit 130, the quantization unit 205, the determination unit 207, After the processing of the first gain updating unit 110, the second gain updating unit 114 and the gain reducing unit 115, the quantization unit 105 The process returns to the process of the quantization unit 205 instead of returning to the process of FIG. The gain increase updating unit 231 does not include the sample number counting unit 118 in the gain increase updating unit 131 of the first embodiment and includes the gain lower limit setting unit 108 and the first branching unit 109 A first gain updating unit 110, and a gain increasing unit 211. [ Only differences from the first embodiment will be described below.

<양자화부(205)><Quantization Unit 205>

양자화부(205)는 가중 정규화 MDCT 계수열(XN(1),···, XN(N))(소정 구간의 입력 음향 신호에 유래하는 샘플열)의 각 계수(각 샘플)를 이득(g)으로 나누어 얻어지는 값을 양자화하고, 정수값(양자화 정규화된 샘플)에 의한 계열인 양자화 정규화된 계수계열(XQ(1),···, XQ(N))을 얻고 출력한다.The quantization unit 205 multiplies each coefficient (each sample) of weighted normalized MDCT coefficient columns X N (1), ..., X N (N) (sample sequences derived from input acoustic signals of a predetermined section) (g), and obtains and outputs a quantized normalized coefficient sequence (X Q (1), ..., X Q (N)) which is a sequence based on an integer value (a quantized normalized sample).

<판정부(207)>&Lt; Judgment section 207 >

판정부(207)는, 이득의 갱신 횟수가 미리 정한 횟수인 경우에는, 이득, 정수 신호 부호, 소비 비트수(c)를 출력한다. When the number of times of updating the gain is a predetermined number, the determining section 207 outputs the gain, the integer signal code, and the number of consumed bits (c).

이득의 갱신 횟수가 미리 정한 횟수 미만인 경우에는, 가변길이 부호화부(106)가 계측한 소비 비트수(c)가 배분 비트수(B)보다 많은 경우에는 이득 확대 갱신부(231)가, 가변길이 부호화부(106)가 계측한 소비 비트수(c)가 배분 비트수(B)보다 적은 경우에는 이득 축소 갱신부(132)가 제 1 실시형태에서 설명한 처리를 행하도록 제어한다. 또한, 가변길이 부호화부(106)가 계측한 소비 비트수(c)가 배분 비트수(B)와 동일한 경우에는, 판정부(207)는 이득, 정수 신호 부호, 소비 비트수(c)를 출력한다. When the number of times of updating of the gain is less than the predetermined number of times, when the number of consumed bits c measured by the variable length coding unit 106 is larger than the number of allocated bits B, the gain enlargement updating unit 231 calculates When the number of consumed bits c measured by the encoding unit 106 is smaller than the number of allocated bits B, the gain reduction updating unit 132 controls the processing described in the first embodiment. When the number of consumed bits c measured by the variable length coding unit 106 is equal to the number of allocated bits B, the determining unit 207 outputs the gain, integer signal code, do.

<버림부(216)><Discard part 216>

버림부(216)는, 판정부(207)가 출력한 소비 비트수(c)가 배분 비트수(B)보다 많은 경우에는, 판정부(207)가 출력한 정수 신호 부호 중, 소비 비트수(c)가 배분 비트수(B)를 상회하는 분만큼의 부호를 높은 주파수측의 양자화 정규화된 계수에 대응하는 부호로부터 제거한 것을 새로운 정수 신호 부호로서 출력한다. 즉 버림부(216)는 소비 비트수(c)의 배분 비트수(B)에 대한 상회분(c-B)에 대응하는 높은 주파수측의 양자화 정규화된 계수에 대응하는 부호(버림 부호)를 정수 신호 부호(샘플열 부호)로부터 제거함으로써 얻어진다, 나머지의 부호(버림 처리된 샘플열 부호)를 새로운 정수 신호 부호로서 출력한다. When the number of consumed bits c output from the determining unit 207 is larger than the number of allocated bits B, the discarder 216 sets the number of consecutive bits c) is removed from the code corresponding to the quantized normalized coefficient on the high frequency side by the number of codes that exceeds the distribution bit number (B), and outputs as a new integer signal code. That is, the discard unit 216 stores the sign (discard code) corresponding to the quantized normalized coefficient on the high frequency side corresponding to the upper fraction cB with respect to the distribution bit number B of the consumed bit number c as the integer signal code (Sample column code), and outputs the remaining code (sample process code subjected to the decimation process) as a new integer signal code.

<이득 확대부(211)><Gain Expansion Unit 211>

이득 확대부(211)는 소비 비트수(c)로부터 배분 비트수(B)를 감산하여 얻어지는 값인 부족 비트수(c-B)가 클수록, 금회의 이득으로부터 새로운 이득으로의 증가분이 커지도록 한다. 예를 들면, 새로운 이득(g)←금회의 이득(g)×(1+(c-B)/B×α)으로 한다. 여기에서, α는 미리 정한 양의 상수로 한다. 즉, 소비 비트수(c)가 배분 비트수(B)보다도 많고, 게다가, 이득의 상한값(gmax)이 설정되어 있지 않은 경우, 이득 확대부(211)가 소비 비트수(c)로부터 배분 비트수(B)를 감산하여 얻어지는 값(c-B)이 클수록 이득(g)의 값을 크게 증가시킨다. 그 후에 양자화부(205)의 처리로 되돌아온다. 바꿔 말하면, 이득 확대부(211)는, 소비 비트수(c)로부터 배분 비트수(B)를 감산하여 얻어지는 값(c-B)이 클수록, 이득(g)의 갱신 전의 값으로부터 갱신 후의 값으로의 증분이 커지도록 이득(g)의 값을 갱신하고, 그 후의 양자화부(205)의 처리를 행하게 한다. The gain increasing unit 211 increases the increase from the current gain to the new gain as the number of insufficient bits cB, which is a value obtained by subtracting the number of distributed bits B from the number of consumed bits c. For example, the new gain (g) ← the gain (g) of this time × (1+ (cB) / B × α). Here, α is a predetermined constant. That is, when the number of consumed bits c is larger than the number of allocated bits B and the upper limit value g max of the gain is not set, The value of the gain g is greatly increased as the value cB obtained by subtracting the number B is larger. And then returns to the processing of the quantization unit 205. [ In other words, the gain enlarging unit 211 increases the gain c from the value before the update of the gain g to the value after the update g as the value cB obtained by subtracting the number of distribution bits B from the number of bits consumed c is larger, The value of the gain g is updated so that the subsequent processing of the quantization unit 205 is performed.

[제 2 실시형태의 변형예][Modified example of the second embodiment]

<부호화 장치(250)>&Lt; Encoder 250 >

도 5를 참조하여 제 2 실시형태의 변형예의 부호화 장치(250)가 행하는 부호화 처리를 설명한다. 제 2 실시형태의 변형예의 부호화 장치(250)가 제 2 실시형태의 부호화 장치(200)와 상이한 것은, 가변길이 부호화에서 얻은 정수 신호 부호의 비트수 대신에 정수 신호 부호의 추정 비트수를 소비 비트수(c)로 하는 점이다. 부호화 장치(250)는 부호화 장치(200)의 이득 갱신 루프 처리부(230)대신에 이득 갱신 루프 처리부(290)를 구비하고, 이득 갱신 루프 처리부(290)가 이득 갱신 루프 처리부(230)의 가변길이 부호화부(106), 버림부(216) 및 판정부(207) 대신에 비트수 추정부(156), 가변길이 부호화부(159) 및 판정부(257)를 구비한다. 이하, 제 2 실시형태와의 차분에 대해서만 설명한다. The encoding process performed by the encoding device 250 of the modification of the second embodiment will be described with reference to Fig. The encoding apparatus 250 of the modification of the second embodiment is different from the encoding apparatus 200 of the second embodiment in that the number of bits of the integer signal code is replaced with the number of bits of the integer signal code, (C). The encoding apparatus 250 includes a gain update loop processing unit 290 in place of the gain update loop processing unit 230 of the encoding apparatus 200. The gain update loop processing unit 290 includes a gain update loop processing unit 230, A bit number estimating unit 156, a variable length coding unit 159 and a determining unit 257 instead of the coding unit 106, the discarding unit 216 and the determining unit 207. [ Only the difference from the second embodiment will be described below.

<비트수 추정부(156)>&Lt; Bit number estimation unit 156 >

비트수 추정부(156)는 제 1 실시형태의 변형예와 동일하다. The bit number estimating unit 156 is the same as the modification of the first embodiment.

<판정부(257)>&Lt; Judgment section 257 >

판정부(257)는, 이득의 갱신 횟수가 미리 정한 횟수인 경우에는, 이득, 양자화 정규화된 계수계열, 소비 비트수(c)를 출력한다. The determination unit 257 outputs the gain, the quantized normalized coefficient series, and the number of consumed bits (c) when the number of update times of the gain is a predetermined number.

이득의 갱신 횟수가 미리 정한 횟수 미만인 경우에는, 비트수 추정부(156)가 추정한 소비 비트수(c)가 배분 비트수(B)보다 많은 경우에는 이득 확대 갱신부(231)가, 비트수 추정부(156)가 추정한 소비 비트수(c)가 배분 비트수(B)보다 적은 경우에는 이득 축소 갱신부(132)가 제 1 실시형태에서 설명한 처리를 행하도록 제어한다. 또한, 비트수 추정부(156)가 추정한 소비 비트수(c)가 배분 비트수(B)와 동일한 경우는, 판정부(257)는 이득, 양자화 정규화된 계수계열, 소비 비트수(c)를 출력한다. If the number of times of updating of the gain is less than the predetermined number, the gain enlargement updating unit 231 sets the number of bits (C) when the number of consumed bits c estimated by the bit number estimating unit 156 is larger than the distribution bit number When the number of consumed bits c estimated by the estimating unit 156 is smaller than the number of allocated bits B, the gain reduction updating unit 132 controls the processing described in the first embodiment. If the number of consumed bits c estimated by the bit number estimating unit 156 is equal to the number of allocated bits B, the determining unit 257 determines the gain, the quantized normalized coefficient sequence, the number of consumed bits c, .

<가변길이 부호화부(159)><Variable-length coding unit 159>

가변길이 부호화부(159)는 제 1 실시형태의 변형예와 같다. The variable length coding unit 159 is the same as the modification of the first embodiment.

[제 3 실시형태][Third embodiment]

<부호화 장치(300)>&Lt; Encoder 300 >

도 6을 참조하여 제 3 실시형태의 부호화 장치(300)가 행하는 부호화 처리를 설명한다. 제 3 실시형태의 부호화 장치(300)가 제 1 실시형태의 부호화 장치(100)와 상이한 것은 이득 하한 설정부(108), 제 1 이득 갱신부(110), 이득 상한 설정부(112) 및 제 2 이득 갱신부(114) 대신에 이득 하한 설정부(308), 제 1 이득 갱신부(310), 이득 상한 설정부(312), 제 2 이득 갱신부(314) 및 소비 비트수 기억부(320)를 구비하는 점이다. 이득 확대 갱신부(331)는 이득 확대 갱신부(131)의 이득 하한 설정부(108), 제 1 이득 갱신부(110) 대신에 이득 하한 설정부(308), 제 1 이득 갱신부(310)를 구비한다. 이득 축소 갱신부(332)는 이득 축소 갱신부(132)의 이득 상한 설정부(112), 제 2 이득 갱신부(114) 대신에 이득 상한 설정부(312), 제 2 이득 갱신부(314)를 구비한다. 이득 갱신 루프 처리부(330)는 이득 갱신 루프 처리부(130)의 이득 확대 갱신부(131)와 이득 축소 갱신부(132) 대신에 이득 확대 갱신부(331)와 이득 축소 갱신부(332)를 구비한다. 이하, 제 1 실시형태와의 차분에 대해서만 설명한다. The encoding process performed by the encoding apparatus 300 of the third embodiment will be described with reference to Fig. The encoding apparatus 300 of the third embodiment differs from the encoding apparatus 100 of the first embodiment in that the gain lower limit setting unit 108, the first gain updating unit 110, the gain upper limit setting unit 112, The first gain updating unit 310, the gain upper limit setting unit 312, the second gain updating unit 314 and the consumption bit number storage unit 320 . The gain enhancement updating unit 331 includes a gain lower limit setting unit 108 of the gain enhancement updating unit 131 and a gain lower limit setting unit 308 and a first gain updating unit 310 in place of the first gain updating unit 110. [ Respectively. The gain reduction unit 332 includes a gain upper limit setting unit 312 and a second gain updating unit 314 instead of the gain upper limit setting unit 112 and the second gain updating unit 114 of the gain reduction updating unit 132, Respectively. The gain update loop processing unit 330 includes a gain increase update unit 331 and a gain reduction update unit 332 instead of the gain increase update unit 131 and the gain reduction update unit 132 of the gain update loop processing unit 130 do. Only differences from the first embodiment will be described below.

<이득 하한 설정부(308)>&Lt; Gain lower limit setting unit 308 >

이득 하한 설정부(308)는 금회의 이득(g)의 값을 이득의 하한값(gmin)으로서 설정한다(gmin←g). 또한 이득 하한 설정부(308)는 소비 비트수(c)를 하한 설정시 소비 비트수(cL)로서 소비 비트수 기억부(320)에 기억한다. 즉 이득 하한 설정부(308)는, 소비 비트수(c)가 배분 비트수(B)보다도 많은 경우에, 제 1 실시형태의 이득 하한 설정부(108)의 처리와 아울러, 또한 소비 비트수(c)를 하한 설정시 소비 비트수(cL)로서 설정하여 소비 비트수 기억부(320)에 기억한다. Gain lower limit setting unit 308 sets the value of the gain (g) of this time as a lower limit value (g min) of the gain (g min ← g). The gain lower limit setting unit 308 stores the number of consumed bits c in the number of consumed bits storage unit 320 as the number of consumed bits c L at the time of setting the lower limit. That is, when the number of consumed bits c is larger than the number of allocated bits B, the gain lower limit setting unit 308 sets the gain lower limit setting unit 108 in accordance with the processing of the lower gain setting unit 108 of the first embodiment, c is set as the number of consumed bits (c L ) in the lower limit setting and stored in the number of consumed bits storage unit 320.

<이득 상한 설정부(312)><Gain upper limit setting unit 312>

이득 상한 설정부(312)는 금회의 이득(g)의 값을 이득의 상한값(gmax)으로 설정한다(gmax←g). 또한 이득 상한 설정부(312)는 소비 비트수(c)를 상한 설정시 소비 비트수(cU)로서 소비 비트수 기억부(320)에 기억한다. 즉 이득 상한 설정부(312)는, 소비 비트수(c)가 배분 비트수(B)보다도 적은 경우에, 제 1 실시형태의 이득 상한 설정부(112)의 처리와 아울러, 또한 소비 비트수(c)를 상한 설정시 소비 비트수(cU)로서 설정하여 소비 비트수 기억부(320)에 기억한다. The gain upper limit setting unit 312 sets the value of the current gain g to the upper limit value g max of the gain (g max? G). Also stored in the gain upper limit setting unit 312 sets the upper limit number of bits spent in the number of spent bits (c) (c U), the number of bits consumed storage unit 320 as. That is, the gain upper limit setting unit 312 sets the gain upper limit setting unit 312 to the gain upper limit setting unit 112 in the case where the consumed bit number c is smaller than the distribution bit number B, c is set as the number of consumed bits (c U ) in the upper limit setting and is stored in the number of consumed bits storage unit 320.

<제 1 이득 갱신부(310)><First Gain Updating Unit 310>

소비 비트수(c)가 배분 비트수(B)보다도 많고, 게다가 이득의 상한값(gmax)이 이미 설정되어 있는 경우, 제 1 이득 갱신부(310)는, 배분 비트수(B)와 상한 설정시 소비 비트수(cU)와 하한 설정시 소비 비트수(cL)에 기초하여, 이득의 하한값(gmin)의 가능성의 지표와 이득의 상한값(gmax)의 가능성의 지표 중 적어도 어느 하나를 구한다. 또한, 「가능성의 지표」란 이득(g)의 값으로서의 가능성을 의미하는 지표를 의미한다. When the number of bits consumed c is larger than the number of allocation bits B and the upper limit value g max of the gain is already set, the first gain updating unit 310 sets the upper limit when consumed bit (c U) to the number of bits spent in the lower limit set based on (c L), at least one of an indicator of the possibility of a lower limit value (g min) the upper limit value (g max) of the indicator and the gain of the potential of the gain . The &quot; possibility index &quot; means an index indicating the possibility of the value of the gain g.

[이득의 하한값(gmin)의 가능성의 지표][Indicator of possibility of lower limit value (g min ) of gain]

제 1 이득 갱신부(310)는, 예를 들면, 이득의 하한값(gmin)의 상대적 가능성을 나타내는 지표(w)를 식 A에 의해 구한다. First gain update unit 310, for example, obtained by an indicator (w) represents the relative likelihood of the lower limit value (g min) of the gain A in formula.

w=(B-cU)/(cL-cU) (식 A) w = (Bc U) / ( c L -c U) ( formula A)

식 A는, 의미적으로는, 배분 비트수(B)와 상한 설정시 소비 비트수(cU)와의 차와 하한 설정시 소비 비트수(cL)와 배분 비트수(B)와의 차에 기초하는 식 B의 우변을 변형한 것이다. Expression A is semantically based on the difference between the number of allocated bits B and the number of consumed bits c U in the upper limit setting and the difference between the number of consumed bits c L in the lower limit setting and the number of allocated bits B The right side of expression B is transformed.

w=(B-cU)/(B-cU+cL-B) (식 B) w = (Bc U) / ( Bc U + c L -B) ( formula B)

따라서, 식 A가 아니라 식 B에 의해 지표(w)를 구해도 된다. Therefore, the index w may be obtained by the expression B instead of the expression A.

식 A 또는 식 B에 의해 구해지는 지표(w)가 클 때에는, 이득의 하한값(gmin) 쪽이 이득(g)의 값으로서 가능성이 있고, 지표(w)가 작을 때에는, 이득의 상한값(gmax) 쪽이 이득(g)의 값으로서 가능성 있게 된다. Formula A or formula is at larger surface (w) as determined by the B, the lower limit value (g min) of the gain side there is a possibility as the value of the gain (g), when the smaller the index (w), the upper limit value of the gain (g max becomes a value of the gain g.

[이득의 상한값(gmax)의 가능성의 지표][Indicator of probability of upper limit value ( gmax ) of gain]

이득의 상한값(gmax)의 상대적 가능성은 (1-w)이다. The relative likelihood of the upper limit of the gain ( gmax ) is (1-w).

즉, 식 A 또는 식 B에 의해 지표(w)를 구하는 대신에 이득의 상한값(gmax)의 가능성의 지표(1-w)를 식 C에 의해 구해도 된다. That is, instead of obtaining the index w by the formula A or B, the index 1-w of the possibility of the upper limit value g max of the gain may be obtained by the formula C.

(1-w)=(cL-B)/(cL-cU) (식 C)(1-w) = (c L -B) / (c L -c U) ( type C)

식 C는 의미적으로는 배분 비트수(B)와 상한 설정시 소비 비트수(cU)와의 차(B-cU)와 하한 설정시 소비 비트수(cL)와 배분 비트수(B)와의 차(cL-B)에 기초하는 식 D의 우변을 변형한 것이다. Equation C is a difference between the difference Bc U between the number of allocated bits B and the number of consumed bits c U at the upper limit setting and the number of consumed bits c L and the allocated bit number B at the lower limit setting, (c L -B).

1-w=(cL-B)/(B-cU+cL-B) (식 D) 1-w = (c L -B ) / (Bc U + c L -B) ( formula D)

따라서, 식 C가 아니라 식 D에 의해 지표(1-w)를 구해도 된다. Therefore, the index (1-w) may be obtained by the equation (D) instead of the equation (C).

식 A 또는 식 B에 의해 구해지는 지표(1-w)가 클 때에는, 이득의 상한값(gmax) 쪽이 이득(g)의 값으로서 가능성이 있고, 지표(1-w)가 작을 때에는, 이득의 하한값(gmin) 쪽이 이득(g)의 값으로서 가능성이 있게 된다. When the index 1-w obtained by the formula A or the equation B is large, the upper limit value g max of the gain is likely to be the value of the gain g, and when the index 1-w is small, the side of the lower limit value (g min) is possible as the potential value of the gain (g).

그리고, 제 1 이득 갱신부(310)는 이득의 상한값(gmax)과 이득의 하한값(gmin) 중 가능성이 큰 쪽의 값에 중점을 둔 가중 평균을 새로운 이득(g)의 값으로서 설정하여 출력한다(g←gmin×w+gmax×(1-w)). 즉, 배분 비트수(B)와 상한 설정시 소비 비트수(cU)의 차가 하한 설정시 소비 비트수(cL)와 배분 비트수(B)의 차보다 큰 경우에는, 이득의 하한값(gmin) 쪽이 가능성이 있고, 바람직한 이득(g)의 값에 가깝게 된다. Then, the first gain updating unit 310 sets a weighted average based on the larger one of the upper limit value g max of the gain and the lower limit value g min of the gain as the value of the new gain g outputs (g ← g min × w + g max × (1-w)). That is, when the difference between the number of distributed bits B and the number of consumed bits c U in the upper limit setting is larger than the difference between the number of consumed bits c L and the number of allocated bits B in the lower limit setting, min , which is close to the value of the desired gain g.

혹은 제 1 이득 갱신부(310)가 양의 값인 상수(C)를 사용하여 w=(B-cU+C)/(cL-cU+2×C)로서 가중을 완화한 것을 지표(w)로서 구해도 된다. 또한, 이 경우에는Or the first gain updating unit 310 is w = (Bc + U C) with a constant (C) which is the value of the positive / (c L -c U + 2 × C) surface (w) that the relaxation weighted as . In this case,

(1-w)=(cL-B+C)/(cL-cU+2×C)(1-w) = (c L -B + C) / (c L -c U + 2 × C)

가 되고, 새로운 이득(g)의 값은 이득의 상한값(gmax)과 이득의 하한값(gmin)의 산술평균값과 소비 비트수와 배분 비트수의 차에 기초하는 가중 평균의 중간이 된다. And the value of the new gain g is the middle of the weighted average based on the arithmetic mean value of the upper limit value g max of the gain and the lower limit value g min of the gain and the difference between the number of consumed bits and the number of allocated bits.

또한, 샘플수 계측부(118)에서 버림 부호의 대상이 되는 양자화 정규화된 샘플의 샘플수(버려진 샘플수(Tr))가 얻어지고 있는 경우에는, 하한 설정시 소비 비트수(cL)와 배분 비트수(B)의 차 대신에 버려진 샘플수(Tr)를 사용하는 것도 가능하다. 하한 설정시 소비 비트수(cL)와 배분 비트수(B)의 차가 클수록 버려진 샘플수(Tr)가 크다고 하는 성질이 있기 때문이다. 하한 설정시 소비 비트수(cL)와 배분 비트수(B)의 차와 버려진 샘플수(Tr)의 대응 관계를 미리 실험적으로 구해 둠으로써 버려진 샘플수(Tr)를 하한 설정시 소비 비트수(cL)와 배분 비트수(B)의 차에 근사적으로 환산하면 된다. γ는 환산을 위해 실험적으로 정하는 계수이며 (cL-B)=γ×Tr로 치환하면 w=(B-cU)/(B-cU+γ×Tr)로 할 수 있다. 마찬가지로, 양의 값인 상수(C)를 사용해서 w=(B-cU+C)/(B-cU+γ×Tr+2×C)로 하여 가중을 완화한 것을 지표(w)로 할 수도 있다. 즉, 제 1 이득 갱신부(310)는 배분 비트수(B), 버려진 샘플수(Tr) 및 상한 설정시 소비 비트수(cU)를 사용하여, 이득의 하한값의 가능성의 지표와 이득의 상한값의 가능성의 지표의 적어도 어느 하나를 얻어도 된다. 또한, 최근의 샘플수 계측부(118)의 처리에서 얻어진 가장 새로운 샘플수(Tr)를 사용하는 것이 바람직하지만, 보다 과거의 샘플수 계측부(118)의 처리에서 얻어진 샘플수(Tr)를 사용해도 된다.When the number of samples of the quantized normalized sample (the number of discarded samples Tr) to be subjected to the discard code is obtained in the sample number counting section 118, the number of consumed bits c L and the distribution bit It is also possible to use the discarded number of samples Tr instead of the difference of the number (B). This is because the larger the difference between the number of consumed bits (c L ) and the number of allocated bits (B) in the lower limit setting, the larger the number of discarded samples Tr is. The relationship between the number of consumed bits (c L ) and the number of allocated bits (B) in the lower limit setting and the number of discarded samples Tr is experimentally obtained in advance to estimate the number of discarded samples Tr at the lower limit setting c L ) and the number of distribution bits (B). γ is an empirically determined coefficient for conversion and can be expressed as w = (Bc U ) / (Bc U + γ × Tr) by substituting (c L -B) = γ × Tr. Similarly, also in the amount of w = constant using the values (C) (Bc U + C ) / (Bc U + γ × Tr + 2 × C) to a surface (w) that the relaxation weighted. That is, the first gain updating unit 310 calculates an index of the possibility of the lower limit value of the gain and an upper limit value of the gain ( CU ) by using the number of allocated bits B, the number of discarded samples Tr, Or an indicator of the likelihood of a failure. Although it is preferable to use the most recent number of samples Tr obtained in the processing of the latest number of samples counting section 118, it is also possible to use the number of samples Tr obtained in the processing of the past number of samples counting section 118 .

그 후에 양자화부(105)의 처리로 되돌아온다.And then returns to the processing of the quantization unit 105. [

<제 2 이득 갱신부(314)>&Lt; Second gain updating unit 314 >

소비 비트수(c)가 배분 비트수(B)보다도 적고, 게다가 이득의 하한값(gmin)이 이미 설정되어 있는 경우에, 제 2 이득 갱신부(314)는 제 1 이득 갱신부(310)와 동일한 동작을 한다.Less than the consumption of Bits (c) allocation of bits (B), In addition, if the lower limit value of the gain (g min) is already set, the second gain updating unit 314 is the first gain updating unit 310, and The same operation is performed.

상기한 「가능성의 지표」는, 이득의 하한값(gmin) 또는 상한값(gmax)의 어느 방향으로, 어느 정도 이득(g)의 값을 옮기면 적절한 이득(g)의 값에 근접하는지를 나타낸다. 본 형태에서는, 이 지표에 기초하여 이득(g)의 새로운 값으로 갱신하기 위해, 이득(g)이 적절한 값에 수렴할 때까지의 갱신 횟수를 삭감할 수 있다."Index of possibility" is the one, in which direction of the lower limit value (g min) of a gain or upper limit value (g max), by moving the value of a certain gain (g) indicates how close to the value of the proper gain (g). In the present embodiment, the number of updates until the gain g converges to an appropriate value can be reduced in order to update to a new value of the gain g based on this index.

또한, 본 형태의 제 1 이득 갱신부(310) 및 제 2 이득 갱신부(314)는 이득의 하한값(gmin)의 가능성의 지표와 이득의 상한값(gmax)의 가능성의 지표 중 적어도 어느 하나를 얻고, 이득의 하한값(gmin)과 이득의 상한값(gmax) 중 가능성 있는 쪽에 큰 가중치를 부여한, 이득의 하한값(gmin)과 이득의 상한값(gmax)의 가중 평균을 이득(g)의 새로운 값으로 했다. 그러나, 제 1 이득 갱신부(310) 및 제 2 이득 갱신부(314)가 가능성의 지표를 얻지 않고, 이득의 하한값(gmin)과 이득의 상한값(gmax) 중 가능성 있는 쪽에 큰 가중치를 부여한, 이득의 하한값(gmin)과 이득의 상한값(gmax)의 가중 평균을 이득(g)의 새로운 값으로 해도 된다. 예를 들면, 제 1 이득 갱신부(310) 및 제 2 이득 갱신부(314)가 지표 w 및 (1-w)의 어느 쪽도 얻지 않고, 상한 설정시 소비 비트수(cU)와 하한 설정시 소비 비트수(cL)와 배분 비트수(B)에 기초하여,Also, update the shape of the first gain updating unit 310 and the second gain unit 314 is at least one of an indicator of the possibility of a lower limit value (g min), the upper limit value (g max) of the indicator and the gain of the potential of the gain to obtain, on the side with the possibility of the lower limit value (g min) and gain upper limit value (g max) for the gain given the greater weight, gain the weighted average of the lower limit value (g min) and gain upper limit value (g max) for the gain (g) With a new value of. However, the first gain updating unit 310 and the second gain update unit 314 does not produce the possibility of indicators of potential side to give the largest weight that of the lower limit value (g min) and gain upper limit value (g max) of the gain , it may be a weighted average of the lower limit value (g min) and upper limit value gain (g max) of the gain to the new value of the gain (g). For example, the first gain updating unit 310 and the second gain updating unit 314 may obtain neither the index w nor (1-w), but the consumption bit number c U and the lower limit setting On the basis of the number of consumed bits (c L ) and the number of allocated bits (B)

(수식 3)(Equation 3)

Figure 112017054077375-pat00003
Figure 112017054077375-pat00003

또는,or,

(수식 4)(Equation 4)

Figure 112017054077375-pat00004
Figure 112017054077375-pat00004

를 이득(g)의 새로운 값으로서 얻어도 된다. 즉, 배분 비트수(B)와 상한 설정시 소비 비트수(cU)의 차가 클수록, 이득의 상한값(gmax) 쪽에 큰 가중치를 부여한, 또는, 하한 설정시 소비 비트수(cL)와 배분 비트수(B)의 차가 클수록, 이득의 하한값(gmin) 쪽에 큰 가중치를 부여한, 이득의 하한값(gmin)과 이득의 상한값(gmax)의 가중 평균을 이득(g)의 새로운 값으로 하면되고, 그 처리 과정에 한정은 없다. May be obtained as a new value of the gain g. That is, the larger the difference between the number of distributed bits B and the number of consumed bits c U in the upper limit setting is, the larger the weight of the upper limit value g max of the gain is given, or the number of consumed bits c L and the distribution When the weighted average of the number of bits (B) the car, on the side lower limit value (g min) of a gain given the greater weight, the lower limit of the gain (g min) and upper limit value (g max) of the gain larger of the new value of the gain (g) And there is no limit to the process.

또는, 제 1 이득 갱신부(310) 및 제 2 이득 갱신부(314)가 버려진 샘플수(Tr)에 기초하여 이득(g)을 갱신하는 구성으로 하는 경우에는, 제 1 이득 갱신부(310)가Alternatively, when the first gain updating unit 310 and the second gain updating unit 314 are configured to update the gain g based on the number of discarded samples Tr, end

(수식 5)(Equation 5)

Figure 112017054077375-pat00005

Figure 112017054077375-pat00005

또는,or,

(수식 6)(Equation 6)

Figure 112017054077375-pat00006
Figure 112017054077375-pat00006

을 이득(g)의 새로운 값으로서 얻어도 된다. May be obtained as a new value of the gain g.

또한, 예를 들면, 이득의 하한값(gmin)과 이득의 상한값(gmax) 중 어느 하나에 가중치를 부여한, 이득의 하한값(gmin)과 이득의 상한값(gmax)의 가중 평균을 이득(g)의 새로운 값으로 해도 된다. 예를 들면,Also, for example, the lower limit value (g min) and gain upper limit value (g max) to give the of the weight to any one of the gain the weighted average of the lower limit value (g min) and gain upper limit value (g max) for the gain of the gain ( g). For example,

1×gmin+gmax)/(ω1+1)(? 1 x gmin + gmax ) / (? 1 +1)

를 이득(g)의 새로운 값으로 해도 된다. 여기에서, ω1은, 예를 들면, gmin쪽이 가능성이 있는 경우, 즉 (B-cU)>(cL-B)의 경우에 1 이상의 양의 값을 취하고, gmax쪽이 가능성이 있는 경우, 즉 (B-cU)<(cL-B)의 경우에 1 이하의 양의 값을 취하여, B-cU가 클수록 큰 값을 취하도록 설정하면 된다. 예를 들면, ω1을 B-cU에 관한 단조증가 함수값으로 하면 된다. 또는,
May be a new value of the gain g. Here, ω 1 is, for example, g min p. In this case there is the potential, that is, (Bc U)> In the case of (c L -B) to take a value of at least one quantity, g max side is possibly (B c U ) <(c L -B), a positive value of 1 or less may be taken, and a larger value may be set so as to take a larger value as B c U is larger. For example, ω 1 may be a monotone increasing function value related to Bc U. or,

*(gmin2×gmax)/(1+ω2)* (g min + w 2 x g max ) / (1 + w 2 )

를 이득(g)의 새로운 값으로 해도 된다. 여기에서, ω2는, 예를 들면, gmax쪽이 가능성이 있는 경우에 1 이상의 양의 값을 취하고, gmin쪽이 가능성이 있는 경우에 1 이하의 양의 값을 취하여, cL-B가 클수록 큰 값을 취하도록 설정하면 된다. 예를 들면, ω2를 cL-B에 관한 단조증가 함수값으로 하면 된다. 또는, ω3을 1 이상의 양의 값이며, B-cU에 관한 단조증가 함수값을 취하는 것으로 하고, ω4를 1 이상의 양의 값이며 cL-B에 관한 단조증가 함수값을 취하는 것으로 하여, gmin쪽이 가능성이 있는 경우((B-cU)>(cL-B)의 경우)에May be a new value of the gain g. Here, ω 2 takes a positive value of, for example, g max if there is a possibility, and takes a positive value of 1 or less if g min is more likely, and c L -B The larger the value, the larger the value is set. For example, ω 2 may be a monotone increasing function value related to c L -B. Alternatively, supposing that? 3 is a positive value of 1 or more and a monotone increasing function value relating to Bc U is taken, and? 4 is a positive value of 1 or more, taking a monotone increasing function value with respect to c L -B, g min is more likely ((Bc U )> (c L -B))

3×gmin+gmax)/(ω3+1)(? 3 x gmin + gmax ) / (? 3 +1)

을 이득(g)의 새로운 값으로 하고, gmax쪽이 가능성이 있는 경우((B-cU)<(cL-B)의 경우)에 For the gain (g) if there is a new value, g max p is a possibility of ((for Bc U) <(c L -B ))

(gmin4×gmax)/(1+ω4)(g min +? 4 x g max ) / (1 +? 4 )

를 이득(g)의 새로운 값으로 해도 된다. May be a new value of the gain g.

이와 같이, 배분 비트수(B)와 하한 설정시 소비 비트수(cL)와 상한 설정시 소비 비트수(cU)에 적어도 기초하는 가중치를, 이득의 상한값(gmax)과 이득의 하한값(gmin)의 적어도 어느 하나에 부여한, 이득의 상한값과 이득의 하한값의 가중 평균을 갱신 후의 이득으로 해도 된다. Thus, the weight based on at least the number of bits distributed B, the number of consumed bits c L in the lower limit setting and the number of consumed bits c U in the upper limit setting is set to the upper limit value g max of the gain and the lower limit value of the gain gmin ) may be a weighted average of the upper limit value of the gain and the lower limit value of the gain as the updated gain.

[제 3 실시형태의 변형예][Modifications of Third Embodiment]

상기의 제 3 실시형태에서는 제 1 실시형태의 이득 하한 설정부(108), 이득 상한 설정부(112), 제 1 이득 갱신부(110), 제 2 이득 갱신부(114)를 치환하는 것으로서 설명했지만, 제 2 실시형태의 이득 하한 설정부(108), 이득 상한 설정부(112), 제 1 이득 갱신부(110), 제 2 이득 갱신부(114)를 상기의 제 3 실시형태에서 설명한 것으로 치환하여 실시해도 되고, [배경기술]에 기재한 TCX 부호화의 부호화 장치(1000)의 이득 하한 설정부(1008), 이득 상한 설정부(1012), 제 1 이득 갱신부(1010), 제 2 이득 갱신부(1014)를 상기의 제 3 실시형태에서 설명한 것으로 치환하여 실시해도 된다. The third embodiment is different from the first embodiment in that the gain lower limit setting section 108, the gain upper limit setting section 112, the first gain updating section 110 and the second gain updating section 114 are replaced The gain lower limit setting unit 108, the gain upper limit setting unit 112, the first gain updating unit 110 and the second gain updating unit 114 of the second embodiment are the same as those described in the third embodiment And the gain lower limit setting unit 1008, the gain upper limit setting unit 1012, the first gain updating unit 1010, the second gain setting unit 1010, and the second gain setting unit 1010 of the TCX encoding apparatus 1000 described in [ The updating unit 1014 may be replaced with the one described in the third embodiment.

또는, 제 1 실시형태의 변형예의 이득 하한 설정부(108), 이득 상한 설정부(112), 제 1 이득 갱신부(110), 제 2 이득 갱신부(114)를 상기의 제 3 실시형태에서 설명한 것으로 치환하여 실시해도 되고, 제 2 실시형태의 변형예의 이득 하한 설정부(108), 이득 상한 설정부(112), 제 1 이득 갱신부(110), 제 2 이득 갱신부(114)를 상기의 제 3 실시형태에서 설명한 것으로 치환하여 실시해도 된다. Alternatively, the gain lower limit setting unit 108, the gain upper limit setting unit 112, the first gain updating unit 110, and the second gain updating unit 114 of the modified example of the first embodiment may be the same as those in the third embodiment The gain lower limit setting unit 108, the gain upper limit setting unit 112, the first gain updating unit 110 and the second gain updating unit 114 of the modified example of the second embodiment may be replaced with the above- May be replaced with those described in the third embodiment of Figs.

즉, 샘플열의 각 샘플을 갱신 전의 이득으로 제산하여 얻어지는 정수값 샘플에 의한 열을 부호화하여 얻어지는 부호의 비트수 또는 추정 비트수가 소정의 배분 비트수(B)보다 많은 경우에, 갱신 전의 이득을 이득의 하한값(gmin)으로서 설정하고, 비트수 또는 추정 비트수를 하한 설정시 소비 비트수(cL)로서 설정하고, 샘플열의 각 샘플을 갱신 전의 이득으로 제산하여 얻어지는 정수값 샘플에 의한 열을 부호화하여 얻어지는 부호의 비트수 또는 추정 비트수가 소정의 배분 비트수(B)보다 적은 경우에, 갱신 전의 이득을 이득의 상한값(gmax)으로서 설정하고, 비트수 또는 추정 비트수를 상한 설정시 소비 비트수(cU)로서 설정하고, 배분 비트수(B)와 하한 설정시 소비 비트수(cL)와 상한 설정시 소비 비트수(cU)에 적어도 기초하는 가중치를 이득의 상한값(gmax)과 이득의 하한값(gmin)의 적어도 어느 하나에 부여한, 이득의 상한값과 이득의 하한값의 가중 평균을 갱신 후의 이득으로 해도 된다. That is, when the number of bits of the code or the number of bits to be obtained by coding a column of the integer value samples obtained by dividing each sample of the sample string by the gain before the update is larger than the predetermined number of distribution bits (B) the lower limit value (g min) settings, and set the number of bits or the estimated number of bits as the (c L) the number of bits spent during the minimum set as a, and updates the respective samples sample columns by dividing by the gain before the heat by the integer value of the sample obtained The gain before the update is set as the upper limit value ( gmax ) of the gain and the number of bits or the estimated bit number is set as the upper limit when the number of bits or the number of bits to be obtained by encoding is smaller than the predetermined number set as the number of bits (U c), and the allocated number of bits (B) and the lower limit set at the bit number of consumption (L c) to the number of bits spent during the maximum set (U c) at least based on the upper limit of the weight gain of the (g max) assigned to at least one of the gain and the lower limit value (g min) of a, it may be a weighted average of the gain of the upper and lower limits of the gain in the gain after update.

<부호화 장치의 하드웨어 구성예><Hardware Configuration Example of Encoding Apparatus>

상기의 실시형태에 관한 부호화 장치는 키보드 등이 접속 가능한 입력부, 액정 모니터 등이 접속 가능한 출력부, CPU(Central Processing Unit)[캐시 메모리 등을 구비하고 있어도 된다.], 메모리인 RAM(Random Access Memory)이나 ROM(Read Only Memory), 하드 디스크인 외부 기억 장치 및 이것들의 입력부, 출력부, CPU, RAM, ROM, 외부 기억 장치 간의 데이터의 교환이 가능하도록 접속하는 버스 등을 구비하고 있다. 또한 필요에 따라, 부호화 장치에 CD-ROM 등의 기억매체를 읽기 쓰기할 수 있는 장치(드라이브) 등을 설치하는 것으로 해도 된다. The encoding apparatus according to the embodiment includes an input section to which a keyboard or the like can be connected, an output section to which a liquid crystal monitor or the like can be connected, a CPU (Central Processing Unit) ), A ROM (Read Only Memory), an external storage device such as a hard disk, and an input / output section of these, a CPU, a RAM, a ROM, and an external storage device. If necessary, a device (drive) capable of reading and writing a storage medium such as a CD-ROM may be provided in the encoding apparatus.

부호화 장치의 외부 기억 장치에는 부호화를 실행하기 위한 프로그램 및 이 프로그램의 처리에서 필요하게 되는 데이터 등이 기억되어 있다[외부 기억 장치에 한하지 않고, 예를 들면, 프로그램을 읽기 전용 기억 장치인 ROM에 기억시켜 두는 등이어도 된다.]. 또한 이들 프로그램의 처리에 의해 얻어지는 데이터 등은 RAM이나 외부 기억 장치 등에 적당하게 기억된다. 이하, 데이터나 그 저장 영역의 어드레스 등을 기억하는 기억 장치를 단지 「기억부」라고 부르기로 한다. 부호화 장치의 기억부에는 부호화를 실행하기 위한 프로그램 등이 기억되어 있다. The external storage device of the encoding apparatus stores a program for performing encoding and data required for processing of the program and the like (not limited to an external storage device, and for example, a program may be stored in a ROM It is also possible to memorize it. The data obtained by the processing of these programs are appropriately stored in the RAM or the external storage device. Hereinafter, a storage device for storing data or an address of the storage area is simply referred to as a &quot; storage unit &quot;. A program for executing encoding is stored in the storage unit of the encoding apparatus.

부호화 장치에서는, 기억부에 기억된 각 프로그램과 이 각 프로그램의 처리에 필요한 데이터가 필요에 따라 RAM에 읽어 들여지고, CPU에서 해석 실행·처리된다. 이 결과 CPU가 소정의 기능을 실현함으로써 부호화가 실현된다. In the encoding apparatus, each program stored in the storage unit and data necessary for the processing of each program are read into the RAM as needed, and analyzed and processed by the CPU. As a result, coding is realized by the CPU realizing a predetermined function.

<보충 기재><Supplementary information>

본 발명은 상기의 실시형태에 한정되는 것은 아니고, 본 발명의 취지를 일탈하지 않는 범위에서 적당히 변경이 가능하다. 예를 들면, 상기의 각 실시형태에서는 소비 비트수가 배분 비트수보다 적은 경우에는 이득 축소 갱신부의 처리를 행하고, 소비 비트수가 배분 비트수와 동일한 경우에 판정부가 이득 등을 출력하는 것으로 했다. 그러나, 소비 비트수가 배분 비트수보다 많지 않은 경우에 이득 축소 갱신부의 처리를 행해도 된다. 또한 상기 실시형태에서 설명한 처리는, 기재의 순서에 따라 시계열로 실행될 뿐만아니라, 처리를 실행하는 장치의 처리 능력 또는 필요에 따라 병렬적으로 또는 개별적으로 실행되는 것으로 해도 된다. The present invention is not limited to the above-described embodiment, but can be appropriately changed without departing from the gist of the present invention. For example, in each of the above-described embodiments, when the number of consumed bits is smaller than the number of allocated bits, the processing of the gain reduction updating unit is performed. When the number of consumed bits equals the number of allocated bits, the determination unit outputs a gain or the like. However, the processing of the gain reduction updating unit may be performed when the number of consumed bits is not larger than the allocation bit number. The processes described in the above embodiments may be executed not only in time series in accordance with the description order but also in parallel or individually depending on the processing capability of the apparatus for executing the processing or the necessity.

또한 상기 실시형태에서 설명한 하드웨어 엔터티(부호화 장치)에 있어서의 처리 기능을 컴퓨터에 의해 실현하는 경우, 하드웨어 엔터티가 가져야 할 기능의 처리 내용은 프로그램에 의해 기술된다. 그리고, 이 프로그램을 컴퓨터에서 실행함으로써, 상기 하드웨어 엔터티에 있어서의 처리 기능이 컴퓨터상에서 실현된다.In the case where the processing function in the hardware entity (encoding apparatus) described in the above embodiments is realized by a computer, the processing contents of the functions that the hardware entity should have are described by the program. By executing this program on a computer, a processing function in the hardware entity is realized on a computer.

이 처리 내용을 기술한 프로그램은 컴퓨터로 판독 가능한 기록 매체에 기록해 둘 수 있다. 컴퓨터로 판독 가능한 기록 매체의 예는 비일시적인(non-transitory) 기록 매체이다. 컴퓨터로 판독 가능한 기록 매체로서는, 예를 들면, 자기 기록 장치, 광디스크, 광자기 기록 매체, 반도체 메모리 등 어떤 것이어도 된다. 구체적으로는, 예를 들면, 자기 기록 장치로서 하드 디스크 장치, 플렉시블 디스크, 자기 테이프 등을, 광디스크로서 DVD(Digital Versatile Disc), DVD-RAM(Random Access Memory), CD-ROM(Compact Disc Read Only Memory), CD-R(Recordable)/RW(ReWritable) 등을, 광자기 기록 매체로서 MO(Magneto-Optical disc) 등을, 반도체 메모리로서 EEP-ROM(Electronically Erasable and Programmable-Read Only Memory) 등을 사용할 수 있다.The program describing the processing contents can be recorded on a computer-readable recording medium. An example of a computer-readable recording medium is a non-transitory recording medium. As a computer-readable recording medium, for example, a magnetic recording apparatus, an optical disk, a magneto-optical recording medium, a semiconductor memory, or the like may be used. Specifically, for example, a hard disk device, a flexible disk, a magnetic tape, or the like can be used as the magnetic recording device, a DVD (Digital Versatile Disc), a DVD-RAM (Random Access Memory), a CD- A magneto-optical disc (MO) as a magneto-optical recording medium, an EEP-ROM (Electronically Erasable and Programmable Read-Only Memory) as a semiconductor memory, and the like Can be used.

또한 이 프로그램의 유통은, 예를 들면, 그 프로그램을 기록한 DVD, CD-ROM 등의 가반형 기록 매체를 판매, 양도, 대여 등 함으로써 행한다. 또한, 이 프로그램을 서버 컴퓨터의 기억 장치에 저장해 두고, 네트워크를 통하여 서버 컴퓨터로부터 다른 컴퓨터로 그 프로그램을 전송함으로써, 이 프로그램을 유통시키는 구성으로 해도 된다.The distribution of this program is performed by selling, transferring, lending, or the like, a portable recording medium such as a DVD or a CD-ROM recording the program, for example. The program may be stored in a storage device of a server computer, and the program may be transferred from the server computer to another computer through a network to distribute the program.

이러한 프로그램을 실행하는 컴퓨터는, 예를 들면, 우선, 가반형 기록 매체에 기록된 프로그램 혹은 서버 컴퓨터로부터 전송된 프로그램을 일단 자신의 기억 장치에 저장한다. 그리고, 처리의 실행시, 이 컴퓨터는 자기의 기록 매체에 저장된 프로그램을 읽고, 읽은 프로그램에 따른 처리를 실행한다. 또한 이 프로그램의 다른 실행 형태로서 컴퓨터가 가반형 기록 매체로부터 직접 프로그램을 읽어내고, 그 프로그램에 따른 처리를 실행하는 것으로 해도 되고, 또한, 이 컴퓨터에 서버 컴퓨터로부터 프로그램이 전송될 때마다, 차례차례, 수취한 프로그램에 따른 처리를 실행하는 것으로 해도 된다. 또한 서버 컴퓨터로부터, 이 컴퓨터로의 프로그램의 전송은 행하지 않고, 그 실행 지시와 결과 취득에만 의해 처리 기능을 실현하는, 소위 ASP(Application Service Provider)형의 서비스에 의해 상기의 처리를 실행하는 구성으로 해도 된다. 또한, 본 형태에 있어서의 프로그램에는, 전자 계산기에 의한 처리용에 제공하는 정보이며 프로그램에 준하는 것(컴퓨터에 대한 직접적인 지령은 아니지만 컴퓨터의 처리를 규정하는 성질을 갖는 데이터 등)을 포함하는 것으로 한다.A computer that executes such a program stores, for example, a program recorded on a portable recording medium or a program transmitted from a server computer once in its own storage device. At the time of executing the processing, the computer reads the program stored in its own recording medium and executes processing according to the read program. Further, as another execution form of the program, the computer may read the program directly from the portable recording medium and execute processing according to the program. Further, each time a program is transmitted from the server computer to the computer, , And the processing according to the received program may be executed. In addition, a configuration in which the above-described processing is executed by a so-called ASP (Application Service Provider) type service that realizes a processing function only by execution instruction and result acquisition without transferring the program from the server computer to the computer You can. Incidentally, the program in this embodiment includes information to be provided for processing by the electronic calculator and includes a program (data not having a direct instruction to the computer, but having a property of specifying the processing of the computer, etc.) .

또한 이 형태에서는, 컴퓨터상에서 소정의 프로그램을 실행시킴으로써, 하드웨어 엔터티를 구성하는 것으로 했지만, 이들 처리 내용의 적어도 일부를 하드웨어적으로 실현하는 것으로 해도 된다.In this embodiment, a hardware entity is configured by executing a predetermined program on a computer. However, at least a part of the processing contents may be implemented in hardware.

100, 150, 200, 250, 300, 1000 부호화 장치100, 150, 200, 250, 300, 1000 encoding apparatus

Claims (3)

소정 구간의 입력 음향 신호에 유래하는 샘플열의 부호화 방법으로서,
상기 샘플열의 각 샘플을 이득으로 나누어 얻어지는 값을 양자화하여, 양자화 정규화된 샘플열을 얻는 양자화 단계;
상기 이득보다도 큰 값을 새로운 이득으로서 설정하는 이득 확대 갱신 단계;
상기 이득보다도 작은 값을 새로운 이득으로서 설정하는 이득 축소 갱신 단계;
상기 이득의 갱신 횟수가 미리 정한 횟수인 경우에는 가변길이 부호화 단계를 행하게 하고, 상기 이득의 갱신 횟수가 미리 정한 횟수 미만이고 또한 상기 양자화 정규화된 샘플열에 대응하는 부호의 추정 비트수인 소비 비트수가 소정의 배분 비트수보다도 많은 경우에 상기 이득 확대 갱신 단계를 행하게 하고, 상기 이득의 갱신 횟수가 미리 정한 횟수 미만이고 또한 상기 소비 비트수가 상기 배분 비트수보다도 적은 경우에 상기 이득 축소 갱신 단계를 행하게 하는 판정 단계;를 갖고,
상기 이득 확대 갱신 단계는,
상기 소비 비트수가 상기 배분 비트수보다도 많은 경우에, 상기 소비 비트수에 대응하는 이득의 값을 이득의 하한값으로서 설정하는 이득 하한값 설정 단계;
상기 소비 비트수가 상기 배분 비트수보다도 많고, 게다가 상기 이득의 상한값이 설정되어 있지 않은 경우에, 상기 소비 비트수로부터 상기 배분 비트수를 감산하여 얻어지는 값이 클수록, 이득의 갱신 전의 값으로부터 갱신 후의 값으로의 증분이 커지도록 상기 이득의 값을 갱신하고, 상기 양자화 단계를 행하게 하는 이득 확대 단계; 및
상기 소비 비트수가 상기 배분 비트수보다도 많고, 게다가 상기 이득의 상한값이 이미 설정되어 있는 경우에, 상기 배분 비트수(B), 상기 소비 비트수가 상기 배분 비트수보다 많은 경우의 상기 소비 비트수인 하한 설정시 소비 비트수(cL), 상기 소비 비트수가 상기 배분 비트수보다 적은 경우의 상기 소비 비트수인 상한 설정시 소비 비트수(cU), 상기 이득의 하한값(gmin), 상기 이득의 상한값(gmax) 및 양의 상수(C)에 대한
(수식 11)
Figure 112017054077375-pat00007

을 상기 이득의 새로운 값으로 하는 제 1 이득 갱신 단계;
를 포함하고,
상기 이득 축소 갱신 단계는,
상기 소비 비트수가 상기 배분 비트수보다도 적은 경우에, 상기 소비 비트수에 대응하는 이득의 값을 이득의 상한값으로서 설정하는 이득 상한값 설정 단계;
상기 소비 비트수가 상기 배분 비트수보다도 적고, 게다가 상기 이득의 하한값이 설정되어 있지 않은 경우에, 상기 배분 비트수로부터 상기 소비 비트수를 감산하여 얻어지는 값이 클수록, 상기 이득의 갱신 전의 값으로부터 갱신 후의 값으로의 감소분이 커지도록 상기 이득의 값을 갱신하고, 상기 양자화 단계를 행하게 하는 이득 축소 단계; 및
상기 소비 비트수가 상기 배분 비트수보다도 적고, 게다가 상기 이득의 하한값이 이미 설정되어 있는 경우에,
(수식 12)
Figure 112017054077375-pat00008

를 상기 이득의 새로운 값으로 하는 제 2 이득 갱신 단계;
를 포함하고,
상기 가변길이 부호화 단계는 상기 양자화 정규화된 샘플열을 가변길이 부호화하여, 샘플열 부호를 얻는 특징으로 하는 부호화 방법.
A method for encoding a sample sequence derived from an input acoustic signal of a predetermined section,
A quantization step of quantizing a value obtained by dividing each sample of the sample train by a gain to obtain a quantized normalized sample train;
A gain enlargement updating step of setting a value larger than the gain as a new gain;
A gain reduction updating step of setting a value smaller than the gain as a new gain;
Wherein when the number of update times of the gain is a predetermined number of times, a variable length coding step is performed, and when the number of times of updating of the gain is less than a predetermined number and the number of consumed bits, which is the estimated bit number of the code corresponding to the quantized normalized sample string, The gain enlarging and updating step is carried out when the number of times of updating of the gain is larger than the predetermined number and the number of bits consumed is smaller than the predetermined number of allocated bits, Step,
The gain enlarging and updating step includes:
A gain lower limit value setting step of setting a gain value corresponding to the consumed bit number as a lower limit value of the gain when the consumed bit number is larger than the allocation bit number;
The larger the value obtained by subtracting the number of allocation bits from the number of consumption bits in the case where the consumption bit number is larger than the allocation bit number and the upper limit value of the gain is not set, A gain enlarging step of updating the value of the gain so as to increase the increment to the quantization step; And
Wherein when the number of consumed bits is larger than the number of allocated bits and the upper limit of the gain is already set, the number of allocated bits (B) and the number of consumed bits, which is the number of consumed bits, The number of consume bits in the setting (c L ), the number of consumed bits in the upper limit setting (c U ), the lower limit value (g min ) of the gain, which is the number of consumed bits when the consumed bit number is smaller than the allocation bit number, The upper bound (g max ) and the positive constant (C)
(Equation 11)
Figure 112017054077375-pat00007

As a new value of the gain;
Lt; / RTI &gt;
The gain reduction step includes:
A gain upper limit value setting step of setting a gain value corresponding to the consumed bit number as an upper limit value of gain when the consumed bit number is smaller than the distribution bit number;
Wherein the gain is determined such that the larger the value obtained by subtracting the consumed bit number from the distribution bit number when the consumption bit number is smaller than the distribution bit number and the lower limit value of the gain is not set, A gain reduction step of updating the value of the gain so that the reduction to the value becomes larger and causing the quantization step to be performed; And
When the consumption bit number is smaller than the distribution bit number and the lower limit value of the gain is already set,
(Equation 12)
Figure 112017054077375-pat00008

As a new value of the gain;
Lt; / RTI &gt;
Wherein the variable length coding step performs variable length coding on the quantized normalized sample sequence to obtain a sample sequence code.
소정 구간의 입력 음향 신호에 유래하는 샘플열의 부호화 장치로서,
상기 샘플열의 각 샘플을 이득으로 나누어 얻어지는 값을 양자화하여, 양자화 정규화된 샘플열을 얻는 양자화부;
상기 이득보다도 큰 값을 새로운 이득으로서 설정하는 이득 확대 갱신부;
상기 이득보다도 작은 값을 새로운 이득으로서 설정하는 이득 축소 갱신부; 및
상기 이득의 갱신 횟수가 미리 정한 횟수인 경우에는 가변길이 부호화부의 처리를 행하게 하고, 상기 이득의 갱신 횟수가 미리 정한 횟수 미만이고 또한 상기 양자화 정규화된 샘플열에 대응하는 부호의 추정 비트수인 소비 비트수가 소정의 배분 비트수보다도 많은 경우에 상기 이득 확대 갱신부의 처리를 행하게 하고, 상기 이득의 갱신 횟수가 미리 정한 횟수 미만이고 또한 상기 소비 비트수가 상기 배분 비트수보다도 적은 경우에 상기 이득 축소 갱신부의 처리를 행하게 하는 판정부;를 갖고,
상기 이득 확대 갱신부는,
상기 소비 비트수가 상기 배분 비트수보다도 많은 경우에, 상기 소비 비트수에 대응하는 이득의 값을 이득의 하한값으로서 설정하는 이득 하한값 설정부;
상기 소비 비트수가 상기 배분 비트수보다도 많고, 게다가 상기 이득의 상한값이 설정되어 있지 않은 경우에, 상기 소비 비트수로부터 상기 배분 비트수를 감산하여 얻어지는 값이 클수록, 이득의 갱신 전의 값으로부터 갱신 후의 값으로의 증분이 커지도록 상기 이득의 값을 갱신하고, 상기 양자화부의 처리를 행하게 하는 이득 확대부; 및
상기 소비 비트수가 상기 배분 비트수보다도 많고, 게다가 상기 이득의 상한값이 이미 설정되어 있는 경우에, 상기 배분 비트수(B), 상기 소비 비트수가 상기 배분 비트수보다 많은 경우의 상기 소비 비트수인 하한 설정시 소비 비트수(cL), 상기 소비 비트수가 상기 배분 비트수보다 적은 경우의 상기 소비 비트수인 상한 설정시 소비 비트수(cU), 상기 이득의 하한값(gmin), 상기 이득의 상한값(gmax) 및 양의 상수(C)에 대한
(수식 21)
Figure 112017054077375-pat00009

을 상기 이득의 새로운 값으로 하는 제 1 이득 갱신부;
를 포함하고,
상기 이득 축소 갱신부는,
상기 소비 비트수가 상기 배분 비트수보다도 적은 경우에, 상기 소비 비트수에 대응하는 이득의 값을 이득의 상한값으로서 설정하는 이득 상한값 설정부;
상기 소비 비트수가 상기 배분 비트수보다도 적고, 게다가, 상기 이득의 하한값이 설정되어 있지 않은 경우에, 상기 배분 비트수로부터 상기 소비 비트수를 감산하여 얻어지는 값이 클수록, 상기 이득의 갱신 전의 값으로부터 갱신 후의 값으로의 감소분이 커지도록 상기 이득의 값을 갱신하고, 상기 양자화부의 처리를 행하게 하는 이득 축소부; 및
상기 소비 비트수가 상기 배분 비트수보다도 적고, 게다가 상기 이득의 하한값이 이미 설정되어 있는 경우에,
(수식 22)
Figure 112017054077375-pat00010

를 상기 이득의 새로운 값으로 하는 제 2 이득 갱신부;
를 포함하고,
상기 가변길이 부호화부는 상기 양자화 정규화된 샘플열을 가변길이 부호화하여, 샘플열 부호를 얻는 것을 특징으로 하는 부호화 장치.
An apparatus for encoding a sample sequence derived from an input acoustic signal of a predetermined section,
A quantization unit for quantizing a value obtained by dividing each sample of the sample train by a gain to obtain a quantized normalized sample train;
A gain enlargement updating unit that sets a value larger than the gain as a new gain;
A gain reduction updating unit that sets a value smaller than the gain as a new gain; And
And when the number of update times of the gain is a predetermined number of times, a process of the variable length coding unit is performed, and when the number of times of updating of the gain is less than a predetermined number and the number of bits consumed, which is the estimated bit number of the code corresponding to the quantized normalized sample sequence The processing of the gain enlargement updating unit is performed when the number of times of updating of the gain is less than a predetermined number of times and the number of consumed bits is smaller than the number of allocation bits, And a judgment unit for judging,
The gain enlargement /
A gain lower limit value setting unit which sets a gain value corresponding to the consumed bit number as a lower limit value of the gain when the consumed bit number is larger than the allocation bit number;
The larger the value obtained by subtracting the number of allocation bits from the number of consumption bits in the case where the consumption bit number is larger than the allocation bit number and the upper limit value of the gain is not set, A gain enlarging unit for updating the value of the gain so as to increase the increment to the quantization unit; And
Wherein when the number of consumed bits is larger than the number of allocated bits and the upper limit of the gain is already set, the number of allocated bits (B) and the number of consumed bits, which is the number of consumed bits, The number of consume bits in the setting (c L ), the number of consumed bits in the upper limit setting (c U ), the lower limit value (g min ) of the gain, which is the number of consumed bits when the consumed bit number is smaller than the allocation bit number, The upper bound (g max ) and the positive constant (C)
(Expression 21)
Figure 112017054077375-pat00009

A first gain updating unit for setting a gain of the gain control unit as a new value of the gain;
Lt; / RTI &gt;
Wherein the gain reduction updating unit includes:
A gain upper limit value setting unit for setting a gain value corresponding to the consumed bit number as an upper limit value of the gain when the consumed bit number is smaller than the distribution bit number;
Wherein when the consumption bit number is smaller than the distribution bit number and the lower limit value of the gain is not set, the larger the value obtained by subtracting the consumption bit number from the distribution bit number, the more updated A gain reduction unit that updates the value of the gain so as to increase the decrease to a later value and causes the quantization unit to perform processing; And
When the consumption bit number is smaller than the distribution bit number and the lower limit value of the gain is already set,
(Equation 22)
Figure 112017054077375-pat00010

A second gain updating unit that sets the new gain value as a new value of the gain;
Lt; / RTI &gt;
Wherein the variable length coding unit performs variable length coding on the quantized normalized sample sequence to obtain a sample sequence code.
제 1 항의 부호화 방법의 각 단계를 컴퓨터에 실행시키기 위한 프로그램을 저장한 컴퓨터 판독 가능한 기록 매체.A computer-readable recording medium storing a program for causing a computer to execute the steps of the encoding method of claim 1.
KR1020177015504A 2012-05-30 2013-05-29 Encoding method, encoder, program and recording medium KR101762210B1 (en)

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
JPJP-P-2012-122785 2012-05-30
JP2012122785 2012-05-30
PCT/JP2013/064877 WO2013180164A1 (en) 2012-05-30 2013-05-29 Coding method, coding device, program, and recording medium

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
KR1020167026537A Division KR101746697B1 (en) 2012-05-30 2013-05-29 Encoding method, encoder, program and recording medium

Publications (2)

Publication Number Publication Date
KR20170069294A KR20170069294A (en) 2017-06-20
KR101762210B1 true KR101762210B1 (en) 2017-07-27

Family

ID=49673352

Family Applications (4)

Application Number Title Priority Date Filing Date
KR1020177015496A KR101762205B1 (en) 2012-05-30 2013-05-29 Encoding method, encoder, program and recording medium
KR1020167026537A KR101746697B1 (en) 2012-05-30 2013-05-29 Encoding method, encoder, program and recording medium
KR1020147032029A KR101661917B1 (en) 2012-05-30 2013-05-29 Encoding method, encoder, program and recording medium
KR1020177015504A KR101762210B1 (en) 2012-05-30 2013-05-29 Encoding method, encoder, program and recording medium

Family Applications Before (3)

Application Number Title Priority Date Filing Date
KR1020177015496A KR101762205B1 (en) 2012-05-30 2013-05-29 Encoding method, encoder, program and recording medium
KR1020167026537A KR101746697B1 (en) 2012-05-30 2013-05-29 Encoding method, encoder, program and recording medium
KR1020147032029A KR101661917B1 (en) 2012-05-30 2013-05-29 Encoding method, encoder, program and recording medium

Country Status (8)

Country Link
US (1) US9552821B2 (en)
EP (3) EP2827328B1 (en)
JP (1) JP5872034B2 (en)
KR (4) KR101762205B1 (en)
CN (1) CN104321813B (en)
ES (3) ES2807241T3 (en)
PL (2) PL3236468T3 (en)
WO (1) WO2013180164A1 (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6319753B2 (en) * 2013-12-02 2018-05-09 華為技術有限公司Huawei Technologies Co.,Ltd. Encoding method and apparatus
PL3413306T3 (en) * 2014-03-24 2020-04-30 Nippon Telegraph And Telephone Corporation Encoding method, encoder, program and recording medium
CN106448688B (en) 2014-07-28 2019-11-05 华为技术有限公司 Audio coding method and relevant apparatus
EP3252768B1 (en) * 2015-01-30 2020-08-19 Nippon Telegraph and Telephone Corporation Parameter determination device, method, program, and recording medium
CN110709927B (en) * 2017-06-07 2022-11-01 日本电信电话株式会社 Encoding device, decoding device, smoothing device, inverse smoothing device, method thereof, and recording medium
US10950251B2 (en) * 2018-03-05 2021-03-16 Dts, Inc. Coding of harmonic signals in transform-based audio codecs
US20230121712A1 (en) * 2021-10-18 2023-04-20 S&P Global Inc. String Alignment with Translocation Insensitivity

Family Cites Families (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6732071B2 (en) 2001-09-27 2004-05-04 Intel Corporation Method, apparatus, and system for efficient rate control in audio encoding
US7940839B2 (en) * 2004-01-26 2011-05-10 Diablo Technologies Inc. Fully adaptive equalization for high loss communications channels
US7292092B2 (en) * 2004-08-31 2007-11-06 Integration Associates Inc. Tunable poly-phase filter and method for calibration thereof
EP1632902B1 (en) * 2004-09-03 2007-12-05 STMicroelectronics S.r.l. Method for image compression, related system and computer product therefor
KR100682890B1 (en) * 2004-09-08 2007-02-15 삼성전자주식회사 Audio encoding method and apparatus capable of fast bitrate control
JP4639073B2 (en) * 2004-11-18 2011-02-23 キヤノン株式会社 Audio signal encoding apparatus and method
JP4641272B2 (en) * 2006-03-08 2011-03-02 シャープ株式会社 Digital data decoding device
US8374857B2 (en) * 2006-08-08 2013-02-12 Stmicroelectronics Asia Pacific Pte, Ltd. Estimating rate controlling parameters in perceptual audio encoders
JP5224666B2 (en) * 2006-09-08 2013-07-03 株式会社東芝 Audio encoding device
JP5434592B2 (en) * 2007-06-27 2014-03-05 日本電気株式会社 Audio encoding method, audio decoding method, audio encoding device, audio decoding device, program, and audio encoding / decoding system
JP5264913B2 (en) * 2007-09-11 2013-08-14 ヴォイスエイジ・コーポレーション Method and apparatus for fast search of algebraic codebook in speech and audio coding
JP2010281965A (en) * 2009-06-03 2010-12-16 Sony Corp Quantization device, reproducing device, quantization method and program
TW201209805A (en) * 2010-07-06 2012-03-01 Panasonic Corp Device and method for efficiently encoding quantization parameters of spectral coefficient coding
US20150341158A1 (en) * 2014-05-23 2015-11-26 Mediatek Inc. Loop gain calibration apparatus for controlling loop gain of timing recovery loop and related loop gain calibration method

Also Published As

Publication number Publication date
WO2013180164A1 (en) 2013-12-05
PL3236468T3 (en) 2019-10-31
EP2827328A4 (en) 2016-04-13
KR20160114200A (en) 2016-10-04
EP2827328A1 (en) 2015-01-21
EP3534367A1 (en) 2019-09-04
EP3534367B1 (en) 2020-05-13
US9552821B2 (en) 2017-01-24
KR101746697B1 (en) 2017-06-14
PL3534367T3 (en) 2020-10-05
KR20170069294A (en) 2017-06-20
JP5872034B2 (en) 2016-03-01
US20150088529A1 (en) 2015-03-26
ES2661504T3 (en) 2018-04-02
KR101762205B1 (en) 2017-07-27
ES2742481T3 (en) 2020-02-14
KR20150003817A (en) 2015-01-09
KR20170068617A (en) 2017-06-19
EP3236468B1 (en) 2019-05-29
CN104321813A (en) 2015-01-28
EP2827328B1 (en) 2018-01-03
EP3236468A1 (en) 2017-10-25
KR101661917B1 (en) 2016-10-05
CN104321813B (en) 2016-12-14
ES2807241T3 (en) 2021-02-22
JPWO2013180164A1 (en) 2016-01-21

Similar Documents

Publication Publication Date Title
KR101762210B1 (en) Encoding method, encoder, program and recording medium
JP5603484B2 (en) Encoding method, decoding method, encoding device, decoding device, program, recording medium
JP5893153B2 (en) Encoding method, encoding device, program, and recording medium
JP4634969B2 (en) Linear prediction model order determination apparatus, linear prediction model order determination method, program thereof, and recording medium
JP2017501430A (en) Encoder for encoding audio signal, audio transmission system, and correction value determination method
JP6595687B2 (en) Encoding method, encoding device, program, and recording medium
EP3226243A1 (en) Encoding device, decoding device, and method and program for same
KR101996307B1 (en) Coding device, decoding device, method thereof, program and recording medium
JP5336942B2 (en) Encoding method, decoding method, encoder, decoder, program
JP5361565B2 (en) Encoding method, decoding method, encoder, decoder and program

Legal Events

Date Code Title Description
A107 Divisional application of patent
A201 Request for examination
E701 Decision to grant or registration of patent right
GRNT Written decision to grant