home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 14 Text / 14-Text.zip / comprfaq.zip / COMPRESS.FAQ
Internet Message Format  |  1994-08-28  |  233KB

  1. From ankh.iia.org!uunet!EU.net!julienas!chorus!chorus.fr Sun Aug 28 10:13:55 1994
  2. Path: ankh.iia.org!uunet!EU.net!julienas!chorus!chorus.fr
  3. From: jloup@chorus.fr (Jean-loup Gailly)
  4. Newsgroups: comp.compression,comp.compression.research,news.answers,comp.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_24aug94@chorus.fr>
  9. Date: 24 Aug 94 16:58:43 GMT
  10. Expires: 30 Sep 94 16:17:20 GMT
  11. Sender: news@chorus.chorus.fr
  12. Reply-To: jloup@chorus.fr
  13. Followup-To: comp.compression
  14. Lines: 2783
  15. Approved: news-answers-request@MIT.Edu
  16. Supersedes: <compr1_19jul94@chorus.fr>
  17. Xref: ankh.iia.org comp.compression:3659 comp.compression.research:134 news.answers:9988 comp.answers:3329
  18.  
  19. Archive-name: compression-faq/part1
  20. Last-modified: Aug 24th, 1994
  21.  
  22.         "I've already explained this once, but repetition is
  23.         the very soul of the net."        (from alt.config)
  24.  
  25. This file is part 1 of a set of Frequently Asked Questions (FAQ) for
  26. the groups comp.compression and comp.compression.research.  If you
  27. can't find part 2 or 3, see item 53 below. A copy of this FAQ is available
  28. by ftp in rtfm.mit.edu:/pub/usenet/news.answers/compression-faq/part[1-3].
  29. This FAQ is also accessible in the World Wide Web at
  30. http://www.cis.ohio-state.edu/hypertext/faq/usenet/compression-faq/top.html.
  31.  
  32. Certain questions get asked time and again, and this is an attempt to
  33. reduce the bandwidth taken up by these posts and their associated
  34. replies.  If you have a question, *please* check this file before you
  35. post.  It may save a lot of peoples time.
  36.  
  37. If you have not already read the overall Usenet introductory material
  38. posted to "news.announce.newusers", please do. It is also available by
  39. ftp in garbo.uwasa.fi:/pc/doc-net/usenews.zip (see item 2 below about .zip).
  40.  
  41. If you don't want to see this FAQ regularly, please add the subject
  42. line to your kill file. (If you don't know what a kill file is, get
  43. by ftp the file rtfm.mit.edu:/pub/usenet/news.answers/killfile-faq.)
  44. If you have corrections or suggestions for this FAQ, send them to
  45. Jean-loup Gailly <jloup@chorus.fr>.  Thank you.
  46.  
  47. Part 1 is oriented towards practical usage of compression programs.
  48. Part 2 is more intended for people who want to know how compression works.
  49. Part 3 is a long list of image compression hardware.
  50.  
  51. Main changes relative to the previous version: 
  52.  
  53. - fixed version number for macgzip [item 2]
  54. - added mpeg library [item 15]
  55. - new version of mpegw32 [item 15]
  56. - new version of MPEG1 Audio Layer 3 software [item 26]
  57. - the PM-2 chip is now in production [item 85]
  58.  
  59.  
  60. Contents
  61. ========
  62.  
  63. General questions:
  64.  
  65. [1]  What are these newsgroups about?
  66. [2]  What is this .xxx file type?
  67.      Where can I find the corresponding compression program?
  68. [3]  What is the latest pkzip version?
  69. [4]  What is an archiver?
  70. [5]  What is the best general purpose compression program?
  71. [7]  Which books should I read?
  72. [8]  What about patents on data compression algorithms?
  73. [9]  The WEB 16:1 compressor.
  74. [11] What is the V.42bis standard?
  75. [12] I need source for the winners of the Dr Dobbs compression contest
  76. [13] I need source for arithmetic coding
  77.  
  78. Image and audio compression:
  79.  
  80. [15] Where can I get image compression programs?
  81. [16] What is the state of the art in lossless image compression?
  82. [17] What is the state of fractal compression?
  83. [18] I need specs and source for TIFF and CCITT group 4 Fax.
  84. [19] What is JPEG?
  85. [20] I am looking for source of an H.261 codec and MPEG
  86. [25] Fast DCT (Discrete Cosine Transform) algorithms
  87. [26] Are there algorithms and standards for audio compression?
  88.  
  89. Common problems:
  90.  
  91. [30] My archive is corrupted!
  92. [31] pkunzip reports a CRC error!
  93. [32] VMS zip is not compatible with pkzip!
  94. [33] I have a problem with Stacker or DoubleSpace!
  95.  
  96. Questions which do not really belong to comp.compression:
  97.  
  98. [50] What is this 'tar' compression program?
  99. [51] I need a CRC algorithm
  100. [52] What about those people who continue to ask frequently asked questions?
  101. [53] Where are FAQ lists archived?
  102. [54] I need specs for graphics formats
  103. [55] Where can I find Lenna and other images?
  104. [56] I am looking for a message digest algorithm
  105.  
  106.  
  107. Part 2: (Long) introductions to data compression techniques
  108.  
  109. [70] Introduction to data compression (long)
  110.        Huffman and Related Compression Techniques
  111.        Arithmetic Coding
  112.        Substitutional Compressors
  113.           The LZ78 family of compressors
  114.           The LZ77 family of compressors
  115.  
  116. [71] Introduction to MPEG (long)
  117.        What is MPEG?
  118.        Does it have anything to do with JPEG?
  119.        Then what's JBIG and MHEG?
  120.        What has MPEG accomplished?
  121.        So how does MPEG I work?
  122.        What about the audio compression?
  123.        So how much does it compress?
  124.        What's phase II?
  125.        When will all this be finished?
  126.        How do I join MPEG?
  127.        How do I get the documents, like the MPEG I draft?
  128.  
  129. [72] What is wavelet theory?
  130. [73] What is the theoretical compression limit?
  131. [74] Introduction to JBIG
  132. [75] Introduction to JPEG
  133. [76] What is Vector Quantization?
  134. [77] Introduction to Fractal compression
  135.  
  136.  
  137. Part 3: (Long) list of image compression hardware
  138.  
  139. [85] Image compression hardware
  140. [99] Acknowledgments
  141.  
  142.  
  143. Search for "Subject: [#]" to get to question number # quickly. Some news
  144. readers can also take advantage of the message digest format used here.
  145.  
  146. If you know very little about data compression, read question 70 in
  147. part 2 first.
  148.  
  149. ------------------------------------------------------------------------------
  150.  
  151. Subject: [1] What are these newsgroups about?
  152.  
  153.  
  154. comp.compression is the place to discuss about data compression, both
  155. lossless (for text or data) and lossy (for images, sound, etc..).
  156. comp.compression.research was created later to provide a forum for
  157. current research on data compression and data compression algorithms;
  158. this group is now moderated. If you are not experienced in data compression,
  159. please post in comp.compression only.
  160.  
  161. There is no archive for comp.compression, the volume is too high.
  162. (If you know an ftp site archiving all of comp.compression, tell me
  163. at jloup@chorus.fr).
  164.  
  165. If you only want to find a particular compression program for a
  166. particular operating system, please read first this FAQ and the
  167. article "How to find sources" which is regularly posted in
  168. news.answers.
  169.  
  170. If you can't resist posting such a request, other groups are probably
  171. more appropriate (comp.binaries.ibm.pc.wanted, comp.os.msdos.apps,
  172. comp.sources.wanted, comp.sys.mac.wanted, comp.archives.msdos.d, comp.dsp,
  173. alt.graphics.pixutils). Please post your request in comp.compression
  174. only as a last resource.
  175.  
  176. If your question is about graphics only (no compression), please
  177. post to comp.graphics, *after* reading the comp.graphics FAQ (see
  178. item 54 below). For some unknown reason, many questions about
  179. graphics are incorrectly posted to comp.compression.
  180. For questions related to audio compression, check also comp.dsp.
  181.  
  182. Please do not post any program in binary form to comp.compression.
  183. Very short sources can be posted, but long sources should be be posted
  184. to the specialized source groups, such as comp.sources.* or alt.sources.
  185. If the program is already available by ftp, just give the name of the
  186. ftp site and the full path name of the file.
  187.  
  188. As for any newsgroups, do not post the same message separately to
  189. comp.compression and comp.compression.research.
  190.  
  191. ------------------------------------------------------------------------------
  192.  
  193. Subject: [2] What is this .xxx file type?
  194.              Where can I find the corresponding compression program?
  195.  
  196.  
  197. All the programs mentioned in this section are lossless.
  198. For most programs, one US and one European ftp site are given.
  199. (oak.oakland.edu: 141.210.10.117, garbo.uwasa.fi: 128.214.87.1)
  200. Many other sites (in particular wuarchive.wustl.edu: 128.152.135.4)
  201. have the same programs.
  202.  
  203. To keep this list to a reasonable size, many programs are not
  204. mentioned here. Additional information can be found in the file
  205. ftp.cso.uiuc.edu:/doc/pcnet/compression [128.174.5.61] maintained by
  206. David Lemson (lemson@uiuc.edu). When several programs can handle
  207. the same archive format, only one of them is given.
  208.  
  209. Sources for additional lossless data compressors can be found in
  210. garbo.uwasa.fi:/pc/programming/lds_11.zip and
  211. oak.oakland.edu:/pub/msdos/archivers/lz-comp2.zip.
  212. See also turing.imag.fr:/pub/compression/codecs.dir.tar.gz
  213. for sources of RLE, Huffman and LZW.
  214. Sources in Pascal are in garbo.uwasa.fi:/pc/turbopas/preskit2.zip.
  215.  
  216. For Macintosh programs, look on sumex-aim.stanford.edu:/info-mac [36.44.0.6].
  217. For VM/CMS, look on vmd.cso.uiuc.edu:public.477 [128.174.5.98].
  218. For Atari, look on atari.archive.umich.edu [141.211.165.41]
  219. For Amiga, look on ftp.cso.uiuc.edu:/pub/amiga [128.174.5.59]
  220.     
  221. If you don't know how to use ftp or don't have ftp access, read the
  222. article "How to find sources" which is regularly posted in news.answers.
  223.  
  224. If you can't find a program given below, it is likely that a newer
  225. version exists in the same directory. (Tell me <jloup@chorus.fr>)
  226.  
  227. A very short description of the compression algorithm is given for
  228. most programs. For the meaning of LZ77, LZ78 and LZW, see question 70
  229. in part 2 of the FAQ.) If you are looking for the file format of a
  230. specific compression program, get the sources of the decompressor.
  231.  
  232. ext:  produced by or read by
  233.  
  234. .arc, .ark: arc, pkarc for MSDOS. (LZW algorithm)
  235.     wuarchive.wustl.edu:/mirrors/msdos/starter/pk361.exe
  236.     garbo.uwasa.fi:/pc/arcers/pk361.exe
  237.  
  238.       arc for Unix
  239.         wuarchive.wustl.edu:/mirrors/misc/unix/arc521e.tar-z
  240.     garbo.uwasa.fi:/unix/arcers/arc.tar.Z
  241.         Contact: Howard Chu <hyc@umix.cc.umich.edu>
  242.  
  243.       arc for VMS
  244.     wuarchive.wustl.edu:/packages/compression/vax-vms/arc.exe
  245.  
  246.       arcmac for Mac
  247.     mac.archive.umich.edu:/mac/utilities/compressionapps/arcmac.hqx
  248.  
  249.       arc for Amiga
  250.     ftp.funet.fi:pub/amiga/fish/001-100/ff070/arc.lha
  251.  
  252. .arj: arj for MSDOS (LZ77 with hashing, plus secondary static Huffman
  253.           encoding on a block basis)
  254.         Contact: Robert K Jung <robjung@world.std.com>
  255.         wuarchive.wustl.edu:/mirrors/msdos/archivers/arj241a.exe
  256.     garbo.uwasa.fi:/pc/arcers/arj241a.exe
  257.  
  258.       unarj for Unix. Decompresses only. (There is no arj compressor for Unix.
  259.         Don't post a request.)
  260.         wuarchive.wustl.edu:/mirrors/misc/unix/unarj241.tar-z
  261.     garbo.uwasa.fi:/unix/arcers/unarj241.tar.Z
  262.  
  263.       unarj for Mac
  264.         mac.archive.umich.edu:/mac/util/compression/unarjmac.cpt.hqx      
  265.  
  266.       unarj for Amiga
  267.     ftp.funet.fi:pub/amiga/utilities/archivers/unarj-0.5.lha
  268.  
  269. .bck: VMS BACKUP. BACKUP is *not* a compression program. Do "help backup".
  270.  
  271. .cpt: Compact Pro for Mac and Power PC
  272.         sumex-aim.stanford.edu:/info-mac/cmp/compact-pro-134.hqx (Mac version)
  273.         sumex-aim.stanford.edu:/info-mac/cmp/compact-pro-135-ppc.hqx (Power PC)
  274.  
  275.       For Unix:
  276.     sumex-aim.stanford.edu:/info-mac/unix/macutil-20b1.shar
  277.         ftp.cwi.nl:/pub/macutil2.0b3.shar.Z
  278.  
  279.       For DOS:
  280.     garbo.uwasa.fi:/pc/arcers/ext-pc.zip
  281.  
  282. .exe: self-extracting MSDOS executable (creates files on disk when run)
  283.       Run the file, or try unzip, lha or arj on it.
  284.  
  285. .exe: compressed MSDOS executable (decompresses itself in memory then runs
  286.       the decompressed code). To get the original uncompressed .exe:
  287.         oak.oakland.edu:/pub/msdos/execomp/unp330.zip
  288.       To create such files:
  289.         oak.oakland.edu:/pub/msdos/execomp/lzexe91e.zip
  290.     nic.funet.fi:/pub/msdos/windows/util/winlite1.zip (for Windows exe)
  291.  
  292. .gif: gif files are images compressed with the LZW algorithm. See the
  293.       comp.graphics FAQ list for programs manipulating .gif files. See
  294.       suffix .Z below for source of LZW.
  295.  
  296. .gz, .z:  gzip (or pack, see .z below). gzip uses the same algorithm as
  297.           zip 2.0 (see below); it can also extract packed and compressed files.
  298.       For Unix, MSDOS, OS/2, VMS, Atari, Amiga, Primos:
  299.     prep.ai.mit.edu:/pub/gnu/gzip-1.2.4.tar  (or .shar or .tar.gz : source)
  300.     prep.ai.mit.edu:/pub/gnu/gzip-msdos-1.2.4.exe (MSDOS, lha self-extract)
  301.     garbo.uwasa.fi:/unix/arcers/gzip-1.2.4.tar.Z  (source)
  302.     garbo.uwasa.fi:/pc/unix/gzip124.zip           (MSDOS exe)
  303.     ftp.uu.net:/pub/archiving/zip/VMS/gzip123x.exe (VMS exe)
  304.         mac.archive.umich.edu:/mac/util/compression/macgzip0.22.cpt.hqx (Mac)
  305.         src.doc.ic.ac.uk:/computing/systems/mac/info-mac/cmp/mac-gzip-02.hqx
  306.         mac.archive.umich.edu:/mac/development/source/macgzip0.2src.cpt.hqx
  307.  
  308. .ha:  ha 0.98 for MSDOS (improved PPMC - 4th order Markov modeling)
  309.     garbo.uwasa.fi:/pc/arcers/ha098.zip
  310.  
  311. .hap: Hamarsoft HAP 3.00 archiver. Contact: harald.feldmann@almac.co.uk
  312.         garbo.uwasa.fi:/pc/arcers/hap300re.zip
  313.  
  314. .hpk: hpack
  315.         garbo.uwasa.fi:/unix/arcers/hpack78src.tar.Z
  316.  
  317. .hqx: Macintosh BinHex format.. (BinHex is *not* a compression program,
  318.     it is similar to uuencode but handles multiple forks.)
  319.        for Mac:
  320.      mac.archive.umich.edu:/mac/utilities/compressionapps/binhex4.0.bin
  321.  
  322.        for Unix:
  323.          sumex-aim.stanford.edu:/info-mac/cmp/mcvert-215.shar.gz
  324.          garbo.uwasa.fi:/mac/arcers/mcvert-215.shar
  325.  
  326.        for MSDOS:
  327.          wuarchive.wustl.edu:/mirrors/msdos/xbin23.zip
  328.  
  329. .lha:
  330. .lzh: lha for MSDOS (LZ77 with a trie data structure, plus secondary static
  331.           Huffman coding on a block basis)
  332.     oak.oakland.edu:/pub/msdos/archiver/lha213.exe   (exe)
  333.     oak.oakland.edu:/pub/msdos/archiver/lha211sr.zip (sources)
  334.     garbo.uwasa.fi:/pc/arcers/lha255b.exe
  335.  
  336.       lharc for Unix. (LZ77 with hash table and binary trees, plus secondary
  337.           Huffman coding)
  338.            Warning: lharc can extract .lzh files created by
  339.            lharc 1.xx but not those created by lha. See lha for Unix below.
  340.         wuarchive.wustl.edu:/mirrors/misc/unix/lharc102a.tar-z
  341.     garbo.uwasa.fi:/unix/arcers/lha101u.tar.Z
  342.  
  343.       lharc for VMS. Same warning as for Unix lharc.
  344.     wuarchive.wustl.edu:/packages/compression/vax-vms/lharc.exe
  345.  
  346.       lha for Unix. Warning: all doc is in Japanese.
  347.     wuarchive.wustl.edu:/mirrors/misc/unix/lha101u.tar-z
  348.     garbo.uwasa.fi:/unix/arcers/lha-1.00.tar.Z
  349.           Contact: lha-admin@oki.co.jp or oki@wbg.telcom.oki.co.jp
  350.  
  351.       lha for Mac
  352.         mac.archive.umich.edu:/mac/utilities/compressionapps/maclha2.0.cpt.hqx
  353.  
  354.       lha for Amiga
  355.     ftp.funet.fi:pub/amiga/utilities/archivers/LhA_e138.run
  356.  
  357.  
  358. .pak: pak for MSDOS (LZW algorithm)
  359.         wuarchive.wustl.edu:/mirrors/msdos/archivers/pak251.exe
  360.     garbo.uwasa.fi:/pc/arcers/pak251.exe
  361.  
  362. .pit: PackIt (Macintosh)
  363.        for Mac:
  364.          sumex-aim.stanford.edu:/info-mac/util/stuffit-151.hqx  [36.44.0.6]
  365.  
  366.        for Unix:
  367.          sumex-aim.stanford.edu:/info-mac/cmp/mcvert-215.shar.gz
  368.          garbo.uwasa.fi:/mac/arcers/mcvert-215.shar
  369.  
  370. .pp: PowerPacker (Amiga)
  371.     ftp.funet.fi:pub/amiga/fish/501-600/ff561/PPLib.lha
  372.  
  373. .rar: RAR (MSDOS) Contact: Eugene_Roshal@p0.f23.n5010.z2.fidonet.org
  374.         garbo.uwasa.fi:/pc/arcers/rar1_51.exe
  375.         ftp.kiae.su:/msdos/arcers/rar*.exe
  376.  
  377. .sea: self-extracting archive (Macintosh)
  378.          Run the file to extract it. The self-extraction code can be
  379.          removed with:
  380.       mac.archive.umich.edu:/mac/utilities/compressionapps/desea1.11.cpt.hqx
  381.  
  382. .sdn: used by the Shareware Distribution Network.
  383.       Try the decompressors for .pak or .arj (see above)
  384.  
  385. .shar:  Shell archive. This is not a compression program. Use "sh foo.shar"
  386.         to extract.
  387.  
  388. .sit: Stuffit for Macintosh
  389.        for Mac:
  390.          sumex-aim.stanford.edu:/info-mac/cmp/stuffit-lite-307.hqx [36.44.0.6]
  391.  
  392.        for Unix:
  393.          sumex-aim.stanford.edu:/info-mac/cmp/unsit-15-unix.shar [36.44.0.6]
  394.  
  395.        for Amiga:
  396.      ftp.funet.fi:pub/amiga/utilities/archivers/unsit-1.5c2.lha
  397.  
  398.        for MSDOS:
  399.      garbo.uwasa.fi:/pc/arcers/unsit30.zip
  400.  
  401. .?q?: Squeeze for MSDOS (do not confuse with other 'squeeze' below).
  402.       Static Huffman coding.
  403.     oak.oakland.edu:/pub/msdos/starter/sqpc12a.com (squeeze)
  404.     oak.oakland.edu:/pub/msdos/starter/nusq110.com (unsqueeze)
  405.  
  406. .sqz: Squeeze for MSDOS (do not confuse with other 'squeeze' above)
  407.       LZ77 with hashing.
  408.     wuarchive.wustl.edu:/mirrors/msdos/archivers/sqz1083e.exe
  409.         garbo.uwasa.fi:/pc/arcers/sqz1083e.exe
  410.  
  411. .tar: tar is *not* a compression program. However, to be kind for you:
  412.       for MSDOS
  413.     oak.oakland.edu:/pub/msdos/starter/tarread.exe
  414.     garbo.uwasa.fi:/pc/unix/tar4dos.zoo
  415.  
  416.       for Unix
  417.         tar (you have it already. To extract: tar xvf file.tar)
  418.  
  419.       for VMS
  420.     wuarchive.wustl.edu:/packages/compression/vax-vms/tar.exe
  421.  
  422.       for Macintosh
  423.         sumex-aim.stanford.edu:/info-mac/util/tar-30.hqx
  424.  
  425.       for Amiga:
  426.     ftp.funet.fi:pub/amiga/fish/401-500/ff445/Tar.lha
  427.  
  428. .tar.Z, .tar-z, .taz: tar + compress
  429.       For Unix:     zcat file.tar.Z | tar xvf -
  430.       with GNU tar: tar xvzf file.tar.Z
  431.       for MSDOS:
  432.     garbo.uwasa.fi:/pc/unix/tar315us.zip (MSDOS exe)
  433.         ftp.kiae.su:/msdos/arcers/tar315sr.zip (sources)
  434.       Other OS: first uncompress (see .Z below) then untar (see .tar above)
  435.  
  436. .tar.gz, tar.z, .tgz: tar + gzip
  437.       For Unix: gzip -cd file.tar.gz | tar xvf -
  438.       with GNU tar: tar xvzf file.tar.gz
  439.       for MSDOS: oak.oakland.edu:/pub/msdos/archiver/tar315us.zip
  440.                  garbo.uwasa.fi:/pc/unix/tar315us.zip
  441.       Other OS: first uncompress (see .gz above) then untar (see .tar above)
  442.  
  443. .td0: (compressed MS-DOS floppy image produced by TeleDisk)
  444.       oak.oakland.edu:/pub/msdos/diskutil/teled212.zip
  445.  
  446. .uc2: UC2 for MSDOS and OS/2. (LZ77 with secondary static Huffman encoding on
  447.      a block basis, and dynamic dictionaries shared among files.)
  448.     Contact: desk@aip.nl
  449.       garbo.uwasa.fi:/pc/arcers/uc2r2.exe
  450.  
  451. .z:   pack or gzip (see .gz above). pack uses static Huffman coding.
  452.       To extract, see .gz above.
  453.  
  454. .zip: pkzip 1.10 for MSDOS. (LZ77 with hashing, plus secondary static
  455.           Shannon-Fano encoding on whole file)
  456.            Contact: pkware.inc@mixcom.com
  457.          wuarchive.wustl.edu:/mirrors/msdos/zip/pkz110eu.exe.
  458.          garbo.uwasa.fi:/pc/goldies/pkz110eu.exe.
  459.            Note: pkz110eu.exe is an 'export' version without encryption.
  460.  
  461.       zip 1.1 for Unix, MSDOS, VMS, OS/2, ... (compatible with pkzip 1.10.
  462.      For corresponding unzip, see unzip 5.1 below).
  463.      ftp.uu.net:/pub/archiving/zip/zip11.zip
  464.  
  465.       arcutil 2.0 for VM/CMS (unzip only, not yet compatible with pkzip 2.04)
  466.          vmd.cso.uiuc.edu:/public.477/arcutil.* [128.174.5.98].
  467.  
  468.       pkzip 2.04g for MSDOS. (LZ77 with hashing, plus secondary static
  469.            Huffman coding on a block basis)
  470.      oak.oakland.edu:/pub/msdos/zip/pkz204g.exe
  471.          garbo.uwasa.fi:/pc/arcers/pkz204g.exe
  472.  
  473.       zip 2.0.1 and unzip 5.1 for Unix, MSDOS, VMS, OS/2, Amiga, ...
  474.           Compatible with pkzip 2.04g (LZ77 with hashing, plus secondary static
  475.           Huffman coding on a block basis). Contact: zip-bugs@wkuvx1.wku.edu
  476.           (On SGI, do not confuse with the editor also named 'zip'.)
  477.             
  478.      ftp.uu.net:/pub/archiving/zip/zip201.zip          (source)
  479.      ftp.uu.net:/pub/archiving/zip/unzip511.tar.Z      (source)
  480.      ftp.uu.net:/pub/archiving/zip/MSDOS/zip20x.zip    (MSDOS exe)
  481.      ftp.uu.net:/pub/archiving/zip/MSDOS/unzip511x*.exe (MSDOS exe)
  482.      ftp.wku.edu:[.vms]unzip.exe                       (VAX self-extract)
  483.      ftp.uu.net:/pub/archiving/zip/VMS/zip20x-vms.zip  (Vax/VMS exe)
  484.      ftp.uu.net:/pub/archiving/zip/OS2/*               (OS/2 exe 16&32 bit)
  485.            See also AMIGA, ATARI, MAC, NT, SCO_UNIX and SOLARIS subdirectories.
  486.      ftp.uu.net:/pub/archiving/zip/zcrypt22.zip        (encryption source)
  487.          (Non US residents must get the crypt versions from garbo,see below)
  488.  
  489.      garbo.uwasa.fi:/unix/arcers/zip201.zip     (source)
  490.      garbo.uwasa.fi:/unix/arcers/unzip511.tar.Z (source)
  491.      garbo.uwasa.fi:/pc/arcers/zip20x.zip       (MSDOS exe)
  492.      garbo.uwasa.fi:/pc/arcers/unz511x3.exe     (MSDOS exe)
  493.          garbo.uwasa.fi:/unix/arcers/zcrypt21.zip   (encryption source)
  494.  
  495.        for Macintosh:
  496.          mac.archive.umich.edu:/mac/util/compression/unzip2.01.cpt.hqx
  497.      mac.archive.umich.edu:/mac/util/compression/zipit1.2.cpt.hqx
  498.      ftp.uu.net:/pub/archiving/zip/MAC/mac-unzip-51.hqx
  499.  
  500. .zoo: zoo 2.10 for MSDOS (algorithm copied from that of lha, see lha above)
  501.       Contact: Rahul Dhesi <dhesi@cirrus.com>
  502.      wuarchive.wustl.edu:/mirrors/msdos/zoo/zoo210.exe
  503.      garbo.uwasa.fi:/pc/arcers/zoo210.exe
  504.  
  505.       zoo 2.10 for Unix, VMS
  506.          oak.oakland.edu:/pub/misc/unix/zoo210.tar.Z
  507.      garbo.uwasa.fi:/unix/arcers/zoo210.tar.Z
  508.  
  509.       zoo for Mac
  510.       mac.archive.umich.edu:/mac/utilities/compressionapps/maczoo.sit.hqx
  511.  
  512.       zoo for Amiga
  513.     ftp.funet.fi:pub/amiga/utilities/archivers/Zoo-2.1.lha
  514.  
  515. .F: freeze for Unix (LZ77 with hashing, plus secondary dynamic Huffman
  516.          encoding)
  517.      wuarchive.wustl.edu:/usenet/comp.sources.misc/volume35/freeze/part0[1-3].Z
  518.      ftp.inria.fr:/system/arch-compr/freeze-2.5.tar.Z
  519.      Contact: Leonid A. Broukhis <leo@s514.ipmce.su>
  520.  
  521. .Y: yabba for Unix, VMS, ... (Y coding, a variant of LZ78)
  522.   wuarchive.wustl.edu:/usenet/comp.sources.unix/volume24/yabbawhap/part0[1-4].Z
  523.   ftp.inria.fr:/system/arch-compr/yabba.tar.Z
  524.   Contact: Dan Bernstein <djb@silverton.berkeley.edu>
  525.  
  526. .Z: compress for Unix ('the' LZW algorithm)
  527.       It is likely that your Unix system has 'compress' already. Otherwise:
  528.     wuarchive.wustl.edu:/packages/compression/compress-4.1.tar
  529.         (not in .Z format to avoid chicken and egg problem)
  530.  
  531.     compress for MSDOS
  532.     oak.oakland.edu:/pub/msdos/compress/comp430[ds].zip
  533.     garbo.uwasa.fi:/pc/unix/comp430d.zip
  534.     garbo.uwasa.fi:/pc/source/comp430s.zip
  535.  
  536.     compress for Macintosh
  537.         sumex-aim.stanford.edu:/info-mac/cmp/maccompress-32.hqx
  538.  
  539.     compress for Amiga
  540.     ftp.funet.fi:pub/amiga/utilities/archivers/compress-4.1.lha
  541.  
  542.     compress for Vax/VMS
  543.     wuarchive.wustl.edu:/packages/compression/vax-vms/lzcomp.exe
  544.     wuarchive.wustl.edu:/packages/compression/vax-vms/lzdcmp.exe
  545.  
  546. ------------------------------------------------------------------------------
  547.  
  548. Subject: [3]  What is the latest PKZIP version?
  549.  
  550. The latest official version is 2.04g. Release 2.04c had serious bugs,
  551. corrected in 2.04e and 2.04g.
  552.  
  553. Be warned that there are countless bogus PKZIP 1.20, 2.0, 2.02,
  554. 3.05 and whatever scams floating around.  They usually are hacks of
  555. PKZIP 1.93A beta test version.  Some of them are trojans and / or
  556. carry computer virii.
  557.  
  558. Note about pkzip 2.06 from a PKware employee:
  559.  
  560.     Version 2.06 was released as an INTERNAL use only IBM version.
  561.     It is identical to 2.04G, but it has IBM names in the help
  562.     screens and such. That release is meant for IBM only.
  563.  
  564. ------------------------------------------------------------------------------
  565.  
  566. Subject: [4] What is an archiver?
  567.  
  568.  
  569. There is a distinction between archivers and other compression
  570. programs:
  571.  
  572. - an archiver takes several input files, compresses them and produces
  573.   a single archive file. Examples are arc, arj, lha, zip, zoo.
  574.  
  575. - other compression programs create one compressed file for each
  576.   input file. Examples are freeze, yabba, compress, gzip. Such programs
  577.   are often combined with tar to create compressed archives (see
  578.   question 50: "What is this tar compression program?").
  579.  
  580. For a comparison of zip and gzip, see the gzip README file. (In short:
  581. zip is an archiver, gzip is not; only zip is compatible with pkzip.)
  582.  
  583. ------------------------------------------------------------------------------
  584.  
  585. Subject: [5] What is the best general purpose compression program?
  586.  
  587.  
  588. The answer is: it depends. (You did not expect a definitive answer,
  589. did you?)
  590.  
  591. It depends whether you favor speed, compression ratio, a standard and
  592. widely used archive format, the number of features, etc...  Just as
  593. for text editors, personal taste plays an important role. compress has
  594. 4 options, arj 2.30 has about 130 options; different people like
  595. different programs. *Please* do not start or continue flame wars on
  596. such matters of taste.
  597.  
  598. The only objective comparisons are speed and compression ratio. Here
  599. is a short table comparing various programs on a 33Mhz Compaq 386.
  600. All programs have been run on Unix SVR4, except pkzip and arj which
  601. only run on MSDOS. (MSDOS benchmarks are available by ftp on
  602. oak.oakland.edu:/pub/msdos/info/arctst*.zip.)
  603.  
  604. *Please* do not post your own benchmarks made on your own files that
  605. nobody else can access. If you think that you must absolutely post yet
  606. another benchmark, make sure that your test files are available by
  607. anonymous ftp.
  608.  
  609. The programs compared here were chosen because they are the most
  610. popular or because they run on Unix and source is available.  For ftp
  611. information, see above. Three programs (hpack, comp-2 and ha) have
  612. been added because they achieve better compression (at the expense of
  613. speed) and one program (lzrw3-a) has been added because it favors
  614. speed at the expense of compression:
  615.  
  616. - comp-2 is in wuarchive.wustl.edu:/mirrors/msdos/ddjmag/ddj9102.zip
  617.   (inner zip file nelson.zip),
  618. - hpack is in garbo.uwasa.fi:/unix/arcers/hpack78src.tar.Z
  619. - ha 0.98 is in garbo.uwasa.fi:/pc/arcers/ha098.zip
  620. - ftp.adelaide.edu.au:/pub/compression/lzrw3-a.c  [129.127.40.3]
  621.  
  622. The 14 files used in the comparison are from the standard Calgary
  623. Text Compression Corpus, available by ftp on ftp.cpsc.ucalgary.ca 
  624. in /pub/projects/text.compression.corpus/text.compression.corpus.tar.Z.
  625.  
  626. The whole corpus includes 18 files, but the 4 files paper[3-6] are
  627. generally omitted in benchmarks. It contains several kinds of file
  628. (ascii, binary, image, etc...) but has a bias towards large files.
  629. You may well get different ratings on the typical mix of files that
  630. you use daily, so keep in mind that the comparisons given below are
  631. only indicative.
  632.  
  633. The programs are ordered by decreasing total compressed size. For a
  634. fair comparison between archivers and other programs, this size is
  635. only the size of the compressed data, not the archive size.
  636.  
  637. The programs were run on an idle machine, so the elapsed time
  638. is significant and can be used to compare Unix and MSDOS programs.
  639.  
  640. [Note: I did not have time to run again all benchmarks with more
  641. recent versions of zip, freeze, arj and hpack. To be done for some
  642. future revision of this FAQ.]
  643.  
  644.        size     lzrw3a   compress    lharc    yabba     pkzip    freeze 
  645. version:                   4.0       1.02      1.0       1.10     2.3.5
  646. options:                                    -m300000                    
  647.        ------    -----    ------    ------    ------    ------   ------
  648. bib    111261    49040     46528     46502     40456     41354    41515 
  649. book1  768771   416131    332056    369479    306813    350560   344793 
  650. book2  610856   274371    250759    252540    229851    232589   230861 
  651. geo    102400    84214     77777     70955     76695     76172    68626 
  652. news   377109   191291    182121    166048    168287    157326   155783 
  653. obj1    21504    12647     14048     10748     13859     10546    10453 
  654. obj2   246814   108040    128659     90848    114323     90130    85500 
  655. paper1  53161    24522     25077     21748     22453     20041    20021 
  656. paper2  82199    39479     36161     35275     32733     32867    32693 
  657. pic    513216   111000     62215     61394     65377     63805    53291 
  658. progc   39611    17919     19143     15399     17064     14164    14143 
  659. progl   71646    24358     27148     18760     23512     17255    17064 
  660. progp   49379    16801     19209     12792     16617     11877    11686 
  661. trans   93695    30292     38240     28092     31300     23135    22861 
  662.     3,141,622  1,400,105 1,259,141 1,200,580 1,159,340 1,141,821 1,109,290
  663. real             0m35s     0m59s     5m03s     2m40s              5m27s
  664. user             0m25s     0m29s     4m29s     1m46s              4m58s
  665. sys              0m05s     0m10s     0m07s     0m18s              0m08s
  666. MSDOS:                                                   1m39s
  667.                         
  668.  
  669.          zoo       lha       arj      pkzip    zip      hpack   comp-2    ha
  670.         2.10    1.0(Unix)   2.30      2.04g    1.9      0.75a            0.98
  671.          ah    2.13(MSDOS)   -jm       -ex      -6                        a2
  672.        ------    ------    ------    ------  -------   ------   ------  ------
  673. bib     40742     40740     36090     35186    34950    35619    29840   26927
  674. book1  339076    339074    318382    313566   312619   306876   237380  235733
  675. book2  228444    228442    210521    207204   206306   208486   174085  163535
  676. geo     68576     68574     69209     68698    68418    58976    64590   59356
  677. news   155086    155084    146855    144954   144395   141608   128047  123335
  678. obj1    10312     10310     10333     10307    10295    10572    10819    9799
  679. obj2    84983     84981     82052     81213    81336    80806    85465   80381
  680. paper1  19678     19676     18710     18519    18525    18607    16895   15675
  681. paper2  32098     32096     30034     29566    29674    29825    25453   23956
  682. pic     52223     52221     53578     52777    55051    51778    55461   51639
  683. progc   13943     13941     13408     13363    13238    13475    12896   11795
  684. progl   16916     16914     16408     16148    16175    16586    17354   15298
  685. progp   11509     11507     11308     11214    11182    11647    11668   10498
  686. trans   22580     22578     20046     19808    18879    20506    21023   17927
  687.     1,096,166 1,096,138 1,036,934 1,019,451 1,021,043 1,005,367 890,976 845,854
  688. real    4m07s     6m03s                        1m49s   1h22m17s  27m05s
  689. user    3m47s     4m23s                        1m43s   1h20m46s  19m27s
  690. sys     0m04s     0m08s                        0m02s      0m12s   2m03s
  691. MSDOS:            1m49s     2m41s     1m43s                              14m43s
  692.  
  693. Notes:
  694.  
  695. - the compressed data for 'zoo ah' is always two bytes longer than for
  696.   lha. This is simply because both programs are derived from the same
  697.   source (ar002, written by Haruhiko Okumura, available by ftp in
  698.   oak.oakland.edu:/pub/msdos/archiver/ar002.zip).
  699.  
  700. - hpack 0.75a gives slightly different results on SunOS. (To be checked
  701.   with latest version of hpack).
  702.  
  703. - the MSDOS versions are all optimized with assembler code and were run
  704.   on a RAM disk. So it is not surprising that they often go faster than
  705.   their Unix equivalent.
  706.  
  707. ------------------------------------------------------------------------------
  708.  
  709. Subject: [7] Which books should I read?
  710.  
  711.  
  712. [BWC 1989] Bell, T.C, Cleary, J.G. and Witten, I.H, "Text Compression",
  713.     Prentice-Hall 1989. ISBN: 0-13-911991-4. Price: approx. US$60
  714.     The reference on text data compression.
  715.  
  716. [Nel 1991] Mark Nelson, "The Data Compression Book"
  717.     M&T Books, Redwood City, CA, 1991.  ISBN 1-55851-216-0.
  718.     Price $36.95 including two 5" PC-compatible disks bearing
  719.     all the source code printed in the book.
  720.     A practical introduction to data compression.
  721.     The book is targeted at a person who is comfortable reading C code but
  722.     doesn't know anything about data compression.  Its stated goal is to get
  723.     you up to the point where you are competent to program standard
  724.     compression algorithms.
  725.  
  726. [Will 1990] Williams, R.  "Adaptive Data Compression", Kluwer Books, 1990.
  727.     ISBN: 0-7923-9085-7. Price: US$75.
  728.     Reviews the field of text data compression and then addresses the
  729.     problem of compressing rapidly changing data streams.
  730.  
  731. [Stor 1988] Storer, J.A.  "Data Compression: Methods and Theory", Computer
  732.     Science Press, Rockville, MD. ISBN: 0-88175-161-8.
  733.     A survey of various compression techniques, mainly statistical
  734.     non-arithmetic compression and LZSS compression.  Includes complete Pascal
  735.     code for a series of LZ78 variants.
  736.  
  737. [Stor 1992] Storer, J.A. "Image and Text Compression", Kluwer Academic
  738.     Publishers, 1992, ISBN 0-7923-9243-4
  739.  
  740. [ACG 1991] Advances in Speech Coding, edited by Atal, Cuperman, and Gersho,
  741.     Kluwer Academic Press, 1991.
  742.  
  743. [GG 1991] Vector Quantization and Signal Compression, by Gersho and Gray,
  744.     Kluwer Acad. Press, 1991, ISBN 0-7923-9181-0.
  745.  
  746. [CT 1991] Elements of Information Theory, by T.M.Cover and J.A.Thomas
  747.      John Wiley & Sons, 1991. ISBN 0-471-06259-6.
  748.  
  749. Review papers:
  750.  
  751. [BWC 1989] Bell, T.C, Witten, I.H, and Cleary, J.G.  "Modeling for Text
  752.     Compression", ACM Computing Surveys, Vol.21, No.4 (December 1989), p.557
  753.     A good general overview of compression techniques (as well as modeling for
  754.     text compression); the condensed version of "Text Compression".
  755.  
  756. [Lele 1987] Lelewer, D.A, and Hirschberg, D.S.  "Data Compression", ACM
  757.     Computing Surveys, Vol.19, No.3 (September 1987), p.261.
  758.     A survey of data compression techniques which concentrates on Huffman
  759.     compression and makes only passing mention of other techniques.
  760.  
  761.  
  762. ------------------------------------------------------------------------------
  763.  
  764. Subject: [8] What about patents on data compression algorithms?
  765.  
  766.  
  767. [Note: the appropriate group for discussing software patents is
  768. comp.patents (or misc.legal.computing), not comp.compression.]
  769.  
  770. All patents mentioned here are US patents, and thus probably
  771. not applicable outside the US. See item 70, "Introduction to data
  772. compression" for the meaning of LZ77, LZ78 or LZW.
  773.  
  774.  
  775. (a) Run length encoding
  776.  
  777. - Tsukiyama has two patents on run length encoding: 4,586,027 and 4,872,009
  778.   granted in 1986 and 1989 respectively. The first one covers run length
  779.   encoding in its most primitive form: a length byte followed by the
  780.   repeated byte. The second patent covers the 'invention' of limiting the
  781.   run length to 16 bytes and thus the encoding of the length on 4 bits.
  782.   Here is the start of claim 1 of patent 4,872,009, just for pleasure:
  783.  
  784.     1. A method of transforming an input data string comprising a plurality
  785.     of data bytes, said plurality including portions of a plurality of
  786.     consecutive data bytes identical to one another, wherein said data
  787.     bytes may be of a plurality of types, each type representing different
  788.     information, said method comprising the steps of: [...]
  789.  
  790. - O'Brien has patented (4,988,998) run length encoding followed by LZ77.
  791.  
  792.  
  793. (b) LZ77
  794.  
  795. - Waterworth patented (4,701,745) the algorithm now known as LZRW1,
  796.   because Ross Williams reinvented it later and posted it on
  797.   comp.compression on April 22, 1991. (See item 5 for the ftp site
  798.   with all LZRW derivatives.) The *same* algorithm has later been
  799.   patented by Gibson & Graybill (see below). The patent office failed
  800.   to recognize that the same algorithm was patented twice, even though
  801.   the wording used in the two patents is very similar.
  802.  
  803.   The Waterworth patent is now owned by Stac Inc, which won a lawsuit
  804.   against Microsoft, concerning the compression feature of MSDOS 6.0.
  805.   Damages awarded were $120 million.
  806.  
  807. - Fiala and Greene obtained in 1990 a patent (4,906,991) on all
  808.   implementations of LZ77 using a tree data structure. Claim 1 of the
  809.   patent is much broader than the algorithms published by Fiala and
  810.   Greene in Comm.ACM, April 89. The patent covers the algorithm
  811.   published by Rodeh and Pratt in 1981 (J. of the ACM, vol 28, no 1,
  812.   pp 16-24).  It also covers the algorithm previously patented by
  813.   Eastman-Lempel-Ziv (4,464,650), and the algorithms used in lharc,
  814.   lha and zoo.
  815.  
  816. - Notenboom (from Microsoft) 4,955,066 uses three levels of
  817.   compression, starting with run length encoding.
  818.  
  819. - The Gibson & Graybill patent 5,049,881 covers the LZRW1 algorithm
  820.   previously patented by Waterworth and reinvented by Ross Williams.
  821.   Claims 4 and 12 are very general and could be interpreted as
  822.   applying to any LZ algorithm using hashing (including all variants
  823.   of LZ78):
  824.  
  825.      4. A compression method for compressing a stream of input data into
  826.      a compressed stream of output data based on a minimum number of
  827.      characters in each input data string to be compressed, said
  828.      compression method comprising the creation of a hash table, hashing
  829.      each occurrence of a string of input data and subsequently searching
  830.      for identical strings of input data and if such an identical string
  831.      of input data is located whose string size is at least equal to the
  832.      minimum compression size selected, compressing the second and all
  833.      subsequent occurrences of such identical string of data, if a string
  834.      of data is located which does not match to a previously compressed
  835.      string of data, storing such data as uncompressed data, and for each
  836.      input strings after each hash is used to find a possible previous
  837.      match location of the string, the location of the string is stored
  838.      in the hash table, thereby using the previously processed data to
  839.      act as a compression dictionary.
  840.  
  841.   Claim 12 is identical, with 'method' replaced with 'apparatus'.  Since
  842.   the 'minimal compression size' can be as small as 2, the claim could
  843.   cover any dictionary technique of the LZ family. However the text of the
  844.   patent and the other claims make clear that the patent should cover the
  845.   LZRW1 algorithm only. (In any case the Gibson & Graybill patent is likely
  846.   to be invalid because of the prior art in the Waterworth patent.)
  847.  
  848. - Phil Katz, author of pkzip, also has a patent on LZ77 (5,051,745)
  849.   but the claims only apply to sorted hash tables, and when the hash
  850.   table is substantially smaller than the window size.
  851.  
  852. - IBM patented (5,001,478) the idea of combining a history buffer (the
  853.   LZ77 technique) and a lexicon (as in LZ78).
  854.  
  855. - Stac Inc patented (5,016,009 and 5,126,739) yet another variation of LZ77
  856.   with hashing. The '009 patent was used in the lawsuit against Microsoft
  857.   (see above). Stac also has patents on LZ77 with parallel lookup in
  858.   hardware (4,841,092 and 5,003,307).
  859.  
  860. - Robert Jung, author of 'arj', has been granted patent 5,140,321
  861.   for one variation of LZ77 with hashing.  This patent covers the LZRW3-A
  862.   algorithm, also previously discovered by Ross Williams. LZRW3-A was posted
  863.   on comp.compression on July 15, 1991. The patent was filed two months later
  864.   on Sept 4, 1991. (The US patent system allows this because of the
  865.   'invention date' rule.)
  866.  
  867. - Chambers 5,155,484 is yet another variation of LZ77 with hashing.
  868.   The hash function is just the juxtaposition of two input bytes,
  869.   this is the 'invention' being patented. The hash table is named
  870.   'direct lookup table'.
  871.  
  872.  
  873. (c) LZ78
  874.  
  875. - One form of the original LZ78 algorithm was patented (4,464,650) by
  876.   its authors Lempel, Ziv, Cohn and Eastman.
  877.  
  878. - The LZW algorithm used in 'compress' is patented by IBM (4,814,746)
  879.   and Unisys (4,558,302). It is also used in the V.42bis compression
  880.   standard (see question 11 on V.42bis below) and in Postscript Level 2.
  881.   (Unisys sells the license to modem manufacturers for a onetime
  882.   $25,000 fee.) The IBM patent application was filed three weeks
  883.   before that of Unisys, but the US patent office failed to recognize
  884.   that they covered the same algorithm. (The IBM patent is more
  885.   general, but its claim 7 is exactly LZW.)
  886.  
  887. - AP coding is patented by Storer (4,876,541). (Get the yabba package
  888.   for source code, see question 2 above, file type .Y)
  889.  
  890.  
  891. (d) arithmetic coding
  892.  
  893. - IBM holds many patents on arithmetic coding (4,286,256 4,295,125
  894.   4,463,342 4,467,317 4,633,490 4,652,856 4,891,643 4,905,297 4,935,882).
  895.   It has patented in particular the Q-coder implementation of arithmetic
  896.   coding.  The arithmetic coding option of the JPEG standard requires
  897.   use of the patented algorithm.  No JPEG-compatible method is
  898.   possible without infringing the patent, because what IBM actually
  899.   claims rights to is the underlying probability model (the heart of
  900.   an arithmetic coder). (See the JPEG FAQ for details.)
  901.  
  902.   AT&T has 3 patents on arithmetic coding (4,973,961, 5,023,611, 5,025,258).
  903.  
  904. (e) predictor
  905.  
  906. - The 'predictor' algorithm was first described in the paper
  907.  
  908.     Raita, T. and Teuhola, J. (1987), "Predictive text compression by hashing",
  909.     ACM Conference on Information Retrieval
  910.  
  911.   This algorithm has been patented (5,229,768) by K. Thomas in 1993. It
  912.   is used in the Internet Draft "PPP Predictor Compression Protocol" (see
  913.   venera.isi.edu:/internet-drafts/draft-ietf-pppext-predictor-00.txt).
  914.  
  915.  
  916. As can be seen from the above list, some of the most popular compression
  917. programs (compress, pkzip, zoo, lha, arj) are now covered by patents.
  918. (This says nothing about the validity of these patents.)
  919.  
  920. Here are some references on data compression patents. A number of them are
  921. taken from the list prep.ai.mit.edu:/pub/lpf/patent-list.
  922.  
  923. 3,914,586
  924. Data compression method and apparatus
  925. filed 10/25/73, granted 10/21/75
  926. General Motors Corporation, Detroit MI
  927. Duane E. McIntosh, Santa Ynez CA
  928. Data compression apparatus is disclosed is operable in either a bit
  929. pair coding mode of a word coding mode depending on the degree of
  930. redundancy of the data to be encoded.
  931.  
  932. 3,976,844
  933. Data communication system for transmitting data in compressed form
  934. filed Apr. 4, 1975, granted Aug. 24, 1976
  935. inventor  Bernard K. Betz, assignee Honeywell Information Systems, Inc.
  936. [encode differences with previous line]
  937.  
  938. 4,021,782
  939. Data compaction system and apparatus
  940. inventor Hoerning
  941. filed 04/30/1975, granted 05/03/1977
  942. [A primitive form of LZ77 with implicit offsets (compare with previous record)]
  943.  
  944. 4,054,951
  945. Data expansion apparatus
  946. inventor R.D. Jackson, assignee IBM
  947. filed Jun. 30, 1976, granted Oct. 18, 1977
  948. [Covers only decompression of data compressed with a variant of LZ77.]
  949.  
  950. 4,087,788
  951. Data compression system
  952. filed 1/14/77, granted 5/2/78
  953. NCR Canada LTD - NCR Canada Ltee, Mississauga CA
  954. Brian J. Johannesson, Waterloo CA
  955. A data compression system is disclosed in which the left hand boundary
  956. of a character is developed in the form of a sequence of Freeman
  957. direction codes, the codes being stored in digital form within a
  958. processor.
  959.  
  960. 4,286,256
  961. Method and means for arithmetic coding using a reduced number of operations.
  962. granted Aug 25, 1981
  963. assignee IBM
  964.  
  965. 4,295,125
  966. A method and means for pipeline decoding of the high to low order pairwise
  967. combined digits of a decodable set of relatively shifted finite number of
  968. strings
  969. granted Oct 13, 1981
  970. assignee IBM
  971.  
  972. 4,412,306
  973. System for minimizing space requirements for storage and transmission of
  974. digital signals
  975. filed May 14, 1981, granted Oct. 25, 1983
  976. inventor  Edward W. Moll
  977.  
  978. 4,463,342
  979. A method and means for carry-over control in a high order to low order
  980. combining of digits of a decodable set of relatively shifted finite number
  981. strings.
  982. granted Jul 31, 1984
  983. assignee IBM
  984.  
  985. 4,491,934
  986. Data compression process
  987. filed May 12, 1982, granted Jan. 1, 1985
  988. inventor  Karl E. Heinz
  989.  
  990. 4,464,650
  991. Apparatus and method for compressing data signals and restoring the
  992. compressed data signals
  993. inventors Lempel, Ziv, Cohn, Eastman
  994. assignees Sperry Corporation and At&T Bell Laboratories
  995. filed 8/10/81, granted 8/7/84
  996. A compressor parses the input data stream into segments where each
  997. segment comprises a prefix and the next symbol in the data stream
  998. following the prefix.
  999.  
  1000. 4,467,317
  1001. High-speed arithmetic compression using using concurrent value updating.
  1002. granted Aug 21, 1984
  1003. assignee IBM
  1004.  
  1005. 4,494,108
  1006. Adaptive source modeling for data file compression within bounded memory
  1007. filed Jun. 5, 1984, granted Jan. 15, 1985
  1008. invntors Glen G. Langdon, Jorma J. Rissanen
  1009. assignee IBM
  1010. order 1 Markov modeling
  1011.  
  1012. 4,558,302
  1013. High speed data compression and decompression apparatus and method
  1014. inventor Welch
  1015. assignee Sperry Corporation (now Unisys)
  1016. filed 6/20/83, granted 12/10/85
  1017. The text for this patent can be ftped from rusmv1.rus.uni-stuttgart.de
  1018. (129.69.1.12) in /info/comp.patents/US4558302.Z.
  1019.  
  1020. 4,560,976
  1021. Data compression
  1022. filed 6/5/84, granted 12/24/85
  1023. Codex Corporation, Mansfield MA
  1024. Steven G. Finn, Framingham, MA
  1025. A stream of source characters, which occur with varying relative
  1026. frequencies, is encoded into a compressed stream of codewords, each
  1027. having one, two or three subwords, by ranking the source characters by
  1028. their current frequency of appearance, encoding the source characters
  1029. having ranks no higher than a first number as one subword codewords,
  1030. source characters having ranks higher than the first number but no
  1031. higher than a second number as two subword codewords, and the
  1032. remaining source characters as three subword codewords.
  1033.  
  1034. 4,586,027
  1035. Method and system for data compression and restoration
  1036. inventor Tsukimaya et al.
  1037. assignee Hitachi
  1038. filed 08/07/84, granted 04/29/86
  1039. patents run length encoding
  1040.  
  1041. 4,597,057
  1042. System for compressed storate of 8-bit ascii bytes using coded strings
  1043. of 4-bit nibbles.
  1044. inventor Snow, assignee System Development corporation.
  1045. filed 12/31/1981, granted 06/24/1986.
  1046. Compression using static dictionary of common words, prefixes and suffixes.
  1047.  
  1048. 4,612,532
  1049. Data compression apparatus and method
  1050. inventor Bacon, assignee Telebyte Corportion
  1051. filed Jun. 19, 1984, granted Sep. 16, 1986
  1052. [Uses followsets as in the pkzip 0.92 'reduce' algorithm, but the
  1053. followsets are dynamically updated. This is in effect a sort of order-1
  1054. Markov modeling.]
  1055.  
  1056. 4,622,545
  1057. Method and apparatus for image compression and Manipulation
  1058. inventor William D. Atkinson
  1059. assignee Apple computer Inc.
  1060. filed 9/30/82
  1061. granted 11/11/86
  1062.  
  1063. 4,633,490
  1064. Symmetrical adaptive data compression/decompression system.
  1065. granted Dec 30, 1985
  1066. assignee IBM
  1067.  
  1068. 4,652,856
  1069. A multiplication-free multi-alphabet arithmetic code.
  1070. granted Feb  4, 1986
  1071. assignee IBM
  1072.  
  1073. 4,667,649
  1074. Data receiving apparatus
  1075. filed 4/18/84, granted 6/30/87
  1076. inventors Kunishi et al.
  1077. assignee Canon Kabushiki Kaisha, Tokyo Japan
  1078. compression of Fax images.
  1079.  
  1080. 4,682,150
  1081. Data compression method and apparatus
  1082. inventors Mathes and Protheroe, 
  1083. assignee NCR Corporation, Dayton OH
  1084. A system and apparatus for compressing redundant and nonredundant
  1085. binary data generated as part of an operation of a time and attendance
  1086. terminal in which the data represents the time an employee is present
  1087. during working hours.
  1088.  
  1089. 4,701,745
  1090. Data compression system
  1091. inventor Waterworth John R
  1092. assignee Ferranti PLC GB, patent rights now acquired by Stac Inc.
  1093. filed 03/03/1986 (03/06/1985 in GB), granted 10/20/1987
  1094. Algorithm now known as LZRW1 (see above)
  1095. I claim:
  1096. 1. A data compression system comprising an input store for receiving
  1097. and storing a plurality of bytes of uncompressed data from an outside
  1098. source, and data processing means for processing successive bytes of
  1099. data from the input store;
  1100. the data processing means including circuit means operable to check
  1101. whether a sequence of successive bytes to be processed identical with
  1102. a sequence of bytes already processed, and including hash generating
  1103. means responsive to the application of a predetermined number of
  1104. bytes in sequence to derive a hash code appropriate to those bytes, a
  1105. temporary store in which the hash code may represent the address of a
  1106. storage location, and a pointer counter operable to store in the
  1107. temporary store at said address a pointer indicative of the position
  1108. in the input store of one of the predetermined number of bytes;
  1109. output means operable to apply to a transfer medium each byte of data
  1110. not forming part of such an identical sequence; and
  1111. encoding means responsive to the identification of such a sequence to
  1112. apply to the transfer medium an identification signal which identifies
  1113. both the location in the input store of the previous occurrence of the
  1114. sequence of bytes and the number of bytes contained in the sequence.
  1115.  
  1116. 4,730,348
  1117. Adaptive data compression system
  1118. inventor MacCrisken, assignee Adaptive Computer Technologies
  1119. filed Sep. 19, 1986, granted Mar. 8, 1988
  1120. [order-1 Markov modeling + Huffman coding + LZ77]
  1121.  
  1122. 4,758,899
  1123. Data compression control device
  1124. inventor Tsukiyama, assignee Hitachi
  1125. filed 11/20/1985, granted 07/19/1988
  1126. Limits compression to ensure that tape drive stays busy.
  1127.  
  1128. 4,809,350
  1129. Data compression system
  1130. filed Jan. 30, 1987, granted Feb. 28, 1989
  1131. inventor Yair Shimoni & Ron Niv
  1132. assignee Elscint Ltd., Haifa, Israel
  1133. [Image compression via variable length encoding of differences with
  1134. predicted data.]
  1135.  
  1136. 4,814,746
  1137. Data compression method
  1138. inventors Victor S. Miller, Mark N. Wegman
  1139. assignee IBM
  1140. filed 8/11/86, granted 3/21/89
  1141. A previous application was filed on 6/1/83, three weeks before the
  1142. application by Welch (4,558,302)
  1143. Communications between a Host Computing System and a number of remote
  1144. terminals is enhanced by a data compression method which modifies the
  1145. data compression method of Lempel and Ziv by addition of new character
  1146. and new string extensions to improve the compression ratio, and
  1147. deletion of a least recently used routine to limit the encoding tables
  1148. to a fixed size to significantly improve data transmission efficiency.
  1149.  
  1150. 4,841,092
  1151. continued in 5,003,307
  1152.  
  1153. 4,853,696
  1154. Code converter for data compression/decompression
  1155. filed 4/13/87, granted 8/1/89
  1156. inventor Amar Mukherjee, Maitland FL
  1157. assignee University of Central Florida, Orlando FL
  1158. Another hardware Huffman encoder:
  1159. A code converter has a network of logic circuits connected in reverse
  1160. binary tree fashion with logic paths between leaf nodes and a common
  1161. root node.
  1162.  
  1163. 4,872,009
  1164. Method and apparatus for data compression and restoration
  1165. inventor Tsukimaya et al.
  1166. assignee Hitachi
  1167. filed 12/07/87, granted 10/03/89
  1168. This patent on run length encoding covers the 'invention' of limiting
  1169. the run length to 16 bytes and thus the encoding of the length on 4 bits.
  1170.  
  1171. 4,876,541
  1172. Stem [sic] for dynamically compressing and decompressing electronic data
  1173. filed 10/15/87, granted 10/24/89
  1174. inventor James A. Storer
  1175. assignee Data Compression Corporation
  1176. A data compression system for encoding and decoding textual data,
  1177. including an encoder for encoding the data and for a decoder for
  1178. decoding the encoded data.
  1179.  
  1180. 4,891,643
  1181. Arithmetic coding data compression/de-compression by selectively
  1182. employed, diverse arithmetic encoders and decoders.
  1183. granted Jan  2, 1990
  1184. assignee IBM
  1185.  
  1186. 4,905,297
  1187. granted Feb 27, 1990
  1188. assignee IBM
  1189. Arithmetic coding encoder and decoder system.
  1190.  
  1191. 4,906,991
  1192. Textual substitution data compression with finite length search window
  1193. filed 4/29/1988, granted 3/6/1990
  1194. inventors Fiala,E.R., and Greene,D.H.
  1195. assignee Xerox Corporation
  1196.  
  1197. 4,935,882
  1198. Probability adaptation for arithmetic coders.
  1199. granted Jun 19, 1990
  1200. assignee IBM
  1201.  
  1202. 4,941,193
  1203. Barnsley, fractal compression.
  1204.  
  1205. 4,943,869
  1206. Compression Method for Dot Image Data
  1207. filed 1988-05-04, granted 1990-07-24
  1208. assignee Fuji Photo Film Co.
  1209. Lossy and lossless image compression schemes.
  1210.  
  1211. 4,955,066
  1212. Compressing and Decompressing Text Files
  1213. filed  10/13/89, granted 09/04/90
  1214. inventor Notenboom, L.A.
  1215. assignee Microsoft
  1216. Now extended as 5,109,433
  1217. [Noted in signon screen of Word 5.5 and on the outside of the MS-DOS 5.0
  1218. Upgrade.]
  1219. A method of compressing a text file in digital form is disclosed.
  1220. A full text file having characters formed into phrases is provided by an
  1221. author.  The characters are digitally represented by bytes.  A first pass
  1222. compression is sequentially followed by a second pass compression of the
  1223. text which has previously been compressed.  A third or fourth level of
  1224. compression is serially performed on the compressed text.  For example, in
  1225. a first pass, the text is run-length compressed.  In a second pass, the
  1226. compressed text is further compressed with key phrase compression.  In a
  1227. third pass, the compressed text is further compressed with Huffman
  1228. compression.  The compressed text is stored in a text file having a Huffman
  1229. decode tree, a key phrase table, and a topic index.  The data is
  1230. decompressed in a single pass and provided one line at a time as an output.
  1231. Sequential compressing of the text minimizes the storage space required for
  1232. the file.  Decompressing of the text is performed in a single pass.  As a
  1233. complete line is decompressed, it is output rapidly, providing full text to
  1234. the user.
  1235.  
  1236. 4,973,961
  1237. Method and apparatus for carry-over control in arithmetic coding.
  1238. granted Nov 27, 1990
  1239. assignee AT&T
  1240.  
  1241. 4,988,998
  1242. Data compression system for successively applying at least two data
  1243. compression methods to an input data stream.
  1244. inventor O'Brien
  1245. assignee Storage Technology Corporation, Louisville, Colorado
  1246. filed Sep 5, 1989, granted Jan 29, 1991.
  1247. Run length encoding followed by LZ77.
  1248.  
  1249. 5,001,478
  1250. Method of Encoding Compressed Data
  1251. filed 12/28/89, granted 03/19/91
  1252. inventor Michael E. Nagy
  1253. assignee IBM
  1254. 1. A method of encoding a compressed data stream made up of a sequence of
  1255. literal references, lexicon references and history references, which
  1256. comprises the steps of:
  1257. assigning to each literal reference a literal identifier;
  1258. assigning to each history reference a history identifier;
  1259. assigning to each lexicon reference a lexicon identifier;
  1260. and emitting a data stream with said identifiers assigned to said references.
  1261. Gordon Irlam <gordoni@cs.adelaide.edu.au> says:
  1262. The invention can probably be best understood by considering the
  1263. decompressor.  It consists of a history buffer, and a lexicon buffer, both
  1264. of which are initially empty.  The history buffer contains the last n
  1265. symbols emitted.  Whenever a history buffer reference is to be output the
  1266. string so referenced is subsequently moved to the lexicon buffer for future
  1267. reference.  Thus the history buffer keeps track of strings that may be
  1268. repeated on a very short term basis, while the lexicon buffer stores items
  1269. for a longer time.  Furthermore a history reference involves specifying
  1270. both the offset and length within the history buffer, whereas a lexicon
  1271. reference simply specifies a number denoting the string.  Both buffers have
  1272. a finite size.
  1273.  
  1274. 5,003,307
  1275. Data compression apparatus with shift register search means
  1276. filed Oct. 6, 1989, granted Mar. 26, 1991
  1277. inventors George Glen A, Ivey Glen E, Whiting Douglas L
  1278. assignee Stac Inc
  1279. continuation of 4,841,092
  1280.  
  1281. 5,016,009
  1282. Data compression apparatus and method
  1283. filed 01/13/1989, granted 05/14/1991
  1284. inventors George Glen A, Ivey Glen E, Whiting Douglas L
  1285. assignee Stac Inc
  1286. LZ77 with offset hash table (extended in 5,126,739)
  1287.  
  1288. 5,023,611
  1289. Entropy encoder/decoder including a context extractor.
  1290. granted Jun 11, 1991
  1291. assignee AT&T
  1292.  
  1293. 5,025,258
  1294. Adaptive probability estimator for entropy encoder/decoder.
  1295. granted Jun 18, 1991
  1296. assignee AT&T
  1297.  
  1298. 5,049,881
  1299. Apparatus and method for very high data rate-compression incorporating
  1300. lossless data compression and expansion utilizing a hashing technique
  1301. inventors Dean K. Gibson, Mark D. Graybill
  1302. assignee Intersecting Concepts, Inc.
  1303. filed 6/18/90, granted 9/17/91
  1304. [covers lzrw1, almost identical with Waterworth 4,701,745]
  1305.  
  1306. 5,051,745
  1307. String searcher, and compressor using same
  1308. filed  8/21/90, granted 9/24/91
  1309. inventor  Phillip W. Katz (author of pkzip)
  1310. In the string search method and apparatus pointers to the string to be
  1311. searched are indexed via a hashing function and organized according to the
  1312. hashing values of the string elements pointed to. The hashing function is
  1313. also run on the string desired to be found, and the resulting hashing value
  1314. is used to access the index. If the resulting hashing value is not in the
  1315. index, it is known that the target string does not appear in the string
  1316. being searched. Otherwise the index is used to determine the pointers which
  1317. correspond to the target hashing value, these pointers pointing to likely
  1318. candidates for matching the target string. The pointers are then used to
  1319. sequentially compare each of the locations in the string being searched to
  1320. the target string, to determine whether each location contains a match to
  1321. the target string.
  1322. In the method and apparatus for compressing a stream of data symbols, a
  1323. fixed length search window, comprising a predetermined contiguous portion
  1324. of the symbol stream, is selected as the string to be searched by the
  1325. string searcher. If a string to be compressed is found in the symbol
  1326. stream, a code is output designating the location within the search window
  1327. of the matching string and the length of the matching string.
  1328.  
  1329. 5,065,447
  1330. Barnsley, fractal compression
  1331.  
  1332. 5,109,433
  1333. Compressing and decompressing text files
  1334. inventor Notenboom
  1335. assignee Microsoft
  1336. extension of 4,955,066
  1337.  
  1338. 5,126,739
  1339. Data Compression Apparatus and Method
  1340. filed Nov. 27, 1990, granted June 30, 1992.
  1341. inventor Whiting et. al
  1342. assignee Stac Inc
  1343. LZ77 with offset hash table (extension of 5,016,009)
  1344.  
  1345. 5,140,321
  1346. Data compression/decompression method and apparatus
  1347. filed 9/4/91, granted 8/18/92
  1348. inventor Robert Jung
  1349. assignee Prime Computer
  1350.  
  1351. 5,155,484
  1352. Fast data compressor with direct lookup table indexing into history buffer
  1353. filed 9/13/1991, granted 10/13/1992
  1354. inventor Chambers, IV, Lloyd L., Menlo Park, California
  1355. assignee Salient Software, Inc., Palo Alto, California (02)
  1356. Uses a 64K hash table indexed by the first two characters of
  1357. the input string. Includes several claims on the LZ77 file format
  1358. (literal or pair offset,length).
  1359.  
  1360. 5,179,378
  1361. file Jul. 30, 1991, granted Jan. 12, 1993
  1362. inventor Ranganathan
  1363. assignee University of South Florida
  1364. Method and apparatus for the compression and decompression of data
  1365. using Lempel-Ziv based techniques.
  1366. [This covers LZ77 hardware compression with a systolic array of
  1367. processors working in parallel.]
  1368.  
  1369. 5,229,768
  1370. Adaptive data compression system
  1371. granted Jul. 20, 1993
  1372. inventor Kasman E. Thomas
  1373. assignee Traveling Software, Inc. 
  1374.   A system for data compression and decompression is disclosed. A series of
  1375. fixed length overlapping segments, called hash strings, are formed from an
  1376. input data sequence. A retrieved character is the next character in the input
  1377. data sequence after a particular hash string. A hash function relates a
  1378. particular hash string to a unique address in a look-up table (LUT). An
  1379. associated character for the particular hash string is stored in the LUT at
  1380. the address. When a particular hash string is considered, the content of the
  1381. LUT address associated with the hash string is checked to determine whether
  1382. the associated character matches the retrieved character following the hash
  1383. string. If there is a match, a Boolean TRUE is output; if there is no match,
  1384. a Boolean FALSE along with the retrieved character is output. Furthermore, if
  1385. there is no match, then the LUT is updated by replacing the associated
  1386. character in the LUT with the retrieved character. [...]
  1387. [This algorithm is used in the Internet Draft "PPP Predictor
  1388. Compression Protocol".]
  1389.  
  1390. Japan 2-46275
  1391. Coding system
  1392. granted Feb 26, 1990
  1393. [Patents one form of arithmetic coding.]
  1394.  
  1395. ------------------------------------------------------------------------------
  1396.  
  1397. Subject: [9]  The WEB 16:1 compressor.
  1398.  
  1399.  
  1400. [WARNING: this topic has generated the greatest volume of news in the
  1401. history of comp.compression. Read this before posting on this subject.]
  1402.  
  1403. [WARNING 2: it is quite possible that the story is repeating itself
  1404. with a compressor called MINC by Premier Research Corporation, Ltd.
  1405. They claim a breakthrough in lossless data compression using a recursive
  1406. method, that is, applying the compressor to the compressed output of
  1407. the previous run.]
  1408.  
  1409. [WARNING 3: the OWS program, which also claims incredible compression
  1410. ratios, is a hoax. It just remembers the clusters which contained
  1411. the data. The data can be recovered only if those clusters are not
  1412. used again for another file. Needless to say, never trust such a
  1413. lossy program.]
  1414.  
  1415. (a) What the press says
  1416.  
  1417. April 20, 1992  Byte Week Vol 4. No. 25:
  1418.  
  1419.    "In an announcement that has generated high interest - and more than a
  1420.    bit of skepticism - WEB Technologies (Smyrna, GA) says it has
  1421.    developed a utility that will compress files of greater than 64KB in
  1422.    size to about 1/16th their original length.  Furthermore, WEB says its
  1423.    DataFiles/16 program can shrink files it has already compressed."
  1424.    [...]
  1425.    "A week after our preliminary test, WEB showed us the program successfully
  1426.    compressing a file without losing any data.  But we have not been able
  1427.    to test this latest beta release ourselves."
  1428.    [...]
  1429.    "WEB, in fact, says that virtually any amount of data can be squeezed 
  1430.    to under 1024 bytes by using DataFiles/16 to compress its own output
  1431.    multiple times."
  1432.  
  1433. June 1992 Byte, Vol 17 No 6:
  1434.  
  1435.    [...] According to Earl Bradley, WEB Technologies' vice president of
  1436.    sales and marketing, the compression algorithm used by DataFiles/16
  1437.    is not subject to the laws of information theory. [...]
  1438.  
  1439.  
  1440. (b) First details, by John Wallace <buckeye@spf.trw.com>:
  1441.  
  1442. I called WEB at (404)514-8000 and they sent me some product
  1443. literature as well as chatting for a few minutes with me on the phone.
  1444. Their product is called DataFiles/16, and their claims for it are
  1445. roughly those heard on the net.
  1446.  
  1447. According to their flier:
  1448.  
  1449. "DataFiles/16 will compress all types of binary files to approximately
  1450. one-sixteenth of their original size ... regardless of the type of
  1451. file (word processing document, spreadsheet file, image file,
  1452. executable file, etc.), NO DATA WILL BE LOST by DataFiles/16."
  1453. (Their capitalizations; 16:1 compression only promised for files >64K
  1454. bytes in length.)
  1455.  
  1456. "Performed on a 386/25 machine, the program can complete a
  1457. compression/decompression cycle on one megabyte of data in less than
  1458. thirty seconds"
  1459.  
  1460. "The compressed output file created by DataFiles/16 can be used as the 
  1461. input file to subsequent executions of the program.  This feature of 
  1462. the utility is known as recursive or iterative compression, and will 
  1463. enable you to compress your data files to a tiny fraction of the 
  1464. original size.  In fact, virtually any amount of computer data can 
  1465. be compressed to under 1024 bytes using DataFiles/16 to compress its 
  1466. own output files muliple times.  Then, by repeating in reverse the 
  1467. steps taken to perform the recusive compression, all original data 
  1468. can be decompressed to its original form without the loss of a single 
  1469. bit."
  1470.  
  1471. Their flier also claims: 
  1472.  
  1473. "Constant levels of compression across ALL TYPES of FILES"
  1474. "Convenient, single floppy DATA TRANSPORTATION"
  1475.  
  1476. From my telephone conversation, I was was assured that this is an
  1477. actual compression program.  Decompression is done by using only the 
  1478. data in the compressed file; there are no hidden or extra files.
  1479.  
  1480.  
  1481. (c) More information, by Rafael Ramirez <rafael.ramirez@channel1.com>:
  1482.  
  1483.    Today (Tuesday, 28th) I got a call from Earl Bradley of Web
  1484. who now says that they have put off releasing a software version of
  1485. the algorithm because they are close to signing a major contract with
  1486. a big company to put the algorithm in silicon.  He said he could not
  1487. name the company due to non-disclosure agreements, but that they had
  1488. run extensive independent tests of their own and verified that the
  1489. algorithm works. [...]
  1490.  
  1491. He said the algorithm is so simple that he doesn't want anybody
  1492. getting their hands on it and copying it even though he said they
  1493. have filed a patent on it. [...] Mr. Bradley said the silicon version
  1494. would hold up much better to patent enforcement and be harder to copy.
  1495.  
  1496.    He claimed that the algorithm takes up about 4K of code, uses only
  1497. integer math, and the current software implementation only uses a 65K
  1498. buffer.  He said the silicon version would likely use a parallel
  1499. version and work in real-time. [...]
  1500.  
  1501.  
  1502. (d) The impossiblity proofs.
  1503.  
  1504. It is impossible for a given program to compress without loss *all*
  1505. files greater than a certain size by at least one bit. This can be
  1506. proven by a simple counting argument. (Many other proofs have been
  1507. posted on comp.compression, *please* do not post yet another one.)
  1508.  
  1509. Assume that the program can compress without loss all files of size >= N
  1510. bits.  Compress with this program all the 2^N files which have
  1511. exactly N bits.  All compressed files have at most N-1 bits, so there
  1512. are at most (2^N)-1 different compressed files [2^(N-1) files of size
  1513. N-1, 2^(N-2) of size N-2, and so on, down to 1 file of size 0]. So at
  1514. least two different input files must compress to the same output file.
  1515. Hence the compression program cannot be lossless. (Stronger results
  1516. about the number of incompressible files can be obtained, but the
  1517. proofs are a little more complex.)
  1518.  
  1519. This argument applies of course to WEB's case (take N = 64K*8 bits).
  1520. Note that no assumption is made about the compression algorithm.
  1521. The proof applies to *any* algorithm, including those using an
  1522. external dictionary, or repeated application of another algorithm,
  1523. or combination of different algorithms, or representation of the
  1524. data as formulas, etc... All schemes are subject to the counting argument.
  1525. There is no need to use information theory to provide a proof, just
  1526. basic mathematics.
  1527.  
  1528. This assumes of course that the information available to the decompressor
  1529. is only the bit sequence of the compressed data. If external information
  1530. such as a file name or a number of iterations is necessary to decompress
  1531. the data, the bits providing the extra information must be included in
  1532. the bit count of the compressed data. (Otherwise, it would be sufficient
  1533. to consider any input data as a number, use this as the iteration
  1534. count or file name, and pretend that the compressed size is zero.)
  1535. For an example of storing information in the file name, see the program
  1536. lmfjyh in the 1993 International Obfuscated C Code Contest, available
  1537. on all comp.sources.misc archives (Volume 39, Issue 104).
  1538.  
  1539. [See also question 73 "What is the theoretical compression limit?" in
  1540. part 2 of this FAQ.]
  1541.  
  1542.  
  1543. (e) No software version
  1544.  
  1545. Appeared on BIX, reposted by Bruce Hoult <Bruce.Hoult@actrix.gen.nz>:
  1546.  
  1547. tojerry/chaos #673, from abailey, 562 chars, Tue Jun 16 20:40:34 1992
  1548. Comment(s). 
  1549. ----------
  1550. TITLE: WEB Technology
  1551. I promised everyone a report when I finally got the poop on WEB's
  1552. 16:1 data compression. After talking back and forth for a year
  1553. and being put off for the past month by un-returned phone calls,
  1554. I finally got hold of Marc Spindler who is their sales manager.
  1555.  
  1556. _No_ software product is forth coming, period!
  1557.  
  1558. He began talking about hardware they are designing for delivery
  1559. at the end of the year. [...]
  1560.  
  1561.  
  1562. (f) Product cancelled
  1563.  
  1564. Posted by John Toebes <toebes@bnr.ca> on Aug 10th, 1992:
  1565.  
  1566. [Long story omitted, confirming the reports made above about the
  1567. original WEB claims.]
  1568.  
  1569. 10JUL92 - Called to Check Status.  Was told that testing had uncovered a
  1570.           new problem where 'four numbers in a matrix were the same
  1571.           value' and that the programmers were off attempting to code a
  1572.           preprocessor to eliminate this rare case.  I indicated that he
  1573.           had told me this story before.  He told me that the
  1574.           programmers were still working on the problem.
  1575.  
  1576. 31JUL92 - Final Call to Check Status.  Called Earl in the morning and
  1577.           was told that he still had not heard from the programmers. [...]
  1578.           Stated that if they could not resolve the problem then there would
  1579.           probably not be a product.
  1580.  
  1581. 03AUG92 - Final Call.  Earl claims that the programmers are unable to
  1582.           resolve the problem.  I asked if this meant that there would
  1583.           not be a product as a result and he said yes.
  1584.  
  1585.  
  1586. (g) Conclusion
  1587.  
  1588. The last report given above should put an end to the WEB story.
  1589.  
  1590. [Note from the FAQ maintainer: I intended to remove this story from
  1591. the FAQ, but the recent announcement of the MINC compressor has some
  1592. similarities with the WEB story so it is useful to keep it a little
  1593. longer.]
  1594.  
  1595. ------------------------------------------------------------------------------
  1596.  
  1597. Subject: [11] What is the V.42bis standard?
  1598.  
  1599.  
  1600. A description of the V.42bis standard is given in "The V.42bis
  1601. standard for data-compressing modems," by Clark Thomborson
  1602. <cthombor@theory.lcs.mit.edu>, IEEE Micro, Oct 1992, pp. 41-53. 
  1603.  
  1604. Short introduction, by Alejo Hausner <hausner@qucis.queensu.ca>:
  1605.  
  1606. The V.42bis Compression Standard was proposed by the International
  1607. Consultative Committee on Telephony and Telegraphy (CCITT) as an
  1608. addition to the v.42 error-correction protocol for modems. Its purpose
  1609. is to increase data throughput, and uses a variant of the
  1610. Lempel-Ziv-Welch (LZW) compression method.  It is meant to be
  1611. implemented in the modem hardware, but can also be built into the
  1612. software that interfaces to an ordinary non-compressing modem.
  1613.  
  1614. V.42bis can send data compressed or not, depending on the
  1615. data.  There are some types of data that cannot be
  1616. compressed.  For example, if a file was compressed first,
  1617. and then sent through a V.42bis modem, the modem would not
  1618. likely reduce the number of bits sent.  Indeed it is likely
  1619. that the amount of data would increase somewhat.
  1620.  
  1621. To avoid this problem, the algorithm constantly monitors the
  1622. compressibility of the data, and if it finds fewer bits
  1623. would be necessary to send it uncompressed, it switches to
  1624. transparent mode.  The sender informs the receiver of this
  1625. transition through a reserved code word.  Henceforth the
  1626. data is passed as plain bytes.
  1627.  
  1628. While transmitting in transparent mode, the sender maintains
  1629. the LZW trees of strings, and expects the receiver to do
  1630. likewise.  If it finds an advantage in returning to
  1631. compressed mode, it will do so, first informing the receiver
  1632. by a special escape code.  Thus the method allows the
  1633. hardware to adapt to the compressibility of the data.
  1634.  
  1635. The choice of escape code is clever.  Initially, it is a
  1636. zero byte.  Any occurrence of the escape code is replaced,
  1637. as is customary, by two escape codes.  In order to prevent a
  1638. string of escape codes from temporarily cutting throughput
  1639. in half, the escape code is redefined by adding 51 mod 256
  1640. each time it is used.
  1641.  
  1642. The CCITT standards documents used to be available by ftp on
  1643. ftp.uu.net in /doc/standards/ccitt, but this service has been
  1644. discontinued. If you ftp to digital.resource.org, in directory pub/standards
  1645. there is a file that says that making the standards available in the
  1646. first place was just an experiment.
  1647.  
  1648. The documents are now on src.doc.ic.ac.uk, but the directory name
  1649. keeps changing. Check one of:
  1650.   /computing/ccitt/ccitt-standards/ccitt/
  1651.   /computing/ccitt/standards/ccitt
  1652.   /doc/ccitt-standards/ccitt
  1653. in this order. The v42bis standard is in *standards/ccitt/1992/v/v42bis.asc.Z.
  1654.  
  1655.  
  1656. A mail server for CCITT documents is available at teledoc@itu.arcom.ch
  1657. or itudoc@itu.ch. A Gopher server is also available:
  1658.  
  1659. Name=International Telecommunication Union (ITU)
  1660. Host=info.itu.ch
  1661. Port=70
  1662.  
  1663. For more information, contact Robert Shaw <shaw@itu.arcom.ch> or
  1664. Antoinette Bautista <bautista@itu.arcom.ch>.  Warning by John Levine
  1665. <johnl@iecc.cambridge.ma.us> (probably obsolete by now):
  1666.  
  1667.   This teledoc thing is much less than meets the eye.  What it
  1668.   actually has is one-page abstracts of some but not all CCITT
  1669.   recommendations, along with junk like lists of the national
  1670.   representatives to CCITT.  If you want the actual text of a
  1671.   recommendation, you have to send large amounts of money to
  1672.   Switzerland, same as ever. However, a closer reading of the Teledoc
  1673.   announcement shows that they say they're planning to make the actual
  1674.   text of some CCITT recommendations available on-line sometime in 1993.
  1675.  
  1676.  
  1677. See also the Standards FAQ posted to news.answers or get it by ftp in
  1678. rtfm.mit.edu:/pub/usenet/news.answers/standards-faq.
  1679.  
  1680. ------------------------------------------------------------------------------
  1681.  
  1682. Subject: [12] I need source for the winners of the Dr Dobbs compression contest
  1683.  
  1684.  
  1685. The source of the top 6 programs of the Feb 91 Dr Dobbs data compression
  1686. contest are available by ftp on
  1687.   oak.oakland.edu:/pub/msdos/compress/ddjcompr.zip
  1688.   garbo.uwasa.fi:/pc/source/ddjcompr.zip [128.214.87.1]
  1689.  
  1690. The sources are in MSDOS end-of-line format, one directory per
  1691. program.  Unix or VMS users, use "unzip -a ddjcompr" to get correct
  1692. end-of-lines (add -d to recreate the directory structure if you are
  1693. using an obsolete version of unzip such as 4.1). Three of the 6
  1694. programs are not portable and only run on MSDOS. compact and urban
  1695. work on Unix, sixpack only requires minor modifications.
  1696.  
  1697. ------------------------------------------------------------------------------
  1698.  
  1699. Subject: [13] I need source for arithmetic coding
  1700.  
  1701.  
  1702. (See question 70 for an introduction to arithmetic coding.)
  1703.  
  1704. The source for the arithmetic coder described in Chap.5 of Bell,
  1705. Cleary, and Witten's book "Text Compression" (see question 7 above)
  1706. (or, equivalently, in: Witten, Neal, and Cleary's article "Arithmetic
  1707. Coding for data Compression" from Communications of the Association
  1708. for Computing Machinery, 30 (6), pp.520-540, June, 1987) is available
  1709. via anonymous ftp from ftp.cpsc.ucalgary.ca (136.159.7.18) in directory
  1710. /pub/projects/arithmetic.coding.  It only comes with a simple order-0 model
  1711. but it's set up so that adding your own more sophisticated one is
  1712. straightforward.
  1713.  
  1714. A low precision arithmetic coding implementation avoiding hardware
  1715. division is available on the same site (ftp.cpsc.ucalgary.ca) in
  1716. /pub/projects/arithmetic.coding/low.precision.version, file
  1717. low.precision.version.shar.
  1718.  
  1719. Kris Popat <popat@image.mit.edu> has worked on "Scalar Quantization
  1720. with Arithmetic Coding."  It describes an arithmetic coding technique
  1721. which is quite general and computationally inexpensive.  The
  1722. documentation and example C code are available via anonymous ftp from
  1723. media-lab.media.mit.edu (18.85.0.2), in /pub/k-arith-code.
  1724.  
  1725. The program 'urban' in ddjcompr.zip (see item 12 above) is a high order
  1726. arithmetic coder working at the bit level. It is written by Urban Koistinen
  1727. <md85-epi@nada.kth.se>.
  1728.  
  1729. ------------------------------------------------------------------------------
  1730.  
  1731. Subject: [15] Where can I get image compression programs?
  1732.  
  1733.  
  1734. JPEG:
  1735.     Source code for most any machine:
  1736.     ftp.uu.net:/graphics/jpeg/jpegsrc.v4.tar.Z [137.39.1.9]
  1737.     nic.funet.fi:/pub/graphics/packages/jpeg/jpegsrc.v4.tar.Z [128.214.6.100]
  1738.     Contact: jpeg-info@uunet.uu.net (Independent JPEG Group)
  1739.  
  1740.     havefun.stanford.edu:pub/jpeg/JPEGv1.2.tar.Z (supports lossless mode)
  1741.     Contact: Andy Hung <achung@cs.stanford.edu> (see item 20 below)
  1742.  
  1743.     xv, an image viewer which can read JPEG pictures, is available in
  1744.     export.lcs.mit.edu: contrib/xv-2.21.tar.Z [18.24.0.12]
  1745.  
  1746. MPEG:
  1747.     havefun.stanford.edu:/pub/mpeg/MPEGv1.2.alpha.tar.Z
  1748.     Contact: Andy Hung <achung@cs.stanford.edu> (see item 20 below)
  1749.  
  1750.     s2k-ftp.cs.berkeley.edu:/pub/multimedia/mpeg/mpeg_play-2.0.tar.Z
  1751.     s2k-ftp.cs.berkeley.edu:/pub/multimedia/mpeg/mpeg_encode-1.3.tar.Z.
  1752.     Contact: mpeg-bugs@cs.berkeley.edu
  1753.  
  1754.     yorick.mni.mcgill.ca:/pub/mpeg/mpeg_lib-1.0.tar.gz [MPEG library]
  1755.     Contact: Gregory Ward <greg@pet.mni.mcgill.ca>
  1756.  
  1757.     s2k-ftp.cs.berkeley.edu:/pub/multimedia/mpeg/vmpeg10.zip
  1758.     decel.ecel.uwa.edu.au:/users/michael/mpegw32f.zip (for Windows and NT)
  1759.  
  1760.     nvr.com:/pub/NVR-software/Product-1.0.4.tar.Z   (192.82.231.50)
  1761.     (free demo copy of NVR's software toolkit for SPARCstations)
  1762.     Contact: Todd Brunhoff <toddb@nvr.com>
  1763.  
  1764.     ftp.netcom.com:/pub/cfogg/mpeg2/* (MPEG-2 encoder and decoder)
  1765.     Contact: MPEG-L@netcom.com (MPEG Software Simulation Group)
  1766.  
  1767. H.261(P*64):
  1768.     havefun.stanford.edu:pub/p64/P64v1.2.tar.Z
  1769.     Contact: Andy Hung <achung@cs.stanford.edu> (see item 20 below)
  1770.  
  1771.     zenon.inria.fr:/rodeo/ivs/last_version/ivs*-src.tar.gz
  1772.     (Inria videoconference system)
  1773.     Contact: Thierry Turletti <turletti@sophia.inria.fr> (see item 20 below).
  1774.  
  1775. JBIG:
  1776.     nic.funet.fi:/pub/graphics/misc/test-images/jbig.tar.gz.
  1777.  
  1778. mg: (the MG system for compressing and indexing text and images, see item 16)
  1779.     munnari.oz.au:/pub/mg/*
  1780.     Contact: Stuart Inglis <singlis@cpsc.ucalgary.ca>
  1781.  
  1782. epic: (pyramid wavelet coder, see item 72)
  1783.     whitechapel.media.mit.edu:/pub/epic.tar.Z [18.85.0.125]
  1784.     Contact: Eero P. Simoncelli <eero@media.mit.edu>
  1785.     The "Lenna" test image is available as part of the EPIC package,
  1786.     where it is named "test_image".
  1787.  
  1788. hcompress: (wavelet impage compression, see item 72)
  1789.     stsci.edu:/software/hcompress/hcompress.tar.Z
  1790.  
  1791. wavethresh: (wavelet software for the language S)
  1792.     gdr.bath.ac.uk:/pub/masgpn/wavethresh2.2.Z
  1793.     Contact: gpn@maths.bath.ac.uk
  1794.  
  1795. rice-wlet: (wavelet software, see item 72)
  1796.     cml.rice.edu:/pub/dsp/software/rice-wlet-tools.tar.Z
  1797.  
  1798. scalable: (2 & 3 dimensional subband transformation)
  1799.     robotics.eecs.berkeley.edu:/pub/multimedia/scalable.tar.Z
  1800.     Contact: scalable@robotics.eecs.berkeley.edu
  1801.  
  1802. compfits:
  1803.     uwila.cfht.hawaii.edu:/pub/compfits/compfits.tar.Z  [128.171.80.50]
  1804.     Contact: Jim Wright <jwright@cfht.hawaii.edu>
  1805.  
  1806. fitspress:
  1807.     cfata4.harvard.edu:/pub/fitspress08.tar.Z [128.103.40.79]
  1808.  
  1809. tiff:
  1810.     For source and sample images, see question 18 below.
  1811.  
  1812. DCT algorithms:
  1813.     etro.vub.ac.be:/pub/DCT_ALGORITHMS/*
  1814.     Contact: Charilos Christopoulos <chchrist@etro2.vub.ac.be>
  1815.  
  1816. xanim: (X11 animation viewer, supports Quicktime and several other formats)
  1817.     ftp.x.org:/contrib/applications/xanim2683.tar.Z
  1818.  
  1819. A demo of image compression using neural networks is available in
  1820. http://www.ee.duke.edu/~cec/index.html.
  1821.  
  1822. For fractal compression programs, see item 17 below.
  1823. For image compression hardware, see item 85 in part 3 of this FAQ.
  1824.  
  1825. ------------------------------------------------------------------------------
  1826.  
  1827. Subject: [16] What is the state of the art in lossless image compression?
  1828.  
  1829.  
  1830. The current state-of-the-art is the JBIG algorithm.  For an
  1831. introduction to JBIG, see question 74 in part 2.
  1832.  
  1833. JBIG works best on bi-level images (like faxes) and also works well on
  1834. Gray-coded grey scale images up to about six or so bits per pixel.  You
  1835. just apply JBIG to the bit planes individually.  For more bits/pixel,
  1836. lossless JPEG provides better performance, sometimes. (For JPEG, see
  1837. question 19 below.)
  1838.  
  1839. You can find a description of JBIG in ISO/IEC CD 11544, contained in
  1840. document ISO/IEC JTC1/SC2/N2285.  The only way to get it is to ask
  1841. your National Standards Body for a copy. In the USA, call ANSI at
  1842. (212) 642-4900.
  1843.  
  1844. See also the MG system containing 'FELICS' which is reported to be
  1845. better than JBIG. (See item 15 above for ftp location). From the MG
  1846. README file:
  1847.  
  1848.   The MG system is a suite of programs for compressing and
  1849.   indexing text and images. Most of the functionality implemented
  1850.   in the suite is as described in the book ``Managing Gigabytes:
  1851.   Compressing and Indexing Documents and Images'', I.H. Witten, A.
  1852.   Moffat, and T.C. Bell; Van Nostrand Reinhold, New York, 1994, ISBN
  1853.   0-442-01863-0; US $54.95; call 1 (800) 544-0550 to order.
  1854.  
  1855.   These features include:
  1856.  
  1857.   -- text compression using a Huffman-coded semi-static word-based
  1858.      scheme
  1859.   -- two-level context-based compression of bi-level images
  1860.   -- FELICS lossless compression of gray-scale images
  1861.   -- combined lossy/lossless compression for textual images
  1862.   -- indexing algorithms for large volumes of text in limited main
  1863.      memory
  1864.   -- index compression
  1865.   -- a retrieval system that processes Boolean and ranked queries
  1866.   -- an X windows interface to the retrieval system
  1867.  
  1868. ------------------------------------------------------------------------------
  1869.  
  1870. Subject: [17] What is the state of fractal compression?
  1871.  
  1872. It is recommended to read first item 77 in part 2 of this FAQ:
  1873. "Introduction to Fractal compression".
  1874.  
  1875.  
  1876. from Tal Kubo <kubo@zariski.harvard.edu>:
  1877.  
  1878. According to Barnsley's book 'Fractals Everywhere', this method is
  1879. based on a measure of deviation between a given image and its
  1880. approximation by an IFS code.  The Collage Theorem states that there is
  1881. a convergent process to minimize this deviation.  Unfortunately,
  1882. according to an article Barnsley wrote for BYTE a few years ago, this
  1883. convergence was rather slow, about 100 hours on a Cray, unless assisted by
  1884. a person.
  1885.  
  1886. Barnsley et al are not divulging any technical information beyond the
  1887. meager bit in 'Fractals Everywhere'.  The book explains the idea of IFS
  1888. codes at length, but is vague about the application of the Collage theorem
  1889. to specific compression problems.
  1890.  
  1891. There is reason to believe that Barnsley's company has
  1892. *no algorithm* which takes a given reasonable image and achieves
  1893. the compression ratios initially claimed for their fractal methods.
  1894. The 1000-to-1 compression advertised was achieved only for a 'rigged'
  1895. class of images, with human assistance. The best unaided
  1896. performance I've heard of is good lossy compression of about 80-1.
  1897.  
  1898. Steve Tate <srt@duke.cs.duke.edu> confirms:
  1899.  
  1900. Compression ratios (unzoomed) seem to range from 20:1 to 60:1...  The
  1901. quality is considerably worse than wavelets or JPEG on most of the
  1902. non-contrived images I have seen.
  1903.  
  1904. But Yuval Fisher <fisher@inls1.ucsd.edu> disagrees:
  1905.  
  1906. Their performance has improved dramatically beyond what they were
  1907. talking about in BYTE a few years ago.  Human assistance to the
  1908. compression is no longer needed and the compression time is
  1909. reasonable, although the more time and compute power you throw at the
  1910. compression, the smaller the resulting file for the same level of
  1911. quality.
  1912.  
  1913. Geoffrey A Stephenson <ketlux@ketlux.demon.co.uk> adds:
  1914.  
  1915. Iterated systems are shipping a general purpose compressor at about
  1916. 300 Pounds in the UK that claims "640x480 24 bit colour compression of
  1917. about 1 min at 922k -> 10k on a 486/50 software only, decomp. to 8
  1918. bits in 3 secs, etc." At a recent multimedia conference in London they
  1919. handed out free demo disks that show the decomp. in action. The
  1920. package runs under both DOS anf WIN (DLLs provided for use in
  1921. applications). They also sell a board to speed up compression and
  1922. offer versions supporting full motion video (but not apparently at all
  1923. SVGA sizes like the static picture version). I have not yet got my
  1924. hands on a full version to test different types of pictures, but
  1925. friends have a and claim it looks good.
  1926.  
  1927.  
  1928. Thomas W. Colthurst <thomasc@athena.mit.edu> clarifies the distinction
  1929. between IFS and the Fractal Transform:
  1930.  
  1931. It is time, once and for all, to put to death the Barnsley myth that
  1932. IFSs are good for image compression.  They are not.  Various algorithms
  1933. have been proposed for this "inverse problem" ranging from the trendy
  1934. (genetic algorithms) to the deep (moment methods) to the ad hoc (the
  1935. hungry algorithm) to the absurd (the so-called "graduate student
  1936. algorithm", consisting of locking up a grad student in a tiny office
  1937. with a SGI workstation and not letting them out until they come up
  1938. with a good IFS for your image).  They are all useless for practical
  1939. image compression.
  1940.  
  1941. In fact, there are even good theoretical reasons for believing that
  1942. IFSs will never be useful for image compression.  For example, even
  1943. if you have an IFS for object A and an IFS for object B, there is no
  1944. way to combine these IFSs to get an IFS for object A union B or
  1945. object A intersect B.
  1946.  
  1947. Even Barnsley himself admits, in his latest book, that he doesn't use
  1948. IFS image compression.  Instead, he uses the so-called "fractal
  1949. transform," which is really just a variant of vector quantization
  1950. where you use the image itself, sampled at a higher scale, as the
  1951. VQ codebook.  To be fair, the fractal transform can be analyzed using
  1952. local IFSs, but local IFSs are immensely more complicated and general
  1953. than normal IFSs, to the point where one feels suspect even using the
  1954. word "IFS" to describe them.
  1955.  
  1956. It should be emphasized that the fractal transform is a real, working
  1957. method that performs about as well as other existing methods like VQ
  1958. or the discrete cosine transform. The fractal transform will probably
  1959. never beat vector quantization (VQ) as for size of the compressed
  1960. image, but does have the advantage that you don't need to carry your
  1961. codebook around.  The latest results have it slightly winning over
  1962. the discrete cosine transform; only time and more research will tell
  1963. if this advantage persists.  Just like VQ, the fractal transform
  1964. takes a while to compress, but is quick at decompression (Barnsley's
  1965. company has hardware to do this in realtime).
  1966.  
  1967. In short, IFSs are good for just about everything fractals are (and
  1968. more!), but are absolutely horrid for image compression.
  1969.  
  1970.  
  1971. Programs:
  1972.  
  1973. A fractal image compression program is available by ftp in
  1974. lyapunov.ucsd.edu:/pub/young-fractal/unifs10.zip. (Unix users, See
  1975. item 2 above for unzip on Unix.) Note the file size before you ftp it:
  1976. 1.2 MB. The package contains source for compression and decompression,
  1977. source for X-windows decompression, MSDOS executables and images.
  1978. A newer version of the program is in yuvpak20.zip.
  1979.  
  1980. A fractal image decompression program (note: decompression only) is
  1981. available in /pub/inls-ucsd/fractal-2.0.tar on on the same ftp site
  1982. (lyapunov.ucsd.edu). Note the file size before you ftp it: 1.3 MB.
  1983. This file also contains a paper by Yuval Fisher (see reference below),
  1984. and some executables and sample images. Reading this paper is required
  1985. to understand how the Young compression programs (see above) works.
  1986.  
  1987. A note from Yuval Fisher <yfisher@ucsd.edu>:
  1988.  
  1989.     Ftp to legendre.ucsd.edu and look in pub/Research/Fisher.  There
  1990.     is information there on my new book of contributed articles on
  1991.     fractal image compression, as well as the book's table of
  1992.     contents, some C code to encode and decode raw byte files of any
  1993.     size using a quadtree method, a manual explaining the use of the
  1994.     code, a fractal image compression bibliography (not guaranteed to
  1995.     be complete or close to it), some better executable code with
  1996.     sample encodings, and the SIGGRAPH '92 course notes on fractal
  1997.     image compression (these are based on appendix A of Chaos and
  1998.     Fractals by Peitgen et al., Springer Verlag). (See also
  1999.     http://legendre.ucsd.edu/Research/Fisher/fractal.html.)
  2000.  
  2001.  
  2002. The source code for the program published in the Oct 93 issue of
  2003. Byte is in ftp.uu.net:/published/byte/93oct/fractal.exe. This is
  2004. self-extractible zip file (use "unzip fractal.exe" to extract on
  2005. non MSDOS systems). The source code is for a TARGA video board.
  2006.  
  2007. Another fractal compression program is available by ftp in
  2008. vision.auc.dk:/pub/Limbo/Limbo*.tar.Z.
  2009.  
  2010. Several papers on fractal image compression are available by ftp
  2011. on ftp.informatik.uni-freiburg.de in directory /documents/papers/fractal.
  2012. A biliography is in schmance.uwaterloo.ca:/pub/Fractal/fractal.biblio.ps.Z.
  2013.  
  2014. References:
  2015.   A. Jacquin, 'Fractal image coding based on a theory of iterated
  2016.     contractive image transformations', Visual Comm. and Image
  2017.     Processing, vol SPIE-1360, 1990. (The best paper that explains
  2018.     the concept in a simple way.)
  2019.  
  2020.   A. Jacquin, "A Fractal Theory of Iterated Markov Operators with
  2021.     Applications to Digital Image Coding", PhD Thesis, Georgia Tech, 1989.
  2022.   It can be obtained from university microfilms for $35, phone 1-800-521-0600.
  2023.  
  2024.   M. Barnsley, L. Anson, "Graphics Compression Technology, SunWorld,
  2025.     October 1991, pp. 42-52.
  2026.   M.F. Barnsley, A. Jacquin, F. Malassenet, L. Reuter & A.D. Sloan,
  2027.     'Harnessing chaos for image synthesis', Computer Graphics,
  2028.     vol 22 no 4 pp 131-140, 1988.
  2029.   M.F. Barnsley, A.E. Jacquin, 'Application of recurrent iterated
  2030.     function systems to images', Visual Comm. and Image Processing,
  2031.     vol SPIE-1001, 1988.
  2032.   A. Jacquin, "Image Coding Based on a Fractal Theory of Iterated Contractive
  2033.     Image Transformations" p.18, January 1992 (Vol 1 Issue 1) of IEEE Trans
  2034.     on Image Processing.
  2035.   A.E. Jacquin, 'A novel fractal block-coding technique for digital
  2036.     images', Proc. ICASSP 1990.
  2037.   G.E. Oien, S. Lepsoy & T.A. Ramstad, 'An inner product space
  2038.     approach to image coding by contractive transformations',
  2039.     Proc. ICASSP 1991, pp 2773-2776.
  2040.   D.S. Mazel, Fractal Modeling of Time-Series Data, PhD Thesis,
  2041.     Georgia Tech, 1991.    (One dimensional, not pictures)
  2042.   S. A. Hollatz, "Digital image compression with two-dimensional affine
  2043.     fractal interpolation functions", Department of Mathematics and
  2044.     Statistics, University of Minnesota-Duluth, Technical Report 91-2.
  2045.     (a nuts-and-bolts how-to-do-it paper on the technique)
  2046.   Stark, J., "Iterated function systems as neural networks",
  2047.     Neural Networks, Vol 4, pp 679-690, Pergamon Press, 1991.
  2048.   Monro D M and Dudbridge F, "Fractal block coding of images",
  2049.     Electronics Letters 28(11):1053-1054 (1992)
  2050.   Beaumont J M, "Image data compression using fractal techniques",
  2051.     British Telecom Technological Journal 9(4):93-108 (1991)
  2052.   Fisher Y, "Fractal image compression", Siggraph 92
  2053.   Graf S, "Barnsley's Scheme for the Fractal Encoding of Images",
  2054.     Journal Of Complexity, V8, 72-78 (1992).
  2055.   Monro D.M. 'A hybrid fractal transform', Proc ICASSP 93, pp. V: 169-72
  2056.   Monro D.M. & Dudbridge F. 'Fractal approximation of image blocks',
  2057.     Proc ICASSP 92, pp. III: 485-488
  2058.   Monro D.M., Wilson D., Nicholls J.A. 'High speed image coding with the Bath
  2059.     Fractal Transform', IEEE International Symposium on Multimedia Technologies
  2060.     Southampton, April 1993
  2061.   Jacobs, E.W., Y. Fisher and R.D. Boss.  "Image Compression:  A study
  2062.     of the Iterated Transform Method."  _Signal Processing 29_  (1992) 25-263
  2063.   Vrscay, Edward R.  "Iterated Function Systems:  Theory, Applications,
  2064.     and the Inverse Problem."  _Fractal Geometry and Analysis_,
  2065.     J. Belair and S. Dubuc (eds.)  Kluwer Academic, 1991.  405-468.
  2066.  
  2067. Book:
  2068.     Fractal Image Compression
  2069.     Michael F. Barnsley and Lyman P. Hurd
  2070.     ISBN 0-86720-457-5, ca. 250 pp., $49.95
  2071.     Copies can be ordered directly from the publisher by sending a message
  2072.     to kpeters@math.harvard.edu with name, address and a Mastercard or
  2073.     Visa card number with expiration date.
  2074.  
  2075. Barnsley's company is:
  2076.  
  2077. Iterated Systems, Inc.
  2078. 5550A Peachtree Parkway, Suite 650
  2079. Norcross, GA  30092
  2080. tel: 404-840-0310 or 1-800-4FRACTL
  2081. fax: 404-840-0806
  2082. In UK: Phone (0734) 880261, Fax (0734) 880360
  2083.  
  2084. ------------------------------------------------------------------------------
  2085.  
  2086. Subject: [18] I need specs and source for TIFF and CCITT group 4 Fax
  2087.  
  2088.  
  2089. Specs for Group 3 and 4 image coding (group 3 is very similar to group 4)
  2090. are in CCITT (1988) volume VII fascicle VII.3. They are recommendations
  2091. T.4 and T.6 respectively. There is also an updated spec contained in 1992
  2092. recommendations T.1 to T.6.
  2093.  
  2094. CCITT specs are available by anonymous ftp (see above answer on
  2095. V.42bis).  The T.4 and T.6 specs are on src.doc.ic.ac.uk in directory
  2096. /computing/ccitt/ccitt-standards/ccitt/1988/ascii, files 7_3_01.txt.Z and
  2097. 7_3_02.txt.Z respectively.
  2098.  
  2099. The following paper covers T.4, T.6 and JBIG:
  2100.  
  2101.   "Review of standards for electronic imaging for facsimile systems"
  2102.   in Journal of Electronic Imaging, Vol. 1, No. 1, pp. 5-21, January 1992.
  2103.  
  2104.  
  2105. Source code can be obtained as part of a TIFF toolkit - TIFF image
  2106. compression techniques for binary images include CCITT T.4 and T.6:
  2107.  
  2108.     sgi.com:/graphics/tiff/v3.2.tar.Z    [192.48.153.1]
  2109.     Contact: sam@sgi.com
  2110.  
  2111. There is also a companion compressed tar file (v3.0pics.tar.Z) that
  2112. has sample TIFF image files. A draft of TIFF 6.0 is in TIFF6.ps.Z.
  2113. Concerning JPEG compression in TIFF 6.0, Tom Lane <tgl+@cs.cmu.edu> adds:
  2114.  
  2115.   The TIFF document won't do you much good unless you also have the official
  2116.   JPEG standard. You can buy it from ANSI or your national ISO member
  2117.   organization (DIN over there, I suppose). [See also the book by Pennebaker
  2118.   and Mitchell referenced in item 75 of this FAQ.]
  2119.  
  2120.   Worse, the TIFF 6.0 spec has serious problems in its JPEG features.  It is
  2121.   probable that section 22 (JPEG) will be rewritten from scratch.  If you are
  2122.   considering implementing TIFF/JPEG, please contact me at tgl+@cs.cmu.edu for
  2123.   the latest word.
  2124.  
  2125. Software for reading and writing CCITT Group 3 and 4 images is
  2126. also available in directory merry.cs.monash.edu.au:/pub/alanf/TIFF_FAX
  2127. (130.194.67.101). Contact: Alan Finlay <alanf@bruce.cs.monash.edu.au>.
  2128.  
  2129.  
  2130. See also question 54 below.
  2131.  
  2132. ------------------------------------------------------------------------------
  2133.  
  2134. Subject: [19] What is JPEG?
  2135.  
  2136.  
  2137. JPEG (pronounced "jay-peg") is a standardized image compression mechanism.
  2138. JPEG stands for Joint Photographic Experts Group, the original name of the
  2139. committee that wrote the standard.  JPEG is designed for compressing either
  2140. full-color or gray-scale digital images of "natural", real-world scenes.
  2141. It does not work so well on non-realistic images, such as cartoons or line
  2142. drawings.
  2143.  
  2144. JPEG does not handle black-and-white (1-bit-per-pixel) images, nor does it
  2145. handle motion picture compression.  Standards for compressing those types
  2146. of images are being worked on by other committees, named JBIG and MPEG
  2147. respectively.
  2148.  
  2149. Regular JPEG is "lossy", meaning that the image you get out of decompression
  2150. isn't quite identical to what you originally put in.  The algorithm achieves
  2151. much of its compression by exploiting known limitations of the human eye,
  2152. notably the fact that small color details aren't perceived as well as small
  2153. details of light-and-dark.  Thus, JPEG is intended for compressing images that
  2154. will be looked at by humans.  If you plan to machine-analyze your images, the
  2155. small errors introduced by JPEG may be a problem for you, even if they are
  2156. invisible to the eye.  The JPEG standard includes a separate lossless mode,
  2157. but it is not widely used and does not give nearly as much compression as the
  2158. lossy mode.
  2159.  
  2160. Question 75 "Introduction to JPEG" (in part 2 of this FAQ) gives an overview
  2161. of how JPEG works and provides references for further reading.  Also see the
  2162. JPEG FAQ article, which covers JPEG software and usage hints.  The JPEG FAQ is
  2163. posted regularly in news.answers by Tom Lane <tgl+@cs.cmu.edu>.  (See question
  2164. 53 "Where are FAQ lists archived" if this posting has expired at your site.)
  2165.  
  2166. For JPEG software, see item 15 above.
  2167. For JPEG hardware, see item 85 in part 3 of this FAQ.
  2168.  
  2169. ------------------------------------------------------------------------------
  2170.  
  2171. Subject: [20] I am looking for source of an H.261 codec and MPEG
  2172.  
  2173.  
  2174. The H.261 spec is available on src.doc.ic.ac.uk in
  2175. /computing/ccitt/standards/ccitt/1992/h/h261.doc.Z (or h261.rtf.Z).
  2176.  
  2177.  
  2178. For H.261 hardware, see item 85 in part 3 of this FAQ.
  2179.  
  2180. from Thierry TURLETTI <turletti@sophia.inria.fr>:
  2181.  
  2182.      IVS (INRIA VIDEOCONFERENCING SYSTEM)
  2183.       - X11-based videoconferencing tool for SPARC, HP,  DEC  and
  2184.      Silicon Graphic workstations.
  2185.  
  2186.      ivs allows users  to  conduct  multi-host  audio  and  video
  2187.      conferences  over  the  Internet. ivs requires a workstation
  2188.      with a screen with 1, 4, 8 or  24  bits  depth.   Multi-host
  2189.      conferences  require  that  the  kernel support multicast IP
  2190.      extensions (RFC 1112).
  2191.  
  2192.      On video input, video frames are grabbed  by  the  VideoPix,
  2193.      SunVideo or Parallax boards for SparcStations or Raster Rops
  2194.      board for HP stations or the IndigoVideo board for SGI  IRIS
  2195.      Indigo workstations.  or the VIDEOTX board for DEC stations.
  2196.      No special hardware apart from  the  workstation's  build-in
  2197.      audio hardware is required for audio conference.
  2198.  
  2199.      Video encoding is done according to the H.261 standard.
  2200.      The video stream can be encoded in either Super CIF 
  2201.      (704x576 pixels) format or  CIF  (352x288  pixels) format or 
  2202.      QCIF (176x144 pixels). Default format is CIF.
  2203.  
  2204.      Sources, binaries & manuals are freely available by anonymous 
  2205.      ftp from zenon.inria.fr in the rodeo/ivs directory. An INRIA
  2206.      report describing this application is also available in the 
  2207.      same directory.
  2208.  
  2209.      If you ftp & use this package, please send all remarks or 
  2210.      modifications made to <turletti@sophia.inria.fr>. If you want 
  2211.      to be added or deleted to the ivs-users mailing list, please send 
  2212.      e-mail to ivs-users-request@sophia.inria.fr.
  2213.  
  2214.  
  2215. from Andy Hung <achung@cs.stanford.edu>:
  2216.  
  2217. Public domain UNIX C source code to do both image and image sequence
  2218. compression and decompression is available by anonymous ftp:
  2219.  
  2220. MPEG-I            havefun.stanford.edu:pub/mpeg/MPEGv1.2.alpha.tar.Z
  2221. CCITT H.261(P*64)    havefun.stanford.edu:pub/p64/P64v1.2.alpha.tar.Z
  2222. JPEG            havefun.stanford.edu:pub/jpeg/JPEGv1.2.beta.tar.Z
  2223.  
  2224. These codecs operate on raw raster scanned images.
  2225.  
  2226. A software program to display raw raster-scanned YUV images and image
  2227. sequences on X grayscale or color monitors is provided by a program in
  2228. the anonymous ftp directory havefun.stanford.edu pub/cv/CVv1.1.tar.Z.
  2229. If you are using the codecs above, we recommend that you ftp this file
  2230. over as well.
  2231.  
  2232. The source code has been compiled on DEC and SUN workstations.
  2233. Caution: the P64 codec has not been tested compliant (any available
  2234. p64 video streams would be much appreciated - please let us know at
  2235. achung@cs.stanford.edu).  The other codecs have been tested with
  2236. streams from other encoders.
  2237.  
  2238. We also have some IPB MPEG-I video coded streams in pub/mpeg/*.mpg;
  2239. and P64 video streams in pub/p64/*.p64 that we have generated using
  2240. our codecs.
  2241.  
  2242. For a more complete description see the file
  2243. havefun.stanford.edu:pub/README.
  2244.  
  2245. ------------------------------------------------------------------------------
  2246.  
  2247. Subject: [25] Fast DCT (Discrete Cosine Transform) algorithms
  2248.  
  2249.  
  2250. Many image compression methods, including the JPEG, MPEG, and H.261 standards,
  2251. are based on the discrete cosine transform.  A good overall introduction to
  2252. DCT is the book "Discrete Cosine Transform---Algorithms, Advantages,
  2253. Applications" by K.R. Rao and P. Yip (Academic Press, London, 1990),
  2254. ISBN 0-12-580203-X. This has an extensive, though already dated, bibliography.
  2255.  
  2256. Here are some newer references provided by Tom Lane <tgl+@cs.cmu.edu>.
  2257. Most of these are in IEEE journals or conference proceedings, notably
  2258. ICASSP = IEEE Intl. Conf. on Acoustics, Speech, and Signal Processing.
  2259. ICCAS = IEEE Intl. Conf. on Circuits and Systems.
  2260. DCC = Data Compression Conference.
  2261.  
  2262. Polynomial Transform Computation of the 2-D DCT, Duhamel & Guillemot,
  2263.   ICASSP '90 p. 1515.
  2264. A Forward-Mapping Realization of the Inverse DCT, McMillan & Westover,
  2265.   DCC '92 p. 219.
  2266. A Fast Algorithm for 2-D DCT, Cho, Yun & Lee, ICASSP '91 p. 2197.
  2267. Fast Algorithm and Implementation of 2-D DCT, Cho & Lee, Tr. CAS v38 p. 297.
  2268. A DCT Chip based on a new Structured and Computationally Efficient DCT
  2269.   Algorithm, Duhamel, Guillemot & Carlach, ICCAS '90 p. 77.
  2270. Trade-offs in the Computation of Mono- and Multi-dimensional DCTs,
  2271.   Vetterli, Duhamel & Guillemot, ICASSP '89 p. 999.
  2272. Practical Fast 1-D DCT Algorithms with 11 Multiplications,
  2273.   Loeffler, Ligtenberg & Moschytz, ICASSP '89 p. 988.
  2274. New Scaled DCT Algorithms for Fused Multiply/Add Architectures,
  2275.   Linzer & Feig, ICASSP '91 p. 2201.
  2276. Fast Algorithms for the 2-D Discrete Cosine Transform, Kamangar & Rao,
  2277.   IEEE Tr. Computers, v C-31 p. 899.
  2278. Fast 2-D Discrete Cosine Transform, Vetterli, ICASSP '85 p. 1538.
  2279. A Two-Dimensional Fast Cosine Transform, Haque, Tr. ASSP v ASSP-33 p. 1532.
  2280. Real-Time Parallel and Fully Pipelined 2-D DCT Lattice Structures with
  2281.   Application to HDTV Systems, Chiu & Liu, Tr. CAS for Video Tech, v 2 p. 25.
  2282. J.F. Blinn, "What's the Deal with the DCT", IEEE Computer Graphics and
  2283.   Applications, July 1993, pp.78-83.
  2284.  
  2285. The free JPEG code (jpegsrc.v4.tar.Z) has one of the fastest implementations
  2286. of the DCT code.  It's all in the files jfwddct.c and jrevdct.c (which do
  2287. the dct and idct, respectively). See item 15 for ftp locations.
  2288.  
  2289. ------------------------------------------------------------------------------
  2290.  
  2291. Subject: [26] Are there algorithms and standards for audio compression?
  2292.  
  2293.  
  2294. Yes. See the introduction to MPEG given in part 2 of this FAQ.
  2295.  
  2296. A lossless compressor for 8bit and 16bit audio data (.au) is available by
  2297. anonymous ftp at svr-ftp.eng.cam.ac.uk:/comp.speech/sources/shorten-1.11.tar.Z.
  2298. An MSDOS executable is in shn109.exe. Shorten works by using Huffman
  2299. coding of prediction residuals.  Compression is generally better than
  2300. that obtained by applying general purpose compression utilities to
  2301. audio files. Shorten version 1.11 also supports lossy compression.
  2302. Contact: Tony Robinson <ajr@dsl.eng.cam.ac.uk>.
  2303.  
  2304. Audio software is available on sunsite.unc.edu in subdirectories of
  2305. /pub/electronic-publications/IUMA/audio_utils:
  2306. - An MPEG audio player is in mpeg_players/Workstations/maplay1_2.tar.Z.
  2307. - The sources of the XING MPEG audio player for Windows is in
  2308.   mpeg_players/Windows/mpgaudio.zip.
  2309. - An encoder/decoder is in converters/source/mpegaudio.tar.Z.
  2310.  
  2311.  
  2312. Copied from the comp.dsp FAQ posted by guido@cwi.nl (Guido van Rossum):
  2313.  
  2314.   Strange though it seems, audio data is remarkably hard to compress
  2315.   effectively.  For 8-bit data, a Huffman encoding of the deltas between
  2316.   successive samples is relatively successful.  For 16-bit data,
  2317.   companies like Sony and Philips have spent millions to develop
  2318.   proprietary schemes.
  2319.  
  2320.   Public standards for voice compression are slowly gaining popularity,
  2321.   e.g. CCITT G.721 and G.723 (ADPCM at 32 and 24 kbits/sec).  (ADPCM ==
  2322.   Adaptive Delta Pulse Code Modulation.)  Free source code for a *fast*
  2323.   32 kbits/sec ADPCM (lossy) algorithm is available by ftp from ftp.cwi.nl
  2324.   as /pub/adpcm.shar.  (** NOTE: if you are using v1.0, you should get
  2325.   v1.1, released 17-Dec-1992, which fixes a serious bug -- the quality
  2326.   of v1.1 is claimed to be better than uLAW **)
  2327.  
  2328.   (Note that U-LAW and silence detection can also be considered
  2329.   compression schemes.)
  2330.  
  2331.  
  2332. You can get a G.721/722/723 package by email to teledoc@itu.arcom.ch, with
  2333.  
  2334. GET ITU-3022
  2335.  
  2336. as the *only* line in the body of the message.
  2337.  
  2338.  
  2339. A note on u-law from Markus Kuhn <mskuhn@immd4.informatik.uni-erlangen.de>:
  2340.  
  2341.   u-law (more precisely (greek mu)-law or 5-law if you have an 8-bit
  2342.   ISO terminal) is more an encoding then a compression method,
  2343.   although a 12 to 8 bit reduction is normally part of the encoding.
  2344.   The official definition is CCITT recommendation G.711. If you want
  2345.   to know how to get CCITT documents, check the Standards FAQ
  2346.   posted to news.answers or get the file standards-faq by ftp in
  2347.   directory rtfm.mit.edu:/pub/usenet/news.answers.
  2348.  
  2349.  
  2350. See also the comp.dsp FAQ for more information on:
  2351.  
  2352. - The U.S. DoD's Federal-Standard-1016 based 4800 bps code excited linear
  2353.   prediction voice coder version 3.2a (CELP 3.2a)
  2354. - The U.S. DoD's Federal-Standard-1015/NATO-STANAG-4198 based 2400 bps
  2355.   linear prediction coder version 53 (LPC-10e v53)
  2356. - Realtime DSP code and hardware for FS-1015 and FS-1016
  2357.  
  2358. You can find the comp.dsp FAQ in comp.dsp or news.answers with subject:
  2359. "FAQ: Audio File Formats" or by ftp on rtfm.mit.edu
  2360. in /pub/usenet/news.answers/audio-fmts/part1.
  2361.  
  2362.  
  2363. CELP C code for Sun SPARCs is available for anonymous ftp at
  2364. furmint.nectar.cs.cmu.edu, in directory celp.audio.compression.
  2365. Version 3.2a is also in super.org:/pub/celp_3.2a.tar.Z.
  2366.  
  2367.  
  2368. Recommended reading:
  2369.   Digital Coding of Waveforms: Principles and Applications to Speech and
  2370.   Video.  N. S. Jayant and Peter Noll.  Prentice-Hall, 1984, ISBN
  2371.   0-13-211913-7.
  2372.  
  2373.  
  2374. from Markus Kuhn <mskuhn@immd4.informatik.uni-erlangen.de>:
  2375.  
  2376.   One highest quality sound compression format is called ASPEC and has
  2377.   been developped by a team at the Frauenhofer Institut in Erlangen (Germany)
  2378.   and others.
  2379.  
  2380.   ASPEC produces CD like quality and offers several bitrates, one is
  2381.   128 kbit/s. It is a lossy algorithm that throws away frequencys that
  2382.   aren't registered in the human cochlea in addition to sophisticated
  2383.   entropy coding. The 64 kbit/s ASPEC variant might soon bring hifi
  2384.   quality ISDN phone connections. It has been implemented on standard DSPs.
  2385.  
  2386.   The Layer 3 MPEG audio compression standard now contains what is officially
  2387.   called the best parts of the ASPEC and MUSICAM algorithms. A reference is:
  2388.  
  2389.     K.Brandenburg, G.Stoll, Y.F.Dehery, J.D.Johnston, L.v.d.Kerkhof,
  2390.     E.F.Schroeder: "The ISO/MPEG-Audio Codec: A Generic Standard for Coding
  2391.     of High Quality Digital Audio",
  2392.     92nd. AES-convention, Vienna 1992, preprint 3336
  2393.  
  2394.  
  2395. from Jutta Degener <jutta@cs.tu-berlin.de> and Carsten Bormann
  2396. <cabo@cs.tu-berlin.de>:
  2397.  
  2398.   GSM 06.10 13 kbit/s RPE/LTP speech compression available
  2399.   --------------------------------------------------------
  2400.  
  2401.   The Communications and Operating Systems Research Group (KBS) at the
  2402.   Technische Universitaet Berlin is currently working on a set of
  2403.   UNIX-based tools for computer-mediated telecooperation that will be
  2404.   made freely available.
  2405.  
  2406.   As part of this effort we are publishing an implementation of the
  2407.   European GSM 06.10 provisional standard for full-rate speech
  2408.   transcoding, prI-ETS 300 036, which uses RPE/LTP (residual pulse
  2409.   excitation/long term prediction) coding at 13 kbit/s.
  2410.  
  2411.   GSM 06.10 compresses frames of 160 13-bit samples (8 kHz sampling
  2412.   rate, i.e. a frame rate of 50 Hz) into 260 bits; for compatibility
  2413.   with typical UNIX applications, our implementation turns frames of 160
  2414.   16-bit linear samples into 33-byte frames (1650 Bytes/s).
  2415.   The quality of the algorithm is good enough for reliable speaker
  2416.   recognition; even music often survives transcoding in recognizable 
  2417.   form (given the bandwidth limitations of 8 kHz sampling rate).
  2418.  
  2419.   Version 1.0 of the implementation is available per anonymous ftp from
  2420.   tub.cs.tu-berlin.de as /pub/tubmik/gsm-1.0.tar.Z.  Questions and bug
  2421.   reports should be directed to toast@tub.cs.tu-berlin.de.  
  2422.   Note that the distribution is not available via E-mail (please use one
  2423.   of the ftp-via-E-mail servers).
  2424.  
  2425.  
  2426. from Bob Kimball <rkimball@qualcomm.com>:
  2427.  
  2428.   I work for Qualcomm Inc. and we are designing a digital cellular telephone
  2429.   system.  Our phone uses our variable rate vocoder (QCELP) which is designed
  2430.   for speach and compresses 64Kb/s speach to 8Kb/s through 1Kb/s with 8Kb/s
  2431.   being full rate and 1Kb/s for 1/8 rate speach.  It works great for speach.
  2432.  
  2433.   The QCELP process is documented in our Common Air Interface (CAI) which is
  2434.   available for anonymous ftp from lorien.qualcomm.com in /pub/cdma
  2435.   each chapter is a postscript file.  The vocoder is described in appendix A.
  2436.   The whole document is quite large.  This is the document which is currently
  2437.   going through the TIA standard committee so it is not a final version.  The
  2438.   appendix on the vocoder should be almost identical to the final version...
  2439.   whenever that comes out.
  2440.  
  2441.  
  2442. from Nicola Ferioli <ser1509@cdc835.cdc.polimi.it>:
  2443.  
  2444.   oak.oakland.edu:/pub/msdos/sound/vocpak20.zip
  2445.     Lossless 8-bit sound file compressor
  2446.  
  2447.   VOCPACK is a compressor/decompressor for 8-bit digital sound using a
  2448.   lossless algorithm; it is useful to save disk space without degrading
  2449.   sound quality.  It can compress signed and unsigned data, sampled at any
  2450.   rate, mono or stereo.  Since the method used is not lossy, it isn't
  2451.   necessary to strip file headers before compressing.
  2452.  
  2453.   VOCPACK was developed for use with .VOC (SoundBlaster) and .WAV (Windows)
  2454.   files, but any 8-bit sound can be compressed since the program takes no
  2455.   assumptions about the file structure.
  2456.  
  2457.   The typical compression ratio obtained goes from 0,8 for files sampled at
  2458.   11 KHz to 0,4 for 44 Khz files.  The best results are obtained with 44 KHz
  2459.   sounds (mono or stereo): general-purpose archivers create files that can be
  2460.   twice longer than the output of VOCPACK.  You can obtain smaller values
  2461.   using lossy compressors but if your goal is to keep the sound quality
  2462.   unaltered you should use a lossless program like VOCPACK.
  2463.  
  2464. from Harald Popp <popp@iis.fhg.de>:
  2465.  
  2466.   new version 1.0 of ISO/MPEG1 Audio Layer 3 Shareware available
  2467.  
  2468.   major improvements of the new version:
  2469.        - encoder works twice as fast
  2470.        - improved file handling for encoder including .WAV files
  2471.  
  2472.   You may download the shareware from fhginfo.fhg.de (153.96.1.4)
  2473.   from the directory /pub/layer3
  2474.  
  2475.   The source code for the MPEG1 audio decoder layer 1, 2 and 3 is
  2476.   now available on fhginfo.fhg.de (153.96.1.4) in /pub/layer3/public_c.
  2477.  
  2478.   There are two files:
  2479.      mpeg1_iis.tar.Z     (Unix: lines seperated by line feed only)
  2480.      mpeg1iis.zip        (PC: lines seperated by carriage return and line feed)
  2481.  
  2482. ------------------------------------------------------------------------------
  2483.  
  2484. Subject: [30] My archive is corrupted!
  2485.  
  2486.  
  2487. The two most common reasons for this are
  2488.  
  2489. (1) failing to use the magic word "tenex" (when connected to SIMTEL20 and
  2490.     other TOPS20 systems) or "binary" (when connected to UNIX systems) when
  2491.     transferring the file from an ftp site to your host machine.  The
  2492.     reasons for this are technical and boring.  A synonym for "tenex" is
  2493.     "type L 8", in case your ftp doesn't know what "tenex" means.
  2494.  
  2495. (2) failing to use an eight-bit binary transfer protocol when transferring
  2496.     the file from the host to your PC.  Make sure to set the transfer type
  2497.     to "binary" on both your host machine and your PC.
  2498.  
  2499. ------------------------------------------------------------------------------
  2500.  
  2501. Subject: [31] pkunzip reports a CRC error!
  2502.  
  2503.  
  2504. The portable zip 1.1 contains many workarounds for undocumented restrictions
  2505. in pkunzip. Compatibility is ensured for pkunzip 1.10 only. All previous
  2506. versions (pkunzip 1.0x) have too many bugs and cannot be supported. This
  2507. includes Borland unzip.
  2508.  
  2509. So if your pkunzip reports a CRC error, check that you are not using
  2510. an obsolete version. Get either pkzip 2.04g or unzip 5.1 (see question
  2511. 2 above for ftp sites). To generate zip files compatible with pkunzip 1.10,
  2512. use zip 1.1 (see item 2 above for ftp site).
  2513.  
  2514. ------------------------------------------------------------------------------
  2515.  
  2516. Subject: [32] VMS zip is not compatible with pkzip!
  2517.  
  2518.  
  2519. The problem is most likely in the file transfer program.
  2520.  
  2521. Many use kermit to transfer zipped files between PC and VMS VAX.  The
  2522. following VMS kermit settings make VMS-ZIP compatible with PKZIP:
  2523.  
  2524.                                              VMS kermit        PC kermit
  2525.                                            ---------------   --------------
  2526.  
  2527. Uploading PKZIPped file to be UNZIPped:    set fi ty fixed    set fi ty bi
  2528. Downloading ZIPped file to be PKUNZIPped:  set fi ty block    set fi ty bi
  2529.  
  2530. If you are not using kermit, transfer a file created by pkzip on MSDOS
  2531. to VMS, transfer it back to your PC and check that pkunzip can extract it.
  2532.  
  2533. ------------------------------------------------------------------------------
  2534.  
  2535. Subject: [33] I have a problem with Stacker or DoubleSpace!
  2536.  
  2537.  
  2538. The newsgroup comp.compression is *not* the appropriate place to
  2539. discuss about one specific program on one specific operating system.
  2540. Since you have bought a legal copy of Stacker or MSDOS 6.x, you have
  2541. the documentation of your product; please read it. If you can't find
  2542. the answer in the documentation, please report the problem to the Stac
  2543. or Microsoft customer support. (For Stac: StacDOSTec@aol.com or
  2544. StacMacTec@aol.com.)  If you really feel that the net has to know
  2545. about your problem, please post in one of the MSDOS newsgroups, such
  2546. as comp.os.msdos.apps or comp.binaries.ibm.pc.d.
  2547.  
  2548. ------------------------------------------------------------------------------
  2549.  
  2550. Subject: [50] What is this 'tar' compression program?
  2551.  
  2552.  
  2553. tar is not a compression program. It just combines several files
  2554. into one, without compressing them. tar file are often compressed with
  2555. 'compress', resulting in a .tar.Z file. See question 2, file type .tar.Z.
  2556. GNU tar has the capability to (de)compress files as well.
  2557.  
  2558. When you have to archive a lot of very small files, it is often
  2559. preferable to create a single .tar file and compress it, than to
  2560. compress the individual files separately. The compression program can
  2561. thus take advantage of redundancy between separate files.  The
  2562. disadvantage is that you must uncompress the whole .tar file to
  2563. extract any member. You can also improve compression by grouping
  2564. files by type, as in:
  2565.  
  2566.   tar cvf - `ls | sort -t. +1` | gzip > file.tar.gz
  2567.  
  2568. ------------------------------------------------------------------------------
  2569.  
  2570. Subject: [51] I need a CRC algorithm
  2571.  
  2572.  
  2573. As its name implies (Cyclic Redundancy Check) a crc adds redundancy whereas
  2574. the topic of this group is to remove it. Yet this question comes up often in
  2575. comp.compression.
  2576.  
  2577. The file ftp.adelaide.edu.au:/pub/rocksoft/crc_v3.txt is a pretty comprehensive
  2578. description of the whole CRC concept, including a C program.
  2579.  
  2580. See also:
  2581. - Schwaderer W.D., "CRC Calculation", April 85 PC Tech Journal, pp.118-133.
  2582. - "Calculating CRCs by Bits and Bytes", BYTE Magazine, September 1986
  2583. - Ramabadran T.V., Gaitonde S.S., "A tutorial on CRC computations", IEEE
  2584.   Micro, Aug 1988.
  2585. - ftp.uni-erlangen.de:/pub/doc/ISO/english/async-HDLC
  2586. - the source of all archivers, such as the file makecrc.c in the sources of
  2587.   zip 2.0.1 (see item 2).
  2588.  
  2589.  
  2590. The following C code (by Rob Warnock <rpw3@sgi.com>) does CRC-32 in
  2591. BigEndian/BigEndian byte/bit order.  That is, the data is sent most
  2592. significant byte first, and each of the bits within a byte is sent most
  2593. significant bit first, as in FDDI. You will need to twiddle with it to do
  2594. Ethernet CRC, i.e., BigEndian/LittleEndian byte/bit order. [Left as an
  2595. exercise for the reader.]
  2596.  
  2597. The CRCs this code generates agree with the vendor-supplied Verilog models
  2598. of several of the popular FDDI "MAC" chips.
  2599.  
  2600. u_long crc32_table[256];
  2601. /* Initialized first time "crc32()" is called. If you prefer, you can
  2602.  * statically initialize it at compile time. [Another exercise.]
  2603.  */
  2604.  
  2605. u_long crc32(u_char *buf, int len)
  2606. {
  2607.         u_char *p;
  2608.         u_long  crc;
  2609.  
  2610.         if (!crc32_table[1])    /* if not already done, */
  2611.                 init_crc32();   /* build table */
  2612.         crc = 0xffffffff;       /* preload shift register, per CRC-32 spec */
  2613.         for (p = buf; len > 0; ++p, --len)
  2614.                 crc = (crc << 8) ^ crc32_table[(crc >> 24) ^ *p];
  2615.         return ~crc;            /* transmit complement, per CRC-32 spec */
  2616. }
  2617.  
  2618. /*
  2619.  * Build auxiliary table for parallel byte-at-a-time CRC-32.
  2620.  */
  2621. #define CRC32_POLY 0x04c11db7     /* AUTODIN II, Ethernet, & FDDI */
  2622.  
  2623. init_crc32()
  2624. {
  2625.         int i, j;
  2626.         u_long c;
  2627.  
  2628.         for (i = 0; i < 256; ++i) {
  2629.                 for (c = i << 24, j = 8; j > 0; --j)
  2630.                         c = c & 0x80000000 ? (c << 1) ^ CRC32_POLY : (c << 1);
  2631.                 crc32_table[i] = c;
  2632.         }
  2633. }
  2634.  
  2635. ------------------------------------------------------------------------------
  2636.  
  2637. Subject: [52] What about those people who continue to ask frequently asked
  2638.               questions in spite of the frequently asked questions document?
  2639.  
  2640.  
  2641. Just send them a polite mail message, referring them to this document.
  2642. There is no need to flame them on comp.compression.  That would just
  2643. add more noise to this group.  Posted answers that are in the FAQ are
  2644. just as annoying as posted questions that are in the FAQ.
  2645.  
  2646. ------------------------------------------------------------------------------
  2647.  
  2648. Subject: [53] Where are FAQ lists archived?
  2649.  
  2650.  
  2651. Many are crossposted to news.answers.  That newsgroup should have a
  2652. long expiry time at your site; if not, talk to your sysadmin.
  2653.  
  2654. FAQ lists are available by anonymous FTP from rtfm.mit.edu.
  2655. The comp.compression FAQ that you are reading is in directory
  2656.    /pub/usenet/news.answers/compression-faq
  2657.  
  2658. This FAQ is also accessible in the World Wide Web at
  2659. http://www.cis.ohio-state.edu/hypertext/faq/usenet/compression-faq/top.html.
  2660.  
  2661. If you don't have FTP access, you can access the archives by mail
  2662. server.  Send an email message to mail-server@rtfm.mit.edu
  2663. containing the commands
  2664.     send usenet/news.answers/compression-faq/part1
  2665.     send usenet/news.answers/compression-faq/part2
  2666.     send usenet/news.answers/compression-faq/part3
  2667. For instructions, send an email message to the same address with the
  2668. words "help" and "index" (no quotes) on separate lines. If you don't
  2669. get a reply, check your return address, or add a line such as
  2670.     path myname@foo.edu
  2671.  
  2672. ------------------------------------------------------------------------------
  2673.  
  2674. Subject: [54] I need specs for graphics formats
  2675.  
  2676.  
  2677. Have a look in directory /pub/graphics.formats on zamenhof.cs.rice.edu.
  2678. It contains descriptions of gif, tiff, fits, etc...
  2679.  
  2680. See also the FAQ list for comp.graphics. See item 53 for an ftp site.
  2681.  
  2682. ------------------------------------------------------------------------------
  2683.  
  2684. Subject: [55] Where can I find Lenna and other images?
  2685.  
  2686.  
  2687. A bunch of standard images (lenna, baboon, cameraman, crowd, moon
  2688. etc..) are on ftp site eedsp.gatech.edu (130.207.226.2) in directory
  2689. /database/images. The images are in 256-level grayshades (256x256
  2690. pixels, 256 "colors").
  2691.  
  2692. [Note: the site ipl.rpi.edu mentioned below keeps changing. Images
  2693. stay there for a while then disappear. They are again available at
  2694. the time of writing (27 Dec 93).]
  2695.  
  2696. The site ipl.rpi.edu (128.113.14.50) has standard images in two
  2697. directories:
  2698.    ipl.rpi.edu:/pub/image/still/usc 
  2699.    ipl.rpi.edu:/pub/image/still/canon
  2700.  
  2701. (The directory /pub/image/sequence was taken offline because of
  2702. possible copyright problems, but has come back again. In particular,
  2703. Miss America is in subdirectories of /pub/image/sequence/missa.)
  2704.  
  2705. In each of those directories are the following directories:
  2706.    bgr     - 24 bit blue, green, red
  2707.    color   - 24 bit red, green, blue
  2708.    gray    - 8 bit grayscale uniform weighted
  2709.    gray601 - 8 bit grayscale CCIR-601 weighted
  2710.  
  2711. And in these directories are the actual images.  
  2712.  
  2713. For example, the popular lena image is in
  2714.    ipl.rpi.edu:/pub/image/still/usc/color/lena  # 24 bit RGB
  2715.    ipl.rpi.edu:/pub/image/still/usc/bgr/lena    # 24 bit BGR
  2716.    ipl.rpi.edu:/pub/image/still/usc/gray/lena   # 8 bit gray
  2717.  
  2718. All of the images are in Sun rasterfile format.  You can use the pbm
  2719. utilities to convert them to whatever format is most convenient.
  2720. [pbm is available in ftp.ee.lbl.gov:/pbmplus*.tar.Z].
  2721. Questions about the ipl archive should be sent to help@ipl.rpi.edu.
  2722.  
  2723.  
  2724. There are few gray-scale still images and some raw data of test results
  2725. available in directory nic.funet.fi:/pub/graphics/misc/test-images.
  2726. There are lots of .gif images in nic.funet.fi:/pub/pics.
  2727.  
  2728. Medical images can be found in decaf.stanford.edu:/pub/images/medical/mri,
  2729. eedsp.gatech.edu:/database/images/wchung/medical, and
  2730. omicron.cs.unc.edu:/pub/softlab/CHVRTD.
  2731.  
  2732.  
  2733. Rodney Peck <rodney@balltown.cma.com> is interested in some method
  2734. of establishing a canonical ftp database of images but does not have
  2735. the resources to provide an ftp site for that database. Send suggestions to
  2736. rodney@balltown.cma.com.
  2737.  
  2738.  
  2739. Beware: the same image often comes in many different forms, at
  2740. different resolutions, etc... The original lenna image is 512 wide,
  2741. 512 high, 8 bits per pel, red, green and blue fields.  Gray-scale
  2742. versions of Lenna have been obtained in two different ways from the
  2743. original:
  2744.  (1) Using the green field as a gray-scale image, and
  2745.  (2) Doing an RGB->YUV transformation and saving the Y component.
  2746. Method (1) makes it easier to compare different people's results since
  2747. everyone's version should be the same using that method.  Method (2)
  2748. produces a more correct image.
  2749.  
  2750. For the curious: 'lena' or 'lenna' is a digitized Playboy centerfold,
  2751. from November 1972. (Lenna is the spelling in Playboy, Lena is the
  2752. Swedish spelling of the name.) Lena Soderberg (ne Sjooblom) was last
  2753. reported living in her native Sweden, happily married with three kids
  2754. and a job with the state liquor monopoly.  In 1988, she was
  2755. interviewed by some Swedish computer related publication, and she was
  2756. pleasantly amused by what had happened to her picture.  That was the
  2757. first she knew of the use of that picture in the computer business.
  2758.  
  2759. The editorial in the January 1992 issue of Optical Engineering (v. 31
  2760. no. 1) details how Playboy has finally caught on to the fact that
  2761. their copyright on Lenna Sjooblom's photo is being widely infringed.
  2762. It sounds as if you will have to get permission from Playboy to
  2763. publish it in the future.
  2764.  
  2765. The CCITT test images are available on nic.funet.fi in directory
  2766. pub/graphics/misc/test-images, files ccitt1.tif to ccitt8.tif.
  2767. However Stuart Inglis <singlis@cpsc.ucalgary.ca> indicates that
  2768. there are problems with these images, and provides alternate versions
  2769. in http://www.cs.waikato.ac.nz/~singlis/ccitt.html.
  2770.  
  2771.  
  2772. Note on the CCITT test images, by Robert Estes <estes@eecs.ucdavis.edu>:
  2773.  
  2774. The ccitt files are in ipl.rpi.edu:/image-archive/bitmap/ccitt
  2775. (128.113.14.50). [Note from FAQ maintainer: this directory has
  2776. now disappeared; ipl.rpi.edu is a very volatile ftp site :-).]
  2777. They are named ccitt-n.ras.Z where n goes from 1 to 8.
  2778. Each file has an accompanying doc file called ccitt-n.ras.doc which
  2779. describes the image file. Here's the doc file for ccitt-1.ras:
  2780.  
  2781. Name ccitt-1.ras
  2782. Size 1728 x 2376 x 1
  2783. Type 1 bit standard format sun rasterfile 
  2784. Keywords binary standard image 1 bit fax
  2785. Description
  2786. One of eight images from the standard binary CCITT test image set.
  2787.  
  2788. This set is commonly used to compare binary image compression
  2789. techniques. The images are are 1728x2376 pixels.
  2790.  
  2791. ------------------------------------------------------------------------------
  2792.  
  2793. Subject: [56] I am looking for a message digest algorithm
  2794.  
  2795.  
  2796. Look on the ftp site rsa.com, in directory /pub. MD4 and MD5 are there.
  2797. This question would be more appropriate on sci.crypt.
  2798.  
  2799.  
  2800.  
  2801.           End of part 1 of the comp.compression faq.
  2802.  
  2803. From ankh.iia.org!uunet!EU.net!julienas!chorus!chorus.fr Sun Aug 28 10:14:07 1994
  2804. Path: ankh.iia.org!uunet!EU.net!julienas!chorus!chorus.fr
  2805. From: jloup@chorus.fr (Jean-loup Gailly)
  2806. Newsgroups: comp.compression,comp.compression.research,news.answers,comp.answers
  2807. Subject: comp.compression Frequently Asked Questions (part 2/3)
  2808. Summary: *** READ THIS BEFORE POSTING ***
  2809. Keywords: data compression, FAQ
  2810. Message-ID: <compr2_24aug94@chorus.fr>
  2811. Date: 24 Aug 94 16:58:52 GMT
  2812. Expires: 30 Sep 94 16:17:20 GMT
  2813. References: <compr1_24aug94@chorus.fr>
  2814. Sender: news@chorus.chorus.fr
  2815. Reply-To: jloup@chorus.fr
  2816. Followup-To: comp.compression
  2817. Lines: 1772
  2818. Approved: news-answers-request@MIT.Edu
  2819. Supersedes: <compr2_19jul94@chorus.fr>
  2820. Xref: ankh.iia.org comp.compression:3660 comp.compression.research:135 news.answers:9989 comp.answers:3330
  2821.  
  2822. Archive-name: compression-faq/part2
  2823. Last-modified: April 17th, 1994
  2824.  
  2825. This file is part 2 of a set of Frequently Asked Questions for the
  2826. groups comp.compression and comp.compression.research.
  2827. If you did not get part 1 or 3, you can get them by ftp
  2828. on rtfm.mit.edu in directory
  2829.    /pub/usenet/news.answers/compression-faq
  2830.  
  2831. If you don't want to see this FAQ regularly, please add the subject
  2832. line to your kill file. If you have corrections or suggestions for
  2833. this FAQ, send them to Jean-loup Gailly <jloup@chorus.fr>.  Thank you.
  2834.  
  2835. Contents
  2836. ========
  2837.  
  2838. Part 2: (Long) introductions to data compression techniques
  2839.  
  2840. [70] Introduction to data compression (long)
  2841.        Huffman and Related Compression Techniques
  2842.        Arithmetic Coding
  2843.        Substitutional Compressors
  2844.           The LZ78 family of compressors
  2845.           The LZ77 family of compressors
  2846.  
  2847. [71] Introduction to MPEG (long)
  2848.        What is MPEG?
  2849.        Does it have anything to do with JPEG?
  2850.        Then what's JBIG and MHEG?
  2851.        What has MPEG accomplished?
  2852.        So how does MPEG I work?
  2853.        What about the audio compression?
  2854.        So how much does it compress?
  2855.        What's phase II?
  2856.        When will all this be finished?
  2857.        How do I join MPEG?
  2858.        How do I get the documents, like the MPEG I draft?
  2859.  
  2860. [72] What is wavelet theory?
  2861. [73] What is the theoretical compression limit?
  2862. [74] Introduction to JBIG
  2863. [75] Introduction to JPEG
  2864. [76] What is Vector Quantization?
  2865. [77] Introduction to Fractal compression
  2866.  
  2867. Part 3: (Long) list of image compression hardware
  2868.  
  2869. [85] Image compression hardware
  2870. [99] Acknowledgments
  2871.  
  2872.  
  2873. Search for "Subject: [#]" to get to question number # quickly. Some news
  2874. readers can also take advantage of the message digest format used here.
  2875.  
  2876. ------------------------------------------------------------------------------
  2877.  
  2878. Subject: [70] Introduction to data compression (long)
  2879.  
  2880.  
  2881. Written by Peter Gutmann <pgut1@cs.aukuni.ac.nz>.
  2882.  
  2883.  Huffman and Related Compression Techniques
  2884.  ------------------------------------------
  2885.  
  2886.   *Huffman compression* is a statistical data compression technique which 
  2887. gives a reduction in the average code length used to represent the symbols of 
  2888. a alphabet.  The Huffman code is an example of a code which is optimal in the 
  2889. case where all symbols probabilities are integral powers of 1/2.  A Huffman 
  2890. code can be built in the following manner:
  2891.  
  2892.   (1) Rank all symbols in order of probability of occurrence.
  2893.     
  2894.   (2) Successively combine the two symbols of the lowest probability to form
  2895.       a new composite symbol; eventually we will build a binary tree where
  2896.       each node is the probability of all nodes beneath it.
  2897.  
  2898.   (3) Trace a path to each leaf, noticing the direction at each node.
  2899.  
  2900.   For a given frequency distribution, there are many possible Huffman codes,
  2901. but the total compressed length will be the same. It is possible to
  2902. define a 'canonical' Huffman tree, that is, pick one of these alternative
  2903. trees. Such a canonical tree can then be represented very compactly, by
  2904. transmitting only the bit length of each code. This technique is used
  2905. in most archivers (pkzip, lha, zoo, arj, ...).
  2906.  
  2907.  
  2908.   A technique related to Huffman coding is *Shannon-Fano coding*, which
  2909. works as follows:
  2910.  
  2911.   (1) Divide the set of symbols into two equal or almost equal subsets
  2912.       based on the probability of occurrence of characters in each
  2913.       subset.  The first subset is assigned a binary zero, the second
  2914.       a binary one.
  2915.  
  2916.   (2) Repeat step (1) until all subsets have a single element.
  2917.  
  2918. The algorithm used to create the Huffman codes is bottom-up, and the
  2919. one for the Shannon-Fano codes is top-down. Huffman encoding always
  2920. generates optimal codes, Shannon-Fano sometimes uses a few more bits.
  2921.  
  2922.  
  2923.  Arithmetic Coding
  2924.  -----------------
  2925.  
  2926.   It would appear that Huffman or Shannon-Fano coding is the perfect
  2927. means of compressing data.  However, this is *not* the case.  As
  2928. mentioned above, these coding methods are optimal when and only when
  2929. the symbol probabilities are integral powers of 1/2, which is usually
  2930. not the case.
  2931.  
  2932.   The technique of *arithmetic coding* does not have this restriction:
  2933. It achieves the same effect as treating the message as one single unit
  2934. (a technique which would, for Huffman coding, require enumeration of
  2935. every single possible message), and thus attains the theoretical
  2936. entropy bound to compression efficiency for any source.
  2937.  
  2938.   Arithmetic coding works by representing a number by an interval of real 
  2939. numbers between 0 and 1.  As the message becomes longer, the interval needed 
  2940. to represent it becomes smaller and smaller, and the number of bits needed to 
  2941. specify that interval increases.  Successive symbols in the message reduce 
  2942. this interval in accordance with the probability of that symbol. The more
  2943. likely symbols reduce the range by less, and thus add fewer bits to the   
  2944. message.
  2945.  
  2946.      1                                             Codewords
  2947.     +-----------+-----------+-----------+           /-----\
  2948.     |           |8/9 YY     |  Detail   |<- 31/32    .11111
  2949.     |           +-----------+-----------+<- 15/16    .1111
  2950.     |    Y      |           | too small |<- 14/16    .1110
  2951.     |2/3        |    YX     | for text  |<- 6/8      .110
  2952.     +-----------+-----------+-----------+
  2953.     |           |           |16/27 XYY  |<- 10/16    .1010
  2954.     |           |           +-----------+
  2955.     |           |    XY     |           |
  2956.     |           |           |   XYX     |<- 4/8      .100
  2957.     |           |4/9        |           |
  2958.     |           +-----------+-----------+
  2959.     |           |           |           |
  2960.     |    X      |           |   XXY     |<- 3/8      .011
  2961.     |           |           |8/27       |
  2962.     |           |           +-----------+
  2963.     |           |    XX     |           |
  2964.     |           |           |           |<- 1/4      .01
  2965.     |           |           |   XXX     |
  2966.     |           |           |           |
  2967.     |0          |           |           |
  2968.     +-----------+-----------+-----------+
  2969.  
  2970.   As an example of arithmetic coding, lets consider the example of two
  2971. symbols X and Y, of probabilities 0.66 and 0.33. To encode this message, we
  2972. examine the first symbol: If it is a X, we choose the lower partition; if
  2973. it is a Y, we choose the upper partition.  Continuing in this manner for
  2974. three symbols, we get the codewords shown to the right of the diagram above
  2975. - they can be found by simply taking an appropriate location in the
  2976. interval for that particular set of symbols and turning it into a binary
  2977. fraction. In practice, it is also necessary to add a special end-of-data
  2978. symbol, which is not represented in this simpe example.
  2979.         
  2980.   In this case the arithmetic code is not completely efficient, which is due 
  2981. to the shortness of the message - with longer messages the coding efficiency 
  2982. does indeed approach 100%.
  2983.  
  2984.   Now that we have an efficient encoding technique, what can we do with it? 
  2985. What we need is a technique for building a model of the data which we can 
  2986. then use with the encoder.  The simplest model is a fixed one, for example a 
  2987. table of standard letter frequencies for English text which we can then use 
  2988. to get letter probabilities.  An improvement on this technique is to use an 
  2989. *adaptive model*, in other words a model which adjusts itself to the data 
  2990. which is being compressed as the data is compressed.  We can convert the 
  2991. fixed model into an adaptive one by adjusting the symbol frequencies after 
  2992. each new symbol is encoded, allowing the model to track the data being 
  2993. transmitted.  However, we can do much better than that.
  2994.  
  2995. Using the symbol probabilities by themselves is not a particularly good
  2996. estimate of the true entropy of the data: We can take into account
  2997. intersymbol probabilities as well.  The best compressors available today
  2998. take this approach: DMC (Dynamic Markov Coding) starts with a zero-order
  2999. Markov model and gradually extends this initial model as compression
  3000. progresses; PPM (Prediction by Partial Matching) looks for a match of the
  3001. text to be compressed in an order-n context.  If no match is found, it
  3002. drops to an order n-1 context, until it reaches order 0.  Both these
  3003. techniques thus obtain a much better model of the data to be compressed,
  3004. which, combined with the use of arithmetic coding, results in superior
  3005. compression performance.
  3006.  
  3007.   So if arithmetic coding-based compressors are so powerful, why are they not 
  3008. used universally?  Apart from the fact that they are relatively new and 
  3009. haven't come into general use too much yet, there is also one major concern:  
  3010. The fact that they consume rather large amounts of computing resources, both 
  3011. in terms of CPU power and memory.  The building of sophisticated models for 
  3012. the compression can chew through a fair amount of memory (especially in the 
  3013. case of DMC, where the model can grow without bounds); and the arithmetic 
  3014. coding itself involves a fair amount of number crunching.
  3015. There is however an alternative approach, a class of compressors generally 
  3016. referred to as *substitutional* or *dictionary-based compressors*.
  3017.  
  3018.  Substitutional Compressors
  3019.  --------------------------
  3020.  
  3021.   The basic idea behind a substitutional compressor is to replace an 
  3022. occurrence of a particular phrase or group of bytes in a piece of data with a 
  3023. reference to a previous occurrence of that phrase.  There are two main 
  3024. classes of schemes, named after Jakob Ziv and Abraham Lempel, who first 
  3025. proposed them in 1977 and 1978.
  3026.  
  3027. <The LZ78 family of compressors>
  3028.  
  3029.   LZ78-based schemes work by entering phrases into a *dictionary* and then, 
  3030. when a repeat occurrence of that particular phrase is found, outputting the 
  3031. dictionary index instead of the phrase.  There exist several compression 
  3032. algorithms based on this principle, differing mainly in the manner in which 
  3033. they manage the dictionary.  The most well-known scheme (in fact the most 
  3034. well-known of all the Lempel-Ziv compressors, the one which is generally (and 
  3035. mistakenly) referred to as "Lempel-Ziv Compression"), is Terry Welch's LZW 
  3036. scheme, which he designed in 1984 for implementation in hardware for high- 
  3037. performance disk controllers.
  3038.  
  3039. Input string: /WED/WE/WEE/WEB
  3040.  
  3041. Character input:    Code output:    New code value and associated string:
  3042.     /W                  /                   256 = /W
  3043.     E                   W                   257 = WE
  3044.     D                   E                   258 = ED
  3045.     /                   D                   259 = D/
  3046.     WE                  256                 260 = /WE
  3047.     /                   E                   261 = E/
  3048.     WEE                 260                 262 = /WEE
  3049.     /W                  261                 263 = E/W
  3050.     EB                  257                 264 = WEB
  3051.     <END>               B
  3052.     
  3053.   LZW starts with a 4K dictionary, of which entries 0-255 refer to individual 
  3054. bytes, and entries 256-4095 refer to substrings.  Each time a new code is 
  3055. generated it means a new string has been parsed.  New strings are generated 
  3056. by appending the current character K to the end of an existing string w.  The 
  3057. algorithm for LZW compression is as follows:
  3058.  
  3059.   set w = NIL
  3060.   loop
  3061.       read a character K
  3062.       if wK exists in the dictionary
  3063.           w = wK
  3064.       else
  3065.           output the code for w
  3066.           add wK to the string table
  3067.           w = K
  3068.   endloop
  3069.  
  3070.   A sample run of LZW over a (highly redundant) input string can be seen in 
  3071. the diagram above.  The strings are built up character-by-character starting 
  3072. with a code value of 256.  LZW decompression takes the stream of codes and 
  3073. uses it to exactly recreate the original input data.  Just like the 
  3074. compression algorithm, the decompressor adds a new string to the dictionary 
  3075. each time it reads in a new code.  All it needs to do in addition is to 
  3076. translate each incoming code into a string and send it to the output.  A 
  3077. sample run of the LZW decompressor is shown in below.
  3078.  
  3079. Input code: /WED<256>E<260><261><257>B
  3080.  
  3081. Input code:        Output string:     New code value and associated string:
  3082.     /                  /            
  3083.     W                  W                      256 = /W
  3084.     E                  E                      257 = WE
  3085.     D                  D                      258 = ED
  3086.     256                /W                     259 = D/
  3087.     E                  E                      260 = /WE
  3088.     260                /WE                    261 = E/
  3089.     261                E/                     262 = /WEE
  3090.     257                WE                     263 = E/W
  3091.     B                  B                      264 = WEB
  3092.            
  3093.   The most remarkable feature of this type of compression is that the entire 
  3094. dictionary has been transmitted to the decoder without actually explicitly 
  3095. transmitting the dictionary.  At the end of the run, the decoder will have a 
  3096. dictionary identical to the one the encoder has, built up entirely as part of 
  3097. the decoding process.
  3098.     LZW is more commonly encountered today in a variant known as LZC, after 
  3099. its use in the UNIX "compress" program.  In this variant, pointers do not 
  3100. have a fixed length.  Rather, they start with a length of 9 bits, and then 
  3101. slowly grow to their maximum possible length once all the pointers of a 
  3102. particular size have been used up.  Furthermore, the dictionary is not frozen 
  3103. once it is full as for LZW - the program continually monitors compression 
  3104. performance, and once this starts decreasing the entire dictionary is 
  3105. discarded and rebuilt from scratch.  More recent schemes use some sort of 
  3106. least-recently-used algorithm to discard little-used phrases once the 
  3107. dictionary becomes full rather than throwing away the entire dictionary.  
  3108.  
  3109. Finally, not all schemes build up the dictionary by adding a single new 
  3110. character to the end of the current phrase. An alternative technique is to 
  3111. concatenate the previous two phrases (LZMW), which results in a faster 
  3112. buildup of longer phrases than the character-by-character buildup of the 
  3113. other methods.  The disadvantage of this method is that a more sophisticated 
  3114. data structure is needed to handle the dictionary.
  3115.  
  3116. [A good introduction to LZW, MW, AP and Y coding is given in the yabba
  3117. package. For ftp information, see question 2 in part one, file type .Y]
  3118.  
  3119.  
  3120. <The LZ77 family of compressors>
  3121.  
  3122.   LZ77-based schemes keep track of the last n bytes of data seen, and when a 
  3123. phrase is encountered that has already been seen, they output a pair of 
  3124. values corresponding to the position of the phrase in the previously-seen 
  3125. buffer of data, and the length of the phrase.  In effect the compressor moves 
  3126. a fixed-size *window* over the data (generally referred to as a *sliding 
  3127. window*), with the position part of the (position, length) pair referring to 
  3128. the position of the phrase within the window.  The most commonly used 
  3129. algorithms are derived from the LZSS scheme described by James Storer and 
  3130. Thomas Szymanski in 1982.  In this the compressor maintains a window of size 
  3131. N bytes and a *lookahead buffer* the contents of which it tries to find a 
  3132. match for in the window:
  3133.  
  3134.   while( lookAheadBuffer not empty )
  3135.       {
  3136.       get a pointer ( position, match ) to the longest match in the window
  3137.           for the lookahead buffer;
  3138.  
  3139.       if( length > MINIMUM_MATCH_LENGTH )
  3140.           {
  3141.           output a ( position, length ) pair;
  3142.           shift the window length characters along;
  3143.           }
  3144.       else
  3145.           {
  3146.           output the first character in the lookahead buffer;
  3147.           shift the window 1 character along;
  3148.           }
  3149.       }
  3150.         
  3151.   Decompression is simple and fast:  Whenever a ( position, length ) pair is 
  3152. encountered, go to that ( position ) in the window and copy ( length ) bytes 
  3153. to the output.
  3154.  
  3155.   Sliding-window-based schemes can be simplified by numbering the input text
  3156. characters mod N, in effect creating a circular buffer.  The sliding window
  3157. approach automatically creates the LRU effect which must be done explicitly in
  3158. LZ78 schemes.  Variants of this method apply additional compression to the
  3159. output of the LZSS compressor, which include a simple variable-length code
  3160. (LZB), dynamic Huffman coding (LZH), and Shannon-Fano coding (ZIP 1.x)), all
  3161. of which result in a certain degree of improvement over the basic scheme,
  3162. especially when the data are rather random and the LZSS compressor has little
  3163. effect.
  3164.   Recently an algorithm was developed which combines the ideas behind LZ77 and
  3165. LZ78 to produce a hybrid called LZFG.  LZFG uses the standard sliding window,
  3166. but stores the data in a modified trie data structure and produces as output
  3167. the position of the text in the trie.  Since LZFG only inserts complete
  3168. *phrases* into the dictionary, it should run faster than other LZ77-based
  3169. compressors.
  3170.  
  3171. All popular archivers (arj, lha, zip, zoo) are variations on the LZ77 theme.
  3172.  
  3173. ------------------------------------------------------------------------------
  3174.  
  3175. Subject: [71] Introduction to MPEG (long)
  3176.  
  3177.  
  3178. For MPEG players, see item 15 in part 1 of the FAQ.  Frank Gadegast
  3179. <phade@cs.tu-berlin.de> also posts a FAQ specialized in MPEG, available in
  3180. ftp.cs.tu-berlin.de:/pub/msdos/dos/graphics/mpegfa*.zip.
  3181. Chad Fogg <cfogg@ole.cdac.com> also has another FAQ in preparation.
  3182. The site ftp.crs4.it dedicated to the MPEG compression standard,
  3183. see the directory mpeg and subdirectories. The MPEG FAQ is also available
  3184. on the World Wide Web at http://www.crs4.it/HTML/LUIGI/MPEG/mpegfaq.html.
  3185.  
  3186. A description of MPEG can be found in: "MPEG: A Video Compression
  3187. Standard for Multimedia Applications" Didier Le Gall, Communications
  3188. of the ACM, April 1991, Vol 34. No.4, pp.46-58.
  3189.  
  3190. MPEG-2 bitstreams are available on wuarchive.wustl.edu in directory
  3191. /graphics/x3l3/pub/bitstreams.
  3192.  
  3193. Introduction to MPEG originally written by Mark Adler 
  3194. <madler@cco.caltech.edu> around January 1992; modified and updated by 
  3195. Harald Popp <layer3@iis.fhg.de> in March 94:
  3196.  
  3197. Q: What is MPEG, exactly?
  3198.  
  3199. A: MPEG is the "Moving Picture Experts Group", working under the 
  3200.    joint direction of the International Standards Organization (ISO) 
  3201.    and the International Electro-Technical Commission (IEC). This 
  3202.    group works on standards for the coding of moving pictures and 
  3203.    associated audio.
  3204.  
  3205. Q: What is the status of MPEG's work, then? What's about MPEG-1, -2, 
  3206.    and so on?
  3207.  
  3208. A: MPEG approaches the growing need for multimedia standards step-by-
  3209.    step. Today, three "phases" are defined:
  3210.    
  3211.    MPEG-1: "Coding of Moving Pictures and Associated Audio for 
  3212.            Digital Storage Media at up to about 1.5 MBit/s"  
  3213.  
  3214.    Status: International Standard IS-11172, completed in 10.92
  3215.    
  3216.    MPEG-2: "Generic Coding of Moving Pictures and Associated Audio"
  3217.    
  3218.    Status: Comittee Draft CD 13818 as found in documents MPEG93 / 
  3219.            N601, N602, N603 (11.93)   
  3220.  
  3221.    MPEG-3: does not longer exist (has been merged into MPEG-2)
  3222.    
  3223.    MPEG-4: "Very Low Bitrate Audio-Visual Coding"
  3224.    
  3225.    Status: Call for Proposals 11.94, Working Draft in 11.96 
  3226.  
  3227. Q: MPEG-1 is ready-for-use. How does the standard look like?
  3228.  
  3229. A: MPEG-1 consists of 4 parts:
  3230.  
  3231.    IS 11172-1: System
  3232.    describes synchronization and multiplexing of video and audio
  3233.  
  3234.    IS 11172-2: Video
  3235.    describes compression of non-interlaced video signals
  3236.    
  3237.    IS 11172-3: Audio
  3238.    describes compression of audio signals 
  3239.    
  3240.    CD 11172-4: Compliance Testing
  3241.    describes procedures for determining the characteristics of coded 
  3242.    bitstreams and the decoding porcess and for testing compliance 
  3243.    with the requirements stated in the other parts
  3244.  
  3245. Q. Does MPEG have anything to do with JPEG? 
  3246.  
  3247. A. Well, it sounds the same, and they are part of the same 
  3248.    subcommittee of ISO along with JBIG and MHEG, and they usually meet 
  3249.    at the same place at the same time.  However, they are different 
  3250.    sets of people with few or no common individual members, and they 
  3251.    have different charters and requirements.  JPEG is for still image 
  3252.    compression.
  3253.  
  3254. Q. Then what's JBIG and MHEG?
  3255.  
  3256. A. Sorry I mentioned them. Ok, I'll simply say that JBIG is for binary
  3257.    image compression (like faxes), and MHEG is for multi-media data
  3258.    standards (like integrating stills, video, audio, text, etc.).
  3259.    For an introduction to JBIG, see question 74 below.
  3260.  
  3261. Q. So how does MPEG-1 work? Tell me about video coding!
  3262.  
  3263. A. First off, it starts with a relatively low resolution video
  3264.    sequence (possibly decimated from the original) of about 352 by
  3265.    240 frames by 30 frames/s (US--different numbers for Europe),
  3266.    but original high (CD) quality audio.  The images are in color,
  3267.    but converted to YUV space, and the two chrominance channels
  3268.    (U and V) are decimated further to 176 by 120 pixels.  It turns
  3269.    out that you can get away with a lot less resolution in those
  3270.    channels and not notice it, at least in "natural" (not computer
  3271.    generated) images.
  3272.  
  3273.    The basic scheme is to predict motion from frame to frame in the
  3274.    temporal direction, and then to use DCT's (discrete cosine
  3275.    transforms) to organize the redundancy in the spatial directions.
  3276.    The DCT's are done on 8x8 blocks, and the motion prediction is
  3277.    done in the luminance (Y) channel on 16x16 blocks.  In other words,
  3278.    given the 16x16 block in the current frame that you are trying to
  3279.    code, you look for a close match to that block in a previous or
  3280.    future frame (there are backward prediction modes where later
  3281.    frames are sent first to allow interpolating between frames).
  3282.    The DCT coefficients (of either the actual data, or the difference
  3283.    between this block and the close match) are "quantized", which
  3284.    means that you divide them by some value to drop bits off the
  3285.    bottom end.  Hopefully, many of the coefficients will then end up
  3286.    being zero.  The quantization can change for every "macroblock"
  3287.    (a macroblock is 16x16 of Y and the corresponding 8x8's in both
  3288.    U and V).  The results of all of this, which include the DCT
  3289.    coefficients, the motion vectors, and the quantization parameters
  3290.    (and other stuff) is Huffman coded using fixed tables.  The DCT
  3291.    coefficients have a special Huffman table that is "two-dimensional"
  3292.    in that one code specifies a run-length of zeros and the non-zero
  3293.    value that ended the run.  Also, the motion vectors and the DC
  3294.    DCT components are DPCM (subtracted from the last one) coded.
  3295.  
  3296. Q. So is each frame predicted from the last frame?
  3297.  
  3298. A. No.  The scheme is a little more complicated than that.  There are
  3299.    three types of coded frames.  There are "I" or intra frames.  They
  3300.    are simply a frame coded as a still image, not using any past
  3301.    history.  You have to start somewhere.  Then there are "P" or
  3302.    predicted frames.  They are predicted from the most recently
  3303.    reconstructed I or P frame.  (I'm describing this from the point
  3304.    of view of the decompressor.)  Each macroblock in a P frame can
  3305.    either come with a vector and difference DCT coefficients for a
  3306.    close match in the last I or P, or it can just be "intra" coded
  3307.    (like in the I frames) if there was no good match.
  3308.  
  3309.    Lastly, there are "B" or bidirectional frames.  They are predicted
  3310.    from the closest two I or P frames, one in the past and one in the
  3311.    future.  You search for matching blocks in those frames, and try
  3312.    three different things to see which works best.  (Now I have the
  3313.    point of view of the compressor, just to confuse you.)  You try 
  3314.    using the forward vector, the backward vector, and you try 
  3315.    averaging the two blocks from the future and past frames, and 
  3316.    subtracting that from the block being coded.  If none of those work 
  3317.    well, you can intracode the block.
  3318.  
  3319.    The sequence of decoded frames usually goes like:
  3320.  
  3321.    IBBPBBPBBPBBIBBPBBPB...
  3322.  
  3323.    Where there are 12 frames from I to I (for US and Japan anyway.)
  3324.    This is based on a random access requirement that you need a
  3325.    starting point at least once every 0.4 seconds or so.  The ratio
  3326.    of P's to B's is based on experience.
  3327.  
  3328.    Of course, for the decoder to work, you have to send that first
  3329.    P *before* the first two B's, so the compressed data stream ends
  3330.    up looking like:
  3331.  
  3332.    0xx312645...
  3333.  
  3334.    where those are frame numbers.  xx might be nothing (if this is
  3335.    the true starting point), or it might be the B's of frames -2 and
  3336.    -1 if we're in the middle of the stream somewhere.
  3337.  
  3338.    You have to decode the I, then decode the P, keep both of those
  3339.    in memory, and then decode the two B's.  You probably display the
  3340.    I while you're decoding the P, and display the B's as you're
  3341.    decoding them, and then display the P as you're decoding the next
  3342.    P, and so on.
  3343.  
  3344. Q. You've got to be kidding.
  3345.  
  3346. A. No, really!
  3347.  
  3348. Q. Hmm.  Where did they get 352x240?
  3349.  
  3350. A. That derives from the CCIR-601 digital television standard which
  3351.    is used by professional digital video equipment.  It is (in the US)
  3352.    720 by 243 by 60 fields (not frames) per second, where the fields
  3353.    are interlaced when displayed.  (It is important to note though
  3354.    that fields are actually acquired and displayed a 60th of a second
  3355.    apart.)  The chrominance channels are 360 by 243 by 60 fields a
  3356.    second, again interlaced.  This degree of chrominance decimation
  3357.    (2:1 in the horizontal direction) is called 4:2:2.  The source
  3358.    input format for MPEG I, called SIF, is CCIR-601 decimated by 2:1
  3359.    in the horizontal direction, 2:1 in the time direction, and an
  3360.    additional 2:1 in the chrominance vertical direction.  And some
  3361.    lines are cut off to make sure things divide by 8 or 16 where
  3362.    needed.
  3363.  
  3364. Q. What if I'm in Europe?
  3365.  
  3366. A. For 50 Hz display standards (PAL, SECAM) change the number of lines
  3367.    in a field from 243 or 240 to 288, and change the display rate to
  3368.    50 fields/s or 25 frames/s.  Similarly, change the 120 lines in
  3369.    the decimated chrominance channels to 144 lines.  Since 288*50 is
  3370.    exactly equal to 240*60, the two formats have the same source data
  3371.    rate.
  3372.  
  3373. Q. What will MPEG-2 do for video coding?
  3374.  
  3375. A. As I said, there is a considerable loss of quality in going from
  3376.    CCIR-601 to SIF resolution.  For entertainment video, it's simply
  3377.    not acceptable.  You want to use more bits and code all or almost
  3378.    all the CCIR-601 data.  From subjective testing at the Japan
  3379.    meeting in November 1991, it seems that 4 MBits/s can give very
  3380.    good quality compared to the original CCIR-601 material.  The
  3381.    objective of MPEG-2 is to define a bit stream optimized for 
  3382.    these resolutions and bit rates.
  3383.  
  3384. Q. Why not just scale up what you're doing with MPEG-1?
  3385.  
  3386. A. The main difficulty is the interlacing.  The simplest way to extend
  3387.    MPEG-1 to interlaced material is to put the fields together into
  3388.    frames (720x486x30/s).  This results in bad motion artifacts that
  3389.    stem from the fact that moving objects are in different places
  3390.    in the two fields, and so don't line up in the frames.  Compressing
  3391.    and decompressing without taking that into account somehow tends to
  3392.    muddle the objects in the two different fields.
  3393.  
  3394.    The other thing you might try is to code the even and odd field
  3395.    streams separately.  This avoids the motion artifacts, but as you
  3396.    might imagine, doesn't get very good compression since you are not
  3397.    using the redundancy between the even and odd fields where there
  3398.    is not much motion (which is typically most of image).
  3399.  
  3400.    Or you can code it as a single stream of fields.  Or you can
  3401.    interpolate lines.  Or, etc. etc.  There are many things you can
  3402.    try, and the point of MPEG-2 is to figure out what works well.
  3403.    MPEG-2 is not limited to consider only derivations of MPEG-1.
  3404.    There were several non-MPEG-1-like schemes in the competition in
  3405.    November, and some aspects of those algorithms may or may not
  3406.    make it into the final standard for entertainment video 
  3407.    compression.
  3408.  
  3409. Q. So what works?
  3410.  
  3411. A. Basically, derivations of MPEG-1 worked quite well, with one that
  3412.    used wavelet subband coding instead of DCT's that also worked very
  3413.    well.  Also among the worked-very-well's was a scheme that did not
  3414.    use B frames at all, just I and P's.  All of them, except maybe 
  3415.    one, did some sort of adaptive frame/field coding, where a decision 
  3416.    is made on a macroblock basis as to whether to code that one as 
  3417.    one frame macroblock or as two field macroblocks.  Some other 
  3418.    aspects are how to code I-frames--some suggest predicting the even 
  3419.    field from the odd field.  Or you can predict evens from evens and 
  3420.    odds or odds from evens and odds or any field from any other field, 
  3421.    etc.
  3422.  
  3423. Q. So what works?
  3424.  
  3425. A. Ok, we're not really sure what works best yet.  The next step is
  3426.    to define a "test model" to start from, that incorporates most of
  3427.    the salient features of the worked-very-well proposals in a
  3428.    simple way.  Then experiments will be done on that test model,
  3429.    making a mod at a time, and seeing what makes it better and what
  3430.    makes it worse.  Example experiments are, B's or no B's, DCT vs.
  3431.    wavelets, various field prediction modes, etc.  The requirements,
  3432.    such as implementation cost, quality, random access, etc. will all
  3433.    feed into this process as well.
  3434.  
  3435. Q. When will all this be finished?
  3436.  
  3437. A. I don't know.  I'd have to hope in about a year or less.
  3438.  
  3439. Q: Talking about MPEG audio coding, I heard a lot about "Layer 1, 2 
  3440.    and 3". What does it mean, exactly?   
  3441.  
  3442. A: MPEG-1, IS 11172-3, describes the compression of audio signals 
  3443.    using high performance perceptual coding schemes. It specifies a 
  3444.    family of three audio coding schemes, simply called Layer-1,-2,-3, 
  3445.    with increasing encoder complexity and performance (sound quality 
  3446.    per bitrate). The three codecs are compatible in a hierarchical 
  3447.    way, i.e. a Layer-N decoder is able to decode bitstream data 
  3448.    encoded in Layer-N and all Layers below N (e.g., a Layer-3 
  3449.    decoder may accept Layer-1,-2 and -3, whereas a Layer-2 decoder 
  3450.    may accept only Layer-1 and -2.)
  3451.  
  3452. Q: So we have a family of three audio coding schemes. What does the 
  3453.    MPEG standard define, exactly?
  3454.    
  3455. A: For each Layer, the standard specifies the bitstream format and 
  3456.    the decoder. To allow for future improvements, it does *not* 
  3457.    specify the encoder , but an informative chapter gives an example 
  3458.    for an encoder for each Layer.    
  3459.  
  3460. Q: What have the three audio Layers in common?
  3461.  
  3462. A: All Layers use the same basic structure. The coding scheme can be  
  3463.    described as "perceptual noise shaping" or "perceptual subband / 
  3464.    transform coding". 
  3465.  
  3466.    The encoder analyzes the spectral components of the audio signal 
  3467.    by calculating a filterbank or transform and applies a 
  3468.    psychoacoustic model to estimate the just noticeable noise-
  3469.    level. In its quantization and coding stage, the encoder tries 
  3470.    to allocate the available number of data bits in a way to meet 
  3471.    both the bitrate and masking requirements.
  3472.  
  3473.    The decoder is much less complex. Its only task is to synthesize 
  3474.    an audio signal out of the coded spectral components.
  3475.    
  3476.    All Layers use the same analysis filterbank (polyphase with 32 
  3477.    subbands). Layer-3 adds a MDCT transform to increase the frequency 
  3478.    resolution.
  3479.    
  3480.    All Layers use the same "header information" in their bitstream, 
  3481.    to support the hierarchical structure of the standard.
  3482.    
  3483.    All Layers use a bitstream structure that contains parts that are 
  3484.    more sensitive to biterrors ("header", "bit allocation", 
  3485.    "scalefactors", "side information") and parts that are less 
  3486.    sensitive ("data of spectral components").  
  3487.  
  3488.    All Layers may use 32, 44.1 or 48 kHz sampling frequency.
  3489.    
  3490.    All Layers are allowed to work with similar bitrates:
  3491.    Layer-1: from 32 kbps to 448 kbps
  3492.    Layer-2: from 32 kbps to 384 kbps
  3493.    Layer-3: from 32 kbps to 320 kbps
  3494.  
  3495. Q: What are the main differences between the three Layers, from a 
  3496.    global view?
  3497.  
  3498. A: From Layer-1 to Layer-3,
  3499.    complexity increases (mainly true for the encoder),
  3500.    overall codec delay increases, and
  3501.    performance increases (sound quality per bitrate).
  3502.  
  3503. Q: Which Layer should I use for my application?
  3504.  
  3505. A: Good Question. Of course, it depends on all your requirements. But 
  3506.    as a first approach, you should consider the available bitrate of 
  3507.    your application as the Layers have been designed to support 
  3508.    certain areas of bitrates most efficiently, i.e. with a minimum 
  3509.    drop of sound quality.
  3510.  
  3511.    Let us look a little closer at the strong domains of each Layer.
  3512.     
  3513.    Layer-1: Its ISO target bitrate is 192 kbps per audio channel.
  3514.  
  3515.    Layer-1 is a simplified version of Layer-2. It is most useful for 
  3516.    bitrates around the "high" bitrates around or above 192 kbps. A 
  3517.    version of Layer-1 is used as "PASC" with the DCC recorder.
  3518.  
  3519.    Layer-2: Its ISO target bitrate is 128 kbps per audio channel.
  3520.    
  3521.    Layer-2 is identical with MUSICAM. It has been designed as trade-
  3522.    off between sound quality per bitrate and encoder complexity. It 
  3523.    is most useful for bitrates around the "medium" bitrates of 128 or 
  3524.    even 96 kbps per audio channel. The DAB (EU 147) proponents have 
  3525.    decided to use Layer-2 in the future Digital Audio Broadcasting 
  3526.    network.      
  3527.  
  3528.    Layer-3: Its ISO target bitrate is 64 kbps per audio channel.
  3529.    
  3530.    Layer-3 merges the best ideas of MUSICAM and ASPEC. It has been 
  3531.    designed for best performance at "low" bitrates around 64 kbps or 
  3532.    even below. The Layer-3 format specifies a set of advanced 
  3533.    features that all address one goal: to preserve as much sound 
  3534.    quality as possible even at rather low bitrates. Today, Layer-3 is 
  3535.    already in use in various telecommunication networks (ISDN, 
  3536.    satellite links, and so on) and speech announcement systems. 
  3537.  
  3538. Q: Tell me more about sound quality. How do you assess that?
  3539.  
  3540. A: Today, there is no alternative to expensive listening tests. 
  3541.    During the ISO-MPEG-1 process, 3 international listening tests 
  3542.    have been performed, with a lot of trained listeners, supervised 
  3543.    by Swedish Radio. They took place in 7.90, 3.91 and 11.91. Another 
  3544.    international listening test was performed by CCIR, now ITU-R, in 
  3545.    92.      
  3546.    
  3547.    All these tests used the "triple stimulus, hidden reference" 
  3548.    method and the CCIR impairment scale to assess the audio quality.
  3549.    The listening sequence is "ABC", with A = original, BC = pair of 
  3550.    original / coded signal with random sequence, and the listener has 
  3551.    to evaluate both B and C with a number between 1.0 and 5.0. The 
  3552.    meaning of these values is:
  3553.    
  3554.    5.0 = transparent (this should be the original signal)
  3555.    4.0 = perceptible, but not annoying (first differences noticable)  
  3556.    3.0 = slightly annoying   
  3557.    2.0 = annoying
  3558.    1.0 = very annoying
  3559.  
  3560.    With perceptual codecs (like MPEG audio), all traditional 
  3561.    parameters (like SNR, THD+N, bandwidth) are especially useless. 
  3562.    Fraunhofer-IIS works on objective quality assessment tools, like 
  3563.    the NMR meter (Noise-to-Mask-Ratio), too. BTW: If you need more 
  3564.    informations about NMR, please contact nmr@iis.fhg.de.
  3565.  
  3566. Q: Now that I know how to assess quality, come on, tell me the 
  3567.    results of these tests.
  3568.    
  3569. A: Well, for low bitrates, the main result is that at 60 or 64 kbps 
  3570.    per channel), Layer-2 scored always between 2.1 and 2.6, whereas 
  3571.    Layer-3 scored between 3.6 and 3.8. This is a significant increase 
  3572.    in sound quality, indeed! Furthermore, the selection process for 
  3573.    critical sound material showed that it was rather difficult to 
  3574.    find worst-case material for Layer-3 whereas it was not so hard to 
  3575.    find such items for Layer-2.
  3576.   
  3577. Q: OK, a Layer-2 codec at low bitrates may sound poor today, but 
  3578.    couldn't that be improved in the future? I guess you just told me 
  3579.    before that the encoder is not fixed in the standard.
  3580.    
  3581. A: Good thinking! As the sound quality mainly depends on the encoder 
  3582.    implementation, it is true that there is no such thing as a "Layer-
  3583.    N"- quality. So we definitely only know the performance of the 
  3584.    reference codecs during the international tests. Who knows what 
  3585.    will happen in the future? What we do know now, is:
  3586.    
  3587.    Today, Layer-3 already provides a sound quality that comes very 
  3588.    near to CD quality at 64 kbps per channel. Layer-2 is far away 
  3589.    from that.
  3590.    
  3591.    Tomorrow, both Layers may improve. Layer-2 has been designed as a 
  3592.    trade-off between quality and complexity, so the bitstream format 
  3593.    allows only limited innovations. In contrast, even the current
  3594.    reference Layer-3-codec exploits only a small part of the powerful 
  3595.    mechanisms inside the Layer-3 bitstream format.  
  3596.  
  3597. Q: All in all, you sound as if anybody should use Layer-3 for low 
  3598.    bitrates. Why on earth do some vendors still offer only Layer-2 
  3599.    equipment for these applications?
  3600.    
  3601. A: Well, maybe because they started to design and develop their 
  3602.    system rather early, e.g. in 1990. As Layer-2 is identical with 
  3603.    MUSICAM, it has been available since summer of 90, at latest. In 
  3604.    that year, Layer-3 development started and could be successfully 
  3605.    finished in spring 92. So, for a certain time, vendors could only 
  3606.    exploit the existing part of the new MPEG standard.   
  3607.    
  3608.    Now the situation has changed. All Layers are available, the 
  3609.    standard is completed, and new systems need not limit themselves, 
  3610.    but may capitalize on the full features of MPEG audio.
  3611.  
  3612. Q: How do I get the MPEG documents?
  3613.  
  3614. A: You may order it from your national standards body.
  3615.  
  3616.    E.g., in Germany, please contact:
  3617.    DIN-Beuth Verlag, Auslandsnormen
  3618.    Mrs. Niehoff, Burggrafenstr. 6, D-10772 Berlin, Germany
  3619.    Phone: 030-2601-2757, Fax: 030-2601-1231
  3620.  
  3621.    E.g., in USA, you may order it from ANSI or 
  3622.    buy it from companies like OMNICOM phone +44 438 742424
  3623.                                       FAX   +44 438 740154
  3624.  
  3625. Q. How do I join MPEG?
  3626.  
  3627. A. You don't join MPEG.  You have to participate in ISO as part of a
  3628.    national delegation.  How you get to be part of the national
  3629.    delegation is up to each nation.  I only know the U.S., where you
  3630.    have to attend the corresponding ANSI meetings to be able to
  3631.    attend the ISO meetings.  Your company or institution has to be
  3632.    willing to sink some bucks into travel since, naturally, these
  3633.    meetings are held all over the world.  (For example, Paris,
  3634.    Santa Clara, Kurihama Japan, Singapore, Haifa Israel, Rio de
  3635.    Janeiro, London, etc.)
  3636.  
  3637. ------------------------------------------------------------------------------
  3638.  
  3639. Subject: [72] What is wavelet theory?
  3640.  
  3641.  
  3642. Preprints and software are available by anonymous ftp from the
  3643. Yale Mathematics Department computer ceres.math.yale.edu[130.132.23.22],
  3644. in pub/wavelets and pub/software.
  3645.  
  3646. epic and hcompress are wavelet coders. (For source code, see item 15
  3647. in part one).
  3648.  
  3649. Bill Press of Harvard/CfA has made some things available for anonymous
  3650. ftp on cfata4.harvard.edu [128.103.40.79] in directory /pub. There is
  3651. a short TeX article on wavelet theory (wavelet.tex, to be included in
  3652. a future edition of Numerical Recipes), some sample wavelet code
  3653. (wavelet.f, in FORTRAN - sigh), and a beta version of an astronomical
  3654. image compression program which he is currently developing (FITS
  3655. format data files only, in fitspress08.tar.Z).
  3656.  
  3657. The Rice Wavelet Toolbox Release 2.0 is available on cml.rice.edu in
  3658. directories /pub/dsp/software and /pub/dsp/papers.  This is a
  3659. collection of MATLAB of "mfiles" and "mex" files for twoband and
  3660. M-band filter bank/wavelet analysis from the DSP group and
  3661. Computational Mathematics Laboratory (CML) at Rice University,
  3662. Houston, TX.  This release includes application code for Synthetic
  3663. Aperture Radar despeckling and for deblocking of JPEG decompressed
  3664. Images.  Contact: Ramesh Gopinath <ramesh@rice.edu>.
  3665.  
  3666.  
  3667. A mailing list dedicated to research on wavelets has been set up at the
  3668. University of South Carolina. To subscribe to this mailing list, send a
  3669. message with "subscribe" as the subject to wavelet@math.scarolina.edu.
  3670.  
  3671.  
  3672. A 5 minute course in wavelet transforms, by Richard Kirk <rak@crosfield.co.uk>:
  3673.  
  3674. Do you know what a Haar transform is? Its a transform to another orthonormal
  3675. space (like the DFT), but the basis functions are a set of square wave bursts
  3676. like this...
  3677.  
  3678.    +--+                         +------+
  3679.    +  |  +------------------    +      |      +--------------
  3680.       +--+                             +------+
  3681.  
  3682.          +--+                                 +------+
  3683.    ------+  |  +------------    --------------+      |      +
  3684.             +--+                                     +------+
  3685.  
  3686.                +--+             +-------------+
  3687.    ------------+  |  +------    +             |             +
  3688.                   +--+                        +-------------+
  3689.  
  3690.                      +--+       +---------------------------+
  3691.    ------------------+  |  +    +                           +
  3692.                         +--+
  3693.  
  3694. This is the set of functions for an 8-element 1-D Haar transform. You
  3695. can probably see how to extend this to higher orders and higher dimensions
  3696. yourself. This is dead easy to calculate, but it is not what is usually
  3697. understood by a wavelet transform.
  3698.  
  3699. If you look at the eight Haar functions you see we have four functions
  3700. that code the highest resolution detail, two functions that code the
  3701. coarser detail, one function that codes the coarser detail still, and the 
  3702. top function that codes the average value for the whole `image'.
  3703.  
  3704. Haar function can be used to code images instead of the DFT. With bilevel
  3705. images (such as text) the result can look better, and it is quicker to code.
  3706. Flattish regions, textures, and soft edges in scanned images get a nasty
  3707. `blocking' feel to them. This is obvious on hardcopy, but can be disguised on
  3708. color CRTs by the effects of the shadow mask. The DCT gives more consistent
  3709. results.
  3710.  
  3711. This connects up with another bit of maths sometimes called Multispectral
  3712. Image Analysis, sometimes called Image Pyramids.
  3713.  
  3714. Suppose you want to produce a discretely sampled image from a continuous 
  3715. function. You would do this by effectively `scanning' the function using a
  3716. sinc function [ sin(x)/x ] `aperture'. This was proved by Shannon in the 
  3717. `forties. You can do the same thing starting with a high resolution
  3718. discretely sampled image. You can then get a whole set of images showing 
  3719. the edges at different resolutions by differencing the image at one
  3720. resolution with another version at another resolution. If you have made this
  3721. set of images properly they ought to all add together to give the original 
  3722. image.
  3723.  
  3724. This is an expansion of data. Suppose you started off with a 1K*1K image.
  3725. You now may have a 64*64 low resolution image plus difference images at 128*128
  3726. 256*256, 512*512 and 1K*1K. 
  3727.  
  3728. Where has this extra data come from? If you look at the difference images you 
  3729. will see there is obviously some redundancy as most of the values are near 
  3730. zero. From the way we constructed the levels we know that locally the average
  3731. must approach zero in all levels but the top. We could then construct a set of
  3732. functions out of the sync functions at any level so that their total value 
  3733. at all higher levels is zero. This gives us an orthonormal set of basis 
  3734. functions for a transform. The transform resembles the Haar transform a bit,
  3735. but has symmetric wave pulses that decay away continuously in either direction
  3736. rather than square waves that cut off sharply. This transform is the
  3737. wavelet transform ( got to the point at last!! ).
  3738.  
  3739. These wavelet functions have been likened to the edge detecting functions
  3740. believed to be present in the human retina.
  3741.  
  3742.  
  3743. Loren I. Petrich <lip@s1.gov> adds that order 2 or 3 Daubechies
  3744. discrete wavelet transforms have a speed comparable to DCT's, and
  3745. usually achieve compression a factor of 2 better for the same image
  3746. quality than the JPEG 8*8 DCT. (See item 25 in part 1 of this FAQ for
  3747. references on fast DCT algorithms.)
  3748.  
  3749. ------------------------------------------------------------------------------
  3750.  
  3751. Subject: [73] What is the theoretical compression limit?
  3752.  
  3753.  
  3754. There is no compressor that is guaranteed to compress all possible input
  3755. files. If it compresses some files, then it must enlarge some others.
  3756. This can be proven by a simple counting argument (see question 9).
  3757.  
  3758. As an extreme example, the following algorithm achieves optimal
  3759. compression for one special input file and enlarges all other files by
  3760. only one bit:
  3761.  
  3762. - if the input data is <insert your favorite one here>, output a single 0 bit
  3763. - otherwise output the bit 1 followed by the input data.
  3764.  
  3765. (You can even output an empty file in the first case if the decompressor
  3766. can detect by other means that the input is empty.)
  3767.  
  3768. The concept of theoretical compression limit is meaningful only
  3769. if you have a model for your input data. See question 70 above
  3770. for some examples of data models.
  3771.  
  3772. ------------------------------------------------------------------------------
  3773.  
  3774. Subject: [74] Introduction to JBIG
  3775.  
  3776.  
  3777. JBIG software and the JBIG specification are available on nic.funet.fi
  3778. in /pub/graphics/misc/test-images/jbig.tar.gz.
  3779.  
  3780.  
  3781. A short introduction to JBIG, written by Mark Adler <madler@cco.caltech.edu>:
  3782.  
  3783.   JBIG losslessly compresses binary (one-bit/pixel) images.  (The B stands
  3784.   for bi-level.)  Basically it models the redundancy in the image as the
  3785.   correlations of the pixel currently being coded with a set of nearby
  3786.   pixels called the template.  An example template might be the two
  3787.   pixels preceding this one on the same line, and the five pixels centered
  3788.   above this pixel on the previous line.  Note that this choice only
  3789.   involves pixels that have already been seen from a scanner.
  3790.  
  3791.   The current pixel is then arithmetically coded based on the eight-bit
  3792.   (including the pixel being coded) state so formed.  So there are (in this
  3793.   case) 256 contexts to be coded.  The arithmetic coder and probability
  3794.   estimator for the contexts are actually IBM's (patented) Q-coder.  The
  3795.   Q-coder uses low precision, rapidly adaptable (those two are related)
  3796.   probability estimation combined with a multiply-less arithmetic coder.
  3797.   The probability estimation is intimately tied to the interval calculations
  3798.   necessary for the arithmetic coding.
  3799.  
  3800.   JBIG actually goes beyond this and has adaptive templates, and probably
  3801.   some other bells and whistles I don't know about.  You can find a
  3802.   description of the Q-coder as well as the ancestor of JBIG in the Nov 88
  3803.   issue of the IBM Journal of Research and Development.  This is a very
  3804.   complete and well written set of five articles that describe the Q-coder
  3805.   and a bi-level image coder that uses the Q-coder.
  3806.  
  3807.   You can use JBIG on grey-scale or even color images by simply applying
  3808.   the algorithm one bit-plane at a time.  You would want to recode the
  3809.   grey or color levels first though, so that adjacent levels differ in
  3810.   only one bit (called Gray-coding).  I hear that this works well up to
  3811.   about six bits per pixel, beyond which JPEG's lossless mode works better.
  3812.   You need to use the Q-coder with JPEG also to get this performance.
  3813.  
  3814.   Actually no lossless mode works well beyond six bits per pixel, since
  3815.   those low bits tend to be noise, which doesn't compress at all.
  3816.  
  3817.   Anyway, the intent of JBIG is to replace the current, less effective
  3818.   group 3 and 4 fax algorithms.
  3819.  
  3820.  
  3821. Another introduction to JBIG, written by Hank van Bekkem <jbek@oce.nl>:
  3822.  
  3823.   The following description of the JBIG algorithm is derived from
  3824.   experiences with a software implementation I wrote following the
  3825.   specifications in the revision 4.1 draft of September 16, 1991. The
  3826.   source will not be made available in the public domain, as parts of
  3827.   JBIG are patented.
  3828.  
  3829.   JBIG (Joint Bi-level Image Experts Group) is an experts group of ISO,
  3830.   IEC and CCITT (JTC1/SC2/WG9 and SGVIII). Its job is to define a
  3831.   compression standard for lossless image coding ([1]). The main
  3832.   characteristics of the proposed algorithm are:
  3833.   - Compatible progressive/sequential coding. This means that a
  3834.     progressively coded image can be decoded sequentially, and the
  3835.     other way around.
  3836.   - JBIG will be a lossless image compression standard: all bits in
  3837.     your images before and after compression and decompression will be
  3838.     exactly the same.
  3839.  
  3840.   In the rest of this text I will first describe the JBIG algorithm in
  3841.   a short abstract of the draft. I will conclude by saying something
  3842.   about the value of JBIG.
  3843.  
  3844.  
  3845.   JBIG algorithm.
  3846.   --------------
  3847.  
  3848.   JBIG parameter P specifies the number of bits per pixel in the image.
  3849.   Its allowable range is 1 through 255, but starting at P=8 or so,
  3850.   compression will be more efficient using other algorithms. On the
  3851.   other hand, medical images such as chest X-rays are often stored with
  3852.   12 bits per pixel, while no distorsion is allowed, so JBIG can
  3853.   certainly be of use in this area. To limit the number of bit changes
  3854.   between adjacent decimal values (e.g. 127 and 128), it is wise to use
  3855.   Gray coding before compressing multi-level images with JBIG. JBIG
  3856.   then compresses the image on a bitplane basis, so the rest of this
  3857.   text assumes bi-level pixels.
  3858.  
  3859.   Progressive coding is a way to send an image gradually to a receiver
  3860.   instead of all at once. During sending, more detail is sent, and the
  3861.   receiver can build the image from low to high detail. JBIG uses
  3862.   discrete steps of detail by successively doubling the resolution. The
  3863.   sender computes a number of resolution layers D, and transmits these
  3864.   starting at the lowest resolution Dl. Resolution reduction uses
  3865.   pixels in the high resolution layer and some already computed low
  3866.   resolution pixels as an index into a lookup table. The contents of
  3867.   this table can be specified by the user.
  3868.  
  3869.   Compatibility between progressive and sequential coding is achieved
  3870.   by dividing an image into stripes. Each stripe is a horizontal bar
  3871.   with a user definable height. Each stripe is separately coded and
  3872.   transmitted, and the user can define in which order stripes,
  3873.   resolutions and bitplanes (if P>1) are intermixed in the coded data.
  3874.   A progressive coded image can be decoded sequentially by decoding
  3875.   each stripe, beginning by the one at the top of the image, to its
  3876.   full resolution, and then proceeding to the next stripe. Progressive
  3877.   decoding can be done by decoding only a specific resolution layer
  3878.   from all stripes.
  3879.  
  3880.   After dividing an image into bitplanes, resolution layers and
  3881.   stripes, eventually a number of small bi-level bitmaps are left to
  3882.   compress. Compression is done using a Q-coder. Reference [2]
  3883.   contains a full description, I will only outline the basic principles
  3884.   here.
  3885.  
  3886.   The Q-coder codes bi-level pixels as symbols using the probability of
  3887.   occurrence of these symbols in a certain context. JBIG defines two
  3888.   kinds of context, one for the lowest resolution layer (the base
  3889.   layer), and one for all other layers (differential layers).
  3890.   Differential layer contexts contain pixels in the layer to be coded,
  3891.   and in the corresponding lower resolution layer.
  3892.  
  3893.   For each combination of pixel values in a context, the probability
  3894.   distribution of black and white pixels can be different. In an all
  3895.   white context, the probability of coding a white pixel will be much
  3896.   greater than that of coding a black pixel. The Q-coder assigns, just
  3897.   like a Huffman coder, more bits to less probable symbols, and so
  3898.   achieves compression. The Q-coder can, unlike a Huffmann coder,
  3899.   assign one output codebit to more than one input symbol, and thus is
  3900.   able to compress bi-level pixels without explicit clustering, as
  3901.   would be necessary using a Huffman coder.
  3902.  
  3903.   Maximum compression will be achieved when all probabilities (one set
  3904.   for each combination of pixel values in the context) follow the
  3905.   probabilities of the pixels. The Q-coder therefore continuously
  3906.   adapts these probabilities to the symbols it sees.
  3907.  
  3908.  
  3909.   JBIG value.
  3910.   ----------
  3911.  
  3912.   In my opinion, JBIG can be regarded as two combined devices:
  3913.   - Providing the user the service of sending or storing multiple
  3914.     representations of images at different resolutions without any
  3915.     extra cost in storage. Differential layer contexts contain pixels
  3916.     in two resolution layers, and so enable the Q-coder to effectively
  3917.     code the difference in information between the two layers, instead
  3918.     of the information contained in every layer. This means that,
  3919.     within a margin of approximately 5%, the number of resolution
  3920.     layers doesn't effect the compression ratio.
  3921.   - Providing the user a very efficient compression algorithm, mainly
  3922.     for use with bi-level images. Compared to CCITT Group 4, JBIG is
  3923.     approximately 10% to 50% better on text and line art, and even
  3924.     better on halftones. JBIG is however, just like Group 4, somewhat
  3925.     sensitive to noise in images. This means that the compression ratio
  3926.     decreases when the amount of noise in your images increases.
  3927.  
  3928.   An example of an application would be browsing through an image
  3929.   database, e.g. an EDMS (engineering document management system).
  3930.   Large A0 size drawings at 300 dpi or so would be stored using five
  3931.   resolution layers. The lowest resolution layer would fit on a
  3932.   computer screen. Base layer compressed data would be stored at the
  3933.   beginning of the compressed file, thus making browsing through large
  3934.   numbers of compressed drawings possible by reading and decompressing
  3935.   just the first small part of all files. When the user stops browsing,
  3936.   the system could automatically start decompressing all remaining
  3937.   detail for printing at high resolution.
  3938.  
  3939.   [1] "Progressive Bi-level Image Compression, Revision 4.1", ISO/IEC
  3940.       JTC1/SC2/WG9, CD 11544, September 16, 1991
  3941.   [2] "An overview of the basic principles of the Q-coder adaptive
  3942.       binary arithmetic coder", W.B. Pennebaker, J.L. Mitchell, G.G.
  3943.       Langdon, R.B. Arps, IBM Journal of research and development,
  3944.       Vol.32, No.6, November 1988, pp. 771-726 (See also the other
  3945.       articles about the Q-coder in this issue)
  3946.  
  3947. ------------------------------------------------------------------------------
  3948.  
  3949. Subject: [75] Introduction to JPEG
  3950.  
  3951. Here is a brief overview of the inner workings of JPEG, plus some
  3952. references for more detailed information, written by Tom Lane
  3953. <tgl+@cs.cmu.edu>.  Please read item 19 in part 1 first.
  3954.  
  3955. JPEG works on either full-color or gray-scale images; it does not handle
  3956. bilevel (black and white) images, at least not efficiently.  It doesn't
  3957. handle colormapped images either; you have to pre-expand those into an
  3958. unmapped full-color representation.  JPEG works best on "continuous tone"
  3959. images; images with many sudden jumps in color values will not compress well.
  3960.  
  3961. There are a lot of parameters to the JPEG compression process.  By adjusting
  3962. the parameters, you can trade off compressed image size against reconstructed
  3963. image quality over a *very* wide range.  You can get image quality ranging
  3964. from op-art (at 100x smaller than the original 24-bit image) to quite
  3965. indistinguishable from the source (at about 3x smaller).  Usually the
  3966. threshold of visible difference from the source image is somewhere around 10x
  3967. to 20x smaller than the original, ie, 1 to 2 bits per pixel for color images.
  3968. Grayscale requires a little bit less space.
  3969.  
  3970. JPEG defines a "baseline" lossy algorithm, plus optional extensions for
  3971. progressive and hierarchical coding.  There is also a separate lossless
  3972. compression mode; this typically gives about 2:1 compression, ie about 12
  3973. bits per color pixel.  Most currently available JPEG hardware and software
  3974. handles only the baseline mode.
  3975.  
  3976.  
  3977. Here's the outline of the baseline compression algorithm:
  3978.  
  3979. 1. Transform the image into a suitable color space.  This is a no-op for
  3980. grayscale, but for color images you generally want to transform RGB into a
  3981. luminance/chrominance color space (YCbCr, YUV, etc).  The luminance component
  3982. is grayscale and the other two axes are color information.  The reason for
  3983. doing this is that you can afford to lose a lot more information in the
  3984. chrominance components than you can in the luminance component; the human eye
  3985. is not as sensitive to high-frequency color info as it is to high-frequency
  3986. luminance.  (See any TV system for precedents.)  You don't have to change the
  3987. color space if you don't want to, as the remainder of the algorithm works on
  3988. each color component independently, and doesn't care just what the data is.
  3989. However, compression will be less since you will have to code all the
  3990. components at luminance quality.
  3991.  
  3992. 2. (Optional) Downsample each component by averaging together groups of
  3993. pixels.  The luminance component is left at full resolution, while the color
  3994. components are usually reduced 2:1 horizontally and either 2:1 or 1:1 (no
  3995. change) vertically.  In JPEG-speak these alternatives are usually called
  3996. 2h2v and 2h1v sampling, but you may also see the terms "411" and "422"
  3997. sampling.  This step immediately reduces the data volume by one-half or
  3998. one-third, while having almost no impact on perceived quality.  (Obviously
  3999. this would not be true if you tried it in RGB color space...)  Note that
  4000. downsampling is not applicable to gray-scale data.
  4001.  
  4002. 3. Group the pixel values for each component into 8x8 blocks.  Transform each
  4003. 8x8 block through a discrete cosine transform (DCT); this is a relative of the
  4004. Fourier transform and likewise gives a frequency map, with 8x8 components.
  4005. Thus you now have numbers representing the average value in each block and
  4006. successively higher-frequency changes within the block.  The motivation for
  4007. doing this is that you can now throw away high-frequency information without
  4008. affecting low-frequency information.  (The DCT transform itself is reversible
  4009. except for roundoff error.)  See question 25 for fast DCT algorithms.
  4010.  
  4011. 4. In each block, divide each of the 64 frequency components by a separate
  4012. "quantization coefficient", and round the results to integers.  This is the
  4013. fundamental information-losing step.  A Q.C. of 1 loses no information;
  4014. larger Q.C.s lose successively more info.  The higher frequencies are normally
  4015. reduced much more than the lower.  (All 64 Q.C.s are parameters to the
  4016. compression process; tuning them for best results is a black art.  It seems
  4017. likely that the best values are yet to be discovered.  Most existing coders
  4018. use simple multiples of the example tables given in the JPEG standard.)
  4019.  
  4020. 5. Encode the reduced coefficients using either Huffman or arithmetic coding.
  4021. (Strictly speaking, baseline JPEG only allows Huffman coding; arithmetic
  4022. coding is an optional extension.)   Notice that this step is lossless, so it
  4023. doesn't affect image quality.  The arithmetic coding option uses Q-coding;
  4024. it is identical to the coder used in JBIG (see question 74).  Be aware that
  4025. Q-coding is patented.  Most existing implementations support only the Huffman
  4026. mode, so as to avoid license fees.  The arithmetic mode offers maybe 5 or 10%
  4027. better compression, which isn't enough to justify paying fees.
  4028.  
  4029. 6. Tack on appropriate headers, etc, and output the result.  In an
  4030. "interchange" JPEG file, all of the compression parameters are included
  4031. in the headers so that the decompressor can reverse the process.  For
  4032. specialized applications, the spec permits the parameters to be omitted
  4033. from the file; this saves several hundred bytes of overhead, but it means
  4034. that the decompressor must know what parameters the compressor used.
  4035.  
  4036.  
  4037. The decompression algorithm reverses this process, and typically adds some
  4038. smoothing steps to reduce pixel-to-pixel discontinuities.
  4039.  
  4040.  
  4041. Extensions:
  4042.  
  4043. The progressive mode is intended to support real-time transmission of images.
  4044. It allows the DCT coefficients to be sent incrementally in multiple "scans"
  4045. of the image.  With each scan, the decoder can produce a higher-quality
  4046. rendition of the image.  Thus a low-quality preview can be sent very quickly,
  4047. then refined as time allows.  Notice that the decoder must do essentially a
  4048. full JPEG decode cycle for each scan, so this scheme is useful only with fast
  4049. decoders (meaning dedicated hardware, at least at present).  However, the
  4050. total number of bits sent can actually be somewhat less than is necessary in
  4051. the baseline mode, especially if arithmetic coding is used.  So progressive
  4052. coding might be useful even if the decoder will simply save up the bits and
  4053. make only one output pass.
  4054.  
  4055. The hierarchical mode represents an image at multiple resolutions.  For
  4056. example, one could provide 512x512, 1024x1024, and 2048x2048 versions of the
  4057. image.  The higher-resolution images are coded as differences from the next
  4058. smaller image, and thus require many fewer bits than they would if stored
  4059. independently.  (However, the total number of bits will be greater than that
  4060. needed to store just the highest-resolution frame.)  Note that the individual
  4061. frames in a hierarchical sequence may be coded progressively if desired.
  4062.  
  4063.  
  4064. Lossless JPEG:
  4065.  
  4066. The separate lossless mode does not use DCT, since roundoff errors prevent a
  4067. DCT calculation from being lossless.  For the same reason, one would not
  4068. normally use colorspace conversion or downsampling, although these are
  4069. permitted by the standard.  The lossless mode simply codes the difference
  4070. between each pixel and the "predicted" value for the pixel.  The predicted
  4071. value is a simple function of the already-transmitted pixels just above and
  4072. to the left of the current one (eg, their average; 8 different predictor
  4073. functions are permitted).  The sequence of differences is encoded using the
  4074. same back end (Huffman or arithmetic) used in the lossy mode.
  4075.  
  4076. The main reason for providing a lossless option is that it makes a good
  4077. adjunct to the hierarchical mode: the final scan in a hierarchical sequence
  4078. can be a lossless coding of the remaining differences, to achieve overall
  4079. losslessness.  This isn't quite as useful as it may at first appear, because
  4080. exact losslessness is not guaranteed unless the encoder and decoder have
  4081. identical IDCT implementations (ie identical roundoff errors).
  4082.  
  4083.  
  4084. References:
  4085.  
  4086. For a good technical introduction to JPEG, see:
  4087.     Wallace, Gregory K.  "The JPEG Still Picture Compression Standard",
  4088.     Communications of the ACM, April 1991 (vol. 34 no. 4), pp. 30-44.
  4089. (Adjacent articles in that issue discuss MPEG motion picture compression,
  4090. applications of JPEG, and related topics.)  If you don't have the CACM issue
  4091. handy, a PostScript file containing a revised version of this article is
  4092. available at ftp.uu.net, graphics/jpeg/wallace.ps.Z.  The file (actually a
  4093. preprint for an article to appear in IEEE Trans. Consum. Elect.) omits the
  4094. sample images that appeared in CACM, but it includes corrections and some
  4095. added material.  Note: the Wallace article is copyright ACM and IEEE, and
  4096. it may not be used for commercial purposes.
  4097.  
  4098. An alternative, more leisurely explanation of JPEG can be found in "The Data
  4099. Compression Book" by Mark Nelson ([Nel 1991], see question 7).  This book
  4100. provides excellent introductions to many data compression methods including
  4101. JPEG, plus sample source code in C.  The JPEG-related source code is far from
  4102. industrial-strength, but it's a pretty good learning tool.
  4103.  
  4104. An excellent textbook about JPEG is "JPEG Still Image Data Compression
  4105. Standard" by William B. Pennebaker and Joan L. Mitchell.  Published by Van
  4106. Nostrand Reinhold, 1993, ISBN 0-442-01272-1.  650 pages, price US$59.95.
  4107. (VNR will accept credit card orders at 800/842-3636, or get your local
  4108. bookstore to order it.)  This book includes the complete text of the ISO
  4109. JPEG standards, DIS 10918-1 and draft DIS 10918-2.  Review by Tom Lane:
  4110. "This is by far the most complete exposition of JPEG in existence.  It's
  4111. written by two people who know what they are talking about: both serve on the
  4112. ISO JPEG standards committee.  If you want to know how JPEG works or why it
  4113. works that way, this is the book to have."
  4114.  
  4115. There are a number of errors in the first printing of the Pennebaker
  4116. & Mitchell book.  An errata list is available at ftp.uu.net:
  4117. graphics/jpeg/pm.errata.  At last report, all were fixed in the
  4118. second printing.
  4119.  
  4120. The official specification of JPEG is not currently available on-line.
  4121. I hear that CCITT specs may be on-line sometime soon, which would change this.
  4122. At the moment, your best bet is to buy the Pennebaker and Mitchell textbook.
  4123.  
  4124.  
  4125. ------------------------------------------------------------------------------
  4126.  
  4127. Subject: [76] What is Vector Quantization?
  4128.  
  4129. Some vector quantization software for data analysis that is available
  4130. from cochlea.hut.fi (130.233.168.48) in the /pub directory.  One
  4131. package is lvq_pak and one is som_pak (som_pak generates Kohonen maps
  4132. of data using lvq to cluster it).
  4133.  
  4134. For a book on Vector Quantization, see the reference (Gersho and Gray)
  4135. given in item 7 of this FAQ.
  4136.  
  4137. A short introduction to Vector Quantization, written by Alex Zatsman
  4138. <alex.zatsman@analog.com>:
  4139.  
  4140. In Scalar  Quantization one represents  the values by  fixed subset of
  4141. representative values. For  examples, if you  have  16 bit  values and
  4142. send  only 8 most  signifcant bits, you  get an  approximation  of the
  4143. original data  at  the expense of  precision.  In this case  the fixed
  4144. subset is all the 16-bit numbers divisable by 256, i.e 0, 256, 512,...
  4145.  
  4146. In  Vector Quantization  you   represent   not individual values   but
  4147. (usually small) arrays of them. A typical  example  is a color  map: a
  4148. color picture can  be  represented by  a  2D array  of  triplets  (RGB
  4149. values). In most pictures  those triplets do  not cover the  whole RGB
  4150. space but  tend to   concetrate  in certain   areas. For  example, the
  4151. picture of a forest will typically have a lot of green. One can select
  4152. a relatively  small  subset (typically 256 elements) of representative
  4153. colors, i.e RGB  triplets,  and then approximate  each  triplet by the
  4154. representative of  that small set. In case  of 256 one  can use 1 byte
  4155. instead of 3 for each pixel.
  4156.  
  4157. One  can do   the  same   for  any large  data  sets,  especialy  when
  4158. consecutive points are correlated in some way. CELP speech compression
  4159. algorithms  use  those subsets  "codebooks" and   use them to quantize
  4160. exciation vectors  for linear prediction  -- hence the name CELP which
  4161. stands for Codebook Excited Linear Prediction.  (See item 26 in part 1
  4162. of this FAQ for more information about CELP.)
  4163.  
  4164. Note that Vector Quantization, just like Scalar Quantization, is a lossy
  4165. compression.
  4166.  
  4167. ------------------------------------------------------------------------------
  4168.  
  4169. Subject: [77] Introduction to Fractal compression (long)
  4170.  
  4171.  
  4172. Written by John Kominek <jmkomine@jeeves.uwaterloo.ca>.
  4173.  
  4174. Seven things you should know about Fractal Image Compression (assuming that 
  4175. you want to know about it).
  4176.  
  4177.    1. It is a promising new technology, arguably superior to JPEG -- 
  4178.       but only with an argument.
  4179.    2. It is a lossy compression method.
  4180.    3. The fractals in Fractal Image Compression are Iterated Function
  4181.       Systems.
  4182.    4. It is a form of Vector Quantization, one that employs a virtual
  4183.       codebook.
  4184.    5. Resolution enhancement is a powerful feature but is not some
  4185.       magical way of achieving 1000:1 compression.
  4186.    6. Compression is slow, decompression is fast.
  4187.    7. The technology is patented.
  4188.  
  4189. That's the scoop in condensed form. Now to elaborate, beginning with a little 
  4190. background.
  4191.  
  4192.  
  4193.  A Brief History of Fractal Image Compression
  4194.  --------------------------------------------
  4195.  
  4196. The birth of fractal geometry (or rebirth, rather) is usually traced to IBM 
  4197. mathematician Benoit B. Mandelbrot and the 1977 publication of his seminal 
  4198. book The Fractal Geometry of Nature. The book put forth a powerful thesis: 
  4199. traditional geometry with its straight lines and smooth surfaces does not 
  4200. resemble the geometry of trees and clouds and mountains. Fractal geometry, 
  4201. with its convoluted coastlines and detail ad infinitum, does.
  4202.  
  4203. This insight opened vast possibilities. Computer scientists, for one, found a 
  4204. mathematics capable of generating artificial and yet realistic looking land-
  4205. scapes, and the trees that sprout from the soil. And mathematicians had at 
  4206. their disposal a new world of geometric entities.
  4207.  
  4208. It was not long before mathematicians asked if there was a unity among this 
  4209. diversity. There is, as John Hutchinson demonstrated in 1981, it is the branch 
  4210. of mathematics now known as Iterated Function Theory. Later in the decade 
  4211. Michael Barnsley, a leading researcher from Georgia Tech, wrote the popular 
  4212. book Fractals Everywhere. The book presents the mathematics of Iterated Func-
  4213. tions Systems (IFS), and proves a result known as the Collage Theorem. The 
  4214. Collage Theorem states what an Iterated Function System must be like in order 
  4215. to represent an image.
  4216.  
  4217. This presented an intriguing possibility. If, in the forward direction, frac-
  4218. tal mathematics is good for generating natural looking images, then, in the 
  4219. reverse direction, could it not serve to compress images? Going from a given 
  4220. image to an Iterated Function System that can generate the original (or at 
  4221. least closely resemble it), is known as the inverse problem. This problem 
  4222. remains unsolved.
  4223.  
  4224. Barnsley, however, armed with his Collage Theorem, thought he had it solved. 
  4225. He applied for and was granted a software patent and left academia to found 
  4226. Iterated Systems Incorporated (US patent 4,941,193. Alan Sloan is the co-
  4227. grantee of the patent and co-founder of Iterated Systems.)  Barnsley announced 
  4228. his success to the world in the January 1988 issue of BYTE magazine. This 
  4229. article did not address the inverse problem but it did exhibit several images 
  4230. purportedly compressed in excess of 10,000:1. Alas, it was not a breakthrough. 
  4231. The images were given suggestive names such as "Black Forest" and "Monterey 
  4232. Coast" and "Bolivian Girl" but they were all manually constructed. Barnsley's 
  4233. patent has come to be derisively referred to as the "graduate student algo-
  4234. rithm."
  4235.  
  4236. Graduate Student Algorithm
  4237.    o Acquire a graduate student.
  4238.    o Give the student a picture.
  4239.    o And a room with a graphics workstation.
  4240.    o Lock the door.
  4241.    o Wait until the student has reverse engineered the picture.
  4242.    o Open the door.
  4243.  
  4244. Attempts to automate this process have met little success. As Barnsley admit-
  4245. ted in 1988: "Complex color images require about 100 hours each to encode and 
  4246. 30 minutes to decode on the Masscomp [dual processor workstation]." That's 100 
  4247. hours with a _person_ guiding the process.
  4248.  
  4249. Ironically, it was one of Barnsley's PhD students that made the graduate 
  4250. student algorithm obsolete. In March 1988, according to Barnsley, he arrived 
  4251. at a modified scheme for representing images called Partitioned Iterated 
  4252. Function Systems (PIFS). Barnsley applied for and was granted a second patent 
  4253. on an algorithm that can automatically convert an image into a Partitioned 
  4254. Iterated Function System, compressing the image in the process. (US patent 
  4255. 5,065,447. Granted on Nov. 12 1991.) For his PhD thesis, Arnaud Jacquin imple-
  4256. mented the algorithm in software, a description of which appears in his land-
  4257. mark paper "Image Coding Based on a Fractal Theory of Iterated Contractive 
  4258. Image Transformations." The algorithm was not sophisticated, and not speedy, 
  4259. but it was fully automatic. This came at price: gone was the promise of 
  4260. 10,000:1 compression. A 24-bit color image could typically be compressed from 
  4261. 8:1 to 50:1 while still looking "pretty good." Nonetheless, all contemporary 
  4262. fractal image compression programs are based upon Jacquin's paper.
  4263.  
  4264. That is not to say there are many fractal compression programs available. 
  4265. There are not. Iterated Systems sell the only commercial compressor/decompres-
  4266. sor, an MS-Windows program called "Images Incorporated." There are also an 
  4267. increasing number of academic programs being made freely available. Unfor-
  4268. tunately, these programs are -- how should I put it? -- of merely academic 
  4269. quality. 
  4270.  
  4271. This scarcity has much to do with Iterated Systems' tight lipped policy about 
  4272. their compression technology. They do, however, sell a Windows DLL for pro-
  4273. grammers. In conjunction with independent development by researchers else-
  4274. where, therefore, fractal compression will gradually become more pervasive. 
  4275. Whether it becomes all-pervasive remains to be seen.
  4276.  
  4277. Historical Highlights:
  4278.    1977 -- Benoit Mandelbrot finishes the first edition of The Fractal 
  4279.            Geometry of Nature.
  4280.    1981 -- John Hutchinson publishes "Fractals and Self-Similarity."
  4281.    1983 -- Revised edition of The Fractal Geometry of Nature is 
  4282.            published.
  4283.    1985 -- Michael Barnsley and Stephen Demko introduce Iterated
  4284.            Function Theory in "Iterated Function Systems and the Global
  4285.            Construction of Fractals."
  4286.    1987 -- Iterated Systems Incorporated is founded.
  4287.    1988 -- Barnsley publishes the book Fractals Everywhere.
  4288.    1990 -- Barnsley's first patent is granted.
  4289.    1991 -- Barnsley's second patent is granted.
  4290.    1992 -- Arnaud Jacquin publishes an article that describes the first
  4291.            practical fractal image compression method.
  4292.    1993 -- The book Fractal Image Compression by Michael Barnsley and Lyman 
  4293.            Hurd is published.
  4294.         -- The Iterated Systems' product line matures. 
  4295.    1994 -- Put your name here.
  4296.  
  4297.  
  4298.  On the Inside
  4299.  -------------
  4300.  
  4301. The fractals that lurk within fractal image compression are not those of the 
  4302. complex plane (Mandelbrot Set, Julia sets), but of Iterated Function Theory. 
  4303. When lecturing to lay audiences, the mathematician Heinz-Otto Peitgen intro-
  4304. duces the notion of Iterated Function Systems with the alluring metaphor of a 
  4305. Multiple Reduction Copying Machine. A MRCM is imagined to be a regular copying 
  4306. machine except that:
  4307.  
  4308.   1. There are multiple lens arrangements to create multiple overlapping
  4309.      copies of the original.
  4310.   2. Each lens arrangement reduces the size of the original.
  4311.   3. The copier operates in a feedback loop, with the output of one
  4312.      stage the input to the next. The initial input may be anything.
  4313.  
  4314. The first point is what makes an IFS a system. The third is what makes it 
  4315. iterative. As for the second, it is implicitly understood that the functions 
  4316. of an Iterated Function Systems are contractive. 
  4317.  
  4318. An IFS, then, is a set of contractive transformations that map from a defined 
  4319. rectangle of the real plane to smaller portions of that rectangle. Almost 
  4320. invariably, affine transformations are used. Affine transformations act to 
  4321. translate, scale, shear, and rotate points in the plane. Here is a simple 
  4322. example:
  4323.  
  4324.  
  4325.      |---------------|              |-----|
  4326.      |x              |              |1    |
  4327.      |               |              |     |
  4328.      |               |         |---------------|
  4329.      |               |         |2      |3      |
  4330.      |               |         |       |       |
  4331.      |---------------|         |---------------|  
  4332.  
  4333.          Before                      After
  4334.  
  4335.      Figure 1. IFS for generating Sierpinski's Triangle.
  4336.  
  4337. This IFS contains three component transformations (three separate lens ar-
  4338. rangements in the MRCM metaphor). Each one shrinks the original by a factor of 
  4339. 2, and then translates the result to a new location. It may optionally scale 
  4340. and shift the luminance values of the rectangle, in a manner similar to the 
  4341. contrast and brightness knobs on a TV.
  4342.  
  4343. The amazing property of an IFS is that when the set is evaluated by iteration, 
  4344. (i.e. when the copy machine is run), a unique image emerges. This latent image 
  4345. is called the fixed point or attractor of the IFS. As guaranteed by a result 
  4346. known as the Contraction Theorem, it is completely independent of the initial 
  4347. image. Two famous examples are Sierpinski's Triangle and Barnsley's Fern. 
  4348. Because these IFSs are contractive, self-similar detail is created at every 
  4349. resolution down to the infinitesimal. That is why the images are fractal.
  4350.  
  4351. The promise of using fractals for image encoding rests on two suppositions: 1. 
  4352. many natural scenes possess this detail within detail structure (e.g. clouds), 
  4353. and 2. an IFS can be found that generates a close approximation of a scene 
  4354. using only a few transformations. Barnsley's fern, for example, needs but 
  4355. four. Because only a few numbers are required to describe each transformation, 
  4356. an image can be represented very compactly. Given an image to encode, finding 
  4357. the optimal IFS from all those possible is known as the inverse problem.
  4358.  
  4359. The inverse problem -- as mentioned above -- remains unsolved. Even if it 
  4360. were, it may be to no avail. Everyday scenes are very diverse in subject 
  4361. matter; on whole, they do not obey fractal geometry. Real ferns do not branch 
  4362. down to infinity. They are distorted, discolored, perforated and torn. And the 
  4363. ground on which they grow looks very much different.
  4364.  
  4365. To capture the diversity of real images, then, Partitioned IFSs are employed. 
  4366. In a PIFS, the transformations do not map from the whole image to the parts, 
  4367. but from larger parts to smaller parts. An image may vary qualitatively from 
  4368. one area to the next (e.g. clouds then sky then clouds again). A PIFS relates 
  4369. those areas of the original image that are similar in appearance. Using Jac-
  4370. quin's notation, the big areas are called domain blocks and the small areas 
  4371. are called range blocks. It is necessary that every pixel of the original 
  4372. image belong to (at least) one range block. The pattern of range blocks is 
  4373. called the partitioning of an image.
  4374.  
  4375. Because this system of mappings is still contractive, when iterated it will 
  4376. quickly converge to its latent fixed point image. Constructing a PIFS amounts 
  4377. to pairing each range block to the domain block that it most closely resembles 
  4378. under some to-be-determined affine transformation. Done properly, the PIFS 
  4379. encoding of an image will be much smaller than the original, while still 
  4380. resembling it closely.
  4381.  
  4382. Therefore, a fractal compressed image is an encoding that describes:
  4383.    1. The grid partitioning (the range blocks).
  4384.    2. The affine transforms (one per range block).
  4385.  
  4386. The decompression process begins with a flat gray background. Then the set of 
  4387. transformations is repeatedly applied. After about four iterations the attrac-
  4388. tor stabilizes. The result will not (usually) be an exact replica of the 
  4389. original, but reasonably close.
  4390.  
  4391.  
  4392.  Scalelessnes and Resolution Enhancement
  4393.  ---------------------------------------
  4394.  
  4395. When an image is captured by an acquisition device, such as a camera or scan-
  4396. ner, it acquires a scale determined by the sampling resolution of that device. 
  4397. If software is used to zoom in on the image, beyond a certain point you don't 
  4398. see additional detail, just bigger pixels. 
  4399.  
  4400. A fractal image is different. Because the affine transformations are spatially 
  4401. contractive, detail is created at finer and finer resolutions with each itera-
  4402. tion. In the limit, self-similar detail is created at all levels of resolu-
  4403. tion, down the infinitesimal. Because there is no level that 'bottoms out' 
  4404. fractal images are considered to be scaleless.
  4405.  
  4406. What this means in practice is that as you zoom in on a fractal image, it will 
  4407. still look 'as it should' without the staircase effect of pixel replication. 
  4408. The significance of this is cause of some misconception, so here is the right 
  4409. spot for a public service announcement.
  4410.  
  4411.                         /--- READER BEWARE ---\
  4412.  
  4413. Iterated Systems is fond of the following argument. Take a portrait that is, 
  4414. let us say, a grayscale image 250x250 pixels in size, 1 byte per pixel. You 
  4415. run it through their software and get a 2500 byte file (compression ratio = 
  4416. 25:1). Now zoom in on the person's hair at 4x magnification. What do you see? 
  4417. A texture that still looks like hair. Well then, it's as if you had an image 
  4418. 1000x1000 pixels in size. So your _effective_ compression ratio is 25x16=400.
  4419.  
  4420. But there is a catch. Detail has not been retained, but generated. With a 
  4421. little luck it will look as it should, but don't count on it. Zooming in on a 
  4422. person's face will not reveal the pores. 
  4423.  
  4424. Objectively, what fractal image compression offers is an advanced form of 
  4425. interpolation. This is a useful and attractive property. Useful to graphic 
  4426. artists, for example, or for printing on a high resolution device. But it does 
  4427. not bestow fantastically high compression ratios.
  4428.  
  4429.                         \--- READER BEWARE ---/
  4430.  
  4431. That said, what is resolution enhancement? It is the process of compressing an 
  4432. image, expanding it to a higher resolution, saving it, then discarding the 
  4433. iterated function system. In other words, the compressed fractal image is the 
  4434. means to an end, not the end itself.
  4435.  
  4436.  
  4437.  The Speed Problem
  4438.  -----------------
  4439.  
  4440. The essence of the compression process is the pairing of each range block to a 
  4441. domain block such that the difference between the two, under an affine trans-
  4442. formation, is minimal. This involves a lot of searching. 
  4443.  
  4444. In fact, there is nothing that says the blocks have to be squares or even 
  4445. rectangles. That is just an imposition made to keep the problem tractable. 
  4446.  
  4447. More generally, the method of finding a good PIFS for any given image involves 
  4448. five main issues: 
  4449.    1. Partitioning the image into range blocks. 
  4450.    2. Forming the set of domain blocks. 
  4451.    3. Choosing type of transformations that will be considered. 
  4452.    4. Selecting a distance metric between blocks. 
  4453.    5. Specifying a method for pairing range blocks to domain blocks. 
  4454.  
  4455. Many possibilities exist for each of these. The choices that Jacquin offered 
  4456. in his paper are: 
  4457.    1. A two-level regular square grid with 8x8 pixels for the large
  4458.       range blocks and 4x4 for the small ones. 
  4459.    2. Domain blocks are 16x16 and 8x8 pixels in size with a subsampling 
  4460.       step size of four. The 8 isometric symmetries (four rotations, 
  4461.       four mirror flips) expand the domain pool to a virtual domain 
  4462.       pool eight times larger. 
  4463.    3. The choices in the last point imply a shrinkage by two in each 
  4464.       direction, with a possible rotation or flip, and then a trans-
  4465.       lation in the image plane. 
  4466.    4. Mean squared error is used. 
  4467.    5. The blocks are categorized as of type smooth, midrange, simple
  4468.       edge, and complex edge. For a given range block the respective
  4469.       category is searched for the best match.
  4470.  
  4471. The importance of categorization can be seen by calculating the size of the 
  4472. total domain pool. Suppose the image is partitioned into 4x4 range blocks. A 
  4473. 256x256 image contains a total of (256-8+1)^2  = 62,001 different 8x8 domain 
  4474. blocks. Including the 8 isometric symmetries increases this total to 496,008. 
  4475. There are (256-4+1)^2 = 64,009 4x4 range blocks, which makes for a maximum of 
  4476. 31,748,976,072 possible pairings to test. Even on a fast workstation an ex-
  4477. haustive search is prohibitively slow. You can start the program before de-
  4478. parting work Friday afternoon; Monday morning, it will still be churning away. 
  4479.  
  4480. Increasing the search speed is the main challenge facing fractal image com-
  4481. pression.
  4482.  
  4483.  
  4484.  Similarity to Vector Quantization
  4485.  ---------------------------------
  4486.  
  4487. To the VQ community, a "vector" is a small rectangular block of pixels. The 
  4488. premise of vector quantization is that some patterns occur much more frequent-
  4489. ly than others. So the clever idea is to store only a few of these common 
  4490. patterns in a separate file called the codebook. Some codebook vectors are 
  4491. flat, some are sloping, some contain tight texture, some sharp edges, and so 
  4492. on -- there is a whole corpus on how to construct a codebook. Each codebook 
  4493. entry (each domain block) is assigned an index number. A given image, then, is 
  4494. partitioned into a regular grid array. Each grid element (each range block) is 
  4495. represented by an index into the codebook. Decompressing a VQ file involves 
  4496. assembling an image out of the codebook entries. Brick by brick, so to speak.
  4497.  
  4498. The similarity to fractal image compression is apparent, with some notable 
  4499. differences. 
  4500.    1. In VQ the range blocks and domain blocks are the same size; in an
  4501.       IFS the domain blocks are always larger. 
  4502.    2. In VQ the domain blocks are copied straight; in an IFS each domain 
  4503.       block undergoes a luminance scaling and offset.
  4504.    3. In VQ the codebook is stored apart from the image being coded; in 
  4505.       an IFS the codebook is not explicitly stored. It is comprised of
  4506.       portions of the attractor as it emerges during iteration. For that
  4507.       reason it is called a "virtual codebook." It has no existence
  4508.       independent of the affine transformations that define an IFS.
  4509.    4. In VQ the codebook is shared among many images; in an IFS the 
  4510.       virtual codebook is specific to each image.
  4511.  
  4512. There is a more refined version of VQ called gain-shape vector quantization in 
  4513. which a luminance scaling and offset is also allowed. This makes the similari-
  4514. ty to fractal image compression as close as can be.
  4515.  
  4516.  
  4517.  Compression Ratios
  4518.  ------------------
  4519.  
  4520. Exaggerated claims not withstanding, compression ratios typically range from 
  4521. 4:1 to 100:1. All other things equal, color images can be compressed to a 
  4522. greater extent than grayscale images.
  4523.  
  4524. The size of a fractal image file is largely determined by the number of trans-
  4525. formations of the PIFS. For the sake of simplicity, and for the sake of com-
  4526. parison to JPEG, assume that a 256x256x8 image is partitioned into a regular 
  4527. partitioning of 8x8 blocks. There are 1024 range blocks and thus 1024 trans-
  4528. formations to store. How many bits are required for each?
  4529.  
  4530. In most implementations the domain blocks are twice the size of the range 
  4531. blocks. So the spatial contraction is constant and can be hard coded into the 
  4532. decompression program. What needs to be stored are:
  4533.  
  4534.    x position of domain block        8     6
  4535.    y position of domain block        8     6
  4536.    luminance scaling                 8     5
  4537.    luminance offset                  8     6
  4538.    symmetry indicator                3     3
  4539.                                     --    --
  4540.                                     35    26 bits
  4541.  
  4542. In the first scheme, a byte is allocated to each number except for the symme-
  4543. try indicator. The upper bound on the compression ratio is thus (8x8x8)/35 = 
  4544. 14.63. In the second scheme, domain blocks are restricted to coordinates 
  4545. modulo 4. Plus, experiments have revealed that 5 bits per scale factor and 6 
  4546. bits per offset still give good visual results. So the compression ratio limit 
  4547. is now 19.69. Respectable but not outstanding.
  4548.  
  4549. There are other, more complicated, schemes to reduce the bit rate further. The 
  4550. most common is to use a three or four level quadtree structure for the range 
  4551. partitioning. That way, smooth areas can be represented with large range 
  4552. blocks (high compression), while smaller blocks are used as necessary to 
  4553. capture the details. In addition, entropy coding can be applied as a back-end 
  4554. step to gain an extra 20% or so.
  4555.  
  4556.  
  4557.  Quality: Fractal vs. JPEG
  4558.  -------------------------
  4559.  
  4560. The greatest irony of the coding community is that great pains are taken to 
  4561. precisely measure and quantify the error present in a compressed image, and 
  4562. great effort is expended toward minimizing an error measure that most often is 
  4563. -- let us be gentle -- of dubious value. These measure include signal-to-noise 
  4564. ratio, root mean square error, and mean absolute error. A simple example is 
  4565. systematic shift: add a value of 10 to every pixel. Standard error measures 
  4566. indicate a large distortion, but the image has merely been brightened.
  4567.  
  4568. With respect to those dubious error measures, and at the risk of over-sim-
  4569. plification, the results of tests reveal the following: for low compression 
  4570. ratios JPEG is better, for high compression ratios fractal encoding is better. 
  4571. The crossover point varies but is often around 40:1. This figure bodes well 
  4572. for JPEG since beyond the crossover point images are so severely distorted 
  4573. that they are seldom worth using. 
  4574.  
  4575. Proponents of fractal compression counter that signal-to-noise is not a good 
  4576. error measure and that the distortions present are much more 'natural looking' 
  4577. than the blockiness of JPEG, at both low and high bit rates. This is a valid 
  4578. point but is by no means universally accepted. 
  4579.  
  4580. What the coding community desperately needs is an easy to compute error meas-
  4581. ure that accurately captures subjective impression of human viewers. Until 
  4582. then, your eyes are the best judge.
  4583.  
  4584.  
  4585.  Finding Out More
  4586.  ----------------
  4587.  
  4588.  Please refer to item 17 in part 1 of this FAQ for a list of references,
  4589. available software, and ftp sites concerning fractal compression.
  4590.  
  4591. End of item 77.
  4592.  
  4593.           End of part 2 of the comp.compression faq.
  4594.  
  4595. From ankh.iia.org!uunet!EU.net!julienas!chorus!chorus.fr Sun Aug 28 10:14:11 1994
  4596. Path: ankh.iia.org!uunet!EU.net!julienas!chorus!chorus.fr
  4597. From: jloup@chorus.fr (Jean-loup Gailly)
  4598. Newsgroups: comp.compression,comp.compression.research,news.answers,comp.answers
  4599. Subject: comp.compression Frequently Asked Questions (part 3/3)
  4600. Summary: *** READ THIS BEFORE POSTING ***
  4601. Keywords: data compression, FAQ
  4602. Message-ID: <compr3_24aug94@chorus.fr>
  4603. Date: 24 Aug 94 16:58:59 GMT
  4604. Expires: 30 Sep 94 16:17:20 GMT
  4605. References: <compr1_24aug94@chorus.fr> <compr2_24aug94@chorus.fr>
  4606. Sender: news@chorus.chorus.fr
  4607. Reply-To: jloup@chorus.fr
  4608. Followup-To: comp.compression
  4609. Lines: 587
  4610. Approved: news-answers-request@MIT.Edu
  4611. Supersedes: <compr3_19jul94@chorus.fr>
  4612. Xref: ankh.iia.org comp.compression:3661 comp.compression.research:136 news.answers:9990 comp.answers:3331
  4613.  
  4614. Archive-name: compression-faq/part3
  4615. Last-modified: Aug 24th, 1993
  4616.  
  4617. This file is part 3 of a set of Frequently Asked Questions for the
  4618. groups comp.compression and comp.compression.research.
  4619. If you did not get part 1 or 2, you can get them by ftp
  4620. on rtfm.mit.edu in directory
  4621.    /pub/usenet/news.answers/compression-faq
  4622.  
  4623. If you don't want to see this FAQ regularly, please add the subject
  4624. line to your kill file. If you have corrections or suggestions for
  4625. this FAQ, send them to Jean-loup Gailly <jloup@chorus.fr>.  Thank you.
  4626.  
  4627. Contents
  4628. ========
  4629.  
  4630. Part 3: (Long) list of image compression hardware
  4631.  
  4632. [85] Image compression hardware
  4633. [99] Acknowledgments
  4634.  
  4635.  
  4636. Search for "Subject: [#]" to get to question number # quickly. Some news
  4637. readers can also take advantage of the message digest format used here.
  4638.  
  4639. ------------------------------------------------------------------------------
  4640.  
  4641. Subject: [85] Image compression hardware
  4642.  
  4643. Here is a list of sources of image compression hardware (JPEG, MPEG,
  4644. H.261 and others), reposted with the author's permission.  The list is
  4645. certainly a little dated already, but it is a good starting point for
  4646. seeking compression chips. (Please send corrections/additions to
  4647. jloup@chorus.fr). References are taken from:
  4648.  
  4649.    VIDEO COMPRESSION OPTIONS, IEEE CICC 6-May-92
  4650.    John J. Bloomer, jbloomer@crd.ge.com, Fathy F. Yassa, Aiman A. Abdel-Malek
  4651.    General Electric Corporate R&D, KWC317 Signals and Systems Laboratory
  4652.    PO Box 8, Schenectady NY, 12301
  4653.  
  4654. (Too many people have sent comments, corrections or additions so I am
  4655. just making a common acknowledgment here.)
  4656.  
  4657.  
  4658.  Pipelined Processors, Building Blocks (Chip Sets)
  4659.  -------------------------------------------------
  4660.  
  4661. STI3200, IMSA121, STI3208 - SGS-Thompson DCT processors.  602-867-6279
  4662.     - 3200 has multiple block size options, DC to 13.5 MHz
  4663.     - A121 8x8 fixed blocks, DC to 20MHz, add/sub loop, CCITT compatible
  4664.     - 3208 8x8 fixed blocks, DC to 40MHz, CCITT compatible at 20MHz
  4665.  
  4666. STI3220 - SGS-Thompson motion estimator (H.261, MPEG).  602-867-6279
  4667.     - 8-bit input pixels, 4-bit H and V vectors out
  4668.     - adjustable block size matcher (8x8, 8x16, 16x16)
  4669.     - +7/-8 search window
  4670.     - 5V, 2W at 18MHz (max), 68 pin PLCC
  4671.  
  4672. L64765 , L64735 , L64745 - 3-chip LSI Logic JPEG set.  408-433-4383
  4673.     - L64765 raster-to-block and color-space converter, jointly developed
  4674.           with Rapid Tech.
  4675.     - L64735 block DCT processor
  4676.     - L64745 JPEG coder support, stand-alone lossless DPCM codec, dynamic
  4677.           Huffman
  4678.     - 27 MB/s on CCIR601 frames
  4679.     - minimal support logic, color and gray scale
  4680.     - 68-pin PGA or PLCC, 27 and 20 MHz versions
  4681.  
  4682. L647*0 and L6471* families - LSI Logic H.621/MPEG pieces.  408-433-8000
  4683.     - L64720 motion estimator, 30/40MHz, 8x8, 16x16 blocks, 32x32 or 16x16 
  4684.           search window, 68-pin CPGA or PPGA
  4685.     - L64730 & 735 8x8 DCT processors (12 & 8-9 bits)
  4686.     - L64740 8x8 block quantization
  4687.     - L64760 intra/inter-frame coding decision
  4688.     - L64715 BCH error correction
  4689.     - L64750/L64751 variable length encode/decode (H.261-specific)
  4690.  
  4691. ZR36020 and ZR36031 - Zoran DCT processor & quantization/encoding. 408-986-1314
  4692.     - JPEG-like scheme using 16-bit, two's complement fixed point
  4693.           arithmetic
  4694.     - includes bit-rate controls for constant # of pictures per card
  4695.     - 7.4 MHz, < 1W, 20mW in standby mode, 7.5 frames/s (f/s)
  4696.     - 36020 - 44-pin plastic quad flatpack (PQFP) or 48-pin ceramic DIP
  4697.     - 36031 - 100-pin PQFP or 85-pin PGA.
  4698.     - co-developments with Fuji Photo Film Co. Ltd. digital IC-card
  4699.           camera market
  4700.  
  4701.     Does 2-passes of image: generate histogram for optimum Huffman
  4702.     tables and quantization compute step size (ala H.261 and
  4703.     MPEG-I) for each macroblock or minimum coded unit (MCU).
  4704.  
  4705.     JPEG-compatible codec expected soon.
  4706.  
  4707. LDM3104  - Olympus DCT coefficient encoder
  4708.     - constant rate, digital IC-card camera market
  4709.     - 750 mW, 25 mW standby, 100-poin QFP
  4710.  
  4711. TMC2312 - TRW quantizer/Huffman encoder, TMC2313 Huffman decoder/dequantizer
  4712.  
  4713. TMC2311 - TRW CMOS Fast Cosine Transform Processor.  
  4714.     - 12 Bits, 15 M pixels/s
  4715.     - complies with the CCITT SGXV ( e.g. JPEG, H.261 and MPEG )
  4716.     - includes an adder-subtractor for linear predictive coding
  4717.  
  4718. MN195901 - Matsushita Electric Industrial Co.   See ISSCC 1992
  4719.     - 16-bit, 60 MIP video signal processor
  4720.     - 25 uS instruction processing
  4721.     - on-board DCT and absolute differencing
  4722.     - Philips Signetics US fab.
  4723.  
  4724. HGCT - Ricoh CRC, Generalized Chen Transform demonstration chip.  408-281-1436
  4725.     - 2D JPEG/MPEG/H.261 compatible DCT
  4726.     - includes quantization
  4727.     - 30MHz, 15K gates
  4728.     - licensing possible
  4729.  
  4730. GCTX64000 - Graphic Communication Technology Corp. chipset
  4731.     - provides CCITT H.261
  4732.     - VLSI Technology and Hitachi supply H.261 codec core. 1 micron CMOS.
  4733.  
  4734. BT - British Telecommunications  plc., Martlesham labs designed
  4735.     - H.261 codec chipset, Motorola fab.
  4736.     - 13 chips total for codec.
  4737.  
  4738.  
  4739.  Pipelined Processors, Monolithic, Programmable
  4740.  ----------------------------------------------
  4741.  
  4742. Vision Processor - Integrated Information Technology Inc. 408-727-1885
  4743.     - generic DCT, motion compensated & entropy coding codec
  4744.     - microcode for still- and motion-video compression (JPEG, H.261 and
  4745.           MPEG1)
  4746.     - 1 micron CMOS, 20 MHz and 33 MHz, PGA and 84-pin QFP  
  4747.     - JPEG only and JPEG/H/261/MPEG versions available, H.261 at 30 f/s.  
  4748.     - used by Compression Labs, Inc. CDV teleconferencing system
  4749.     - rumored to be the heart of the AT&T picture phone
  4750.  
  4751. MN195901 - Matsushita Electric Industrial Corp
  4752.     - 40 MHz DSP, built-in DCT
  4753.     - 16-bit fixed-point
  4754.  
  4755. AVP1000 -  AT&T  JPEG, MPEG and H.261 codec chipset.  800-372-2447
  4756.     - 1400D decoder, 1400C system controller
  4757.     - 1300E H.261 (CIF, QCIF, CIF240) at 30 f/s, I-frame only MPEG.
  4758.     - 1400E is superset of 1300E, motion with 1/2 pixel resolution over +/-
  4759.           32 pixels
  4760.     - YCbCr video or digital input, on-board rate FIFOs, external RAM
  4761.           required
  4762.     - 0.75 micron, 50 MHz CMOS
  4763.  
  4764.     AVP1000 is from AT&T Microelectronics.  The AT&T chip set
  4765.     handles MPEG-1, H.261, and JPEG.  1400D has on board color
  4766.     space convertor.  Limited to 4Mb/s coded rate.  The DSP does
  4767.     the MUSICAM decoding (up to layer II ?)
  4768.  
  4769.  
  4770. 82750PB, 82750DB - Intel DVI  pixel and display YUV color space processors.
  4771.     - proprietary machine code employed for compression
  4772.     - usable for other algorithms (e.g., JPEG, H.261 or MPEG1 at reduced
  4773.           data rates)
  4774.  
  4775.  
  4776.  Pipelined Processors, Monolithic, Fixed Lossless - Entropy Coders, DPCM, VQ
  4777.  ---------------------------------------------------------------------------
  4778.  
  4779. DCP - Integrated Information Tech. Inc. Data Compressor Processor  408-727-1885
  4780.     - LZ codec with on-chip dictionary store
  4781.     - on-chip buffers supporting block moves
  4782.     - targeting disk drives and network controller markets
  4783.     - 3.3V, 84-pin PQFP
  4784.  
  4785. Mystic - HP's DC-LZ codec.  408-749-9500
  4786.  
  4787. AHA3210 - Advanced Hardware Architectures DC-LZ codec. 208-883-8000
  4788.     - two independent DMA ports for 10 MB/s compress, decompress &
  4789.           pass-thru
  4790.     - addressing allows up to 16 MB record compression
  4791.     - 20 MHz internal clock, 200 mW, 100-pin PQFP
  4792.     - interface to AHA5101/5121 QIC tape controller/formatter
  4793.     - HP licensee
  4794.  
  4795. AHA3xxx/xxy - Rice (UNC) algorithm, 20M samples/sec, 4 to 14 bits. 208-883-8000
  4796.  
  4797. CRM1000 - CERAM Inc. entropy codec, proprietary algorithm.  719-540-8500
  4798.  
  4799. Rice - UNC algorithm prototype, 180 Mb/s.  See IEEE CICC 1992
  4800.     - other CICC 1992 papers:
  4801.        +JS.E. Kerneny et.al. differential read, pyramidal output CCD
  4802.          + A. Aggoun et.al. DPCM processing
  4803.  
  4804. DCD - Philips Data Compressor Decompressor IC. 914-945-6000
  4805.     - See CICC 1990 proceedings, H. Blume, et.al.
  4806.     - LZ codec, 20 MHz clock
  4807.     - Internal FIFOs, separate input/output buses, max 10 Mword/s data in
  4808.     - 5 V CMOS, 175-pin PGA
  4809.  
  4810. 9705 - Second generation Stac Electronics accelerator chip.  619-431-7474
  4811.     - Stacker LZA compression scheme(LZ-based)
  4812.     - compress at approx. 2.5 MB/s, decompress at 6 MB/s (39+ faster than
  4813.           9704)
  4814.     - standby mode 300uA
  4815.     - embedded in tapes and disks (e.g., QIC-122 Ten X Technology
  4816.           512-346-8360)
  4817.     - file compression board & software:
  4818.         + for the PC/AT - from Stac
  4819.         + for the Macintosh - from Sigma Design 415-770-0100 (40 MHz 9703)
  4820.     - InfoChip Systems Inc. - proprietary string-matching technology
  4821.           408-727-0514
  4822.  
  4823. VCEP or OTI95C71/Am95C71 - Oak Technology Inc. 408-737-0888
  4824.     - AMD CCITT B&W fax image compression
  4825.  
  4826.  
  4827.  Pipelined Processors, Monolithic, Fixed Lossy
  4828.  ---------------------------------------------
  4829.  
  4830. MB86356B - Fujitsu LTD.
  4831.     - JPEG DIS 10918-1 baseline  codec
  4832.     - on-chip quantizer tables
  4833.     - 2.5M pixel/sec input, up to 10MB/sec output
  4834.     - supports progressive and DPCM lossless modes 
  4835.     - 135 pin PGA.
  4836.  
  4837. CL550-30 - C-Cube Microsystems 408-944-8103, literature@c-cube.com
  4838.     - JPEG-8-R2 compliant baseline codec
  4839.     - 350-level pipeline, on-chip Huffman and quantizer table
  4840.     - 44.1 MB/sec (15 MB/sec for -10)
  4841.     - RGB, YUV, CMYK supported, CCIR 601 in real-time
  4842.     - 16/32-bit host interface 
  4843.     - 144 pin PGA or QFP, 2.5W at 29.41 MHz
  4844.  
  4845.     Limited to 2MB/sec (15Mb/s) coded rate.  35MHz PGA version
  4846.     available.  2:1 horizontal filter, on board programmable color
  4847.     space convertor.  Allows on pair of quantization tables to be
  4848.     loaded while other pair is used to code or decode data stream.
  4849.     Needs maintanence by host.
  4850.  
  4851. STI140 - SGS-Thompson JPEG baseline codec.  617-259-0300 [** Now cancelled **]
  4852.     - see CICC 1991 proceedings, M. Bolton.
  4853.     - 20 Mpixel/sec input, up to 20 MB/sec output
  4854.     - supports 24-bit color, 8-bit grey and 12-bit extended pixels
  4855.     - on chip Huffman and quantizer tables
  4856.     - 144 pin PQFP, 5V, < 2W., 10mW power-down mode
  4857.     - 1.2 micron, 3-layer metal CMOS, 20 MHz.    `
  4858.  
  4859. UVC7710 - UVC Corp. Integrated Multimedia Processor. Was 714-261-5336, out
  4860.           of business now.
  4861.     - proprietary, patented intra-frame compression, on-chip code tables
  4862.     - 20-35:1, 12.5 Mpixels/sec., compressed audio
  4863.     - includes much of the PC-AT (16-bit ISA) bus interface logic
  4864.     - 128 pin PJQFP plastic
  4865.  
  4866. CL950 - C-Cube/JVC implementation of the MPEG-JVC or extended mode MPEG2 
  4867.         announced.  6-9 Mb/sec.
  4868.  
  4869.     JVC mode is not MPEG-II compliant (there isn't an MPEG2 standard yet)
  4870.     but is an extension of MPEG1 at a higher rate plus interlace video
  4871.     handling.
  4872.  
  4873. CL450 - Announced June 1992.  Scaled down version of CL950, with 3Mb/sec
  4874.         limit.  Does not code or decode JPEG, only MPEG-I decoding.
  4875.  
  4876. CD-I - ASICs planned for CD-ROM, Compact Disk-Interactive defacto standards
  4877.     - CD-ROM XA - Sony-Philips-Motorola-Microsoft
  4878.     - CDTV -  Commodore.  YUV processing.
  4879.     - audio ADPCM encode/decode PC/AT boards available from Sony
  4880.           408-432-0190
  4881.  
  4882. Motorola MCD250 Full Motion Video Decoder.   512-928-5053.
  4883.     This is a CD-I MPEG Video decoder which requires only a single
  4884.     4Mbit DRAM for FMV decoding. Decodes System and Video Layers
  4885.     at up to 5Mbits/sec, converts from 24/25/30 fps IPB streams to
  4886.     25/30 fps output video in 24bit RGB/YUV format. Supports extra
  4887.     CD-I functions such as windowing and still picture mode.
  4888.     Targetted at low cost consumer applications such as CD-I,
  4889.     CD-Karaoke, Video-CD and cable TV.
  4890.  
  4891. Motorola MCD260 MPEG Audio Host Interface and DSP56001-33.  512-928-5053.
  4892.     The MCD260 is a low cost interface IC which goes between a 68K
  4893.     bus and a DSP56K and strips out the MPEG System Layer whilst also
  4894.     buffering and synchronising. A 33MHz 56001 with 8Kwords of DSPRAM
  4895.     decodes the MPEG Audio (Layer 1/II @ 44.1KHz, all modes and bit rates)
  4896.  
  4897. Pixel Magic PM-2. Contact: Don Shulsinger, Pixel Magic, 508-688-4410.
  4898. - JBIG compression/decompression at 30 Mb/s (typical and worst-case)
  4899. - G3/G4 compression/decompression at 90 Mb/s (typical), 30 Mb/s (worst-case)
  4900. - scaling on decode from 1/256 to 256X
  4901. - rotation by 90 degrees
  4902. - clipping to a window and padding out to another
  4903. - lookup table filtering on 3x3 neighborhoods
  4904. - on-chip FIFOs on input and output
  4905. - bookmarking for suspend/resume
  4906.  
  4907.  
  4908.  Codecs Chips Under Development
  4909.  ------------------------------
  4910.  
  4911. MPEG1 codec chips due from - TI, Brooktree, Cypress Semiconductor, Motorola 
  4912. (successor to the DSP96002 Multimedia Engine), Xing Technology/Analog Devices, 
  4913. Sony and C-Cube
  4914.  
  4915.  
  4916. Windbond Electronics Corp. is developing a DSP chip for CD-I, MPEG and JPEG
  4917.  
  4918.  
  4919.  Using these Chips: Board Level Compression Hardware
  4920.  ------------------------------------------------------
  4921.  
  4922. + JPEG Using CL550
  4923.  
  4924. + JPEG Using Other Chip Sets
  4925.  
  4926. + DSP Chip Based JPEG/MPEG Solutions
  4927.  
  4928. + Integrated Compressed Digital Video Boards 
  4929.  
  4930.  
  4931.  JPEG Using CL550
  4932.  ---------------
  4933. C-Cube - 408-944-6300 ISA and NuBus boards 
  4934.     - for development and limited time-constraint applications
  4935.     - 1-2.5 MB/sec host bus constraints
  4936.     - Image Compression Interface (ISI) software for 3rd party CL550
  4937.           integration
  4938.  
  4939. VideoSpigot/SuperSqueeze - SuperMac Technology  408 541-6100
  4940.     - a CL550A on a NuBus board
  4941.     - 24 frame/s with CD-quality audio
  4942.     - reads from Winchester and magneto-optic drives
  4943.  
  4944. Fluency VSA-1000 - Fluent Machines, Inc. AT board set.  508 626-2144
  4945.     - compress/decompress real-time synced audio & video to a i386 PC
  4946.           Winchester
  4947.     - NTSC or PAL input, 320x240 pixels saved
  4948.     - uses i960 chip, no additional boards needed
  4949.     - M/S Windows support, 3rd party S/W (e.g., AimTech 603-883-0220)
  4950.  
  4951. Super Motion Compression - New Media Graphics  PC/AT board.  800 288-2207
  4952.     - 8Khz, 8-bit compressed audio
  4953.     - 30 f/s JPEG to & from disk
  4954.     - earlier reports: still-frame compression in several seconds per MB
  4955.  
  4956.  
  4957. Leadview  - Lead Tech Inc. AT board uses the CL550 to compress/decompress
  4958.             JFIF or JTIF format files
  4959.  
  4960. Monalisa - Opta Inc. AT board uses the CL550
  4961.  
  4962. Squeeze - Rapid Technology AT board
  4963.     - Integrated by a number of vendors into 3rd party multimedia,
  4964.           video-editing PC stations
  4965.  
  4966. Parallax Graphics - SBus, VME and PC-AT boards.  408-727-2220 or
  4967.           info@parallax.com
  4968.  
  4969. Chips and Technologies - JPEG development kit due.
  4970.  
  4971. Image Manipulation Systems, Inc - SBus compression/framebuffer/video I/O boards
  4972.     800-745-5602 or imsinfo%thumper@src.honeywell.com
  4973.  
  4974.  
  4975.  JPEG Using Other Chipsets
  4976.  -------------------------
  4977.  
  4978. Visionary - Rapid Technology JPEG AT board.  716-833-8534
  4979.     -  LSI Logic JPEG chips L647-35, -45 & -65
  4980.     - 30 f/s motion JPEG
  4981.     - 256x240 pixel compression and display from CCIR-601 input
  4982.     - private codec-frame buffer bus
  4983.     - also integrated with TrueVision multimedia hardware
  4984.  
  4985. Media 100  - Data Translation nonlinear video production system for the
  4986.           Macintosh  (QuickTime).  22 MB/s (PAL) and 18MB/s (NTSC) throughput.
  4987.  
  4988. Alice - Telephoto Communications Inc. 619-452-0903
  4989.     - Alice-H350 (PC/AT) and -H365 (PS/2) codec boards
  4990.     - use a 40 MHz TMS320C51 DSP and a IMSA121 DCT processor chip
  4991.     - JPEG (lossy and lossless), CCITT G3/G4, color and grey-scale images
  4992.  
  4993. Xing Technology - Hardware accelerator.  805-473-0145
  4994.     - compatible with their VT-Express JPEG Turbo Accelerator Software
  4995.  
  4996. Video/1 - PsiTech Inc. 714-968-7818
  4997.     - includes a 6U VME/VSB JPEG Processing Card 
  4998.     - compresses RS-170, NTSC, PAL or Secam video into 8 MB of on-board RAM
  4999.  
  5000.  
  5001.  DSP Chip Based JPEG/MPEG Solutions
  5002.  ----------------------------------
  5003.  
  5004. Optipac - Optivision Inc. PC/AT, ISA & VME codecs.  800-562-8934
  5005.     - JPEG (lossless and lossy), CCITT III/IV
  5006.     - 1 to 5 TMS32C025s
  5007.     - 512x400x16-bit images in < 1 sec.
  5008.  
  5009. XCeed ICDP-II - Micron Technology Inc. NuBus card
  5010.     - uses two AT&T Microelectronics DSP-16 DSP chips
  5011.     - driven by Storm Technologies PicturePress software
  5012.     - executes an enhanced JPEG algorithm at near-realtime.
  5013.  
  5014. PicturePress Accelerator - Storm Technology 415-691-1111 (see above)
  5015.     - also has a line of VME compression boards
  5016.     - Micro Dynamics Ltd. imaging systems use Storm accelerator
  5017.           301-589-6300
  5018.  
  5019. Picture Packer Accelerator - Video & Image Compression Corp.
  5020.     - AT and NuBus boards use the JPEG Open Standard and a TMS320C25
  5021.  
  5022. SunVideo (S-bus) - Sun Microsystems
  5023.         - PAL/NTSC framegrabber with an integrated C-Cube CL4000
  5024.       VideoRISC processor and downloadable video compression for
  5025.       MPEG, MJPEG or CellB. It achieves about 10 Frames/sec on
  5026.       MPEG Level 1 picture data compression. The board costs about $1K.
  5027.  
  5028. Phoenix System - T/one Inc. uses an Optivision Optipac 3250 to talk to a Storm 
  5029.                  Technologies NuBus PicturePress Accelerator to talk JPEG over 
  5030.                  analog phone lines.
  5031.  
  5032. Nextdimension - NeXt Computer Inc. 415-780-3912
  5033.     - 24+8-bit alpha, 640x480, 30 f/s decompression
  5034.     - CL550 version not shipping as announced. 
  5035.  
  5036. Spirit-40  - Sonitech International Inc. ISA card. 617-235-6824
  5037.     - two TMS320C40 DSPs for 80 MFLOPS
  5038.     - connect 16 boards in a hypercube for up to 1280 MFLOPS
  5039.     - JPEG, MPEG-1 audio and other voice coding applications included 
  5040.  
  5041. HardPak - CERAM Inc., ISA and EISA file compression board.  719-540-8500
  5042.     - 3.4 x 1.8 inch footprint (notebook, laptops)
  5043.     - 32KB on-board write-thru file compression cache
  5044.     - CERAM also has an SBus compressive swap-space accelerator for Suns
  5045.  
  5046. macDSP - Spectral Innovations, AT&T DSPC32-based accelerator.  408-727-1314
  5047.     - JPEG functions available
  5048.     - 30 MFLOPS on the NuBus
  5049.  
  5050.  
  5051. VCA-1  - Video compression accelerator for Sun workstations.
  5052.            Tel: (310)829-7733, FAX: (310)829-1694, Internet: spacecc@cerf.net
  5053.          Special-Purpose Hardware for Motion Estimation and DCTs
  5054.      Performs 8x8 DCTs in 21 microsec after first DCT at 52 microsec.*
  5055.      Performs 32x32 cross search for 16x16 block in 239 microsec.*
  5056.          (*Stated times are for a 25-MHz SBus.)
  5057.      Mounts in a single SBus slot.
  5058.      Included software allows user-transparent access.
  5059.      Price: $2,900 (subject to change without notice).
  5060.  
  5061.  Integrated Digital Video Boards - Miscellaneous Multimedia, Video Conferencing
  5062.  ------------------------------------------------------------------------------
  5063.  
  5064. VCI/oem - Vista Communication Instruments, Inc. +358 0 460 099
  5065.     - two AT-board H.261 video codec, PAL or NTSC cameras and monitors
  5066.     -56 kbps (64 kbps) to 2 Mbps, 64 kbps increments
  5067.     - H.221 framing and synchronizing     - H.241 network signalling 
  5068.     - H.200/AV.254 forthcoming standard for compressed audio
  5069.     - network interface boards available
  5070.  
  5071. MediaStation- VideoLogic Inc., JPEG compression board for ISA bus. 617-494-0530
  5072.     - works with VideoLogic DVA-4000/ISA motion video board, custom bus
  5073.     - CL-550 plus ADPCM and PCM audio support
  5074.     - Inmos Transputer for I/O scheduling
  5075.     - Microsoft Windows Multimedia Extensions and proprietary interfaces
  5076.  
  5077. DECspin - Digital Equipment CorpSound/Picture Information Network 508-493-5111
  5078.     - full motion, true-color (24-bit) and greyscale (8-bit black & white)
  5079.     - variable frame size and rate up to 640 x480 x30 NTSC true-color 
  5080.     - Internet or DECnet transmission and disk I/O of live synchronized
  5081.           video/audio
  5082.     - video teleconferencing using standard network protocols 
  5083.     - create and edit of audio and video sequences
  5084.     - voice grade live audio sequences
  5085.     - DECmedia DECvideo and DECaudio hardware and software required
  5086.  
  5087. ActionMedia II - Intel/IBM DVI PS/2 and PC/AT boards.  914-642-5472
  5088.     - i750 processor boards for capture and delivery systems
  5089.     - Microsoft programming support libraries
  5090.     - proprietary RTV and PLV compression algorithms resident, time and
  5091.           time/space VQ
  5092.     - Real Time  Video (RTV) algorithm 1.5 , effective 128x120 pixel
  5093.           sequence at 30 f/s.
  5094.     - RTV 1.0 is 128x240 at 10 f/s. 
  5095.     - Presentation Level Video (PLV) - extensive off-line processing,
  5096.           exploits inter-frame coherence.  
  5097.     - i750 processor capable of playing-back PLV-compressed 256x240
  5098.           sequences at 30 f/s. 
  5099.  
  5100. DVI Board - Fast Electronic U.S. Inc. laptop board.  508-655-3278
  5101.     - uses Intel i750 chipset
  5102.     - compress or decompress video at up to 30 f/s
  5103.  
  5104. EyeQ - New Video Corp. DVI boards for the Macintosh.  213-396-0282
  5105.     - uses Intel i750 chipset
  5106.     - 150 KB/s full-motion compressed video
  5107.     - T1 and Winchester integration paths
  5108.  
  5109. Copernicus 1000 & 2000 - DesignTech, 408-453-9510
  5110.     - DVI-based presentation and authoring systems 
  5111.  
  5112. Spectrum Signal Processing - DSP96002-based PC-AT board
  5113.     - up to four boards in cascade
  5114.     - other TI, Analog Devices and AT&T-based DSP offerings
  5115.  
  5116. Ariel Corp. - Dual DSP96002 PC-AT board with compression support.  201-429-2900
  5117.  
  5118. Capture I - UVC Corp., 16-bit ISA bus board.  was 714-261-5336, out
  5119.           of business now.
  5120.     - 30 f/s of 640/480 interlace capture and record (uses UVC7710)
  5121.     - NTSC or PAL input
  5122.     - VPC200/201 development board set - proprietary NTSC video codec
  5123.          (audio card required).  
  5124.  
  5125. Leadview  - Lead Technologies, Inc. accelerates an enhanced JPEG algorithm
  5126.    on ISA
  5127.  
  5128. IBM - near-term availability:
  5129.     (1) IBM United Kingdom and British Telecommunications plc. 
  5130.     - PC or PS/2 add-on boards by end of 1993
  5131.     - interface to ISDN 2 service (one or two 64kb/s channels)
  5132.     - BT also planning residential videophone product with GEC Marconi Ltd.
  5133.  
  5134. (2) IBM Japan PS/2 board 
  5135.     - uses GCTX64000 for H.261 
  5136.     - ISDN (narrowband 64kb/s ) and IEEE 802.5 LAN interfaces
  5137.  
  5138.  
  5139. Optibase 100 - Optibase, Inc. DSP-based compression/expansion boards.
  5140.    818-719-6566
  5141.     - supports JPEG
  5142.     - supports CCITT G.721 and ANSI T1.301 & T1.303  drafts (voice and
  5143.           music) 
  5144.     - and proprietary compression (AADCT, lossless)
  5145.  
  5146. Motorola - DSP56002 (fixed-point 40MHz version of the 56001)
  5147.  
  5148. AT&T JPEG coder (George Warner <warnergt@aloft.att.com>)
  5149.         - runs on a DSP3210 under the VCOS operating system.
  5150.       The coder can be used to simultaneously compress/decompress
  5151.       multiple images and/or be used in conjunction with other DSP
  5152.       modules to preprocess or postprocess the image data.
  5153.  
  5154.       Other modules available for the DSP3210 include audio coders
  5155.       (such as MPEG, SBC, CDXA, and G.722), modem/fax data pumps
  5156.       (V.32bis, V.22bis, and V.29), DTMF, call progress detection,
  5157.       sample rate conversion, and more.
  5158.  
  5159.  
  5160. MWave - TI, IBM, Intermetrics multimedia system, due from IBM in 1993. 
  5161.  
  5162. Misc. NuBus boards - RasterOps , Radius, Mass Microsystems, Orange Micro,
  5163. IBM M - - Motion.
  5164.  
  5165. P.OEM - Interated Systems Inc. fractal compression boards for the PC.
  5166. 404-840-0310
  5167.  
  5168. two desktop video conferencing products for Sparc's
  5169. with the Parallax XVIDEO board:
  5170.  
  5171. Communique! - desktop video conferencing products for Sparcs with the Parallax
  5172.               XVIDEO board:
  5173.         InSoft, Inc., 4718 Old Gettsburg Road, Executive Park West I, Suite 307
  5174.         Mechanicsburg, PA 17055, USA. email: info@insoft.com
  5175.         phone: 717-730-9501, fax: 717-730-9504
  5176.  
  5177. PSVC - desktop video conferencing products for Sparcs with the Parallax
  5178.               XVIDEO board:
  5179.     Paradise Software, Inc., 55 Princeton Heightstown Rd, Suite 109
  5180.     Princeton, NJ 08550, USA. email: support@paradise.com
  5181.     phone: 609-275-4475, fax: 609-275-4702
  5182.  
  5183. North Valley Research - video and other time-based media in a UNIX environment
  5184.         North Valley Research; 15262 NW Greenbriar Pkwy; Beaverton, OR  97006
  5185.         Phone (503) 531-5707, Fax (503) 690-2320. Todd Brunhoff <toddb@nvr.com>
  5186.  
  5187.  Boards Under Development
  5188.  ------------------------
  5189.  
  5190. Matrox - Matrox Studio line of PC boards will include a 64-bit MOVIE bus and
  5191.          JPEG compression.
  5192.  
  5193.  
  5194. ------------------------------------------------------------------------------
  5195.  
  5196. Subject: [99] Acknowledgments
  5197.  
  5198.  
  5199. There are too many people to cite. Thanks to all people who directly
  5200. or indirectly contributed to this FAQ.
  5201.  
  5202.