[libpng16] Corrected simplified API default gamma for color-mapped output, added

a flag to change default. In 1.6.0 when the simplified API was used
to produce color-mapped output from an input image with no gamma
information the gamma assumed for the input could be different from
that assumed for non-color-mapped output.  In particular 16-bit depth
input files were assumed to be sRGB encoded, whereas in the 'direct'
case they were assumed to have linear data.  This was an error.  The
fix makes the simplified API treat all input files the same way and
adds a new flag to the png_image::flags member to allow the
application/user to specify that 16-bit files contain sRGB data
rather than the default linear.
Fixed bugs in the pngpixel and makepng test programs.
This commit is contained in:
John Bowler
2013-03-06 22:15:25 -06:00
committed by Glenn Randers-Pehrson
parent 1f24cb74f2
commit 59ae38984f
7 changed files with 90 additions and 14 deletions

View File

@@ -1,5 +1,5 @@
Libpng 1.6.1beta07 - March 4, 2013
Libpng 1.6.1beta07 - March 7, 2013
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.
@@ -79,7 +79,19 @@ Version 1.6.1beta06 [March 4, 2013]
settings to depend on options and options can now set (or override) the
defaults for settings.
Version 1.6.1beta07 [March 4, 2013]
Version 1.6.1beta07 [March 7, 2013]
Corrected simplified API default gamma for color-mapped output, added
a flag to change default. In 1.6.0 when the simplified API was used
to produce color-mapped output from an input image with no gamma
information the gamma assumed for the input could be different from
that assumed for non-color-mapped output. In particular 16-bit depth
input files were assumed to be sRGB encoded, whereas in the 'direct'
case they were assumed to have linear data. This was an error. The
fix makes the simplified API treat all input files the same way and
adds a new flag to the png_image::flags member to allow the
application/user to specify that 16-bit files contain sRGB data
rather than the default linear.
Fixed bugs in the pngpixel and makepng test programs.
Send comments/corrections/commendations to png-mng-implement at lists.sf.net
(subscription required; visit