Home | History | Annotate | Download | only in core

Lines Matching defs:distance

19     float   fDistSq;     // distance squared to nearest (so far) edge texel
20 SkPoint fDistVector; // distance vector to nearest (so far) edge texel
113 // computes the distance to an edge given an edge normal vector and a pixel's alpha value
118 float distance;
120 distance = 0.5f - alpha;
135 // we now compute the approximate distance, depending where the alpha falls
141 distance = 0.5f*(dx + dy) - SkScalarSqrt(2.0f*dx*dy*alpha);
144 distance = (0.5f - alpha)*dx;
148 distance = -0.5f*(dx + dy) + SkScalarSqrt(2.0f*dx*dy*(1.0f - alpha));
152 return distance;
181 // init squared distance to edge and distance vector
186 // init distance to "far away"
321 // enable this to output edge data rather than the distance field
327 // The distance field is constructed as unsigned char values, so that the zero value is at 128,
332 // Scale into the positive range for unsigned distance.
342 // assumes a padded 8-bit image and distance field
354 // set params for distance field data
363 // copy glyph into distance field storage
368 // create initial distance data, particularly at edges
371 // now perform Euclidean distance transform to propagate distances
379 // don't need to calculate distance for edge pixels
391 // don't need to calculate distance for edge pixels
409 // don't need to calculate distance for edge pixels
421 // don't need to calculate distance for edge pixels
433 // copy results to final distance field data
468 // assumes an 8-bit image and distance field
496 // assumes a 16-bit lcd mask and 8-bit distance field
526 // assumes a 1-bit image and 8-bit distance field