Linear prediction coding parameter coding method and coding apparatus
AssigneeHuawei Technologies Co., Ltd.
InventorsXianbo Meng, Bingyin Xia, Zhe Wang
Life of this patent
Estimating the term…
Abstract
A linear prediction coding (LPC) parameter coding method is provided. The method includes: determining a reference LPC parameter from a plurality of LPC parameters, performing direct coding on the reference LPC parameter, and performing reference coding on a non-reference LPC parameter based on the determined LPC parameter. The method includes: obtaining a direct coding result of the reference LPC parameter and determining a residual coding result of the non-reference LPC parameter.
Claims15
A linear prediction coding (LPC) parameter coding method, comprising:
- obtaining to-be-coded LPC parameters of at least two channels of an audio signal;
- determining a reference LPC parameter from the to-be-coded LPC parameters of the at least two channels, wherein an LPC parameter other than the reference LPC parameter in the to-be-coded LPC parameters of the at least two channels is a non-reference LPC parameter;
- obtaining a direct coding result of the reference LPC parameter;
- obtaining a direct coding result of the non-reference LPC parameter;
- determining a residual of the non-reference LPC parameter based on the reference LPC parameter;
- determining a residual coding result of the non-reference LPC parameter based on the direct coding result of the reference LPC parameter and the residual;
- upon determining that a difference between a first distortion and a second distortion is less than or equal to a first preset threshold, writing the direct coding result of the reference LPC parameter and the residual coding result of the non-reference LPC parameter into a coded bitstream, wherein the first distortion is distortion of the residual coding result of the non-reference LPC parameter relative to the non-reference LPC parameter, and the second distortion is distortion of the direct coding result of the non-reference LPC parameter relative to the non-reference LPC parameter;
- and
- upon determining that the difference between the first distortion and the second distortion is greater than the first preset threshold, writing the direct coding result of the reference LPC parameter and the direct coding result of the non-reference LPC parameter into the coded bitstream,
- wherein, when the to-be-coded LPC parameters of the at least two channels comprise to-be-coded LPC parameters of at least three channels, the determining a reference LPC parameter from the to-be-coded LPC parameters of the at least two channels comprises:
- obtaining an absolute value of a difference between each LPC parameter in the to-be-coded LPC parameters of the at least three channels and other LPC parameters;
- obtaining an average value of absolute values of differences between each LPC parameter and the other LPC parameters;
- and
- determining an LPC parameter that is in the LPC parameters and that has a minimum average value of the absolute values of the differences as the reference LPC parameter.
A linear prediction coding (LPC) parameter coding apparatus, comprising:
- at least one processor;
- and
- one or more memories coupled to the at least one processor and storing programming instructions for execution by the at least one processor to cause the apparatus to:
- obtain to-be-coded LPC parameters of at least two channels of an audio signal;
- determine a reference LPC parameter from the to-be-coded LPC parameters of the at least two channels, wherein an LPC parameter other than the reference LPC parameter in the to-be-coded LPC parameters of the at least two channels is a non-reference LPC parameter;
- obtain a direct coding result of the reference LPC parameter;
- obtaining a direct coding result of the non-reference LPC parameter;
- determine a residual of the non-reference LPC parameter based on the reference LPC parameter;
- determine a residual coding result of the non-reference LPC parameter based on the direct coding result of the reference LPC parameter and the residual;
- upon determining that a difference between a first distortion and a second distortion is less than or equal to a first preset threshold, write the direct coding result of the reference LPC parameter and the residual coding result of the non-reference LPC parameter into a coded bitstream, wherein the first distortion is distortion of the residual coding result of the non-reference LPC parameter relative to the non-reference LPC parameter, and the second distortion is distortion of the direct coding result of the non-reference LPC parameter relative to the non-reference LPC parameter;
- and
- upon determining that the difference between the first distortion and the second distortion is greater than the first preset threshold, write the direct coding result of the reference LPC parameter and the direct coding result of the non-reference LPC parameter into the coded bitstream,
- wherein, when the to-be-coded LPC parameters of the at least two channels comprise to-be-coded LPC parameters of at least three channels, the programming instructions for execution by the at least one processor to cause the apparatus further to:
- obtain an absolute value of a difference between each LPC parameter in the to-be-coded LPC parameters of the at least three channels and other LPC parameters;
- obtain an average value of absolute values of differences between each LPC parameter and the other LPC parameters;
- and
- determine an LPC parameter that is in the LPC parameters and that has a minimum average value of the absolute values of the differences as the reference LPC parameter.
A computer program product comprising computer-executable instructions stored on a non-transitory computer-readable medium that, when executed by a processor, cause an apparatus to:
- obtain to-be-coded linear prediction coding (LPC) parameters of at least two channels of an audio signal;
- determine a reference LPC parameter from the to-be-coded LPC parameters of the at least two channels, wherein an LPC parameter other than the reference LPC parameter in the to-be-coded LPC parameters of the at least two channels is a non-reference LPC parameter;
- obtain a direct coding result of the reference LPC parameter;
- obtaining a direct coding result of the non-reference LPC parameter;
- determine a residual of the non-reference LPC parameter based on the reference LPC parameter;
- determine a residual coding result of the non-reference LPC parameter based on the direct coding result of the reference LPC parameter and the residual;
- upon determining that a difference between a first distortion and a second distortion is less than or equal to a first preset threshold, write the direct coding result of the reference LPC parameter and the residual coding result of the non-reference LPC parameter into a coded bitstream, wherein the first distortion is distortion of the residual coding result of the non-reference LPC parameter relative to the non-reference LPC parameter, and the second distortion is distortion of the direct coding result of the non-reference LPC parameter relative to the non-reference LPC parameter;
- and
- upon determining that the difference between the first distortion and the second distortion is greater than the first preset threshold, write the direct coding result of the reference LPC parameter and the direct coding result of the non-reference LPC parameter into the coded bitstream,
- wherein, when the to-be-coded LPC parameters of the at least two channels comprise to-be-coded LPC parameters of at least three channels, the computer-executable instructions, when executed by the processor, cause the apparatus to further:
- obtain an absolute value of a difference between each LPC parameter in the to-be-coded LPC parameters of the at least three channels and other LPC parameters;
- obtain an average value of absolute values of differences between each LPC parameter and the other LPC parameters;
- and
- determine an LPC parameter that is in the LPC parameters and that has a minimum average value of the absolute values of the differences as the reference LPC parameter.
Dependencies are inferred from the claim text.