home *** CD-ROM | disk | FTP | other *** search
/ Magazyn Amiga Shareware Floppies / ma57.dms / ma57.adf / xanim / IJG.README < prev    next >
Text File  |  1995-05-07  |  18KB  |  360 lines

  1.  
  2. The JPEG code in XAnim is based on the IJG JPEG code, even though it's
  3. been heavily modified and rewritten.
  4.  
  5. Mark Podlipec
  6. podlipec@shell.portal.com
  7.  
  8.  
  9. ----------------------------------------------------------------------
  10.  
  11. The Independent JPEG Group's JPEG software
  12. ==========================================
  13.  
  14. README for release 5 of 24-Sep-94
  15. =================================
  16.  
  17. This distribution contains the fifth public release of the Independent JPEG
  18. Group's free JPEG software.  You are welcome to redistribute this software and
  19. to use it for any purpose, subject to the conditions under LEGAL ISSUES, below.
  20.  
  21. Serious users of this software (particularly those incorporating it into
  22. larger programs) should contact jpeg-info@uunet.uu.net to be added to our
  23. electronic mailing list.  Mailing list members are notified of updates and
  24. have a chance to participate in technical discussions, etc.
  25.  
  26. This software is the work of Tom Lane, Philip Gladstone, Luis Ortiz, Jim
  27. Boucher, Lee Crocker, George Phillips, Davide Rossi, Ge' Weijers, and other
  28. members of the Independent JPEG Group.
  29.  
  30. IJG is not associated with the official ISO JPEG standards committee.
  31.  
  32.  
  33. DOCUMENTATION ROADMAP
  34. =====================
  35.  
  36. This file contains the following sections:
  37.  
  38. OVERVIEW            General description of JPEG and the IJG software.
  39. LEGAL ISSUES        Copyright, lack of warranty, terms of distribution.
  40. REFERENCES          Where to learn more about JPEG.
  41. ARCHIVE LOCATIONS   Where to find newer versions of this software.
  42. RELATED SOFTWARE    Other stuff you should get.
  43. FILE FORMAT WARS    Software *not* to get.
  44. TO DO               Plans for future IJG releases.
  45.  
  46. Other documentation files in the distribution are:
  47.  
  48. User documentation:
  49.   install.doc       How to configure and install the IJG software.
  50.   usage.doc         Usage instructions for cjpeg, djpeg, rdjpgcom, wrjpgcom.
  51.   *.1               Unix-style man pages for programs (same info as usage.doc).
  52.   change.log        Version-to-version change highlights.
  53. Programmer and internal documentation:
  54.   libjpeg.doc       How to use the JPEG library in your own programs.
  55.   example.c         Sample code for calling the JPEG library.
  56.   structure.doc     Overview of the JPEG library's internal structure.
  57.   filelist.doc      Road map of IJG files.
  58.   coderules.doc     Coding style rules --- please read if you contribute code.
  59.  
  60. Please read at least the files install.doc and usage.doc.  Useful information
  61. can also be found in the JPEG FAQ (Frequently Asked Questions) article.  See
  62. ARCHIVE LOCATIONS below to find out where to obtain the FAQ article.
  63.  
  64. If you want to understand how the JPEG code works, we suggest reading one or
  65. more of the REFERENCES, then looking at the documentation files (in roughly
  66. the order listed) before diving into the code.
  67.  
  68.  
  69. OVERVIEW
  70. ========
  71.  
  72. This package contains C software to implement JPEG image compression and
  73. decompression.  JPEG (pronounced "jay-peg") is a standardized compression
  74. method for full-color and gray-scale images.  JPEG is intended for compressing
  75. "real-world" scenes; cartoons and other non-realistic images are not its
  76. strong suit.  JPEG is lossy, meaning that the output image is not necessarily
  77. identical to the input image.  Hence you must not use JPEG if you have to have
  78. identical output bits.  However, on typical images of real-world scenes, very
  79. good compression levels can be obtained with no visible change, and amazingly
  80. high compression levels are possible if you can tolerate a low-quality image.
  81. For more details, see the references, or just experiment with various
  82. compression settings.
  83.  
  84. We provide a set of library routines for reading and writing JPEG image files,
  85. plus two simple applications "cjpeg" and "djpeg", which use the library to
  86. perform conversion between JPEG and some other popular image file formats.
  87. The library is intended to be reused in other applications.
  88.  
  89. This software implements JPEG baseline and extended-sequential compression
  90. processes.  Provision is made for supporting all variants of these processes,
  91. although some uncommon parameter settings aren't implemented yet.  For legal
  92. reasons, we are not distributing code for the arithmetic-coding process; see
  93. LEGAL ISSUES.  At present we have made no provision for supporting the
  94. progressive, hierarchical, or lossless processes defined in the standard.
  95. (Support for progressive mode may be offered in a future release.)
  96.  
  97. In order to support file conversion and viewing software, we have included
  98. considerable functionality beyond the bare JPEG coding/decoding capability;
  99. for example, the color quantization modules are not strictly part of JPEG
  100. decoding, but they are essential for output to colormapped file formats or
  101. colormapped displays.  These extra functions can be compiled out of the
  102. library if not required for a particular application.  We have also included
  103. two simple applications for inserting and extracting textual comments in
  104. JFIF files.
  105.  
  106. The emphasis in designing this software has been on achieving portability and
  107. flexibility, while also making it fast enough to be useful.  In particular,
  108. the software is not intended to be read as a tutorial on JPEG.  (See the
  109. REFERENCES section for introductory material.)  While we hope that the entire
  110. package will someday be industrial-strength code, much remains to be done in
  111. performance tuning and in improving the capabilities of individual modules.
  112.  
  113. We welcome the use of this software as a component of commercial products.
  114. No royalty is required, but we do ask for an acknowledgement in product
  115. documentation, as described under LEGAL ISSUES.
  116.  
  117.  
  118. LEGAL ISSUES
  119. ============
  120.  
  121. In plain English:
  122.  
  123. 1. We don't promise that this software works.  (But if you find any bugs,
  124.    please let us know!)
  125. 2. You can use this software for whatever you want.  You don't have to pay us.
  126. 3. You may not pretend that you wrote this software.  If you use it in a
  127.    program, you must acknowledge somewhere in your documentation that
  128.    you've used the IJG code.
  129.  
  130. In legalese:
  131.  
  132. The authors make NO WARRANTY or representation, either express or implied,
  133. with respect to this software, its quality, accuracy, merchantability, or
  134. fitness for a particular purpose.  This software is provided "AS IS", and you,
  135. its user, assume the entire risk as to its quality and accuracy.
  136.  
  137. This software is copyright (C) 1991, 1992, 1993, 1994, Thomas G. Lane.
  138. All Rights Reserved except as specified below.
  139.  
  140. Permission is hereby granted to use, copy, modify, and distribute this
  141. software (or portions thereof) for any purpose, without fee, subject to these
  142. conditions:
  143. (1) If any part of the source code for this software is distributed, then this
  144. README file must be included, with this copyright and no-warranty notice
  145. unaltered; and any additions, deletions, or changes to the original files
  146. must be clearly indicated in accompanying documentation.
  147. (2) If only executable code is distributed, then the accompanying
  148. documentation must state that "this software is based in part on the work of
  149. the Independent JPEG Group".
  150. (3) Permission for use of this software is granted only if the user accepts
  151. full responsibility for any undesirable consequences; the authors accept
  152. NO LIABILITY for damages of any kind.
  153.  
  154. These conditions apply to any software derived from or based on the IJG code,
  155. not just to the unmodified library.  If you use our work, you ought to
  156. acknowledge us.
  157.  
  158. Permission is NOT granted for the use of any IJG author's name or company name
  159. in advertising or publicity relating to this software or products derived from
  160. it.  This software may be referred to only as "the Independent JPEG Group's
  161. software".
  162.  
  163. We specifically permit and encourage the use of this software as the basis of
  164. commercial products, provided that all warranty or liability claims are
  165. assumed by the product vendor.
  166.  
  167.  
  168. ansi2knr.c is included in this distribution by permission of L. Peter Deutsch,
  169. sole proprietor of its copyright holder, Aladdin Enterprises of Menlo Park, CA.
  170. ansi2knr.c is NOT covered by the above copyright and conditions, but instead
  171. by the usual distribution terms of the Free Software Foundation; principally,
  172. that you must include source code if you redistribute it.  (See the file
  173. ansi2knr.c for full details.)  However, since ansi2knr.c is not needed as part
  174. of any program generated from the IJG code, this does not limit you more than
  175. the foregoing paragraphs do.
  176.  
  177. The configuration script "configure" was produced by GNU Autoconf.  Again,
  178. the FSF copyright terms apply only to configure, not to the IJG code; and
  179. again, that does not limit your use of the object code.
  180.  
  181. It appears that the arithmetic coding option of the JPEG spec is covered by
  182. patents owned by IBM, AT&T, and Mitsubishi.  Hence arithmetic coding cannot
  183. legally be used without obtaining one or more licenses.  For this reason,
  184. support for arithmetic coding has been removed from the free JPEG software.
  185. (Since arithmetic coding provides only a marginal gain over the unpatented
  186. Huffman mode, it is unlikely that very many implementations will support it.)
  187. So far as we are aware, there are no patent restrictions on the remaining
  188. code.
  189.  
  190. We are required to state that
  191.     "The Graphics Interchange Format(c) is the Copyright property of
  192.     CompuServe Incorporated.  GIF(sm) is a Service Mark property of
  193.     CompuServe Incorporated."
  194.  
  195.  
  196. REFERENCES
  197. ==========
  198.  
  199. We highly recommend reading one or more of these references before trying to
  200. understand the innards of the JPEG software.
  201.  
  202. The best short technical introduction to the JPEG compression algorithm is
  203.     Wallace, Gregory K.  "The JPEG Still Picture Compression Standard",
  204.     Communications of the ACM, April 1991 (vol. 34 no. 4), pp. 30-44.
  205. (Adjacent articles in that issue discuss MPEG motion picture compression,
  206. applications of JPEG, and related topics.)  If you don't have the CACM issue
  207. handy, a PostScript file containing a revised version of Wallace's article is
  208. available at ftp.uu.net, graphics/jpeg/wallace.ps.gz.  The file (actually a
  209. preprint for an article to appear in IEEE Trans. Consumer Electronics) omits
  210. the sample images that appeared in CACM, but it includes corrections and some
  211. added material.  Note: the Wallace article is copyright ACM and IEEE, and it
  212. may not be used for commercial purposes.
  213.  
  214. A somewhat less technical, more leisurely introduction to JPEG can be found in
  215. "The Data Compression Book" by Mark Nelson, published by M&T Books (Redwood
  216. City, CA), 1991, ISBN 1-55851-216-0.  This book provides good explanations and
  217. example C code for a multitude of compression methods including JPEG.  It is
  218. an excellent source if you are comfortable reading C code but don't know much
  219. about data compression in general.  The book's JPEG sample code is far from
  220. industrial-strength, but when you are ready to look at a full implementation,
  221. you've got one here...
  222.  
  223. The best full description of JPEG is the textbook "JPEG Still Image Data
  224. Compression Standard" by William B. Pennebaker and Joan L. Mitchell, published
  225. by Van Nostrand Reinhold, 1993, ISBN 0-442-01272-1.  Price US$59.95, 638 pp.
  226. The book includes the complete text of the ISO JPEG standards (DIS 10918-1
  227. and draft DIS 10918-2).  This is by far the most complete exposition of JPEG
  228. in existence, and we highly recommend it.
  229.  
  230. The JPEG standard itself is not available electronically; you must order a
  231. paper copy through ISO.  (Unless you feel a need to own a certified official
  232. copy, we recommend buying the Pennebaker and Mitchell book instead; it's much
  233. cheaper and includes a great deal of useful explanatory material.)  In the US,
  234. copies of the standard may be ordered from ANSI Sales at (212) 642-4900, or
  235. from Global Engineering Documents at (800) 854-7179.  (ANSI doesn't take
  236. credit card orders, but Global does.)  It's not cheap: as of 1992, ANSI was
  237. charging $95 for Part 1 and $47 for Part 2, plus 7% shipping/handling.  The
  238. standard is divided into two parts, Part 1 being the actual specification,
  239. while Part 2 covers compliance testing methods.  Part 1 is titled "Digital
  240. Compression and Coding of Continuous-tone Still Images, Part 1: Requirements
  241. and guidelines" and has document number ISO/IEC IS 10918-1.  As of mid-1994,
  242. Part 2 is still at Draft International Standard status.  It is titled "Digital
  243. Compression and Coding of Continuous-tone Still Images, Part 2: Compliance
  244. testing" and has document number ISO/IEC DIS 10918-2.  (The document number
  245. will change to IS 10918-2 when final approval is obtained.)  A Part 3,
  246. covering extensions, is likely to appear in draft form in late 1994.
  247.  
  248. The JPEG standard does not specify all details of an interchangeable file
  249. format.  For the omitted details we follow the "JFIF" conventions, revision
  250. 1.02.  A copy of the JFIF spec is available from:
  251.     Literature Department
  252.     C-Cube Microsystems, Inc.
  253.     1778 McCarthy Blvd.
  254.     Milpitas, CA 95035
  255.     phone (408) 944-6300,  fax (408) 944-6314
  256. A PostScript version of this document is available at ftp.uu.net, file
  257. graphics/jpeg/jfif.ps.gz.  It can also be obtained by e-mail from the C-Cube
  258. mail server, netlib@c3.pla.ca.us.  Send the message "send jfif_ps from jpeg"
  259. to the server to obtain the JFIF document; send the message "help" if you have
  260. trouble.
  261.  
  262. The TIFF 6.0 file format specification can be obtained by FTP from sgi.com
  263. (192.48.153.1), file graphics/tiff/TIFF6.ps.Z; or you can order a printed copy
  264. from Aldus Corp. at (206) 628-6593.  It should be noted that the TIFF 6.0 spec
  265. of 3-June-92 has a number of serious problems in its JPEG features.  A
  266. redesign effort is currently underway to correct these problems; it is
  267. expected to result in a new, incompatible, spec.  IJG intends to support the
  268. corrected version of TIFF when the new spec is issued.
  269.  
  270.  
  271. ARCHIVE LOCATIONS
  272. =================
  273.  
  274. The "official" archive site for this software is ftp.uu.net (Internet
  275. address 192.48.96.9).  The most recent released version can always be found
  276. there in directory graphics/jpeg.  This particular version will be archived
  277. as graphics/jpeg/jpegsrc.v5.tar.gz.  If you are on the Internet, you
  278. can retrieve files from ftp.uu.net by standard anonymous FTP.  If you don't
  279. have FTP access, UUNET's archives are also available via UUCP; contact
  280. help@uunet.uu.net for information on retrieving files that way.
  281.  
  282. Numerous Internet sites maintain copies of the UUNET files; in particular,
  283. you can probably find a copy at any site that archives comp.sources.misc
  284. submissions.  However, only ftp.uu.net is guaranteed to have the latest
  285. official version.
  286.  
  287. You can also obtain this software from CompuServe, in the GRAPHSUPPORT forum
  288. (GO GRAPHSUP); this version will be file jpsrc5.zip in library 15.  Again,
  289. CompuServe is not guaranteed to have the very latest version.
  290.  
  291. The JPEG FAQ (Frequently Asked Questions) article is a useful source of
  292. general information about JPEG.  It is updated constantly and therefore
  293. is not included in this distribution.  The FAQ is posted every two weeks
  294. to Usenet newsgroups comp.graphics, news.answers, and other groups.  You
  295. can always obtain the latest version from the news.answers archive at
  296. rtfm.mit.edu (18.181.0.24).  By FTP, fetch /pub/usenet/news.answers/jpeg-faq.
  297. If you don't have FTP, send e-mail to mail-server@rtfm.mit.edu with body
  298. "send usenet/news.answers/jpeg-faq".
  299.  
  300.  
  301. RELATED SOFTWARE
  302. ================
  303.  
  304. Numerous viewing and image manipulation programs now support JPEG.  (Quite a
  305. few of them use this library to do so.)  The JPEG FAQ described above lists
  306. some of the more popular free and shareware viewers, and tells where to
  307. obtain them on Internet.
  308.  
  309. If you are on a Unix machine, we highly recommend Jef Poskanzer's free
  310. PBMPLUS image software, which provides many useful operations on PPM-format
  311. image files.  In particular, it can convert PPM images to and from a wide
  312. range of other formats.  You can obtain this package by FTP from ftp.x.org
  313. (contrib/pbmplus*.tar.Z) or ftp.ee.lbl.gov (pbmplus*.tar.Z).  There is also
  314. a newer update of this package called NETPBM, available from
  315. wuarchive.wustl.edu under directory /graphics/graphics/packages/NetPBM/.
  316. Unfortunately PBMPLUS/NETPBM is not nearly as portable as the IJG software
  317. is; you are likely to have difficulty making it work on any non-Unix machine.
  318.  
  319. A different free JPEG implementation, written by the PVRG group at Stanford,
  320. is available from havefun.stanford.edu in directory pub/jpeg.  This program
  321. is designed for research and experimentation rather than production use;
  322. it is slower, harder to use, and less portable than the IJG code, but it
  323. implements a larger subset of the JPEG standard.  In particular, it supports
  324. lossless JPEG.
  325.  
  326.  
  327. FILE FORMAT WARS
  328. ================
  329.  
  330. Some JPEG programs produce files that are not compatible with our library.
  331. The root of the problem is that the ISO JPEG committee failed to specify a
  332. concrete file format.  Some vendors "filled in the blanks" on their own,
  333. creating proprietary formats that no one else could read.  (For example, none
  334. of the early commercial JPEG implementations for the Macintosh were able to
  335. exchange compressed files.)
  336.  
  337. The file format we have adopted is called JFIF (see REFERENCES).  This format
  338. has been agreed to by a number of major commercial JPEG vendors, and it has
  339. become the de facto standard.  JFIF is a minimal or "low end" representation.
  340. Work is also going forward to incorporate JPEG compression into the TIFF
  341. standard, for use in "high end" applications that need to record a lot of
  342. additional data about an image.  We intend to support TIFF in the future.
  343. We hope that these two formats will be sufficient and that other,
  344. incompatible JPEG file formats will not proliferate.
  345.  
  346. Indeed, part of the reason for developing and releasing this free software is
  347. to help force rapid convergence to de facto standards for JPEG file formats.
  348. SUPPORT STANDARD, NON-PROPRIETARY FORMATS: demand JFIF or TIFF/JPEG!
  349.  
  350.  
  351. TO DO
  352. =====
  353.  
  354. In future versions, we are considering supporting progressive JPEG
  355. compression, the upcoming JPEG Part 3 extensions, and other improvements.
  356.  
  357. As always, speeding things up is high on our priority list.
  358.  
  359. Please send bug reports, offers of help, etc. to jpeg-info@uunet.uu.net.
  360.