Home | History | Annotate | Download | only in libpng

Lines Matching refs:green

500          int g = (palette[i].green >> (8 - PNG_DITHER_GREEN_BITS));
677 double green)
683 green > 21474.83647 || green < -21474.83648)
692 green_fixed = (int)((float)green*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)
737 green_int = (png_uint_16)(((png_uint_32)green*32768L)/100000L);
815 png_ptr->background.red == png_ptr->background.green &&
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
879 png_ptr->background.green =
880 png_ptr->palette[png_ptr->background.index].green;
944 back.green = png_ptr->gamma_table[png_ptr->background.green];
948 back_1.green = png_ptr->gamma_to_1[png_ptr->background.green];
980 back.green = (png_byte)png_ptr->background.green;
987 back.green = (png_byte)(pow(
988 (double)png_ptr->background.green/255, gs) * 255.0
996 back_1.green = (png_byte)(pow(
997 (double)png_ptr->background.green/255, g) * 255.0 + .5);
1017 v = png_ptr->gamma_to_1[palette[i].green];
1018 png_composite(w, v, png_ptr->trans[i], back_1.green);
1019 palette[i].green = png_ptr->gamma_from_1[w];
1029 palette[i].green = png_ptr->gamma_table[palette[i].green];
1074 if ((png_ptr->background.red != png_ptr->background.green) ||
1081 png_ptr->background_1.green = (png_uint_16)(pow(
1082 (double)png_ptr->background.green / m, g) * m + .5);
1087 png_ptr->background.green = (png_uint_16)(pow(
1088 (double)png_ptr->background.green / m, gs) * m + .5);
1095 png_ptr->background_1.red = png_ptr->background_1.green
1097 png_ptr->background.red = png_ptr->background.green
1114 palette[i].green = png_ptr->gamma_table[palette[i].green];
1137 back.green = (png_byte)png_ptr->background.green;
1151 png_composite(palette[i].green, palette[i].green,
1152 png_ptr->trans[i], back.green);
1171 int sg = 8 - png_ptr->sig_bit.green;
1183 png_ptr->palette[i].green >>= sg;
1704 shift[channels++] = row_info->bit_depth - sig_bits->green;
2360 png_byte green = png_ptr->gamma_to_1[*(sp++)];
2362 if (red != green || red != blue)
2366 (rc*red + gc*green + bc*blue)>>15];
2380 png_byte green = *(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;
2406 green = (png_uint_16)(((*(sp))<<8) | *(sp+1)); sp+=2;
2409 if (red == green && red == blue)
2416 png_ptr->gamma_16_to_1[(green&0xff) >>
2417 png_ptr->gamma_shift][green>>8];
2438 png_uint_16 red, green, blue, gray16;
2441 green = (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);
2465 png_byte green = png_ptr->gamma_to_1[*(sp++)];
2467 if (red != green || red != blue)
2470 [(rc*red + gc*green + bc*blue)>>15];
2482 png_byte green = *(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;
2504 green = (png_uint_16)(((*(sp))<<8) | *(sp+1)); sp+=2;
2507 if (red == green && red == blue)
2514 png_ptr->gamma_16_to_1[(green&0xff) >>
2515 png_ptr->gamma_shift][green>>8];
2538 png_uint_16 red, green, blue, gray16;
2540 green = (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);
2612 palette[i].green = (png_byte)v;
2636 back.green = png_ptr->gamma_table[png_ptr->background.green];
2640 back_1.green = png_ptr->gamma_to_1[png_ptr->background.green];
2653 back.green = png_ptr->background.green;
2661 back.green =
2662 (png_byte)(pow((double)png_ptr->background.green/255, g) *
2674 back_1.green =
2675 (png_byte)(pow((double)png_ptr->background.green/255, g) *
2700 v = png_ptr->gamma_to_1[png_ptr->palette[i].green];
2701 png_composite(w, v, png_ptr->trans[i], back_1.green);
2702 palette[i].green = png_ptr->gamma_from_1[w];
2711 palette[i].green = png_ptr->gamma_table[palette[i].green];
2729 palette[i].green = png_ptr->gamma_table[palette[i].green];
2745 palette[i].green = png_ptr->gamma_table[palette[i].green];
2761 back.green = (png_byte)png_ptr->background.green;
2769 palette[i].green = back.green;
2776 png_composite(palette[i].green, png_ptr->palette[i].green,
2777 png_ptr->trans[i], back.green);
2792 palette[i].green = (png_byte)png_ptr->background.green;
3066 *(sp + 1) == trans_values->green &&
3070 *(sp + 1) = (png_byte)background->green;
3088 *(sp + 1) == trans_values->green &&
3092 *(sp + 1) = (png_byte)background->green;
3109 if (r == trans_values->red && g == trans_values->green &&
3115 *(sp + 2) = (png_byte)((background->green >> 8) & 0xff);
3116 *(sp + 3) = (png_byte)(background->green & 0xff);
3144 if (r == trans_values->red && g == trans_values->green &&
3149 *(sp + 2) = (png_byte)((background->green >> 8) & 0xff);
3150 *(sp + 3) = (png_byte)(background->green & 0xff);
3327 *(dp + 1) = (png_byte)background->green;
3338 png_composite(w, v, a, background_1->green);
3364 *(dp + 1) = (png_byte)background->green;
3371 background->green);
3409 *(dp + 2) = (png_byte)((background->green >> 8) & 0xff);
3410 *(dp + 3) = (png_byte)(background->green & 0xff);
3424 png_composite_16(w, v, a, background_1->green);
3453 *(dp + 2) = (png_byte)((background->green >> 8) & 0xff);
3454 *(dp + 3) = (png_byte)(background->green & 0xff);
3471 png_composite_16(v, g, a, background->green);
3802 *dp-- = palette[*sp].green;
3820 *dp-- = palette[*sp].green;
3993 png_byte green = trans_value->green & 0xff;
3999 if (*(sp - 2) == red && *(sp - 1) == green && *(sp) == blue)
4011 png_byte green_high = (trans_value->green >> 8) & 0xff;
4014 png_byte green_low = trans_value->green & 0xff;
4253 if ((int)png_ptr->sig_bit.green > sig_bit)
4254 sig_bit = png_ptr->sig_bit.green;