View Single Post
Old 11-01-2011, 11:38 AM   #29
The Fifth Horseman
FUTURE SCIENCE BASTARD
 
The Fifth Horseman's Avatar


 
Join Date: Oct 2004
Location: Opole, Poland
Posts: 14,276
Default

This is a functional algorithm for the compression process. http://5thhorseman.pastebin.com/14cVLejD
There's two things I'm somewhat unclear on, though: how the original format handles repeat sequences spaced more than 127 pixels apart, and palette indexes above the 127th. If those situations never happen, we're good. Otherwise I'll be going back to the drawing board as soon as we find an example in the original data.

The interleaving is next on my list.
__________________

"God. Can't you people see I'm trying to commit a crime against science and nature here?"
-- Reed Richards
The Fifth Horseman is offline                         Send a private message to The Fifth Horseman
Reply With Quote