Method and apparatus for calculating downmixed signal and residual signal
AssigneeHuawei Technologies Co., Ltd.
InventorsHaiting Li, Bin Wang, Zexin Liu
Life of this patent
Estimating the term…
Abstract
An audio signal encoding method is provided. According to the method, if a current frame is a switching frame, a to-be-encoded downmixed signal and a to-be-encoded residual signal of the subband corresponding to the preset frequency band in the current frame are obtained based on a switch fade-in/fade-out factor of a previous frame, an initial downmixed signal and an initial residual signal of the preset frequency band of the current frame.
Claims18
An audio signal encoding method, comprising:
- obtaining an audio signal including at least two channel signals;
- obtaining an initial residual signal of a subband of a current frame of the audio signal;
- obtaining an initial downmixed signal of the subband;
- determining whether a previous frame of the current frame is a switching frame;
- and
- when the previous frame is a switching frame, obtaining a switch fade-in/fade-out factor of the current frame based on a residual signal coding parameter of the current frame and an inter-frame energy fluctuation parameter of the current frame, wherein the residual signal coding parameter represents an energy relationship between a downmixed signal and a residual signal of the current frame, and the inter-frame energy fluctuation parameter represents an energy relationship between the current frame and the previous frame;
- obtaining a processed downmixed signal based on the switch fade-in/fade-out factor and the initial downmixed signal;
- obtaining a processed residual signal based on the switch fade-in/fade-out factor and the initial residual signal;
- and
- encoding the processed downmixed signal and the processed residual signal.
An audio signal encoder, comprising:
- a processor;
- and
- a memory coupled to the processor and storing programming instructions, which when executed by the processor, cause the audio signal encoder to:
- obtain an audio signal including at least two channel signals;
- obtain an initial residual signal of a subband of a current frame of the audio signal;
- obtain an initial downmixed signal of the subband;
- determine whether a previous frame of the current frame is a switching frame;
- and
- when the previous frame is a switching frame, obtain a switch fade-in/fade-out factor of the current frame based on a residual signal coding parameter of the current frame and an inter-frame energy fluctuation parameter of the current frame, wherein the residual signal coding parameter represents an energy relationship between a downmixed signal and a residual signal of the current frame, and the inter-frame energy fluctuation parameter represents an energy relationship between the current frame and the previous frame;
- obtain a processed downmixed signal based on the switch fade-in/fade-out factor and the initial downmixed signal;
- obtain a processed residual signal based on the switch fade-in/fade-out factor and the initial residual signal;
- and
- encode the processed downmixed signal and the processed residual signal.
A non-transitory computer-readable storage medium storing computer instructions, which when executed by one or more processors, cause the one or more processors to perform operations, the operations comprising:
- obtaining an audio signal including at least two channel signals;
- obtaining an initial residual signal of a subband of a current frame of the audio signal;
- obtaining an initial downmixed signal of the subband;
- determining whether a previous frame of the current frame is a switching frame;
- and
- when the previous frame is a switching frame, obtaining a switch fade-in/fade-out factor of the current frame based on a residual signal coding parameter of the current frame and an inter-frame energy fluctuation parameter of the current frame, wherein the residual signal coding parameter represents an energy relationship between a downmixed signal and a residual signal of the current frame, and the inter-frame energy fluctuation parameter represents an energy relationship between the current frame and the previous frame;
- obtaining a processed downmixed signal based on the switch fade-in/fade-out factor and the initial downmixed signal;
- obtaining a processed residual signal based on the switch fade-in/fade-out factor and the initial residual signal;
- and
- encoding the processed downmixed signal and the processed residual signal.
Dependencies are inferred from the claim text.