This application claims the benefit, under 35 U.S.C. § 365 of International Application PCT/EP02/11388, filed Oct. 11, 2002, which was published in accordance with PCT Article 21(2) on May 1, 2003 in English and which claims the benefit of European patent application No. 01250372.8, filed Oct. 23, 2001 and European patent application No. 02090082.5 filed Mar. 1, 2002.
The invention relates to a method and an apparatus for decoding a coded digital audio signal which is arranged in frames containing headers.
When using audio data reduction on the basis of ISO/IEC standards 11172-3 and 13818-3, a frame length varying by 8 bits is used at a sampling frequency of 44.1 kHz in order to arrive, on average, at a particular fixed data rate (e.g. 128 000 bits/sec). The ‘lengthening’ of a data frame is signalled by the “padding bit” in the header of a frame. This method is described more accurately in EP-A-0402973. The frames initially also contain a sync word.
The evaluation of this padding bit in the decoder can cause difficulties. By way of example, in highly optimized decoders, the digital signal processors (DSP) they contain require very sparing use of storage space. Since, however, the header in a frame is read at the start of decoding of the frame, but the value of the padding bit is not needed until right at the end of decoding of this frame, in a DSP implementation an entire storage location (an integer value of, by way of example, several bytes in length) is typically wasted on merely storing the value of the padding bit.
It would be possible to achieve a reduction in the required storage space by dispensing with the ‘padding’, i.e. the frame lengths would always be kept constant even at a sampling frequency of 44.1 kHz. However, a particular fixed data rate of, by way of example, 128 000 bits/sec is then no longer obtained, but rather a value which is 0.23% lower. A decoder which relies upon a constant frame length always being used even at a sampling frequency of 44.1 kHz would no longer be compatible with the aforementioned ISO/IEC standard, however.
The invention is based on the object of specifying a method which allows less storage space to be used but maintains the compatibility with the ISO/IEC standards 11172-3 and 13818-3 or with similar standards. This object is achieved by the method specified in Claim 1. A decoder using this method is specified in Claim 5.
In accordance with the invention, the data frames of varying length are evaluated on the basis of the respective length, but evaluation of the padding bit from the header is avoided. Since the value of the padding bit is normally used to ascertain the exact position of the start of the next frame, the invention involves ascertaining the start of the next frame in another way, namely by calculating a mean frame length and a rounding-down or rounding-up of this mean frame length to the closest integer byte values for the received frames.
The advantage is that the value of the padding bit does not need to be stored for the entire time taken for decoding a frame, and hence storage space can be saved more frugally.
In principle, the inventive method relates to the decoding of a coded digital audio signal which is arranged in frames containing headers, where the header in a frame contains a respective information item regarding whether this frame has a standard length or a length which differs therefrom for some of the frames, and where the frames contain a respective sync word, having the following steps:
In principle, the inventive apparatus relates to a decoder for decoding a coded digital audio signal which is arranged in frames containing headers, where the header in a frame contains a respective information item regarding whether this frame has a standard length or a length which differs therefrom for some of the frames, and the frames contain a respective sync word, where, for ascertaining the frame length, the length-variation information regarding the respective frame length is not stored or evaluated, and where the apparatus contains:
Instead of evaluating the sync word, another known and expected data pattern can also be evaluated.
Exemplary embodiments of the invention are described with reference to the drawings, in which:
In data-reducing coding and decoding methods for audio signals, such as in ISO/IEC 11172-3 (MPEG audio), the coded audio signals are stored or transmitted in data frames which respectively contain a fixed number N of audio samples, e.g. 1152 samples. The data frames have, in principle, a fixed length which is a multiple of a basic unit, which is called a ‘slot’ in ISO/IEC 11172-3 and has a length of 8 bits in the ‘layer 2’ and ‘layer 3’ variants.
In
If audio signals having sampling frequencies fs of 32 000 Hz or 48 000 Hz are used, then the relationship between the total data rate R (in bits/sec) and the frame length L (in slots) is as follows:
L=N*R/fs/8 (1)
Example:
N=1152 samples; R=128 000 bits/sec; fs=48 000 Hz gives L=384 slots of 8 bits each.
If, however, a sampling frequency of 44 100 Hz is used, then non-integer values for L are produced in (1). In this way, the start of the next frame is determined only approximately. Example:
N=1152 samples; R=128 000 bits/sec; fs=44 100 Hz gives L=417.9591837 slots of 8 bits each.
However, since a frame can only have an integer number of slots, a frame length which varies by 1 slot (=8 bits) is used at a sampling frequency of 44.1 kHz in order to arrive, on average, at a particular fixed data rate (e.g. R=128 000 bits/sec) and is signalled, as described above, using the padding bit in the header. When the result from formula (1) is rounded down, the correct frame start is often obtained for a sampling frequency of 44.1 kHz, namely for those frames which have not been lengthened by 1 slot. Often, however, an incorrect value is also obtained for the frame start. If the next frame starts to be decoded at this incorrect point, then an error is obtained, since the sync word to be expected at the start of the frame obviously does not appear.
Normally, decoders then switch to an error recovery mode and start a fresh complex search for a sync word. This typically produces a fault in the decoded output signal.
In
The invention therefore proposes, when decoding encoded signals having the sampling frequency 44 100 Hz or 22 050 Hz:
The invention can also be used for related applications in which a non-integer result from (1) causes a variation in the frame length and said variation is indicated using an information item similar to a ‘padding bit’.
Number | Date | Country | Kind |
---|---|---|---|
01250372 | Oct 2001 | EP | regional |
02090082 | Mar 2002 | EP | regional |
Filing Document | Filing Date | Country | Kind | 371c Date |
---|---|---|---|---|
PCT/EP02/11388 | 10/11/2002 | WO | 00 | 4/22/2004 |
Publishing Document | Publishing Date | Country | Kind |
---|---|---|---|
WO03/036622 | 5/1/2003 | WO | A |
Number | Name | Date | Kind |
---|---|---|---|
5973629 | Fujii | Oct 1999 | A |
5990963 | Mishima et al. | Nov 1999 | A |
6175599 | Lyon et al. | Jan 2001 | B1 |
6714826 | Curley et al. | Mar 2004 | B1 |
7003042 | Morelos-Zaragoza et al. | Feb 2006 | B2 |
7116736 | Blaum et al. | Oct 2006 | B2 |
Number | Date | Country |
---|---|---|
402973 | Dec 1990 | EP |
0051243 | Aug 2000 | WO |
Number | Date | Country | |
---|---|---|---|
20040247035 A1 | Dec 2004 | US |