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;
- performing delay alignment processing on the first preprocessed signal and the second preprocessed signal to obtain a first delay aligned signal and a second delay aligned signal;
- determining, based on the first delay aligned signal and the second delay aligned signal, a channel combination solution of the current frame is a near out of phase channel combination solution for processing a near out of phase signal;
- obtaining, based on the first delay aligned signal and the second delay aligned signal, an amplitude correlation difference parameter of the current frame;
- obtaining an amplitude limited amplitude correlation difference parameter based on the amplitude correlation difference parameter;
- obtaining a mapped amplitude correlation difference parameter based on the amplitude limited amplitude correlation difference parameter;
- obtaining a channel combination ratio factor of the current frame based on the mapped amplitude correlation difference parameter;
- quantizing the channel combination ratio factor of the current frame to obtain a quantized channel combination ratio factor;
- obtaining an encoding mode of the current frame based on the channel combination solution of the current frame;
- obtaining, based on the encoding mode and the quantized channel combination ratio factor, the first delay aligned signal and the second delay aligned signal, a primary channel signal and a secondary channel signal;
- and
- encoding the primary channel signal and the secondary channel signal.
A stereo encoder, comprising:
- a processor configured to store instructions;
- and
- a memory coupled to the processor and configured to execute the instructions, which cause the 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;
- perform delay alignment processing on the first preprocessed signal and the second preprocessed signal to obtain a first delay aligned signal and a second delay aligned signal;
- determine, based on the first delay aligned signal and the second delay aligned signal, a channel combination solution of the current frame is a near out of phase channel combination solution for processing a near out of phase signal;
- obtain, based on the first delay aligned signal and the second delay aligned signal, an amplitude correlation difference parameter of the current frame;
- obtain an amplitude limited amplitude correlation difference parameter based on the amplitude correlation difference parameter;
- obtain a mapped amplitude correlation difference parameter based on the amplitude limited amplitude correlation difference parameter;
- obtain a channel combination ratio factor of the current frame based on the mapped amplitude correlation difference parameter;
- quantize the channel combination ratio factor of the current frame to obtain a quantized channel combination ratio factor;
- obtain an encoding mode of the current frame based on the channel combination solution of the current frame;
- obtain, based on the encoding mode and the quantized channel combination ratio factor, the first delay aligned signal and the second delay aligned signal, a primary channel signal and a secondary channel signal;
- and
- encode the primary channel signal and the secondary channel signal.
A non-transitory machine-readable medium comprising computer-executable instructions that, when executed by a 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;
- perform delay alignment processing on the first preprocessed signal and the second preprocessed signal to obtain a first delay aligned signal and a second delay aligned signal;
- determine, based on the first delay aligned signal and the second delay aligned signal, a channel combination solution of the current frame is a near out of phase channel combination solution for processing a near out of phase signal;
- obtain, based on the first delay aligned signal and the second delay aligned signal, an amplitude correlation difference parameter of the current frame;
- obtain an amplitude limited amplitude correlation difference parameter based on the amplitude correlation difference parameter;
- obtain a mapped amplitude correlation difference parameter based on the amplitude limited amplitude correlation difference parameter;
- obtain a channel combination ratio factor of the current frame based on the mapped amplitude correlation difference parameter;
- quantize the channel combination ratio factor of the current frame to obtain a quantized channel combination ratio factor;
- obtain an encoding mode of the current frame based on the channel combination solution of the current frame;
- obtain, based on the encoding mode and the quantized channel combination ratio factor, the first delay aligned signal and the second delay aligned signal, a primary channel signal and a secondary channel signal;
- and
- encode the primary channel signal and the secondary channel signal.
Dependencies are inferred from the claim text.