Lines Matching refs:red
725 int r = (palette[i].red >> (8 - PNG_QUANTIZE_RED_BITS)); in png_set_quantize()
930 png_fixed_point red, png_fixed_point green) in png_set_rgb_to_gray_fixed() argument
967 if (red >= 0 && green >= 0 && red + green <= PNG_FP_1) in png_set_rgb_to_gray_fixed()
976 red_int = (png_uint_16)(((png_uint_32)red*32768)/100000); in png_set_rgb_to_gray_fixed()
986 if (red >= 0 && green >= 0) in png_set_rgb_to_gray_fixed()
1013 png_set_rgb_to_gray(png_structp png_ptr, int error_action, double red, in png_set_rgb_to_gray() argument
1020 png_fixed(png_ptr, red, "rgb to gray red coefficient"), in png_set_rgb_to_gray()
1131 png_ptr->background.red = in png_init_palette_transformations()
1132 png_ptr->palette[png_ptr->background.index].red; in png_init_palette_transformations()
1231 png_ptr->background.red = png_ptr->background.green = in png_init_rgb_transformations()
1236 png_ptr->trans_color.red = png_ptr->trans_color.green = in png_init_rgb_transformations()
1415 if (png_ptr->background.red == png_ptr->background.green && in png_init_read_transformations()
1416 png_ptr->background.red == png_ptr->background.blue) in png_init_read_transformations()
1419 png_ptr->background.gray = png_ptr->background.red; in png_init_read_transformations()
1460 CHOP(png_ptr->background.red); in png_init_read_transformations()
1482 png_ptr->background.red = (png_uint_16)(png_ptr->background.red * 257); in png_init_read_transformations()
1559 back.red = png_ptr->gamma_table[png_ptr->background.red]; in png_init_read_transformations()
1563 back_1.red = png_ptr->gamma_to_1[png_ptr->background.red]; in png_init_read_transformations()
1597 back.red = png_gamma_8bit_correct(png_ptr->background.red, in png_init_read_transformations()
1607 back.red = (png_byte)png_ptr->background.red; in png_init_read_transformations()
1614 back_1.red = png_gamma_8bit_correct(png_ptr->background.red, in png_init_read_transformations()
1624 back_1.red = (png_byte)png_ptr->background.red; in png_init_read_transformations()
1643 v = png_ptr->gamma_to_1[palette[i].red]; in png_init_read_transformations()
1644 png_composite(w, v, png_ptr->trans_alpha[i], back_1.red); in png_init_read_transformations()
1645 palette[i].red = png_ptr->gamma_from_1[w]; in png_init_read_transformations()
1658 palette[i].red = png_ptr->gamma_table[palette[i].red]; in png_init_read_transformations()
1713 if ((png_ptr->background.red != png_ptr->background.green) || in png_init_read_transformations()
1714 (png_ptr->background.red != png_ptr->background.blue) || in png_init_read_transformations()
1715 (png_ptr->background.red != png_ptr->background.gray)) in png_init_read_transformations()
1720 png_ptr->background_1.red = png_gamma_correct(png_ptr, in png_init_read_transformations()
1721 png_ptr->background.red, g); in png_init_read_transformations()
1732 png_ptr->background.red = png_gamma_correct(png_ptr, in png_init_read_transformations()
1733 png_ptr->background.red, gs); in png_init_read_transformations()
1746 png_ptr->background_1.red = png_ptr->background_1.green in png_init_read_transformations()
1749 png_ptr->background.red = png_ptr->background.green in png_init_read_transformations()
1778 palette[i].red = png_ptr->gamma_table[palette[i].red]; in png_init_read_transformations()
1802 back.red = (png_byte)png_ptr->background.red; in png_init_read_transformations()
1816 png_composite(palette[i].red, palette[i].red, in png_init_read_transformations()
1817 png_ptr->trans_alpha[i], back.red); in png_init_read_transformations()
1838 int shift = 8 - png_ptr->sig_bit.red; in png_init_read_transformations()
1848 int component = png_ptr->palette[i].red; in png_init_read_transformations()
1851 png_ptr->palette[i].red = (png_byte)component; in png_init_read_transformations()
2495 shift[channels++] = bit_depth - sig_bits->red; in png_do_unshift()
3260 png_byte red = *(sp++); in png_do_rgb_to_gray() local
3264 if (red != green || red != blue) in png_do_rgb_to_gray()
3266 red = png_ptr->gamma_to_1[red]; in png_do_rgb_to_gray()
3272 (rc*red + gc*green + bc*blue + 16384)>>15]; in png_do_rgb_to_gray()
3281 red = png_ptr->gamma_table[red]; in png_do_rgb_to_gray()
3283 *(dp++) = red; in png_do_rgb_to_gray()
3299 png_byte red = *(sp++); in png_do_rgb_to_gray() local
3303 if (red != green || red != blue) in png_do_rgb_to_gray()
3309 *(dp++) = (png_byte)((rc*red + gc*green + bc*blue)>>15); in png_do_rgb_to_gray()
3313 *(dp++) = red; in png_do_rgb_to_gray()
3332 png_uint_16 red, green, blue, w; in png_do_rgb_to_gray() local
3334 red = (png_uint_16)(((*(sp))<<8) | *(sp + 1)); sp += 2; in png_do_rgb_to_gray()
3338 if (red == green && red == blue) in png_do_rgb_to_gray()
3341 w = png_ptr->gamma_16_table[(red&0xff) in png_do_rgb_to_gray()
3342 >> png_ptr->gamma_shift][red>>8]; in png_do_rgb_to_gray()
3345 w = red; in png_do_rgb_to_gray()
3350 png_uint_16 red_1 = png_ptr->gamma_16_to_1[(red&0xff) in png_do_rgb_to_gray()
3351 >> png_ptr->gamma_shift][red>>8]; in png_do_rgb_to_gray()
3383 png_uint_16 red, green, blue, gray16; in png_do_rgb_to_gray() local
3385 red = (png_uint_16)(((*(sp))<<8) | *(sp + 1)); sp += 2; in png_do_rgb_to_gray()
3389 if (red != green || red != blue) in png_do_rgb_to_gray()
3396 gray16 = (png_uint_16)((rc*red + gc*green + bc*blue + 16384) >> in png_do_rgb_to_gray()
3471 palette[i].red = (png_byte)v; in png_build_grayscale_palette()
3760 if (*sp == png_ptr->trans_color.red && in png_do_compose()
3764 *sp = (png_byte)png_ptr->background.red; in png_do_compose()
3783 if (*sp == png_ptr->trans_color.red && in png_do_compose()
3787 *sp = (png_byte)png_ptr->background.red; in png_do_compose()
3810 if (r == png_ptr->trans_color.red && in png_do_compose()
3815 *sp = (png_byte)((png_ptr->background.red >> 8) & 0xff); in png_do_compose()
3816 *(sp + 1) = (png_byte)(png_ptr->background.red & 0xff); in png_do_compose()
3857 if (r == png_ptr->trans_color.red && in png_do_compose()
3861 *sp = (png_byte)((png_ptr->background.red >> 8) & 0xff); in png_do_compose()
3862 *(sp + 1) = (png_byte)(png_ptr->background.red & 0xff); in png_do_compose()
4025 *sp = (png_byte)png_ptr->background.red; in png_do_compose()
4035 png_composite(w, v, a, png_ptr->background_1.red); in png_do_compose()
4061 *sp = (png_byte)png_ptr->background.red; in png_do_compose()
4068 png_composite(*sp, *sp, a, png_ptr->background.red); in png_do_compose()
4111 *sp = (png_byte)((png_ptr->background.red >> 8) & 0xff); in png_do_compose()
4112 *(sp + 1) = (png_byte)(png_ptr->background.red & 0xff); in png_do_compose()
4127 png_composite_16(w, v, a, png_ptr->background_1.red); in png_do_compose()
4166 *sp = (png_byte)((png_ptr->background.red >> 8) & 0xff); in png_do_compose()
4167 *(sp + 1) = (png_byte)(png_ptr->background.red & 0xff); in png_do_compose()
4187 png_composite_16(v, r, a, png_ptr->background.red); in png_do_compose()
4602 *dp-- = palette[*sp].red; in png_do_expand_palette()
4621 *dp-- = palette[*sp].red; in png_do_expand_palette()
4801 png_byte red = (png_byte)(trans_color->red & 0xff); in png_do_expand() local
4808 if (*(sp - 2) == red && *(sp - 1) == green && *(sp) == blue) in png_do_expand()
4821 png_byte red_high = (png_byte)((trans_color->red >> 8) & 0xff); in png_do_expand()
4824 png_byte red_low = (png_byte)(trans_color->red & 0xff); in png_do_expand()
5043 png_uint_32 red = (s0 + s1 + 65536) & 0xffff; in png_do_read_intrapixel() local
5045 *(rp ) = (png_byte)((red >> 8) & 0xff); in png_do_read_intrapixel()
5046 *(rp + 1) = (png_byte)(red & 0xff); in png_do_read_intrapixel()