home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / compress / 4369 < prev    next >
Encoding:
Internet Message Format  |  1993-01-06  |  75.7 KB

  1. Xref: sparky comp.compression:4369 news.answers:4978
  2. Path: sparky!uunet!opl.com!cass.ma02.bull.com!mips2!bull.bull.fr!julienas!chorus!chorus.fr
  3. From: jloup@chorus.fr (Jean-loup Gailly)
  4. Newsgroups: comp.compression,news.answers
  5. Subject: comp.compression Frequently Asked Questions (part 1/3)
  6. Summary: *** READ THIS BEFORE POSTING ***
  7. Keywords: data compression, FAQ
  8. Message-ID: <compr1_5jan93@chorus.fr>
  9. Date: 5 Jan 93 19:30:03 GMT
  10. Expires: 15 Feb 93 16:17:20 GMT
  11. Sender: news@chorus.chorus.fr
  12. Reply-To: jloup@chorus.fr
  13. Followup-To: comp.compression
  14. Lines: 1805
  15. Approved: news-answers-request@MIT.Edu
  16. Supersedes: <compr1_27nov92@chorus.fr>
  17.  
  18. Archive-name: compression-faq/part1
  19. Last-modified: Jan 5th, 1993
  20.  
  21.         "I've already explained this once, but repetition is
  22.         the very soul of the net."        (from alt.config)
  23.  
  24. This file is part 1 of a set of Frequently Asked Questions (FAQ) for
  25. the groups comp.compression and comp.compression.research. (If you
  26. can't find part 2 or 3, see item 53 below.)
  27.  
  28. Certain questions get asked time and again, and this is an attempt to
  29. reduce the bandwidth taken up by these posts and their associated
  30. replies.  If you have a question, *please* check this file before you
  31. post.  It may save a lot of peoples time.
  32.  
  33. If you have not already read the overall Usenet introductory material
  34. posted to "news.announce.newusers", please do.
  35.  
  36. If you don't want to see this FAQ regularly, please add the
  37. subject line to your kill file. If you have corrections or suggestions
  38. for this FAQ, send them to Jean-loup Gailly <jloup@chorus.fr>.
  39. Thank you.
  40.  
  41. Part 1 is oriented towards practical usage of compression programs.
  42. Part 2 is more intended for people who want to know how compression works.
  43. Part 3 is a long list of image compression hardware.
  44.  
  45. I apologize for the the incorrect distribution of part 2 of the
  46. Nov 27th FAQ. If this happens again, *email* me, don't post.
  47. And look at item 53 below.
  48.  
  49. Main changes relative to the previous version: 
  50.  
  51. - new version of compact-pro (item 2)
  52. - pkzip 2.04c is released (item 3)
  53. - directory for ccitt standards has moved once again (item 11)
  54. - new mail server for ccitt standards (item 11)
  55. - new version of JPEG software (item 15)
  56. - new program (gsm) for audio compression (item 26)
  57. - added info on QCELP (item 26)
  58. - new version of ADPCM audio compression (item 26)
  59. - added a more complete description of JBIG (item 74)
  60. - new item 85 (part 3): Image compression hardware
  61.  
  62.  
  63. Contents
  64. ========
  65.  
  66. General questions:
  67.  
  68. [1]  What are these newsgroups about?
  69. [2]  What is this .xxx file type?
  70.      Where can I find the corresponding compression program?
  71. [3]  What is the latest pkzip version?
  72. [4]  What is an archiver?
  73. [5]  What is the best general purpose compression program?
  74. [7]  Which books should I read?
  75. [8]  What about patents on data compression algorithms?
  76. [9]  The WEB 16:1 compressor.
  77. [11] What is the V.42bis standard?
  78. [12] I need source for the winners of the Dr Dobbs compression contest
  79. [13] I need source for arithmetic coding
  80.  
  81. Image and audio compression:
  82.  
  83. [15] Where can I get image compression programs?
  84. [16] What is the state of the art in lossless image compression?
  85. [17] What is the state of fractal compression?
  86. [18] I need specs and source for TIFF and CCITT group 4 Fax.
  87. [19] What is JPEG?
  88. [20] I am looking for source of an H.261 codec.
  89. [25] Fast DCT (Discrete Cosine Transform) algorithms
  90. [26] Are there algorithms and standards for audio compression?
  91.  
  92. Common problems:
  93.  
  94. [30] My archive is corrupted!
  95. [31] pkunzip reports a CRC error!
  96. [32] VMS zip is not compatible with pkzip!
  97.  
  98. Questions which do not really belong to comp.compression:
  99.  
  100. [50] What is this 'tar' compression program?
  101. [51] I need a CRC algorithm
  102. [52] What about those people who continue to ask frequently asked questions?
  103. [53] Where are FAQ lists archived?
  104. [54] I need specs for graphics formats
  105. [55] Where can I find Lenna and other images?
  106. [56] I am looking for a message digest algorithm
  107.  
  108.  
  109. Part 2: (Long) introductions to data compression techniques
  110.  
  111. [70] Introduction to data compression (long)
  112.        Huffman and Related Compression Techniques
  113.        Arithmetic Coding
  114.        Substitutional Compressors
  115.           The LZ78 family of compressors
  116.           The LZ77 family of compressors
  117.  
  118. [71] Introduction to MPEG (long)
  119.        What is MPEG?
  120.        Does it have anything to do with JPEG?
  121.        Then what's JBIG and MHEG?
  122.        What has MPEG accomplished?
  123.        So how does MPEG I work?
  124.        What about the audio compression?
  125.        So how much does it compress?
  126.        What's phase II?
  127.        When will all this be finished?
  128.        How do I join MPEG?
  129.        How do I get the documents, like the MPEG I draft?
  130.  
  131. [72] What is wavelet theory?
  132. [73] What is the theoretical compression limit?
  133. [74] Introduction to JBIG
  134.  
  135.  
  136. Part 3: (Long) list of image compression hardware
  137.  
  138. [85] Image compression hardware
  139. [99] Acknowledgments
  140.  
  141.  
  142. Search for "Subject: [#]" to get to question number # quickly. Some news
  143. readers can also take advantage of the message digest format used here.
  144.  
  145. If you know very little about data compression, read question 70 in
  146. part 2 first.
  147.  
  148. ------------------------------------------------------------------------------
  149.  
  150. Subject: [1] What are these newsgroups about?
  151.  
  152.  
  153. comp.compression is the place to discuss about data compression, both
  154. lossless (for text or data) and lossy (for images, sound, etc..).
  155. comp.compression.research was created later to provide a forum for
  156. current research on data compression and data compression algorithms.
  157. If you are not experienced in data compression, please post in
  158. comp.compression only.
  159.  
  160. If you only want to find a particular compression program for a
  161. particular operating system, please read first this FAQ and the
  162. article "How to find sources" which is regularly posted in
  163. news.answers.
  164.  
  165. If you can't resist posting such a request, other groups are probably
  166. more appropriate (comp.binaries.ibm.pc.wanted, comp.sources.wanted,
  167. comp.sys.mac.wanted, comp.archives.msdos.d, alt.graphics.pixutils).
  168. Please post your request in comp.compression only as a last resource.
  169.  
  170. Please do not post any program in binary form to comp.compression.
  171. Very short sources can be posted, but long sources should be be posted
  172. to the specialized source groups, such as comp.sources.* or alt.sources.
  173.  
  174. As for any newsgroups, do not post the same message separately to
  175. comp.compression and comp.compression.research.
  176.  
  177. ------------------------------------------------------------------------------
  178.  
  179. Subject: [2] What is this .xxx file type?
  180.              Where can I find the corresponding compression program?
  181.  
  182.  
  183. All the programs mentioned in this section are lossless.
  184. For most programs, one US and one European ftp site are given.
  185. (wuarchive.wustl.edu: 128.152.135.4, garbo.uwasa.fi: 128.214.87.1)
  186. Many other sites (in particular wsmr-simtel20.army.mil: 192.88.110.2)
  187. have the same programs.
  188.  
  189. To keep this list to a reasonable size, many programs are not
  190. mentioned here. Additional information can be found in the file
  191. ux1.cso.uiuc.edu:/doc/pcnet/compression [128.174.5.59] maintained by
  192. David Lemson (lemson@uiuc.edu). When several programs can handle
  193. the same archive format, only one of them is given. Sources for
  194. additional lossless data compressors can be found in
  195. garbo.uwasa.fi:/pc/programming/lds_10.zip.
  196.  
  197. For Macintosh programs, look on sumex-aim.stanford.edu:/info-mac [36.44.0.6].
  198. For VM/CMS, look on vmd.cso.uiuc.edu:/public.477 [128.174.5.98].
  199. For Atari, look on terminator.cc.umich.edu:/atari/archivers [141.211.164.8]
  200. For Amiga, look on ux1.cso.uiuc.edu:/pub/amiga [128.174.5.59]
  201.     
  202. If you don't know how to use ftp or don't have ftp access, read the
  203. article "How to find sources" which is regularly posted in news.answers.
  204.  
  205. If you can't find a program given below, it is likely that a newer
  206. version exists in the same directory. (Tell me <jloup@chorus.fr>)
  207.  
  208. A very short description of the compression algorithm is given for
  209. most programs. For the meaning of LZ77, LZ78 and LZW, see question 
  210. 70 in part 2 of the FAQ.)
  211.  
  212. ext:  produced by or read by
  213.  
  214. .arc: arc, pkarc for MSDOS. (LZW algorithm)
  215.     wuarchive.wustl.edu:/mirrors/msdos/starter/pk361.exe
  216.     garbo.uwasa.fi:/pc/arcers/pk361.exe
  217.  
  218.       arc for Unix
  219.         wuarchive.wustl.edu:/mirrors/misc/unix/arc521e.tar-z
  220.     garbo.uwasa.fi:/unix/arcers/arc.tar.Z
  221.         Contact: Howard Chu <hyc@umix.cc.umich.edu>
  222.  
  223.       arc for VMS
  224.     wuarchive.wustl.edu:/packages/compression/vax-vms/arc.exe
  225.  
  226.       arcmac for Mac
  227.     mac.archive.umich.edu:/mac/utilities/compressionapps/arcmac.hqx
  228.  
  229.       arc for Amiga
  230.     ftp.funet.fi:pub/amiga/fish/001-100/ff070/arc.lha
  231.  
  232. .arj: arj for MSDOS (LZ77 with hashing, plus secondary static Huffman
  233.           encoding on a block basis)
  234.         Contact: Robert K Jung <robjung@world.std.com>
  235.         wuarchive.wustl.edu:/mirrors/msdos/arc-lbr/arj230.exe
  236.     garbo.uwasa.fi:/pc/arcers/arj230ng.exe
  237.  
  238.       unarj for Unix. Decompresses only. (There is no arj compressor for Unix.
  239.         Don't post a request.)
  240.         wuarchive.wustl.edu:/mirrors/misc/unix/unarj230.tar-z
  241.     garbo.uwasa.fi:/unix/arcers/unarj230.tar.Z
  242.  
  243.       unarj for Mac
  244.         mac.archive.umich.edu:/mac/util/compression/unarjmac.cpt.hqx      
  245.  
  246.       unarj for Amiga
  247.     ftp.funet.fi:pub/amiga/utilities/archivers/unarj-0.5.lha
  248.  
  249. .cpt: Compact Pro for Mac
  250.         sumex-aim.stanford.edu:/info-mac/util/compact-pro-133.hqx [36.44.0.6]
  251.  
  252. .gif: gif files are images compressed with the LZW algorithm. See the
  253.       comp.graphics FAQ list for programs manipulating .gif files. See
  254.       suffix .Z below for source of LZW.
  255.  
  256. .hqx: Macintosh BinHex format.. (BinHex is *not* a compression program,
  257.     it is similar to uuencode but handles multiple forks.)
  258.        for Mac:
  259.      mac.archive.umich.edu:/mac/utilities/compressionapps/binhex4.0.bin
  260.  
  261.        for Unix:
  262.          sumex-aim.stanford.edu:/info-mac/unix/mcvert-165.shar [36.44.0.6]
  263.  
  264. .lha:
  265. .lzh: lha for MSDOS (LZ77 with a trie data structure, plus secondary static
  266.           Huffman coding on a block basis)
  267.     wuarchive.wustl.edu:/mirrors/msdos/arc-lbr/lha213.exe   (exe)
  268.     wuarchive.wustl.edu:/mirrors/msdos/arc-lbr/lha211sr.zip (sources)
  269.     garbo.uwasa.fi:/pc/arcers/lha213.exe
  270.  
  271.       lharc for Unix. (LZ77 with hash table and binary trees, plus secondary
  272.           Huffman coding)
  273.            Warning: lharc can extract .lzh files created by
  274.            lharc 1.xx but not those created by lha. See lha for Unix below.
  275.         wuarchive.wustl.edu:/mirrors/misc/unix/lharc102a.tar-z
  276.     garbo.uwasa.fi:/unix/arcers/lharcsrc.zoo
  277.  
  278.       lharc for VMS. Same warning as for Unix lharc.
  279.     wuarchive.wustl.edu:/packages/compression/vax-vms/lharc.exe
  280.  
  281.       lha for Unix. Warning: all doc is in Japanese.
  282.     wuarchive.wustl.edu:/mirrors/misc/unix/lha101u.tar-z
  283.     garbo.uwasa.fi:/unix/arcers/lha-1.00.tar.Z
  284.           Contact: lha-admin@oki.co.jp
  285.  
  286.       lha for Mac
  287.         mac.archive.umich.edu:/mac/utilities/compressionapps/maclha2.0.cpt.hqx
  288.  
  289.       lha for Amiga
  290.     ftp.funet.fi:pub/amiga/utilities/archivers/LhA_e138.run
  291.  
  292.  
  293. .pak: pak for MSDOS (LZW algorithm)
  294.         wuarchive.wustl.edu:/mirrors/msdos/arc-lbr/pak251.exe
  295.     garbo.uwasa.fi:/pc/arcers/pak251.exe
  296.  
  297. .pit: PackIt (Macintosh)
  298.        for Mac:
  299.          sumex-aim.stanford.edu:/info-mac/util/stuffit-151.hqx  [36.44.0.6]
  300.  
  301.        for Unix:
  302.          sumex-aim.stanford.edu:/info-mac/unix/mcvert-165.shar [36.44.0.6]
  303.  
  304. .pp: PowerPacker (Amiga)
  305.     ftp.funet.fi:pub/amiga/fish/501-600/ff561/PPLib.lha
  306.  
  307. .sea: self-extracting archive (Macintosh)
  308.          Run the file to extract it. The self-extraction code can be
  309.          removed with:
  310.       mac.archive.umich.edu:/mac/utilities/compressionapps/desea1.11.cpt.hqx
  311.  
  312. .sit: Stuffit for Macintosh
  313.        for Mac:
  314.          sumex-aim.stanford.edu:/info-mac/util/stuffit-lite-30.hqx [36.44.0.6]
  315.  
  316.        for Unix:
  317.          sumex-aim.stanford.edu:/info-mac/unix/unsit-15.shar [36.44.0.6]
  318.  
  319.        for Amiga:
  320.      ftp.funet.fi:pub/amiga/utilities/archivers/unsit-1.5c2.lha
  321.  
  322. .tar: tar is *not* a compression program. However, to be kind for you:
  323.       for MSDOS
  324.     wuarchive.wustl.edu:/mirrors/msdos/starter/tarread.exe
  325.     garbo.uwasa.fi:/pc/unix/tar4dos.zoo
  326.  
  327.       for Unix
  328.         tar (you have it already. To extract: tar xvf file.tar)
  329.  
  330.       for VMS
  331.     wuarchive.wustl.edu:/packages/compression/vax-vms/tar.exe
  332.  
  333.       for Macintosh
  334.         sumex-aim.stanford.edu:/info-mac/util/tar-30.hqx
  335.  
  336.       for Amiga:
  337.     ftp.funet.fi:pub/amiga/fish/401-500/ff445/Tar.lha
  338.  
  339. .tar.Z, .tar-z, .taz: tar + compress
  340.       For Unix:     zcat file.tar.Z | tar xvf -
  341.       with GNU tar: tar xvZf file.tar.Z
  342.       Other OS: first uncompress (see .Z below) then untar (see .tar above)
  343.  
  344. .zip: pkzip 1.10 for MSDOS. (LZ77 with hashing, plus secondary static
  345.           Shannon-Fano encoding on whole file)
  346.            Contact: pkware.inc@mixcom.com
  347.          wuarchive.wustl.edu:/mirrors/msdos/zip/pkz110eu.exe.
  348.          garbo.uwasa.fi:/pc/arcers/pkz110eu.exe.
  349.            Note: pkz110eu.exe is an 'export' version without encryption.
  350.  
  351.       pkzip 1.93a for MSDOS. (LZ77 with hashing, plus secondary static
  352.            Huffman coding on a block basis)
  353.         Note: pkzip 1.93a is an alpha version, see item 3 below. pkzip 2.04c
  354.         should soon become available by ftp (see sites for pkzip 1.10 above)
  355.          ux1.cso.uiuc.edu:/pc/exec-pc/pkz193a.exe [128.174.5.59]
  356.      ftp.tu-clausthal.de:/pub/msdos/archive/pkz193a.exe
  357.  
  358.       zip 1.9p1 and unzip 5.0 for Unix, MSDOS, VMS, OS/2, Atari, Mac, Amiga,...
  359.           Compatible with pkzip 1.93a (LZ77 with hashing, plus secondary static
  360.           Huffman coding on a block basis)
  361.             Contact: zip-bugs@wkuvx1.bitnet
  362.      oak.oakland.edu:/pub/msdos/zip/zip19p1.zip  (source)
  363.      oak.oakland.edu:/pub/msdos/zip/zip19p1x.zip (MSDOS exe)
  364.      oak.oakland.edu:/pub/msdos/zip/unzip50.zip  (source)
  365.      oak.oakland.edu:/pub/misc/unix/unzip50.tar-z (tar.Z source)
  366.      oak.oakland.edu:/pub/msdos/zip/unzip50.exe  (MSDOS exe)
  367.          quest.jpl.nasa.gov:/pub/AMIGA/unz51dx.*     (Amiga exe)
  368.          quest.jpl.nasa.gov:/pub/AMIGA/zip19hx.zip   (Amiga exe)
  369.          wuarchive.wustl.edu:/mirrors/garbo.uwasa.fi/arcutil/zcrypt19.zip
  370.          (encryption source. Non US residents must get it from garbo,see below)
  371.  
  372.      garbo.uwasa.fi:/unix/arcers/zip19p1.zip
  373.      garbo.uwasa.fi:/unix/arcers/unzip50.tar.Z.
  374.          garbo.uwasa.fi:/pc/arcutil/zcrypt19.zip (encryption code)
  375.  
  376. .zoo: zoo 2.10 for MSDOS (algorithm copied from that of lha, see lha above)
  377.       Contact: Rahul Dhesi <dhesi@cirrus.com>
  378.      wuarchive.wustl.edu:/mirrors/msdos/zoo/zoo210.exe
  379.      garbo.uwasa.fi:/pc/arcers/zoo210.exe
  380.  
  381.       zoo 2.10 for Unix, VMS
  382.          wsmr-simtel20.army.mil:pd8:<misc.unix>zoo210.tar-z [192.88.110.2]
  383.      garbo.uwasa.fi:/unix/arcers/zoo210.tar.Z
  384.  
  385.       zoo for Mac
  386.       mac.archive.umich.edu:/mac/utilities/compressionapps/maczoo.sit.hqx
  387.  
  388.       zoo for Amiga
  389.     ftp.funet.fi:pub/amiga/utilities/archivers/Zoo-2.1.lha
  390.  
  391. .F: freeze for Unix (LZ77 with hashing, plus secondary dynamic Huffman
  392.          encoding)
  393.      wuarchive.wustl.edu:/usenet/comp.sources.misc/volume25/freeze/part0[1-2].Z
  394.      ftp.inria.fr:/system/arch-compr/freeze-2.3.4.tar.Z
  395.      Contact: Leonid A. Broukhis <leo@s514.ipmce.su>
  396.  
  397. .Y: yabba for Unix, VMS, ... (Y coding, a variant of LZ78)
  398.   wuarchive.wustl.edu:/usenet/comp.sources.unix/volume24/yabbawhap/part0[1-4].Z
  399.   ftp.inria.fr:/system/arch-compr/yabba.tar.Z
  400.   Contact: Dan Bernstein <brnstnd@nyu.edu>
  401.  
  402. .Z: compress for Unix ('the' LZW algorithm)
  403.       It is likely that your Unix system has 'compress' already. Otherwise:
  404.     wuarchive.wustl.edu:/packages/compression/compress-4.1.tar
  405.         (not in .Z format to avoid chicken and egg problem)
  406.  
  407.     compress for MSDOS
  408.     wuarchive.wustl.edu:/mirrors/msdos/compress/comp430[ds].zip
  409.     garbo.uwasa.fi:/pc/unix/comp430d.zip
  410.  
  411.     compress for Macintosh
  412.         sumex-aim.stanford.edu:/info-mac/util/maccompress-32.hqx
  413.  
  414.     compress for Amiga
  415.     ftp.funet.fi:pub/amiga/utilities/archivers/compress-4.1.lha
  416.  
  417.     compress for Vax/VMS
  418.     wuarchive.wustl.edu:/packages/compression/vax-vms/lzcomp.exe
  419.     wuarchive.wustl.edu:/packages/compression/vax-vms/lzdcmp.exe
  420.  
  421. ------------------------------------------------------------------------------
  422.  
  423. Subject: [3]  What is the latest PKZIP version?
  424.  
  425. The latest official version is 2.04c. Here is a message found on the
  426. PKWare BBS:
  427.  
  428. Last Update: 01/04/93
  429. *********************************************************************
  430. *******  PKZIP 2.04c is shipping. Please allow 7-10 business  *******
  431. *******  days to process and ship orders. It will appear on   *******
  432. *******  BBS's shortly here after.                            *******
  433. *********************************************************************
  434.  
  435.  Do not trust or use any version of PKZIP other than 1.10,1.93, and 
  436.  2.04c. All other versions currently circulating on BBS's are fakes.  
  437.  These fake programs should be considered hostile and not be trusted, 
  438.  they may contain viruses, trojans, or other tricks.  
  439.  
  440. ------------------------------------------------------------------------------
  441.  
  442. Subject: [4] What is an archiver?
  443.  
  444.  
  445. There is a distinction between archivers and other compression
  446. programs:
  447.  
  448. - an archiver takes several input files, compresses them and produces
  449.   a single archive file. Examples are arc, arj, lha, zip, zoo.
  450.  
  451. - other compression programs create one compressed file for each
  452.   input file. Examples are freeze, yabba, compress. Such programs
  453.   are often combined with tar to create compressed archives (see
  454.   question 50: "What is this tar compression program?").
  455.  
  456. ------------------------------------------------------------------------------
  457.  
  458. Subject: [5] What is the best general purpose compression program?
  459.  
  460.  
  461. The answer is: it depends. (You did not expect a definitive answer,
  462. did you?)
  463.  
  464. It depends whether you favor speed, compression ratio, a standard and
  465. widely used archive format, the number of features, etc...  Just as
  466. for text editors, personal taste plays an important role. compress has
  467. 4 options, arj 2.30 has about 130 options; different people like
  468. different programs. *Please* do not start or continue flame wars on
  469. such matters of taste.
  470.  
  471. The only objective comparisons are speed and compression ratio. Here
  472. is a short table comparing various programs on a 33Mhz Compaq 386.
  473. All programs have been run on Unix SVR4, except pkzip and arj which
  474. only run on MSDOS.  Detailed benchmarks have been posted in
  475. comp.compression by Peter Gutmann <pgut1@cs.aukuni.ac.nz>.
  476.  
  477. *Please* do not post your own benchmarks made on your own files that
  478. nobody else can access. If you think that you must absolutely post yet
  479. another benchmark, make sure that your test files are available by
  480. anonymous ftp.
  481.  
  482. The programs compared here were chosen because they are the most popular
  483. or because they run on Unix and source is available.  For ftp
  484. information, see above. Two programs (hpack and comp-2) have been added
  485. because they achieve better compression (at the expense of speed)
  486. and one program (lzrw3-a) has been added because it favors speed at
  487. the expense of compression:
  488. - comp-2 is in wuarchive.wustl.edu:/mirrors/msdos/ddjmag/ddj9102.zip
  489.   (inner zip file nelson.zip),
  490. - hpack is in wuarchive.wustl.edu:/mirrors/misc/unix/hpack75a.tar-z
  491.   and garbo.uwasa.fi:/unix/arcers/hpack75a.tar.Z
  492. - ftp.adelaide.edu.au:/pub/compression/lzrw3-a.c  [129.127.40.3]
  493.  
  494. The 14 files used in the comparison are from the standard Calgary
  495. Text Compression Corpus, available by ftp on fsa.cpsc.ucalgary.ca [136.159.2.1]
  496. in /pub/text.compression.corpus/text.compression.corpus.tar.Z.
  497.  
  498. The whole corpus includes 18 files, but the 4 files paper[3-6] are
  499. generally omitted in benchmarks. It contains several kinds of file
  500. (ascii, binary, image, etc...) but has a bias towards large files.
  501. You may well get different ratings on the typical mix of files that
  502. you use daily, so keep in mind that the comparisons given below are
  503. only indicative.
  504.  
  505. The programs are ordered by decreasing total compressed size. For a
  506. fair comparison between archivers and other programs, this size is
  507. only the size of the compressed data, not the archive size.
  508.  
  509. The programs were run on an idle machine, so the elapsed time
  510. is significant and can be used to compare Unix and MSDOS programs.
  511.  
  512. [Note: I still have to add all decompression times.]
  513.  
  514.        size     lzrw3a   compress    lharc    yabba     pkzip    freeze 
  515. version:                   4.0       1.02      1.0       1.10     2.3.5
  516. options:                                    -m300000                    
  517.        ------    -----    ------    ------    ------    ------   ------
  518. bib    111261    49040     46528     46502     40456     41354    41515 
  519. book1  768771   416131    332056    369479    306813    350560   344793 
  520. book2  610856   274371    250759    252540    229851    232589   230861 
  521. geo    102400    84214     77777     70955     76695     76172    68626 
  522. news   377109   191291    182121    166048    168287    157326   155783 
  523. obj1    21504    12647     14048     10748     13859     10546    10453 
  524. obj2   246814   108040    128659     90848    114323     90130    85500 
  525. paper1  53161    24522     25077     21748     22453     20041    20021 
  526. paper2  82199    39479     36161     35275     32733     32867    32693 
  527. pic    513216   111000     62215     61394     65377     63805    53291 
  528. progc   39611    17919     19143     15399     17064     14164    14143 
  529. progl   71646    24358     27148     18760     23512     17255    17064 
  530. progp   49379    16801     19209     12792     16617     11877    11686 
  531. trans   93695    30292     38240     28092     31300     23135    22861 
  532.     3,141,622  1,400,105 1,259,141 1,200,580 1,159,340 1,141,821 1,109,290
  533. real             0m35s     0m59s     5m03s     2m40s              5m27s
  534. user             0m25s     0m29s     4m29s     1m46s              4m58s
  535. sys              0m05s     0m10s     0m07s     0m18s              0m08s
  536. MSDOS:                                                   1m39s
  537.                         
  538.  
  539.          zoo       lha       arj      pkzip      zip      hpack   comp-2   
  540.         2.10    1.0(Unix)   2.30      1.93a      1.9      0.75a      
  541.          ah    2.13(MSDOS)   -jm       -ex        -6                         
  542.        ------    ------    ------    ------    -------   ------   ------
  543. bib     40742     40740     36090     35186      34950    35619    29840  
  544. book1  339076    339074    318382    313566     312619   306876   237380  
  545. book2  228444    228442    210521    207204     206306   208486   174085  
  546. geo     68576     68574     69209     68698      68418    58976    64590  
  547. news   155086    155084    146855    144954     144395   141608   128047  
  548. obj1    10312     10310     10333     10307      10295    10572    10819  
  549. obj2    84983     84981     82052     81213      81336    80806    85465  
  550. paper1  19678     19676     18710     18519      18525    18607    16895  
  551. paper2  32098     32096     30034     29566      29674    29825    25453  
  552. pic     52223     52221     53578     52777      55051    51778    55461  
  553. progc   13943     13941     13408     13363      13238    13475    12896  
  554. progl   16916     16914     16408     16148      16175    16586    17354  
  555. progp   11509     11507     11308     11214      11182    11647    11668  
  556. trans   22580     22578     20046     19808      18879    20506    21023  
  557.       1,096,166 1,096,138 1,036,934 1,022,523 1,021,043 1,005,367  890,976
  558. real    4m07s     6m03s                         1m49s   1h22m17s  27m05s
  559. user    3m47s     4m23s                         1m43s   1h20m46s  19m27s
  560. sys     0m04s     0m08s                         0m02s      0m12s   2m03s
  561. MSDOS:            1m49s     2m41s     1m55s
  562.  
  563. Notes:
  564.  
  565. - the compressed data for 'zoo ah' is always two bytes longer than for
  566.   lha. This is simply because both programs are derived from the same
  567.   source (ar002, written by Haruhiko Okumura, available by ftp in
  568.   wuarchive.wustl.edu:/mirrors/msdos/arc_lbr/ar002.zip).
  569.  
  570. - hpack 0.75a gives slightly different results on SunOS (undeterministic
  571.   behaviour still under investigation).
  572.  
  573. - the MSDOS versions are all optimized with assembler code and were run
  574.   on a RAM disk. So it is not surprising that they often go faster than
  575.   their Unix equivalent.
  576.  
  577. ------------------------------------------------------------------------------
  578.  
  579. Subject: [7] Which books should I read?
  580.  
  581.  
  582. [BWC 1989] Bell, T.C, Witten, I.H, and Cleary, J.G.  "Text Compression",
  583.     Prentice-Hall 1989. ISBN: 0-13-911991-4. Price: approx. US$40
  584.     The reference on text data compression.
  585.  
  586. [Nel 1991] Mark Nelson, "The Data Compression Book"
  587.     M&T Books, Redwood City, CA, 1991.  ISBN 1-55851-216-0.
  588.     Price $36.95 including two 5" PC-compatible disks bearing
  589.     all the source code printed in the book.
  590.     A practical introduction to data compression.
  591.     The book is targeted at a person who is comfortable reading C code but
  592.     doesn't know anything about data compression.  Its stated goal is to get
  593.     you up to the point where you are competent to program standard
  594.     compression algorithms.
  595.  
  596. [Will 1990] Williams, R.  "Adaptive Data Compression", Kluwer Books, 1990.
  597.     ISBN: 0-7923-9085-7. Price: US$75.
  598.     Reviews the field of text data compression and then addresses the
  599.     problem of compressing rapidly changing data streams.
  600.  
  601. [Stor 1988] Storer, J.A.  "Data Compression: Methods and Theory", Computer
  602.     Science Press, Rockville, MD. ISBN: 0-88175-161-8.
  603.     A survey of various compression techniques, mainly statistical
  604.     non-arithmetic compression and LZSS compression.  Includes complete Pascal
  605.     code for a series of LZ78 variants.
  606.  
  607. [ACG 1991] Advances in Speech Coding, edited by Atal, Cuperman, and Gersho,
  608.     Kluwer Academic Press, 1991.
  609.  
  610. [GG 1991] Vector Quantization and Signal Compression, by Gersho and Gray,
  611.     Kluwer Acad. Press, 1991
  612.  
  613. [CT 1991] Elements of Information Theory, by T.M.Cover and J.A.Thomas
  614.      John Wiley & Sons, 1991.
  615.  
  616. Review papers:
  617.  
  618. [BWC 1989] Bell, T.C, Witten, I.H, and Cleary, J.G.  "Modeling for Text
  619.     Compression", ACM Computing Surveys, Vol.21, No.4 (December 1989), p.557
  620.     A good general overview of compression techniques (as well as modeling for
  621.     text compression); the condensed version of "Text Compression".
  622.  
  623. [Lele 1987] Lelewer, D.A, and Hirschberg, D.S.  "Data Compression", ACM
  624.     Computing Surveys, Vol.19, No.3 (September 1987), p.261.
  625.     A survey of data compression techniques which concentrates on Huffman
  626.     compression and makes only passing mention of other techniques.
  627.  
  628.  
  629. ------------------------------------------------------------------------------
  630.  
  631. Subject: [8] What about patents on data compression algorithms?
  632.  
  633.  
  634. [Note: the appropriate group for discussing software patents is
  635. comp.patents (or misc.legal.computing), not comp.compression.]
  636.  
  637. All patents mentioned here are US patents, and thus probably
  638. not applicable outside the US. See item 70, "Introduction to data
  639. compression" for the meaning of LZ77, LZ78 or LZW.
  640.  
  641.  
  642. (a) Run length encoding
  643.  
  644. - Tsukiyama has two patents on run length encoding: 4,586,027 and 4,872,009
  645.   granted in 1986 and 1989 respectively. The first one covers run length
  646.   encoding in its most primitive form: a length byte followed by the
  647.   repeated byte. The second patent covers the 'invention' of limiting the
  648.   run length to 16 bytes and thus the encoding of the length on 4 bits.
  649.   Here is the start of claim 1 of patent 4,872,009, just for pleasure:
  650.  
  651.     1. A method of transforming an input data string comprising a plurality
  652.     of data bytes, said plurality including portions of a plurality of
  653.     consecutive data bytes identical to one another, wherein said data
  654.     bytes may be of a plurality of types, each type representing different
  655.     information, said method comprising the steps of: [...]
  656.  
  657.  
  658. (b) LZ77
  659.  
  660. - The Gibson & Graybill patent 5,049,881 covers the LZRW1 algorithm
  661.   previously discovered by Ross Williams. (See item 5 for the ftp site
  662.   with all LZRW derivatives). Claims 4 and 12 are very general and
  663.   could be interpreted as applying to any LZ algorithm using hashing
  664.   (including all variants of LZ78):
  665.  
  666.      4. A compression method for compressing a stream of input data into
  667.      a compressed stream of output data based on a minimum number of
  668.      characters in each input data string to be compressed, said
  669.      compression method comprising the creation of a hash table, hashing
  670.      each occurrence of a string of input data and subsequently searching
  671.      for identical strings of input data and if such an identical string
  672.      of input data is located whose string size is at least equal to the
  673.      minimum compression size selected, compressing the second and all
  674.      subsequent occurrences of such identical string of data, if a string
  675.      of data is located which does not match to a previously compressed
  676.      string of data, storing such data as uncompressed data, and for each
  677.      input strings after each hash is used to find a possible previous
  678.      match location of the string, the location of the string is stored
  679.      in the hash table, thereby using the previously processed data to
  680.      act as a compression dictionary.
  681.  
  682.   Claim 12 is identical, with 'method' replaced with 'apparatus'.
  683.   Since the 'minimal compression size' can be as small as 2, the claim
  684.   could cover any dictionary technique of the LZ family. However the
  685.   text of the patent and the other claims make clear that the patent 
  686.   should cover the LZRW1 algorithm only.
  687.  
  688.   The following papers, published before the patent was filed, describe
  689.   applications of hashing to LZ77 compression:
  690.  
  691.     Brent, R.P.  "A Linear Algorithm for Data Compression", Australian
  692.     Computer Journal, Vol.19, No.2 (May 1987), p.64.
  693.  
  694.     Bell, T. "Longest match string searching for Ziv-Lempel compression"
  695.     Res. Rept. 6/89, Dept. of Computer Science, Univ. of Canterbury,
  696.     New Zealand (Feb 89).
  697.  
  698.  
  699. - Phil Katz, author of pkzip, also has a patent on LZ77 (5,051,745)
  700.   but the claims only apply to sorted hash tables, and when the hash
  701.   table is substantially smaller than the window size.
  702.  
  703. - Robert Jung, author of 'arj', has recently been granted patent 5,140,321
  704.   for one variation of LZ77 with hashing.  This patent covers the LZRW3-A
  705.   algorithm, also previously discovered by Ross Williams. LZRW3-A was posted
  706.   on comp.compression on July 15, 1991. The patent was filed two months later
  707.   on Sept 4, 1991. (The US patent system allows this because of the
  708.   'invention date' rule.)
  709.  
  710. - Fiala and Greene obtained in 1990 a patent (4,906,991) on all
  711.   implementations of LZ77 using a tree data structure. Claim 1 of the
  712.   patent is much broader than the algorithms published by Fiala and
  713.   Greene in Comm.ACM, April 89. The patent covers the algorithm
  714.   published by Rodeh and Pratt in 1981 (J. of the ACM, vol 28, no 1,
  715.   pp 16-24).  It also covers the algorithm previously patented by
  716.   Eastman-Lempel-Ziv (4,464,650), and the algorithms used in lharc,
  717.   lha and zoo.
  718.  
  719. - IBM patented (5,001,478) the idea of combining a history buffer (the
  720.   LZ77 technique) and a lexicon (as in LZ78).
  721.  
  722.  
  723. (c) LZ78
  724.  
  725. - The LZW algorithm used in 'compress'is patented by IBM (4,814,746)
  726.   and Unisys (4,558,302). It is also used in the V.42bis compression
  727.   standard (see question 11 on V.42bis below) and in Postscript Level 2.
  728.   (Unisys sells the license to modem manufacturers for a onetime
  729.   $25,000 fee.) The IBM patent application was filed three weeks
  730.   before that of Unisys, but the US patent office failed to recognize
  731.   that they covered the same algorithm. (The IBM patent is more
  732.   general, but its claim 7 is exactly LZW.)
  733.  
  734. - AP coding is patented by Storer (4,876,541). (Get the yabba package
  735.   for source code, see question 2 above, file type .Y)
  736.  
  737.  
  738. (d) other data compression algorithms
  739.  
  740. - IBM holds a patent on the Q-coder implementation of arithmetic
  741.   coding.  The arithmetic coding option of the JPEG standard requires
  742.   use of the patented algorithm.  No JPEG-compatible method is
  743.   possible without infringing the patent, because what IBM actually
  744.   claims rights to is the underlying probability model (the heart of
  745.   an arithmetic coder). (See the JPEG FAQ for details.)
  746.  
  747. - Bacon has patented (4,612,532) some from of Markov modeling.
  748.  
  749.  
  750. As can be seen from the above list, *all* the most popular compression
  751. programs (compress, pkzip, zoo, lha, arj) are now covered by patents.
  752. (This says nothing about the validity of these patents.)
  753.  
  754. Here are some references on data compression patents. A number of them are
  755. taken from the list maintained by Michael Ernst <mernst@theory.lcs.mit.edu>
  756. in mintaka.lcs.mit.edu:/mitlpf/ai/patent-list (or patent-list.Z).
  757.  
  758. 4,464,650
  759. Apparatus and method for compressing data signals and restoring the
  760. compressed data signals
  761. inventors Lempel, Ziv, Cohn, Eastman
  762. assignees Sperry Corporation and At&T Bell Laboratories
  763. filed 8/10/81, granted 8/7/84
  764.  
  765. 4,558,302
  766. High speed data compression and decompression apparatus and method
  767. inventor Welch
  768. assignee Sperry Corporation (now Unisys)
  769. filed 6/20/83, granted 12/10/85
  770. The text for this patent can be ftped from rusmv1.rus.uni-stuttgart.de
  771. (129.69.1.12) in /info/comp.patents/US4558302.Z.
  772.  
  773. 4,586,027
  774. Method and system for data compression and restoration
  775. assignee Hitachi, inventor Tsukimaya et al.
  776. filed 08/07/84, granted 04/29/86
  777.  
  778. 4,612,532
  779. inventor Bacon
  780. granted 9/1986
  781.  
  782. 4,814,746
  783. Data compression method
  784. inventors Victor S. Miller, Mark N. Wegman
  785. assignee IBM
  786. filed 8/11/86, granted 3/21/89
  787. A previous application was filed on 6/1/83, three weeks before the
  788. application by Welch (4,558,302)
  789.  
  790. 4,872,009
  791. Method and apparatus for data compression and restoration
  792. assignee Hitachi, inventor Tsukimaya et al.
  793. filed 12/07/87, granted 10/03/89
  794.  
  795. 4,876,541
  796. Stem [sic] for dynamically compressing and decompressing electronic data
  797. inventor James A. Storer
  798. assignee Data Compression Corporation
  799. filed 10/15/87, granted 10/24/89
  800.  
  801. 4,955,066
  802. Compressing and Decompressing Text Files
  803. inventor Notenboom, L.A.
  804. assignee Microsoft
  805. filed  10/13/89, granted 09/04/90
  806.  
  807. 5,001,478
  808. Method of Encoding Compressed Data
  809. filed 12/28/89, granted 03/19/91
  810. inventor Michael E. Nagy
  811. assignee IBM
  812.  
  813. 5,049,881
  814. Apparatus and method for very high data rate-compression incorporating
  815. lossless data compression and expansion utilizing a hashing technique
  816. inventors Dean K. Gibson, Mark D. Graybill
  817. assignee Intersecting Concepts, Inc.
  818. filed 6/18/90, granted 9/17/91
  819.  
  820. 5,051,745
  821. String searcher, and compressor using same
  822. inventor  Phillip W. Katz (author of pkzip)
  823. filed  8/21/90, granted 9/24/91
  824.  
  825. 4,906,991
  826. Textual substitution data compression with finite length search window
  827. inventors Fiala,E.R., and Greene,D.H.
  828. filed 4/29/1988, granted 3/6/1990
  829. assignee Xerox Corporation
  830.  
  831. 5,109,433
  832. Compressing and decompressing text files
  833. assignee Microsoft
  834.  
  835. 5,140,321
  836. Data compression/decompression method and apparatus
  837. filed 9/4/91, granted 8/18/92
  838. inventor Robert Jung
  839. assignee Prime Computer
  840.  
  841. ------------------------------------------------------------------------------
  842.  
  843. Subject: [9]  The WEB 16:1 compressor.
  844.  
  845.  
  846. [WARNING: this topic has generated the greatest volume of news in the
  847. history of comp.compression. Read this before posting on this subject.]
  848.  
  849.  
  850. (a) What the press says
  851.  
  852. April 20, 1992  Byte Week Vol 4. No. 25:
  853.  
  854.    "In an announcement that has generated high interest - and more than a
  855.    bit of skepticism - WEB Technologies (Smyrna, GA) says it has
  856.    developed a utility that will compress files of greater than 64KB in
  857.    size to about 1/16th their original length.  Furthermore, WEB says its
  858.    DataFiles/16 program can shrink files it has already compressed."
  859.    [...]
  860.    "A week after our preliminary test, WEB showed us the program successfully
  861.    compressing a file without losing any data.  But we have not been able
  862.    to test this latest beta release ourselves."
  863.    [...]
  864.    "WEB, in fact, says that virtually any amount of data can be squeezed 
  865.    to under 1024 bytes by using DataFiles/16 to compress its own output
  866.    multiple times."
  867.  
  868. June 1992 Byte, Vol 17 No 6:
  869.  
  870.    [...] According to Earl Bradley, WEB Technologies' vice president of
  871.    sales and marketing, the compression algorithm used by DataFiles/16
  872.    is not subject to the laws of information theory. [...]
  873.  
  874.  
  875. (b) First details, by John Wallace <buckeye@spf.trw.com>:
  876.  
  877. I called WEB at (404)514-8000 and they sent me some product
  878. literature as well as chatting for a few minutes with me on the phone.
  879. Their product is called DataFiles/16, and their claims for it are
  880. roughly those heard on the net.
  881.  
  882. According to their flier:
  883.  
  884. "DataFiles/16 will compress all types of binary files to approximately
  885. one-sixteenth of their original size ... regardless of the type of
  886. file (word processing document, spreadsheet file, image file,
  887. executable file, etc.), NO DATA WILL BE LOST by DataFiles/16."
  888. (Their capitalizations; 16:1 compression only promised for files >64K
  889. bytes in length.)
  890.  
  891. "Performed on a 386/25 machine, the program can complete a
  892. compression/decompression cycle on one megabyte of data in less than
  893. thirty seconds"
  894.  
  895. "The compressed output file created by DataFiles/16 can be used as the 
  896. input file to subsequent executions of the program.  This feature of 
  897. the utility is known as recursive or iterative compression, and will 
  898. enable you to compress your data files to a tiny fraction of the 
  899. original size.  In fact, virtually any amount of computer data can 
  900. be compressed to under 1024 bytes using DataFiles/16 to compress its 
  901. own output files muliple times.  Then, by repeating in reverse the 
  902. steps taken to perform the recusive compression, all original data 
  903. can be decompressed to its original form without the loss of a single 
  904. bit."
  905.  
  906. Their flier also claims: 
  907.  
  908. "Constant levels of compression across ALL TYPES of FILES"
  909. "Convenient, single floppy DATA TRANSPORTATION"
  910.  
  911. From my telephone conversation, I was was assured that this is an
  912. actual compression program.  Decompression is done by using only the 
  913. data in the compressed file; there are no hidden or extra files.
  914.  
  915.  
  916. (c) More information, by Rafael Ramirez <rafael.ramirez@channel1.com>:
  917.  
  918.    Today (Tuesday, 28th) I got a call from Earl Bradley of Web
  919. who now says that they have put off releasing a software version of
  920. the algorithm because they are close to signing a major contract with
  921. a big company to put the algorithm in silicon.  He said he could not
  922. name the company due to non-disclosure agreements, but that they had
  923. run extensive independent tests of their own and verified that the
  924. algorithm works. [...]
  925.  
  926. He said the algorithm is so simple that he doesn't want anybody
  927. getting their hands on it and copying it even though he said they
  928. have filed a patent on it. [...] Mr. Bradley said the silicon version
  929. would hold up much better to patent enforcement and be harder to copy.
  930.  
  931.    He claimed that the algorithm takes up about 4K of code, uses only
  932. integer math, and the current software implementation only uses a 65K
  933. buffer.  He said the silicon version would likely use a parallel
  934. version and work in real-time. [...]
  935.  
  936.  
  937. (d) The impossiblity proofs.
  938.  
  939. It is impossible for a given program to compress without loss *all*
  940. files greater than a certain size by at least one bit. This can be
  941. proven by a simple counting argument. (Many other proofs have been
  942. posted on comp.compression, *please* do not post yet another one.)
  943.  
  944. Assume that the program can compress without loss all files of size >= N
  945. bits.  Compress with this program all the 2^N files which have
  946. exactly N bits.  All compressed files have at most N-1 bits, so there
  947. are at most (2^N)-1 different compressed files [2^(N-1) files of size
  948. N-1, 2^(N-2) of size N-2, and so on, down to 1 file of size 0]. So at
  949. least two different input files must compress to the same output file.
  950. Hence the compression program cannot be lossless. (Stronger results
  951. about the number of incompressible files can be obtained, but the
  952. proofs are a little more complex.)
  953.  
  954. This argument applies of course to WEB's case (take N = 64K*8 bits).
  955. Note that no assumption is made about the compression algorithm.
  956. The proof applies to *any* algorithm, including those using an
  957. external dictionary, or repeated application of another algorithm,
  958. or combination of different algorithms, or representation of the
  959. data as formulas, etc... All schemes are subject to the counting argument.
  960. There is no need to use information theory to provide a proof, just
  961. basic mathematics.
  962.  
  963. This assumes of course that the information available to the decompressor
  964. is only the bit sequence of the compressed data. If external information
  965. such as a file name or a number of iterations is necessary to decompress
  966. the data, the bits providing the extra information must be included in
  967. the bit count of the compressed data. (Otherwise, it would be sufficient
  968. to consider any input data as a number, use this as the iteration
  969. count or file name, and pretend that the compressed size is zero.)
  970.  
  971. [See also question 73 "What is the theoretical compression limit?" in
  972. part 2 of this FAQ.]
  973.  
  974.  
  975. (e) No software version
  976.  
  977. Appeared on BIX, reposted by Bruce Hoult <Bruce.Hoult@actrix.gen.nz>:
  978.  
  979. tojerry/chaos #673, from abailey, 562 chars, Tue Jun 16 20:40:34 1992
  980. Comment(s). 
  981. ----------
  982. TITLE: WEB Technology
  983. I promised everyone a report when I finally got the poop on WEB's
  984. 16:1 data compression. After talking back and forth for a year
  985. and being put off for the past month by un-returned phone calls,
  986. I finally got hold of Marc Spindler who is their sales manager.
  987.  
  988. _No_ software product is forth coming, period!
  989.  
  990. He began talking about hardware they are designing for delivery
  991. at the end of the year. [...]
  992.  
  993.  
  994. (f) Product cancelled
  995.  
  996. Posted by John Toebes <toebes@bnr.ca> on Aug 10th, 1992:
  997.  
  998. [Long story omitted, confirming the reports made above about the
  999. original WEB claims.]
  1000.  
  1001. 10JUL92 - Called to Check Status.  Was told that testing had uncovered a
  1002.           new problem where 'four numbers in a matrix were the same
  1003.           value' and that the programmers were off attempting to code a
  1004.           preprocessor to eliminate this rare case.  I indicated that he
  1005.           had told me this story before.  He told me that the
  1006.           programmers were still working on the problem.
  1007.  
  1008. 31JUL92 - Final Call to Check Status.  Called Earl in the morning and
  1009.           was told that he still had not heard from the programmers. [...]
  1010.           Stated that if they could not resolve the problem then there would
  1011.           probably not be a product.
  1012.  
  1013. 03AUG92 - Final Call.  Earl claims that the programmers are unable to
  1014.           resolve the problem.  I asked if this meant that there would
  1015.           not be a product as a result and he said yes.
  1016.  
  1017.  
  1018. (g) Conclusion
  1019.  
  1020. The last report given above should put an end to the WEB story.
  1021.  
  1022. [Note from the FAQ maintainer: I will keep this long story in the FAQ
  1023. for a while, and will remove it when the dust has finally settled
  1024. down.]
  1025.  
  1026. ------------------------------------------------------------------------------
  1027.  
  1028. Subject: [11] What is the V.42bis standard?
  1029.  
  1030.  
  1031. A description of the V.42bis standard is given in "The V.42bis
  1032. standard for data-compressing modems," by Clark Thomborson
  1033. <cthombor@theory.lcs.mit.edu>, IEEE Micro, Oct 1992, pp. 41-53. 
  1034.  
  1035. Short introduction, by Alejo Hausner <hausner@qucis.queensu.ca>:
  1036.  
  1037. The V.42bis Compression Standard was proposed by the International
  1038. Consultative Committee on Telephony and Telegraphy (CCITT) as an
  1039. addition to the v.42 error-correction protocol for modems. Its purpose
  1040. is to increase data throughput, and uses a variant of the
  1041. Lempel-Ziv-Welch (LZW) compression method.  It is meant to be
  1042. implemented in the modem hardware, but can also be built into the
  1043. software that interfaces to an ordinary non-compressing modem.
  1044.  
  1045. V.42bis can send data compressed or not, depending on the
  1046. data.  There are some types of data that cannot be
  1047. compressed.  For example, if a file was compressed first,
  1048. and then sent through a V.42bis modem, the modem would not
  1049. likely reduce the number of bits sent.  Indeed it is likely
  1050. that the amount of data would increase somewhat.
  1051.  
  1052. To avoid this problem, the algorithm constantly monitors the
  1053. compressibility of the data, and if it finds fewer bits
  1054. would be necessary to send it uncompressed, it switches to
  1055. transparent mode.  The sender informs the receiver of this
  1056. transition through a reserved escape code.  Henceforth the
  1057. data is passed as plain bytes.
  1058.  
  1059. The choice of escape code is clever.  Initially, it is a
  1060. zero byte.  Any occurrence of the escape code is replaced,
  1061. as is customary, by two escape codes.  In order to prevent a
  1062. string of escape codes from temporarily cutting throughput
  1063. in half, the escape code is redefined by adding 51 mod 256
  1064. each time it is used.
  1065.  
  1066. While transmitting in transparent mode, the sender maintains
  1067. the LZW trees of strings, and expects the receiver to do
  1068. likewise.  If it finds an advantage in returning to
  1069. compressed mode, it will do so, first informing the receiver
  1070. by a special control code.  Thus the method allows the
  1071. hardware to adapt to the compressibility of the data.
  1072.  
  1073.  
  1074. The CCITT standards documents used to be available by ftp on
  1075. ftp.uu.net in /doc/standards/ccitt, but this service has been
  1076. discontinued. If you ftp to digital.resource.org, in directory pub/standards
  1077. there is a file that says that making the standards available in the
  1078. first place was just an experiment.
  1079.  
  1080. The documents are now on src.doc.ic.ac.uk, in directory
  1081. /computing/ccitt/standards/ccitt (they used to be in directory
  1082. doc/ccitt-standards/ccitt, so look around if you don't find them).
  1083. The v42bis standard is in /computing/ccitt/standards/ccitt/1992/v/v42bis.asc.Z.
  1084.  
  1085. A mail server for CCITT documents is available at teledoc@itu.arcom.ch.
  1086. For more information, contact Robert Shaw <shaw@itu.arcom.ch> or
  1087. Antoinette Bautista <bautista@itu.arcom.ch>. Warning by John Levine
  1088. <johnl@iecc.cambridge.ma.us>:
  1089.  
  1090.   This teledoc thing is much less than meets the eye.  What it actually has
  1091.   is one-page abstracts of some but not all CCITT recommendations, along
  1092.   with junk like lists of the national representatives to CCITT.  If you
  1093.   want the actual text of a recommendation, you have to send large amounts
  1094.   of money to Switzerland, same as ever.  I'm under the impression that the
  1095.   U.N. bookstore in New York also stocks a lot of CCITT docs, no cheaper but
  1096.   quicker to get if you're in the U.S.
  1097.  
  1098. ------------------------------------------------------------------------------
  1099.  
  1100. Subject: [12] I need source for the winners of the Dr Dobbs compression contest
  1101.  
  1102.  
  1103. The source of the top 6 programs of the Feb 91 Dr Dobbs data compression
  1104. contest are available by ftp on
  1105.   wsmr-simtel20.army.mil in pd1:<msdos.compress>ddjcompr.zip. [192.88.110.2]
  1106.   garbo.uwasa.fi:/pc/source/ddjcompr.zip [128.214.87.1]
  1107.  
  1108. The sources are in MSDOS end-of-line format, one directory per
  1109. program.  Unix or VMS users, use "unzip -a ddjcompr" to get correct
  1110. end-of-lines (add -d to recreate the directory structure if you are
  1111. using an obsolete version of unzip such as 4.1). Three of the 6
  1112. programs are not portable and only run on MSDOS. compact and urban
  1113. work on Unix, sixpack only requires minor modifications.
  1114.  
  1115. ------------------------------------------------------------------------------
  1116.  
  1117. Subject: [13] I need source for arithmetic coding
  1118.  
  1119.  
  1120. (See question 70 for an introduction to arithmetic coding.)
  1121.  
  1122. The source for the arithmetic coder described in Chap.5 of Bell,
  1123. Cleary, and Witten's book "Text Compression" (see question 7 above)
  1124. (or, equivalently, in: Witten, Neal, and Cleary's article "Arithmetic
  1125. Coding for data Compression" from Communications of the Association
  1126. for Computing Machinery, 30 (6), pp.520-540, June, 1987) is available
  1127. via anonymous ftp from fsa.cpsc.ucalgary.ca (136.159.2.1) in directory
  1128. /pub/arithmetic.coding.  It only comes with a simple order-0 model but
  1129. it's set up so that adding your own more sophisticated one is
  1130. straightforward.
  1131.  
  1132. A low precision arithmetic coding implementation avoiding hardware
  1133. division is available on the same site (fsa.cpsc.ucalgary.ca)
  1134. in /pub/arithmetic.coding/low.precision.version/low.precision.version.shar.
  1135.  
  1136. Kris Popat <popat@image.mit.edu> has worked on "Scalar Quantization
  1137. with Arithmetic Coding."  It describes an arithmetic coding technique
  1138. which is quite general and computationally inexpensive.  The
  1139. documentation and example C code are available via anonymous ftp from
  1140. media-lab.media.mit.edu (18.85.0.2), in /pub/k-arith-code.
  1141.  
  1142. The program 'urban' in ddjcompr.zip (see item 12 above) is a high order
  1143. arithmetic coder working at the bit level. It is written by Urban Koistinen
  1144. <md85-epi@nada.kth.se>.
  1145.  
  1146. ------------------------------------------------------------------------------
  1147.  
  1148. Subject: [15] Where can I get image compression programs?
  1149.  
  1150.  
  1151. JPEG:
  1152.       Source code for most any machine:
  1153.       ftp.uu.net:/graphics/jpeg/jpegsrc.v4.tar.Z [137.39.1.9]
  1154.       nic.funet.fi:/pub/graphics/programs/jpeg/jpegsrc.v4.tar.Z [128.214.6.100]
  1155.       Contact: jpeg-info@uunet.uu.net (Independent JPEG Group)
  1156.  
  1157.       xv, an image viewer which can read JPEG pictures, is available in
  1158.       ftp.cicb.fr:/pub/X11R5/contrib/xv-2.20.tar.Z  [129.20.128.2]
  1159.  
  1160. epic:
  1161.       whitechapel.media.mit.edu:/pub/epic.tar.Z [18.85.0.125]
  1162.       The "Lenna" test image is available as part of the EPIC package,
  1163.       where it is named "test_image".
  1164.  
  1165. compfits:
  1166.       uwila.cfht.hawaii.edu:/pub/compfits/compfits.tar.Z  [128.171.80.50]
  1167.       Contact: Jim Wright <jwright@cfht.hawaii.edu>
  1168.  
  1169. fitspress:
  1170.       cfata4.harvard.edu:/pub/fitspress08.tar.Z [128.103.40.79]
  1171.  
  1172. tiff:
  1173.       For source and sample images, see question 18 below.
  1174.  
  1175.  
  1176. For image compression hardware, see item 85 in part 3 of this FAQ.
  1177.  
  1178. ------------------------------------------------------------------------------
  1179.  
  1180. Subject: [16] What is the state of the art in lossless image compression?
  1181.  
  1182.  
  1183. The current state-of-the-art is the JBIG algorithm.  For an
  1184. introduction to JBIG, see question 74 in part 2.
  1185.  
  1186. JBIG works best on bi-level images (like faxes) and also works well on
  1187. Gray-coded grey scale images up to about six or so bits per pixel.  You
  1188. just apply JBIG to the bit planes individually.  For more bits/pixel,
  1189. lossless JPEG provides better performance, sometimes. (For JPEG, see
  1190. question 19 below.)
  1191.  
  1192. You can find a description of JBIG in ISO/IEC CD 11544, contained in
  1193. document ISO/IEC JTC1/SC2/N2285.  The only way to get it is to ask
  1194. your National Standards Body for a copy. In the USA, call ANSI at
  1195. (212) 642-4900.
  1196.  
  1197. ------------------------------------------------------------------------------
  1198.  
  1199. Subject: [17] What is the state of fractal compression?
  1200.  
  1201.  
  1202. from Tal Kubo <kubo@zariski.harvard.edu>:
  1203.  
  1204. According to Barnsley's book 'Fractals Everywhere', this method is
  1205. based on a measure of deviation between a given image and its
  1206. approximation by an IFS code.  The Collage Theorem states that there is
  1207. a convergent process to minimize this deviation.  Unfortunately,
  1208. according to an article Barnsley wrote for BYTE a few years ago, this
  1209. convergence was rather slow, about 100 hours on a Cray, unless assisted by
  1210. a person.
  1211.  
  1212. Barnsley et al are not divulging any technical information beyond the
  1213. meager bit in 'Fractals Everywhere'.  The book explains the idea of IFS
  1214. codes at length, but is vague about the application of the Collage theorem
  1215. to specific compression problems.
  1216.  
  1217. There is reason to believe that Barnsley's company has
  1218. *no algorithm* which takes a given reasonable image and achieves
  1219. the compression ratios initially claimed for their fractal methods.
  1220. The 1000-to-1 compression advertised was achieved only for a 'rigged'
  1221. class of images, with human assistance. The best unaided
  1222. performance I've heard of is good lossy compression of about 80-1.
  1223.  
  1224. Steve Tate <srt@duke.cs.duke.edu> confirms:
  1225.  
  1226. Compression ratios (unzoomed) seem to range from 20:1 to 60:1...  The
  1227. quality is considerably worse than wavelets or JPEG on most of the
  1228. non-contrived images I have seen.
  1229.  
  1230. But Yuval Fisher <fisher@inls1.ucsd.edu> disagrees:
  1231.  
  1232. Their performance has improved dramatically beyond what they were
  1233. talking about in BYTE a few years ago.  Human assistance to the
  1234. compression is no longer needed and the compression time is
  1235. reasonable, although the more time and compute power you throw at the
  1236. compression, the smaller the resulting file for the same level of
  1237. quality.
  1238.  
  1239. Geoffrey A Stephenson <ketlux@ketlux.demon.co.uk> adds:
  1240.  
  1241. Iterated systems are shipping a general purpose compressor at about
  1242. 300 Pounds in the UK that claims "640x480 24 bit colour compression of
  1243. about 1 min at 922k -> 10k on a 486/50 software only, decomp. to 8
  1244. bits in 3 secs, etc." At a recent multimedia conference in London they
  1245. handed out free demo disks that show the decomp. in action. The
  1246. package runs under both DOS anf WIN (DLLs provided for use in
  1247. applications). They also sell a board to speed up compression and
  1248. offer versions supporting full motion video (but not apparently at all
  1249. SVGA sizes like the static picture version). I have not yet got my
  1250. hands on a full version to test different types of pictures, but
  1251. friends have a and claim it looks good.
  1252.  
  1253.  
  1254. Programs:
  1255.  
  1256. A fractal image compression program is available by ftp in
  1257. lyapunov.ucsd.edu:/pub/young-fractal/unifs10.zip. (Unix users, See
  1258. item 2 above for unzip on Unix.) Note the file size before you ftp it:
  1259. 1.2 MB. The package contains source for compression and decompression,
  1260. source for X-windows decompression, MSDOS executables and images.
  1261.  
  1262. A fractal image decompression program (note: decompression only) is
  1263. available in /pub/inls-ucsd/fractal-2.0.tar on on the same ftp site
  1264. (lyapunov.ucsd.edu). Note the file size before you ftp it: 1.3 MB.
  1265. This file also contains a paper by Yuval Fisher (see reference below),
  1266. and some executables and sample images. Reading this paper is required
  1267. to understand how the Young compression program (see above) works.
  1268.  
  1269.  
  1270. References:
  1271.   A. Jacquin, 'Fractal image coding based on a theory of iterated
  1272.     contractive image transformations', Visual Comm. and Image
  1273.     Processing, vol SPIE-1360, 1990. (The best paper that explains
  1274.     the concept in a simple way.)
  1275.  
  1276.   A. Jacquin, "A Fractal Theory of Iterated Markov Operators with
  1277.     Applications to Digital Image Coding", PhD Thesis, Georgia Tech, 1989.
  1278.   It can be obtained from university microfilms for $35, phone 1-800-521-0600.
  1279.  
  1280.   M. Barnsley, L. Anson, "Graphics Compression Technology, SunWorld,
  1281.     October 1991, pp. 42-52.
  1282.   M.F. Barnsley, A. Jacquin, F. Malassenet, L. Reuter & A.D. Sloan,
  1283.     'Harnessing chaos for image synthesis', Computer Graphics,
  1284.     vol 22 no 4 pp 131-140, 1988.
  1285.   M.F. Barnsley, A.E. Jacquin, 'Application of recurrent iterated
  1286.     function systems to images', Visual Comm. and Image Processing,
  1287.     vol SPIE-1001, 1988.
  1288.   A. Jacquin, "Image Coding Based on a Fractal Theory of Iterated Contractive
  1289.     Image Transformations" p.18, January 1992 (Vol 1 Issue 1) of IEEE Trans
  1290.     on Image Processing.
  1291.   A.E. Jacquin, 'A novel fractal block-coding technique for digital
  1292.     images', Proc. ICASSP 1990.
  1293.   G.E. Oien, S. Lepsoy & T.A. Ramstad, 'An inner product space
  1294.     approach to image coding by contractive transformations',
  1295.     Proc. ICASSP 1991, pp 2773-2776.
  1296.   D.S. Mazel, Fractal Modeling of Time-Series Data, PhD Thesis,
  1297.     Georgia Tech, 1991.    (One dimensional, not pictures)
  1298.   S. A. Hollatz, "Digital image compression with two-dimensional affine
  1299.     fractal interpolation functions", Department of Mathematics and
  1300.     Statistics, University of Minnesota-Duluth, Technical Report 91-2.
  1301.     (a nuts-and-bolts how-to-do-it paper on the technique)
  1302.   Stark, J., "Iterated function systems as neural networks",
  1303.     Neural Networks, Vol 4, pp 679-690, Pergamon Press, 1991.
  1304.   Monro D M and Dudbridge F, "Fractal block coding of images",
  1305.     Electronics Letters 28(11):1053-1054 (1992)
  1306.   Beaumont J M, "Image data compression using fractal techniques",
  1307.     British Telecom Technological Journal 9(4):93-108 (1991)
  1308.   Fisher Y, "Fractal image compression", Siggraph 92
  1309.   Graf S, "Barnsley's Scheme for the Fractal Encoding of Images",
  1310.     Journal Of Complexity, V8, 72-78 (1992).
  1311.  
  1312. Books:
  1313.     The Fractal Transform,
  1314.     Michael F. Barnsley and Louisa F. Anson
  1315.     ISBN 0-86720-218-1, ca. 250 pp, $49.95
  1316.  
  1317.     Fractal Image Compression
  1318.     Michael F. Barnsley and Lyman P. Hurd
  1319.     ISBN 0-86720-457-5, ca. 250 pp., $49.95
  1320.  
  1321. Barnsley's company is:
  1322.  
  1323. Iterated Systems, Inc.
  1324. 5550A Peachtree Parkway, Suite 545
  1325. Norcross, GA  30092
  1326. 404-840-0728
  1327. 404-840-0029 (fax)
  1328.  
  1329. ------------------------------------------------------------------------------
  1330.  
  1331. Subject: [18] I need specs and source for TIFF and CCITT group 4 Fax
  1332.  
  1333.  
  1334. Specs for Group 3 and 4 image coding (group 3 is very similar to group 4)
  1335. are in CCITT (1988) volume VII fascicle VII.3. They are recommendations
  1336. T.4 and T.6 respectively. There is also an updated spec contained in 1992
  1337. recommendations T.1 to T.6.
  1338.  
  1339. CCITT specs are available by anonymous ftp (see above answer on
  1340. V.42bis).  The T.4 and T.6 specs are in the directory
  1341. /computing/ccitt/standards/ccitt/1988/ascii, files 7_3_01.txt.Z and
  1342. 7_3_02.txt.Z respectively.
  1343.  
  1344. Source code can be obtained as part of a TIFF toolkit - TIFF image
  1345. compression techniques for binary images include CCITT T.4 and T.6:
  1346.  
  1347.     sgi.com:/graphics/tiff/v3.0.tar.Z (or v3.2beta.tar.Z)    [192.48.153.1]
  1348.     Contact: sam@sgi.com
  1349.  
  1350. There is also a companion compressed tar file (v3.0pics.tar.Z) that
  1351. has sample TIFF image files. A draft of TIFF 6.0 is in TIFF6.ps.Z.
  1352. Concerning TIFF 6.0, Tom Lane <tgl+@cs.cmu.edu> adds:
  1353.  
  1354.   The TIFF document won't do you much good unless you also have the official
  1355.   JPEG standard.  That, you have to buy from ANSI or your national ISO member
  1356.   organization (DIN over there, I suppose).
  1357.  
  1358.   Worse, the TIFF 6.0 spec has a number of serious problems in its JPEG
  1359.   features.  A clarification note will probably be needed to ensure that TIFF
  1360.   JPEG files are compatible across different implementations.  I can't in good
  1361.   faith recommend that anyone use TIFF-JPEG until these problems are resolved.
  1362.  
  1363.  
  1364. See also question 54 below.
  1365.  
  1366. ------------------------------------------------------------------------------
  1367.  
  1368. Subject: [19] What is JPEG?
  1369.  
  1370.  
  1371. JPEG (pronounced "jay-peg") is a standardized image compression mechanism.
  1372. JPEG stands for Joint Photographic Experts Group, the original name of the
  1373. committee that wrote the standard.  JPEG is designed for compressing either
  1374. full-color or gray-scale digital images of "natural" (real-world) scenes.
  1375. JPEG does not handle black-and-white (1-bit-per-pixel) images, nor does it
  1376. handle motion picture compression.  (Standards for compressing those types
  1377. of images are being worked on by other committees, named JBIG and MPEG
  1378. respectively.)
  1379.  
  1380. A good introduction to JPEG is posted regularly in news.answers by
  1381. Tom Lane <tgl+@cs.cmu.edu>. (See question 53 "Where are FAQ lists archived"
  1382. if this posting has expired at your site.)
  1383.  
  1384. See also the book "JPEG Still Image Data Compression Standard" by
  1385. William B. Pennebaker and Joan L. Mitchell. Published by Van Nostrand
  1386. Reinhold (phone 800/842-3636), ISBN 0-442-01272-1. 650 Pages, $59.95.
  1387. Review by Tom Lane: "This is by far the most complete exposition of
  1388. JPEG in existence.  It's written by two people who know what they are
  1389. talking about: both serve on the ISO JPEG standards committee.  If you
  1390. want to know how JPEG works or why it works that way, this is the book
  1391. to have."
  1392.  
  1393. For JPEG hardware, see item 85 in part 3 of this FAQ.
  1394.  
  1395. ------------------------------------------------------------------------------
  1396.  
  1397. Subject: [20] I am looking for source of an H.261 codec.
  1398.  
  1399.  
  1400. The H.261 spec is available on src.doc.ic.ac.uk in
  1401. /computing/ccitt/standards/ccitt/1992/h/h261.doc.Z (or h261.rtf.Z).
  1402.  
  1403.  
  1404. For H.261 hardware, see item 85 in part 3 of this FAQ.
  1405.  
  1406. from Thierry TURLETTI <turletti@sophia.inria.fr>:
  1407.  
  1408. We have implemented a software version of H.261 codec. 
  1409. It runs on top of UNIX and X-Windows. The coder uses the simple video capture
  1410. board "VideoPix" provided by SUN for the SparcStation. The output is directed
  1411. towards a standard TCP connection, instead of the leased lines or switched 
  1412. circuits for which regular H.261 codecs are designed. This enable us to test
  1413. video conferences over regular internet connections.
  1414. We have to polish it a bit, but the first release is now available by anonymous
  1415. ftp from avahi.inria.fr, in "/pub/h261.tar.Z".
  1416.  
  1417. ------------------------------------------------------------------------------
  1418.  
  1419. Subject: [25] Fast DCT (Discrete Cosine Transform) algorithms
  1420.  
  1421.  
  1422. Here are some references provided by Tom Lane <tgl+@cs.cmu.edu>:
  1423.  
  1424. Polynomial Transform Computation of the 2-D DCT, Duhamel & Guillemot,
  1425.   ICASSP '90 p. 1515.
  1426. A Forward-Mapping Realization of the Inverse DCT, McMillan & Westover,
  1427.   DCC '92 p. 219.
  1428. A Fast Algorithm for 2-D DCT, Cho, Yun & Lee, ICASSP '91 p. 2197.
  1429. Fast Algorithm and Implementation of 2-D DCT, Cho & Lee, Tr. CAS v38 p. 297.
  1430. A DCT Chip based on a new Structured and Computationally Efficient DCT
  1431.   Algorithm, Duhamel, Guillemot & Carlach, ICCAS '90 p. 77.
  1432. Trade-offs in the Computation of Mono- and Multi-dimensional DCTs,
  1433.   Vetterli, Duhamel & Guillemot, ICASSP '89 p. 999.
  1434. Practical Fast 1-D DCT Algorithms with 11 Multiplications,
  1435.   Loeffler, Ligtenberg & Moschytz, ICASSP '89 p. 988.
  1436. New Scaled DCT Algorithms for Fused Multiply/Add Architectures,
  1437.   Linzer & Feig, ICASSP '91 p. 2201.
  1438. Fast Algorithms for the 2-D Discrete Cosine Transform, Kamangar & Rao,
  1439.   IEEE Tr. Computers, v C-31 p. 899.
  1440. Fast 2-D Discrete Cosine Transform, Vetterli, ICASSP '85 p. 1538.
  1441. A Two-Dimensional Fast Cosine Transform, Haque, Tr. ASSP v ASSP-33 p. 1532.
  1442. Real-Time Parallel and Fully Pipelined 2-D DCT Lattice Structures with
  1443.   Application to HDTV Systems, Chiu & Liu, Tr. CAS for Video Tech, v 2 p. 25.
  1444.  
  1445. The Rao & Yip book cited in the jpeg v3 DCT code (see item 15 above) is a
  1446. good overall introduction, with an extensive (though now dated) bibliography.
  1447.  
  1448. ------------------------------------------------------------------------------
  1449.  
  1450. Subject: [26] Are there algorithms and standards for audio compression?
  1451.  
  1452.  
  1453. Yes. See the introduction to MPEG given in part 2 of this FAQ.
  1454.  
  1455. A lossless compressor for 8bit and 16bit audio data (.au) is available by
  1456. anonymous ftp at svr-ftp.eng.cam.ac.uk:/pub/misc/shorten-0.4.shar. It works
  1457. by using Huffman coding of prediction residuals.  Compression is generally
  1458. better than that obtained by applying general purpose compression utilities
  1459. to audio files.
  1460.  
  1461.  
  1462. Copied from the comp.dsp FAQ posted by guido@cwi.nl (Guido van Rossum):
  1463.  
  1464. Strange though it seems, audio data is remarkably hard to compress
  1465. effectively.  For 8-bit data, a Huffman encoding of the deltas between
  1466. successive samples is relatively successful.  For 16-bit data,
  1467. companies like Sony and Philips have spent millions to develop
  1468. proprietary schemes.
  1469.  
  1470. Public standards for voice compression are slowly gaining popularity,
  1471. e.g. CCITT G.721 and G.723 (ADPCM at 32 and 24 kbits/sec).  (ADPCM ==
  1472. Adaptive Delta Pulse Code Modulation.)  Free source code for a *fast*
  1473. 32 kbits/sec ADPCM (lossy) algorithm is available by ftp from ftp.cwi.nl
  1474. as /pub/adpcm.shar.  (** NOTE: if you are using v1.0, you should get
  1475. v1.1, released 17-Dec-1992, which fixes a serious bug -- the quality
  1476. of v1.1 is claimed to be better than uLAW **)
  1477.  
  1478. (Note that U-LAW and silence detection can also be considered
  1479. compression schemes.)
  1480.  
  1481.  
  1482. See also the comp.dsp FAQ for more information on:
  1483.  
  1484. - The U.S. DoD's Federal-Standard-1016 based 4800 bps code excited linear
  1485.   prediction voice coder version 3.2 (CELP 3.2)
  1486. - The U.S. DoD's Federal-Standard-1015/NATO-STANAG-4198 based 2400 bps
  1487.   linear prediction coder version 53 (LPC-10e v53)
  1488. - Realtime DSP code and hardware for FS-1015 and FS-1016
  1489.  
  1490. You can find the comp.dsp FAQ in comp.dsp or news.answers with subject:
  1491. "FAQ: Audio File Formats" or by ftp on pit-manager.mit.edu
  1492. in /pub/usenet/news.answers/audio-fmts/part1.
  1493.  
  1494.  
  1495. from Markus Kuhn <mskuhn@immd4.informatik.uni-erlangen.de>:
  1496.  
  1497.   One highest quality sound compression format is called ASPEC and has
  1498.   been developped by a team at the Frauenhofer Institut in Erlangen (Germany)
  1499.   and others.
  1500.  
  1501.   ASPEC produces CD like quality and offers several bitrates, one is
  1502.   128 kbit/s. It is a lossy algorithm that throws away frequencys that
  1503.   aren't registered in the human cochlea in addition to sophisticated
  1504.   entropy coding. The 64 kbit/s ASPEC variant might soon bring hifi
  1505.   quality ISDN phone connections. It has been implemented on standard DSPs.
  1506.  
  1507.   The Layer 3 MPEG audio compression standard now contains what is officially
  1508.   called the best parts of the ASPEC and MUSICAM algorithms. A reference is:
  1509.  
  1510.     K.Brandenburg, G.Stoll, Y.F.Dehery, J.D.Johnston, L.v.d.Kerkhof,
  1511.     E.F.Schroeder: "The ISO/MPEG-Audio Codec: A Generic Standard for Coding
  1512.     of High Quality Digital Audio",
  1513.     92nd. AES-convention, Vienna 1992, preprint 3336
  1514.  
  1515.  
  1516. from Jutta Degener <jutta@cs.tu-berlin.de> and Carsten Bormann
  1517. <cabo@cs.tu-berlin.de>:
  1518.  
  1519.   GSM 06.10 13 kbit/s RPE/LTP speech compression available
  1520.   --------------------------------------------------------
  1521.  
  1522.   The Communications and Operating Systems Research Group (KBS) at the
  1523.   Technische Universitaet Berlin is currently working on a set of
  1524.   UNIX-based tools for computer-mediated telecooperation that will be
  1525.   made freely available.
  1526.  
  1527.   As part of this effort we are publishing an implementation of the
  1528.   European GSM 06.10 provisional standard for full-rate speech
  1529.   transcoding, prI-ETS 300 036, which uses RPE/LTP (residual pulse
  1530.   excitation/long term prediction) coding at 13 kbit/s.
  1531.  
  1532.   GSM 06.10 compresses frames of 160 13-bit samples (8 kHz sampling
  1533.   rate, i.e. a frame rate of 50 Hz) into 260 bits; for compatibility
  1534.   with typical UNIX applications, our implementation turns frames of 160
  1535.   16-bit linear samples into 33-byte frames (1650 Bytes/s).
  1536.   The quality of the algorithm is good enough for reliable speaker
  1537.   recognition; even music often survives transcoding in recognizable 
  1538.   form (given the bandwidth limitations of 8 kHz sampling rate).
  1539.  
  1540.   Version 1.0 of the implementation is available per anonymous ftp from
  1541.   tub.cs.tu-berlin.de as /pub/tubmik/gsm-1.0.tar.Z.  Questions and bug
  1542.   reports should be directed to toast@tub.cs.tu-berlin.de.  
  1543.   Note that the distribution is not available via E-mail (please use one
  1544.   of the ftp-via-E-mail servers).
  1545.  
  1546.  
  1547. from Bob Kimball <rkimball@qualcomm.com>:
  1548.  
  1549.   I work for Qualcomm Inc. and we are designing a digital cellular telephone
  1550.   system.  Our phone uses our variable rate vocoder (QCELP) which is designed
  1551.   for speach and compresses 64Kb/s speach to 8Kb/s through 1Kb/s with 8Kb/s
  1552.   being full rate and 1Kb/s for 1/8 rate speach.  It works great for speach.
  1553.  
  1554.   The QCELP process is documented in our Common Air Interface (CAI) which is
  1555.   available for anonymous ftp from lorien.qualcomm.com in /pub/cdma
  1556.   each chapter is a postscript file.  The vocoder is described in appendix A.
  1557.   The whole document is quite large.  This is the document which is currently
  1558.   going through the TIA standard committee so it is not a final version.  The
  1559.   appendix on the vocoder should be almost identical to the final version...
  1560.   whenever that comes out.
  1561.  
  1562. ------------------------------------------------------------------------------
  1563.  
  1564. Subject: [30] My archive is corrupted!
  1565.  
  1566.  
  1567. The two most common reasons for this are
  1568.  
  1569. (1) failing to use the magic word "tenex" (when connected to SIMTEL20 and
  1570.     other TOPS20 systems) or "binary" (when connected to UNIX systems) when
  1571.     transferring the file from an ftp site to your host machine.  The
  1572.     reasons for this are technical and boring.  A synonym for "tenex" is
  1573.     "type L 8", in case your ftp doesn't know what "tenex" means.
  1574.  
  1575. (2) failing to use an eight-bit binary transfer protocol when transferring
  1576.     the file from the host to your PC.  Make sure to set the transfer type
  1577.     to "binary" on both your host machine and your PC.
  1578.  
  1579. ------------------------------------------------------------------------------
  1580.  
  1581. Subject: [31] pkunzip reports a CRC error!
  1582.  
  1583.  
  1584. The portable zip 1.0 contains many workarounds for undocumented restrictions
  1585. in pkunzip. Compatibility is ensured for pkunzip 1.10 only. All previous
  1586. versions (pkunzip 1.0x) have too many bugs and cannot be supported. This
  1587. includes Borland unzip.
  1588.  
  1589. So if your pkunzip reports a CRC error, check that you are not using
  1590. an obsolete version. Get either pkzip 1.10 or unzip 5.0 (see question
  1591. 2 above for ftp sites).
  1592.  
  1593. Immediately after zip 1.0 was released, a new undocumented feature
  1594. of pkunzip was discovered, which causes CRC errors even with pkunzip 1.10
  1595. on rare occasions. A patch is available on valeria.cs.ucla.edu in
  1596. /pub/zip10.patch.
  1597.  
  1598. ------------------------------------------------------------------------------
  1599.  
  1600. Subject: [32] VMS zip is not compatible with pkzip!
  1601.  
  1602.  
  1603. The problem is most likely in the file transfer program.
  1604.  
  1605. Many use kermit to transfer zipped files between PC and VMS VAX.  The
  1606. following VMS kermit settings make VMS-ZIP compatible with PKZIP:
  1607.  
  1608.                                              VMS kermit        PC kermit
  1609.                                            ---------------   --------------
  1610.  
  1611. Uploading PKZIPped file to be UNZIPped:    set fi ty fixed    set fi ty bi
  1612. Downloading ZIPped file to be PKUNZIPped:  set fi ty block    set fi ty bi
  1613.  
  1614. If you are not using kermit, transfer a file created by pkzip on MSDOS
  1615. to VMS, transfer it back to your PC and check that pkunzip can extract it.
  1616.  
  1617. ------------------------------------------------------------------------------
  1618.  
  1619. Subject: [50] What is this 'tar' compression program?
  1620.  
  1621.  
  1622. tar is not a compression program. It just combines several files
  1623. into one, without compressing them. tar file are often compressed with
  1624. 'compress', resulting in a .tar.Z file. See question 2, file type .tar.Z.
  1625. GNU tar has the capability to (de)compress files as well.
  1626.  
  1627. When you have to archive a lot of very small files, it is often
  1628. preferable to create a single .tar file and compress it, than to
  1629. compress the individual files separately. The compression program can
  1630. thus take advantage of redundancy between separate files.  The
  1631. disadvantage is that you must uncompress the whole .tar file to
  1632. extract any member.
  1633.  
  1634. ------------------------------------------------------------------------------
  1635.  
  1636. Subject: [51] I need a CRC algorithm
  1637.  
  1638.  
  1639. As its name implies (Cyclic Redundancy Check) a crc adds redundancy
  1640. whereas the topic of this group is to remove it. But since this
  1641. question comes up often, here is some code (by Rob Warnock <rpw3@sgi.com>).
  1642.  
  1643. The following C code does CRC-32 in BigEndian/BigEndian byte/bit order.
  1644. That is, the data is sent most significant byte first, and each of the bits
  1645. within a byte is sent most significant bit first, as in FDDI. You will need
  1646. to twiddle with it to do Ethernet CRC, i.e., BigEndian/LittleEndian byte/bit
  1647. order. [Left as an exercise for the reader.]
  1648.  
  1649. The CRCs this code generates agree with the vendor-supplied Verilog models
  1650. of several of the popular FDDI "MAC" chips.
  1651.  
  1652. u_long crc32_table[256];
  1653. /* Initialized first time "crc32()" is called. If you prefer, you can
  1654.  * statically initialize it at compile time. [Another exercise.]
  1655.  */
  1656.  
  1657. u_long crc32(u_char *buf, int len)
  1658. {
  1659.         u_char *p;
  1660.         u_long  crc;
  1661.  
  1662.         if (!crc32_table[1])    /* if not already done, */
  1663.                 init_crc32();   /* build table */
  1664.         crc = 0xffffffff;       /* preload shift register, per CRC-32 spec */
  1665.         for (p = buf; len > 0; ++p, --len)
  1666.                 crc = (crc << 8) ^ crc32_table[(crc >> 24) ^ *p];
  1667.         return ~crc;            /* transmit complement, per CRC-32 spec */
  1668. }
  1669.  
  1670. /*
  1671.  * Build auxiliary table for parallel byte-at-a-time CRC-32.
  1672.  */
  1673. #define CRC32_POLY 0x04c11db7     /* AUTODIN II, Ethernet, & FDDI */
  1674.  
  1675. init_crc32()
  1676. {
  1677.         int i, j;
  1678.         u_long c;
  1679.  
  1680.         for (i = 0; i < 256; ++i) {
  1681.                 for (c = i << 24, j = 8; j > 0; --j)
  1682.                         c = c & 0x80000000 ? (c << 1) ^ CRC32_POLY : (c << 1);
  1683.                 crc32_table[i] = c;
  1684.         }
  1685. }
  1686.  
  1687. ------------------------------------------------------------------------------
  1688.  
  1689. Subject: [52] What about those people who continue to ask frequently asked
  1690.               questions in spite of the frequently asked questions document?
  1691.  
  1692.  
  1693. Just send them a polite mail message, referring them to this document.
  1694. There is no need to flame them on comp.compression.  That would just
  1695. add more noise to this group.  Posted answers that are in the FAQ are
  1696. just as annoying as posted questions that are in the FAQ.
  1697.  
  1698. ------------------------------------------------------------------------------
  1699.  
  1700. Subject: [53] Where are FAQ lists archived?
  1701.  
  1702.  
  1703. Many are crossposted to news.answers.  That newsgroup should have a
  1704. long expiry time at your site; if not, talk to your sysadmin.
  1705.  
  1706. FAQ lists are available by anonymous FTP from rtfm.mit.edu (18.72.1.58).
  1707. The comp.compression FAQ that you are reading is in directory
  1708.    /pub/usenet/news.answers/compression-faq
  1709.  
  1710. If you don't have FTP access, you can access the archives by mail
  1711. server.  Send an email message to mail-server@pit-manager.mit.edu
  1712. containing the commands
  1713.     send usenet/news.answers/compression-faq/part1
  1714.     send usenet/news.answers/compression-faq/part2
  1715. For instructions, send an email message to the same address with the
  1716. words "help" and "index" (no quotes) on separate lines. If you don't
  1717. get a reply, check your return address, or add a line such as
  1718.     path myname@foo.edu
  1719.  
  1720. ------------------------------------------------------------------------------
  1721.  
  1722. Subject: [54] I need specs for graphics formats
  1723.  
  1724.  
  1725. Have a look in directory /pub/graphics.formats on zamenhof.cs.rice.edu.
  1726. It contains descriptions of gif, tiff, fits, etc...
  1727.  
  1728. See also the FAQ list for comp.graphics.
  1729.  
  1730. ------------------------------------------------------------------------------
  1731.  
  1732. Subject: [55] Where can I find Lenna and other images?
  1733.  
  1734.  
  1735. A bunch of standard images (lenna, baboon, cameraman, crowd, moon
  1736. etc..) are on ftp site eedsp.gatech.edu (130.207.226.2) in directory
  1737. /database/images. The images are in 256-level grayshades (256x256
  1738. pixels, 256 "colors").
  1739.  
  1740. The site ftp.ipl.rpi.edu also has standard images, in two directories:
  1741.    ftp.ipl.rpi.edu:/pub/image/still/usc 
  1742.    ftp.ipl.rpi.edu:/pub/image/still/canon
  1743.  
  1744. In each of those directories are the following directories:
  1745.    bgr     - 24 bit blue, green, red
  1746.    color   - 24 bit red, green, blue
  1747.    gray    - 8 bit grayscale uniform weighted
  1748.    gray601 - 8 bit grayscale CCIR-601 weighted
  1749.  
  1750. And in these directories are the actual images.  
  1751.  
  1752. For example, the popular lena image is in
  1753.    ftp.ipl.rpi.edu:/pub/image/still/usc/color/lena  # 24 bit RGB
  1754.    ftp.ipl.rpi.edu:/pub/image/still/usc/bgr/lena    # 24 bit BGR
  1755.    ftp.ipl.rpi.edu:/pub/image/still/usc/gray/lena   # 8 bit gray
  1756.  
  1757. All of the images are in Sun rasterfile format.  You can use the pbm
  1758. utilities to convert them to whatever format is most convenient.
  1759. [pbm is available in ftp.ee.lbl.gov:/pbmplus*.tar.Z].
  1760. Questions about the ipl archive should be sent to rodney@ipl.rpi.edu.
  1761.  
  1762. The archive maintainer at ftp.ipl.rpi.edu is interested in some method
  1763. of establishing a canonical ftp database of images and could volunteer
  1764. the ipl to be an ftp site for that database. Send suggestions to
  1765. rodney@ipl.rpi.edu.
  1766.  
  1767.  
  1768. Beware: the same image often comes in many different forms, at
  1769. different resolutions, etc... The original lenna image is 512 wide,
  1770. 512 high, 8 bits per pel, red, green and blue fields.  Gray-scale
  1771. versions of Lenna have been obtained in two different ways from the
  1772. original:
  1773.  (1) Using the green field as a gray-scale image, and
  1774.  (2) Doing an RGB->YUV transformation and saving the Y component.
  1775. Method (1) makes it easier to compare different people's results since
  1776. everyone's version should be the same using that method.  Method (2)
  1777. produces a more correct image.
  1778.  
  1779. For the curious: 'lena' or 'lenna' is a digitized Playboy centerfold,
  1780. from November 1972. (Lenna is the spelling in Playboy, Lena is the
  1781. Swedish spelling of the name.) Lena Soderberg (ne Sjooblom) was last
  1782. reported living in her native Sweden, happily married with three kids
  1783. and a job with the state liquor monopoly.  In 1988, she was
  1784. interviewed by some Swedish computer related publication, and she was
  1785. pleasantly amused by what had happened to her picture.  That was the
  1786. first she knew of the use of that picture in the computer business.
  1787.  
  1788. The editorial in the January 1992 issue of Optical Engineering (v. 31
  1789. no. 1) details how Playboy has finally caught on to the fact that
  1790. their copyright on Lenna Sjooblom's photo is being widely infringed.
  1791. It sounds as if you will have to get permission from Playboy to
  1792. publish it in the future.
  1793.  
  1794.  
  1795. Note on the CCITT test images, by Robert Estes <estes@eecs.ucdavis.edu>:
  1796.  
  1797. The ccitt files are in ftp.ipl.rpi.edu:/image-archive/bitmap/ccitt.
  1798. They are named ccitt-n.ras.Z where n goes from 1 to 8.  Each file has
  1799. an accompanying doc file called ccitt-n.ras.doc which describes the image
  1800. file. Here's the doc file for ccitt-1.ras:
  1801.  
  1802. Name ccitt-1.ras
  1803. Size 1728 x 2376 x 1
  1804. Type 1 bit standard format sun rasterfile 
  1805. Keywords binary standard image 1 bit fax
  1806. Description
  1807. One of eight images from the standard binary CCITT test image set.
  1808.  
  1809. This set is commonly used to compare binary image compression
  1810. techniques. The images are are 1728x2376 pixels.
  1811.  
  1812. ------------------------------------------------------------------------------
  1813.  
  1814. Subject: [56] I am looking for a message digest algorithm
  1815.  
  1816.  
  1817. Look on the ftp site rsa.com, in directory /pub. MD4 and MD5 are there.
  1818. This question would be more appropriate on sci.crypt.
  1819.  
  1820.  
  1821.  
  1822.           End of part 1 of the comp.compression faq.
  1823.