Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: How is lossless compression possible using non-rectangular windows? (Read 5965 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

How is lossless compression possible using non-rectangular windows?

Hello.

I'm studying how FLAC works, although my question is valid for any lossless codec.

I wonder how may a codec be lossless if the original signal is multiplied by a window which is not rectangular.

I think this operation will modify the stream that we don't want to change.

I know a rectangular window has a terrible spectral response (sinc, with many lobes), but, what's the problem? We don't want to disturb the audio stream, and by multiplying by something different to 1, we will.

Thank you.

How is lossless compression possible using non-rectangular windows?

Reply #1
I wonder how may a codec be lossless if the original signal is multiplied by a window which is not rectangular.

I thought in FLAC the signal is only windowed for the LPC filter computation, but a rectangular window is used for framing and coding?

In HD-AAC (SLS), where overlapping integer time-frequency transformation is used, the windows satisfy certain constraints, which allow perfect signal reconstruction in the absence of signal quantization (which of course is what we aim for in lossless coding).

Chris
If I don't reply to your reply, it means I agree with you.

How is lossless compression possible using non-rectangular windows?

Reply #2
I wonder how may a codec be lossless if the original signal is multiplied by a window which is not rectangular.

I thought in FLAC the signal is only windowed for the LPC filter computation, but a rectangular window is used for framing and coding?


Thanks for answering.

It seems that I was confused.

I've studied that the first stage in most encoders is blocking/windowing. In FLAC, this stage is followed by interchannel decorrelation, prediction and residual encoding stages. So, which is the window used in the blocking stage? Rectangular one?

If that's true, then I suppose that Tukey window is used in linear prediction. Right?

Thank you.

How is lossless compression possible using non-rectangular windows?

Reply #3
... So, which is the window used in the blocking stage? Rectangular one?

If that's true, then I suppose that Tukey window is used in linear prediction. Right?

Thank you.

Yes and yes (although you could use other windows than Tukey, e.g. Hamming, in the linear prediction to possibly improve the prediction gain on some signals).

Chris
If I don't reply to your reply, it means I agree with you.

How is lossless compression possible using non-rectangular windows?

Reply #4
... So, which is the window used in the blocking stage? Rectangular one?

If that's true, then I suppose that Tukey window is used in linear prediction. Right?

Thank you.

Yes and yes (although you could use other windows than Tukey, e.g. Hamming, in the linear prediction to possibly improve the prediction gain on some signals).

Chris


Thank you.