Home | History | Annotate | Download | only in images

Lines Matching refs:palette

164 // call only if color_type is PALETTE. Returns true if the ctable has alpha
341 /* Optional call to gamma correct and add the background to the palette
343 * update the palette for you (ie you selected such a transform above).
369 upscale png's palette to a direct model
563 png_colorp palette;
569 png_get_PLTE(png_ptr, info_ptr, &palette, &num_palette);
599 *colorPtr++ = SkPreMultiplyARGB(*trans++, palette->red, palette->green, palette->blue);
600 palette++;
605 *colorPtr++ = SkPackARGB32(0xFF, palette->red, palette->green, palette->blue);
606 palette++;
707 /* Optional call to gamma correct and add the background to the palette
709 * update the palette for you (ie you selected such a transform above).
743 upscale png's palette to a direct model
960 /* Pack palette[] with the corresponding colors, and if hasAlpha is true, also
968 png_color* SK_RESTRICT palette,
978 entries must come first in the palette. If I was smarter, I'd
980 first in the palette. But, since that would slow down the encode,
1000 palette[i].red = SkUnPreMultiply::ApplyScale(s, SkGetPackedR32(c));
1001 palette[i].green = SkUnPreMultiply::ApplyScale(s,SkGetPackedG32(c));
1002 palette[i].blue = SkUnPreMultiply::ApplyScale(s, SkGetPackedB32(c));
1011 palette[i].red = SkGetPackedR32(c);
1012 palette[i].green = SkGetPackedG32(c);
1013 palette[i].blue = SkGetPackedB32(c);
1064 // don't specify alpha if we're a palette, even if our ctable has alpha