EP4407609A2

A computer-readable storage medium and a computer software product

Abstract

Embodiments of the present invention 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.

EP4407609A2, drawing sheet 1
Sheet 1 of 13

Term

7.8 yearsto projected expiry

Projected expiry 8 July 2034, counted from filing; an application has no term until it is granted.

  1. Priority
  2. Filed
  3. Published
  4. Today
  5. Projected expiry

18 claims: 2 independent, 16 dependent

  1. 1
    An encoding method, comprising:splitting (S202) spectral coefficients of a current data frame of an audio signal into subbands of the current data frame;acquiring (S101, S203) quantized frequency envelope values of the subbands of the current data frame;acquiring signal types of a first quantity of subbands in the current data frame;acquiring stored reference information of a second quantity of subbands in a previous data frame of the current data frame, wherein the second quantity is less than or equal to the first quantity;determining modification factors of the first quantity of subbands according to acquired signal types of the first quantity of subbands and acquired reference information of the second quantity of subbands;modifying (S102, S205) quantized frequency envelope values of the first quantity of subbands by using the modification factors of the first quantity of subbands;allocating (S103, S206) quantization bits to the subbands of the current data frame according to modified quantized frequency envelope values of the first quantity of subbands;quantizing (S104, S207) a spectral coefficient of a subband to which a quantization bit is allocated in the subbands of the current data frame;and writing (S105, S208) the quantized spectral coefficient of the subband to which a quantization bit is allocated into a bitstream.
  2. 5
    The encoding method according to any one of claims 2 to 4, wherein:a value of the second modification factor is a value of a third modification factor when the reference information of the second subband comprises a quantization bit allocation status of the second subband;or a value of the second modification factor is a value of a fourth modification factor when the reference information of the second subband comprises a signal type of the second subband;or a value of the second modification factor is a product of a value of a third modification factor and a value of a fourth modification factor when the reference information of the second subband comprises a quantization bit allocation status of the second subband and a signal type of the second subband.
  3. 7
    The encoding method according to any one of claims 2 to 6, wherein the second modification factor of the first subband is determined according to a ratio of any two values of a frequency envelope value of the second subband, an average frequency envelope value of the second quantity of subbands, a bandwidth value of the second quantity of subbands, a maximum value of frequency envelope values of the second quantity of subbands, and a frequency envelope variance value of the second quantity of subbands.
  4. 8
    The encoding method according to any one of claims 2 to 7, wherein the first modification factor of the first subband is determined according to a ratio of any two values of a frequency envelope value of the first subband, an average frequency envelope value of the first quantity of subbands, a bandwidth value of the first quantity of subbands, a maximum value of frequency envelope values of the first quantity of subbands, and a frequency envelope variance value of the first quantity of subbands.
  5. 9
    The encoding method according to any one of claims 1 to 8, wherein after the allocating quantization bits to the subbands according to modified quantized frequency envelope values of the first quantity of subbands, the method further comprises:storing reference information of the first quantity of subbands in the current data frame.
  6. 10
    An encoding apparatus (1), comprising:a unit, configured to split spectral coefficients of a current data frame into subbands of the current data frame;an acquiring unit (10), configured to acquire quantized frequency envelope values of the subbands of the current data frame;acquire signal types of a first quantity of subbands in the current data frame;and acquire stored reference information of a second quantity of subbands in a previous data frame of the current data frame, wherein the second quantity is less than or equal to the first quantity;a determining unit (15), configured to determine modification factors of the first quantity of subbands according to the signal types of the first quantity of subbands and the reference information of the second quantity of subbands that are acquired by the acquiring unit (10);a modifying unit (11), configured to modify quantized frequency envelope values, acquired by the acquiring unit (10), of the subbands of the first quantity by using the modification factors of the first quantity of subbands determined by the determining unit (15);an allocating unit (12), configured to allocate quantization bits to the subbands of the current data frame according to quantized frequency envelope values, modified by the modifying unit (11), of the first quantity of subbands;a quantizing unit (13), configured to quantize a spectral coefficient of a subband to which a quantization bit is allocated by the allocating unit (12) in the subbands of the current data frame;and a multiplexing unit (14), configured to write the spectral coefficient, quantized by the quantizing unit (13), of the subband to which a quantization bit is allocated, into a bitstream.
  7. 14
    The encoding apparatus (1) according to any one of claims 11 to 13, wherein:a value of the second modification factor determined by the determining unit is a value of a third modification factor when the reference information of the second subband comprises a quantization bit allocation status of the second subband;or a value of the second modification factor is a value of a fourth modification factor when the reference information of the second subband comprises a signal type of the second subband;or a value of the second modification factor is a product of a value of a third modification factor and a value of a fourth modification factor when the reference information of the second subband comprises a quantization bit allocation status of the second subband and a signal type of the second subband.
  8. 16
    The encoding apparatus (1) according to any one of claims 11 to 15, wherein the second modification factor of the first subband determined by the determining unit (15) is determined according to a ratio of any two values of a frequency envelope value of the second subband, an average frequency envelope value of the second quantity of subbands, a bandwidth value of the second quantity of subbands, a maximum value of frequency envelope values of the second quantity of subbands, and a frequency envelope variance value of the second quantity of subbands.
  9. 17
    The encoding apparatus (1) according to any one of claims 11 to 16, wherein the first modification factor of the first subband determined by the determining unit (15) is determined according to a ratio of any two values of a frequency envelope value of the first subband, an average frequency envelope value of the first quantity of subbands, a bandwidth value of the first quantity of subbands, a maximum value of frequency envelope values of the first quantity of subbands, and a frequency envelope variance value of the first quantity of subbands.
  10. 18
    The encoding apparatus (1) according to any one of claims 10 to 17, further comprising:a storing unit (16), configured to store reference information of the first quantity of subbands in the current data frame after the quantization bits are allocated to the subbands according to the modified quantized frequency envelope values of the first quantity of subbands.