png_uint_16 1068 contrib/libtests/makepng.c png_uint_16 freq[256]; png_uint_16 1080 contrib/libtests/makepng.c freq[i] = (png_uint_16)l; png_uint_16 126 contrib/libtests/pngstest.c static png_uint_16 png_uint_16 130 contrib/libtests/pngstest.c return (png_uint_16)d; png_uint_16 182 contrib/libtests/pngstest.c static png_uint_16 png_uint_16 188 contrib/libtests/pngstest.c static png_uint_16 png_uint_16 194 contrib/libtests/pngstest.c static png_uint_16 png_uint_16 201 contrib/libtests/pngstest.c static png_uint_16 png_uint_16 562 contrib/libtests/pngstest.c png_uint_16 colormap[256*4]; png_uint_16 1988 contrib/libtests/pngstest.c static png_uint_16 gpc_error[16/*in*/][16/*out*/][4/*a*/] = png_uint_16 2072 contrib/libtests/pngstest.c static png_uint_16 gpc_error_via_linear[16][4/*out*/][4] = png_uint_16 2108 contrib/libtests/pngstest.c static png_uint_16 gpc_error_to_colormap[8/*i*/][8/*o*/][4] = png_uint_16 2168 contrib/libtests/pngstest.c png_uint_16 error[4]; png_uint_16 2173 contrib/libtests/pngstest.c png_uint_16 *error_ptr; png_uint_16 2579 contrib/libtests/pngstest.c transform->error[3] = (png_uint_16)err_a; png_uint_16 2634 contrib/libtests/pngstest.c transform->error[limit] = (png_uint_16)maxerr; png_uint_16 94 contrib/libtests/pngunknown.c #define PNG_U16(b1, b2) ((png_uint_16)PNG_u2(b1, b2)) png_uint_16 4273 contrib/libtests/pngvalid.c png_uint_16 red; png_uint_16 4274 contrib/libtests/pngvalid.c png_uint_16 green; png_uint_16 4275 contrib/libtests/pngvalid.c png_uint_16 blue; png_uint_16 7311 contrib/libtests/pngvalid.c back.red = (png_uint_16)data.red; png_uint_16 7312 contrib/libtests/pngvalid.c back.green = (png_uint_16)data.green; png_uint_16 7313 contrib/libtests/pngvalid.c back.blue = (png_uint_16)data.blue; png_uint_16 7317 contrib/libtests/pngvalid.c back.gray = (png_uint_16)data.red; png_uint_16 9280 contrib/libtests/pngvalid.c background.red = (png_uint_16)r; png_uint_16 9281 contrib/libtests/pngvalid.c background.green = (png_uint_16)(r >> 16); png_uint_16 9283 contrib/libtests/pngvalid.c background.blue = (png_uint_16)r; png_uint_16 9284 contrib/libtests/pngvalid.c background.gray = (png_uint_16)(r >> 16); png_uint_16 9301 contrib/libtests/pngvalid.c background.red = (png_uint_16)((background.red >> 8) * 257); png_uint_16 9302 contrib/libtests/pngvalid.c background.green = (png_uint_16)((background.green >> 8) * 257); png_uint_16 9303 contrib/libtests/pngvalid.c background.blue = (png_uint_16)((background.blue >> 8) * 257); png_uint_16 9304 contrib/libtests/pngvalid.c background.gray = (png_uint_16)((background.gray >> 8) * 257); png_uint_16 763 contrib/libtests/tarith.c static png_uint_16 png_exp16bit(png_uint_32 log) png_uint_16 765 contrib/libtests/tarith.c return (png_uint_16)floor(.5 + exp(log * -LN2) * 65535); png_uint_16 922 contrib/libtests/tarith.c png_uint_16 out = png_gamma_16bit_correct(j, gfp); png_uint_16 36 contrib/tools/makesRGB.c static png_uint_16 png_sRGB_table[256]; png_uint_16 37 contrib/tools/makesRGB.c static png_uint_16 png_sRGB_base[512]; png_uint_16 60 contrib/tools/makesRGB.c png_uint_16 png_uint_16 71 contrib/tools/makesRGB.c return (png_uint_16)x; png_uint_16 213 contrib/tools/makesRGB.c png_uint_16 base = png_sRGB_base[ibase >> 7], trybase = base, ob=base; png_uint_16 171 contrib/tools/pngfix.c typedef png_uint_16 udigit; /* A 'unum' is an array of these */ png_uint_16 190 contrib/tools/pngfix.c result[ndigits++] = (png_uint_16)(val & 0xffff); png_uint_16 224 contrib/tools/pngfix.c num[out_digits++] = (png_uint_16)(add & 0xffff); png_uint_16 230 contrib/tools/pngfix.c num[out_digits++] = (png_uint_16)(add & 0xffff); png_uint_16 294 contrib/tools/pngfix.c acc[out_digits++] = (png_uint_16)(carry & 0xffff); png_uint_16 317 contrib/tools/pngfix.c (png_uint_16)(val & 0xffff)); png_uint_16 325 contrib/tools/pngfix.c (png_uint_16)val) + 1; png_uint_16 338 contrib/tools/pngfix.c png_uint_16 carry = 0; png_uint_16 344 contrib/tools/pngfix.c png_uint_16 temp = (png_uint_16)(carry | (inout[i] >> right_shift)); png_uint_16 347 contrib/tools/pngfix.c carry = (png_uint_16)((inout[i] << (16-right_shift)) & 0xffff); png_uint_16 1416 contrib/tools/pngfix.c png_uint_16 pd = file->bit_depth; png_uint_16 1440 contrib/tools/pngfix.c pd = (png_uint_16)(pd * 3); png_uint_16 1447 contrib/tools/pngfix.c pd = (png_uint_16)(pd * 2); png_uint_16 1454 contrib/tools/pngfix.c pd = (png_uint_16)(pd * 4); png_uint_16 2246 contrib/tools/pngfix.c png_uint_16 cb; png_uint_16 1871 png.c colorspace->rendering_intent = (png_uint_16)intent; png_uint_16 2148 png.c png_uint_16 intent; png_uint_16 2418 png.c png_ptr->rgb_to_gray_red_coeff = (png_uint_16)r; png_uint_16 2419 png.c png_ptr->rgb_to_gray_green_coeff = (png_uint_16)g; png_uint_16 3672 png.c static png_uint_16 png_uint_16 3680 png.c return (png_uint_16)((x + 32767U) >> 16); png_uint_16 3709 png.c png_uint_16 png_uint_16 3716 png.c return (png_uint_16)r; png_uint_16 3729 png.c return (png_uint_16)value; png_uint_16 3738 png.c png_uint_16 /* PRIVATE */ png_uint_16 3779 png.c (png_uint_16p)png_malloc(png_ptr, 256 * (sizeof (png_uint_16))); png_uint_16 3801 png.c sub_table[j] = (png_uint_16)d; png_uint_16 3822 png.c sub_table[j] = (png_uint_16)ig; png_uint_16 3849 png.c 256 * (sizeof (png_uint_16))); png_uint_16 3871 png.c png_uint_16 out = (png_uint_16)(i * 257U); /* 16-bit output value */ png_uint_16 4151 png.c const png_uint_16 png_sRGB_table[256] = png_uint_16 4191 png.c const png_uint_16 png_sRGB_base[512] = png_uint_16 626 png.h png_uint_16 red; /* for use in red green blue files */ png_uint_16 627 png.h png_uint_16 green; png_uint_16 628 png.h png_uint_16 blue; png_uint_16 629 png.h png_uint_16 gray; /* for use in grayscale files */ png_uint_16 653 png.h png_uint_16 red; png_uint_16 654 png.h png_uint_16 green; png_uint_16 655 png.h png_uint_16 blue; png_uint_16 656 png.h png_uint_16 alpha; png_uint_16 657 png.h png_uint_16 frequency; png_uint_16 737 png.h png_uint_16 year; /* full year, as in, 1995 */ png_uint_16 2657 png.h { png_uint_16 temp = (png_uint_16)((png_uint_16)(fg) \ png_uint_16 2658 png.h * (png_uint_16)(alpha) \ png_uint_16 2659 png.h + (png_uint_16)(bg)*(png_uint_16)(255 \ png_uint_16 2660 png.h - (png_uint_16)(alpha)) + 128); \ png_uint_16 2668 png.h (composite) = (png_uint_16)((temp + (temp >> 16)) >> 16); } png_uint_16 2673 png.h (composite) = (png_byte)(((png_uint_16)(fg) * (png_uint_16)(alpha) + \ png_uint_16 2674 png.h (png_uint_16)(bg) * (png_uint_16)(255 - (png_uint_16)(alpha)) + \ png_uint_16 2678 png.h (composite) = (png_uint_16)(((png_uint_32)(fg) * (png_uint_32)(alpha) + \ png_uint_16 2685 png.h PNG_EXPORT(202, png_uint_16, png_get_uint_16, (png_const_bytep buf)); png_uint_16 2725 png.h ((png_uint_16) \ png_uint_16 606 pngconf.h typedef png_uint_16 * png_uint_16p; png_uint_16 607 pngconf.h typedef const png_uint_16 * png_const_uint_16p; png_uint_16 630 pngconf.h typedef png_uint_16 * * png_uint_16pp; png_uint_16 64 pnginfo.h png_uint_16 num_palette; /* number of color entries in "palette" (PLTE) */ png_uint_16 65 pnginfo.h png_uint_16 num_trans; /* number of transparent palette color (tRNS) */ png_uint_16 1849 pngpriv.h PNG_INTERNAL_FUNCTION(png_uint_16,png_gamma_correct,(png_structrp png_ptr, png_uint_16 1851 pngpriv.h PNG_INTERNAL_FUNCTION(png_uint_16,png_gamma_16bit_correct,(unsigned int value, png_uint_16 1854 pngread.c entry[afirst ? 0 : 3] = (png_uint_16)alpha; png_uint_16 1870 pngread.c entry[afirst + (2 ^ bgr)] = (png_uint_16)blue; png_uint_16 1871 pngread.c entry[afirst + 1] = (png_uint_16)green; png_uint_16 1872 pngread.c entry[afirst + bgr] = (png_uint_16)red; png_uint_16 1876 pngread.c entry[1 ^ afirst] = (png_uint_16)alpha; png_uint_16 1888 pngread.c entry[afirst] = (png_uint_16)green; png_uint_16 2257 pngread.c c.gray = c.red = c.green = c.blue = (png_uint_16)gray; png_uint_16 2364 pngread.c c.gray = c.red = c.green = c.blue = (png_uint_16)gray; png_uint_16 2561 pngread.c c.gray = c.red = c.green = c.blue = (png_uint_16)gray; png_uint_16 2713 pngread.c c.red = (png_uint_16)back_r; png_uint_16 2714 pngread.c c.gray = c.green = (png_uint_16)back_g; png_uint_16 2715 pngread.c c.blue = (png_uint_16)back_b; png_uint_16 3465 pngread.c png_uint_16 background = png_sRGB_table[background8]; png_uint_16 3575 pngread.c png_uint_16 alpha = inrow[1]; png_uint_16 3590 pngread.c outrow[swap_alpha] = (png_uint_16)component; png_uint_16 3884 pngread.c PNG_CONST png_uint_16 le = 0x0001; png_uint_16 732 pngrtran.c png_ptr->num_palette = (png_uint_16)num_palette; png_uint_16 998 pngrtran.c png_uint_16 red_int, green_int; png_uint_16 1005 pngrtran.c red_int = (png_uint_16)(((png_uint_32)red*32768)/100000); png_uint_16 1006 pngrtran.c green_int = (png_uint_16)(((png_uint_32)green*32768)/100000); png_uint_16 1261 pngrtran.c png_ptr->background.blue = (png_uint_16)gray; png_uint_16 1266 pngrtran.c png_ptr->trans_color.blue = (png_uint_16)trans_gray; png_uint_16 1499 pngrtran.c # define CHOP(x) (x)=((png_uint_16)PNG_DIV257(x)) png_uint_16 1522 pngrtran.c png_ptr->background.red = (png_uint_16)(png_ptr->background.red * 257); png_uint_16 1524 pngrtran.c (png_uint_16)(png_ptr->background.green * 257); png_uint_16 1525 pngrtran.c png_ptr->background.blue = (png_uint_16)(png_ptr->background.blue * 257); png_uint_16 1526 pngrtran.c png_ptr->background.gray = (png_uint_16)(png_ptr->background.gray * 257); png_uint_16 3087 pngrtran.c png_uint_16 red, green, blue, w; png_uint_16 3089 pngrtran.c red = (png_uint_16)(((*(sp))<<8) | *(sp + 1)); sp += 2; png_uint_16 3090 pngrtran.c green = (png_uint_16)(((*(sp))<<8) | *(sp + 1)); sp += 2; png_uint_16 3091 pngrtran.c blue = (png_uint_16)(((*(sp))<<8) | *(sp + 1)); sp += 2; png_uint_16 3105 pngrtran.c png_uint_16 red_1 = png_ptr->gamma_16_to_1[(red&0xff) png_uint_16 3107 pngrtran.c png_uint_16 green_1 = png_uint_16 3110 pngrtran.c png_uint_16 blue_1 = png_ptr->gamma_16_to_1[(blue&0xff) png_uint_16 3112 pngrtran.c png_uint_16 gray16 = (png_uint_16)((rc*red_1 + gc*green_1 png_uint_16 3138 pngrtran.c png_uint_16 red, green, blue, gray16; png_uint_16 3140 pngrtran.c red = (png_uint_16)(((*(sp))<<8) | *(sp + 1)); sp += 2; png_uint_16 3141 pngrtran.c green = (png_uint_16)(((*(sp))<<8) | *(sp + 1)); sp += 2; png_uint_16 3142 pngrtran.c blue = (png_uint_16)(((*(sp))<<8) | *(sp + 1)); sp += 2; png_uint_16 3151 pngrtran.c gray16 = (png_uint_16)((rc*red + gc*green + bc*blue + 16384) >> png_uint_16 3216 pngrtran.c if ((png_uint_16)((*sp >> shift) & 0x01) png_uint_16 3245 pngrtran.c if ((png_uint_16)((*sp >> shift) & 0x03) png_uint_16 3281 pngrtran.c if ((png_uint_16)((*sp >> shift) & 0x03) png_uint_16 3311 pngrtran.c if ((png_uint_16)((*sp >> shift) & 0x0f) png_uint_16 3347 pngrtran.c if ((png_uint_16)((*sp >> shift) & 0x0f) png_uint_16 3404 pngrtran.c png_uint_16 v; png_uint_16 3406 pngrtran.c v = (png_uint_16)(((*sp) << 8) + *(sp + 1)); png_uint_16 3431 pngrtran.c png_uint_16 v; png_uint_16 3433 pngrtran.c v = (png_uint_16)(((*sp) << 8) + *(sp + 1)); png_uint_16 3505 pngrtran.c png_uint_16 r = (png_uint_16)(((*sp) << 8) + *(sp + 1)); png_uint_16 3507 pngrtran.c png_uint_16 g = (png_uint_16)(((*(sp + 2)) << 8) png_uint_16 3510 pngrtran.c png_uint_16 b = (png_uint_16)(((*(sp + 4)) << 8) png_uint_16 3531 pngrtran.c png_uint_16 v = gamma_16[*(sp + 1) >> gamma_shift][*sp]; png_uint_16 3552 pngrtran.c png_uint_16 r = (png_uint_16)(((*sp) << 8) + *(sp + 1)); png_uint_16 3554 pngrtran.c png_uint_16 g = (png_uint_16)(((*(sp + 2)) << 8) png_uint_16 3557 pngrtran.c png_uint_16 b = (png_uint_16)(((*(sp + 4)) << 8) png_uint_16 3591 pngrtran.c png_uint_16 a = *(sp + 1); png_uint_16 3639 pngrtran.c png_uint_16 a = (png_uint_16)(((*(sp + 2)) << 8) png_uint_16 3642 pngrtran.c if (a == (png_uint_16)0xffff) png_uint_16 3644 pngrtran.c png_uint_16 v; png_uint_16 3661 pngrtran.c png_uint_16 g, v, w; png_uint_16 3680 pngrtran.c png_uint_16 a = (png_uint_16)(((*(sp + 2)) << 8) png_uint_16 3692 pngrtran.c png_uint_16 g, v; png_uint_16 3694 pngrtran.c g = (png_uint_16)(((*sp) << 8) + *(sp + 1)); png_uint_16 3791 pngrtran.c png_uint_16 a = (png_uint_16)(((png_uint_16)(*(sp + 6)) png_uint_16 3792 pngrtran.c << 8) + (png_uint_16)(*(sp + 7))); png_uint_16 3794 pngrtran.c if (a == (png_uint_16)0xffff) png_uint_16 3796 pngrtran.c png_uint_16 v; png_uint_16 3827 pngrtran.c png_uint_16 v, w; png_uint_16 3864 pngrtran.c png_uint_16 a = (png_uint_16)(((png_uint_16)(*(sp + 6)) png_uint_16 3865 pngrtran.c << 8) + (png_uint_16)(*(sp + 7))); png_uint_16 3882 pngrtran.c png_uint_16 v; png_uint_16 3884 pngrtran.c png_uint_16 r = (png_uint_16)(((*sp) << 8) + *(sp + 1)); png_uint_16 3885 pngrtran.c png_uint_16 g = (png_uint_16)(((*(sp + 2)) << 8) png_uint_16 3887 pngrtran.c png_uint_16 b = (png_uint_16)(((*(sp + 4)) << 8) png_uint_16 3961 pngrtran.c png_uint_16 v; png_uint_16 4007 pngrtran.c png_uint_16 v = gamma_16_table[*(sp + 1) >> gamma_shift][*sp]; png_uint_16 4043 pngrtran.c png_uint_16 v = gamma_16_table[*(sp + 1) >> gamma_shift][*sp]; png_uint_16 4102 pngrtran.c png_uint_16 v = gamma_16_table[*(sp + 1) >> gamma_shift][*sp]; png_uint_16 4166 pngrtran.c png_uint_16 v; png_uint_16 108 pngrutil.c return (png_uint_16)val; png_uint_16 1825 pngrutil.c png_ptr->num_trans = (png_uint_16)length; png_uint_16 1917 pngrutil.c background.red = (png_uint_16)png_ptr->palette[buf[0]].red; png_uint_16 1918 pngrutil.c background.green = (png_uint_16)png_ptr->palette[buf[0]].green; png_uint_16 1919 pngrutil.c background.blue = (png_uint_16)png_ptr->palette[buf[0]].blue; png_uint_16 1955 pngrutil.c png_uint_16 readbuf[PNG_MAX_PALETTE_LENGTH]; png_uint_16 3353 pngrutil.c png_isaligned(dp, png_uint_16) && png_uint_16 3354 pngrutil.c png_isaligned(sp, png_uint_16) && png_uint_16 3355 pngrutil.c bytes_to_copy % (sizeof (png_uint_16)) == 0 && png_uint_16 3356 pngrutil.c bytes_to_jump % (sizeof (png_uint_16)) == 0) png_uint_16 3412 pngrutil.c (sizeof (png_uint_16)); png_uint_16 3420 pngrutil.c c -= (sizeof (png_uint_16)); png_uint_16 187 pngset.c PNG_MAX_PALETTE_LENGTH * (sizeof (png_uint_16)))); png_uint_16 553 pngset.c info_ptr->num_palette = png_ptr->num_palette = (png_uint_16)num_palette; png_uint_16 960 pngset.c info_ptr->num_trans = (png_uint_16)num_trans; png_uint_16 122 pngstruct.h png_uint_16 rendering_intent; /* Rendering intent of a profile */ png_uint_16 126 pngstruct.h png_uint_16 flags; /* As defined below */ png_uint_16 239 pngstruct.h png_uint_16 num_palette; /* number of color entries in palette */ png_uint_16 246 pngstruct.h png_uint_16 num_trans; /* number of transparency values */ png_uint_16 266 pngstruct.h png_uint_16 filler; /* filler bytes for pixel expansion */ png_uint_16 340 pngstruct.h png_uint_16 offset_table_number; png_uint_16 341 pngstruct.h png_uint_16 offset_table_count; png_uint_16 342 pngstruct.h png_uint_16 offset_table_count_free; png_uint_16 396 pngstruct.h png_uint_16 rgb_to_gray_red_coeff; png_uint_16 397 pngstruct.h png_uint_16 rgb_to_gray_green_coeff; png_uint_16 141 pngtrans.c png_ptr->filler = (png_uint_16)filler; png_uint_16 334 pngtrans.c *(png_uint_16*)rp = __builtin_bswap16(*(png_uint_16*)rp); png_uint_16 459 pngwrite.c ptime->year = (png_uint_16)(1900 + ttime->tm_year); png_uint_16 1188 pngwrite.c (png_uint_32)((sizeof (png_uint_16)) * num_weights)); png_uint_16 1191 pngwrite.c (png_uint_32)((sizeof (png_uint_16)) * num_weights)); png_uint_16 1209 pngwrite.c (png_uint_32)((sizeof (png_uint_16)) * PNG_FILTER_VALUE_LAST)); png_uint_16 1212 pngwrite.c (png_uint_32)((sizeof (png_uint_16)) * PNG_FILTER_VALUE_LAST)); png_uint_16 1269 pngwrite.c (png_uint_16)(PNG_WEIGHT_FACTOR*filter_weights[i]+.5); png_uint_16 1272 pngwrite.c (png_uint_16)(PNG_WEIGHT_FACTOR/filter_weights[i]+.5); png_uint_16 1286 pngwrite.c (png_uint_16)(PNG_COST_FACTOR / filter_costs[i] + .5); png_uint_16 1289 pngwrite.c (png_uint_16)(PNG_COST_FACTOR * filter_costs[i] + .5); png_uint_16 1323 pngwrite.c png_ptr->inv_filter_weights[i] = (png_uint_16) png_uint_16 1326 pngwrite.c png_ptr->filter_weights[i] = (png_uint_16)((PNG_WEIGHT_FACTOR* png_uint_16 1350 pngwrite.c png_ptr->inv_filter_costs[i] = (png_uint_16)tmp; png_uint_16 1355 pngwrite.c png_ptr->filter_costs[i] = (png_uint_16)tmp; png_uint_16 1775 pngwrite.c const png_uint_16 alpha = in_ptr[aindex]; png_uint_16 1792 pngwrite.c png_uint_16 component = *in_ptr++; png_uint_16 1811 pngwrite.c component = (png_uint_16)(calc >> 15); png_uint_16 1824 pngwrite.c input_row += display->row_bytes/(sizeof (png_uint_16)); png_uint_16 1926 pngwrite.c png_uint_16 alpha = in_ptr[aindex]; png_uint_16 1949 pngwrite.c input_row += display->row_bytes/(sizeof (png_uint_16)); png_uint_16 1974 pngwrite.c input_row += display->row_bytes/(sizeof (png_uint_16)); png_uint_16 2044 pngwrite.c png_uint_16 alpha = entry[afirst ? 0 : channels-1]; png_uint_16 2218 pngwrite.c PNG_CONST png_uint_16 le = 0x0001; png_uint_16 2258 pngwrite.c row_bytes *= (sizeof (png_uint_16)); png_uint_16 958 pngwutil.c png_ptr->num_palette = (png_uint_16)num_pal;