Lines Matching refs:red
756 int r = (palette[i].red >> (8 - PNG_QUANTIZE_RED_BITS)); in png_set_quantize()
953 png_fixed_point red, png_fixed_point green) in png_set_rgb_to_gray_fixed() argument
996 if (red >= 0 && green >= 0 && red + green <= PNG_FP_1) in png_set_rgb_to_gray_fixed()
1005 red_int = (png_uint_16)(((png_uint_32)red*32768)/100000); in png_set_rgb_to_gray_fixed()
1015 if (red >= 0 && green >= 0) in png_set_rgb_to_gray_fixed()
1042 png_set_rgb_to_gray(png_structrp png_ptr, int error_action, double red, in png_set_rgb_to_gray() argument
1046 png_fixed(png_ptr, red, "rgb to gray red coefficient"), in png_set_rgb_to_gray()
1160 png_ptr->background.red = in png_init_palette_transformations()
1161 png_ptr->palette[png_ptr->background.index].red; in png_init_palette_transformations()
1260 png_ptr->background.red = png_ptr->background.green = in png_init_rgb_transformations()
1265 png_ptr->trans_color.red = png_ptr->trans_color.green = in png_init_rgb_transformations()
1454 if (png_ptr->background.red == png_ptr->background.green && in png_init_read_transformations()
1455 png_ptr->background.red == png_ptr->background.blue) in png_init_read_transformations()
1458 png_ptr->background.gray = png_ptr->background.red; in png_init_read_transformations()
1500 CHOP(png_ptr->background.red); in png_init_read_transformations()
1522 png_ptr->background.red = (png_uint_16)(png_ptr->background.red * 257); in png_init_read_transformations()
1599 back.red = png_ptr->gamma_table[png_ptr->background.red]; in png_init_read_transformations()
1603 back_1.red = png_ptr->gamma_to_1[png_ptr->background.red]; in png_init_read_transformations()
1637 back.red = png_gamma_8bit_correct(png_ptr->background.red, in png_init_read_transformations()
1647 back.red = (png_byte)png_ptr->background.red; in png_init_read_transformations()
1654 back_1.red = png_gamma_8bit_correct(png_ptr->background.red, in png_init_read_transformations()
1664 back_1.red = (png_byte)png_ptr->background.red; in png_init_read_transformations()
1683 v = png_ptr->gamma_to_1[palette[i].red]; in png_init_read_transformations()
1684 png_composite(w, v, png_ptr->trans_alpha[i], back_1.red); in png_init_read_transformations()
1685 palette[i].red = png_ptr->gamma_from_1[w]; in png_init_read_transformations()
1698 palette[i].red = png_ptr->gamma_table[palette[i].red]; in png_init_read_transformations()
1754 if ((png_ptr->background.red != png_ptr->background.green) || in png_init_read_transformations()
1755 (png_ptr->background.red != png_ptr->background.blue) || in png_init_read_transformations()
1756 (png_ptr->background.red != png_ptr->background.gray)) in png_init_read_transformations()
1761 png_ptr->background_1.red = png_gamma_correct(png_ptr, in png_init_read_transformations()
1762 png_ptr->background.red, g); in png_init_read_transformations()
1773 png_ptr->background.red = png_gamma_correct(png_ptr, in png_init_read_transformations()
1774 png_ptr->background.red, gs); in png_init_read_transformations()
1787 png_ptr->background_1.red = png_ptr->background_1.green in png_init_read_transformations()
1790 png_ptr->background.red = png_ptr->background.green in png_init_read_transformations()
1819 palette[i].red = png_ptr->gamma_table[palette[i].red]; in png_init_read_transformations()
1843 back.red = (png_byte)png_ptr->background.red; in png_init_read_transformations()
1857 png_composite(palette[i].red, palette[i].red, in png_init_read_transformations()
1858 png_ptr->trans_alpha[i], back.red); in png_init_read_transformations()
1879 int shift = 8 - png_ptr->sig_bit.red; in png_init_read_transformations()
1890 int component = png_ptr->palette[i].red; in png_init_read_transformations()
1893 png_ptr->palette[i].red = (png_byte)component; in png_init_read_transformations()
2250 shift[channels++] = bit_depth - sig_bits->red; in png_do_unshift()
3015 png_byte red = *(sp++); in png_do_rgb_to_gray() local
3019 if (red != green || red != blue) in png_do_rgb_to_gray()
3021 red = png_ptr->gamma_to_1[red]; in png_do_rgb_to_gray()
3027 (rc*red + gc*green + bc*blue + 16384)>>15]; in png_do_rgb_to_gray()
3036 red = png_ptr->gamma_table[red]; in png_do_rgb_to_gray()
3038 *(dp++) = red; in png_do_rgb_to_gray()
3054 png_byte red = *(sp++); in png_do_rgb_to_gray() local
3058 if (red != green || red != blue) in png_do_rgb_to_gray()
3064 *(dp++) = (png_byte)((rc*red + gc*green + bc*blue)>>15); in png_do_rgb_to_gray()
3068 *(dp++) = red; in png_do_rgb_to_gray()
3087 png_uint_16 red, green, blue, w; in png_do_rgb_to_gray() local
3089 red = (png_uint_16)(((*(sp))<<8) | *(sp + 1)); sp += 2; in png_do_rgb_to_gray()
3093 if (red == green && red == blue) in png_do_rgb_to_gray()
3096 w = png_ptr->gamma_16_table[(red&0xff) in png_do_rgb_to_gray()
3097 >> png_ptr->gamma_shift][red>>8]; in png_do_rgb_to_gray()
3100 w = red; in png_do_rgb_to_gray()
3105 png_uint_16 red_1 = png_ptr->gamma_16_to_1[(red&0xff) in png_do_rgb_to_gray()
3106 >> png_ptr->gamma_shift][red>>8]; in png_do_rgb_to_gray()
3138 png_uint_16 red, green, blue, gray16; in png_do_rgb_to_gray() local
3140 red = (png_uint_16)(((*(sp))<<8) | *(sp + 1)); sp += 2; in png_do_rgb_to_gray()
3144 if (red != green || red != blue) in png_do_rgb_to_gray()
3151 gray16 = (png_uint_16)((rc*red + gc*green + bc*blue + 16384) >> in png_do_rgb_to_gray()
3463 if (*sp == png_ptr->trans_color.red && in png_do_compose()
3467 *sp = (png_byte)png_ptr->background.red; in png_do_compose()
3486 if (*sp == png_ptr->trans_color.red && in png_do_compose()
3490 *sp = (png_byte)png_ptr->background.red; in png_do_compose()
3513 if (r == png_ptr->trans_color.red && in png_do_compose()
3518 *sp = (png_byte)((png_ptr->background.red >> 8) & 0xff); in png_do_compose()
3519 *(sp + 1) = (png_byte)(png_ptr->background.red & 0xff); in png_do_compose()
3560 if (r == png_ptr->trans_color.red && in png_do_compose()
3564 *sp = (png_byte)((png_ptr->background.red >> 8) & 0xff); in png_do_compose()
3565 *(sp + 1) = (png_byte)(png_ptr->background.red & 0xff); in png_do_compose()
3728 *sp = (png_byte)png_ptr->background.red; in png_do_compose()
3738 png_composite(w, v, a, png_ptr->background_1.red); in png_do_compose()
3764 *sp = (png_byte)png_ptr->background.red; in png_do_compose()
3771 png_composite(*sp, *sp, a, png_ptr->background.red); in png_do_compose()
3814 *sp = (png_byte)((png_ptr->background.red >> 8) & 0xff); in png_do_compose()
3815 *(sp + 1) = (png_byte)(png_ptr->background.red & 0xff); in png_do_compose()
3830 png_composite_16(w, v, a, png_ptr->background_1.red); in png_do_compose()
3869 *sp = (png_byte)((png_ptr->background.red >> 8) & 0xff); in png_do_compose()
3870 *(sp + 1) = (png_byte)(png_ptr->background.red & 0xff); in png_do_compose()
3890 png_composite_16(v, r, a, png_ptr->background.red); in png_do_compose()
4305 *dp-- = palette[*sp].red; in png_do_expand_palette()
4324 *dp-- = palette[*sp].red; in png_do_expand_palette()
4504 png_byte red = (png_byte)(trans_color->red & 0xff); in png_do_expand() local
4511 if (*(sp - 2) == red && *(sp - 1) == green && *(sp) == blue) in png_do_expand()
4524 png_byte red_high = (png_byte)((trans_color->red >> 8) & 0xff); in png_do_expand()
4527 png_byte red_low = (png_byte)(trans_color->red & 0xff); in png_do_expand()