Lines Matching refs:png_uint_16

729    png_ptr->num_palette = (png_uint_16)num_palette;
997 png_uint_16 red_int, green_int;
999 red_int = (png_uint_16)(((png_uint_32)red*32768L)/100000L);
1000 green_int = (png_uint_16)(((png_uint_32)green*32768L)/100000L);
1005 (png_uint_16)(32768 - red_int - green_int);
1227 png_ptr->background.gray *= (png_uint_16)0xff;
1232 png_ptr->trans_color.gray *= (png_uint_16)0xff;
1239 png_ptr->background.gray *= (png_uint_16)0x55;
1244 png_ptr->trans_color.gray *= (png_uint_16)0x55;
1251 png_ptr->background.gray *= (png_uint_16)0x11;
1256 png_ptr->trans_color.gray *= (png_uint_16)0x11;
1491 # define CHOP(x) (x)=((png_uint_16)(((png_uint_32)(x)*255+32895) >> 16))
1814 png_uint_16 i;
1815 png_uint_16 istop = png_ptr->num_palette;
2433 png_uint_16 value = 0;
2522 value = (png_uint_16)((*bp << 8) + *(bp + 1));
3195 png_uint_16 red, green, blue, w;
3197 red = (png_uint_16)(((*(sp))<<8) | *(sp + 1)); sp += 2;
3198 green = (png_uint_16)(((*(sp))<<8) | *(sp + 1)); sp += 2;
3199 blue = (png_uint_16)(((*(sp))<<8) | *(sp + 1)); sp += 2;
3206 png_uint_16 red_1 = png_ptr->gamma_16_to_1[(red&0xff)
3208 png_uint_16 green_1 =
3211 png_uint_16 blue_1 = png_ptr->gamma_16_to_1[(blue&0xff)
3213 png_uint_16 gray16 = (png_uint_16)((rc*red_1 + gc*green_1
3231 png_uint_16 red, green, blue, gray16;
3233 red = (png_uint_16)(((*(sp))<<8) | *(sp + 1)); sp += 2;
3234 green = (png_uint_16)(((*(sp))<<8) | *(sp + 1)); sp += 2;
3235 blue = (png_uint_16)(((*(sp))<<8) | *(sp + 1)); sp += 2;
3240 gray16 = (png_uint_16)((rc*red + gc*green + bc*blue)>>15);
3299 png_uint_16 red, green, blue, w;
3301 red = (png_uint_16)(((*(sp))<<8) | *(sp + 1)); sp += 2;
3302 green = (png_uint_16)(((*(sp))<<8) | *(sp + 1)); sp += 2;
3303 blue = (png_uint_16)(((*(sp))<<8) | *(sp + 1)); sp += 2;
3310 png_uint_16 red_1 = png_ptr->gamma_16_to_1[(red&0xff) >>
3313 png_uint_16 green_1 =
3317 png_uint_16 blue_1 = png_ptr->gamma_16_to_1[(blue&0xff) >>
3320 png_uint_16 gray16 = (png_uint_16)((rc * red_1
3342 png_uint_16 red, green, blue, gray16;
3343 red = (png_uint_16)((*(sp)<<8) | *(sp + 1)); sp += 2;
3344 green = (png_uint_16)((*(sp)<<8) | *(sp + 1)); sp += 2;
3345 blue = (png_uint_16)((*(sp)<<8) | *(sp + 1)); sp += 2;
3350 gray16 = (png_uint_16)((rc*red + gc*green + bc*blue)>>15);
3468 if ((png_uint_16)((*sp >> shift) & 0x01)
3496 if ((png_uint_16)((*sp >> shift) & 0x03)
3530 if ((png_uint_16)((*sp >> shift) & 0x03)
3559 if ((png_uint_16)((*sp >> shift) & 0x0f)
3593 if ((png_uint_16)((*sp >> shift) & 0x0f)
3649 png_uint_16 v;
3651 v = (png_uint_16)(((*sp) << 8) + *(sp + 1));
3674 png_uint_16 v;
3676 v = (png_uint_16)(((*sp) << 8) + *(sp + 1));
3746 png_uint_16 r = (png_uint_16)(((*sp) << 8) + *(sp + 1));
3748 png_uint_16 g = (png_uint_16)(((*(sp + 2)) << 8)
3751 png_uint_16 b = (png_uint_16)(((*(sp + 4)) << 8)
3769 png_uint_16 v = gamma_16[*(sp + 1) >> gamma_shift][*sp];
3790 png_uint_16 r = (png_uint_16)(((*sp) << 8) + *(sp + 1));
3792 png_uint_16 g = (png_uint_16)(((*(sp + 2)) << 8)
3795 png_uint_16 b = (png_uint_16)(((*(sp + 4)) << 8)
3826 png_uint_16 a = *(sp + 1);
3874 png_uint_16 a = (png_uint_16)(((*(sp + 2)) << 8)
3877 if (a == (png_uint_16)0xffff)
3879 png_uint_16 v;
3895 png_uint_16 g, v, w;
3914 png_uint_16 a = (png_uint_16)(((*(sp + 2)) << 8)
3925 png_uint_16 g, v;
3927 g = (png_uint_16)(((*sp) << 8) + *(sp + 1));
4024 png_uint_16 a = (png_uint_16)(((png_uint_16)(*(sp + 6))
4025 << 8) + (png_uint_16)(*(sp + 7)));
4027 if (a == (png_uint_16)0xffff)
4029 png_uint_16 v;
4057 png_uint_16 v, w;
4091 png_uint_16 a = (png_uint_16)(((png_uint_16)(*(sp + 6))
4092 << 8) + (png_uint_16)(*(sp + 7)));
4106 png_uint_16 v;
4108 png_uint_16 r = (png_uint_16)(((*sp) << 8) + *(sp + 1));
4109 png_uint_16 g = (png_uint_16)(((*(sp + 2)) << 8)
4111 png_uint_16 b = (png_uint_16)(((*(sp + 4)) << 8)
4185 png_uint_16 v;
4231 png_uint_16 v = gamma_16_table[*(sp + 1) >> gamma_shift][*sp];
4267 png_uint_16 v = gamma_16_table[*(sp + 1) >> gamma_shift][*sp];
4326 png_uint_16 v = gamma_16_table[*(sp + 1) >> gamma_shift][*sp];
4390 png_uint_16 v;
4580 png_uint_16 gray = (png_uint_16)(trans_color ? trans_color->gray : 0);
4588 gray = (png_uint_16)((gray & 0x01) * 0xff);
4616 gray = (png_uint_16)((gray & 0x03) * 0x55);
4641 gray = (png_uint_16)((gray & 0x0f) * 0x11);