gdk_pixbuf2 1.1.5-x86-mingw32 → 1.1.6-x86-mingw32

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,9 +1,9 @@
1
1
 
2
2
  /* pngconf.h - machine configurable file for libpng
3
3
  *
4
- * libpng version 1.4.3 - June 26, 2010
4
+ * libpng version 1.4.12 - July 10, 2012
5
5
  * For conditions of distribution and use, see copyright notice in png.h
6
- * Copyright (c) 1998-2010 Glenn Randers-Pehrson
6
+ * Copyright (c) 1998-2011 Glenn Randers-Pehrson
7
7
  * (Version 0.96 Copyright (c) 1996, 1997 Andreas Dilger)
8
8
  * (Version 0.88 Copyright (c) 1995, 1996 Guy Eric Schalnat, Group 42, Inc.)
9
9
  *
@@ -44,14 +44,14 @@
44
44
  * includes the resource compiler for Windows DLL configurations.
45
45
  */
46
46
  #ifdef PNG_USER_CONFIG
47
+ # include "pngusr.h"
47
48
  # ifndef PNG_USER_PRIVATEBUILD
48
49
  # define PNG_USER_PRIVATEBUILD
49
50
  # endif
50
- # include "pngusr.h"
51
51
  #endif
52
52
 
53
53
  /*
54
- * If you create a private DLL you need to define in "pngusr.h" the followings:
54
+ * If you create a private DLL you should define in "pngusr.h" the following:
55
55
  * #define PNG_USER_PRIVATEBUILD <Describes by whom and why this version of
56
56
  * the DLL was built>
57
57
  * e.g. #define PNG_USER_PRIVATEBUILD "Build by MyCompany for xyz reasons."
@@ -59,7 +59,7 @@
59
59
  * distinguish your DLL from those of the official release. These
60
60
  * correspond to the trailing letters that come after the version
61
61
  * number and must match your private DLL name>
62
- * e.g. // private DLL "libpng13gx.dll"
62
+ * e.g. // private DLL "libpng14gx.dll"
63
63
  * #define PNG_USER_DLLFNAME_POSTFIX "gx"
64
64
  *
65
65
  * The following macros are also at your disposal if you want to complete the
@@ -84,6 +84,18 @@
84
84
 
85
85
  /* End of material added to libpng-1.2.8 */
86
86
 
87
+ /* Added at libpng-1.4.6 */
88
+ #ifndef PNG_UNUSED
89
+ /* Unused formal parameter warnings are silenced using the following macro
90
+ * which is expected to have no bad effects on performance (optimizing
91
+ * compilers will probably remove it entirely). Note that if you replace
92
+ * it with something other than whitespace, you must include the terminating
93
+ * semicolon.
94
+ */
95
+ # define PNG_UNUSED(param) (void)param;
96
+ #endif
97
+ /* End of material added to libpng-1.4.6 */
98
+
87
99
  #ifndef PNG_VERSION_INFO_ONLY
88
100
 
89
101
  /* This is the size of the compression buffer, and thus the size of
@@ -269,11 +281,19 @@
269
281
  * #define PNG_NO_STDIO
270
282
  */
271
283
 
284
+ #ifdef _WIN32_WCE
285
+ # define PNG_NO_CONSOLE_IO
286
+ # define PNG_NO_STDIO
287
+ # define PNG_NO_TIME_RFC1123
288
+ # ifdef PNG_DEBUG
289
+ # undef PNG_DEBUG
290
+ # endif
291
+ #endif
292
+
272
293
  #if !defined(PNG_NO_STDIO) && !defined(PNG_STDIO_SUPPORTED)
273
294
  # define PNG_STDIO_SUPPORTED
274
295
  #endif
275
296
 
276
-
277
297
  #ifdef PNG_BUILD_DLL
278
298
  # if !defined(PNG_CONSOLE_IO_SUPPORTED) && !defined(PNG_NO_CONSOLE_IO)
279
299
  # define PNG_NO_CONSOLE_IO
@@ -439,7 +459,7 @@
439
459
 
440
460
  /* The following uses const char * instead of char * for error
441
461
  * and warning message functions, so some compilers won't complain.
442
- * If you do not want to use const, define PNG_NO_CONST here.
462
+ * If you do not want to use const, define PNG_NO_CONST.
443
463
  */
444
464
 
445
465
  #ifndef PNG_CONST
@@ -454,8 +474,10 @@
454
474
  * library that you will not be using. I wish I could figure out how to
455
475
  * automate this, but I can't do that without making it seriously hard
456
476
  * on the users. So if you are not using an ability, change the #define
457
- * to and #undef, and that part of the library will not be compiled. If
458
- * your linker can't find a function, you may want to make sure the
477
+ * to an #undef, or pass in PNG_NO_feature and that part of the library
478
+ * will not be compiled.
479
+
480
+ * If your linker can't find a function, you may want to make sure the
459
481
  * ability is defined here. Some of these depend upon some others being
460
482
  * defined. I haven't figured out all the interactions here, so you may
461
483
  * have to experiment awhile to get everything to compile. If you are
@@ -1114,7 +1136,7 @@ typedef unsigned char png_byte;
1114
1136
  #else
1115
1137
  typedef size_t png_size_t;
1116
1138
  #endif
1117
- #define png_sizeof(x) sizeof(x)
1139
+ #define png_sizeof(x) (sizeof (x))
1118
1140
 
1119
1141
  /* The following is needed for medium model support. It cannot be in the
1120
1142
  * pngpriv.h header. Needs modification for other compilers besides
@@ -1236,6 +1258,13 @@ typedef char FAR * FAR * FAR * png_charppp;
1236
1258
  # define PNG_DLL
1237
1259
  #endif
1238
1260
 
1261
+ /* If you define PNGAPI, e.g., with compiler option "-DPNGAPI=__stdcall",
1262
+ * you may get warnings regarding the linkage of png_zalloc and png_zfree.
1263
+ * Don't ignore those warnings; you must also reset the default calling
1264
+ * convention in your compiler to match your PNGAPI, and you must build
1265
+ * zlib and your applications the same way you build libpng.
1266
+ */
1267
+
1239
1268
  #ifdef __CYGWIN__
1240
1269
  # undef PNGAPI
1241
1270
  # define PNGAPI __cdecl
@@ -1243,14 +1272,11 @@ typedef char FAR * FAR * FAR * png_charppp;
1243
1272
  # define PNG_IMPEXP
1244
1273
  #endif
1245
1274
 
1246
- #define PNG_USE_LOCAL_ARRAYS /* Not used in libpng, defined for legacy apps */
1247
-
1248
- /* If you define PNGAPI, e.g., with compiler option "-DPNGAPI=__stdcall",
1249
- * you may get warnings regarding the linkage of png_zalloc and png_zfree.
1250
- * Don't ignore those warnings; you must also reset the default calling
1251
- * convention in your compiler to match your PNGAPI, and you must build
1252
- * zlib and your applications the same way you build libpng.
1253
- */
1275
+ #ifdef __WATCOMC__
1276
+ # ifndef PNGAPI
1277
+ # define PNGAPI
1278
+ # endif
1279
+ #endif
1254
1280
 
1255
1281
  #if defined(__MINGW32__) && !defined(PNG_MODULEDEF)
1256
1282
  # ifndef PNG_NO_MODULEDEF
@@ -1335,6 +1361,8 @@ typedef char FAR * FAR * FAR * png_charppp;
1335
1361
  # define PNG_EXPORT(type,symbol) PNG_IMPEXP type PNGAPI symbol
1336
1362
  #endif
1337
1363
 
1364
+ #define PNG_USE_LOCAL_ARRAYS /* Not used in libpng, defined for legacy apps */
1365
+
1338
1366
  /* Support for compiler specific function attributes. These are used
1339
1367
  * so that where compiler support is available incorrect use of API
1340
1368
  * functions in png.h will generate compiler warnings.
@@ -1363,15 +1391,15 @@ typedef char FAR * FAR * FAR * png_charppp;
1363
1391
  # endif
1364
1392
  # ifndef PNG_ALLOCATED
1365
1393
  # define PNG_ALLOCATED __attribute__((__malloc__))
1394
+ # endif
1395
+ # ifndef PNG_DEPRECATED
1396
+ # define PNG_DEPRECATED __attribute__((__deprecated__))
1366
1397
  # endif
1367
1398
 
1368
1399
  /* This specifically protects structure members that should only be
1369
1400
  * accessed from within the library, therefore should be empty during
1370
1401
  * a library build.
1371
1402
  */
1372
- # ifndef PNG_DEPRECATED
1373
- # define PNG_DEPRECATED __attribute__((__deprecated__))
1374
- # endif
1375
1403
  # ifndef PNG_DEPSTRUCT
1376
1404
  # define PNG_DEPSTRUCT __attribute__((__deprecated__))
1377
1405
  # endif
@@ -1412,7 +1440,7 @@ typedef char FAR * FAR * FAR * png_charppp;
1412
1440
 
1413
1441
  /* memory model/platform independent fns */
1414
1442
  #ifndef PNG_ABORT
1415
- # ifdef _WINDOWS_
1443
+ # if (defined(_Windows) || defined(_WINDOWS) || defined(_WINDOWS_))
1416
1444
  # define PNG_ABORT() ExitProcess(0)
1417
1445
  # else
1418
1446
  # define PNG_ABORT() abort()
@@ -1433,7 +1461,8 @@ typedef char FAR * FAR * FAR * png_charppp;
1433
1461
  # define png_memset _fmemset
1434
1462
  # define png_sprintf sprintf
1435
1463
  #else
1436
- # ifdef _WINDOWS_ /* Favor Windows over C runtime fns */
1464
+ # if (defined(_Windows) || defined(_WINDOWS) || defined(_WINDOWS_))
1465
+ # /* Favor Windows over C runtime fns */
1437
1466
  # define CVT_PTR(ptr) (ptr)
1438
1467
  # define CVT_PTR_NOCHECK(ptr) (ptr)
1439
1468
  # define png_strcpy lstrcpyA
@@ -1453,31 +1482,32 @@ typedef char FAR * FAR * FAR * png_charppp;
1453
1482
  # define png_memcpy memcpy
1454
1483
  # define png_memset memset
1455
1484
  # define png_sprintf sprintf
1456
- # ifndef PNG_NO_SNPRINTF
1457
- # ifdef _MSC_VER
1458
- # define png_snprintf _snprintf /* Added to v 1.2.19 */
1459
- # define png_snprintf2 _snprintf
1460
- # define png_snprintf6 _snprintf
1461
- # else
1462
- # define png_snprintf snprintf /* Added to v 1.2.19 */
1463
- # define png_snprintf2 snprintf
1464
- # define png_snprintf6 snprintf
1465
- # endif
1466
- # else
1467
- /* You don't have or don't want to use snprintf(). Caution: Using
1468
- * sprintf instead of snprintf exposes your application to accidental
1469
- * or malevolent buffer overflows. If you don't have snprintf()
1470
- * as a general rule you should provide one (you can get one from
1471
- * Portable OpenSSH).
1472
- */
1473
- # define png_snprintf(s1,n,fmt,x1) sprintf(s1,fmt,x1)
1474
- # define png_snprintf2(s1,n,fmt,x1,x2) sprintf(s1,fmt,x1,x2)
1475
- # define png_snprintf6(s1,n,fmt,x1,x2,x3,x4,x5,x6) \
1476
- sprintf(s1,fmt,x1,x2,x3,x4,x5,x6)
1477
- # endif
1478
1485
  # endif
1479
1486
  #endif
1480
1487
 
1488
+ #ifndef PNG_NO_SNPRINTF
1489
+ # ifdef _MSC_VER
1490
+ # define png_snprintf _snprintf /* Added to v 1.2.19 */
1491
+ # define png_snprintf2 _snprintf
1492
+ # define png_snprintf6 _snprintf
1493
+ # else
1494
+ # define png_snprintf snprintf /* Added to v 1.2.19 */
1495
+ # define png_snprintf2 snprintf
1496
+ # define png_snprintf6 snprintf
1497
+ # endif
1498
+ #else
1499
+ /* You don't have or don't want to use snprintf(). Caution: Using
1500
+ * sprintf instead of snprintf exposes your application to accidental
1501
+ * or malevolent buffer overflows. If you don't have snprintf()
1502
+ * as a general rule you should provide one (you can get one from
1503
+ * Portable OpenSSH).
1504
+ */
1505
+ # define png_snprintf(s1,n,fmt,x1) png_sprintf(s1,fmt,x1)
1506
+ # define png_snprintf2(s1,n,fmt,x1,x2) png_sprintf(s1,fmt,x1,x2)
1507
+ # define png_snprintf6(s1,n,fmt,x1,x2,x3,x4,x5,x6) \
1508
+ png_sprintf(s1,fmt,x1,x2,x3,x4,x5,x6)
1509
+ #endif
1510
+
1481
1511
  /* png_alloc_size_t is guaranteed to be no smaller than png_size_t,
1482
1512
  * and no smaller than png_uint_32. Casts from png_size_t or png_uint_32
1483
1513
  * to png_alloc_size_t are not necessary; in fact, it is recommended
@@ -1488,22 +1518,19 @@ typedef char FAR * FAR * FAR * png_charppp;
1488
1518
  * to encounter practical situations that require such conversions.
1489
1519
  */
1490
1520
  #if defined(__TURBOC__) && !defined(__FLAT__)
1491
- # define png_mem_alloc farmalloc
1492
- # define png_mem_free farfree
1493
1521
  typedef unsigned long png_alloc_size_t;
1494
1522
  #else
1495
1523
  # if defined(_MSC_VER) && defined(MAXSEG_64K)
1496
- # define png_mem_alloc(s) halloc(s, 1)
1497
- # define png_mem_free hfree
1498
1524
  typedef unsigned long png_alloc_size_t;
1499
1525
  # else
1500
- # if defined(_WINDOWS_) && (!defined(INT_MAX) || INT_MAX <= 0x7ffffffeL)
1501
- # define png_mem_alloc(s) HeapAlloc(GetProcessHeap(), 0, s)
1502
- # define png_mem_free(p) HeapFree(GetProcessHeap(), 0, p)
1503
- typedef DWORD png_alloc_size_t;
1526
+ /* This is an attempt to detect an old Windows system where (int) is
1527
+ * actually 16 bits, in that case png_malloc must have an argument with a
1528
+ * bigger size to accomodate the requirements of the library.
1529
+ */
1530
+ # if (defined(_Windows) || defined(_WINDOWS) || defined(_WINDOWS_)) && \
1531
+ (!defined(INT_MAX) || INT_MAX <= 0x7ffffffeL)
1532
+ typedef DWORD png_alloc_size_t;
1504
1533
  # else
1505
- # define png_mem_alloc malloc
1506
- # define png_mem_free free
1507
1534
  typedef png_size_t png_alloc_size_t;
1508
1535
  # endif
1509
1536
  # endif
Binary file
@@ -5,7 +5,7 @@ includedir=${prefix}/include/libpng14
5
5
 
6
6
  Name: libpng
7
7
  Description: Loads and saves PNG files
8
- Version: 1.4.3
8
+ Version: 1.4.12
9
9
  Libs: -L${libdir} -lpng14
10
10
  Libs.private: -lz
11
11
  Cflags: -I${includedir}
@@ -5,7 +5,7 @@ includedir=${prefix}/include/libpng14
5
5
 
6
6
  Name: libpng
7
7
  Description: Loads and saves PNG files
8
- Version: 1.4.3
8
+ Version: 1.4.12
9
9
  Libs: -L${libdir} -lpng14
10
10
  Libs.private: -lz
11
11
  Cflags: -I${includedir}
@@ -0,0 +1,15 @@
1
+ include/libpng14/png.h
2
+ include/libpng14/pngconf.h
3
+ include/png.h
4
+ include/pngconf.h
5
+ lib/libpng14.dll.a
6
+ lib/libpng.def
7
+ lib/libpng.lib
8
+ lib/pkgconfig/libpng.pc
9
+ lib/pkgconfig/libpng14.pc
10
+ share/man/man3/libpng.3
11
+ share/man/man3/libpngpf.3
12
+ share/man/man5/png.5
13
+ src/dieterv/packaging/libpng_1.4.12-1_win32.sh
14
+ src/dieterv/packaging/libpng_1.4.12-1_win32.log
15
+ manifest/libpng-dev_1.4.12-1_win32.mft
@@ -0,0 +1,2 @@
1
+ bin/libpng14-14.dll
2
+ manifest/libpng_1.4.12-1_win32.mft
@@ -1,6 +1,6 @@
1
- .TH LIBPNG 3 "June 26, 2010"
1
+ .TH LIBPNG 3 "July 10, 2012"
2
2
  .SH NAME
3
- libpng \- Portable Network Graphics (PNG) Reference Library 1.4.3
3
+ libpng \- Portable Network Graphics (PNG) Reference Library 1.4.12
4
4
  .SH SYNOPSIS
5
5
  \fI\fB
6
6
 
@@ -12,7 +12,15 @@ libpng \- Portable Network Graphics (PNG) Reference Library 1.4.3
12
12
 
13
13
  \fI\fB
14
14
 
15
- \fBvoid png_benign_error (png_structp \fP\fIpng_ptr\fP\fB, png_const_charp \fIerror\fP\fB);\fP
15
+ \fBvoid png_benign_errors (png_structp \fP\fIpng_ptr\fP\fB, png_const_charp \fIerror\fP\fB);\fP
16
+
17
+ \fI\fB
18
+
19
+ \fBvoid png_build_grayscale_palette (int \fP\fIbit_depth\fP\fB, png_colorp \fIpalette\fP\fB);\fP
20
+
21
+ \fI\fB
22
+
23
+ \fBpng_voidp png_calloc (png_structp \fP\fIpng_ptr\fP\fB, png_alloc_size_t \fIsize\fP\fB);\fP
16
24
 
17
25
  \fI\fB
18
26
 
@@ -48,7 +56,7 @@ libpng \- Portable Network Graphics (PNG) Reference Library 1.4.3
48
56
 
49
57
  \fI\fB
50
58
 
51
- \fBpng_structp png_create_read_struct_2(png_const_charp \fP\fIuser_png_ver\fP\fB, png_voidp \fP\fIerror_ptr\fP\fB, png_error_ptr \fP\fIerror_fn\fP\fB, png_error_ptr \fP\fIwarn_fn\fP\fB, png_voidp \fP\fImem_ptr\fP\fB, png_malloc_ptr \fP\fImalloc_fn\fP\fB, png_free_ptr \fIfree_fn\fP\fB);\fP
59
+ \fBpng_structp png_create_read_struct_2 (png_const_charp \fP\fIuser_png_ver\fP\fB, png_voidp \fP\fIerror_ptr\fP\fB, png_error_ptr \fP\fIerror_fn\fP\fB, png_error_ptr \fP\fIwarn_fn\fP\fB, png_voidp \fP\fImem_ptr\fP\fB, png_malloc_ptr \fP\fImalloc_fn\fP\fB, png_free_ptr \fIfree_fn\fP\fB);\fP
52
60
 
53
61
  \fI\fB
54
62
 
@@ -56,7 +64,11 @@ libpng \- Portable Network Graphics (PNG) Reference Library 1.4.3
56
64
 
57
65
  \fI\fB
58
66
 
59
- \fBpng_structp png_create_write_struct_2(png_const_charp \fP\fIuser_png_ver\fP\fB, png_voidp \fP\fIerror_ptr\fP\fB, png_error_ptr \fP\fIerror_fn\fP\fB, png_error_ptr \fP\fIwarn_fn\fP\fB, png_voidp \fP\fImem_ptr\fP\fB, png_malloc_ptr \fP\fImalloc_fn\fP\fB, png_free_ptr \fIfree_fn\fP\fB);\fP
67
+ \fBpng_structp png_create_write_struct_2 (png_const_charp \fP\fIuser_png_ver\fP\fB, png_voidp \fP\fIerror_ptr\fP\fB, png_error_ptr \fP\fIerror_fn\fP\fB, png_error_ptr \fP\fIwarn_fn\fP\fB, png_voidp \fP\fImem_ptr\fP\fB, png_malloc_ptr \fP\fImalloc_fn\fP\fB, png_free_ptr \fIfree_fn\fP\fB);\fP
68
+
69
+ \fI\fB
70
+
71
+ \fBvoid png_data_freer (png_structp \fP\fIpng_ptr\fP\fB, png_infop \fP\fIinfo_ptr\fP\fB, int \fP\fIfreer\fP\fB, png_uint_32 \fImask)\fP\fB);\fP
60
72
 
61
73
  \fI\fB
62
74
 
@@ -72,6 +84,10 @@ libpng \- Portable Network Graphics (PNG) Reference Library 1.4.3
72
84
 
73
85
  \fI\fB
74
86
 
87
+ \fBvoid png_err (png_structp \fIpng_ptr\fP\fB);\fP
88
+
89
+ \fI\fB
90
+
75
91
  \fBvoid png_error (png_structp \fP\fIpng_ptr\fP\fB, png_const_charp \fIerror\fP\fB);\fP
76
92
 
77
93
  \fI\fB
@@ -84,7 +100,7 @@ libpng \- Portable Network Graphics (PNG) Reference Library 1.4.3
84
100
 
85
101
  \fI\fB
86
102
 
87
- \fBvoid png_free_default(png_structp \fP\fIpng_ptr\fP\fB, png_voidp \fIptr\fP\fB);\fP
103
+ \fBvoid png_free_default (png_structp \fP\fIpng_ptr\fP\fB, png_voidp \fIptr\fP\fB);\fP
88
104
 
89
105
  \fI\fB
90
106
 
@@ -92,75 +108,81 @@ libpng \- Portable Network Graphics (PNG) Reference Library 1.4.3
92
108
 
93
109
  \fI\fB
94
110
 
95
- \fBpng_byte png_get_bit_depth (png_structp \fP\fIpng_ptr\fP\fB, png_infop \fIinfo_ptr\fP\fB);\fP
111
+ \fBpng_byte png_get_bit_depth (png_const_structp \fP\fIpng_ptr\fP\fB, png_const_infop \fIinfo_ptr\fP\fB);\fP
112
+
113
+ \fI\fB
114
+
115
+ \fBpng_uint_32 png_get_bKGD (png_const_structp \fP\fIpng_ptr\fP\fB, png_infop \fP\fIinfo_ptr\fP\fB, png_color_16p \fI*background\fP\fB);\fP
96
116
 
97
117
  \fI\fB
98
118
 
99
- \fBpng_uint_32 png_get_bKGD (png_structp \fP\fIpng_ptr\fP\fB, png_infop \fP\fIinfo_ptr\fP\fB, png_color_16p \fI*background\fP\fB);\fP
119
+ \fBpng_byte png_get_channels (png_const_structp \fP\fIpng_ptr\fP\fB, png_const_infop \fIinfo_ptr\fP\fB);\fP
100
120
 
101
121
  \fI\fB
102
122
 
103
- \fBpng_byte png_get_channels (png_structp \fP\fIpng_ptr\fP\fB, png_infop \fIinfo_ptr\fP\fB);\fP
123
+ \fBpng_uint_32 png_get_cHRM (png_const_structp \fP\fIpng_ptr\fP\fB, png_const_infop \fP\fIinfo_ptr\fP\fB, double \fP\fI*white_x\fP\fB, double \fP\fI*white_y\fP\fB, double \fP\fI*red_x\fP\fB, double \fP\fI*red_y\fP\fB, double \fP\fI*green_x\fP\fB, double \fP\fI*green_y\fP\fB, double \fP\fI*blue_x\fP\fB, double \fI*blue_y\fP\fB);\fP
104
124
 
105
125
  \fI\fB
106
126
 
107
- \fBpng_uint_32 png_get_cHRM (png_structp \fP\fIpng_ptr\fP\fB, png_infop \fP\fIinfo_ptr\fP\fB, double \fP\fI*white_x\fP\fB, double \fP\fI*white_y\fP\fB, double \fP\fI*red_x\fP\fB, double \fP\fI*red_y\fP\fB, double \fP\fI*green_x\fP\fB, double \fP\fI*green_y\fP\fB, double \fP\fI*blue_x\fP\fB, double \fI*blue_y\fP\fB);\fP
127
+ \fBpng_uint_32 png_get_cHRM_fixed (png_const_structp \fP\fIpng_ptr\fP\fB, png_const_infop \fP\fIinfo_ptr\fP\fB, png_uint_32 \fP\fI*white_x\fP\fB, png_uint_32 \fP\fI*white_y\fP\fB, png_uint_32 \fP\fI*red_x\fP\fB, png_uint_32 \fP\fI*red_y\fP\fB, png_uint_32 \fP\fI*green_x\fP\fB, png_uint_32 \fP\fI*green_y\fP\fB, png_uint_32 \fP\fI*blue_x\fP\fB, png_uint_32 \fI*blue_y\fP\fB);\fP
108
128
 
109
129
  \fI\fB
110
130
 
111
- \fBpng_uint_32 png_get_cHRM_fixed (png_structp \fP\fIpng_ptr\fP\fB, png_infop \fP\fIinfo_ptr\fP\fB, png_uint_32 \fP\fI*white_x\fP\fB, png_uint_32 \fP\fI*white_y\fP\fB, png_uint_32 \fP\fI*red_x\fP\fB, png_uint_32 \fP\fI*red_y\fP\fB, png_uint_32 \fP\fI*green_x\fP\fB, png_uint_32 \fP\fI*green_y\fP\fB, png_uint_32 \fP\fI*blue_x\fP\fB, png_uint_32 \fI*blue_y\fP\fB);\fP
131
+ \fBpng_uint_32 png_get_chunk_cache_max (png_const_structp \fIpng_ptr\fP\fB);\fP
112
132
 
113
133
  \fI\fB
114
134
 
115
- \fBpng_uint_32 png_get_chunk_cache_max (png_structp \fIpng_ptr\fP\fB);\fP
135
+ \fI\fB
136
+
137
+ \fBpng_alloc_size_t png_get_chunk_malloc_max (png_const_structp \fIpng_ptr\fP\fB);\fP
116
138
 
117
139
  \fI\fB
118
140
 
119
- \fBpng_byte png_get_color_type (png_structp \fP\fIpng_ptr\fP\fB, png_infop \fIinfo_ptr\fP\fB);\fP
141
+ \fBpng_byte png_get_color_type (png_const_structp \fP\fIpng_ptr\fP\fB, png_const_infop \fIinfo_ptr\fP\fB);\fP
120
142
 
121
143
  \fI\fB
122
144
 
123
- \fBpng_uint_32 png_get_compression_buffer_size (png_structp \fIpng_ptr\fP\fB);\fP
145
+ \fBpng_uint_32 png_get_compression_buffer_size (png_const_structp \fIpng_ptr\fP\fB);\fP
124
146
 
125
147
  \fI\fB
126
148
 
127
- \fBpng_byte png_get_compression_type (png_structp \fP\fIpng_ptr\fP\fB, png_infop \fIinfo_ptr\fP\fB);\fP
149
+ \fBpng_byte png_get_compression_type (png_const_structp \fP\fIpng_ptr\fP\fB, png_const_infop \fIinfo_ptr\fP\fB);\fP
128
150
 
129
151
  \fI\fB
130
152
 
131
- \fBpng_byte png_get_copyright (png_structp \fIpng_ptr\fP\fB);\fP
153
+ \fBpng_byte png_get_copyright (png_const_structp \fIpng_ptr\fP\fB);\fP
132
154
 
133
155
  \fI\fB
134
156
 
135
- \fBpng_voidp png_get_error_ptr (png_structp \fIpng_ptr\fP\fB);\fP
157
+ \fBpng_voidp png_get_error_ptr (png_const_structp \fIpng_ptr\fP\fB);\fP
136
158
 
137
159
  \fI\fB
138
160
 
139
- \fBpng_byte png_get_filter_type (png_structp \fP\fIpng_ptr\fP\fB, png_infop \fIinfo_ptr\fP\fB);\fP
161
+ \fBpng_byte png_get_filter_type (png_const_structp \fP\fIpng_ptr\fP\fB, png_const_infop \fIinfo_ptr\fP\fB);\fP
140
162
 
141
163
  \fI\fB
142
164
 
143
- \fBpng_uint_32 png_get_gAMA (png_structp \fP\fIpng_ptr\fP\fB, png_infop \fP\fIinfo_ptr\fP\fB, double \fI*file_gamma\fP\fB);\fP
165
+ \fBpng_uint_32 png_get_gAMA (png_const_structp \fP\fIpng_ptr\fP\fB, png_const_infop \fP\fIinfo_ptr\fP\fB, double \fI*file_gamma\fP\fB);\fP
144
166
 
145
167
  \fI\fB
146
168
 
147
- \fBpng_uint_32 png_get_gAMA_fixed (png_structp \fP\fIpng_ptr\fP\fB, png_infop \fP\fIinfo_ptr\fP\fB, png_uint_32 \fI*int_file_gamma\fP\fB);\fP
169
+ \fBpng_uint_32 png_get_gAMA_fixed (png_const_structp \fP\fIpng_ptr\fP\fB, png_const_infop \fP\fIinfo_ptr\fP\fB, png_uint_32 \fI*int_file_gamma\fP\fB);\fP
148
170
 
149
171
  \fI\fB
150
172
 
151
- \fBpng_byte png_get_header_ver (png_structp \fIpng_ptr\fP\fB);\fP
173
+ \fBpng_byte png_get_header_ver (png_const_structp \fIpng_ptr\fP\fB);\fP
152
174
 
153
175
  \fI\fB
154
176
 
155
- \fBpng_byte png_get_header_version (png_structp \fIpng_ptr\fP\fB);\fP
177
+ \fBpng_byte png_get_header_version (png_const_structp \fIpng_ptr\fP\fB);\fP
156
178
 
157
179
  \fI\fB
158
180
 
159
- \fBpng_uint_32 png_get_hIST (png_structp \fP\fIpng_ptr\fP\fB, png_infop \fP\fIinfo_ptr\fP\fB, png_uint_16p \fI*hist\fP\fB);\fP
181
+ \fBpng_uint_32 png_get_hIST (png_const_structp \fP\fIpng_ptr\fP\fB, png_const_infop \fP\fIinfo_ptr\fP\fB, png_uint_16p \fI*hist\fP\fB);\fP
160
182
 
161
183
  \fI\fB
162
184
 
163
- \fBpng_uint_32 png_get_iCCP (png_structp \fP\fIpng_ptr\fP\fB, png_infop \fP\fIinfo_ptr\fP\fB, png_charpp \fP\fIname\fP\fB, int \fP\fI*compression_type\fP\fB, png_charpp \fP\fIprofile\fP\fB, png_uint_32 \fI*proflen\fP\fB);\fP
185
+ \fBpng_uint_32 png_get_iCCP (png_const_structp \fP\fIpng_ptr\fP\fB, png_const_infop \fP\fIinfo_ptr\fP\fB, png_charpp \fP\fIname\fP\fB, int \fP\fI*compression_type\fP\fB, png_bytepp \fP\fIprofile\fP\fB, png_uint_32 \fI*proflen\fP\fB);\fP
164
186
 
165
187
  \fI\fB
166
188
 
@@ -168,11 +190,11 @@ libpng \- Portable Network Graphics (PNG) Reference Library 1.4.3
168
190
 
169
191
  \fI\fB
170
192
 
171
- \fBpng_uint_32 png_get_image_height (png_structp \fP\fIpng_ptr\fP\fB, png_infop \fIinfo_ptr\fP\fB);\fP
193
+ \fBpng_uint_32 png_get_image_height (png_const_structp \fP\fIpng_ptr\fP\fB, png_const_infop \fIinfo_ptr\fP\fB);\fP
172
194
 
173
195
  \fI\fB
174
196
 
175
- \fBpng_uint_32 png_get_image_width (png_structp \fP\fIpng_ptr\fP\fB, png_infop \fIinfo_ptr\fP\fB);\fP
197
+ \fBpng_uint_32 png_get_image_width (png_const_structp \fP\fIpng_ptr\fP\fB, png_const_infop \fIinfo_ptr\fP\fB);\fP
176
198
 
177
199
  \fI\fB
178
200
 
@@ -180,7 +202,11 @@ libpng \- Portable Network Graphics (PNG) Reference Library 1.4.3
180
202
 
181
203
  \fI\fB
182
204
 
183
- \fBpng_byte png_get_interlace_type (png_structp \fP\fIpng_ptr\fP\fB, png_infop \fIinfo_ptr\fP\fB);\fP
205
+ \fBpng_byte png_get_interlace_type (png_const_structp \fP\fIpng_ptr\fP\fB, png_const_infop \fIinfo_ptr\fP\fB);\fP
206
+
207
+ \fI\fB
208
+
209
+ \fBpng_const_bytep png_get_io_chunk_name (png_structp \fIpng_ptr\fP\fB);\fP
184
210
 
185
211
  \fI\fB
186
212
 
@@ -188,81 +214,105 @@ libpng \- Portable Network Graphics (PNG) Reference Library 1.4.3
188
214
 
189
215
  \fI\fB
190
216
 
191
- \fBpng_byte png_get_libpng_ver (png_structp \fIpng_ptr\fP\fB);\fP
217
+ \fBpng_uint_32 png_get_io_state (png_structp \fIpng_ptr\fP\fB);\fP
218
+
219
+ \fI\fB
220
+
221
+ \fBpng_byte png_get_libpng_ver (png_const_structp \fIpng_ptr\fP\fB);\fP
222
+
223
+ \fI\fB
224
+
225
+ \fBpng_voidp png_get_mem_ptr (png_const_structp \fIpng_ptr\fP\fB);\fP
226
+
227
+ \fI\fB
228
+
229
+ \fBpng_uint_32 png_get_oFFs (png_const_structp \fP\fIpng_ptr\fP\fB, png_const_infop \fP\fIinfo_ptr\fP\fB, png_uint_32 \fP\fI*offset_x\fP\fB, png_uint_32 \fP\fI*offset_y\fP\fB, int \fI*unit_type\fP\fB);\fP
230
+
231
+ \fI\fB
232
+
233
+ \fBpng_uint_32 png_get_pCAL (png_const_structp \fP\fIpng_ptr\fP\fB, png_const_infop \fP\fIinfo_ptr\fP\fB, png_charp \fP\fI*purpose\fP\fB, png_int_32 \fP\fI*X0\fP\fB, png_int_32 \fP\fI*X1\fP\fB, int \fP\fI*type\fP\fB, int \fP\fI*nparams\fP\fB, png_charp \fP\fI*units\fP\fB, png_charpp \fI*params\fP\fB);\fP
234
+
235
+ \fI\fB
236
+
237
+ \fBpng_uint_32 png_get_pHYs (png_const_structp \fP\fIpng_ptr\fP\fB, png_const_infop \fP\fIinfo_ptr\fP\fB, png_uint_32 \fP\fI*res_x\fP\fB, png_uint_32 \fP\fI*res_y\fP\fB, int \fI*unit_type\fP\fB);\fP
192
238
 
193
239
  \fI\fB
194
240
 
195
- \fBpng_alloc_size_t png_get_chunk_malloc_max (png_structp \fIpng_ptr\fP\fB);\fP
241
+ \fBfloat png_get_pixel_aspect_ratio (png_const_structp \fP\fIpng_ptr\fP\fB, png_const_infop \fIinfo_ptr\fP\fB);\fP
196
242
 
197
243
  \fI\fB
198
244
 
199
- \fBpng_voidp png_get_mem_ptr(png_structp \fIpng_ptr\fP\fB);\fP
245
+ \fBpng_uint_32 png_get_pHYs_dpi (png_const_structp \fP\fIpng_ptr\fP\fB, png_const_infop \fP\fIinfo_ptr\fP\fB, png_uint_32 \fP\fI*res_x\fP\fB, png_uint_32 \fP\fI*res_y\fP\fB, int \fI*unit_type\fP\fB);\fP
200
246
 
201
247
  \fI\fB
202
248
 
203
- \fBpng_uint_32 png_get_oFFs (png_structp \fP\fIpng_ptr\fP\fB, png_infop \fP\fIinfo_ptr\fP\fB, png_uint_32 \fP\fI*offset_x\fP\fB, png_uint_32 \fP\fI*offset_y\fP\fB, int \fI*unit_type\fP\fB);\fP
249
+ \fBpng_fixed_point png_get_pixel_aspect_ratio_fixed (png_const_structp \fP\fIpng_ptr\fP\fB, png_const_infop \fIinfo_ptr\fP\fB);\fP
204
250
 
205
251
  \fI\fB
206
252
 
207
- \fBpng_uint_32 png_get_pCAL (png_structp \fP\fIpng_ptr\fP\fB, png_infop \fP\fIinfo_ptr\fP\fB, png_charp \fP\fI*purpose\fP\fB, png_int_32 \fP\fI*X0\fP\fB, png_int_32 \fP\fI*X1\fP\fB, int \fP\fI*type\fP\fB, int \fP\fI*nparams\fP\fB, png_charp \fP\fI*units\fP\fB, png_charpp \fI*params\fP\fB);\fP
253
+ \fBpng_uint_32 png_get_pixels_per_inch (png_const_structp \fP\fIpng_ptr\fP\fB, png_const_infop \fIinfo_ptr\fP\fB);\fP
208
254
 
209
255
  \fI\fB
210
256
 
211
- \fBpng_uint_32 png_get_pHYs (png_structp \fP\fIpng_ptr\fP\fB, png_infop \fP\fIinfo_ptr\fP\fB, png_uint_32 \fP\fI*res_x\fP\fB, png_uint_32 \fP\fI*res_y\fP\fB, int \fI*unit_type\fP\fB);\fP
257
+ \fBpng_uint_32 png_get_pixels_per_meter (png_const_structp \fP\fIpng_ptr\fP\fB, png_const_infop \fIinfo_ptr\fP\fB);\fP
212
258
 
213
259
  \fI\fB
214
260
 
215
- \fBfloat png_get_pixel_aspect_ratio (png_structp \fP\fIpng_ptr\fP\fB, png_infop \fIinfo_ptr\fP\fB);\fP
261
+ \fBpng_voidp png_get_progressive_ptr (png_const_structp \fIpng_ptr\fP\fB);\fP
216
262
 
217
263
  \fI\fB
218
264
 
219
- \fBpng_uint_32 png_get_pixels_per_meter (png_structp \fP\fIpng_ptr\fP\fB, png_infop \fIinfo_ptr\fP\fB);\fP
265
+ \fBpng_uint_32 png_get_PLTE (png_const_structp \fP\fIpng_ptr\fP\fB, png_const_infop \fP\fIinfo_ptr\fP\fB, png_colorp \fP\fI*palette\fP\fB, int \fI*num_palette\fP\fB);\fP
220
266
 
221
267
  \fI\fB
222
268
 
223
- \fBpng_voidp png_get_progressive_ptr (png_structp \fIpng_ptr\fP\fB);\fP
269
+ \fBpng_byte png_get_rgb_to_gray_status (png_const_structp \fIpng_ptr)
270
+
271
+ \fBpng_uint_32 png_get_rowbytes (png_const_structp \fP\fIpng_ptr\fP\fB, png_const_infop \fIinfo_ptr\fP\fB);\fP
224
272
 
225
273
  \fI\fB
226
274
 
227
- \fBpng_uint_32 png_get_PLTE (png_structp \fP\fIpng_ptr\fP\fB, png_infop \fP\fIinfo_ptr\fP\fB, png_colorp \fP\fI*palette\fP\fB, int \fI*num_palette\fP\fB);\fP
275
+ \fBpng_bytepp png_get_rows (png_const_structp \fP\fIpng_ptr\fP\fB, png_const_infop \fIinfo_ptr\fP\fB);\fP
228
276
 
229
277
  \fI\fB
230
278
 
231
- \fBpng_byte png_get_rgb_to_gray_status (png_structp \fIpng_ptr)
279
+ \fBpng_uint_32 png_get_sBIT (png_const_structp \fP\fIpng_ptr\fP\fB, png_infop \fP\fIinfo_ptr\fP\fB, png_color_8p \fI*sig_bit\fP\fB);\fP
280
+
281
+ \fI\fB
232
282
 
233
- \fBpng_uint_32 png_get_rowbytes (png_structp \fP\fIpng_ptr\fP\fB, png_infop \fIinfo_ptr\fP\fB);\fP
283
+ \fBvoid png_get_sCAL (png_const_structp \fP\fIpng_ptr\fP\fB, png_const_infop \fP\fIinfo_ptr\fP\fB, int* \fP\fIunit\fP\fB, double* \fP\fIwidth\fP\fB, double* \fIheight\fP\fB);\fP
234
284
 
235
285
  \fI\fB
236
286
 
237
- \fBpng_bytepp png_get_rows (png_structp \fP\fIpng_ptr\fP\fB, png_infop \fIinfo_ptr\fP\fB);\fP
287
+ \fBvoid png_get_sCAL_fixed (png_const_structp \fP\fIpng_ptr\fP\fB, png_const_infop \fP\fIinfo_ptr\fP\fB, int* \fP\fIunit\fP\fB, png_fixed_pointp \fP\fIwidth\fP\fB, png_fixed_pointp \fIheight\fP\fB);\fP
238
288
 
239
289
  \fI\fB
240
290
 
241
- \fBpng_uint_32 png_get_sBIT (png_structp \fP\fIpng_ptr\fP\fB, png_infop \fP\fIinfo_ptr\fP\fB, png_color_8p \fI*sig_bit\fP\fB);\fP
291
+ \fBvoid png_get_sCAL_s (png_const_structp \fP\fIpng_ptr\fP\fB, png_const_infop \fP\fIinfo_ptr\fP\fB, int* \fP\fIunit\fP\fB, png_charpp \fP\fIwidth\fP\fB, png_charpp \fIheight\fP\fB);\fP
242
292
 
243
293
  \fI\fB
244
294
 
245
- \fBpng_bytep png_get_signature (png_structp \fP\fIpng_ptr\fP\fB, png_infop \fIinfo_ptr\fP\fB);\fP
295
+ \fBpng_bytep png_get_signature (png_const_structp \fP\fIpng_ptr\fP\fB, png_infop \fIinfo_ptr\fP\fB);\fP
246
296
 
247
297
  \fI\fB
248
298
 
249
- \fBpng_uint_32 png_get_sPLT (png_structp \fP\fIpng_ptr\fP\fB, png_infop \fP\fIinfo_ptr\fP\fB, png_spalette_p \fI*splt_ptr\fP\fB);\fP
299
+ \fBpng_uint_32 png_get_sPLT (png_const_structp \fP\fIpng_ptr\fP\fB, png_const_infop \fP\fIinfo_ptr\fP\fB, png_spalette_p \fI*splt_ptr\fP\fB);\fP
250
300
 
251
301
  \fI\fB
252
302
 
253
- \fBpng_uint_32 png_get_sRGB (png_structp \fP\fIpng_ptr\fP\fB, png_infop \fP\fIinfo_ptr\fP\fB, int \fI*intent\fP\fB);\fP
303
+ \fBpng_uint_32 png_get_sRGB (png_const_structp \fP\fIpng_ptr\fP\fB, png_const_infop \fP\fIinfo_ptr\fP\fB, int \fI*intent\fP\fB);\fP
254
304
 
255
305
  \fI\fB
256
306
 
257
- \fBpng_uint_32 png_get_text (png_structp \fP\fIpng_ptr\fP\fB, png_infop \fP\fIinfo_ptr\fP\fB, png_textp \fP\fI*text_ptr\fP\fB, int \fI*num_text\fP\fB);\fP
307
+ \fBpng_uint_32 png_get_text (png_const_structp \fP\fIpng_ptr\fP\fB, png_const_infop \fP\fIinfo_ptr\fP\fB, png_textp \fP\fI*text_ptr\fP\fB, int \fI*num_text\fP\fB);\fP
258
308
 
259
309
  \fI\fB
260
310
 
261
- \fBpng_uint_32 png_get_tIME (png_structp \fP\fIpng_ptr\fP\fB, png_infop \fP\fIinfo_ptr\fP\fB, png_timep \fI*mod_time\fP\fB);\fP
311
+ \fBpng_uint_32 png_get_tIME (png_const_structp \fP\fIpng_ptr\fP\fB, png_infop \fP\fIinfo_ptr\fP\fB, png_timep \fI*mod_time\fP\fB);\fP
262
312
 
263
313
  \fI\fB
264
314
 
265
- \fBpng_uint_32 png_get_tRNS (png_structp \fP\fIpng_ptr\fP\fB, png_infop \fP\fIinfo_ptr\fP\fB, png_bytep \fP\fI*trans\fP\fB, int \fP\fI*num_trans\fP\fB, png_color_16p \fI*trans_color\fP\fB);\fP
315
+ \fBpng_uint_32 png_get_tRNS (png_const_structp \fP\fIpng_ptr\fP\fB, png_infop \fP\fIinfo_ptr\fP\fB, png_bytep \fP\fI*trans_alpha\fP\fB, int \fP\fI*num_trans\fP\fB, png_color_16p \fI*trans_color\fP\fB);\fP
266
316
 
267
317
  \fI\fB
268
318
 
@@ -272,7 +322,7 @@ libpng \- Portable Network Graphics (PNG) Reference Library 1.4.3
272
322
 
273
323
  \fI\fB
274
324
 
275
- \fBpng_uint_32 png_get_uint_31 (png_bytep \fIbuf\fP\fB);\fP
325
+ \fBpng_uint_32 png_get_uint_31 (png_structp \fP\fIpng_ptr\fP\fB, png_bytep \fIbuf\fP\fB);\fP
276
326
 
277
327
  \fI\fB
278
328
 
@@ -282,51 +332,75 @@ libpng \- Portable Network Graphics (PNG) Reference Library 1.4.3
282
332
 
283
333
  \fI\fB
284
334
 
285
- \fBpng_uint_32 png_get_unknown_chunks (png_structp \fP\fIpng_ptr\fP\fB, png_infop \fP\fIinfo_ptr\fP\fB, png_unknown_chunkpp \fIunknowns\fP\fB);\fP
335
+ \fBpng_uint_32 png_get_unknown_chunks (png_const_structp \fP\fIpng_ptr\fP\fB, png_const_infop \fP\fIinfo_ptr\fP\fB, png_unknown_chunkpp \fIunknowns\fP\fB);\fP
336
+
337
+ \fI\fB
338
+
339
+ \fBpng_voidp png_get_user_chunk_ptr (png_const_structp \fIpng_ptr\fP\fB);\fP
340
+
341
+ \fI\fB
342
+
343
+ \fBpng_uint_32 png_get_user_height_max (png_const_structp \fIpng_ptr\fP\fB);\fP
344
+
345
+ \fI\fB
346
+
347
+ \fBpng_voidp png_get_user_transform_ptr (png_const_structp \fIpng_ptr\fP\fB);\fP
348
+
349
+ \fI\fB
350
+
351
+ \fBpng_uint_32 png_get_user_width_max (png_const_structp \fIpng_ptr\fP\fB);\fP
352
+
353
+ \fI\fB
354
+
355
+ \fBpng_uint_32 png_get_valid (png_const_structp \fP\fIpng_ptr\fP\fB, png_const_infop \fP\fIinfo_ptr\fP\fB, png_uint_32 \fIflag\fP\fB);\fP
286
356
 
287
357
  \fI\fB
288
358
 
289
- \fBpng_voidp png_get_user_chunk_ptr (png_structp \fIpng_ptr\fP\fB);\fP
359
+ \fBfloat png_get_x_offset_inches (png_const_structp \fP\fIpng_ptr\fP\fB, png_const_infop \fIinfo_ptr\fP\fB);\fP
290
360
 
291
361
  \fI\fB
292
362
 
293
- \fBpng_uint_32 png_get_user_height_max( png_structp \fIpng_ptr\fP\fB);\fP
363
+ \fBpng_fixed_point png_get_x_offset_inches_fixed (png_structp \fP\fIpng_ptr\fP\fB, png_const_infop \fIinfo_ptr\fP\fB);\fP
294
364
 
295
365
  \fI\fB
296
366
 
297
- \fBpng_voidp png_get_user_transform_ptr (png_structp \fIpng_ptr\fP\fB);\fP
367
+ \fBpng_int_32 png_get_x_offset_microns (png_const_structp \fP\fIpng_ptr\fP\fB, png_const_infop \fIinfo_ptr\fP\fB);\fP
298
368
 
299
369
  \fI\fB
300
370
 
301
- \fBpng_uint_32 png_get_user_width_max (png_structp \fIpng_ptr\fP\fB);\fP
371
+ \fBpng_int_32 png_get_x_offset_pixels (png_const_structp \fP\fIpng_ptr\fP\fB, png_const_infop \fIinfo_ptr\fP\fB);\fP
302
372
 
303
373
  \fI\fB
304
374
 
305
- \fBpng_uint_32 png_get_valid (png_structp \fP\fIpng_ptr\fP\fB, png_infop \fP\fIinfo_ptr\fP\fB, png_uint_32 \fIflag\fP\fB);\fP
375
+ \fBpng_uint_32 png_get_x_pixels_per_inch (png_const_structp \fP\fIpng_ptr\fP\fB, png_const_infop \fIinfo_ptr\fP\fB);\fP
306
376
 
307
377
  \fI\fB
308
378
 
309
- \fBpng_int_32 png_get_x_offset_microns (png_structp \fP\fIpng_ptr\fP\fB, png_infop \fIinfo_ptr\fP\fB);\fP
379
+ \fBpng_uint_32 png_get_x_pixels_per_meter (png_const_structp \fP\fIpng_ptr\fP\fB, png_const_infop \fIinfo_ptr\fP\fB);\fP
310
380
 
311
381
  \fI\fB
312
382
 
313
- \fBpng_int_32 png_get_x_offset_pixels (png_structp \fP\fIpng_ptr\fP\fB, png_infop \fIinfo_ptr\fP\fB);\fP
383
+ \fBfloat png_get_y_offset_inches (png_const_structp \fP\fIpng_ptr\fP\fB, png_const_infop \fIinfo_ptr\fP\fB);\fP
314
384
 
315
385
  \fI\fB
316
386
 
317
- \fBpng_uint_32 png_get_x_pixels_per_meter (png_structp \fP\fIpng_ptr\fP\fB, png_infop \fIinfo_ptr\fP\fB);\fP
387
+ \fBpng_fixed_point png_get_y_offset_inches_fixed (png_structp \fP\fIpng_ptr\fP\fB, png_const_infop \fIinfo_ptr\fP\fB);\fP
318
388
 
319
389
  \fI\fB
320
390
 
321
- \fBpng_int_32 png_get_y_offset_microns (png_structp \fP\fIpng_ptr\fP\fB, png_infop \fIinfo_ptr\fP\fB);\fP
391
+ \fBpng_int_32 png_get_y_offset_microns (png_const_structp \fP\fIpng_ptr\fP\fB, png_const_infop \fIinfo_ptr\fP\fB);\fP
322
392
 
323
393
  \fI\fB
324
394
 
325
- \fBpng_int_32 png_get_y_offset_pixels (png_structp \fP\fIpng_ptr\fP\fB, png_infop \fIinfo_ptr\fP\fB);\fP
395
+ \fBpng_int_32 png_get_y_offset_pixels (png_const_structp \fP\fIpng_ptr\fP\fB, png_const_infop \fIinfo_ptr\fP\fB);\fP
326
396
 
327
397
  \fI\fB
328
398
 
329
- \fBpng_uint_32 png_get_y_pixels_per_meter (png_structp \fP\fIpng_ptr\fP\fB, png_infop \fIinfo_ptr\fP\fB);\fP
399
+ \fBpng_uint_32 png_get_y_pixels_per_inch (png_const_structp \fP\fIpng_ptr\fP\fB, png_const_infop \fIinfo_ptr\fP\fB);\fP
400
+
401
+ \fI\fB
402
+
403
+ \fBpng_uint_32 png_get_y_pixels_per_meter (png_const_structp \fP\fIpng_ptr\fP\fB, png_const_infop \fIinfo_ptr\fP\fB);\fP
330
404
 
331
405
  \fI\fB
332
406
 
@@ -334,6 +408,10 @@ libpng \- Portable Network Graphics (PNG) Reference Library 1.4.3
334
408
 
335
409
  \fI\fB
336
410
 
411
+ \fBvoid png_info_init_3 (png_infopp \fP\fIinfo_ptr\fP\fB, png_size_t \fIpng_info_struct_size\fP\fB);\fP
412
+
413
+ \fI\fB
414
+
337
415
  \fBvoid png_init_io (png_structp \fP\fIpng_ptr\fP\fB, FILE \fI*fp\fP\fB);\fP
338
416
 
339
417
  \fI\fB
@@ -342,15 +420,15 @@ libpng \- Portable Network Graphics (PNG) Reference Library 1.4.3
342
420
 
343
421
  \fI\fB
344
422
 
345
- \fBpng_voidp png_malloc_default(png_structp \fP\fIpng_ptr\fP\fB, png_alloc_size_t \fIsize\fP\fB);\fP
423
+ \fBpng_voidp png_malloc_default (png_structp \fP\fIpng_ptr\fP\fB, png_alloc_size_t \fIsize\fP\fB);\fP
346
424
 
347
425
  \fI\fB
348
426
 
349
- \fBvoidp png_memcpy (png_voidp \fP\fIs1\fP\fB, png_voidp \fP\fIs2\fP\fB, png_size_t \fIsize\fP\fB);\fP
427
+ \fBpng_voidp png_malloc_warn (png_structp \fP\fIpng_ptr\fP\fB, png_alloc_size_t \fIsize\fP\fB);\fP
350
428
 
351
429
  \fI\fB
352
430
 
353
- \fBvoidp png_memset (png_voidp \fP\fIs1\fP\fB, int \fP\fIvalue\fP\fB, png_size_t \fIsize\fP\fB);\fP
431
+ \fBpng_uint_32 png_permit_mng_features (png_structp \fP\fIpng_ptr\fP\fB, png_uint_32 \fImng_features_permitted\fP\fB);\fP
354
432
 
355
433
  \fI\fB
356
434
 
@@ -390,7 +468,11 @@ libpng \- Portable Network Graphics (PNG) Reference Library 1.4.3
390
468
 
391
469
  \fI\fB
392
470
 
393
- \fBpng_save_int_32 (png_bytep \fP\fIbuf\fP\fB, png_int_32 \fIi\fP\fB);\fP
471
+ \fBint png_reset_zstream (png_structp \fIpng_ptr\fP\fB);\fP
472
+
473
+ \fI\fB
474
+
475
+ \fBvoid png_save_int_32 (png_bytep \fP\fIbuf\fP\fB, png_int_32 \fIi\fP\fB);\fP
394
476
 
395
477
  \fI\fB
396
478
 
@@ -410,6 +492,14 @@ libpng \- Portable Network Graphics (PNG) Reference Library 1.4.3
410
492
 
411
493
  \fI\fB
412
494
 
495
+ \fBvoid png_set_background_fixed (png_structp \fP\fIpng_ptr\fP\fB, png_color_16p \fP\fIbackground_color\fP\fB, int \fP\fIbackground_gamma_code\fP\fB, int \fP\fIneed_expand\fP\fB, png_uint_32 \fIbackground_gamma\fP\fB);\fP
496
+
497
+ \fI\fB
498
+
499
+ \fBvoid png_set_benign_errors (png_structp \fP\fIpng_ptr\fP\fB, int \fIallowed\fP\fB);\fP
500
+
501
+ \fI\fB
502
+
413
503
  \fBvoid png_set_bgr (png_structp \fIpng_ptr\fP\fB);\fP
414
504
 
415
505
  \fI\fB
@@ -462,7 +552,7 @@ libpng \- Portable Network Graphics (PNG) Reference Library 1.4.3
462
552
 
463
553
  \fI\fB
464
554
 
465
- \fBvoid png_set_expand_gray_1_2_4_to_8(png_structp \fIpng_ptr\fP\fB);\fP
555
+ \fBvoid png_set_expand_gray_1_2_4_to_8 (png_structp \fIpng_ptr\fP\fB);\fP
466
556
 
467
557
  \fI\fB
468
558
 
@@ -478,6 +568,10 @@ libpng \- Portable Network Graphics (PNG) Reference Library 1.4.3
478
568
 
479
569
  \fI\fB
480
570
 
571
+ \fBvoid png_set_filter_heuristics_fixed (png_structp \fP\fIpng_ptr\fP\fB, int \fP\fIheuristic_method\fP\fB, int \fP\fInum_weights\fP\fB, png_fixed_point_p \fP\fIfilter_weights\fP\fB, png_fixed_point_p \fIfilter_costs\fP\fB);\fP
572
+
573
+ \fI\fB
574
+
481
575
  \fBvoid png_set_flush (png_structp \fP\fIpng_ptr\fP\fB, int \fInrows\fP\fB);\fP
482
576
 
483
577
  \fI\fB
@@ -486,6 +580,10 @@ libpng \- Portable Network Graphics (PNG) Reference Library 1.4.3
486
580
 
487
581
  \fI\fB
488
582
 
583
+ \fBvoid png_set_gamma_fixed (png_structp \fP\fIpng_ptr\fP\fB, png_uint_32 \fP\fIscreen_gamma\fP\fB, png_uint_32 \fIdefault_file_gamma\fP\fB);\fP
584
+
585
+ \fI\fB
586
+
489
587
  \fBvoid png_set_gAMA (png_structp \fP\fIpng_ptr\fP\fB, png_infop \fP\fIinfo_ptr\fP\fB, double \fIfile_gamma\fP\fB);\fP
490
588
 
491
589
  \fI\fB
@@ -494,7 +592,7 @@ libpng \- Portable Network Graphics (PNG) Reference Library 1.4.3
494
592
 
495
593
  \fI\fB
496
594
 
497
- \fBvoid png_set_gray_1_2_4_to_8(png_structp \fIpng_ptr\fP\fB);\fP
595
+ \fBvoid png_set_gray_1_2_4_to_8 (png_structp \fIpng_ptr\fP\fB);\fP
498
596
 
499
597
  \fI\fB
500
598
 
@@ -506,7 +604,7 @@ libpng \- Portable Network Graphics (PNG) Reference Library 1.4.3
506
604
 
507
605
  \fI\fB
508
606
 
509
- \fBvoid png_set_iCCP (png_structp \fP\fIpng_ptr\fP\fB, png_infop \fP\fIinfo_ptr\fP\fB, png_charp \fP\fIname\fP\fB, int \fP\fIcompression_type\fP\fB, png_charp \fP\fIprofile\fP\fB, png_uint_32 \fIproflen\fP\fB);\fP
607
+ \fBvoid png_set_iCCP (png_structp \fP\fIpng_ptr\fP\fB, png_infop \fP\fIinfo_ptr\fP\fB, png_const_charp \fP\fIname\fP\fB, int \fP\fIcompression_type\fP\fB, png_const_bytep \fP\fIprofile\fP\fB, png_uint_32 \fIproflen\fP\fB);\fP
510
608
 
511
609
  \fI\fB
512
610
 
@@ -542,7 +640,11 @@ libpng \- Portable Network Graphics (PNG) Reference Library 1.4.3
542
640
 
543
641
  \fI\fB
544
642
 
545
- \fBvoid png_set_mem_fn(png_structp \fP\fIpng_ptr\fP\fB, png_voidp \fP\fImem_ptr\fP\fB, png_malloc_ptr \fP\fImalloc_fn\fP\fB, png_free_ptr \fIfree_fn\fP\fB);\fP
643
+ \fBvoid png_set_compression_buffer_size (png_structp \fP\fIpng_ptr\fP\fB, png_uint_32 \fIsize\fP\fB);\fP
644
+
645
+ \fI\fB
646
+
647
+ \fBvoid png_set_mem_fn (png_structp \fP\fIpng_ptr\fP\fB, png_voidp \fP\fImem_ptr\fP\fB, png_malloc_ptr \fP\fImalloc_fn\fP\fB, png_free_ptr \fIfree_fn\fP\fB);\fP
546
648
 
547
649
  \fI\fB
548
650
 
@@ -558,7 +660,7 @@ libpng \- Portable Network Graphics (PNG) Reference Library 1.4.3
558
660
 
559
661
  \fI\fB
560
662
 
561
- \fBvoid png_set_palette_to_rgb(png_structp \fIpng_ptr\fP\fB);\fP
663
+ \fBvoid png_set_palette_to_rgb (png_structp \fIpng_ptr\fP\fB);\fP
562
664
 
563
665
  \fI\fB
564
666
 
@@ -590,6 +692,10 @@ libpng \- Portable Network Graphics (PNG) Reference Library 1.4.3
590
692
 
591
693
  \fI\fB
592
694
 
695
+ \fBvoid png_set_read_user_chunk_fn (png_structp \fP\fIpng_ptr\fP\fB, png_voidp \fP\fIuser_chunk_ptr\fP\fB, png_user_chunk_ptr \fIread_user_chunk_fn\fP\fB);\fP
696
+
697
+ \fI\fB
698
+
593
699
  \fBvoid png_set_read_user_transform_fn (png_structp \fP\fIpng_ptr\fP\fB, png_user_transform_ptr \fIread_user_transform_fn\fP\fB);\fP
594
700
 
595
701
  \fI\fB
@@ -598,7 +704,7 @@ libpng \- Portable Network Graphics (PNG) Reference Library 1.4.3
598
704
 
599
705
  \fI\fB
600
706
 
601
- \fBvoid png_set_rgb_to_gray_fixed (png_structp \fP\fIpng_ptr\fP\fB, int error_action png_fixed_point \fP\fIred\fP\fB, png_fixed_point \fIgreen\fP\fB);\fP
707
+ \fBvoid png_set_rgb_to_gray_fixed (png_structp \fP\fIpng_ptr\fP\fB, int error_action png_uint_32 \fP\fIred\fP\fB, png_uint_32 \fIgreen\fP\fB);\fP
602
708
 
603
709
  \fI\fB
604
710
 
@@ -610,7 +716,15 @@ libpng \- Portable Network Graphics (PNG) Reference Library 1.4.3
610
716
 
611
717
  \fI\fB
612
718
 
613
- \fBvoid png_set_sCAL (png_structp \fP\fIpng_ptr\fP\fB, png_infop \fP\fIinfo_ptr\fP\fB, png_charp \fP\fIunit\fP\fB, double \fP\fIwidth\fP\fB, double \fIheight\fP\fB);\fP
719
+ \fBvoid png_set_sCAL (png_structp \fP\fIpng_ptr\fP\fB, png_infop \fP\fIinfo_ptr\fP\fB, int \fP\fIunit\fP\fB, double \fP\fIwidth\fP\fB, double \fIheight\fP\fB);\fP
720
+
721
+ \fI\fB
722
+
723
+ \fBvoid png_set_sCAL_fixed (png_structp \fP\fIpng_ptr\fP\fB, png_infop \fP\fIinfo_ptr\fP\fB, int \fP\fIunit\fP\fB, png_fixed_point \fP\fIwidth\fP\fB, png_fixed_point \fIheight\fP\fB);\fP
724
+
725
+ \fI\fB
726
+
727
+ \fBvoid png_set_sCAL_s (png_structp \fP\fIpng_ptr\fP\fB, png_infop \fP\fIinfo_ptr\fP\fB, int \fP\fIunit\fP\fB, png_charp \fP\fIwidth\fP\fB, png_charp \fIheight\fP\fB);\fP
614
728
 
615
729
  \fI\fB
616
730
 
@@ -642,6 +756,10 @@ libpng \- Portable Network Graphics (PNG) Reference Library 1.4.3
642
756
 
643
757
  \fI\fB
644
758
 
759
+ \fBvoid png_set_strip_error_numbers (png_structp \fP\fIpng_ptr\fP\fB, png_uint_32 \fIstrip_mode\fP\fB);\fP
760
+
761
+ \fI\fB
762
+
645
763
  \fBvoid png_set_swap (png_structp \fIpng_ptr\fP\fB);\fP
646
764
 
647
765
  \fI\fB
@@ -658,11 +776,11 @@ libpng \- Portable Network Graphics (PNG) Reference Library 1.4.3
658
776
 
659
777
  \fI\fB
660
778
 
661
- \fBvoid png_set_tRNS (png_structp \fP\fIpng_ptr\fP\fB, png_infop \fP\fIinfo_ptr\fP\fB, png_bytep \fP\fItrans\fP\fB, int \fP\fInum_trans\fP\fB, png_color_16p \fItrans_color\fP\fB);\fP
779
+ \fBvoid png_set_tRNS (png_structp \fP\fIpng_ptr\fP\fB, png_infop \fP\fIinfo_ptr\fP\fB, png_bytep \fP\fItrans_alpha\fP\fB, int \fP\fInum_trans\fP\fB, png_color_16p \fItrans_color\fP\fB);\fP
662
780
 
663
781
  \fI\fB
664
782
 
665
- \fBvoid png_set_tRNS_to_alpha(png_structp \fIpng_ptr\fP\fB);\fP
783
+ \fBvoid png_set_tRNS_to_alpha (png_structp \fIpng_ptr\fP\fB);\fP
666
784
 
667
785
  \fI\fB
668
786
 
@@ -670,11 +788,7 @@ libpng \- Portable Network Graphics (PNG) Reference Library 1.4.3
670
788
 
671
789
  \fI\fB
672
790
 
673
- \fBvoid png_set_unknown_chunk_location(png_structp \fP\fIpng_ptr\fP\fB, png_infop \fP\fIinfo_ptr\fP\fB, int \fP\fIchunk\fP\fB, int \fIlocation\fP\fB);\fP
674
-
675
- \fI\fB
676
-
677
- \fBvoid png_set_read_user_chunk_fn (png_structp \fP\fIpng_ptr\fP\fB, png_voidp \fP\fIuser_chunk_ptr\fP\fB, png_user_chunk_ptr \fIread_user_chunk_fn\fP\fB);\fP
791
+ \fBvoid png_set_unknown_chunk_location (png_structp \fP\fIpng_ptr\fP\fB, png_infop \fP\fIinfo_ptr\fP\fB, int \fP\fIchunk\fP\fB, int \fIlocation\fP\fB);\fP
678
792
 
679
793
  \fI\fB
680
794
 
@@ -698,10 +812,6 @@ libpng \- Portable Network Graphics (PNG) Reference Library 1.4.3
698
812
 
699
813
  \fI\fB
700
814
 
701
- \fBvoid png_set_compression_buffer_size(png_structp \fP\fIpng_ptr\fP\fB, png_uint_32 \fIsize\fP\fB);\fP
702
-
703
- \fI\fB
704
-
705
815
  \fBint png_sig_cmp (png_bytep \fP\fIsig\fP\fB, png_size_t \fP\fIstart\fP\fB, png_size_t \fInum_to_check\fP\fB);\fP
706
816
 
707
817
  \fI\fB
@@ -781,14 +891,14 @@ library supports encoding, decoding, and various manipulations of
781
891
  the Portable Network Graphics (PNG) format image files. It uses the
782
892
  .IR zlib(3)
783
893
  compression library.
784
- Following is a copy of the libpng.txt file that accompanies libpng.
894
+ Following is a copy of the libpng-manual.txt file that accompanies libpng.
785
895
  .SH LIBPNG.TXT
786
896
  libpng.txt - A description on how to use and modify libpng
787
897
 
788
- libpng version 1.4.3 - June 26, 2010
898
+ libpng version 1.4.12 - July 10, 2012
789
899
  Updated and distributed by Glenn Randers-Pehrson
790
900
  <glennrp at users.sourceforge.net>
791
- Copyright (c) 1998-2009 Glenn Randers-Pehrson
901
+ Copyright (c) 1998-2010 Glenn Randers-Pehrson
792
902
 
793
903
  This document is released under the libpng license.
794
904
  For conditions of distribution and use, see the disclaimer
@@ -796,9 +906,9 @@ libpng.txt - A description on how to use and modify libpng
796
906
 
797
907
  Based on:
798
908
 
799
- libpng versions 0.97, January 1998, through 1.4.3 - June 26, 2010
909
+ libpng versions 0.97, January 1998, through 1.4.12 - July 10, 2012
800
910
  Updated and distributed by Glenn Randers-Pehrson
801
- Copyright (c) 1998-2009 Glenn Randers-Pehrson
911
+ Copyright (c) 1998-2010 Glenn Randers-Pehrson
802
912
 
803
913
  libpng 1.0 beta 6 version 0.96 May 28, 1997
804
914
  Updated and distributed by Andreas Dilger
@@ -1063,7 +1173,7 @@ instead of setting a flag to be acted upon later.
1063
1173
  You can set up a callback function to handle any unknown chunks in the
1064
1174
  input stream. You must supply the function
1065
1175
 
1066
- read_chunk_callback(png_ptr ptr,
1176
+ read_chunk_callback(png_structp png_ptr,
1067
1177
  png_unknown_chunkp chunk);
1068
1178
  {
1069
1179
  /* The unknown chunk structure contains your
@@ -1109,8 +1219,8 @@ called after each row has been read, which you can use to control
1109
1219
  a progress meter or the like. It's demonstrated in pngtest.c.
1110
1220
  You must supply a function
1111
1221
 
1112
- void read_row_callback(png_ptr ptr, png_uint_32 row,
1113
- int pass);
1222
+ void read_row_callback(png_structp png_ptr,
1223
+ png_uint_32 row, int pass);
1114
1224
  {
1115
1225
  /* put your code here */
1116
1226
  }
@@ -1361,15 +1471,17 @@ in until png_read_end() has read the chunk data following the image.
1361
1471
  PNG_COLOR_MASK_COLOR
1362
1472
  PNG_COLOR_MASK_ALPHA
1363
1473
 
1474
+ interlace_type - (PNG_INTERLACE_NONE or
1475
+ PNG_INTERLACE_ADAM7)
1476
+
1477
+ compression_type - (must be PNG_COMPRESSION_TYPE_BASE
1478
+ for PNG 1.0)
1479
+
1364
1480
  filter_method - (must be PNG_FILTER_TYPE_BASE
1365
1481
  for PNG 1.0, and can also be
1366
1482
  PNG_INTRAPIXEL_DIFFERENCING if
1367
1483
  the PNG datastream is embedded in
1368
1484
  a MNG-1.0 datastream)
1369
- compression_type - (must be PNG_COMPRESSION_TYPE_BASE
1370
- for PNG 1.0)
1371
- interlace_type - (PNG_INTERLACE_NONE or
1372
- PNG_INTERLACE_ADAM7)
1373
1485
 
1374
1486
  Any or all of interlace_type, compression_type, or
1375
1487
  filter_method can be NULL if you are
@@ -1390,11 +1502,11 @@ in until png_read_end() has read the chunk data following the image.
1390
1502
  info_ptr);
1391
1503
  color_type = png_get_color_type(png_ptr,
1392
1504
  info_ptr);
1393
- filter_method = png_get_filter_type(png_ptr,
1505
+ interlace_type = png_get_interlace_type(png_ptr,
1394
1506
  info_ptr);
1395
1507
  compression_type = png_get_compression_type(png_ptr,
1396
1508
  info_ptr);
1397
- interlace_type = png_get_interlace_type(png_ptr,
1509
+ filter_method = png_get_filter_type(png_ptr,
1398
1510
  info_ptr);
1399
1511
 
1400
1512
  channels = png_get_channels(png_ptr, info_ptr);
@@ -1443,14 +1555,14 @@ pointer into the info_ptr is returned for any complex types.
1443
1555
 
1444
1556
  png_get_iCCP(png_ptr, info_ptr, &name,
1445
1557
  &compression_type, &profile, &proflen);
1446
- name - The profile name.
1447
- compression - The compression type; always
1448
- PNG_COMPRESSION_TYPE_BASE for PNG 1.0.
1449
- You may give NULL to this argument to
1450
- ignore it.
1451
- profile - International Color Consortium color
1452
- profile data. May contain NULs.
1453
- proflen - length of profile data in bytes.
1558
+ name - The profile name.
1559
+ compression_type - The compression type; always
1560
+ PNG_COMPRESSION_TYPE_BASE for PNG 1.0.
1561
+ You may give NULL to this argument to
1562
+ ignore it.
1563
+ profile - International Color Consortium color
1564
+ profile data. May contain NULs.
1565
+ proflen - length of profile data in bytes.
1454
1566
 
1455
1567
  png_get_sBIT(png_ptr, info_ptr, &sig_bit);
1456
1568
  sig_bit - the number of significant bits for
@@ -1463,11 +1575,11 @@ pointer into the info_ptr is returned for any complex types.
1463
1575
  &num_trans, &trans_color);
1464
1576
  trans_alpha - array of alpha (transparency)
1465
1577
  entries for palette (PNG_INFO_tRNS)
1578
+ num_trans - number of transparent entries
1579
+ (PNG_INFO_tRNS)
1466
1580
  trans_color - graylevel or color sample values of
1467
1581
  the single transparent color for
1468
1582
  non-paletted images (PNG_INFO_tRNS)
1469
- num_trans - number of transparent entries
1470
- (PNG_INFO_tRNS)
1471
1583
 
1472
1584
  png_get_hIST(png_ptr, info_ptr, &hist);
1473
1585
  (PNG_INFO_hIST)
@@ -1479,7 +1591,8 @@ pointer into the info_ptr is returned for any complex types.
1479
1591
  (PNG_VALID_tIME)
1480
1592
 
1481
1593
  png_get_bKGD(png_ptr, info_ptr, &background);
1482
- background - background color (PNG_VALID_bKGD)
1594
+ background - background color (of type
1595
+ png_color_16p) (PNG_VALID_bKGD)
1483
1596
  valid 16-bit red, green and blue
1484
1597
  values, regardless of color_type
1485
1598
 
@@ -1688,7 +1801,7 @@ things.
1688
1801
  As of libpng version 1.2.9, png_set_expand_gray_1_2_4_to_8() was
1689
1802
  added. It expands the sample depth without changing tRNS to alpha.
1690
1803
 
1691
- As of libpng version 1.4.3, not all possible expansions are supported.
1804
+ As of libpng version 1.4.12, not all possible expansions are supported.
1692
1805
 
1693
1806
  In the following table, the 01 means grayscale with depth<8, 31 means
1694
1807
  indexed with depth<8, other numerals represent the color type, "T" means
@@ -1965,7 +2078,6 @@ histogram, it may not do as good a job.
1965
2078
  PNG_INFO_PLTE))
1966
2079
  {
1967
2080
  png_uint_16p histogram = NULL;
1968
-
1969
2081
  png_get_hIST(png_ptr, info_ptr,
1970
2082
  &histogram);
1971
2083
  png_set_quantize(png_ptr, palette, num_palette,
@@ -2018,8 +2130,8 @@ with
2018
2130
 
2019
2131
  You must supply the function
2020
2132
 
2021
- void read_transform_fn(png_ptr ptr, row_info_ptr
2022
- row_info, png_bytep data)
2133
+ void read_transform_fn(png_structp png_ptr, png_row_infop
2134
+ row_info, png_bytep data)
2023
2135
 
2024
2136
  See pngtest.c for a working example. Your function will be called
2025
2137
  after all of the other transformations have been processed.
@@ -2542,7 +2654,7 @@ called after each row has been written, which you can use to control
2542
2654
  a progress meter or the like. It's demonstrated in pngtest.c.
2543
2655
  You must supply a function
2544
2656
 
2545
- void write_row_callback(png_ptr, png_uint_32 row,
2657
+ void write_row_callback(png_structp png_ptr, png_uint_32 row,
2546
2658
  int pass);
2547
2659
  {
2548
2660
  /* put your code here */
@@ -2717,14 +2829,14 @@ width, height, bit_depth, and color_type must be the same in each call.
2717
2829
 
2718
2830
  png_set_iCCP(png_ptr, info_ptr, name, compression_type,
2719
2831
  profile, proflen);
2720
- name - The profile name.
2721
- compression - The compression type; always
2722
- PNG_COMPRESSION_TYPE_BASE for PNG 1.0.
2723
- You may give NULL to this argument to
2724
- ignore it.
2725
- profile - International Color Consortium color
2726
- profile data. May contain NULs.
2727
- proflen - length of profile data in bytes.
2832
+ name - The profile name.
2833
+ compression_type - The compression type; always
2834
+ PNG_COMPRESSION_TYPE_BASE for PNG 1.0.
2835
+ You may give NULL to this argument to
2836
+ ignore it.
2837
+ profile - International Color Consortium color
2838
+ profile data. May contain NULs.
2839
+ proflen - length of profile data in bytes.
2728
2840
 
2729
2841
  png_set_sBIT(png_ptr, info_ptr, sig_bit);
2730
2842
  sig_bit - the number of significant bits for
@@ -2754,7 +2866,8 @@ width, height, bit_depth, and color_type must be the same in each call.
2754
2866
  (PNG_VALID_tIME)
2755
2867
 
2756
2868
  png_set_bKGD(png_ptr, info_ptr, background);
2757
- background - background color (PNG_VALID_bKGD)
2869
+ background - background color (of type
2870
+ png_color_16p) (PNG_VALID_bKGD)
2758
2871
 
2759
2872
  png_set_text(png_ptr, info_ptr, text_ptr, num_text);
2760
2873
  text_ptr - array of png_text holding image
@@ -3099,7 +3212,7 @@ with
3099
3212
 
3100
3213
  You must supply the function
3101
3214
 
3102
- void write_transform_fn(png_ptr ptr, row_info_ptr
3215
+ void write_transform_fn(png_structp png_ptr, png_row_infop
3103
3216
  row_info, png_bytep data)
3104
3217
 
3105
3218
  See pngtest.c for a working example. Your function will be called
@@ -3416,7 +3529,8 @@ However, there are some uncertainties about the status of local variables
3416
3529
  after a longjmp, so the user may want to be careful about doing anything
3417
3530
  after setjmp returns non-zero besides returning itself. Consult your
3418
3531
  compiler documentation for more details. For an alternative approach, you
3419
- may wish to use the "cexcept" facility (see http://cexcept.sourceforge.net).
3532
+ may wish to use the "cexcept" facility (see http://cexcept.sourceforge.net),
3533
+ which is illustrated in pngvalid.c and in contrib/visupng.
3420
3534
 
3421
3535
  .SS Custom chunks
3422
3536
 
@@ -3434,8 +3548,11 @@ and look at how other chunks were designed, so you can do things
3434
3548
  similarly. Second, check out the sections of libpng that read and
3435
3549
  write chunks. Try to find a chunk that is similar to yours and use
3436
3550
  it as a template. More details can be found in the comments inside
3437
- the code. It is best to handle unknown chunks in a generic method,
3438
- via callback functions, instead of by modifying libpng functions.
3551
+ the code. It is best to handle private or unknown chunks in a generic method,
3552
+ via callback functions, instead of by modifying libpng functions. This
3553
+ is illustrated in pngtest.c, which uses a callback function to handle a
3554
+ private "vpAg" chunk and the new "sTER" chunk, which are both unknown to
3555
+ libpng.
3439
3556
 
3440
3557
  If you wish to write your own transformation for the data, look through
3441
3558
  the part of the code that does the transformations, and check out some of
@@ -3624,8 +3741,8 @@ capability, which you'll still have).
3624
3741
  All the reading and writing specific code are in separate files, so the
3625
3742
  linker should only grab the files it needs. However, if you want to
3626
3743
  make sure, or if you are building a stand alone library, all the
3627
- reading files start with pngr and all the writing files start with
3628
- pngw. The files that don't match either (like png.c, pngtrans.c, etc.)
3744
+ reading files start with "pngr" and all the writing files start with "pngw".
3745
+ The files that don't match either (like png.c, pngtrans.c, etc.)
3629
3746
  are used for both reading and writing, and always need to be included.
3630
3747
  The progressive reader is in pngpread.c
3631
3748
 
@@ -3907,6 +4024,12 @@ deprecated since libpng-1.0.18 and 1.2.9, when it was replaced with
3907
4024
  png_set_expand_gray_1_2_4_to_8() because the former function also
3908
4025
  expanded palette images.
3909
4026
 
4027
+ Macros for png_get_uint_16, png_get_uint_32, and png_get_int_32
4028
+ were added and are used by default instead of the corresponding
4029
+ functions. Unfortunately,
4030
+ from libpng-1.4.0 until 1.4.4, the png_get_uint_16 macro (but not the
4031
+ function) incorrectly returned a value of type png_uint_32.
4032
+
3910
4033
  We changed the prototype for png_malloc() from
3911
4034
  png_malloc(png_structp png_ptr, png_uint_32 size)
3912
4035
  to
@@ -3934,7 +4057,8 @@ The png_zalloc() function no longer zeroes out the memory that it
3934
4057
  allocates.
3935
4058
 
3936
4059
  Support for dithering was disabled by default in libpng-1.4.0, because
3937
- been well tested and doesn't actually "dither". The code was not
4060
+ it has not been well tested and doesn't actually "dither".
4061
+ The code was not
3938
4062
  removed, however, and could be enabled by building libpng with
3939
4063
  PNG_READ_DITHER_SUPPORTED defined. In libpng-1.4.2, this support
3940
4064
  was reenabled, but the function was renamed png_set_quantize() to
@@ -4057,9 +4181,10 @@ above the comment that says
4057
4181
 
4058
4182
  /* Maintainer: Put new private prototypes here ^ and in libpngpf.3 */
4059
4183
 
4060
- The names of all exported functions and variables begin
4061
- with "png_", and all publicly visible C preprocessor
4062
- macros begin with "PNG_".
4184
+ To avoid polluting the global namespace, the names of all exported
4185
+ functions and variables begin with "png_", and all publicly visible C
4186
+ preprocessor macros begin with "PNG". We request that applications that
4187
+ use libpng *not* begin any of their own symbols with either of these strings.
4063
4188
 
4064
4189
  We put a space after each comma and after each semicolon
4065
4190
  in "for" statments, and we put spaces before and after each
@@ -4082,13 +4207,13 @@ Other rules can be inferred by inspecting the libpng source.
4082
4207
 
4083
4208
  .SH XIII. Y2K Compliance in libpng
4084
4209
 
4085
- June 26, 2010
4210
+ July 10, 2012
4086
4211
 
4087
4212
  Since the PNG Development group is an ad-hoc body, we can't make
4088
4213
  an official declaration.
4089
4214
 
4090
4215
  This is your unofficial assurance that libpng from version 0.71 and
4091
- upward through 1.4.3 are Y2K compliant. It is my belief that earlier
4216
+ upward through 1.4.12 are Y2K compliant. It is my belief that earlier
4092
4217
  versions were also Y2K compliant.
4093
4218
 
4094
4219
  Libpng only has three year fields. One is a 2-byte unsigned integer that
@@ -4272,6 +4397,31 @@ the first widely used release:
4272
4397
  1.4.3beta01-05 14 10403 14.so.14.3[.0]
4273
4398
  1.4.3rc01-03 14 10403 14.so.14.3[.0]
4274
4399
  1.4.3 14 10403 14.so.14.3[.0]
4400
+ 1.4.4beta01-08 14 10404 14.so.14.4[.0]
4401
+ 1.4.4rc01-05 14 10404 14.so.14.4[.0]
4402
+ 1.4.4 14 10404 14.so.14.4[.0]
4403
+ 1.4.5beta01-04 14 10405 14.so.14.5[.0]
4404
+ 1.4.5rc01 14 10405 14.so.14.5[.0]
4405
+ 1.4.5beta05-07 14 10405 14.so.14.5[.0]
4406
+ 1.4.5rc02-03 14 10405 14.so.14.5[.0]
4407
+ 1.4.5 14 10405 14.so.14.5[.0]
4408
+ 1.4.6beta01-07 14 10406 14.so.14.6[.0]
4409
+ 1.4.6rc01 14 10406 14.so.14.6[.0]
4410
+ 1.4.6 14 10406 14.so.14.6[.0]
4411
+ 1.4.7rc01 14 10407 14.so.14.7[.0]
4412
+ 1.4.7 14 10407 14.so.14.7[.0]
4413
+ 1.4.8beta01-05 14 10408 14.so.14.8[.0]
4414
+ 1.4.8rc01 14 10408 14.so.14.8[.0]
4415
+ 1.4.8 14 10408 14.so.14.8[.0]
4416
+ 1.4.9beta01 14 10409 14.so.14.9[.0]
4417
+ 1.4.9rc01 14 10409 14.so.14.9[.0]
4418
+ 1.4.9 14 10409 14.so.14.9[.0]
4419
+ 1.4.10beta01 14 10410 14.so.14.10[.0]
4420
+ 1.4.10rc01-02 14 10410 14.so.14.10[.0]
4421
+ 1.4.10 14 10410 14.so.14.10[.0]
4422
+ 1.4.11rc01 14 10411 14.so.14.11[.0]
4423
+ 1.4.11 14 10411 14.so.14.11[.0]
4424
+ 1.4.12 14 10412 14.so.14.12[.0]
4275
4425
 
4276
4426
  Henceforth the source version will match the shared-library minor
4277
4427
  and patch numbers; the shared-library major version number will be
@@ -4281,10 +4431,10 @@ for applications, is an unsigned integer of the form xyyzz corresponding
4281
4431
  to the source version x.y.z (leading zeros in y and z). Beta versions
4282
4432
  were given the previous public release number plus a letter, until
4283
4433
  version 1.0.6j; from then on they were given the upcoming public
4284
- release number plus "betaNN" or "rcN".
4434
+ release number plus "betaNN" or "rcNN".
4285
4435
 
4286
4436
  .SH "SEE ALSO"
4287
- libpngpf(3), png(5)
4437
+ .BR "png"(5), " libpngpf"(3), " zlib"(3), " deflate"(5), " " and " zlib"(5)
4288
4438
  .LP
4289
4439
  .IR libpng :
4290
4440
  .IP
@@ -4327,7 +4477,7 @@ possible without all of you.
4327
4477
 
4328
4478
  Thanks to Frank J. T. Wojcik for helping with the documentation.
4329
4479
 
4330
- Libpng version 1.4.3 - June 26, 2010:
4480
+ Libpng version 1.4.12 - July 10, 2012:
4331
4481
  Initially created in 1995 by Guy Eric Schalnat, then of Group 42, Inc.
4332
4482
  Currently maintained by Glenn Randers-Pehrson (glennrp at users.sourceforge.net).
4333
4483
 
@@ -4350,7 +4500,7 @@ this sentence.
4350
4500
 
4351
4501
  This code is released under the libpng license.
4352
4502
 
4353
- libpng versions 1.2.6, August 15, 2004, through 1.4.3, June 26, 2010, are
4503
+ libpng versions 1.2.6, August 15, 2004, through 1.4.12, July 10, 2012, are
4354
4504
  Copyright (c) 2004,2006-2007 Glenn Randers-Pehrson, and are
4355
4505
  distributed according to the same disclaimer and license as libpng-1.2.5
4356
4506
  with the following individual added to the list of Contributing Authors
@@ -4449,7 +4599,7 @@ certification mark of the Open Source Initiative.
4449
4599
 
4450
4600
  Glenn Randers-Pehrson
4451
4601
  glennrp at users.sourceforge.net
4452
- June 26, 2010
4602
+ July 10, 2012
4453
4603
 
4454
4604
  .\" end of man page
4455
4605