26 #ifdef PNG_SAFE_LIMITS_SUPPORTED 27 # ifdef PNG_USER_WIDTH_MAX 28 # undef PNG_USER_WIDTH_MAX 29 # define PNG_USER_WIDTH_MAX 1000000L 31 # ifdef PNG_USER_HEIGHT_MAX 32 # undef PNG_USER_HEIGHT_MAX 33 # define PNG_USER_HEIGHT_MAX 1000000L 35 # ifdef PNG_USER_CHUNK_MALLOC_MAX 36 # undef PNG_USER_CHUNK_MALLOC_MAX 37 # define PNG_USER_CHUNK_MALLOC_MAX 4000000L 39 # ifdef PNG_USER_CHUNK_CACHE_MAX 40 # undef PNG_USER_CHUNK_CACHE_MAX 41 # define PNG_USER_CHUNK_CACHE_MAX 128 45 #ifndef PNG_BUILDING_SYMBOL_TABLE 65 #ifdef PNG_STDIO_SUPPORTED 70 #ifdef PNG_SETJMP_SUPPORTED 75 #ifdef PNG_CONVERT_tIME_SUPPORTED 86 #define PNG_CONST const 94 #ifndef PNG_READ_INT_FUNCTIONS_SUPPORTED 95 # define PNG_USE_READ_MACROS 97 #if !defined(PNG_NO_USE_READ_MACROS) && !defined(PNG_USE_READ_MACROS) 98 # if PNG_DEFAULT_READ_MACROS 99 # define PNG_USE_READ_MACROS 116 # define PNGARG(arglist) arglist 205 #if defined(_Windows) || defined(_WINDOWS) || defined(WIN32) ||\ 206 defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) 212 # if PNG_API_RULE == 2 218 # define PNGCAPI __watcall 221 # if defined(__GNUC__) || (defined(_MSC_VER) && (_MSC_VER >= 800)) 222 # define PNGCAPI __cdecl 223 # if PNG_API_RULE == 1 227 # define PNGAPI __stdcall 235 # define PNGCAPI _cdecl 237 # if PNG_API_RULE == 1 && !defined(PNGAPI) 238 # define PNGAPI _stdcall 243 # if defined(PNGAPI) && !defined(PNG_USER_PRIVATEBUILD) 244 # error "PNG_USER_PRIVATEBUILD must be defined if PNGAPI is changed" 247 # if (defined(_MSC_VER) && _MSC_VER < 800) ||\ 248 (defined(__BORLANDC__) && __BORLANDC__ < 0x500) 253 # ifndef PNG_EXPORT_TYPE 254 # define PNG_EXPORT_TYPE(type) type PNG_IMPEXP 256 # define PNG_DLL_EXPORT __export 258 # define PNG_DLL_EXPORT __declspec(dllexport) 259 # ifndef PNG_DLL_IMPORT 260 # define PNG_DLL_IMPORT __declspec(dllimport) 265 # if (defined(__IBMC__) || defined(__IBMCPP__)) && defined(__OS2__) 266 # define PNGAPI _System 279 # define PNGCBAPI PNGCAPI 282 # define PNGAPI PNGCAPI 290 # if defined(PNG_USE_DLL) && defined(PNG_DLL_IMPORT) 292 # define PNG_IMPEXP PNG_DLL_IMPORT 308 # define PNG_FUNCTION(type, name, args, attributes) attributes type name args 311 #ifndef PNG_EXPORT_TYPE 312 # define PNG_EXPORT_TYPE(type) PNG_IMPEXP type 321 # define PNG_EXPORTA(ordinal, type, name, args, attributes)\ 322 PNG_FUNCTION(PNG_EXPORT_TYPE(type),(PNGAPI name),PNGARG(args), \ 331 #define PNG_EXPORT(ordinal, type, name, args)\ 332 PNG_EXPORTA(ordinal, type, name, args, PNG_EMPTY) 336 # define PNG_REMOVED(ordinal, type, name, args, attributes) 340 # define PNG_CALLBACK(type, name, args) type (PNGCBAPI name) PNGARG(args) 350 #ifndef PNG_NO_PEDANTIC_WARNINGS 351 # ifndef PNG_PEDANTIC_WARNINGS_SUPPORTED 352 # define PNG_PEDANTIC_WARNINGS_SUPPORTED 356 #ifdef PNG_PEDANTIC_WARNINGS_SUPPORTED 363 # if defined(__GNUC__) 364 # ifndef PNG_USE_RESULT 365 # define PNG_USE_RESULT __attribute__((__warn_unused_result__)) 367 # ifndef PNG_NORETURN 368 # define PNG_NORETURN __attribute__((__noreturn__)) 371 # ifndef PNG_ALLOCATED 372 # define PNG_ALLOCATED __attribute__((__malloc__)) 374 # ifndef PNG_DEPRECATED 375 # define PNG_DEPRECATED __attribute__((__deprecated__)) 379 # define PNG_PRIVATE \ 380 __attribute__((warning("This function is not exported by libpng."))) 382 # define PNG_PRIVATE \ 383 __attribute__((__deprecated__)) 386 # if ((__GNUC__ != 3) || !defined(__GNUC_MINOR__) || (__GNUC_MINOR__ >= 1)) 387 # ifndef PNG_RESTRICT 388 # define PNG_RESTRICT __restrict 393 # elif defined(_MSC_VER) && (_MSC_VER >= 1300) 394 # ifndef PNG_USE_RESULT 395 # define PNG_USE_RESULT 397 # ifndef PNG_NORETURN 398 # define PNG_NORETURN __declspec(noreturn) 400 # ifndef PNG_ALLOCATED 401 # if (_MSC_VER >= 1400) 402 # define PNG_ALLOCATED __declspec(restrict) 405 # ifndef PNG_DEPRECATED 406 # define PNG_DEPRECATED __declspec(deprecated) 409 # define PNG_PRIVATE __declspec(deprecated) 411 # ifndef PNG_RESTRICT 412 # if (_MSC_VER >= 1400) 413 # define PNG_RESTRICT __restrict 417 # elif defined(__WATCOMC__) 418 # ifndef PNG_RESTRICT 419 # define PNG_RESTRICT __restrict 424 #ifndef PNG_DEPRECATED 425 # define PNG_DEPRECATED 427 #ifndef PNG_USE_RESULT 428 # define PNG_USE_RESULT 431 # define PNG_NORETURN 433 #ifndef PNG_ALLOCATED 434 # define PNG_ALLOCATED 440 # define PNG_RESTRICT 442 #ifndef PNG_FP_EXPORT 443 # ifdef PNG_FLOATING_POINT_SUPPORTED 444 # define PNG_FP_EXPORT(ordinal, type, name, args)\ 445 PNG_EXPORT(ordinal, type, name, args); 447 # define PNG_FP_EXPORT(ordinal, type, name, args) 450 #ifndef PNG_FIXED_EXPORT 451 # ifdef PNG_FIXED_POINT_SUPPORTED 452 # define PNG_FIXED_EXPORT(ordinal, type, name, args)\ 453 PNG_EXPORT(ordinal, type, name, args); 455 # define PNG_FIXED_EXPORT(ordinal, type, name, args) 459 #ifndef PNG_BUILDING_SYMBOL_TABLE 474 #if CHAR_BIT == 8 && UCHAR_MAX == 255 475 typedef unsigned char png_byte;
477 # error "libpng requires 8 bit bytes" 480 #if INT_MIN == -32768 && INT_MAX == 32767 481 typedef int png_int_16;
482 #elif SHRT_MIN == -32768 && SHRT_MAX == 32767 483 typedef short png_int_16;
485 # error "libpng requires a signed 16 bit type" 488 #if UINT_MAX == 65535 490 #elif USHRT_MAX == 65535 493 # error "libpng requires an unsigned 16 bit type" 496 #if INT_MIN < -2147483646 && INT_MAX > 2147483646 498 #elif LONG_MIN < -2147483646 && LONG_MAX > 2147483646 501 # error "libpng requires a signed 32 bit (or more) type" 504 #if UINT_MAX > 4294967294 506 #elif ULONG_MAX > 4294967294 509 # error "libpng requires an unsigned 32 bit (or more) type" 523 #ifndef PNG_SMALL_SIZE_T 528 # if (defined(__TURBOC__) && !defined(__FLAT__)) ||\ 529 (defined(_MSC_VER) && defined(MAXSEG_64K)) 530 # define PNG_SMALL_SIZE_T 547 #ifdef PNG_SMALL_SIZE_T 589 #ifdef PNG_STDIO_SUPPORTED 593 #ifdef PNG_FLOATING_POINT_SUPPORTED 607 #ifdef PNG_FLOATING_POINT_SUPPORTED const png_size_t * png_const_size_tp
Definition: pngconf.h:587
void * png_voidp
Definition: pngconf.h:570
const char * png_const_charp
Definition: pngconf.h:583
png_int_32 * png_int_32p
Definition: pngconf.h:576
png_uint_32 ** png_uint_32pp
Definition: pngconf.h:600
png_uint_16(PNGAPI png_get_uint_16)(png_const_bytep buf)
Definition: juce_PNGLoader.cpp:98
png_byte * png_bytep
Definition: pngconf.h:572
char * png_charp
Definition: pngconf.h:582
png_byte ** png_bytepp
Definition: pngconf.h:599
png_double * png_doublep
Definition: pngpriv.h:184
png_int_32(PNGAPI png_get_int_32)(png_const_bytep buf)
Definition: juce_PNGLoader.cpp:86
const png_uint_32 * png_const_uint_32p
Definition: pngconf.h:575
png_int_32 ** png_int_32pp
Definition: pngconf.h:601
png_size_t png_alloc_size_t
Definition: pngconf.h:550
FILE * png_FILE_p
Definition: juce_PNGLoader.cpp:591
png_int_16 * png_int_16p
Definition: pngconf.h:580
const png_int_32 * png_const_int_32p
Definition: pngconf.h:577
const png_byte * png_const_bytep
Definition: pngconf.h:573
const png_uint_16 * png_const_uint_16p
Definition: pngconf.h:579
const png_int_16 * png_const_int_16p
Definition: pngconf.h:581
const png_double * png_const_doublep
Definition: pngpriv.h:185
char ** png_charpp
Definition: pngconf.h:605
const void * png_const_voidp
Definition: pngconf.h:571
png_uint_32 * png_uint_32p
Definition: pngconf.h:574
ptrdiff_t png_ptrdiff_t
Definition: pngconf.h:516
png_uint_16 ** png_uint_16pp
Definition: pngconf.h:602
png_int_16 ** png_int_16pp
Definition: pngconf.h:603
png_uint_16 * png_uint_16p
Definition: pngconf.h:578
png_fixed_point ** png_fixed_point_pp
Definition: pngconf.h:606
png_fixed_point * png_fixed_point_p
Definition: pngconf.h:584
png_int_32 png_fixed_point
Definition: pngconf.h:567
size_t png_size_t
Definition: pngconf.h:515
png_double ** png_doublepp
Definition: pngpriv.h:186
png_uint_32
Definition: juce_PNGLoader.cpp:2126
char *** png_charppp
Definition: pngconf.h:612
png_size_t * png_size_tp
Definition: pngconf.h:586
const char ** png_const_charpp
Definition: pngconf.h:604
const png_fixed_point * png_const_fixed_point_p
Definition: pngconf.h:585