31#if __GNUC__ == 7 && __GNUC_MINOR__ == 1
32#define GCC_STRICT_OVERFLOW 1
35#ifndef GCC_STRICT_OVERFLOW
36#define GCC_STRICT_OVERFLOW 0
45#ifdef PNG_READ_SUPPORTED
49 unsigned int nb = (
unsigned int)num_bytes;
62 png_ptr->sig_bytes = (png_byte)nb;
76 png_byte png_signature[8] = {137, 80, 78, 71, 13, 10, 26, 10};
81 else if (num_to_check < 1)
87 if (
start + num_to_check > 8)
88 num_to_check = 8 -
start;
90 return ((
int)(memcmp(&sig[
start], &png_signature[
start], num_to_check)));
95#if defined(PNG_READ_SUPPORTED) || defined(PNG_WRITE_SUPPORTED)
100 png_alloc_size_t num_bytes =
size;
105 if (items >= (~(png_alloc_size_t)0)/
size)
108 "Potential overflow in png_zalloc()");
161 if (need_crc != 0 &&
length > 0)
169 if (safe_length == 0)
170 safe_length = (
uInt)-1;
200 if (user_png_ver !=
NULL)
210 if (user_png_ver[
i] ==
'.')
212 }
while (found_dots < 2 && user_png_ver[
i] != 0 &&
221#ifdef PNG_WARNINGS_SUPPORTED
226 "Application built with libpng-");
235#ifdef PNG_ERROR_NUMBERS_SUPPORTED
251 png_error_ptr error_fn, png_error_ptr warn_fn,
png_voidp mem_ptr,
252 png_malloc_ptr malloc_fn, png_free_ptr free_fn),
PNG_ALLOCATED)
254 png_struct create_struct;
255# ifdef PNG_SETJMP_SUPPORTED
256 jmp_buf create_jmp_buf;
263 memset(&create_struct, 0, (
sizeof create_struct));
266# ifdef PNG_USER_LIMITS_SUPPORTED
270# ifdef PNG_USER_CHUNK_CACHE_MAX
272 create_struct.user_chunk_cache_max = PNG_USER_CHUNK_CACHE_MAX;
275# ifdef PNG_USER_CHUNK_MALLOC_MAX
279 create_struct.user_chunk_malloc_max = PNG_USER_CHUNK_MALLOC_MAX;
286# ifdef PNG_USER_MEM_SUPPORTED
287 png_set_mem_fn(&create_struct, mem_ptr, malloc_fn, free_fn);
301# ifdef PNG_SETJMP_SUPPORTED
302 if (!setjmp(create_jmp_buf))
305# ifdef PNG_SETJMP_SUPPORTED
311 create_struct.jmp_buf_ptr = &create_jmp_buf;
312 create_struct.jmp_buf_size = 0;
313 create_struct.longjmp_fn = longjmp;
320 png_malloc_warn(&create_struct, (
sizeof *
png_ptr)));
327 create_struct.zstream.zalloc = png_zalloc;
329 create_struct.zstream.opaque =
png_ptr;
331# ifdef PNG_SETJMP_SUPPORTED
333 create_struct.jmp_buf_ptr =
NULL;
334 create_struct.jmp_buf_size = 0;
335 create_struct.longjmp_fn = 0;
358 png_debug(1,
"in png_create_info_struct");
390 png_debug(1,
"in png_destroy_info_struct");
395 if (info_ptr_ptr !=
NULL)
406 *info_ptr_ptr =
NULL;
424png_info_init_3,(
png_infopp ptr_ptr,
size_t png_info_struct_size),
434 if ((
sizeof (png_info)) > png_info_struct_size)
479#ifdef PNG_TEXT_SUPPORTED
505#ifdef PNG_tRNS_SUPPORTED
516#ifdef PNG_sCAL_SUPPORTED
528#ifdef PNG_pCAL_SUPPORTED
551#ifdef PNG_iCCP_SUPPORTED
563#ifdef PNG_sPLT_SUPPORTED
594#ifdef PNG_STORE_UNKNOWN_CHUNKS_SUPPORTED
618#ifdef PNG_eXIf_SUPPORTED
622# ifdef PNG_READ_eXIf_SUPPORTED
638#ifdef PNG_hIST_SUPPORTED
657#ifdef PNG_INFO_IMAGE_SUPPORTED
664 for (row = 0; row <
info_ptr->height; row++)
694#if defined(PNG_READ_SUPPORTED) || defined(PNG_WRITE_SUPPORTED)
695# ifdef PNG_STDIO_SUPPORTED
714# ifdef PNG_SAVE_INT_32_SUPPORTED
732# ifdef PNG_TIME_RFC1123_SUPPORTED
739 static const char short_months[12][4] =
740 {
"Jan",
"Feb",
"Mar",
"Apr",
"May",
"Jun",
741 "Jul",
"Aug",
"Sep",
"Oct",
"Nov",
"Dec"};
746 if (ptime->
year > 9999 ||
748 ptime->
day == 0 || ptime->
day > 31 ||
757# define APPEND_STRING(string) pos = png_safecat(out, 29, pos, (string))
758# define APPEND_NUMBER(format, value)\
759 APPEND_STRING(PNG_FORMAT_NUMBER(number_buf, format, (value)))
760# define APPEND(ch) if (pos < 28) out[pos++] = (ch)
784# if PNG_LIBPNG_VER < 10700
814#ifdef PNG_STRING_COPYRIGHT
820 "Copyright (c) 1998-2002,2004,2006-2018 Glenn Randers-Pehrson" \
823 "Copyright (c) 1995-1996 Guy Eric Schalnat, Group 42, Inc." \
858# ifndef PNG_READ_SUPPORTED
867#ifdef PNG_BUILD_GRAYSCALE_PALETTE_SUPPORTED
875png_build_grayscale_palette(
int bit_depth,
png_colorp palette)
882 png_debug(1,
"in png_do_build_grayscale_palette");
915 for (
i = 0,
v = 0;
i < num_palette;
i++,
v += color_inc)
917 palette[
i].
red = (png_byte)(
v & 0xff);
918 palette[
i].
green = (png_byte)(
v & 0xff);
919 palette[
i].
blue = (png_byte)(
v & 0xff);
924#ifdef PNG_SET_UNKNOWN_CHUNKS_SUPPORTED
935 p = p_end +
png_ptr->num_chunk_list*5;
945 if (memcmp(chunk_name,
p, 4) == 0)
958#if defined(PNG_READ_UNKNOWN_CHUNKS_SUPPORTED) ||\
959 defined(PNG_HANDLE_AS_UNKNOWN_SUPPORTED)
963 png_byte chunk_string[5];
971#ifdef PNG_READ_SUPPORTED
992#if defined(PNG_READ_SUPPORTED) || defined(PNG_WRITE_SUPPORTED)
1068#ifdef PNG_GAMMA_SUPPORTED
1130 if (gAMA < 16 || gAMA > 625000000)
1131 errmsg =
"gamma value out of range";
1133# ifdef PNG_READ_gAMA_SUPPORTED
1137 errmsg =
"duplicate";
1177# ifdef PNG_COLORSPACE_SUPPORTED
1187# ifdef PNG_COLORSPACE_SUPPORTED
1213#ifdef PNG_READ_SUPPORTED
1226#ifdef PNG_COLORSPACE_SUPPORTED
1237 d = XYZ->red_X + XYZ->red_Y + XYZ->red_Z;
1243 whiteX = XYZ->red_X;
1244 whiteY = XYZ->red_Y;
1246 d = XYZ->green_X + XYZ->green_Y + XYZ->green_Z;
1252 whiteX += XYZ->green_X;
1253 whiteY += XYZ->green_Y;
1255 d = XYZ->blue_X + XYZ->blue_Y + XYZ->blue_Z;
1261 whiteX += XYZ->blue_X;
1262 whiteY += XYZ->blue_Y;
1286 if (xy->redx < 0 || xy->redx >
PNG_FP_1)
return 1;
1287 if (xy->redy < 0 || xy->redy >
PNG_FP_1-xy->redx)
return 1;
1288 if (xy->greenx < 0 || xy->greenx >
PNG_FP_1)
return 1;
1289 if (xy->greeny < 0 || xy->greeny >
PNG_FP_1-xy->greenx)
return 1;
1290 if (xy->bluex < 0 || xy->bluex >
PNG_FP_1)
return 1;
1291 if (xy->bluey < 0 || xy->bluey >
PNG_FP_1-xy->bluex)
return 1;
1292 if (xy->whitex < 0 || xy->whitex >
PNG_FP_1)
return 1;
1293 if (xy->whitey < 5 || xy->whitey >
PNG_FP_1-xy->whitex)
return 1;
1474 if (
png_muldiv(&
left, xy->greenx-xy->bluex, xy->redy - xy->bluey, 7) == 0)
1476 if (
png_muldiv(&
right, xy->greeny-xy->bluey, xy->redx - xy->bluex, 7) == 0)
1481 if (
png_muldiv(&
left, xy->greenx-xy->bluex, xy->whitey-xy->bluey, 7) == 0)
1483 if (
png_muldiv(&
right, xy->greeny-xy->bluey, xy->whitex-xy->bluex, 7) == 0)
1492 red_inverse <= xy->whitey )
1496 if (
png_muldiv(&
left, xy->redy-xy->bluey, xy->whitex-xy->bluex, 7) == 0)
1498 if (
png_muldiv(&
right, xy->redx-xy->bluex, xy->whitey-xy->bluey, 7) == 0)
1501 green_inverse <= xy->whitey)
1509 if (blue_scale <= 0)
1527 green_inverse) == 0)
1546 if (XYZ->red_Y < 0 || XYZ->green_Y < 0 || XYZ->blue_Y < 0 ||
1547 XYZ->red_X < 0 || XYZ->green_X < 0 || XYZ->blue_X < 0 ||
1548 XYZ->red_Z < 0 || XYZ->green_Z < 0 || XYZ->blue_Z < 0)
1557 if (0x7fffffff - Y < XYZ->
green_X)
1560 if (0x7fffffff - Y < XYZ->
blue_X)
1673 png_colorspacerp
colorspace,
const png_xy *xy,
const png_XYZ *XYZ,
1683 if (preferred < 2 &&
1721 png_colorspacerp
colorspace,
const png_xy *xy,
int preferred)
1758 png_colorspacerp
colorspace,
const png_XYZ *XYZ_in,
int preferred)
1760 png_XYZ XYZ = *XYZ_in;
1783#if defined(PNG_sRGB_SUPPORTED) || defined(PNG_iCCP_SUPPORTED)
1789 if (
byte >= 32 &&
byte <= 126)
1809 return it == 32 || (it >= 48 && it <= 57) || (it >= 65 && it <= 90) ||
1810 (it >= 97 && it <= 122);
1843# ifdef PNG_WARNINGS_SUPPORTED
1870#ifdef PNG_sRGB_SUPPORTED
1887 static const png_XYZ sRGB_XYZ =
1891 35758, 71517, 11919,
1910 (png_alloc_size_t)
intent,
"invalid sRGB rendering intent");
1915 (png_alloc_size_t)
intent,
"inconsistent rendering intents");
1960#ifdef PNG_iCCP_SUPPORTED
1967 { 0x00, 0x00, 0xf6, 0xd6, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0xd3, 0x2d };
1973 if (profile_length < 132)
1979#ifdef PNG_READ_iCCP_SUPPORTED
1993# ifdef PNG_SET_USER_LIMITS_SUPPORTED
1994 else if (
png_ptr->user_chunk_malloc_max > 0 &&
1995 png_ptr->user_chunk_malloc_max < profile_length)
1997 "exceeds application limits");
1998# elif PNG_USER_CHUNK_MALLOC_MAX > 0
1999 else if (PNG_USER_CHUNK_MALLOC_MAX < profile_length)
2001 "exceeds libpng limits");
2006 "exceeds system limits");
2026 if (temp != profile_length)
2028 "length does not match profile");
2031 if (temp > 3 && (profile_length & 3))
2036 if (temp > 357913930 ||
2037 profile_length < 132+12*temp)
2039 "tag count too large");
2047 "invalid rendering intent");
2054 "intent outside defined range");
2069 if (temp != 0x61637370)
2071 "invalid signature");
2082 "PCS illuminant is not D50");
2110 "RGB color space not permitted on grayscale PNG");
2116 "Gray color space not permitted on RGB PNG");
2121 "invalid ICC profile color space");
2146 "invalid embedded Abstract ICC profile");
2156 "unexpected DeviceLink ICC profile class");
2164 "unexpected NamedColor ICC profile class");
2174 "unrecognized ICC profile class");
2190 "unexpected ICC PCS encoding");
2208 for (itag=0; itag < tag_count; ++itag, tag += 12)
2224 if (tag_start > profile_length || tag_length > profile_length - tag_start)
2226 "ICC profile tag outside profile");
2228 if ((tag_start & 3) != 0)
2235 "ICC profile tag start not a multiple of 4");
2242#ifdef PNG_sRGB_SUPPORTED
2243#if PNG_sRGB_PROFILE_CHECKS >= 0
2253# define PNG_MD5(a,b,c,d) { a, b, c, d }, (a!=0)||(b!=0)||(c!=0)||(d!=0)
2254# define PNG_ICC_CHECKSUM(adler, crc, md5, intent, broke, date, length, fname)\
2255 { adler, crc, length, md5, broke, intent },
2264 PNG_MD5(0x29f83dde, 0xaff255ae, 0x7842fae4, 0xca83390d), 0, 0,
2265 "2009/03/27 21:36:31", 3048,
"sRGB_IEC61966-2-1_black_scaled.icc")
2269 PNG_MD5(0xc95bd637, 0xe95d8a3b, 0x0df38f99, 0xc1320389), 1, 0,
2270 "2009/03/27 21:37:45", 3052,
"sRGB_IEC61966-2-1_no_black_scaling.icc")
2273 PNG_MD5(0xfc663378, 0x37e2886b, 0xfd72e983, 0x8228f1b8), 0, 0,
2274 "2009/08/10 17:28:01", 60988,
"sRGB_v4_ICC_preference_displayclass.icc")
2278 PNG_MD5(0x34562abf, 0x994ccd06, 0x6d2c5721, 0xd0d68c5d), 0, 0,
2279 "2007/07/25 00:05:37", 60960,
"sRGB_v4_ICC_preference.icc")
2287 PNG_MD5(0x00000000, 0x00000000, 0x00000000, 0x00000000), 1, 0,
2288 "2004/07/21 18:57:42", 3024,
"sRGB_IEC61966-2-1_noBPC.icc")
2298 PNG_MD5(0x00000000, 0x00000000, 0x00000000, 0x00000000), 0, 1,
2299 "1998/02/09 06:49:00", 3144,
"HP-Microsoft sRGB v2 perceptual")
2302 PNG_MD5(0x00000000, 0x00000000, 0x00000000, 0x00000000), 1, 1,
2303 "1998/02/09 06:49:00", 3144,
"HP-Microsoft sRGB v2 media-relative")
2320#if PNG_sRGB_PROFILE_CHECKS > 1
2325#ifdef PNG_SET_OPTION_SUPPORTED
2327 if (((
png_ptr->options >> PNG_SKIP_sRGB_CHECK_PROFILE) & 3) ==
2343# if PNG_sRGB_PROFILE_CHECKS == 0
2372# if PNG_sRGB_PROFILE_CHECKS > 1
2402 "out-of-date sRGB profile with no signature",
2410# if PNG_sRGB_PROFILE_CHECKS > 0
2416 "Not recognizing known sRGB profile that has been edited",
2455# if defined(PNG_sRGB_SUPPORTED) && PNG_sRGB_PROFILE_CHECKS >= 0
2467#ifdef PNG_READ_RGB_TO_GRAY_SUPPORTED
2472 if (
png_ptr->rgb_to_gray_coefficients_set == 0 &&
2498 else if (
r+
g+
b < 32768)
2503 if (
g >=
r &&
g >=
b)
2505 else if (
r >=
g &&
r >=
b)
2514 "internal error handling cHRM coefficients");
2543# define png_gt(a,b) ((a) > (b))
2549 int color_type,
int interlace_type,
int compression_type,
2589#ifdef PNG_SET_USER_LIMITS_SUPPORTED
2611#ifdef PNG_SET_USER_LIMITS_SUPPORTED
2622 if (bit_depth != 1 && bit_depth != 2 && bit_depth != 4 &&
2623 bit_depth != 8 && bit_depth != 16)
2629 if (color_type < 0 || color_type == 1 ||
2630 color_type == 5 || color_type > 6)
2657#ifdef PNG_MNG_FEATURES_SUPPORTED
2668 png_ptr->mng_features_permitted != 0)
2702#if defined(PNG_sCAL_SUPPORTED) || defined(PNG_pCAL_SUPPORTED)
2708#define png_fp_add(state, flags) ((state) |= (flags))
2709#define png_fp_set(state, value) ((state) = (value) | ((state) & PNG_FP_STICKY))
2715 int state = *statep;
2716 size_t i = *whereami;
2728 case 49:
case 50:
case 51:
case 52:
2729 case 53:
case 54:
case 55:
case 56:
2733 default:
goto PNG_FP_End;
2819 default:
goto PNG_FP_End;
2842 size_t char_index=0;
2845 (char_index ==
size ||
string[char_index] == 0))
2852#ifdef PNG_sCAL_SUPPORTED
2853# ifdef PNG_FLOATING_POINT_SUPPORTED
2868 if (power < DBL_MIN_10_EXP)
return 0;
2869 recip = 1; power = -power;
2878 if (power & 1)
d *= mult;
2884 if (recip != 0)
d = 1/
d;
2894#if GCC_STRICT_OVERFLOW
2895#pragma GCC diagnostic push
2900#pragma GCC diagnostic warning "-Wstrict-overflow=2"
2904 double fp,
unsigned int precision)
2912 precision = DBL_DIG;
2915 if (precision > DBL_DIG+1)
2916 precision = DBL_DIG+1;
2919 if (
size >= precision+5)
2928 if (fp >= DBL_MIN && fp <= DBL_MAX)
2942 (
void)frexp(fp, &exp_b10);
2944 exp_b10 = (exp_b10 * 77) >> 8;
2949 while (base < DBL_MIN || base < fp)
2954 if (
test <= DBL_MAX)
2956 ++exp_b10; base =
test;
2973 fp /= 10; ++exp_b10;
2983 unsigned int czero, clead, cdigits;
2989 if (exp_b10 < 0 && exp_b10 > -3)
3013 if (cdigits+czero+1 < precision+clead)
3026 if (cdigits == 0) --clead;
3030 while (cdigits > 0 &&
d > 9)
3034 if (exp_b10 != (-1))
3039 ch = *--ascii; ++
size;
3057 if (exp_b10 == (-1))
3067 ++
size; exp_b10 = 1;
3088 if (cdigits == 0) ++clead;
3093 cdigits += czero - clead;
3102 if (exp_b10 != (-1))
3106 *ascii++ = 46; --
size;
3111 *ascii++ = 48; --czero;
3114 if (exp_b10 != (-1))
3118 *ascii++ = 46; --
size;
3123 *ascii++ = (char)(48 + (
int)
d); ++cdigits;
3126 while (cdigits+czero < precision+clead && fp > DBL_MIN);
3137 if (exp_b10 >= (-1) && exp_b10 <= 2)
3146 while (exp_b10-- > 0) *ascii++ = 48;
3164 *ascii++ = 69; --
size;
3171 unsigned int uexp_b10;
3175 *ascii++ = 45; --
size;
3176 uexp_b10 = 0
U-exp_b10;
3180 uexp_b10 = 0
U+exp_b10;
3184 while (uexp_b10 > 0)
3186 exponent[cdigits++] = (char)(48 + uexp_b10 % 10);
3196 while (cdigits > 0) *ascii++ = exponent[--cdigits];
3204 else if (!(fp >= DBL_MIN))
3223#if GCC_STRICT_OVERFLOW
3224#pragma GCC diagnostic pop
3229# ifdef PNG_FIXED_POINT_SUPPORTED
3251 if (num <= 0x80000000)
3253 unsigned int ndigits = 0, first = 16 ;
3259 unsigned int tmp = num/10;
3261 digits[ndigits++] = (char)(48 + num);
3265 if (first == 16 && num > 0)
3272 while (ndigits > 5) *ascii++ = digits[--ndigits];
3289 while (ndigits >= first) *ascii++ = digits[--ndigits];
3308#if defined(PNG_FLOATING_POINT_SUPPORTED) && \
3309 !defined(PNG_FIXED_POINT_MACRO_SUPPORTED) && \
3310 (defined(PNG_gAMA_SUPPORTED) || defined(PNG_cHRM_SUPPORTED) || \
3311 defined(PNG_sCAL_SUPPORTED) || defined(PNG_READ_BACKGROUND_SUPPORTED) || \
3312 defined(PNG_READ_RGB_TO_GRAY_SUPPORTED)) || \
3313 (defined(PNG_sCAL_SUPPORTED) && \
3314 defined(PNG_FLOATING_ARITHMETIC_SUPPORTED))
3318 double r = floor(100000 * fp + .5);
3320 if (
r > 2147483647. ||
r < -2147483648.)
3323# ifndef PNG_ERROR_TEXT_SUPPORTED
3331#if defined(PNG_GAMMA_SUPPORTED) || defined(PNG_COLORSPACE_SUPPORTED) ||\
3332 defined(PNG_INCH_CONVERSIONS_SUPPORTED) || defined(PNG_READ_pHYs_SUPPORTED)
3339#if GCC_STRICT_OVERFLOW
3345#pragma GCC diagnostic push
3346#pragma GCC diagnostic warning "-Wstrict-overflow=2"
3355 if (
a == 0 || times == 0)
3362#ifdef PNG_FLOATING_ARITHMETIC_SUPPORTED
3397 s16 = (
A >> 16) * (T & 0xffff) +
3398 (
A & 0xffff) * (T >> 16);
3402 s32 = (
A >> 16) * (T >> 16) + (s16 >> 16);
3403 s00 = (
A & 0xffff) * (T & 0xffff);
3405 s16 = (s16 & 0xffff) << 16;
3420 while (--bitshift >= 0)
3425 d32 =
D >> (32-bitshift), d00 =
D << bitshift;
3432 if (s00 < d00) --s32;
3433 s32 -=
d32, s00 -= d00,
result += 1<<bitshift;
3437 if (s32 ==
d32 && s00 >= d00)
3438 s32 = 0, s00 -= d00,
result += 1<<bitshift;
3442 if (s00 >= (
D >> 1))
3462#if GCC_STRICT_OVERFLOW
3463#pragma GCC diagnostic pop
3467#if defined(PNG_READ_GAMMA_SUPPORTED) || defined(PNG_INCH_CONVERSIONS_SUPPORTED)
3485#ifdef PNG_GAMMA_SUPPORTED
3490#ifdef PNG_FLOATING_ARITHMETIC_SUPPORTED
3491 double r = floor(1E10/
a+.5);
3516#ifdef PNG_READ_GAMMA_SUPPORTED
3517#ifdef PNG_16BIT_SUPPORTED
3523#ifdef PNG_FLOATING_ARITHMETIC_SUPPORTED
3524 double r =
a * 1E-5;
3546#ifdef PNG_FLOATING_ARITHMETIC_SUPPORTED
3547 if (
a != 0 &&
b != 0)
3572#ifdef PNG_READ_GAMMA_SUPPORTED
3573#ifndef PNG_FLOATING_ARITHMETIC_SUPPORTED
3594 4270715492U, 4222494797U, 4174646467U, 4127164793U, 4080044201U, 4033279239U,
3595 3986864580U, 3940795015U, 3895065449U, 3849670902U, 3804606499U, 3759867474U,
3596 3715449162U, 3671346997U, 3627556511U, 3584073329U, 3540893168U, 3498011834U,
3597 3455425220U, 3413129301U, 3371120137U, 3329393864U, 3287946700U, 3246774933U,
3598 3205874930U, 3165243125U, 3124876025U, 3084770202U, 3044922296U, 3005329011U,
3599 2965987113U, 2926893432U, 2888044853U, 2849438323U, 2811070844U, 2772939474U,
3600 2735041326U, 2697373562U, 2659933400U, 2622718104U, 2585724991U, 2548951424U,
3601 2512394810U, 2476052606U, 2439922311U, 2404001468U, 2368287663U, 2332778523U,
3602 2297471715U, 2262364947U, 2227455964U, 2192742551U, 2158222529U, 2123893754U,
3603 2089754119U, 2055801552U, 2022034013U, 1988449497U, 1955046031U, 1921821672U,
3604 1888774511U, 1855902668U, 1823204291U, 1790677560U, 1758320682U, 1726131893U,
3605 1694109454U, 1662251657U, 1630556815U, 1599023271U, 1567649391U, 1536433567U,
3606 1505374214U, 1474469770U, 1443718700U, 1413119487U, 1382670639U, 1352370686U,
3607 1322218179U, 1292211689U, 1262349810U, 1232631153U, 1203054352U, 1173618059U,
3608 1144320946U, 1115161701U, 1086139034U, 1057251672U, 1028498358U, 999877854U,
3609 971388940U, 943030410U, 914801076U, 886699767U, 858725327U, 830876614U,
3610 803152505U, 775551890U, 748073672U, 720716771U, 693480120U, 666362667U,
3611 639363374U, 612481215U, 585715177U, 559064263U, 532527486U, 506103872U,
3612 479792461U, 453592303U, 427502463U, 401522014U, 375650043U, 349885648U,
3613 324227938U, 298676034U, 273229066U, 247886176U, 222646516U, 197509248U,
3614 172473545U, 147538590U, 122703574U, 97967701U, 73330182U, 48790236U,
3623 65166, 64430, 63700, 62976, 62257, 61543, 60835, 60132, 59434, 58741, 58054,
3624 57371, 56693, 56020, 55352, 54689, 54030, 53375, 52726, 52080, 51439, 50803,
3625 50170, 49542, 48918, 48298, 47682, 47070, 46462, 45858, 45257, 44661, 44068,
3626 43479, 42894, 42312, 41733, 41159, 40587, 40020, 39455, 38894, 38336, 37782,
3627 37230, 36682, 36137, 35595, 35057, 34521, 33988, 33459, 32932, 32408, 31887,
3628 31369, 30854, 30341, 29832, 29325, 28820, 28319, 27820, 27324, 26830, 26339,
3629 25850, 25364, 24880, 24399, 23920, 23444, 22970, 22499, 22029, 21562, 21098,
3630 20636, 20175, 19718, 19262, 18808, 18357, 17908, 17461, 17016, 16573, 16132,
3631 15694, 15257, 14822, 14390, 13959, 13530, 13103, 12678, 12255, 11834, 11415,
3632 10997, 10582, 10168, 9756, 9346, 8937, 8531, 8126, 7723, 7321, 6921, 6523,
3633 6127, 5732, 5339, 4947, 4557, 4169, 3782, 3397, 3014, 2632, 2251, 1872, 1495,
3639png_log8bit(
unsigned int x)
3641 unsigned int lg2 = 0;
3648 if ((
x &= 0xff) == 0)
3651 if ((
x & 0xf0) == 0)
3654 if ((
x & 0xc0) == 0)
3657 if ((
x & 0x80) == 0)
3661 return (
png_int_32)((lg2 << 16) + ((png_8bit_l2[
x-128]+32768)>>16));
3694#ifdef PNG_16BIT_SUPPORTED
3698 unsigned int lg2 = 0;
3701 if ((
x &= 0xffff) == 0)
3704 if ((
x & 0xff00) == 0)
3707 if ((
x & 0xf000) == 0)
3710 if ((
x & 0xc000) == 0)
3713 if ((
x & 0x8000) == 0)
3720 lg2 += (png_8bit_l2[(
x>>8)-128]+8) >> 4;
3725 x = ((
x << 16) + (
x >> 9)) / (
x >> 8);
3737 lg2 += ((23591U * (65536U-
x)) + (1U << (16+6-12-1))) >> (16+6-12);
3740 lg2 -= ((23499U * (
x-65536U)) + (1U << (16+6-12-1))) >> (16+6-12);
3765 4294967295U, 4112874773U, 3938502376U, 3771522796U, 3611622603U, 3458501653U,
3766 3311872529U, 3171459999U, 3037000500U, 2908241642U, 2784941738U, 2666869345U,
3767 2553802834U, 2445529972U, 2341847524U, 2242560872U
3772for (
i=11;
i>=0;--
i){ print
i,
" ", (1 -
e(-(2^
i)/65536*
l(2))) * 2^(32-
i),
"\n"}
3773 11 44937.64284865548751208448
3774 10 45180.98734845585101160448
3775 9 45303.31936980687359311872
3776 8 45364.65110595323018870784
3777 7 45395.35850361789624614912
3778 6 45410.72259715102037508096
3779 5 45418.40724413220722311168
3780 4 45422.25021786898173001728
3781 3 45424.17186732298419044352
3782 2 45425.13273269940811464704
3783 1 45425.61317555035558641664
3784 0 45425.85339951654943850496
3790 if (
x > 0 &&
x <= 0xfffff)
3802 e -= (((
e >> 16) * 44938U) + 16U) >> 5;
3805 e -= (((
e >> 16) * 45181U) + 32U) >> 6;
3808 e -= (((
e >> 16) * 45303U) + 64U) >> 7;
3811 e -= (((
e >> 16) * 45365U) + 128U) >> 8;
3814 e -= (((
e >> 16) * 45395U) + 256U) >> 9;
3817 e -= (((
e >> 16) * 45410U) + 512U) >> 10;
3820 e -= (((
e >> 16) * 355U * (
x & 0x3fU)) + 256U) >> 9;
3829 return png_32bit_exp[0];
3846 return (png_byte)(((
x + 0x7fffffU) >> 24) & 0xff);
3849#ifdef PNG_16BIT_SUPPORTED
3868# ifdef PNG_FLOATING_ARITHMETIC_SUPPORTED
3893 double r = floor(255*pow((
int)
value/255.,gamma_val*.00001)+.5);
3900 return png_exp8bit(res);
3907 return (png_byte)(
value & 0xff);
3910#ifdef PNG_16BIT_SUPPORTED
3916# ifdef PNG_FLOATING_ARITHMETIC_SUPPORTED
3923 gamma_val*.00001)+.5);
3930 return png_exp16bit(res);
3953#ifdef PNG_16BIT_SUPPORTED
3962#ifdef PNG_16BIT_SUPPORTED
3976 unsigned int num = 1U << (8U - shift);
3977#ifdef PNG_FLOATING_ARITHMETIC_SUPPORTED
3981 double fmax = 1.0 / (((
png_int_32)1 << (16U - shift)) - 1);
3983 unsigned int max = (1U << (16U - shift)) - 1U;
3984 unsigned int max_by_2 = 1U << (15U - shift);
3990 for (
i = 0;
i < num;
i++)
4009 for (
j = 0;
j < 256;
j++)
4012# ifdef PNG_FLOATING_ARITHMETIC_SUPPORTED
4017 double d = floor(65535.*pow(ig*fmax, gamma_val*.00001)+.5);
4021 ig = (ig * 65535U + max_by_2)/
max;
4032 for (
j = 0;
j < 256;
j++)
4037 ig = (ig * 65535U + max_by_2)/
max;
4052 unsigned int num = 1U << (8U - shift);
4053 unsigned int max = (1U << (16U - shift))-1U;
4064 for (
i = 0;
i < num;
i++)
4085 for (
i = 0;
i < 255; ++
i)
4094 bound = (bound *
max + 32768U)/65535U + 1U;
4096 while (last < bound)
4098 table[last & (0xffU >> shift)][last >> (8U - shift)] =
out;
4104 while (last < (num << 8))
4106 table[last & (0xff >> shift)][last >> (8U - shift)] = 65535U;
4124 for (
i=0;
i<256;
i++)
4128 for (
i=0;
i<256; ++
i)
4129 table[
i] = (png_byte)(
i & 0xff);
4141#ifdef PNG_16BIT_SUPPORTED
4145 int istop = (1 << (8 -
png_ptr->gamma_shift));
4146 for (
i = 0;
i < istop;
i++)
4155#if defined(PNG_READ_BACKGROUND_SUPPORTED) || \
4156 defined(PNG_READ_ALPHA_MODE_SUPPORTED) || \
4157 defined(PNG_READ_RGB_TO_GRAY_SUPPORTED)
4163#ifdef PNG_16BIT_SUPPORTED
4167 int istop = (1 << (8 -
png_ptr->gamma_shift));
4168 for (
i = 0;
i < istop;
i++)
4178 int istop = (1 << (8 -
png_ptr->gamma_shift));
4179 for (
i = 0;
i < istop;
i++)
4198 png_debug(1,
"in png_build_gamma_table");
4219#if defined(PNG_READ_BACKGROUND_SUPPORTED) || \
4220 defined(PNG_READ_ALPHA_MODE_SUPPORTED) || \
4221 defined(PNG_READ_RGB_TO_GRAY_SUPPORTED)
4234#ifdef PNG_16BIT_SUPPORTED
4237 png_byte shift, sig_bit;
4241 sig_bit =
png_ptr->sig_bit.red;
4243 if (
png_ptr->sig_bit.green > sig_bit)
4244 sig_bit =
png_ptr->sig_bit.green;
4246 if (
png_ptr->sig_bit.blue > sig_bit)
4247 sig_bit =
png_ptr->sig_bit.blue;
4250 sig_bit =
png_ptr->sig_bit.gray;
4270 if (sig_bit > 0 && sig_bit < 16U)
4272 shift = (png_byte)((16U - sig_bit) & 0xff);
4307#if defined(PNG_READ_BACKGROUND_SUPPORTED) || \
4308 defined(PNG_READ_ALPHA_MODE_SUPPORTED) || \
4309 defined(PNG_READ_RGB_TO_GRAY_SUPPORTED)
4330#ifdef PNG_SET_OPTION_SUPPORTED
4346 return PNG_OPTION_INVALID;
4351#if defined(PNG_SIMPLIFIED_READ_SUPPORTED) ||\
4352 defined(PNG_SIMPLIFIED_WRITE_SUPPORTED)
4371#ifdef PNG_SIMPLIFIED_READ_SUPPORTED
4375 0,20,40,60,80,99,119,139,
4376 159,179,199,219,241,264,288,313,
4377 340,367,396,427,458,491,526,562,
4378 599,637,677,718,761,805,851,898,
4379 947,997,1048,1101,1156,1212,1270,1330,
4380 1391,1453,1517,1583,1651,1720,1790,1863,
4381 1937,2013,2090,2170,2250,2333,2418,2504,
4382 2592,2681,2773,2866,2961,3058,3157,3258,
4383 3360,3464,3570,3678,3788,3900,4014,4129,
4384 4247,4366,4488,4611,4736,4864,4993,5124,
4385 5257,5392,5530,5669,5810,5953,6099,6246,
4386 6395,6547,6700,6856,7014,7174,7335,7500,
4387 7666,7834,8004,8177,8352,8528,8708,8889,
4388 9072,9258,9445,9635,9828,10022,10219,10417,
4389 10619,10822,11028,11235,11446,11658,11873,12090,
4390 12309,12530,12754,12980,13209,13440,13673,13909,
4391 14146,14387,14629,14874,15122,15371,15623,15878,
4392 16135,16394,16656,16920,17187,17456,17727,18001,
4393 18277,18556,18837,19121,19407,19696,19987,20281,
4394 20577,20876,21177,21481,21787,22096,22407,22721,
4395 23038,23357,23678,24002,24329,24658,24990,25325,
4396 25662,26001,26344,26688,27036,27386,27739,28094,
4397 28452,28813,29176,29542,29911,30282,30656,31033,
4398 31412,31794,32179,32567,32957,33350,33745,34143,
4399 34544,34948,35355,35764,36176,36591,37008,37429,
4400 37852,38278,38706,39138,39572,40009,40449,40891,
4401 41337,41785,42236,42690,43147,43606,44069,44534,
4402 45002,45473,45947,46423,46903,47385,47871,48359,
4403 48850,49344,49841,50341,50844,51349,51858,52369,
4404 52884,53401,53921,54445,54971,55500,56032,56567,
4405 57105,57646,58190,58737,59287,59840,60396,60955,
4406 61517,62082,62650,63221,63795,64372,64952,65535
4415 128,1782,3383,4644,5675,6564,7357,8074,
4416 8732,9346,9921,10463,10977,11466,11935,12384,
4417 12816,13233,13634,14024,14402,14769,15125,15473,
4418 15812,16142,16466,16781,17090,17393,17690,17981,
4419 18266,18546,18822,19093,19359,19621,19879,20133,
4420 20383,20630,20873,21113,21349,21583,21813,22041,
4421 22265,22487,22707,22923,23138,23350,23559,23767,
4422 23972,24175,24376,24575,24772,24967,25160,25352,
4423 25542,25730,25916,26101,26284,26465,26645,26823,
4424 27000,27176,27350,27523,27695,27865,28034,28201,
4425 28368,28533,28697,28860,29021,29182,29341,29500,
4426 29657,29813,29969,30123,30276,30429,30580,30730,
4427 30880,31028,31176,31323,31469,31614,31758,31902,
4428 32045,32186,32327,32468,32607,32746,32884,33021,
4429 33158,33294,33429,33564,33697,33831,33963,34095,
4430 34226,34357,34486,34616,34744,34873,35000,35127,
4431 35253,35379,35504,35629,35753,35876,35999,36122,
4432 36244,36365,36486,36606,36726,36845,36964,37083,
4433 37201,37318,37435,37551,37668,37783,37898,38013,
4434 38127,38241,38354,38467,38580,38692,38803,38915,
4435 39026,39136,39246,39356,39465,39574,39682,39790,
4436 39898,40005,40112,40219,40325,40431,40537,40642,
4437 40747,40851,40955,41059,41163,41266,41369,41471,
4438 41573,41675,41777,41878,41979,42079,42179,42279,
4439 42379,42478,42577,42676,42775,42873,42971,43068,
4440 43165,43262,43359,43456,43552,43648,43743,43839,
4441 43934,44028,44123,44217,44311,44405,44499,44592,
4442 44685,44778,44870,44962,45054,45146,45238,45329,
4443 45420,45511,45601,45692,45782,45872,45961,46051,
4444 46140,46229,46318,46406,46494,46583,46670,46758,
4445 46846,46933,47020,47107,47193,47280,47366,47452,
4446 47538,47623,47709,47794,47879,47964,48048,48133,
4447 48217,48301,48385,48468,48552,48635,48718,48801,
4448 48884,48966,49048,49131,49213,49294,49376,49458,
4449 49539,49620,49701,49782,49862,49943,50023,50103,
4450 50183,50263,50342,50422,50501,50580,50659,50738,
4451 50816,50895,50973,51051,51129,51207,51285,51362,
4452 51439,51517,51594,51671,51747,51824,51900,51977,
4453 52053,52129,52205,52280,52356,52432,52507,52582,
4454 52657,52732,52807,52881,52956,53030,53104,53178,
4455 53252,53326,53400,53473,53546,53620,53693,53766,
4456 53839,53911,53984,54056,54129,54201,54273,54345,
4457 54417,54489,54560,54632,54703,54774,54845,54916,
4458 54987,55058,55129,55199,55269,55340,55410,55480,
4459 55550,55620,55689,55759,55828,55898,55967,56036,
4460 56105,56174,56243,56311,56380,56448,56517,56585,
4461 56653,56721,56789,56857,56924,56992,57059,57127,
4462 57194,57261,57328,57395,57462,57529,57595,57662,
4463 57728,57795,57861,57927,57993,58059,58125,58191,
4464 58256,58322,58387,58453,58518,58583,58648,58713,
4465 58778,58843,58908,58972,59037,59101,59165,59230,
4466 59294,59358,59422,59486,59549,59613,59677,59740,
4467 59804,59867,59930,59993,60056,60119,60182,60245,
4468 60308,60370,60433,60495,60558,60620,60682,60744,
4469 60806,60868,60930,60992,61054,61115,61177,61238,
4470 61300,61361,61422,61483,61544,61605,61666,61727,
4471 61788,61848,61909,61969,62030,62090,62150,62211,
4472 62271,62331,62391,62450,62510,62570,62630,62689,
4473 62749,62808,62867,62927,62986,63045,63104,63163,
4474 63222,63281,63340,63398,63457,63515,63574,63632,
4475 63691,63749,63807,63865,63923,63981,64039,64097,
4476 64155,64212,64270,64328,64385,64443,64500,64557,
4477 64614,64672,64729,64786,64843,64900,64956,65013,
4478 65070,65126,65183,65239,65296,65352,65409,65465
4481const png_byte png_sRGB_delta[512] =
4483 207,201,158,129,113,100,90,82,77,72,68,64,61,59,56,54,
4484 52,50,49,47,46,45,43,42,41,40,39,39,38,37,36,36,
4485 35,34,34,33,33,32,32,31,31,30,30,30,29,29,28,28,
4486 28,27,27,27,27,26,26,26,25,25,25,25,24,24,24,24,
4487 23,23,23,23,23,22,22,22,22,22,22,21,21,21,21,21,
4488 21,20,20,20,20,20,20,20,20,19,19,19,19,19,19,19,
4489 19,18,18,18,18,18,18,18,18,18,18,17,17,17,17,17,
4490 17,17,17,17,17,17,16,16,16,16,16,16,16,16,16,16,
4491 16,16,16,16,15,15,15,15,15,15,15,15,15,15,15,15,
4492 15,15,15,15,14,14,14,14,14,14,14,14,14,14,14,14,
4493 14,14,14,14,14,14,14,13,13,13,13,13,13,13,13,13,
4494 13,13,13,13,13,13,13,13,13,13,13,13,13,13,12,12,
4495 12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,
4496 12,12,12,12,12,12,12,12,12,12,12,12,11,11,11,11,
4497 11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,
4498 11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,
4499 11,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,
4500 10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,
4501 10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,
4502 10,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,
4503 9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,
4504 9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,
4505 9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,
4506 9,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,
4507 8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,
4508 8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,
4509 8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,
4510 8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,
4511 8,8,8,8,8,8,8,8,8,7,7,7,7,7,7,7,
4512 7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,
4513 7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,
4514 7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7
4519#if defined(PNG_SIMPLIFIED_READ_SUPPORTED) ||\
4520 defined(PNG_SIMPLIFIED_WRITE_SUPPORTED)
4522png_image_free_function(
png_voidp argument)
4525 png_controlp
cp =
image->opaque;
4535# ifdef PNG_STDIO_SUPPORTED
4536 if (
cp->owned_file != 0)
4544 cp->png_ptr->io_ptr =
NULL;
4560 if (
c.for_write != 0)
4562# ifdef PNG_SIMPLIFIED_WRITE_SUPPORTED
4565 png_error(
c.png_ptr,
"simplified write not supported");
4570# ifdef PNG_SIMPLIFIED_READ_SUPPORTED
4573 png_error(
c.png_ptr,
"simplified read not supported");
4582png_image_free(png_imagep image)
4591 png_image_free_function(image);
4601 image->warning_or_error |= PNG_IMAGE_ERROR;
4602 png_image_free(image);
uint8_t a
Definition Spc_Cpu.h:141
CAdPlugDatabase::CRecord::RecordType type
Definition adplugdb.cpp:93
static void message(int level, const char *fmt,...)
Definition adplugdb.cpp:120
static const unsigned long mask[]
Definition bitwise.c:31
#define byte
Definition blargg_source.h:87
* e
Definition inflate.c:1404
int * l
Definition inflate.c:1579
unsigned * m
Definition inflate.c:1559
register unsigned j
Definition inflate.c:1576
unsigned v[N_MAX]
Definition inflate.c:1584
unsigned d
Definition inflate.c:940
int g
Definition inflate.c:1573
register unsigned i
Definition inflate.c:1575
unsigned x[BMAX+1]
Definition inflate.c:1586
struct @113205115357366127300225113341150224053346037032::@137033172036070230260373056156374243321245367362 left
struct @113205115357366127300225113341150224053346037032::@137033172036070230260373056156374243321245367362 right
static WDL_FFT_COMPLEX d32[7]
Definition fft.c:47
#define U(x)
Definition fmopl.c:132
static PuglViewHint int value
Definition pugl.h:1708
static const char * name
Definition pugl.h:1582
static int int height
Definition pugl.h:1594
static int width
Definition pugl.h:1593
virtual ASIOError start()=0
J_COLOR_SPACE colorspace
Definition jpeglib.h:917
#define PNG_FUNCTION(type, name, args, attributes)
#define PNG_SCALE_16_TO_8
#define PNG_STRING_NEWLINE
Definition juce_PNGLoader.cpp:238
#define PNG_OUT_OF_RANGE(value, ideal, delta)
#define PNG_UNEXPECTED_ZLIB_RETURN
#define PNG_UNUSED(param)
#define PNG_HAVE_PNG_SIGNATURE
#define PNG_CHUNK_WRITE_ERROR
#define PNG_COLORSPACE_MATCHES_sRGB
Definition juce_PNGLoader.cpp:140
#define png_error(s1, s2)
#define PNG_COLORSPACE_HAVE_GAMMA
Definition juce_PNGLoader.cpp:133
#define PNG_COLORSPACE_FROM_gAMA
Definition juce_PNGLoader.cpp:136
#define png_fixed_error(s1, s2)
#define PNG_INTRAPIXEL_DIFFERENCING
#define PNG_USER_HEIGHT_MAX
Definition juce_PNGLoader.cpp:274
#define PNG_COLOR_TYPE_RGB
#define PNG_COLORSPACE_INVALID
Definition juce_PNGLoader.cpp:141
#define PNG_NUMBER_FORMAT_02u
#define PNG_FLAG_CRC_ANCILLARY_USE
#define PNG_NUMBER_FORMAT_x
#define PNG_FLAG_CRC_ANCILLARY_NOWARN
#define PNG_COLORSPACE_HAVE_ENDPOINTS
Definition juce_PNGLoader.cpp:134
#define PNG_COLOR_TYPE_RGB_ALPHA
#define PNG_FLAG_MNG_FILTER_64
#define PNG_COLORSPACE_HAVE_INTENT
Definition juce_PNGLoader.cpp:135
#define PNG_FLAG_LIBRARY_MISMATCH
#define PNG_COLOR_TYPE_GRAY_ALPHA
#define png_debug(a, b)
Definition juce_PNGLoader.cpp:277
#define PNG_sRGB_INTENT_LAST
#define PNG_FLAG_CRC_ANCILLARY_MASK
#define PNG_CSTRING_FROM_CHUNK(s, c)
#define PNG_COLOR_MASK_COLOR
#define PNG_HEADER_VERSION_STRING
#define PNG_FLAG_CRC_CRITICAL_IGNORE
#define PNG_DESTROY_WILL_FREE_DATA
#define PNG_IS_READ_STRUCT
#define PNG_COLORSPACE_CANCEL(flags)
Definition juce_PNGLoader.cpp:142
#define PNG_USER_WIDTH_MAX
Definition juce_PNGLoader.cpp:270
#define PNG_STRING_COPYRIGHT
Definition juce_PNGLoader.cpp:237
#define PNG_MAX_GAMMA_8
Definition juce_PNGLoader.cpp:250
#define PNG_GAMMA_sRGB_INVERSE
#define PNG_FILTER_TYPE_BASE
#define png_get_uint_32(buf)
#define PNG_USER_WILL_FREE_DATA
#define PNG_GAMMA_THRESHOLD_FIXED
Definition juce_PNGLoader.cpp:247
#define PNG_NUMBER_FORMAT_u
#define PNG_INTERLACE_LAST
#define PNG_CHUNK_ANCILLARY(c)
#define png_voidcast(type, value)
#define PNG_COLOR_TYPE_PALETTE
#define PNG_NUMBER_BUFFER_SIZE
#define PNG_LIBPNG_VER_STRING
#define PNG_COLORSPACE_ENDPOINTS_MATCH_sRGB
Definition juce_PNGLoader.cpp:139
#define PNG_COLORSPACE_FROM_sRGB
Definition juce_PNGLoader.cpp:138
#define PNG_CHUNK_WARNING
#define PNG_COMPRESSION_TYPE_BASE
#define PNG_HANDLE_CHUNK_AS_DEFAULT
#define A(x)
Definition lice_arc.cpp:13
float out
Definition lilv_test.c:1461
png_libpng_version_1_6_37 Your_png_h_is_not_version_1_6_37
Definition juce_PNGLoader.cpp:17
@ image
Definition juce_AccessibilityRole.h:42
#define max(x, y)
Definition os.h:78
static int png_xy_from_XYZ(png_xy *xy, const png_XYZ *XYZ)
Definition png.c:1233
int png_icc_check_length(png_const_structrp png_ptr, png_colorspacerp colorspace, png_const_charp name, png_uint_32 profile_length)
Definition png.c:1981
png_voidp PNGAPI png_get_io_ptr(png_const_structrp png_ptr)
Definition png.c:686
void PNGAPI png_save_int_32(png_bytep buf, png_int_32 i)
Definition png.c:726
png_const_charp PNGAPI png_get_copyright(png_const_structrp png_ptr)
Definition png.c:811
void png_destroy_gamma_table(png_structrp png_ptr)
Definition png.c:4136
static int png_icc_profile_error(png_const_structrp png_ptr, png_colorspacerp colorspace, png_const_charp name, png_alloc_size_t value, png_const_charp reason)
Definition png.c:1823
png_const_charp PNGAPI png_convert_to_rfc1123(png_structrp png_ptr, png_const_timep ptime)
Definition png.c:791
png_uint_32 length
Definition png.c:2247
png_uint_16 png_gamma_correct(png_structrp png_ptr, unsigned int value, png_fixed_point gamma_val)
Definition png.c:3947
static png_fixed_point png_product2(png_fixed_point a, png_fixed_point b)
Definition png.c:3520
static void png_build_16to8_table(png_structrp png_ptr, png_uint_16pp *ptable, unsigned int shift, png_fixed_point gamma_val)
Definition png.c:4049
static int icc_check_length(png_const_structrp png_ptr, png_colorspacerp colorspace, png_const_charp name, png_uint_32 profile_length)
Definition png.c:1970
#define PNG_MD5(a, b, c, d)
Definition juce_PNGLoader.cpp:2253
png_byte have_md5
Definition png.c:2249
void png_colorspace_sync(png_const_structrp png_ptr, png_inforp info_ptr)
Definition png.c:1215
static void png_build_8bit_table(png_structrp png_ptr, png_bytepp ptable, png_fixed_point gamma_val)
Definition png.c:4117
#define APPEND_STRING(string)
int png_colorspace_set_chromaticities(png_const_structrp png_ptr, png_colorspacerp colorspace, const png_xy *xy, int preferred)
Definition png.c:1720
void png_colorspace_sync_info(png_const_structrp png_ptr, png_inforp info_ptr)
Definition png.c:1169
static int is_ICC_signature(png_alloc_size_t it)
Definition png.c:1814
png_byte png_gamma_8bit_correct(unsigned int value, png_fixed_point gamma_val)
Definition png.c:3864
static const struct @210012106225242003312074166031207350025133355056 png_sRGB_checks[]
void png_icc_set_sRGB(png_const_structrp png_ptr, png_colorspacerp colorspace, png_const_bytep profile, uLong adler)
Definition png.c:2428
void png_build_gamma_table(png_structrp png_ptr, int bit_depth)
Definition png.c:4196
void png_reset_crc(png_structrp png_ptr)
Definition png.c:127
int png_muldiv(png_fixed_point_p res, png_fixed_point a, png_int_32 times, png_int_32 divisor)
Definition png.c:3349
int PNGAPI png_sig_cmp(png_const_bytep sig, size_t start, size_t num_to_check)
Definition png.c:74
static int png_XYZ_normalize(png_XYZ *XYZ)
Definition png.c:1542
static const png_xy sRGB_xy
Definition png.c:1662
static const png_byte D50_nCIEXYZ[12]
Definition png.c:1966
int png_check_fp_number(png_const_charp string, size_t size, int *statep, png_size_tp whereami)
Definition png.c:2712
int png_chunk_unknown_handling(png_const_structrp png_ptr, png_uint_32 chunk_name)
Definition png.c:961
#define png_gt(a, b)
Definition juce_PNGLoader.cpp:2543
int png_user_version_check(png_structrp png_ptr, png_const_charp user_png_ver)
Definition png.c:193
void png_zfree(voidpf png_ptr, voidpf ptr)
Definition png.c:118
png_byte is_broken
Definition png.c:2250
int png_colorspace_set_endpoints(png_const_structrp png_ptr, png_colorspacerp colorspace, const png_XYZ *XYZ_in, int preferred)
Definition png.c:1757
#define PNG_ICC_CHECKSUM(adler, crc, md5, intent, broke, date, length, fname)
Definition juce_PNGLoader.cpp:2254
png_fixed_point png_muldiv_warn(png_const_structrp png_ptr, png_fixed_point a, png_int_32 times, png_int_32 divisor)
Definition png.c:3472
void png_zstream_error(png_structrp png_ptr, int ret)
Definition png.c:998
static int png_colorspace_check_xy(png_XYZ *XYZ, const png_xy *xy)
Definition png.c:1618
png_uint_32 md5[4]
Definition png.c:2248
void png_ascii_from_fixed(png_const_structrp png_ptr, png_charp ascii, size_t size, png_fixed_point fp)
Definition png.c:3233
int png_gamma_significant(png_fixed_point gamma_val)
Definition png.c:3509
void png_ascii_from_fp(png_const_structrp png_ptr, png_charp ascii, size_t size, double fp, unsigned int precision)
Definition png.c:2903
static int png_colorspace_check_XYZ(png_xy *xy, png_XYZ *XYZ)
Definition png.c:1644
static int is_ICC_signature_char(png_alloc_size_t it)
Definition png.c:1807
#define APPEND_NUMBER(format, value)
#define png_fp_set(state, value)
Definition juce_PNGLoader.cpp:2709
void png_colorspace_set_gamma(png_const_structrp png_ptr, png_colorspacerp colorspace, png_fixed_point gAMA)
Definition png.c:1114
static int png_compare_ICC_profile_with_sRGB(png_const_structrp png_ptr, png_const_bytep profile, uLong adler)
Definition png.c:2307
#define png_fp_add(state, flags)
Definition juce_PNGLoader.cpp:2708
png_const_charp PNGAPI png_get_header_ver(png_const_structrp png_ptr)
Definition png.c:844
static char png_icc_tag_char(png_uint_32 byte)
Definition png.c:1786
static void png_icc_tag_name(char *name, png_uint_32 tag)
Definition png.c:1796
static int png_colorspace_endpoints_match(const png_xy *xy1, const png_xy *xy2, int delta)
Definition png.c:1592
int png_icc_check_header(png_const_structrp png_ptr, png_colorspacerp colorspace, png_const_charp name, png_uint_32 profile_length, png_const_bytep profile, int color_type)
Definition png.c:2014
png_const_charp PNGAPI png_get_libpng_ver(png_const_structrp png_ptr)
Definition png.c:837
static int png_colorspace_check_gamma(png_const_structrp png_ptr, png_colorspacerp colorspace, png_fixed_point gAMA, int from)
Definition png.c:1070
int png_icc_check_tag_table(png_const_structrp png_ptr, png_colorspacerp colorspace, png_const_charp name, png_uint_32 profile_length, png_const_bytep profile)
Definition png.c:2197
static double png_pow10(int power)
Definition png.c:2858
int png_colorspace_set_sRGB(png_const_structrp png_ptr, png_colorspacerp colorspace, int intent)
Definition png.c:1872
int png_check_fp_string(png_const_charp string, size_t size)
Definition png.c:2839
void png_check_IHDR(png_const_structrp png_ptr, png_uint_32 width, png_uint_32 height, int bit_depth, int color_type, int interlace_type, int compression_type, int filter_type)
Definition png.c:2547
png_uint_32 crc
Definition png.c:2247
png_uint_32 adler
Definition png.c:2247
int PNGAPI png_reset_zstream(png_structrp png_ptr)
Definition png.c:974
png_uint_16 png_gamma_16bit_correct(unsigned int value, png_fixed_point gamma_val)
Definition png.c:3912
png_const_charp PNGAPI png_get_header_version(png_const_structrp png_ptr)
Definition png.c:852
static int png_colorspace_set_xy_and_XYZ(png_const_structrp png_ptr, png_colorspacerp colorspace, const png_xy *xy, const png_XYZ *XYZ, int preferred)
Definition png.c:1672
void png_colorspace_set_rgb_coefficients(png_structrp png_ptr)
Definition png.c:2469
png_fixed_point png_fixed(png_const_structrp png_ptr, double fp, png_const_charp text)
Definition png.c:3316
void PNGAPI png_destroy_info_struct(png_const_structrp png_ptr, png_infopp info_ptr_ptr)
Definition png.c:386
static int png_XYZ_from_xy(png_XYZ *XYZ, const png_xy *xy)
Definition png.c:1276
void png_calculate_crc(png_structrp png_ptr, png_const_bytep ptr, size_t length)
Definition png.c:139
png_uint_32 PNGAPI png_access_version_number(void)
Definition png.c:986
void PNGAPI png_data_freer(png_const_structrp png_ptr, png_inforp info_ptr, int freer, png_uint_32 mask)
Definition png.c:452
png_fixed_point png_reciprocal(png_fixed_point a)
Definition png.c:3488
int PNGAPI png_handle_as_unknown(png_const_structrp png_ptr, png_const_bytep chunk_name)
Definition png.c:926
void PNGAPI png_set_sig_bytes(png_structrp png_ptr, int num_bytes)
Definition png.c:47
png_fixed_point png_reciprocal2(png_fixed_point a, png_fixed_point b)
Definition png.c:3543
int PNGAPI png_convert_to_rfc1123_buffer(char out[29], png_const_timep ptime)
Definition png.c:737
void PNGAPI png_init_io(png_structrp png_ptr, png_FILE_p fp)
Definition png.c:703
int png_colorspace_set_ICC(png_const_structrp png_ptr, png_colorspacerp colorspace, png_const_charp name, png_uint_32 profile_length, png_const_bytep profile, int color_type)
Definition png.c:2442
png_uint_16 intent
Definition png.c:2251
void PNGAPI png_free_data(png_const_structrp png_ptr, png_inforp info_ptr, png_uint_32 mask, int num)
Definition png.c:471
static void png_build_16bit_table(png_structrp png_ptr, png_uint_16pp *ptable, unsigned int shift, png_fixed_point gamma_val)
Definition png.c:3972
png_struct * png_structp
Definition png.h:440
png_color * png_colorp
Definition png.h:483
png_fixed_point
Definition png.h:1902
png_info ** png_infopp
Definition png.h:455
png_structrp png_ptr
Definition png.h:1082
png_const_structrp png_const_inforp double double double double * green_X
Definition png.h:1940
char * png_libpng_version_1_6_37
Definition png.h:430
png_const_structrp png_const_inforp double double double double double double double * blue_X
Definition png.h:1940
const png_time * png_const_timep
Definition png.h:609
const png_struct *PNG_RESTRICT png_const_structrp
Definition png.h:469
png_info * png_infop
Definition png.h:453
png_info *PNG_RESTRICT png_inforp
Definition png.h:470
png_uint_32
Definition png.h:1938
png_struct *PNG_RESTRICT png_structrp
Definition png.h:468
png_const_structrp png_const_inforp info_ptr
Definition png.h:1939
char * png_charp
Definition pngconf.h:589
size_t * png_size_tp
Definition pngconf.h:593
const png_byte * png_const_bytep
Definition pngconf.h:580
png_byte * png_bytep
Definition pngconf.h:579
png_byte ** png_bytepp
Definition pngconf.h:606
png_uint_16 * png_uint_16p
Definition pngconf.h:585
void * png_voidp
Definition pngconf.h:577
png_fixed_point * png_fixed_point_p
Definition pngconf.h:591
const char * png_const_charp
Definition pngconf.h:590
png_uint_16 ** png_uint_16pp
Definition pngconf.h:609
void PNGAPI png_set_error_fn(png_structrp png_ptr, png_voidp error_ptr, png_error_ptr error_fn, png_error_ptr warning_fn)
Definition pngerror.c:835
void PNGAPI png_benign_error(png_const_structrp png_ptr, png_const_charp error_message)
Definition pngerror.c:362
size_t png_safecat(png_charp buffer, size_t bufsize, size_t pos, png_const_charp string)
Definition pngerror.c:112
void PNGAPI png_warning(png_const_structrp png_ptr, png_const_charp warning_message)
Definition pngerror.c:216
png_charp png_format_number(png_const_charp start, png_charp end, int format, png_alloc_size_t number)
Definition pngerror.c:133
void png_chunk_report(png_const_structrp png_ptr, png_const_charp message, int error)
Definition pngerror.c:531
void PNGAPI png_free(png_const_structrp png_ptr, png_voidp ptr)
Definition pngmem.c:232
void PNGAPI png_destroy_read_struct(png_structpp png_ptr_ptr, png_infopp info_ptr_ptr, png_infopp end_info_ptr_ptr)
Definition pngread.c:1011
png_int_32(PNGAPI png_get_int_32)(png_const_bytep buf)
Definition pngrutil.c:84
png_uint_16(PNGAPI png_get_uint_16)(png_const_bytep buf)
Definition pngrutil.c:102
void PNGAPI png_destroy_write_struct(png_structpp png_ptr_ptr, png_infopp info_ptr_ptr)
Definition pngwrite.c:979
void PNGAPI png_save_uint_32(png_bytep buf, png_uint_32 i)
Definition pngwutil.c:24
static int test(SerdEnv *env, bool top_level, bool pretty_numbers)
Definition sratom_test.c:79
png_byte blue
Definition png.h:481
png_byte red
Definition png.h:479
png_byte green
Definition png.h:480
png_byte month
Definition png.h:602
png_uint_16 year
Definition png.h:601
png_byte hour
Definition png.h:604
png_byte second
Definition png.h:606
png_byte minute
Definition png.h:605
png_byte day
Definition png.h:603
const char * text
Definition swell-functions.h:167
static float D(float x)
Definition tap_tubewarmth.c:156
uch * p
Definition crypt.c:594
return c
Definition crypt.c:175
int r
Definition crypt.c:458
int result
Definition process.c:1455
char * cp
Definition unix.c:513
typedef int(UZ_EXP MsgFn)()
#define void
Definition unzip.h:396
int negative
Definition zipinfo.c:455
#define voidpf
Definition zconf.h:71
#define uInt
Definition zconf.h:64
#define adler32
Definition zconf.h:54
#define inflateReset
Definition zconf.h:47
#define crc32
Definition zconf.h:55
#define uLong
Definition zconf.h:65
#define Z_NEED_DICT
Definition zlib.h:173
#define Z_ERRNO
Definition zlib.h:174
#define Z_BUF_ERROR
Definition zlib.h:178
#define Z_VERSION_ERROR
Definition zlib.h:179
#define Z_STREAM_END
Definition zlib.h:172
#define Z_OK
Definition zlib.h:171
#define Z_DATA_ERROR
Definition zlib.h:176
#define Z_STREAM_ERROR
Definition zlib.h:175
#define Z_NULL
Definition zlib.h:206
#define Z_MEM_ERROR
Definition zlib.h:177