摘要:
A coding method, a decoding method, a coder, and a decoder are disclosed herein. A coding method includes: obtaining the pulse distribution, on a track, of the pulses to be encoded on the track; determining a distribution identifier for identifying the pulse distribution according to the pulse distribution; and generating a coding index that includes the distribution identifier. A decoding method includes: receiving a coding index; obtaining a distribution identifier from the coding index, wherein the distribution identifier is configured to identify the pulse distribution, on a track, of the pulses to be encoded on the track; determining the pulse distribution, on a track, of all the pulses to be encoded on the track according to the distribution identifier; and reconstructing the pulse order on the track according to the pulse distribution.
摘要:
A vector decoding method includes decomposing a code of an initial vector to obtain a sign code and an absolute vector code, decoding the sign code to obtain a sign vector, performing multi-level permutation-based decoding on the absolute vector code to obtain an initial absolute vector, and combining the sign vector and the initial absolute vector to obtain an initial vector, wherein each respective vector ha a plurality of elements. A vector decoding apparatus includes a decomposing unit configured to decompose a vector code to obtain a sign code and an absolute vector, a sign decoding unit configured to decode the sign code to obtain a sign vector, a multi-level permutation-based decoding unit configured to perform multi-level permutation-based decoding on the absolute vector to obtain an initial absolute vector, and a combining unit configured to combine the sign vector and the initial absolute vector to obtain an initial vector.
摘要:
A vector coding apparatus includes a decomposing unit to obtain a sign vector and an initial absolute vector, a sign coding unit to code the sign to obtain a sign code, a multi-level permutation-based coding unit to perform multi-level permutation-based coding to obtain an absolute vector code, a combining unit to combine the sign and absolute vector codes to obtain an initial vector code. A vector decoding apparatus includes a decomposing unit to decompose a code of an initial vector to obtain a sign code and an absolute vector code, a sign decoding unit to decode the sign code to obtain a sign vector, a multi-level permutation-based decoding unit to perform multi-level permutation-based decoding on the absolute vector code to obtain an initial absolute vector, and a combining unit to combine the sign and initial absolute vectors to obtain an initial vector. A media player includes the vector decoding apparatus.
摘要:
The present invention relates to a method and apparatus for obtaining a pitch gain, and a coder and a decoder. The method includes: obtaining information about an input signal; and obtaining a pitch gain corresponding to the information about the input signal according to the correspondence between the signal information and the pitch gain. The embodiments of the present invention obtain the corresponding pitch gain according to the signal information by using the obtained correspondence between the signal information and the pitch gain, and the pitch gain is applicable to the coder and the decoder, thus making it unnecessary for the coder to transmit the pitch gain to the decoder and solving the problem of bit overhead. The embodiments of the present invention determine the pitch gain adaptively according to the signal information, avoid consumption of extra bits for quantizing the pitch gain, avoid impact on the coding performance, and improve the compression ratio.
摘要:
A vector decoding method includes decomposing a code of an initial vector to obtain a sign code and an absolute vector code, decoding the sign code to obtain a sign vector, performing multi-level permutation-based decoding on the absolute vector code to obtain an initial absolute vector, and combining the sign vector and the initial absolute vector to obtain an initial vector, wherein each respective vector ha a plurality of elements. A vector decoding apparatus includes a decomposing unit configured to decompose a vector code to obtain a sign code and an absolute vector, a sign decoding unit configured to decode the sign code to obtain a sign vector, a multi-level permutation-based decoding unit configured to perform multi-level permutation-based decoding on the absolute vector to obtain an initial absolute vector, and a combining unit configured to combine the sign vector and the initial absolute vector to obtain an initial vector.
摘要:
A coding method, a decoding method, a coder, and a decoder are disclosed herein. A coding method includes: obtaining the pulse distribution, on a track, of the pulses to be encoded on the track; determining a distribution identifier for identifying the pulse distribution according to the pulse distribution; and generating a coding index that includes the distribution identifier. A decoding method includes: receiving a coding index; obtaining a distribution identifier from the coding index, wherein the distribution identifier is configured to identify the pulse distribution, on a track, of the pulses to be encoded on the track; determining the pulse distribution, on a track, of all the pulses to be encoded on the track according to the distribution identifier; and reconstructing the pulse order on the track according to the pulse distribution.
摘要:
The present invention discloses a method and a device for pulse encoding, and a method and a device for pulse decoding. The method for pulse encoding includes: calculating an index value of an input pulse; selecting an adjustment threshold value according to the number of pulses, and comparing the index value of the pulse with the adjustment threshold value; if the index value is smaller than the adjustment threshold value, adopting the first number of encoding bits to encode the index value, if the index value is not smaller than the adjustment threshold value, adopting the second number of encoding bits to encode the index value plus an offset value, where the first number is smaller than the second number, the first number and the second number are both positive integers, and the offset value is greater than or equal to the adjustment threshold value.
摘要:
The present disclosure relates to a method, apparatus, and system for encoding and decoding signals. The encoding method includes: converting a first-domain signal into a second-domain signal; performing Linear Prediction (LP) processing and Long-Term Prediction (LTP) processing for the second-domain signal; obtaining a long-term flag according to decision criteria; obtaining a second-domain contribution signal according to the LP processing result and the LTP processing result when the long-term flag is a first flag; obtaining a second-domain contribution signal according to the LP processing result when the long-term flag is a second flag; converting the second-domain contribution signal into a first-domain contribution signal, and calculating a first-domain predictive residual signal; and outputting a bit stream that includes the first-domain predictive residual signal. With the present disclosure, a subsequent encoding or decoding process is performed adaptively according to the long-term flag; when the long-term flag is the second flag, it is not necessary to consider the LTP processing result, thus improving the compression performance of a codec.
摘要:
The present invention relates to a method and apparatus for pitch search. One method includes: obtaining a characteristic function value of a residual signal, where the residual signal is a result of removing a Long-Term Prediction (LTP) contribution signal from input speech signals; and obtaining a pitch according to the characteristic function value of the residual signal.
摘要:
A vector coding apparatus and method includes decomposing an initial vector to obtain a sign vector and an initial absolute vector. Coding the sign vector to obtain a sign code, performing multi-level permutation-based coding on the initial absolute vector to obtain an absolute vector code, and combining the sign code and the absolute vector code. Optionally determining, before decomposing the initial vector, a characteristic codebook to which the initial vector belongs, obtaining a characteristic value of the characteristic codebook, and combining a code of the initial vector to obtain a final code of the initial vector. The performing step can include removing from the initial absolute vector any element having a value which satisfies a preset condition, constructing a new absolute vector with elements not satisfying the preset condition, and coding positions of the elements not satisfying the preset condition in the initial absolute vector to obtain a position code.