Home | History | Annotate | Download | only in images

Lines Matching refs:palette

172 // call only if color_type is PALETTE. Returns true if the ctable has alpha
335 /* Optional call to gamma correct and add the background to the palette
337 * update the palette for you (ie you selected such a transform above).
363 upscale png's palette to a direct model
574 png_colorp palette;
580 png_get_PLTE(png_ptr, info_ptr, &palette, &num_palette);
610 *colorPtr++ = SkPreMultiplyARGB(*trans++, palette->red, palette->green, palette->blue);
611 palette++;
616 *colorPtr++ = SkPackARGB32(0xFF, palette->red, palette->green, palette->blue);
617 palette++;
700 /* Optional call to gamma correct and add the background to the palette
702 * update the palette for you (ie you selected such a transform above).
738 upscale png's palette to a direct model
951 /* Pack palette[] with the corresponding colors, and if hasAlpha is true, also
959 png_color* SK_RESTRICT palette,
969 entries must come first in the palette. If I was smarter, I'd
971 first in the palette. But, since that would slow down the encode,
991 palette[i].red = SkUnPreMultiply::ApplyScale(s, SkGetPackedR32(c));
992 palette[i].green = SkUnPreMultiply::ApplyScale(s,SkGetPackedG32(c));
993 palette[i].blue = SkUnPreMultiply::ApplyScale(s, SkGetPackedB32(c));
1002 palette[i].red = SkGetPackedR32(c);
1003 palette[i].green = SkGetPackedG32(c);
1004 palette[i].blue = SkGetPackedB32(c);
1050 // don't specify alpha if we're a palette, even if our ctable has alpha