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