MO3 lossless compression.

Started by Cobra,

Cobra

There ( http://www.7-zip.org/sdk.html ) is LZMA algo SDK. LZMA is an all-purpose, lossless compression algorithm used in WinRAR/WinACE/7-ZIP

So you can alter MO3 to use LZMA if not used already. It can be used to replace current algo -
QuoteLossless compression
Samples that don't compress well with MP3/OGG encoding can still be reduced in size with the lossless codec

Ian @ un4seen

I had a brief look at the code, and it doesn't appear to have any specific tuning for PCM sample data? The code would also be somewhat bigger and slower (the MO3 lossless decoders are about 100 bytes).

Cobra

Ahem, not for PCM (sample/instrument) data, but for rest of data...

Keltic Danor

If its bigger and slower for the pcm side, then the size increase would probably either make the resulting mo3 larger, or make the difference negligible.

Cobra

For samples: multimedia codec
For rest of module: LZMA

So 2 codecs.

BTW. Which codec MO3 uses now ?

Ian @ un4seen

Quote from: CobraAhem, not for PCM (sample/instrument) data, but for rest of data...

Why did you quote the "Samples...can still be reduced in size with the lossless codec" bit then? ;)

Regarding 7zip'ing the structures, that may well improve ratios a bit... I'll look into it, and see if it'd be worth the code size increase (the MO3 structure decoder is also tiny).

Poisionous_RePTiLe

Lossless compression of _not_ the samples,
but the rest of the module-data?

Lossless compression is a term used for Sound Or Video Compression (Most often sound) which means that you
"compress", remove parts of the sound/video which is
impossible to hear/see anyways - which means that you
decrease the file-size withouth losing anything...

When it comes to data (Not sound/video) it's quite pointless,
to not say impossible, to "compress" (in reality remove) parts of it in this fashion - since any little lost information counts when it comes to 1 and 0's..

/P. RePTiLe :)

Zarggg

Quote from: Poisionous_RePTiLeLossless compression is a term used for Sound Or Video Compression (Most often sound) which means that you
"compress", remove parts of the sound/video which is
impossible to hear/see anyways - which means that you
decrease the file-size withouth losing anything...

Not true at all. "Lossless" compression means that nothing is removed from the resulant decompressed data stream.

You are actually describing "lossy" compression.

http://en.wikipedia.org/wiki/Lossless_data_compression
http://en.wikipedia.org/wiki/Lossy_data_compression