DOWNSCALED DECODING
20220051684 · 2022-02-17
Inventors
- Markus SCHNELL (Nuernberg, DE)
- Manfred Lutzky (Nuernberg, DE)
- Eleni FOTOPOULOU (Nuernberg, DE)
- Konstantin Schmidt (Nuernberg, DE)
- Conrad BENNDORF (Nuernberg, DE)
- Adrian Tomasek (Zirndorf, DE)
- Tobias Albert (Roedelsee, DE)
- Timon Seidl (Schwabach, DE)
Cpc classification
International classification
Abstract
A downscaled version of an audio decoding procedure may more effectively and/or at improved compliance maintenance be achieved if the synthesis window used for downscaled audio decoding is a downsampled version of a reference synthesis window involved in the non-downscaled audio decoding procedure by downsampling by the downsampling factor by which the downsampled sampling rate and the original sampling rate deviate, and downsampled using a segmental interpolation in segments of ¼ of the frame length.
Claims
1. An audio decoder, comprising: a receiver configured to receive, for each of frames of an audio signal, a spectrum forming a spectral decomposition of a temporal portion comprising the respective frame and N−1 previous frames, with N being an integer, wherein the receiver is configured to perform gap filling in order to synthetically fill zero-quantized portions within the spectrum; a grabber configured to grab-out, for each frame, a low-frequency fraction of 1/F, in length, of the spectrum; a spectral-to-time modulator configured to subject, for each frame, the low-frequency fraction to an inverse transform so as to acquire a temporal representation of the temporal portion; a windower configured to window, for each frame, the temporal representation of the temporal portion using a synthesis window comprising a zero-portion at a leading end thereof and comprising a peak within a temporal interval of the synthesis window, which succeeds the zero-portion, so that the windower acquires a windowed temporal representation of the temporal portion; and a time domain aliasing canceler configured to subject the windowed temporal representation of the temporal portion of the frames to an overlap-add process at a mutual inter-frame distance corresponding to the frame length, wherein the inverse transform is an inverse MDCT or inverse MDST, and wherein the synthesis window is a downsampled version of a reference synthesis window, downsampled by a factor of F by a segmental interpolation in 4.Math.N segments of mutually equal segment length.
2. The audio decoder according to claim 1, wherein the synthesis window is a concatenation of one spline function for each of the 4.Math.N segments.
3. The audio decoder according to claim 1, wherein the synthesis window is a concatenation of one cubic spline function for each of the 4.Math.N segments.
4. The audio decoder according to claim 1, wherein N=4.
5. The audio decoder according to claim 1, wherein the inverse transform is an inverse MDCT.
6. The audio decoder according to claim 1, wherein more than 80% of a mass of the synthesis window is comprised within the temporal interval succeeding the zero-portion and the temporal interval succeeding the zero-portion is 7/4 times the frame length long.
7. The audio decoder according to claim 1, wherein the audio decoder is configured to perform the interpolation or to derive the synthesis window from a storage.
8. The audio decoder according to claim 1, wherein the audio decoder is configured to support different values for F.
9. The audio decoder according to claim 1, wherein F is between 1.5 and 10, both inclusively.
10. The audio decoder according to claim 1, wherein the reference synthesis window is unimodal.
11. The audio decoder according to claim 1, wherein the audio decoder is configured to perform the interpolation in such a manner that a majority of coefficients of the synthesis window depends on more than two coefficients of the reference synthesis window.
12. The audio decoder according to claim 1, wherein the audio decoder is configured to perform the interpolation in such a manner that each coefficient of the synthesis window separated by more than two coefficients from segment borders depend on more than two coefficients of the reference synthesis window.
13. The audio decoder according to claim 1, wherein the windower and the time domain aliasing canceller cooperate so that the windower skips the zero-portion in weighting the temporal portion using the synthesis window and the time domain aliasing canceler disregards a corresponding non-weighted portion of the windowed temporal portion in the overlap-add process.
14. A method for decoding an audio signal, the method comprising: receiving, for each of frames of the audio signal, a spectrum forming a spectral decomposition of a temporal portion comprising the respective frame and N−1 previous frames, with N being an integer; perform gap filling in order to synthetically fill zero-quantized portions within the spectrum; grabbing-out for each frame, a low-frequency fraction of 1/F, in length, of the spectrum; performing a spectral-to-time modulation by subjecting, for each frame, the low-frequency fraction to an inverse transform so as to acquire a temporal representation of the temporal portion; windowing, for each frame, the temporal representation of the temporal portion using a synthesis window comprising a zero-portion at a leading end thereof and comprising a peak within a temporal interval of the synthesis window, which succeeds the zero-portion, so that a windowed temporal representation of the temporal portion is acquired; and performing a time domain aliasing cancellation by subjecting the windowed temporal representation of the temporal portion of the frames to an overlap-add process at a mutual inter-frame distance corresponding to the frame length, wherein the inverse transform is an inverse MDCT or inverse MDST, and wherein the synthesis window is a downsampled version of a reference synthesis window, downsampled by a factor of F by a segmental interpolation in 4.Math.N segments of mutually equal segment length.
15. A non-transitory digital storage medium having stored thereon a computer program for performing a method for decoding an audio signal according to claim 14, when said computer program is run by a computer.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
[0028] Embodiments of the present application are described below with respect to the figures, among which:
[0029]
[0030]
[0031]
[0032]
[0033]
[0034]
[0035]
[0036]
[0037]
DETAILED DESCRIPTION OF THE INVENTION
[0038] The following description starts with an illustration of an embodiment for downscaled decoding with respect to the AAC-ELD codec. That is, the following description starts with an embodiment which could form a downscaled mode for AAC-ELD. This description concurrently forms a kind of explanation of the motivation underlying the embodiments of the present application. Later on, this description is generalized, thereby leading to a description of an audio decoder and audio decoding method in accordance with an embodiment of the present application.
[0039] As described in the introductory portion of the specification of the present application, AAC-ELD uses low delay MDCT windows. In order to generate downscaled versions thereof, i.e. downscaled low delay windows, the subsequently explained proposal for forming a downscaled mode for AAC-ELD uses a segmental spline interpolation algorithm which maintains the perfect reconstruction property (PR) of the LD-MDCT window with a very high precision. Therefore, the algorithm allows the generation of window coefficients in the direct form, as described in ISO/IEC 14496-3:2009, as well as in the lifting form, as described in [2], in a compatible way. This means both implementations generate 16 bit-conform output.
[0040] The interpolation of Low Delay MDCT window is performed as follows.
[0041] In general a spline interpolation is to be used for generating the downscaled window coefficients to maintain the frequency response and mostly the perfect reconstruction property (around 170 dB SNR). The interpolation needs to be constraint in certain segments to maintain the perfect reconstruction property. For the window coefficients c covering the DCT kernel of the transformation (see also
where N denotes the frame size. Some implementation may use different signs to optimize the complexity, here, denoted by sgn. The requirement in (1) can be illustrated by
[0042] The coefficients c(0) . . . c(2N−1) are listed along the diamond shape. The N/4 zeros in the window coefficients, which are responsible for the delay reduction of the filter bank, are marked using a bold arrow.
[0045] The second constraint is not only implemented for the segment containing the zeros but also for the other segments. Knowing that some coefficients in the DCT kernel were not determined by the optimization algorithm but were determined by formula (1) to enable PR, several discontinuities in the window shape can be explained, e.g. around c(1536+128) in
[0046] Due to that reason, the segment size of N/4 is chosen for the segmental spline interpolation to generate the downscaled window coefficients. The source window coefficients are given by the coefficients used for N=512, also for downscaling operations resulting in frame sizes of N=240 or N=120. The basic algorithm is outlined very briefly in the following as MATLAB code:
TABLE-US-00001 FAC = Downscaling factor % e.g. 0.5 sb = 128; % segment size of source window w_down = [ ]; % downscaled window nSegments = length (W)/(sb); % number of segments; W = LD window coefficients for N = 512 xn= ( (0 : (FAC*sb-1) ) +0.5) /FAC-0.5; % spline init for 1=1:nSegments, w_down=[w_down,spline( [0 : (sb-1)],W( (i-1) *sb+ (1: (sb) ) ) ,xn)]; end;
[0047] As the spline function may not be fully deterministic, the complete algorithm is exactly specified in the following section, which may be included into ISO/IEC 14496-3:2009, in order to form an improved downscaled mode in AAC-ELD.
[0048] In other words, the following section provides a proposal as to how the above-outlined idea could be applied to ER AAC ELD, i.e. as to how a low-complex decoder could decode a ER AAC ELD bitstream coded at a first data rate at a second data rate lower than the first data rate. It is emphasized however, that the definition of N as used in the following adheres to the standard. Here, N corresponds to the length of the DCT kernel whereas hereinabove, in the claims, and the subsequently described generalized embodiments, N corresponds to the frame length, namely the mutual overlap length of the DCT kernels, i.e. the half of the DCT kernel length. Accordingly, while N was indicated to be 512 hereinabove, for example, it is indicated to be 1024 in the following.
[0049] The following paragraphs are proposed for inclusion to 14496-3:2009 via Amendment.
A.0 Adaptation to Systems Using Lower Sampling Rates
[0050] For certain applications, ER AAC LD can change the playout sample rate in order to avoid additional resampling steps (see 4.6.17.2.7). ER AAC ELD can apply similar downscaling steps using the Low Delay MDCT window and the LD-SBR tool. In case AAC-ELD operates with the LD-SBR tool, the downscaling factor is limited to multiples of 2. Without LD-SBR, the downscaled frame size needs to be an integer number.
A.1 Downscaling of Low Delay MDCT Window
[0051] The LD-MDCT window w.sub.LD for N=1024 is downscaled by a factor Fusing a segmental spline interpolation. The number of leading zeros in the window coefficients, i.e. N/8, determines the segment size. The downscaled window coefficients w.sub.LD_d are used for the inverse MDCT as described in 4.6.20.2 but with a downscaled window length N.sub.d=N/F. Please note that the algorithm is also able to generate downscaled lifting coefficients of the LD-MDCT.
TABLE-US-00002 fs_window_size = 2048; /* Number of fullscale window coefficients. According to ISO/IEC 14496-3:2009, use 2048. For lifting implemenations, please adjust this variable accordingly */ ds_window_size = N * fs_window_size / (1024 * F); /* downscaled window coefficients; N determines the transformation length according to 4.6.20.2 */ fs_segment_size = 128; num_segments = fs_window_size / fs_segment_size; ds_segment_size = ds_window_size / num_segments; tmp[128], y[128]; /* temporary buffers */ /* loop over segments */ for (b = 0; b > num_segments; b++) { /* copy current segment to tmp */ copy(&W_LD[b * fs_segment_size], tmp, fs_segment_size); /* apply cubic spline interpolation for downscaling */ /* calculate interpolating phase */ phase = (fs_window_size - ds_window_size) / (2 * ds_window_size); /* calculate the coefficients c of the cubic spline given tmp */ /* array of precalculated constants */ m = {0.166666672, 0.25, 0.266666681, 0.267857134, 0.267942578, 0.267948717, 0.267949164}; n = fs_segment_size; /* for simplicity */ /* calculate vector r needed to calculate the coefficients c */ for (i = n-3; i >=0; i--) r[i] = 3 * ((tmp[i + 2] - tmp[i + 1]) - (tmp[i + 1] - tmp[i])); for (i = 1; i < 7; i++) r[i] -= m[i - 1] *r[i - 1]; for(i = 7; i < n - 4; i++) r[i] -= 0.267949194 * r[i - 1]; /* calculate coefficients c */ c[n - 2] = r[n - 3] /6; c[n - 3] = (r[n - 4] - c[n - 2]) * 0.25; for (i = n - 4; i > 7; i--) c[i] =(r[i - 1] - c[i + 1]) * 0.267949194; for (i = 7; i > 1; i--) c[i]=(r[i-1]-c[i+1])*m[i-1]; c[1] = r[0]*m[0]; c[0] = 2 * c[1] -c[2]; c[n-1] = 2 * c[n - 2] - c[n - 3]; /* keep original samples in temp buffer y because samples of tmp will be replaced with interpolated samples */ copy(tmp, y, fs_segment_size); /* generate downscaled points and do interpolation */ for (k = 0; k <ds_segment_size; k++) { step = phase +k * fs_segment_size / ds_segment_size; idx = floor(step); diff = step - idx; di = (c[idx +1] - c[idx]) / 3; bi = (y[idx +1] - y[idx]) - (c[idx + 1] +2 * c[idx]) / 3; /* calculate downscaled values and store in tmp */ tmp[k] = y[idx] +diff * (bi + diff * (c[idx] + diff * di)); } /* assemble downscaled window */ copy(tmp, &W_LD_d[b * ds_segment size], ds_segment_size); }
A.2 Downscaling of Low Delay SBR Tool
[0052] In case the Low Delay SBR tool is used in conjunction with ELD, this tool can be downscaled to lower sample rates, at least for downscaling factors of a multiple of 2. The downscale factor F controls the number of bands used for the CLDFB analysis and synthesis filter bank. The following two paragraphs describe a downscaled CLDFB analysis and synthesis filter bank, see also 4.6.19.4.
4.6.20.5.2.1 Downscaled Analyses CLDFB Filter Bank
[0053] Define number of downscaled CLDFB bands B=32/F. [0054] Shift the samples in the array x by B positions. The oldest B samples are discarded and B new samples are stored in positions 0 to B−1. [0055] Multiply the samples of array x by the coefficient of window ci to get array z. The window coefficients ci are obtained by linear interpolation of the coefficients c, i.e. through the equation
u(n)=z(n)+z(n+2B)+z(n+4B)+z(n+6B)+z(n+8B),0≤n<(2B). [0058] Calculate B new subband samples by the matrix operation Mu, where
4.6.20.5.2.2 Downscaled Synthesis CLDFB Filter Bank
[0060] Define number of downscaled CLDFB bands B=64/F. [0061] Shift the samples in the array v by 2B positions. The oldest 2B samples are discarded. [0062] The B new complex-valued subband samples are multiplied by the matrix N, where
output(n)=Σ.sub.i=0.sup.i≤9w(Bi+n), 0=n<B.
[0068] Please note that setting F=2 provides the downsampled synthesis filter bank according to 4.6.19.4.3. Therefore, to process a downsampled LD-SBR bit stream with an additional downscale factor F, F needs to be multiplied by 2.
4.6.20.5.2.3 Downscaled Real-Valued CLDFB Filter Bank
[0069] The downscaling of the CLDFB can be applied for the real valued versions of the low power SBR mode as well. For illustration, please also consider 4.6.19.5.
[0070] For the downscaled real-valued analysis and synthesis filter bank, follow the description in 4.6.20.5.2.1 and 4.6.20.2.2 and exchange the exp( ) modulator in M by a cos( ) modulator.
A.3 Low Delay MDCT Analysis
[0071] This subclause describes the Low Delay MDCT filter bank utilized in the AAC ELD encoder. The core MDCT algorithm is mostly unchanged, but with a longer window, such that n is now running from −N to N−1 (rather than from 0 to N−1)
[0072] The spectral coefficient, x.sub.i,k, are defined as follows:
where: [0073] z.sub.in=windowed input sequence [0074] N=sample index [0075] K=spectral coefficient index [0076] I=block index [0077] N=window length [0078] n.sub.0=(−N/2+1)/2
[0079] The window length N (based on the sine window) is 1024 or 960.
[0080] The window length of the low-delay window is 2*N. The windowing is extended to the past in the following way:
z.sub.i,n=w.sub.LD(N−1−n).Math.x′.sub.i,n
for n=−N, . . . , N−1, with the synthesis window w used as the analysis window by inverting the order.
A.4 Low Delay MDCT Synthesis
[0081] The synthesis filter bank is modified compared to the standard IMDCT algorithm using a sine window in order to adopt a low-delay filter bank. The core IMDCT algorithm is mostly unchanged, but with a longer window, such that n is now running up to 2N−1 (rather than up to N−1).
with N=960 or 1024.
[0088] The windowing and overlap-add is conducted in the following way:
[0089] The length N window is replaced by a length 2N window with more overlap in the past, and less overlap to the future (N/8 values are actually zero).
[0090] Windowing for the Low Delay Window:
z.sub.i,n=w.sub.LD(n).Math.x.sub.i,n
[0091] Where the window now has a length of 2N, hence n=0, . . . , 2N−1.
[0092] Overlap and add:
for 0<=n<N/2
[0093] Here, the paragraphs proposed for being included into 14496-3:2009 via amendment end.
[0094] Naturally, the above description of a possible downscaled mode for AAC-ELD merely represents one embodiment of the present application and several modifications are feasible. Generally, embodiments of the present application are not restricted to an audio decoder performing a downscaled version of AAC-ELD decoding. In other words, embodiments of the present application may, for instance, be derived by forming an audio decoder capable of performing the inverse transformation process in a downscaled manner only without supporting or using the various AAC-ELD specific further tasks such as, for instance, the scale factor-based transmission of the spectral envelope, TNS (temporal noise shaping) filtering, spectral band replication (SBR) or the like.
[0095] Subsequently, a more general embodiment for an audio decoder is described. The above-outlined example for an AAC-ELD audio decoder supporting the described downscaled mode could thus represent an implementation of the subsequently described audio decoder. In particular, the subsequently explained decoder is shown in
[0096] The audio decoder of
[0097] In a manner outlined in more details below, the audio decoder 10 of
[0098] The manner in which the audio signal 22 is transform coded at the encoding or original sampling rate into the data stream is illustrated in
[0099] In particular, coefficients 28 as transmitted within data stream 24 are coefficients of a lapped transform of the audio signal 22 so that the audio signal 22, sampled at the original or encoding sampling rate, is partitioned into immediately temporally consecutive and non-overlapping frames of a predetermined length N, wherein N spectral coefficients are transmitted in data stream 24 for each frame 36. That is, transform coefficients 28 are obtained from the audio signal 22 using a critically sampled lapped transform. In the spectrotemporal spectrogram representation 26, each column of the temporal sequence of columns of spectral coefficients 28 corresponds to a respective one of frames 36 of the sequence of frames. The N spectral coefficients 28 are obtained for the corresponding frame 36 by a spectrally decomposing transform or time-to-spectral modulation, the modulation functions of which temporally extend, however, not only across the frame 36 to which the resulting spectral coefficients 28 belong, but also across E+1 previous frames, wherein E may be any integer or any even numbered integer greater than zero. That is, the spectral coefficients 28 of one column of the spectrogram at 26 which belonged to a certain frame 36 are obtained by applying a transform onto a transform window, which in addition the respective frame comprises E+1 frames lying in the past relative to the current frame. The spectral decomposition of the samples of the audio signal within this transform window 38, which is illustrated in
[0100] Before resuming the description of the audio decoder 10, it should be noted that the description of the transmission of the spectral coefficients 28 within the data stream 24 as provided so far has been simplified with respect to the manner in which the spectral coefficients 28 are quantized or coded into data stream 24 and/or the manner in which the audio signal 22 has been pre-processed before subjecting the audio signal to the lapped transform. For example, the audio encoder having transform coded audio signal 22 into data stream 24 may be controlled via a psychoacoustic model or may use a psychoacoustic model to keep the quantization noise and quantizing the spectral coefficients 28 unperceivable for the hearer and/or below a masking threshold function, thereby determining scale factors for spectral bands using which the quantized and transmitted spectral coefficients 28 are scaled. The scale factors would also be signaled in data stream 24. Alternatively, the audio encoder may have been a TCX (transform coded excitation) type of encoder. Then, the audio signal would have had subject to a linear prediction analysis filtering before forming the spectrotemporal representation 26 of spectral coefficients 28 by applying the lapped transform onto the excitation signal, i.e. the linear prediction residual signal. For example, the linear prediction coefficients could be signaled in data stream 24 as well, and a spectral uniform quantization could be applied in order to obtain the spectral coefficients 28.
[0101] Furthermore, the description brought forward so far has also been simplified with respect to the frame length of frames 36 and/or with respect to the low delay window function 40. In fact, the audio signal 22 may have been coded into data stream 24 in a manner using varying frame sizes and/or different windows 40. However, the description brought forward in the following concentrates on one window 40 and one frame length, although the subsequent description may easily be extended to a case where the entropy encoder changes these parameters during coding the audio signal into the data stream.
[0102] Returning back to the audio decoder 10 of
[0103] The output of receiver 12 is the sequence of N spectral coefficients, namely one set of N spectral coefficients, i.e. one column in
[0104] Grabber 14 thus receives from receiver 12 the spectrogram 26 of spectral coefficients 28 and grabs, for each frame 36, a low frequency fraction 44 of the N spectral coefficients of the respective frame 36, namely the N/F lowest-frequency spectral coefficients.
[0105] That is, spectral-to-time modulator 16 receives from grabber 14 a stream or sequence 46 of N/F spectral coefficients 28 per frame 36, corresponding to a low-frequency slice out of the spectrogram 26, spectrally registered to the lowest frequency spectral coefficients illustrated using index “0” in
[0106] The spectral-to-time modulator 16 subjects, for each frame 36, the corresponding low-frequency fraction 44 of spectral coefficients 28 to an inverse transform 48 having modulation functions of length (E+2).Math.N/F temporally extending over the respective frame and E+1 previous frames as illustrated at 50 in
[0107] Thus, windower 52 receives, for each frame, a temporal portion 52, the N/F samples at the leading end thereof temporally corresponding to the respective frame while the other samples of the respective temporal portion 52 belong to the corresponding temporally preceding frames. Windower 18 windows, for each frame 36, the temporal portion 52 using a unimodal synthesis window 54 of length (E+2).Math.N/F comprising a zero-portion 56 of length ¼ .Math.N/F at a leading end thereof, i.e. 1/F.Math.N/F zero-valued window coefficients, and having a peak 58 within its temporal interval succeeding, temporally, the zero-portion 56, i.e. the temporal interval of temporal portion 52 not covered by the zero-portion 52. The latter temporal interval may be called the non-zero portion of window 58 and has a length of 7/4.Math.N/F measured in samples of the reduced sampling rate, i.e. 7/4.Math.N/F window coefficients. The windower 18 weights, for instance, the temporal portion 52 using window 58. This weighting or multiplying 58 of each temporal portion 52 with window 54 results in a windowed temporal portion 60, one for each frame 36, and coinciding with the respective temporal portion 52 as far as the temporal coverage is concerned. In the above proposed section A.4, the windowing processing which may be used by window 18 is described by the formulae relating z.sub.i,n to x.sub.i,n, where x.sub.i,n corresponds to the aforementioned temporal portions 52 not yet windowed and z.sub.i,n corresponds to the windowed temporal portions 60 with i indexing the sequence of frames/windows, and n indexing, within each temporal portion 52/60, the samples or values of the respective portions 52/60 in accordance with a reduced sampling rate.
[0108] Thus, the time domain aliasing canceler 20 receives from windower 18 a sequence of windowed temporal portions 60, namely one per frame 36. Canceler 20 subjects the windowed temporal portions 60 of frames 36 to an overlap-add process 62 by registering each windowed temporal portion 60 with its leading N/F values to coincide with the corresponding frame 36. By this measure, a trailing-end fraction of length (E+1)/(E+2) of the windowed temporal portion 60 of a current frame, i.e. the remainder having length (E+1).Math.N/F, overlaps with a corresponding equally long leading end of the temporal portion of the immediately preceding frame. In formulae, the time domain aliasing canceler 20 may operate as shown in the last formula of the above proposed version of section A.4, where out.sub.i,n corresponds to the audio samples of the reconstructed audio signal 22 at the reduced sampling rate.
[0109] The processes of windowing 58 and overlap-adding 62 as performed by windower 18 and time domain aliasing canceler 20 are illustrated in more detail below with respect to
[0110]
[0111] Thus, in the manner outlined above, the audio decoder 10 of
[0112] As just mentioned, in order to perform the downsampling 72, the reference synthesis window 70 is processed in segments 74 of equal length. In number, there are (E+2).Math.4 such segments 74. Measured in the original sampling rate, i.e. in the number of window coefficients of the reference synthesis window 70, each segment 74 is ¼ .Math.N window coefficients w′ long, and measured in the reduced or downsampled sampling rate, each segment 74 is ¼.Math.N/F window coefficients w long.
[0113] Naturally, it would be possible to perform the downsampling 72 for each downsampled window coefficient w.sub.i coinciding accidentally with any of the window coefficients w′.sub.j of the reference synthesis window 70 by simply setting w.sub.i=w′.sub.j with the sample time of w.sub.i coinciding with that of w′.sub.j, and/or by linearly interpolating any window coefficients w.sub.i residing, temporally, between two window coefficients w′.sub.j and w′.sub.j+2 by linear interpolation, but this procedure would result in a poor approximation of the reference synthesis window 70, i.e. the synthesis window 54 used by audio decoder 10 for the downsampled decoding would represent a poor approximation of the reference synthesis window 70, thereby not fulfilling the request for guaranteeing conformance testing of the downscaled decoding relative to the non-downscaled decoding of the audio signal from data stream 24. Thus, the downsampling 72 involves an interpolation procedure according to which the majority of the window coefficients w.sub.i of the downsampled window 54, namely the ones positioned offset from the borders of segments 74, depend by way of the downsampling procedure 72 on more than two window coefficients w′ of the reference window 70. In particular, while the majority of the window coefficients w.sub.i of the downsampled window 54 depend on more than two window coefficients w′.sub.j of the reference window 70 in order to increase the quality of the interpolation/downsampling result, i.e. the approximation quality, for every window coefficient w.sub.i of the downsampled version 54 it holds true that same does not depend in window coefficients w′.sub.j belonging to different segments 74. Rather, the downsampling procedure 72 is a segmental interpolation procedure.
[0114] For example, the synthesis window 54 may be a concatenation of spline functions of length ¼.Math.N/F. Cubic spline functions may be used. Such an example has been outlined above in section A.1 where the outer for-next loop sequentially looped over segments 74 wherein, in each segment 74, the downsampling or interpolation 72 involved a mathematical combination of consecutive window coefficients w′ within the current segment 74 at, for example, the first for next clause in the section “calculate vector r needed to calculate the coefficients c”. The interpolation applied in segments, may, however, also be chosen differently. That is, the interpolation is not restricted to splines or cubic splines. Rather, linear interpolation or any other interpolation method may be used as well. In any case, the segmental implementation of the interpolation would cause the computation of samples of the downscaled synthesis window, i.e. the outmost samples of the segments of the downscaled synthesis window, neighboring another segment, to not depend on window coefficients of the reference synthesis window residing in different segments.
[0115] It may be that windower 18 obtains the downsampled synthesis window 54 from a storage where the window coefficients w.sub.i of this downsampled synthesis window 54 have been stored after having been obtained using the downsampling 72. Alternatively, as illustrated in
[0116] It should be noted that the audio decoder 10 of
[0117] Naturally, the modulator 16 would also be responsive to F input 78, as modulator 16 would use appropriately downsampled versions of the modulation functions and the same holds true for the windower 18 and canceler 20 with respect to an adaptation of the actual length of the frames in the reduced or downsampled sampling rate.
[0118] For example, F may lie between 1.5 and 10, both inclusively.
[0119] It should be noted that the decoder of
[0120]
[0121] The modulator 16 comprises an inverse type-iv discrete cosine transform frequency/time converter. Instead of outputting sequences of (E+2).Math.N/F long temporal portions 52, it merely outputs temporal portions 52 of length 2.Math.N/F, all derived from the sequence of N/F long spectra 46, these shortened portions 52 corresponding to the DCT kernel, i.e. the 2.Math.N/F newest samples of the erstwhile described portions.
[0122] The windower 18 acts as described previously and generates a windowed temporal portion 60 for each temporal portion 52, but it operates merely on the DCT kernel. To this end, windower 18 uses window function ω.sub.i with i=0 . . . 2N/F−1, having the kernel size. The relationship between w.sub.i with i=0 . . . (E+2).Math.N/F−1 is described later, just as the relationship between the subsequently mentioned lifting coefficients and w.sub.i with i=0 . . . (E+2).Math.N/F−1 is.
[0123] Using the nomenclature applied above, the process described so far yields:
z.sub.k,n=ω.sub.n.Math.x.sub.k,n for n=0, . . . ,2M−1
with redefining M=N/F, so that M corresponds to the frame size expressed in the downscaled domain and using the nomenclature of
[0124] The overlap/add process of the canceller 20 operates in a manner different compared to the above description. It generates intermediate temporal portions m.sub.k(0), . . . m.sub.k(M−1) based on the equation or expression
m.sub.k,n=z.sub.k,n+z.sub.k−1,n+M for n=0, . . . ,M−1
[0125] In the implementation of
[0126] The lifter 80 produces, using a framework of the delayers and multipliers 82 and adders 84, the finally reconstructed temporal portions or frames of length M in pairs of immediately consecutive frames based on the equation or expression
u.sub.k,n=m.sub.k,n+l.sub.n−M/2.Math.m.sub.k−1,M−1−n for n=M/2, . . . ,M−1,
and
u.sub.k,n=m.sub.k,n+l.sub.M−1−n.Math.out.sub.k−1,M−1−n for n=0, . . . ,M/2−1,
wherein l.sub.n with n=0 . . . M−1 are real-valued lifting coefficients related to the downscaled synthesis window in a manner described in more detail below.
[0127] In other words, for the extended overlap of E frames into the past, only M additional multiplier-add operations are implemented, as can be seen in the framework of the lifter 80. These additional operations are sometimes also referred to as “zero-delay matrices”. Sometimes these operations are also known as “lifting steps”. The efficient implementation shown in
[0128] As to the dependency of ω.sub.n with n=0 . . . 2M−1 and l.sub.n with n=0 . . . M−1 on the synthesis window w.sub.i with i=0 . . . (E+2)M−1 (it is recalled that here E=2), the following formulae describe the relationship between them with displacing, however, the subscript indices used so far into the parenthesis following the respective variable:
[0129] Please note that the window w.sub.i contains the peak values on the right side in this formulation, i.e. between the indices 2M and 4M−1. The above formulae relate coefficients l.sub.n with n=0 . . . M−1 and ω.sub.n n=0, . . . , 2M−1 to the coefficients w.sub.n with n=0 . . . (E+2)M−1 of the downscaled synthesis window. As can be seen, l.sub.n with n=0 . . . M−1 actually merely depend on ¾ of the coefficients of the downsampled synthesis window, namely on w.sub.n with n=0 . . . (E+1)M−1, while ω.sub.n n=0, . . . , 2M−1 depend on all w.sub.n with n=0 . . . (E+2)M−1.
[0130] As stated above, it might be that windower 18 obtains the downsampled synthesis window 54 w.sub.n with n=0 . . . (E+2)M−1 from a storage where the window coefficients wi of this downsampled synthesis window 54 have been stored after having been obtained using the downsampling 72, and from where same are read to compute coefficients l.sub.n with n=0 . . . M−1 and ω.sub.n n=0, . . . , 2M−1 using the above relation, but alternatively, winder 18 may retrieve the coefficients l.sub.n with n=0 . . . M−1 and ω.sub.n n=0, . . . , 2M−1, thus computed from the pre-downsampled synthesis window, from the storage directly. Alternatively, as stated above, the audio decoder 10 may comprise the segmental downsampler 76 performing the downsampling 72 of
[0131] Briefly summarizing the lifting implementation, same results in an audio decoder 10 configured to decode an audio signal 22 at a first sampling rate from a data stream 24 into which the audio signal is transform coded at a second sampling rate, the first sampling rate being 1/F.sup.th of the second sampling rate, the audio decoder 10 comprising the receiver 12 which receives, per frame of length N of the audio signal, N spectral coefficients 28, the grabber 14 which grabs-out for each frame, a low-frequency fraction of length N/F out of the N spectral coefficients 28, a spectral-to-time modulator 16 configured to subject, for each frame 36, the low-frequency fraction to an inverse transform having modulation functions of length 2′N/F temporally extending over the respective frame and a previous frame so as to obtain a temporal portion of length 2.Math.N/F, and a windower 18 which windows, for each frame 36, the temporal portion x.sub.k,n according to z.sub.k,n=ω.sub.n.Math.x.sub.k,n for n=0, . . . , 2M−1 so as to obtain a windowed temporal portion z.sub.k,n with n=0 . . . 2M−1. The time domain aliasing canceler 20 generates intermediate temporal portions m.sub.k(0), . . . m.sub.k(M−1) according to m.sub.k,n=z.sub.k,n+z.sub.k−1,n+M for n=0, . . . , M−1. Finally, the lifter 80 computes frames u.sub.k,n of the audio signal with n=0 . . . M−1 according to u.sub.k,n=m.sub.k,n+l.sub.n−M/2.Math.m.sub.k−1,M1−n for n=M/2, . . . , M−1, and u.sub.k,n=m.sub.k,n+l.sub.M−1−n.Math.out.sub.k−1,M−1−n for n=0, . . . , M/2−1, wherein l.sub.n with n=0 . . . M−1 are lifting coefficients, wherein the inverse transform is an inverse MDCT or inverse MDST, and wherein l.sub.n with n=0 . . . M−1 and ω.sub.n n=0, . . . , 2M−1 depend on coefficients w.sub.n with n=0 . . . (E+2)M−1 of a synthesis window, and the synthesis window is a downsampled version of a reference synthesis window of length 4.Math.N, downsampled by a factor of F by a segmental interpolation in segments of length ¼.Math.N.
[0132] It already turned out from the above discussion of a proposal for an extension of AAC-ELD with respect to a downscaled decoding mode that the audio decoder of
[0133] In
[0134] Please note, that the standard operation of SBR utilizes a 32 band CLDFB. The interpolation algorithm for the 32 band CLDFB window coefficients ci.sub.32 is already given in 4.6.19.4.1 in [1],
where c.sub.64 are the window coefficients of the 64 band window given in Table 4.A.90 in [1]. This formula can be further generalized to define window coefficients for a lower number of bands B as well
where F denotes the downscaling factor being F=32/B. With this definition of the window coefficients, the CLDFB analysis and synthesis filter bank can be completely described as outlined in the above example of section A.2.
[0135] Thus, above examples provided some missing definitions for the AAC-ELD codec in order to adapt the codec to systems with lower sample rates. These definitions may be included in the ISO/IEC 14496-3:2009 standard.
[0136] Thus, in the above discussion it has, inter alias, been described:
[0137] An audio decoder may be configured to decode an audio signal at a first sampling rate from a data stream into which the audio signal is transform coded at a second sampling rate, the first sampling rate being 1/F.sup.th of the second sampling rate, the audio decoder comprising: a receiver configured to receive, per frame of length N of the audio signal, N spectral coefficients; a grabber configured to grab-out for each frame, a low-frequency fraction of length N/F out of the N spectral coefficients; a spectral-to-time modulator configured to subject, for each frame, the low-frequency fraction to an inverse transform having modulation functions of length (E+2).Math.N/F temporally extending over the respective frame and E+1 previous frames so as to obtain a temporal portion of length (E+2).Math.N/F; a windower configured to window, for each frame, the temporal portion using a unimodal synthesis window of length (E+2).Math.N/F comprising a zero-portion of length ¼ .Math.N/F at a leading end thereof and having a peak within a temporal interval of the unimodal synthesis window, the temporal interval succeeding the zero-portion and having length 7/4.Math.N/F so that the windower obtains a windowed temporal portion of length (E+2).Math.N/F; and a time domain aliasing canceler configured to subject the windowed temporal portion of the frames to an overlap-add process so that a trailing-end fraction of length (E+1)/(E+2) of the windowed temporal portion of a current frame overlaps a leading end of length (E+1)/(E+2) of the windowed temporal portion of a preceding frame, wherein the inverse transform is an inverse MDCT or inverse MDST, and wherein the unimodal synthesis window is a downsampled version of a reference unimodal synthesis window of length (E+2).Math.N, downsampled by a factor of F by a segmental interpolation in segments of length ¼ .Math.N/F.
[0138] Audio decoder according to an embodiment, wherein the unimodal synthesis window is a concatenation of spline functions of length ¼ .Math.N/F.
[0139] Audio decoder according to an embodiment, wherein the unimodal synthesis window is a concatenation of cubic spline functions of length ¼ .Math.N/F.
[0140] Audio decoder according to any of the previous embodiments, wherein E=2.
[0141] Audio decoder according to any of the previous embodiments, wherein the inverse transform is an inverse MDCT.
[0142] Audio decoder according to any of the previous embodiments, wherein more than 80% of a mass of the unimodal synthesis window is comprised within the temporal interval succeeding the zero-portion and having length 7/4.Math.N/F.
[0143] Audio decoder according to any of the previous embodiments, wherein the audio decoder is configured to perform the interpolation or to derive the unimodal synthesis window from a storage.
[0144] Audio decoder according to any of the previous embodiments, wherein the audio decoder is configured to support different values for F.
[0145] Audio decoder according to any of the previous embodiments, wherein F is between 1.5 and 10, both inclusively.
[0146] A method performed by an audio decoder according to any of the previous embodiments.
[0147] A computer program having a program code for performing, when running on a computer, a method according to an embodiment.
[0148] As far as the term “of . . . length” is concerned it should be noted that this term is to be interpreted as measuring the length in samples. As far as the length of the zero portion and the segments is concerned it should be noted that same may be integer valued. Alternatively, same may be non-integer valued.
[0149] As to the temporal interval within which the peak is positioned it is noted that
[0150] As to the term “downsampled version” it is noted that in the above specification, instead of this term, “downscaled version” has synonymously been used.
[0151] As to the term “mass of a function within a certain interval” it is noted that same shall denote the definite integral of the respective function within the respective interval.
[0152] In case of the audio decoder supporting different values for F, same may comprise a storage having accordingly segmentally interpolated versions of the reference unimodal synthesis window or may perform the segmental interpolation for a currently active value of F. The different segmentally interpolated versions have in common that the interpolation does not negatively affect the discontinuities at the segment boundaries. They may, as described above, spline functions.
[0153] By deriving the unimodal synthesis window by a segmental interpolation from the reference unimodal synthesis window such as the one shown in
[0154] While this invention has been described in terms of several embodiments, there are alterations, permutations, and equivalents which will be apparent to others skilled in the art and which fall within the scope of this invention. It should also be noted that there are many alternative ways of implementing the methods and compositions of the present invention. It is therefore intended that the following appended claims be interpreted as including all such alterations, permutations, and equivalents as fall within the true spirit and scope of the present invention.
REFERENCES
[0155] [1] ISO/IEC 14496-3:2009 [0156] [2] M13958, “Proposal for an Enhanced Low Delay Coding Mode”, October 2006, Hangzhou, China