Lines Matching refs:green
726 int g = (palette[i].green >> (8 - PNG_QUANTIZE_GREEN_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()
977 green_int = (png_uint_16)(((png_uint_32)green*32768)/100000); in png_set_rgb_to_gray_fixed()
986 if (red >= 0 && green >= 0) in png_set_rgb_to_gray_fixed()
1014 double green) in png_set_rgb_to_gray() argument
1021 png_fixed(png_ptr, green, "rgb to gray green coefficient")); in png_set_rgb_to_gray()
1133 png_ptr->background.green = in png_init_palette_transformations()
1134 png_ptr->palette[png_ptr->background.index].green; 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()
1461 CHOP(png_ptr->background.green); in png_init_read_transformations()
1483 png_ptr->background.green = in png_init_read_transformations()
1484 (png_uint_16)(png_ptr->background.green * 257); in png_init_read_transformations()
1560 back.green = png_ptr->gamma_table[png_ptr->background.green]; in png_init_read_transformations()
1564 back_1.green = png_ptr->gamma_to_1[png_ptr->background.green]; in png_init_read_transformations()
1599 back.green = png_gamma_8bit_correct(png_ptr->background.green, in png_init_read_transformations()
1608 back.green = (png_byte)png_ptr->background.green; in png_init_read_transformations()
1616 back_1.green = png_gamma_8bit_correct( in png_init_read_transformations()
1617 png_ptr->background.green, g); in png_init_read_transformations()
1625 back_1.green = (png_byte)png_ptr->background.green; in png_init_read_transformations()
1647 v = png_ptr->gamma_to_1[palette[i].green]; in png_init_read_transformations()
1648 png_composite(w, v, png_ptr->trans_alpha[i], back_1.green); in png_init_read_transformations()
1649 palette[i].green = png_ptr->gamma_from_1[w]; in png_init_read_transformations()
1659 palette[i].green = png_ptr->gamma_table[palette[i].green]; in png_init_read_transformations()
1713 if ((png_ptr->background.red != png_ptr->background.green) || in png_init_read_transformations()
1723 png_ptr->background_1.green = png_gamma_correct(png_ptr, in png_init_read_transformations()
1724 png_ptr->background.green, g); in png_init_read_transformations()
1735 png_ptr->background.green = png_gamma_correct(png_ptr, in png_init_read_transformations()
1736 png_ptr->background.green, 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()
1779 palette[i].green = png_ptr->gamma_table[palette[i].green]; in png_init_read_transformations()
1803 back.green = (png_byte)png_ptr->background.green; in png_init_read_transformations()
1819 png_composite(palette[i].green, palette[i].green, in png_init_read_transformations()
1820 png_ptr->trans_alpha[i], back.green); in png_init_read_transformations()
1854 shift = 8 - png_ptr->sig_bit.green; in png_init_read_transformations()
1857 int component = png_ptr->palette[i].green; in png_init_read_transformations()
1860 png_ptr->palette[i].green = (png_byte)component; in png_init_read_transformations()
2496 shift[channels++] = bit_depth - sig_bits->green; in png_do_unshift()
3261 png_byte green = *(sp++); in png_do_rgb_to_gray() local
3264 if (red != green || red != blue) in png_do_rgb_to_gray()
3267 green = png_ptr->gamma_to_1[green]; in png_do_rgb_to_gray()
3272 (rc*red + gc*green + bc*blue + 16384)>>15]; in png_do_rgb_to_gray()
3300 png_byte green = *(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()
3332 png_uint_16 red, green, blue, w; in png_do_rgb_to_gray() local
3335 green = (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()
3353 png_ptr->gamma_16_to_1[(green&0xff) >> in png_do_rgb_to_gray()
3354 png_ptr->gamma_shift][green>>8]; in png_do_rgb_to_gray()
3383 png_uint_16 red, green, blue, gray16; in png_do_rgb_to_gray() local
3386 green = (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()
3472 palette[i].green = (png_byte)v; in png_build_grayscale_palette()
3761 *(sp + 1) == png_ptr->trans_color.green && in png_do_compose()
3765 *(sp + 1) = (png_byte)png_ptr->background.green; in png_do_compose()
3784 *(sp + 1) == png_ptr->trans_color.green && in png_do_compose()
3788 *(sp + 1) = (png_byte)png_ptr->background.green; in png_do_compose()
3811 g == png_ptr->trans_color.green && in png_do_compose()
3817 *(sp + 2) = (png_byte)((png_ptr->background.green >> 8) in png_do_compose()
3819 *(sp + 3) = (png_byte)(png_ptr->background.green in png_do_compose()
3858 g == png_ptr->trans_color.green && in png_do_compose()
3863 *(sp + 2) = (png_byte)((png_ptr->background.green >> 8) in png_do_compose()
3865 *(sp + 3) = (png_byte)(png_ptr->background.green in png_do_compose()
4026 *(sp + 1) = (png_byte)png_ptr->background.green; in png_do_compose()
4040 png_composite(w, v, a, png_ptr->background_1.green); in png_do_compose()
4062 *(sp + 1) = (png_byte)png_ptr->background.green; in png_do_compose()
4071 png_ptr->background.green); in png_do_compose()
4113 *(sp + 2) = (png_byte)((png_ptr->background.green >> 8) in png_do_compose()
4115 *(sp + 3) = (png_byte)(png_ptr->background.green in png_do_compose()
4135 png_composite_16(w, v, a, png_ptr->background_1.green); in png_do_compose()
4168 *(sp + 2) = (png_byte)((png_ptr->background.green >> 8) in png_do_compose()
4170 *(sp + 3) = (png_byte)(png_ptr->background.green in png_do_compose()
4191 png_composite_16(v, g, a, png_ptr->background.green); in png_do_compose()
4601 *dp-- = palette[*sp].green; in png_do_expand_palette()
4620 *dp-- = palette[*sp].green; in png_do_expand_palette()
4802 png_byte green = (png_byte)(trans_color->green & 0xff); in png_do_expand() local
4808 if (*(sp - 2) == red && *(sp - 1) == green && *(sp) == blue) in png_do_expand()
4822 png_byte green_high = (png_byte)((trans_color->green >> 8) & 0xff); in png_do_expand()
4825 png_byte green_low = (png_byte)(trans_color->green & 0xff); in png_do_expand()