Lines Matching refs:fDistSq

13     float   fDistSq;     // distance squared to nearest (so far) edge texel  member
177 currData->fDistSq = dist*dist; in init_distances()
180 currData->fDistSq = 2000000.f; in init_distances()
200 float distSq = check->fDistSq - 2.0f*(distVec.fX + distVec.fY - 1.0f); in F1()
201 if (distSq < curr->fDistSq) { in F1()
204 curr->fDistSq = distSq; in F1()
211 distSq = check->fDistSq - 2.0f*distVec.fY + 1.0f; in F1()
212 if (distSq < curr->fDistSq) { in F1()
214 curr->fDistSq = distSq; in F1()
221 distSq = check->fDistSq + 2.0f*(distVec.fX - distVec.fY + 1.0f); in F1()
222 if (distSq < curr->fDistSq) { in F1()
225 curr->fDistSq = distSq; in F1()
232 distSq = check->fDistSq - 2.0f*distVec.fX + 1.0f; in F1()
233 if (distSq < curr->fDistSq) { in F1()
235 curr->fDistSq = distSq; in F1()
245 float distSq = check->fDistSq; in F2()
247 distSq = check->fDistSq + 2.0f*distVec.fX + 1.0f; in F2()
248 if (distSq < curr->fDistSq) { in F2()
250 curr->fDistSq = distSq; in F2()
261 float distSq = check->fDistSq - 2.0f*distVec.fX + 1.0f; in B1()
262 if (distSq < curr->fDistSq) { in B1()
264 curr->fDistSq = distSq; in B1()
275 float distSq = check->fDistSq + 2.0f*distVec.fX + 1.0f; in B2()
276 if (distSq < curr->fDistSq) { in B2()
278 curr->fDistSq = distSq; in B2()
285 distSq = check->fDistSq - 2.0f*(distVec.fX - distVec.fY - 1.0f); in B2()
286 if (distSq < curr->fDistSq) { in B2()
289 curr->fDistSq = distSq; in B2()
296 distSq = check->fDistSq + 2.0f*distVec.fY + 1.0f; in B2()
297 if (distSq < curr->fDistSq) { in B2()
299 curr->fDistSq = distSq; in B2()
306 distSq = check->fDistSq + 2.0f*(distVec.fX + distVec.fY + 1.0f); in B2()
307 if (distSq < curr->fDistSq) { in B2()
310 curr->fDistSq = distSq; in B2()
445 dist = -SkScalarSqrt(currData->fDistSq); in generate_distance_field_from_image()
447 dist = SkScalarSqrt(currData->fDistSq); in generate_distance_field_from_image()