Skip to main content

Topic: How is lossless compression possible using non-rectangular windows? (Read 3516 times) previous topic - next topic

0 Members and 1 Guest are viewing this topic.
  • evoj2
  • [*]
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.

  • C.R.Helmrich
  • [*][*][*][*][*]
  • Developer
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
  • Last Edit: 16 November, 2013, 08:25:14 PM by C.R.Helmrich
If I don't reply to your reply, it means I agree with you.

  • evoj2
  • [*]
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.
  • Last Edit: 16 November, 2013, 09:02:34 PM by evoj2

  • C.R.Helmrich
  • [*][*][*][*][*]
  • Developer
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.

  • evoj2
  • [*]
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.