Binaural multi-channel decoder in the context of non-energy-conserving upmix rules
11601773 · 2023-03-07
Assignee
Inventors
Cpc classification
H04S2400/03
ELECTRICITY
H04S2420/01
ELECTRICITY
H04S2420/03
ELECTRICITY
H04S7/30
ELECTRICITY
G10L19/008
PHYSICS
International classification
G10L19/008
PHYSICS
Abstract
A multi-channel decoder for generating a binaural signal from a downmix signal using upmix rule information on an energy-error introducing upmix rule for calculating a gain factor based on the upmix rule information and characteristics of head related transfer function based filters corresponding to upmix channels. The one or more gain factors are used by a filter processor for filtering the downmix signal so that an energy corrected binaural signal having a left binaural channel and a right binaural channel is obtained.
Claims
1. A multi-channel decoder apparatus for generating a binaural signal from an input signal derived from an original multi-channel signal using parameters, the apparatus comprising: a gain factor calculator for calculating at least one gain factor for reducing or eliminating an energy-error, based on weighting parameters related to input channels of the input signal and filter characteristics of head related transfer function based filters; and a filter processor for filtering the input signal using the at least one gain factor, and the filter characteristics to obtain an energy-corrected binaural signal, wherein the gain factor calculator is operative to calculate the at least one gain factor for a binaural channel of the binaural signal based on a ratio of a weighted linear combination of energies of channel impulse responses of the head related transfer function based filters for the binaural channel.
2. The apparatus of claim 1, wherein the filter processor is operative to calculate filter coefficients for two gain adjusted filters for each input channel of the input signal and to filter the input channel using each of the two gain adjusted filters.
3. The apparatus of claim 1, wherein the gain factor calculator is operative to calculate the gain factor based on an energy of a combined impulse response of the filter characteristics, the combined impulse response being calculated by adding or subtracting individual filter impulse responses.
4. The apparatus of claim 1, wherein gain factor calculator is operative to calculate the gain factor based on a combination of powers of individual filter impulse responses.
5. The apparatus of claim 1, wherein the gain factor calculator is operative to calculate the gain factor based on an expression having a numerator and a denominator, the numerator having a combination of powers of individual filter impulse filter responses, and the denominator having a weighted addition of powers of individual filter impulse responses.
6. The apparatus of claim 1, wherein the gain factor calculator is operative to calculate a common gain factor for a left binaural channel and a right binaural channel.
7. The apparatus of claim 1, wherein the gain calculator is operative to calculate the gain factor subband-wise, and in which the filter processor is operative to apply the gain factor subband-wise.
8. A method of multi-channel decoding for generating a binaural signal from an input signal derived from an original multi-channel signal using parameters, the method comprising: calculating at least one gain factor for reducing or eliminating an energy-error, based on weighting parameters related to input channels of the input signal and filter characteristics of head related transfer function based filters; and filtering the input signal using the at least one gain factor, and the filter characteristics, wherein the gain factor for a binaural channel of the binaural signal is calculated based on a ratio of a weighted linear combination of energies of channel impulse responses of the head related transfer function based filters for the binaural channel.
9. A computer readable memory device embodying instructions for executing the method in accordance with claim 8.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
(1) The present invention will now be described by way of illustrative examples, not limiting the scope or spirit of the invention, with reference to the accompanying drawings, in which:
(2)
(3)
(4)
(5)
(6)
(7)
(8)
(9)
(10)
(11)
(12)
(13)
(14)
(15)
(16)
(17)
(18)
(19)
(20)
(21)
(22)
(23)
DETAILED DESCRIPTION OF PREFERRED EMBODIMENTS
(24) Before discussing the inventive gain adjusting aspect in detail, a combination of HRTF filters and usage of HRTF-based filters will be discussed in connection with
(25) In order to better outline the features and advantages of the present invention a more elaborate description is given first. A binaural synthesis algorithm is outlined in
(26) The HRTF convolution can be performed in the time domain, but it is often preferred to perform the filtering in the frequency domain due to computational efficiency. In that case, the summation as shown in
(27) In principle, the binaural synthesis method as outlined in
(28) A binaural synthesis scheme in combination with an MPEG surround decoder is shown in
(29) There are however at least three disadvantages of such a cascade of an MPEG surround decoder and a binaural synthesis module: A multi-channel signal representation is computed as an intermediate step, followed by HRTF convolution and downmixing in the binaural synthesis step. Although HRTF convolution should be performed on a per channel basis, given the fact that each audio channel can have a different spatial position, this is an undesirable situation from a complexity point of view. The spatial decoder operates in a filterbank (QMF) domain. HRTF convolution, on the other hand, is typically applied in the FFT domain. Therefore, a cascade of a multi-channel QMF synthesis filterbank, a multi-channel DFT transform, and a stereo inverse DFT transform is necessary, resulting in a system with high computational demands. Coding artifacts created by the spatial decoder to create a multi-channel reconstruction will be audible, and possibly enhanced in the (stereo) binaural output.
(30) The spatial encoder is shown in
(31) The parameters resulting from the ‘TIT’ encoder typically consist of a pair of prediction coefficients for each parameter band, or a pair of level differences to describe the energy ratios of the three input signals. The parameters of the ‘OTT’ encoders consist of level differences and coherence or cross-correlation values between the input signals for each frequency band.
(32) In
(33) The corresponding binaural decoder as seen from a conceptual point of view is shown in
(34) The TTT decoder can be described as the following matrix operation:
(35)
(36) with matrix entries m.sub.xy dependent on the spatial parameters. The relation of spatial parameters and matrix entries is identical to those relations as in the 5.1-multichannel MPEG surround decoder.
(37) Each of the three resulting signals L, R, and C are split in two and processed with HRTF parameters corresponding to the desired (perceived) position of these sound sources. For the center channel (C), the spatial parameters of the sound source position can be applied directly, resulting in two output signals for center, L.sub.B(C) and R.sub.B(C):
(38)
(39) For the left (L) channel, the HRTF parameters from the left-front and left-surround channels are combined into a single HRTF parameter set, using the weights w.sub.lf and w.sub.rf. The resulting ‘composite’ HRTF parameters simulate the effect of both the front and surround channels in a statistical sense. The following equations are used to generate the binaural output pair (L.sub.B, R.sub.B) for the left channel:
(40)
(41) In a similar fashion, the binaural output for the right channel is obtained according to:
(42)
(43) Given the above definitions of L.sub.B(C), R.sub.B(C), L.sub.B(L), R.sub.B(L), L.sub.B(R) and R.sub.B(R), the complete L.sub.B and R.sub.B signals can be derived from a single 2 by 2 matrix given the stereo input signal:
(44)
(45) with
h.sub.11=m.sub.11H.sub.L(L)+m.sub.21H.sub.L(R)+m.sub.31H.sub.L(C),
h.sub.12=m.sub.12H.sub.L(L)+m.sub.22H.sub.L(R)+m.sub.32H.sub.L(C),
h.sub.21=m.sub.11H.sub.R(L)+m.sub.21H.sub.R(R)+m.sub.31H.sub.R(C),
h.sub.22=m.sub.12H.sub.R(L)+m.sub.22H.sub.R(R)+m.sub.32H.sub.R(C).
(46) The Hx(Y) filters can be expressed as parametric weighted combinations of parametric versions of the original HRTF filters. In order for this to work, the original HRTF filters are expressed as a An (average) level per frequency band for the left-ear impulse response; An (average) level per frequency band for the right-ear impulse response; An (average) arrival time or phase difference between the left-ear and right-ear impulse response.
(47) Hence, the HRTF filters for the left and right ear given the center channel input signal is expressed as:
(48)
(49) where P.sub.l(C) is the average level for a given frequency band for the left ear, and ϕ(C) is the phase difference.
(50) Hence, the HRTF parameter processing simply consists of a multiplication of the signal with P.sub.l and P.sub.r corresponding to the sound source position of the center channel, while the phase difference is distributed symmetrically. This process is performed independently for each QMF band, using the mapping from HRTF parameters to QMF filterbank on the one hand, and mapping from spatial parameters to QMF band on the other hand.
(51) Similarly the HRTF filters for the left and right ear given the left channel and right channel are given by:
H.sub.L(L)=√{square root over (w.sub.lf.sup.2P.sub.l.sup.2(Lf)+w.sub.ls.sup.2P.sub.l.sup.2(Ls))},
H.sub.R(L)=e.sup.−j(w.sup.
H.sub.L(R)=e.sup.+j(w.sup.
H.sub.R(R)=√{square root over (w.sub.rf.sup.2P.sub.r.sup.2(Rf)+w.sub.rs.sup.2P.sub.r.sup.2(Rs))}
(52) Clearly, the HRTFs are weighted combinations of the levels and phase differences for the parameterized HRTF filters for the six original channels.
(53) The weights w.sub.lf and w.sub.ls depend on the CLD parameter of the ‘OTT’ box for Lf and Ls:
(54)
(55) And the weights w.sub.rf and w.sub.rs depend on the CLD parameter of the ‘OTT’ box for Rf and Rs:
(56)
(57) The above approach works well for short HRTF filters that sufficiently accurate can be expressed as an average level per frequency band, and an average phase difference per frequency band. However, for long echoic HRTFs this is not the case.
(58) The present invention teaches how to extend the approach of a 2 by 2 matrix binaural decoder to handle arbitrary length HRTF filters. In order to achieve this, the present invention comprises the following steps: Transform the HRTF filter responses to a filterbank domain; Overall delay difference or phase difference extraction from HRTF filter pairs; Morph the responses of the HRTF filter pair as a function of the CLD parameters Gain adjustment
(59) This is achieved by replacing the six complex gains H.sub.Y(X) for Y=L.sub.0,R.sub.0 and X=L,R,C with six filters. These filters are derived from the ten filters H.sub.Y(X) for Y=L.sub.0,R.sub.0 and X=Lf,Ls,Rf,Rs,C, which describe the given HRTF filter responses in the QMF domain. These QMF representations can be achieved according to the method described below.
(60) The morphing of the front and surround channel filters is performed with a complex linear combination according to
H.sub.Y(X)=gw.sub.f exp(−jϕ.sub.XYw.sub.s.sup.2)H.sub.Y(Xf)+gw.sub.s exp(jϕ.sub.XYw.sub.f.sup.2)H.sub.Y(Xs).
(61) The phase parameter ϕ.sub.XY can be defined from the main delay time difference τ.sub.XY between the front and back HRTF filters and the subband index not the QMF bank via
(62)
(63) The role of this phase parameter in the morphing of filters is twofold. First, it realizes a delay compensation of the two filters prior to superposition which leads to a combined response which models a main delay time corresponding to a source position between the front and the back speakers. Second, it makes the necessary gain compensation factor g much more stable and slowly varying over frequency than in the case of simple superposition with ϕ.sub.XY=0.
(64) The gain factor g is determined by the same incoherent addition power rule as for the parametric HRTF case,
P.sub.Y(X).sup.2=w.sub.f.sup.2P.sub.Y(Xf).sup.2+w.sub.s.sup.2P.sub.Y(Xs).sup.2,
where
P.sub.Y(X).sup.2=g.sup.2(w.sub.f.sup.2P.sub.Y(Xf).sup.2+w.sub.s.sup.2P.sub.Y(Xs).sup.2+2w.sub.fw.sub.sP.sub.Y(Xf)P.sub.Y(Xs)ρ.sub.XY)
(65) and ρ.sub.XY is the real value of the normalized complex cross correlation between the filters
exp(−jϕ.sub.XY)H.sub.Y(Xf) and H.sub.Y(Xs).
(66) In the case of simple superposition with ϕ.sub.XY=0, the value of ρ.sub.XY varies in an erratic and oscillatory manner as a function of frequency, which leads to the need for extensive gain adjustment. In practical implementation it is necessary to limit the value of the gain g and a remaining spectral colorization of the signal cannot be avoided.
(67) In contrast, the use of morphing with a delay based phase compensation as taught by the present invention leads to a smooth behavior of ρ.sub.XY as a function of frequency. This value is often even close to one for natural HRTF derived filter pairs since they differ mainly in a delay and amplitude, and the purpose of the phase parameter is to take the delay difference into account in the QMF filterbank domain.
(68) An alternative beneficial choice of phase parameter ϕ.sub.XY is given by computing the phase angle of the normalized complex cross correlation between the filters
H.sub.Y(Xf) and H.sub.Y(Xs),
(69) and unwrapping the phase values with standard unwrapping techniques as a function of the subband index n of the QMF bank. This choice has the consequence that ρ.sub.XY is never negative and hence the compensation gain g satisfies 1/√{square root over (2)}≤g≤1 for all subbands. Moreover this choice of phase parameter enables the morphing of the front and surround channel filters in situations where a main delay time difference τ.sub.XY is not available.
(70) All signals considered below are subband samples from a modulated filter bank or windowed FFT analysis of discrete time signals or discrete time signals. It is understood that these subbands have to be transformed back to the discrete time domain by corresponding synthesis filter bank operations.
(71)
(72)
(73)
(74)
(75)
(76)
(77) In the text which follows, the mathematical description of the inventive gain compensation will be outlined. For discrete complex signals x,y, the complex inner product and squared norm (energy) is defined by
(78)
(79) where
(80) The original multichannel signal consists of N channels, and each channel has a binaural HRTF related filter pair associated to it. It will however be assumed here that the parametric multichannel signal is created with an intermediate step of predictive upmix from the M transmitted channels to P predicted channels. This structure is used in MPEG Surround as described by
(81)
(82) where the star denotes convolution in the time direction. The subband filters can be given in form of finite impulse response (FIR) filters, infinite impulse response (IIR) or derived from a parameterized family of filters.
(83) In the encoder, the downmix is formed by the application of a M×P downmix matrix D to a column vector of signals formed by x.sub.p p=1, 2, . . . , P and the prediction in the decoder is performed by the application of a P×M prediction matrix C to the column vector of signals formed by the M transmitted downmixed channels z.sub.m m=1, . . . , M,
(84)
(85) Both matrices are known at the decoder, and ignoring the effects of coding the downmixed channels, the combined effect of prediction can be modeled by
(86)
(87) where a.sub.p,q are the entries of the matrix product A=CD.
(88) A straightforward method for producing a binaural output at the decoder is to simply insert the predicted signals {circumflex over (x)}.sub.p in (2) resulting in
(89)
(90) In terms of computations, the binaural filtering is combined with the predictive upmix beforehand such that (5) can be written as
(91)
(92) with the combined filters defined by
(93)
(94) This formula describes the action of the linear combiner 301 which combines the coefficients c.sub.p,m derived from spatial parameters with the binaural subband domain filters b.sub.n,p. When the original P signals x.sub.p have a numerical rank essentially bounded by M, the prediction can be designed to perform very well and the approximation {circumflex over (x)}.sub.p≈x.sub.p is valid. This happens for instance if only M of the P channels are active, or if important signal components originate from amplitude panning. In that case the decoded binaural signal (5) is a very good match to the reference (2). On the other hand, in the general case and especially in case the original P signals x.sub.p are uncorrelated, there will be a substantial prediction loss and the output from (5) can have an energy that deviates considerably from the energy of (2). As the deviation will be different in different frequency bands, the final audio output suffers from spectral coloring artifacts as described by
{tilde over (y)}.sub.n=g.sub.n.Math.ŷ.sub.n. (8)
(95) In terms of computations, the gain compensation is advantageously performed by altering the combined filters according to the gain adjuster 303, {tilde over (h)}.sub.n,m(k)=g.sub.nh.sub.n,m(k). The modified combined filtering then becomes
(96)
(97) The optimal values of the compensating gains in (8) are
(98)
(99) The purpose of the gain calculator 302 is to estimate these gains from the information available in the decoder. Several tools for this end will now be outlined. The available information is represented here by the matrix entries a.sub.p,q and the HRTF related subband filters b.sub.n,p. First, the following approximation will be assumed for the inner product between signals x,y that have been filtered by HRTF related subband filters b,d,b*x,d*y
≈
b,d
x,y
.
(100) This approximation relies on the fact that often most energy of the filters is concentrated in a dominant single tap, which in turn presupposes that the time step of the applied time frequency transform is sufficiently large in comparison to the main delay differences of HRTF filters. Applying the approximation (11) in combination with (2) leads to
(101)
(102) The next approximation consists of assuming that the original signals are uncorrelated, that is x.sub.p,x.sub.q
=0 for p≠q. Then (12) reduces to
(103)
(104) For the decoded energy the result corresponding to (12) is
(105)
(106) Inserting the predicted signals (4) in (14) and applying the assumption that the original signals are uncorrelated gives
(107)
(108) What remains in order to be able to calculate the compensation gain given by the quotient (10) is to estimate the energy distribution ∥x.sub.p∥.sup.2, p=1, 2, . . . , P of the original channels up to an arbitrary factor. The present invention teaches to do this by computing, as a function of the energy distribution, the prediction matrix C.sub.model corresponding to the assumption that these channels are uncorrelated and that the encoder aims at minimizing the prediction error. The energy distribution is then estimated by solving the nonlinear system of equations C.sub.model=C if possible. For prediction parameters that lead to a system of equations without solutions, the gain compensation factors are set to g.sub.n=1. This inventive procedure will be detailed in the following section in the most important special case.
(109) The computation load imposed by (15) can be reduced in the case where P=M+1 by applying the expansion (see for instance PCT/EP2005/011586),x.sub.p,x.sub.q
=
{circumflex over (x)}.sub.p,{circumflex over (x)}.sub.q
+ΔE.Math.v.sub.p.Math.v.sub.q, (16)
(110) where v is a unit vector with components v.sub.p such that Dv=0, and ΔE is the prediction loss energy,
(111)
(112) The computation of (15) is then advantageously replaced by the application of (16) in (14), leading to
(113)
(114) Subsequently, a preferred specialization to prediction of three channels from two channels will be discussed. The case where M=2 and P=3 is used in MPEG Surround. The signals are a combined left x.sub.1=l, a combined right x.sub.2=r and a (scaled) combined center/lfe channel x.sub.3=c. The downmix matrix is
(115)
(116) and the prediction matrix is constructed from two transmitted real parameters c.sub.1,c.sub.2, according to
(117)
(118) Under the assumption that the original channels are uncorrelated the prediction matrix realizing the minimal prediction error is given by
(119)
(120) Equating C.sub.model=C leads to the (unnormalized) energy distribution taught by the present invention
(121)
(122) where α=(1−c.sub.1)/3, β=(1−c.sub.2)/3, σ=α+β, and p=αβ. This holds in the viable range defined by
α>0,β>0,σ<1, (23)
(123) in which case the prediction error can be found in the same scaling from
ΔE=3p(1−σ). (24)
(124) Since P=3=2+1=M+1, the method outlined by (16)-(18) is applicable. The unit vector is [v.sub.1,v.sub.2,v.sub.3]=[1,1,−1]/√{square root over (3)} and with the definitions
ΔE.sub.n.sup.B=p(1−σ)∥b.sub.n,1+b.sub.n,2−b.sub.n,3∥.sup.2, (25)
and
E.sub.n.sup.B=β(1−σ)∥b.sub.n,1∥.sup.2+α(1−σ)∥b.sub.n,2∥.sup.2+p∥b.sub.n,3∥.sup.2, (26)
(125) the compensation gain for each ear n=1,2 as computed in a preferred embodiment of the gain calculator 302 can be expressed by
(126)
(127) Here ε>0 is a small number whose purpose is to stabilize the formula near the edge of the viable parameter range and g.sub.max is an upper limit on the applied compensation gain. The gains of (27) are different for the left and right ears, n=1,2. A variant of the method is to use a common gain g.sub.0=g.sub.1=g, where
(128)
(129) The inventive correction gain factor can be brought into coexistence with a straight-forward multichannel gain compensation available without any HRTF related issues.
(130) In MPEG Surround, compensation for the prediction loss is already applied in the decoder by multiplying the upmix matrix C by a factor 1/ρ where 0<ρ≤1 is a part of the transmitted spatial parameters. In that case the gains of (27) and (28) have to be replaced by the products μg.sub.n and μg respectively. Such compensation is applied for the binaural decoding studied in
(131) In addition, since the case where ρ=1 corresponds to a successful prediction, a more conservative variant of the gain compensation taught by the present invention will disable the binaural gain compensation for ρ=1.
(132) Furthermore, the present invention is used together with a residual signal. In MPEG Surround, an additional prediction residual signal z.sub.3 can be transmitted which makes it possible to reproduce the original P=3 signals x.sub.p more faithfully. In this case the gain compensation is to be replaced by a binaural residual signal addition which will now be outlined. The predictive upmix enhanced by a residual is formed according to
(133)
(134) where [w.sub.1,w.sub.2,w.sub.3]=[1,1,−1]/3. Substituting {tilde over (x)}.sub.p for {circumflex over (x)}.sub.p in (5) yields the corresponding combined filtering,
(135)
(136) where the combined filters h.sub.n,m are defined by (7) for m=1, 2, and the combined filters for the residual addition are defined by
(137)
(138) The overall structure of this mode of decoding is therefore also described by
(139)
(140)
(141) However, since the present invention is directed to a multi-channel binaural decoder, filters illustrated by 15, 16, 17, 18 are not pure HRTF filters, but are HRTF-based filters, which not only reflect HRTF properties but which also depend on the spatial parameters and, particularly, as discussed in connection with
(142)
(143) The same is true for the HRTFs 3 and 4 for the left channel, since the relations of both ears to the left channel L are different. This also applies for all other HRTFs, although as becomes clear from
(144) As stated above, these HRTFs have been determined for model heads and can be downloaded for any specific “average head”, and loudspeaker setup.
(145) Now, as becomes clear at 171 and 172 in
(146) As outlined before, a phase factor can also be applied when combining HRTFs, which phase factor is defined by time delays or unwrapped phase differences between the to be combined HRTFs. However, this phase factor does not depend on the transmitted parameters.
(147) Thus, HRTFs 11, 12, 13 and 14 are not true HRTFs filters but are HRTF-based filters, since these filters not only depend from the HRTFs, which are independent from the transmitted signal. Instead, HRTFs 11, 12, 13 and 14 are also dependent on the transmitted signal due to the fact that the channel level difference parameters cld.sub.l and cld.sub.r are used for calculating these HRTFs 11, 12, 13 and 14.
(148) Now, the
(149) To this end, HRTFs 11, 5, 13 are combined using a left upmix rule, which becomes clear from the upmix matrix in
(150) As outlined in block 176, the same HRTFs 11, 5, 13 are combined, but now using the right upmix rule, i.e., in the
(151) Thus, HRTF 15 and HRTF 17 are generated. Analogously HRTF 12, HRTF 6 and HRTF 14 of
(152) Again, it is emphasized that, while original HRTFs in
(153) To finally obtain a binaural left channel L.sub.B and a binaural right channel R.sub.B, the outputs of filters 15 and 17 have to be combined in an adder 130a. Analogously, the output of the filters 16 and 18 have to be combined in an adder 130b. These adders 130a, 130b reflect the superposition of two signals within the human ear.
(154) Subsequently,
(155) Naturally, when the original multi-channel signal was only a three-channel signal, cld.sub.l or cld.sub.r are not transmitted and the only parametric side information will be information on the upmix rule which, as outlined before, is such an upmix rule which results in an energy-error in the upmixed signal. Thus, although the waveforms of the upmixed signals when a non-binaural rendering is performed, match as close as possible the original waveforms, the energy of the upmixed channels is different from the energy of the corresponding original channels.
(156) In the preferred embodiment of
(157) Irrespective of such a preferred embodiment for the upmix rule information, any upmix rule information is sufficient as long as an upmix to generate an energy-loss affected set of upmixed channels is possible, which is waveform-matched to the corresponding set of original signals.
(158) The inventive multi-channel decoder includes a gain factor calculator 180 for calculating at least one gain factor g.sub.l, g.sub.r or g, for reducing or eliminating the energy-error. The gain factor calculator calculates the gain factor based on the upmix rule information and filter characteristics of HRTF-based filters corresponding to upmix channels which would be obtained, when the upmix rule would be applied. However, as outlined before, in the binaural rendering, this upmix does not take place. Nevertheless, as discussed in connection with
(159) As discussed before, the gain factor calculator 180 can calculate different gain factors g.sub.l and g.sub.r as outlined in equation (27), when, instead of n, l or r is inserted. Alternatively, the gain factor calculator could generate a single gain factor for both channels as indicated by equation (28).
(160) Importantly, the inventive gain factor calculator 180 calculates the gain factor based not only on the upmix rule, but also based on the filter characteristics of the HRTF-based filters corresponding to upmix channels. This reflects the situation that the filters themselves also depend on the transmitted signals and are also affected by an energy-error. Thus, the energy-error is not only caused by the upmix rule information such as the prediction parameters CPC.sub.1, CPC.sub.2, but is also influenced by the filters themselves.
(161) Therefore, for obtaining a well-adapted gain correction, the inventive gain factor not only depends on the prediction parameter but also depends on the filters corresponding to the upmix channels as well.
(162) The gain factor and the downmix parameters as well as the HRTF-based filters are used in the filter processor 182 for filtering the downmix signal to obtain an energy-corrected binaural signal having a left binaural channel L.sub.B and having a right binaural channel R.sub.B.
(163) In a preferred embodiment, the gain factor depends on a relation between the total energy included in the channel impulse responses of the filters corresponding to upmix channels to a difference between this total energy and an estimated upmix energy error ΔE. ΔE can preferably be calculated by combining the channel impulse responses of the filters corresponding to upmix channels and to then calculating the energy of the combined channel impulse response. Since all numbers in the relations for G.sub.L and G.sub.R in
(164)
(165) Alternatively, the filter processor can be constructed as shown in
(166) Generally, as has been outlined in connection with equation 16, equation 17 and equation 18, the gain calculation takes place using the estimated upmix error ΔE. This approximation is especially useful for the case where the number of upmix channels is equal to the number of downmix channels +1. Thus, in case of two downmix channels, this approximation works well for three upmix channels. Alternatively, when one would have three downmix channels, this approximation would also work well in a scenario in which there are four upmix channels.
(167) However, it is to be noted that the calculation of the gain factor based on an estimation of the upmix error can also be performed for scenarios in which for example, five channels are predicted using three downmix channels. Alternatively, one could also use a prediction-based upmix from two downmix channels to four upmix channels. Regarding the estimated upmix energy-error ΔE, one can not only directly calculate this estimated error as indicated in equation (25) for the preferred case, but one could also transmit some information on the actually occurred upmix error in a bit stream. Nevertheless, even in other cases than the special case as illustrated in connection with equations (25) to (28), one could then calculate the value E.sub.n.sup.B based on the HRTF-based filters for the upmix channels using prediction parameters. When equation (26) is considered, it becomes clear that this equation can also easily be applied to a 2/4 prediction upmix scheme, when the weighting factors for the energies of the HRTF-based filter impulse responses are correspondingly adapted.
(168) In view of that, it becomes clear that the general structure of equation (27), i.e., calculating the gain factor based on relation of E.sup.B/(E.sup.B−ΔE.sup.B) also applies for other scenarios.
(169) Subsequently,
(170) A downmixer 191 receives five original channels or, alternatively, three original channels as illustrated by (L.sub.s and R.sub.s). The downmixer 191 can work based on a pre-determined downmix rule. In that case, the downmix rule indication as illustrated by line 192 is not required. Naturally, the error-minimizer 193 could vary the downmix rule as well in order to minimize the error between reconstructed channels at the output of an upmixer 194 with respect to the corresponding original input channels.
(171) Thus, the error-minimizer 193 can vary the downmix rule 192 or the upmixer rule 196 so that the reconstructed channels have a minimum prediction loss ΔE. This optimization problem is solved by any of the well-known algorithms within the error-minimizer 193, which preferably operates in a subband-wise way to minimize the difference between the reconstruction channels and the input channels.
(172) As stated before, the input channels can be original channels L, L.sub.s, R, R.sub.s, C. Alternatively the input channels can only be three channels L, R, C, wherein, in this context, the input channels L, R, can be derived by corresponding OTT boxes illustrated in
(173)
(174) The present invention therefore, provides an efficient way of performing binaural decoding of multi-channel audio signals based on available downmixed signals and additional control data by means of HRTF filtering. The present invention provides a solution to the problem of spectral coloring arising from the combination of predictive upmix with binaural decoding.
(175) Depending on certain implementation requirements of the inventive methods, the inventive methods can be implemented in hardware or in software. The implementation can be performed using a digital storage medium, in particular a disk, DVD or a CD having electronically readable control signals stored thereon, which cooperate with a programmable computer system such that the inventive methods are performed. Generally, the present invention is, therefore, a computer program product with a program code stored on a machine readable carrier, the program code being operative for performing the inventive methods when the computer program product runs on a computer. In other words, the inventive methods are, therefore, a computer program having a program code for performing at least one of the inventive methods when the computer program runs on a computer.
(176) While the foregoing has been particularly shown and described with reference to particular embodiments thereof, it will be understood by those skilled in the art that various other changes in the form and details may be made without departing from the spirit and scope thereof. It is to be understood that various changes may be made in adapting to different embodiments without departing from the broader concepts disclosed herein and comprehended by the claims that follow.