USPatent applicationPatented

Encoding and decoding method and device

Granted 7 May 2013 · 1 office action

Life of the application

8 dated events
⤢ drag to zoom20122014201620182020202220242026202820302032ProsecutionOwnershipTerm & fees
ProsecutionOwnershipTerm & feeshover for detail · click to open

Abstract

The present invention relates to information processing technologies and discloses an encoding and decoding method and device to solve the poor decoding quality problem. The technical solution of the present invention includes: encoding each sample of an input signal to generate an encoded signal of a core layer; comparing residuals of all or a part of the samples of the input signal with encoding thresholds, where the residuals are generated by core layer encoding, and performing encoding according to comparison results to generate an encoded signal of an enhancement layer; and writing the encoded signal of the core layer and the encoded signal of the enhancement layer into a bitstream to generate an encoded signal of the input signal.

Description

11 parts
›CROSS-REFERENCE TO RELATED APPLICATION

This application is a continuation of International Application No. PCT/CN2009/071051 filed on Mar. 27, 2009, which is hereby incorporated by reference in its entirety.

›FIELD OF THE INVENTION

The present invention relates to signal processing technologies, and in particular, to an encoding and decoding method and device.

›BACKGROUND OF THE INVENTION

In prior arts, coded bits are generally added to improve the quality of speech/audio signals encoded by traditional encoding methods, such as the pulse code modulation (PCM) method and the adaptive differential pulse code modulation (ADPCM) method.

In the process of implementing the present invention, the inventor finds at least the following problems in the prior arts:

After coded bits are added, if a decoder supports only the decoding of encoded signals of a low bit rate, or if the decoder receives only the encoded signals of the low bit rate due to insufficient network bandwidth and poor transmission quality, the decoder can only decode the encoded signals of the low bit rate, resulting in poor quality of decoded signals. For example, if the encoder and decoder use the traditional ADPCM encoding and decoding method, the encoded signals of a low bit rate decoded by the decoder are even worse than the decoded encoded signals that are generated without adding extra bits.

›SUMMARY OF THE INVENTION

Embodiments of the present invention provide an encoding and decoding method and device to improve decoding quality.

To fulfill the objective, the following technical solution is provided:

An encoding method that includes: encoding each sample of an input signal to generate an encoded signal of a core layer; comparing residuals of all or a part of the samples of the input signal with encoding thresholds, where the residuals are generated by core layer encoding, and performing encoding according to comparison results to generate an encoded signal of an enhancement layer; and writing the encoded signal of the core layer and the encoded signal of the enhancement layer into a bitstream to generate an encoded signal of the input signal.

An encoding device that includes: a first encoding unit, configured to encode each sample of an input signal to generate an encoded signal of a core layer; a second encoding unit, configured to compare residuals of all or a part of the samples of the input signal with encoding thresholds, where the residuals are generated by core layer encoding, and perform encoding according to comparison results to generate an encoded signal of an enhancement layer; and a generating unit, configured to write the encoded signal of the core layer generated by the first encoding unit and the encoded signal of the enhancement layer generated by the second encoding unit into a bitstream to generate an encoded signal of the input signal.

A decoding method that includes: obtaining an encoded signal of a core layer from an encoded signal, and decoding the encoded signal of the core layer to obtain each index corresponding to each sample of a quantized table of the core layer; and if the encoded signal further includes an encoded signal of an enhancement layer, using the encoded signal of the enhancement layer to modify the index corresponding to each sample, of the quantized table of the core layer, and obtaining a quantized value to generate a decoded signal according to the modified index; if the encoded signal does not include the encoded signal of the enhancement layer, obtaining the quantized value to generate the decoded signal according to the index of the quantized table of the core layer.

A decoding device that includes: a decoding unit, configured to obtain an encoded signal of a core layer from an encoded signal, and decode the encoded signal of the core layer to obtain each index corresponding to each sample of a quantized table of the core layer; and a generating unit, configured to: if the encoded signal further includes an encoded signal of an enhancement layer, use the encoded signal of the enhancement layer to modify the index corresponding to each sample, of the quantized table of the core layer, and obtain a quantized value to generate a decoded signal according to the modified index; if the encoded signal does not include the encoded signal of the enhancement layer, obtain the quantized value to generate the decoded signal according to the index corresponding to each sample, of the quantized table of the core layer.

With the encoding and decoding methods and devices provided by embodiments of the present invention, the encoder may encode each sample of the input signal to generate an encoded signal of the core layer, compare residuals of all or a part of the samples of the input signal with encoding thresholds, where the residuals are generated by core layer encoding, and perform encoding according to comparison results to generate an encoded signal of the enhancement layer, thus improving encoding quality; because the encoded signal of the enhancement layer is generated by comparing residuals of all or a part of the samples of the input signal with encoding thresholds, where the residuals are generated by core layer encoding, if the decoder supports only the decoding of encoded signals of a low bit rate, or if the decoder receives only the encoded signals of the low bit rate due to insufficient network bandwidth and poor transmission quality, the quality of the decoded signals generated by the decoder according to the encoded signals of the core layer may be the same as the quality of the encoded signals that are generated by low bit rate encoding, and therefore the decoding quality is improved.

›BRIEF DESCRIPTION OF THE DRAWINGS

To make the technical solution of the present invention clearer, the accompanying drawings for illustrating the embodiments of the present invention are outlined below. Apparently, the accompanying drawings are exemplary only, and those skilled in the art can derive other drawings from such accompanying drawings without creative efforts.

FIG. 1 is a flowchart of an encoding method provided by an embodiment of the present invention;

FIG. 2 shows a structure for implementing an encoding method provided by another embodiment of the present invention;

FIG. 3 is a flowchart of an encoding method provided by another embodiment of the present invention;

FIG. 4 is a flowchart of step 301 in an encoding method provided by another embodiment of the present invention;

FIG. 5 is a flowchart of step 302 in an encoding method provided by another embodiment of the present invention;

FIG. 6 shows a mapping relation between a quantized value of 3 bits and a quantized value of 2 bits in the encoding method illustrated in FIG. 5 ;

FIG. 7 shows a structure of an encoding device provided by an embodiment of the present invention;

FIG. 8 shows a structure of a second encoding unit 702 in the encoding device illustrated in FIG. 7 ;

FIG. 9 shows a structure of a first encoding sub-unit 801 in the second encoding unit 702 illustrated in FIG. 8 ;

FIG. 10 is a flowchart of a decoding method provided by an embodiment of the present invention;

FIG. 11 shows a structure for implementing a decoding method provided by another embodiment of the present invention;

FIG. 12 shows a structure of a decoding device provided by an embodiment of the present invention; and

FIG. 13 shows a structure of a generating unit 1202 in the decoding device illustrated in FIG. 12 .

›DETAILED DESCRIPTION OF THE EMBODIMENTS · 1 of 6

The technical solution of the embodiments of the present invention is hereinafter described in detail with reference to the accompanying drawings. Apparently, the embodiments are only exemplary embodiments of the present invention and the present invention is not limited to such embodiments. All other embodiments, which can be derived by those skilled in the art from the embodiments given herein without any creative efforts, fall within the scope of the present invention.

Embodiments of the present invention provide an encoding and decoding method and device to solve the following problem in the prior arts: When coded bits are added to improve the encoding quality, if the decoder supports only the decoding of encoded signals of a low bit rate, or if the decoder receives only the encoded signals of the low bit rate due to insufficient network bandwidth and poor transmission quality, the quality of the decoded signals generated by the decoder is poor.

As shown in FIG. 1 , the encoding method provided by an embodiment of the present invention includes:

Step 101 : Encode each sample of an input signal to generate an encoded signal of a core layer.

Step 102 : Compare residuals of all or a part of the samples of the input signal with encoding thresholds, where the residuals are generated by core layer encoding, and perform encoding according to comparison results to generate an encoded signal of an enhancement layer.

Step 103 : Write the encoded signal of the core layer and the encoded signal of the enhancement layer into a bitstream to generate an encoded signal of the input signal.

With the encoding method provided by the embodiment of the present invention, the encoder encodes each sample of the input signal to generate an encoded signal of the core layer, compares residuals of all or a part of the samples of the input signal with encoding thresholds, where the residuals are generated by core layer encoding, and performs encoding according to comparison results to generate an encoded signal of the enhancement layer, thus improving encoding quality; because the encoded signal of the enhancement layer is generated by comparing residuals of all or a part of the samples of the input signal with encoding thresholds, where the residuals are generated by core layer encoding, if the decoder supports only the decoding of encoded signals of a low bit rate, or if the decoder receives only the encoded signals of the low bit rate due to insufficient network bandwidth and poor transmission quality, the quality of the decoded signals generated by the decoder according to the encoded signals of the core layer may be the same as the quality of the encoded signals that are generated by low bit rate encoding, and therefore the decoding quality is improved.

The encoding method provided by the embodiment of the present invention may encode narrowband, wideband, ultra-wideband or full-band speech/audio signals. To make the technical solution of the embodiments of the present invention clearer to those skilled in the art, the following describes the technical solution by using the encoding method provided by an embodiment of the present invention to encode an ultra-wideband audio signal with the valid bandwidth being 14 KHz.

An encoding method provided by another embodiment of the present invention may encode the ultra-wideband audio signal through three encoding modules. As shown in FIG. 2 , the three encoding modules are: core layer encoding module, enhancement layer encoding module, and extended layer encoding module.

As shown in FIG. 3 , the steps of encoding the ultra-wideband audio signal by using the three encoding modules shown in FIG. 2 by using the encoding method provided by another embodiment of the present invention may include:

Step 301 : Use the core layer encoding module shown in FIG. 2 to encode the wideband part of the ultra-wideband audio signal to generate an encoded signal of a core layer.

In this embodiment, the wideband part of the ultra-wideband audio signal is the 0-8 KHz part of the ultra-wideband audio signal, and the encoder may divide the ultra-wideband audio signal to obtain the 0-8 KHz part of the ultra-wideband audio signal.

As shown in FIG. 4 , step 301 may specifically include:

Step 401 : Divide the wideband part of the ultra-wideband audio signal to obtain the low-band part of 0-4 KHz and the high-band part of 4-8 KHz.

Step 402 : Encode the low-band part and high-band part of the ultra-wideband audio signal obtained in step 401 to generate an encoded signal of a first core sub-layer and an encoded signal of a second core sub-layer, respectively, where the encoded signal of the first core sub-layer is generated after encoding the low-band part of the ultra-wideband audio signal and the encoded signal of the second core sub-layer is generated after encoding the high-band part of the ultra-wideband audio signal.

The encoder encodes the low-band part and high-band part of the ultra-wideband audio signal in the same way. The following describes the case that the encoder encodes the high-band part of the ultra-wideband audio signal.

In this embodiment, the high-band part of the ultra-wideband audio signal X H ={x H1 , x H2 , . . . , x HM }, where M indicates the number of samples of the high-band part of the ultra-wideband audio signal; step 402 may use the ADPCM encoding method to encode each sample x H1 (iε[1, M]) of the high-band part X H of the ultra-wideband audio signal and include:

1. Obtain a predicated value s Hi of the current sample x Hi to be encoded.

In this embodiment, if i=1, s Hi =0; otherwise, s Hi ={circumflex over (x)} H(i-1) , where {circumflex over (x)} H(i-1) is the local decoded signal of x H(i-1) .

2. Obtain a predicated difference e Hi of the current sample x Hi to be encoded by using the following formula (1):

x Hi −s Hi =e Hi   (1)

3. Quantize e Hi according to the quantized table corresponding to the coded bit number of the sample to obtain the index of the quantized difference ê Hi in the quantized table, and encode the index to generate an encoded signal x′ Hi .

›DETAILED DESCRIPTION OF THE EMBODIMENTS · 2 of 6

In this embodiment, each sample uses 2 bits for encoding, that is, the coded bit number of each sample is 2, and the quantized table corresponding to 2 bits includes 4 quantized values, represented by −a 1 , −a 2 , a 2 , and a 1 respectively; the mapping relation between the quantized value corresponding to 2 bits and the index may be shown in Table 1.

The encoder may quantize e Hi through the quantized value and encode the index of the quantized difference ê Hi in the quantized table to generate an encoded signal x′ Hi . For example, if ê Hi =a 1 after e Hi is quantized by the quantized table, the encoder uses 2 bits to encode the index 3 corresponding to a 1 as shown in Table 1 to generate an encoded signal x′ Hi =11.

Certainly, in practice, the coded bit number of each sample may be not limited to 2 bits; when any other coded bit number is used to encode each sample, the specific implementation is the same as above, and therefore is not described here.

4. Write the encoded signal of each sample x Hi of the high-band part X H of the ultra-wideband audio signal into a bitstream to generate an encoded signal of the second core sub-layer.

It should be noted that in practice, step 402 may also encode the low-band part and high-band part of the ultra-wideband audio signal by using other encoding methods; for example, step 402 may encode the low-band part and high-band part of the ultra-wideband audio signal by using the ADPCM method with noise shaping or other methods similar to PCM. In step 402 , the encoder may also use different encoding methods to encode the low-band part and high-band part of the ultra-wideband audio signal; for example, the encoder may use the PCM encoding method to encode the low-band part of the ultra-wideband signal and use the ADPCM encoding method to encode the high-band part of the ultra-wideband signal.

Step 403 : Write the encoded signals of the first and second core sub-layers generated in step 402 into a bitstream to generate an encoded signal of the core layer.

Step 302 : Use the enhancement layer encoding module shown in FIG. 2 to compare residuals of all or a part of the samples of the input signal with encoding thresholds, where the residuals are generated by core layer encoding, and perform encoding according to comparison results to generate an encoded signal of the enhancement layer.

In this embodiment, step 302 specifically encodes the residuals of the high-band part of the ultra-wideband audio signal, where the residuals are generated by core layer encoding. The encoded signal of the enhancement layer is formed by encoded signals of N enhancement sub-layers, where N is a natural number, and may be determined according to the available coded bit number after the encoding of the core layer.

As shown in FIG. 5 , step 302 may specifically include:

Step 501 : Compare residuals of each sample of the high-band part of the ultra-wideband audio signal with encoding thresholds, where the residuals are generated by core layer encoding, and perform encoding according to comparison results to generate an encoded signal of the first enhancement sub-layer. This step includes:

1. Set an encoding threshold for the first enhancement sub-layer. In this embodiment, the encoder may use two methods to set an encoding threshold for the first enhancement sub-layer:

The first method is: The encoder sets the encoding threshold for the first enhancement sub-layer by setting the encoding threshold to a constant; in this embodiment, the encoder may set the encoding threshold to 0.

The second method is: The encoder sets the encoding threshold for the first enhancement sub-layer according to the quantized value; specifically, the encoder sets the encoding threshold for the first enhancement sub-layer according to the quantized value corresponding to the total coded bit number of the samples used in the core layer and the first enhancement sub-layer.

In this embodiment, each enhancement sub-layer uses 1 bit to encode the residual t Hi of each sample x Hi (iε[1, M]) of the high-band part X H ={x H1 , x H2 , . . . , x HM } of the ultra-wideband audio signal, where the residual is generated by core layer encoding. In step 402 , because the encoder uses 2 bits to encode each sample x Hi of the high-band signal X H , the encoder in this step uses the quantized value of the quantized table corresponding to 3 bits to set the encoding threshold for the first enhancement sub-layer. For example, the encoder uses a mid-value or a multiple of the mid-value of every two adjacent quantized values in the quantized table corresponding to 3 bits to set the encoding threshold for the first enhancement sub-layer; specifically, the quantized table corresponding to 3 bits contains 8 quantized values, represented by −b 1 , −b 2 , −b 3 , −b 4 , b 4 , b 3 , b 2 , and b 1 respectively. Assuming the encoding threshold of the first enhancement sub-layer C H ={c H1 , c H2 , c H3 , c H4 },

c H ⁢ ⁢ 1 = - b 1 - b 2 2 × β , c H ⁢ ⁢ 2 = - b 3 - b 4 2 × β ,

⁢ c H ⁢ ⁢ 3 = b 3 + b 4 2 × β , c H ⁢ ⁢ 4 = b 1 + b 2 2 × β ,

where β is a multiple and may be any value; the encoder may also set the encoding threshold for the first enhancement sub-layer according to the relation between the quantized table corresponding to 2 bits and the quantized table corresponding to 3 bits; for example, the encoder sets the encoding threshold for the first enhancement sub-layer by using a mid-value of the differences between every two quantized values in the 3-bit quantized table and the corresponding quantized values in the 2-bit quantized table or a multiple of the mid-value thereof, and specifically,

c H ⁢ ⁢ 1 = ( - b 1 + a 1 ) + ( - b 2 + a 1 ) 2 × β ,

⁢ c H ⁢ ⁢ 2 = ( - b 3 + a 2 ) + ( - b 4 + a 2 ) 2 × β ,

⁢ c H ⁢ ⁢ 3 = ( b 3 - a 2 ) + ( b 4 - a 2 ) 2 × β ,

⁢ c H ⁢ ⁢ 4 = ( b 1 - a 1 ) + ( b 2 - a 1 ) 2 × β ,

where β is a multiple and may be any value.

In practice, the encoder may use any one or any combination of the above methods to set the encoding threshold for the first enhancement sub-layer; it should be noted that, to meet requirements of different encoding devices, this step may scale up or down the obtained encoding threshold C H ={c H1 , c H2 , c H3 , c H4 }.

›DETAILED DESCRIPTION OF THE EMBODIMENTS · 3 of 6

2. Establish a mapping relation between the encoding threshold of the first enhancement sub-layer and the quantized value used in the core layer encoding.

When the encoding threshold of the first enhancement sub-layer is set according to the above quantized value, the mapping relation between the encoding threshold of the first enhancement sub-layer C H ={c H1 , c H2 , c H3 , c H4 } and the quantized value used in the core layer encoding may be shown in Table 2.

When the encoding threshold of the first enhancement sub-layer is set to the constant 0, the mapping relation between the encoding threshold 0 and the quantized value used in the core layer encoding may also be shown in Table 2; in this case, all encoding thresholds in Table 2 are 0.

In practice, if the encoding threshold of the first enhancement sub-layer is 0, the mapping relation between the encoding threshold and the quantized value may not be established.

3. Obtain the encoding threshold of the first enhancement sub-layer corresponding to each sample of the high-band part of the ultra-wideband audio signal.

In this embodiment, the encoder may obtain the encoding threshold C Hi of the first enhancement sub-layer corresponding to each sample x Hi of the high-band part X H of the ultra-wideband audio signal from the pre-stored encoding thresholds or from the above step of setting the encoding threshold for the first enhancement sub-layer.

If the encoding threshold of the first enhancement sub-layer is 0, the encoder may directly obtain the encoding threshold C Hi =0 of the first enhancement sub-layer corresponding to each sample x Hi of the high-band part X H of the ultra-wideband audio signal.

If the encoding threshold of the first enhancement sub-layer is set according to the above quantized value, perform local decoding on the encoded signal x′ Hi generated from x Hi by core layer encoding to obtain the index of the quantized table corresponding to 2 bits. According to the index and the mapping relation between the encoding threshold of the first enhancement sub-layer and the quantized value used in the core layer encoding, obtain the encoding threshold C Hi corresponding to x Hi ; for example, if x′ Hi =11, the index of the quantized table corresponding to 2 bits obtained after decoding x′ Hi is 3, and the encoding threshold C Hi corresponding to x Hi is c H4 according to Table 2.

4. Compare the residual of each sample of the high-band part of the ultra-wideband audio signal with the encoding threshold of the first enhancement sub-layer, where the residual is generated by core layer encoding.

In this embodiment, the residual t Hi of each sample x Hi of the high-band part X H of the ultra-wideband audio signal may be obtained by using the following formula (2) or (3), where the residual is generated by core layer encoding:

t Hi =X Hi −{circumflex over (x)} Hi   (2)

x Hi is a sample to be encoded, and {circumflex over (x)} Li is a local decoding value of x Hi .

t Hi =e Hi −ê Hi   (3)

e Hi is a predicated difference of x Hi , and ê Hi is a local decoded signal of e Hi .

In practice, the residual t Hi of each sample x Hi of the high-band part X H of the ultra-wideband audio signal by the core layer encoding may be obtained through other methods, and is not described here.

To reduce noise interference on the residual t Hi , this step may further include the following step: Perform noise shaping processing on the residual t Hi to generate the residual t′ Hi after noise shaping; in this case, the encoder may compare t′ Hi with C Hi .

In this embodiment, to ensure the reliability of the comparison result of t Hi (or t′ Hi ) and C Hi , t Hi (or t′ Hi ) or C Hi needs to be scaled up or down, and the value after scaling is used for comparison. Specifically, multiply C Hi by step information depth in the core layer encoding information and compare the result with t Hi (or t′ Hi ), or, divide t Hi (or t′ Hi ) by depth and compare the result with C Hi . Certainly, in practice, t Hi (or t′ Hi ) or C Hi may also be scaled up or down through other methods, which are not described here.

5. According to the comparison result, generate encoded values for the residual t Hi (or t′ Hi ) of each sample x Hi of the high-band part X H of the ultra-wideband audio signal by the core layer encoding, and write the encoded value of each sample of the high-band part of the ultra-wideband audio signal into a bitstream sequentially to generate an encoded signal of the first enhancement sub-layer.

In this embodiment, if t Hi (or t′ Hi )>C Hi , the encoded value of the residual t Hi (or t′ Hi ) generated from x Hi by core layer encoding is 1; if t Hi (or t′ Hi )<C Hi , or t Hi (or t′ Hi )=C Hi , the encoded value is 0.

Step 502 : If N>1, compare residuals of each sample of the high-band part of the ultra-wideband audio signal with the encoding threshold of the n th enhancement sub-layer, where the residuals are generated by core layer encoding and the encoding of the first (n−1) enhancement sub-layers, and perform encoding according to the comparison result to generate an encoded signal of the n th enhancement sub-layer, where 1<n≦N. For the specific implementation, see step 501 .

Step 503 : Write the encoded signals of N enhancement sub-layers generated in steps 501 and 502 into a bitstream to generate an encoded signal of the enhancement layer.

It should be noted that, in practice, step 302 may encode not only the residual of the high-band part of the ultra-wideband audio signal but also the residual of the low-band part of the ultra-wideband audio signal, where the residuals are generated by core layer encoding, or encode the residuals of the low-band part and high-band part of the ultra-wideband audio signal generated after the core layer encoding, where the residuals are generated by core layer encoding.

Step 303 : Use the extended layer encoding module shown in FIG. 2 to encode the ultra-wideband part of the ultra-wideband audio signal to generate an encoded signal of an extended layer.

›DETAILED DESCRIPTION OF THE EMBODIMENTS · 4 of 6

In this embodiment, the ultra-wideband part of the ultra-wideband audio signal is the 8-14 KHz part of the ultra-wideband audio signal, and the encoder may divide the ultra-wideband audio signal to obtain the 8-14 KHz part of the ultra-wideband audio signal.

The specific implementation of step 303 is basically the same as that of step 301 and is not described here.

Step 304 : Write the core layer encoded signal generated in step 301 , the enhancement layer encoded signal generated in step 302 , and the extended layer encoded signal generated in step 303 into a bitstream to generate an encoded signal of the ultra-wideband audio signal.

With the encoding method provided by the embodiment of the present invention, the encoder encodes the wideband part of the ultra-wideband audio signal to generate an encoded signal of the core layer, compares residuals of the wideband part of the ultra-wideband audio signal by the core layer encoding with encoding thresholds, and performs encoding according to comparison results to generate an encoded signal of the enhancement layer, thus improving encoding quality. Because the encoded signal of the enhancement layer is generated by comparing residuals of the wideband part of the ultra-wideband audio signal by the core layer encoding with encoding thresholds, if the decoder supports only the decoding of encoded signals of a low bit rate, or if the decoder receives only the encoded signals of the low bit rate due to insufficient network bandwidth and poor transmission quality, the quality of the decoded signals generated by the decoder according to the encoded signals of the core layer may be the same as the quality of the encoded signals that are generated by low bit rate encoding, and therefore the decoding quality is improved.

As shown in FIG. 7 , an embodiment of the present invention further provides an encoding device, including: a first encoding unit 701 , configured to encode each sample of an input signal to generate an encoded signal of a core layer; a second encoding unit 702 , configured to compare residuals of all or a part of the samples of the input signal by the core layer encoding with encoding thresholds, and perform encoding according to comparison results to generate an encoded signal of an enhancement layer; and a generating unit 703 , configured to write the encoded signal of the core layer generated by the first encoding unit 701 and the encoded signal of the enhancement layer generated by the second encoding unit 702 into a bitstream to generate an encoded signal of the input signal.

Further, the encoded signal of the enhancement layer is formed by encoded signals of N enhancement sub-layers, where N is a natural number. As shown in FIG. 8 , the second encoding unit 702 may include: a first encoding sub-unit 801 , configured to compare residuals of all or a part of the samples of the input signal by the core layer encoding with encoding thresholds of the first enhancement sub-layer, and perform encoding according to comparison results to generate an encoded signal of the first enhancement sub-layer; a second encoding sub-unit 802 , configured to compare the residuals of all or a part of the samples of the input signal with encoding thresholds of the n th enhancement sub-layer, where the residuals are generated by core layer encoding and encoding of the first (n−1) enhancement sub-layers, and perform encoding according to comparison results to generate an encoded signal of the n th enhancement sub-layer if N>1, where 1<n≦N; and a first generating sub-unit 803 , configured to write the encoded signals of the N enhancement sub-layers generated by the first encoding sub-unit 801 and the second encoding sub-unit 802 into the bitstream to generate the encoded signal of the enhancement layer.

Further, as shown in FIG. 9 , the first encoding sub-unit 801 may include: an obtaining unit 901 , configured to obtain the encoding threshold of the first enhancement sub-layer corresponding to each sample in all or a part of the samples of the input signal; a comparing unit 902 , configured to compare the residual of each sample in all or a part of the samples of the input signal by the core layer encoding with the obtained encoding threshold of the first enhancement sub-layer corresponding to the sample; and a second generating sub-unit 903 , configured to generate an encoded value for the residual of each sample in all or a part of the samples of the input signal by the core layer encoding according to the comparison result of the comparing unit 902 , and write the encoded value of each sample in all or a part of the samples into the bitstream sequentially to generate the encoded signal of the first enhancement sub-layer.

Further, as shown in FIG. 9 , the first encoding sub-unit 801 may include: a relation establishing unit 904 , configured to establish a mapping relation between the encoding threshold of the first enhancement sub-layer and the quantized value used in the core layer encoding.

In this case, the obtaining unit 901 is further configured to obtain the encoding threshold of the first enhancement sub-layer corresponding to each sample in all or a part of the samples of the input signal according to the mapping relation between the encoding threshold of the first enhancement sub-layer and the quantized value used in the core layer encoding established by the relation establishing unit 904 .

For the specific implementation of the encoding device provided by the embodiment of the present invention, see the encoding method provided by embodiments of the present invention.

With the encoding device provided by the embodiment of the present invention, the encoder encodes the input signal to generate an encoded signal of the core layer, compares residuals of all or a part of the samples of the input signal by the core layer encoding with encoding thresholds, and performs encoding according to comparison results to generate an encoded signal of the enhancement layer, thus improving encoding quality; because the encoded signal of the enhancement layer is generated by comparing residuals of all or a part of the samples of the input signal by the core layer encoding with encoding thresholds, if the decoder supports only the decoding of encoded signals of a low bit rate, or if the decoder receives only the encoded signals of the low bit rate due to insufficient network bandwidth and poor transmission quality, the quality of the decoded signals generated by the decoder according to the encoded signals of the core layer may be the same as the quality of the encoded signals that are generated by low bit rate encoding, and therefore the decoding quality is improved.

›DETAILED DESCRIPTION OF THE EMBODIMENTS · 5 of 6

As shown in FIG. 10 , an embodiment of the present invention further provides an decoding method, including:

Step 1001 : Obtain an encoded signal of a core layer from an encoded signal, and decode the encoded signal of the core layer to obtain each index corresponding to each sample, of a quantized table of the core layer.

In this embodiment, the encoded signal of the core layer X′={x′ 1 , x′ 2 , . . . , x′ M }, where M is the number of encoded samples in the encoded signal X′, and step 1001 is: Decode each sample x′ i (iε[1, M]) sequentially to obtain the index of the quantized table of the core layer, and the index is corresponding to each encoded sample x′ i .

Step 1002 : If the encoded signal further includes an encoded signal of an enhancement layer, use the encoded signal of the enhancement layer to modify the index corresponding to each sample of the quantized table of the core layer, and obtain a quantized value to generate a decoded signal according to the modified index. If the encoded signal does not include the encoded signal of the enhancement layer, obtain the quantized value to generate the decoded signal according to the index corresponding to each sample of the quantized table of the core layer.

In this embodiment, the process of modifying the index corresponding to each sample of the quantized table of the core layer and obtaining the quantized value to generate a decoded signal according to the modified index, including: Left shift the encoded signal of the core layer by n bits, and fill the encoded signal of the enhancement layer into the n bits to generate a modified encoded signal, wherein n is a coded bit number of the encoded sample in the enhancement layer; and decode the modified encoded signal to obtain the modified index, and obtain the quantized value to generate the decoded signal according to the modified index.

It should be noted that the encoder may perform decoding to obtain the narrowband or wideband input signal by performing steps 1001 and 1002 illustrated in FIG. 10 ; if the input signal is an ultra-wideband or full-band signal, the encoded signal further carries an encoded signal of the extended layer, and the decoding method provided in the embodiment of the present invention may further decode the encoded signal of the extended layer to generate an ultra-wideband or full-band input signal, which may be implemented by the module illustrated in FIG. 11 .

With the decoding method provided by the embodiment of the present invention, if the decoder supports only the decoding of encoded signals of a low bit rate, or if the decoder receives only the encoded signals of the low bit rate due to insufficient network bandwidth and poor transmission quality, the quality of the decoded signals generated by the decoder according to the encoded signals of the core layer may be the same as the quality of the encoded signals that are generated by low bit rate encoding, and therefore the decoding quality is improved. If the encoded signal received by the decoder further includes the encoded signal of the enhancement layer, the encoded signal of the enhancement layer may be used to modify the encoded signal of the core layer to obtain an input signal of good quality, which further improves the quality of the decoded signal.

As shown in FIG. 12 , an embodiment of the present invention further provides a decoding device, including: a decoding unit 1201 , configured to obtain an encoded signal of a core layer from an encoded signal, and decode the encoded signal of the core layer to obtain each index corresponding to each sample of the quantized table of the core layer; and a generating unit 1202 , configured to: if the encoded signal further includes an encoded signal of an enhancement layer, use the encoded signal of the enhancement layer to modify the index corresponding to each sample, of the quantized table of the core layer, and obtain a quantized value to generate a decoded signal according to the modified index; if the encoded signal further does not include the encoded signal of the enhancement layer, obtain the quantized value to generate the decoded signal according to the index corresponding to each sample, of the quantized table of the core layer.

Further, as shown in FIG. 13 , the generating unit 1202 may include: a modifying sub-unit 1301 , configured to left shift the encoded signal of the core layer by n bits, and fill the encoded signal of the enhancement layer into the n bits to generate a modified encoded signal, where n is a coded bit number of the encoded sample in the enhancement layer; a generating sub-unit 1302 , configured to decode the modified encoded signal obtained by the modifying sub-unit to obtain the modified index, and obtain the quantized value to generate the decoded signal according to the modified index.

For the implementation of the decoding device, see the decoding method provided by embodiments of the present invention.

With the decoding device provided by the embodiment of the present invention, if the decoding device supports only the decoding of encoded signals of a low bit rate, or if the decoding device receives only the encoded signals of the low bit rate due to insufficient network bandwidth and poor transmission quality, the quality of the decoded signals generated by the decoding device according to the encoded signals of the core layer may be the same as the quality of the encoded signals that are generated by low bit rate encoding, and therefore the decoding quality is improved. If the encoded signal received by the decoding device further includes the encoded signal of the enhancement layer, the encoded signal of the enhancement layer may be used to modify the encoded signal of the core layer to obtain an input signal of good quality, which further improves the quality of the decoded signal.

It is understandable to those skilled in the art that all or a part of the steps of the embodiments can be implemented by hardware following instructions of a program. The program may be stored in a computer readable storage medium. When the program is executed, the processes of the above embodiments may be all included. The storage medium may be a read only memory (ROM), a random access memory (RAM), a magnetic disk or a compact disk-read only memory (CD-ROM).

›DETAILED DESCRIPTION OF THE EMBODIMENTS · 6 of 6

The above descriptions are merely exemplary embodiments of the present invention, but not intended to limit the scope of the present invention. Various variations or replacements made by persons skilled in the art without departing from the technical scope of the present invention shall fall within the scope of the present invention as defined by the appended claims. Therefore, the scope of the present invention is subject to the appended claims.

›Tables in the description — 2
TABLE 1
IndexQuantized value
0−a 1
1−a 2
2a 2
3a 1
TABLE 2
IndexQuantized valueEncoding Threshold
0−a 1c H1
1−a 2c H2
2a 2c H3
3a 1c H4

Claims as granted

6 claims

Log in to read the claims of this application.

Log in to unlock

Classifications

17 codes
IPC · International Patent Classification
Section G — Physics
  • G10L19/02
  • G10L19/032
  • G10L19/24
Section H — Electricity
  • H03M7/38
USPC · US Patent Classification
341/51715/729715/700715/234709/205709/246715/854382/232375/295375/286375/242375/316704/221

Claim changes

Soon
Coming soonHow the claims changed between publication and grant

See which claims were amended, added or cancelled during examination, with every added and removed word marked.

AmendedAddedCancelledUnchanged

The published claims of this application are not paired with the granted ones in what we hold.

File wrapper

⤢ drag to zoomApr 2011Jul 2011Oct 2011Jan 2012Apr 2012Jul 2012Oct 2012Jan 2013Apr 2013Jul 2013USPTOApplicantNon-final rejectionResponse after non-final
USPTOApplicanthover for detail · click to open
Pendency
2.1 y
754 days filing → grant
Office actions
1
non-final + final
Responses
1
no RCE
Examiner
Lam T Mai
art unit 2819 · TC 2800
Citations: 49 back · 0 forward

See the full prosecution history — every USPTO and applicant action on this file, in order.

Log in to unlock

Documents

Log in to open the documents of this file: the application as filed, every office action and response, the notice of allowance.

Log in to unlock

Chain of title

⤢ drag to zoom2014201620182020202220242026202820302032Owner 1
Titlehover for detail · click to open

See the full assignment history — every owner this patent has passed through, with recordation dates and reel/frame numbers.

Log in to unlock