mirror of
https://git.code.sf.net/p/libpng/code.git
synced 2025-07-10 18:04:09 +02:00
[libpng17] Imported from libpng-1.7.0beta67.tar
This commit is contained in:
@@ -7158,7 +7158,7 @@ image_transform_png_set_rgb_to_gray_ini(const image_transform *this,
|
||||
* conversion adds another +/-2 in the 16-bit case and
|
||||
* +/-(1<<(15-PNG_MAX_GAMMA_8)) in the 8-bit case.
|
||||
*/
|
||||
that->pm->limit += (pow)(
|
||||
that->pm->limit += pow(
|
||||
# if PNG_MAX_GAMMA_8 < 14
|
||||
(that->this.bit_depth == 16 ? 8. :
|
||||
6. + (1<<(15-PNG_MAX_GAMMA_8)))
|
||||
@@ -7182,7 +7182,7 @@ image_transform_png_set_rgb_to_gray_ini(const image_transform *this,
|
||||
* affects the limit used for checking for internal calculation errors,
|
||||
* not the actual limit imposed by pngvalid on the output errors.
|
||||
*/
|
||||
that->pm->limit += (pow)(
|
||||
that->pm->limit += pow(
|
||||
# if DIGITIZE
|
||||
1.3
|
||||
# else
|
||||
@@ -10960,13 +10960,11 @@ static const color_encoding test_encodings[] =
|
||||
/*red: */ { 0.716500716779386, 0.258728243040113, 0.000000000000000 },
|
||||
/*green:*/ { 0.101020574397477, 0.724682314948566, 0.051211818965388 },
|
||||
/*blue: */ { 0.146774385252705, 0.016589442011321, 0.773892783545073} },
|
||||
#if PNG_LIBPNG_VER >= 10700
|
||||
/* Fake encoding which selects just the green channel */
|
||||
/*gamma:*/ { 1.45/2.2, /* the 'Mac' gamma */
|
||||
/*red: */ { 0.716500716779386, 0.000000000000000, 0.000000000000000 },
|
||||
/*green:*/ { 0.101020574397477, 1.000000000000000, 0.051211818965388 },
|
||||
/*blue: */ { 0.146774385252705, 0.000000000000000, 0.773892783545073} },
|
||||
#endif
|
||||
};
|
||||
|
||||
/* signal handler
|
||||
|
||||
Reference in New Issue
Block a user