Lines Matching refs:background
113 png_memcpy(&(png_ptr->background), background_color, in png_set_background_fixed()
335 png_memset(&png_ptr->background, 0, sizeof png_ptr->background); in png_set_alpha_mode_fixed()
1131 png_ptr->background.red = in png_init_palette_transformations()
1132 png_ptr->palette[png_ptr->background.index].red; in png_init_palette_transformations()
1133 png_ptr->background.green = in png_init_palette_transformations()
1134 png_ptr->palette[png_ptr->background.index].green; in png_init_palette_transformations()
1135 png_ptr->background.blue = in png_init_palette_transformations()
1136 png_ptr->palette[png_ptr->background.index].blue; in png_init_palette_transformations()
1201 int gray = png_ptr->background.gray; in png_init_rgb_transformations()
1231 png_ptr->background.red = png_ptr->background.green = in png_init_rgb_transformations()
1232 png_ptr->background.blue = (png_uint_16)gray; in png_init_rgb_transformations()
1415 if (png_ptr->background.red == png_ptr->background.green && in png_init_read_transformations()
1416 png_ptr->background.red == png_ptr->background.blue) in png_init_read_transformations()
1419 png_ptr->background.gray = png_ptr->background.red; in png_init_read_transformations()
1460 CHOP(png_ptr->background.red); in png_init_read_transformations()
1461 CHOP(png_ptr->background.green); in png_init_read_transformations()
1462 CHOP(png_ptr->background.blue); in png_init_read_transformations()
1463 CHOP(png_ptr->background.gray); in png_init_read_transformations()
1482 png_ptr->background.red = (png_uint_16)(png_ptr->background.red * 257); in png_init_read_transformations()
1483 png_ptr->background.green = in png_init_read_transformations()
1484 (png_uint_16)(png_ptr->background.green * 257); in png_init_read_transformations()
1485 png_ptr->background.blue = (png_uint_16)(png_ptr->background.blue * 257); in png_init_read_transformations()
1486 png_ptr->background.gray = (png_uint_16)(png_ptr->background.gray * 257); in png_init_read_transformations()
1501 png_ptr->background_1 = png_ptr->background; in png_init_read_transformations()
1559 back.red = png_ptr->gamma_table[png_ptr->background.red]; in png_init_read_transformations()
1560 back.green = png_ptr->gamma_table[png_ptr->background.green]; in png_init_read_transformations()
1561 back.blue = png_ptr->gamma_table[png_ptr->background.blue]; in png_init_read_transformations()
1563 back_1.red = png_ptr->gamma_to_1[png_ptr->background.red]; in png_init_read_transformations()
1564 back_1.green = png_ptr->gamma_to_1[png_ptr->background.green]; in png_init_read_transformations()
1565 back_1.blue = png_ptr->gamma_to_1[png_ptr->background.blue]; in png_init_read_transformations()
1597 back.red = png_gamma_8bit_correct(png_ptr->background.red, in png_init_read_transformations()
1599 back.green = png_gamma_8bit_correct(png_ptr->background.green, in png_init_read_transformations()
1601 back.blue = png_gamma_8bit_correct(png_ptr->background.blue, in png_init_read_transformations()
1607 back.red = (png_byte)png_ptr->background.red; in png_init_read_transformations()
1608 back.green = (png_byte)png_ptr->background.green; in png_init_read_transformations()
1609 back.blue = (png_byte)png_ptr->background.blue; in png_init_read_transformations()
1614 back_1.red = png_gamma_8bit_correct(png_ptr->background.red, in png_init_read_transformations()
1617 png_ptr->background.green, g); in png_init_read_transformations()
1618 back_1.blue = png_gamma_8bit_correct(png_ptr->background.blue, in png_init_read_transformations()
1624 back_1.red = (png_byte)png_ptr->background.red; in png_init_read_transformations()
1625 back_1.green = (png_byte)png_ptr->background.green; in png_init_read_transformations()
1626 back_1.blue = (png_byte)png_ptr->background.blue; in png_init_read_transformations()
1707 png_ptr->background.gray, g); in png_init_read_transformations()
1710 png_ptr->background.gray = png_gamma_correct(png_ptr, in png_init_read_transformations()
1711 png_ptr->background.gray, gs); in png_init_read_transformations()
1713 if ((png_ptr->background.red != png_ptr->background.green) || in png_init_read_transformations()
1714 (png_ptr->background.red != png_ptr->background.blue) || in png_init_read_transformations()
1715 (png_ptr->background.red != png_ptr->background.gray)) in png_init_read_transformations()
1721 png_ptr->background.red, g); in png_init_read_transformations()
1724 png_ptr->background.green, g); in png_init_read_transformations()
1727 png_ptr->background.blue, g); in png_init_read_transformations()
1732 png_ptr->background.red = png_gamma_correct(png_ptr, in png_init_read_transformations()
1733 png_ptr->background.red, gs); in png_init_read_transformations()
1735 png_ptr->background.green = png_gamma_correct(png_ptr, in png_init_read_transformations()
1736 png_ptr->background.green, gs); in png_init_read_transformations()
1738 png_ptr->background.blue = png_gamma_correct(png_ptr, in png_init_read_transformations()
1739 png_ptr->background.blue, gs); in png_init_read_transformations()
1749 png_ptr->background.red = png_ptr->background.green in png_init_read_transformations()
1750 = png_ptr->background.blue = png_ptr->background.gray; in png_init_read_transformations()
1802 back.red = (png_byte)png_ptr->background.red; in png_init_read_transformations()
1803 back.green = (png_byte)png_ptr->background.green; in png_init_read_transformations()
1804 back.blue = (png_byte)png_ptr->background.blue; in png_init_read_transformations()
1923 info_ptr->background = png_ptr->background; in png_read_transform_info()
3524 *sp |= (png_byte)(png_ptr->background.gray << shift); in png_do_compose()
3552 *sp |= (png_byte)(png_ptr->background.gray << shift); in png_do_compose()
3586 *sp |= (png_byte)(png_ptr->background.gray << shift); in png_do_compose()
3615 *sp |= (png_byte)(png_ptr->background.gray << shift); in png_do_compose()
3649 *sp |= (png_byte)(png_ptr->background.gray << shift); in png_do_compose()
3674 *sp = (png_byte)png_ptr->background.gray; in png_do_compose()
3687 *sp = (png_byte)png_ptr->background.gray; in png_do_compose()
3708 *sp = (png_byte)((png_ptr->background.gray >> 8) in png_do_compose()
3710 *(sp + 1) = (png_byte)(png_ptr->background.gray in png_do_compose()
3734 *sp = (png_byte)((png_ptr->background.gray >> 8) in png_do_compose()
3736 *(sp + 1) = (png_byte)(png_ptr->background.gray in png_do_compose()
3764 *sp = (png_byte)png_ptr->background.red; in png_do_compose()
3765 *(sp + 1) = (png_byte)png_ptr->background.green; in png_do_compose()
3766 *(sp + 2) = (png_byte)png_ptr->background.blue; in png_do_compose()
3787 *sp = (png_byte)png_ptr->background.red; in png_do_compose()
3788 *(sp + 1) = (png_byte)png_ptr->background.green; in png_do_compose()
3789 *(sp + 2) = (png_byte)png_ptr->background.blue; in png_do_compose()
3815 *sp = (png_byte)((png_ptr->background.red >> 8) & 0xff); in png_do_compose()
3816 *(sp + 1) = (png_byte)(png_ptr->background.red & 0xff); in png_do_compose()
3817 *(sp + 2) = (png_byte)((png_ptr->background.green >> 8) in png_do_compose()
3819 *(sp + 3) = (png_byte)(png_ptr->background.green in png_do_compose()
3821 *(sp + 4) = (png_byte)((png_ptr->background.blue >> 8) in png_do_compose()
3823 *(sp + 5) = (png_byte)(png_ptr->background.blue & 0xff); in png_do_compose()
3861 *sp = (png_byte)((png_ptr->background.red >> 8) & 0xff); in png_do_compose()
3862 *(sp + 1) = (png_byte)(png_ptr->background.red & 0xff); in png_do_compose()
3863 *(sp + 2) = (png_byte)((png_ptr->background.green >> 8) in png_do_compose()
3865 *(sp + 3) = (png_byte)(png_ptr->background.green in png_do_compose()
3867 *(sp + 4) = (png_byte)((png_ptr->background.blue >> 8) in png_do_compose()
3869 *(sp + 5) = (png_byte)(png_ptr->background.blue & 0xff); in png_do_compose()
3896 *sp = (png_byte)png_ptr->background.gray; in png_do_compose()
3920 *sp = (png_byte)png_ptr->background.gray; in png_do_compose()
3951 *sp = (png_byte)((png_ptr->background.gray >> 8) in png_do_compose()
3953 *(sp + 1) = (png_byte)(png_ptr->background.gray & 0xff); in png_do_compose()
3982 *sp = (png_byte)((png_ptr->background.gray >> 8) in png_do_compose()
3984 *(sp + 1) = (png_byte)(png_ptr->background.gray & 0xff); in png_do_compose()
4025 *sp = (png_byte)png_ptr->background.red; in png_do_compose()
4026 *(sp + 1) = (png_byte)png_ptr->background.green; in png_do_compose()
4027 *(sp + 2) = (png_byte)png_ptr->background.blue; in png_do_compose()
4061 *sp = (png_byte)png_ptr->background.red; in png_do_compose()
4062 *(sp + 1) = (png_byte)png_ptr->background.green; in png_do_compose()
4063 *(sp + 2) = (png_byte)png_ptr->background.blue; in png_do_compose()
4068 png_composite(*sp, *sp, a, png_ptr->background.red); in png_do_compose()
4071 png_ptr->background.green); in png_do_compose()
4074 png_ptr->background.blue); in png_do_compose()
4111 *sp = (png_byte)((png_ptr->background.red >> 8) & 0xff); in png_do_compose()
4112 *(sp + 1) = (png_byte)(png_ptr->background.red & 0xff); in png_do_compose()
4113 *(sp + 2) = (png_byte)((png_ptr->background.green >> 8) in png_do_compose()
4115 *(sp + 3) = (png_byte)(png_ptr->background.green in png_do_compose()
4117 *(sp + 4) = (png_byte)((png_ptr->background.blue >> 8) in png_do_compose()
4119 *(sp + 5) = (png_byte)(png_ptr->background.blue & 0xff); in png_do_compose()
4166 *sp = (png_byte)((png_ptr->background.red >> 8) & 0xff); in png_do_compose()
4167 *(sp + 1) = (png_byte)(png_ptr->background.red & 0xff); in png_do_compose()
4168 *(sp + 2) = (png_byte)((png_ptr->background.green >> 8) in png_do_compose()
4170 *(sp + 3) = (png_byte)(png_ptr->background.green in png_do_compose()
4172 *(sp + 4) = (png_byte)((png_ptr->background.blue >> 8) in png_do_compose()
4174 *(sp + 5) = (png_byte)(png_ptr->background.blue & 0xff); in png_do_compose()
4187 png_composite_16(v, r, a, png_ptr->background.red); in png_do_compose()
4191 png_composite_16(v, g, a, png_ptr->background.green); in png_do_compose()
4195 png_composite_16(v, b, a, png_ptr->background.blue); in png_do_compose()