Encoding method, decoding method, encoder, decoder, program, and recording medium
First Claim
1. An encoding method for encoding, with a predetermined number of bits, a frequency-domain sample sequence derived from an acoustic signal in a predetermined time interval, the encoding method comprising:
- an encoding step of encoding, by variable-length encoding, an integer obtained by dividing a value of each sample in the frequency-domain sample sequence by a gain to generate a variable-length code, wherein every integer is encoded regardless of whether the obtained integer is 0 or not;
an error calculation step of calculating error values each obtained by subtracting the integer obtained by dividing the value of each sample in the frequency-domain sample sequence by the gain from a value of a sample obtained by dividing the value of each sample in the frequency-domain sample sequence by the gain; and
an error encoding step of encoding information indicating whether each of the error values is positive or negative with one bit, with a number of surplus bits obtained by subtracting a number of bits of the variable-length code from the predetermined number of bits to generate error codes, the surplus bits being saved by performing the variable-length encoding,wherein, among said error values, error values whose corresponding integers are not 0 are encoded with priority in the error encoding step.
1 Assignment
0 Petitions
Accused Products
Abstract
In encoding, a frequency-domain sample sequence derived from an acoustic signal is divided by a weighted envelope and is then divided by a gain, the result obtained is quantized, and each sample is variable-length encoded. The error between the sample before quantization and the sample after quantization is quantized with information saved in this variable-length encoding. This quantization is performed under a rule that specifies, according to the number of saved bits, samples whose errors are to be quantized. In decoding, variable-length codes in an input sequence of codes are decoded to obtain a frequency-domain sample sequence; an error signal is further decoded under a rule that depends on the number of bits of the variable-length codes; and from the obtained sample sequence, the original sample sequence is obtained according to supplementary information.
22 Citations
5 Claims
-
1. An encoding method for encoding, with a predetermined number of bits, a frequency-domain sample sequence derived from an acoustic signal in a predetermined time interval, the encoding method comprising:
-
an encoding step of encoding, by variable-length encoding, an integer obtained by dividing a value of each sample in the frequency-domain sample sequence by a gain to generate a variable-length code, wherein every integer is encoded regardless of whether the obtained integer is 0 or not; an error calculation step of calculating error values each obtained by subtracting the integer obtained by dividing the value of each sample in the frequency-domain sample sequence by the gain from a value of a sample obtained by dividing the value of each sample in the frequency-domain sample sequence by the gain; and an error encoding step of encoding information indicating whether each of the error values is positive or negative with one bit, with a number of surplus bits obtained by subtracting a number of bits of the variable-length code from the predetermined number of bits to generate error codes, the surplus bits being saved by performing the variable-length encoding, wherein, among said error values, error values whose corresponding integers are not 0 are encoded with priority in the error encoding step. - View Dependent Claims (2, 3, 4)
-
-
5. An encoder for encoding, with a predetermined number of bits, a frequency-domain sample sequence derived from an acoustic signal in a predetermined time interval, the encoder comprising:
-
circuitry configured to encode, by variable-length encoding, an integer obtained by dividing a value of each sample in the frequency-domain sample sequence by a gain to generate a variable-length code, wherein every integer is encoded regardless of whether the obtained integer is 0 or not; calculate error values each obtained by subtracting the integer obtained by dividing the value of each sample in the frequency-domain sample sequence by the gain from a value of a sample obtained by dividing the value of each sample in the frequency-domain sample sequence by the gain; and encode information indicating whether each of the error values is positive or negative with one bit, with a number of surplus bits obtained by subtracting a number of bits of the variable-length code from the predetermined number of bits to generate error codes, the surplus bits being saved by performing the variable-length encoding, wherein the circuitry encodes, among said error values, error values whose corresponding integers are not 0 with priority.
-
Specification