Flutter Engine
The Flutter Engine
|
Go to the source code of this file.
Macros | |
#define | SK_DistanceFieldMagnitude 4 |
#define | SK_DistanceFieldPad 4 |
#define | SK_DistanceFieldInset 2 |
#define | SK_DistanceFieldMultiplier "7.96875" |
#define | SK_DistanceFieldThreshold "0.50196078431" |
Functions | |
bool | SkGenerateDistanceFieldFromA8Image (unsigned char *distanceField, const unsigned char *image, int w, int h, size_t rowBytes) |
bool | SkGenerateDistanceFieldFromLCD16Mask (unsigned char *distanceField, const unsigned char *image, int w, int h, size_t rowBytes) |
bool | SkGenerateDistanceFieldFromBWImage (unsigned char *distanceField, const unsigned char *image, int w, int h, size_t rowBytes) |
size_t | SkComputeDistanceFieldSize (int w, int h) |
#define SK_DistanceFieldInset 2 |
Definition at line 23 of file SkDistanceFieldGen.h.
#define SK_DistanceFieldMagnitude 4 |
Definition at line 18 of file SkDistanceFieldGen.h.
#define SK_DistanceFieldMultiplier "7.96875" |
Definition at line 29 of file SkDistanceFieldGen.h.
#define SK_DistanceFieldPad 4 |
Definition at line 21 of file SkDistanceFieldGen.h.
#define SK_DistanceFieldThreshold "0.50196078431" |
Definition at line 30 of file SkDistanceFieldGen.h.
Given width and height of original image, return size (in bytes) of distance field
w | Width of the original image. |
h | Height of the original image. |
Definition at line 75 of file SkDistanceFieldGen.h.
bool SkGenerateDistanceFieldFromA8Image | ( | unsigned char * | distanceField, |
const unsigned char * | image, | ||
int | w, | ||
int | h, | ||
size_t | rowBytes | ||
) |
Given 8-bit mask data, generate the associated distance field
distanceField | The distance field to be generated. Should already be allocated by the client with the padding above. |
image | 8-bit mask we're using to generate the distance field. |
w | Width of the original image. |
h | Height of the original image. |
rowBytes | Size of each row in the image, in bytes |
Definition at line 479 of file SkDistanceFieldGen.cpp.
bool SkGenerateDistanceFieldFromBWImage | ( | unsigned char * | distanceField, |
const unsigned char * | image, | ||
int | w, | ||
int | h, | ||
size_t | rowBytes | ||
) |
Given 1-bit mask data, generate the associated distance field
distanceField | The distance field to be generated. Should already be allocated by the client with the padding above. |
image | 1-bit mask we're using to generate the distance field. |
w | Width of the original image. |
h | Height of the original image. |
rowBytes | Size of each row in the image, in bytes |
Definition at line 537 of file SkDistanceFieldGen.cpp.
bool SkGenerateDistanceFieldFromLCD16Mask | ( | unsigned char * | distanceField, |
const unsigned char * | image, | ||
int | w, | ||
int | h, | ||
size_t | rowBytes | ||
) |
Given LCD16 mask data (not a 16-bit image), generate the associated distance field
distanceField | The distance field to be generated. Should already be allocated by the client with the padding above. |
image | 16-bit LCD data we're using to generate the distance field. |
w | Width of the original image. |
h | Height of the original image. |
rowBytes | Size of each row in the image, in bytes |
Definition at line 507 of file SkDistanceFieldGen.cpp.