Audio or video encoder, audio or video decoder and related methods for processing multi-channel audio or video signals using a variable prediction direction
An encoder/decoder is based on a combination of two audio or video channels to obtain a first combination signal as a mid-signal and a residual signal derivable using a predicted side signal derived from the mid-signal. A decoder uses the prediction residual signal, the first combination signal, a prediction direction indicator and prediction information to derive decoded first channel and second channel signals. A real-to-imaginary transform can be applied for estimating the imaginary part of the spectrum of the first combination signal. The prediction signal used in the derivation of the prediction residual signal, the real-valued first combination signal is multiplied by a real portion of the complex prediction information and the estimated imaginary part of the first combination signal is multiplied by an imaginary portion of the complex prediction information.
Latest Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e.V. Patents:
- Method and apparatus for processing an audio signal, audio decoder, and audio encoder to filter a discontinuity by a filter which depends on two fir filters and pitch lag
- Concealment of environmental influences on the transmitting parameters
- Method for labelling products with an optical security feature with a temporal dimension
- Vertical semiconductor diode or transistor device having at least one compound semiconductor and a three-dimensional electronic semiconductor device comprising at least one vertical compound structure
- Downscaled decoding
This application is a reissue application of issued U.S. Pat. No. 9,398,294, issued Jul. 19, 2016, which is a continuation of copending International Application No. PCT/EP2011/052354, filed Feb. 17, 2011, which is incorporated herein by reference in its entirety, and additionally claims priority from US Application No. 61/323,683, filed Apr. 13, 2010, which is also incorporated herein by reference in its entirety.
More than one reissue application has been filed on Nov. 17, 2020 for the reissue of U.S. Pat. No. 9,398,294. The reissue applications are application Ser. Nos. 16/950,658, 16/950,679, 16/950,696, 16/950,718, 16/950,738, 16/950,754, and 16/950,757, all of which are reissues of U.S. Pat. No. 9,398,294.
The present invention is related to audio or video processing and, particularly, to multi-channel audio or video processing of a multi-channel signal having two or more channel signals.
BACKGROUND OF THE INVENTIONIt is known in the field of multi-channel or stereo processing to apply the so-called mid/side stereo coding. In this concept, a combination of the left or first audio channel signal and the right or second audio channel signal is formed to obtain a mid or mono signal M. Additionally, a difference between the left or first channel signal and the right or second channel signal is formed to obtain the side signal S. This mid/side coding method results in a significant coding gain, when the left signal and the right signal are quite similar to each other, since the side signal will become quite small. Typically, a coding gain of a quantizer/entropy encoder stage will become higher, when the range of values to be quantized/entropy-encoded becomes smaller. Hence, for a PCM or a Huffman-based or arithmetic entropy-encoder, the coding gain increases, when the side signal becomes smaller. There exist, however, certain situations in which the mid/side coding will not result in a coding gain. The situation can occur when the signals in both channels are phase-shifted to each other, for example, by 90°. Then, the mid signal and the side signal can be in a quite similar range and, therefore, coding of the mid signal and the side signal using the entropy encoder will not result in a coding gain and can even result in an increased bit rate. Therefore, a frequency-selective mid/side coding can be applied in order to deactivate the mid/side coding in bands, where the side signal does not become smaller to a certain degree with respect to the original left signal, for example.
Although the side signal will become zero, when the left and right signals are identical, resulting in a maximum coding gain due to the elimination of the side signal, the situation once again becomes different when the mid signal and the side signal are identical with respect to the shape of the waveform, but the only difference between both signals is their overall amplitudes. In this case, when it is additionally assumed that the side signal has no phase-shift to the mid signal, the side signal significantly increases, although, on the other hand, the mid signal does not decrease so much with respect to its value range. When such a situation occurs in a certain frequency band, then one would again deactivate mid/side coding due to the lack of coding gain. Mid/side coding can be applied frequency-selectively or can alternatively be applied in the time domain.
There exist alternative multi-channel coding techniques which do not rely on a kind of a waveform approach as mid/side coding, but which rely on the parametric processing based on certain binaural cues. Such techniques are known under the term “binaural cue coding”, “parametric stereo coding” or “MPEG Surround coding”. Here, certain cues are calculated for a plurality of frequency bands. These cues include inter-channel level differences, inter-channel coherence measures, inter-channel time differences and/or inter-channel phase differences. These approaches start from the assumption that a multi-channel impression felt by the listener does not necessarily rely on the detailed waveforms of the two channels, but relies on the accurate frequency-selectively provided cues or inter-channel information. This means that, in a rendering machine, care has to be taken to render multi-channel signals which accurately reflect the cues, but the waveforms are not of decisive importance.
This approach can be complex particularly in the case, when the decoder has to apply a decorrelation processing in order to artificially create stereo signals which are decorrelated from each other, although all these channels are derived from one and the same downmix channel. Decorrelators for this purpose are, depending on their implementation, complex and may introduce artifacts particularly in the case of transient signal portions. Additionally, in contrast to waveform coding, the parametric coding approach is a lossy coding approach which inevitably results in a loss of information not only introduced by the typical quantization but also introduced by focusing on the binaural cues rather than the particular waveforms. This approach results in very low bit rates but may include quality compromises.
There exist recent developments for unified speech and audio coding (USAC) illustrated in
When the MPEG Surround decoder block 706 performs the mid/side decoding illustrated in
Using a combination of a block 706 and a block 709 causes only a small increase in computational complexity compared to a stereo decoder used as a basis, because the complex QMF representation of the signal is already available as part of the SBR decoder. In a non-SBR configuration, however, QMF-based stereo coding, as proposed in the context of USAC, would result in a significant increase in computational complexity because of the QMF banks that may be used which would involve in this example 64-band analysis banks and 64-band synthesis banks. These filter banks would have to be added only for the purpose of stereo coding.
In the MPEG USAC system under development, however, there also exist coding modes at high bit rates where SBR typically is not used.
SUMMARYAccording to an embodiment, an audio or video decoder for decoding an encoded multi-channel audio or video signal, the encoded multi-channel audio or video signal having an encoded first combination signal generated based on a combination rule for combining a first channel audio or video signal and a second channel audio or video signal of a multi-channel audio or video signal, an encoded prediction residual signal and prediction information, may have: a signal decoder for decoding the encoded first combination signal to acquire a decoded first combination signal, and for decoding the encoded residual signal to acquire a decoded residual signal; and a decoder calculator for calculating a decoded multi-channel signal having a decoded first channel signal, and a decoded second channel signal using the decoded residual signal, the prediction information, the decoded first combination signal and a prediction direction indicator, so that the decoded first channel signal and the decoded second channel signal are at least approximations of the first channel signal and the second channel signal of the multi-channel signal.
According to another embodiment, an audio or video encoder for encoding a multi-channel audio or video signal having two or more channel signals, may have: an encoder calculator for calculating a first combination signal and a prediction residual signal using a first channel signal and a second channel signal and prediction information and a prediction direction indicator, so that a prediction residual signal, when combined with a prediction signal derived from the first combination signal or a signal derived from the first combination signal and the prediction information results in a second combination signal, the first combination signal and the second combination signal being derivable from the first channel signal and the second channel signal using a combination rule; an optimizer for calculating the prediction information so that the prediction residual signal fulfills an optimization target; a prediction direction calculator for calculating a prediction direction indicator indicating a prediction direction associated with the prediction residual signal; a signal encoder for encoding the first combination signal and the prediction residual signal to acquire an encoded first combination signal and an encoded prediction residual signal; and an output interface for combining the encoded first combination signal, the encoded prediction residual signal and the prediction information to acquire an encoded multi-channel audio or video signal.
According to another embodiment, a method of decoding an encoded multi-channel audio or video signal, the encoded multi-channel audio or video signal having an encoded first combination signal generated based on a combination rule for combining a first channel audio or video signal and a second channel audio or video signal of a multi-channel audio or video signal, an encoded prediction residual signal and prediction information, may have the steps of: decoding the encoded first combination signal to acquire a decoded first combination signal, and decoding the encoded residual signal to acquire a decoded residual signal; and calculating a decoded multi-channel signal having a decoded first channel signal, and a decoded second channel signal using the decoded residual signal, the prediction information and the decoded first combination signal, so that the decoded first channel signal and the decoded second channel signal are at least approximations of the first channel signal and the second channel signal of the multi-channel signal, wherein the prediction information has a real-valued portion different from zero and/or an imaginary portion different from zero.
According to another embodiment, a method of encoding a multi-channel audio or video signal having two or more channel signals may have the steps of: calculating a first combination signal and a prediction residual signal using a first channel signal and a second channel signal and prediction information, so that a prediction residual signal, when combined with a prediction signal derived from the first combination signal or a signal derived from the first combination signal and the prediction information results in a second combination signal, the first combination signal and the second combination signal being derivable from the first channel signal and the second channel signal using a combination rule; calculating the prediction information so that the prediction residual signal fulfills an optimization target; encoding the first combination signal and the prediction residual signal to acquire an encoded first combination signal and an encoded residual signal; and combining the encoded first combination signal, the encoded prediction residual signal and the prediction information to acquire an encoded multi-channel audio or video signal.
Another embodiment may have a computer program for performing, when running on a computer or a processor, the method of decoding an encoded multi-channel audio or video signal, the encoded multi-channel audio or video signal having an encoded first combination signal generated based on a combination rule for combining a first channel audio or video signal and a second channel audio or video signal of a multi-channel audio or video signal, an encoded prediction residual signal and prediction information, which method may have the steps of: decoding the encoded first combination signal to acquire a decoded first combination signal, and decoding the encoded residual signal to acquire a decoded residual signal; and calculating a decoded multi-channel signal having a decoded first channel signal, and a decoded second channel signal using the decoded residual signal, the prediction information and the decoded first combination signal, so that the decoded first channel signal and the decoded second channel signal are at least approximations of the first channel signal and the second channel signal of the multi-channel signal, wherein the prediction information has a real-valued portion different from zero and/or an imaginary portion different from zero.
Another embodiment may have a computer program for performing, when running on a computer or a processor, the method of encoding a multi-channel audio or video signal having two or more channel signals, which method may have the steps of: calculating a first combination signal and a prediction residual signal using a first channel signal and a second channel signal and prediction information, so that a prediction residual signal, when combined with a prediction signal derived from the first combination signal or a signal derived from the first combination signal and the prediction information results in a second combination signal, the first combination signal and the second combination signal being derivable from the first channel signal and the second channel signal using a combination rule; calculating the prediction information so that the prediction residual signal fulfills an optimization target; encoding the first combination signal and the prediction residual signal to acquire an encoded first combination signal and an encoded residual signal; and combining the encoded first combination signal, the encoded prediction residual signal and the prediction information to acquire an encoded multi-channel audio or video signal.
According to another embodiment, an encoded multichannel audio or video signal may have: an encoded first combination signal generated based on a combination rule for combining a first channel audio or video signal and a second channel audio or video signal of a multi-channel audio or video signal, an encoded prediction residual signal, prediction information, and a prediction direction indicator indicating a prediction direction associated with the encoded prediction residual signal.
The present invention relies on the finding that a coding gain of the high quality waveform coding approach can be significantly enhanced by a prediction of a second combination signal using a first combination signal, where both combination signals are derived from the original signals using a combination rule such as the mid/side combination rule. It has been found that this prediction information is calculated by a predictor in an audio or video encoder so that an optimization target is fulfilled, incurs only a small overhead, but results in a significant decrease of bit rate that may be used for the side signal without losing any audio or video quality, since the inventive prediction is nevertheless a waveform-based coding and not a parameter-based stereo or multi-channel coding approach. In order to reduce computational complexity, it is advantageous to perform frequency-domain encoding, where the prediction information is derived from frequency-domain input data in a band-selective way. The conversion algorithm for converting the time-domain representation into a spectral representation is advantageously a critically sampled process such as a modified discrete cosine transform (MDCT) or a modified discrete sine transform (MDST), which is different from a complex transform in that only real values or only imaginary values are calculated, while, in a complex transform, real and complex values of a spectrum are calculated resulting in 2-times oversampling.
Furthermore, the concept of switching the direction of prediction achieves an increase in prediction gain with a minimum computational effort. To this end, the encoder determines a prediction direction indicator indicating a prediction direction associated with the prediction residual signal. In an embodiment, the first combination signal such as the mid signal is used for predicting the second combination signal such as the side signal. This approach is useful, when the energy of the mid signal is higher than the energy of the side signal. When, however, the energy of the second combination signal such as the side signal is higher than the energy of the first combination signal, i.e. when the energy of the side signal is higher than the energy of the mid signal, then the prediction direction is reversed and the side signal is used for predicting the mid signal. In the first case, i.e. when the mid signal is used to predict the side signal, the mid signal, the residual signal, the prediction information and the prediction direction indicator indicating this prediction direction are transmitted from an encoder to a decoder. In the second case, where the second combination signal is used for predicting the first combination signal, such as when the side signal is used for predicting the mid signal, the side signal (rather than the mid signal) is transmitted together with the residual signal, the prediction information and the prediction direction indicator indicating this reversed direction.
This procedure allows for better masking of the resulting quantization noise. For signals that have most of their energy in the second combination signal such as the side channel, predicting the first combination signal such as the mid signal from the side signal S allows for a panning of the dominant part of the quantization noise according to the original sound source. This in turn results in the perceptually more adequate error distribution in the final output signal.
This procedure has the further advantage that it provides an efficient multi-channel pair-wise coding which is, in the case of just two channels, an efficient stereo coding. The signal adaptive choice of the prediction direction for mid/side (M/S) coding ensures a higher prediction gain for signals with dominant energy in the side signal, at a minimal increase in computational complexity. Additionally, a perceptually better adapted masking of the resulting quantization noise due to panning of the perceived spatial direction of the quantization noise to the direction of the main signal is obtained. Furthermore, the range of values for the prediction coefficients to be transmitted in the bitstream is reduced, which allows for a more efficient coding of the prediction information/coefficients. This procedure is useful for all kinds of stereo processing applications such as joint transform coding of dual- or multi-channel audio and video signals.
Advantageously, a transform based on aliasing introduction and cancellation is used. The MDCT, in particular, is such a transform and allows a cross-fading between subsequent blocks without any overhead due to the well-known time domain aliasing cancellation (TDAC) property which is obtained by overlap-add-processing on the decoder side.
Advantageously, the prediction information calculated in the encoder, transmitted to the decoder and used in the decoder comprises an imaginary part which can advantageously reflect phase differences between the two audio or video channels in arbitrarily selected amounts between 0° and 360°. Computational complexity is significantly reduced when only a real-valued transform or, in general, a transform is applied which either provides a real spectrum only or provides an imaginary spectrum only. In order to make use of this imaginary prediction information which indicates a phase shift between a certain band of the left signal and a corresponding band of the right signal, a real-to-imaginary converter or, depending on the implementation of the transform, an imaginary-to-real converter is provided in the decoder in order to calculate a phase-rotated prediction signal from the first combination signal, which is phase-rotated with respect to the original combination signal. This phase-rotated prediction signal can then be combined with the prediction residual signal transmitted in the bit stream to re-generate a side signal which, finally, can be combined with the mid signal to obtain the decoded left channel in a certain band and the decoded right channel in this band.
To increase audio or video quality, the same real-to-imaginary or imaginary-to-real converter which is applied on the decoder side is implemented on the encoder side as well, when the prediction residual signal is calculated in the encoder.
The present invention is advantageous in that it provides an improved audio or video quality and a reduced bit rate compared to systems having the same bit rate or having the same audio or video quality.
Additionally, advantages with respect to computational efficiency of unified stereo coding useful in the MPEG USAC system at high bit rates are obtained, where SBR is typically not used. Instead of processing the signal in the complex hybrid QMF domain, these approaches implement residual-based predictive stereo coding in the native MDCT domain of the underlying stereo transform coder.
In accordance with an aspect of the present invention, the present invention comprises an apparatus or method for generating a stereo signal by complex prediction in the MDCT domain, wherein the complex prediction is done in the MDCT domain using a real-to-complex transform, where this stereo signal can either be an encoded stereo signal on the encoder side or can alternatively be a decoded/transmitted stereo signal, when the apparatus or method for generating the stereo signal is applied on the decoder side.
Embodiments of the present invention will be detailed subsequently referring to the appended drawings, in which:
Additionally, the encoded multi-channel audio signal obtained at the input line 100 comprises a prediction direction indicator. This prediction direction indicator, such as a prediction direction flag, is extracted from the encoded multi-channel signal by the input interface 102 and is forwarded to the decoder calculator 116 so that the decoder calculator calculates the decoded multi-channel signal depending on the prediction information, the decoded first (or second) combination signal and the prediction direction indicator provided by the input interface 102.
The decoder calculator 116 is configured for calculating a decoded multi-channel signal having the decoded first channel signal 117 and the decoded second channel signal 118 using the decoded residual signal 114, the prediction information 108 and the decoded first combination signal 112. Particularly, the decoder calculator 116 is configured to operate in such a way that the decoded first channel signal and the decoded second channel signal are at least an approximation of a first channel signal and a second channel signal of the multi-channel signal input into a corresponding encoder, which are combined by the combination rule when generating the first combination signal and the prediction residual signal. Specifically, the prediction information on line 108 comprises a real-valued part different from zero and/or an imaginary part different from zero.
The decoder calculator 116 can be implemented in different manners. A first implementation is illustrated in
The prediction information is generated by an optimizer 207 for calculating the prediction information 206 so that the prediction residual signal fulfills an optimization target 208. The first combination signal 204 and the residual signal 205 are input into a signal encoder 209 for encoding the first combination signal 204 to obtain an encoded first combination signal 210 and for encoding the residual signal 205 to obtain an encoded residual signal 211. Both encoded signals 210, 211 are input into an output interface 212 for combining the encoded first combination signal 210 with the encoded prediction residual signal 211 and the prediction information 206 to obtain an encoded multi-channel signal 213, which is similar to the encoded multi-channel signal 100 input into the input interface 102 of the audio decoder illustrated in
Depending on the implementation, the optimizer 207 receives either the first channel signal 201 and the second channel signal 202, or as illustrated by lines 214 and 215, the first combination signal 214 and the second combination signal 215 derived from a combiner 2031 of
An advantageous optimization target is illustrated in
Other optimization targets may relate to the perceptual quality. An optimization target can be that a maximum perceptual quality is obtained. Then, the optimizer might use additional information from a perceptual model. Other implementations of the optimization target may relate to obtaining a minimum or a fixed bit rate. Then, the optimizer 207 would be implemented to perform a quantization/entropy-encoding operation in order to determine the bit rate that may be used for certain α values so that the α can be set to fulfill the requirements such as a minimum bit rate, or alternatively, a fixed bit rate. Other implementations of the optimization target can relate to a minimum usage of encoder or decoder resources. In case of an implementation of such an optimization target, information on the resources that may be used for a certain optimization would be available in the optimizer 207. Additionally, a combination of these optimization targets or other optimization targets can be applied for controlling the optimizer 207 which calculates the prediction information 206.
The audio encoder additionally comprises a prediction direction calculator 219 which provides, at its output, the prediction direction indicator indicating a prediction direction associated with the prediction residual signal 205 output by the encoder calculator 203 in
The encoder calculator 203 in
The combiner 2031 outputs the first combination signal 204 and a second combination signal 2032. The first combination signal is input into a predictor 2033, and the second combination signal 2032 is input into the residual calculator 2034. The predictor 2033 calculates a prediction signal 2035, which is combined with the second combination signal 2032 to finally obtain the residual signal 205. Particularly, the combiner 2031 is configured for combining the two channel signals 201 and 202 of the multi-channel audio signal in two different ways to obtain the first combination signal 204 and the second combination signal 2032, where the two different ways are illustrated in an exemplary embodiment in
The residual calculator 2034 in
While
Advantageously, the predictor control information 206 is a factor as illustrated to the right in
When, however, the prediction control information only comprises a second portion which can be the imaginary part of a complex-valued factor or the phase information of the complex-valued factor, where the imaginary part or the phase information is different from zero, the present invention achieves a significant coding gain for signals which are phase shifted to each other by a value different from 0° of 180°, and which have, apart from the phase shift, similar waveform characteristics and similar amplitude relations.
Advantageously, a prediction control information is complex-valued. Then, a significant coding gain can be obtained for signals being different in amplitude and being phase shifted. In a situation in which the time/frequency transforms provide complex spectra, the operation 2034 would be a complex operation in which the real part of the predictor control information is applied to the real part of the complex spectrum M and the imaginary part of the complex prediction information is applied to the imaginary part of the complex spectrum. Then, in adder 2034, the result of this prediction operation is a predicted real spectrum and a predicted imaginary spectrum, and the predicted real spectrum would be subtracted from the real spectrum of the side signal S (bandwise), and the predicted imaginary spectrum would be subtracted from the imaginary part of the spectrum of S to obtain a complex residual spectrum D.
The time-domain signals L and R are real-valued signals, but the frequency-domain signals can be real- or complex-valued. When the frequency-domain signals are real-valued, then the transform is a real-valued transform. When the frequency-domain signals are complex-valued, then the transform is a complex-valued transform. This means that the input to the time-to-frequency and the output of the frequency-to-time transforms are real-valued, while the frequency-domain signals could e.g. be complex-valued QMF-domain signals.
The bitstream output by bitstream multiplexer 212 in
Depending on the implementation of the system, the frequency/time converters 52, 53 are real-valued frequency/time converters when the frequency-domain representation is a real-valued representation, or complex-valued frequency/time converters when the frequency-domain representation is a complex-valued representation.
For increasing efficiency, however, performing a real-valued transform is advantageous as illustrated in another implementation in
Concerning the position of the quantization/coding (Q/C) module 2072 for α, it is noted that the multipliers 2073 and 2074 advantageously use exactly the same (quantized) a that will be used in the decoder as well. Hence, one could move 2072 directly to the output of 2071, or one could consider that the quantization of α is already taken into account in the optimization process in 2071.
Although one could calculate a complex spectrum on the encoder side, since all information is available, it is advantageous to perform the real-to-complex transform in block 2070 in the encoder so that similar conditions with respect to a decoder illustrated in
The real-to-imaginary transformer 1160a or the corresponding block 2070 of
Specifically, as illustrated in
It has to be noted that the control information 1003 can additionally indicate to use more frames than the two surrounding frames or to, for example, only use the current frame and exactly one or more preceding frames but not using “future” frames in order to reduce the systematic delay.
Additionally, it is to be noted that the stage-wise weighted combination illustrated in
As indicated in
The α prediction values could be calculated for each individual spectral line of an MDCT spectrum. However, it has been found that this is not necessary and a significant amount of side information can be saved by performing a band-wise calculation of the prediction information. Stated differently, a spectral converter 50 illustrated in
Advantageously, the bands are shaped in a psychoacoustic way so that the bandwidth of the bands increases from lower frequencies to higher frequencies as illustrated in
For calculating the α values the high resolution MDCT spectrum is not necessarily required. Alternatively, a filter bank having a frequency resolution similar to the resolution that may be used for calculating the α values can be used as well. When bands increasing in frequency are to be implemented, then this filterbank should have varying bandwidth. When, however, a constant bandwidth from low to high frequencies is sufficient, then a traditional filter bank with equi-width sub-bands can be used.
Depending on the implementation, the sign of the α value indicated in
Advantageously, the modules 2070 in the encoder and 1160a in the decoder should exactly match in order to ensure correct waveform coding. This applies advantageously to the case, in which these modules use some form of approximation such as truncated filters or when it is only made use of one or two instead of the three MDCT frames, i.e. the current MDCT frame on line 60, the preceding MDCT frame on line 61 and the next MDCT frame on line 62.
Additionally, it is advantageous that the module 2070 in the encoder in
Subsequently, several aspects of embodiments of the present invention are discussed in more detail.
Standard parametric stereo coding, such as the MPEG Surround (MPS) based stereo coding in the USAC system, relies on the capability of the oversampled complex (hybrid) QMF domain to allow for time- and frequency-varying perceptually motivated signal processing without introducing aliasing artifacts. However, in case of downmix/residual coding (as used for the high bit rates considered here), the resulting unified stereo coder acts as a waveform coder. This allows operation in a critically sampled domain, like the MDCT domain, since the waveform coding paradigm ensures that the aliasing cancellation property of the MDCT-IMDCT processing chain is sufficiently well preserved.
However, to be able to exploit the improved coding efficiency that can be achieved in case of stereo signals with inter-channel time- or phase-differences by means of a complex-valued prediction coefficient α, a complex-valued frequency-domain representation of the downmix signal DMX may be used as input to the complex-valued upmix matrix. This can be obtained by using an MDST transform in addition to the MDCT transform for the DMX signal. The MDST spectrum can be computed (exactly or as an approximation) from the MDCT spectrum.
Furthermore, the parameterization of the upmix matrix can be simplified by transmitting the complex prediction coefficient α instead of MPS parameters. Hence, only two parameters (real and imaginary part of α) are transmitted instead of three (ICC, CLD, and IPD). This is possible because of redundancy in the MPS parameterization in case of downmix/residual coding. The MPS parameterization includes information about the relative amount of decorrelation to be added in the decoder (i.e., the energy ratio between the RES and the DMX signals), and this information is redundant when the actual DMX and RES signals are transmitted.
Because of the same reason, a gain factor is obsolete in case of downmix/residual coding. Hence, the upmix matrix for downmix/residual coding with complex prediction is now:
Compared to Equation 1169 in
Two options are available for calculating the prediction residual signal in the encoder. One option is to use the quantized MDCT spectral values of the downmix. This would result in the same quantization error distribution as in M/S coding since encoder and decoder use the same values to generate the prediction. The other option is to use the non-quantized MDCT spectral values. This implies that encoder and decoder will not use the same data for generating the prediction, which allows for spatial redistribution of the coding error according to the instantaneous masking properties of the signal at the cost of a somewhat reduced coding gain.
It is advantageous to compute the MDST spectrum directly in the frequency domain by means of two-dimensional FIR filtering of three adjacent MDCT frames as discussed. The latter can be considered as a “real-to-imaginary” (R2I) transform. The complexity of the frequency-domain computation of the MDST can be reduced in different ways, which means that only an approximation of the MDST spectrum is calculated:
-
- Limiting the number of FIR filter taps.
- Estimating the MDST from the current MDCT frame only.
- Estimating the MDST from the current and previous MDCT frame.
As long as the same approximation is used in the encoder and decoder, the waveform coding properties are not affected. Such approximations of the MDST spectrum, however, can lead to a reduction in the coding gain achieved by complex prediction.
If the underlying MDCT coder supports window-shape switching, the coefficients of the two-dimensional FIR filter used to compute the MDST spectrum have to be adapted to the actual window shapes. The filter coefficients applied to the current frame's MDCT spectrum depend on the complete window, i.e. a set of coefficients may be used for every window type and for every window transition. The filter coefficients applied to the previous/next frame's MDCT spectrum depend only on the window half overlapping with the current frame, i.e. for these a set of coefficients may be used only for each window type (no additional coefficients for transitions).
If the underlying MDCT coder uses transform-length switching, including the previous and/or next MDCT frame in the approximation becomes more complicated around transitions between the different transforms lengths. Due to the different number of MDCT coefficients in the current and previous/next frame, the two-dimensional filtering is more complicated in this case. To avoid increasing computational and structural complexity, the previous/next frame can be excluded from the filtering at transform-length transitions, at the price of reduced accuracy of the approximation for the respective frames.
Furthermore, special care needs to be taken for the lowest and highest parts of the MDST spectrum (close to DC and fs/2), where less surrounding MDCT coefficients are available for FIR filtering than may be used. Here the filtering process needs to be adapted to compute the MDST spectrum correctly. This can either be done by using a symmetric extension of the MDCT spectrum for the missing coefficients (according to the periodicity of spectra of time discrete signals), or by adapting filter coefficients accordingly. The handling of these special cases can of course be simplified at the price of a reduced accuracy in vicinity of the borders of the MDST spectrum.
Computing the exact MDST spectrum from the transmitted MDCT spectra in the decoder increases the decoder delay by one frame (here assumed to be 1024 samples). The additional delay can be avoided by using an approximation of the MDST spectrum that does not require the MDCT spectrum of the next frame as an input.
The following bullet list summarizes the advantages of the MDCT-based unified stereo coding over QMF-based unified stereo coding:
-
- Only small increase in computational complexity (when SBR is not used).
- Scales up to perfect reconstruction if MDCT spectra are not quantized. Note that this is not the case for QMF-based unified stereo coding.
- Natural unification and extension of M/S coding and intensity stereo coding.
- Cleaner architecture that simplifies encoder tuning, since stereo signal processing and quantization/coding can be tightly coupled. Note that in QMF-based unified stereo coding, MPS frames and MDCT frames are not aligned and that scale factor bands don't match MPS parameter bands.
- Efficient coding of stereo parameters, since only two parameters (complex α) instead of three parameters as in MPEG Surround (ICC, CLD, IPD) have to be transmitted.
- No additional decoder delay if the MDST spectrum is computed as an approximation (without using the next frame).
Important properties of an implementation can be summarized as follows:
-
- a) MDST spectra are computed by means of two-dimensional FIR filtering from current, previous, and next MDCT spectra. Different complexity/quality trade-offs for the MDST computation (approximation) are possible by reducing the number of FIR filter taps and/or the number of MDCT frames used. In particular, if an adjacent frame is not available because of frame loss during transmission or transform-length switching, that particular frame is excluded from the MDST estimation. For the case of transform-length switching the exclusion is signaled in the bitstream.
- b) Only two parameters, the real and imaginary part of the complex prediction coefficient α, are transmitted instead of ICC, CLD, and IPD. The real and imaginary parts of a are handled independently, limited to the range [−3.0, 3.0] and quantized with a step size of 0.1. If a certain parameter (real or imaginary part of α) is not being used in a given frame, this is signaled in the bitstream, and the irrelevant parameter is not transmitted. The parameters are time-differentially or frequency-differentially coded and finally Huffman coding is applied using a scale factor codebook. The prediction coefficients are updated every second scale factor band, which results in a frequency resolution similar to that of MPEG Surround. This quantization and coding scheme results in an average bit rate of approximately 2 kb/s for the stereo side information within a typical configuration having a target bit rate of 96 kb/s.
Preferred additional or alternative implementation details comprise:
-
- c) For each of the two parameters of α, one may choose non-differential (PCM) or differential (DPCM) coding on a per-frame or per-stream basis, signaled by a corresponding bit in the bit stream. For DPCM coding, either time- or frequency-differential coding is possible. Again, this may be signaled using a one-bit flag.
- d) Instead of re-using a pre-defined code book such as the AAC scale factor book, one may also utilize a dedicated invariant or signal-adaptive code book to code the α parameter values, or one may revert to fixed-length (e.g. 4-bit) unsigned or two's-complement code words.
- e) The range of α parameter values as well as the parameter quantization step size may be chosen arbitrarily and optimized to the signal characteristics at hand.
- f) The number and spectral and/or temporal width of active α parameter bands may be chosen arbitrarily and optimized to the given signal characteristics. In particular, the band configuration may be signaled on a per-frame or per-stream basis.
- g) In addition to or instead of the mechanisms outlined in a), above, it may be signaled explicitly by means of a bit per frame in the bitstream that only the MDCT spectrum of the current frame is used to compute the MDST spectrum approximation, i.e., that the adjacent MDCT frames are not taken into account.
Embodiments relate to an inventive system for unified stereo coding in the MDCT domain. It enables to utilize the advantages of unified stereo coding in the MPEG USAC system even at higher bit rates (where SBR is not used) without the significant increase in computational complexity that would come with a QMF-based approach.
The following two lists summarize advantageous configuration aspects described before, which can be used alternatively to each other or in addition to other aspects:
1a) general concept: complex-valued prediction of side MDCT from mid MDCT and MDST;
1b) calculate/approximate MDST from MDCT (“R2I transform”) in frequency domain using one or more frames (3-frames approach introduces delay);
1c) truncation of filter (even down to 1-frame 2-tap, e.g. [−1 0 1]) to reduce computational complexity;
1d) proper handling of transform coefficients around DC and fs/2;
1e) proper handling of window shape switching;
1f) do not use previous/next frame if it has a different transform size;
1g) prediction based on non-quantized or quantized MDCT coefficients in the encoder;
2a) quantize and code real and imaginary part of complex prediction coefficient directly (i.e., no MPEG Surround parameterization);
2b) use uniform quantizer for this (step size e.g. 0.1);
2c) use appropriate frequency resolution for prediction coefficients (e.g. 1 coefficient per 2 scale factor bands);
2d) cheap signaling in case all prediction coefficients are real-valued;
2e) explicit bit per frame to force 1-frame R2I operation, i.e. do not use previous/next frame.
In an embodiment, the encoder additionally comprises: a spectral converter (50, 51) for converting a time-domain representation of the two channel signals to a spectral representation of the two channel signals having subband signals for the two channel signals, wherein the combiner (2031), the predictor (2033) and the residual signal calculator (2034) are configured to process each subband signal separately so that the first combined signal and the residual signal are obtained for a plurality of subbands, wherein the output interface (212) is configured for combining the encoded first combined signal and the encoded residual signal for the plurality of subbands.
Although some aspects have been described in the context of an apparatus, it is clear that these aspects also represent a description of the corresponding method, where a block or device corresponds to a method step or a feature of a method step. Analogously, aspects described in the context of a method step also represent a description of a corresponding block or item or feature of a corresponding apparatus.
In an embodiment of the present invention, a proper handling of window shape switching is applied. When
The subsequent table gives different MDST filter coefficients for a current window sequence for different window shapes and different implementations of the left half and the right half of the window.
Additionally, the window shape information 109 provides window shape information for the previous window, when the previous window is used for calculating the MDST spectrum from the MDCT spectrum. Corresponding MDST filter coefficients for the previous window are given in the subsequent table as a function of the current window sequence and shape.
Hence, depending on the window shape information 109, the imaginary spectrum calculator 1001 in
The window shape information which is used on the decoder side is calculated on the encoder side and transmitted as side information together with the encoder output signal. On the decoder side, the window shape information 109 is extracted from the bitstream by the bitstream demultiplexer (for example 102 in
When the window shape information 109 signals that the previous frame had a different transform size, then it is advantageous that the previous frame is not used for calculating the imaginary spectrum from the real-valued spectrum. The same is true when it is found by interpreting the window shape information 109 that the next frame has a different transform size. Then, the next frame is not used for calculating the imaginary spectrum from the real-valued spectrum. In such a case when, for example, the previous frame had a different transform size from the current frame and when the next frame again has a different transform size compared to the current frame, then only the current frame, i.e. the spectral values of the current window, are used for estimating the imaginary spectrum.
The prediction in the encoder is based on non-quantized or quantized frequency coefficients such as MDCT coefficients. When the prediction illustrated by element 2033 in
In an embodiment, the real part and the imaginary part of the complex prediction coefficient per prediction band are quantized and encoded directly, i.e. without for example MPEG Surround parameterization. The quantization can be performed using a uniform quantizer with a step size, for example, of 0.1. This means that any logarithmic quantization step sizes or the like are not applied, but any linear step sizes are applied. In an implementation, the value range for the real part and the imaginary part of the complex prediction coefficient ranges from −3 to 3, which means that 60 or, depending on implementational details, 61 quantization steps are used for the real part and the imaginary part of the complex prediction coefficient.
Advantageously, the real part applied in multiplier 2073 in
In a further embodiment of the present invention, a cheap signaling in case all prediction coefficients are real is applied. It can be the situation that all prediction coefficients for a certain frame, i.e. for the same time portion of the audio signal are calculated to be real. Such a situation may occur when the full mid signal and the full side signal are not or only little phase-shifted to each other. In order to save bits, this is indicated by a single real indicator. Then, the imaginary part of the prediction coefficient does not need to be signaled in the bitstream with a codeword representing a zero value. On the decoder side, the bitstream decoder interface, such as a bitstream demultiplexer, will interpret this real indicator and will then not search for codewords for an imaginary part but will assume all bits being in the corresponding section of the bitstream represent only the real-valued prediction coefficients. Furthermore, the predictor 2033, when receiving an indication that all imaginary parts of the prediction coefficients in the frame are zero, will not need to calculate an MDST spectrum, or generally an imaginary spectrum from the real-valued MDCT spectrum. Hence, element 1160a in the
The complex stereo prediction in accordance with embodiments of the present invention is a tool for efficient coding of channel pairs with level and/or phase differences between the channels. Using a complex-valued parameter α, the left and right channels are reconstructed via the following matrix. dmxIm denotes the MDST corresponding to the MDCT of the downmix channel dmxRe.
The above equation is another representation, which is split with respect to the real part and the imaginary part of α and represents the equation for a combined prediction/combination operation, in which the predicted signal S is not necessarily calculated.
The following data elements are advantageously used for this tool:
-
- cplx_pred_all 0: Some bands use L/R coding, as signaled by cplx_pred_used[ ]
- 1: All bands use complex stereo prediction
- cplx_pred_used[g] [sfb] One-bit flag per window group g and scale factor band sfb (after mapping from prediction bands) indicating that
- 0: complex prediction is not being used, L/R coding is used
- 1: complex prediction is being used
- complex_coef 0: αIm=0 for all prediction bands (real-only prediction)
- 1: αIm is transmitted for all prediction bands
- use_prev_frame 0: Use only the current frame for MDST estimation
- 1: Use current and previous frame for MDST estimation
- delta_code_time 0: Frequency differential coding of the prediction coefficients
- 1: Time differential coding of the prediction coefficients
- hcod_alpha_q_re Huffman code of αRe
- hcod_alpha_q_im Huffman code of αIm
- cplx_pred_all 0: Some bands use L/R coding, as signaled by cplx_pred_used[ ]
These data elements are calculated in an encoder and are put into the side information of a stereo or multi-channel audio signal. The elements are extracted from the side information on the decoder side by a side information extractor and are used for controlling the decoder calculator to perform a corresponding action.
Complex stereo prediction may use the downmix MDCT spectrum of the current channel pair and, in case of complex_coef=1, an estimate of the downmix MDST spectrum of the current channel pair, i.e. the imaginary counterpart of the MDCT spectrum. The downmix MDST estimate is computed from the current frame's MDCT downmix and, in case of use_prev_frame=1, the previous frame's MDCT downmix. The previous frame's MDCT downmix of window group g and group window b is obtained from that frame's reconstructed left and right spectra.
The computation of the downmix MDST estimate depends on the MDCT transform, whose length is even, on window_sequence, as well as on filter_coefs and filter_coefs_prev, which are arrays containing the filter kernels and which are derived according to the previous tables.
For all prediction coefficients the difference to a preceding (in time or frequency) value is coded using a Huffman code book. Prediction coefficients are not transmitted for prediction bands for which cplx_pred_used=0.
The inverse quantized prediction coefficients alpha_re and alpha_im are given by
alpha_re=alpha_q_re*0.1
alpha_im=alpha_q_im*0.1
Without prediction direction reversal problems may occur when the side signal S has a rather high energy compared to the downmix signal M. In such cases, it may become difficult to predict the dominant part of the signal present in S, especially when M is of very low level and thus primarily consists of noise components.
Furthermore, the range of values for the prediction coefficient α may become very large, potentially leading to coding artifacts due to unwanted amplification or panning of quantization noise (e.g. spatial unmasking effects).
To give an example, one can consider a slightly panned out-of-phase signal with R=−0.9·L
R=−0.9·L;
M=−0.5·(L+R)=0.05·L;
S=0.5·(L−R)=0.95·L;
RES=S−(a*M);
optimum α:
α=19;
which leads to a rather large optimum prediction factor of 19.
In accordance with the present invention, the direction of prediction is switched, and this results in an increase in prediction gain with minimum computational effort and a smaller α.
In case of a side signal S with high energy compared to the mid signal M, it becomes of interest to reverse the direction of the prediction so that M is being predicted from the complex-value representation of S as, for example, illustrated in
The switching of the prediction direction can be done on a per-frame basis, i.e. on the time axis, a per-band basis, i.e. on the frequency axis, or a combination thereof so that per band and frequency switching is allowed. This results in a prediction direction indicator (a bit) for each frame and each band, but it might be useful to only allow a single prediction direction for each frame.
To this end, the prediction direction calculator 219 is provided, which is illustrated in
Similarly, the different decoding rules 402, 403, i.e. the different decoder calculation rules can also be implemented by a swapper 407 at the input of the combiner 1162 which, in the
As outlined below in
In the equations in
The prediction direction calculator 219 can be implemented in different ways.
Alternatively, or additionally, a feedback calculation can be performed, where the residual signals for both prediction directions are calculated as illustrated in step 552. Then, in step 553, the prediction direction is calculated which results in a smaller residual signal or less bits for the residual signal or the downmix signal or a smaller number of overall bits or a better quality of the audio signal or in any other specific condition. Therefore, the prediction direction resulting in a certain optimization target is selected in this feedback calculation.
It is to be emphasized that the invention is not only applicable to stereo signals, i.e. multi-channel signals having only two channels, but is also applicable to two channels of a multi-channel signal having three or more channels such as a 5.1 or 7.1 signal. An embodiment for a multi-channel implementation may comprise the identification of a plurality of pairs of signals and the calculation and parallel transmission or storage of the data for more than one pair of signals.
In an embodiment of the audio decoder, the encoded or decoded first combination signal 104 and the encoded or decoded prediction residual signal 106 each comprises a first plurality of subband signals, wherein the prediction information comprises a second plurality of prediction information parameters, the second plurality being smaller than the first plurality, wherein the predictor 1160 is configured for applying the same prediction parameter to at least two different subband signals of the decoded first combination signal, wherein the decoder calculator 116 or the combination signal calculator 1161 or the combiner 1162 are configured for performing a subband-wise processing; and wherein the audio decoder further comprises a synthesis filterbank 52, 53 for combining subband signals of the decoded first combination signal and the decoded second combination signal to obtain a time-domain first decoded signal and a time-domain second decoded signal.
In an embodiment of the audio decoder, the predictor 1160 is configured for receiving window shape information 109 and for using different filter coefficients for calculating an imaginary spectrum, where the different filter coefficients depend on different window shapes indicated by the window shape information 109.
In an embodiment of the audio decoder, the decoded first combination signal is associated with different transform lengths indicated by a transform length indicator included in the encoded multi-channel signal 100, and in which the predictor 1160 is configured for only using one or more frames of the first combination signal having the same associated transform length for estimating the imaginary part for a current frame for a first combination signal.
In an embodiment of the audio decoder, the predictor 1160 is configured for using a plurality of subbands of the decoded first combination signal adjacent in frequency, for estimating the imaginary part of the first combination signal, and wherein, in case of low or high frequencies, a symmetric extension in frequency of the current frame of the first combination signal is used for subbands associated with frequencies lower or equal to zero or higher or equal to a half of a sampling frequency on which the current frame is based, or in which filter coefficients of a filter included in the predictor 1160a are set to different values for the missing subbands compared to non-missing subbands.
In an embodiment of the audio decoder, the prediction information 108 is included in the encoded multi-channel signal in a quantized and entropy-encoded representation, wherein the audio decoder further comprises a prediction information decoder 65 for entropy-decoding or dequantizing to obtain a decoded prediction information used by the predictor 1160, or in which the encoded multi-channel audio signal comprises a data unit indicating in the first state that the predictor 1160 is to use at least one frame preceding or following in time to a current frame of the decoded first combination signal, and indicating in the second state that the predictor 1160 is to use only a single frame of the decoded first combination signal for an estimation of an imaginary part for the current frame of the decoded first combination signal, and in which the predictor 1160 is configured for sensing a state of the data unit and for operating accordingly.
In an embodiment of the audio decoder, the prediction information 108 comprises codewords of differences between time sequential or frequency adjacent complex values, and wherein the audio decoder is configured for performing an entropy decoding step and a subsequent difference decoding step to obtain time sequential quantized complex prediction values or complex prediction values for adjacent frequency bands.
In an embodiment of the audio decoder, the encoded multi-channel signal comprises, as side information, a real indicator indicating that all prediction coefficients for a frame of the encoded multi-channel signal are real-valued, wherein the audio decoder is configured for extracting the real indicator from the encoded multi-channel audio signal 100, and wherein the decoder calculator 116 is configured for not calculating an imaginary signal for a frame, for which the real indicator is indicating only real-valued prediction coefficients.
In an embodiment of the audio encoder, the predictor 2033 comprises a quantizer for quantizing the first channel signal, the second channel signal, the first combination signal or the second combination signal to obtain one or more quantized signals, and wherein the predictor 2033 is configured for calculating the residual signal using quantized signals.
In an embodiment of the audio encoder, the first channel signal is a spectral representation of a block of samples, and the second channel signal is a spectral representation of a block of samples, wherein the spectral representations are either pure real spectral representations or pure imaginary spectral representations, in which the optimizer 207 is configured for calculating the prediction information 206 as a real-valued factor different from zero and/or as an imaginary factor different from zero, and in which the encoder calculator 203 is configured to calculate the first combination signal and the prediction residual signal so that the prediction signal is derived from the pure real spectral representation or the pure imaginary spectral representation using the real-valued factor.
The inventive encoded audio signal can be stored on a digital storage medium or can be transmitted on a transmission medium such as a wireless transmission medium or a wired transmission medium such as the Internet.
Although the present invention is mainly described in the context of audio processing, it is to be emphasized that the invention can also be applied to the coding of decoding of video signals. The complex prediction with varying direction can be applied to the e.g. 3D stereo video compression. In this particular example, a 2D-MDCT is used. An example for this technique is Google WebM/VP8. However, other implementations without a 2D-MDCT can be applied as well.
Although some aspects have been described in the context of an apparatus, it is clear that these aspects also represent a description of the corresponding method, where a block or device corresponds to a method step or a feature of a method step. Analogously, aspects described in the context of a method step also represent a description of a corresponding block or item or feature of a corresponding apparatus.
Depending on certain implementation requirements, embodiments of the invention can be implemented in hardware or in software. The implementation can be performed using a digital storage medium, for example a floppy disk, a DVD, a CD, a ROM, a PROM, an EPROM, an EEPROM or a FLASH memory, having electronically readable control signals stored thereon, which cooperate (or are capable of cooperating) with a programmable computer system such that the respective method is performed.
Some embodiments according to the invention comprise a non-transitory or tangible data carrier having electronically readable control signals, which are capable of cooperating with a programmable computer system, such that one of the methods described herein is performed.
Generally, embodiments of the present invention can be implemented as a computer program product with a program code, the program code being operative for performing one of the methods when the computer program product runs on a computer. The program code may for example be stored on a machine readable carrier.
Other embodiments comprise the computer program for performing one of the methods described herein, stored on a machine readable carrier.
In other words, an embodiment of the inventive method is, therefore, a computer program having a program code for performing one of the methods described herein, when the computer program runs on a computer.
A further embodiment of the inventive methods is, therefore, a data carrier (or a digital storage medium, or a computer-readable medium) comprising, recorded thereon, the computer program for performing one of the methods described herein.
A further embodiment of the inventive method is, therefore, a data stream or a sequence of signals representing the computer program for performing one of the methods described herein. The data stream or the sequence of signals may for example be configured to be transferred via a data communication connection, for example via the Internet.
A further embodiment comprises a processing means, for example a computer, or a programmable logic device, configured to or adapted to perform one of the methods described herein.
A further embodiment comprises a computer having installed thereon the computer program for performing one of the methods described herein.
In some embodiments, a programmable logic device (for example a field programmable gate array) may be used to perform some or all of the functionalities of the methods described herein. In some embodiments, a field programmable gate array may cooperate with a microprocessor in order to perform one of the methods described herein. Generally, the methods are advantageously performed by any hardware apparatus.
While this invention has been described in terms of several embodiments, there are alterations, permutations, and equivalents 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.
Claims
1. An audio or video decoder for decoding an encoded multi-channel audio or video signal, the encoded multi-channel audio or video signal comprising an encoded first combination signal, an encoded prediction residual signal and prediction information, comprising:
- a signal decoder for decoding the encoded first combination signal to acquire a decoded first combination signal, and for decoding the encoded residual signal to acquire a decoded residual signal; and
- a decoder calculator for calculating a decoded multi-channel signal comprising a decoded first channel signal, and a decoded second channel signal using the decoded residual signal, the prediction information, the decoded first combination signal and a prediction direction indicator indicating a prediction direction associated with the decoded prediction residual signal, so that the decoded first channel signal and the decoded second channel signal are at least approximations of a first channel signal and a second channel signal of a multi-channel signal,
- wherein the decoder calculator is configured for using a first calculation rule for calculating the decoded multi-channel signal in case of a first state of the prediction direction indicator and for using a second different calculation rule for calculating the decoded multi-channel signal in case of a second different state of the prediction direction indicator.
2. The audio or video decoder in accordance with claim 1, in which the prediction direction indicator is comprised by the encoded multi-channel signal, and in which the audio or video decoder further comprises an input interface for extracting the prediction direction indicator and for forwarding the prediction direction indicator to the decoder calculator.
3. The audio or video decoder in accordance with claim 1, in which the decoded first combination signal comprises a mid signal, in which the first calculation rule comprises the calculation of a side signal from the decoded first combination signal and the decoded residual signal; or
- in which the decoded first combination signal comprises a side signal, and in which the second calculation rule comprises the calculation of a mid signal from the decoded first combination signal and the decoded residual signal.
4. The audio or video decoder in accordance with claim 1, in which the decoded first combination signal comprises a mid signal, and in which the first calculation rule comprises the calculation of the decoded first channel signal and the calculation of the decoded second channel signal using the mid signal, the prediction information and the decoded residual signal without an explicit calculation of the side signal; or
- in which the decoded first combination signal comprises a side signal, and in which the second calculation rule comprises the calculation of the decoded first channel signal and the calculation of the decoded second channel signal using the side signal, the prediction information and the decoded residual signal without an explicit calculation of the mid signal.
5. The audio or video decoder in accordance with claim 1, in which the decoder calculator is configured for using the prediction information where the prediction information comprises a real-valued portion different from zero and/or an imaginary portion different from zero.
6. The audio or video decoder of claim 1, in which the decoder calculator comprises:
- a predictor for applying the prediction information to the decoded first combination signal or to a signal derived from the decoded first combination signal to acquire a prediction signal;
- a combination signal calculator for calculating a second combination signal by combining the decoded residual signal and the prediction signal; and
- a combiner for combining the decoded first combination signal and the second combination signal to acquire a decoded multi-channel audio or video signal comprising the decoded first channel signal and the decoded second channel signal,
- wherein in case of a first state of the prediction direction indicator, the first combination signal is a sum signal and the second combination signal is a difference signal, or
- wherein in case of a second state of the prediction direction indicator, the first combination signal is a difference signal and the second combination signal is a sum signal.
7. The audio or video decoder in accordance with claim 1,
- in which the encoded first combination signal and the encoded residual signal have been generated using an aliasing generating time-spectral conversion,
- wherein the decoder further comprises:
- a spectral-time converter for generating a time-domain first channel signal and a time-domain second channel signal using a spectral-time conversion algorithm matched to the time-spectral conversion algorithm;
- an overlap/add processor for conducting an overlap-add processing for the time-domain first channel signal and for the time-domain second channel signal to acquire an aliasing-free first time-domain signal and an aliasing-free second time-domain signal.
8. The audio or video decoder in accordance with claim 1, in which the prediction information comprises a real-valued factor different from zero,
- in which the predictor is configured for multiplying the decoded first combination signal by the real factor to acquire a first part of the prediction signal, and
- in which the combination signal calculator is configured for linearly combining the decoded residual signal and the first part of the prediction signal.
9. The audio or video decoder in accordance with claim 1, in which the prediction information comprises an imaginary factor different from zero,
- in which the predictor is configured for estimating an imaginary part of the decoded first combination signal using a real-valued part of the decoded first combination signal,
- in which the predictor is configured for multiplying the imaginary part of the decoded first combination signal by the imaginary factor of the prediction information to acquire a second part of the prediction signal; and
- in which the combination signal calculator is configured for linearly combining the first part of the prediction signal and the second part of the prediction signal and the decoded residual signal to acquire a second combination signal.
10. The audio or video decoder in accordance with claim 6,
- in which the predictor is configured for filtering at least two time-subsequent frames, where one of the two time-subsequent frames precedes or follows a current frame of the first combination signal to acquire an estimated imaginary part of a current frame of the first combination signal using a linear filter.
11. The audio or video decoder in accordance with claim 6,
- in which the decoded first combination signal comprises a sequence of real-valued signal frames, and
- in which the predictor is configured for estimating an imaginary part of the current signal frame using only the current real-valued signal frame of the decoded first combination signal, or
- in which the predictor is configured for estimating an imaginary part of the current signal frame using the current real-valued signal frame of the decoded first combination signal and only one or more preceding real-valued signal frames of the decoded first combination signal, or
- in which the predictor is configured for estimating an imaginary part of the current signal frame using the current real-valued signal frame of the decoded first combination signal and only one or more following real-valued signal frames of the decoded first combination signal, or
- in which the predictor is configured for estimating an imaginary part of the current signal frame using the current real-valued signal frame of the decoded first combination signal and one or more preceding real-valued signal frames and one or more following real-valued signal frames of the decoded first combination signal.
12. An audio or video encoder for encoding a multi-channel audio or video signal comprising two or more channel signals, comprising:
- an encoder calculator for calculating a first combination signal and a prediction residual signal using a first channel signal and a second channel signal and prediction information and a prediction direction indicator indicating a prediction direction associated with the prediction residual signal, so that a prediction residual signal, when combined with a prediction signal derived from the first combination signal or a signal derived from the first combination signal and the prediction information results in a second combination signal,
- wherein the encoder calculator comprises a combiner for combining the first channel signal and the second channel signal in two different ways to acquire the first combination signal and the second combination signal;
- an optimizer for calculating the prediction information so that the prediction residual signal fulfills an optimization target;
- a prediction direction calculator for calculating the prediction direction indicator indicating the prediction direction associated with the prediction residual signal;
- a signal encoder for encoding the first combination signal and the prediction residual signal to acquire an encoded first combination signal and an encoded prediction residual signal; and
- an output interface for combining the encoded first combination signal, the encoded prediction residual signal and the prediction information to acquire an encoded multi-channel audio or video signal.
13. The audio or video encoder in accordance with claim 12, in which the encoder calculator comprises:
- a combiner for combining the first channel signal and the second channel signal in two different ways to acquire the first combination signal and the second combination signal;
- a predictor for applying the prediction information to the first combination signal or a signal derived from the first combination signal to acquire a prediction signal or for applying prediction information to the second combination signal or a signal derived from the second combination signal to acquire a prediction signal depending on the prediction direction indicator; and
- a residual signal calculator for calculating the prediction residual signal by combining the prediction signal and the second combination signal or by combining the prediction signal and the first combination signal depending on the prediction direction indicator.
14. The audio or video encoder in accordance with claim 12,
- in which the first channel signal is a spectral representation of a block of samples; in which the second channel signal is a spectral representation of a block of samples, wherein the spectral representations are either pure real-valued spectral representations or pure imaginary spectral representations, in which the optimizer is configured for calculating the prediction information as a real-valued factor different from zero and/or as an imaginary factor different from zero, and
- in which the encoder calculator comprises a real-to-imaginary transformer or an imaginary-to-real transformer for deriving a transform spectral representation from the first combination signal or from the second combination signal depending on the prediction direction indicator, and
- in which the encoder calculator is configured to calculate the first combination signal or the second combination signal depending on the prediction direction indicator and to calculate the prediction residual signal from the transformed spectrum and the imaginary factor.
15. The encoder in accordance with claim 12,
- in which the predictor is configured for multiplying the first combination signal by a real part of the prediction information to acquire a first part of the prediction signal;
- for estimating an imaginary part of the first combination signal or of the second combination signal using the first combination signal or the second combination signal;
- for multiplying the imaginary part of the first or the second combined signal by an imaginary part of the prediction information to acquire a second part of the prediction signal; and
- wherein the residual calculator is configured for linearly combining the first part signal of the prediction signal or the second part signal of the prediction signal and the second combination signal or the first combination signal to acquire the prediction residual signal.
16. A method of decoding an encoded multi-channel audio or video signal, the encoded multi-channel audio or video signal comprising an encoded first combination signal, an encoded prediction residual signal and prediction information, comprising:
- decoding the encoded first combination signal to acquire a decoded first combination signal, and decoding the encoded residual signal to acquire a decoded residual signal; and
- calculating a decoded multi-channel signal comprising a decoded first channel signal, and a decoded second channel signal using the decoded residual signal, the prediction information, the decoded first combination signal and a prediction direction indicator indicating a prediction direction associated with the decoded prediction residual signal, so that the decoded first channel signal and the decoded second channel signal are at least approximations of a first channel signal and a second channel signal of a multi-channel signal,
- wherein calculating the decoded multi-channel signal comprises using a first calculation rule for calculating the decoded multi-channel signal in case of a first state of the prediction direction indicator and using a second different calculation rule for calculating the decoded multi-channel signal in case of a second different state of the prediction direction indicator.
17. A method of encoding a multi-channel audio or video signal comprising two or more channel signals, comprising: encoding the first combination signal and the prediction residual signal to acquire an encoded first combination signal and an encoded residual signal; and
- calculating a first combination signal and a prediction residual signal using a first channel signal and a second channel signal, prediction information and a prediction direction indicator indicating a prediction direction associated with the prediction residual signal, so that a prediction residual signal, when combined with a prediction signal derived from the first combination signal or a signal derived from the first combination signal and the prediction information results in a second combination signal,
- combining the first channel signal and the second channel signal in two different ways to acquire the first combination signal and the second combination signal;
- calculating the prediction information so that the prediction residual signal fulfills an optimization target;
- calculating the prediction direction indicator indicating the prediction direction associated with the prediction residual signal;
- combining the encoded first combination signal, the encoded prediction residual signal and the prediction information to acquire an encoded multi-channel audio or video signal.
18. A non-transitory storage medium having stored thereon a computer program for performing, when running on a computer or a processor, the method of decoding an encoded multi-channel audio or video signal, the encoded multi-channel audio or video signal comprising an encoded first combination signal, an encoded prediction residual signal and prediction information, said method comprising:
- decoding the encoded first combination signal to acquire a decoded first combination signal, and decoding the encoded residual signal to acquire a decoded residual signal; and
- calculating a decoded multi-channel signal comprising a decoded first channel signal, and a decoded second channel signal using the decoded residual signal, the prediction information, the decoded first combination signal and a prediction direction indicator indicating a prediction direction associated with the decoded prediction residual signal, so that the decoded first channel signal and the decoded second channel signal are at least approximations of the first channel signal and the second channel signal of the multi-channel signal,
- wherein calculating the decoded multi-channel signal comprises using a first calculation rule for calculating the decoded multi-channel signal in case of a first state of the prediction direction indicator and using a second different calculation rule for calculating the decoded multi-channel signal in case of a second different state of the prediction direction indicator.
19. A non-transitory storage medium having stored thereon a computer program for performing, when running on a computer or a processor, the method of encoding a multi-channel audio or video signal comprising two or more channel signals, said method comprising:
- calculating a first combination signal and a prediction residual signal using a first channel signal and a second channel signal predictioninformation and a prediction direction indicator indicating a prediction direction associated with the decoded prediction residual signal, so that a prediction residual signal, when combined with a prediction signal derived from the first combination signal or a signal derived from the first combination signal and the prediction information results in a second combination signal,
- combining the first channel signal and the second channel signal in two different ways to acquire the first combination signal and the second combination signal;
- calculating the prediction information so that the prediction residual signal fulfills an optimization target;
- calculating the prediction direction indicator indicating the prediction direction associated with the prediction residual signal;
- encoding the first combination signal and the prediction residual signal to acquire an encoded first combination signal and an encoded residual signal; and
- combining the encoded first combination signal, the encoded prediction residual signal and the prediction information to acquire an encoded multi-channel audio or video signal.
20. An audio or video decoder for decoding an encoded multi-channel audio or video signal, the encoded multi-channel audio or video signal comprising an encoded first combination signal, an encoded prediction residual signal and prediction information, comprising:
- a signal decoder for decoding the encoded first combination signal to acquire a decoded first combination signal, and for decoding the encoded residual signal to acquire a decoded residual signal; and
- a decoder calculator for calculating a decoded multi-channel signal comprising a decoded first channel signal, and a decoded second channel signal using the decoded residual signal, the prediction information, the decoded first combination signal and a prediction direction indicator indicating a prediction direction associated with the decoded prediction residual signal, so that the decoded first channel signal and the decoded second channel signal are at least approximations of a first channel signal and a second channel signal of a multi-channel signal,
- wherein the decoder calculator is configured for using a first calculation rule for calculating the decoded multi-channel signal in case of a first state of the prediction direction indicator and for using a second different calculation rule for calculating the decoded multi-channel signal in case of a second different state of the prediction direction indicator,
- wherein the decoded first combination signal comprises a mid signal, and wherein the first calculation rule comprises the calculation of a side signal from the decoded first combination signal and the decoded residual signal, or wherein the decoded first combination signal comprises a side signal, and wherein the second calculation rule comprises the calculation of a mid signal from the decoded first combination signal and the decoded residual signal.
21. The audio or video decoder in accordance with claim 20, in which the decoded first combination signal comprises the mid signal, and in which the first calculation rule comprises the calculation of the decoded first channel signal and the calculation of the decoded second channel signal using the mid signal, the prediction information and the decoded residual signal without an explicit calculation of the side signal; or
- in which the decoded first combination signal comprises the side signal, and in which the second calculation rule comprises the calculation of the decoded first channel signal and the calculation of the decoded second channel signal using the side signal, the prediction information and the decoded residual signal without an explicit calculation of the mid signal.
22. The audio or video decoder in accordance with claim 20, in which the decoder calculator is configured for using the prediction information where the prediction information comprises a real-valued portion different from zero and/or an imaginary portion different from zero.
23. The audio or video decoder in accordance with claim 20,
- in which the encoded first combination signal and the encoded residual signal have been generated using an aliasing generating time-spectral conversion,
- wherein the decoder further comprises:
- a spectral-time converter for generating a time-domain first channel signal and a time-domain second channel signal using a spectral-time conversion algorithm matched to the time-spectral conversion algorithm;
- an overlap/add processor for conducting an overlap-add processing for the time-domain first channel signal and for the time-domain second channel signal to acquire an aliasing-free first time-domain signal and an aliasing-free second time-domain signal.
24. A method of decoding an encoded multi-channel audio or video signal, the encoded multi-channel audio or video signal comprising an encoded first combination signal, an encoded prediction residual signal and prediction information, comprising:
- decoding the encoded first combination signal to acquire a decoded first combination signal, and decoding the encoded residual signal to acquire a decoded residual signal; and
- calculating a decoded multi-channel signal comprising a decoded first channel signal, and a decoded second channel signal using the decoded residual signal, the prediction information, the decoded first combination signal and a prediction direction indicator indicating a prediction direction associated with the decoded prediction residual signal, so that the decoded first channel signal and the decoded second channel signal are at least approximations of a first channel signal and a second channel signal of a multi-channel signal,
- wherein calculating the decoded multi-channel signal comprises using a first calculation rule for calculating the decoded multi-channel signal in case of a first state of the prediction direction indicator and using a second different calculation rule for calculating the decoded multi-channel signal in case of a second different state of the prediction direction indicator,
- wherein the decoded first combination signal comprises a mid signal, and wherein the first calculation rule comprises the calculation of a side signal from the decoded first combination signal and the decoded residual signal, or wherein the decoded first combination signal comprises a side signal, and wherein the second calculation rule comprises the calculation of a mid signal from the decoded first combination signal and the decoded residual signal.
25. A non-transitory storage medium having stored thereon a computer program for performing, when running on a computer or a processor, the method of decoding an encoded multi-channel audio or video signal, the encoded multi-channel audio or video signal comprising an encoded first combination signal, an encoded prediction residual signal and prediction information, said method comprising:
- decoding the encoded first combination signal to acquire a decoded first combination signal, and decoding the encoded residual signal to acquire a decoded residual signal; and
- calculating a decoded multi-channel signal comprising a decoded first channel signal, and a decoded second channel signal using the decoded residual signal, the prediction information, the decoded first combination signal and a prediction direction indicator indicating a prediction direction associated with the decoded prediction residual signal, so that the decoded first channel signal and the decoded second channel signal are at least approximations of the first channel signal and the second channel signal of the multi-channel signal,
- wherein calculating the decoded multi-channel signal comprises using a first calculation rule for calculating the decoded multi-channel signal in case of a first state of the prediction direction indicator and using a second different calculation rule for calculating the decoded multi-channel signal in case of a second different state of the prediction direction indicator,
- wherein the decoded first combination signal comprises a mid signal, and wherein the first calculation rule comprises the calculation of a side signal from the decoded first combination signal and the decoded residual signal, or wherein the decoded first combination signal comprises a side signal, and wherein the second calculation rule comprises the calculation of a mid signal from the decoded first combination signal and the decoded residual signal.
5285498 | February 8, 1994 | Johnston |
5754733 | May 19, 1998 | Gardner et al. |
5808569 | September 15, 1998 | Wuppermann et al. |
6012025 | January 4, 2000 | Yin |
6539357 | March 25, 2003 | Sinha |
6587823 | July 1, 2003 | Kang |
7340391 | March 4, 2008 | Herre |
7437299 | October 14, 2008 | Aarts et al. |
7447317 | November 4, 2008 | Herre |
7822617 | October 26, 2010 | Taleb et al. |
8290783 | October 16, 2012 | Schnell et al. |
8655670 | February 18, 2014 | Purnhagen et al. |
8768691 | July 1, 2014 | Yoshida |
20020010577 | January 24, 2002 | Matsumoto et al. |
20020040299 | April 4, 2002 | Makino et al. |
20050141721 | June 30, 2005 | Aarts et al. |
20050197831 | September 8, 2005 | Edler |
20080002842 | January 3, 2008 | Neusinger |
20080004883 | January 3, 2008 | Vilermo et al. |
20080249765 | October 9, 2008 | Schuijers |
20080262853 | October 23, 2008 | Jung |
20090190693 | July 30, 2009 | Moriya |
20090262945 | October 22, 2009 | Teo et al. |
20100014679 | January 21, 2010 | Kim et al. |
20110046946 | February 24, 2011 | Liu |
20110096932 | April 28, 2011 | Schuijers |
20110224994 | September 15, 2011 | Norvell |
20110257981 | October 20, 2011 | Beack |
20110288872 | November 24, 2011 | Liu |
20120010879 | January 12, 2012 | Tsujino |
20130028426 | January 31, 2013 | Purnhagen |
20130030817 | January 31, 2013 | Purnhagen |
20130108077 | May 2, 2013 | Edler et al. |
20130266145 | October 10, 2013 | Purnhagen |
101067931 | November 2007 | CN |
101501760 | August 2009 | CN |
0673014 | September 1995 | EP |
1262956 | December 2002 | EP |
1278184 | January 2003 | EP |
H04506141 | October 1992 | JP |
09-073299 | March 1997 | JP |
09073299 | March 1997 | JP |
2004-246038 | September 2004 | JP |
2004246038 | September 2004 | JP |
2005-522721 | July 2005 | JP |
2013-525830 | June 2013 | JP |
2002-0077959 | October 2002 | KR |
20020077959 | October 2002 | KR |
2144261 | January 2000 | RU |
98103512 | January 2000 | RU |
2008014853 | February 2008 | WO |
WO2008/014853 | February 2008 | WO |
WO 2008/084427 | July 2008 | WO |
2009141775 | November 2009 | WO |
WO2009/141775 | November 2009 | WO |
- Carlsson, P, et al., “Technical Description of CE on Improved Stereo Coding in USAC”, ISO/IEC JTC1/SC29/WG11. MPEG2010/M17825. Geneva, CH., 22 Pages.
- Purnhagen, H, et al., “Technical description of proposed Unified Stereo Coding in USAC”, ISO/IEC JTC1/SC29/WG11. MPEG2009/M16921. Xian, CN.
- Carlsson, Pontus et al., “Technical description of CE on improved stereo coding in USAC”, ISO/IEC JTC1/SC29/WG11, Jul. 2010.
- Purnhagen, Heiko et al., “Technical description of proposed Unified Stereo Coding in USAC”, ISO/IEC JTC1/SC29/WG11, Oct. 2009.
Type: Grant
Filed: Nov 17, 2020
Date of Patent: Mar 7, 2023
Assignee: Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e.V. (Munich)
Inventors: Julien Robilliard (Nuremberg), Matthias Neusinger (Rohr), Christian Helmrich (Erlangen), Johannes Hilpert (Nuremberg), Nikolaus Rettelbach (Nuremberg), Sascha Disch (Fuerth), Bernd Edler (Hannover)
Primary Examiner: Yuzhen Ge
Application Number: 16/950,696
International Classification: H04N 19/50 (20140101); G10L 19/008 (20130101); G10L 19/06 (20130101);