Lines Matching refs:png_uint_16
476 png_ptr->num_palette = (png_uint_16)num_palette;
728 png_uint_16 red_int, green_int;
736 red_int = (png_uint_16)(((png_uint_32)red*32768L)/100000L);
737 green_int = (png_uint_16)(((png_uint_32)green*32768L)/100000L);
748 (png_uint_16)(32768 - red_int - green_int);
832 png_ptr->background.gray *= (png_uint_16)0xff;
837 png_ptr->trans_values.gray *= (png_uint_16)0xff;
844 png_ptr->background.gray *= (png_uint_16)0x55;
849 png_ptr->trans_values.gray *= (png_uint_16)0x55;
856 png_ptr->background.gray *= (png_uint_16)0x11;
861 png_ptr->trans_values.gray *= (png_uint_16)0x11;
1069 png_ptr->background_1.gray = (png_uint_16)(pow(
1071 png_ptr->background.gray = (png_uint_16)(pow(
1079 png_ptr->background_1.red = (png_uint_16)(pow(
1081 png_ptr->background_1.green = (png_uint_16)(pow(
1083 png_ptr->background_1.blue = (png_uint_16)(pow(
1085 png_ptr->background.red = (png_uint_16)(pow(
1087 png_ptr->background.green = (png_uint_16)(pow(
1089 png_ptr->background.blue = (png_uint_16)(pow(
1168 png_uint_16 i;
1169 png_uint_16 istop = png_ptr->num_palette;
1698 png_uint_16 value = 0;
1780 value = (png_uint_16)((*bp << 8) + *(bp + 1));
2403 png_uint_16 red, green, blue, w;
2405 red = (png_uint_16)(((*(sp))<<8) | *(sp+1)); sp+=2;
2406 green = (png_uint_16)(((*(sp))<<8) | *(sp+1)); sp+=2;
2407 blue = (png_uint_16)(((*(sp))<<8) | *(sp+1)); sp+=2;
2413 png_uint_16 red_1 = png_ptr->gamma_16_to_1[(red&0xff) >>
2415 png_uint_16 green_1 =
2418 png_uint_16 blue_1 = png_ptr->gamma_16_to_1[(blue&0xff) >>
2420 png_uint_16 gray16 = (png_uint_16)((rc*red_1 + gc*green_1
2438 png_uint_16 red, green, blue, gray16;
2440 red = (png_uint_16)(((*(sp))<<8) | *(sp+1)); sp+=2;
2441 green = (png_uint_16)(((*(sp))<<8) | *(sp+1)); sp+=2;
2442 blue = (png_uint_16)(((*(sp))<<8) | *(sp+1)); sp+=2;
2446 gray16 = (png_uint_16)((rc*red + gc*green + bc*blue)>>15);
2501 png_uint_16 red, green, blue, w;
2503 red = (png_uint_16)(((*(sp))<<8) | *(sp+1)); sp+=2;
2504 green = (png_uint_16)(((*(sp))<<8) | *(sp+1)); sp+=2;
2505 blue = (png_uint_16)(((*(sp))<<8) | *(sp+1)); sp+=2;
2511 png_uint_16 red_1 = png_ptr->gamma_16_to_1[(red&0xff) >>
2513 png_uint_16 green_1 =
2516 png_uint_16 blue_1 = png_ptr->gamma_16_to_1[(blue&0xff) >>
2518 png_uint_16 gray16 = (png_uint_16)((rc * red_1
2538 png_uint_16 red, green, blue, gray16;
2539 red = (png_uint_16)((*(sp)<<8) | *(sp+1)); sp+=2;
2540 green = (png_uint_16)((*(sp)<<8) | *(sp+1)); sp+=2;
2541 blue = (png_uint_16)((*(sp)<<8) | *(sp+1)); sp+=2;
2544 gray16 = (png_uint_16)((rc*red + gc*green + bc*blue)>>15);
2844 if ((png_uint_16)((*sp >> shift) & 0x01)
2870 if ((png_uint_16)((*sp >> shift) & 0x03)
2900 if ((png_uint_16)((*sp >> shift) & 0x03)
2927 if ((png_uint_16)((*sp >> shift) & 0x0f)
2957 if ((png_uint_16)((*sp >> shift) & 0x0f)
3016 png_uint_16 v;
3018 v = (png_uint_16)(((*sp) << 8) + *(sp + 1));
3039 png_uint_16 v;
3041 v = (png_uint_16)(((*sp) << 8) + *(sp + 1));
3106 png_uint_16 r = (png_uint_16)(((*sp) << 8) + *(sp + 1));
3107 png_uint_16 g = (png_uint_16)(((*(sp+2)) << 8) + *(sp+3));
3108 png_uint_16 b = (png_uint_16)(((*(sp+4)) << 8) + *(sp+5));
3122 png_uint_16 v = gamma_16[*(sp + 1) >> gamma_shift][*sp];
3140 png_uint_16 r = (png_uint_16)(((*sp) << 8) + *(sp+1));
3141 png_uint_16 g = (png_uint_16)(((*(sp+2)) << 8) + *(sp+3));
3142 png_uint_16 b = (png_uint_16)(((*(sp+4)) << 8) + *(sp+5));
3172 png_uint_16 a = *(sp + 1);
3231 png_uint_16 a = (png_uint_16)(((*(sp+2)) << 8) + *(sp+3));
3233 if (a == (png_uint_16)0xffff)
3235 png_uint_16 v;
3254 png_uint_16 g, v, w;
3272 png_uint_16 a = (png_uint_16)(((*(sp+2)) << 8) + *(sp+3));
3273 if (a == (png_uint_16)0xffff)
3289 png_uint_16 g, v;
3291 g = (png_uint_16)(((*sp) << 8) + *(sp + 1));
3388 png_uint_16 a = (png_uint_16)(((png_uint_16)(*(sp + 6))
3389 << 8) + (png_uint_16)(*(sp + 7)));
3390 if (a == (png_uint_16)0xffff)
3392 png_uint_16 v;
3416 png_uint_16 v, w, x;
3443 png_uint_16 a = (png_uint_16)(((png_uint_16)(*(sp + 6))
3444 << 8) + (png_uint_16)(*(sp + 7)));
3445 if (a == (png_uint_16)0xffff)
3460 png_uint_16 v;
3462 png_uint_16 r = (png_uint_16)(((*sp) << 8) + *(sp + 1));
3463 png_uint_16 g = (png_uint_16)(((*(sp + 2)) << 8)
3465 png_uint_16 b = (png_uint_16)(((*(sp + 4)) << 8)
3544 png_uint_16 v;
3584 png_uint_16 v = gamma_16_table[*(sp + 1) >> gamma_shift][*sp];
3617 png_uint_16 v = gamma_16_table[*(sp + 1) >> gamma_shift][*sp];
3676 png_uint_16 v = gamma_16_table[*(sp + 1) >> gamma_shift][*sp];
3857 png_uint_16 gray = (png_uint_16)(trans_value ? trans_value->gray : 0);
3865 gray = (png_uint_16)((gray&0x01)*0xff);
3890 gray = (png_uint_16)((gray&0x03)*0x55);
3914 gray = (png_uint_16)((gray&0x0f)*0x11);
4302 (png_uint_32)(256 * png_sizeof(png_uint_16)));
4315 [(int)(last >> (8 - shift))] = (png_uint_16)(
4316 (png_uint_16)i | ((png_uint_16)i << 8));
4323 [(int)(last >> (8 - shift))] = (png_uint_16)65535L;
4332 (png_uint_32)(256 * png_sizeof(png_uint_16)));
4339 (png_uint_16)(pow((double)(ig + ((png_uint_32)j << 8)) /
4358 (png_uint_32)(256 * png_sizeof(png_uint_16)));
4365 (png_uint_16)(pow((double)(ig + ((png_uint_32)j << 8)) /
4382 (png_uint_32)(256 * png_sizeof(png_uint_16)));
4390 (png_uint_16)(pow((double)(ig + ((png_uint_32)j << 8)) /