| CPC G10L 19/02 (2013.01) [G10L 19/022 (2013.01); H03M 7/30 (2013.01)] | 2 Claims |

|
1. Computer-implemented method for encoding a sampled audio signal into a data stream, comprising the steps of
spectrally decomposing, in a segment-wise manner and using different transform lengths, the sampled audio signal to obtain a sequence of segments of coefficients such that segments of coefficients for which different transform lengths are used, spectrally represent the sampled audio signal at different spectral resolutions and comprise different numbers of coefficients;
entropy encoding a currently encoded coefficient of a current segment having a first spectral resolution based on an entropy coding context derived from a previously encoded coefficient of a previous segment having a second spectral resolution, which is different from the first spectral resolution,
wherein the current segment is spectrally subdivided at the first spectral resolution into a first sequence of tuples of a first number spectrally neighboring coefficients,
wherein the previous segment is spectrally subdivided at the second spectral resolution into a second sequence of tuples of a second number of spectrally neighboring coefficients, the first number being equal to the second number,
computing the entropy coding context for a current tuple comprising the currently encoded coefficient by:
downsampling the second sequence of tuples of the previous segment when the second spectral resolution is finer than the first spectral resolution, and up-sampling the second sequence of tuples of the previous segment, when the second spectral resolution is coarser than the first spectral resolution so as to obtain a third sequence of tuples so that a tuple of the third sequence at an index k equals a tuple of the second sequence at an index k*ratio, wherein ratio corresponds to the second resolution divided by the first resolution,
selecting a set of tuples out of the third sequence, and
computing the entropy coding context for the current tuple on the basis of the set of tuples,
entropy encoding the currently encoded coefficient by entropy encoding the current tuple using the entropy coding context for the current tuple, and
signaling a predetermined flag in the data stream responsive to which the entropy coding context is to be reset.
|