Skip to content

Commit 0094fdb

Browse files
Fix typographical errors
Co-authored-by: Cosmin Truta <ctruta@gmail.com> Signed-off-by: Cosmin Truta <ctruta@gmail.com>
1 parent 28ae89e commit 0094fdb

File tree

21 files changed

+50
-50
lines changed

21 files changed

+50
-50
lines changed

CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ endif()
8787
option(PNG_TESTS "Build the libpng tests" ON)
8888

8989
# Same as above, but for the third-party tools.
90-
# Although these tools are targetted at development environments only,
90+
# Although these tools are targeted at development environments only,
9191
# the users are allowed to override the option to build by default.
9292
if(ANDROID OR IOS)
9393
option(PNG_TOOLS "Build the libpng tools" OFF)
@@ -730,7 +730,7 @@ function(create_symlink DEST_FILE)
730730
message(FATAL_ERROR "create_symlink: Missing arguments: FILE or TARGET")
731731
endif()
732732
if(_SYM_FILE AND _SYM_TARGET)
733-
message(FATAL_ERROR "create_symlink: Mutually-exlusive arguments:"
733+
message(FATAL_ERROR "create_symlink: Mutually-exclusive arguments:"
734734
"FILE (${_SYM_FILE}) and TARGET (${_SYM_TARGET})")
735735
endif()
736736

arm/arm_init.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ png_target_do_expand_palette_neon(png_struct *png_ptr, png_row_info *row_info,
9999
* the original code in pngrtran.c That code is now here.
100100
*
101101
* 3) The original code takes pointers to the end of the input and the end of
102-
* the output; this is the way png_do_expand_palette works becuase it
102+
* the output; this is the way png_do_expand_palette works because it
103103
* has to copy down from the end (otherwise it would overwrite the input
104104
* data before it read it). Note that the row buffer is aliased by
105105
* these two pointers.

contrib/libtests/pngstest.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2790,7 +2790,7 @@ compare_two_images(Image *a, Image *b, int via_linear,
27902790
* If an alpha channel has been *added* then it must have the relevant opaque
27912791
* value (255 or 65535).
27922792
*
2793-
* The fist two the tests (in the order given above) (using the boolean
2793+
* The first two tests (in the order given above) (using the boolean
27942794
* equivalence !a && !b == !(a || b))
27952795
*/
27962796
if (!(((formata ^ formatb) & PNG_FORMAT_FLAG_LINEAR) |

contrib/libtests/pngvalid.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6179,7 +6179,7 @@ image_pixel_add_alpha(image_pixel *this, const standard_display *display,
61796179
this->have_tRNS = 0;
61806180

61816181
/* Check the input, original, channel value here against the
6182-
* original tRNS gray chunk valie.
6182+
* original tRNS gray chunk value.
61836183
*/
61846184
if (this->red == display->transparent.red)
61856185
this->alphaf = 0;
@@ -7514,7 +7514,7 @@ static struct
75147514
double green_coefficient;
75157515
double blue_coefficient;
75167516

7517-
/* Set if the coeefficients have been overridden. */
7517+
/* Set if the coefficients have been overridden. */
75187518
int coefficients_overridden;
75197519
} data;
75207520

@@ -8988,7 +8988,7 @@ image_transform_test_counter(png_uint_32 counter, unsigned int max)
89888988
/* For max 0 or 1 continue until the counter overflows: */
89898989
counter >>= 1;
89908990

8991-
/* Continue if any entry hasn't reacked the max. */
8991+
/* Continue if any entry hasn't reached the max. */
89928992
if (max > 1 && next->local_use < max)
89938993
return 1;
89948994
next = next->list;
@@ -9674,7 +9674,7 @@ gamma_component_validate(const char *name, const validate_info *vi,
96749674
* od: encoded result from libpng
96759675
*/
96769676

9677-
/* Now we have the numbers for real errors, both absolute values as as a
9677+
/* Now we have the numbers for real errors, both absolute values as a
96789678
* percentage of the correct value (output):
96799679
*/
96809680
error = fabs(input_sample-output);
@@ -11648,7 +11648,7 @@ main(int argc, char **argv)
1164811648
# endif
1164911649

1165011650
/* The following allows results to pass if they correspond to anything in the
11651-
* transformed range [input-.5,input+.5]; this is is required because of the
11651+
* transformed range [input-.5,input+.5]; this is required because of the
1165211652
* way libpng treats the 16_TO_8 flag when building the gamma tables in
1165311653
* releases up to 1.6.0.
1165411654
*

contrib/pngminus/README.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ program are some elementary routines to read / write pgm- and ppm-files.
5353
It does not handle B&W pbm-files, but instead you could do pgm with bit-
5454
depth 1.
5555

56-
The downside of this approach is that you can not use them on images
56+
The downside of this approach is that you cannot use them on images
5757
that require blocks of memory bigger than 64k (the DOS version). For
5858
larger images you will get an out-of-memory error.
5959

contrib/visupng/VisualPng.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -832,7 +832,7 @@ BOOL FillBitmap (
832832
cxNewSize = cxWinSize - 2 * MARGIN;
833833
cyNewSize = cyWinSize - 2 * MARGIN;
834834

835-
/* stretch the image to it's window determined size */
835+
/* stretch the image to its window determined size */
836836

837837
/* the following two are mathematically the same, but the first
838838
* has side-effects because of rounding

intel/check.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
* For conditions of distribution and use, see the disclaimer
1010
* and license in png.h
1111
*/
12-
/* PNG_INTEL_SSE_IMPLEMENTATION is used in the actual implementation to selecct
12+
/* PNG_INTEL_SSE_IMPLEMENTATION is used in the actual implementation to select
1313
* the correct code.
1414
*/
1515
#if defined(__SSE4_1__) || defined(__AVX__)

manuals/libpng-manual.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2312,7 +2312,7 @@ libpng provides two macros to help you in 1.5 and later versions:
23122312
png_uint_32 height = PNG_PASS_ROWS(image_height, pass_number);
23132313

23142314
Respectively these tell you the width and height of the sub-image
2315-
corresponding to the numbered pass. 'pass' is in in the range 0 to 6 -
2315+
corresponding to the numbered pass. 'pass' is in the range 0 to 6 -
23162316
this can be confusing because the specification refers to the same passes
23172317
as 1 to 7! Be careful, you must check both the width and height before
23182318
calling png_read_rows() and not call it for that pass if either is zero.
@@ -2451,7 +2451,7 @@ point to libpng-allocated storage with the following function:
24512451

24522452
This function may be safely called when the relevant storage has
24532453
already been freed, or has not yet been allocated, or was allocated
2454-
by the user and not by libpng, and will in those cases do nothing.
2454+
by the user and not by libpng, and will in those cases do nothing.
24552455
The "seq" parameter is ignored if only one item of the selected data
24562456
type, such as PLTE, is allowed. If "seq" is not -1, and multiple items
24572457
are allowed for the data type identified in the mask, such as text or
@@ -3286,7 +3286,7 @@ disclaimer until after, so viewers working over modem connections
32863286
don't have to wait for the disclaimer to go over the modem before
32873287
they start seeing the image. Finally, keywords should be full
32883288
words, not abbreviations. Keywords and text are in the ISO 8859-1
3289-
(Latin-1) character set (a superset of regular ASCII) and can not
3289+
(Latin-1) character set (a superset of regular ASCII) and cannot
32903290
contain NUL characters, and should not contain control or other
32913291
unprintable characters. To make the comments widely readable, stick
32923292
with basic ASCII, and avoid machine specific character set extensions
@@ -3687,7 +3687,7 @@ point to libpng-allocated storage with the following function:
36873687

36883688
This function may be safely called when the relevant storage has
36893689
already been freed, or has not yet been allocated, or was allocated
3690-
by the user and not by libpng, and will in those cases do nothing.
3690+
by the user and not by libpng, and will in those cases do nothing.
36913691
The "seq" parameter is ignored if only one item of the selected data
36923692
type, such as PLTE, is allowed. If "seq" is not -1, and multiple items
36933693
are allowed for the data type identified in the mask, such as text or

manuals/libpng.3

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2819,7 +2819,7 @@ libpng provides two macros to help you in 1.5 and later versions:
28192819
png_uint_32 height = PNG_PASS_ROWS(image_height, pass_number);
28202820

28212821
Respectively these tell you the width and height of the sub-image
2822-
corresponding to the numbered pass. 'pass' is in in the range 0 to 6 -
2822+
corresponding to the numbered pass. 'pass' is in the range 0 to 6 -
28232823
this can be confusing because the specification refers to the same passes
28242824
as 1 to 7! Be careful, you must check both the width and height before
28252825
calling png_read_rows() and not call it for that pass if either is zero.
@@ -2958,7 +2958,7 @@ point to libpng-allocated storage with the following function:
29582958

29592959
This function may be safely called when the relevant storage has
29602960
already been freed, or has not yet been allocated, or was allocated
2961-
by the user and not by libpng, and will in those cases do nothing.
2961+
by the user and not by libpng, and will in those cases do nothing.
29622962
The "seq" parameter is ignored if only one item of the selected data
29632963
type, such as PLTE, is allowed. If "seq" is not \-1, and multiple items
29642964
are allowed for the data type identified in the mask, such as text or
@@ -3793,7 +3793,7 @@ disclaimer until after, so viewers working over modem connections
37933793
don't have to wait for the disclaimer to go over the modem before
37943794
they start seeing the image. Finally, keywords should be full
37953795
words, not abbreviations. Keywords and text are in the ISO 8859-1
3796-
(Latin-1) character set (a superset of regular ASCII) and can not
3796+
(Latin-1) character set (a superset of regular ASCII) and cannot
37973797
contain NUL characters, and should not contain control or other
37983798
unprintable characters. To make the comments widely readable, stick
37993799
with basic ASCII, and avoid machine specific character set extensions
@@ -4194,7 +4194,7 @@ point to libpng-allocated storage with the following function:
41944194

41954195
This function may be safely called when the relevant storage has
41964196
already been freed, or has not yet been allocated, or was allocated
4197-
by the user and not by libpng, and will in those cases do nothing.
4197+
by the user and not by libpng, and will in those cases do nothing.
41984198
The "seq" parameter is ignored if only one item of the selected data
41994199
type, such as PLTE, is allowed. If "seq" is not \-1, and multiple items
42004200
are allowed for the data type identified in the mask, such as text or

png.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1142,7 +1142,7 @@ png_xy_from_XYZ(png_xy *xy, const png_XYZ *XYZ)
11421142
return 1;
11431143

11441144
/* The reference white is simply the sum of the end-point (X,Y,Z) vectors so
1145-
* the fillowing calculates (X+Y+Z) of the reference white (media white,
1145+
* the following calculates (X+Y+Z) of the reference white (media white,
11461146
* encoding white) itself:
11471147
*/
11481148
d = dblue;
@@ -1187,9 +1187,9 @@ png_XYZ_from_xy(png_XYZ *XYZ, const png_xy *xy)
11871187
* (-0.0770) because the PNG spec itself requires the xy values to be
11881188
* unsigned. whitey is also required to be 5 or more to avoid overflow.
11891189
*
1190-
* Instead the upper limits have been relaxed to accomodate ACES AP1 where
1190+
* Instead the upper limits have been relaxed to accommodate ACES AP1 where
11911191
* redz ends up as -600 (-0.006). ProPhotoRGB was already "in range."
1192-
* The new limit accomodates the AP0 and AP1 ranges for z but not AP0 redy.
1192+
* The new limit accommodates the AP0 and AP1 ranges for z but not AP0 redy.
11931193
*/
11941194
const png_fixed_point fpLimit = PNG_FP_1+(PNG_FP_1/10);
11951195
if (xy->redx < 0 || xy->redx > fpLimit) return 1;
@@ -1300,7 +1300,7 @@ png_XYZ_from_xy(png_XYZ *XYZ, const png_xy *xy)
13001300
* red-scale + green-scale + blue-scale = 1/white-y = white-scale
13011301
*
13021302
* So now we have a Cramer's rule solution where the determinants are just
1303-
* 3x3 - far more tractible. Unfortunately 3x3 determinants still involve
1303+
* 3x3 - far more tractable. Unfortunately 3x3 determinants still involve
13041304
* multiplication of three coefficients so we can't guarantee to avoid
13051305
* overflow in the libpng fixed point representation. Using Cramer's rule in
13061306
* floating point is probably a good choice here, but it's not an option for
@@ -1669,7 +1669,7 @@ png_icc_check_header(const png_struct *png_ptr, const char *name,
16691669
* into R, G and B channels.
16701670
*
16711671
* Previously it was suggested that an RGB profile on grayscale data could be
1672-
* handled. However it it is clear that using an RGB profile in this context
1672+
* handled. However it is clear that using an RGB profile in this context
16731673
* must be an error - there is no specification of what it means. Thus it is
16741674
* almost certainly more correct to ignore the profile.
16751675
*/
@@ -2887,7 +2887,7 @@ png_gamma_significant(png_fixed_point gamma_val)
28872887
*
28882888
* 2.2/(2+51/256) == 1.00035524
28892889
*
2890-
* I.e. vanishly small (<4E-4) but still detectable in 16-bit linear (+/-
2890+
* I.e. vanishingly small (<4E-4) but still detectable in 16-bit linear (+/-
28912891
* 23). Note that the Adobe choice seems to be something intended to give an
28922892
* exact number with 8 binary fractional digits - it is the closest to 2.2
28932893
* that is possible a base 2 .8p representation.

0 commit comments

Comments
 (0)