Home
last modified time | relevance | path

Searched refs:dist (Results 1 – 6 of 6) sorted by relevance

/lvgl-latest/src/core/
Dlv_indev_scroll.c457 lv_coord_t dist = LV_COORD_MAX; in find_snap_point_x() local
490 if(LV_ABS(x) < LV_ABS(dist)) dist = x; in find_snap_point_x()
495 return dist == LV_COORD_MAX ? 0 : -dist; in find_snap_point_x()
512 lv_coord_t dist = LV_COORD_MAX; in find_snap_point_y() local
545 if(LV_ABS(y) < LV_ABS(dist)) dist = y; in find_snap_point_y()
550 return dist == LV_COORD_MAX ? 0 : -dist; in find_snap_point_y()
/lvgl-latest/src/extra/libs/qrcode/
Dqrcodegen.c461 int dist = abs(dx); in drawWhiteFunctionModules() local
462 if (abs(dy) > dist) in drawWhiteFunctionModules()
463 dist = abs(dy); in drawWhiteFunctionModules()
464 if (dist == 2 || dist == 4) { in drawWhiteFunctionModules()
/lvgl-latest/src/misc/
Dlv_area.c600 uint32_t dist = (px * px) + (py * py); in lv_point_within_circle() local
602 if(dist <= r_sqrd) in lv_point_within_circle()
/lvgl-latest/src/draw/
Dlv_draw_mask.c943 int32_t dist = (end_angle_first - start_angle_last) >> 1; in lv_draw_mask_angle() local
948 int32_t tmp = start_angle_last + dist - rel_x; in lv_draw_mask_angle()
985 int32_t dist = (end_angle_first - start_angle_last) >> 1; in lv_draw_mask_angle() local
990 int32_t tmp = start_angle_last + dist - rel_x; in lv_draw_mask_angle()
/lvgl-latest/src/extra/libs/tiny_ttf/
Dstb_truetype_htcw.h4994 float dist = (float)STBTT_sqrt((x1 - x0) * (x1 - x0) + (y1 - y0) * (y1 - y0)); local
4995 precompute[i] = (dist == 0) ? 0.0f : 1.0f / dist;
5030 float dist, dist2 = (x0 - sx) * (x0 - sx) + (y0 - sy) * (y0 - sy); local
5037dist = (float)STBTT_fabs((x1 - x0) * (y0 - sy) - (y1 - y0) * (x0 - sx)) * precompute[i];
5039 if(dist < min_dist) {
5049 min_dist = dist;
/lvgl-latest/src/extra/libs/png/
Dlodepng.c1880 unsigned dist = lz77_encoded.data[i + 2]; in deflateDynamic() local
1881 ++frequencies_d[dist]; in deflateDynamic()