gdk_pixbuf2 2.0.2-x86-mingw32 → 2.0.3-x86-mingw32
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/README +1 -1
- data/Rakefile +9 -2
- data/lib/1.9/gdk_pixbuf2.so +0 -0
- data/lib/2.0/gdk_pixbuf2.so +0 -0
- data/lib/gdk_pixbuf2.rb +5 -0
- data/vendor/local/bin/gdk-pixbuf-csource.exe +0 -0
- data/vendor/local/bin/gdk-pixbuf-pixdata.exe +0 -0
- data/vendor/local/bin/gdk-pixbuf-query-loaders.exe +0 -0
- data/vendor/local/bin/libgdk_pixbuf-2.0-0.dll +0 -0
- data/vendor/local/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-features.h +3 -3
- data/vendor/local/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-loader.h +3 -0
- data/vendor/local/lib/gdk-pixbuf-2.0/2.10.0/loaders.cache +146 -7
- data/vendor/local/lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-svg.a +0 -0
- data/vendor/local/lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-svg.dll +0 -0
- data/vendor/local/lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-svg.dll.a +0 -0
- data/vendor/local/lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-svg.la +41 -0
- data/vendor/local/lib/gdk_pixbuf-2.0.def +1 -0
- data/vendor/local/lib/girepository-1.0/GdkPixbuf-2.0.typelib +0 -0
- data/vendor/local/lib/libgdk_pixbuf-2.0.dll.a +0 -0
- data/vendor/local/lib/libgdk_pixbuf-2.0.la +4 -4
- data/vendor/local/lib/pkgconfig/gdk-pixbuf-2.0.pc +1 -1
- data/vendor/local/share/gir-1.0/GdkPixbuf-2.0.gir +513 -485
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/GdkPixbufLoader.html +119 -69
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/annotation-glossary.html +34 -46
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/api-index-2-12.html +10 -13
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/api-index-2-14.html +13 -16
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/api-index-2-2.html +17 -20
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/api-index-2-26.html +13 -16
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/api-index-2-28.html +11 -14
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/api-index-2-30.html +35 -0
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/api-index-2-4.html +17 -20
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/api-index-2-6.html +15 -18
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/api-index-2-8.html +10 -13
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/api-index-deprecated.html +15 -18
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/api-index-full.html +41 -40
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-Animations.html +97 -100
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-File-Loading.html +118 -121
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-File-saving.html +119 -122
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-Image-Data-in-Memory.html +38 -41
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-Inline-data.html +50 -53
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-Module-Interface.html +74 -77
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-Reference-Counting-and-Memory-Mangement.html +26 -29
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-Scaling.html +29 -32
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-The-GdkPixbuf-Structure.html +53 -53
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-Utilities.html +29 -32
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-Versioning.html +15 -18
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-X-Drawables-to-Pixbufs.html +15 -18
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-Xlib-Rendering.html +12 -15
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-XlibRGB.html +20 -23
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-csource.html +13 -13
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-gdk-pixbuf-Xlib-initialization.html +12 -15
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-gdk-pixbuf-from-drawables.html +10 -10
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-gdk-pixbuf-rendering.html +10 -10
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-query-loaders.html +12 -12
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf.devhelp2 +3 -1
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/home.png +0 -0
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/index.html +6 -5
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/index.sgml +6 -5
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/left-insensitive.png +0 -0
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/left.png +0 -0
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/license.html +10 -10
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/right-insensitive.png +0 -0
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/right.png +0 -0
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/rn01.html +10 -10
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/rn02.html +10 -10
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/style.css +71 -16
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/up-insensitive.png +0 -0
- data/vendor/local/share/gtk-doc/html/gdk-pixbuf/up.png +0 -0
- data/vendor/local/share/locale/af/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/ang/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/ar/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/as/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/ast/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/az/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/be/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/be@latin/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/bg/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/bn/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/bn_IN/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/br/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/bs/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/ca/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/ca@valencia/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/crh/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/cs/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/csb/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/cy/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/da/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/de/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/dz/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/el/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/en@shaw/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/en_CA/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/en_GB/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/eo/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/es/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/et/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/eu/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/fa/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/fi/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/fr/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/ga/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/gl/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/gu/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/he/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/hi/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/hr/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/hu/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/hy/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/ia/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/id/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/io/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/is/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/it/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/ja/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/ka/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/km/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/kn/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/ko/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/ku/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/li/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/lt/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/lv/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/mai/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/mi/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/mk/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/ml/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/mn/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/mr/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/ms/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/my/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/nb/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/nds/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/ne/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/nl/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/nn/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/nso/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/oc/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/or/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/pa/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/pl/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/ps/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/pt/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/pt_BR/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/ro/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/ru/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/si/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/sk/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/sl/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/sq/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/sr/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/sr@ije/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/sr@latin/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/sv/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/ta/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/te/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/tg/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/th/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/tk/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/tr/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/tt/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/ug/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/uk/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/uz/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/uz@cyrillic/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/vi/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/wa/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/xh/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/yi/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/zh_CN/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/zh_HK/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/locale/zh_TW/LC_MESSAGES/gdk-pixbuf.mo +0 -0
- data/vendor/local/share/man/man1/gdk-pixbuf-csource.1 +1 -1
- data/vendor/local/share/man/man1/gdk-pixbuf-query-loaders.1 +1 -1
- metadata +32 -41
- data/vendor/local/bin/libpng14-14.dll +0 -0
- data/vendor/local/bin/zlib1.dll +0 -0
- data/vendor/local/include/libpng14/png.h +0 -2737
- data/vendor/local/include/libpng14/pngconf.h +0 -1552
- data/vendor/local/include/png.h +0 -2737
- data/vendor/local/include/pngconf.h +0 -1552
- data/vendor/local/include/zconf.h +0 -461
- data/vendor/local/include/zlib.h +0 -1589
- data/vendor/local/lib/libpng.def +0 -192
- data/vendor/local/lib/libpng.lib +0 -0
- data/vendor/local/lib/libpng14.dll.a +0 -0
- data/vendor/local/lib/libz.dll.a +0 -0
- data/vendor/local/lib/pkgconfig/libpng.pc +0 -11
- data/vendor/local/lib/pkgconfig/libpng14.pc +0 -11
- data/vendor/local/lib/zdll.lib +0 -0
- data/vendor/local/lib/zlib.def +0 -67
- data/vendor/local/manifest/libpng-dev_1.4.12-1_win32.mft +0 -15
- data/vendor/local/manifest/libpng_1.4.12-1_win32.mft +0 -2
- data/vendor/local/manifest/zlib-dev_1.2.5-2_win32.mft +0 -8
- data/vendor/local/manifest/zlib_1.2.5-2_win32.mft +0 -2
- data/vendor/local/share/man/man3/libpng.3 +0 -4605
- data/vendor/local/share/man/man3/libpngpf.3 +0 -802
- data/vendor/local/share/man/man5/png.5 +0 -74
- data/vendor/local/src/dieterv/packaging/libpng_1.4.12-1_win32.log +0 -283
- data/vendor/local/src/dieterv/packaging/libpng_1.4.12-1_win32.sh +0 -71
- data/vendor/local/src/tml/packaging/zlib_1.2.5-2_win32.log +0 -42
- data/vendor/local/src/tml/packaging/zlib_1.2.5-2_win32.sh +0 -189
@@ -1,1552 +0,0 @@
|
|
1
|
-
|
2
|
-
/* pngconf.h - machine configurable file for libpng
|
3
|
-
*
|
4
|
-
* libpng version 1.4.12 - July 10, 2012
|
5
|
-
* For conditions of distribution and use, see copyright notice in png.h
|
6
|
-
* Copyright (c) 1998-2011 Glenn Randers-Pehrson
|
7
|
-
* (Version 0.96 Copyright (c) 1996, 1997 Andreas Dilger)
|
8
|
-
* (Version 0.88 Copyright (c) 1995, 1996 Guy Eric Schalnat, Group 42, Inc.)
|
9
|
-
*
|
10
|
-
* This code is released under the libpng license.
|
11
|
-
* For conditions of distribution and use, see the disclaimer
|
12
|
-
* and license in png.h
|
13
|
-
*
|
14
|
-
*/
|
15
|
-
|
16
|
-
/* Any machine specific code is near the front of this file, so if you
|
17
|
-
* are configuring libpng for a machine, you may want to read the section
|
18
|
-
* starting here down to where it starts to typedef png_color, png_text,
|
19
|
-
* and png_info.
|
20
|
-
*/
|
21
|
-
|
22
|
-
#ifndef PNGCONF_H
|
23
|
-
#define PNGCONF_H
|
24
|
-
|
25
|
-
#ifndef PNG_NO_LIMITS_H
|
26
|
-
# include <limits.h>
|
27
|
-
#endif
|
28
|
-
|
29
|
-
/* Added at libpng-1.2.9 */
|
30
|
-
|
31
|
-
/* config.h is created by and PNG_CONFIGURE_LIBPNG is set by the "configure"
|
32
|
-
* script.
|
33
|
-
*/
|
34
|
-
#ifdef PNG_CONFIGURE_LIBPNG
|
35
|
-
# ifdef HAVE_CONFIG_H
|
36
|
-
# include "config.h"
|
37
|
-
# endif
|
38
|
-
#endif
|
39
|
-
|
40
|
-
/*
|
41
|
-
* Added at libpng-1.2.8
|
42
|
-
*
|
43
|
-
* PNG_USER_CONFIG has to be defined on the compiler command line. This
|
44
|
-
* includes the resource compiler for Windows DLL configurations.
|
45
|
-
*/
|
46
|
-
#ifdef PNG_USER_CONFIG
|
47
|
-
# include "pngusr.h"
|
48
|
-
# ifndef PNG_USER_PRIVATEBUILD
|
49
|
-
# define PNG_USER_PRIVATEBUILD
|
50
|
-
# endif
|
51
|
-
#endif
|
52
|
-
|
53
|
-
/*
|
54
|
-
* If you create a private DLL you should define in "pngusr.h" the following:
|
55
|
-
* #define PNG_USER_PRIVATEBUILD <Describes by whom and why this version of
|
56
|
-
* the DLL was built>
|
57
|
-
* e.g. #define PNG_USER_PRIVATEBUILD "Build by MyCompany for xyz reasons."
|
58
|
-
* #define PNG_USER_DLLFNAME_POSTFIX <two-letter postfix that serve to
|
59
|
-
* distinguish your DLL from those of the official release. These
|
60
|
-
* correspond to the trailing letters that come after the version
|
61
|
-
* number and must match your private DLL name>
|
62
|
-
* e.g. // private DLL "libpng14gx.dll"
|
63
|
-
* #define PNG_USER_DLLFNAME_POSTFIX "gx"
|
64
|
-
*
|
65
|
-
* The following macros are also at your disposal if you want to complete the
|
66
|
-
* DLL VERSIONINFO structure.
|
67
|
-
* - PNG_USER_VERSIONINFO_COMMENTS
|
68
|
-
* - PNG_USER_VERSIONINFO_COMPANYNAME
|
69
|
-
* - PNG_USER_VERSIONINFO_LEGALTRADEMARKS
|
70
|
-
*/
|
71
|
-
|
72
|
-
#ifdef __STDC__
|
73
|
-
# ifdef SPECIALBUILD
|
74
|
-
# pragma message("PNG_LIBPNG_SPECIALBUILD (and deprecated SPECIALBUILD)\
|
75
|
-
are now LIBPNG reserved macros. Use PNG_USER_PRIVATEBUILD instead.")
|
76
|
-
# endif
|
77
|
-
|
78
|
-
# ifdef PRIVATEBUILD
|
79
|
-
# pragma message("PRIVATEBUILD is deprecated.\
|
80
|
-
Use PNG_USER_PRIVATEBUILD instead.")
|
81
|
-
# define PNG_USER_PRIVATEBUILD PRIVATEBUILD
|
82
|
-
# endif
|
83
|
-
#endif /* __STDC__ */
|
84
|
-
|
85
|
-
/* End of material added to libpng-1.2.8 */
|
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
|
-
|
99
|
-
#ifndef PNG_VERSION_INFO_ONLY
|
100
|
-
|
101
|
-
/* This is the size of the compression buffer, and thus the size of
|
102
|
-
* an IDAT chunk. Make this whatever size you feel is best for your
|
103
|
-
* machine. One of these will be allocated per png_struct. When this
|
104
|
-
* is full, it writes the data to the disk, and does some other
|
105
|
-
* calculations. Making this an extremely small size will slow
|
106
|
-
* the library down, but you may want to experiment to determine
|
107
|
-
* where it becomes significant, if you are concerned with memory
|
108
|
-
* usage. Note that zlib allocates at least 32Kb also. For readers,
|
109
|
-
* this describes the size of the buffer available to read the data in.
|
110
|
-
* Unless this gets smaller than the size of a row (compressed),
|
111
|
-
* it should not make much difference how big this is.
|
112
|
-
*/
|
113
|
-
|
114
|
-
#ifndef PNG_ZBUF_SIZE
|
115
|
-
# define PNG_ZBUF_SIZE 8192
|
116
|
-
#endif
|
117
|
-
|
118
|
-
/* Enable if you want a write-only libpng */
|
119
|
-
|
120
|
-
#ifndef PNG_NO_READ_SUPPORTED
|
121
|
-
# define PNG_READ_SUPPORTED
|
122
|
-
#endif
|
123
|
-
|
124
|
-
/* Enable if you want a read-only libpng */
|
125
|
-
|
126
|
-
#ifndef PNG_NO_WRITE_SUPPORTED
|
127
|
-
# define PNG_WRITE_SUPPORTED
|
128
|
-
#endif
|
129
|
-
|
130
|
-
/* Enabled in 1.4.0. */
|
131
|
-
#ifdef PNG_ALLOW_BENIGN_ERRORS
|
132
|
-
# define png_benign_error png_warning
|
133
|
-
# define png_chunk_benign_error png_chunk_warning
|
134
|
-
#else
|
135
|
-
# ifndef PNG_BENIGN_ERRORS_SUPPORTED
|
136
|
-
# define png_benign_error png_error
|
137
|
-
# define png_chunk_benign_error png_chunk_error
|
138
|
-
# endif
|
139
|
-
#endif
|
140
|
-
|
141
|
-
/* Added at libpng version 1.4.0 */
|
142
|
-
#if !defined(PNG_NO_WARNINGS) && !defined(PNG_WARNINGS_SUPPORTED)
|
143
|
-
# define PNG_WARNINGS_SUPPORTED
|
144
|
-
#endif
|
145
|
-
|
146
|
-
/* Added at libpng version 1.4.0 */
|
147
|
-
#if !defined(PNG_NO_ERROR_TEXT) && !defined(PNG_ERROR_TEXT_SUPPORTED)
|
148
|
-
# define PNG_ERROR_TEXT_SUPPORTED
|
149
|
-
#endif
|
150
|
-
|
151
|
-
/* Added at libpng version 1.4.0 */
|
152
|
-
#if !defined(PNG_NO_CHECK_cHRM) && !defined(PNG_CHECK_cHRM_SUPPORTED)
|
153
|
-
# define PNG_CHECK_cHRM_SUPPORTED
|
154
|
-
#endif
|
155
|
-
|
156
|
-
/* Added at libpng version 1.4.0 */
|
157
|
-
#if !defined(PNG_NO_ALIGNED_MEMORY) && !defined(PNG_ALIGNED_MEMORY_SUPPORTED)
|
158
|
-
# define PNG_ALIGNED_MEMORY_SUPPORTED
|
159
|
-
#endif
|
160
|
-
|
161
|
-
/* Enabled by default in 1.2.0. You can disable this if you don't need to
|
162
|
-
support PNGs that are embedded in MNG datastreams */
|
163
|
-
#ifndef PNG_NO_MNG_FEATURES
|
164
|
-
# ifndef PNG_MNG_FEATURES_SUPPORTED
|
165
|
-
# define PNG_MNG_FEATURES_SUPPORTED
|
166
|
-
# endif
|
167
|
-
#endif
|
168
|
-
|
169
|
-
/* Added at libpng version 1.4.0 */
|
170
|
-
#ifndef PNG_NO_FLOATING_POINT_SUPPORTED
|
171
|
-
# ifndef PNG_FLOATING_POINT_SUPPORTED
|
172
|
-
# define PNG_FLOATING_POINT_SUPPORTED
|
173
|
-
# endif
|
174
|
-
#endif
|
175
|
-
|
176
|
-
/* Added at libpng-1.4.0beta49 for testing (this test is no longer used
|
177
|
-
in libpng and png_calloc() is always present)
|
178
|
-
*/
|
179
|
-
#define PNG_CALLOC_SUPPORTED
|
180
|
-
|
181
|
-
/* If you are running on a machine where you cannot allocate more
|
182
|
-
* than 64K of memory at once, uncomment this. While libpng will not
|
183
|
-
* normally need that much memory in a chunk (unless you load up a very
|
184
|
-
* large file), zlib needs to know how big of a chunk it can use, and
|
185
|
-
* libpng thus makes sure to check any memory allocation to verify it
|
186
|
-
* will fit into memory.
|
187
|
-
#define PNG_MAX_MALLOC_64K
|
188
|
-
*/
|
189
|
-
#if defined(MAXSEG_64K) && !defined(PNG_MAX_MALLOC_64K)
|
190
|
-
# define PNG_MAX_MALLOC_64K
|
191
|
-
#endif
|
192
|
-
|
193
|
-
/* Special munging to support doing things the 'cygwin' way:
|
194
|
-
* 'Normal' png-on-win32 defines/defaults:
|
195
|
-
* PNG_BUILD_DLL -- building dll
|
196
|
-
* PNG_USE_DLL -- building an application, linking to dll
|
197
|
-
* (no define) -- building static library, or building an
|
198
|
-
* application and linking to the static lib
|
199
|
-
* 'Cygwin' defines/defaults:
|
200
|
-
* PNG_BUILD_DLL -- (ignored) building the dll
|
201
|
-
* (no define) -- (ignored) building an application, linking to the dll
|
202
|
-
* PNG_STATIC -- (ignored) building the static lib, or building an
|
203
|
-
* application that links to the static lib.
|
204
|
-
* ALL_STATIC -- (ignored) building various static libs, or building an
|
205
|
-
* application that links to the static libs.
|
206
|
-
* Thus,
|
207
|
-
* a cygwin user should define either PNG_BUILD_DLL or PNG_STATIC, and
|
208
|
-
* this bit of #ifdefs will define the 'correct' config variables based on
|
209
|
-
* that. If a cygwin user *wants* to define 'PNG_USE_DLL' that's okay, but
|
210
|
-
* unnecessary.
|
211
|
-
*
|
212
|
-
* Also, the precedence order is:
|
213
|
-
* ALL_STATIC (since we can't #undef something outside our namespace)
|
214
|
-
* PNG_BUILD_DLL
|
215
|
-
* PNG_STATIC
|
216
|
-
* (nothing) == PNG_USE_DLL
|
217
|
-
*
|
218
|
-
* CYGWIN (2002-01-20): The preceding is now obsolete. With the advent
|
219
|
-
* of auto-import in binutils, we no longer need to worry about
|
220
|
-
* __declspec(dllexport) / __declspec(dllimport) and friends. Therefore,
|
221
|
-
* we don't need to worry about PNG_STATIC or ALL_STATIC when it comes
|
222
|
-
* to __declspec() stuff. However, we DO need to worry about
|
223
|
-
* PNG_BUILD_DLL and PNG_STATIC because those change some defaults
|
224
|
-
* such as CONSOLE_IO.
|
225
|
-
*/
|
226
|
-
#ifdef __CYGWIN__
|
227
|
-
# ifdef ALL_STATIC
|
228
|
-
# ifdef PNG_BUILD_DLL
|
229
|
-
# undef PNG_BUILD_DLL
|
230
|
-
# endif
|
231
|
-
# ifdef PNG_USE_DLL
|
232
|
-
# undef PNG_USE_DLL
|
233
|
-
# endif
|
234
|
-
# ifdef PNG_DLL
|
235
|
-
# undef PNG_DLL
|
236
|
-
# endif
|
237
|
-
# ifndef PNG_STATIC
|
238
|
-
# define PNG_STATIC
|
239
|
-
# endif
|
240
|
-
# else
|
241
|
-
# ifdef PNG_BUILD_DLL
|
242
|
-
# ifdef PNG_STATIC
|
243
|
-
# undef PNG_STATIC
|
244
|
-
# endif
|
245
|
-
# ifdef PNG_USE_DLL
|
246
|
-
# undef PNG_USE_DLL
|
247
|
-
# endif
|
248
|
-
# ifndef PNG_DLL
|
249
|
-
# define PNG_DLL
|
250
|
-
# endif
|
251
|
-
# else
|
252
|
-
# ifdef PNG_STATIC
|
253
|
-
# ifdef PNG_USE_DLL
|
254
|
-
# undef PNG_USE_DLL
|
255
|
-
# endif
|
256
|
-
# ifdef PNG_DLL
|
257
|
-
# undef PNG_DLL
|
258
|
-
# endif
|
259
|
-
# else
|
260
|
-
# ifndef PNG_USE_DLL
|
261
|
-
# define PNG_USE_DLL
|
262
|
-
# endif
|
263
|
-
# ifndef PNG_DLL
|
264
|
-
# define PNG_DLL
|
265
|
-
# endif
|
266
|
-
# endif
|
267
|
-
# endif
|
268
|
-
# endif
|
269
|
-
#endif
|
270
|
-
|
271
|
-
/* This protects us against compilers that run on a windowing system
|
272
|
-
* and thus don't have or would rather us not use the stdio types:
|
273
|
-
* stdin, stdout, and stderr. The only one currently used is stderr
|
274
|
-
* in png_error() and png_warning(). #defining PNG_NO_CONSOLE_IO will
|
275
|
-
* prevent these from being compiled and used. #defining PNG_NO_STDIO
|
276
|
-
* will also prevent these, plus will prevent the entire set of stdio
|
277
|
-
* macros and functions (FILE *, printf, etc.) from being compiled and used,
|
278
|
-
* unless (PNG_DEBUG > 0) has been #defined.
|
279
|
-
*
|
280
|
-
* #define PNG_NO_CONSOLE_IO
|
281
|
-
* #define PNG_NO_STDIO
|
282
|
-
*/
|
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
|
-
|
293
|
-
#if !defined(PNG_NO_STDIO) && !defined(PNG_STDIO_SUPPORTED)
|
294
|
-
# define PNG_STDIO_SUPPORTED
|
295
|
-
#endif
|
296
|
-
|
297
|
-
#ifdef PNG_BUILD_DLL
|
298
|
-
# if !defined(PNG_CONSOLE_IO_SUPPORTED) && !defined(PNG_NO_CONSOLE_IO)
|
299
|
-
# define PNG_NO_CONSOLE_IO
|
300
|
-
# endif
|
301
|
-
#endif
|
302
|
-
|
303
|
-
# ifdef PNG_NO_STDIO
|
304
|
-
# ifndef PNG_NO_CONSOLE_IO
|
305
|
-
# define PNG_NO_CONSOLE_IO
|
306
|
-
# endif
|
307
|
-
# ifdef PNG_DEBUG
|
308
|
-
# if (PNG_DEBUG > 0)
|
309
|
-
# include <stdio.h>
|
310
|
-
# endif
|
311
|
-
# endif
|
312
|
-
# else
|
313
|
-
# include <stdio.h>
|
314
|
-
# endif
|
315
|
-
|
316
|
-
#if !(defined PNG_NO_CONSOLE_IO) && !defined(PNG_CONSOLE_IO_SUPPORTED)
|
317
|
-
# define PNG_CONSOLE_IO_SUPPORTED
|
318
|
-
#endif
|
319
|
-
|
320
|
-
/* This macro protects us against machines that don't have function
|
321
|
-
* prototypes (ie K&R style headers). If your compiler does not handle
|
322
|
-
* function prototypes, define this macro and use the included ansi2knr.
|
323
|
-
* I've always been able to use _NO_PROTO as the indicator, but you may
|
324
|
-
* need to drag the empty declaration out in front of here, or change the
|
325
|
-
* ifdef to suit your own needs.
|
326
|
-
*/
|
327
|
-
#ifndef PNGARG
|
328
|
-
|
329
|
-
#ifdef OF /* zlib prototype munger */
|
330
|
-
# define PNGARG(arglist) OF(arglist)
|
331
|
-
#else
|
332
|
-
|
333
|
-
#ifdef _NO_PROTO
|
334
|
-
# define PNGARG(arglist) ()
|
335
|
-
#else
|
336
|
-
# define PNGARG(arglist) arglist
|
337
|
-
#endif /* _NO_PROTO */
|
338
|
-
|
339
|
-
#endif /* OF */
|
340
|
-
|
341
|
-
#endif /* PNGARG */
|
342
|
-
|
343
|
-
/* Try to determine if we are compiling on a Mac. Note that testing for
|
344
|
-
* just __MWERKS__ is not good enough, because the Codewarrior is now used
|
345
|
-
* on non-Mac platforms.
|
346
|
-
*/
|
347
|
-
#ifndef MACOS
|
348
|
-
# if (defined(__MWERKS__) && defined(macintosh)) || defined(applec) || \
|
349
|
-
defined(THINK_C) || defined(__SC__) || defined(TARGET_OS_MAC)
|
350
|
-
# define MACOS
|
351
|
-
# endif
|
352
|
-
#endif
|
353
|
-
|
354
|
-
/* Enough people need this for various reasons to include it here */
|
355
|
-
#if !defined(MACOS) && !defined(RISCOS)
|
356
|
-
# include <sys/types.h>
|
357
|
-
#endif
|
358
|
-
|
359
|
-
/* PNG_SETJMP_NOT_SUPPORTED and PNG_NO_SETJMP_SUPPORTED are deprecated. */
|
360
|
-
#if !defined(PNG_NO_SETJMP) && \
|
361
|
-
!defined(PNG_SETJMP_NOT_SUPPORTED) && !defined(PNG_NO_SETJMP_SUPPORTED)
|
362
|
-
# define PNG_SETJMP_SUPPORTED
|
363
|
-
#endif
|
364
|
-
|
365
|
-
#ifdef PNG_SETJMP_SUPPORTED
|
366
|
-
/* This is an attempt to force a single setjmp behaviour on Linux. If
|
367
|
-
* the X config stuff didn't define _BSD_SOURCE we wouldn't need this.
|
368
|
-
*
|
369
|
-
* You can bypass this test if you know that your application uses exactly
|
370
|
-
* the same setjmp.h that was included when libpng was built. Only define
|
371
|
-
* PNG_SKIP_SETJMP_CHECK while building your application, prior to the
|
372
|
-
* application's '#include "png.h"'. Don't define PNG_SKIP_SETJMP_CHECK
|
373
|
-
* while building a separate libpng library for general use.
|
374
|
-
*/
|
375
|
-
|
376
|
-
# ifndef PNG_SKIP_SETJMP_CHECK
|
377
|
-
# ifdef __linux__
|
378
|
-
# ifdef _BSD_SOURCE
|
379
|
-
# define PNG_SAVE_BSD_SOURCE
|
380
|
-
# undef _BSD_SOURCE
|
381
|
-
# endif
|
382
|
-
# ifdef _SETJMP_H
|
383
|
-
/* If you encounter a compiler error here, see the explanation
|
384
|
-
* near the end of INSTALL.
|
385
|
-
*/
|
386
|
-
__pngconf.h__ in libpng already includes setjmp.h;
|
387
|
-
__dont__ include it again.;
|
388
|
-
# endif
|
389
|
-
# endif /* __linux__ */
|
390
|
-
# endif /* PNG_SKIP_SETJMP_CHECK */
|
391
|
-
|
392
|
-
/* Include setjmp.h for error handling */
|
393
|
-
# include <setjmp.h>
|
394
|
-
|
395
|
-
# ifdef __linux__
|
396
|
-
# ifdef PNG_SAVE_BSD_SOURCE
|
397
|
-
# ifdef _BSD_SOURCE
|
398
|
-
# undef _BSD_SOURCE
|
399
|
-
# endif
|
400
|
-
# define _BSD_SOURCE
|
401
|
-
# undef PNG_SAVE_BSD_SOURCE
|
402
|
-
# endif
|
403
|
-
# endif /* __linux__ */
|
404
|
-
#endif /* PNG_SETJMP_SUPPORTED */
|
405
|
-
|
406
|
-
#ifdef BSD
|
407
|
-
# include <strings.h>
|
408
|
-
#else
|
409
|
-
# include <string.h>
|
410
|
-
#endif
|
411
|
-
|
412
|
-
/* Other defines for things like memory and the like can go here. */
|
413
|
-
|
414
|
-
/* This controls how fine the quantizing gets. As this allocates
|
415
|
-
* a largish chunk of memory (32K), those who are not as concerned
|
416
|
-
* with quantizing quality can decrease some or all of these.
|
417
|
-
*/
|
418
|
-
|
419
|
-
/* Prior to libpng-1.4.2, these were PNG_DITHER_*_BITS
|
420
|
-
* These migration aids will be removed from libpng-1.5.0.
|
421
|
-
*/
|
422
|
-
#ifdef PNG_DITHER_RED_BITS
|
423
|
-
# define PNG_QUANTIZE_RED_BITS PNG_DITHER_RED_BITS
|
424
|
-
#endif
|
425
|
-
#ifdef PNG_DITHER_GREEN_BITS
|
426
|
-
# define PNG_QUANTIZE_GREEN_BITS PNG_DITHER_GREEN_BITS
|
427
|
-
#endif
|
428
|
-
#ifdef PNG_DITHER_BLUE_BITS
|
429
|
-
# define PNG_QUANTIZE_BLUE_BITS PNG_DITHER_BLUE_BITS
|
430
|
-
#endif
|
431
|
-
|
432
|
-
#ifndef PNG_QUANTIZE_RED_BITS
|
433
|
-
# define PNG_QUANTIZE_RED_BITS 5
|
434
|
-
#endif
|
435
|
-
#ifndef PNG_QUANTIZE_GREEN_BITS
|
436
|
-
# define PNG_QUANTIZE_GREEN_BITS 5
|
437
|
-
#endif
|
438
|
-
#ifndef PNG_QUANTIZE_BLUE_BITS
|
439
|
-
# define PNG_QUANTIZE_BLUE_BITS 5
|
440
|
-
#endif
|
441
|
-
|
442
|
-
/* This controls how fine the gamma correction becomes when you
|
443
|
-
* are only interested in 8 bits anyway. Increasing this value
|
444
|
-
* results in more memory being used, and more pow() functions
|
445
|
-
* being called to fill in the gamma tables. Don't set this value
|
446
|
-
* less then 8, and even that may not work (I haven't tested it).
|
447
|
-
*/
|
448
|
-
|
449
|
-
#ifndef PNG_MAX_GAMMA_8
|
450
|
-
# define PNG_MAX_GAMMA_8 11
|
451
|
-
#endif
|
452
|
-
|
453
|
-
/* This controls how much a difference in gamma we can tolerate before
|
454
|
-
* we actually start doing gamma conversion.
|
455
|
-
*/
|
456
|
-
#ifndef PNG_GAMMA_THRESHOLD
|
457
|
-
# define PNG_GAMMA_THRESHOLD 0.05
|
458
|
-
#endif
|
459
|
-
|
460
|
-
/* The following uses const char * instead of char * for error
|
461
|
-
* and warning message functions, so some compilers won't complain.
|
462
|
-
* If you do not want to use const, define PNG_NO_CONST.
|
463
|
-
*/
|
464
|
-
|
465
|
-
#ifndef PNG_CONST
|
466
|
-
# ifndef PNG_NO_CONST
|
467
|
-
# define PNG_CONST const
|
468
|
-
# else
|
469
|
-
# define PNG_CONST
|
470
|
-
# endif
|
471
|
-
#endif
|
472
|
-
|
473
|
-
/* The following defines give you the ability to remove code from the
|
474
|
-
* library that you will not be using. I wish I could figure out how to
|
475
|
-
* automate this, but I can't do that without making it seriously hard
|
476
|
-
* on the users. So if you are not using an ability, change the #define
|
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
|
481
|
-
* ability is defined here. Some of these depend upon some others being
|
482
|
-
* defined. I haven't figured out all the interactions here, so you may
|
483
|
-
* have to experiment awhile to get everything to compile. If you are
|
484
|
-
* creating or using a shared library, you probably shouldn't touch this,
|
485
|
-
* as it will affect the size of the structures, and this will cause bad
|
486
|
-
* things to happen if the library and/or application ever change.
|
487
|
-
*/
|
488
|
-
|
489
|
-
/* Any features you will not be using can be undef'ed here */
|
490
|
-
|
491
|
-
/* GR-P, 0.96a: Set "*TRANSFORMS_SUPPORTED as default but allow user
|
492
|
-
* to turn it off with PNG_NO_READ|WRITE_TRANSFORMS on the compile line,
|
493
|
-
* then pick and choose which ones to define without having to edit this
|
494
|
-
* file. It is safe to use the PNG_NO_READ|WRITE_TRANSFORMS
|
495
|
-
* if you only want to have a png-compliant reader/writer but don't need
|
496
|
-
* any of the extra transformations. This saves about 80 kbytes in a
|
497
|
-
* typical installation of the library. (PNG_NO_* form added in version
|
498
|
-
* 1.0.1c, for consistency; PNG_*_TRANSFORMS_NOT_SUPPORTED deprecated in
|
499
|
-
* 1.4.0)
|
500
|
-
*/
|
501
|
-
|
502
|
-
/* Ignore attempt to turn off both floating and fixed point support */
|
503
|
-
#if !defined(PNG_FLOATING_POINT_SUPPORTED) || \
|
504
|
-
!defined(PNG_NO_FIXED_POINT_SUPPORTED)
|
505
|
-
# define PNG_FIXED_POINT_SUPPORTED
|
506
|
-
#endif
|
507
|
-
|
508
|
-
#ifdef PNG_READ_SUPPORTED
|
509
|
-
|
510
|
-
/* PNG_READ_TRANSFORMS_NOT_SUPPORTED is deprecated. */
|
511
|
-
#if !defined(PNG_READ_TRANSFORMS_NOT_SUPPORTED) && \
|
512
|
-
!defined(PNG_NO_READ_TRANSFORMS)
|
513
|
-
# define PNG_READ_TRANSFORMS_SUPPORTED
|
514
|
-
#endif
|
515
|
-
|
516
|
-
#ifdef PNG_READ_TRANSFORMS_SUPPORTED
|
517
|
-
# ifndef PNG_NO_READ_EXPAND
|
518
|
-
# define PNG_READ_EXPAND_SUPPORTED
|
519
|
-
# endif
|
520
|
-
# ifndef PNG_NO_READ_SHIFT
|
521
|
-
# define PNG_READ_SHIFT_SUPPORTED
|
522
|
-
# endif
|
523
|
-
# ifndef PNG_NO_READ_PACK
|
524
|
-
# define PNG_READ_PACK_SUPPORTED
|
525
|
-
# endif
|
526
|
-
# ifndef PNG_NO_READ_BGR
|
527
|
-
# define PNG_READ_BGR_SUPPORTED
|
528
|
-
# endif
|
529
|
-
# ifndef PNG_NO_READ_SWAP
|
530
|
-
# define PNG_READ_SWAP_SUPPORTED
|
531
|
-
# endif
|
532
|
-
# ifndef PNG_NO_READ_PACKSWAP
|
533
|
-
# define PNG_READ_PACKSWAP_SUPPORTED
|
534
|
-
# endif
|
535
|
-
# ifndef PNG_NO_READ_INVERT
|
536
|
-
# define PNG_READ_INVERT_SUPPORTED
|
537
|
-
# endif
|
538
|
-
# ifndef PNG_NO_READ_QUANTIZE
|
539
|
-
/* Prior to libpng-1.4.0 this was PNG_READ_DITHER_SUPPORTED */
|
540
|
-
# ifndef PNG_NO_READ_DITHER /* This migration aid will be removed */
|
541
|
-
# define PNG_READ_QUANTIZE_SUPPORTED
|
542
|
-
# endif
|
543
|
-
# endif
|
544
|
-
# ifndef PNG_NO_READ_BACKGROUND
|
545
|
-
# define PNG_READ_BACKGROUND_SUPPORTED
|
546
|
-
# endif
|
547
|
-
# ifndef PNG_NO_READ_16_TO_8
|
548
|
-
# define PNG_READ_16_TO_8_SUPPORTED
|
549
|
-
# endif
|
550
|
-
# ifndef PNG_NO_READ_FILLER
|
551
|
-
# define PNG_READ_FILLER_SUPPORTED
|
552
|
-
# endif
|
553
|
-
# ifndef PNG_NO_READ_GAMMA
|
554
|
-
# define PNG_READ_GAMMA_SUPPORTED
|
555
|
-
# endif
|
556
|
-
# ifndef PNG_NO_READ_GRAY_TO_RGB
|
557
|
-
# define PNG_READ_GRAY_TO_RGB_SUPPORTED
|
558
|
-
# endif
|
559
|
-
# ifndef PNG_NO_READ_SWAP_ALPHA
|
560
|
-
# define PNG_READ_SWAP_ALPHA_SUPPORTED
|
561
|
-
# endif
|
562
|
-
# ifndef PNG_NO_READ_INVERT_ALPHA
|
563
|
-
# define PNG_READ_INVERT_ALPHA_SUPPORTED
|
564
|
-
# endif
|
565
|
-
# ifndef PNG_NO_READ_STRIP_ALPHA
|
566
|
-
# define PNG_READ_STRIP_ALPHA_SUPPORTED
|
567
|
-
# endif
|
568
|
-
# ifndef PNG_NO_READ_USER_TRANSFORM
|
569
|
-
# define PNG_READ_USER_TRANSFORM_SUPPORTED
|
570
|
-
# endif
|
571
|
-
# ifndef PNG_NO_READ_RGB_TO_GRAY
|
572
|
-
# define PNG_READ_RGB_TO_GRAY_SUPPORTED
|
573
|
-
# endif
|
574
|
-
#endif /* PNG_READ_TRANSFORMS_SUPPORTED */
|
575
|
-
|
576
|
-
/* PNG_PROGRESSIVE_READ_NOT_SUPPORTED is deprecated. */
|
577
|
-
#if !defined(PNG_NO_PROGRESSIVE_READ) && \
|
578
|
-
!defined(PNG_PROGRESSIVE_READ_NOT_SUPPORTED) /* if you don't do progressive */
|
579
|
-
# define PNG_PROGRESSIVE_READ_SUPPORTED /* reading. This is not talking */
|
580
|
-
#endif /* about interlacing capability! You'll */
|
581
|
-
/* still have interlacing unless you change the following define: */
|
582
|
-
|
583
|
-
#define PNG_READ_INTERLACING_SUPPORTED /* required for PNG-compliant decoders */
|
584
|
-
|
585
|
-
/* PNG_NO_SEQUENTIAL_READ_SUPPORTED is deprecated. */
|
586
|
-
#if !defined(PNG_NO_SEQUENTIAL_READ) && \
|
587
|
-
!defined(PNG_SEQUENTIAL_READ_SUPPORTED) && \
|
588
|
-
!defined(PNG_NO_SEQUENTIAL_READ_SUPPORTED)
|
589
|
-
# define PNG_SEQUENTIAL_READ_SUPPORTED
|
590
|
-
#endif
|
591
|
-
|
592
|
-
#ifndef PNG_NO_READ_COMPOSITE_NODIV
|
593
|
-
# ifndef PNG_NO_READ_COMPOSITED_NODIV /* libpng-1.0.x misspelling */
|
594
|
-
# define PNG_READ_COMPOSITE_NODIV_SUPPORTED /* well tested on Intel, SGI */
|
595
|
-
# endif
|
596
|
-
#endif
|
597
|
-
|
598
|
-
#if !defined(PNG_NO_GET_INT_32) || defined(PNG_READ_oFFS_SUPPORTED) || \
|
599
|
-
defined(PNG_READ_pCAL_SUPPORTED)
|
600
|
-
# ifndef PNG_GET_INT_32_SUPPORTED
|
601
|
-
# define PNG_GET_INT_32_SUPPORTED
|
602
|
-
# endif
|
603
|
-
#endif
|
604
|
-
|
605
|
-
#endif /* PNG_READ_SUPPORTED */
|
606
|
-
|
607
|
-
#ifdef PNG_WRITE_SUPPORTED
|
608
|
-
|
609
|
-
/* PNG_WRITE_TRANSFORMS_NOT_SUPPORTED is deprecated. */
|
610
|
-
#if !defined(PNG_WRITE_TRANSFORMS_NOT_SUPPORTED) && \
|
611
|
-
!defined(PNG_NO_WRITE_TRANSFORMS)
|
612
|
-
# define PNG_WRITE_TRANSFORMS_SUPPORTED
|
613
|
-
#endif
|
614
|
-
|
615
|
-
#ifdef PNG_WRITE_TRANSFORMS_SUPPORTED
|
616
|
-
# ifndef PNG_NO_WRITE_SHIFT
|
617
|
-
# define PNG_WRITE_SHIFT_SUPPORTED
|
618
|
-
# endif
|
619
|
-
# ifndef PNG_NO_WRITE_PACK
|
620
|
-
# define PNG_WRITE_PACK_SUPPORTED
|
621
|
-
# endif
|
622
|
-
# ifndef PNG_NO_WRITE_BGR
|
623
|
-
# define PNG_WRITE_BGR_SUPPORTED
|
624
|
-
# endif
|
625
|
-
# ifndef PNG_NO_WRITE_SWAP
|
626
|
-
# define PNG_WRITE_SWAP_SUPPORTED
|
627
|
-
# endif
|
628
|
-
# ifndef PNG_NO_WRITE_PACKSWAP
|
629
|
-
# define PNG_WRITE_PACKSWAP_SUPPORTED
|
630
|
-
# endif
|
631
|
-
# ifndef PNG_NO_WRITE_INVERT
|
632
|
-
# define PNG_WRITE_INVERT_SUPPORTED
|
633
|
-
# endif
|
634
|
-
# ifndef PNG_NO_WRITE_FILLER
|
635
|
-
# define PNG_WRITE_FILLER_SUPPORTED /* same as WRITE_STRIP_ALPHA */
|
636
|
-
# endif
|
637
|
-
# ifndef PNG_NO_WRITE_SWAP_ALPHA
|
638
|
-
# define PNG_WRITE_SWAP_ALPHA_SUPPORTED
|
639
|
-
# endif
|
640
|
-
# ifndef PNG_NO_WRITE_INVERT_ALPHA
|
641
|
-
# define PNG_WRITE_INVERT_ALPHA_SUPPORTED
|
642
|
-
# endif
|
643
|
-
# ifndef PNG_NO_WRITE_USER_TRANSFORM
|
644
|
-
# define PNG_WRITE_USER_TRANSFORM_SUPPORTED
|
645
|
-
# endif
|
646
|
-
#endif /* PNG_WRITE_TRANSFORMS_SUPPORTED */
|
647
|
-
|
648
|
-
#if !defined(PNG_NO_WRITE_INTERLACING_SUPPORTED) && \
|
649
|
-
!defined(PNG_WRITE_INTERLACING_SUPPORTED)
|
650
|
-
/* This is not required for PNG-compliant encoders, but can cause
|
651
|
-
* trouble if left undefined
|
652
|
-
*/
|
653
|
-
# define PNG_WRITE_INTERLACING_SUPPORTED
|
654
|
-
#endif
|
655
|
-
|
656
|
-
#if !defined(PNG_NO_WRITE_WEIGHTED_FILTER) && \
|
657
|
-
!defined(PNG_WRITE_WEIGHTED_FILTER) && \
|
658
|
-
defined(PNG_FLOATING_POINT_SUPPORTED)
|
659
|
-
# define PNG_WRITE_WEIGHTED_FILTER_SUPPORTED
|
660
|
-
#endif
|
661
|
-
|
662
|
-
#ifndef PNG_NO_WRITE_FLUSH
|
663
|
-
# define PNG_WRITE_FLUSH_SUPPORTED
|
664
|
-
#endif
|
665
|
-
|
666
|
-
#if !defined(PNG_NO_SAVE_INT_32) || defined(PNG_WRITE_oFFS_SUPPORTED) || \
|
667
|
-
defined(PNG_WRITE_pCAL_SUPPORTED)
|
668
|
-
# ifndef PNG_SAVE_INT_32_SUPPORTED
|
669
|
-
# define PNG_SAVE_INT_32_SUPPORTED
|
670
|
-
# endif
|
671
|
-
#endif
|
672
|
-
|
673
|
-
#endif /* PNG_WRITE_SUPPORTED */
|
674
|
-
|
675
|
-
#define PNG_NO_ERROR_NUMBERS
|
676
|
-
|
677
|
-
#if defined(PNG_READ_USER_TRANSFORM_SUPPORTED) || \
|
678
|
-
defined(PNG_WRITE_USER_TRANSFORM_SUPPORTED)
|
679
|
-
# ifndef PNG_NO_USER_TRANSFORM_PTR
|
680
|
-
# define PNG_USER_TRANSFORM_PTR_SUPPORTED
|
681
|
-
# endif
|
682
|
-
#endif
|
683
|
-
|
684
|
-
#if defined(PNG_STDIO_SUPPORTED) && !defined(PNG_TIME_RFC1123_SUPPORTED)
|
685
|
-
# define PNG_TIME_RFC1123_SUPPORTED
|
686
|
-
#endif
|
687
|
-
|
688
|
-
/* This adds extra functions in pngget.c for accessing data from the
|
689
|
-
* info pointer (added in version 0.99)
|
690
|
-
* png_get_image_width()
|
691
|
-
* png_get_image_height()
|
692
|
-
* png_get_bit_depth()
|
693
|
-
* png_get_color_type()
|
694
|
-
* png_get_compression_type()
|
695
|
-
* png_get_filter_type()
|
696
|
-
* png_get_interlace_type()
|
697
|
-
* png_get_pixel_aspect_ratio()
|
698
|
-
* png_get_pixels_per_meter()
|
699
|
-
* png_get_x_offset_pixels()
|
700
|
-
* png_get_y_offset_pixels()
|
701
|
-
* png_get_x_offset_microns()
|
702
|
-
* png_get_y_offset_microns()
|
703
|
-
*/
|
704
|
-
#if !defined(PNG_NO_EASY_ACCESS) && !defined(PNG_EASY_ACCESS_SUPPORTED)
|
705
|
-
# define PNG_EASY_ACCESS_SUPPORTED
|
706
|
-
#endif
|
707
|
-
|
708
|
-
/* Added at libpng-1.2.0 */
|
709
|
-
#if !defined(PNG_NO_USER_MEM) && !defined(PNG_USER_MEM_SUPPORTED)
|
710
|
-
# define PNG_USER_MEM_SUPPORTED
|
711
|
-
#endif
|
712
|
-
|
713
|
-
/* Added at libpng-1.2.6 */
|
714
|
-
#ifndef PNG_NO_SET_USER_LIMITS
|
715
|
-
# ifndef PNG_SET_USER_LIMITS_SUPPORTED
|
716
|
-
# define PNG_SET_USER_LIMITS_SUPPORTED
|
717
|
-
# endif
|
718
|
-
/* Feature added at libpng-1.4.0, this flag added at 1.4.1 */
|
719
|
-
# ifndef PNG_SET_CHUNK_CACHE_LIMIT_SUPPORTED
|
720
|
-
# define PNG_SET_CHUNK_CACHE_LIMIT_SUPPORTED
|
721
|
-
# endif
|
722
|
-
/* Feature added at libpng-1.4.1, this flag added at 1.4.1 */
|
723
|
-
# ifndef PNG_SET_CHUNK_MALLOC_LIMIT_SUPPORTED
|
724
|
-
# define PNG_SET_CHUNK_MALLOC_LIMIT_SUPPORTED
|
725
|
-
# endif
|
726
|
-
#endif
|
727
|
-
|
728
|
-
/* Added at libpng-1.2.43 */
|
729
|
-
#ifndef PNG_USER_LIMITS_SUPPORTED
|
730
|
-
# ifndef PNG_NO_USER_LIMITS
|
731
|
-
# define PNG_USER_LIMITS_SUPPORTED
|
732
|
-
# endif
|
733
|
-
#endif
|
734
|
-
|
735
|
-
/* Added at libpng-1.0.16 and 1.2.6. To accept all valid PNGs no matter
|
736
|
-
* how large, set these two limits to 0x7fffffffL
|
737
|
-
*/
|
738
|
-
#ifndef PNG_USER_WIDTH_MAX
|
739
|
-
# define PNG_USER_WIDTH_MAX 1000000L
|
740
|
-
#endif
|
741
|
-
#ifndef PNG_USER_HEIGHT_MAX
|
742
|
-
# define PNG_USER_HEIGHT_MAX 1000000L
|
743
|
-
#endif
|
744
|
-
|
745
|
-
/* Added at libpng-1.2.43. To accept all valid PNGs no matter
|
746
|
-
* how large, set these two limits to 0.
|
747
|
-
*/
|
748
|
-
#ifndef PNG_USER_CHUNK_CACHE_MAX
|
749
|
-
# define PNG_USER_CHUNK_CACHE_MAX 0
|
750
|
-
#endif
|
751
|
-
|
752
|
-
/* Added at libpng-1.2.43 */
|
753
|
-
#ifndef PNG_USER_CHUNK_MALLOC_MAX
|
754
|
-
# define PNG_USER_CHUNK_MALLOC_MAX 0
|
755
|
-
#endif
|
756
|
-
|
757
|
-
/* Added at libpng-1.4.0 */
|
758
|
-
#if !defined(PNG_NO_IO_STATE) && !defined(PNG_IO_STATE_SUPPORTED)
|
759
|
-
# define PNG_IO_STATE_SUPPORTED
|
760
|
-
#endif
|
761
|
-
|
762
|
-
#ifndef PNG_LITERAL_SHARP
|
763
|
-
# define PNG_LITERAL_SHARP 0x23
|
764
|
-
#endif
|
765
|
-
#ifndef PNG_LITERAL_LEFT_SQUARE_BRACKET
|
766
|
-
# define PNG_LITERAL_LEFT_SQUARE_BRACKET 0x5b
|
767
|
-
#endif
|
768
|
-
#ifndef PNG_LITERAL_RIGHT_SQUARE_BRACKET
|
769
|
-
# define PNG_LITERAL_RIGHT_SQUARE_BRACKET 0x5d
|
770
|
-
#endif
|
771
|
-
#ifndef PNG_STRING_NEWLINE
|
772
|
-
#define PNG_STRING_NEWLINE "\n"
|
773
|
-
#endif
|
774
|
-
|
775
|
-
/* These are currently experimental features, define them if you want */
|
776
|
-
|
777
|
-
/* Very little testing */
|
778
|
-
/*
|
779
|
-
#ifdef PNG_READ_SUPPORTED
|
780
|
-
# ifndef PNG_READ_16_TO_8_ACCURATE_SCALE_SUPPORTED
|
781
|
-
# define PNG_READ_16_TO_8_ACCURATE_SCALE_SUPPORTED
|
782
|
-
# endif
|
783
|
-
#endif
|
784
|
-
*/
|
785
|
-
|
786
|
-
/* This is only for PowerPC big-endian and 680x0 systems */
|
787
|
-
/* some testing */
|
788
|
-
/*
|
789
|
-
#ifndef PNG_READ_BIG_ENDIAN_SUPPORTED
|
790
|
-
# define PNG_READ_BIG_ENDIAN_SUPPORTED
|
791
|
-
#endif
|
792
|
-
*/
|
793
|
-
|
794
|
-
#if !defined(PNG_NO_USE_READ_MACROS) && !defined(PNG_USE_READ_MACROS)
|
795
|
-
# define PNG_USE_READ_MACROS
|
796
|
-
#endif
|
797
|
-
|
798
|
-
/* Buggy compilers (e.g., gcc 2.7.2.2) need PNG_NO_POINTER_INDEXING */
|
799
|
-
|
800
|
-
#if !defined(PNG_NO_POINTER_INDEXING) && \
|
801
|
-
!defined(PNG_POINTER_INDEXING_SUPPORTED)
|
802
|
-
# define PNG_POINTER_INDEXING_SUPPORTED
|
803
|
-
#endif
|
804
|
-
|
805
|
-
|
806
|
-
/* Any chunks you are not interested in, you can undef here. The
|
807
|
-
* ones that allocate memory may be expecially important (hIST,
|
808
|
-
* tEXt, zTXt, tRNS, pCAL). Others will just save time and make png_info
|
809
|
-
* a bit smaller.
|
810
|
-
*/
|
811
|
-
|
812
|
-
/* The size of the png_text structure changed in libpng-1.0.6 when
|
813
|
-
* iTXt support was added. iTXt support was turned off by default through
|
814
|
-
* libpng-1.2.x, to support old apps that malloc the png_text structure
|
815
|
-
* instead of calling png_set_text() and letting libpng malloc it. It
|
816
|
-
* was turned on by default in libpng-1.4.0.
|
817
|
-
*/
|
818
|
-
|
819
|
-
/* PNG_READ_ANCILLARY_CHUNKS_NOT_SUPPORTED is deprecated. */
|
820
|
-
#if defined(PNG_READ_SUPPORTED) && \
|
821
|
-
!defined(PNG_READ_ANCILLARY_CHUNKS_NOT_SUPPORTED) && \
|
822
|
-
!defined(PNG_NO_READ_ANCILLARY_CHUNKS)
|
823
|
-
# define PNG_READ_ANCILLARY_CHUNKS_SUPPORTED
|
824
|
-
#endif
|
825
|
-
|
826
|
-
/* PNG_WRITE_ANCILLARY_CHUNKS_NOT_SUPPORTED is deprecated. */
|
827
|
-
#if defined(PNG_WRITE_SUPPORTED) && \
|
828
|
-
!defined(PNG_WRITE_ANCILLARY_CHUNKS_NOT_SUPPORTED) && \
|
829
|
-
!defined(PNG_NO_WRITE_ANCILLARY_CHUNKS)
|
830
|
-
# define PNG_WRITE_ANCILLARY_CHUNKS_SUPPORTED
|
831
|
-
#endif
|
832
|
-
|
833
|
-
#ifdef PNG_READ_ANCILLARY_CHUNKS_SUPPORTED
|
834
|
-
|
835
|
-
#ifdef PNG_NO_READ_TEXT
|
836
|
-
# define PNG_NO_READ_iTXt
|
837
|
-
# define PNG_NO_READ_tEXt
|
838
|
-
# define PNG_NO_READ_zTXt
|
839
|
-
#endif
|
840
|
-
|
841
|
-
#ifndef PNG_NO_READ_bKGD
|
842
|
-
# define PNG_READ_bKGD_SUPPORTED
|
843
|
-
# define PNG_bKGD_SUPPORTED
|
844
|
-
#endif
|
845
|
-
#ifndef PNG_NO_READ_cHRM
|
846
|
-
# define PNG_READ_cHRM_SUPPORTED
|
847
|
-
# define PNG_cHRM_SUPPORTED
|
848
|
-
#endif
|
849
|
-
#ifndef PNG_NO_READ_gAMA
|
850
|
-
# define PNG_READ_gAMA_SUPPORTED
|
851
|
-
# define PNG_gAMA_SUPPORTED
|
852
|
-
#endif
|
853
|
-
#ifndef PNG_NO_READ_hIST
|
854
|
-
# define PNG_READ_hIST_SUPPORTED
|
855
|
-
# define PNG_hIST_SUPPORTED
|
856
|
-
#endif
|
857
|
-
#ifndef PNG_NO_READ_iCCP
|
858
|
-
# define PNG_READ_iCCP_SUPPORTED
|
859
|
-
# define PNG_iCCP_SUPPORTED
|
860
|
-
#endif
|
861
|
-
#ifndef PNG_NO_READ_iTXt
|
862
|
-
# ifndef PNG_READ_iTXt_SUPPORTED
|
863
|
-
# define PNG_READ_iTXt_SUPPORTED
|
864
|
-
# endif
|
865
|
-
# ifndef PNG_iTXt_SUPPORTED
|
866
|
-
# define PNG_iTXt_SUPPORTED
|
867
|
-
# endif
|
868
|
-
#endif
|
869
|
-
#ifndef PNG_NO_READ_oFFs
|
870
|
-
# define PNG_READ_oFFs_SUPPORTED
|
871
|
-
# define PNG_oFFs_SUPPORTED
|
872
|
-
#endif
|
873
|
-
#ifndef PNG_NO_READ_pCAL
|
874
|
-
# define PNG_READ_pCAL_SUPPORTED
|
875
|
-
# define PNG_pCAL_SUPPORTED
|
876
|
-
#endif
|
877
|
-
#ifndef PNG_NO_READ_sCAL
|
878
|
-
# define PNG_READ_sCAL_SUPPORTED
|
879
|
-
# define PNG_sCAL_SUPPORTED
|
880
|
-
#endif
|
881
|
-
#ifndef PNG_NO_READ_pHYs
|
882
|
-
# define PNG_READ_pHYs_SUPPORTED
|
883
|
-
# define PNG_pHYs_SUPPORTED
|
884
|
-
#endif
|
885
|
-
#ifndef PNG_NO_READ_sBIT
|
886
|
-
# define PNG_READ_sBIT_SUPPORTED
|
887
|
-
# define PNG_sBIT_SUPPORTED
|
888
|
-
#endif
|
889
|
-
#ifndef PNG_NO_READ_sPLT
|
890
|
-
# define PNG_READ_sPLT_SUPPORTED
|
891
|
-
# define PNG_sPLT_SUPPORTED
|
892
|
-
#endif
|
893
|
-
#ifndef PNG_NO_READ_sRGB
|
894
|
-
# define PNG_READ_sRGB_SUPPORTED
|
895
|
-
# define PNG_sRGB_SUPPORTED
|
896
|
-
#endif
|
897
|
-
#ifndef PNG_NO_READ_tEXt
|
898
|
-
# define PNG_READ_tEXt_SUPPORTED
|
899
|
-
# define PNG_tEXt_SUPPORTED
|
900
|
-
#endif
|
901
|
-
#ifndef PNG_NO_READ_tIME
|
902
|
-
# define PNG_READ_tIME_SUPPORTED
|
903
|
-
# define PNG_tIME_SUPPORTED
|
904
|
-
#endif
|
905
|
-
#ifndef PNG_NO_READ_tRNS
|
906
|
-
# define PNG_READ_tRNS_SUPPORTED
|
907
|
-
# define PNG_tRNS_SUPPORTED
|
908
|
-
#endif
|
909
|
-
#ifndef PNG_NO_READ_zTXt
|
910
|
-
# define PNG_READ_zTXt_SUPPORTED
|
911
|
-
# define PNG_zTXt_SUPPORTED
|
912
|
-
#endif
|
913
|
-
#ifndef PNG_NO_READ_OPT_PLTE
|
914
|
-
# define PNG_READ_OPT_PLTE_SUPPORTED /* only affects support of the */
|
915
|
-
#endif /* optional PLTE chunk in RGB and RGBA images */
|
916
|
-
#if defined(PNG_READ_iTXt_SUPPORTED) || defined(PNG_READ_tEXt_SUPPORTED) || \
|
917
|
-
defined(PNG_READ_zTXt_SUPPORTED)
|
918
|
-
# define PNG_READ_TEXT_SUPPORTED
|
919
|
-
# define PNG_TEXT_SUPPORTED
|
920
|
-
#endif
|
921
|
-
|
922
|
-
#endif /* PNG_READ_ANCILLARY_CHUNKS_SUPPORTED */
|
923
|
-
|
924
|
-
#ifndef PNG_NO_READ_UNKNOWN_CHUNKS
|
925
|
-
# ifndef PNG_READ_UNKNOWN_CHUNKS_SUPPORTED
|
926
|
-
# define PNG_READ_UNKNOWN_CHUNKS_SUPPORTED
|
927
|
-
# endif
|
928
|
-
# ifndef PNG_UNKNOWN_CHUNKS_SUPPORTED
|
929
|
-
# define PNG_UNKNOWN_CHUNKS_SUPPORTED
|
930
|
-
# endif
|
931
|
-
# ifndef PNG_READ_USER_CHUNKS_SUPPORTED
|
932
|
-
# define PNG_READ_USER_CHUNKS_SUPPORTED
|
933
|
-
# endif
|
934
|
-
#endif
|
935
|
-
#ifndef PNG_NO_READ_USER_CHUNKS
|
936
|
-
# ifndef PNG_READ_USER_CHUNKS_SUPPORTED
|
937
|
-
# define PNG_READ_USER_CHUNKS_SUPPORTED
|
938
|
-
# endif
|
939
|
-
# ifndef PNG_USER_CHUNKS_SUPPORTED
|
940
|
-
# define PNG_USER_CHUNKS_SUPPORTED
|
941
|
-
# endif
|
942
|
-
#endif
|
943
|
-
#ifndef PNG_NO_HANDLE_AS_UNKNOWN
|
944
|
-
# ifndef PNG_HANDLE_AS_UNKNOWN_SUPPORTED
|
945
|
-
# define PNG_HANDLE_AS_UNKNOWN_SUPPORTED
|
946
|
-
# endif
|
947
|
-
#endif
|
948
|
-
|
949
|
-
#ifdef PNG_WRITE_SUPPORTED
|
950
|
-
#ifdef PNG_WRITE_ANCILLARY_CHUNKS_SUPPORTED
|
951
|
-
|
952
|
-
#ifdef PNG_NO_WRITE_TEXT
|
953
|
-
# define PNG_NO_WRITE_iTXt
|
954
|
-
# define PNG_NO_WRITE_tEXt
|
955
|
-
# define PNG_NO_WRITE_zTXt
|
956
|
-
#endif
|
957
|
-
#ifndef PNG_NO_WRITE_bKGD
|
958
|
-
# define PNG_WRITE_bKGD_SUPPORTED
|
959
|
-
# ifndef PNG_bKGD_SUPPORTED
|
960
|
-
# define PNG_bKGD_SUPPORTED
|
961
|
-
# endif
|
962
|
-
#endif
|
963
|
-
#ifndef PNG_NO_WRITE_cHRM
|
964
|
-
# define PNG_WRITE_cHRM_SUPPORTED
|
965
|
-
# ifndef PNG_cHRM_SUPPORTED
|
966
|
-
# define PNG_cHRM_SUPPORTED
|
967
|
-
# endif
|
968
|
-
#endif
|
969
|
-
#ifndef PNG_NO_WRITE_gAMA
|
970
|
-
# define PNG_WRITE_gAMA_SUPPORTED
|
971
|
-
# ifndef PNG_gAMA_SUPPORTED
|
972
|
-
# define PNG_gAMA_SUPPORTED
|
973
|
-
# endif
|
974
|
-
#endif
|
975
|
-
#ifndef PNG_NO_WRITE_hIST
|
976
|
-
# define PNG_WRITE_hIST_SUPPORTED
|
977
|
-
# ifndef PNG_hIST_SUPPORTED
|
978
|
-
# define PNG_hIST_SUPPORTED
|
979
|
-
# endif
|
980
|
-
#endif
|
981
|
-
#ifndef PNG_NO_WRITE_iCCP
|
982
|
-
# define PNG_WRITE_iCCP_SUPPORTED
|
983
|
-
# ifndef PNG_iCCP_SUPPORTED
|
984
|
-
# define PNG_iCCP_SUPPORTED
|
985
|
-
# endif
|
986
|
-
#endif
|
987
|
-
#ifndef PNG_NO_WRITE_iTXt
|
988
|
-
# ifndef PNG_WRITE_iTXt_SUPPORTED
|
989
|
-
# define PNG_WRITE_iTXt_SUPPORTED
|
990
|
-
# endif
|
991
|
-
# ifndef PNG_iTXt_SUPPORTED
|
992
|
-
# define PNG_iTXt_SUPPORTED
|
993
|
-
# endif
|
994
|
-
#endif
|
995
|
-
#ifndef PNG_NO_WRITE_oFFs
|
996
|
-
# define PNG_WRITE_oFFs_SUPPORTED
|
997
|
-
# ifndef PNG_oFFs_SUPPORTED
|
998
|
-
# define PNG_oFFs_SUPPORTED
|
999
|
-
# endif
|
1000
|
-
#endif
|
1001
|
-
#ifndef PNG_NO_WRITE_pCAL
|
1002
|
-
# define PNG_WRITE_pCAL_SUPPORTED
|
1003
|
-
# ifndef PNG_pCAL_SUPPORTED
|
1004
|
-
# define PNG_pCAL_SUPPORTED
|
1005
|
-
# endif
|
1006
|
-
#endif
|
1007
|
-
#ifndef PNG_NO_WRITE_sCAL
|
1008
|
-
# define PNG_WRITE_sCAL_SUPPORTED
|
1009
|
-
# ifndef PNG_sCAL_SUPPORTED
|
1010
|
-
# define PNG_sCAL_SUPPORTED
|
1011
|
-
# endif
|
1012
|
-
#endif
|
1013
|
-
#ifndef PNG_NO_WRITE_pHYs
|
1014
|
-
# define PNG_WRITE_pHYs_SUPPORTED
|
1015
|
-
# ifndef PNG_pHYs_SUPPORTED
|
1016
|
-
# define PNG_pHYs_SUPPORTED
|
1017
|
-
# endif
|
1018
|
-
#endif
|
1019
|
-
#ifndef PNG_NO_WRITE_sBIT
|
1020
|
-
# define PNG_WRITE_sBIT_SUPPORTED
|
1021
|
-
# ifndef PNG_sBIT_SUPPORTED
|
1022
|
-
# define PNG_sBIT_SUPPORTED
|
1023
|
-
# endif
|
1024
|
-
#endif
|
1025
|
-
#ifndef PNG_NO_WRITE_sPLT
|
1026
|
-
# define PNG_WRITE_sPLT_SUPPORTED
|
1027
|
-
# ifndef PNG_sPLT_SUPPORTED
|
1028
|
-
# define PNG_sPLT_SUPPORTED
|
1029
|
-
# endif
|
1030
|
-
#endif
|
1031
|
-
#ifndef PNG_NO_WRITE_sRGB
|
1032
|
-
# define PNG_WRITE_sRGB_SUPPORTED
|
1033
|
-
# ifndef PNG_sRGB_SUPPORTED
|
1034
|
-
# define PNG_sRGB_SUPPORTED
|
1035
|
-
# endif
|
1036
|
-
#endif
|
1037
|
-
#ifndef PNG_NO_WRITE_tEXt
|
1038
|
-
# define PNG_WRITE_tEXt_SUPPORTED
|
1039
|
-
# ifndef PNG_tEXt_SUPPORTED
|
1040
|
-
# define PNG_tEXt_SUPPORTED
|
1041
|
-
# endif
|
1042
|
-
#endif
|
1043
|
-
#ifndef PNG_NO_WRITE_tIME
|
1044
|
-
# define PNG_WRITE_tIME_SUPPORTED
|
1045
|
-
# ifndef PNG_tIME_SUPPORTED
|
1046
|
-
# define PNG_tIME_SUPPORTED
|
1047
|
-
# endif
|
1048
|
-
#endif
|
1049
|
-
#ifndef PNG_NO_WRITE_tRNS
|
1050
|
-
# define PNG_WRITE_tRNS_SUPPORTED
|
1051
|
-
# ifndef PNG_tRNS_SUPPORTED
|
1052
|
-
# define PNG_tRNS_SUPPORTED
|
1053
|
-
# endif
|
1054
|
-
#endif
|
1055
|
-
#ifndef PNG_NO_WRITE_zTXt
|
1056
|
-
# define PNG_WRITE_zTXt_SUPPORTED
|
1057
|
-
# ifndef PNG_zTXt_SUPPORTED
|
1058
|
-
# define PNG_zTXt_SUPPORTED
|
1059
|
-
# endif
|
1060
|
-
#endif
|
1061
|
-
#if defined(PNG_WRITE_iTXt_SUPPORTED) || defined(PNG_WRITE_tEXt_SUPPORTED) || \
|
1062
|
-
defined(PNG_WRITE_zTXt_SUPPORTED)
|
1063
|
-
# define PNG_WRITE_TEXT_SUPPORTED
|
1064
|
-
# ifndef PNG_TEXT_SUPPORTED
|
1065
|
-
# define PNG_TEXT_SUPPORTED
|
1066
|
-
# endif
|
1067
|
-
#endif
|
1068
|
-
|
1069
|
-
#ifdef PNG_WRITE_tIME_SUPPORTED
|
1070
|
-
# ifndef PNG_NO_CONVERT_tIME
|
1071
|
-
# ifndef _WIN32_WCE
|
1072
|
-
/* The "tm" structure is not supported on WindowsCE */
|
1073
|
-
# ifndef PNG_CONVERT_tIME_SUPPORTED
|
1074
|
-
# define PNG_CONVERT_tIME_SUPPORTED
|
1075
|
-
# endif
|
1076
|
-
# endif
|
1077
|
-
# endif
|
1078
|
-
#endif
|
1079
|
-
|
1080
|
-
#endif /* PNG_WRITE_ANCILLARY_CHUNKS_SUPPORTED */
|
1081
|
-
|
1082
|
-
#ifndef PNG_NO_WRITE_FILTER
|
1083
|
-
# ifndef PNG_WRITE_FILTER_SUPPORTED
|
1084
|
-
# define PNG_WRITE_FILTER_SUPPORTED
|
1085
|
-
# endif
|
1086
|
-
#endif
|
1087
|
-
|
1088
|
-
#ifndef PNG_NO_WRITE_UNKNOWN_CHUNKS
|
1089
|
-
# define PNG_WRITE_UNKNOWN_CHUNKS_SUPPORTED
|
1090
|
-
# ifndef PNG_UNKNOWN_CHUNKS_SUPPORTED
|
1091
|
-
# define PNG_UNKNOWN_CHUNKS_SUPPORTED
|
1092
|
-
# endif
|
1093
|
-
#endif
|
1094
|
-
#ifndef PNG_NO_HANDLE_AS_UNKNOWN
|
1095
|
-
# ifndef PNG_HANDLE_AS_UNKNOWN_SUPPORTED
|
1096
|
-
# define PNG_HANDLE_AS_UNKNOWN_SUPPORTED
|
1097
|
-
# endif
|
1098
|
-
#endif
|
1099
|
-
#endif /* PNG_WRITE_SUPPORTED */
|
1100
|
-
|
1101
|
-
/* Turn this off to disable png_read_png() and
|
1102
|
-
* png_write_png() and leave the row_pointers member
|
1103
|
-
* out of the info structure.
|
1104
|
-
*/
|
1105
|
-
#ifndef PNG_NO_INFO_IMAGE
|
1106
|
-
# define PNG_INFO_IMAGE_SUPPORTED
|
1107
|
-
#endif
|
1108
|
-
|
1109
|
-
/* Need the time information for converting tIME chunks */
|
1110
|
-
#ifdef PNG_CONVERT_tIME_SUPPORTED
|
1111
|
-
/* "time.h" functions are not supported on WindowsCE */
|
1112
|
-
# include <time.h>
|
1113
|
-
#endif
|
1114
|
-
|
1115
|
-
/* Some typedefs to get us started. These should be safe on most of the
|
1116
|
-
* common platforms. The typedefs should be at least as large as the
|
1117
|
-
* numbers suggest (a png_uint_32 must be at least 32 bits long), but they
|
1118
|
-
* don't have to be exactly that size. Some compilers dislike passing
|
1119
|
-
* unsigned shorts as function parameters, so you may be better off using
|
1120
|
-
* unsigned int for png_uint_16.
|
1121
|
-
*/
|
1122
|
-
|
1123
|
-
#if defined(INT_MAX) && (INT_MAX > 0x7ffffffeL)
|
1124
|
-
typedef unsigned int png_uint_32;
|
1125
|
-
typedef int png_int_32;
|
1126
|
-
#else
|
1127
|
-
typedef unsigned long png_uint_32;
|
1128
|
-
typedef long png_int_32;
|
1129
|
-
#endif
|
1130
|
-
typedef unsigned short png_uint_16;
|
1131
|
-
typedef short png_int_16;
|
1132
|
-
typedef unsigned char png_byte;
|
1133
|
-
|
1134
|
-
#ifdef PNG_NO_SIZE_T
|
1135
|
-
typedef unsigned int png_size_t;
|
1136
|
-
#else
|
1137
|
-
typedef size_t png_size_t;
|
1138
|
-
#endif
|
1139
|
-
#define png_sizeof(x) (sizeof (x))
|
1140
|
-
|
1141
|
-
/* The following is needed for medium model support. It cannot be in the
|
1142
|
-
* pngpriv.h header. Needs modification for other compilers besides
|
1143
|
-
* MSC. Model independent support declares all arrays and pointers to be
|
1144
|
-
* large using the far keyword. The zlib version used must also support
|
1145
|
-
* model independent data. As of version zlib 1.0.4, the necessary changes
|
1146
|
-
* have been made in zlib. The USE_FAR_KEYWORD define triggers other
|
1147
|
-
* changes that are needed. (Tim Wegner)
|
1148
|
-
*/
|
1149
|
-
|
1150
|
-
/* Separate compiler dependencies (problem here is that zlib.h always
|
1151
|
-
* defines FAR. (SJT)
|
1152
|
-
*/
|
1153
|
-
#ifdef __BORLANDC__
|
1154
|
-
# if defined(__LARGE__) || defined(__HUGE__) || defined(__COMPACT__)
|
1155
|
-
# define LDATA 1
|
1156
|
-
# else
|
1157
|
-
# define LDATA 0
|
1158
|
-
# endif
|
1159
|
-
/* GRR: why is Cygwin in here? Cygwin is not Borland C... */
|
1160
|
-
# if !defined(__WIN32__) && !defined(__FLAT__) && !defined(__CYGWIN__)
|
1161
|
-
# define PNG_MAX_MALLOC_64K
|
1162
|
-
# if (LDATA != 1)
|
1163
|
-
# ifndef FAR
|
1164
|
-
# define FAR __far
|
1165
|
-
# endif
|
1166
|
-
# define USE_FAR_KEYWORD
|
1167
|
-
# endif /* LDATA != 1 */
|
1168
|
-
/* Possibly useful for moving data out of default segment.
|
1169
|
-
* Uncomment it if you want. Could also define FARDATA as
|
1170
|
-
* const if your compiler supports it. (SJT)
|
1171
|
-
# define FARDATA FAR
|
1172
|
-
*/
|
1173
|
-
# endif /* __WIN32__, __FLAT__, __CYGWIN__ */
|
1174
|
-
#endif /* __BORLANDC__ */
|
1175
|
-
|
1176
|
-
|
1177
|
-
/* Suggest testing for specific compiler first before testing for
|
1178
|
-
* FAR. The Watcom compiler defines both __MEDIUM__ and M_I86MM,
|
1179
|
-
* making reliance oncertain keywords suspect. (SJT)
|
1180
|
-
*/
|
1181
|
-
|
1182
|
-
/* MSC Medium model */
|
1183
|
-
#ifdef FAR
|
1184
|
-
# ifdef M_I86MM
|
1185
|
-
# define USE_FAR_KEYWORD
|
1186
|
-
# define FARDATA FAR
|
1187
|
-
# include <dos.h>
|
1188
|
-
# endif
|
1189
|
-
#endif
|
1190
|
-
|
1191
|
-
/* SJT: default case */
|
1192
|
-
#ifndef FAR
|
1193
|
-
# define FAR
|
1194
|
-
#endif
|
1195
|
-
|
1196
|
-
/* At this point FAR is always defined */
|
1197
|
-
#ifndef FARDATA
|
1198
|
-
# define FARDATA
|
1199
|
-
#endif
|
1200
|
-
|
1201
|
-
/* Typedef for floating-point numbers that are converted
|
1202
|
-
to fixed-point with a multiple of 100,000, e.g., int_gamma */
|
1203
|
-
typedef png_int_32 png_fixed_point;
|
1204
|
-
|
1205
|
-
/* Add typedefs for pointers */
|
1206
|
-
typedef void FAR * png_voidp;
|
1207
|
-
typedef png_byte FAR * png_bytep;
|
1208
|
-
typedef png_uint_32 FAR * png_uint_32p;
|
1209
|
-
typedef png_int_32 FAR * png_int_32p;
|
1210
|
-
typedef png_uint_16 FAR * png_uint_16p;
|
1211
|
-
typedef png_int_16 FAR * png_int_16p;
|
1212
|
-
typedef PNG_CONST char FAR * png_const_charp;
|
1213
|
-
typedef char FAR * png_charp;
|
1214
|
-
typedef png_fixed_point FAR * png_fixed_point_p;
|
1215
|
-
|
1216
|
-
#ifndef PNG_NO_STDIO
|
1217
|
-
typedef FILE * png_FILE_p;
|
1218
|
-
#endif
|
1219
|
-
|
1220
|
-
#ifdef PNG_FLOATING_POINT_SUPPORTED
|
1221
|
-
typedef double FAR * png_doublep;
|
1222
|
-
#endif
|
1223
|
-
|
1224
|
-
/* Pointers to pointers; i.e. arrays */
|
1225
|
-
typedef png_byte FAR * FAR * png_bytepp;
|
1226
|
-
typedef png_uint_32 FAR * FAR * png_uint_32pp;
|
1227
|
-
typedef png_int_32 FAR * FAR * png_int_32pp;
|
1228
|
-
typedef png_uint_16 FAR * FAR * png_uint_16pp;
|
1229
|
-
typedef png_int_16 FAR * FAR * png_int_16pp;
|
1230
|
-
typedef PNG_CONST char FAR * FAR * png_const_charpp;
|
1231
|
-
typedef char FAR * FAR * png_charpp;
|
1232
|
-
typedef png_fixed_point FAR * FAR * png_fixed_point_pp;
|
1233
|
-
#ifdef PNG_FLOATING_POINT_SUPPORTED
|
1234
|
-
typedef double FAR * FAR * png_doublepp;
|
1235
|
-
#endif
|
1236
|
-
|
1237
|
-
/* Pointers to pointers to pointers; i.e., pointer to array */
|
1238
|
-
typedef char FAR * FAR * FAR * png_charppp;
|
1239
|
-
|
1240
|
-
/* Define PNG_BUILD_DLL if the module being built is a Windows
|
1241
|
-
* LIBPNG DLL.
|
1242
|
-
*
|
1243
|
-
* Define PNG_USE_DLL if you want to *link* to the Windows LIBPNG DLL.
|
1244
|
-
* It is equivalent to Microsoft predefined macro _DLL that is
|
1245
|
-
* automatically defined when you compile using the share
|
1246
|
-
* version of the CRT (C Run-Time library)
|
1247
|
-
*
|
1248
|
-
* The cygwin mods make this behavior a little different:
|
1249
|
-
* Define PNG_BUILD_DLL if you are building a dll for use with cygwin
|
1250
|
-
* Define PNG_STATIC if you are building a static library for use with cygwin,
|
1251
|
-
* -or- if you are building an application that you want to link to the
|
1252
|
-
* static library.
|
1253
|
-
* PNG_USE_DLL is defined by default (no user action needed) unless one of
|
1254
|
-
* the other flags is defined.
|
1255
|
-
*/
|
1256
|
-
|
1257
|
-
#if !defined(PNG_DLL) && (defined(PNG_BUILD_DLL) || defined(PNG_USE_DLL))
|
1258
|
-
# define PNG_DLL
|
1259
|
-
#endif
|
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
|
-
|
1268
|
-
#ifdef __CYGWIN__
|
1269
|
-
# undef PNGAPI
|
1270
|
-
# define PNGAPI __cdecl
|
1271
|
-
# undef PNG_IMPEXP
|
1272
|
-
# define PNG_IMPEXP
|
1273
|
-
#endif
|
1274
|
-
|
1275
|
-
#ifdef __WATCOMC__
|
1276
|
-
# ifndef PNGAPI
|
1277
|
-
# define PNGAPI
|
1278
|
-
# endif
|
1279
|
-
#endif
|
1280
|
-
|
1281
|
-
#if defined(__MINGW32__) && !defined(PNG_MODULEDEF)
|
1282
|
-
# ifndef PNG_NO_MODULEDEF
|
1283
|
-
# define PNG_NO_MODULEDEF
|
1284
|
-
# endif
|
1285
|
-
#endif
|
1286
|
-
|
1287
|
-
#if !defined(PNG_IMPEXP) && defined(PNG_BUILD_DLL) && !defined(PNG_NO_MODULEDEF)
|
1288
|
-
# define PNG_IMPEXP
|
1289
|
-
#endif
|
1290
|
-
|
1291
|
-
#if defined(PNG_DLL) || defined(_DLL) || defined(__DLL__ ) || \
|
1292
|
-
(( defined(_Windows) || defined(_WINDOWS) || \
|
1293
|
-
defined(WIN32) || defined(_WIN32) || defined(__WIN32__) ))
|
1294
|
-
|
1295
|
-
# ifndef PNGAPI
|
1296
|
-
# if defined(__GNUC__) || (defined (_MSC_VER) && (_MSC_VER >= 800))
|
1297
|
-
# define PNGAPI __cdecl
|
1298
|
-
# else
|
1299
|
-
# define PNGAPI _cdecl
|
1300
|
-
# endif
|
1301
|
-
# endif
|
1302
|
-
|
1303
|
-
# if !defined(PNG_IMPEXP) && (!defined(PNG_DLL) || \
|
1304
|
-
0 /* WINCOMPILER_WITH_NO_SUPPORT_FOR_DECLIMPEXP */)
|
1305
|
-
# define PNG_IMPEXP
|
1306
|
-
# endif
|
1307
|
-
|
1308
|
-
# ifndef PNG_IMPEXP
|
1309
|
-
|
1310
|
-
# define PNG_EXPORT_TYPE1(type,symbol) PNG_IMPEXP type PNGAPI symbol
|
1311
|
-
# define PNG_EXPORT_TYPE2(type,symbol) type PNG_IMPEXP PNGAPI symbol
|
1312
|
-
|
1313
|
-
/* Borland/Microsoft */
|
1314
|
-
# if defined(_MSC_VER) || defined(__BORLANDC__)
|
1315
|
-
# if (_MSC_VER >= 800) || (__BORLANDC__ >= 0x500)
|
1316
|
-
# define PNG_EXPORT PNG_EXPORT_TYPE1
|
1317
|
-
# else
|
1318
|
-
# define PNG_EXPORT PNG_EXPORT_TYPE2
|
1319
|
-
# ifdef PNG_BUILD_DLL
|
1320
|
-
# define PNG_IMPEXP __export
|
1321
|
-
# else
|
1322
|
-
# define PNG_IMPEXP /*__import */ /* doesn't exist AFAIK in VC++ */
|
1323
|
-
# endif /* Exists in Borland C++ for
|
1324
|
-
C++ classes (== huge) */
|
1325
|
-
# endif
|
1326
|
-
# endif
|
1327
|
-
|
1328
|
-
# ifndef PNG_IMPEXP
|
1329
|
-
# ifdef PNG_BUILD_DLL
|
1330
|
-
# define PNG_IMPEXP __declspec(dllexport)
|
1331
|
-
# else
|
1332
|
-
# define PNG_IMPEXP __declspec(dllimport)
|
1333
|
-
# endif
|
1334
|
-
# endif
|
1335
|
-
# endif /* PNG_IMPEXP */
|
1336
|
-
#else /* !(DLL || non-cygwin WINDOWS) */
|
1337
|
-
# if (defined(__IBMC__) || defined(__IBMCPP__)) && defined(__OS2__)
|
1338
|
-
# ifndef PNGAPI
|
1339
|
-
# define PNGAPI _System
|
1340
|
-
# endif
|
1341
|
-
# else
|
1342
|
-
# if 0 /* ... other platforms, with other meanings */
|
1343
|
-
# endif
|
1344
|
-
# endif
|
1345
|
-
#endif
|
1346
|
-
|
1347
|
-
#ifndef PNGAPI
|
1348
|
-
# define PNGAPI
|
1349
|
-
#endif
|
1350
|
-
#ifndef PNG_IMPEXP
|
1351
|
-
# define PNG_IMPEXP
|
1352
|
-
#endif
|
1353
|
-
|
1354
|
-
#ifdef PNG_BUILDSYMS
|
1355
|
-
# ifndef PNG_EXPORT
|
1356
|
-
# define PNG_EXPORT(type,symbol) PNG_FUNCTION_EXPORT symbol END
|
1357
|
-
# endif
|
1358
|
-
#endif
|
1359
|
-
|
1360
|
-
#ifndef PNG_EXPORT
|
1361
|
-
# define PNG_EXPORT(type,symbol) PNG_IMPEXP type PNGAPI symbol
|
1362
|
-
#endif
|
1363
|
-
|
1364
|
-
#define PNG_USE_LOCAL_ARRAYS /* Not used in libpng, defined for legacy apps */
|
1365
|
-
|
1366
|
-
/* Support for compiler specific function attributes. These are used
|
1367
|
-
* so that where compiler support is available incorrect use of API
|
1368
|
-
* functions in png.h will generate compiler warnings.
|
1369
|
-
*
|
1370
|
-
* Added at libpng-1.2.41.
|
1371
|
-
*/
|
1372
|
-
|
1373
|
-
#ifndef PNG_NO_PEDANTIC_WARNINGS
|
1374
|
-
# ifndef PNG_PEDANTIC_WARNINGS_SUPPORTED
|
1375
|
-
# define PNG_PEDANTIC_WARNINGS_SUPPORTED
|
1376
|
-
# endif
|
1377
|
-
#endif
|
1378
|
-
|
1379
|
-
#ifdef PNG_PEDANTIC_WARNINGS_SUPPORTED
|
1380
|
-
/* Support for compiler specific function attributes. These are used
|
1381
|
-
* so that where compiler support is available incorrect use of API
|
1382
|
-
* functions in png.h will generate compiler warnings. Added at libpng
|
1383
|
-
* version 1.2.41.
|
1384
|
-
*/
|
1385
|
-
# ifdef __GNUC__
|
1386
|
-
# ifndef PNG_USE_RESULT
|
1387
|
-
# define PNG_USE_RESULT __attribute__((__warn_unused_result__))
|
1388
|
-
# endif
|
1389
|
-
# ifndef PNG_NORETURN
|
1390
|
-
# define PNG_NORETURN __attribute__((__noreturn__))
|
1391
|
-
# endif
|
1392
|
-
# ifndef PNG_ALLOCATED
|
1393
|
-
# define PNG_ALLOCATED __attribute__((__malloc__))
|
1394
|
-
# endif
|
1395
|
-
# ifndef PNG_DEPRECATED
|
1396
|
-
# define PNG_DEPRECATED __attribute__((__deprecated__))
|
1397
|
-
# endif
|
1398
|
-
|
1399
|
-
/* This specifically protects structure members that should only be
|
1400
|
-
* accessed from within the library, therefore should be empty during
|
1401
|
-
* a library build.
|
1402
|
-
*/
|
1403
|
-
# ifndef PNG_DEPSTRUCT
|
1404
|
-
# define PNG_DEPSTRUCT __attribute__((__deprecated__))
|
1405
|
-
# endif
|
1406
|
-
# ifndef PNG_PRIVATE
|
1407
|
-
# if 0 /* Doesn't work so we use deprecated instead*/
|
1408
|
-
# define PNG_PRIVATE \
|
1409
|
-
__attribute__((warning("This function is not exported by libpng.")))
|
1410
|
-
# else
|
1411
|
-
# define PNG_PRIVATE \
|
1412
|
-
__attribute__((__deprecated__))
|
1413
|
-
# endif
|
1414
|
-
# endif /* PNG_PRIVATE */
|
1415
|
-
# endif /* __GNUC__ */
|
1416
|
-
#endif /* PNG_PEDANTIC_WARNINGS */
|
1417
|
-
|
1418
|
-
#ifndef PNG_DEPRECATED
|
1419
|
-
# define PNG_DEPRECATED /* Use of this function is deprecated */
|
1420
|
-
#endif
|
1421
|
-
#ifndef PNG_USE_RESULT
|
1422
|
-
# define PNG_USE_RESULT /* The result of this function must be checked */
|
1423
|
-
#endif
|
1424
|
-
#ifndef PNG_NORETURN
|
1425
|
-
# define PNG_NORETURN /* This function does not return */
|
1426
|
-
#endif
|
1427
|
-
#ifndef PNG_ALLOCATED
|
1428
|
-
# define PNG_ALLOCATED /* The result of the function is new memory */
|
1429
|
-
#endif
|
1430
|
-
#ifndef PNG_DEPSTRUCT
|
1431
|
-
# define PNG_DEPSTRUCT /* Access to this struct member is deprecated */
|
1432
|
-
#endif
|
1433
|
-
#ifndef PNG_PRIVATE
|
1434
|
-
# define PNG_PRIVATE /* This is a private libpng function */
|
1435
|
-
#endif
|
1436
|
-
|
1437
|
-
/* Users may want to use these so they are not private. Any library
|
1438
|
-
* functions that are passed far data must be model-independent.
|
1439
|
-
*/
|
1440
|
-
|
1441
|
-
/* memory model/platform independent fns */
|
1442
|
-
#ifndef PNG_ABORT
|
1443
|
-
# if (defined(_Windows) || defined(_WINDOWS) || defined(_WINDOWS_))
|
1444
|
-
# define PNG_ABORT() ExitProcess(0)
|
1445
|
-
# else
|
1446
|
-
# define PNG_ABORT() abort()
|
1447
|
-
# endif
|
1448
|
-
#endif
|
1449
|
-
|
1450
|
-
#ifdef USE_FAR_KEYWORD
|
1451
|
-
/* Use this to make far-to-near assignments */
|
1452
|
-
# define CHECK 1
|
1453
|
-
# define NOCHECK 0
|
1454
|
-
# define CVT_PTR(ptr) (png_far_to_near(png_ptr,ptr,CHECK))
|
1455
|
-
# define CVT_PTR_NOCHECK(ptr) (png_far_to_near(png_ptr,ptr,NOCHECK))
|
1456
|
-
# define png_strcpy _fstrcpy
|
1457
|
-
# define png_strncpy _fstrncpy /* Added to v 1.2.6 */
|
1458
|
-
# define png_strlen _fstrlen
|
1459
|
-
# define png_memcmp _fmemcmp /* SJT: added */
|
1460
|
-
# define png_memcpy _fmemcpy
|
1461
|
-
# define png_memset _fmemset
|
1462
|
-
# define png_sprintf sprintf
|
1463
|
-
#else
|
1464
|
-
# if (defined(_Windows) || defined(_WINDOWS) || defined(_WINDOWS_))
|
1465
|
-
# /* Favor Windows over C runtime fns */
|
1466
|
-
# define CVT_PTR(ptr) (ptr)
|
1467
|
-
# define CVT_PTR_NOCHECK(ptr) (ptr)
|
1468
|
-
# define png_strcpy lstrcpyA
|
1469
|
-
# define png_strncpy lstrcpynA
|
1470
|
-
# define png_strlen lstrlenA
|
1471
|
-
# define png_memcmp memcmp
|
1472
|
-
# define png_memcpy CopyMemory
|
1473
|
-
# define png_memset memset
|
1474
|
-
# define png_sprintf wsprintfA
|
1475
|
-
# else
|
1476
|
-
# define CVT_PTR(ptr) (ptr)
|
1477
|
-
# define CVT_PTR_NOCHECK(ptr) (ptr)
|
1478
|
-
# define png_strcpy strcpy
|
1479
|
-
# define png_strncpy strncpy /* Added to v 1.2.6 */
|
1480
|
-
# define png_strlen strlen
|
1481
|
-
# define png_memcmp memcmp /* SJT: added */
|
1482
|
-
# define png_memcpy memcpy
|
1483
|
-
# define png_memset memset
|
1484
|
-
# define png_sprintf sprintf
|
1485
|
-
# endif
|
1486
|
-
#endif
|
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
|
-
|
1511
|
-
/* png_alloc_size_t is guaranteed to be no smaller than png_size_t,
|
1512
|
-
* and no smaller than png_uint_32. Casts from png_size_t or png_uint_32
|
1513
|
-
* to png_alloc_size_t are not necessary; in fact, it is recommended
|
1514
|
-
* not to use them at all so that the compiler can complain when something
|
1515
|
-
* turns out to be problematic.
|
1516
|
-
* Casts in the other direction (from png_alloc_size_t to png_size_t or
|
1517
|
-
* png_uint_32) should be explicitly applied; however, we do not expect
|
1518
|
-
* to encounter practical situations that require such conversions.
|
1519
|
-
*/
|
1520
|
-
#if defined(__TURBOC__) && !defined(__FLAT__)
|
1521
|
-
typedef unsigned long png_alloc_size_t;
|
1522
|
-
#else
|
1523
|
-
# if defined(_MSC_VER) && defined(MAXSEG_64K)
|
1524
|
-
typedef unsigned long png_alloc_size_t;
|
1525
|
-
# else
|
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;
|
1533
|
-
# else
|
1534
|
-
typedef png_size_t png_alloc_size_t;
|
1535
|
-
# endif
|
1536
|
-
# endif
|
1537
|
-
#endif
|
1538
|
-
/* End of memory model/platform independent support */
|
1539
|
-
|
1540
|
-
/* Just a little check that someone hasn't tried to define something
|
1541
|
-
* contradictory.
|
1542
|
-
*/
|
1543
|
-
#if (PNG_ZBUF_SIZE > 65536L) && defined(PNG_MAX_MALLOC_64K)
|
1544
|
-
# undef PNG_ZBUF_SIZE
|
1545
|
-
# define PNG_ZBUF_SIZE 65536L
|
1546
|
-
#endif
|
1547
|
-
|
1548
|
-
|
1549
|
-
/* Added at libpng-1.2.8 */
|
1550
|
-
#endif /* PNG_VERSION_INFO_ONLY */
|
1551
|
-
|
1552
|
-
#endif /* PNGCONF_H */
|