Lines Matching refs:red
499 int r = (palette[i].red >> (8 - PNG_DITHER_RED_BITS));
676 png_set_rgb_to_gray(png_structp png_ptr, int error_action, double red,
682 if (red > 21474.83647 || red < -21474.83648 ||
691 red_fixed = (int)((float)red*100000.0 + 0.5);
700 png_fixed_point red, png_fixed_point green)
729 if (red < 0 || green < 0)
734 else if (red + green < 100000L)
736 red_int = (png_uint_16)(((png_uint_32)red*32768L)/100000L);
815 png_ptr->background.red == png_ptr->background.green &&
816 png_ptr->background.red == png_ptr->background.blue)
819 png_ptr->background.gray = png_ptr->background.red;
833 png_ptr->background.red = png_ptr->background.green
838 png_ptr->trans_values.red = png_ptr->trans_values.green
845 png_ptr->background.red = png_ptr->background.green
850 png_ptr->trans_values.red = png_ptr->trans_values.green
857 png_ptr->background.red = png_ptr->background.green
862 png_ptr->trans_values.red = png_ptr->trans_values.green
870 png_ptr->background.red = png_ptr->background.green
877 png_ptr->background.red =
878 png_ptr->palette[png_ptr->background.index].red;
943 back.red = png_ptr->gamma_table[png_ptr->background.red];
947 back_1.red = png_ptr->gamma_to_1[png_ptr->background.red];
979 back.red = (png_byte)png_ptr->background.red;
985 red = (png_byte)(pow(
986 (double)png_ptr->background.red/255, gs) * 255.0 + .5);
994 back_1.red = (png_byte)(pow(
995 (double)png_ptr->background.red/255, g) * 255.0 + .5);
1013 v = png_ptr->gamma_to_1[palette[i].red];
1014 png_composite(w, v, png_ptr->trans[i], back_1.red);
1015 palette[i].red = png_ptr->gamma_from_1[w];
1028 palette[i].red = png_ptr->gamma_table[palette[i].red];
1074 if ((png_ptr->background.red != png_ptr->background.green) ||
1075 (png_ptr->background.red != png_ptr->background.blue) ||
1076 (png_ptr->background.red != png_ptr->background.gray))
1079 png_ptr->background_1.red = (png_uint_16)(pow(
1080 (double)png_ptr->background.red / m, g) * m + .5);
1085 png_ptr->background.red = (png_uint_16)(pow(
1086 (double)png_ptr->background.red / m, gs) * m + .5);
1095 png_ptr->background_1.red = png_ptr->background_1.green
1097 png_ptr->background.red = png_ptr->background.green
1113 palette[i].red = png_ptr->gamma_table[palette[i].red];
1136 back.red = (png_byte)png_ptr->background.red;
1149 png_composite(palette[i].red, palette[i].red,
1150 png_ptr->trans[i], back.red);
1170 int sr = 8 - png_ptr->sig_bit.red;
1182 png_ptr->palette[i].red >>= sr;
1703 shift[channels++] = row_info->bit_depth - sig_bits->red;
2359 png_byte red = png_ptr->gamma_to_1[*(sp++)];
2362 if (red != green || red != blue)
2366 (rc*red + gc*green + bc*blue)>>15];
2379 png_byte red = *(sp++);
2382 if (red != green || red != blue)
2385 *(dp++) = (png_byte)((rc*red + gc*green + bc*blue)>>15);
2403 png_uint_16 red, green, blue, w;
2405 red = (png_uint_16)(((*(sp))<<8) | *(sp+1)); sp+=2;
2409 if (red == green && red == blue)
2410 w = red;
2413 png_uint_16 red_1 = png_ptr->gamma_16_to_1[(red&0xff) >>
2414 png_ptr->gamma_shift][red>>8];
2438 png_uint_16 red, green, blue, gray16;
2440 red = (png_uint_16)(((*(sp))<<8) | *(sp+1)); sp+=2;
2444 if (red != green || red != blue)
2446 gray16 = (png_uint_16)((rc*red + gc*green + bc*blue)>>15);
2464 png_byte red = png_ptr->gamma_to_1[*(sp++)];
2467 if (red != green || red != blue)
2470 [(rc*red + gc*green + bc*blue)>>15];
2481 png_byte red = *(sp++);
2484 if (red != green || red != blue)
2486 *(dp++) = (png_byte)((rc*red + gc*green + bc*blue)>>15);
2501 png_uint_16 red, green, blue, w;
2503 red = (png_uint_16)(((*(sp))<<8) | *(sp+1)); sp+=2;
2507 if (red == green && red == blue)
2508 w = red;
2511 png_uint_16 red_1 = png_ptr->gamma_16_to_1[(red&0xff) >>
2512 png_ptr->gamma_shift][red>>8];
2538 png_uint_16 red, green, blue, gray16;
2539 red = (png_uint_16)((*(sp)<<8) | *(sp+1)); sp+=2;
2542 if (red != green || red != blue)
2544 gray16 = (png_uint_16)((rc*red + gc*green + bc*blue)>>15);
2611 palette[i].red = (png_byte)v;
2635 back.red = png_ptr->gamma_table[png_ptr->background.red];
2639 back_1.red = png_ptr->gamma_to_1[png_ptr->background.red];
2652 back.red = png_ptr->background.red;
2658 back.red =
2659 (png_byte)(pow((double)png_ptr->background.red/255, g) *
2671 back_1.red =
2672 (png_byte)(pow((double)png_ptr->background.red/255, g) *
2696 v = png_ptr->gamma_to_1[png_ptr->palette[i].red];
2697 png_composite(w, v, png_ptr->trans[i], back_1.red);
2698 palette[i].red = png_ptr->gamma_from_1[w];
2710 palette[i].red = png_ptr->gamma_table[palette[i].red];
2722 if (palette[i].red == (png_byte)png_ptr->trans_values.gray)
2728 palette[i].red = png_ptr->gamma_table[palette[i].red];
2744 palette[i].red = png_ptr->gamma_table[palette[i].red];
2760 back.red = (png_byte)png_ptr->background.red;
2768 palette[i].red = back.red;
2774 png_composite(palette[i].red, png_ptr->palette[i].red,
2775 png_ptr->trans[i], back.red);
2791 palette[i].red = (png_byte)png_ptr->background.red;
3065 if (*sp == trans_values->red &&
3069 *sp = (png_byte)background->red;
3087 if (*sp == trans_values->red &&
3091 *sp = (png_byte)background->red;
3109 if (r == trans_values->red && g == trans_values->green &&
3113 *sp = (png_byte)((background->red >> 8) & 0xff);
3114 *(sp + 1) = (png_byte)(background->red & 0xff);
3144 if (r == trans_values->red && g == trans_values->green &&
3147 *sp = (png_byte)((background->red >> 8) & 0xff);
3148 *(sp + 1) = (png_byte)(background->red & 0xff);
3326 *dp = (png_byte)background->red;
3335 png_composite(w, v, a, background_1->red);
3363 *dp = (png_byte)background->red;
3369 png_composite(*dp, *sp, a, background->red);
3407 *dp = (png_byte)((background->red >> 8) & 0xff);
3408 red & 0xff);
3419 png_composite_16(w, v, a, background_1->red);
3451 *dp = (png_byte)((background->red >> 8) & 0xff);
3452 *(dp + 1) = (png_byte)(background->red & 0xff);
3468 png_composite_16(v, r, a, background->red);
3803 *dp-- = palette[*sp].red;
3821 *dp-- = palette[*sp].red;
3992 png_byte red = trans_value->red & 0xff;
3999 if (*(sp - 2) == red && *(sp - 1) == green && *(sp) == blue)
4010 png_byte red_high = (trans_value->red >> 8) & 0xff;
4013 png_byte red_low = trans_value->red & 0xff;
4251 sig_bit = (int)png_ptr->sig_bit.red;
4456 png_uint_32 red = (png_uint_32)((s0 + s1 + 65536L) & 0xffffL);
4458 *(rp ) = (png_byte)((red >> 8) & 0xff);
4459 *(rp+1) = (png_byte)(red & 0xff);