[devel] Use fast integer PNG_DIVIDE_BY_255() or PNG_DIVIDE_BY_65535()

to accomplish alpha premultiplication when PNG_READ_COMPOSITE_NODIV_SUPPORTED
is defined.  Changed "/255" to "/255.0" in background calculations to make it
clear that the 255 is used as a double (and to prevent anyone from being
tempted to use PNG_DIVIDE_BY_255() there).
This commit is contained in:
Glenn Randers-Pehrson
2009-11-24 07:26:06 -06:00
parent 2a087220dd
commit 768429bbc1
4 changed files with 54 additions and 29 deletions

View File

@@ -1,5 +1,5 @@
Libpng 1.4.0beta105 - November 22, 2009
Libpng 1.4.0beta105 - November 24, 2009
This is not intended to be a public release. It will be replaced
within a few weeks by a public version or by another test version.
@@ -708,7 +708,11 @@ version 1.4.0beta104 [November 22, 2009]
Removed png_longjmp_ptr from scripts/*.def and libpng.3
Rebuilt configure scripts with autoconf-2.65
version 1.4.0beta105 [November 22, 2009]
version 1.4.0beta105 [November 24, 2009]
Use fast integer PNG_DIVIDE_BY_255() or PNG_DIVIDE_BY_65535() to accomplish
alpha premultiplication when PNG_READ_COMPOSITE_NODIV_SUPPORTED is defined.
Changed "/255" to "/255.0" in background calculations to make it clear
that the 255 is used as a double.
Send comments/corrections/commendations to png-mng-implement at lists.sf.net
(subscription required; visit