Lines Matching refs:red
725 int r = (palette[i].red >> (8 - PNG_QUANTIZE_RED_BITS));
930 png_fixed_point red, png_fixed_point green)
967 if (red >= 0 && green >= 0 && red + green <= PNG_FP_1)
976 red_int = (png_uint_16)(((png_uint_32)red*32768)/100000);
986 if (red >= 0 && green >= 0)
1013 png_set_rgb_to_gray(png_structp png_ptr, int error_action, double red,
1020 png_fixed(png_ptr, red, "rgb to gray red coefficient"),
1131 png_ptr->background.red =
1132 png_ptr->palette[png_ptr->background.index].red;
1231 png_ptr->background.red = png_ptr->background.green =
1236 png_ptr->trans_color.red = png_ptr->trans_color.green =
1415 if (png_ptr->background.red == png_ptr->background.green &&
1416 png_ptr->background.red == png_ptr->background.blue)
1419 png_ptr->background.gray = png_ptr->background.red;
1460 CHOP(png_ptr->background.red);
1482 png_ptr->background.red = (png_uint_16)(png_ptr->background.red * 257);
1559 back.red = png_ptr->gamma_table[png_ptr->background.red];
1563 back_1.red = png_ptr->gamma_to_1[png_ptr->background.red];
1597 back.red = png_gamma_8bit_correct(png_ptr->background.red,
1607 back.red = (png_byte)png_ptr->background.red;
1614 back_1.red = png_gamma_8bit_correct(png_ptr->background.red,
1624 back_1.red = (png_byte)png_ptr->background.red;
1643 v = png_ptr->gamma_to_1[palette[i].red];
1644 png_composite(w, v, png_ptr->trans_alpha[i], back_1.red);
1645 palette[i].red = png_ptr->gamma_from_1[w];
1658 palette[i].red = png_ptr->gamma_table[palette[i].red];
1713 if ((png_ptr->background.red != png_ptr->background.green) ||
1714 (png_ptr->background.red != png_ptr->background.blue) ||
1715 (png_ptr->background.red != png_ptr->background.gray))
1720 png_ptr->background_1.red = png_gamma_correct(png_ptr,
1721 png_ptr->background.red, g);
1732 png_ptr->background.red = png_gamma_correct(png_ptr,
1733 png_ptr->background.red, gs);
1746 png_ptr->background_1.red = png_ptr->background_1.green
1749 png_ptr->background.red = png_ptr->background.green
1778 palette[i].red = png_ptr->gamma_table[palette[i].red];
1802 back.red = (png_byte)png_ptr->background.red;
1816 png_composite(palette[i].red, palette[i].red,
1817 png_ptr->trans_alpha[i], back.red);
1838 int shift = 8 - png_ptr->sig_bit.red;
1848 int component = png_ptr->palette[i].red;
1851 png_ptr->palette[i].red = (png_byte)component;
2495 shift[channels++] = bit_depth - sig_bits->red;
3222 * the API takes just red and green coefficients the blue coefficient is
3260 png_byte red = *(sp++);
3264 if (red != green || red != blue)
3266 red = png_ptr->gamma_to_1[red];
3272 (rc*red + gc*green + bc*blue + 16384)>>15];
3281 red = png_ptr->gamma_table[red];
3283 *(dp++) = red;
3299 png_byte red = *(sp++);
3303 if (red != green || red != blue)
3309 *(dp++) = (png_byte)((rc*red + gc*green + bc*blue)>>15);
3313 *(dp++) = red;
3332 png_uint_16 red, green, blue, w;
3334 red = (png_uint_16)(((*(sp))<<8) | *(sp + 1)); sp += 2;
3338 if (red == green && red == blue)
3341 w = png_ptr->gamma_16_table[(red&0xff)
3342 >> png_ptr->gamma_shift][red>>8];
3345 w = red;
3350 png_uint_16 red_1 = png_ptr->gamma_16_to_1[(red&0xff)
3351 >> png_ptr->gamma_shift][red>>8];
3383 png_uint_16 red, green, blue, gray16;
3385 red = (png_uint_16)(((*(sp))<<8) | *(sp + 1)); sp += 2;
3389 if (red != green || red != blue)
3396 gray16 = (png_uint_16)((rc*red + gc*green + bc*blue + 16384) >>
3471 palette[i].red = (png_byte)v;
3756 if (*sp == png_ptr->trans_color.red &&
3760 *sp = (png_byte)png_ptr->background.red;
3779 if (*sp == png_ptr->trans_color.red &&
3783 *sp = (png_byte)png_ptr->background.red;
3806 if (r == png_ptr->trans_color.red &&
3811 *sp = (png_byte)((png_ptr->background.red >> 8) & 0xff);
3812 *(sp + 1) = (png_byte)(png_ptr->background.red & 0xff);
3850 if (r == png_ptr->trans_color.red &&
3854 *sp = (png_byte)((png_ptr->background.red >> 8) & 0xff);
3855 *(sp + 1) = (png_byte)(png_ptr->background.red & 0xff);
4013 *sp = (png_byte)png_ptr->background.red;
4023 png_composite(w, v, a, png_ptr->background_1.red);
4049 *sp = (png_byte)png_ptr->background.red;
4056 png_composite(*sp, *sp, a, png_ptr->background.red);
4099 *sp = (png_byte)((png_ptr->background.red >> 8) & 0xff);
4100 *(sp + 1) = (png_byte)(png_ptr->background.red & 0xff);
4112 png_composite_16(w, v, a, png_ptr->background_1.red);
4148 *sp = (png_byte)((png_ptr->background.red >> 8) & 0xff);
4149 *(sp + 1) = (png_byte)(png_ptr->background.red & 0xff);
4166 png_composite_16(v, r, a, png_ptr->background.red);
4581 *dp-- = palette[*sp].red;
4600 *dp-- = palette[*sp].red;
4780 png_byte red = (png_byte)(trans_color->red & 0xff);
4787 if (*(sp - 2) == red && *(sp - 1) == green && *(sp) == blue)
4800 png_byte red_high = (png_byte)((trans_color->red >> 8) & 0xff);
4803 png_byte red_low = (png_byte)(trans_color->red & 0xff);
5022 png_uint_32 red = (s0 + s1 + 65536) & 0xffff;
5024 *(rp ) = (png_byte)((red >> 8) & 0xff);
5025 *(rp + 1) = (png_byte)(red & 0xff);