Encoding device, decoding device, encoding method, and decoding method
AssigneePanasonic Intellectual Property Corporation of America
InventorsSrikanth Nagisetty, Hiroyuki Ehara, Akira Harada, Chong Soon Lim
Life of this patent
Estimating the term…
Abstract
An encoding device is provided with: a quantizing circuit which generates quantization parameters including first information on a vector quantization codebook, and second information on code vectors included in the codebook; and a control circuit which employs the second number of bits based on the difference between the first number of bits available for encoding of a sub-vector in the vector quantization, and the number of bits for the sub-vector quantization parameters, to control encoding of the first information with respect to the sub-vector.
Claims8
An encoder of an audio or speech signal, the encoder comprising:
- time-frequency converting circuitry, which, in operation, converts an input signal in a time domain into a signal in a frequency domain;
- quantization circuitry, which, in operation, divides the signal in the frequency domain into a plurality of sub-vectors and, in operation, generates quantization parameters including a codebook index and a code vector index for each of the plurality of sub-vectors, the codebook index indicating a codebook for vector quantization, the code vector index indicating one of a plurality of code vectors included in the codebook;
- and
- control circuitry, which, in operation, controls:
- calculating a number of usable bits for encoding the quantization parameters for a certain sub-vector among the plurality of sub-vectors by subtracting a total number of bits for encoding the quantization parameters for the plurality of sub-vectors except the quantization parameters for the certain sub-vector from a number of available bits for encoding the quantization parameters for the signal in the frequency domain;
- calculating a remainder of five of the number of usable bits and subtracting the calculated value of the remainder from the number of usable bits for the certain sub-vector to obtain a subtraction result;
- and
- calculating a number of unused bits for the certain sub-vector by subtracting a number of bits necessary for encoding the quantization parameters for the certain sub-vector from the subtraction result;
- encoding the number of unused bits for the certain sub-vector;
- and
- encoding the quantization parameters for the plurality of sub-vectors except the certain sub-vector,
- wherein:
- the control circuitry determines, as encoding information, information obtained by encoding the number of unused bits,
- in a case where a gain for the certain sub-vector is equal to or larger than a threshold value, the control circuitry encodes the number of unused bits, and
- in a case where the gain is less than the threshold value, the control circuitry encodes the quantization parameters for the certain sub-vector.
An encoding method for an encoder of an audio or speech signal, the encoding method comprising:
- converting an input signal in a time domain into a signal in a frequency domain;
- dividing the signal in the frequency domain into a plurality of sub-vectors;
- generating quantization parameters including a codebook index and a code vector index for each of the plurality of sub-vectors, the codebook index indicating a codebook for vector quantization, the code vector index indicating one of a plurality of code vectors included in the codebook;
- and
- controlling:
- calculating a number of usable bits for encoding the quantization parameters for a certain sub-vector among the plurality of sub-vectors by subtracting a total number of bits for encoding the quantization parameters for the plurality of sub-vectors except the quantization parameters for the certain sub-vector from a number of available bits for encoding the quantization parameters for the signal in the frequency domain;
- calculating a remainder of five of the number of usable bits and subtracting the calculated value of the remainder from the number of usable bits for the certain sub-vector to obtain a subtraction result;
- and
- calculating a number of unused bits for the certain sub-vector by subtracting a number of bits necessary for encoding the quantization parameters for the certain sub-vector from the subtraction result;
- encoding the number of the number of unused bits for the certain sub-vector;
- and
- encoding the quantization parameters for the plurality of sub-vectors except the certain sub-vector;
- and
- determining, as encoding information, information obtained by encoding the number of unused bits, wherein:
- in a case where a gain for the certain sub-vector is equal to or larger than a threshold value, the method further comprises encoding the number of unused bits, and
- in a case where the gain is less than the threshold value, the method further comprises encoding the quantization parameters for the certain sub-vector.
Dependencies are inferred from the claim text.