Lines Matching defs:distance

20     float   fDistSq;     // distance squared to nearest (so far) edge texel
21 SkPoint fDistVector; // distance vector to nearest (so far) edge texel
114 // computes the distance to an edge given an edge normal vector and a pixel's alpha value
119 float distance;
121 distance = 0.5f - alpha;
136 // we now compute the approximate distance, depending where the alpha falls
142 distance = 0.5f*(dx + dy) - SkScalarSqrt(2.0f*dx*dy*alpha);
145 distance = (0.5f - alpha)*dx;
149 distance = -0.5f*(dx + dy) + SkScalarSqrt(2.0f*dx*dy*(1.0f - alpha));
153 return distance;
182 // init squared distance to edge and distance vector
187 // init distance to "far away"
322 // enable this to output edge data rather than the distance field
328 // The distance field is constructed as unsigned char values, so that the zero value is at 128,
333 // Scale into the positive range for unsigned distance.
343 // assumes a padded 8-bit image and distance field
355 // set params for distance field data
364 // copy glyph into distance field storage
369 // create initial distance data, particularly at edges
372 // now perform Euclidean distance transform to propagate distances
380 // don't need to calculate distance for edge pixels
392 // don't need to calculate distance for edge pixels
410 // don't need to calculate distance for edge pixels
422 // don't need to calculate distance for edge pixels
434 // copy results to final distance field data
469 // assumes an 8-bit image and distance field
497 // assumes a 16-bit lcd mask and 8-bit distance field
527 // assumes a 1-bit image and 8-bit distance field