1 CHANGE LOG for Independent JPEG Group's JPEG software
5 -----------------------
7 Repair problem in new memory source manager with corrupt JPEG data.
8 Thank to Ted Campbell and Samuel Chun for the report.
10 Repair problem in Makefile.am test target.
11 Thank to anonymous user for the report.
13 Support MinGW installation with automatic configure.
14 Thank to Volker Grabsch for the suggestion.
17 Version 8a 28-Feb-2010
18 -----------------------
20 Writing tables-only datastreams via jpeg_write_tables works again.
22 Support 32-bit BMPs (RGB image with Alpha channel) for read in cjpeg.
23 Thank to Brett Blackham for the suggestion.
25 Improve accuracy in floating point IDCT calculation.
26 Thank to Robert Hooke for the hint.
30 ----------------------
32 jpegtran now supports the same -scale option as djpeg for "lossless" resize.
33 An implementation of the JPEG SmartScale extension is required for this
34 feature. A (draft) specification of the JPEG SmartScale extension is
35 available as a contributed document at ITU and ISO. Revision 2 or later
36 of the document is required (latest document version is Revision 3).
37 The SmartScale extension will enable more features beside lossless resize
38 in future implementations, as described in the document (new compression
41 Add sanity check in BMP reader module to avoid cjpeg crash for empty input
42 image (thank to Isaev Ildar of ISP RAS, Moscow, RU for reporting this error).
44 Add data source and destination managers for read from and write to
45 memory buffers. New API functions jpeg_mem_src and jpeg_mem_dest.
46 Thank to Roberto Boni from Italy for the suggestion.
50 ----------------------
52 New scaled DCTs implemented.
53 djpeg now supports scalings N/8 with all N from 1 to 16.
54 cjpeg now supports scalings 8/N with all N from 1 to 16.
55 Scaled DCTs with size larger than 8 are now also used for resolving the
56 common 2x2 chroma subsampling case without additional spatial resampling.
57 Separate spatial resampling for those kind of files is now only necessary
58 for N>8 scaling cases.
59 Furthermore, separate scaled DCT functions are provided for direct resolving
60 of the common asymmetric subsampling cases (2x1 and 1x2) without additional
63 cjpeg -quality option has been extended for support of separate quality
64 settings for luminance and chrominance (or in general, for every provided
65 quantization table slot).
66 New API function jpeg_default_qtables() and q_scale_factor array in library.
68 Added -nosmooth option to cjpeg, complementary to djpeg.
69 New variable "do_fancy_downsampling" in library, complement to fancy
70 upsampling. Fancy upsampling now uses direct DCT scaling with sizes
71 larger than 8. The old method is not reversible and has been removed.
73 Support arithmetic entropy encoding and decoding.
74 Added files jaricom.c, jcarith.c, jdarith.c.
76 Straighten the file structure:
77 Removed files jidctred.c, jcphuff.c, jchuff.h, jdphuff.c, jdhuff.h.
79 jpegtran has a new "lossless" cropping feature.
81 Implement -perfect option in jpegtran, new API function
82 jtransform_perfect_transform() in transupp. (DP 204_perfect.dpatch)
84 Better error messages for jpegtran fopen failure.
85 (DP 203_jpegtran_errmsg.dpatch)
87 Fix byte order issue with 16bit PPM/PGM files in rdppm.c/wrppm.c:
88 according to Netpbm, the de facto standard implementation of the PNM formats,
89 the most significant byte is first. (DP 203_rdppm.dpatch)
91 Add -raw option to rdjpgcom not to mangle the output.
92 (DP 205_rdjpgcom_raw.dpatch)
94 Make rdjpgcom locale aware. (DP 201_rdjpgcom_locale.dpatch)
96 Add extern "C" to jpeglib.h.
97 This avoids the need to put extern "C" { ... } around #include "jpeglib.h"
98 in your C++ application. Defining the symbol DONT_USE_EXTERN_C in the
99 configuration prevents this. (DP 202_jpeglib.h_c++.dpatch)
102 Version 6b 27-Mar-1998
103 -----------------------
105 jpegtran has new features for lossless image transformations (rotation
106 and flipping) as well as "lossless" reduction to grayscale.
108 jpegtran now copies comments by default; it has a -copy switch to enable
109 copying all APPn blocks as well, or to suppress comments. (Formerly it
110 always suppressed comments and APPn blocks.) jpegtran now also preserves
111 JFIF version and resolution information.
113 New decompressor library feature: COM and APPn markers found in the input
114 file can be saved in memory for later use by the application. (Before,
115 you had to code this up yourself with a custom marker processor.)
117 There is an unused field "void * client_data" now in compress and decompress
118 parameter structs; this may be useful in some applications.
120 JFIF version number information is now saved by the decoder and accepted by
121 the encoder. jpegtran uses this to copy the source file's version number,
122 to ensure "jpegtran -copy all" won't create bogus files that contain JFXX
123 extensions but claim to be version 1.01. Applications that generate their
124 own JFXX extension markers also (finally) have a supported way to cause the
125 encoder to emit JFIF version number 1.02.
127 djpeg's trace mode reports JFIF 1.02 thumbnail images as such, rather
128 than as unknown APP0 markers.
130 In -verbose mode, djpeg and rdjpgcom will try to print the contents of
131 APP12 markers as text. Some digital cameras store useful text information
134 Handling of truncated data streams is more robust: blocks beyond the one in
135 which the error occurs will be output as uniform gray, or left unchanged
136 if decoding a progressive JPEG. The appearance no longer depends on the
137 Huffman tables being used.
139 Huffman tables are checked for validity much more carefully than before.
141 To avoid the Unisys LZW patent, djpeg's GIF output capability has been
142 changed to produce "uncompressed GIFs", and cjpeg's GIF input capability
143 has been removed altogether. We're not happy about it either, but there
144 seems to be no good alternative.
146 The configure script now supports building libjpeg as a shared library
147 on many flavors of Unix (all the ones that GNU libtool knows how to
148 build shared libraries for). Use "./configure --enable-shared" to
151 New jconfig file and makefiles for Microsoft Visual C++ and Developer Studio.
152 Also, a jconfig file and a build script for Metrowerks CodeWarrior
153 on Apple Macintosh. makefile.dj has been updated for DJGPP v2, and there
154 are miscellaneous other minor improvements in the makefiles.
156 jmemmac.c now knows how to create temporary files following Mac System 7
159 djpeg's -map switch is now able to read raw-format PPM files reliably.
161 cjpeg -progressive -restart no longer generates any unnecessary DRI markers.
163 Multiple calls to jpeg_simple_progression for a single JPEG object
164 no longer leak memory.
170 Library initialization sequence modified to detect version mismatches
171 and struct field packing mismatches between library and calling application.
172 This change requires applications to be recompiled, but does not require
173 any application source code change.
175 All routine declarations changed to the style "GLOBAL(type) name ...",
176 that is, GLOBAL, LOCAL, METHODDEF, EXTERN are now macros taking the
177 routine's return type as an argument. This makes it possible to add
178 Microsoft-style linkage keywords to all the routines by changing just
179 these macros. Note that any application code that was using these macros
180 will have to be changed.
182 DCT coefficient quantization tables are now stored in normal array order
183 rather than zigzag order. Application code that calls jpeg_add_quant_table,
184 or otherwise manipulates quantization tables directly, will need to be
185 changed. If you need to make such code work with either older or newer
186 versions of the library, a test like "#if JPEG_LIB_VERSION >= 61" is
189 djpeg's trace capability now dumps DQT tables in natural order, not zigzag
190 order. This allows the trace output to be made into a "-qtables" file
193 New system-dependent memory manager module for use on Apple Macintosh.
195 Fix bug in cjpeg's -smooth option: last one or two scanlines would be
196 duplicates of the prior line unless the image height mod 16 was 1 or 2.
198 Repair minor problems in VMS, BCC, MC6 makefiles.
200 New configure script based on latest GNU Autoconf.
202 Correct the list of include files needed by MetroWerks C for ccommand().
204 Numerous small documentation updates.
210 Progressive JPEG support: library can read and write full progressive JPEG
211 files. A "buffered image" mode supports incremental decoding for on-the-fly
212 display of progressive images. Simply recompiling an existing IJG-v5-based
213 decoder with v6 should allow it to read progressive files, though of course
214 without any special progressive display.
216 New "jpegtran" application performs lossless transcoding between different
217 JPEG formats; primarily, it can be used to convert baseline to progressive
218 JPEG and vice versa. In support of jpegtran, the library now allows lossless
219 reading and writing of JPEG files as DCT coefficient arrays. This ability
220 may be of use in other applications.
222 Notes for programmers:
223 * We changed jpeg_start_decompress() to be able to suspend; this makes all
224 decoding modes available to suspending-input applications. However,
225 existing applications that use suspending input will need to be changed
226 to check the return value from jpeg_start_decompress(). You don't need to
227 do anything if you don't use a suspending data source.
228 * We changed the interface to the virtual array routines: access_virt_array
229 routines now take a count of the number of rows to access this time. The
230 last parameter to request_virt_array routines is now interpreted as the
231 maximum number of rows that may be accessed at once, but not necessarily
232 the height of every access.
236 ---------------------
238 Correct bugs with grayscale images having v_samp_factor > 1.
240 jpeg_write_raw_data() now supports output suspension.
242 Correct bugs in "configure" script for case of compiling in
243 a directory other than the one containing the source files.
245 Repair bug in jquant1.c: sometimes didn't use as many colors as it could.
247 Borland C makefile and jconfig file work under either MS-DOS or OS/2.
249 Miscellaneous improvements to documentation.
255 Changed color conversion roundoff behavior so that grayscale values are
256 represented exactly. (This causes test image files to change.)
258 Make ordered dither use 16x16 instead of 4x4 pattern for a small quality
261 New configure script based on latest GNU Autoconf.
262 Fix configure script to handle CFLAGS correctly.
263 Rename *.auto files to *.cfg, so that configure script still works if
264 file names have been truncated for DOS.
266 Fix bug in rdbmp.c: didn't allow for extra data between header and image.
268 Modify rdppm.c/wrppm.c to handle 2-byte raw PPM/PGM formats for 12-bit data.
270 Fix several bugs in rdrle.c.
272 NEED_SHORT_EXTERNAL_NAMES option was broken.
274 Revise jerror.h/jerror.c for more flexibility in message table.
276 Repair oversight in jmemname.c NO_MKTEMP case: file could be there
283 Version 5 represents a nearly complete redesign and rewrite of the IJG
284 software. Major user-visible changes include:
285 * Automatic configuration simplifies installation for most Unix systems.
286 * A range of speed vs. image quality tradeoffs are supported.
287 This includes resizing of an image during decompression: scaling down
288 by a factor of 1/2, 1/4, or 1/8 is handled very efficiently.
289 * New programs rdjpgcom and wrjpgcom allow insertion and extraction
290 of text comments in a JPEG file.
292 The application programmer's interface to the library has changed completely.
293 Notable improvements include:
294 * We have eliminated the use of callback routines for handling the
295 uncompressed image data. The application now sees the library as a
296 set of routines that it calls to read or write image data on a
297 scanline-by-scanline basis.
298 * The application image data is represented in a conventional interleaved-
299 pixel format, rather than as a separate array for each color channel.
300 This can save a copying step in many programs.
301 * The handling of compressed data has been cleaned up: the application can
302 supply routines to source or sink the compressed data. It is possible to
303 suspend processing on source/sink buffer overrun, although this is not
304 supported in all operating modes.
305 * All static state has been eliminated from the library, so that multiple
306 instances of compression or decompression can be active concurrently.
307 * JPEG abbreviated datastream formats are supported, ie, quantization and
308 Huffman tables can be stored separately from the image data.
309 * And not only that, but the documentation of the library has improved
313 The last widely used release before the version 5 rewrite was version 4A of
314 18-Feb-93. Change logs before that point have been discarded, since they
315 are not of much interest after the rewrite.