#80741 - Dwedit - Tue Apr 25, 2006 4:20 am
Does anyone know of an extremely fast decompression library that operates at the word level (32 bit) and no lower?
Something that would be decompressed like this or similar:
Never mind that this would obviously be poor compression...
If one doesn't exist, does anyone know of an easy-to-understand LZ compression library that could be modified to be like that?
_________________
"We are merely sprites that dance at the beck and call of our button pressing overlord."
Something that would be decompressed like this or similar:
Code: |
void decompress(int *s, int *d) { int dist,size; while (1) { dist=*s++; if (dist>0) { do //raw words { *d++=*s++; } while (--dist); } else if (dist<0) { size=*s++; do //previously seen words { *d=d[dist]; d++; } while (--size); } else { return; } } } |
Never mind that this would obviously be poor compression...
If one doesn't exist, does anyone know of an easy-to-understand LZ compression library that could be modified to be like that?
_________________
"We are merely sprites that dance at the beck and call of our button pressing overlord."