Lines Matching refs:png_uint_16
737 png_ptr->num_palette = (png_uint_16)num_palette; in png_set_quantize()
1002 png_uint_16 red_int, green_int; in png_set_rgb_to_gray_fixed()
1009 red_int = (png_uint_16)(((png_uint_32)red*32768)/100000); in png_set_rgb_to_gray_fixed()
1010 green_int = (png_uint_16)(((png_uint_32)green*32768)/100000); in png_set_rgb_to_gray_fixed()
1265 png_ptr->background.blue = (png_uint_16)gray; in png_init_rgb_transformations()
1270 png_ptr->trans_color.blue = (png_uint_16)trans_gray; in png_init_rgb_transformations()
1503 # define CHOP(x) (x)=((png_uint_16)PNG_DIV257(x)) in png_init_read_transformations()
1526 png_ptr->background.red = (png_uint_16)(png_ptr->background.red * 257); in png_init_read_transformations()
1528 (png_uint_16)(png_ptr->background.green * 257); in png_init_read_transformations()
1529 png_ptr->background.blue = (png_uint_16)(png_ptr->background.blue * 257); in png_init_read_transformations()
1530 png_ptr->background.gray = (png_uint_16)(png_ptr->background.gray * 257); in png_init_read_transformations()
3092 png_uint_16 red, green, blue, w; in png_do_rgb_to_gray()
3095 hi=*(sp)++; lo=*(sp)++; red = (png_uint_16)((hi << 8) | (lo)); in png_do_rgb_to_gray()
3096 hi=*(sp)++; lo=*(sp)++; green = (png_uint_16)((hi << 8) | (lo)); in png_do_rgb_to_gray()
3097 hi=*(sp)++; lo=*(sp)++; blue = (png_uint_16)((hi << 8) | (lo)); in png_do_rgb_to_gray()
3111 png_uint_16 red_1 = png_ptr->gamma_16_to_1[(red & 0xff) in png_do_rgb_to_gray()
3113 png_uint_16 green_1 = in png_do_rgb_to_gray()
3116 png_uint_16 blue_1 = png_ptr->gamma_16_to_1[(blue & 0xff) in png_do_rgb_to_gray()
3118 png_uint_16 gray16 = (png_uint_16)((rc*red_1 + gc*green_1 in png_do_rgb_to_gray()
3144 png_uint_16 red, green, blue, gray16; in png_do_rgb_to_gray()
3147 hi=*(sp)++; lo=*(sp)++; red = (png_uint_16)((hi << 8) | (lo)); in png_do_rgb_to_gray()
3148 hi=*(sp)++; lo=*(sp)++; green = (png_uint_16)((hi << 8) | (lo)); in png_do_rgb_to_gray()
3149 hi=*(sp)++; lo=*(sp)++; blue = (png_uint_16)((hi << 8) | (lo)); in png_do_rgb_to_gray()
3158 gray16 = (png_uint_16)((rc*red + gc*green + bc*blue + 16384) >> in png_do_rgb_to_gray()
3223 if ((png_uint_16)((*sp >> shift) & 0x01) in png_do_compose()
3252 if ((png_uint_16)((*sp >> shift) & 0x03) in png_do_compose()
3288 if ((png_uint_16)((*sp >> shift) & 0x03) in png_do_compose()
3318 if ((png_uint_16)((*sp >> shift) & 0x0f) in png_do_compose()
3354 if ((png_uint_16)((*sp >> shift) & 0x0f) in png_do_compose()
3411 png_uint_16 v; in png_do_compose()
3413 v = (png_uint_16)(((*sp) << 8) + *(sp + 1)); in png_do_compose()
3438 png_uint_16 v; in png_do_compose()
3440 v = (png_uint_16)(((*sp) << 8) + *(sp + 1)); in png_do_compose()
3512 png_uint_16 r = (png_uint_16)(((*sp) << 8) + *(sp + 1)); in png_do_compose()
3514 png_uint_16 g = (png_uint_16)(((*(sp + 2)) << 8) in png_do_compose()
3517 png_uint_16 b = (png_uint_16)(((*(sp + 4)) << 8) in png_do_compose()
3538 png_uint_16 v = gamma_16[*(sp + 1) >> gamma_shift][*sp]; in png_do_compose()
3559 png_uint_16 r = (png_uint_16)(((*sp) << 8) + *(sp + 1)); in png_do_compose()
3561 png_uint_16 g = (png_uint_16)(((*(sp + 2)) << 8) in png_do_compose()
3564 png_uint_16 b = (png_uint_16)(((*(sp + 4)) << 8) in png_do_compose()
3598 png_uint_16 a = *(sp + 1); in png_do_compose()
3646 png_uint_16 a = (png_uint_16)(((*(sp + 2)) << 8) in png_do_compose()
3649 if (a == (png_uint_16)0xffff) in png_do_compose()
3651 png_uint_16 v; in png_do_compose()
3668 png_uint_16 g, v, w; in png_do_compose()
3688 png_uint_16 a = (png_uint_16)(((*(sp + 2)) << 8) in png_do_compose()
3700 png_uint_16 g, v; in png_do_compose()
3702 g = (png_uint_16)(((*sp) << 8) + *(sp + 1)); in png_do_compose()
3799 png_uint_16 a = (png_uint_16)(((png_uint_16)(*(sp + 6)) in png_do_compose()
3800 << 8) + (png_uint_16)(*(sp + 7))); in png_do_compose()
3802 if (a == (png_uint_16)0xffff) in png_do_compose()
3804 png_uint_16 v; in png_do_compose()
3835 png_uint_16 v, w; in png_do_compose()
3872 png_uint_16 a = (png_uint_16)(((png_uint_16)(*(sp + 6)) in png_do_compose()
3873 << 8) + (png_uint_16)(*(sp + 7))); in png_do_compose()
3890 png_uint_16 v; in png_do_compose()
3892 png_uint_16 r = (png_uint_16)(((*sp) << 8) + *(sp + 1)); in png_do_compose()
3893 png_uint_16 g = (png_uint_16)(((*(sp + 2)) << 8) in png_do_compose()
3895 png_uint_16 b = (png_uint_16)(((*(sp + 4)) << 8) in png_do_compose()
3969 png_uint_16 v; in png_do_gamma()
4015 png_uint_16 v = gamma_16_table[*(sp + 1) >> gamma_shift][*sp]; in png_do_gamma()
4051 png_uint_16 v = gamma_16_table[*(sp + 1) >> gamma_shift][*sp]; in png_do_gamma()
4110 png_uint_16 v = gamma_16_table[*(sp + 1) >> gamma_shift][*sp]; in png_do_gamma()
4174 png_uint_16 v; in png_do_encode_alpha()