Lines Matching full:palette
204 // call only if color_type is PALETTE. Returns true if the ctable has alpha
381 /* Optional call to gamma correct and add the background to the palette
383 * update the palette for you (ie you selected such a transform above).
423 upscale png's palette to a direct model
667 png_colorp palette;
671 png_get_PLTE(png_ptr, info_ptr, &palette, &numPalette);
701 *colorPtr++ = proc(*trans++, palette->red, palette->green, palette->blue);
702 palette++;
707 *colorPtr++ = SkPackARGB32(0xFF, palette->red, palette->green, palette->blue);
708 palette++;
713 Invalid images could contain pixel values that are greater than the number of palette
714 entries. Since we use pixel values as indices into the palette this could result in reading
715 beyond the end of the palette which could leak the contents of uninitialized memory. To
717 addressed by the bitdepth of the image and fill it with the last palette color or black if
718 the palette is empty (really broken image).
844 /* Optional call to gamma correct and add the background to the palette
846 * update the palette for you (ie you selected such a transform above).
903 upscale png's palette to a direct model
1048 /* Pack palette[] with the corresponding colors, and if hasAlpha is true, also
1056 png_color* SK_RESTRICT palette,
1065 entries must come first in the palette. If I was smarter, I'd
1067 first in the palette. But, since that would slow down the encode,
1087 palette[i].red = SkUnPreMultiply::ApplyScale(s, SkGetPackedR32(c));
1088 palette[i].green = SkUnPreMultiply::ApplyScale(s,SkGetPackedG32(c));
1089 palette[i].blue = SkUnPreMultiply::ApplyScale(s, SkGetPackedB32(c));
1098 palette[i].red = SkGetPackedR32(c);
1099 palette[i].green = SkGetPackedG32(c);
1100 palette[i].blue = SkGetPackedB32(c);
1152 // don't specify alpha if we're a palette, even if our ctable has alpha