|
enum | ColorFormat {
kRGBA_8888_ColorFormat,
kBGRA_8888_ColorFormat,
kRGB_U16_BE_ColorFormat,
kRGBA_U16_BE_ColorFormat,
kRGBA_F16_ColorFormat,
kRGBA_F32_ColorFormat,
kBGR_565_ColorFormat
} |
|
enum | AlphaOp { kPreserve_AlphaOp,
kPremul_AlphaOp,
kSrcIsOpaque_AlphaOp
} |
|
|
bool | apply (ColorFormat dstFormat, void *dst, ColorFormat srcFormat, const void *src, int count, SkAlphaType alphaType) const |
| Apply the color conversion to a |src| buffer, storing the output in the |dst| buffer. More...
|
|
bool SkColorSpaceXform::apply |
( |
ColorFormat |
dstFormat, |
|
|
void * |
dst, |
|
|
ColorFormat |
srcFormat, |
|
|
const void * |
src, |
|
|
int |
count, |
|
|
SkAlphaType |
alphaType |
|
) |
| const |
Apply the color conversion to a |src| buffer, storing the output in the |dst| buffer.
F16 and F32 are only supported when the color space is linear. This function will return false in unsupported cases.
- Parameters
-
dst | Stored in the format described by |dstColorFormat| |
src | Stored in the format described by |srcColorFormat| |
len | Number of pixels in the buffers |
dstColorFormat | Describes color format of |dst| |
srcColorFormat | Describes color format of |src| |
alphaType | Describes alpha properties of the |dst| (and |src|) kUnpremul preserves input alpha values kPremul performs a premultiplication and also preserves alpha values kOpaque optimization hint, |dst| alphas set to 1 |
Create an object to handle color space conversions.
- Parameters
-
srcSpace | The encoded color space. |
dstSpace | The destination color space. |
The documentation for this class was generated from the following file: