mirror of
https://git.code.sf.net/p/libpng/code.git
synced 2025-07-10 18:04:09 +02:00
[libpng15] Revised PNG_FP_EXPORT and PNG_FIXED_EXPORT macros to avoid
generating lone semicolons (patch ported from libpng-1.6.0beta11).
This commit is contained in:
parent
4588e97c73
commit
2cbe15a3e2
6
ANNOUNCE
6
ANNOUNCE
@ -1,5 +1,5 @@
|
|||||||
|
|
||||||
Libpng 1.5.13beta01 - August 3, 2012
|
Libpng 1.5.13beta01 - August 8, 2012
|
||||||
|
|
||||||
This is not intended to be a public release. It will be replaced
|
This is not intended to be a public release. It will be replaced
|
||||||
within a few weeks by a public version or by another test version.
|
within a few weeks by a public version or by another test version.
|
||||||
@ -26,9 +26,11 @@ Other information:
|
|||||||
|
|
||||||
Changes since the last public release (1.5.12):
|
Changes since the last public release (1.5.12):
|
||||||
|
|
||||||
Version 1.5.13beta01 [August 3, 2012]
|
Version 1.5.13beta01 [August 8, 2012]
|
||||||
Do not compile PNG_DEPRECATED, PNG_ALLOC and PNG_PRIVATE when __GNUC__ < 3.
|
Do not compile PNG_DEPRECATED, PNG_ALLOC and PNG_PRIVATE when __GNUC__ < 3.
|
||||||
Removed references to png_zalloc() and png_zfree() from the manual.
|
Removed references to png_zalloc() and png_zfree() from the manual.
|
||||||
|
Revised PNG_FP_EXPORT and PNG_FIXED_EXPORT macros to avoid generating
|
||||||
|
lone semicolons (patch ported from libpng-1.6.0beta11).
|
||||||
|
|
||||||
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
|
||||||
|
|||||||
4
CHANGES
4
CHANGES
@ -3896,9 +3896,11 @@ Version 1.5.12 [July 11, 2012]
|
|||||||
depends on configure, which is not included in those archives.
|
depends on configure, which is not included in those archives.
|
||||||
Changed "a+w" to "u+w" in Makefile.in to fix CVE-2012-3386.
|
Changed "a+w" to "u+w" in Makefile.in to fix CVE-2012-3386.
|
||||||
|
|
||||||
Version 1.5.13beta01 [August 3, 2012]
|
Version 1.5.13beta01 [August 8, 2012]
|
||||||
Do not compile PNG_DEPRECATED, PNG_ALLOC and PNG_PRIVATE when __GNUC__ < 3.
|
Do not compile PNG_DEPRECATED, PNG_ALLOC and PNG_PRIVATE when __GNUC__ < 3.
|
||||||
Removed references to png_zalloc() and png_zfree() from the manual.
|
Removed references to png_zalloc() and png_zfree() from the manual.
|
||||||
|
Revised PNG_FP_EXPORT and PNG_FIXED_EXPORT macros to avoid generating
|
||||||
|
lone semicolons (patch ported from libpng-1.6.0beta11).
|
||||||
|
|
||||||
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
|
||||||
|
|||||||
74
png.h
74
png.h
@ -1,7 +1,7 @@
|
|||||||
|
|
||||||
/* png.h - header file for PNG reference library
|
/* png.h - header file for PNG reference library
|
||||||
*
|
*
|
||||||
* libpng version 1.5.13beta01 - July 14, 2012
|
* libpng version 1.5.13beta01 - August 8, 2012
|
||||||
* Copyright (c) 1998-2012 Glenn Randers-Pehrson
|
* Copyright (c) 1998-2012 Glenn Randers-Pehrson
|
||||||
* (Version 0.96 Copyright (c) 1996, 1997 Andreas Dilger)
|
* (Version 0.96 Copyright (c) 1996, 1997 Andreas Dilger)
|
||||||
* (Version 0.88 Copyright (c) 1995, 1996 Guy Eric Schalnat, Group 42, Inc.)
|
* (Version 0.88 Copyright (c) 1995, 1996 Guy Eric Schalnat, Group 42, Inc.)
|
||||||
@ -11,7 +11,7 @@
|
|||||||
* Authors and maintainers:
|
* Authors and maintainers:
|
||||||
* libpng versions 0.71, May 1995, through 0.88, January 1996: Guy Schalnat
|
* libpng versions 0.71, May 1995, through 0.88, January 1996: Guy Schalnat
|
||||||
* libpng versions 0.89c, June 1996, through 0.96, May 1997: Andreas Dilger
|
* libpng versions 0.89c, June 1996, through 0.96, May 1997: Andreas Dilger
|
||||||
* libpng versions 0.97, January 1998, through 1.5.13beta01 - July 14, 2012: Glenn
|
* libpng versions 0.97, January 1998, through 1.5.13beta01 - August 8, 2012: Glenn
|
||||||
* See also "Contributing Authors", below.
|
* See also "Contributing Authors", below.
|
||||||
*
|
*
|
||||||
* Note about libpng version numbers:
|
* Note about libpng version numbers:
|
||||||
@ -210,7 +210,7 @@
|
|||||||
*
|
*
|
||||||
* This code is released under the libpng license.
|
* This code is released under the libpng license.
|
||||||
*
|
*
|
||||||
* libpng versions 1.2.6, August 15, 2004, through 1.5.13beta01, July 14, 2012, are
|
* libpng versions 1.2.6, August 15, 2004, through 1.5.13beta01, August 8, 2012, are
|
||||||
* Copyright (c) 2004, 2006-2012 Glenn Randers-Pehrson, and are
|
* Copyright (c) 2004, 2006-2012 Glenn Randers-Pehrson, and are
|
||||||
* distributed according to the same disclaimer and license as libpng-1.2.5
|
* distributed according to the same disclaimer and license as libpng-1.2.5
|
||||||
* with the following individual added to the list of Contributing Authors:
|
* with the following individual added to the list of Contributing Authors:
|
||||||
@ -322,7 +322,7 @@
|
|||||||
* Y2K compliance in libpng:
|
* Y2K compliance in libpng:
|
||||||
* =========================
|
* =========================
|
||||||
*
|
*
|
||||||
* July 14, 2012
|
* August 8, 2012
|
||||||
*
|
*
|
||||||
* Since the PNG Development group is an ad-hoc body, we can't make
|
* Since the PNG Development group is an ad-hoc body, we can't make
|
||||||
* an official declaration.
|
* an official declaration.
|
||||||
@ -389,7 +389,7 @@
|
|||||||
/* Version information for png.h - this should match the version in png.c */
|
/* Version information for png.h - this should match the version in png.c */
|
||||||
#define PNG_LIBPNG_VER_STRING "1.5.13beta01"
|
#define PNG_LIBPNG_VER_STRING "1.5.13beta01"
|
||||||
#define PNG_HEADER_VERSION_STRING \
|
#define PNG_HEADER_VERSION_STRING \
|
||||||
" libpng version 1.5.13beta01 - July 14, 2012\n"
|
" libpng version 1.5.13beta01 - August 8, 2012\n"
|
||||||
|
|
||||||
#define PNG_LIBPNG_VER_SONUM 15
|
#define PNG_LIBPNG_VER_SONUM 15
|
||||||
#define PNG_LIBPNG_VER_DLLNUM 15
|
#define PNG_LIBPNG_VER_DLLNUM 15
|
||||||
@ -1159,9 +1159,9 @@ PNG_EXPORT(31, void, png_set_gray_to_rgb, (png_structp png_ptr));
|
|||||||
#define PNG_RGB_TO_GRAY_DEFAULT (-1)/*for red/green coefficients*/
|
#define PNG_RGB_TO_GRAY_DEFAULT (-1)/*for red/green coefficients*/
|
||||||
|
|
||||||
PNG_FP_EXPORT(32, void, png_set_rgb_to_gray, (png_structp png_ptr,
|
PNG_FP_EXPORT(32, void, png_set_rgb_to_gray, (png_structp png_ptr,
|
||||||
int error_action, double red, double green));
|
int error_action, double red, double green))
|
||||||
PNG_FIXED_EXPORT(33, void, png_set_rgb_to_gray_fixed, (png_structp png_ptr,
|
PNG_FIXED_EXPORT(33, void, png_set_rgb_to_gray_fixed, (png_structp png_ptr,
|
||||||
int error_action, png_fixed_point red, png_fixed_point green));
|
int error_action, png_fixed_point red, png_fixed_point green))
|
||||||
|
|
||||||
PNG_EXPORT(34, png_byte, png_get_rgb_to_gray_status, (png_const_structp
|
PNG_EXPORT(34, png_byte, png_get_rgb_to_gray_status, (png_const_structp
|
||||||
png_ptr));
|
png_ptr));
|
||||||
@ -1229,9 +1229,9 @@ PNG_EXPORT(35, void, png_build_grayscale_palette, (int bit_depth,
|
|||||||
#define PNG_ALPHA_BROKEN 3 /* the alpha channel is gamma encoded */
|
#define PNG_ALPHA_BROKEN 3 /* the alpha channel is gamma encoded */
|
||||||
|
|
||||||
PNG_FP_EXPORT(227, void, png_set_alpha_mode, (png_structp png_ptr, int mode,
|
PNG_FP_EXPORT(227, void, png_set_alpha_mode, (png_structp png_ptr, int mode,
|
||||||
double output_gamma));
|
double output_gamma))
|
||||||
PNG_FIXED_EXPORT(228, void, png_set_alpha_mode_fixed, (png_structp png_ptr,
|
PNG_FIXED_EXPORT(228, void, png_set_alpha_mode_fixed, (png_structp png_ptr,
|
||||||
int mode, png_fixed_point output_gamma));
|
int mode, png_fixed_point output_gamma))
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(PNG_READ_GAMMA_SUPPORTED) || defined(PNG_READ_ALPHA_MODE_SUPPORTED)
|
#if defined(PNG_READ_GAMMA_SUPPORTED) || defined(PNG_READ_ALPHA_MODE_SUPPORTED)
|
||||||
@ -1454,10 +1454,10 @@ PNG_EXPORT(46, void, png_set_invert_mono, (png_structp png_ptr));
|
|||||||
*/
|
*/
|
||||||
PNG_FP_EXPORT(47, void, png_set_background, (png_structp png_ptr,
|
PNG_FP_EXPORT(47, void, png_set_background, (png_structp png_ptr,
|
||||||
png_const_color_16p background_color, int background_gamma_code,
|
png_const_color_16p background_color, int background_gamma_code,
|
||||||
int need_expand, double background_gamma));
|
int need_expand, double background_gamma))
|
||||||
PNG_FIXED_EXPORT(215, void, png_set_background_fixed, (png_structp png_ptr,
|
PNG_FIXED_EXPORT(215, void, png_set_background_fixed, (png_structp png_ptr,
|
||||||
png_const_color_16p background_color, int background_gamma_code,
|
png_const_color_16p background_color, int background_gamma_code,
|
||||||
int need_expand, png_fixed_point background_gamma));
|
int need_expand, png_fixed_point background_gamma))
|
||||||
#endif
|
#endif
|
||||||
#ifdef PNG_READ_BACKGROUND_SUPPORTED
|
#ifdef PNG_READ_BACKGROUND_SUPPORTED
|
||||||
# define PNG_BACKGROUND_GAMMA_UNKNOWN 0
|
# define PNG_BACKGROUND_GAMMA_UNKNOWN 0
|
||||||
@ -1506,9 +1506,9 @@ PNG_EXPORT(49, void, png_set_quantize,
|
|||||||
*/
|
*/
|
||||||
PNG_FP_EXPORT(50, void, png_set_gamma,
|
PNG_FP_EXPORT(50, void, png_set_gamma,
|
||||||
(png_structp png_ptr, double screen_gamma,
|
(png_structp png_ptr, double screen_gamma,
|
||||||
double override_file_gamma));
|
double override_file_gamma))
|
||||||
PNG_FIXED_EXPORT(208, void, png_set_gamma_fixed, (png_structp png_ptr,
|
PNG_FIXED_EXPORT(208, void, png_set_gamma_fixed, (png_structp png_ptr,
|
||||||
png_fixed_point screen_gamma, png_fixed_point override_file_gamma));
|
png_fixed_point screen_gamma, png_fixed_point override_file_gamma))
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef PNG_WRITE_FLUSH_SUPPORTED
|
#ifdef PNG_WRITE_FLUSH_SUPPORTED
|
||||||
@ -1668,11 +1668,11 @@ PNG_EXPORT(67, void, png_set_filter,
|
|||||||
*/
|
*/
|
||||||
PNG_FP_EXPORT(68, void, png_set_filter_heuristics, (png_structp png_ptr,
|
PNG_FP_EXPORT(68, void, png_set_filter_heuristics, (png_structp png_ptr,
|
||||||
int heuristic_method, int num_weights, png_const_doublep filter_weights,
|
int heuristic_method, int num_weights, png_const_doublep filter_weights,
|
||||||
png_const_doublep filter_costs));
|
png_const_doublep filter_costs))
|
||||||
PNG_FIXED_EXPORT(209, void, png_set_filter_heuristics_fixed,
|
PNG_FIXED_EXPORT(209, void, png_set_filter_heuristics_fixed,
|
||||||
(png_structp png_ptr,
|
(png_structp png_ptr,
|
||||||
int heuristic_method, int num_weights, png_const_fixed_point_p
|
int heuristic_method, int num_weights, png_const_fixed_point_p
|
||||||
filter_weights, png_const_fixed_point_p filter_costs));
|
filter_weights, png_const_fixed_point_p filter_costs))
|
||||||
#endif /* PNG_WRITE_WEIGHTED_FILTER_SUPPORTED */
|
#endif /* PNG_WRITE_WEIGHTED_FILTER_SUPPORTED */
|
||||||
|
|
||||||
/* Heuristic used for row filter selection. These defines should NOT be
|
/* Heuristic used for row filter selection. These defines should NOT be
|
||||||
@ -2054,9 +2054,9 @@ PNG_EXPORT(124, png_uint_32, png_get_y_pixels_per_meter,
|
|||||||
|
|
||||||
/* Returns pixel aspect ratio, computed from pHYs chunk data. */
|
/* Returns pixel aspect ratio, computed from pHYs chunk data. */
|
||||||
PNG_FP_EXPORT(125, float, png_get_pixel_aspect_ratio,
|
PNG_FP_EXPORT(125, float, png_get_pixel_aspect_ratio,
|
||||||
(png_const_structp png_ptr, png_const_infop info_ptr));
|
(png_const_structp png_ptr, png_const_infop info_ptr))
|
||||||
PNG_FIXED_EXPORT(210, png_fixed_point, png_get_pixel_aspect_ratio_fixed,
|
PNG_FIXED_EXPORT(210, png_fixed_point, png_get_pixel_aspect_ratio_fixed,
|
||||||
(png_const_structp png_ptr, png_const_infop info_ptr));
|
(png_const_structp png_ptr, png_const_infop info_ptr))
|
||||||
|
|
||||||
/* Returns image x, y offset in pixels or microns, from oFFs chunk data. */
|
/* Returns image x, y offset in pixels or microns, from oFFs chunk data. */
|
||||||
PNG_EXPORT(126, png_int_32, png_get_x_offset_pixels,
|
PNG_EXPORT(126, png_int_32, png_get_x_offset_pixels,
|
||||||
@ -2089,11 +2089,11 @@ PNG_EXPORT(132, void, png_set_bKGD, (png_structp png_ptr, png_infop info_ptr,
|
|||||||
PNG_FP_EXPORT(133, png_uint_32, png_get_cHRM, (png_const_structp png_ptr,
|
PNG_FP_EXPORT(133, png_uint_32, png_get_cHRM, (png_const_structp png_ptr,
|
||||||
png_const_infop info_ptr, double *white_x, double *white_y, double *red_x,
|
png_const_infop info_ptr, double *white_x, double *white_y, double *red_x,
|
||||||
double *red_y, double *green_x, double *green_y, double *blue_x,
|
double *red_y, double *green_x, double *green_y, double *blue_x,
|
||||||
double *blue_y));
|
double *blue_y))
|
||||||
PNG_FP_EXPORT(230, png_uint_32, png_get_cHRM_XYZ, (png_structp png_ptr,
|
PNG_FP_EXPORT(230, png_uint_32, png_get_cHRM_XYZ, (png_structp png_ptr,
|
||||||
png_const_infop info_ptr, double *red_X, double *red_Y, double *red_Z,
|
png_const_infop info_ptr, double *red_X, double *red_Y, double *red_Z,
|
||||||
double *green_X, double *green_Y, double *green_Z, double *blue_X,
|
double *green_X, double *green_Y, double *green_Z, double *blue_X,
|
||||||
double *blue_Y, double *blue_Z));
|
double *blue_Y, double *blue_Z))
|
||||||
#ifdef PNG_FIXED_POINT_SUPPORTED /* Otherwise not implemented */
|
#ifdef PNG_FIXED_POINT_SUPPORTED /* Otherwise not implemented */
|
||||||
PNG_FIXED_EXPORT(134, png_uint_32, png_get_cHRM_fixed,
|
PNG_FIXED_EXPORT(134, png_uint_32, png_get_cHRM_fixed,
|
||||||
(png_const_structp png_ptr,
|
(png_const_structp png_ptr,
|
||||||
@ -2101,7 +2101,7 @@ PNG_FIXED_EXPORT(134, png_uint_32, png_get_cHRM_fixed,
|
|||||||
png_fixed_point *int_white_y, png_fixed_point *int_red_x,
|
png_fixed_point *int_white_y, png_fixed_point *int_red_x,
|
||||||
png_fixed_point *int_red_y, png_fixed_point *int_green_x,
|
png_fixed_point *int_red_y, png_fixed_point *int_green_x,
|
||||||
png_fixed_point *int_green_y, png_fixed_point *int_blue_x,
|
png_fixed_point *int_green_y, png_fixed_point *int_blue_x,
|
||||||
png_fixed_point *int_blue_y));
|
png_fixed_point *int_blue_y))
|
||||||
#endif
|
#endif
|
||||||
PNG_FIXED_EXPORT(231, png_uint_32, png_get_cHRM_XYZ_fixed,
|
PNG_FIXED_EXPORT(231, png_uint_32, png_get_cHRM_XYZ_fixed,
|
||||||
(png_structp png_ptr, png_const_infop info_ptr,
|
(png_structp png_ptr, png_const_infop info_ptr,
|
||||||
@ -2109,46 +2109,46 @@ PNG_FIXED_EXPORT(231, png_uint_32, png_get_cHRM_XYZ_fixed,
|
|||||||
png_fixed_point *int_red_Z, png_fixed_point *int_green_X,
|
png_fixed_point *int_red_Z, png_fixed_point *int_green_X,
|
||||||
png_fixed_point *int_green_Y, png_fixed_point *int_green_Z,
|
png_fixed_point *int_green_Y, png_fixed_point *int_green_Z,
|
||||||
png_fixed_point *int_blue_X, png_fixed_point *int_blue_Y,
|
png_fixed_point *int_blue_X, png_fixed_point *int_blue_Y,
|
||||||
png_fixed_point *int_blue_Z));
|
png_fixed_point *int_blue_Z))
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef PNG_cHRM_SUPPORTED
|
#ifdef PNG_cHRM_SUPPORTED
|
||||||
PNG_FP_EXPORT(135, void, png_set_cHRM,
|
PNG_FP_EXPORT(135, void, png_set_cHRM,
|
||||||
(png_structp png_ptr, png_infop info_ptr,
|
(png_structp png_ptr, png_infop info_ptr,
|
||||||
double white_x, double white_y, double red_x, double red_y, double green_x,
|
double white_x, double white_y, double red_x, double red_y, double green_x,
|
||||||
double green_y, double blue_x, double blue_y));
|
double green_y, double blue_x, double blue_y))
|
||||||
PNG_FP_EXPORT(232, void, png_set_cHRM_XYZ, (png_structp png_ptr,
|
PNG_FP_EXPORT(232, void, png_set_cHRM_XYZ, (png_structp png_ptr,
|
||||||
png_infop info_ptr, double red_X, double red_Y, double red_Z,
|
png_infop info_ptr, double red_X, double red_Y, double red_Z,
|
||||||
double green_X, double green_Y, double green_Z, double blue_X,
|
double green_X, double green_Y, double green_Z, double blue_X,
|
||||||
double blue_Y, double blue_Z));
|
double blue_Y, double blue_Z))
|
||||||
PNG_FIXED_EXPORT(136, void, png_set_cHRM_fixed, (png_structp png_ptr,
|
PNG_FIXED_EXPORT(136, void, png_set_cHRM_fixed, (png_structp png_ptr,
|
||||||
png_infop info_ptr, png_fixed_point int_white_x,
|
png_infop info_ptr, png_fixed_point int_white_x,
|
||||||
png_fixed_point int_white_y, png_fixed_point int_red_x,
|
png_fixed_point int_white_y, png_fixed_point int_red_x,
|
||||||
png_fixed_point int_red_y, png_fixed_point int_green_x,
|
png_fixed_point int_red_y, png_fixed_point int_green_x,
|
||||||
png_fixed_point int_green_y, png_fixed_point int_blue_x,
|
png_fixed_point int_green_y, png_fixed_point int_blue_x,
|
||||||
png_fixed_point int_blue_y));
|
png_fixed_point int_blue_y))
|
||||||
PNG_FIXED_EXPORT(233, void, png_set_cHRM_XYZ_fixed, (png_structp png_ptr,
|
PNG_FIXED_EXPORT(233, void, png_set_cHRM_XYZ_fixed, (png_structp png_ptr,
|
||||||
png_infop info_ptr, png_fixed_point int_red_X, png_fixed_point int_red_Y,
|
png_infop info_ptr, png_fixed_point int_red_X, png_fixed_point int_red_Y,
|
||||||
png_fixed_point int_red_Z, png_fixed_point int_green_X,
|
png_fixed_point int_red_Z, png_fixed_point int_green_X,
|
||||||
png_fixed_point int_green_Y, png_fixed_point int_green_Z,
|
png_fixed_point int_green_Y, png_fixed_point int_green_Z,
|
||||||
png_fixed_point int_blue_X, png_fixed_point int_blue_Y,
|
png_fixed_point int_blue_X, png_fixed_point int_blue_Y,
|
||||||
png_fixed_point int_blue_Z));
|
png_fixed_point int_blue_Z))
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef PNG_gAMA_SUPPORTED
|
#ifdef PNG_gAMA_SUPPORTED
|
||||||
PNG_FP_EXPORT(137, png_uint_32, png_get_gAMA,
|
PNG_FP_EXPORT(137, png_uint_32, png_get_gAMA,
|
||||||
(png_const_structp png_ptr, png_const_infop info_ptr,
|
(png_const_structp png_ptr, png_const_infop info_ptr,
|
||||||
double *file_gamma));
|
double *file_gamma))
|
||||||
PNG_FIXED_EXPORT(138, png_uint_32, png_get_gAMA_fixed,
|
PNG_FIXED_EXPORT(138, png_uint_32, png_get_gAMA_fixed,
|
||||||
(png_const_structp png_ptr, png_const_infop info_ptr,
|
(png_const_structp png_ptr, png_const_infop info_ptr,
|
||||||
png_fixed_point *int_file_gamma));
|
png_fixed_point *int_file_gamma))
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef PNG_gAMA_SUPPORTED
|
#ifdef PNG_gAMA_SUPPORTED
|
||||||
PNG_FP_EXPORT(139, void, png_set_gAMA, (png_structp png_ptr,
|
PNG_FP_EXPORT(139, void, png_set_gAMA, (png_structp png_ptr,
|
||||||
png_infop info_ptr, double file_gamma));
|
png_infop info_ptr, double file_gamma))
|
||||||
PNG_FIXED_EXPORT(140, void, png_set_gAMA_fixed, (png_structp png_ptr,
|
PNG_FIXED_EXPORT(140, void, png_set_gAMA_fixed, (png_structp png_ptr,
|
||||||
png_infop info_ptr, png_fixed_point int_file_gamma));
|
png_infop info_ptr, png_fixed_point int_file_gamma))
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef PNG_hIST_SUPPORTED
|
#ifdef PNG_hIST_SUPPORTED
|
||||||
@ -2314,7 +2314,7 @@ PNG_EXPORT(167, void, png_set_tRNS,
|
|||||||
#ifdef PNG_sCAL_SUPPORTED
|
#ifdef PNG_sCAL_SUPPORTED
|
||||||
PNG_FP_EXPORT(168, png_uint_32, png_get_sCAL,
|
PNG_FP_EXPORT(168, png_uint_32, png_get_sCAL,
|
||||||
(png_const_structp png_ptr, png_const_infop info_ptr,
|
(png_const_structp png_ptr, png_const_infop info_ptr,
|
||||||
int *unit, double *width, double *height));
|
int *unit, double *width, double *height))
|
||||||
#ifdef PNG_FLOATING_ARITHMETIC_SUPPORTED
|
#ifdef PNG_FLOATING_ARITHMETIC_SUPPORTED
|
||||||
/* NOTE: this API is currently implemented using floating point arithmetic,
|
/* NOTE: this API is currently implemented using floating point arithmetic,
|
||||||
* consequently it can only be used on systems with floating point support.
|
* consequently it can only be used on systems with floating point support.
|
||||||
@ -2324,7 +2324,7 @@ PNG_FP_EXPORT(168, png_uint_32, png_get_sCAL,
|
|||||||
PNG_FIXED_EXPORT(214, png_uint_32, png_get_sCAL_fixed,
|
PNG_FIXED_EXPORT(214, png_uint_32, png_get_sCAL_fixed,
|
||||||
(png_structp png_ptr, png_const_infop info_ptr, int *unit,
|
(png_structp png_ptr, png_const_infop info_ptr, int *unit,
|
||||||
png_fixed_point *width,
|
png_fixed_point *width,
|
||||||
png_fixed_point *height));
|
png_fixed_point *height))
|
||||||
#endif
|
#endif
|
||||||
PNG_EXPORT(169, png_uint_32, png_get_sCAL_s,
|
PNG_EXPORT(169, png_uint_32, png_get_sCAL_s,
|
||||||
(png_const_structp png_ptr, png_const_infop info_ptr,
|
(png_const_structp png_ptr, png_const_infop info_ptr,
|
||||||
@ -2332,10 +2332,10 @@ PNG_EXPORT(169, png_uint_32, png_get_sCAL_s,
|
|||||||
|
|
||||||
PNG_FP_EXPORT(170, void, png_set_sCAL,
|
PNG_FP_EXPORT(170, void, png_set_sCAL,
|
||||||
(png_structp png_ptr, png_infop info_ptr,
|
(png_structp png_ptr, png_infop info_ptr,
|
||||||
int unit, double width, double height));
|
int unit, double width, double height))
|
||||||
PNG_FIXED_EXPORT(213, void, png_set_sCAL_fixed, (png_structp png_ptr,
|
PNG_FIXED_EXPORT(213, void, png_set_sCAL_fixed, (png_structp png_ptr,
|
||||||
png_infop info_ptr, int unit, png_fixed_point width,
|
png_infop info_ptr, int unit, png_fixed_point width,
|
||||||
png_fixed_point height));
|
png_fixed_point height))
|
||||||
PNG_EXPORT(171, void, png_set_sCAL_s,
|
PNG_EXPORT(171, void, png_set_sCAL_s,
|
||||||
(png_structp png_ptr, png_infop info_ptr,
|
(png_structp png_ptr, png_infop info_ptr,
|
||||||
int unit, png_const_charp swidth, png_const_charp sheight));
|
int unit, png_const_charp swidth, png_const_charp sheight));
|
||||||
@ -2448,17 +2448,17 @@ PNG_EXPORT(195, png_uint_32, png_get_y_pixels_per_inch,
|
|||||||
(png_const_structp png_ptr, png_const_infop info_ptr));
|
(png_const_structp png_ptr, png_const_infop info_ptr));
|
||||||
|
|
||||||
PNG_FP_EXPORT(196, float, png_get_x_offset_inches,
|
PNG_FP_EXPORT(196, float, png_get_x_offset_inches,
|
||||||
(png_const_structp png_ptr, png_const_infop info_ptr));
|
(png_const_structp png_ptr, png_const_infop info_ptr))
|
||||||
#ifdef PNG_FIXED_POINT_SUPPORTED /* otherwise not implemented. */
|
#ifdef PNG_FIXED_POINT_SUPPORTED /* otherwise not implemented. */
|
||||||
PNG_FIXED_EXPORT(211, png_fixed_point, png_get_x_offset_inches_fixed,
|
PNG_FIXED_EXPORT(211, png_fixed_point, png_get_x_offset_inches_fixed,
|
||||||
(png_structp png_ptr, png_const_infop info_ptr));
|
(png_structp png_ptr, png_const_infop info_ptr))
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
PNG_FP_EXPORT(197, float, png_get_y_offset_inches, (png_const_structp png_ptr,
|
PNG_FP_EXPORT(197, float, png_get_y_offset_inches, (png_const_structp png_ptr,
|
||||||
png_const_infop info_ptr));
|
png_const_infop info_ptr))
|
||||||
#ifdef PNG_FIXED_POINT_SUPPORTED /* otherwise not implemented. */
|
#ifdef PNG_FIXED_POINT_SUPPORTED /* otherwise not implemented. */
|
||||||
PNG_FIXED_EXPORT(212, png_fixed_point, png_get_y_offset_inches_fixed,
|
PNG_FIXED_EXPORT(212, png_fixed_point, png_get_y_offset_inches_fixed,
|
||||||
(png_structp png_ptr, png_const_infop info_ptr));
|
(png_structp png_ptr, png_const_infop info_ptr))
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
# ifdef PNG_pHYs_SUPPORTED
|
# ifdef PNG_pHYs_SUPPORTED
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
|
|
||||||
/* pngconf.h - machine configurable file for libpng
|
/* pngconf.h - machine configurable file for libpng
|
||||||
*
|
*
|
||||||
* libpng version 1.5.13beta01 - July 14, 2012
|
* libpng version 1.5.13beta01 - August 8, 2012
|
||||||
*
|
*
|
||||||
* Copyright (c) 1998-2012 Glenn Randers-Pehrson
|
* Copyright (c) 1998-2012 Glenn Randers-Pehrson
|
||||||
* (Version 0.96 Copyright (c) 1996, 1997 Andreas Dilger)
|
* (Version 0.96 Copyright (c) 1996, 1997 Andreas Dilger)
|
||||||
@ -402,7 +402,7 @@
|
|||||||
#ifndef PNG_FP_EXPORT /* A floating point API. */
|
#ifndef PNG_FP_EXPORT /* A floating point API. */
|
||||||
# ifdef PNG_FLOATING_POINT_SUPPORTED
|
# ifdef PNG_FLOATING_POINT_SUPPORTED
|
||||||
# define PNG_FP_EXPORT(ordinal, type, name, args)\
|
# define PNG_FP_EXPORT(ordinal, type, name, args)\
|
||||||
PNG_EXPORT(ordinal, type, name, args)
|
PNG_EXPORT(ordinal, type, name, args);
|
||||||
# else /* No floating point APIs */
|
# else /* No floating point APIs */
|
||||||
# define PNG_FP_EXPORT(ordinal, type, name, args)
|
# define PNG_FP_EXPORT(ordinal, type, name, args)
|
||||||
# endif
|
# endif
|
||||||
@ -410,7 +410,7 @@
|
|||||||
#ifndef PNG_FIXED_EXPORT /* A fixed point API. */
|
#ifndef PNG_FIXED_EXPORT /* A fixed point API. */
|
||||||
# ifdef PNG_FIXED_POINT_SUPPORTED
|
# ifdef PNG_FIXED_POINT_SUPPORTED
|
||||||
# define PNG_FIXED_EXPORT(ordinal, type, name, args)\
|
# define PNG_FIXED_EXPORT(ordinal, type, name, args)\
|
||||||
PNG_EXPORT(ordinal, type, name, args)
|
PNG_EXPORT(ordinal, type, name, args);
|
||||||
# else /* No fixed point APIs */
|
# else /* No fixed point APIs */
|
||||||
# define PNG_FIXED_EXPORT(ordinal, type, name, args)
|
# define PNG_FIXED_EXPORT(ordinal, type, name, args)
|
||||||
# endif
|
# endif
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user