Home
last modified time | relevance | path

Searched refs:diff (Results 1 – 11 of 11) sorted by relevance

/lvgl-3.6.0/src/misc/
Dlv_anim.c287 int32_t diff = (a->end_value - a->start_value); in lv_anim_path_bounce() local
300 diff = diff / 20; in lv_anim_path_bounce()
306 diff = diff / 20; in lv_anim_path_bounce()
313 diff = diff / 40; in lv_anim_path_bounce()
319 diff = diff / 40; in lv_anim_path_bounce()
327 new_value = step * diff; in lv_anim_path_bounce()
Dlv_printf.c314 double diff = 0.0; in _ftoa() local
358 diff = tmp - frac; in _ftoa()
360 if(diff > 0.5) { in _ftoa()
368 else if(diff < 0.5) { in _ftoa()
376 diff = value - (double)whole; in _ftoa()
377 if((!(diff < 0.5) || (diff > 0.5)) && (whole & 1)) { in _ftoa()
/lvgl-3.6.0/src/core/
Dlv_indev_scroll.c31 static lv_coord_t elastic_diff(lv_obj_t * scroll_obj, lv_coord_t diff, lv_coord_t scroll_start, lv_…
612 static lv_coord_t elastic_diff(lv_obj_t * scroll_obj, lv_coord_t diff, lv_coord_t scroll_start, lv_… in elastic_diff() argument
665 if(snap != LV_SCROLL_SNAP_NONE && act_obj_point > snap_point) return diff; in elastic_diff()
668 if(diff < 0) diff -= ELASTIC_SLOWNESS_FACTOR / 2; in elastic_diff()
669 if(diff > 0) diff += ELASTIC_SLOWNESS_FACTOR / 2; in elastic_diff()
670 return diff / ELASTIC_SLOWNESS_FACTOR; in elastic_diff()
673 if(snap != LV_SCROLL_SNAP_NONE && act_obj_point < snap_point) return diff; in elastic_diff()
676 if(diff < 0) diff -= ELASTIC_SLOWNESS_FACTOR / 2; in elastic_diff()
677 if(diff > 0) diff += ELASTIC_SLOWNESS_FACTOR / 2; in elastic_diff()
678 return diff / ELASTIC_SLOWNESS_FACTOR; in elastic_diff()
[all …]
Dlv_obj_pos.c733 lv_point_t diff; in lv_obj_move_to() local
734 diff.x = x - obj->coords.x1; in lv_obj_move_to()
735 diff.y = y - obj->coords.y1; in lv_obj_move_to()
740 if(diff.x == 0 && diff.y == 0) return; in lv_obj_move_to()
761 obj->coords.x1 += diff.x; in lv_obj_move_to()
762 obj->coords.y1 += diff.y; in lv_obj_move_to()
763 obj->coords.x2 += diff.x; in lv_obj_move_to()
764 obj->coords.y2 += diff.y; in lv_obj_move_to()
766 lv_obj_move_children_by(obj, diff.x, diff.y, false); in lv_obj_move_to()
Dlv_obj_scroll.c373 lv_coord_t diff = -x + scroll_x; in lv_obj_scroll_to_x() local
375 lv_obj_scroll_by_bounded(obj, diff, 0, anim_en); in lv_obj_scroll_to_x()
383 lv_coord_t diff = -y + scroll_y; in lv_obj_scroll_to_y() local
385 lv_obj_scroll_by_bounded(obj, 0, diff, anim_en); in lv_obj_scroll_to_y()
/lvgl-3.6.0/tests/unity/
Dunity.c872 #define UNITY_FLOAT_OR_DOUBLE_WITHIN(delta, expected, actual, diff) \ argument
875 (diff) = (actual) - (expected); \
876 if ((diff) < 0) (diff) = -(diff); \
878 return !(isnan(diff) || isinf(diff) || ((diff) > (delta)))
901 UNITY_FLOAT diff; in UnityFloatsWithin() local
902 UNITY_FLOAT_OR_DOUBLE_WITHIN(delta, expected, actual, diff); in UnityFloatsWithin()
1042 UNITY_DOUBLE diff; in UnityDoublesWithin() local
1043 UNITY_FLOAT_OR_DOUBLE_WITHIN(delta, expected, actual, diff); in UnityDoublesWithin()
/lvgl-3.6.0/src/extra/others/monkey/
Dlv_monkey.c153 int32_t diff = howbig - howsmall; in lv_monkey_random() local
154 return (int32_t)lv_rand(0, diff) + howsmall; in lv_monkey_random()
/lvgl-3.6.0/src/draw/sw/
Dlv_draw_sw_line.c172 int16_t diff = dsc->dash_width - dash_cnt; in draw_line_hor() local
173 i += diff; in draw_line_hor()
174 dash_cnt += diff; in draw_line_hor()
/lvgl-3.6.0/src/extra/widgets/colorwheel/
Dlv_colorwheel.c491 uint32_t diff = lv_tick_elaps(colorwheel->last_change_time); in lv_colorwheel_event() local
492 if(!on_ring && diff > indev->driver->long_press_time && !colorwheel->mode_fixed) { in lv_colorwheel_event()
/lvgl-3.6.0/src/extra/libs/png/
Dlodepng.c4294 size_t diff = ilinebits - olinebits; in removePaddingBits() local
4302 ibp += diff; in removePaddingBits()
5646 size_t diff = olinebits - ilinebits; in addPaddingBits() local
5656 for(x = 0; x != diff; ++x) setBitOfReversedStream(&obp, out, 0); in addPaddingBits()
/lvgl-3.6.0/docs/
DCHANGELOG.md624 - test(img): fix image error diff handler [`48d87e1`](https://github.com/lvgl/lvgl/commit/48d87e1ed…
900 - ci(style) force color on diff to help highlight whitespace changes [`04f47ea`](https://github.com…