EP2179415B1 - Apparatus and method for encoding an enhancement layer - Google Patents

Apparatus and method for encoding an enhancement layer Download PDF

Info

Publication number
EP2179415B1
EP2179415B1 EP08793289A EP08793289A EP2179415B1 EP 2179415 B1 EP2179415 B1 EP 2179415B1 EP 08793289 A EP08793289 A EP 08793289A EP 08793289 A EP08793289 A EP 08793289A EP 2179415 B1 EP2179415 B1 EP 2179415B1
Authority
EP
European Patent Office
Prior art keywords
exponent
sample
bits
enhancement layer
additional mantissa
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
EP08793289A
Other languages
German (de)
French (fr)
Other versions
EP2179415A4 (en
EP2179415A1 (en
Inventor
Jongmo Sung
Do-Young Kim
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Electronics and Telecommunications Research Institute ETRI
Original Assignee
Electronics and Telecommunications Research Institute ETRI
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
Priority claimed from KR1020080024919A external-priority patent/KR100912826B1/en
Application filed by Electronics and Telecommunications Research Institute ETRI filed Critical Electronics and Telecommunications Research Institute ETRI
Priority to EP10153693.6A priority Critical patent/EP2187387B1/en
Priority to EP10153630A priority patent/EP2202728B1/en
Publication of EP2179415A1 publication Critical patent/EP2179415A1/en
Publication of EP2179415A4 publication Critical patent/EP2179415A4/en
Application granted granted Critical
Publication of EP2179415B1 publication Critical patent/EP2179415B1/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/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/16Vocoder architecture
    • G10L19/18Vocoders using multiple modes
    • G10L19/24Variable rate codecs, e.g. for generating different qualities using a scalable representation such as hierarchical encoding or layered encoding
    • 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

Definitions

  • the present invention relates to a G.711 encoder and decoder, and more particularly, to a method of encoding and decoding an enhancement layer to reduce a quantization error in a G.711 codec.
  • PCM pulse coded modulation
  • CELP code-excited linear prediction
  • the log PCM codec uses a small quantization step when the level of an input signal is low, and uses a large quantization step when the level of an input signal is high.
  • the log PCM codec can compress a digital sample with 16 bits per sample to a codeword with 8 bits per sample. Accordingly, if a signal is sampled at 8 KHz, a bit rate of 64,000 bps is obtained using the log PCM codec.
  • the A-law and u-law have been standardized as ITU-T(International Telecommunication Union - Telecommunication Sector) Recommendation G.711 since 1972.
  • the values of ⁇ and A in the G.711 are 255 ( ⁇ ) and 87.56 (A), respectively.
  • the G.711 codec actually uses a floating point quantization method, rather than directly calculates Equation 1.
  • available bits per sample e.g., 8 bits for the G.711
  • some bits are used to determine a quantization step and the remaining bits are used to express a position in the quantization step.
  • the former bits are exponent bits and the latter bits are mantissa bits.
  • 3 bits are used for the exponent
  • 4 bits are used for the mantissa
  • the remaining 1 bit is used to express a sign of a sample.
  • the G.711 provides a high quality of about 4 MOS (Mean Opinion Score) for narrowband speech, with less computational complexity and memory requirements. However, there is still quality degradation caused by quantization error, compared with an original speech signal.
  • MOS Mel Opinion Score
  • the present invention provides an apparatus and method for encoding and decoding an enhancement layer, which can reduce quantization error in a G.711 codec by adding extra bits to each G.711-coded sample.
  • the present invention also provides an enhancement layer encoder and decoder which can reduce quantization error in a G.711 codec.
  • an enhancement layer encoder according to independent claim 7.
  • an encoder according to claim 14 there is provided an encoder according to claim 14.
  • FIG. 1 is a block diagram of an encoder 100 and a decoder 150 for improving the quality of speech in a G.711 codec.
  • the encoder 100 includes an input buffer 105, a G.711 encoding unit 110, an enhancement layer encoding unit 115, and a multiplexing unit 120.
  • the decoder 150 includes a demultiplexing unit 155, a G.711 decoding unit 160, an enhancement layer decoding unit 165, a signal synthesizing unit 170, and an output buffer 175.
  • the encoder 100 is connected to the decoder 150 through a communication channel 140.
  • the encoder 100 will be first explained.
  • the G.711 encoding unit 110 encodes the frame stored in the input buffer 105 using the conventional G.711 codec, and outputs a G.711 bitstream. Since the G.711 is a well-known codec standardized by the ITU-T, a detailed explanation thereof will not be given here.
  • the enhancement layer encoding unit 115 encodes a quantization error, which is not represented by the G.711 encoding unit 110, using additional bits and outputs an enhancement bitstream.
  • the multiplexing unit 120 multiplexes the G.711 bitstream of the G.711 encoding unit 110 and the enhancement bitstream of the enhancement layer encoding unit 115.
  • the multiplexed bitstream is transmitted to the decoder 150 through the communication channel 140.
  • the decoder 150 will now be explained.
  • the demultiplexing unit 155 demultiplexes the multiplexed bitstream received from the encoder 100 through the communication channel 140 to a G.711 bitstream and an enhancement bitstream.
  • the G.711 decoding unit 160 decodes the G.711 bitstream by using the G.711 codec and outputs a G.711 decoded signal.
  • the enhancement layer decoding unit 165 decodes the enhancement bitstream and outputs an enhancement layer decoded signal.
  • the signal synthesizing unit 170 combines the G.711 decoded signal from the G.711 decoding unit 160 and the enhancement layer decoded signal from the enhancement layer decoding unit 165 and outputs a synthesized signal.
  • the output buffer 175 stores the synthesized signal from the signal synthesizing unit 170, and outputs the stored signal in frame-by-frame.
  • FIG. 2 is a schematic view illustrating an input bitstream and an output bitstream of an encoder to which a log PCM codec of a conventional G.711 codec is applied
  • FIG. 3 is a schematic view illustrating an input bitstream and an output bitstream of an encoder to which enhancement layer encoding according to the present invention is applied.
  • the 8-bit sample 250 is composed of 1-bit sign information 260, 3-bit exponent information 270, and 4-bit mantissa information 280.
  • the exponent information 270 indicates a compander segment
  • the mantissa information 280 indicates a position in the segment indicated by the exponent information 270.
  • a coded sample when enhancement layer encoding according to the present invention is used, includes additional mantissa information 390 as well as a G.711-coded sample of 8 bits.
  • the additional mantissa information 390 sub-divides a specific position indicated by mantissa information 380 in a segment indicated by exponent information 370, thereby reducing quantization error resulted from the G.711 codec.
  • the total number of available bits for enhancement layer per frame is 80 bits. That is, when the number of samples in the frame is 40 samples, an additional 2 bits per sample can be allocated on the average. Since a quantization error in the G.711 codec depends on the magnitude of an input signal, it is preferable to dynamically allocating the number of bits for additional mantissa information of each sample according to the magnitude of each sample, rather than to allocate the same number of bits for the additional mantissa information of each sample.
  • bits per sample are allocated to additional mantissa information in order to reduce quantization error further, the total number of bits of all samples in a frame i.e. 120 bits (40 samples * 3 bits) exceeds the available 80 bits.
  • bits ranging from 0 to 3 are allocated to the additional mantissa information based on the exponent value of each sample.
  • the maximum number of bits per sample for the additional mantissa information may be set to 3, or more, or less, depending upon embodiments of the present invention.
  • FIGS. 4A and 4B illustrate exponent maps for dynamically allocating the number of bits of additional mantissa information to each sample in a frame depending on the magnitude of an input sample according to an embodiment of the present invention.
  • the exponent map is a matrix in which row indices are exponent indices of additional mantissa information derived from an exponent value of each sample and column indices are sample indices representing each sample. For example, when 0 to 3-bits for additional mantissa information are allocated to each sample in a frame of 40 samples, the exponent map is a 10 x 40 matrix.
  • exponent indices of each sample are proportional to the exponent value of each sample, are sequential, and the number of the exponent indices are the same as the number of bits of additional mantissa information. That is, exponent indices are obtained by incrementing the exponent value of each sample. For example, when the exponent value of a sample is "000" in binary, exponent indices corresponding to the sample are 0 (the exponent value + 0), 1 (the exponent value + 1), and 2 (the exponent value + 2). As another example, when the exponent value is 7 ("111" in binary), exponent indices are 7 (the exponent value + 0), 8 (the exponent value + 1), and 9 (the exponent value + 2). Accordingly, exponent indices of each sample for additional exponent information can range from 0 to 9.
  • the exponent map is established.
  • a bit allocation table indicating the number of additional bits allocated to each sample is created based on the exponent map. That is, 1 bit is allocated to each sample corresponding to the current exponent index which starts from the maximum value (i.e., 9) while decreasing by 1.
  • the bit allocation is performed until the total number of bits allocated to the samples is equal to the available bits in a frame. The generation of the bit allocation table will be explained in detail later with reference to FIG. 5 .
  • an exponent map is a matrix in which row indices are exponent indices of additional mantissa information derived from the exponent value of each sample and column indices are order indices indicating the number of samples with the same exponent index.
  • Each of elements of the exponent map represents a sample index with an exponent index.
  • the exponent map would be a 10 x 40 matrix since all of samples in a frame can have the common exponent index.
  • the current numbers of the samples with the exponent indices are increased by 1, respectively.
  • the corresponding exponent indices are 6, 7, and 8.
  • Elements corresponding to the exponent indices 6, 7, and 8, i.e., (6,0), (7,0), (8,0) are set to sample index 0, and the current numbers of samples with the exponent indices 6, 7, and 8 are set to 1, respectively.
  • the corresponding exponent indices are 4, 5, and 6.
  • Elements corresponding to the exponent indices 4, 5, and 6, i.e., (4,0), (5,0), (6,1) are set to sample index 1.
  • the reason why the (6,1)-th element is set to 1 is that the number of samples having the exponent index of 6 is already 1 in the previous sample. Accordingly, the numbers of the samples corresponding to the exponent indices 4, 5, 6, 7, and 8 are 1, 1, 2, 1, and 1, respectively. When the exponent map is completely generated in this way for all samples, the number of samples and sample indices corresponding to each exponent index can be obtained.
  • FIG. 5 is a flowchart illustrating a method of generating a bit allocation table according to an embodiment of the present invention.
  • an enhancement layer encoder outputs additional mantissa information to each sample based on an exponent value of each sample.
  • the enhancement layer encoder initializes all elements of a bit allocation table to 0, sets current available bits to the total number of available bits in a current frame, and sets a maximum value of the exponent indices as a current exponent index.
  • the enhancement layer encoder calculates the number of samples corresponding to each exponent index, by referring to the exponent maps illustrated in FIGS. 4A and 4B . For example, there are two samples, whose sample indices are 0 and 39, corresponding to an exponent index 8 in the exponential map illustrated in FIG. 4A .
  • the enhancement layer encoder compares the number of samples corresponding to the current exponent index with current available bits, and then sets the smaller one of the two numbers as the number of usable bits. In operation S530, 1 bit is allocated to each sample corresponding to the current exponent index until the number of the usable bits is exhausted. In operation S540, the enhancement layer encoder sets a value subtracting the number of the usable bits from the current available bits as a new number of current available bits.
  • operation S550 it is checked whether the current available bits are 0. If the current available bits are 0, the generation of a bit allocation table ends for the frame. If the current available bits are not 0, the enhancement layer proceeds to operation S560. In operation S560, the enhancement layer encoder updates the current exponent index by decrementing the current exponent index by 1, and returns to operation S520. Then the enhancement layer encoder repeats operations from S520 to S550.
  • FIG. 6 is a block diagram of an enhancement layer encoder according to an embodiment of the present invention.
  • the enhancement layer encoder includes an exponent map generating unit 600, a bit allocation table generating unit 610, and a bit output unit 620.
  • the enhancement layer encoder corresponds to an enhancement layer encoding unit 115 illustrated in FIG. 1 .
  • the exponent map generating unit 600 computes exponent indices of additional mantissa information per sample based on the exponent value of each sample, and then generates an exponent map including the exponent indices of each sample.
  • the exponent value of each sample can be extracted from the G.711 encoding unit 110 illustrated in FIG. 1 . Since the exponent map is illustrated in FIG. 4A and 4B , a detailed explanation thereof will not be given here.
  • the bit allocation table generating unit 610 retrieves samples corresponding to each exponent index and allocates 1 bit to the retrieved samples by sequentially decrementing the exponent index by 1 from the maximum value. When this bit allocation procedure is completed for all of exponent indices, the bit allocation table generating unit 610 generates a bit allocation table containing the number of bits allocated to each sample. A method of generating the bit allocation table is illustrated in FIG. 5 .
  • the bit output unit 620 outputs the most significant bits of the additional mantissa information in amount of the number of the bits allocated to each sample in an input frame by using the bit allocation table. That is, the bit output unit 620 outputs [the additional mantissa information] / (2 ⁇ [the number of the bits of the additional mantissa information - the allocated number of the bits]).
  • FIG. 7 is a block diagram of an enhancement layer decoder according to an embodiment of the present invention.
  • the enhancement layer decoder includes an exponent map generating unit 700, a bit allocation table generating unit 710, and an additional mantissa decoding unit 720.
  • the exponent map generating unit 700 and the bit allocation table generating unit 710 are the same as the exponent map generating unit 600 and the bit allocation table generating unit 610 illustrated in FIG. 6 , and thus a detailed explanation thereof will not be given here.
  • the additional mantissa decoding unit 720 extracts and decodes additional mantissa information of each sample from an enhancement bitstream based on the number of bits of the additional mantissa information allocated to each sample.
  • FIG. 8 is a block diagram of an enhancement layer encoder according to another embodiment of the present invention.
  • the enhancement layer encoder includes an additional mantissa extracting unit 800, a bit allocating unit 810, and a bit output unit 820.
  • the additional mantissa extracting unit 800 extracts additional mantissa information from an input frame based on an exponent value obtained from the G.711 encoding performed on the input frame. That is, the additional mantissa extracting unit 800 extracts some bits followed by mantissa information (i.e., G.711 mantissa information of 4 bits) as additional mantissa information, based on the exponent value obtained from the G.711 encoding performed on the input frame. Although all of bits followed by the mantissa information may be the additional mantissa information, it is assumed in FIG. 8 that the maximum number of bits of the additional mantissa information is 3 in the current embodiment.
  • an input sample is "0000 0001 1010 1001" in binary.
  • the input sample is encoded in G.711 A-law, which is a combination of a sign bit of "1", exponent bits of "001”, and mantissa bits of "1010".
  • the resulting additional mantissa information is "100", assuming that the maximum number of bits of additional mantissa information is 3.
  • the bit allocating unit 810 calculates the number of bits allocated to each sample by using the total number of available bits and exponent values of each sample. For example, if the bit-rate of an enhancement layer is 16 Kbit/s and the frame size is 5 ms, the total number of available bits per frame is 80 bits.
  • the bit allocating unit 810 dynamically computes the number of bits for additional mantissa information per each sample based on the priorities of the additional mantissa information of each sample with criterion to minimize quantization error in each frame. For example, the priority may be determined from the exponent value of each sample which means a quantization step in a G.711 codec.
  • the bit output unit 820 outputs the additional mantissa information in amount of the number of the bits allocated to each sample computed by the bit allocating unit 810.
  • bit output unit 820 outputs "10" as its encoded enhancement bitstream.
  • the maximum number of bits per sample for additional mantissa information is extracted from the sample, and then is truncated to allocated number of bits for the sample.
  • the allocated number of bits is extracted from a sample after a bit allocation table is established, in another embodiment.
  • FIG. 9 is a flowchart illustrating a method of an enhancement layer encoding according to an embodiment of the present invention.
  • an enhancement layer encoder extracts additional mantissa information based on an exponent value obtained from the G.711 encoding performed on the input frame.
  • the additional mantissa information may be the whole remaining bits followed by mantissa information in the input frame, it is assumed in FIG. 9 that the maximum number of bits for the additional mantissa information is 3 in the current embodiment. Accordingly, the enhancement layer encoder extracts additional mantissa information of 3 bits only.
  • the enhancement layer encoder computes the number of additional bits for mantissa information per sample by using the exponent value obtained from the G.711 encoding.
  • the enhancement layer encoder sets priorities for 3 respective bits of the additional mantissa information of each sample as being proportional to the exponent value of each sample. For example, an exponent index may be used as a priority as shown in FIGS. 4A and 4B .
  • the enhancement layer encoder sequentially allocates 1 bit to samples with from the highest priority to the lowest priority until a total number of allocated bits exceeds a total number of available bits in the frame.
  • the enhancement layer encoder outputs the most significant bits of the additional mantissa information in amount of the number of the bits allocated to each sample in an input frame.
  • FIG. 10 is a block diagram of an enhancement layer decoder according to another embodiment of the present invention.
  • the enhancement layer decoder includes a decoder bit allocating unit 1000, an additional mantissa decoding unit 1010, and an enhancement signal synthesizing unit 1020.
  • the decoder bit allocating unit 1000 obtains the number of bits for additional mantissa information per sample by using the total number of available bits in a frame and exponent values obtained by G.711 decoding.
  • the operation of the decoder bit allocating unit 1000 is the same as that of the bit allocating unit illustrated in FIG. 7 , and thus a detailed explanation thereof will not be given here.
  • the additional mantissa decoding unit 1010 restores additional mantissa information from an enhancement bitstream, using the exponent value and the number of the bits for the additional mantissa information obtained by the decoder bit allocating unit 1000. That is, the additional mantissa decoding unit 1010 restores the additional mantissa information by extracting the same number of bits as the number of the bits of the additional mantissa information allocated to each sample from the enhancement bitstream.
  • the maximum number of the bits for the additional mantissa information is 3
  • a pseudo-code for operating the additional mantissa decoding unit 1010 is shown below.
  • the additional mantissa decoding unit 1010 inserts a bit string of "0"s to the decoded additional mantissa information in amount of difference between the maximum number of bits for the additional mantissa information and the number of allocated bits for the additional mantissa information.
  • the enhancement signal synthesizing unit 1020 restores an enhancement signal by using the restored additional mantissa information, exponent value and sign information obtained by G.711 decoding.
  • a pseudo-code for operating the enhancement signal synthesizing unit 1020 is as follows. At first, the restored additional mantissa information is bit-shifted to left in amount of the exponent value, and then sign information is added in the way that if the sign information indicates a negative value, the bit-shifted additional mantissa information is multiplied by (-1), and otherwise, the bit-shifted additional mantissa information itself is an enhancement sample.
  • FIG. 11 is a flowchart illustrating a method of decoding an enhancement layer according to an embodiment of the present invention.
  • an enhancement layer decoder obtains the number of additional bits allocated to each sample by using the maximum number of available bits and exponent values in a frame obtained by a G.711 decoding unit.
  • the enhancement layer decoder extracts additional mantissa information, as many as the number of the additional bits allocated to each sample, from an enhancement bitstream.
  • the enhancement layer decoder restores additional mantissa information.
  • the present invention may be embodied as computer-readable codes on a computer-readable recording medium.
  • the computer-readable recording medium is any data storage device that can store data which can be thereafter read by a computer system. Examples of the computer-readable recording medium include read-only memories (ROMs), random-access memories (RAMs), CD-ROMs, magnetic tapes, floppy disks, and optical data storage devices.
  • ROMs read-only memories
  • RAMs random-access memories

Description

    TECHNICAL FIELD
  • The present invention relates to a G.711 encoder and decoder, and more particularly, to a method of encoding and decoding an enhancement layer to reduce a quantization error in a G.711 codec.
  • BACKGROUND ART
  • It is difficult to directly apply a technology of sampling an analog voice signal and converting the sampled analog voice signal into a digital signal to the application with a limited bandwidth due to a relatively high bit rate. For example, a speech signal that is sampled at 8 KHz and quantized to 16 bits per sample, will result in a bit rate of 128,000 bits per second (bps). In order to effectively transmit a speech signal at a low bit rate in most communication networks, a codec apparatus for compressing and decompressing the speech signal is used.
  • Examples of a method of compressing and decompressing a speech signal include pulse coded modulation (PCM) and code-excited linear prediction (CELP). PCM is a method of compressing a respective voice sample to a predetermined number of bits, whereas CELP is a method of framing a speech signal into blocks and compressing the speech signal on the basis of a speech production model. Various codecs have been developed and standardized in a wide range of fields. One of the most widely used codecs is a log PCM codec that is adopted on a public switched telephone network (PSTN), internet telephony, and so on. The log PCM codec varies a quantization step depending on the magnitude of an input signal. That is, the log PCM codec uses a small quantization step when the level of an input signal is low, and uses a large quantization step when the level of an input signal is high. The log PCM codec can compress a digital sample with 16 bits per sample to a codeword with 8 bits per sample. Accordingly, if a signal is sampled at 8 KHz, a bit rate of 64,000 bps is obtained using the log PCM codec. There are two main coding laws, which are A-law and µ-law. The respective laws are expressed as C μ x = log 10 1 + μ x log 10 1 + μ
    Figure imgb0001
    C A x = { 1 + log 10 A x 1 + log 10 A for x > 1 A A x 1 + log 10 A for x 1 A
    Figure imgb0002

    where x is an input sample, The µand A are constants for the respective coding laws, C() is a sample value compressed by each coding law, and II is an absolute value operation.
  • The A-law and u-law have been standardized as ITU-T(International Telecommunication Union - Telecommunication Sector) Recommendation G.711 since 1972. The values of µand A in the G.711 are 255 (µ) and 87.56 (A), respectively. The G.711 codec actually uses a floating point quantization method, rather than directly calculates Equation 1. Among available bits per sample (e.g., 8 bits for the G.711), some bits are used to determine a quantization step and the remaining bits are used to express a position in the quantization step. The former bits are exponent bits and the latter bits are mantissa bits. In the A-law of the G.711, 3 bits are used for the exponent, 4 bits are used for the mantissa, and the remaining 1 bit is used to express a sign of a sample.
  • The G.711 provides a high quality of about 4 MOS (Mean Opinion Score) for narrowband speech, with less computational complexity and memory requirements. However, there is still quality degradation caused by quantization error, compared with an original speech signal.
  • The document "A G.711 EMBEDDED WIDEBAND SPEECH CODING FOR VOIP CONFERENCES", IEICE TRANSACTIONS ON INFORMATION AND SYSTEMS, INFORMATION & SYSTEMS SOCIETY, TOKYO, JP, vol. E89D, no. 9, 1 September 2006, pages 2542-2552, by HIWASAKI Y ET AL describes a wide-band extension to G.711 and proposes to reduce quantization noise by using a weighted vector quantization scheme.
  • BRIEF DESCRIPTION OF THE DRAWINGS
    • FIG. 1 is a block diagram of an encoder and a decoder for quality improvement of speech in a G.711 codec;
    • FIG. 2 is a schematic view illustrating an input sample and an output bitstream of an encoder to which a log pulse coded modulation (PCM) codec of a conventional G.711 codec is applied;
    • FIG. 3 is a schematic view illustrating an input sample and an output bitstream of an encoder to which enhancement layer encoding according to the present invention is applied;
    • FIGS. 4A and 4B illustrate an exponent maps for dynamically calculating the number of bits for additional mantissa information of each sample in a frame depending on the magnitude of an input signal according to an embodiment of the present invention;
    • FIG. 5 is a flowchart illustrating a method of generating a bit allocation table according to an embodiment of the present invention;
    • FIG. 6 is a block diagram of an enhancement layer encoder according to an embodiment of the present invention;
    • FIG. 7 is a block diagram of an enhancement layer decoder according to an embodiment of the present invention;
    • FIG. 8 is a block diagram of an enhancement layer encoder according to another embodiment of the present invention;
    • FIG. 9 is a flowchart illustrating a method of encoding an enhancement layer according to an embodiment of the present invention;
    • FIG. 10 is a block diagram of an enhancement layer decoder according to another embodiment of the present invention; and
    • FIG. 11 is a flowchart illustrating a method of decoding an enhancement layer according to an embodiment of the present invention.
    DETAILED DESCRIPTION OF THE INVENTION TECHNICAL PROBLEM
  • The present invention provides an apparatus and method for encoding and decoding an enhancement layer, which can reduce quantization error in a G.711 codec by adding extra bits to each G.711-coded sample.
  • The present invention also provides an enhancement layer encoder and decoder which can reduce quantization error in a G.711 codec.
  • TECHNICAL SOLUTION
  • According to an aspect of the present invention, there is provided a method of encoding an enhancement layer according to independent claim 1.
  • According to another aspect of the present invention, there is provided an enhancement layer encoder according to independent claim 7.
  • According to another aspect of the present invention, there is provided an encoder according to claim 14.
  • ADVANTAGEOUS EFFECTS
  • As described above, according to the present invention, since additional bits for mantissa information are dynamically allocated to each sample by using exponent information obtained from a conventional log PCM codec like a conventional G.711 codec, a quantization error resulting from the log PCM codec can be reduced and the quality of speech can be improved. Also, since the present invention does not change the conventional log PCM codec, compatibility with a network employing an existing log PCM codec can be achieved.
  • MODE OF THE INVENTION
  • A method and apparatus for encoding and decoding an enhancement layer and an enhancement layer encoder and decoder according to the present invention will now be described more fully with reference to the accompanying drawings, in which exemplary embodiments of the invention are shown.
  • FIG. 1 is a block diagram of an encoder 100 and a decoder 150 for improving the quality of speech in a G.711 codec.
  • Referring to FIG. 1, the encoder 100 includes an input buffer 105, a G.711 encoding unit 110, an enhancement layer encoding unit 115, and a multiplexing unit 120. The decoder 150 includes a demultiplexing unit 155, a G.711 decoding unit 160, an enhancement layer decoding unit 165, a signal synthesizing unit 170, and an output buffer 175. The encoder 100 is connected to the decoder 150 through a communication channel 140.
  • The encoder 100 will be first explained.
  • The input buffer 105 stores a block of input samples with a predetermined size in order to process an input signal in block-by-block. For example, when an input signal is sampled at 8 KHz and processed at every 5 ms frame, the input buffer 105 stores 40 samples (= 8KHz * 5ms). The G.711 encoding unit 110 encodes the frame stored in the input buffer 105 using the conventional G.711 codec, and outputs a G.711 bitstream. Since the G.711 is a well-known codec standardized by the ITU-T, a detailed explanation thereof will not be given here. The enhancement layer encoding unit 115 encodes a quantization error, which is not represented by the G.711 encoding unit 110, using additional bits and outputs an enhancement bitstream. The multiplexing unit 120 multiplexes the G.711 bitstream of the G.711 encoding unit 110 and the enhancement bitstream of the enhancement layer encoding unit 115. The multiplexed bitstream is transmitted to the decoder 150 through the communication channel 140.
  • The decoder 150 will now be explained.
  • The demultiplexing unit 155 demultiplexes the multiplexed bitstream received from the encoder 100 through the communication channel 140 to a G.711 bitstream and an enhancement bitstream. The G.711 decoding unit 160 decodes the G.711 bitstream by using the G.711 codec and outputs a G.711 decoded signal. The enhancement layer decoding unit 165 decodes the enhancement bitstream and outputs an enhancement layer decoded signal. The signal synthesizing unit 170 combines the G.711 decoded signal from the G.711 decoding unit 160 and the enhancement layer decoded signal from the enhancement layer decoding unit 165 and outputs a synthesized signal. The output buffer 175 stores the synthesized signal from the signal synthesizing unit 170, and outputs the stored signal in frame-by-frame.
  • FIG. 2 is a schematic view illustrating an input bitstream and an output bitstream of an encoder to which a log PCM codec of a conventional G.711 codec is applied, FIG. 3 is a schematic view illustrating an input bitstream and an output bitstream of an encoder to which enhancement layer encoding according to the present invention is applied.
  • Referring to FIG. 2, of the conventional G.711 encoder compresses a 16-bit input sample 200 to an 8-bit sample 250. The 8-bit sample 250 is composed of 1-bit sign information 260, 3-bit exponent information 270, and 4-bit mantissa information 280. The exponent information 270 indicates a compander segment, and the mantissa information 280 indicates a position in the segment indicated by the exponent information 270.
  • Referring to FIG. 3, when enhancement layer encoding according to the present invention is used, a coded sample includes additional mantissa information 390 as well as a G.711-coded sample of 8 bits. The additional mantissa information 390 sub-divides a specific position indicated by mantissa information 380 in a segment indicated by exponent information 370, thereby reducing quantization error resulted from the G.711 codec.
  • When a bit rate of the enhancement layer is 16 Kbit/s and the enhancement layer operates on 5 ms frame, the total number of available bits for enhancement layer per frame is 80 bits. That is, when the number of samples in the frame is 40 samples, an additional 2 bits per sample can be allocated on the average. Since a quantization error in the G.711 codec depends on the magnitude of an input signal, it is preferable to dynamically allocating the number of bits for additional mantissa information of each sample according to the magnitude of each sample, rather than to allocate the same number of bits for the additional mantissa information of each sample.
  • In the case where 3 bits per sample are allocated to additional mantissa information in order to reduce quantization error further, the total number of bits of all samples in a frame i.e. 120 bits (40 samples * 3 bits) exceeds the available 80 bits. In this regard, bits ranging from 0 to 3 are allocated to the additional mantissa information based on the exponent value of each sample. Of course, the maximum number of bits per sample for the additional mantissa information may be set to 3, or more, or less, depending upon embodiments of the present invention.
  • FIGS. 4A and 4B illustrate exponent maps for dynamically allocating the number of bits of additional mantissa information to each sample in a frame depending on the magnitude of an input sample according to an embodiment of the present invention.
  • Referring to FIG. 4A, the exponent map is a matrix in which row indices are exponent indices of additional mantissa information derived from an exponent value of each sample and column indices are sample indices representing each sample. For example, when 0 to 3-bits for additional mantissa information are allocated to each sample in a frame of 40 samples, the exponent map is a 10 x 40 matrix.
  • In detail, exponent indices of each sample are proportional to the exponent value of each sample, are sequential, and the number of the exponent indices are the same as the number of bits of additional mantissa information. That is, exponent indices are obtained by incrementing the exponent value of each sample. For example, when the exponent value of a sample is "000" in binary, exponent indices corresponding to the sample are 0 (the exponent value + 0), 1 (the exponent value + 1), and 2 (the exponent value + 2). As another example, when the exponent value is 7 ("111" in binary), exponent indices are 7 (the exponent value + 0), 8 (the exponent value + 1), and 9 (the exponent value + 2). Accordingly, exponent indices of each sample for additional exponent information can range from 0 to 9.
  • All of elements in an exponent map are initialized to -1, and elements corresponding to an exponent index of a sample store a sample index. That is, (an exponent index, a sample index) = a sample index. For example, when the exponent value of the second sample in a frame is "011", possible exponent indices of the sample are 3, 4, and 5. From this, elements corresponding to the exponent indices 3, 4, 5, i.e., (3,2), (4,2), (5,2) are set to 2, respectively. And the remaining elements in a column of the sample index remain intact.
  • By repeating the procedure to set a sample index to corresponding elements for all samples in a frame, the exponent map is established. A bit allocation table indicating the number of additional bits allocated to each sample is created based on the exponent map. That is, 1 bit is allocated to each sample corresponding to the current exponent index which starts from the maximum value (i.e., 9) while decreasing by 1. The bit allocation is performed until the total number of bits allocated to the samples is equal to the available bits in a frame. The generation of the bit allocation table will be explained in detail later with reference to FIG. 5.
  • Referring to FIG. 4B, an exponent map is a matrix in which row indices are exponent indices of additional mantissa information derived from the exponent value of each sample and column indices are order indices indicating the number of samples with the same exponent index. Each of elements of the exponent map represents a sample index with an exponent index.
  • For example, in the case where the maximum number of bits for additional mantissa information is 3 and there are 40 samples in a frame, the exponent map would be a 10 x 40 matrix since all of samples in a frame can have the common exponent index.
  • A method of generating an exponent map with respect to an n-th sample will now be explained.
  • First, exponent indices of additional mantissa information of the n-th sample are obtained based on its exponent value. That is, the exponent indices of the n-th sample are (its exponent value + j), where j = 0, 1, and 2.
  • Once three exponent indices of the n-th sample are obtained, an index of the n-th sample is stored in elements corresponding to the exponent indices and order indices representing the current number of samples with the exponent indices, respectively. That is, (an exponent index, the current number of samples with the exponent index) = an index of the n-th sample. The current numbers of the samples with the exponent indices are increased by 1, respectively.
  • For example, when the exponent value of the 0-th sample in a frame is "110" in binary, the corresponding exponent indices are 6, 7, and 8. Elements corresponding to the exponent indices 6, 7, and 8, i.e., (6,0), (7,0), (8,0), are set to sample index 0, and the current numbers of samples with the exponent indices 6, 7, and 8 are set to 1, respectively. Next, when the exponent value of the 1-st sample is "100" in binary, the corresponding exponent indices are 4, 5, and 6. Elements corresponding to the exponent indices 4, 5, and 6, i.e., (4,0), (5,0), (6,1) are set to sample index 1. The reason why the (6,1)-th element is set to 1 is that the number of samples having the exponent index of 6 is already 1 in the previous sample. Accordingly, the numbers of the samples corresponding to the exponent indices 4, 5, 6, 7, and 8 are 1, 1, 2, 1, and 1, respectively. When the exponent map is completely generated in this way for all samples, the number of samples and sample indices corresponding to each exponent index can be obtained.
  • FIG. 5 is a flowchart illustrating a method of generating a bit allocation table according to an embodiment of the present invention.
  • Referring to FIG. 5, when it is assumed that the maximum number of additional bits per sample is 3 and the total number of available bits per frame is 80, an enhancement layer encoder outputs additional mantissa information to each sample based on an exponent value of each sample.
  • In detail, in operation S500, the enhancement layer encoder initializes all elements of a bit allocation table to 0, sets current available bits to the total number of available bits in a current frame, and sets a maximum value of the exponent indices as a current exponent index. In operation S510, the enhancement layer encoder calculates the number of samples corresponding to each exponent index, by referring to the exponent maps illustrated in FIGS. 4A and 4B. For example, there are two samples, whose sample indices are 0 and 39, corresponding to an exponent index 8 in the exponential map illustrated in FIG. 4A.
  • In operation S520, the enhancement layer encoder compares the number of samples corresponding to the current exponent index with current available bits, and then sets the smaller one of the two numbers as the number of usable bits. In operation S530, 1 bit is allocated to each sample corresponding to the current exponent index until the number of the usable bits is exhausted. In operation S540, the enhancement layer encoder sets a value subtracting the number of the usable bits from the current available bits as a new number of current available bits.
  • In operation S550, it is checked whether the current available bits are 0. If the current available bits are 0, the generation of a bit allocation table ends for the frame. If the current available bits are not 0, the enhancement layer proceeds to operation S560. In operation S560, the enhancement layer encoder updates the current exponent index by decrementing the current exponent index by 1, and returns to operation S520. Then the enhancement layer encoder repeats operations from S520 to S550.
  • FIG. 6 is a block diagram of an enhancement layer encoder according to an embodiment of the present invention.
  • Referring to FIG. 6, the enhancement layer encoder includes an exponent map generating unit 600, a bit allocation table generating unit 610, and a bit output unit 620. The enhancement layer encoder corresponds to an enhancement layer encoding unit 115 illustrated in FIG. 1.
  • The exponent map generating unit 600 computes exponent indices of additional mantissa information per sample based on the exponent value of each sample, and then generates an exponent map including the exponent indices of each sample. The exponent value of each sample can be extracted from the G.711 encoding unit 110 illustrated in FIG. 1. Since the exponent map is illustrated in FIG. 4A and 4B, a detailed explanation thereof will not be given here.
  • Referring to the exponent map, the bit allocation table generating unit 610 retrieves samples corresponding to each exponent index and allocates 1 bit to the retrieved samples by sequentially decrementing the exponent index by 1 from the maximum value. When this bit allocation procedure is completed for all of exponent indices, the bit allocation table generating unit 610 generates a bit allocation table containing the number of bits allocated to each sample. A method of generating the bit allocation table is illustrated in FIG. 5.
  • The bit output unit 620 outputs the most significant bits of the additional mantissa information in amount of the number of the bits allocated to each sample in an input frame by using the bit allocation table. That is, the bit output unit 620 outputs [the additional mantissa information] / (2^ [the number of the bits of the additional mantissa information - the allocated number of the bits]).
  • FIG. 7 is a block diagram of an enhancement layer decoder according to an embodiment of the present invention.
  • Referring to FIG. 7, the enhancement layer decoder includes an exponent map generating unit 700, a bit allocation table generating unit 710, and an additional mantissa decoding unit 720. The exponent map generating unit 700 and the bit allocation table generating unit 710 are the same as the exponent map generating unit 600 and the bit allocation table generating unit 610 illustrated in FIG. 6, and thus a detailed explanation thereof will not be given here.
  • The additional mantissa decoding unit 720 extracts and decodes additional mantissa information of each sample from an enhancement bitstream based on the number of bits of the additional mantissa information allocated to each sample.
  • FIG. 8 is a block diagram of an enhancement layer encoder according to another embodiment of the present invention.
  • Referring to FIG. 8, the enhancement layer encoder includes an additional mantissa extracting unit 800, a bit allocating unit 810, and a bit output unit 820.
  • The additional mantissa extracting unit 800 extracts additional mantissa information from an input frame based on an exponent value obtained from the G.711 encoding performed on the input frame. That is, the additional mantissa extracting unit 800 extracts some bits followed by mantissa information (i.e., G.711 mantissa information of 4 bits) as additional mantissa information, based on the exponent value obtained from the G.711 encoding performed on the input frame. Although all of bits followed by the mantissa information may be the additional mantissa information, it is assumed in FIG. 8 that the maximum number of bits of the additional mantissa information is 3 in the current embodiment. In this case, a pseudo-code for the additional mantissa extracting unit 800 is as follows. for i = 0 ; i < L ; i + + { ext_bits i = exp i + 3 ; ext_mantissa i = x i & 2 ext_bits i - 1 ; }
    Figure imgb0003

    wherein L is the number of samples in a frame, exp[i] is an exponent value of an i-th sample, ext_bits[i] is the number of bits of additional mantissa information of the i-th sample, ext_mantissa[i] is the additional mantissa information of the i-th sample, x[i] is the i-th sample, and "&" is a bitwise AND operation.
  • For example, suppose that an input sample is "0000 0001 1010 1001" in binary. The input sample is encoded in G.711 A-law, which is a combination of a sign bit of "1", exponent bits of "001", and mantissa bits of "1010". Also the resulting additional mantissa information is "100", assuming that the maximum number of bits of additional mantissa information is 3.
  • The bit allocating unit 810 calculates the number of bits allocated to each sample by using the total number of available bits and exponent values of each sample. For example, if the bit-rate of an enhancement layer is 16 Kbit/s and the frame size is 5 ms, the total number of available bits per frame is 80 bits. The bit allocating unit 810 dynamically computes the number of bits for additional mantissa information per each sample based on the priorities of the additional mantissa information of each sample with criterion to minimize quantization error in each frame. For example, the priority may be determined from the exponent value of each sample which means a quantization step in a G.711 codec. In other words, since a sample with relatively larger exponent value results in more quantization error, its priority is higher so that more additional bits are allocated to the sample. A sample with a relatively smaller exponent value has a lower priority so that less additional bits are allocated to the sample because its quantization error is less.
  • The bit output unit 820 outputs the additional mantissa information in amount of the number of the bits allocated to each sample computed by the bit allocating unit 810. A pseudo-code for the bit output unit 820 is as follows. for i = 0 ; i < L ; i + + { tx_bits_enh i = ext_mantissa i > > ext_bits i - bit_alloc i ; }
    Figure imgb0004

    wherein bit_alloc[i] is the number of bits allocated to the i-th sample, tx_bit_enh[i] is an coded enhancement bitstream of the i-th sample, and x»a" is an operation in which "x" is right-shifted by "a" bits.
  • For example, in the case where additional mantissa information of a sample is "100" and the number of bits allocated is 2 bits, the bit output unit 820 outputs "10" as its encoded enhancement bitstream.
  • In the embodiment, it is exemplified that the maximum number of bits per sample for additional mantissa information is extracted from the sample, and then is truncated to allocated number of bits for the sample. However, it is possible that the allocated number of bits is extracted from a sample after a bit allocation table is established, in another embodiment.
  • FIG. 9 is a flowchart illustrating a method of an enhancement layer encoding according to an embodiment of the present invention.
  • Referring to FIG. 9, in operation S900, an enhancement layer encoder extracts additional mantissa information based on an exponent value obtained from the G.711 encoding performed on the input frame. Although the additional mantissa information may be the whole remaining bits followed by mantissa information in the input frame, it is assumed in FIG. 9 that the maximum number of bits for the additional mantissa information is 3 in the current embodiment. Accordingly, the enhancement layer encoder extracts additional mantissa information of 3 bits only.
  • In operation S910, the enhancement layer encoder computes the number of additional bits for mantissa information per sample by using the exponent value obtained from the G.711 encoding. In detail, the enhancement layer encoder sets priorities for 3 respective bits of the additional mantissa information of each sample as being proportional to the exponent value of each sample. For example, an exponent index may be used as a priority as shown in FIGS. 4A and 4B. The enhancement layer encoder sequentially allocates 1 bit to samples with from the highest priority to the lowest priority until a total number of allocated bits exceeds a total number of available bits in the frame.
  • In operation S920, after the number of bits allocated to each sample is obtained in this way, the enhancement layer encoder outputs the most significant bits of the additional mantissa information in amount of the number of the bits allocated to each sample in an input frame.
  • FIG. 10 is a block diagram of an enhancement layer decoder according to another embodiment of the present invention.
  • Referring to FIG. 10, the enhancement layer decoder includes a decoder bit allocating unit 1000, an additional mantissa decoding unit 1010, and an enhancement signal synthesizing unit 1020.
  • The decoder bit allocating unit 1000 obtains the number of bits for additional mantissa information per sample by using the total number of available bits in a frame and exponent values obtained by G.711 decoding. The operation of the decoder bit allocating unit 1000 is the same as that of the bit allocating unit illustrated in FIG. 7, and thus a detailed explanation thereof will not be given here.
  • The additional mantissa decoding unit 1010 restores additional mantissa information from an enhancement bitstream, using the exponent value and the number of the bits for the additional mantissa information obtained by the decoder bit allocating unit 1000. That is, the additional mantissa decoding unit 1010 restores the additional mantissa information by extracting the same number of bits as the number of the bits of the additional mantissa information allocated to each sample from the enhancement bitstream. When the maximum number of the bits for the additional mantissa information is 3, a pseudo-code for operating the additional mantissa decoding unit 1010 is shown below. That is, the additional mantissa decoding unit 1010 inserts a bit string of "0"s to the decoded additional mantissa information in amount of difference between the maximum number of bits for the additional mantissa information and the number of allocated bits for the additional mantissa information. for i = 0 ; i < L ; i + + { ext_mantissa i = rx_bits_enh i < < 3 - bit_alloc i ; }
    Figure imgb0005

    wherein rx_bit_enh[i] is the i-th enhancement bitstream.
  • The enhancement signal synthesizing unit 1020 restores an enhancement signal by using the restored additional mantissa information, exponent value and sign information obtained by G.711 decoding. A pseudo-code for operating the enhancement signal synthesizing unit 1020 is as follows. At first, the restored additional mantissa information is bit-shifted to left in amount of the exponent value, and then sign information is added in the way that if the sign information indicates a negative value, the bit-shifted additional mantissa information is multiplied by (-1), and otherwise, the bit-shifted additional mantissa information itself is an enhancement sample. for i = 0 ; i < L ; i + + { sig_enh i = ext_mantissa i < < exp i ; if sign i = negative value sig_enh i = - sig_enh i ; }
    Figure imgb0006

    wherein sign[i] is sign information of the i-th sample which is obtained by G.711 decoding.
  • FIG. 11 is a flowchart illustrating a method of decoding an enhancement layer according to an embodiment of the present invention.
  • Referring to FIG. 11, in operation S1100, an enhancement layer decoder obtains the number of additional bits allocated to each sample by using the maximum number of available bits and exponent values in a frame obtained by a G.711 decoding unit. In operation S1110, the enhancement layer decoder extracts additional mantissa information, as many as the number of the additional bits allocated to each sample, from an enhancement bitstream. In operation S1120, the enhancement layer decoder restores additional mantissa information.
  • The present invention may be embodied as computer-readable codes on a computer-readable recording medium. The computer-readable recording medium is any data storage device that can store data which can be thereafter read by a computer system. Examples of the computer-readable recording medium include read-only memories (ROMs), random-access memories (RAMs), CD-ROMs, magnetic tapes, floppy disks, and optical data storage devices. The computer-readable recording medium can be dispersively installed in a computer system connected to a network, and stored and executed as a computer-readable code in a distributed computing environment.
  • While the present invention has been particularly shown and described with reference to exemplary embodiments thereof using specific terms, the embodiments and terms have been used to explain the present invention and should not be construed as limiting the scope of the present invention defined by the claims. Accordingly, it will be understood by those of ordinary skill in the art that various changes in form and details may be made therein without departing from the scope of the present invention as defined by the following claims.

Claims (14)

  1. A method of encoding an enhancement layer to reduce a quantization error in a G.711 codec, the method comprising:
    generating an exponent map that is a matrix, including: exponent indices of additional mantissa information derived from exponent value of each sample, and sample indices for each sample in a frame;
    generating a bit allocation table containing the number of bits allocated to each sample by referring to the exponent map, in the way of repeating a process of allocating 1 bit to each sample with a respective exponent index starting from a maximum value while decreasing by 1 at every repetition until the total number of bits allocated to the samples is equal to the total number of available bits in the frame; and
    outputting one or more most significant bits, as many as the number of the bits allocated to each sample, from the additional mantissa information of each sample by referring to the bit allocation table.
  2. The method of claim 1, wherein the generating an exponent map comprises setting values, which are proportional to the exponent value of each sample and are as many as the number of bits for the additional mantissa information, as exponent indices of the additional mantissa information of each sample.
  3. The method of claim 2, wherein the generating an exponent map comprises setting exponent indices of the additional mantissa information to values incremented by a step of 1 starting from the exponent value of a sample.
  4. The method of claim 1, wherein the repeating of the process comprises:
    setting the maximum value of the exponent indices as the current exponent index;
    comparing the number of samples with the current exponent index with the number of available bits in the frame, and setting the number of usable bits to the smaller one of the two numbers;
    sequentially allocating 1 bit to each sample with the current exponent index under the budget of the usable bits;
    updating the number of available bits to value obtained by subtracting the number of usable bits from the number of available bits;
    checking if the updated number of available bits is zero or not; and
    if the updated number of available bits is not zero, decrementing the current exponent index by 1 and going back to the step of setting the number of usable bits.
  5. The method of claim 1, wherein the number of bits of the additional mantissa information is 3.
  6. The method of claim 1, wherein the exponent information is obtained by G.711 encoding.
  7. An enhancement layer encoder (115) for a G.711 codec comprising:
    an exponent map generating unit (600) for generating an exponent map that is a matrix, including: exponent indices of additional mantissa information derived from exponent value of each sample, and sample indices for each sample in a frame;
    a bit allocation table (610) generating unit for generating a bit allocation table containing the number of bits allocated to each sample by referring to the exponent map, in the way of repeating a process of allocating 1 bit to each sample with a respective exponent index starting from a maximum value while decreasing by 1 at every repetition until the total number of bits allocated to the samples is equal to the total number of available bits in the frame; and
    a bit output unit (620) for outputting one or more most significant bits, as many as the number of the bits allocated to each sample, from the additional mantissa information of each sample by referring to the bit allocation table.
  8. The enhancement layer encoder of claim 7, wherein the exponent map generating unit sets values, which are proportional to the exponent value of each sample and are as many as the number of bits for the additional mantissa information, as exponent indices of the additional mantissa information.
  9. The enhancement layer encoder of claim 8, wherein the exponent map generating unit sets exponent indices of the additional mantissa information to values incremented by a step of 1 starting from the exponent value.
  10. The enhancement layer encoder of claim 7, wherein, if a difference between the total number of available bits in the frame and the total number of bits allocated to the samples so far is less than the number of samples with a current exponent index, the bit allocation table generating unit allocates 1 bit to each sample with the current exponent index respectively until the difference number of bits are exhausted.
  11. The enhancement layer encoder of claim 7, wherein the bit output unit outputs [the additional mantissa information of each of the samples] /2^ [the number of the bits for the additional mantissa information -the number of the bits allocated to each sample].
  12. The enhancement layer encoder of claim 7, wherein the additional mantissa information comprises 3 bits.
  13. The enhancement layer encoder of claim 7, wherein the exponent value is obtained by G.711 encoding.
  14. An encoder (100) for a G.711 codec comprising:
    a G.711 encoding unit (110) for encoding an input frame;
    an enhancement layer encoding unit according to one of claims 7 to 13 for encoding the input frame by dynamically allocating the number of bits for additional mantissa information to each sample in the input frame based on a exponent information of each sample which is obtained from the G.711 encoding unit; and
    a multiplexing unit for multiplexing bitstream of the G.711 encoding unit and bitstream of the enhancement layer encoding unit.
EP08793289A 2007-08-16 2008-08-18 Apparatus and method for encoding an enhancement layer Active EP2179415B1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
EP10153693.6A EP2187387B1 (en) 2007-08-16 2008-08-18 Method for encoding and decoding an enhancement layer
EP10153630A EP2202728B1 (en) 2007-08-16 2008-08-18 Apparatus and method for decoding an enhancement layer

Applications Claiming Priority (4)

Application Number Priority Date Filing Date Title
KR20070082346 2007-08-16
KR1020080024919A KR100912826B1 (en) 2007-08-16 2008-03-18 A enhancement layer encoder/decoder for improving a voice quality in G.711 codec and method therefor
KR1020080079929A KR100912827B1 (en) 2007-08-16 2008-08-14 A enhancement layer encoder/decoder for improving a voice quality in G.711 codec and method therefor
PCT/KR2008/004775 WO2009022884A1 (en) 2007-08-16 2008-08-18 Apparatus and method for encoding and decoding enhancement layer

Related Child Applications (2)

Application Number Title Priority Date Filing Date
EP10153630.8 Division-Into 2010-02-16
EP10153693.6 Division-Into 2010-02-16

Publications (3)

Publication Number Publication Date
EP2179415A1 EP2179415A1 (en) 2010-04-28
EP2179415A4 EP2179415A4 (en) 2011-07-20
EP2179415B1 true EP2179415B1 (en) 2013-03-20

Family

ID=40350862

Family Applications (3)

Application Number Title Priority Date Filing Date
EP08793289A Active EP2179415B1 (en) 2007-08-16 2008-08-18 Apparatus and method for encoding an enhancement layer
EP10153630A Active EP2202728B1 (en) 2007-08-16 2008-08-18 Apparatus and method for decoding an enhancement layer
EP10153693.6A Active EP2187387B1 (en) 2007-08-16 2008-08-18 Method for encoding and decoding an enhancement layer

Family Applications After (2)

Application Number Title Priority Date Filing Date
EP10153630A Active EP2202728B1 (en) 2007-08-16 2008-08-18 Apparatus and method for decoding an enhancement layer
EP10153693.6A Active EP2187387B1 (en) 2007-08-16 2008-08-18 Method for encoding and decoding an enhancement layer

Country Status (2)

Country Link
EP (3) EP2179415B1 (en)
WO (1) WO2009022884A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102959619B (en) * 2010-06-29 2014-06-11 日本电信电话株式会社 Bit allocation device, method, program and recording medium thereof
FR2981781A1 (en) * 2011-10-19 2013-04-26 France Telecom IMPROVED HIERARCHICAL CODING

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6785261B1 (en) * 1999-05-28 2004-08-31 3Com Corporation Method and system for forward error correction with different frame sizes
US6724814B1 (en) * 1999-06-24 2004-04-20 Intel Corporation Pad and CODEC detection
US6650762B2 (en) * 2001-05-31 2003-11-18 Southern Methodist University Types-based, lossy data embedding

Also Published As

Publication number Publication date
EP2187387B1 (en) 2013-07-31
EP2179415A4 (en) 2011-07-20
EP2179415A1 (en) 2010-04-28
EP2187387A2 (en) 2010-05-19
EP2187387A3 (en) 2012-01-25
WO2009022884A1 (en) 2009-02-19
EP2202728A1 (en) 2010-06-30
EP2202728B1 (en) 2013-03-27

Similar Documents

Publication Publication Date Title
EP0573216A2 (en) CELP vocoder
KR20070038041A (en) Method and apparatus for voice trans-rating in multi-rate voice coders for telecommunications
US8055499B2 (en) Transmitter and receiver for speech coding and decoding by using additional bit allocation method
US8498875B2 (en) Apparatus and method for encoding and decoding enhancement layer
JP5047263B2 (en) Encoding device and decoding device
EP2179415B1 (en) Apparatus and method for encoding an enhancement layer
Ding Wideband audio over narrowband low-resolution media
US20030158730A1 (en) Method and apparatus for embedding data in and extracting data from voice code
EP0573215A2 (en) Vocoder synchronization
JP3257386B2 (en) Vector quantization method
KR0175248B1 (en) LSP Vocoder
JPH05165498A (en) Voice coding method
Kang et al. Improved Excitation Coding for 13 kbps Variable Rate QCELP Coder
Ding Backward compatible wideband voice over narrowband low-resolution media

Legal Events

Date Code Title Description
PUAI Public reference made under article 153(3) epc to a published international application that has entered the european phase

Free format text: ORIGINAL CODE: 0009012

17P Request for examination filed

Effective date: 20100316

AK Designated contracting states

Kind code of ref document: A1

Designated state(s): AT BE BG CH CY CZ DE DK EE ES FI FR GB GR HR HU IE IS IT LI LT LU LV MC MT NL NO PL PT RO SE SI SK TR

AX Request for extension of the european patent

Extension state: AL BA MK RS

DAX Request for extension of the european patent (deleted)
A4 Supplementary search report drawn up and despatched

Effective date: 20110620

RIC1 Information provided on ipc code assigned before grant

Ipc: G10L 19/00 20060101ALI20110614BHEP

Ipc: G10L 19/14 20060101AFI20090304BHEP

GRAP Despatch of communication of intention to grant a patent

Free format text: ORIGINAL CODE: EPIDOSNIGR1

GRAS Grant fee paid

Free format text: ORIGINAL CODE: EPIDOSNIGR3

REG Reference to a national code

Ref country code: DE

Ref legal event code: R079

Ref document number: 602008023065

Country of ref document: DE

Free format text: PREVIOUS MAIN CLASS: G10L0019140000

Ipc: G10L0019035000

GRAA (expected) grant

Free format text: ORIGINAL CODE: 0009210

AK Designated contracting states

Kind code of ref document: B1

Designated state(s): AT BE BG CH CY CZ DE DK EE ES FI FR GB GR HR HU IE IS IT LI LT LU LV MC MT NL NO PL PT RO SE SI SK TR

REG Reference to a national code

Ref country code: GB

Ref legal event code: FG4D

RIC1 Information provided on ipc code assigned before grant

Ipc: G10L 19/035 20130101AFI20130208BHEP

Ipc: G10L 19/002 20130101ALI20130208BHEP

REG Reference to a national code

Ref country code: CH

Ref legal event code: EP

REG Reference to a national code

Ref country code: IE

Ref legal event code: FG4D

REG Reference to a national code

Ref country code: AT

Ref legal event code: REF

Ref document number: 602501

Country of ref document: AT

Kind code of ref document: T

Effective date: 20130415

REG Reference to a national code

Ref country code: DE

Ref legal event code: R096

Ref document number: 602008023065

Country of ref document: DE

Effective date: 20130516

PG25 Lapsed in a contracting state [announced via postgrant information from national office to epo]

Ref country code: NO

Free format text: LAPSE BECAUSE OF FAILURE TO SUBMIT A TRANSLATION OF THE DESCRIPTION OR TO PAY THE FEE WITHIN THE PRESCRIBED TIME-LIMIT

Effective date: 20130620

Ref country code: ES

Free format text: LAPSE BECAUSE OF FAILURE TO SUBMIT A TRANSLATION OF THE DESCRIPTION OR TO PAY THE FEE WITHIN THE PRESCRIBED TIME-LIMIT

Effective date: 20130701

Ref country code: SE

Free format text: LAPSE BECAUSE OF FAILURE TO SUBMIT A TRANSLATION OF THE DESCRIPTION OR TO PAY THE FEE WITHIN THE PRESCRIBED TIME-LIMIT

Effective date: 20130320

Ref country code: BG

Free format text: LAPSE BECAUSE OF FAILURE TO SUBMIT A TRANSLATION OF THE DESCRIPTION OR TO PAY THE FEE WITHIN THE PRESCRIBED TIME-LIMIT

Effective date: 20130620

Ref country code: LT

Free format text: LAPSE BECAUSE OF FAILURE TO SUBMIT A TRANSLATION OF THE DESCRIPTION OR TO PAY THE FEE WITHIN THE PRESCRIBED TIME-LIMIT

Effective date: 20130320

REG Reference to a national code

Ref country code: AT

Ref legal event code: MK05

Ref document number: 602501

Country of ref document: AT

Kind code of ref document: T

Effective date: 20130320

REG Reference to a national code

Ref country code: LT

Ref legal event code: MG4D

PG25 Lapsed in a contracting state [announced via postgrant information from national office to epo]

Ref country code: GR

Free format text: LAPSE BECAUSE OF FAILURE TO SUBMIT A TRANSLATION OF THE DESCRIPTION OR TO PAY THE FEE WITHIN THE PRESCRIBED TIME-LIMIT

Effective date: 20130621

Ref country code: SI

Free format text: LAPSE BECAUSE OF FAILURE TO SUBMIT A TRANSLATION OF THE DESCRIPTION OR TO PAY THE FEE WITHIN THE PRESCRIBED TIME-LIMIT

Effective date: 20130320

Ref country code: LV

Free format text: LAPSE BECAUSE OF FAILURE TO SUBMIT A TRANSLATION OF THE DESCRIPTION OR TO PAY THE FEE WITHIN THE PRESCRIBED TIME-LIMIT

Effective date: 20130320

Ref country code: FI

Free format text: LAPSE BECAUSE OF FAILURE TO SUBMIT A TRANSLATION OF THE DESCRIPTION OR TO PAY THE FEE WITHIN THE PRESCRIBED TIME-LIMIT

Effective date: 20130320

REG Reference to a national code

Ref country code: NL

Ref legal event code: VDEP

Effective date: 20130320

PG25 Lapsed in a contracting state [announced via postgrant information from national office to epo]

Ref country code: BE

Free format text: LAPSE BECAUSE OF FAILURE TO SUBMIT A TRANSLATION OF THE DESCRIPTION OR TO PAY THE FEE WITHIN THE PRESCRIBED TIME-LIMIT

Effective date: 20130320

Ref country code: HR

Free format text: LAPSE BECAUSE OF FAILURE TO SUBMIT A TRANSLATION OF THE DESCRIPTION OR TO PAY THE FEE WITHIN THE PRESCRIBED TIME-LIMIT

Effective date: 20130320

PG25 Lapsed in a contracting state [announced via postgrant information from national office to epo]

Ref country code: IS

Free format text: LAPSE BECAUSE OF FAILURE TO SUBMIT A TRANSLATION OF THE DESCRIPTION OR TO PAY THE FEE WITHIN THE PRESCRIBED TIME-LIMIT

Effective date: 20130720

Ref country code: AT

Free format text: LAPSE BECAUSE OF FAILURE TO SUBMIT A TRANSLATION OF THE DESCRIPTION OR TO PAY THE FEE WITHIN THE PRESCRIBED TIME-LIMIT

Effective date: 20130320

Ref country code: NL

Free format text: LAPSE BECAUSE OF FAILURE TO SUBMIT A TRANSLATION OF THE DESCRIPTION OR TO PAY THE FEE WITHIN THE PRESCRIBED TIME-LIMIT

Effective date: 20130320

Ref country code: SK

Free format text: LAPSE BECAUSE OF FAILURE TO SUBMIT A TRANSLATION OF THE DESCRIPTION OR TO PAY THE FEE WITHIN THE PRESCRIBED TIME-LIMIT

Effective date: 20130320

Ref country code: EE

Free format text: LAPSE BECAUSE OF FAILURE TO SUBMIT A TRANSLATION OF THE DESCRIPTION OR TO PAY THE FEE WITHIN THE PRESCRIBED TIME-LIMIT

Effective date: 20130320

Ref country code: RO

Free format text: LAPSE BECAUSE OF FAILURE TO SUBMIT A TRANSLATION OF THE DESCRIPTION OR TO PAY THE FEE WITHIN THE PRESCRIBED TIME-LIMIT

Effective date: 20130320

Ref country code: PT

Free format text: LAPSE BECAUSE OF FAILURE TO SUBMIT A TRANSLATION OF THE DESCRIPTION OR TO PAY THE FEE WITHIN THE PRESCRIBED TIME-LIMIT

Effective date: 20130722

Ref country code: CZ

Free format text: LAPSE BECAUSE OF FAILURE TO SUBMIT A TRANSLATION OF THE DESCRIPTION OR TO PAY THE FEE WITHIN THE PRESCRIBED TIME-LIMIT

Effective date: 20130320

PG25 Lapsed in a contracting state [announced via postgrant information from national office to epo]

Ref country code: PL

Free format text: LAPSE BECAUSE OF FAILURE TO SUBMIT A TRANSLATION OF THE DESCRIPTION OR TO PAY THE FEE WITHIN THE PRESCRIBED TIME-LIMIT

Effective date: 20130320

Ref country code: CY

Free format text: LAPSE BECAUSE OF FAILURE TO SUBMIT A TRANSLATION OF THE DESCRIPTION OR TO PAY THE FEE WITHIN THE PRESCRIBED TIME-LIMIT

Effective date: 20130320

PLBE No opposition filed within time limit

Free format text: ORIGINAL CODE: 0009261

STAA Information on the status of an ep patent application or granted ep patent

Free format text: STATUS: NO OPPOSITION FILED WITHIN TIME LIMIT

PG25 Lapsed in a contracting state [announced via postgrant information from national office to epo]

Ref country code: DK

Free format text: LAPSE BECAUSE OF FAILURE TO SUBMIT A TRANSLATION OF THE DESCRIPTION OR TO PAY THE FEE WITHIN THE PRESCRIBED TIME-LIMIT

Effective date: 20130320

26N No opposition filed

Effective date: 20140102

PG25 Lapsed in a contracting state [announced via postgrant information from national office to epo]

Ref country code: IT

Free format text: LAPSE BECAUSE OF FAILURE TO SUBMIT A TRANSLATION OF THE DESCRIPTION OR TO PAY THE FEE WITHIN THE PRESCRIBED TIME-LIMIT

Effective date: 20130320

REG Reference to a national code

Ref country code: CH

Ref legal event code: PL

REG Reference to a national code

Ref country code: DE

Ref legal event code: R097

Ref document number: 602008023065

Country of ref document: DE

Effective date: 20140102

PG25 Lapsed in a contracting state [announced via postgrant information from national office to epo]

Ref country code: MC

Free format text: LAPSE BECAUSE OF FAILURE TO SUBMIT A TRANSLATION OF THE DESCRIPTION OR TO PAY THE FEE WITHIN THE PRESCRIBED TIME-LIMIT

Effective date: 20130320

Ref country code: CH

Free format text: LAPSE BECAUSE OF NON-PAYMENT OF DUE FEES

Effective date: 20130831

Ref country code: LI

Free format text: LAPSE BECAUSE OF NON-PAYMENT OF DUE FEES

Effective date: 20130831

REG Reference to a national code

Ref country code: IE

Ref legal event code: MM4A

PG25 Lapsed in a contracting state [announced via postgrant information from national office to epo]

Ref country code: IE

Free format text: LAPSE BECAUSE OF NON-PAYMENT OF DUE FEES

Effective date: 20130818

PG25 Lapsed in a contracting state [announced via postgrant information from national office to epo]

Ref country code: MT

Free format text: LAPSE BECAUSE OF FAILURE TO SUBMIT A TRANSLATION OF THE DESCRIPTION OR TO PAY THE FEE WITHIN THE PRESCRIBED TIME-LIMIT

Effective date: 20130320

Ref country code: TR

Free format text: LAPSE BECAUSE OF FAILURE TO SUBMIT A TRANSLATION OF THE DESCRIPTION OR TO PAY THE FEE WITHIN THE PRESCRIBED TIME-LIMIT

Effective date: 20130320

PG25 Lapsed in a contracting state [announced via postgrant information from national office to epo]

Ref country code: HU

Free format text: LAPSE BECAUSE OF FAILURE TO SUBMIT A TRANSLATION OF THE DESCRIPTION OR TO PAY THE FEE WITHIN THE PRESCRIBED TIME-LIMIT; INVALID AB INITIO

Effective date: 20080818

Ref country code: LU

Free format text: LAPSE BECAUSE OF NON-PAYMENT OF DUE FEES

Effective date: 20130818

REG Reference to a national code

Ref country code: FR

Ref legal event code: PLFP

Year of fee payment: 9

REG Reference to a national code

Ref country code: FR

Ref legal event code: PLFP

Year of fee payment: 10

REG Reference to a national code

Ref country code: FR

Ref legal event code: PLFP

Year of fee payment: 11

P01 Opt-out of the competence of the unified patent court (upc) registered

Effective date: 20230625

PGFP Annual fee paid to national office [announced via postgrant information from national office to epo]

Ref country code: GB

Payment date: 20230720

Year of fee payment: 16

PGFP Annual fee paid to national office [announced via postgrant information from national office to epo]

Ref country code: FR

Payment date: 20230725

Year of fee payment: 16

Ref country code: DE

Payment date: 20230720

Year of fee payment: 16