component 79 contrib/examples/pngpixel.c printf("GRAY %u\n", component(row, x, 0, bit_depth, 1)); component 88 contrib/examples/pngpixel.c PNG_CONST unsigned int index = component(row, x, 0, bit_depth, 1); component 117 contrib/examples/pngpixel.c printf("RGB %u %u %u\n", component(row, x, 0, bit_depth, 3), component 118 contrib/examples/pngpixel.c component(row, x, 1, bit_depth, 3), component 119 contrib/examples/pngpixel.c component(row, x, 2, bit_depth, 3)); component 123 contrib/examples/pngpixel.c printf("GRAY+ALPHA %u %u\n", component(row, x, 0, bit_depth, 2), component 124 contrib/examples/pngpixel.c component(row, x, 1, bit_depth, 2)); component 128 contrib/examples/pngpixel.c printf("RGBA %u %u %u %u\n", component(row, x, 0, bit_depth, 4), component 129 contrib/examples/pngpixel.c component(row, x, 1, bit_depth, 4), component 130 contrib/examples/pngpixel.c component(row, x, 2, bit_depth, 4), component 131 contrib/examples/pngpixel.c component(row, x, 3, bit_depth, 4)); component 171 contrib/libtests/pngstest.c if (alpha <= component) component 175 contrib/libtests/pngstest.c return isRGB(component); component 178 contrib/libtests/pngstest.c return sRGB((double)component / alpha); component 91 contrib/tools/cvtcolor.c c[3] = component(prog, argv[3], to_linear); component 94 contrib/tools/cvtcolor.c c[2] = component(prog, argv[2], to_linear); component 97 contrib/tools/cvtcolor.c c[1] = component(prog, argv[1], to_linear); component 100 contrib/tools/cvtcolor.c c[0] = component(prog, argv[0], to_linear); component 3282 pngread.c png_uint_32 component = inrow[c]; component 3292 pngread.c component *= 257*255; /* =65535 */ component 3293 pngread.c component += (255-alpha)*png_sRGB_table[outrow[c]]; component 3299 pngread.c component = PNG_sRGB_FROM_LINEAR(component); component 3302 pngread.c outrow[c] = (png_byte)component; component 3440 pngread.c png_uint_32 component = inrow[0]; component 3448 pngread.c component = png_sRGB_table[component] * alpha; component 3449 pngread.c component += png_sRGB_table[outrow[0]] * component 3451 pngread.c component = PNG_sRGB_FROM_LINEAR(component); component 3454 pngread.c outrow[0] = (png_byte)component; component 3485 pngread.c png_uint_32 component = inrow[0]; component 3489 pngread.c component = png_sRGB_table[component] * alpha; component 3490 pngread.c component += background * (255-alpha); component 3491 pngread.c component = PNG_sRGB_FROM_LINEAR(component); component 3494 pngread.c outrow[0] = (png_byte)component; component 3574 pngread.c png_uint_32 component = inrow[0]; component 3581 pngread.c component *= alpha; component 3582 pngread.c component += 32767; component 3583 pngread.c component /= 65535; component 3588 pngread.c component = 0; component 3590 pngread.c outrow[swap_alpha] = (png_uint_16)component; component 1890 pngrtran.c int component = png_ptr->palette[i].red; component 1892 pngrtran.c component >>= shift; component 1893 pngrtran.c png_ptr->palette[i].red = (png_byte)component; component 1900 pngrtran.c int component = png_ptr->palette[i].green; component 1902 pngrtran.c component >>= shift; component 1903 pngrtran.c png_ptr->palette[i].green = (png_byte)component; component 1910 pngrtran.c int component = png_ptr->palette[i].blue; component 1912 pngrtran.c component >>= shift; component 1913 pngrtran.c png_ptr->palette[i].blue = (png_byte)component; component 1792 pngwrite.c png_uint_16 component = *in_ptr++; component 1801 pngwrite.c if (component >= alpha) component 1802 pngwrite.c component = 65535; component 1807 pngwrite.c else if (component > 0 && alpha < 65535) component 1809 pngwrite.c png_uint_32 calc = component * reciprocal; component 1811 pngwrite.c component = (png_uint_16)(calc >> 15); component 1814 pngwrite.c *out_ptr++ = component; component 1854 pngwrite.c if (component >= alpha || alpha < 128) component 1860 pngwrite.c else if (component > 0) component 1869 pngwrite.c component *= reciprocal; component 1870 pngwrite.c component += 64; /* round to nearest */ component 1871 pngwrite.c component >>= 7; component 1875 pngwrite.c component *= 255; component 1878 pngwrite.c return (png_byte)PNG_sRGB_FROM_LINEAR(component); component 1967 pngwrite.c png_uint_32 component = *in_ptr++; component 1969 pngwrite.c component *= 255; component 1970 pngwrite.c *out_ptr++ = (png_byte)PNG_sRGB_FROM_LINEAR(component);