Encoding method and apparatus
First Claim
1. An encoding method, comprising:
- obtaining, by an encoder, an audio signal comprising a current data frame;
splitting, by the encoder, spectral coefficients of the current data frame into subbands;
acquiring, by the encoder, quantized frequency envelope values of the split subbands;
modifying, by the encoder, quantized frequency envelope values of subbands of a first quantity in the split subbands by acquiring modification factors, wherein the subbands of the first quantity are consecutive subbands and the consecutive subbands starting from a subband having a highest frequency of the current data frame;
allocating, by the encoder, quantization bits to the split subbands according to modified quantized frequency envelope values of the subbands of the first quantity;
quantizing, by the encoder, a spectral coefficient of a subband to which a quantization bit is allocated in the split subbands; and
writing, by the encoder, the quantized spectral coefficient of the subband to which the quantization bit is allocated into a bitstream.
2 Assignments
0 Petitions
Accused Products
Abstract
Present disclosure provide an encoding method and apparatus, which relate to the communications field and can perform proper quantization bit allocation for spectral coefficients of an audio signal, thereby improving quality of a signal obtained by a decoder by means of decoding. The method includes: after splitting spectral coefficients of a current data frame into subbands, acquiring quantized frequency envelope values of the subbands; modifying quantized frequency envelope values of subbands of a first quantity in the subbands; allocating quantization bits to the subbands according to modified quantized frequency envelope values of the subbands of the first quantity; quantizing a spectral coefficient of a subband to which a quantization bit is allocated in the subbands; and writing the quantized spectral coefficient of the subband to which a quantization bit is allocated into a bitstream.
37 Citations
26 Claims
-
1. An encoding method, comprising:
-
obtaining, by an encoder, an audio signal comprising a current data frame; splitting, by the encoder, spectral coefficients of the current data frame into subbands; acquiring, by the encoder, quantized frequency envelope values of the split subbands; modifying, by the encoder, quantized frequency envelope values of subbands of a first quantity in the split subbands by acquiring modification factors, wherein the subbands of the first quantity are consecutive subbands and the consecutive subbands starting from a subband having a highest frequency of the current data frame; allocating, by the encoder, quantization bits to the split subbands according to modified quantized frequency envelope values of the subbands of the first quantity; quantizing, by the encoder, a spectral coefficient of a subband to which a quantization bit is allocated in the split subbands; and writing, by the encoder, the quantized spectral coefficient of the subband to which the quantization bit is allocated into a bitstream. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13)
-
-
14. An encoding apparatus, comprising:
-
a memory; and a processor coupled to the memory and configured to; obtain an audio signal comprising a current data frame; split spectral coefficients of the current data frame into subbands; acquire quantized frequency envelope values of the split subbands; modify the quantized frequency envelope values of subbands of a first quantity in the split subbands by acquiring modification factors, wherein the subbands of the first quantity are consecutive subbands and the consecutive subbands starting from a subband having a highest frequency of the current data frame; allocate quantization bits to the split subbands according to the modified quantized frequency envelope values of the subbands of the first quantity; quantize a spectral coefficient of a subband to which a quantization bit is allocated in the split subbands; and write the quantized spectral coefficient of the subband to which a quantization bit is allocated into a bitstream. - View Dependent Claims (15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26)
-
Specification