/lvgl-latest/src/extra/layouts/flex/ |
D | lv_flex.c | 57 lv_coord_t item_gap, track_t * t); 59 … lv_coord_t abs_y, lv_coord_t max_main_size, lv_coord_t item_gap, track_t * t); 257 track_t t; in flex_update() local 260 t.grow_dsc_calc = 0; in flex_update() 261 … next_track_first_item = find_track_end(cont, &f, track_first_item, max_main_size, item_gap, &t); in flex_update() 262 total_track_cross_size += t.track_cross_size + track_gap; in flex_update() 281 track_t t; in flex_update() local 282 t.grow_dsc_calc = 1; in flex_update() 284 … next_track_first_item = find_track_end(cont, &f, track_first_item, max_main_size, item_gap, &t); in flex_update() 287 *cross_pos -= t.track_cross_size; in flex_update() [all …]
|
/lvgl-latest/src/misc/ |
D | lv_anim.c | 229 uint32_t t = lv_map(a->act_time, 0, a->time, 0, LV_BEZIER_VAL_MAX); in lv_anim_path_ease_in() local 230 int32_t step = lv_bezier3(t, 0, 50, 100, LV_BEZIER_VAL_MAX); in lv_anim_path_ease_in() 243 uint32_t t = lv_map(a->act_time, 0, a->time, 0, LV_BEZIER_VAL_MAX); in lv_anim_path_ease_out() local 244 int32_t step = lv_bezier3(t, 0, 900, 950, LV_BEZIER_VAL_MAX); in lv_anim_path_ease_out() 257 uint32_t t = lv_map(a->act_time, 0, a->time, 0, LV_BEZIER_VAL_MAX); in lv_anim_path_ease_in_out() local 258 int32_t step = lv_bezier3(t, 0, 50, 952, LV_BEZIER_VAL_MAX); in lv_anim_path_ease_in_out() 271 uint32_t t = lv_map(a->act_time, 0, a->time, 0, LV_BEZIER_VAL_MAX); in lv_anim_path_overshoot() local 272 int32_t step = lv_bezier3(t, 0, 1000, 1300, LV_BEZIER_VAL_MAX); in lv_anim_path_overshoot() 285 int32_t t = lv_map(a->act_time, 0, a->time, 0, LV_BEZIER_VAL_MAX); in lv_anim_path_bounce() local 290 if(t < 408) { in lv_anim_path_bounce() [all …]
|
D | lv_math.h | 65 uint32_t lv_bezier3(uint32_t t, uint32_t u0, uint32_t u1, uint32_t u2, uint32_t u3); 134 #define LV_IS_SIGNED(t) (((t)(-1)) < ((t)0)) argument 135 #define LV_UMAX_OF(t) (((0x1ULL << ((sizeof(t) * 8ULL) - 1ULL)) - 1ULL) | (0xFULL << ((sizeof(t) * … argument 136 #define LV_SMAX_OF(t) (((0x1ULL << ((sizeof(t) * 8ULL) - 1ULL)) - 1ULL) | (0x7ULL << ((sizeof(t) * … argument 137 #define LV_MAX_OF(t) ((unsigned long)(LV_IS_SIGNED(t) ? LV_SMAX_OF(t) : LV_UMAX_OF(t))) argument
|
D | lv_log.c | 85 uint32_t t = lv_tick_get(); in _lv_log_add() local 90 lvl_prefix[level], t / 1000, t % 1000, t - last_log_time, func); in _lv_log_add() 100 … lvl_prefix[level], t / 1000, t % 1000, t - last_log_time, func, msg, &file[p], line); in _lv_log_add() 104 … lvl_prefix[level], t / 1000, t % 1000, t - last_log_time, func, (void *)&vaf, &file[p], line); in _lv_log_add() 110 last_log_time = t; in _lv_log_add()
|
D | lv_gc.h | 35 #define LV_DISPATCH(f, t, n) f(t, n) argument 36 #define LV_DISPATCH_COND(f, t, n, m, v) LV_CONCAT3(LV_DISPATCH, m, v)(f, t, n) argument 38 #define LV_DISPATCH00(f, t, n) LV_DISPATCH(f, t, n) argument 39 #define LV_DISPATCH01(f, t, n) argument 40 #define LV_DISPATCH10(f, t, n) argument 41 #define LV_DISPATCH11(f, t, n) LV_DISPATCH(f, t, n) argument
|
D | lv_math.c | 83 uint32_t lv_bezier3(uint32_t t, uint32_t u0, uint32_t u1, uint32_t u2, uint32_t u3) in lv_bezier3() argument 85 uint32_t t_rem = 1024 - t; in lv_bezier3() 88 uint32_t t2 = (t * t) >> 10; in lv_bezier3() 89 uint32_t t3 = (t2 * t) >> 10; in lv_bezier3() 92 uint32_t v2 = (3 * t_rem2 * t * u1) >> 20; in lv_bezier3()
|
D | lv_color.c | 159 uint8_t region, remainder, p, q, t; in lv_color_hsv_to_rgb() local 170 t = (v * (255 - ((s * (255 - remainder)) >> 8))) >> 8; in lv_color_hsv_to_rgb() 175 g = t; in lv_color_hsv_to_rgb() 186 b = t; in lv_color_hsv_to_rgb() 194 r = t; in lv_color_hsv_to_rgb()
|
/lvgl-latest/src/draw/sw/ |
D | lv_draw_sw_dither.c | 56 lv_color32_t t; in lv_dither_ordered_hor() local 57 t.ch.red = LV_CLAMP(0, tmp.ch.red + factor, 255); in lv_dither_ordered_hor() 58 t.ch.green = LV_CLAMP(0, tmp.ch.green + factor, 255); in lv_dither_ordered_hor() 59 t.ch.blue = LV_CLAMP(0, tmp.ch.blue + factor, 255); in lv_dither_ordered_hor() 61 grad->map[j] = lv_color_hex(t.full); in lv_dither_ordered_hor() 81 lv_color32_t t; in lv_dither_ordered_ver() local 82 t.ch.red = LV_CLAMP(0, tmp.ch.red + factor, 255); in lv_dither_ordered_ver() 83 t.ch.green = LV_CLAMP(0, tmp.ch.green + factor, 255); in lv_dither_ordered_ver() 84 t.ch.blue = LV_CLAMP(0, tmp.ch.blue + factor, 255); in lv_dither_ordered_ver() 86 grad->map[j] = lv_color_hex(t.full); in lv_dither_ordered_ver() [all …]
|
D | lv_draw_sw_transform.c | 47 static void transform_point_upscaled(point_transform_dsc_t * t, int32_t xin, int32_t yin, int32_t *… 467 static void transform_point_upscaled(point_transform_dsc_t * t, int32_t xin, int32_t yin, int32_t *… in transform_point_upscaled() argument 470 if(t->angle == 0 && t->zoom == LV_IMG_ZOOM_NONE) { in transform_point_upscaled() 476 xin -= t->pivot.x; in transform_point_upscaled() 477 yin -= t->pivot.y; in transform_point_upscaled() 479 if(t->angle == 0) { in transform_point_upscaled() 480 *xout = ((int32_t)(xin * t->zoom)) + (t->pivot_x_256); in transform_point_upscaled() 481 *yout = ((int32_t)(yin * t->zoom)) + (t->pivot_y_256); in transform_point_upscaled() 483 else if(t->zoom == LV_IMG_ZOOM_NONE) { in transform_point_upscaled() 484 *xout = ((t->cosma * xin - t->sinma * yin) >> 2) + (t->pivot_x_256); in transform_point_upscaled() [all …]
|
/lvgl-latest/src/draw/nxp/vglite/ |
D | lv_draw_vglite_arc.c | 334 static inline float lerp(float coord_a, float coord_b, uint16_t t) in lerp() argument 336 float tf = (float)t; in lerp() 343 static inline float comp_bezier_point(float t, cubic_cont_pt cp) in comp_bezier_point() argument 345 float t_sq = t * t; in comp_bezier_point() 346 float inv_t_sq = (1.0f - t) * (1.0f - t); in comp_bezier_point() 347 …float apt = (1.0f - t) * inv_t_sq * cp.p0 + 3.0f * inv_t_sq * t * cp.p1 + 3.0f * (1.0f - t) * t_sq… in comp_bezier_point() 495 uint16_t t = TperDegree[arc->angle]; in get_arc_control_points() local 497 float ax = lerp((float)fullarc.p0x, (float)fullarc.p1x, t); in get_arc_control_points() 498 float ay = lerp((float)fullarc.p0y, (float)fullarc.p1y, t); in get_arc_control_points() 500 float bx = lerp((float)fullarc.p1x, (float)fullarc.p2x, t); in get_arc_control_points() [all …]
|
/lvgl-latest/src/extra/libs/gif/ |
D | lv_gif.c | 28 static void next_frame_task_cb(lv_timer_t * t); 130 static void next_frame_task_cb(lv_timer_t * t) in next_frame_task_cb() argument 132 lv_obj_t * obj = t->user_data; in next_frame_task_cb() 143 lv_timer_pause(t); in next_frame_task_cb()
|
/lvgl-latest/src/extra/widgets/tabview/ |
D | lv_tabview.c | 333 lv_coord_t t; in cont_scroll_end_event_cb() local 336 … if(lv_obj_get_style_base_dir(tv, LV_PART_MAIN) == LV_BASE_DIR_RTL) t = -(p.x - w / 2) / w; in cont_scroll_end_event_cb() 337 else t = (p.x + w / 2) / w; in cont_scroll_end_event_cb() 341 t = (p.y + h / 2) / h; in cont_scroll_end_event_cb() 344 if(t < 0) t = 0; in cont_scroll_end_event_cb() 346 if(t != lv_tabview_get_tab_act(tv)) new_tab = true; in cont_scroll_end_event_cb() 347 lv_tabview_set_act(tv, t, LV_ANIM_ON); in cont_scroll_end_event_cb()
|
/lvgl-latest/scripts/release/ |
D | patch.py | 70 t = com.ver_format(ver_new) + "-dev" variable 71 com.cmd("git tag -a " + t + " -m \"Start " + t + "\"")
|
/lvgl-latest/src/extra/libs/rlottie/ |
D | lv_rlottie.c | 30 static void next_frame_task_cb(lv_timer_t * t); 225 static void next_frame_task_cb(lv_timer_t * t) in next_frame_task_cb() argument 227 lv_obj_t * obj = t->user_data; in next_frame_task_cb() 233 lv_timer_pause(t); in next_frame_task_cb() 247 lv_timer_pause(t); in next_frame_task_cb() 260 lv_timer_pause(t); in next_frame_task_cb()
|
/lvgl-latest/demos/music/assets/ |
D | spectrum.py | 19 for t in range(0,len(S[0]-1)): 24 for i in range(f_prev, f): v += S[i][t]
|
/lvgl-latest/examples/anim/ |
D | lv_example_anim_3.c | 67 uint32_t t = lv_map(a->act_time, 0, a->time, 0, 1024); in anim_path_bezier3_cb() local 68 int32_t step = lv_bezier3(t, 0, ginfo.p1, ginfo.p2, 1024); in anim_path_bezier3_cb() 79 uint32_t t = i * (1024 / CHART_POINTS_NUM); in refer_chart_cubic_bezier() local 80 int32_t step = lv_bezier3(t, 0, ginfo.p1, ginfo.p2, 1024); in refer_chart_cubic_bezier() 81 lv_chart_set_value_by_id2(ginfo.chart, ginfo.ser1, i, t, step); in refer_chart_cubic_bezier()
|
D | lv_example_anim_3.py | 86 t = i * (1024 // CHART_POINTS_NUM) 87 step = lv.bezier3(t, 0, self.p1, self.p2, 1024) 88 self.chart.set_value_by_id2(self.ser1, i, t, step) 116 t = lv.map(a.act_time, 0, a.time, 0, 1024) 117 step = lv.bezier3(t, 0, self.p1, self.p2, 1024)
|
/lvgl-latest/examples/widgets/chart/ |
D | lv_example_chart_9.c | 4 static void add_data(lv_timer_t * t) in add_data() argument 6 lv_obj_t * chart = t->user_data; in add_data()
|
/lvgl-latest/docs/overview/ |
D | timer.md | 56 … time of `lv_timer_handler` with `lv_timer_get_idle()`. Note that, it doesn't measure the idle tim… 57 …u use an operating system and call `lv_timer_handler` in a timer, as it won't actually measure the… 61 …ses, you can't perform an action immediately. For example, you can't delete an object because some… 87 If you just want to delete an object and don't need to clean anything up in `my_screen_cleanup` you…
|
/lvgl-latest/examples/widgets/table/ |
D | lv_example_table_2.py | 64 t = ticks_ms() variable 65 print("ticks: ", t) 89 elaps = ticks_ms()-t
|
/lvgl-latest/src/extra/widgets/chart/ |
D | lv_chart.c | 233 lv_chart_tick_dsc_t * t = get_tick_gsc(obj, axis); in lv_chart_set_axis_tick() local 234 t->major_len = major_len; in lv_chart_set_axis_tick() 235 t->minor_len = minor_len; in lv_chart_set_axis_tick() 236 t->minor_cnt = minor_cnt; in lv_chart_set_axis_tick() 237 t->major_cnt = major_cnt; in lv_chart_set_axis_tick() 238 t->label_en = label_en; in lv_chart_set_axis_tick() 239 t->draw_size = draw_size; in lv_chart_set_axis_tick() 1387 lv_chart_tick_dsc_t * t = get_tick_gsc(obj, axis); in draw_y_ticks() local 1389 if(!t->label_en && !t->major_len && !t->minor_len) return; in draw_y_ticks() 1390 if(t->major_cnt <= 1) return; in draw_y_ticks() [all …]
|
/lvgl-latest/src/extra/libs/bmp/ |
D | lv_bmp.c | 229 uint8_t * t = &buf[i * 3]; in decoder_read_line() local 231 c->ch.red = t[2]; in decoder_read_line() 232 c->ch.green = t[1]; in decoder_read_line() 233 c->ch.blue = t[0]; in decoder_read_line()
|
/lvgl-latest/tests/src/ |
D | lv_test_indev.c | 132 uint32_t t = lv_tick_get(); in lv_test_indev_wait() local 133 while(lv_tick_elaps(t) < ms) { in lv_test_indev_wait()
|
/lvgl-latest/demos/music/ |
D | lv_demo_music_main.c | 61 static void timer_cb(lv_timer_t * t); 63 static void stop_start_anim_timer_cb(lv_timer_t * t); 819 int32_t t = BAR_PER_BAND_CNT * s - band_w / 2 + f; in spectrum_draw_event_cb() local 820 if(t < 0) t = BAR_CNT + t; in spectrum_draw_event_cb() 821 if(t >= BAR_CNT) t = t - BAR_CNT; in spectrum_draw_event_cb() 822 r[t] += (ampl_main * ampl_mod) >> 9; in spectrum_draw_event_cb() 984 static void timer_cb(lv_timer_t * t) in timer_cb() argument 986 LV_UNUSED(t); in timer_cb() 998 static void stop_start_anim_timer_cb(lv_timer_t * t) in stop_start_anim_timer_cb() argument 1000 LV_UNUSED(t); in stop_start_anim_timer_cb()
|
/lvgl-latest/src/core/ |
D | lv_obj_scroll.c | 313 uint32_t t = lv_anim_speed_to_time((lv_disp_get_hor_res(d) * 2) >> 2, 0, dx); in lv_obj_scroll_by() local 314 if(t < SCROLL_ANIM_TIME_MIN) t = SCROLL_ANIM_TIME_MIN; in lv_obj_scroll_by() 315 if(t > SCROLL_ANIM_TIME_MAX) t = SCROLL_ANIM_TIME_MAX; in lv_obj_scroll_by() 316 lv_anim_set_time(&a, t); in lv_obj_scroll_by() 329 uint32_t t = lv_anim_speed_to_time((lv_disp_get_ver_res(d) * 2) >> 2, 0, dy); in lv_obj_scroll_by() local 330 if(t < SCROLL_ANIM_TIME_MIN) t = SCROLL_ANIM_TIME_MIN; in lv_obj_scroll_by() 331 if(t > SCROLL_ANIM_TIME_MAX) t = SCROLL_ANIM_TIME_MAX; in lv_obj_scroll_by() 332 lv_anim_set_time(&a, t); in lv_obj_scroll_by()
|