Lines Matching refs:gray

1233          int gray = png_ptr->background.gray;  in png_init_rgb_transformations()  local
1234 int trans_gray = png_ptr->trans_color.gray; in png_init_rgb_transformations()
1239 gray *= 0xff; in png_init_rgb_transformations()
1244 gray *= 0x55; in png_init_rgb_transformations()
1249 gray *= 0x11; in png_init_rgb_transformations()
1264 png_ptr->background.blue = (png_uint_16)gray; in png_init_rgb_transformations()
1461 png_ptr->background.gray = png_ptr->background.red; in png_init_read_transformations()
1506 CHOP(png_ptr->background.gray); in png_init_read_transformations()
1529 png_ptr->background.gray = (png_uint_16)(png_ptr->background.gray * 257); in png_init_read_transformations()
1749 png_ptr->background_1.gray = png_gamma_correct(png_ptr, in png_init_read_transformations()
1750 png_ptr->background.gray, g); in png_init_read_transformations()
1753 png_ptr->background.gray = png_gamma_correct(png_ptr, in png_init_read_transformations()
1754 png_ptr->background.gray, gs); in png_init_read_transformations()
1758 (png_ptr->background.red != png_ptr->background.gray)) in png_init_read_transformations()
1790 = png_ptr->background_1.blue = png_ptr->background_1.gray; in png_init_read_transformations()
1793 = png_ptr->background.blue = png_ptr->background.gray; in png_init_read_transformations()
2261 shift[channels++] = bit_depth - sig_bits->gray; in png_do_unshift()
3223 == png_ptr->trans_color.gray) in png_do_compose()
3226 tmp |= png_ptr->background.gray << shift; in png_do_compose()
3252 == png_ptr->trans_color.gray) in png_do_compose()
3255 tmp |= png_ptr->background.gray << shift; in png_do_compose()
3288 == png_ptr->trans_color.gray) in png_do_compose()
3291 tmp |= png_ptr->background.gray << shift; in png_do_compose()
3318 == png_ptr->trans_color.gray) in png_do_compose()
3321 tmp |= png_ptr->background.gray << shift; in png_do_compose()
3354 == png_ptr->trans_color.gray) in png_do_compose()
3357 tmp |= png_ptr->background.gray << shift; in png_do_compose()
3382 if (*sp == png_ptr->trans_color.gray) in png_do_compose()
3383 *sp = (png_byte)png_ptr->background.gray; in png_do_compose()
3395 if (*sp == png_ptr->trans_color.gray) in png_do_compose()
3396 *sp = (png_byte)png_ptr->background.gray; in png_do_compose()
3414 if (v == png_ptr->trans_color.gray) in png_do_compose()
3417 *sp = (png_byte)((png_ptr->background.gray >> 8) in png_do_compose()
3419 *(sp + 1) = (png_byte)(png_ptr->background.gray in png_do_compose()
3441 if (v == png_ptr->trans_color.gray) in png_do_compose()
3443 *sp = (png_byte)((png_ptr->background.gray >> 8) in png_do_compose()
3445 *(sp + 1) = (png_byte)(png_ptr->background.gray in png_do_compose()
3605 *sp = (png_byte)png_ptr->background.gray; in png_do_compose()
3613 png_composite(w, v, a, png_ptr->background_1.gray); in png_do_compose()
3629 *sp = (png_byte)png_ptr->background.gray; in png_do_compose()
3632 png_composite(*sp, *sp, a, png_ptr->background.gray); in png_do_compose()
3660 *sp = (png_byte)((png_ptr->background.gray >> 8) in png_do_compose()
3662 *(sp + 1) = (png_byte)(png_ptr->background.gray & 0xff); in png_do_compose()
3670 png_composite_16(v, g, a, png_ptr->background_1.gray); in png_do_compose()
3692 *sp = (png_byte)((png_ptr->background.gray >> 8) in png_do_compose()
3694 *(sp + 1) = (png_byte)(png_ptr->background.gray & 0xff); in png_do_compose()
3702 png_composite_16(v, g, a, png_ptr->background.gray); in png_do_compose()
4363 unsigned int gray = trans_color != NULL ? trans_color->gray : 0; in png_do_expand() local
4371 gray = (gray & 0x01) * 0xff; in png_do_expand()
4399 gray = (gray & 0x03) * 0x55; in png_do_expand()
4424 gray = (gray & 0x0f) * 0x11; in png_do_expand()
4459 gray = gray & 0xff; in png_do_expand()
4465 if ((*sp & 0xffU) == gray) in png_do_expand()
4477 unsigned int gray_high = (gray >> 8) & 0xff; in png_do_expand()
4478 unsigned int gray_low = gray & 0xff; in png_do_expand()