blob: 7c640a8abde954579e7332c37dca2081e5f5d868 [file] [log] [blame]
Glenn Randers-Pehrson896239b1998-04-21 15:03:57 -05001
Glenn Randers-Pehrson4393a9a1999-09-17 12:27:26 -05002Known bugs and suggested enhancements in libpng-1.0.4
Glenn Randers-Pehrson896239b1998-04-21 15:03:57 -05003
Glenn Randers-Pehrson896239b1998-04-21 15:03:57 -05004
Glenn Randers-Pehrson345bc271998-06-14 14:43:31 -050051. March 15, 1998 -- OPTIMIZATION -- Kevin Bracey
Glenn Randers-Pehrson896239b1998-04-21 15:03:57 -05006
7 Loops need to be optimized everywhere
8
Glenn Randers-Pehrson345bc271998-06-14 14:43:31 -05009 Make them count down instead of up -- Kevin Bracey
Glenn Randers-Pehrson5c6aeb21998-12-29 11:47:59 -060010
Glenn Randers-Pehrson345bc271998-06-14 14:43:31 -050011 Optimizing compilers don't need this, and making
12 the change would be error prone -- Tom Lane, Glenn R-P
Glenn Randers-Pehrson896239b1998-04-21 15:03:57 -050013
Glenn Randers-Pehrson345bc271998-06-14 14:43:31 -050014 Question whether i-- or --i is better.
Glenn Randers-Pehrson896239b1998-04-21 15:03:57 -050015
Glenn Randers-Pehrson345bc271998-06-14 14:43:31 -050016 STATUS: Under investigation, postponed until after
Glenn Randers-Pehrson4393a9a1999-09-17 12:27:26 -050017 libpng-1.0.4. About 160 loops will be turned around
Glenn Randers-Pehrson5c6aeb21998-12-29 11:47:59 -060018 in libpng-1.0.Nn, for testing.
19
Glenn Randers-Pehrson87544ac1999-01-13 22:06:39 -0600202. July 4, 1998 -- ENHANCEMENT -- Glenn R-P
Glenn Randers-Pehrson5c6aeb21998-12-29 11:47:59 -060021
Glenn Randers-Pehrson4393a9a1999-09-17 12:27:26 -050022 libpng-1.0.4 and earlier transform colors to gamma=1.0 space for
Glenn Randers-Pehrson5c6aeb21998-12-29 11:47:59 -060023 merging with background, and then back to the image's gamma. The
24 bit_depth of the intermediate (gamma=1.0) representation is probably
25 not sufficient. In the typical gamma=1/2.2 situation, the linear
26 pixels need about 4 more bits than the gamma-encoded ones, to avoid
27 loss of precision. A similar situation exists with the rgb_to_gray
28 operation.
29
30 STATUS: under development.
31
Glenn Randers-Pehrson4393a9a1999-09-17 12:27:26 -0500323. September 1999 -- ENHANCEMENT --
33
34 It should be possible to use libpng without floating-point aritmetic.
35
36 STATUS: Under investigation, implementation postponed until after
37 libpng-1.0.4. The application interface will change because replacements
38 for the png_set_gAMA(), png_set_cHRM(), and corresponding png_get_()
39 functions will be needed.
Glenn Randers-Pehrson896239b1998-04-21 15:03:57 -050040