Lines Matching refs:palette
206 png_write_PLTE(png_ptr, info_ptr->palette, in png_write_info()
1797 png_color palette[256]; in png_image_set_PLTE() local
1801 memset(palette, 0, (sizeof palette)); in png_image_set_PLTE()
1818 palette[i].blue = (png_byte)PNG_sRGB_FROM_LINEAR(255 * in png_image_set_PLTE()
1820 palette[i].green = (png_byte)PNG_sRGB_FROM_LINEAR(255 * in png_image_set_PLTE()
1822 palette[i].red = (png_byte)PNG_sRGB_FROM_LINEAR(255 * in png_image_set_PLTE()
1827 palette[i].blue = palette[i].red = palette[i].green = in png_image_set_PLTE()
1850 palette[i].blue = png_unpremultiply(entry[afirst + (2 ^ bgr)], in png_image_set_PLTE()
1852 palette[i].green = png_unpremultiply(entry[afirst + 1], alpha, in png_image_set_PLTE()
1854 palette[i].red = png_unpremultiply(entry[afirst + bgr], alpha, in png_image_set_PLTE()
1859 palette[i].blue = palette[i].red = palette[i].green = in png_image_set_PLTE()
1878 palette[i].blue = entry[afirst + (2 ^ bgr)]; in png_image_set_PLTE()
1879 palette[i].green = entry[afirst + 1]; in png_image_set_PLTE()
1880 palette[i].red = entry[afirst + bgr]; in png_image_set_PLTE()
1889 palette[i].blue = palette[i].red = palette[i].green = in png_image_set_PLTE()
1906 png_set_PLTE(image->opaque->png_ptr, image->opaque->info_ptr, palette, in png_image_set_PLTE()