mirror of
https://git.code.sf.net/p/libpng/code.git
synced 2025-07-10 18:04:09 +02:00
[libpng17] Updated manual page about png_get_palette_max() API.
This commit is contained in:
6
ANNOUNCE
6
ANNOUNCE
@@ -149,12 +149,6 @@ Version 1.7.0alpha11 [February 8, 2013]
|
|||||||
which may be a library function (not an intrinsic). Removed unused #if 0
|
which may be a library function (not an intrinsic). Removed unused #if 0
|
||||||
code.
|
code.
|
||||||
|
|
||||||
===========================================================================
|
|
||||||
NOTICE November 17, 2012:
|
|
||||||
The location of the git repository at SourceForge has changed.
|
|
||||||
Visit http://libpng.sf.net/ for details.
|
|
||||||
===========================================================================
|
|
||||||
|
|
||||||
Send comments/corrections/commendations to png-mng-implement at lists.sf.net
|
Send comments/corrections/commendations to png-mng-implement at lists.sf.net
|
||||||
(subscription required; visit
|
(subscription required; visit
|
||||||
https://lists.sourceforge.net/lists/listinfo/png-mng-implement
|
https://lists.sourceforge.net/lists/listinfo/png-mng-implement
|
||||||
|
|||||||
6
CHANGES
6
CHANGES
@@ -4435,12 +4435,6 @@ Version 1.7.0alpha11 [February 8, 2013]
|
|||||||
which may be a library function (not an intrinsic). Removed unused #if 0
|
which may be a library function (not an intrinsic). Removed unused #if 0
|
||||||
code.
|
code.
|
||||||
|
|
||||||
===========================================================================
|
|
||||||
NOTICE November 17, 2012:
|
|
||||||
The location of the git repository at SourceForge has changed.
|
|
||||||
Visit http://libpng.sf.net/ for details.
|
|
||||||
===========================================================================
|
|
||||||
|
|
||||||
Send comments/corrections/commendations to png-mng-implement at lists.sf.net
|
Send comments/corrections/commendations to png-mng-implement at lists.sf.net
|
||||||
(subscription required; visit
|
(subscription required; visit
|
||||||
https://lists.sourceforge.net/lists/listinfo/png-mng-implement
|
https://lists.sourceforge.net/lists/listinfo/png-mng-implement
|
||||||
|
|||||||
@@ -4592,12 +4592,16 @@ any invalid pixels are decoded as opaque black by the decoder and written
|
|||||||
as-is by the encoder.
|
as-is by the encoder.
|
||||||
|
|
||||||
Retrieving the maximum palette index found was added at libpng-1.5.15.
|
Retrieving the maximum palette index found was added at libpng-1.5.15.
|
||||||
This statement must appear after png_read_png() or png_read_image().
|
This statement must appear after png_read_png() or png_read_image() while
|
||||||
|
reading, and after png_write_png() or png_write_image() while writing.
|
||||||
|
|
||||||
int max_palette = png_get_palette_max(png_ptr, info_ptr);
|
int max_palette = png_get_palette_max(png_ptr, info_ptr);
|
||||||
|
|
||||||
This will return the maximum palette index found, or "-1" if the palette
|
This will return the maximum palette index found in the image, or "-1" if
|
||||||
was not checked, or "0" if no palette was found.
|
the palette was not checked, or "0" if no palette was found. Note that this
|
||||||
|
does not account for any palette index used by ancillary chunks such as the
|
||||||
|
bKGD chunk; you must check those separately to determine the maximum
|
||||||
|
palette index actually used.
|
||||||
|
|
||||||
A. Changes that affect users of libpng
|
A. Changes that affect users of libpng
|
||||||
|
|
||||||
|
|||||||
10
libpng.3
10
libpng.3
@@ -5087,12 +5087,16 @@ any invalid pixels are decoded as opaque black by the decoder and written
|
|||||||
as-is by the encoder.
|
as-is by the encoder.
|
||||||
|
|
||||||
Retrieving the maximum palette index found was added at libpng-1.5.15.
|
Retrieving the maximum palette index found was added at libpng-1.5.15.
|
||||||
This statement must appear after png_read_png() or png_read_image().
|
This statement must appear after png_read_png() or png_read_image() while
|
||||||
|
reading, and after png_write_png() or png_write_image() while writing.
|
||||||
|
|
||||||
int max_palette = png_get_palette_max(png_ptr, info_ptr);
|
int max_palette = png_get_palette_max(png_ptr, info_ptr);
|
||||||
|
|
||||||
This will return the maximum palette index found, or "-1" if the palette
|
This will return the maximum palette index found in the image, or "-1" if
|
||||||
was not checked, or "0" if no palette was found.
|
the palette was not checked, or "0" if no palette was found. Note that this
|
||||||
|
does not account for any palette index used by ancillary chunks such as the
|
||||||
|
bKGD chunk; you must check those separately to determine the maximum
|
||||||
|
palette index actually used.
|
||||||
|
|
||||||
A. Changes that affect users of libpng
|
A. Changes that affect users of libpng
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user