AUDIO DECODER WITH AN ADAPTIVE FREQUENCY DOMAIN DOWNMIXER

Abstract: A method and apparatus for decoding a multi-channel audio bitstream in which adaptive frequency domain downmixer is used to downmix, according to long and shorter transform block length information, the decoded frequency coefficients of the multi-channel audio such that the long and shorter transform block information is maintained separately within the mixed down left and right channels. In this way, the long and shorter transform block coefficients of the mixed down left and right channels can be inverse transformed adaptively according to the long and shorter transform block information, and the results of the inverse transform of the long and short block of each of the left and right channel added together to form the total mixed down output of the left and right channel.

Description: AUDIO DECODER WITH AN ADAPTIVE FREQUENCY DOMAIN DO NMIXER Field of the Invention This invention relates to multi-channel digital audio decoders for digital storage media and transmission media. Background Art An efficient multi-channel digital audio signal coding method has been developed for storage or transmission applications such as the digital video disc (DVD) player and the high definition digital TV receiver (set-top-box). A description of the standard can be found in the ATSC Standard, "Digital Audio Compression (AC-3) Standard", Document A/52, 20 December 1995. The standard defined a coding method for up to six channel of multi-channel audio, that is, the left, right, centre, surround left, surround right, and the low frequency effects (LFE) channel. In this coding method, the multi-channel digital audio source is compressed block by block at the encoder by first transforming each input block audio PCM samples into frequency coefficients using an analysis filter bank, then quantizing the resulting frequency coefficients into quantized coefficients with a determined bit allocation strategy, and finally formatting and packing the quantized coefficients and bit allocation information into bit-stream for storage or transmission. Depending upon the spectral and temporal characteristics of the audio source, adaptive transformation of the audio source is done at the encoder to optimize the frequency/time resolution. This is achieved by adaptive switching between two transformations with long transform block length or shorter transform block length. The long transform block length which has good frequency resolution is used for improved coding performance; on the other hand, the shorter transform block length which has a greater time resolution is used for audio input signals which change rapidly in time. At the decoder side, each audio block is decompressed from the bitstream by first determining the bit allocation information, then unpacking and de-quantizing the quantized coefficients, and inverse transforming the resulting coefficients based on determined long or shorter transform length to output audio PCM data. The decoding processes are performed for each channel in the multi-channel audio data. For reasons such as overall system cost constrain or physical limitation in terms of number of output loudspeakers that can be used, downmixing of the decoded multi-channel audio is performed so that the number of output channels at the decoder is reduced to two channels, hence the left and right (L m a.ndR m ) channels suitable for conventional stereo audio amplifier and loudspeakers systems. Basically, downmixing is performed such that the multi-channel audio information is preserved while the number of output channels is reduced to only two channels. The method of downmixing may be described as: L m = + °\ R + 0 2 C + °2 L s + °A R s + Ω 5 LFE R m = b^L + b R + b 2 C + b i L s + b 4 R s + b 5 LFE where L m : Mixed down Left channel output R m : Mixed down Right channel output L : Left channel input R : Right channel input C: Centre channel input L s : Surround left channel input R 3 : Surround right channel input LFE: Low frequency effects channel input and α 0 _ 3 : downmixing coefficients for left channel output b 0 _ i : downmixing coefficients for right channel output. Downmixing method or coefficients may be designed such that the original or the approximate of the original decoded multichannel signals may be derived from the mixed down Left and Right channels. For decoders in systems or applications where downmixing is required, the decoding processes which include the inverse transformation are required for all encoded channels before downmixing can be done to generate the two output channels. The implementation complexity and the computation load is not reduced for such present art decoders even though only two output channels are generated instead of all channels in the multi-channel bitstream. To significantly reduce the implementation complexity and the computation load, the downmixing process should be performed at an early stage within the decoding processes such that the number of channels required to be decoded are reduced for the remaining decoding processes. In particular, since the inverse transform process is a complex and computationally intensive process, the downmixing should be performed on the inverse quantized frequency coefficients before the inverse transform. One example of such solution is given in United States patent application no. 5,400,433 for which the inverse transform process was assumed to be linear. However, due to the fact that inverse transform process of present art is adaptive in long or shorter transform block length depending upon the spectral and temporal characteristics of each coded audio channel, it is not a linear process and therefore the downmixing process cannot be performed first. That is, combining the channels before the inverse transform process will not produce the same output that produced by combining the channels after the inverse transform process. Disclosure of the Invention It is an object of this invention to provide a method and apparatus for decoding a multichannel audio bitstream which will overcome or at least ameliorate the foregoing disadvantages. In the present invention, an adaptive frequency domain downmixer is used to downmix, according to the long and shorter transform block length information, the decoded frequency coefficients of the multi-channel audio such that the long and short transform block information is maintained separately within the mixed down left and right channels. In this way, the long and shorter transform block coefficients of the mixed down left and right channels can still be inverse transformed adaptively according to the long and shorter transform block information, and the results of the inverse transform of the long and short block of each of the left and right channel are added together to form the total mixed down output of the left and right channel. Accordingly, in a first aspect, this invention provides a method of decoding a multichannel audio bitstream comprising the steps of: (a) subjecting said multi-channel audio bitstream to a block decoding process to obtain frequency coefficients for each audio channel within each block in the said multichannel audio bitstream; (b) unpacking long and shorter transform block information for each audio channel within said block from said multi-channel audio bitstream; (c) determining downmixing coefficients for each audio channel within said multi-channel audio bitstream; (d) downmixing said frequency coefficients of each audio channel within said block which are identified as long transform block by said long and shorter transform block information to form a left mixed down for long transform block and a right mixed down for long transform block; (e) downmixing said frequency coefficients of each audio channels within the said block which are identified as shorter transform block by said long and shorter transform block information to form a left mixed down for shorter transform block and a right mixed down for shorter transform block; (f) inverse transforming each of said left mixed down for long transform block, said right mixed down for long transform block, said left mixed down for shorter transform block, and said right mixed down for shorter transform block to produce a left mixed down long inverse transformed block, a right mixed down long inverse transformed block, a left mixed down shorter inverse transformed block, and a right mixed down shorter inverse transformed block respectively; (g) adding said left mixed down long inverse transformed block and said left mixed down shorter inverse transformed block to form a left total mixed down; and (h) adding said right mixed down long inverse transformed block and said right mixed down shorter inverse transformed block to form a right total mixed down. In a second aspect, this invention provides an apparatus for decoding a multi-channel audio bitstream comprising: (a) means for block decoding said multi-channel audio bitstream to obtain frequency coefficients of each audio channel with each block; (b) means for unpacking long and shorter transform block information for each audio channel within said block; (c) means for determining downmixing coefficients for each audio channel within said multi-channel audio bitstream; (d) means for downmixing said frequency coefficients of each audio channel identified as long transform block by said long and shorter transform block information to form a left mixed down for long transform block and a right mixed down for long transform block; (e) means for downmixing said frequency coefficients of each audio channel identified as shorter transform block by said long and shorter transform block information to form a left mixed down for shorter transform block and a right mixed down for shorter transform block; (f) means for inverse transforming each of said left mixed down for long transform block, said right mixed down for long transform block, said left mixed down for shorter transform block, and said right mixed down for shorter transform block to produce a left mixed down long inverse transformed block, a right mixed down long inverse transformed block, a left mixed down shorter inverse transformed block, and a right mixed down shorter inverse transformed block respectively; (g) means for adding said left mixed down long inverse transformed block and said left mixed down shorter inverse transformed block to form a left total mixed down; (h) means for adding of said right mixed down long inverse transformed block and said right mixed down shorter inverse transformed block to form a right total mixed down. Preferably, the block decoding process includes: (a) parsing the said multi-channel audio bitstream to obtain bit allocation information on each audio channel within said block; (b) unpacking quantized frequency coefficients from said block using said bit allocation information; and (c) de-quantizing said quantized frequency coefficients to obtain said frequency coefficients using said bit allocation information. A post-processing step is also preferably preformed in which: (a) the left total mixed down is subjected to a window overlap/add process wherein the samples within the left total mixed down are weighted, de-interleaved, overlapped and added to samples of a previous block; (b) the right total mixed down is subjected to a window overlap/add process wherein the samples within right total mixed down are weighted, de-interleaved, overlapped and added to samples of a previous block; and (c) the results of the window overlap/add are subjected to an output process wherein the results of the window overlap/add process are formatted and outputted. According to a preferred embodiment of the present invention, an input coded bitstream of multichannel audio is first parsed and the bit allocation information for each audio channel block is decoded. With the bit allocation information, the quantized frequency coefficients of each audio channel block are unpacked from the bitstream and de-quantized. The de-quantized frequency coefficients of all audio channels of a block are then mixed down. This downmixing is done separately for audio channel blocks that are of long transform block length and of shorter transform block length; hence, four blocks of mixed down transform coefficients are formed: the left mixed down for long transform block, the left mixed down for shorter transform block, the right mixed down for long transform block, and the right mixed down for shorter transform block. The four blocks of mixed down transform coefficients are subjected to the respective inverse transform for long transform block and shorter transform block. At the end of the inverse transform, the non-linearity between the long and shorter transform blocks is removed. The results of inverse transform of the left mixed down for longer transform block and left mixed down for shorter transform block are added together to form the total mixed down left channel signal. Similarly, the total mixed down right channel signal is formed. Any further post-processing required can then be performed on only these two total mixed down channels, and the final results are outputted as audio PCM samples for the left and right channels. Brief Description of the Drawings The invention will now be described, by way of example only, with reference to the accompany drawings in which: Figure 1 is a block diagram of the audio decoder according to one embodiment of the present invention; Figure 2 is a block diagram of one embodiment of an adaptive frequency domain downmixer forming part of the decoder shown in Figure 1.; Figure 3 is a block diagram another embodiment of the adaptive frequency domain downmixer shown in Figure 2; and Figure 4 is a block diagram of an alternate embodiment of the inverse transform and post-processing processes forming part of the present invention. Best Modes for Carrying Out the Invention An audio decoder with an adaptive frequency domain downmixer according to a preferred embodiment of the present invention is shown in Figure 1. An input multi-channel audio bitstream is first decoded by a bitstream unpack and bit allocation decoder 1. An example of the input multi-channel audio bitstream is the compressed bitstream according to the ATSC Standard, "Digital Audio Compression (AC-3) Standard", Document A/52, 20 December 1995. This input AC-3 bitstream consists of coded information of up to six channels of audio signal including the left channel (L) , the right channel (R) , the center channel (C) , the left surround channel (L s ) , the right surround channel (R s ) , and the low frequency effects channel (LFE) . However, the maximum number of coded audio channels for the input is not limited. The coded information within the AC-3 bitstream is divided into frames of 6 audio blocks, and each of the 6 audio block contains the information for all of the coded audio channel block (ie. L, R, C, L s , R s and LFE). In the bitstream unpack and bit allocation decoder 1, the input multi-channel audio bitstream is parsed and decoded to obtain the bit allocation information for each coded audio channel block. With the bit allocation information, the quantized frequency coefficients of each coded audio channel block are decoded from the input multi-channel audio bitstream. An example embodiment of the bitstream unpack and bit allocation decoder 1 may be found in the ATSC (AC-3) standard. The decoded quantized frequency coefficients of each coded audio channel block are inverse quantized by the de-quantizer 2 to produce the frequency coefficients 16 of corresponding coded audio channel block. Details of the de-quantizer 2 for AC-3 bitstream is found in the ATSC (AC-3) standard specification. After generating the frequency coefficients of each or all of the audio channel block, the frequency coefficients are mixed down in the adaptive frequency domain downmixer 3 based on the long/shorter transform block information 17 extracted from the input bitstream to produce four blocks of mixed down frequency coefficients consisting the left mixed down for long transform block 12 (L MI ), the left mixed down for shorter transform block 13 ( MS ), the right mixed down for long transform block 14 (R ML ) , and the right mixed down for shorter transform block 15 (R MS ) ■ The L UL 12 and Z.^ 13 are subjected to inverse transform for long transform block 4 and inverse transform for shorter transform block 5 respectively, and the results are added together by the adder 8. Similarly, the R ML 14 and R MS 15 are subjected to inverse transform for long transform block 6 and inverse transform for shorter transform block 7 respectively, and the results are added together by the adder 9. The results of adder 8 and adder 9 are subjected to post-processing 10 and post-processing 11 respectively, subsequently and finally outputted as output mixed down left channel 18 and output mixed down right channel 19. An embodiment of the adaptive frequency domain downmixer 3 is shown in Figure 2. In this embodiment, the frequency coefficients (number 16 in Figure 1) of an audio block are supplied in demultiplexed formCH 0 to H 5 (numeral 100 to 105) with respect to six audio channel. The long and shorter transform block information (number 17 in Figure 1) is also supplied in demultiplexed formLS 0 to. S' J (numeral 106 to 111) with respect to the six audio channel. The input frequency coefficients CH 0 to CH 5 are first multiplied by the respective downmixing coefficients a 0 toα 5 andό 0 tob i (numeral 20 to 31) with multipliers (numeral 32 to 43). The downmixing coefficients are either determined by application or by information from the input bitstream. The switches (numeral 44 to 55) are used to switch according to the long and shorter transform block information LS 0 toLS 5 of each of the audio channel the results of the multiplier (number 32 to 43) to the corresponding summator ioτL ML 56, summator for L MS 57, summator foτR ML 58, and summator/?^ 59. The results of the summator i τL ML 56 summator foτL MS 57, summator foιR ML 58, and summator./^ 59 are outputted as L ML 12, L MS 13, R ML 14, R MS 15 , respectively. The overall operations of this embodiment can be described in the following equations: L ML = ∑ (a, * CH, x LS) i -O L MS - ∑ (^ x CH, 23) (=0 ** = Σ (=0 (*, * CH, * ^,) *i* = ∑ (*, * Of, x LS) ι=0 wherc S, is the "Boolean" (0 = shorter, 1 = long) representation of the long and shorter transform for each of the channel i = 0 to n. It should be noted that the number of audio channels in the present embodiment is not limited to six, and can be expanded by increasing the number of multipliers and switches for the additional channels. Another embodiment of the adaptive frequency domain downmixer 3 is shown in Figure 3. The input frequency coefficients 16 are provided in sequence of the coded audio channel block as CH, where i is the audio current channel number. The input CH, is multiplied by the corresponding downmixing coefficients α, 76 andό, 77 using multiplier 60 and 61 respectively, and the results are switched according to the long and shorter transform block information LS t 17 of the current audio channel block. If the current audio channel block is a long transform block, the results of the multiplier 60 and 61 are accumulated to buffer fotL ML 68 and buffer for R ML 70 respectively using the adder 64 and 66. On the other hand, if the current audio channel block is a shorter transform block, the results of the multiplier 60 and 61 are accumulated to buffer for L MS 69 and buffer ϊ τR MS 71 respectively using the adder 65 and 67. After all the frequency coefficients of an audio block are received and processed, the results in buffers for L ML , L MS , R ML , andR MS are outputted with control Output M 79 as L ML 12, L MS 13, R ML 14, andΛ^ 15 respectively using switches 72, 73, 74 and 75. Figure 4 shows an alternate embodiment of the inverse transform and post-processing processes. With the L/R select signal 88, switches 80 and 85, the input mixed down frequency coefficients L ML 12 anάL MS 13 of an audio block are first inverse transformed with the respective inverse transform for long transform block 81 and inverse transform for shorter transform block 82. The results of the two inverse transform are added together by adder 83 and then subject to post-processing 84 before outputting to the left channel output buffer 86. Subsequently, the L/R select signal 88 is changed, and the input mixed down frequency coefficients R ML 14 and ?^ 15 are inverse transformed with the respective inverse transform for long transform block 81 and inverse transform for shorter transform block 82. The results of the two inverse transform are added together by adder 83 and then subject to post-processing 84 before outputting to the right channel output buffer 87. Finally, the decompressed audio signals, output mixed down left channel 18 and output mixed down right channel 19, are sent out from the left channel output buffer 86 and right channel output buffer 87 respectively. Examples of the inverse transform for long transform block (numeral 4 and 6 of Figure 1 and numeral 81 of Figure 4) and inverse transform for shorter transform block numeral 5 and 7 of Figure 1 and numeral 82 of Figure 4) can be found in the ATSC (AC-3) standard specification. An example embodiment of the post-processing module (numeral 10 and 11 of Figure 1 and numeral 84 of Figure 4) consists of window, overlap/add, scaling and quantization can also be found the ATSC (AC-3) standard specification. It will be apparent that by maintaining the long and shorter transform block coefficients separately, downmixing can be performed in the frequency domain in a multi-channel audio decoder with adaptive long and shorter transform block coded input bitstream. As this adaptive downmixing is performed before the inverse transform, the number of inverse transform per audio block is reduced to four instead of the number of coded audio channels; hence, if the number of coded audio channels in the input bitstream to the multi-channel audio decoder is six to eight channels, the reduction of the number of inverse transform required will be two to four. This represents a signification reduction in implementation complexity and computation load requirement. The foregoing describes only some embodiments of the invention and modifications can be made without departing from the scope of the invention.

Claims: CLAIMS 1. A method of decoding a multi-channel audio bitstream comprising the steps of: (a) subjecting said multi-channel audio bitstream to a block decoding process to obtain frequency coefficients for each audio channel within each block in the said multi-channel audio bitstream; (b) unpacking long and shorter transform block information for each audio channel within said block from said multi-channel audio bitstream; (c) determining downmixing coefficients for each audio channel within said multichannel audio bitstream; (d) downmixing said frequency coefficients of each audio channel within said block which are identified as long transform block by said long and shorter transform block information to form a left mixed down for long transform block and a right mixed down for long transform block; (e) downmixing said frequency coefficients of each audio channels within the said block which are identified as shorter transform block by said long and shorter transform block information to form a left mixed down for shorter transform block and a right mixed down for shorter transform block; (f) inverse transforming each of said left mixed down for long transform block, said right mixed down for long transform block, said left mixed down for shorter transform block, and said right mixed down for shorter transform block to produce a left mixed down long inverse transformed block, a right mixed down long inverse transformed block, a left mixed down shorter inverse transformed block, and a right mixed down shorter inverse transformed block respectively; (g) adding said left mixed down long inverse transformed block and said left mixed down shorter inverse transformed block to form a left total mixed down; and (h) adding said right mixed down long inverse transformed block and said right mixed down shorter inverse transformed block to form a right total mixed down. A method according to claim 1, wherein said block decoding process comprises the steps of: (a) parsing the said multi-channel audio bitstream to obtain bit allocation information on each audio channel within said block; (b) unpacking quantized frequency coefficients from said block using said bit allocation information; and (c) de-quantizing said quantized frequency coefficients to obtain said frequency coefficients using said bit allocation information. A method according to claim 2, further including a post-processing step comprising: (a) subjecting said left total mixed down to a window overlap/add process wherein the samples within said left total mixed down are weighted, de-interleaved, overlapped and added to samples of a previous block; (b) subjecting said right total mixed down to a window overlap/add process wherein the samples within said right total mixed down are weighted, de-interleaved, overlapped and added to samples of a previous block; and (c) subjecting the results of the window overlap/add to an output process wherein said results of the window overlap/add process are formatted and outputted. An apparatus for decoding a multi-channel audio bitstream comprising: (a) means for block decoding said multi-channel audio bitstream to obtain frequency coefficients of each audio channel with each block; (b) means for unpacking long and shorter transform block information for each audio channel within said block; (c) means for determining downmixing coefficients for each audio channel within said multi-channel audio bitstream; (d) means for downmixing said frequency coefficients of each audio channel identified as long transform block by said long and shorter transform block information to form a left mixed down for long transform block and a right mixed down for long transform block; (e) means for downmixing said frequency coefficients of each audio channel identified as shorter transform block by said long and shorter transform block information to form a left mixed down for shorter transform block and a right mixed down for shorter transform block; (f) means for inverse transforming each of said left mixed down for long transform block, said right mixed down for long transform block, said left mixed down for shorter transform block, and said right mixed down for shorter transform block to produce a left mixed down long inverse transformed block, a right mixed down long inverse transformed block, a left mixed down shorter inverse transformed block, and a right mixed down shorter inverse transformed block respectively; (g) means for adding said left mixed down long inverse transformed block and said left mixed down shorter inverse transformed block to form a left total mixed down; (h) means for adding of said right mixed down long inverse transformed block and said right mixed down shorter inverse transformed block to form a right total mixed down. 5. An apparatus according to claim 4, wherein said means for block decoding comprises: (a) means for parsing said multi-channel audio bitstream to obtain bit allocating information on each audio channel within said block; (b) means for unpacking quantized frequency coefficients from said block using said bit allocation information; and (c) means for de-quantizing said quantized frequency coefficients to said frequency coefficients using said bit allocation information. 6. An apparatus according to claim 5, further including means for performing a postprocessing process comprising: (a) means for subjecting said left total mixed down to a window overlap/add process wherein the samples within said left total mixed down are weighted, de- interleaved, overlapped and added to samples of a previous block; (b) means for subjecting said right total mixed down to a window overlap/add process wherein the samples within said right total mixed down are weighted, deinterleaved, overlapped and added to samples of a previous block; and (c) means for subjecting the results of said window overlap/add process to an output process where said results of the window overlap/add process are formatted and outputted.

Inventors: HUI YAU WAI LUCAS, HUI, YAU, WAI, LUCAS
Applicants: HUI YAU WAI LUCAS, SGS THOMSON MICROELECTRONICS A, HUI, YAU, WAI, LUCAS, SGS-THOMSON MICROELECTRONICS ASIA PACIFIC (PTE) LT
Application year: 1997
Main classification: H04H1
IPC codes: H04H20