RedLZW:
Filter:
redSys/Classes (extension) | Red > redTools

RedLZW
ExtensionExtension

lzw compression/decompression

Description

See http://en.wikipedia.org/wiki/LZW and http://marknelson.us/1989/10/01/lzw-data-compression/

A dictionary look-up compressor that performs well with both highly repetitive data and repeating patterns e.g. [0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 3, 3, 3, 3, 3, 3, 3, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3].

NOTE: Only works with 8bit Integer (0-255) values.

Class Methods

.compress

Expects an array of 8bit integers. Returns an array of integers.

.decompress

Array of integers. Returns an array of 8bit integers.

Examples