|
42 | 42 | #include "pngpriv.h" |
43 | 43 |
|
44 | 44 | /* Generate a compiler error if there is an old png.h in the search path. */ |
45 | | -typedef png_libpng_version_1_6_55 Your_png_h_is_not_version_1_6_55; |
| 45 | +typedef png_libpng_version_1_6_56 Your_png_h_is_not_version_1_6_56; |
46 | 46 |
|
47 | 47 | /* Sanity check the chunks definitions - PNG_KNOWN_CHUNKS from pngpriv.h and the |
48 | 48 | * corresponding macro definitions. This causes a compile time failure if |
@@ -849,7 +849,7 @@ png_get_copyright(png_const_structrp png_ptr) |
849 | 849 | return PNG_STRING_COPYRIGHT |
850 | 850 | #else |
851 | 851 | return PNG_STRING_NEWLINE \ |
852 | | - "libpng version 1.6.55" PNG_STRING_NEWLINE \ |
| 852 | + "libpng version 1.6.56" PNG_STRING_NEWLINE \ |
853 | 853 | "Copyright (c) 2018-2026 Cosmin Truta" PNG_STRING_NEWLINE \ |
854 | 854 | "Copyright (c) 1998-2002,2004,2006-2018 Glenn Randers-Pehrson" \ |
855 | 855 | PNG_STRING_NEWLINE \ |
@@ -1199,7 +1199,7 @@ png_xy_from_XYZ(png_xy *xy, const png_XYZ *XYZ) |
1199 | 1199 | return 1; |
1200 | 1200 |
|
1201 | 1201 | /* The reference white is simply the sum of the end-point (X,Y,Z) vectors so |
1202 | | - * the fillowing calculates (X+Y+Z) of the reference white (media white, |
| 1202 | + * the following calculates (X+Y+Z) of the reference white (media white, |
1203 | 1203 | * encoding white) itself: |
1204 | 1204 | */ |
1205 | 1205 | d = dblue; |
@@ -1244,9 +1244,9 @@ png_XYZ_from_xy(png_XYZ *XYZ, const png_xy *xy) |
1244 | 1244 | * (-0.0770) because the PNG spec itself requires the xy values to be |
1245 | 1245 | * unsigned. whitey is also required to be 5 or more to avoid overflow. |
1246 | 1246 | * |
1247 | | - * Instead the upper limits have been relaxed to accomodate ACES AP1 where |
| 1247 | + * Instead the upper limits have been relaxed to accommodate ACES AP1 where |
1248 | 1248 | * redz ends up as -600 (-0.006). ProPhotoRGB was already "in range." |
1249 | | - * The new limit accomodates the AP0 and AP1 ranges for z but not AP0 redy. |
| 1249 | + * The new limit accommodates the AP0 and AP1 ranges for z but not AP0 redy. |
1250 | 1250 | */ |
1251 | 1251 | const png_fixed_point fpLimit = PNG_FP_1+(PNG_FP_1/10); |
1252 | 1252 | if (xy->redx < 0 || xy->redx > fpLimit) return 1; |
@@ -1357,7 +1357,7 @@ png_XYZ_from_xy(png_XYZ *XYZ, const png_xy *xy) |
1357 | 1357 | * red-scale + green-scale + blue-scale = 1/white-y = white-scale |
1358 | 1358 | * |
1359 | 1359 | * So now we have a Cramer's rule solution where the determinants are just |
1360 | | - * 3x3 - far more tractible. Unfortunately 3x3 determinants still involve |
| 1360 | + * 3x3 - far more tractable. Unfortunately 3x3 determinants still involve |
1361 | 1361 | * multiplication of three coefficients so we can't guarantee to avoid |
1362 | 1362 | * overflow in the libpng fixed point representation. Using Cramer's rule in |
1363 | 1363 | * floating point is probably a good choice here, but it's not an option for |
@@ -1726,7 +1726,7 @@ png_icc_check_header(png_const_structrp png_ptr, png_const_charp name, |
1726 | 1726 | * into R, G and B channels. |
1727 | 1727 | * |
1728 | 1728 | * Previously it was suggested that an RGB profile on grayscale data could be |
1729 | | - * handled. However it it is clear that using an RGB profile in this context |
| 1729 | + * handled. However it is clear that using an RGB profile in this context |
1730 | 1730 | * must be an error - there is no specification of what it means. Thus it is |
1731 | 1731 | * almost certainly more correct to ignore the profile. |
1732 | 1732 | */ |
@@ -2944,7 +2944,7 @@ png_gamma_significant(png_fixed_point gamma_val) |
2944 | 2944 | * |
2945 | 2945 | * 2.2/(2+51/256) == 1.00035524 |
2946 | 2946 | * |
2947 | | - * I.e. vanishly small (<4E-4) but still detectable in 16-bit linear (+/- |
| 2947 | + * I.e. vanishingly small (<4E-4) but still detectable in 16-bit linear (+/- |
2948 | 2948 | * 23). Note that the Adobe choice seems to be something intended to give an |
2949 | 2949 | * exact number with 8 binary fractional digits - it is the closest to 2.2 |
2950 | 2950 | * that is possible a base 2 .8p representation. |
|
0 commit comments