Difference between revisions of "SCI/Specifications/Resource files/Decompression algorithms"

From ScummVM :: Wiki
Jump to navigation Jump to search
(New page: =Decompression algorithms= The decompression algorithms used in SCI are as follows: ==SCI0 compression algorithms== {| border="1" |'''method''' |'''algorithm''' |---- |0 |uncompressed |-...)
 
m (Improving table formatting)
 
(One intermediate revision by the same user not shown)
Line 3: Line 3:
The decompression algorithms used in SCI are as follows:
The decompression algorithms used in SCI are as follows:


==SCI0 compression algorithms==
{| border="1"  cellspacing="0" cellpadding="5"
{| border="1"
|+ SCI0 compression algorithms
!'''method''' || '''algorithm'''
|-
|0 || uncompressed
|-
|1 || LZW
|-
|2 || HUFFMAN
|}
 
 
{| border="1" cellspacing="0" cellpadding="5"
|+SCI01 compression algorithms
|'''method'''
|'''method'''
|'''algorithm'''
|'''algorithm'''
Line 15: Line 27:
|----
|----
|2
|2
|COMP3
|----
|3
|HUFFMAN
|HUFFMAN
|----
|----
Line 20: Line 35:




==SCI01 compression algorithms==


{| border="1"
{| border="1" cellspacing="0" cellpadding="5"
|+SCI1.0 compression algorithms
|'''method'''
|'''method'''
|'''algorithm'''
|'''algorithm'''
Line 36: Line 51:
|----
|----
|3
|3
|HUFFMAN
|UNKNOWN-0
|----
|4
|UNKNOWN-1
|----
|----
|}
|}


==SCI1.0 compression algorithms==
{| border="1"  cellspacing="0" cellpadding="5"
 
|+SCI1.1 compression algorithms
{| border="1"
|'''method'''
|'''method'''
|'''algorithm'''
|'''algorithm'''
Line 49: Line 66:
|uncompressed
|uncompressed
|----
|----
|1
|18
|LZW
|DCL-EXPLODE
|----
|2
|COMP3
|----
|----
|3
|19
|UNKNOWN-0
|DCL-EXPLODE
|----
|----
|4
|20
|UNKNOWN-1
|DCL-EXPLODE
|----
|----
|}
|}

Latest revision as of 09:08, 31 January 2009

Decompression algorithms

The decompression algorithms used in SCI are as follows:

SCI0 compression algorithms
method algorithm
0 uncompressed
1 LZW
2 HUFFMAN


SCI01 compression algorithms
method algorithm
0 uncompressed
1 LZW
2 COMP3
3 HUFFMAN


SCI1.0 compression algorithms
method algorithm
0 uncompressed
1 LZW
2 COMP3
3 UNKNOWN-0
4 UNKNOWN-1
SCI1.1 compression algorithms
method algorithm
0 uncompressed
18 DCL-EXPLODE
19 DCL-EXPLODE
20 DCL-EXPLODE


As reported by Vladimir Gneushev, SCI32 uses STACpack (as described in RFC 1974) explicitly, determining whether there is a need for compression by comparing the size of the compressed data block with that of the uncompressed.