Stereo filling device and method in multi-channel coding
The apparatus and method for stereo filling in multi-channel coding dynamically selects channel pairs based on inter-channel correlations to address inefficiencies in existing technologies, improving encoding quality and adapting to time-varying dependencies in multi-channel audio scenarios.
Patent Information
- Application Number
- JP2024118284
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2016-02-17
- Filing Date
- 2024-07-24
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2037-02-14
AI Technical Summary
Existing audio coding technologies struggle to effectively encode multi-channel audio signals, particularly in 3D audio scenarios with dynamic speaker setups, due to limitations in joint encoding of channel pairs and inefficiencies in handling spectral holes caused by quantization, especially at low bit rates.
An apparatus and method for stereo filling in multi-channel coding that dynamically selects channel pairs based on inter-channel correlations, using noise filling and inter-channel prediction to fill spectral holes and adapt to time-varying dependencies, enhancing encoding quality at low bit rates.
Improves encoding quality by effectively filling spectral holes and adapting to dynamic channel dependencies, resulting in enhanced audio quality and efficiency in multi-channel audio encoding.
Smart Images

Figure 2024133390000001_ABST
Abstract
Description
[Technical field]
[0001] The present invention relates to audio signal coding, and in particular to an apparatus and method for stereo filling in multi-channel coding. [Background technology]
[0002] Audio coding is the domain of compression that exploits redundancy and irrelevance in audio signals.
[0003] In MPEG USAC (see, e.g., [3]), joint stereo coding of the two channels is performed using complex prediction, MPS 2-1-2 or synthetic stereo with bandlimited or fullband residual signal. MPEG Surround (see, e.g., [4]) hierarchically combines 1to2 (OTT) and 2to3 (TTT) boxes for joint coding of multichannel audio, with or without transmission of the residual signal.
[0004] In MPEG-H, quad-channel elements are subjected to a hierarchical application of the MPS 2-1-2 stereo box, followed by a complex prediction / MS stereo box that builds a fixed 4 × 4 remix tree (see, for example, [1]).
[0005] AC4 (see, e.g., [6]) introduces new 3-, 4- and 5-channel elements, which allow to remix the transmitted channels via the transmitted mix matrix and subsequently combine stereo coding information. Furthermore, previous publications have proposed using orthogonal transforms such as the Karhunen-Loeve Transform (KLT) for enhanced multichannel audio coding (see, e.g., [7]). Summary of the Invention [Problem to be solved by the invention]
[0006] For example, in the context of 3D audio, loudspeaker channels are distributed in several height layers, resulting in horizontal and vertical channel pairs. As defined by USAC, joint coding of only two channels is insufficient to take into account the spatial and perceptual relationships between the channels. MPEG Surround is applied with an additional pre-processing / post-processing step, and the residual signals are transmitted separately without the possibility of joint stereo coding that exploits the dependency between the left and right vertical residual signals for example. AC-4-specific N-channel elements are introduced, allowing efficient coding of joint coding parameters, but fail for common speaker setups with more channels proposed for new immersive playback scenarios (7.1+4, 22.2). MPEG-H quad-channel elements are also limited to only 4 channels and cannot be dynamically applied to any channel, but only to a fixed number of pre-configured channels.
[0007] The MPEG-H multi-channel coding tools allow the creation of arbitrary trees of discretely coded stereo boxes, i.e. jointly coded channel pairs, see [2].
[0008] A problem that often arises in the coding of audio signals is caused by quantization, e.g. spectral quantization. Quantization may result in spectral holes. For example, all spectral values within a certain frequency band may be set to zero on the encoder side as a result of quantization. For example, the exact values of such spectral lines before quantization may be relatively low, and quantization may result in a situation where the spectral values of all spectral lines within a certain frequency band are set to zero. On the decoder side, this may result in undesirable spectral holes when decoding.
[0009] Modern frequency domain speech / audio coding systems such as the Opus / Celt codec of the IETF [9], MPEG-4(HE-)AAC
[10] , or especially MPEG-D xHE-AAC(USAC)
[11] , offer the means to code an audio frame using either a long block, which is one long transform, or a short block, which is eight consecutive short transforms, depending on the temporal stationarity of the signal. Furthermore, for low bitrate coding, these schemes offer tools to reconstruct the frequency coefficients of a channel using pseudorandom noise or low frequency coefficients of the same channel. In xHE-AAC, these tools are called noise filling and spectral band replication, respectively.
[0010] However, for highly tonal or transient stereo inputs, noise filling and / or spectral band replication alone limit the achievable coding quality at very low bit rates, mainly because there are too many spectral coefficients in both channels that need to be transmitted unambiguously.
[0011] MPEG-H stereo filling is a parametric tool that relies on the use of the downmix of the previous frame to improve the filling of spectral holes due to quantization in the frequency domain. Like noise filling, stereo filling operates directly in the MDCT domain in the MPEG-H core coder, see [1], [5], [8].
[0012] However, the use of MPEG Surround and Stereo Filling in MPEG-H is limited to fixed channel pair elements and therefore cannot exploit time-varying inter-channel dependencies.
[0013] The Multi-Channel Coding Tool (MCT) in MPEG-H allows adaptation to changing inter-channel dependencies, but uses single-channel elements in normal operating configurations, making stereo filling impossible. The prior art does not disclose a perceptually optimal method to generate a downmix of the previous frame in the case of time-varying and arbitrary jointly coded channel pairs. The use of noise filling instead of stereo filling in combination with MCT to fill spectral holes may lead to noise artifacts, especially for tonal signals.
[0014] The object of the present invention is to provide an improved audio coding concept. The object of the present invention is solved by a decoding device according to claim 1, by a coding device according to claim 15, by a decoding method according to claim 18, by a coding method according to claim 19, by a computer program according to claim 20 and by an encoded multi-channel signal according to claim 21. [Means for solving the problem]
[0015] An apparatus is provided for decoding an encoded multi-channel signal of a current frame to obtain three or more current audio output channels. The multi-channel processing unit is adapted to select two decoded channels from the three or more decoded channels in response to a first multi-channel parameter. The multi-channel processing unit is further adapted to generate a first group of two or more processed channels based on the selected channels. The noise filling module is adapted to identify, for at least one of the selected channels, one or more frequency bands in which all spectral lines are quantized to zero, generate a suitable subset of the three or more decoded previous audio output channels in response to side information, and fill the spectral lines of the frequency bands in which all spectral lines are quantized to zero with noise generated using the spectral lines of the mixing channel.
[0016] According to an embodiment, an apparatus is provided for decoding a previous encoded multi-channel signal of a previous frame to obtain three or more previous audio output channels and for decoding a current encoded multi-channel signal of a current frame to obtain three or more current audio output channels.
[0017] The apparatus comprises an interface, a channel decoder, a multi-channel processing unit for generating three or more current audio output channels, and a noise filling module. The interface is adapted to receive the current encoded multi-channel signal and to receive side information comprising the first multi-channel parameters. The channel decoder is adapted to decode the current encoded multi-channel signal of the current frame to obtain a set of three or more decoded channels of the current frame. The multi-channel processing unit is adapted to select a first selected pair of two decoded channels from the set of three or more decoded channels in response to a first multi-channel parameter.
[0018] Further, the multi-channel processing unit is adapted to generate a first group of two or more processed channels based on the first selected pair of two decoded channels to obtain an updated set of three or more decoded channels.
[0019] Before the multi-channel processing unit generates the first pair of two or more processed channels based on the first selected pair of two decoded channels, the noise filling module is adapted to identify, for at least one of the two channels of the first selected pair of two decoded channels, one or more frequency bands in which all spectral lines are quantized to zero, generate the mixing channel using two or more, but not all, of the three or more previous audio output channels, and fill the spectral lines of the one or more frequency bands in which all spectral lines are quantized to zero with noise generated using the spectral lines of the mixing channels, and the noise filling module is adapted to select the two or more previous audio output channels to be used for generating the mixing channel from the three or more previous audio output channels in response to the side information.
[0020] A particular concept of the embodiment that may be used by the noise filling module to specify how noise is generated and filled is called stereo filling.
[0021] Further provided is an apparatus for encoding a multi-channel signal having at least three channels.
[0022] The apparatus includes an iterative processing unit adapted to calculate, in a first iteration step, inter-channel correlation values between each pair of at least three channels to select, in a first iteration step, a pair having the highest value or a pair having a value above a threshold, and to process the selected pair using a multi-channel processing operation to derive initial multi-channel parameters for the selected pair and to derive a first processed channel.
[0023] The iterative processing unit is adapted to perform calculations, selection and processing in a second iteration step using at least one of the processed channels to derive further multi-channel parameters and a second processed channel.
[0024] Furthermore, the apparatus includes a channel encoder adapted to encode a channel resulting from the iterative processing performed by the iterative processing unit to obtain an encoded channel.
[0025] The apparatus further comprises an output interface adapted to generate an encoded multi-channel signal having the encoded channels, the initial multi-channel parameters and the further multi-channel parameters, and having information indicating whether the decoding device should fill in spectral lines of one or more frequency bands, in which all spectral lines are quantized to zero, using noise generated based on previously decoded audio output channels that were previously decoded by the decoding device.
[0026] Further provided is a method for decoding a previous encoded multi-channel signal of a previous frame to obtain three or more previous audio output channels and decoding a current encoded multi-channel signal of a current frame to obtain three or more current audio output channels, the method including: - Receiving a current encoded multi-channel signal and receiving side information comprising a first multi-channel parameter. - Decoding a current encoded multi-channel signal of a current frame to obtain a set of three or more decoded channels of the current frame. - selecting a first selected pair of two decoded channels from the set of three or more decoded channels according to a first multi-channel parameter; - generating a first group of two or more processed channels based on the first selected pair of two decoded channels to obtain an updated set of three or more decoded channels.
[0027] Before a first pair of two or more processed channels is generated based on a first selected pair of two decoded channels, the following steps are performed. - for at least one of the two channels of the first selected pair of two decoded channels, identifying one or more frequency bands in which all spectral lines are quantized to zero, generating a mixing channel using two or more but not all of the three or more front audio output channels, filling the spectral lines of the one or more frequency bands in which all spectral lines are quantized to zero with noise generated using the spectral lines of the mixing channels, and selecting two or more front audio output channels to be used for generating the mixing channel from the three or more front audio output channels in response to the side information.
[0028] Further, a method for encoding a multi-channel signal having at least three channels is provided, the method comprising: - in a first iteration step, calculating inter-channel correlation values between each pair of at least three channels to select the pair having the highest value or the pair having a value above a threshold, and processing the selected pair using a multi-channel processing operation to derive initial multi-channel parameters for the selected pair, and to derive a first processed channel. - performing calculations, selection and processing in a second iteration step using at least one of the processed channels to derive further multi-channel parameters and a second processed channel. - Encoding a channel resulting from the iterative processing performed by the iterative processing unit to obtain an encoded channel. - generating an encoded multi-channel signal having information indicating whether the decoding device should fill in spectral lines of one or more frequency bands, in which all spectral lines are quantized to zero, using noise generated on the basis of previously decoded audio output channels having the encoded channels, the initial multi-channel parameters and the further multi-channel parameters and which have been previously decoded by the decoding device.
[0029] Further, computer programs are provided, each computer program configured to perform one of the above methods when executed on a computer or a signal processing unit, each of the above methods being performed by one of the computer programs.
[0030] Further provided is an encoded multi-channel signal comprising the encoded channels, the multi-channel parameters and information indicating whether the decoding device should fill in the spectral lines of one or more frequency bands in which all spectral lines are quantized to zero with spectral data previously decoded by the decoding device and generated based on previously decoded audio output channels. In the following, embodiments of the invention will be explained in more detail with reference to the drawings. [Brief description of the drawings]
[0031] [Figure 1a] 2 shows a decoding device according to an embodiment; [Figure 1b] 4 shows a decoding device according to another embodiment. [Diagram 2] FIG. 2 shows a block diagram of a parametric frequency domain decoder according to an embodiment of the present application; [Diagram 3] In order to facilitate understanding of the decoder illustration of FIG. 2, a schematic diagram is shown illustrating a sequence of spectra forming a spectrogram of a channel of a multi-channel audio signal. [Figure 4] To facilitate understanding of the description of FIG. 2, a schematic diagram showing the current spectrum of the spectrogram shown in FIG. 3 is provided. [Figure 5a] 4 shows a block diagram of a parametric frequency domain audio decoder according to another embodiment in which a downmix of a previous frame is used as the basis for inter-channel noise filling. [Figure 5b] 4 shows a block diagram of a parametric frequency domain audio decoder according to another embodiment in which a downmix of a previous frame is used as the basis for inter-channel noise filling. [Figure 6] 1 shows a block diagram of a parametric frequency domain audio encoder according to one embodiment; [Figure 7] 1 is a schematic block diagram of an apparatus for encoding a multi-channel signal having at least three channels according to an embodiment; [Figure 8] 1 is a schematic block diagram of an apparatus for encoding a multi-channel signal having at least three channels according to an embodiment; [Figure 9] FIG. 2 shows a schematic block diagram of a stereo box according to one embodiment. [Figure 10] 1 is a schematic block diagram of an apparatus for decoding an encoded multi-channel signal having encoded channels and at least two multi-channel parameters according to one embodiment; [Figure 11] 2 shows a flowchart of a method for encoding a multi-channel signal having at least three channels according to one embodiment. [Figure 12] 2 shows a flowchart of a method for decoding an encoded multi-channel signal having encoded channels and at least two multi-channel parameters according to one embodiment. [Figure 13] 1 illustrates a system according to one embodiment. [Figure 14] In scenario (a) the generation of a composite channel for a first frame of the scenario is shown, and in scenario (b) the generation of a composite channel for a second frame following the first frame is shown according to one embodiment. [Figure 15] 1 illustrates a multi-channel parameter indexing scheme according to an embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0032] Elements that are equal or similar or have equal or similar functions are designated in the following description by equal or similar reference numbers.
[0033] In the following description, a number of details are set forth to provide a more complete description of the embodiments of the present invention. However, it will be apparent to those skilled in the art that the embodiments of the present invention may be practiced without these specific details. In other instances, well-known structures and devices are shown in block diagram form, rather than in detail, in order to avoid obscuring the embodiments of the present invention. Furthermore, the features of different embodiments described below can be combined with each other unless otherwise specified.
[0034] Before describing the apparatus 201 for decoding in Fig. 1a, we first describe noise filling for multi-channel audio coding. In an embodiment, the noise filing module 220 in Fig. 1a can be configured to perform one or more of the following techniques described for noise filling for multi-channel audio coding, for example:
[0035] Fig. 2 shows a frequency domain audio decoder according to an embodiment of the present application. The decoder is generally indicated using the reference numeral 10 and includes a scale factor band identifier 12, an inverse quantizer 14, a noise filler 16 and an inverse transformer 18 as well as a spectral line extractor 20 and a scale factor extractor 22. Optional further elements that may be included in the decoder 10 include a complex stereo predictor 24, an MS (middle side) decoder 26 and an inverse TNS (temporal noise shaping) filter tool, two examples of which 28a and 28b are shown in Fig. 2. Furthermore, a downmix provider is indicated and outlined in more detail below using the reference numeral 30.
[0036] The frequency domain audio decoder 10 of Fig. 2 is a parametric decoder that supports noise filling whereby certain zero quantized scale factor bands are filled with noise using the scale factor of that scale factor band as a means of controlling the level of noise filled into that scale factor band. Beyond this, the decoder 10 of Fig. 2 represents a multi-channel audio decoder configured to reconstruct a multi-channel audio signal from an inbound data stream 30. However, Fig. 2 concentrates on the elements of the decoder 10 involved in the reconstruction of one of the multi-channel audio signals encoded in the data stream 30, and outputs this (output) channel at an output 32. Reference numeral 34 indicates that the decoder 10 may include further elements or may include some pipeline operation control responsible for reconstructing other channels of the multi-channel audio signal, and the following description will show how the reconstruction of the channel of interest at the output 32 of the decoder 10 interacts with the decoding of the other channels.
[0037] The multi-channel audio signal represented by the data stream 30 may contain more than one channel. In the following, the description of the embodiments of the present application focuses on the stereo case in which the multi-channel audio signal contains only two channels, but in principle the embodiments described below can be easily transferred to alternative embodiments relating to multi-channel audio signals and their encoding containing more than two channels.
[0038] As will become more clear from the description of Fig. 2 below, the decoder 10 of Fig. 2 is a transform decoder, i.e. according to the coding technique underlying the decoder 10, the channels are coded in the transform domain, such as using a lapped transform of the channels. Furthermore, depending on the creator of the audio signal, there are temporal phases in which the channels of the audio signal represent roughly the same audio content, shifted from each other by small or deterministic changes, such as different amplitudes and / or phases, and the differences between the channels represent an audio scene that allows a virtual positioning of the audio sources of the audio scene with respect to virtual speaker positions associated with the output channels of the multi-channel audio signal. However, in some other temporal phases, the different channels of the audio signal may be more or less uncorrelated with each other, for example representing completely different audio sources.
[0039] To account for the possible time-varying relationships between the channels of an audio signal, the audio codec underlying the decoder 10 of Fig. 2 allows for the time-varying use of different measurements to exploit redundancies between the channels. For example, MS coding allows for switching between representing the left and right channels of a stereo audio signal as they are and as paired M (mid) and S (side) channels representing a downmix of the left and right channels and their halved difference, respectively. That is, the spectrograms of the two channels transmitted by the data stream 30 are continuous in the spectro-temporal sense, but the meaning of these (transmitted) channels may vary in time and with respect to the output channels, respectively.
[0040] Another inter-channel redundancy exploitation tool, complex stereo prediction, predicts in the spectral domain the frequency domain coefficients or spectral lines of one channel using the spectrally co-located lines of another channel, as will be described in more detail below.
[0041] To facilitate understanding of the following description of FIG. 2 and its illustrated components, FIG. 3 shows, for the exemplary case of a stereo audio signal represented by data stream 30, a possible way in which sample values for the spectral lines of the two channels can be encoded into the data stream 30 as processed by the decoder 10 of FIG. 2. In particular, the top half of FIG. 3 shows a spectrogram 40 of a first channel of the stereo audio signal, while the bottom half of FIG. 3 shows a spectrogram 42 of the other channel of the stereo audio signal. Here again, it is worth noting that the "meaning" of the spectrograms 40 and 42 may change over time, for example due to a time-varying switch between MS-coded and non-MS-coded domains. In a first example, the spectrograms 40 and 42 relate to the M and S channels, respectively, and from a later time, the spectrograms 40 and 42 relate to the left and right channels. The switch between the MS-coded and non-MS-coded domains may be signaled in the data stream 30.
[0042] 3 shows that the spectrograms 40 and 42 may be encoded in the data stream 30 with a time-varying spectrotemporal resolution. For example, both (transmitted) channels may be subdivided into a sequence of frames, indicated with braces 44, which may be of equal length and adjacent to each other without overlapping, in a time-aligned manner. As mentioned above, the spectral resolution at which the spectrograms 40 and 42 are represented in the data stream 30 may change over time. We will assume in advance that the spectrotemporal resolution varies equally in time for the spectrograms 40 and 42, but an extension of this simplification is possible, as will become clear from the following description. The change in the spectrotemporal resolution is, for example, signaled in the data stream 30 at the unit of frames 44. That is, the spectrotemporal resolution changes at the unit of frames 44. The change in the spectrotemporal resolution of the spectrograms 40 and 42 is achieved by switching the transform length and the number of transforms used to describe the spectrograms 40 and 42 within each frame 44. In the example of Fig. 3, frames 44a and 44b illustrate frames in which one long transform was used to sample the channels of the audio signal, thereby resulting in the highest spectral resolution with one spectral line sample value per spectral line for each such frame per channel. In Fig. 3, the spectral line sample values are indicated using small crosses in boxes, which may be arranged in rows and columns to represent a spectrotemporal grid, with each row corresponding to one spectral line and each column corresponding to a subinterval of frame 44 corresponding to the shortest transform involved in forming spectrograms 40 and 42. In particular, Fig. 3 shows that frames may alternatively undergo successive transforms of shorter length, resulting in a spectrum of reduced spectral resolution for several temporally subsequent frames such as frame 44d.Eight short transforms are exemplarily used for frame 44d, resulting in spectrotemporal sampling of the spectrograms 40 and 42 in that frame 42d with spectral lines spaced apart from one another, so that only every eighth spectral line is populated, but sample values of each of the eight transform windows or transforms of shorter length are used to transform frame 44d. For illustrative purposes, it is shown in FIG. 3 that other transform times for a frame may also be feasible, such as the use of two transforms of transform length, for example, half the transform length of the long transform for frames 44a and 44b, resulting in a spectrotemporal grid or sampling of the spectrograms 40 and 42 in which two spectral line sample values are obtained every two spectral lines, one associated with the preceding transform and the other associated with the following transform.
[0043] The transform windows into which the frame is subdivided are shown using overlapping window-like lines below each spectrogram in Figure 3. The temporal overlap serves the purpose of, for example, Time-Domain Aliasing Cancellation (TDAC).
[0044] Although it may be implemented differently in the embodiments described further below, FIG. 3 illustrates the case where switching between different spectrotemporal resolutions for individual frames 44 is performed in such a way that for each frame 44, the same number of spectral line values, indicated by small crosses in FIG. 3, result in spectrograms 40 and 42, with the difference simply being in the way the lines spectrotemporally sample each spectrotemporal tile corresponding to each frame 44, spanning in time over the time of each frame 44 and ranging from zero frequency to a maximum frequency f max The spectrum spans
[0045] Using the arrows in FIG. 3, FIG. 3 shows that a similar spectrum may be obtained for all frames 44 by appropriately distributing, for frame 44d, the spectral line sample values that are the same spectral line but belong to a short transform window in one frame of one channel, on unoccupied (empty) spectral lines in that frame up to the next occupied spectral line of the same frame. The spectrum obtained in this way is referred to below as an "interleaved spectrum". For example, in the interleaving of n transforms of one frame of one channel, the spectrally co-located spectral line values of n short transforms follow each other before being followed by a set of n spectrally co-located spectral line values of n short transforms of a spectrally subsequent spectral line. Intermediate forms of interleaving may also be possible, and instead of interleaving all the spectral line coefficients of one frame, it would be possible to interleave only the spectral line coefficients of a suitable subset of the short transforms of frame 44d. In any event, whenever spectra of two channel frames corresponding to spectrograms 40 and 42 are discussed, these spectra may be referred to as interleaved spectra or non-interleaved spectra.
[0046] In order to efficiently code the spectral line coefficients representing the spectrograms 40 and 42 via the data stream 30 sent to the decoder 10, the spectral line coefficients are quantized. To control the quantization noise spectrotemporally, the quantization step size is controlled via a scale factor set to a particular spectrotemporal grid. In particular, in each sequence of spectra of each spectrogram, the spectral lines are grouped into spectrally contiguous non-overlapping scale factor groups. FIG. 4 shows in its upper half a spectrum 46 of the spectrogram 40 and an identical time spectrum 48 from the spectrogram 42. As shown, the spectra 46 and 48 are subdivided along the spectral axis f into scale factor bands, grouping the spectral lines into non-overlapping groups. The scale factor bands are indicated in FIG. 4 using braces 50. For simplicity, it is assumed that the boundaries between the scale factor bands coincide between the spectra 46 and 48, but this does not necessarily have to be the case.
[0047] That is, by encoding the data stream 30, the spectrograms 40 and 42 are each subdivided into a time sequence of spectra, each of which is spectrally subdivided into scale factor bands, and for each scale factor band, the data stream 30 encodes or conveys information regarding the scale factor corresponding to the respective scale factor band. The spectral line coefficients falling into each scale factor band 50 are quantized using the respective scale factor, or, as far as the decoder 10 is concerned, can be dequantized using the scale factor of the corresponding scale factor band.
[0048] Before returning again to FIG. 2 and its description, it will be assumed in the following that the specially processed channel, one of the decodings in which certain elements of the decoder of FIG. 2 are included except for 34, is the transmitted channel of the spectrogram 40, which, as mentioned above, may represent one of the left and right channels, the M channel or the S channel, assuming that the multi-channel audio signal encoded in the data stream 30 is a stereo audio signal.
[0049] The spectral line extractor 20 is configured to extract the spectral line data, i.e. the spectral line coefficients of the frames 44 from the data stream 30, whereas the scale factor extractor 22 is configured to extract the scale factors corresponding to each frame 44. For this purpose, the extractors 20 and 22 can use entropy decoding. According to an embodiment, the scale factor extractor 22 is configured to sequentially extract the scale factors of, for example, the spectrum 46 of FIG. 4, i.e. the scale factors of the scale factor bands 50, from the data stream 30 using context-adaptive entropy decoding. The order of the sequential decoding can follow a spectral order defined among the scale factor bands, for example from low to high frequencies. The scale factor extractor 22 may use context-adaptive entropy decoding and may determine a context for each scale factor depending on already extracted scale factors in the spectral neighbourhood of the currently extracted scale factor, such as depending on the scale factors of the immediately preceding scale factor band. Alternatively, the scale factor extraction unit 22 may predictively decode scale factors from the data stream 30, such as by using differential decoding, while predicting the currently decoded scale factor based on any of the previously decoded scale factors, such as the immediately preceding scale factor. Of note, this process of scale factor extraction is agnostic with respect to scale factors that belong to scale factor bands that are exclusively populated by zero-quantized spectral lines or that are populated by spectral lines that are at least one quantized to a non-zero value. Scale factors that belong to scale factor bands that are populated only by zero-quantized spectral lines may serve as a basis for prediction for subsequent decoded scale factors that may belong to scale factor bands that are populated by one non-zero spectral lines, or may be predicted based on previously decoded scale factors that may belong to scale factor bands that are populated by one non-zero spectral lines.
[0050] For completeness only, it is noted that the spectral line extraction unit 20 extracts the spectral line coefficients for which the scale factor bands 50 are similarly populated, for example using entropy coding and / or predictive coding. The entropy coding may use context adaptivity based on the spectral line coefficients of a spectro-temporal neighborhood of the currently decoded spectral line coefficient, and similarly the prediction may be a spectral, temporal or spectro-temporal prediction that predicts the currently decoded spectral line coefficient based on previously decoded spectral line coefficients in its spectro-temporal neighborhood. To increase the coding efficiency, the spectral line extraction unit 20 may be configured to perform decoding of the spectral lines or line coefficients in tuples that collect or group the spectral lines along the frequency axis.
[0051] Thus, at the output of the spectral line extraction unit 20, the spectral line coefficients are provided, e.g. in spectral units, such as spectrum 46, which collects all the spectral line coefficients of the corresponding frame, or alternatively all the spectral line coefficients of a particular short transform of the corresponding frame. At the output of the scale factor extraction unit 22, the corresponding scale factor of each spectrum is output.
[0052] The scale factor band identification unit 12 and the inverse quantization unit 14 have a spectral line input coupled to the output of the spectral line extraction unit 20, and the inverse quantization unit 14 and the noise filling unit 16 have a scale factor input coupled to the output of the scale factor extraction unit 22. The scale factor band identification unit 12 is configured to identify so-called zero-quantized scale factor bands in the current spectrum 46, i.e. scale factor bands in which all spectral lines are quantized to zero, such as scale factor band 50c in FIG. 4, and the remaining scale factor bands of the spectrum in which at least one spectral line is quantized to a non-zero value. In particular, in FIG. 4, the spectral line coefficients are indicated using the shaded areas in FIG. 4. It can be seen that in the spectrum 46, all scale factor bands except for scale factor band 50b have at least one spectral line, and the spectral line coefficients are quantized to a non-zero value. It will become clear later that the zero-quantized scale factor bands such as 50d form the subject of inter-channel noise filling, which will be further explained below. Before proceeding, it is noted that the scale factor band identifier 12 may limit its identification to a suitable subset of the scale factor bands 50, such as scale factor bands above a particular start frequency 52. In Figure 4, this might limit the identification procedure to scale factor bands 50d, 50e and 50f.
[0053] The scale factor band identifier 12 informs the noise filler 16 on those scale factor bands that are zero quantized scale factor bands. The inverse quantizer 14 uses the scale factors associated with the inbound spectrum 46 to inverse quantize or scale the spectral line coefficients of the spectral lines of the spectrum 46 according to the associated scale factors, i.e., the scale factors associated with the scale factor bands 50. In particular, the inverse quantizer 14 inverse quantizes and scales the spectral line coefficients that fall into each scale factor band with the scale factors associated with the respective scale factor band. Figure 4 should be interpreted as showing the result of inverse quantization of the spectral lines.
[0054] The noise filling unit 16 obtains information regarding the zero quantized scalefactor bands that form the targets for subsequent noise filling, the inverse quantized spectrum, and the scale factors of at least those scalefactor bands that are identified as zero quantized scalefactor bands, as well as signaling obtained from the data stream 30 for the current frame that identifies whether inter-channel noise filling should be performed for the current frame.
[0055] The inter-channel noise filling process described in the following examples actually includes two types of noise filling: the insertion of a noise floor 54 for all spectral lines quantized to zero regardless of their potential membership in any zero-quantized scale factor bands, and the actual inter-channel noise filling procedure. This combination is described below, but it is emphasized that according to alternative embodiments, the noise floor insertion can be omitted. Furthermore, the signaling for noise filling on and off for the current frame and derived from the data stream 30 can relate to inter-channel noise filling only, or can control a combination of both noise filling types together.
[0056] As far as the insertion of the noise floor is concerned, the noise filler 16 may operate as follows. In particular, the noise filler 16 may use an artificial noise generator, such as a pseudorandom number generator or other random number source, to fill the spectral lines whose spectral line coefficients are zero. The level of the noise floor 54 thus inserted in the zero-quantized spectral lines may be set according to an explicit signaling in the data stream 30 for the current frame or current spectrum 46. The "level" of the noise floor 54 may be determined, for example, using a root-mean-square (RMS) or energy measurement.
[0057] The insertion of the noise floor thus represents a kind of pre-filling of the scale factor bands identified as zero quantized, such as the scale factor band 50d in FIG. 4. It also affects other scale factor bands than the zero quantized ones, the latter being further subject to the inter-channel noise filling below. As will be explained below, the inter-channel noise filling process consists in filling the zero quantized scale factor bands to a level controlled by the scale factor of the respective zero quantized scale factor band. The latter can be used directly for this purpose, since all the spectral lines of the respective zero quantized scale factor bands are quantized to zero. Nevertheless, the data stream 30 may contain, for each frame or each spectrum 46, an additional signaling of a parameter, which is applied in common to the scale factors of all the zero quantized scale factor bands of the corresponding frame or spectrum 46, and which, when applied on the scale factors of the zero quantized scale factor bands by the noise filling unit 16, results in the zero quantized scale factor bands being filled to their respective individual levels. That is, the noise filler 16 may use the same modification function to modify the scale factors of the individual scale factor bands for each zero quantized scale factor band of the spectrum 46, using the above-mentioned parameters for that spectrum 46 of the current frame contained in the data stream 30, to obtain a filling target level for each zero quantized scale factor band, which level, in terms of energy or RMS, is a measure of, for example, the level to which the inter-channel noise filling process should fill each individual zero quantized scale factor band with (optional) additional noise (in addition to the noise floor 54).
[0058] In particular, to perform the inter-channel noise filling 56, the noise filler 16 takes a spectrally co-located portion of the spectrum 48 of the other channel, which has already been largely or completely decoded, copies the resulting portion of the spectrum 48 into the zero-quantized scale factor band in which it is spectrally co-located, and scales the resulting overall noise level in the zero-quantized scale factor band, obtained by integration over the spectral lines of the respective scale factor band, to be equal to the above-mentioned filling target level obtained from the scale factors of the zero-quantized scale factor band. By this means, the tonality of the noise filled in each zero-quantized scale factor band is improved compared to the artificially generated noise that forms the basis of the noise floor 54, and is also better than uncontrolled spectral copying / replication from very low frequency lines in the same spectrum 46.
[0059] More precisely, the noise filler 16 places for a current band such as 50d a spectrally co-located portion in the spectrum 48 of the other channel and scales its spectral lines depending on the scale factor of the zero quantized scale factor band 50d, in a manner that may optionally include any additional offset or noise factor parameters included in the data stream 30 for the current frame or spectrum 46, so that each zero quantized scale factor band 50d is filled to the desired level as defined by the scale factor of the zero quantized scale factor band 50d. In the present embodiment, this means that the filling is done in an additive manner with respect to the noise floor 54.
[0060] According to a simplified embodiment, the resulting noise-filled spectrum 46 may be directly input to the input of the inverse transform unit 18, which may obtain, for each transform window to which the spectral line coefficients of the spectrum 46 belong, a time domain portion of the respective channel audio time signal, and then combine these time domain portions by an overlap-add process (not shown in FIG. 2). That is, if the spectrum 46 is a non-interleaved spectrum and the spectral line coefficients belong to only one transform, the inverse transform unit 18 performs that transform to result in one time domain portion, and the leading and trailing ends of the time domain portion may be subjected to an overlap-add process with the leading and trailing time domain portions obtained by inverse transforming the leading and trailing transforms, so that, for example, time domain aliasing cancellation can be achieved. However, if spectrum 46 has interleaved spectral line coefficients of two or more successive transforms, inverse transform unit 18 may apply separate inverse transforms to them to obtain one time domain portion per inverse transform, and these time domain portions may be subjected to overlap-add operations with preceding and succeeding time domain portions of other spectra or frames between them, according to a defined temporal order between them.
[0061] However, for completeness, it should be noted that further processing can be performed on the noise-filled spectrum. As shown in Fig. 2, an inverse TNS filter can perform inverse TNS filtering on the noise-filled spectrum. That is, the spectrum obtained so far, controlled via the TNS filter coefficients for the current frame or spectrum 46, is subjected to linear filtering along the spectral direction.
[0062] With or without inverse TNS filtering, the complex stereo predictor 24 can treat the spectrum as a prediction residual of inter-channel prediction. More specifically, the inter-channel predictor 24 can use spectrally co-located portions of other channels to predict the spectrum 46 or at least a subset of its scale factor bands 50. The complex prediction process is illustrated in FIG. 4 with dashed box 58 in relation to scale factor band 50b. That is, the data stream 30 can include inter-channel prediction parameters that, for example, control which of the scale factor bands 50 are inter-channel predicted and which should not be so predicted. Furthermore, the inter-channel prediction parameters in the data stream 30 can further include complex inter-channel prediction factors that are applied by the inter-channel predictor 24 to obtain the inter-channel prediction result. These factors may be included in the data stream 30 for each scale factor band for which inter-channel prediction is activated or signaled in the data stream 30, or alternatively individually for each group of one or more scale factor bands.
[0063] The source of the inter-channel prediction may be the spectrum 48 of the other channel, as shown in Fig. 4. More precisely, the source of the inter-channel prediction may be a spectrally co-located part of the spectrum 48 co-located with the inter-channel predicted scale factor band 50b, extended by an estimate of its imaginary part. The estimation of the imaginary part may be performed based on the spectrally co-located part 60 of the spectrum 48 itself and / or may use a downmix of an already decoded channel of the previous frame, i.e. the frame immediately preceding the currently decoded frame to which the spectrum 46 belongs. In short, the inter-channel prediction unit 24 applies the predicted signal obtained as just described to an inter-channel predicted scale factor band, such as the scale factor band 50b in Fig. 4.
[0064] As already mentioned in the above description, the channel to which the spectrum 46 belongs may be an MS-encoded channel or a speaker-related channel, such as the left or right channel of a stereo audio signal. Optionally, therefore, the MS decoder 26 may optionally perform an MS decoding on the inter-channel predicted spectrum 46, in which it performs, for each spectral line or spectrum 46, an addition or subtraction with a spectrally corresponding spectral line of the other channel corresponding to the spectrum 48. For example, although not shown in Fig. 2, the spectrum 48 as shown in Fig. 4 has been obtained by the part 34 of the decoder 10 in a similar manner as previously described for the channel to which the spectrum 46 belongs, and the MS decoding module 26, in performing the MS decoding, performs a spectral line-by-line addition or a spectral line-by-line subtraction on the spectra 46 and 48, meaning that both spectra 46 and 48 are at the same stage in the processing line, for example both have just been obtained by inter-channel prediction or both have just been obtained by noise filling or inverse TNS filtering.
[0065] It should be noted that, optionally, MS decoding may be performed globally for the entire spectrum 46, or may be individually activated by the data stream 30, e.g., on the unit of scale factor bands 50. In other words, MS decoding may be switched on or off, e.g., on the unit of a frame, or on the unit of some finer spectro-temporal resolution, e.g., individually for the scale factor bands of spectra 46 and / or 48 of spectrograms 40 and / or 42, using respective signaling in data stream 30, where it is assumed that the same boundaries of the scale factor bands of both channels are defined.
[0066] 2, the inverse TNS filtering by the inverse TNS filter 28 can also be performed after any inter-channel processing, such as inter-channel prediction 58 or MS decoding by the MS decoder 26. The performance before or downstream of the inter-channel processing can be fixed or controlled via respective signaling for each frame in the data stream 30 or at some other granularity. Whenever the inverse TNS filtering is performed, the respective TNS filter coefficients present in the data stream of the current spectrum 46 control the TNS filter, i.e., a linear prediction filter operating along the spectral direction, to linearly filter the inbound spectrum to the respective inverse TNS filter module 28a and / or 28b.
[0067] Thus, the spectrum 46 arriving at the input of the inverse transform unit 18 may have undergone further processing as just described. Again, the above description is not intended to be understood as requiring that all of these optional tools be present simultaneously or not. These tools may be present in the decoder 10 partially or collectively.
[0068] In any case, the resulting spectrum at the input of the inverse transform represents the final reconstruction of the output signal of the channel and forms the basis of the aforementioned downmix for the current frame, which serves as the basis for the estimation of the potential imaginary part of the next frame to be decoded, as explained with respect to the complex prediction 58. It can further serve as the final inter-channel reconstruction for predicting another channel, which is not the channel to which the elements other than 34 in FIG. 2 relate.
[0069] The respective downmix is formed by the downmix providing unit 31 by combining this final spectrum 46 with a respective final version of the spectrum 48. The latter entity, i.e. the respective final version of the spectrum 48, formed the basis of the complex inter-channel prediction in the prediction unit 24.
[0070] Insofar as the basis for the inter-channel noise filling is represented by a downmix of spectrally co-located spectral lines of the previous frame, Fig. 5 shows an alternative to Fig. 2, where in the optional case of using complex inter-channel prediction, this source of complex inter-channel prediction is used twice, as a source of inter-channel noise filling and as a source for the estimation of the imaginary part in the complex inter-channel prediction. Fig. 5 shows a decoder 10 including a part 70 related to the decoding of the first channel to which the spectrum 46 belongs, and the internal structure of said other part 34 involved in the decoding of the other channel containing the spectrum 48. The same reference signs are used for the internal elements of the part 70 on the one hand and the part 34 on the other hand. As can be seen, the configuration is the same. At the output 32, one channel of the stereo audio signal is output, and at the output of the inverse transform part 18 of the second decoder part 34, the other (output) channel of the stereo audio signal is obtained, this output being indicated by the reference sign 74. Again, the above-described embodiment can be easily transferred to the case of using more than two channels.
[0071] The downmix provider 31 receives the spectra 48 and 46 shared by both parts 70 and 34 and located at the same time in the spectrograms 40 and 42, and forms a downmix on their basis by summing these spectra spectral line by spectral line, and possibly forming an average by dividing the sum in each spectral line by the number of channels to be downmixed, i.e. by 2 in the case of Fig. 5. At the output of the downmix provider 31, the downmix of the previous frame is obtained by this measurement. In this regard, it should be noted that in the case of a previous frame containing more than one spectrum in any one of the spectrograms 40 and 42, different possibilities exist as to how the downmix provider 31 operates in that case. For example, in this case the downmix provider 31 may use the spectrum of a subsequent transformation of the current frame or may use an interleaving result that interleaves all the spectral line coefficients of the current frame in the spectrograms 40 and 42. 5 connected to the output of the downmix providing unit 31 indicates that the downmix provided at the output of the downmix providing unit 31 forms the downmix of a previous frame 76 (see FIG. 4 for inter-channel noise filling 56, complex prediction 58, respectively). The output of the delay element 74 is therefore connected on the one hand to an input of the inter-channel prediction unit 24 of the decoder parts 34 and 70 and on the other hand to an input of the noise filling unit 16 of the decoder parts 70 and 34.
[0072] That is, while in Fig. 2 the noise filler 16 receives the final reconstructed temporally co-located spectrum 48 of the other channel of the same current frame as a basis for inter-channel noise filling, in Fig. 5 the inter-channel noise filling is instead performed on the basis of the downmix of the previous frame as provided by the downmix provider 31. The way in which the inter-channel noise filling is performed is the same: the inter-channel noise filler 16 takes the spectrally co-located parts from the respective spectra of the other channels of the current frame in the case of Fig. 2, or the almost or completely decoded final spectrum from the previous frame representing the downmix of the previous frame in the case of Fig. 5, and further adds to the spectral lines in the scale factor bands to be noise filled, such as 50d in Fig. 4, the same "source" parts scaled according to the target noise level determined by the scale factor of the respective scale factor band.
[0073] Concluding the above discussion of the embodiment describing inter-channel noise filling in an audio decoder, it will be clear to the reader skilled in the art that, before adding the captured spectrally or temporally co-located portion of the "source" spectrum to the spectral lines of the "target" scale factor band, certain pre-processing can be applied to the "source" spectral lines without departing from the general concept of inter-channel filling. In particular, to improve the audio quality of the inter-channel noise filling process, it may be beneficial to apply filtering operations, such as, for example, spectral flattening or detiling, to the spectral lines of the "source" region that are added to the "target" scale factor band, such as 50d in FIG. 4. Similarly, and as an example of a nearly (instead of completely) decoded spectrum, the aforementioned "source" portion can be obtained from a spectrum that has not yet been filtered by the available inverse (i.e., synthetic) TNS filter.
[0074] Thus, the above embodiments were concerned with the concept of inter-channel noise filling. In the following, it will be described how the above concept of inter-channel noise filling can be incorporated in an existing codec, namely xHE-AAC, in a quasi-backward compatible manner. In particular, a preferred implementation of the above embodiments is described below, in which a stereo filling tool is incorporated in an xHE-AAC-based audio codec in a quasi-backward compatible signaling manner. By using the embodiments further described below, stereo filling of transform coefficients of either one of the two channels in an audio codec based on MPEG-D xHE-AAC (USAC) is possible, which improves the coding quality of a certain audio signal, especially at low bit rates. The stereo filling tool is signaled in a quasi-backward compatible manner so that a legacy xHE-AAC decoder can parse and decode the bitstream without obvious audio errors or omissions. As already mentioned above, a better overall quality can be obtained if the audio coder can reconstruct the zero-quantized (not transmitted) coefficients of any one of the currently decoded channels using a combination of previously decoded / quantized coefficients of the two stereo channels. In audio coders, particularly in xHE-AAC or coders based thereon, it is desirable to enable such stereo filling (from previous channel coefficients to current channel coefficients) in addition to spectral band replication (from low frequency channel coefficients to high frequency channel coefficients) and noise filling (from uncorrelated pseudorandom sources).
[0075] To allow bitstreams encoded with stereo filling to be read and parsed by legacy xHE-AAC decoders, the desired stereo filling tool should be used semi-backwards compatible and its presence should not cause legacy decoders to stop - or even start - decoding. Bitstream readability by the xHE-AAC infrastructure also facilitates market adoption.
[0076] In order to achieve the desire for quasi-backward compatibility with respect to the stereo-filling tool, mentioned above in the context of xHE-AAC or its potential derivatives, the following embodiment includes the functionality of stereo-filling and the ability to signal it via syntax in the data stream that actually relates to noise-filling. The stereo-filling tool works along the lines of the above description. In a channel pair with a common window configuration, when the stereo-filling tool is activated as an alternative to noise-filling (or in addition to noise-filling as described above), the coefficients of the zero-quantized scale factor bands are reconstructed by the sum or difference of the coefficients of the previous frame in one of the two channels, preferably the right channel. The stereo-filling is performed similarly to the noise-filling. The signaling is done via the noise-filling signaling of xHE-AAC. The stereo-filling is signaled by 8-bit noise-filling side information. This is possible as described in the MPEG-D USAC standard [3] that all 8 bits are transmitted even if the applied noise level is zero. In such a situation, some of the noise-filling bits can be reused for the stereo-filling tool.
[0077] Semi-backward compatibility with respect to bitstream parsing and playback by legacy xHE-AAC decoders is ensured as follows: Stereo fill is signaled via a zero noise level (i.e. the first three noise fill bits having all zero values) followed by five non-zero bits (traditionally representing the noise offset) containing the stereo fill tool side information and the loss noise level. If the three noise level bits are zero, the legacy xHE-AAC decoder ignores the value of the five noise offset bits, so the presence of the stereo fill tool signaling only has an effect on the noise fill in the legacy decoder, and since the first three bits are zero, the noise fill is turned off and the remaining decoding operation works as intended. In particular, the stereo fill is not implemented due to the fact that it operates similarly to the deactivated noise fill process. Thus, the legacy decoder still performs a "graceful" decoding of the enhanced bitstream 30, since it does not need to mute the output signal or even halt the decoding when it reaches a frame with stereo fill turned on. Of course, it is not possible to reconstruct the stereo-filled linear coefficients exactly as intended, resulting in a degradation of quality in the affected frames compared to decoding by a suitable decoder that can properly cope with the new stereo-filling tool. Nevertheless, assuming that the stereo-filling tool is used as intended, i.e., only for stereo input at low bit rates, the quality from the xHE-AAC decoder should be good compared to the case where the affected frames are dropped due to muting or have other obvious playback errors.
[0078] In the following it is described in detail how the stereo filling tool can be incorporated into the xHE-AAC codec as an extension.
[0079] When incorporated into the standard, the stereo-filling tool can be described as follows. In particular, such a stereo-filling (SF) tool would represent a new tool in the frequency domain (FD) part of MPEG-H 3D Audio. Following the above description, the aim of such a stereo-filling tool would be a parametric reconstruction of MDCT spectral coefficients at low bit rates, similar to what can already be achieved by noise-filling according to section 7.2 of the standard described in [3]. However, unlike noise-filling, which utilizes a pseudo-random noise source for the generation of the MDCT spectral values of any FD channel, the SF would also be available to reconstruct the MDCT values of the right channel of a jointly coded stereo pair of channels, using a downmix of the left and right MDCT spectra of the previous frame. The SF is signaled in a quasi-backward compatible manner by noise-filling side information that can be accurately parsed by legacy MPEG-D USAC decoders, according to the embodiment described below.
[0080] The tool description may be as follows: When SF is active in a joint stereo FD frame, the MDCT coefficients of the empty (i.e. completely zero-quantized) scale factor bands of the right (second) channel, such as 50d, are replaced by the sum or difference of the corresponding decoded left and right channel MDCT coefficients of the previous frame (in the FD case). If legacy noise filling is active for the second channel, a pseudorandom value is also added to each coefficient. The resulting coefficients of each scale factor band are then scaled such that the RMS (root mean square of the coefficients) of each band matches the value transmitted by the scale factor of that band. See section 7.3 of the standard in [3].
[0081] The use of new SF tools in the MPEG-D USAC standard may result in some operational constraints. For example, SF tools may only be available for use in the right FD channel of common FD channel pairs, i.e., channel pair elements carrying StereoCoreToolInfo() with common_window==1. In addition, due to semi-backward compatible signaling, SF tools may only be available for use if noiseFilling==1 in the syntax container UsacCoreConfig(). If any of the channels in the pair are in LPD core_mode, SF tools may not be used even if the right channel is in FD mode.
[0082] The following terms and definitions are used to more clearly describe this extension of the standard, as explained in [3].
[0083] In particular, as far as data elements are concerned, the following data elements are newly introduced: stereo_filling Binary flag indicating whether SF is used in the current frame and channel. In addition, new auxiliary elements are introduced. noise_offset A noise filling offset to modify the scale factor of zero-quantized bands (Section 7.2) noise_level The noise filling level (section 7.2) which describes the amplitude of the added spectral noise downmix_prev[] Downmix of the left and right channels of the previous frame (i.e. sum or difference) sf_index[g][sfb] Scale factor index (i.e., the integer to be transmitted) for window group g and band sfb.
[0084] This standard decoding process can be extended as follows: In particular, the decoding of joint stereo encoded FD channels with the SF tool activated is performed in three sequential steps as follows:
[0085] First, the stereo_filling flag may be decoded. stereo_filling does not represent a separate bitstream element, but is derived from the noise filling elements noise_offset and noise_level in UsacChannelPairElement() and the common_window flag in StereoCoreToolInfo(). If noiseFilling==0, common_window==0, or the current channel is the left (first) channel in the element, then stereo_filling is 0 and the stereo filling process ends. Otherwise, if ((noiseFilling != 0) && (common_window != 0) && (noise_level == 0)) { stereo_filling = (noise_offset & 16) / 16; noise_level = (noise_offset & 14) / 2; noise_offset = (noise_offset & 1) * 16; } else { stereo_filling = 0; }
[0086] In other words, if noise_level==0, noise_offset contains the stereo_filling flag followed by 4 bits of noise filling data, which are then rearranged. This operation needs to be performed before the noise filling process of section 7.2, since it changes the values of noise_level and noise_offset. Furthermore, the above pseudocode is not performed on the left (first) channel of UsacChannelPairElement() or any other element.
[0087] Next, the calculation of downmix_prev will be performed. The spectral downmix to be used for stereo filling, downmix_prev[], is identical to the dmx_re_prev[] used for the MDST spectral estimation in complex stereo prediction (Section 7.7.2.3). This means that:
[0088] If the frame and element for which downmixing is performed, i.e. any of the channels of the frame previous to the currently decoded frame, use core_mode==1 (LPD) or the channels use non-uniform transform length (split_transform==1 or block switching to window_sequence==EIGHT_SHORT_SEQUENCE in the only channel) or usacIndependencyFlag==1, then all coefficients in downmix_prev[] must be zero.
[0089] If in the current element the transform length of the channels has changed from the last frame to the current frame (i.e. split_transform==0 before split_transform==1 or window_sequence !=EIGHT_SHORT_SEQUENCE before window_sequence==EIGHT_SHORT_SEQUENCE or vice versa), all coefficients in downmix_prev[] must be zero during the stereo filling process.
[0090] If transform splitting is applied on the channels of the previous or current frame, downmix_prev[] represents the line-by-line interleaved spectral downmix. See the Transform Split Tool for details.
[0091] If complex stereo prediction is not used in the current frame and element, pred_dir is equal to 0.
[0092] As a result, the pre-downmix has to be calculated only once for both tools, saving computations. The only difference between downmix_prev[] and dmx_re_prev[] in section 7.7.2 is the behavior when complex stereo prediction is not currently used, or when complex stereo prediction is active but use_prev_frame==0. In that case downmix_prev[] is calculated for stereo fill decoding according to section 7.7.2.3, even if dmx_re_prev[] is not needed for complex stereo prediction decoding and is therefore undefined / zero.
[0093] Afterwards, stereo filling of the empty scalefactor bands will be performed.
[0094] If stereo_filling==1, after noise filling in all initially empty scale factor bands sfb[] below max_sfb_ste, i.e. all bands in which all MDCT lines were quantized to zero, the following procedure is performed: First, the energy of the corresponding line in this given sfb[] and downmix_prev[] is calculated by the sum of the squares of the lines. Then, for each group window spectrum, an sfbWidth is given that contains the above number of lines per sfb[].
[0095] if (energy[sfb] < sfbWidth[sfb]) { / * noise level isn't maximum, or band starts below noise-fill region * / facDmx = sqrt((sfbWidth[sfb] - energy[sfb]) / energy_dmx[sfb]); factor = 0.0; / * if the previous downmix isn't empty, add the scaled downmix lines such that band reaches unity energy * / for (index = swb_offset[sfb]; index < swb_offset[sfb+1]; index++) { spectrum[window][index] += downmix_prev[window][index] * facDmx; factor += spectrum[window][index] * spectrum[window][index]; } if ((factor != sfbWidth[sfb]) && (factor > 0)) { / * unity energy isn't reached, so modify band * / factor = sqrt(sfbWidth[sfb] / (factor + 1e-8)); for (index = swb_offset[sfb]; index < swb_offset[sfb+1]; index++) { spectrum[window][index] *= factor; } } }
[0096] Scale factors are then applied to the resulting spectrum as in Section 7.3, with empty band scale factors being treated like normal scale factors.
[0097] An alternative to the above extension of the xHE-AAC standard would use an implicit semi-backward compatible signaling method.
[0098] The above embodiment in the framework of the xHE-AAC code describes how to signal the usage of the new stereo filling tool to the decoder according to Fig. 2 by using one bit in the bitstream contained in stereo_filling. More precisely, such signaling (called explicit quasi-backwards compatible signaling) allows the following legacy bitstream data - here the noise filling side information - to be used independently of the SF signaling, and in the present embodiment the noise filling data does not depend on the stereo filling information and vice versa. For example, the noise filling data consisting of all zeros (noise_level=noise_offset=0) may be transmitted, while stereo_filling may signal any possible value (being a binary flag, either 0 or 1).
[0099] If strict independence between the legacy bitstream data and the bitstream data of the present invention is not required and the signal of the present invention is a binary decision, the explicit transmission of the signaling bit can be avoided, and said binary decision can also be signaled by the presence or absence of a signal, which may be called implicit quasi-backward compatible signaling. Taking the above embodiment as an example again, the usage of stereo filling can be signaled by simply utilizing the new signaling, where the stereo_filling flag is set equal to 1 if noise_level is zero and at the same time noise_offset is non-zero. If noise_level and noise_offset are both non-zero, stereo_filling is equal to 0. This implicit signaling dependency on the legacy noise filling signal occurs when both noise_level and noise_offset are zero. In this case, it is unclear whether the legacy or the new SF implicit signaling is used. To avoid such ambiguity, the value of stereo_filling must be predefined. In this example, if the noise filling data consists of all zeros, it is appropriate to define stereo_filling=0, because this is what legacy encoders that do not have stereo filling capability signal when noise filling should not be applied to a frame.
[0100] An open question in the case of implicit quasi-backwards compatible signaling is how to signal that stereo_filling==1 and at the same time there is no noise filling. As mentioned above, the noise filling data must not be "all zero" and if a zero noise magnitude is required, noise_level ((noise_offset&14) / 2 as mentioned above) must be equal to 0. This leaves only noise_offsets greater than 0 ((noise_offset&1)*16 as mentioned above) as solutions. However, even if noise_level is zero, noise_offset is taken into account when applying scale factors in the case of stereo filling. Advantageously, when writing the bitstream, the encoder can compensate for the fact that a zero noise_offset may not be transmitted by modifying the affected scale factors such that they include an offset that is not implemented in the decoder via noise_offset. This allows the implicit signaling in the above embodiment at the cost of a potential increase in the data rate of the scale factors. Therefore, the stereo filling signaling in the pseudocode described above can be modified as follows, using the saved SF signaling bits to convey noise_offset with 2 bits (4 values) instead of 1 bit:
[0101] if ((noiseFilling) && (common_window) && (noise_level == 0) && (noise_offset > 0)) { stereo_filling = 1; noise_level = (noise_offset & 28) / 4; noise_offset = (noise_offset & 3) * 8; } else { stereo_filling = 0; }
[0102] For the sake of completeness, Fig. 6 shows a parametric audio encoder according to an embodiment of the present application. First of all, the encoder of Fig. 6, generally indicated using the reference number 90, comprises a transform unit 92 for performing a transformation of the undistorted original version of the reconstructed audio signal at the output 32 of Fig. 2. As explained in relation to Fig. 3, a lapped transform may be used, switching between different transform lengths with corresponding transform windows on a frame 44 basis. The different transform lengths and the corresponding transform windows are indicated in Fig. 3 using the reference number 104. As in Fig. 2, Fig. 6 focuses on a part of the encoder 90 responsible for encoding one channel of a multi-channel audio signal, while the other channel domain parts of the encoder 90 are generally indicated in Fig. 6 using the reference number 96.
[0103] At the output of the transformer 92, the spectral lines and the scale factors are not quantized and no substantial coding loss has yet occurred. The spectrogram output by the transformer 92 enters a quantizer 98, which is configured to set and use preliminary scale factors of the scale factor bands to spectrally quantize the spectral lines of the spectrogram output by the transformer 92. That is, at the output of the quantizer 98, preliminary scale factors and corresponding spectral line coefficients are provided, and the sequence of the noise filler 16', the optional inverse TNS filter 28a', the inter-channel predictor 24', the MS decoder 26' and the inverse TNS filter 28b' is connected in series, thus giving the encoder 90 of Fig. 6 the ability to obtain a reconstructed final version of the current spectrum as it can be obtained at the input of the downmix provider (see Fig. 2) on the decoder side. In case of using an inter-channel prediction unit 24' and / or an inter-channel noise filling in the version forming the inter-channel noise using a downmix of a previous frame, the encoder 90 also comprises a downmix provider 31' for forming a downmix of a reconstructed final version of the spectrum of the channels of the multi-channel audio signal. Of course, in order to save computations, the unquantized original version of said spectrum of the channel may be used by the downmix provider 31' for forming the downmix instead of the final version.
[0104] The encoder 90 may use information about the available reconstructed final version of the spectrum to perform inter-frame spectral prediction, such as the possible version described above that performs inter-channel prediction using imaginary part estimation, and / or may perform rate control, i.e., in a rate control loop, determine the possible parameters that will be finally encoded by the encoder 90 into the data stream 30 to be set optimally in terms of rate / distortion.
[0105] For example, one parameter set within such prediction and / or rate control loop of the encoder 90 is the scale factor of the respective scale factor band, simply pre-set by the quantizer 98 for each zero-quantized scale factor band identified by the identifier 12'. Within the prediction and / or rate control loop of the encoder 90, the scale factors of the zero-quantized scale factor bands are set to be psychoacoustic or rate / distortion optimal, which determines the above-mentioned target noise level as well as the above-mentioned optional correction parameters conveyed by the data stream to the decoder side for the corresponding frame. It should be noted that this scale factor may be calculated using only the spectral lines of the spectrum and the channel to which it belongs (i.e. the above-mentioned "target" spectrum), or alternatively, may be determined using both the spectral lines of the "target" channel spectrum and additionally the spectral lines of other channel spectra or the downmix spectrum from the previous frame obtained from the downmix provider 31' (i.e. the above-mentioned "source" spectrum). In particular, to stabilize the target noise level and reduce temporal level variations in the decoded audio channels to which inter-channel noise filling has been applied, the target scale factor may be calculated using the relationship between the energy measures of the spectral lines in the "target" scale factor bands and the energy measures of the spectral lines at the same location in the corresponding "source" region. Finally, as mentioned above, this "source" region may originate from a reconstructed final version of another channel or a downmix of the previous frame, or, if the amount of computation of the encoder is to be reduced, from a downmix of the unquantized original version of said other channel or the unquantized original version of the spectrum of the previous frame.
[0106] In the following, multi-channel encoding and multi-channel decoding according to an embodiment will be described. In the embodiment, the multi-channel processing unit 204 of the device 201 for decoding of Fig. 1a may be configured to perform one or more of the following techniques, for example, described for noise multi-channel decoding.
[0107] However, first, before describing multi-channel decoding, multi-channel encoding according to an embodiment will be described with reference to FIGS. 7 to 9, and then multi-channel decoding will be described with reference to FIGS.
[0108] Now, multi-channel encoding according to an embodiment will be described with reference to Figs. 7 to 9 and 11.
[0109] FIG. 7 shows a schematic block diagram of an apparatus (encoder) 100 for encoding a multi-channel signal 101 having at least three channels CH1 to CH3.
[0110] The apparatus 100 comprises an iterative processing unit 102 , a channel encoder 104 and an output interface 106 .
[0111] The iterative processing unit 102 is configured to calculate, in a first iteration step, an inter-channel correlation value between each pair of at least three channels CH1-CH3, in order to select a pair having the highest value or a pair having a value above a threshold, and to process the selected pair using a multi-channel processing operation to derive a multi-channel parameter MCH_PAR1 for the selected pair, and to derive first processed channels P1 and P2. Hereinafter, such a processed channel P1 and such a processed channel P2 are also referred to as a composite channel P1 and a composite channel P2, respectively. Furthermore, the iterative processing unit 102 is configured to perform calculation, selection and processing in a second iteration step using at least one of the processed channels P1 or P2 to derive a multi-channel parameter MCH_PAR2 and second processed channels P3 and P4.
[0112] For example, as shown in FIG. 7, in a first iteration step, the iterative processing unit 102 may calculate an inter-channel correlation value between a first pair of at least three channels CH1 to CH3, where the first pair consists of a first channel CH1 and a second channel CH2, an inter-channel correlation value between a second pair of at least three channels CH1 to CH3, where the second pair consists of a second channel CH2 and a third channel CH3, and an inter-channel correlation value between a third pair of at least three channels CH1 to CH3, where the third pair consists of the first channel CH1 and a third channel CH3.
[0113] In FIG. 7, it is assumed that in the first iteration step, a third pair consisting of a first channel CH1 and a third channel CH3 includes the highest inter-channel correlation value, and the iterative processing unit 102 selects the third pair having the highest inter-channel correlation value in the first iteration step, derives a multi-channel parameter MCH_PAR1 for the selected pair using a multi-channel processing operation, and processes the selected pair, i.e., the third pair, to derive the first processed channels P1 and P2.
[0114] Furthermore, the iterative processing unit 102 may be configured to calculate inter-channel correlation values between each pair of at least three channels CH1 to CH3 and the processed channels P1 and P2 in the second iterative step to select in the second iterative step the pair having the highest value or the pair having a value above a threshold value, whereby the iterative processing unit 102 may be configured not to select in the second iterative step (or any further iterative step) the selected pair of the first iterative step.
[0115] Referring to the example shown in FIG. 7, the iterative processing unit 102 may further calculate an inter-channel correlation value between a fourth channel pair consisting of the first channel CH1 and the first processed channel P1, an inter-channel correlation value between a fifth pair consisting of the first channel CH1 and the second processed channel P2, an inter-channel correlation value between a sixth pair consisting of the second channel CH2 and the first processed channel P1, an inter-channel correlation value between a seventh pair consisting of the second channel CH2 and the second processed channel P2, an inter-channel correlation value between an eighth pair consisting of the third channel CH3 and the first processed channel P1, an inter-channel correlation value between a ninth pair consisting of the third channel CH3 and the second processed channel P2, and an inter-channel correlation value between a tenth pair consisting of the first processed channel P1 and the second processed channel P2.
[0116] In FIG. 7, it is assumed that in the second iteration step, the sixth pair consisting of the second channel CH2 and the first processed channel P1 contains the highest inter-channel correlation value, and the iterative processing unit 102 selects the sixth pair in the second iteration step, derives a multi-channel parameter MCH_PAR2 for the selected pair using a multi-channel processing operation, and processes the selected pair, i.e., the sixth pair, to derive the second processed channels P3 and P4.
[0117] The iterative processor 102 may be configured to select pairs only if their level difference is less than a threshold, the threshold being less than 40 dB, 25 dB, 12 dB or less than 6 dB, whereby a threshold of 25 or 40 dB corresponds to a rotation angle of 3 or 0.5 degrees.
[0118] The iterative processor 102 may be configured to calculate a normalized integer correlation value, and the iterative processor 102 may be configured to select the pair if the integer correlation value is greater than, for example, 0.2, preferably 0.3.
[0119] Furthermore, the iterative processing unit 102 may provide channels resulting from the multi-channel processing to the channel encoder 104. For example, referring to Fig. 7, the iterative processing unit 102 may provide the third processed channel P3 and the fourth processed channel P4, which are the results of the multi-channel processing performed in the second iteration step, and the second processed channel P2, which is the result of the multi-channel processing performed in the first iteration step, to the channel encoder 104. Thereby, the iterative processing unit 102 can provide only those processed channels, which will not be (further) processed in the subsequent iteration step, to the channel encoder 104. As shown in Fig. 7, the first processed channel P1 is not provided to the channel encoder 104 since it will be further processed in the second iteration step.
[0120] The channel encoder 104 may be configured to encode the channels P2 to P4 which are the result of the iterative processing (or multi-channel processing) performed by the iterative processing unit 102 to obtain encoded channels E1 to E3.
[0121] For example, the channel encoder 104 may be configured to use mono encoders (or mono boxes or mono tools) 120_1-120_3 for encoding the channels P2-P4 resulting from the iterative process (or multi-channel process). The mono boxes may be configured to encode the channels such that fewer bits are required to encode a channel having less energy (or smaller amplitude) than to encode a channel having more energy (or higher amplitude). The mono boxes 120_1-120_3 may be, for example, transform-based audio encoders. Furthermore, the channel encoder 104 may be configured to use a stereo encoder (for example, a parametric stereo encoder or a lossy stereo encoder) for encoding the channels P2-P4 resulting from the iterative process (or multi-channel process).
[0122] The output interface 106 may be configured to generate an encoded multi-channel signal 107 comprising the encoded channels E1 to E3 and the multi-channel parameters MCH_PAR1 and MCH_PAR2.
[0123] For example, output interface 106 may be configured to generate encoded multi-channel signal 107 as a serial signal or serial bit stream, with multi-channel parameter MCH_PAR2 being before multi-channel parameter MCH_PAR1 in encoded signal 107. Thus, a decoder in the embodiment described below with respect to Figure 10 receives multi-channel parameter MCH_PAR2 before multi-channel parameter MCH-PAR1.
[0124] In Fig. 7, the iterative processing unit 102 exemplarily performs two multi-channel processing operations, namely a multi-channel processing operation in a first iterative step and a multi-channel processing operation in a second iterative step. Of course, the iterative processing unit 102 can also perform further multi-channel processing operations in subsequent iterative steps. Thereby, the iterative processing unit 102 can be configured to perform the iterative steps until an iterative termination criterion is reached. The iterative termination criterion can be that the maximum number of iterative steps is equal to or greater than the total number of channels of the multi-channel signal 101 by two or more, or the iterative termination criterion is that the inter-channel correlation value does not have a value greater than a threshold, the threshold being preferably greater than 0.2, or the threshold being preferably 0.3. In further embodiments, the iterative termination criterion is that the maximum number of iterative steps is equal to or greater than the total number of channels of the multi-channel signal 101, or the iterative termination criterion is that the inter-channel correlation value does not have a value greater than a threshold, the threshold being preferably greater than 0.2, or the threshold being preferably 0.3.
[0125] For illustrative purposes, the multi-channel processing operations performed by the iterative processing unit 102 in the first and second iteration steps are exemplarily shown in Fig. 7 by processing boxes 110 and 112. Processing boxes 110 and 112 may be implemented in hardware or software. Processing boxes 110 and 112 may be, for example, stereo boxes.
[0126] This allows inter-channel signal dependencies to be exploited by applying known joint stereo coding tools in a hierarchical manner. In contrast to previous MPEG approaches, the processed signal pairs are not predetermined by a fixed signal path (e.g., a stereo coding tree) but can be dynamically changed to adapt to the input signal characteristics. The inputs of the actual stereo box can be (1) unprocessed channels, such as channels CH1-CH3, (2) the output of a preceding stereo box, such as processed signals P1-P4, or (3) a composite channel of the unprocessed channels and the output of a preceding stereo box.
[0127] The processing in the stereo boxes 110 and 112 can be either prediction-based (like the complex prediction box in USAC) or KLT / PCA-based (the input channels are rotated in the encoder (e.g., via a 2x2 rotation matrix) to maximize energy compaction, i.e., concentrate the signal energy in one channel, and in the decoder the rotated signal is retransformed back to the original input signal orientation).
[0128] In a possible embodiment of the encoder 100, (1) the encoder calculates the inter-channel correlation between each channel pair, selects one appropriate signal pair from the input signal, and applies the stereo tool to the selected channel; (2) the encoder recalculates the inter-channel correlation between all channels (unprocessed channels and processed intermediate output channels), selects one appropriate signal pair from the input signal, and applies the stereo tool to the selected channel; and (3) the encoder repeats step (2) until all inter-channel correlations fall below a threshold or when a maximum number of transforms have been applied.
[0129] As already mentioned, the signal pairs processed by the encoder 100, or more precisely the iterative processing unit 102, are not predetermined by a fixed signal path (e.g. a stereo coding tree) but can be dynamically changed to adapt to the input signal characteristics. Thereby, the encoder 100 (or the iterative processing unit 102) can be configured to configure a stereo tree depending on the at least three channels CH1-CH3 of the multi-channel (input) signal 101. In other words, the encoder 100 (or the iterative processing unit 102) can be configured to build a stereo tree based on inter-channel correlations (e.g. by calculating, in a first iteration step, inter-channel correlation values between each pair of the at least three channels CH1-CH3 to select, in a first iteration step, the pair having the highest value or a value above a threshold, and further by calculating, in a second iteration step, inter-channel correlation values between each pair of the at least three channels and a previously processed channel to select, in a second iteration step, the pair having the highest value or a value above a threshold). According to the one-step approach, a correlation matrix may be calculated for each iteration including correlations of all channels in the possibly processed previous iterations.
[0130] As described above, the iterative processing unit 102 may be configured to derive a multi-channel parameter MCH_PAR1 for a pair selected in a first iteration step and a multi-channel parameter MCH_PAR2 for a pair selected in a second iteration step. The multi-channel parameter MCH_PAR1 may include a first channel pair identification (or index) that identifies (or signals) the channel pair selected in the first iteration step, and the multi-channel parameter MCH_PAR2 may include a second channel pair identification (or index) that identifies (or signals) the channel pair selected in the second iteration step.
[0131] In the following, efficient indexing of input signals is described. For example, channel pairs can be efficiently signaled using a unique index for each pair depending on the total number of channels. For example, indexing of a pair of six channels can be as follows:
[0132] JPEG2024133390000002.jpg6876
[0133] For example, in the above table, index 5 may signal a pair consisting of a first channel and a second channel, and similarly, index 6 may signal a pair consisting of a first channel and a third channel.
[0134] The total number of possible channel pair indexes for n channels can be calculated as follows: numPairs=numChannels*(numChannels-1) / 2 Therefore, the number of bits required to signal one channel pair is numBits = floor(log 2 (numPairs-1))+1
[0135] The encoder 100 may also use a channel mask. The configuration of a multi-channel tool may include a channel mask indicating which channels the tool is active on. Thus, LFE (Low Frequency Effects / Enhancement Channels) can be removed from the channel pair indexes, allowing for more efficient encoding. For example, for an 11.1 setup, this reduces the number of channel pair indexes from 12×11 / 2=66 to 11×10 / 2=55, allowing signaling with 6 bits instead of 7 bits. This mechanism can also be used to exclude channels intended for mono objects (e.g. multiple language tracks). On decoding the channel mask, a channel map can be generated to allow remapping of channel pair indexes to decoder channels.
[0136] Further, the iterative processing unit 102 may be configured to derive a plurality of selected pair representations for a first frame, and the output interface 106 may be configured to include in the multi-channel signal 107 a retained indicator for a second frame following the first frame, indicating that the second frame has the same plurality of selected pair representations as the first frame.
[0137] A keep indicator or keep tree flag can be used to signal that a new tree should not be transmitted but the last stereo tree should be used, which can be used to avoid multiple transmissions of the same stereo tree configuration when the channel correlation characteristics are stationary for a longer time.
[0138] Fig. 8 shows a schematic block diagram of the stereo boxes 110 and 112. The stereo boxes 110 and 112 have inputs of a first input signal I1 and a second input signal I2, and outputs of a first output signal O1 and a second output signal O2. As shown in Fig. 8, the dependence of the output signals O1 and O2 from the input signals I1 and I2 can be described by s parameters S1 to S4.
[0139] The iterative processor 102 may use (or include) stereo boxes 110 and 112 to perform multi-channel processing operations on the input channels and / or the processed channels to derive (further) processed channels. For example, the iterative processor 102 may be configured to use general prediction-based or KLT (Karhunen-Loeve-Transform)-based rotation stereo boxes 110 and 112.
[0140] The generic encoder (or the encoder-side stereo box) can be configured to encode the input signals I1 and I2 to obtain the output signals O1 and O2 according to the following equations: TIFF2024133390000003.tif1039
[0141] A generic decoder (or a decoder-side stereo box) can be configured to decode the input signals I1 and I2 to obtain the output signals O1 and O2 according to the following equations: TIFF2024133390000004.tif1044
[0142] A prediction-based encoder (or an encoder-side stereo box) can be configured to encode the input signals I1 and I2 to obtain the output signals O1 and O2 according to the following equations: TIFF2024133390000005.tif1068Here p is the prediction coefficient.
[0143] A prediction-based decoder (or a decoder-side stereo box) can be configured to decode the input signals I1 and I2 to obtain the output signals O1 and O2 according to the following equations: TIFF2024133390000006.tif1047
[0144] A KLT-based rotary encoder (or an encoder-side stereo box) can be configured to encode input signals I1 and I2 to obtain output signals O1 and O2 according to the following equations: TIFF2024133390000007.tif1054
[0145] A KLT-based rotational decoder (or a decoder-side stereo box) can be configured to decode the input signals I1 and I2 (reverse rotation) to obtain the output signals O1 and O2 according to the following equations: TIFF2024133390000008.tif1054
[0146] In the following, the calculation of the rotation angle α for KLT-based rotation is described. The rotation angle α of the KLT-based rotation can be defined as follows: TIFF2024133390000009.tif1142C xy are the entries of the unnormalized correlation matrix, where C 11 and C 22 is the channel energy.
[0147] This can be done using the atan2 function to allow differentiation between the negative correlation in the numerator and the negative energy difference in the denominator. α=0.5*atan2(2*correlation[ch1][ch2], (correlation[ch1][ch1]-correlation[ch2][ch2]))
[0148] Further, the iterative processing unit 102 can be configured to calculate inter-channel correlation using frames of each channel including multiple bands to obtain a single inter-channel correlation value for the multiple bands, and the iterative processing unit 102 can be configured to perform multi-channel processing for each of the multiple bands to obtain multi-channel parameters from each of the multiple bands.
[0149] Thus, the iterative processing unit 102 can be configured to calculate stereo parameters in multi-channel processing, and the iterative processing unit 102 can be configured to perform only stereo processing in a band, where the stereo parameters are higher than a zero quantization threshold defined by a stereo quantizer (e.g., a KLT-based rotational encoder). The stereo parameters can be, for example, MS on / off or a rotation angle or a prediction coefficient.
[0150] For example, the iterative processing unit 102 can be configured to calculate a rotation angle in multi-channel processing, and the iterative processing unit 102 can be configured to perform only rotation processing in a band, where the rotation angle is higher than a zero quantization threshold defined by a rotation angle quantizer (e.g., a KLT-based rotation encoder).
[0151] Thus, the encoder 100 (or the output interface 106) can be configured to transmit the translation / rotation information either as one parameter for the complete spectrum (full bandbox) or as multiple frequency-dependent parameters for a portion of the spectrum.
[0152] The encoder 100 can be configured to generate the bitstream 107 according to the table below.
[0153] [Table 1]
[0154] [Table 2]
[0155] [Table 3]
[0156] [Table 4]
[0157] [Table 5]
[0158] [Table 6]
[0159] [Table 7]
[0160] Fig. 9 shows a schematic block diagram of the iterative processing unit 102 according to one embodiment. In the embodiment shown in Fig. 9, the multi-channel signal 101 is a 5.1 channel signal having six channels: a left channel L, a right channel R, a left surround channel Ls, a right surround channel Rs, a center channel C, and a low-frequency sound effects channel LFE.
[0161] 9, the LFE channel is not processed by the iterative processing unit 102. This may be the case either because the inter-channel correlation values between the LFE channel and each of the other five channels L, R, Ls, Rs and C are small, or because the channel mask assumed below indicates that the LFE channel is not to be processed.
[0162] In a first iteration step, the iterative processing unit 102 calculates inter-channel correlation values between each pair of the five channels L, R, Ls, Rs and C to select the pair having the maximum value or having a value above a threshold in the first iteration step. In Fig. 9, assuming that the left channel L and the right channel R have the maximum value, the iterative processing unit 102 processes the left channel L and the right channel R using a stereo box (or stereo tool) 110 that performs multi-channel operations to derive first and second processed channels P1, P2.
[0163] In the second iteration step, the iterative processing unit 102 calculates inter-channel correlation values between each pair of the five channels L, R, Ls, Rs, C and the processed channels P1 and P2 to select the pair having the maximum value or having a value above a threshold in the second iteration step. In Fig. 9, it is assumed that the left surround channel Ls and the right surround channel Rs have the maximum value, and the iterative processing unit 102 processes the left surround channel Ls and the right surround channel Rs using the stereo box (or stereo tool) 112 to derive the third and fourth processed channels P3, P4.
[0164] In the third iteration step, the iterative processing unit 102 calculates inter-channel correlation values between each pair of the five channels L, R, Ls, Rs, C and the processed channels P1 to P4 to select a pair having a maximum value or a value above a threshold in the third iteration step. In Fig. 9, assuming that the first processed channel P1 and the third processed channel P3 have a maximum value, the iterative processing unit 102 processes the first processed channel P1 and the third processed channel P3 using the stereo box (or stereo tool) 114 to derive the fifth and sixth processed channels P5, P6.
[0165] In the fourth iteration step, the iterative processing unit 102 calculates inter-channel correlation values between each pair of the five channels L, R, Ls, Rs, C and the processed channels P1 to P6 to select the pair having the maximum value or having a value above a threshold in the fourth iteration step. In Fig. 9, assuming that the fifth processed channel P5 and the center channel C have the maximum value, the iterative processing unit 102 processes the fifth processed channel P5 and the center channel C using the stereo box (or stereo tool) 115 to derive the seventh and eighth processed channels P7, P8.
[0166] The stereo boxes 110-116 may be MS stereo boxes, i.e. mid / side stereophonic boxes arranged to provide a mid channel and a side channel. The mid channel may be the sum of the input channels of the stereo box and the side channel may be the difference between the input channels of the stereo box. Furthermore, the stereo boxes 110 and 116 may be rotation boxes or stereo prediction boxes.
[0167] In FIG. 9, the first processed channel P1, the third processed channel P3 and the fifth processed channel P5 may be mid channels, and the second processed channel P2, the fourth processed channel P4 and the sixth processed channel P6 may be side channels.
[0168] 9, the iterative processing unit 102 may be configured to use the input channels L, R, Ls, Rs, C and the mid channels P1, P3 and P5 of the processed channels (only) for calculation, selection and processing in the second iterative step, if applicable, in the further iterative step. In other words, the iterative processing unit 102 may be configured to not use the side channels P1, P3 and P5 of the processed channels when calculating, selecting and processing in the second iterative step, if applicable, in the further iterative step.
[0169] 11 shows a flow chart of a method 300 for encoding a multi-channel signal having at least three channels. The method 300 includes a step 302 of selecting in a first iteration step the pair with the highest value or the pair with a value above a threshold, and processing the selected pair using a multi-channel processing operation to derive a multi-channel parameter MCH_PAR1 for the selected pair and to derive a first processed channel, a step 304 of performing the calculation, selection and processing in a second iteration step using at least one of the processed channels to derive a multi-channel parameter MCH_PAR2 and a second processed channel, a step 306 of encoding the channel resulting from the iterative processing performed by the iterative processing unit to obtain an encoded channel, and a step 308 of generating an encoded multi-channel signal having the encoded channel and the first and multi-channel parameters MCH_PAR2.
[0170] In the following, multi-channel decoding is described. FIG. 10 shows a schematic block diagram of a device (decoder) 200 for decoding an encoded multi-channel signal 107 having encoded channels E1 to E3 and at least two multi-channel parameters MCH_PAR1 and MCH_PAR2.
[0171] The apparatus 200 comprises a channel decoder 202 and a multi-channel processing unit 204 . The channel decoder 202 is arranged to decode the encoded channels E1 to E3 to obtain decoded channels D1 to D3.
[0172] For example, the channel decoder 202 may include at least three mono decoders (or mono boxes or mono tools) 206_1-206_3, each of which may be configured to decode one of the at least three encoded channels E1-E3 to obtain a respective decoded channel E1-E3. The mono decoders 206_1-206_3 may be, for example, transform-based audio decoders.
[0173] The multi-channel processing unit 204 is configured to perform multi-channel processing using a second pair of decoded channels identified by multi-channel parameter MCH_PAR2 and using multi-channel parameter MCH_PAR2 to obtain processed channels, and to perform further multi-channel processing using a first pair of channels identified by multi-channel parameter MCH_PAR1 and using multi-channel parameter MCH_PAR1, the first pair of channels including at least one processed channel.
[0174] As shown by way of example in Fig. 10, the multi-channel parameter MCH_PAR2 may indicate (or signal) that the second decoded channel pair consists of the first decoded channel D1 and the second decoded channel D2. Thus, the multi-channel processing unit 204 uses the second decoded channel pair consisting of the first decoded channel D1 and the second decoded channel D2 (identified by the multi-channel parameter MCH_PAR2) and performs multi-channel processing using the multi-channel parameter MCH_PAR2 to obtain processed channels P1* and P2*. The multi-channel parameter MCH_PAR1 may indicate that the first decoded channel pair consists of the first processed channel P1* and the third decoded channel D3. Thus, the multi-channel processing unit 204 uses the first decoded channel pair consisting of the first processed channel P1* and the third decoded channel D3 (identified by the multi-channel parameter MCH_PAR1) and performs further multi-channel processing using the multi-channel parameter MCH_PAR1 to obtain processed channels P3* and P4*.
[0175] Further, the multi-channel processing unit 204 can provide a third processed channel P3* as the first channel CH1, a fourth processed channel P4* as the third channel CH3, and a second processed channel P2* as the second channel CH2.
[0176] Assuming that the decoder 200 shown in Fig. 10 receives the encoded multi-channel signal 107 from the encoder 100 shown in Fig. 7, the first decoded channel D1 of the decoder 200 may be equivalent to the third processed channel P3 of the encoder 100, the second decoded channel D2 of the decoder 200 may be equivalent to the fourth processed channel P4 of the encoder 100, and the third decoded channel D3 of the decoder 200 may be equivalent to the second processed channel P2 of the encoder 100. Furthermore, the first processed channel P1* of the decoder 200 may be equivalent to the first processed channel P1 of the encoder 100.
[0177] Furthermore, the encoded multi-channel signal 107 may be a serial signal, with the multi-channel parameter MCH_PAR2 being received at the decoder 200 before the multi-channel parameter MCH_PAR1. In that case, the multi-channel processing unit 204 may be configured to process the decoded channels in the order in which the multi-channel parameters MCH_PAR1 and MCH_PAR2 are received by the decoder. In the example shown in Fig. 10, the decoder receives the multi-channel parameter MCH_PAR2 before the multi-channel parameter MCH_PAR1, thereby performing multi-channel processing using the second decoded channel pair (consisting of the first and second decoded channels D1 and D2) identified by the multi-channel parameter MCH_PAR2 before performing multi-channel processing using the first decoded channel pair (consisting of the first processed channel P1* and the third decoded channel D3) identified by the multi-channel parameter MCH_PAR1.
[0178] In Fig. 10, the multi-channel processing unit 204 exemplarily performs two multi-channel processing operations. For illustrative purposes, the multi-channel processing operations performed by the multi-channel processing unit 204 are illustrated in Fig. 10 by processing boxes 208 and 210. The processing boxes 208 and 210 may be implemented in hardware or software. The processing boxes 208 and 210 may be, for example, stereo boxes such as a generic decoder (or a stereo box on the decoder side), a prediction-based decoder (or a stereo box on the decoder side) or a KLT-based rotation decoder (or a stereo box on the decoder side) as described above with reference to the encoder 100.
[0179] For example, the encoder 100 may use a KLT-based rotation encoder (or a stereo box on the encoder side). In that case, the encoder 100 may derive the multi-channel parameters MCH_PAR1 and MCH_PAR2 such that the multi-channel parameters MCH_PAR1 and MCH_PAR2 include the rotation angles. The rotation angles may be differentially encoded. Thus, the multi-channel processing unit 204 of the decoder 200 may include a differential decoder for differentially decoding the differentially encoded rotation angles.
[0180] The apparatus 200 may further comprise an input interface 212 configured to receive and process the encoded multi-channel signal 107, provide the encoded channels E1 to E3 to the channel decoder 202, and provide the multi-channel parameters MCH_PAR1 and MCH_PAR2 to the multi-channel processing unit 204.
[0181] As already mentioned, a keep indicator (or keep tree flag) may be used to signal that a new tree is not to be transmitted, but the last stereo tree should be used. This can be used to avoid multiple transmissions of the same stereo tree configuration when the channel correlation characteristics are stationary for a longer period of time.
[0182] Thus, if the encoded multi-channel signal 107 includes multi-channel parameters MCH_PAR1 and MCH_PAR2 for a first frame and a retain indicator for a second frame following the first frame, the multi-channel processing unit 204 can be configured to perform multi-channel processing or further multi-channel processing in the second frame on the same second channel pair or the same first channel pair as used in the first frame.
[0183] The multi-channel processing and the further multi-channel processing may include a stereo processing using stereo parameters, where for each scale factor band or group of scale factor bands of the decoded channels D1 to D3, a first stereo parameter is included in the multi-channel parameters MCH_PAR1 and a second stereo parameter is included in the multi-channel parameters MCH_PAR2. Thereby, the first stereo parameter and the second stereo parameter may be of the same type, such as a rotation angle or a prediction coefficient. Of course, the first stereo parameter and the second stereo parameter may be of different types. For example, the first stereo parameter may be a rotation angle and the second stereo parameter may be a prediction coefficient, or vice versa.
[0184] Additionally, the multi-channel parameters MCH_PAR1 and MCH_PAR2 may comprise a multi-channel processing mask indicating which scale factor bands are to be multi-channel processed and which are not, such that the multi-channel processor 204 may be configured not to perform multi-channel processing in the scale factor bands indicated by the multi-channel processing mask.
[0185] The multi-channel parameters MCH_PAR1 and MCH_PAR2 may each include a channel pair identification (or index), and the multi-channel processing unit 204 may be configured to decode the channel pair identification (or index) using a predetermined decoding rule or a decoding rule indicated in the encoded multi-channel signal.
[0186] For example, the channel pairs may be efficiently signaled using a unique index for each pair depending on the total number of channels, as described above with reference to encoder 100.
[0187] Furthermore, the decoding rules may be Huffman decoding rules for which the multi-channel processing unit 204 may be configured to perform Huffman decoding of the channel pair identification.
[0188] The encoded multi-channel signal 107 may further comprise a multi-channel processing enable indicator indicating only a subgroup of decoded channels for which multi-channel processing is enabled and indicating at least one decoded channel for which multi-channel processing is not enabled, such that the multi-channel processor 204 may be configured not to perform any multi-channel processing for at least one decoded channel for which multi-channel processing is not enabled, as indicated by the multi-channel processing enable indicator.
[0189] For example, if the multi-channel signal is a 5.1 channel signal, the multi-channel processing allowed indicator may indicate that multi-channel processing is only allowed for five channels, namely right R, left L, right surround Rs, left surround LS, and center C, and that multi-channel processing is not allowed for the LFE channel.
[0190] For the decoding process (decoding channel pair index), the following C code can be used, which requires for all channel pairs the number of channels using active KLT processing (n channels) and the number of channel pairs in the current frame (numPairs).
[0191] maxNumPairIdx = nChannels*(nChannels-1) / 2 - 1; numBits = floor(log 2 (maxNumPairIdx)+1; pairCounter = 0; for (chan1=1; chan1 < nChannels; chan1++) { for (chan0=0; chan0 < chan1; chan0++) { if (pairCounter == pairIdx) { channelPair[0] = chan0; channelPair[1] = chan1; return; } else pairCounter++; } } }
[0192] To decode the prediction coefficients for non-band angles, the following C code can be used:
[0193] for(pair=0; pair <numPairs; pair++) { mctBandsPerWindow = numMaskBands[pair] / windowsPerFrame; if(delta_code_time[pair] > 0) { lastVal = alpha_prev_fullband[pair];} else { lastVal = DEFAULT_ALPHA; } newAlpha = lastVal + dpcm_alpha[pair][0]; if(newAlpha >= 64) { newAlpha -= 64; } for (band=0; band < numMaskBands; band++){ / * set all angles to fullband angle * / pairAlpha[pair][band] = newAlpha; / * set previous angles according to mctMask * / if(mctMask[pair][band] > 0) { alpha_prev_frame[pair][band%mctBandsPerWindow] = newAlpha; } else { alpha_prev_frame[pair][band%mctBandsPerWindow] = DEFAULT_ALPHA; } } alpha_prev_fullband[pair] = newAlpha; for(band=bandsPerWindow; band <MAX_NUM_MC_BANDS; band++) { alpha_prev_frame[pair][band] = DEFAULT_ALPHA; } }
[0194] To decode the prediction coefficients for the non-band KLT angles, the following C code can be used:
[0195] for(pair=0; pair<numPairs; pair++) { mctBandsPerWindow = numMaskBands[pair] / windowsPerFrame; for(band=0; band<numMaskBands[pair]; band++) { if(delta_code_time[pair] > 0) { lastVal = alpha_prev_frame[pair][band%mctBandsPerWindow]; } else { if ((band % mctBandsPerWindow) == 0) { lastVal = DEFAULT_ALPHA; } } if (msMask[pair][band] > 0 ) { newAlpha = lastVal + dpcm_alpha[pair][band]; if(newAlpha >= 64) { newAlpha -= 64; } pairAlpha[pair][band] = newAlpha; alpha_prev_frame[pair][band%mctBandsPerWindow] = newAlpha; lastVal = newAlpha; } else { alpha_prev_frame[pair][band%mctBandsPerWindow] = DEFAULT_ALPHA; / * -45° * / } / * reset fullband angle * / alpha_prev_fullband[pair] = DEFAULT_ALPHA; } for(band=bandsPerWindow; band <MAX_NUM_MC_BANDS; band++) { alpha_prev_frame[pair][band] = DEFAULT_ALPHA; } }
[0196] To avoid floating point differences in trigonometric functions on different platforms, we use the following lookup table to convert angle indices directly to sin / cos:
[0197] tabIndexToSinAlpha
[64] = { -1.000000f,-0.998795f,-0.995185f,-0.989177f,-0.980785f,-0.970031f,-0.956940f,-0.941544f, -0.923880f,-0.903989f,-0.881921f,-0.857729f,-0.831470f,-0.803208f,-0.773010f,-0.740951f, -0.707107f,-0.671559f,-0.634393f,-0.595699f,-0.555570f,-0.514103f,-0.471397f,-0.427555f, -0.382683f,-0.336890f,-0.290285f,-0.242980f,-0.195090f,-0.146730f,-0.098017f,-0.049068f, 0.000000f, 0.049068f, 0.098017f, 0.146730f, 0.195090f, 0.242980f, 0.290285f, 0.336890f, 0.382683f, 0.427555f, 0.471397f, 0.514103f, 0.555570f, 0.595699f, 0.634393f, 0.671559f, 0.707107f, 0.740951f, 0.773010f, 0.803208f, 0.831470f, 0.857729f, 0.881921f, 0.903989f, 0.923880f, 0.941544f, 0.956940f, 0.970031f, 0.980785f, 0.989177f, 0.995185f, 0.998795f }; tabIndexToCosAlpha
[64] = { 0.000000f, 0.049068f, 0.098017f, 0.146730f, 0.195090f, 0.242980f, 0.290285f, 0.336890f, 0.382683f, 0.427555f, 0.471397f, 0.514103f, 0.555570f, 0.595699f, 0.634393f, 0.671559f, 0.707107f, 0.740951f, 0.773010f, 0.803208f, 0.831470f, 0.857729f, 0.881921f, 0.903989f, 0.923880f, 0.941544f, 0.956940f, 0.970031f, 0.980785f, 0.989177f, 0.995185f, 0.998795f, 1.000000f, 0.998795f, 0.995185f, 0.989177f, 0.980785f, 0.970031f, 0.956940f, 0.941544f, 0.923880f, 0.903989f, 0.881921f, 0.857729f, 0.831470f, 0.803208f, 0.773010f, 0.740951f, 0.707107f, 0.671559f, 0.634393f, 0.595699f, 0.555570f, 0.514103f, 0.471397f, 0.427555f, 0.382683f, 0.336890f, 0.290285f, 0.242980f, 0.195090f, 0.146730f, 0.098017f, 0.049068f };
[0198] For decoding of multi-channel coding, the following C code can be used for the KLT rotation based approach.
[0199] decode_mct_rotation() { for (pair=0; pair < self->numPairs; pair++) { mctBandOffset = 0; / * inverse MCT rotation * / for (win = 0, group = 0; group <num_window_groups; group++) { for (groupwin = 0; groupwin < window_group_length[group]; groupwin++, win++) { *dmx = spectral_data[ch1][win]; *res = spectral_data[ch2][win]; apply_mct_rotation_wrapper(self,dmx,res,&alphaSfb[mctBandOffset], &mctMask[mctBandOffset],mctBandsPerWindow, alpha, totalSfb,pair,nSamples); } mctBandOffset += mctBandsPerWindow; } } }
[0200] For band processing, the following C code can be used: apply_mct_rotation_wrapper(self, *dmx, *res, *alphaSfb, *mctMask, mctBandsPerWindow, alpha, totalSfb, pair, nSamples) { sfb = 0; if (self->MCCSignalingType == 0) { } else if (self->MCCSignalingType == 1) { / * apply fullband box * / if (!self->bHasBandwiseAngles[pair] && !self->bHasMctMask[pair]) { apply_mct_rotation(dmx, res, alphaSfb[0], nSamples); } else { / * apply bandwise processing * / for (i = 0; i< mctBandsPerWindow; i++) { if (mctMask[i] == 1) { startLine = swb_offset[sfb]; stopLine = (sfb+2 <totalSfb)? swb_offset [sfb+2] :swb_offset [sfb+1]; nSamples = stopLine-startLine; apply_mct_rotation(&dmx[startLine], &res[startLine], alphaSfb[i], nSamples); } sfb += 2; / * break condition * / if (sfb >= totalSfb) { break; } } } } else if (self->MCCSignalingType == 2) { } else if (self->MCCSignalingType == 3) { apply_mct_rotation(dmx, res, alpha, nSamples); } }
[0201] To apply the KLT rotation, you can use the following C code: apply_mct_rotation(*dmx, *res, alpha, nSamples) { for (n=0;n <nSamples;n++) { L = dmx[n] * tabIndexToCosAlpha [alphaIdx] - res[n] * tabIndexToSinAlpha [alphaIdx]; R = dmx[n] * tabIndexToSinAlpha [alphaIdx] + res[n] * tabIndexToCosAlpha [alphaIdx]; dmx[n] = L; res[n] = R; } }
[0202] 12 shows a flow chart of a method 400 for decoding an encoded multi-channel signal having encoded channels and at least two multi-channel parameters MCH_PAR1 and MCH_PAR2. The method 400 comprises a step 402 of decoding the encoded channels to obtain decoded channels, and a step 404 of performing multi-channel processing using a second pair of decoded channels identified by the multi-channel parameter MCH_PAR2 and using the multi-channel parameter MCH_PAR2 to obtain processed channels and performing further multi-channel processing using a first pair of channels identified by the multi-channel parameter MCH_PAR1 and using the multi-channel parameter MCH_PAR1, the first pair of channels including at least one processed channel.
[0203] In the following, stereo filling in multi-channel coding according to an embodiment is described.
[0204] As already outlined, an undesirable effect of spectral quantization is that it may result in spectral holes. For example, all spectral values within a certain frequency band may be set to zero at the encoder side as a result of quantization. For example, the exact values of such spectral lines before quantization may be relatively low, and quantization may result in a situation where the spectral values of all spectral lines within a certain frequency band are set to zero. At the decoder side, upon decoding, this may result in undesirable spectral holes.
[0205] The Multi-Channel Coding Tool (MCT) in MPEG-H allows for adaptation to changing inter-channel dependencies, but uses single-channel elements in normal operating configurations, making stereo filling impossible.
[0206] As can be seen from Figure 14, the multi-channel coding tool combines three or more hierarchically coded channels. However, when encoding, the way in which the multi-channel coding tool (MCT) combines the different channels changes from frame to frame depending on the current signal characteristics of the channels.
[0207] For example, in scenario (a) of FIG. 14, the multi-channel encoding tool (MCT) may combine the first channel Ch1 and the second channel CH2 to obtain a first composite channel (processed channel) P1 and a second composite channel P2 to generate a first encoded audio signal frame. Then, the multi-channel encoding tool (MCT) may combine the first composite channel P1 and the third channel CH3 to obtain a third composite channel P3 and a fourth composite channel P4. Then, the multi-channel encoding tool (MCT) may encode the second composite channel P2, the third composite channel P3, and the fourth composite channel P4 to generate a first frame.
[0208] Then, for example, in scenario (b) of FIG. 14, to generate a second encoded audio signal frame that follows (in time) the first encoded audio signal frame, the multi-channel encoding tool (MCT) may combine the first channel CH1' and the third channel CH3' to obtain a first composite channel P1' and a second composite channel P2'. Then, the multi-channel encoding tool (MCT) may combine the first composite channel P1' and the second channel CH2' to obtain a third composite channel P3' and a fourth composite channel P4'. The multi-channel encoding tool (MCT) may then encode the second composite channel P2', the third composite channel P3', and the fourth composite channel P4' to generate a second frame.
[0209] As can be seen from Figure 14, the manner in which the second, third and fourth composite channels of the first frame were generated in the scenario of Figure 14(a) is significantly different from the manner in which the second, third and fourth composite channels of the second frame were generated in the scenario of Figure 14(b), with different combinations of channels being used to generate the respective composite channels P2, P3 and P4 and P2', P3', P4', respectively.
[0210] Among other things, embodiments of the present invention are based on the following findings. As shown in Figures 7 and 14, the composite channels P3, P4 and P2 (or P2', P3' and P4' in scenario (b) of Figure 14) are fed to a channel encoder 104. In particular, the channel encoder 104 may perform quantization, e.g. such that the spectral values of channels P2, P3 and P4 are set to zero for quantization. Spectrally neighboring spectral samples may be encoded as spectral bands, each of which may contain multiple spectral samples.
[0211] The number of spectral samples in a frequency band may be different for different frequency bands. For example, a frequency band in a lower frequency range may contain fewer spectral samples (e.g., 4 spectral samples) than a frequency band in a higher frequency range, which may contain, for example, 16 frequency samples. For example, the critical bands of the Bark scale may define the frequency bands used.
[0212] A particularly undesirable situation may occur when all the spectral samples of a frequency band are set to zero after quantization. If such a situation may occur, it is recommended to perform stereo filling according to the present invention. Furthermore, the present invention does not only generate at least (pseudo)random noise based on knowledge.
[0213] According to an embodiment of the present invention, instead of or in addition to adding (pseudo)random noise, if, for example in scenario (b) of FIG. 14, all spectral values of the frequency bands of channel P4' were set to zero, the synthetic channel that would be generated in the same or similar way as channel P3' would be a very suitable basis for generating noise to fill the frequency bands quantized to zero.
[0214] However, according to an embodiment of the present invention, it is preferable not to use the spectral values of the P3' synthesis channel of the current frame at the current time as a basis for filling the frequency band of the P4' synthesis channel, as this frequency band contains only zero spectral values and both the P3' synthesis channel and the P4' synthesis channel are generated based on the channels P1' and P2', therefore using the P3' synthesis channel at the current time would simply be panning.
[0215] For example, if P3' is the mid channel of P1' and P2' (e.g., P3'=0.5*(P1'+P2')) and P4' is the side channel of P1' and P2' (e.g., P4'=0.5*(P1'-P2')), then introducing, for example, the attenuated spectral value of P3' into the frequency band of P4' simply results in panning.
[0216] Instead, it is preferable to use the channels from a previous time point to generate spectral values for filling the spectral holes in the current P4' synthesis channel.According to the findings of the present invention, the combination of channels from a previous frame that correspond to the P3' synthesis channel of the current frame is a desirable basis for generating spectral samples for filling the P4' spectral holes.
[0217] However, the composite channel P3 generated in the scenario of FIG. 10(a) for the previous frame does not correspond to the composite channel P3' of the current frame because the composite channel P3 of the previous frame was generated in a different manner than the composite channel P3' of the current frame.
[0218] According to the findings of an embodiment of the present invention, an approximation of the P3' synthesis channel should be generated based on the reconstructed channel of the previous frame at the decoder side.
[0219] Fig. 10(a) shows an encoder scenario in which channels CH1, CH2 and CH3 are encoded for a previous frame by generating E1, E2 and E3. A decoder receives channels E1, E2 and E3 and reconstructs the encoded channels CH1, CH2 and CH3. Although some coding loss may have occurred, the generated channels CH1*, CH2* and CH3* that approximate CH1, CH2 and CH3 are very similar to the original channels CH1, CH2 and CH3, so CH1*≈CH1, CH2*≈CH2 and CH3*≈CH3. According to an embodiment, the decoder keeps the generated channels CH1*, CH2* and CH3* for the previous frame in a buffer to use them for noise filling in the current frame.
[0220] FIG. 1a shows an apparatus 201 for decoding according to an embodiment, which will now be described in more detail.
[0221] The device 201 of FIG. 1a is adapted to decode a previous encoded multi-channel signal of a previous frame to obtain three or more previous audio output channels, and is configured to decode a current encoded multi-channel signal 107 of a current frame to obtain three or more current audio output channels.
[0222] The apparatus comprises an interface 212, a channel decoder 202, a multi-channel processing unit 204 for generating three or more current audio output channels CH1, CH2, CH3, and a noise filling module 220.
[0223] The interface 212 is adapted to receive the current encoded multi-channel signal 107 and to receive side information comprising the first multi-channel parameters MCH_PAR2.
[0224] The channel decoder 202 is adapted to decode a current encoded multi-channel signal of a current frame to obtain a set of three or more decoded channels D1, D2, D3 of the current frame.
[0225] The multi-channel processing unit 204 is adapted to select a first selected pair of two decoded channels D1, D2 from a set D1, D2, D3 of three or more decoded channels according to a first multi-channel parameter MCH_PAR2.
[0226] As an example, this is illustrated in FIG. 1 a by two channels D 1 , D 2 being fed to an (optional) processing box 208 .
[0227] Further, the multi-channel processing unit 204 is adapted to generate a first group of two or more processed channels P1*, P2* based on the first selected pair of two decoded channels D1, D2, and to obtain an updated set of three or more decoded channels D3, P1*, P2*.
[0228] In the example, two channels D1 and D2 are fed to (optional) box 208, and two processed channels P1* and P2* are generated from the two selected channels D1 and D2. The updated set of three or more decoded channels includes the remaining, unmodified channel D3, and further includes P1* and P2* generated from D1 and D2.
[0229] Before the multi-channel processing unit 204 generates a first pair of two or more processed channels P1*, P2* based on the first selected pair of two decoded channels D1, D2, the noise filling module 220 is adapted to identify, for at least one of the two channels of the first selected pair of two decoded channels D1, D2, one or more frequency bands in which all spectral lines are quantized to zero, and to generate a mixing channel using two or more but not all of the three or more front audio output channels, and to fill the spectral lines of the one or more frequency bands in which all spectral lines are quantized to zero with noise generated using the spectral lines of the mixing channels, and the noise filling module 220 is adapted to select two or more front audio output channels to be used for generating the mixing channel from the three or more front audio output channels in response to the side information.
[0230] Therefore, the noise filling module 220 analyzes whether there are frequency bands that have only zero spectral values, and further fills the found empty frequency bands with the generated noise. For example, a frequency band can have, for example, 4 or 8 or 16 spectral lines, and if all the spectral lines of the frequency band are quantized to zero, the noise filling module 220 fills it with the generated noise.
[0231] A particular concept of the embodiment that may be used by the noise filling module 220 to specify how noise is generated and filled is called stereo filling.
[0232] In the embodiment of Fig. 1a, the noise filling module 220 interacts with the multi-channel processing unit 204. For example, in one embodiment, if the noise filling module wants to process two channels, for example by a processing box, it provides these channels to the noise filling module 220, which checks whether a frequency band is quantized to zero and fills such a frequency band if detected.
[0233] In another embodiment shown in Fig. 1b, the noise filling module 220 interacts with the channel decoder 202. For example, when the channel decoder decodes the encoded multi-channel signal to obtain three or more decoded channels D1, D2, D3, the noise filling module checks, for example, whether a frequency band is already quantized to zero and, if detected, fills such a frequency band. In such an embodiment, the multi-channel processing unit 204 may ensure that all spectral holes are already closed before filling the noise.
[0234] In a further embodiment (not shown), the noise filling module 220 can interact with both the channel decoder and the multi-channel processing unit. For example, when the channel decoder 202 generates the decoded channels D1, D2, D3, the noise filling module 220 may already check whether the frequency bands are quantized to zero immediately after the channel decoder 202 generates them, but can generate noise and fill the respective frequency bands only when the multi-channel processing unit 204 actually processes these channels.
[0235] For example, random noise, a computationally inexpensive operation, can be inserted into any of the frequency bands quantized to zero, but the noise filling module may fill noise generated from previously generated audio output channels only if they were actually processed by the multi-channel processing unit 204. However, in such an embodiment, before inserting the random noise, it must be detected whether a spectral hole exists or not, and that information should be maintained in memory, because after inserting the random noise, the respective frequency bands will have non-zero spectral values because random noise has been inserted.
[0236] In an embodiment, in addition to the noise generated based on the previous audio output signal, random noise is inserted in the frequency bands quantized to zero.
[0237] In some embodiments, the interface 212 may be adapted, for example, to receive the current encoded multi-channel signal 107 and to receive side information including the first multi-channel parameters MCH_PAR2 and the second multi-channel parameters MCH_PAR1.
[0238] The multi-channel processing unit 204 may, for example, be adapted to select a second selected pair of two decoded channels P1*, D3 from the updated set of three or more decoded channels D3, P1*, P2* in response to the second multi-channel parameter MCH_PAR1, where at least one channel P1* of the second selected pair of two decoded channels (P1*, D3) is one channel of the first pair of two or more processed channels P1*, P2*.
[0239] The multi-channel processing unit 204 may be adapted to generate a second group of two or more processed channels P3*, P4*, e.g. based on the second selected pair of two decoded channels P1, D3, and further update the updated set of three or more decoded channels.
[0240] An example of such an embodiment is shown in Figures 1a and 1b, where (optional) processing box 210 receives channel D3 and processed channel P1* and processes them to obtain processed channels P3* and P4*, with a further updated set of three decoded channels including unmodified P2* and the generated P3* and P4* by processing box 210.
[0241] 1a and 1b, processing boxes 208 and 210 are marked as optional to indicate that, although it is possible to use processing boxes 208 and 210 to implement the multi-channel processing unit 204, there are various possibilities as to how exactly to implement the multi-channel processing unit 204. For example, instead of using different processing boxes 208, 210 for different processing of each of the two (or more) channels, the same processing boxes can be reused, or the multi-channel processing unit 204 may perform processing of the two channels (as a sub-unit of the multi-channel processing unit 204) without using processing boxes 208, 210.
[0242] According to a further embodiment, the multi-channel processing unit 204 may be adapted to generate a first group of two or more processed channels P1*, P2*, for example by generating a first group of exactly two processed channels P1*, P2* based on the first selected pair of two decoded channels D1, D2. The multi-channel processing unit 204 may be adapted to replace the first selected pair of two decoded channels D1, D2 in the set of three or more decoded channels D1, D2, D3 by the first group of exactly two processed channels P1*, P2* to obtain an updated set of three or more decoded channels D3, P1*, P2*. The multi-channel processing unit 204 may be adapted to generate a second group of two or more processed channels P3*, P4*, for example by generating a second group of exactly two processed channels P3*, P4* based on the second selected pair of two decoded channels P1*, D3. Further, the multi-channel processing unit 204 may be adapted to, for example, replace the second selected pair of two decoded channels P1*, D3 in the updated set of three or more decoded channels D3, P1*, P2* by a second group of exactly two processed channels P3*, P4* and further update the updated set of three or more decoded channels.
[0243] In such an embodiment, exactly two processed channels are generated from the two selected channels (e.g., the two input channels of processing box 208 or 210), and these exactly two processed channels replace the selected channels in the set of three or more decoded channels. For example, processing box 208 of multi-channel processing unit 204 replaces selected channels D1 and D2 with P1* and P2*.
[0244] However, in other embodiments, the upmixing may be performed within device 201 for decoding, and more than two processed channels may be generated from the two selected channels, or not all of the selected channels may be removed from the updated set of decoded channels.
[0245] A further issue is the method of generation of the mixing channels used to generate the noise generated by the noise filling module 220 .
[0246] According to some embodiments, the noise filling module 220 may be adapted to generate the mixing channels using, for example, exactly two of the three or more front audio output channels as two or more front audio output channels of the three or more front audio output channels, and the noise filling module 220 may be adapted to select exactly two front audio output channels from the three or more front audio output channels in dependence on, for example, the side information.
[0247] Using only two of the three or more front output channels helps to reduce the computational complexity of calculating the mixing channels.
[0248] However, in other embodiments, more than two of the front audio output channels are used to generate the mixing channels, but the number of front audio output channels considered is less than the total number of three or more front audio output channels.
[0249] In an embodiment where only two of the front output channels are considered, the mixing channel may be calculated, for example, as follows:
[0250] In one embodiment, the noise filling module 220 is TIFF2024133390000017.tif1993 or formula Based on TIFF2024133390000018.tif2094, it is adapted to generate a mixing channel using exactly two front audio output channels, Here, D ch is the mixing channel, TIFF2024133390000019.tif75 is the first of the two correct audio output channels, TIFF2024133390000020.tif65 is the second of the two exact front audio output channels and is different from the first of the two exact front audio output channels, and d is a real positive scalar.
[0251] In a typical situation, the mid-channel TIFF2024133390000021.tif1989 may be a suitable mixing channel. Such an approach calculates the mixing channel as the mid channel of the two front audio output channels considered.
[0252] However, in some scenarios, For example, if you apply TIFF2024133390000022.tif1991, In the case of TIFF2024133390000023.tif618, mixing channels close to zero can occur. Then, for example, It may be preferable to use TIFF2024133390000024.tif1989 as the mixing signal, so a side channel (for the out-of-phase input channel) is used.
[0253] In an alternative approach, the noise filling module 220 may use the formula TIFF2024133390000025.tif20162 or formula Based on TIFF2024133390000026.tif14116, it is adapted to generate a mixing channel using exactly two front audio output channels, where TIFF2024133390000027.tif66 is the mixing channel, TIFF2024133390000028.tif65 is the first of the two correct audio output channels, TIFF2024133390000029.tif65 is the second audio output channel of the two correct front audio output channels and is different from the first audio output channel of the two correct front audio output channels, and α is the rotation angle.
[0254] Such an approach calculates the mixing channels by performing a rotation of the two previous audio output channels considered.
[0255] The rotation angle α may be, for example, in the range −90°<α<90°. In one embodiment, the rotation angle may be, for example, in the range 30°<α<60°.
[0256] Again, in a typical situation, the channel TIFF2024133390000030.tif19155 may be a suitable mixing channel. Such an approach calculates the mixing channel as the mid channel of the two front audio output channels considered.
[0257] However, in some scenarios, For example, if you apply TIFF2024133390000031.tif19157, In the case of TIFF2024133390000032.tif16120, mixing channels close to zero may occur. Then, for example, It may be preferable to use TIFF2024133390000033.tif20169 as the mixing signal.
[0258] According to certain embodiments, the side information may be, for example, current side information assigned to the current frame, and interface 212 may be adapted to receive, for example, previous side information assigned to a previous frame, the previous side information including a previous angle, and interface 212 may be adapted to receive, for example, the current side information including the current angle, and noise filling module 220 may be adapted to, for example, use a current angle of the current side information as the rotation angle α and be adapted to not use a previous angle of the previous side information as the rotation angle α.
[0259] Thus, in such an embodiment, even if the mixing channels are calculated based on the previous audio output channels, the current angle transmitted in the side information is used as the rotation angle, not the previously received rotation angle, but the mixing channels are calculated based on the previous audio output channels that were generated based on the previous frame.
[0260] Another aspect of some embodiments of the present invention relates to scale factors. The frequency bands may be, for example, scale factor bands.
[0261] According to some embodiments, before the multi-channel processing unit 204 generates a first pair of two or more processed channels P1*, P2* based on the first selected pair of two decoded channels (D1, D2), the noise filling module (220) may be suitable for identifying, for example, for at least one of the two channels of the first selected pair of two decoded channels D1, D2, one or more scale factor bands, which are one or more frequency bands in which all spectral lines are quantized to zero, and may be adapted to generate a mixing channel using said two or more, but not all, of the three or more previous audio output channels, and may be adapted to fill the spectral lines of the one or more frequency bands in which all spectral lines are quantized to zero with noise generated using the spectral lines of the mixing channel depending on the respective scale factors of the one or more scale factor bands in which all spectral lines are quantized to zero.
[0262] In such an embodiment, a scale factor may, for example, be assigned to each of the scale factor bands, which scale factor is taken into account when generating noise using the mixing channels.
[0263] In a particular embodiment, the receiving interface 212 is configured to receive, for example, a respective scale factor for said one or more scale factor bands, each scale factor of said one or more scale factor bands indicating the energy of the spectral lines of said scale factor band before quantization. The noise filling module 220 may be adapted to generate, for example, noise for each of the one or more scale factor bands, where all spectral lines are quantized to zero, so that after adding the noise to one of the frequency bands, the energy of the spectral lines corresponds to the energy indicated by the scale factor for said scale factor band.
[0264] For example, a mixing channel may exhibit spectral values of four spectral lines of a scale factor band into which noise is inserted, and these spectral values may be, for example, 0.2, 0.3, 0.5, 0.1.
[0265] The energy of a mixing channel scale factor band may be calculated, for example, as follows: TIFF2024133390000034.tif11136
[0266] However, the scale factor for the scale factor band of the noise filled channel may be as small as, for example, 0.0039.
[0267] The damping coefficient can be calculated, for example, as follows:
[0268]
number
[0269] So in the above example,
[0270]
number
[0271] In one embodiment, each of the spectral values of the scale factor band of the mixing channel used as noise is multiplied by an attenuation factor.
[0272] Thus, each of the four spectral values of the scale factor band in the above example is multiplied by an attenuation factor to obtain an attenuated spectral value. 0.2*0.01=0.002 0.3*0.01=0.003 0.5*0.01=0.005 0.1*0.01=0.001
[0273] These attenuated spectral values may, for example, be inserted into the scale factor bands of the channels that are to be filled with noise.
[0274] The above examples are equally applicable to logarithmic values by replacing the above operations with their corresponding logarithmic operations, eg, replacing multiplications by additions.
[0275] Furthermore, in addition to the specific embodiment described above, other embodiments of the noise filling module 220 may employ one, some, or all of the concepts described with reference to FIGS.
[0276] Another aspect of an embodiment of the present invention relates to a problem where an information channel from a previous audio output channel is selected to be used to generate a mixing channel to obtain the inserted noise.
[0277] According to one embodiment, the device according to the noise filling module 220 may for example be adapted to select exactly two front audio output channels from three or more front audio output channels depending on the first multi-channel parameter MCH_PAR2.
[0278] Thus, in such an embodiment, the first multi-channel parameter that adjusts which channels are selected for processing also adjusts which previous audio output channels are used to generate the mixing channels for generating the noise to be inserted.
[0279] In one embodiment, the first multi-channel parameter MCH_PAR2 may, for example, indicate two decoded channels D1, D2 from a set of three or more decoded channels, and the multi-channel processing unit 204 is adapted to select a first selected pair of two decoded channels D1, D2 from a set of three or more decoded channels D1, D2, D3 by selecting the two decoded channels D1, D2 indicated by the first multi-channel parameter MCH_PAR2. Furthermore, the second multi-channel parameter MCH_PAR1 may, for example, indicate two decoded channels P1*, D3 from an updated set of three or more decoded channels. The multi-channel processing unit 204 may, for example, be adapted to select a second selected pair of two decoded channels P1*, D3 from an updated set of three or more decoded channels D3, P1*, P2* by selecting the two decoded channels P1*, D3 indicated by the second multi-channel parameter MCH_PAR1.
[0280] Thus, in such an embodiment, the channels selected for a first operation, such as the operation in processing box 208 of Figure 1a or 1b, do not depend solely on the first multi-channel parameter MCH_PAR2, and further, these two selected channels are explicitly specified in the first multi-channel parameter MCH_PAR2.
[0281] Similarly, in such an embodiment, the channels selected for the second process, e.g., the process of processing box 210 of Figure 1a or 1b, do not depend solely on the second multi-channel parameter MCH_PAR1, and further, these two selected channels are explicitly specified in the second multi-channel parameter MCH_PAR1.
[0282] An embodiment of the present invention introduces a sophisticated indexing scheme for multi-channel parameters which is described with reference to FIG.
[0283] Figure 15(a) shows the encoding of five channels, namely left, right, center, left surround and right surround channels, at the encoder side, while Figure 15(b) shows the decoding of the encoded channels E0, E1, E2, E3, E4 to reconstruct the left, right, center, left surround and right surround channels.
[0284] Assume that an index is assigned to each of the five channels: left, right, center, left surround, and right surround. Index Channel Name 0 Left 1 Right 2 center 3 Left Surround 4 Right Surround
[0285] In Fig. 15(a), on the encoder side, the first operation performed in processing box 192 may be, for example, mixing channel 0 (left) and channel 3 (left surround) to obtain two processed channels. It can be assumed that one of the processed channels is a mid channel and the other channel is a side channel. However, other concepts of forming two processed channels may also be applied, for example, determining the two processed channels by performing a rotation operation.
[0286] Now the two generated processed channels get the same index as the index of the channel used for processing, i.e. the first one of the processed channels has index 0 and the second one of the processed channels has index 3. The multi-channel parameters determined for this processing may for example be (0;3).
[0287] A second operation on the encoder side to be performed may for example be mixing channel 1 (right) and channel 4 (right surround) in processing box 194 to obtain two further processed channels. Again, the two further generated processed channels get the same index as the index of the channels used for processing, i.e. the first one of the further processed channels has index 1 and the second one of the processed channels has index 4. The multi-channel parameters determined for this processing may for example be (1;4).
[0288] A third encoder-side operation to be performed may for example be mixing processed channel 0 and processed channel 1 in processing box 196 to obtain two further processed channels. Again, these two generated processed channels get the same index as the index of the channels used for processing, i.e. the first one of the further processed channels has index 0 and the second one of the processed channels has index 1. The multi-channel parameters determined for this processing may for example be (0;1).
[0289] The encoded channels E0, E1, E2, E3, E4 are differentiated by their index, i.e. E0 has index 0, E1 has index 1 and E2 has index 2.
[0290] The three operations on the encoder side result in three multi-channel parameters. (0;3),(1;4),(0;1)
[0291] Since the decoding device would perform the encoder operations in reverse order, the order of the multi-channel parameters may, for example, be reversed to result in the multi-channel parameters being transmitted to the device for decoding. (0;1),(1;4),(0;3)
[0292] In the decoding device, (0;1) can be called the first multi-channel parameter, (1,4) the second multi-channel parameter, and (0,3) the third multi-channel parameter.
[0293] At the decoder side shown in Figure 15(b), upon receiving the first multi-channel parameters (0;1), the decoding device determines the first processing operation at the decoder side to process channel 0 (E0) and channel 1 (E1). This is done in box 296 of Figure 15(b). Both generated processed channels inherit the index from the channels E0 and E1 used to generate them, and therefore the generated processed channels also have indexes 0 and 1.
[0294] When the decoder receives the second multi-channel parameters (1;4), it determines the second processing operation on the decoder side and processes the processed channels 1 and 4 (E4). This is done in box 294 of Figure 15(b). Both generated processed channels inherit the index from channels 1 and 4 used to generate them, and therefore the generated processed channels also have indexes 1 and 4.
[0295] When the decoder receives the third multi-channel parameters (0;3), it determines this as a third processing operation on the decoder side and processes the processed channels 0 and 3 (E3). This is done in box 292 of Figure 15(b). Both generated processed channels inherit their indices from the channels 0 and 3 used to generate them, and therefore the generated processed channels also have indices 0 and 3.
[0296] As a result of the processing in the decoding device, the channels left (index 0), right (index 1), center (index 2), left surround (index 3) and right surround (index 4) are reconstructed.
[0297] On the decoder side, for quantization purposes, assume that all values of channel E1 (index 1) within a particular scale factor band are quantized to zero. When a decoding device wishes to perform the process of box 296, noise-filled channel 1 (channel E1) is desired.
[0298] As already outlined, the embodiment uses two previous audio output signals for noise filling of the spectral hole in channel 1.
[0299] In a particular embodiment, if the channel on which the operation is performed has a scale factor band that is quantized to zero, then the two previous audio output channels are used to generate noise with the same index numbers as the two channels on which processing must be performed. In this example, if a spectral hole in channel 1 is detected before the processing in processing box 296, the previous audio output channel with index 0 (the previous left channel) and also with index 1 (the previous right channel) are used to generate noise to fill the spectral hole in channel 1 on the decoder side.
[0300] Since the index is consistently inherited by the processed channels resulting from the processing, it can be inferred that the previous output channel is responsible for generating the channel involved in the actual processing on the decoder side when it becomes the current audio output channel, and therefore a good estimate of the scale factor bands quantized to zero can be achieved.
[0301] According to an embodiment, the device may for example be adapted to assign an identifier from the set of identifiers to each front audio output channel of the three or more front audio output channels, such that each front audio output channel of the three or more front audio output channels is assigned to exactly one identifier from the set of identifiers and each identifier of the set of identifiers is assigned to exactly one front audio output channel of the three or more front audio output channels.Furthermore, the device may for example be adapted to assign an identifier from said set of identifiers to each channel of the set of three or more decoded channels, such that each channel of the set of three or more decoded channels is assigned to exactly one identifier from the set of identifiers and each identifier of the set of identifiers is assigned to exactly one channel of the set of three or more decoded channels.
[0302] Furthermore, the first multi-channel parameter MCH_PAR2 may indicate, for example, a first pair of two identifiers of a set of three or more identifiers. The multi-channel processing unit 204 may be adapted to select the first selected pair of two decoded channels D1, D2 from the set of three or more decoded channels D1, D2, D3, for example by selecting two decoded channels D1, D2 that are assigned to the two identifiers of the first pair of two identifiers.
[0303] The device may for example be adapted to assign a first identifier of the two identifiers of the first pair of two identifiers to a first processed channel of a first group of exactly two processed channels P1*, P2*.Furthermore, the device may for example be adapted to assign a second identifier of the two identifiers of the first pair of two identifiers to a second processed channel of a first group of exactly two processed channels P1*, P2*.
[0304] The set of identifiers may, for example, be a set of indexes, for example a set of non-negative integers (for example a set including identifiers 0, 1, 2, 3 and 4).
[0305] In a particular embodiment, the second multi-channel parameter MCH_PAR1 may indicate, for example, a second pair of two identifiers of the set of three or more identifiers. The multi-channel processing unit 204 may be adapted to select a second selected pair of two decoded channels P1*, D3 from the updated set of three or more decoded channels D3, P1*, P2*, for example by selecting two decoded channels (D3, P1*) that are assigned to the two identifiers of the second pair of two identifiers. Furthermore, the device may be adapted to assign, for example, a first identifier of the two identifiers of the second pair of two identifiers to a first processed channel of a second group of exactly two processed channels P3*, P4*. Furthermore, the device may be adapted to assign, for example, a second identifier of the two identifiers of the second pair of two identifiers to a second processed channel of a second group of exactly two processed channels P3*, P4*.
[0306] In a particular embodiment, the first multi-channel parameter MCH_PAR2 may, for example, indicate said first pair of two identifiers of a set of three or more identifiers. The noise filling module 220 may be adapted to select exactly two front audio output channels from the three or more front audio output channels, for example by selecting two front audio output channels that are assigned to the two identifiers of said first pair of two identifiers.
[0307] As already outlined, FIG. 7 shows an apparatus 100 for encoding a multi-channel signal 101 having at least three channels (CH1 to CH3) according to one embodiment.
[0308] The apparatus includes an iterative processing unit 102 adapted to calculate, in a first iteration step, inter-channel correlation values between each pair of at least three channels (CH to CH3) to select, in a first iteration step, the pair having the highest value or the pair having a value above a threshold, and to process the selected pair using multi-channel processing operations 110, 112 to derive initial multi-channel parameters MCH_PAR1 for the selected pair and to derive first processed channels P1, P2.
[0309] The iterative processing unit 102 is adapted to perform calculations, selection and processing in a second iteration step using at least one of the processed channels P1 to derive further multi-channel parameters MCH_PAR2 and second processed channels P3, P4.
[0310] Furthermore, the apparatus includes a channel encoder adapted to encode the channels (P2 to P4) resulting from the iterative processing performed by the iterative processing unit 104, in order to obtain encoded channels (E1 to E3).
[0311] Furthermore, the device comprises an output interface 106 adapted to generate an encoded channel signal 107 comprising the encoded channels (E1 to E3), the initial multi-channel parameters and the further multi-channel parameters MCH_PAR1, MCH_PAR2.
[0312] The apparatus further comprises an output interface 106 adapted to generate an encoded multi-channel signal 107 comprising information indicating whether the decoding device should fill in spectral lines of one or more frequency bands, in which all spectral lines are quantized to zero, with noise generated on the basis of previously decoded audio output channels previously decoded by the decoding device.
[0313] Thus, the encoding device can signal whether the decoding device should fill in the spectral lines of one or more frequency bands in which all spectral lines are quantized to zero with noise generated based on previously decoded audio output channels previously decoded by the decoding device.
[0314] According to one embodiment, each of the initial multi-channel parameters and the further multi-channel parameters MCH_PAR1, MCH_PAR2 indicates exactly two channels, each of which is one of the encoded channels (E1 to E3) or one of the first or second processed channels P1, P2, P3, P4, or one of at least three channels (CH1 to CH3).
[0315] The output interface 106 is, for example, adapted to generate the encoded multi-channel signal 107 and comprises information indicating whether the decoding device should fill in spectral lines of one or more frequency bands in which all spectral lines are quantized to zero, for at least one of exactly two channels indicated by said one of the initial and further multi-channel parameters MCH_PAR1, MCH_PAR2, with spectral data generated based on previously decoded audio output channels previously decoded by the decoding device.
[0316] Further below, a specific embodiment is described in which such information is transmitted using a hasStereoFilling[pair] value that indicates whether or not stereo filling should be applied in the currently processed MCT channel pair.
[0317] FIG. 13 illustrates a system according to an embodiment. The system comprises an encoding device 100 as described above and a decoding device 201 according to one of the embodiments described above.
[0318] The decoding device 201 is arranged to receive from the encoding device 100 the encoded multi-channel signal 107 generated by the encoding device 100 .
[0319] Additionally, an encoded multi-channel signal 107 is provided. The encoded multi-channel signal is - coded channels (E1 to E3); -Multi-channel parameters MCH_PAR1, MCH_PAR2, - information indicating whether the decoding device should fill in the spectral lines of one or more frequency bands in which all spectral lines are quantized to zero with spectral data previously decoded by the decoding device and generated on the basis of previously decoded audio output channels; Includes.
[0320] According to one embodiment, the encoded multi-channel signal may include two or more multi-channel parameters, for example as multi-channel parameters MCH_PAR1, MCH_PAR2.
[0321] Each of the two or more multi-channel parameters MCH_PAR1, MCH_PAR2 may, for example, indicate exactly two channels, where each of the exactly two channels may be one of the encoded channels (E1 to E3), or one of a number of processed channels P1, P2, P3, P4, or one of at least three original (e.g., unprocessed) channels (CH to CH3).
[0322] The information indicating whether the decoding device should fill in spectral lines of one or more frequency bands in which all spectral lines are quantized to zero may comprise, for example, information indicating whether for each of two or more multi-channel parameters MCH_PAR1, MCH_PAR2, for at least one of exactly two channels indicated by said one of the two or more multi-channel parameters, the decoding device should fill in spectral lines of one or more frequency bands in which all spectral lines of said at least one channel are quantized to zero with spectral data generated based on a previously decoded audio output channel that was previously decoded by the decoding device.
[0323] As already outlined, further below, a specific embodiment is described in which such information is transmitted using a hasStereoFilling[pair] value that indicates whether or not stereo filling should be applied in the currently processed MCT channel pair.
[0324] Below, the general concepts and specific embodiments are described in more detail. The embodiment realizes a combination of stereo filling and MCT with the flexibility of using any stereo tree for parametric low bitrate coding modes.
[0325] By applying known joint stereo coding tools in a hierarchical manner, we exploit inter-channel signal dependencies. For lower bit rates, the embodiment extends MCT to use a combination of discrete stereo coding boxes and stereo filling boxes. Thus, semi-parametric coding can be applied, for example, to channels with similar content, i.e., the channel pairs with the highest correlation, while different channels can be coded independently or via non-parametric representations. Thus, the MCT bitstream syntax is extended to be able to signal when stereo filling is allowed and active.
[0326] An embodiment provides for the generation of a previous downmix for any stereo filled pair.
[0327] Stereo filling relies on the use of a downmix of the previous frame to improve the filling of spectral holes due to quantization in the frequency domain. However, in combination with MCT, the set of jointly coded stereo pairs is now allowed to change over time. As a result, two jointly coded channels may not have been jointly coded in the previous frame, i.e. when the tree configuration was changed.
[0328] To estimate the pre-downmix, the previously decoded output channels are stored and processed in an inverse stereo operation. For a given stereo box, this is done using the parameters of the current frame and the decoded output channels of the previous frame that correspond to the channel index of the processed stereo box.
[0329] If a previous output channel signal is not available, either due to an independent frame (a frame that can be decoded without taking into account the previous frame data) or a change in transform length, the previous channel buffer of the corresponding channel is set to zero. Thus, as long as at least one of the previous channel signals is available, a non-zero previous downmix can be calculated.
[0330] If the MCT is configured to use a prediction-based stereo box, the pre-downmix is calculated with an inverse MS operation specified for the stereo fill pair, preferably using one of the following two formulas based on the prediction direction flag (pred_dir in the MPEG-H syntax): TIFF2024133390000037.tif535TIFF2024133390000038.tif535, Where: TIFF2024133390000039.tif43 is an arbitrary real scalar and a positive scalar.
[0331] If the MCT is configured to use a rotation-based stereo box, the pre-downmix is calculated using a rotation with a negative rotation angle.
[0332] Thus, for a rotation given by TIFF2024133390000040.tif1054 reverse rotation is calculated as follows, TIFF2024133390000041.tif1254TIFF2024133390000042.tif54 is the previous output channel TIFF2024133390000043.tif55 and This is the desired pre-downmix of TIFF2024133390000044.tif55.
[0333] The embodiment realizes the application of stereo filling in MCT. Methods for applying stereo filling to a single stereo box are described in [1], [5].
[0334] For a single stereo box, stereo filling is applied to the second channel of a given MCT channel pair.
[0335] In particular, the differences in stereo filling in combination with MCT are as follows: The MCT tree construction is extended by one signaling bit per frame to signal whether stereo filling is allowed in the current frame or not.
[0336] In a preferred embodiment, if stereo filling is allowed for the current frame, one additional bit is sent for each stereo box to activate stereo filling in the stereo box. This is the preferred embodiment because it allows the encoder to control which boxes should have stereo filling applied in the decoder.
[0337] In a second embodiment, if stereo filling is allowed for the current frame, stereo filling is allowed in all stereo boxes and no additional bits are transmitted for each individual stereo box, in which case the selective application of stereo filling in individual MCT boxes is controlled by the decoder.
[0338] Further concepts and detailed embodiments are described below. The embodiment improves the quality of low bitrate multi-channel operating points.
[0339] For perceptually improved filling of spectral holes caused by very coarse quantization in the encoder in frequency-domain (FD) coded channel pair elements (CPEs), the MPEG-H 3D Audio standard allows the use of a stereo-filling tool, described in clause 5.5.5.4.9 of [1]. This tool has been shown to be especially beneficial for two-channel stereo coded at medium and low bit rates.
[0340] The Multi-Channel Coding Tool (MCT), described in Section 7 of [2], is introduced, which allows flexible, signal-adaptive definition of jointly coded channel pairs on a frame-by-frame basis in order to exploit time-varying inter-channel dependencies in a multi-channel setup. The benefits of MCT are particularly striking when used for efficient dynamic joint coding in multi-channel setups where each channel resides in an individual Single Channel Element (SCE), allowing joint channel coding to be carried over and / or reconfigured from one frame to the next, unlike the traditional CPE+SCE(+LFE) configuration, which must be established a priori.
[0341] Encoding multichannel surround sound without a CPE has the disadvantage of not being able to take advantage of the combined stereo tools available only in the CPE - predictive M / S coding and stereo filling - which is a disadvantage especially at medium and low bitrates. MCT can act as a substitute for the M / S tools, but no replacement for the stereo filling tools is currently available.
[0342] The embodiments enable the use of stereo filling tools even within MCT channel pairs by extending the MCT bitstream syntax with respective signaling bits and generalizing the application of stereo filling to any channel pair regardless of channel element type.
[0343] Some embodiments can achieve stereo filling signaling in MCT, for example, as follows:
[0344] In the CPE, the use of the stereo filling tool is signaled within the FD noise filling information for the second channel as described in section 5.5.5.4.9.4 of [1]. When using MCT, all channels are potentially "second channels" (as there are possible channel pairs between elements). It is therefore proposed to explicitly signal stereo filling with an additional bit for each MCT coded channel pair. If stereo filling is not used for any channel pair in a particular MCT "tree" instance, the two currently reserved entries of the MCTSignalingType element of the MultichannelCodingFrame() [2] are used to signal the presence of the additional per channel pair mentioned above, so that this additional bit is not required.
[0345] A detailed explanation is provided below. Some embodiments may realize the pre-downmix calculation, for example, as follows:
[0346] The stereo filling in the CPE fills certain "empty" scale factor bands in the second channel by the addition of the respective MDCT coefficients of the downmix of the previous frame, scaled according to the transmit scale factor of the corresponding band (which is unused since said band is fully quantized to zero). The process of weighted addition controlled using the scale factor bands of the target channel can be used in the MCT context as well. However, the source spectrum for the stereo filling, i.e. the downmix of the previous frame, must be calculated differently in the CPE, especially since the MCT "tree" configuration may change over time.
[0347] In MCT, the front downmix may be derived from the decoded output channels of the last frame (stored after MCT decoding) using the MCT parameters of the current frame for a given joint channel pair. For pairs that apply predictive M / S-based joint coding, the front downmix will be the same as for CPE stereo filling, either the sum or difference of the appropriate channel spectra, depending on the orientation indicator of the current frame. For stereo pairs that use Karhunen-Loeve rotation-based joint coding, the front downmix represents the inverse rotation calculated with the rotation angle of the current frame. Again, a detailed description is provided below.
[0348] In the complexity evaluation, the stereo filling of the MCT medium and low bitrate tool is not expected to increase the worst-case complexity when measured at both low / medium and high bitrates. Furthermore, using stereo filling typically coincides with more spectral coefficients being quantized to zero, thereby reducing the algorithmic complexity of the context-based arithmetic decoder. Assuming that up to N / 3 stereo filling channels are used in an N-channel surround configuration, with an additional 0.2 WMOPS per stereo filling run, if the coder sampling rate is 48 kHz and the IGF tool operates only above 12 kHz, the peak complexity increases by only 0.4 WMOPS for 5.1 and 0.8 WMOPS for 11.1 channels. This amounts to less than 2% of the overall decoder complexity.
[0349] An embodiment implements the MultichannelCodingFrame() element as follows.
[0350] [Table 8]
[0351] According to some embodiments, stereo filling in MCT may be performed as follows.
[0352] Similar to the stereo filling of the IGF of channel pair elements described in section 5.5.5.4.9 of [1], the stereo filling in the Multi-Channel Coding Tool (MCT) fills "empty" scale factor bands (quantized entirely to zero) at or above the noise filling onset frequency using a downmix of the output spectrum of the previous frame.
[0353] If stereo filling is active for an MCT-coupled channel pair (hasStereoFilling[pair] ≠ 0 in Table AMD4.4), all "empty" scalefactor bands in the noise-filled region (i.e. starting at or above noiseFillingStartOffset) of the second channel of the pair are filled up to a certain target energy using a downmix of the corresponding output spectrum (after MCT application) of the previous frame. This is done after the FD noise filling (see ISO / IEC 23003-3:2012, clause 7.2) and before the scalefactor and MCT-coupled stereo application. All output spectra after MCT processing is completed are saved for potential stereo filling in the next frame.
[0354] An operational constraint may be, for example, that cascaded execution of a stereo filling algorithm (hasStereoFilling[pair] ≠ 0) in the free band of the second channel is not supported for any subsequent MCT stereo pair that uses hasStereoFilling[pair] ≠ 0 if the second channel is the same. In a channel pair element, active IGF stereo filling of the second (residual) channel according to clause 5.5.5.4.9 of [1] takes precedence over, and is therefore invalid, any subsequent application of MCT stereo filling on the same channel in the same frame.
[0355] The terms and definitions may be defined, for example, as follows: hasStereoFilling[pair] indicates the use of stereo filling for the currently processed MCT channel pair. ch1, ch2 The indexes of the channels in the currently processed MCT channel pair spectral_data[][] Spectral coefficients of the channels in the currently processed MCT channel pair. spectral_data_prev[][] Output spectrum after MCT processing is completed for the previous frame downmix_prev[][] Estimated downmix of the output channels of the previous frame using the index given by the currently processed MCT channel pair. num_swb Total number of scale factor bands, see ISO / IEC23003-3, clause 6.2.9.4 ccfl coreCoderFrameLength, conversion length, see ISO / IEC 23003-3, clause 6.1 noiseFillingStartOffset The noise filling start line defined according to ccfl in ISO / IEC23003-3, Table 109. igf_WhiteningLevel Spectral whitening in IGF, see ISO / IEC23008-3, section 5.5.5.4.7 seed[] The noise filling seed used by randomSign(), see ISO / IEC23003-3, section 7.2.
[0356] In some particular embodiments, the decoding process may be described, for example, as follows:
[0357] MCT stereo filling is performed using four successive operations, which are described below. Step 1: Preparing the spectrum of the second channel for the stereo filling algorithm If the stereo filling indicator hasStereoFilling[pair] for a given MCT channel pair is 0, then stereo filling is not used and the following steps are not performed. Otherwise, no scale factor application is performed if it was previously applied to the second channel spectrum of the pair, spectral_data[ch2].
[0358] Step 2: Generate pre-downmix spectrum for a given MCT channel pair The front downmix is estimated from the output signal of the previous frame, spectral_data_prev[][], stored after application of the MCT process. If the previous output channel signal is not available, e.g., for independent frames (indepFlag>0), transform length change or core_mode==1, the previous channel buffer of the corresponding channel is set to zero.
[0359] For predicted stereo pairs, i.e., MCTSignalingType==0, the previous downmix is computed from the previous output channels as downmix_prev[][] defined in step 2 of clause 5.5.5.4.9.4 of [1], and spectrum[window][] is denoted by spectral_data[][window].
[0360] For rotated stereo pairs, i.e. when MCTSignalingType==1, the front downmix is computed from the front output channels by inverting the rotation operation defined in section 5.5.X.3.7.1 of [2].
[0361] apply_mct_rotation_inverse(*R, *L, *dmx, aIdx, nSamples) { for(n=0;n <nSamples;n++){ dmx=L[n]*tabIndexToCosAlpha[aIdx]+R[n]*tabIndexToSinAlpha[aIdx]; } } Use L = spectral_data_prev[ch1][], R = spectral_data_prev[ch2][], and dmx = downmix_prev[] from the previous frame, and use aIdx and n samples from the current frame and MCT pair.
[0362] Step 3: Implementing the stereo filling algorithm in the empty band of the second channel Stereo filling is applied to the second channel of the MCT pair as in step 3 of section 5.5.5.4.9.4 of [1], and spectrum[window] is It is represented by spectral_data[ch2][window], and max_sfb_ste is given by num_swb.
[0363] Step 4: Application of scale factors and adaptive synchronization of noise filling seeds. After step 3 of clause 5.5.5.4.9.4 of [1], the scale factor is applied to the resulting spectrum as in 7.3 of ISO / IEC 23003-3, and the scale factor of the empty band is treated like a normal scale factor. If a scale factor is not defined, e.g. because it is above max_sfb, its value may be equal to zero. If an IGF is used and igf_WhiteningLevel is equal to 2 in any of the tiles of the second channel, and both channels do not use 8 short transforms, the spectral energy of both channels of the MCT pair is calculated in the range from index noiseFillingStartOffset to index ccfl / 2-1 before running decode_mct(). If the calculated energy of the first channel is more than 8 times the energy of the second channel, the seed[ch2] of the second channel is set equal to the seed[ch1] of the first channel.
[0364] Although some aspects are described in the context of an apparatus, it will be apparent that these aspects also represent a description of a corresponding method, with blocks or apparatus corresponding to method steps or features of method steps. Similarly, aspects described in the context of a method step also represent a description of the corresponding block or item or feature of the corresponding apparatus. Some or all of the method steps may be performed by (or using) a hardware apparatus, such as, for example, a microprocessor, a programmable computer or an electronic circuit. In some embodiments, one or more of the most important method steps may be performed by such an apparatus.
[0365] Depending on specific implementation requirements, the embodiments of the present invention can be implemented in hardware or software, or at least partly in hardware, or at least partly in software. The embodiments can be implemented using a digital storage medium, such as, for example, a floppy disk, DVD, Blu-ray, CD, ROM, PROM, EPROM, EEPROM or flash memory, having electronically readable control signals stored therein and cooperating (or capable of cooperating) with a programmable computer system such that the respective methods are performed. The digital storage medium may thus be computer readable.
[0366] Some embodiments according to the invention comprise a data carrier having electronically readable control signals which cooperate with a programmable computer system to perform one of the methods described herein.
[0367] Generally, embodiments of the present invention may be implemented as a computer program product having a program code operative to perform 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.
[0368] Other embodiments comprise the computer program for performing one of the methods described herein, stored on a machine readable carrier.
[0369] In other words, an embodiment of the inventive method is a computer program having a program code for performing one of the methods described herein, when the computer program runs on a computer.
[0370] A further embodiment of the inventive method is therefore a data carrier (or digital storage medium or computer readable medium) comprising, and recorded thereon, the computer program for performing one of the methods described herein. The data carrier, digital storage medium or recording medium is typically tangible and / or non-transitory.
[0371] 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 can for example be arranged to be transferred via a data communication connection, for example the Internet.
[0372] 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.
[0373] A further embodiment comprises a computer having installed thereon the computer program for performing one of the methods described herein.
[0374] Further embodiments according to the invention include a device or system configured to transfer (e.g. electronically or optically) a computer program for performing one of the methods described herein to a receiver. The receiver may be for example a computer, a mobile device, a memory device, etc. The device or system may for example comprise a file server for transferring the computer program to the receiver.
[0375] In some embodiments, a programmable logic device (e.g., a field programmable gate array) may be used to perform some or all of the functions of the methods described herein. In some embodiments, a field programmable gate array may cooperate with a microprocessor to perform one of the methods described herein. In general, the methods are preferably performed by any hardware apparatus.
[0376] The apparatus described herein may be implemented using a hardware apparatus, or using a computer, or using a combination of a hardware apparatus and a computer.
[0377] The methods described herein may be performed using a hardware apparatus, or using a computer, or using a combination of a hardware apparatus and a computer.
[0378] The above-described embodiments are merely illustrative of the principles of the present invention. It is understood that modifications and variations of the configurations and details described herein will be apparent to those skilled in the art. It is therefore intended to be limited only by the scope of the appended claims, and not by the specific details shown by the description and illustration of the embodiments herein.
Claims
1. 1. An apparatus (201) for decoding a previous encoded multi-channel signal of a previous frame to obtain three or more previous audio output channels and for decoding a current encoded multi-channel signal (107) of a current frame to obtain three or more current audio output channels, comprising: The device (201) comprises an interface (212), a channel decoder (202), a multi-channel processing unit (204) for generating the three or more current audio output channels, and a noise filling module (220), the interface (212) is adapted to receive the current encoded multi-channel signal (107) and to receive side information comprising a first multi-channel parameter (MCH_PAR2); the channel decoder (202) is adapted to decode the current encoded multi-channel signal of the current frame to obtain a set of three or more decoded channels (D1, D2, D3) of the current frame; the multi-channel processing unit (204) is adapted to select a first selected pair of two decoded channels (D1, D2) from the set of three or more decoded channels (D1, D2, D3) depending on the first multi-channel parameter (MCH_PAR2); the multi-channel processing unit (204) is adapted to generate a first group of two or more processed channels (P1*, P2*) based on the first selected pair of two decoded channels (D1, D2) and to obtain an updated set of three or more decoded channels (D3, P1*, P2*); Before the multi-channel processing unit (204) generates the first pair of two or more processed channels (P1*, P2*) based on the first selected pair of two decoded channels (D1, D2), the noise filling module (220) is adapted to identify, for at least one of the two channels of the first selected pair of two decoded channels (D1, D2), one or more frequency bands in which all spectral lines are quantized to zero, generate a mixing channel using two or more but not all of the three or more previous audio output channels, and fill the spectral lines of the one or more frequency bands in which all spectral lines are quantized to zero with noise generated using the spectral lines of the mixing channels, and the noise filling module (220) is adapted to select the two or more front audio output channels to be used for generating the mixing channel from the three or more front audio output channels in response to the side information. Device.
2. the noise filling module (220) is adapted to generate the mixing channels using exactly two of the three or more front audio output channels as the two or more front audio output channels of the three or more front audio output channels; the noise filling module (220) being adapted to select the exactly two front audio output channels from the three or more front audio output channels in response to the side information.
2. The apparatus (201) of claim 1.
3. The noise filling module (220) is or formula and adapted to generate said mixing channel using exactly two front audio output channels based on Here, D ch is the mixing channel, is a first of the two correct audio output channels; is a second audio output channel of the exact two front audio output channels and is different from the first audio output channel of the exact two front audio output channels, and d is a real positive scalar.
3. The apparatus (201) of claim 2.
4. The noise filling module (220) is or formula and adapted to generate said mixing channel using exactly two front audio output channels based on where is the mixing channel, is a first of the two correct audio output channels; is a second audio output channel of the correct two front audio output channels and is different from the first audio output channel of the correct two front audio output channels, and α is a rotation angle.
3. The apparatus (201) of claim 2.
5. the side information is current side information assigned to the current frame, The interface (212) is configured to receive previous side information assigned to the previous frame, the previous side information including a previous angle; The interface (212) is adapted to receive the current side information including a current angle; the noise filling module (220) is adapted to use the current angle of the current side information as the rotation angle α and to not use the previous angle of the previous side information as the rotation angle α.
5. The apparatus (201) of claim 4.
6. 6. The apparatus (201) of claim 2, wherein the noise filling module (220) is adapted to select the exactly two front audio output channels from the three or more front audio output channels depending on the first multi-channel parameter (MCH_PAR2).
7. the interface (212) is adapted to receive the current encoded multi-channel signal (107) and to receive the side information comprising the first multi-channel parameters (MCH_PAR2) and the second multi-channel parameters (MCH_PAR1); the multi-channel processing unit (204) is adapted to select a second selected pair of two decoded channels (P1*, D3) from the updated set of three or more decoded channels (D3, P1*, P2*) in response to the second multi-channel parameter (MCH_PAR1), wherein at least one channel (P1*) of the second selected pair of two decoded channels (P1*, D3) is one channel of the first pair of two or more processed channels (P1*, P2*); the multi-channel processing unit (204) is adapted to generate a second group of two or more processed channels (P3*, P4*) based on the second selected pair of two decoded channels (P1, D3) and to further update the updated set of three or more decoded channels.
7. Apparatus (201) according to any one of claims 2 to 6.
8. the multi-channel processing unit 204 is adapted to generate the first group of two or more processed channels (P1*, P2*) by generating a first group of exactly two processed channels (P1*, P2*) based on the first selected pair of two decoded channels (D1, D2), the multi-channel processing unit (204) is adapted to replace the first selected pair of two decoded channels (D1, D2) in the set of three or more decoded channels (D1, D2, D3) by the first group of exactly two processed channels (P1*, P2*) to obtain the updated set of three or more decoded channels (D3, P1*, P2*); the multi-channel processing unit (204) is adapted to generate a second group of two or more processed channels (P3*, P4*) by generating the second group of exactly two processed channels (P3*, P4*) based on the second selected pair of two decoded channels (P1*, D3), the multi-channel processing unit (204) is adapted to replace the second selected pair of two decoded channels (P1*, D3) in the updated set of three or more decoded channels (D3, P1*, P2*) by the second group of exactly two processed channels (P3*, P4*) and to further update the updated set of three or more decoded channels.
8. The apparatus (201) of claim 7.
9. the first multi-channel parameter (MCH_PAR2) indicates two decoded channels (D1, D2) from the set of three or more decoded channels; the multi-channel processing unit (204) is adapted to select the first selected pair of two decoded channels (D1, D2) from the set (D1, D2, D3) of three or more decoded channels by selecting the two decoded channels (D1, D2) indicated by the first multi-channel parameter (MCH_PAR2); the second multi-channel parameter (MCH_PAR1) indicates two decoded channels (P1*, D3) from the updated set of three or more decoded channels; the multi-channel processing unit (204) is adapted to select the second selected pair of the two decoded channels (P1*, D3) from the updated set of three or more decoded channels (D3, P1*, P2*) by selecting two decoded channels (P1*, D3) indicated by the second multi-channel parameter (MCH_PAR1); 9. The apparatus (201) of claim 8.
10. the apparatus (201) is adapted to assign an identifier from the set of identifiers to each front audio output channel of the three or more front audio output channels, such that each front audio output channel of the three or more front audio output channels is assigned to exactly one identifier from the set of identifiers and each identifier from the set of identifiers is assigned to exactly one front audio output channel of the three or more front audio output channels; the device (201) is adapted to assign an identifier from the set of identifiers to each channel of the set of three or more decoded channels (D1, D2, D3), such that each channel of the set of three or more decoded channels is assigned to exactly one identifier from the set of identifiers and each identifier of the set of identifiers is assigned to exactly one channel of the set of three or more decoded channels (D1, D2, D3); the first multi-channel parameter (MCH_PAR2) indicates a first pair of two identifiers of the set of three or more identifiers; the multi-channel processing unit (204) is adapted to select the first selected pair of two decoded channels (D1, D2) from the set of three or more decoded channels (D1, D2, D3) by selecting two decoded channels (D1, D2) that are assigned to two identifiers of the first pair of two identifiers, said device (201) being adapted to assign a first one of said two identifiers of said first pair of two identifiers to a first processed channel of said first group of exactly two processed channels (P1*, P2*), said device (201) being adapted to assign a second one of said two identifiers of said first pair of two identifiers to a second processed channel of said first group of exactly two processed channels (P1*, P2*), 10. The apparatus (201) of claim 9.
11. the second multi-channel parameter (MCH_PAR1) indicates a second pair of two identifiers of the set of three or more identifiers; the multi-channel processing unit (204) is adapted to select the second selected pair of two decoded channels (P1*, D3) from the updated set of three or more decoded channels (D3, P1*, P2*) by selecting the two decoded channels (D3, P1*) that are assigned to the two identifiers of the second pair of two identifiers, said device (201) being adapted to assign a first one of said two identifiers of said second pair of two identifiers to a first processed channel of said second group of exactly two processed channels (P3*, P4*), said device (201) being adapted to assign a second one of said two identifiers of said second pair of two identifiers to a second processed channel of said second group of exactly two processed channels (P3*, P4*), 11. The apparatus (201) of claim 10.
12. the first multi-channel parameter (MCH_PAR2) indicates the first pair of two identifiers of the set of three or more identifiers; The apparatus (201) of claim 10 or 11, wherein the noise filling module (220) is adapted to select the exactly two front audio output channels from the three or more front audio output channels by selecting the two front audio output channels that are assigned to the two identifiers of the first pair of two identifiers.
13. Before the multi-channel processing unit (204) generates the first pair of two or more processed channels (P1*, P2*) based on the first selected pair of two decoded channels (D1, D2), the noise filling module (220) is adapted to identify, for at least one of the two channels of the first selected pair of two decoded channels (D1, D2), one or more scale factor bands, the one or more frequency bands in which all spectral lines are quantized to zero, generate the mixing channel using the two or more previous audio output channels but not all of the three or more previous audio output channels, and fill the spectral lines of the one or more frequency bands in which all spectral lines are quantized to zero with the noise generated using the spectral lines of the mixing channel depending on a respective scale factor of the one or more scale factor bands in which all spectral lines are quantized to zero.
13. An apparatus (201) according to any one of claims 1 to 12.
14. the receiving interface (212) is configured to receive the scale factors for each of the one or more scale factor bands; the scale factor for each of the one or more scale factor bands indicates the energy of the spectral lines in the scale factor band before quantization; the noise filling module (220) is adapted to generate the noise for each of the one or more scale factor bands in which all spectral lines are quantized to zero, so that the energy of the spectral lines corresponds to the energy indicated by the scale factor of the scale factor band after adding the noise to one of the frequency bands; 14. The apparatus (201) of claim 13.
15. An apparatus (100) for encoding a multi-channel signal (101) having at least three channels (CH1 to CH3), said apparatus comprising: an iterative processing unit (102) adapted to select, in a first iteration step, a pair having a highest value or a pair having a value above a threshold, and to process said selected pair using multi-channel processing operations (110, 112) to derive initial multi-channel parameters (MCH_PAR1) for said selected pair, and to calculate, in said first iteration step, inter-channel correlation values between each pair of said at least three channels (CH to CH3) in order to derive a first processed channel (P1, P2), said iterative processing unit (102) being adapted to perform calculations, selections and processing in a second iteration step using at least one of said processed channels (P1) to derive a further multi-channel parameter MCH_PAR2 and a second processed channel (P3, P4); a channel encoder adapted to encode the channels (P2 to P4) resulting from the iterative processing performed by said iterative processing unit (104) to obtain encoded channels (E1 to E3); an output interface (106) adapted to generate an encoded multi-channel signal (107) comprising said encoded channels (E1-E3), said initial multi-channel parameters and said further multi-channel parameters (MCH_PAR1, MCH_PAR2), and further comprising information indicating whether said decoding device should fill in spectral lines of one or more frequency bands, in which all spectral lines are quantized to zero, with noise generated based on previously decoded audio output channels previously decoded by said decoding device; An apparatus comprising:
16. said initial multi-channel parameters and said further multi-channel parameters (MCH_PAR1, MCH_PAR2) each indicate exactly two channels, each of said exactly two channels being one of said coded channels (E1 to E3), or one of said first or second processed channels (P1, P2, P3, P4), or one of said at least three channels (CH to CH3), the output interface (106) is adapted to generate the encoded multi-channel signal (107), and the information indicating whether the decoding device should fill in spectral lines of one or more frequency bands in which all spectral lines are quantized to zero comprises information indicating whether the decoding device should fill in, for at least one channel of the exactly two channels indicated by the one of the initial and further multi-channel parameters (MCH_PAR1, MCH_PAR2), one or more frequency bands in which all spectral lines of the at least one channel are quantized to zero with the spectral data generated on the basis of the previously decoded audio output channel previously decoded by the decoding device, 16. The apparatus (100) of claim 15.
17. A coding device (100) according to claim 15 or 16, A decoding device (201) according to any one of claims 1 to 14, Including, The system, wherein the decoding device (201) is configured to receive from the encoding device (100) the encoded multi-channel signal (107) generated by the encoding device (100).
18. 1. A method for decoding a previous encoded multi-channel signal of a previous frame to obtain three or more previous audio output channels and a current encoded multi-channel signal of a current frame to obtain three or more current audio output channels, the method comprising: receiving the current encoded multi-channel signal (107) and receiving side information including a first multi-channel parameter (MCH_PAR2); decoding the current encoded multi-channel signal of the current frame to obtain a set of three or more decoded channels (D1, D2, D3) of the current frame; selecting a first selected pair of two decoded channels (D1, D2) from the set of three or more decoded channels (D1, D2, D3) in response to the first multi-channel parameter (MCH_PAR2); generating a first group of two or more processed channels (P1*, P2*) based on the first selected pair of two decoded channels (D1, D2) to obtain an updated set of three or more decoded channels (D3, P1*, P2*); Including, before said first pair of two or more processed channels (P1*, P2*) is generated based on said first selected pair of two decoded channels (D1, D2), identifying, for at least one of the two channels of the first selected pair of two decoded channels (D1, D2), one or more frequency bands in which all spectral lines are quantized to zero, generating a mixing channel using two or more but not all of the three or more front audio output channels, filling the spectral lines of the one or more frequency bands in which all spectral lines are quantized to zero with noise generated using the spectral lines of the mixing channels, and selecting the two or more front audio output channels used to generate the mixing channel from the three or more front audio output channels depends on the side information. method.
19. A method for encoding a multi-channel signal (101) having at least three channels (CH1 to CH3), said method comprising the steps of: in a first iteration step, selecting a pair having the highest value or a pair having a value above a threshold, and processing the selected pair using multi-channel processing operations (110, 112) to derive initial multi-channel parameters (MCH_PAR1) for the selected pair, and calculating inter-channel correlation values between each pair of the at least three channels (CH to CH3) in the first iteration step to derive a first processed channel (P1, P2); - using at least one of said processed channels (P1), performing calculations, selection and processing in a second iteration step to derive further multi-channel parameters (MCH_PAR2) and a second processed channel (P3, P4); - encoding the channels (P2 to P4) resulting from the iterative process performed by said iterative processing unit (104) to obtain encoded channels (E1 to E3); generating an encoded multi-channel signal (107) comprising said encoded channels (E1-E3), said initial multi-channel parameters and said further multi-channel parameters (MCH_PAR1, MCH_PAR2) and further comprising information indicating whether said decoding device should fill in spectral lines of one or more frequency bands, in which all spectral lines are quantized to zero, using noise generated based on previously decoded audio output channels previously decoded by said decoding device; Equipped with method.
20. A computer program for carrying out the method according to claim 18 or 19 when executed on a computer or signal processing unit.
21. Encoded channels (E1 to E3); Multi-channel parameters (MCH_PAR1, MCH_PAR2); information indicating whether the decoding device should fill in the spectral lines of one or more frequency bands in which all spectral lines are quantized to zero with spectral data previously decoded by the decoding device and generated based on previously decoded audio output channels; 2. An encoded multi-channel signal comprising:
22. the encoded multi-channel signal includes, as the multi-channel parameters (MCH_PAR1, MCH_PAR2), two or more multi-channel parameters (MCH_PAR1, MCH_PAR2); said initial multi-channel parameters and said further multi-channel parameters (MCH_PAR1, MCH_PAR2) each indicate exactly two channels, each of said exactly two channels being one of said encoded channels (E1 to E3), or one of a plurality of processed channels (P1, P2, P3, P4), or one of said at least three original channels (CH to CH3), the information indicates whether the decoding device should fill in spectral lines of one or more frequency bands in which all spectral lines are quantized to zero, and indicates, for each of the two or more multi-channel parameters (MCH_PAR1, MCH_PAR2), whether the decoding device should fill in, for at least one channel of the exactly two channels indicated by the one of the two or more multi-channel parameters, spectral lines of one or more frequency bands in which all spectral lines of the at least one channel are quantized to zero, with the spectral data generated based on the previously decoded audio output channel previously decoded by the decoding device. An encoded multi-channel signal (107) according to claim 21.
Citation Information
Patent Citations
Noise filling in multichannel audio coding
WO2015011061A1
Methods and devices for joint multichannel coding
WO2015036351A1
