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