Jump to content

Quantum compression: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
Undid revision 405034960 by 74.112.4.185 (talk)
Undid revision 405035793 by 74.112.4.185 (talk)
Tag: references removed
Line 1: Line 1:
The '''Quantum compression''' format is a little-known [[data compression]] method created by David Stafford of [[Cinematronics, LLC]]<ref>http://www.linkedin.com/pub/david-stafford/6/217/576 David Stafford's resumé</ref>. Rights to it were purchased by [[Microsoft]], and ''Quantum'' is one of the possible compression methods in a [[Cabinet (file format)|CAB archive]]<ref>http://www.cabextract.org.uk/ History of CAB files format </ref>. Quantum uses an extended [[Abraham Lempel | LZ]] compression algorithm.
The '''Quantum compression''' format is a somewhat obscure [[data compression]] method invented by a company called ''Cinematronics'' (written by an author identified as ''David Stafford''). Rights to it were purchased at some point by [[Microsoft]], and ''Quantum'' is one of the possible compression methods in a [[Cabinet (file format)|CAB archive]].


==Quantum (.Q) archiver==
==Quantum (.Q) archiver==
For [[DOS]], PAQ.EXE is the compressor and UNPAQ.EXE is the decompressor. QWIN.EXE is the [[Microsoft Windows|Windows]] decompressor (no [[Microsoft Windows|Windows]] compressor is known to exist). It is much faster and has more features (e.g. selective decompression) than the [[DOS]] decompressor. Each requires at least a [[Intel 80386 | 386]] [[Central Processing Unit | CPU]] in order to run.
For [[DOS]], PAQ.EXE is the compressor and UNPAQ.EXE is the decompressor. QWIN.EXE is the [[Microsoft Windows|Windows]] decompressor (no [[Microsoft Windows|Windows]] compressor exists). It is much faster and has more features (e.g., selective decompression) than the [[DOS]] decompressor. Each of these require at least a 386 CPU to run.


The last known version is ''0.97'' (as of 15 May, 1995).
The latest known version is ''0.97'' (as of 15 May, 1995).


==.Q archive header==
==.Q archive header==
Line 59: Line 59:
| file date (DOS format)
| file date (DOS format)
|}
|}

(*) Strings are prefixed with their length. This takes one or two
bytes. If the length is less than 128 then it is stored directly in one
byte. If it is greater than 127 then the high bit of the first byte is
set to 1 and the remaining fifteen bits contain the actual length in
big-endian format.


Immediately following the list of files is the compressed data.
Immediately following the list of files is the compressed data.

(*) Strings are prefixed with their length. This takes one or two bytes.
If the length is less than 128 then it is stored directly in one byte.
If it is greater than 127 then the high bit of the first byte is set to 1
and the remaining fifteen bits contain the actual length in [[Endianness | big-endian]] format.

==References==
{{reflist}}
* {{cite book | last = Salomon| first = David | title = Data compression: the complete reference| publisher = Springer Verlag| year = 2007 | pages = 187| isbn = 1846286026}}
{{refend}}


==External links==
==External links==
*http://russotto.net/quantumcomp.html
*http://www.speakeasy.org/~russotto/quantumcomp.html
*ftp://ftp.sac.sk/pub/sac/pack/quant097.zip
*ftp://ftp.sac.sk/pub/sac/pack/quant097.zip



[[Category:Data compression software]]
[[Category:Data compression software]]

Revision as of 19:24, 30 December 2010

The Quantum compression format is a somewhat obscure data compression method invented by a company called Cinematronics (written by an author identified as David Stafford). Rights to it were purchased at some point by Microsoft, and Quantum is one of the possible compression methods in a CAB archive.

Quantum (.Q) archiver

For DOS, PAQ.EXE is the compressor and UNPAQ.EXE is the decompressor. QWIN.EXE is the Windows decompressor (no Windows compressor exists). It is much faster and has more features (e.g., selective decompression) than the DOS decompressor. Each of these require at least a 386 CPU to run.

The latest known version is 0.97 (as of 15 May, 1995).

.Q archive header

Bytes Description
2 signature, must be 0x44 followed by 0x53
1 major version number
1 minor version number
2 number of files which reside in this archive
1 table size required for decompression
1 compression flags

This is immediately followed by the list of files:

Bytes Description
var. length of file name, see (*) below
var. file name, variable length string, not zero-terminated
var. length of comment field, see (*) below
var. comment field, variable length string, not zero-terminated
4 fully expanded file size in bytes
2 file time (DOS format)
2 file date (DOS format)

(*) Strings are prefixed with their length. This takes one or two bytes. If the length is less than 128 then it is stored directly in one byte. If it is greater than 127 then the high bit of the first byte is set to 1 and the remaining fifteen bits contain the actual length in big-endian format.

Immediately following the list of files is the compressed data.