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 corresponding to the value of each sample in the frequency-domain sample sequence to generate a variable-length code;
an error calculation step of calculating a sequence of error values each obtained by subtracting the integer corresponding to the value of each sample in the frequency-domain sample sequence from the value of the sample; and
an error encoding step of encoding the sequence of error values with the number of surplus bits obtained by subtracting the number of bits of the variable-length code from the predetermined number of bits to generate error codes.
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.
26 Citations
21 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 corresponding to the value of each sample in the frequency-domain sample sequence to generate a variable-length code; an error calculation step of calculating a sequence of error values each obtained by subtracting the integer corresponding to the value of each sample in the frequency-domain sample sequence from the value of the sample; and an error encoding step of encoding the sequence of error values with the number of surplus bits obtained by subtracting the number of bits of the variable-length code from the predetermined number of bits to generate error codes. - View Dependent Claims (2, 3, 4, 5, 6, 19, 20)
-
-
7. A decoding method for decoding an input code formed of a predetermined number of bits, the decoding method comprising:
-
a decoding step of decoding a variable-length code included in the input code to generate a sequence of integers; an error decoding step of decoding an error code included in the input code, the error code being formed of the number of surplus bits obtained by subtracting the number of bits of the variable-length code from the predetermined number of bits, to generate a sequence of error values; and an adding step of adding each sample in the sequence of integers to a corresponding error sample in the sequence of error values. - View Dependent Claims (8, 9, 10, 11, 12, 21)
-
-
13. 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:
-
an encoding unit adapted to encode, by variable-length encoding, an integer corresponding to the value of each sample in the frequency-domain sample sequence to generate a variable-length code; an error calculation unit adapted to calculate a sequence of error values each obtained by subtracting the integer corresponding to the value of each sample in the frequency-domain sample sequence from the value of the sample; and an error encoding unit adapted to encode the sequence of error values with the number of surplus bits obtained by subtracting the number of bits of the variable-length code from the predetermined number of bits to generate error codes. - View Dependent Claims (14, 15)
-
-
16. A decoder for decoding an input code formed of a predetermined number of bits, the decoder comprising:
-
a decoding unit adapted to decode a variable-length code included in the input code to generate a sequence of integers; an error decoding unit adapted to decode an error code included in the input code, the error code being formed of the number of surplus bits obtained by subtracting the number of bits of the variable-length code from the predetermined number of bits, to generate a sequence of error values; and an adder adapted to add each sample in the sequence of integers to a corresponding error sample in the sequence of error values. - View Dependent Claims (17, 18)
-
Specification