CODING MODE DETERMINATION METHOD AND APPARATUS, AUDIO ENCODING METHOD AND APPARATUS, AND AUDIO DECODING METHOD AND APPARATUS
Provided are a method and an apparatus for determining an encoding mode for improving the quality of a reconstructed audio signal. A method of determining an encoding mode includes determining one from among a plurality of encoding modes including a first encoding mode and a second encoding mode as an initial encoding mode in correspondence to characteristics of an audio signal, and if there is an error in the determination of the initial encoding mode, generating a modified encoding mode by modifying the initial encoding mode to a third encoding mode.
1 . A method of determining an encoding mode, the method comprising:
determining one from among a plurality of encoding modes including a first encoding mode and a second encoding mode as an initial encoding mode in correspondence to characteristics of an audio signal; and
if there is an error in the determination of the initial encoding mode, generating a modified encoding mode by modifying the initial encoding mode to a third encoding mode.
2 . The method of claim 1 , wherein the first encoding mode is a spectrum domain encoding mode, the second encoding mode is a time domain encoding mode, and the third encoding mode is a frequency domain excitation encoding mode.
3 . The method of claim 1 , wherein, in the modifying of the initial encoding mode, if the first encoding mode is a spectrum domain encoding mode, it is determined whether to modify the initial encoding mode to a frequency domain excitation encoding mode based on a modification parameter.
4 . The method of claim 3 , wherein the modification parameter comprises at least one from among tonality of the audio signal, a linear prediction error, and a difference between a voicing parameter and a correlation parameter.
5 . The method of claim 1 , wherein, in the modifying of the initial encoding mode, if the first encoding mode is a spectrum domain encoding mode, it is determined whether to modify the first encoding mode to the frequency domain excitation encoding mode based on the tonality of the audio signal and the linear prediction error, and according a result of the determination, it is determined whether to modify the first encoding mode to the frequency domain excitation encoding mode based on the difference between a voicing parameter and a correlation parameter.
6 . The method of claim 1 , wherein, in the modifying of the initial encoding mode, if the second encoding mode is the time domain encoding mode, it is determined whether to modify the second encoding mode to the frequency domain excitation encoding mode based on the difference between a voicing parameter and a correlation parameter.
7 . The method of claim 1 , wherein a final encoding mode of a current frame is determined by determining encoding modes of a plurality of frames corresponding to a hangover length.
8 . The method of claim 7 , wherein, if the initial encoding mode or a modified encoding mode of the current frame is identical to an encoding mode of a plurality of previous frames, the initial encoding mode or the modified encoding mode is determined as the final encoding mode of the current frame.
9 . The method of claim 7 , wherein, if the initial encoding mode or a modified encoding mode of the current frame is not identical to an encoding mode of a plurality of previous frames, an encoding mode of a frame just before the current frame is determined as the final encoding mode of the current frame.
10 . An audio encoding method comprising:
determining an encoding mode according to claim 1 ; and
performing different encoding processes on the audio signal based on the determined encoding mode.
11 . An audio decoding method comprising:
parsing a bitstream comprising an encoding mode determined according to claim 1 ; and
performing different decoding processes on the bitstream based on the encoding mode.