7#ifndef SkDistanceFieldGen_DEFINED
8#define SkDistanceFieldGen_DEFINED
14#if !defined(SK_DISABLE_SDF_TEXT)
18#define SK_DistanceFieldMagnitude 4
21#define SK_DistanceFieldPad 4
23#define SK_DistanceFieldInset 2
29#define SK_DistanceFieldMultiplier "7.96875"
30#define SK_DistanceFieldThreshold "0.50196078431"
42 const unsigned char*
image,
43 int w,
int h,
size_t rowBytes);
55 const unsigned char*
image,
56 int w,
int h,
size_t rowBytes);
68 const unsigned char*
image,
69 int w,
int h,
size_t rowBytes);
size_t SkComputeDistanceFieldSize(int w, int h)
#define SK_DistanceFieldPad
bool SkGenerateDistanceFieldFromBWImage(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 SkGenerateDistanceFieldFromA8Image(unsigned char *distanceField, const unsigned char *image, int w, int h, size_t rowBytes)
sk_sp< const SkImage > image