Stereo Encoding Method and Stereo Encoder
AssigneeHuawei Technologies Co., Ltd.
InventorsBin Wang, Haiting Li, Lei Miao
Life of this patent
Estimating the term…
Abstract
In a stereo encoding method, a channel combination encoding solution of a current frame is first obtained, and then a quantized channel combination ratio factor of the current frame and an encoding index of the quantized channel combination ratio factor are obtained based on the obtained channel combination encoding solution, so that an obtained primary channel signal and secondary channel signal of the current frame meet a characteristic of the current frame.
Claims20
A method comprising:
- performing time domain preprocessing on a first channel signal of a current frame of a multi-channel audio signal to obtain a first preprocessed signal of the current frame;
- performing time domain preprocessing on a second channel signal of the current frame to obtain a second preprocessed signal of the current frame;
- obtaining an inter-channel delay parameter based on the first preprocessed signal and the second preprocessed signal;
- quantizing the inter-channel delay parameter to obtain a quantized inter-channel delay parameter;
- performing, at least based on the quantized inter-channel delay parameter, delay alignment processing on the first preprocessed signal to obtain a first delay aligned signal and on the second preprocessed signal to obtain a second delay aligned signal;
- obtaining a channel combination solution of the current frame based on the first delay aligned signal and the second delay aligned signal;
- obtaining, a quantized channel combination ratio factor of the current frame based on the channel combination solution, the first delay aligned signal, and the second delay aligned signal;
- obtaining an encoding mode of the current frame based on the channel combination solution;
- obtaining a primary channel signal and a secondary channel signal based on the encoding mode and the quantized channel combination ratio factor, the first delay aligned signal and the second delay aligned signal;
- and
- encoding the primary channel signal and the secondary channel signal.
A stereo encoder, comprising:
- a memory configured to store instructions;
- and
- at least one processor coupled to the memory and configured to execute the instructions, wherein the instructions cause the at least one processor to be configured to:
- perform time domain preprocessing on a first channel signal of a current frame of a multi-channel audio signal to obtain a first preprocessed signal of the current frame;
- perform time domain preprocessing on a second channel signal of the current frame to obtain a second preprocessed signal of the current frame;
- obtain an inter-channel delay parameter based on the first preprocessed signal and the second preprocessed signal;
- quantize the inter-channel delay parameter to obtain a quantized inter-channel delay parameter;
- perform, at least based on the quantized inter-channel delay parameter, delay alignment processing on the first preprocessed signal to obtain a first delay aligned signal and on the second preprocessed signal to obtain a second delay aligned signal;
- obtain a channel combination solution of the current frame based on the first delay aligned signal and the second delay aligned signal;
- obtain a quantized channel combination ratio factor of the current frame based on the channel combination solution, the first delay aligned signal, and the second delay aligned signal;
- obtain an encoding mode of the current frame based on the channel combination solution;
- obtain a primary channel signal and a secondary channel signal based on the encoding mode and the quantized channel combination ratio factor, the first delay aligned signal and the second delay aligned signal;
- and
- encode the primary channel signal and the secondary channel signal.
A computer program product comprising computer-executable instructions that are stored on a non-transitory computer-relatable storage medium and that, when executed by at least one processor of an apparatus, cause the apparatus to:
- perform time domain preprocessing on a first channel signal of a current frame of a multi-channel audio signal to obtain a first preprocessed signal of the current frame;
- perform time domain preprocessing on a second channel signal of the current frame to obtain a second preprocessed signal of the current frame;
- obtain an inter-channel delay parameter based on the first preprocessed signal and the second preprocessed signal;
- quantize the inter-channel delay parameter to obtain a quantized inter-channel delay parameter;
- perform, at least based on the quantized inter-channel delay parameter, delay alignment processing on the first preprocessed signal to obtain a first delay aligned signal and on the second preprocessed signal to obtain a second delay aligned signal;
- obtain a channel combination solution of the current frame based on the first delay aligned signal and the second delay aligned signal;
- obtain a quantized channel combination ratio factor of the current frame based on the channel combination solution, the first delay aligned signal, and the second delay aligned signal;
- obtain an encoding mode of the current frame based on the channel combination solution;
- obtain a primary channel signal, and a secondary channel signal based on the encoding mode and the quantized channel combination ratio factor, the first delay aligned signal and the second delay aligned signal;
- and
- encode the primary channel signal and the secondary channel signal.
Dependencies are inferred from the claim text.