Lines Matching refs:alpha

1726     png_uint_32 foreground, int foreground_encoding, png_uint_32 alpha,  in png_colormap_compose()  argument
1740 f = f * alpha + b * (255-alpha); in png_colormap_compose()
1764 png_uint_32 alpha, int encoding) in png_create_colormap_entry() argument
1799 alpha *= 257; in png_create_colormap_entry()
1820 alpha *= 257; in png_create_colormap_entry()
1833 alpha *= 257; in png_create_colormap_entry()
1855 alpha = PNG_DIV257(alpha); in png_create_colormap_entry()
1867 alpha = PNG_DIV257(alpha); in png_create_colormap_entry()
1902 entry[afirst ? 0 : 3] = (png_uint_16)alpha; in png_create_colormap_entry()
1906 if (alpha < 65535) in png_create_colormap_entry()
1908 if (alpha > 0) in png_create_colormap_entry()
1910 blue = (blue * alpha + 32767U)/65535U; in png_create_colormap_entry()
1911 green = (green * alpha + 32767U)/65535U; in png_create_colormap_entry()
1912 red = (red * alpha + 32767U)/65535U; in png_create_colormap_entry()
1924 entry[1 ^ afirst] = (png_uint_16)alpha; in png_create_colormap_entry()
1928 if (alpha < 65535) in png_create_colormap_entry()
1930 if (alpha > 0) in png_create_colormap_entry()
1931 green = (green * alpha + 32767U)/65535U; in png_create_colormap_entry()
1953 entry[afirst ? 0 : 3] = (png_byte)alpha; in png_create_colormap_entry()
1962 entry[1 ^ afirst] = (png_byte)alpha; in png_create_colormap_entry()
2487 png_uint_32 alpha = 51 * a; in png_image_read_colormap() local
2488 png_uint_32 back_rx = (255-alpha) * back_r; in png_image_read_colormap()
2489 png_uint_32 back_gx = (255-alpha) * back_g; in png_image_read_colormap()
2490 png_uint_32 back_bx = (255-alpha) * back_b; in png_image_read_colormap()
2494 png_uint_32 gray = png_sRGB_table[g*51] * alpha; in png_image_read_colormap()
3023 unsigned int alpha = *inrow++; in png_image_read_and_map() local
3030 if (alpha > 229) /* opaque */ in png_image_read_and_map()
3034 else if (alpha < 26) /* transparent */ in png_image_read_and_map()
3040 entry = 226 + 6 * PNG_DIV51(alpha) + PNG_DIV51(gray); in png_image_read_and_map()
3051 png_byte alpha = *inrow++; in png_image_read_and_map() local
3053 if (alpha == 0) in png_image_read_and_map()
3075 unsigned int alpha = inrow[3]; in png_image_read_and_map() local
3082 if (alpha >= 196) in png_image_read_and_map()
3086 else if (alpha < 64) in png_image_read_and_map()
3337 png_byte alpha = inrow[channels]; in png_image_read_composite() local
3339 if (alpha > 0) /* else no change to the output */ in png_image_read_composite()
3347 if (alpha < 255) /* else just use component */ in png_image_read_composite()
3356 component += (255-alpha)*png_sRGB_table[outrow[c]]; in png_image_read_composite()
3494 png_byte alpha = inrow[1]; in png_image_read_background() local
3496 if (alpha > 0) /* else no change to the output */ in png_image_read_background()
3500 if (alpha < 255) /* else just use component */ in png_image_read_background()
3506 component = png_sRGB_table[component] * alpha; in png_image_read_background()
3508 (255-alpha); in png_image_read_background()
3539 png_byte alpha = inrow[1]; in png_image_read_background() local
3541 if (alpha > 0) /* else use background */ in png_image_read_background()
3545 if (alpha < 255) /* else just use component */ in png_image_read_background()
3547 component = png_sRGB_table[component] * alpha; in png_image_read_background()
3548 component += background * (255-alpha); in png_image_read_background()
3635 png_uint_16 alpha = inrow[1]; in png_image_read_background() local
3637 if (alpha > 0) /* else 0 */ in png_image_read_background()
3639 if (alpha < 65535) /* else just use component */ in png_image_read_background()
3641 component *= alpha; in png_image_read_background()
3652 outrow[1 ^ swap_alpha] = alpha; in png_image_read_background()