The present application is concerned with context-based entropy coding of sample values of a spectral envelope and the usage thereof in audio coding/compression.
Many modern state of the art lossy audio coders such as described in [1] and [2] are based on an MDCT transform and use both irrelevancy reduction and redundancy reduction to minimize the bitrate that may be used for a given perceptual quality. Irrelevancy reduction typically exploits the perceptual limitations of the human hearing system in order to reduce the representation precision or remove frequency information that is not perceptually relevant. Redundancy reduction is applied to exploit the statistical structure or correlation in order to achieve the most compact representation of the remaining data, typically by using statistical modeling in conjunction with entropy coding.
Among others, parametric coding concepts are used to efficiently code audio content. Using parametric coding, portions of the audio signal such as, for example, portions of the spectrogram thereof, are described using parameters rather than using actual time domain audio samples or the like. For example, portions of the spectrogram of an audio signal may be synthesized at the decoder side with the data stream merely comprising parameters such as the spectral envelope and optional further parameters controlling synthesizing, in order to adapt the synthesized spectrogram portion to the spectral envelope transmitted. A new technique of such kind is Spectral Band Replication (SBR) according to which a core codec is used to code and transmit the low frequency component of an audio signal, whereas a transmitted spectral envelope is used at the decoding side so as to spectrally shape/form spectral replications of a reconstruction of the low frequency band component of the audio signal so as to synthesize the high frequency band component of the audio signal at the decoding side.
A spectral envelope within the framework of coding techniques outlined above, is transmitted within a data stream at some suitable spectrotemporal resolution. In a way similar to the transmission of spectral envelope sample values, scale factors for scaling spectral line coefficients or frequency domain coefficients such as MDCT coefficients, are likewise transmitted in some suitable spectrotemporal resolution which is coarser than the original spectral line resolution, coarser for example in a spectral sense.
A fixed Huffman coding table could be used in order to convey information on the samples describing a spectral envelope or scale factors or frequency domain coefficients. An improved approach is to use context coding such as, for example, described in [2] and [3], where the context used to select the probability distribution for encoding a value extends both across time and frequency. An individual spectral line such as an MDCT coefficient value, is the real projection of a complex spectral line and it may appear somewhat random in nature even when the magnitude of the complex spectral line is constant across time, but the phase varies from one frame to the next. This involves a quite complex scheme of context selection, quantization, and mapping for good results as described in [3].
In image coding, the contexts used are typically two-dimensional across the x and y axis of an image such as, for example, in [4]. In image coding, the values are in the linear domain or the power-law domain, such as for example by use of gamma adjustment. Additionally, a single fixed linear prediction may be used in each context as a plane fitting and rudimentary edge detection mechanism, and the prediction error may be coded. Parametric Golomb or Golomb-Rice coding may be used for coding the prediction errors. Run length coding is additionally used to compensate for the difficulties of directly encoding very low entropy signals, below 1 bit per sample, for example, using a bit based coder.
However, despite the improvements in connection with the coding of scale factors and/or spectral envelopes, there is still need for an improved concept for coding sample values of a spectral envelope. Accordingly, it is an object of the present invention to provide a concept for coding spectral values of a spectral envelope.
An embodiment may have a context-based entropy decoder for decoding sample values of a spectral envelope of an audio signal, configured to spectrotemporally predict a current sample value of the spectral envelope to obtain an estimated value of the current sample value; determine a context for the current sample value dependent on a measure for a deviation between a pair of already decoded sample values of the spectral envelope in a spectrotemporal neighborhood of the current sample value; entropy decode a prediction residual value of the current sample value using the context determined; and combine the estimated value and the prediction residual value to obtain the current sample value.
According to another embodiment, a parametric decoder may have: a context-based entropy decoder for decoding sample values of a spectral envelope of an audio signal, configured to spectrotemporally predict a current sample value of the spectral envelope to obtain an estimated value of the current sample value; determine a context for the current sample value dependent on a measure for a deviation between a pair of already decoded sample values of the spectral envelope in a spectrotemporal neighborhood of the current sample value; entropy decode a prediction residual value of the current sample value using the context determined; and combine the estimated value and the prediction residual value to obtain the current sample value, a fine structure determiner configured to determine a fine structure of a spectrogram of the audio signal; and a spectral shaper configured to shape the fine structure according to the spectral envelope.
Yet another embodiment may have a context-based entropy encoder for encoding sample values of a spectral envelope of an audio signal, configured to spectrotemporally predict a current sample value of the spectral envelope to obtain an estimated value of the current sample value; determine a context for the current sample value dependent on a measure for a deviation between a pair of already decoded sample values of the spectral envelope in a spectrotemporal neighborhood of the current sample value; determine a prediction residual value based on a deviation between the estimated value and the current sample value; and entropy encode the prediction residual value of the current sample value using the context determined.
According to another embodiment, a method for, using context-based entropy decoding, decoding sample values of a spectral envelope of an audio signal, may have the steps of: spectrotemporally predicting a current sample value of the spectral envelope to obtain an estimated value of the current sample value; determining a context for the current sample value dependent on a measure for a deviation between a pair of already decoded sample values of the spectral envelope in a spectrotemporal neighborhood of the current sample value; entropy decoding a prediction residual value of the current sample value using the context determined; and combining the estimated value and the prediction residual value to obtain the current sample value.
According to yet another embodiment, a method for, using context-based entropy encoding, encoding sample values of a spectral envelope of an audio signal, may have the steps of: spectrotemporally predict a current sample value of the spectral envelope to obtain an estimated value of the current sample value; determining a context for the current sample value dependent on a measure for a deviation between a pair of already decoded sample values of the spectral envelope in a spectrotemporal neighborhood of the current sample value; determining a prediction residual value based on a deviation between the estimated value and the current sample value; and entropy encoding the prediction residual value of the current sample value using the context determined.
According to yet another embodiment, a non-transitory digital storage medium may have a computer program stored thereon to perform the inventive methods, when said computer program is run by a computer.
Embodiments described herein are based on the finding that an improved concept for coding sample values of a spectral envelope may be obtained by combining spectrotemporal prediction on the one hand and context-based entropy coding the residuals, on the other hand, while particularly determining the context for a current sample value dependent on a measure for a deviation between a pair of already coded/decoded sample values of the spectral envelope in a spectrotemporal neighborhood of the current sample value. The combination of the spectrotemporal prediction on the one hand and the context-based entropy coding of the prediction residuals with selecting the context depending on the deviation measure on the other hand harmonizes with the nature of spectral envelopes: the smoothness of the spectral envelope results in compact prediction residual distributions so that the spectrotemporal intercorrelation is almost completely removed after the prediction and may be disregarded in the context selection with respect to the entropy coding of the prediction result. This, in turn, lowers the overhead for managing the contexts. The use of the deviation measure between already coded/decoded sample values in the spectrotemporal neighborhood of the current sample value, however, still enables the provision of a context-adaptivity which improves the entropy coding efficiency in a manner which justifies the additional overhead caused thereby.
In accordance with embodiments described hereinafter, linear prediction is combined with the use of the difference value as the deviation measure, thereby keeping the overhead for the coding low.
In accordance with an embodiment, the position of the already coded/decoded sample values used to determine the difference value finally used to select/determine the context is selected such that they neighbor each other, spectrally or temporally, in a manner co-aligned with the current sample value, i.e. they lie along one line in parallel to temporal or spectral axis, and the sign of the difference value is additionally taken into account when determining/selecting the context. By this measure, a kind of “trend” in the prediction residual can be taken into account when determining/selecting the context for the current sample value while merely reasonably increasing the context managing overhead.
Embodiments of the present invention will be detailed subsequently referring to the appended drawings, in which:
As a kind of motivation of the embodiments outlined herein below, which are generally applicable to the coding of a spectral envelope, some thoughts which lead to the advantageous embodiments outlined below are presented now using Intelligent Gap Filling (IGF) as an example. IGF is a new method to significantly improve the quality of an encoded signal even at very low bitrates. Reference is made to the description below for details. In any case, IGF addresses the fact that a significant part of a spectrum in the high frequency region is quantized to zero due to typically insufficient bit budget. In order to preserve as well as possible the fine structure of the upper frequency region, in IGF information in the low frequency region is used as a source to adaptively replace the destination regions in the high frequency region which were mostly quantized to zero. An important requirement in order to achieve a good perceptual quality is matching of the decoded energy envelope of the spectral coefficients with that of the original signal. To achieve this, average spectral energies are calculated on spectral coefficients from one or more consecutive AAC scale factor bands. Computing average energies using boundaries defined by scale factor bands is motivated by the already existing careful tuning of those boundaries to fractions of the critical bands, which are characteristic to human hearing. The average energies are converted into a dB scale representation using a formula similar to the one for the AAC scale factors, and then uniformly quantized. In IGF, different quantization accuracy may be optionally used depending on the requested total bitrate. The average energies constitute a significant part of the information generated by IGF, so its efficient representation is of high importance for the overall performance of IGF.
Accordingly, in IGF, scale factor energies describe the spectral envelope. The Scale Factor Energies (SFE) represent spectral values describing the spectral envelope. It is possible to exploit special properties of the SFE when decoding same. In particular, it has been realized that in contrast to [2] and [3], SFEs represent average values of MDCT spectral lines and accordingly their values are much more “smooth” and linearly correlated to the average magnitude of the corresponding complex spectral lines. Exploiting this circumstance, the following embodiments use a combination of spectral envelope sample value prediction on the one hand and context-based entropy coding of the prediction residual using contexts depending on a measure of a deviation of a pair of neighboring already coded/decoded sample values of the spectral envelope on the other hand. The usage of this combination is particularly adapted to this sort of data to be coded, i.e. the spectral envelope.
In order to ease the understanding of the embodiments outlined further below,
Each sample value 12 describes or defines the height of the spectral envelope 10 within a corresponding spatiotemporal tile covering, for example, a certain rectangle of the spatiotemporal domain of a spectrogram of an audio signal. The sample values are, thus, integrative values having been obtained by integrating a spectrogram over its associated spectrotemporal tile. The sample values 12 may measure the height or strength of the spectral envelope 10 in terms of energy or some other physical measure, and may be defined in the non-logarithmic or linear domain, or in the logarithmic domain, wherein the logarithmic domain may provide additional advantages due to its characteristic of additionally smoothening the sample values along axes 14 and 16, respectively.
It should be noted that as far as the following description is concerned, it is assumed for illustration purposes only that the sample values 12 are regularly arranged spectrally and temporally, i.e. that the corresponding spatiotemporal tiles corresponding to the sample values 12 regularly cover a frequency band 18 out of a spectrogram of an audio signal, but such regularity is not mandatory. Rather, an irregular sampling of the spectral envelope 10 by the sample values 12 may also be used, each sample value 12 representing the mean average of the height of the spectral envelope 10 within its corresponding spatiotemporal tile. The neighborhood definitions outlined further below may nevertheless be transferred to such alternative embodiments of an irregular sampling of the spectral envelope 10. A brief statement on such a possibility is presented below.
Before, however, it is noted that the above mentioned spectral envelope may be subject to encoding and decoding for transmission from encoder to decoder for various reasons. For example, the spectral envelope may be used for the sake of scalability purposes so as to extend a core encoding of a low frequency band of an audio signal, namely extending the low frequency band towards higher frequencies, namely into a high frequency band which the spectral envelope relates to. In that case, the context-based entropy decoders/encoders described below could be part of an SBR decoder/encoder, for example. Alternatively, same could be part of audio encoders/decoders using IGF as already mentioned above. In IGF, a high frequency portion of an audio signal spectrogram is additionally described using the spectral values describing the high frequency portions spectral envelope of the spectrogram so as to be able to fill zero-quantized areas of the spectrogram within the high frequency portion using the spectral envelope. Details in this regard are described further below.
The context-based entropy encoder of
The predictor 22 is configured to spectrotemporally predict the current sample value x of the spectral envelope 10 to obtain an estimated value g. As will be illustrated in connection with a more detailed embodiment outlined below, predictor 22 may use linear prediction. In particular, in performing the spectrotemporal prediction, predictor 22 inspects already coded sample values in a spectrotemporal neighborhood of current sample value x. See, for example,
As already outlined above, although the sample values 12 are assumed to be regularly arranged along time and spectral axes 14 and 16, this regularity is not mandatory, and the neighborhood definition and identification of neighboring sample values may be extended to such an irregular case. For example, neighbor sample value “a” may be defined as the one neighboring the upper left corner of the current sample's spectrotemporal tile along the temporal axis with preceding the upper left corner temporally. Similar definitions may be used to define other neighbors as well, such as neighbors b to e.
As will be outlined in more detail below, predictor 22 may, depending on the spectrotemporal position of current sample value x, use a different subset of all sample values within the spectrotemporal neighborhood, i.e. a subset of {a, b, c, d, e}. Which subset is actually used may, for example, depend on the availability of the neighboring sample values within the spectrotemporal neighborhood defined by set {a, b, c, d, e}. The neighboring sample values a, d, and c may, for example be unavailable due to current sample value x immediately succeeding a random access point, i.e. a point in time enabling decoders to start decoding so that dependencies on previous portions of the spectral envelope 10 are forbidden/prohibited. Alternatively, neighboring sample valuesb, c, and e may be unavailable due to the current sample value x representing the low frequency edge of interval 18 so that the respective neighboring sample value's position falls outside interval 18. In any case, predictor 22 may spectrotemporally predict the current sample value x by linearly combining already coded sample values within the spectrotemporal neighborhood.
The task of the context determiner 24 is to select one of the several supported contexts for entropy encoding the prediction residual, i.e. r=x−{circumflex over (x)}. To this end, the context determiner 24 determines the context for current sample value x dependent on a measure for a deviation between a pair of already coded sample values among a to e in the spectrotemporal neighborhood. In the specific embodiments outlined further below, the difference of a pair of sample values within the spectrotemporal neighborhood is used as a measure for a deviation therebetween, such as for example a-c, b-c, b-e, a-d or the like, but alternatively other deviation measures may be used such as, for example, a quotient (i.e. a/c, b/c, a/d), the difference to the power of a value unequal to one, such as an uneven number n unequal to one (i.e. (a-c)n, (b-c)n, (a-d)n), or some other type of deviation measure such as, for example, an-cn, bn-dn, an-dn or (a/e)n, (b/e)n, (a/d)n with n #1. Here, n could also be any value greater than 1, for example.
As will be shown in more detail below, the context determiner 24 may be configured to determine the context for the current sample value x dependent on a first measure for a deviation between a first pair of already coded sample values in the spectrotemporal neighborhood and a second measure for a deviation between a second pair of already coded sample values within the spectrotemporal neighborhood, with the first pair neighboring each other spectrally, and the second pair neighboring each other temporally. For example, difference values b-c and a-c may be used where a and c neighbor each other spectrally, and b and c neighbor each other temporally. The same set of neighboring sample values, namely {a, c, b}, may be used by predictor 22 to obtain the estimated value g, namely, for example, by a linear combination of the same. A different set of neighboring sample values may be used for context determination and/or prediction in cases of some unavailability of any of sample values a, c and/or b. The factors of the linear combination may, as set out further below, be set so that the factors are the same for different contexts, in case of the bitrate at which the audio signal is coded being greater than a predetermined threshold, and the factors are set individually for the different contexts, in case of the bitrate being lower than a predetermined threshold.
As an intermediate note, it should be mentioned that the definition of the spectrotemporal neighborhood may be adapted to the coding/decoding order along which context-based entropy encoder 20 sequentially encodes the sample values 12. As shown in
The sample values 12 may, as already denoted above, represent the spectral envelope in a logarithmic domain. In particular, the spectral values 12 may have already been quantized to integer values using a logarithmic quantization function. Accordingly, due to quantization, the deviation measures determined by context determiner 24 may already be integer numbers inherently. This is for example the case when using the difference as the deviation measure. Irrespective of the inherent integer number nature of the deviation measure determined by context determiner 24, context determiner 24 may subject the deviation measure to quantization and determine the context using the quantized measure. In particular, as will be outlined below, the quantization function used by context determiner 24 may be constant for values of the deviation measure outside a predetermined interval, the predetermined interval including zero, for example.
The entropy encoder 26 uses the context determined by context determiner 24 to efficiently entropy encode the prediction residual r which, in turn, is determined by residual determiner 28 on the basis of the actual current sample value x and the estimated value g such as, for example, by means of subtraction. Advantageously, arithmetic coding is used. The contexts may have associated therewith constant probability distributions. For each context, the probability distribution associated therewith assigns a certain probability value to each possible symbol out of a symbol alphabet of entropy encoder 26. For example, the symbol alphabet of entropy encoder 26 coincides with, or covers, the range of possible values of prediction residual r. In alternative embodiments, which are outlined in more detail below, a certain escape coding mechanism may be used so as to guarantee that the value r to be entropy encoded by entropy encoder 26 is within the symbol alphabet of entropy encoder 26. When using arithmetic coding, the entropy encoder 26 uses the probability distribution of the determined context determined by context determiner 24, so as to subdivide a current probability interval which represents the internal state of entropy encoder 26 into one subinterval per alphabet value, with selecting one of the subintervals depending on the actual value of r, and outputting an arithmetically coded bitstream informing the decoding side on updates of probability interval offset and width by use of, for example, a renormalization process. Alternatively, however, entropy encoder 26 may use, for each context, an individual variable length coding table translating the probability distribution of the respective context into a corresponding mapping of possible values of r onto codes of a length corresponding to the respective frequency of the respective possible value r. Other entropy codecs may be used as well.
For the sake of completeness,
The context-based entropy decoder of
The entropy decoder 46 reverses the entropy encoding performed by entropy encoder 26. That is, entropy decoder also manages a number of contexts and uses, for a current sample value x, a context selected by context determiner 44, with each context having a corresponding probability distribution associated therewith which assigns to each possible value of r a certain probability which is the same as the one chosen by context determiner 24 for entropy encoder 26.
When using arithmetic coding, entropy decoder 46 reverses, for example, the interval subdivision sequence of entropy encoder 26. The internal state of entropy decoder 46 is, for example, defined by the probability interval width of the current interval and an offset value pointing, within the current probability interval, to the subinterval out of the same to which the actual value of r of the current sample value x corresponds. The entropy decoder 46 updates the probability interval and offset value using the inbound arithmetically encoded bitstream output by entropy encoder 26 such as by way of a renormalization process and obtains the actual value of r by inspecting the offset value and identifying the subinterval which same falls into.
As already mentioned above, it may be advantageous to restrict the entropy coding of the residual values onto some small subinterval of possible values of prediction residuals r.
The functionality of control 60 is illustrated in
In case of the initial prediction residual r residing within interval 68, control 60 causes entropy encoder 26 to entropy encode this initial prediction residual r directly. No special measure is to be taken. However, if r as provided by residual determiner 28 is outside interval 68, an escape coding procedure is initiated by control 60. In particular, the immediate neighbor values immediately neighboring the interval bounds 70 and 72 of interval 68 may, in accordance with one embodiment, belong to the symbol alphabet of entropy encoder 26 and serve as escape codes themselves. That is, the symbol alphabet of the entropy encoder 26 would encompass all values of interval 68 plus the immediately neighboring values below and above that interval 68 as indicated with curly bracket 74 and control 60 would simply reduce the value to be entropy encoded down to the highest alphabet value 76 immediately neighboring the upper bound 72 of interval 68 in the case of residual value r being greater than upper bound 72 of interval 68, and would forward the lowest alphabet value 78 to entropy encoder 26, immediately neighboring lower bound 70 of interval 68, in the case of the initial prediction residual r being smaller than the lower bound 70 of interval 68.
By use of the embodiment just outlined, the entropy encoded value r corresponds to, i.e. equals, the actual prediction residual in case of same being within interval 68. If, however, the entropy encoded value r equals value 76, then it is clear that the actual prediction residual r of current sample value x equals 76 or some value above the latter, and if the entropy encoded residual value r equals value 78, then the actual prediction residual r equals this value 78 or some value below the same. That is, there are actually two escape codes 76 and 78 in that case. In case of the initial value r lying outside interval 68, control 60 triggers escape coding handler 62 to insert within the data stream, into which the entropy encoder 26 outputs its entropy coded data stream, a coding which enables the decoder to recover the actual prediction residual, either in a self-contained manner independent from the entropy encoded value r being equal to escape code 76 or 78, or dependent thereon. For example, escape coding handler 62 may write into the data stream the actual prediction residual r directly using a binary representation of sufficient bit length, such as of length 2n+1, including the sign of the actual prediction residual r, or merely the absolute value of the actual prediction residual r using a binary representation of bit length 2n using escape code 76 for signaling the plus sign, and escape code 78 for signaling the minus sign. Alternatively, merely the absolute value of the difference between the initial prediction residual value r and the value of escape code 76 is coded in case of the initial prediction residual exceeding upper bound 72, and the absolute value of the difference between the initial prediction residual r and the value of the escape code 78 in case of the initial prediction residual residing below lower bound 70. This is, in accordance with one implementation example, done using conditionally coding: Firstly, min(|x−{circumflex over (x)}|−13; 15) is coded in the escape coding case, using four bits, and if min(|x−{circumflex over (x)}|−13; 15) equals 15, then |x−{circumflex over (x)}|13-15 is coded, using another seven bits.
Obviously, the escape coding is less complex than the coding of the usual prediction residuals lying within interval 68. No context adaptivity is, for example, used. Rather, the coding of the value coded in the escape case may be performed by simply writing a binary representation for a value such as |r| or even x, directly. However, the interval 68 may be selected such that the escape procedure occurs statistically seldomly and merely represents “outliers” in the statistics of sample values x.
However,
As a precautionary measure only, it is noted that another way of realizing escape coding would be feasible as well with these alternative embodiments by not entropy decoding anything for spectral values, the prediction residual of which exceeds, or lies outside, interval 68. For example, for each syntax element a flag could be transmitted indicating whether same is encoded using entropy encoding, or whether escape coding is used. In that case, for each sample value a flag would indicate the chosen way of coding.
In the following, a concrete example for implementing the above embodiments is described. In particular, the explicit example set out below exemplifies how to deal with the aforementioned unavailability of certain previously coded/decoded sample values in the spectrotemporal neighborhood. Further, specific examples are presented for setting the possible value range 66, the interval 68, the quantization function 32, range 34 and so forth. Later on it will be described that the concrete example may be used in connection with IGF. However, it is noted that the description set out below may easily be transferred to other cases where the temporal grid at which the spectral envelope's sample values are arranged, is, for example, defined by other time units than frames such as groups of QMF slots, and the spectral resolution is likewise defined by a sub-grouping of subbands into spectrotemporal tiles.
Let us denote with t (time) the frame number across time, and f (frequency) the position of the respective sample value of the spectral envelope across scale factors (or scale factor groups). The sample values are called SFE value in the following. We want to encode the value of x, using information already available from previously decoded frames at positions (t−1), (t−2), . . . , and from the current frame at position (t) at frequencies (f−1), (f−2), . . . . The situation is again depicted in
For an independent frame, we set t=0. An independent frame is a frame which qualifies itself as a random access point for a decoding entity. It thus represents a time instant where random access into decoding is feasible at the decoding side. As far as the spectral axis 16 is concerned, the first SFE 12 associated with the lowest frequency shall have f=0. In
We have several cases depending on whether t=0 or f=0. In each case and in each context, we may compute an adaptive estimate {circumflex over (x)} of the value x, based on the neighbors, as follows:
The values b-e and a-c represent, as already denoted above, deviation measures. They represent the expected amount of noisiness of variability across frequency near the value to be decoded/coded, namely x. The values b-c and a-d represent the expected amount of noisiness of variability across time near x. To significantly reduce the total number of contexts, they may be non-linearly quantized before they are used to select the context such as, for example, as set out with respect to
The terms se02[·], se20[·], and se11[·][·] in the above table are context vectors/matrices. That is, each of the entries of these vectors/matrices are/represent a context index indexing one of the available contexts. Each of these three vectors/matrices may index a context out of a disjoint sets of contexts. That is, different sets of contexts may be chosen by the context determiner outlined above depending on the availability condition. The above table exemplarily distinguishes between six different availability conditions. The context corresponding to se01 and se10 may correspond to contexts different from any context of the context groups indexed by se02, se20 and se11, too. The estimated value of x is computed as {circumflex over (x)}=rINT(αa+βb+γc+δ). For higher bitrates, α=1, β=−1, γ=1, and δ=0 may be used, and for lower bitrates a separate set of coefficients may be used for each context, based on information from a training data set.
The prediction error or prediction residual r=x−{circumflex over (x)} may be encoded using a separate distribution for each context, derived using information extracted from a representative training data set. Two special symbols may be used at both sides of the coding distribution 74, namely 76 and 78 to indicate out-of-range large negative or positive values, which are then encoded using an escape coding technique as already outlined above. For example, in accordance with an implementation example, min(|x−{circumflex over (x)}|−13; 15) is coded in the escape coding case, using four bits, and if min(|x−{circumflex over (x)}|−13; 15) equals 15, then |x−{circumflex over (x)}|−13-15 is coded, using another seven bits.
With respect to the following figures, various possibilities are described as to how the above mentioned context-based entropy encoders/decoders may be built into respective audio decoders/encoders.
In particular, the fine determiner 82 could be configured to determine the fine structure of the spectrogram using at least one of artificial random noise generation, spectral regeneration and spectral-line wise decoding using spectral prediction and/or spectral entropy-context derivation. The first two possibilities are described with respect to
A corresponding parametric encoder fitting to the parametric decoder according to
In the example of
The spectral shaper 84 could then, using the sample values 12, fill spectral lines within spectral line groups or spectrotemporal tiles corresponding to the respective sample values 12 using mechanisms like spectral regeneration or artificial noise generation, adjusting the resulting fine structure level or energy within the respective spectrotemporal tile/scale factor group according to the corresponding sample value describing the spectral envelope. See, for example,
Finally,
That is, in accordance with the embodiments of
As denoted by a dashed arrow in
Summarizing the above, the above embodiments take advantage of the special properties of sample values of spectral envelopes, where in contrast to [2] and [3] such sample values represent average values of spectra lines. In all the embodiments outlined above, the transforms may use MDCT and accordingly, an inverse MDCT may be used for all inverse transforms. In any case, such sample values of spectral envelopes are much more “smooth” and linearly correlated to the average magnitude of the corresponding complex spectral lines. In addition, in accordance with at least some of the above embodiments, the sample values of the spectral envelope, called SFE values in the following, are indeed dB domain or more generally logarithmic domain, which is a logarithmic representation. This further improves the “smoothness” compared to the values in linear domain or power-law domain for the spectral lines. For example, in AAC the power-law exponent is 0.75. In contrast to [4], in at least some embodiments the spectral envelope sample values are in logarithmic domain and the properties and structure of the coding distributions is significantly different (depending on its magnitude, one logarithmic domain value typically maps to an exponentially increasing number of linear domain values). Accordingly, at least some of the above described embodiments take advantage of the logarithmic representation in the quantization of the context (a smaller number of contexts are typically present) and in encoding the tails of the distribution of in each context (the tails of each distribution are wider). In contrast to [2], some of the above embodiments additionally use a fixed or adaptive linear prediction in each context, based on the same data as used in computing the quantized context. This approach is useful in drastically reducing the number of contexts while still obtaining optimal performance. In contrast to, for example, [4], in at least some of the embodiments the linear prediction in logarithmic domain has a significantly different usage and significance. For example, it allows to perfectly predict constant energy spectrum areas and also both fade-in and fade-out spectrum areas of the signal. In contrast to [4], some of the above described embodiments use arithmetic coding which allows optimal coding of arbitrary distributions using information extracted from a representative training data set.
In contrast to [2], which also uses arithmetic coding, in accordance with the above embodiments, prediction error values are encoded rather than the original values. Moreover, in the above embodiments bit plane coding does not need to be used. Bit plane coding would, however, involve several arithmetic coding steps for each integer value. Compared thereto, in accordance with the above embodiments, each sample value of the spectral envelope could be encoded/decoded within one step including, as outlined above, the optional use of escape coding for values outside of the center of the whole sample value distribution, which is much faster.
Briefly summarizing the embodiment of a parameter decoder supporting IGF again, as described above with respect to
With regard to the embodiment of
Although some aspects have been described in the context of an apparatus, it is clear that these aspects also represent a description of the corresponding method, where a block or device corresponds to a method step or a feature of a method step. Analogously, aspects described in the context of a method step also represent a description of a corresponding block or item or feature of a corresponding apparatus. Some or all of the method steps may be executed by (or using) a hardware apparatus, like 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 executed by such an apparatus.
Depending on certain implementation requirements, embodiments of the invention can be implemented in hardware or in software. The implementation can be performed using a digital storage medium, for example a floppy disk, a hard disk, a DVD, a Blu-Ray, a CD, a ROM, a PROM, an EPROM, an EEPROM or a FLASH memory, having electronically readable control signals stored thereon, which cooperate (or are capable of cooperating) with a programmable computer system such that the respective method is performed. Therefore, the digital storage medium may be computer readable.
Some embodiments according to the invention comprise a data carrier having electronically readable control signals, which are capable of cooperating with a programmable computer system, such that one of the methods described herein is performed.
Generally, embodiments of the present invention can be implemented as a computer program product with a program code, the program code being operative for performing one of the methods when the computer program product runs on a computer. The program code may for example be stored on a machine readable carrier.
Other embodiments comprise the computer program for performing one of the methods described herein, stored on a machine readable carrier.
In other words, an embodiment of the inventive method is, therefore, a computer program having a program code for performing one of the methods described herein, when the computer program runs on a computer.
A further embodiment of the inventive methods is, therefore, a data carrier (or a digital storage medium, or a computer-readable medium) comprising, recorded thereon, the computer program for performing one of the methods described herein. The data carrier, the digital storage medium or the recorded medium are typically tangible and/or non-transitionary.
A further embodiment of the inventive method is, therefore, a data stream or a sequence of signals representing the computer program for performing one of the methods described herein. The data stream or the sequence of signals may for example be configured to be transferred via a data communication connection, for example via the Internet.
A further embodiment comprises a processing means, for example a computer, or a programmable logic device, configured to or adapted to perform one of the methods described herein.
A further embodiment comprises a computer having installed thereon the computer program for performing one of the methods described herein.
A further embodiment according to the invention comprises an apparatus or a system configured to transfer (for example, electronically or optically) a computer program for performing one of the methods described herein to a receiver. The receiver may, for example, be a computer, a mobile device, a memory device or the like. The apparatus or system may, for example, comprise a file server for transferring the computer program to the receiver.
In some embodiments, a programmable logic device (for example a field programmable gate array) may be used to perform some or all of the functionalities of the methods described herein. In some embodiments, a field programmable gate array may cooperate with a microprocessor in order to perform one of the methods described herein. Generally, the methods may be performed by any hardware apparatus.
While this invention has been described in terms of several embodiments, there are alterations, permutations, and equivalents which will be apparent to others skilled in the art and which fall within the scope of this invention. It should also be noted that there are many alternative ways of implementing the methods and compositions of the present invention. It is therefore intended that the following appended claims be interpreted as including all such alterations, permutations, and equivalents as fall within the true spirit and scope of the present invention.
Number | Date | Country | Kind |
---|---|---|---|
13177351.7 | Jul 2013 | EP | regional |
13189336.4 | Oct 2013 | EP | regional |
This application is a continuation of copending U.S. patent application Ser. No. 17/571,237 filed Jan. 7, 2022, which is a continuation of U.S. patent application Ser. No. 16/918,835 filed Jul. 1, 2020, which is a continuation of U.S. patent application Ser. No. 15/923,643 filed Mar. 16, 2018, which in turn is a continuation of U.S. patent application Ser. No. 15/000,844, filed 10 Jan. 19, 2016, which in turn is a continuation of International Application No. PCT/EP2014/065173, filed Jul. 15, 2014, which is incorporated herein by reference in its entirety, and additionally claims priority from European Application No. EP13177351, filed Jul. 22, 2013, and from European Application No. EP13189336, filed Oct. 18, 2013, which are also incorporated herein by reference in their entirety.
Number | Date | Country | |
---|---|---|---|
Parent | 17571237 | Jan 2022 | US |
Child | 18464986 | US | |
Parent | 16918835 | Jul 2020 | US |
Child | 17571237 | US | |
Parent | 15923643 | Mar 2018 | US |
Child | 16918835 | US | |
Parent | 15000844 | Jan 2016 | US |
Child | 15923643 | US | |
Parent | PCT/EP2014/065173 | Jul 2014 | US |
Child | 15000844 | US |