13 #ifndef SkUnPreMultiply_DEFINED
14 #define SkUnPreMultiply_DEFINED
28 SkASSERT(alpha <= 255);
46 SkASSERT(component <= 255);
47 return (scale * component + (1 << 23)) >> 24;
53 static const uint32_t gTable[256];
Types, consts, functions, and macros for colors.
uint32_t SkColor
32-bit ARGB color value, unpremultiplied.
Definition: SkColor.h:37
uint32_t SkPMColor
32-bit ARGB color value, premultiplied.
Definition: SkColor.h:205
Definition: SkUnPreMultiply.h:18
static SkColor PMColorToColor(SkPMColor c)
static const Scale * GetScaleTable()
Definition: SkUnPreMultiply.h:23
static U8CPU ApplyScale(Scale scale, U8CPU component)
Usage:
Definition: SkUnPreMultiply.h:45
uint32_t Scale
Definition: SkUnPreMultiply.h:20
static Scale GetScale(U8CPU alpha)
Definition: SkUnPreMultiply.h:27