change.log 20 KB

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