mirror of
https://git.code.sf.net/p/libpng/code.git
synced 2025-07-10 18:04:09 +02:00
[libpng17] Minor editing of man page
This commit is contained in:
parent
f0341bae80
commit
ab2ef2ceb1
@ -1273,13 +1273,13 @@ in until png_read_end() has read the chunk data following the image.
|
|||||||
the PNG datastream is embedded in
|
the PNG datastream is embedded in
|
||||||
a MNG-1.0 datastream)
|
a MNG-1.0 datastream)
|
||||||
|
|
||||||
Any or all of color_tye, bit_depth, interlace_type,
|
Any of width, height, color_type, bit_depth,
|
||||||
compression_type, or filter_method can be NULL if you
|
interlace_type, compression_type, or filter_method can
|
||||||
are not interested in their values.
|
be NULL if you are not interested in their values.
|
||||||
|
|
||||||
Note that png_get_IHDR() returns png_uint_32 data into
|
Note that png_get_IHDR() returns png_uint_32 data into
|
||||||
the application's width and height variables.
|
the application's width and height variables.
|
||||||
This is an unsafe situation if these are 16-bit
|
This is an unsafe situation if these are not png_uint_32
|
||||||
variables, or if they are 32-bit variables on a 64-bit
|
variables, or if they are 32-bit variables on a 64-bit
|
||||||
platform. In such situations, the png_get_image_width()
|
platform. In such situations, the png_get_image_width()
|
||||||
and png_get_image_height() functions described below are
|
and png_get_image_height() functions described below are
|
||||||
@ -5043,8 +5043,8 @@ where "rp" indicates a "restricted pointer".
|
|||||||
Error detection in some chunks has improved; in particular the iCCP chunk
|
Error detection in some chunks has improved; in particular the iCCP chunk
|
||||||
reader now does pretty complete validation of the basic format. Some bad
|
reader now does pretty complete validation of the basic format. Some bad
|
||||||
profiles that were previously accepted are now accepted with a warning or
|
profiles that were previously accepted are now accepted with a warning or
|
||||||
rejected, depending upon the png_set_benign_errors() setting, in particular the
|
rejected, depending upon the png_set_benign_errors() setting, in particular
|
||||||
very old broken Microsoft/HP 3144-byte sRGB profile. Starting with
|
the very old broken Microsoft/HP 3144-byte sRGB profile. Starting with
|
||||||
libpng-1.6.11, recognizing and checking sRGB profiles can be avoided by
|
libpng-1.6.11, recognizing and checking sRGB profiles can be avoided by
|
||||||
means of
|
means of
|
||||||
|
|
||||||
@ -5055,7 +5055,7 @@ means of
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
It's not a good idea to do this if you are using the "simplified API",
|
It's not a good idea to do this if you are using the "simplified API",
|
||||||
which needs to be able to recognize an sRGB profile conveyed via the iCCP
|
which needs to be able to recognize sRGB profiles conveyed via the iCCP
|
||||||
chunk.
|
chunk.
|
||||||
|
|
||||||
The PNG spec requirement that only grayscale profiles may appear in images
|
The PNG spec requirement that only grayscale profiles may appear in images
|
||||||
|
|||||||
14
libpng.3
14
libpng.3
@ -1767,13 +1767,13 @@ in until png_read_end() has read the chunk data following the image.
|
|||||||
the PNG datastream is embedded in
|
the PNG datastream is embedded in
|
||||||
a MNG-1.0 datastream)
|
a MNG-1.0 datastream)
|
||||||
|
|
||||||
Any or all of color_tye, bit_depth, interlace_type,
|
Any of width, height, color_type, bit_depth,
|
||||||
compression_type, or filter_method can be NULL if you
|
interlace_type, compression_type, or filter_method can
|
||||||
are not interested in their values.
|
be NULL if you are not interested in their values.
|
||||||
|
|
||||||
Note that png_get_IHDR() returns png_uint_32 data into
|
Note that png_get_IHDR() returns png_uint_32 data into
|
||||||
the application's width and height variables.
|
the application's width and height variables.
|
||||||
This is an unsafe situation if these are 16-bit
|
This is an unsafe situation if these are not png_uint_32
|
||||||
variables, or if they are 32-bit variables on a 64-bit
|
variables, or if they are 32-bit variables on a 64-bit
|
||||||
platform. In such situations, the png_get_image_width()
|
platform. In such situations, the png_get_image_width()
|
||||||
and png_get_image_height() functions described below are
|
and png_get_image_height() functions described below are
|
||||||
@ -5537,8 +5537,8 @@ where "rp" indicates a "restricted pointer".
|
|||||||
Error detection in some chunks has improved; in particular the iCCP chunk
|
Error detection in some chunks has improved; in particular the iCCP chunk
|
||||||
reader now does pretty complete validation of the basic format. Some bad
|
reader now does pretty complete validation of the basic format. Some bad
|
||||||
profiles that were previously accepted are now accepted with a warning or
|
profiles that were previously accepted are now accepted with a warning or
|
||||||
rejected, depending upon the png_set_benign_errors() setting, in particular the
|
rejected, depending upon the png_set_benign_errors() setting, in particular
|
||||||
very old broken Microsoft/HP 3144-byte sRGB profile. Starting with
|
the very old broken Microsoft/HP 3144-byte sRGB profile. Starting with
|
||||||
libpng-1.6.11, recognizing and checking sRGB profiles can be avoided by
|
libpng-1.6.11, recognizing and checking sRGB profiles can be avoided by
|
||||||
means of
|
means of
|
||||||
|
|
||||||
@ -5549,7 +5549,7 @@ means of
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
It's not a good idea to do this if you are using the "simplified API",
|
It's not a good idea to do this if you are using the "simplified API",
|
||||||
which needs to be able to recognize an sRGB profile conveyed via the iCCP
|
which needs to be able to recognize sRGB profiles conveyed via the iCCP
|
||||||
chunk.
|
chunk.
|
||||||
|
|
||||||
The PNG spec requirement that only grayscale profiles may appear in images
|
The PNG spec requirement that only grayscale profiles may appear in images
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user