Lines Matching refs:fDistSq

19     float   fDistSq;     // distance squared to nearest (so far) edge texel  member
184 currData->fDistSq = dist*dist; in init_distances()
187 currData->fDistSq = 2000000.f; in init_distances()
207 float distSq = check->fDistSq - 2.0f*(distVec.fX + distVec.fY - 1.0f); in F1()
208 if (distSq < curr->fDistSq) { in F1()
211 curr->fDistSq = distSq; in F1()
218 distSq = check->fDistSq - 2.0f*distVec.fY + 1.0f; in F1()
219 if (distSq < curr->fDistSq) { in F1()
221 curr->fDistSq = distSq; in F1()
228 distSq = check->fDistSq + 2.0f*(distVec.fX - distVec.fY + 1.0f); in F1()
229 if (distSq < curr->fDistSq) { in F1()
232 curr->fDistSq = distSq; in F1()
239 distSq = check->fDistSq - 2.0f*distVec.fX + 1.0f; in F1()
240 if (distSq < curr->fDistSq) { in F1()
242 curr->fDistSq = distSq; in F1()
253 float distSq = check->fDistSq + 2.0f*distVec.fX + 1.0f; in F2()
254 if (distSq < curr->fDistSq) { in F2()
256 curr->fDistSq = distSq; in F2()
267 float distSq = check->fDistSq - 2.0f*distVec.fX + 1.0f; in B1()
268 if (distSq < curr->fDistSq) { in B1()
270 curr->fDistSq = distSq; in B1()
281 float distSq = check->fDistSq + 2.0f*distVec.fX + 1.0f; in B2()
282 if (distSq < curr->fDistSq) { in B2()
284 curr->fDistSq = distSq; in B2()
291 distSq = check->fDistSq - 2.0f*(distVec.fX - distVec.fY - 1.0f); in B2()
292 if (distSq < curr->fDistSq) { in B2()
295 curr->fDistSq = distSq; in B2()
302 distSq = check->fDistSq + 2.0f*distVec.fY + 1.0f; in B2()
303 if (distSq < curr->fDistSq) { in B2()
305 curr->fDistSq = distSq; in B2()
312 distSq = check->fDistSq + 2.0f*(distVec.fX + distVec.fY + 1.0f); in B2()
313 if (distSq < curr->fDistSq) { in B2()
316 curr->fDistSq = distSq; in B2()
452 dist = -SkScalarSqrt(currData->fDistSq); in generate_distance_field_from_image()
454 dist = SkScalarSqrt(currData->fDistSq); in generate_distance_field_from_image()