COMP3 decompression algorithm used in Sierra On-line SCI-engine games.
Based on the implementation in SCI Decoder by Carl Muckenhoupt
import { Comp3 } from '@4bitlabs/codecs';const encodedBytes = Uint8Array.of(/* encoded data */);const bytes = Comp3.unpack(encodedBytes); Copy
import { Comp3 } from '@4bitlabs/codecs';const encodedBytes = Uint8Array.of(/* encoded data */);const bytes = Comp3.unpack(encodedBytes);
The compressed bytes.
Decompressed payload.
COMP3 decompression algorithm used in Sierra On-line SCI-engine games.
Based on the implementation in SCI Decoder by Carl Muckenhoupt
Example