Sonic and Sega Retro Message Board: Brett Kosinski format - Sonic and Sega Retro Message Board

Jump to content

Hey there, Guest!  (Log In · Register) Help
Loading News Feed...
 

Brett Kosinski format How things works.

#31 User is offline nineko 

Posted 03 November 2007 - 04:44 PM

  • I am the Holy Cat
  • Posts: 5255
  • Joined: 17-August 06
  • Gender:Male
  • Location:italy
  • Project:I... don't even know anymore :U
  • Wiki edits:5,251

View Postdrx, on Nov 3 2007, 10:38 PM, said:

The point in naming a compression format after the person who cracked it is that by doing this, you show your gratitude towards the cracker for doing it. I, for one, am very grateful to Kosinski and Nemesis for cracking their formats. If it wasn't for them, we probably wouldn't be where we are as a community. Surely someone else would have cracked the formats later (say, I), but they made it possible first.

We already know what these compressions are really called, anyway.
I can see your point here, but the music engine is called "SMPS" and not "Saxman".

#32 User is offline Tweaker 

Posted 03 November 2007 - 04:46 PM

  • Posts: 12389
  • Joined: 27-June 04
  • Gender:Male

View Postnineko, on Nov 3 2007, 05:44 PM, said:

View Postdrx, on Nov 3 2007, 10:38 PM, said:

The point in naming a compression format after the person who cracked it is that by doing this, you show your gratitude towards the cracker for doing it. I, for one, am very grateful to Kosinski and Nemesis for cracking their formats. If it wasn't for them, we probably wouldn't be where we are as a community. Surely someone else would have cracked the formats later (say, I), but they made it possible first.

We already know what these compressions are really called, anyway.
I can see your point here, but the music engine is called "SMPS" and not "Saxman".

"Saxman" is the name of the music compression used in Sonic 2. So it's not trying to call itself the music format, but rather the compression.

Unless I'm completely missing what you just said.

#33 User is offline Nemesis 

Posted 04 November 2007 - 09:26 AM

  • Posts: 437
  • Joined: 11-January 03
  • Gender:Male
  • Location:Sydney, Australia
  • Wiki edits:6

View PostSik, on Nov 4 2007, 06:50 AM, said:

Taking advantage of the bump: would you like to keep calling it Kosinski or not? Seriously. After examining Allegro's packfiles, Kosinski format turned out to be just a somewhat improved version of LZSS (improved by the fact that small offsets require less bytes). I'm not kidding. Go and check the LZSS file in Allegro sources and read the start comment. It describes how does the packfile compression works. It's way similar.

LZ77 is a method/theory of compression. LZSS is a painfully obvious addition to LZ77 compression, which barely warrants mentioning IMO.

Kosinski is an implementation of LZ77 compression. There are many others, and they are all similar. PRS compression is also LZ77 based. LZ77 is one of the most popular compression methods. In fact, of the 8 or so sonic-related compression formats I've worked on, I think 6 of them have been LZ77 based. Being based on the same compression theory means they are going to have a lot in common. They are unique implementations however, and there are a lot of implementational details which are not defined in the compression method, such as how the bit tags are embedded, how the offset/count pairs are specified, additional offset/count formats and how they are indicated, the number of bits for the copy count vs the offset in each pair, how the end of file is marked, etc. There's also a lot of careful measurement and testing that goes into choosing precisely how the offset/count pairs are balanced to produce the best compression ratios, and the kind of data you are compressing affects the choice greatly.

When you get down to it, there are only a handful of actual methods for lossless data compression. The high compression formats we use today such as zip, rar, 7z, etc all rely on the same basic compression methods. These more advanced "superformats" simply add header information which allows them to choose between a variety of methods, and select the best, or even combine several methods, to achieve the best compression ratios throughout a file. I could write a paper called "Uber Compression" which defines this compression method in a generic way. It wouldn't do away with the need to keep the distinction between rar and zip however. We name things by their implementation. Theories and methods are only useful to academics.
This post has been edited by Nemesis: 04 November 2007 - 09:28 AM

  • 3 Pages +
  • 1
  • 2
  • 3
    Locked
    Locked Forum

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users