Home
last modified time | relevance | path

Searched full:t (Results 1 – 25 of 226) sorted by relevance

12345678910

/lvgl-3.5.0/src/extra/layouts/flex/
Dlv_flex.c58 lv_coord_t item_gap, track_t * t);
60 … lv_coord_t abs_y, lv_coord_t max_main_size, lv_coord_t item_gap, track_t * t);
260 track_t t; in flex_update() local
263 t.grow_dsc_calc = 0; in flex_update()
264 … next_track_first_item = find_track_end(cont, &f, track_first_item, max_main_size, item_gap, &t); in flex_update()
265 total_track_cross_size += t.track_cross_size + track_gap; in flex_update()
284 track_t t; in flex_update() local
285 t.grow_dsc_calc = 1; in flex_update()
287 … next_track_first_item = find_track_end(cont, &f, track_first_item, max_main_size, item_gap, &t); in flex_update()
290 *cross_pos -= t.track_cross_size; in flex_update()
[all …]
/lvgl-3.5.0/src/misc/
Dlv_anim.c230 uint32_t t = lv_map(a->act_time, 0, a->time, 0, LV_BEZIER_VAL_MAX); in lv_anim_path_ease_in() local
231 int32_t step = lv_bezier3(t, 0, 50, 100, LV_BEZIER_VAL_MAX); in lv_anim_path_ease_in()
244 uint32_t t = lv_map(a->act_time, 0, a->time, 0, LV_BEZIER_VAL_MAX); in lv_anim_path_ease_out() local
245 int32_t step = lv_bezier3(t, 0, 900, 950, LV_BEZIER_VAL_MAX); in lv_anim_path_ease_out()
258 uint32_t t = lv_map(a->act_time, 0, a->time, 0, LV_BEZIER_VAL_MAX); in lv_anim_path_ease_in_out() local
259 int32_t step = lv_bezier3(t, 0, 50, 952, LV_BEZIER_VAL_MAX); in lv_anim_path_ease_in_out()
272 uint32_t t = lv_map(a->act_time, 0, a->time, 0, LV_BEZIER_VAL_MAX); in lv_anim_path_overshoot() local
273 int32_t step = lv_bezier3(t, 0, 1000, 1300, LV_BEZIER_VAL_MAX); in lv_anim_path_overshoot()
286 int32_t t = lv_map(a->act_time, 0, a->time, 0, LV_BEZIER_VAL_MAX); in lv_anim_path_bounce() local
289 /*3 bounces has 5 parts: 3 down and 2 up. One part is t / 5 long*/ in lv_anim_path_bounce()
[all …]
Dlv_log.c85 uint32_t t = lv_tick_get(); in _lv_log_add() local
89 printf("[%s]\t(%" LV_PRId32 ".%03" LV_PRId32 ", +%" LV_PRId32 ")\t %s: ", in _lv_log_add()
90 lvl_prefix[level], t / 1000, t % 1000, t - last_log_time, func); in _lv_log_add()
92 printf(" \t(in %s line #%d)\n", &file[p], line); in _lv_log_add()
99 …lv_snprintf(buf, sizeof(buf), "[%s]\t(%" LV_PRId32 ".%03" LV_PRId32 ", +%" LV_PRId32 ")\t %s: %s \ 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()
103 …lv_snprintf(buf, sizeof(buf), "[%s]\t(%" LV_PRId32 ".%03" LV_PRId32 ", +%" LV_PRId32 ")\t %s: %pV … 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()
Dlv_math.h58 * @param t time in range of [0..LV_BEZIER_VAL_MAX]
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
Dlv_gc.h35 #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
Dlv_tlsf.c244 ** our minimum size granularity is 4 bytes, it doesn't make sense to
274 #define tlsf_cast(t, exp) ((t) (exp)) argument
678 tlsf_assert(!block_is_last(prev) && "previous block can't be last"); in block_absorb()
690 tlsf_assert(prev && "prev physical block can't be null"); in block_merge_prev()
703 tlsf_assert(next && "next physical block can't be null"); in block_merge_next()
706 tlsf_assert(!block_is_last(block) && "previous block can't be last"); in block_merge_next()
767 …** Note that we don't need to check sl, since it comes from a modulo operation that guarantees it'… in block_locate_free()
891 …printf("\t%p %s size: %x (%p)\n", ptr, used ? "used" : "free", (unsigned int)size, (void *)block_f… in default_walker()
1116 ** the prev_phys_block field is not valid, and we can't simply adjust in lv_tlsf_memalign()
1130 /* This can't be a static assert. */ in lv_tlsf_memalign()
[all …]
Dlv_math.c76 * @param t time in range of [0..LV_BEZIER_VAL_MAX]
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()
/lvgl-3.5.0/src/draw/nxp/vglite/
Dlv_draw_vglite_arc.c328 * 't' parameter is the proportion ratio expressed in range [0 ; T_FRACTION ]
330 static inline float lerp(float coord_a, float coord_b, uint16_t t) in lerp() argument
332 float tf = (float)t; in lerp()
337 * Computes a point of bezier curve given 't' param
339 static inline float comp_bezier_point(float t, cubic_cont_pt cp) in comp_bezier_point() argument
341 float t_sq = t * t; in comp_bezier_point()
342 float inv_t_sq = (1.0f - t) * (1.0f - t); in comp_bezier_point()
343 …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()
349 * Find parameter 't' in curve at point 'pt'
357 /* initialize dichotomy with boundary 't' values */ in get_bez_t_from_pos()
[all …]
/lvgl-3.5.0/src/draw/sw/
Dlv_draw_sw_dither.c58 lv_color32_t t; in lv_dither_ordered_hor() local
59 t.ch.red = LV_CLAMP(0, tmp.ch.red + factor, 255); in lv_dither_ordered_hor()
60 t.ch.green = LV_CLAMP(0, tmp.ch.green + factor, 255); in lv_dither_ordered_hor()
61 t.ch.blue = LV_CLAMP(0, tmp.ch.blue + factor, 255); in lv_dither_ordered_hor()
63 grad->map[j] = lv_color_hex(t.full); in lv_dither_ordered_hor()
82 lv_color32_t t; in lv_dither_ordered_ver() local
83 t.ch.red = LV_CLAMP(0, tmp.ch.red + factor, 255); in lv_dither_ordered_ver()
84 t.ch.green = LV_CLAMP(0, tmp.ch.green + factor, 255); in lv_dither_ordered_ver()
85 t.ch.blue = LV_CLAMP(0, tmp.ch.blue + factor, 255); in lv_dither_ordered_ver()
87 grad->map[j] = lv_color_hex(t.full); in lv_dither_ordered_ver()
[all …]
Dlv_draw_sw_transform.c41 * @param t pointer to n initialized `point_transform_dsc_t` structure
47 static void transform_point_upscaled(point_transform_dsc_t * t, int32_t xin, int32_t yin, int32_t *…
469 static void transform_point_upscaled(point_transform_dsc_t * t, int32_t xin, int32_t yin, int32_t *… in transform_point_upscaled() argument
472 if(t->angle == 0 && t->zoom == LV_IMG_ZOOM_NONE) { in transform_point_upscaled()
478 xin -= t->pivot.x; in transform_point_upscaled()
479 yin -= t->pivot.y; in transform_point_upscaled()
481 if(t->angle == 0) { in transform_point_upscaled()
482 *xout = ((int32_t)(xin * t->zoom)) + (t->pivot_x_256); in transform_point_upscaled()
483 *yout = ((int32_t)(yin * t->zoom)) + (t->pivot_y_256); in transform_point_upscaled()
485 else if(t->zoom == LV_IMG_ZOOM_NONE) { in transform_point_upscaled()
[all …]
/lvgl-3.5.0/src/extra/widgets/chart/
Dlv_chart.c194 /*Be the chart doesn't remain scrolled out*/ in lv_chart_set_zoom_x()
208 /*Be the chart doesn't remain scrolled out*/ in lv_chart_set_zoom_y()
234 lv_chart_tick_dsc_t * t = get_tick_gsc(obj, axis); in lv_chart_set_axis_tick() local
235 t->major_len = major_len; in lv_chart_set_axis_tick()
236 t->minor_len = minor_len; in lv_chart_set_axis_tick()
237 t->minor_cnt = minor_cnt; in lv_chart_set_axis_tick()
238 t->major_cnt = major_cnt; in lv_chart_set_axis_tick()
239 t->label_en = label_en; in lv_chart_set_axis_tick()
240 t->draw_size = draw_size; in lv_chart_set_axis_tick()
957 /*Don't draw the first point. A second point is also required to draw the line*/ in draw_series_line()
[all …]
/lvgl-3.5.0/scripts/
Djpg_to_sjpg.py20 print("usage:\n\t python " + sys.argv[0] + " input_file.jpg")
35 print("\t" + INPUT_FILE)
109 c_code = c_code + "\t" + str(hex(sjpeg[i])) + ","
118 c_code = c_code + "\t.header.always_zero = 0,\n"
119 c_code = c_code + "\t.header.w = " + str(width) + ",\n"
120 c_code = c_code + "\t.header.h = " + str(height) + ",\n"
121 c_code = c_code + "\t.data_size = " + str(len(sjpeg)) + ",\n"
122 c_code = c_code + "\t.header.cf = LV_IMG_CF_RAW,\n"
123 c_code = c_code + "\t.data = " + OUTPUT_FILE_NAME+"_map" + ",\n};"
136 print("\t" + OUTPUT_FILE_NAME + ".sjpg\t(bin file)" + "\n\t" + OUTPUT_FILE_NAME + ".c\t\t(c array)")
/lvgl-3.5.0/src/core/
Dlv_obj_scroll.c165 /*Normally can't scroll the object out on the left. in lv_obj_get_scroll_left()
208 /*With RTL base dir can't scroll to the object out on the right. in lv_obj_get_scroll_right()
261 /*Don't let scroll more then naturally possible by the size of the content*/ in lv_obj_scroll_by_bounded()
284 /*Don't let scroll more then naturally possible by the size of the content*/ in lv_obj_scroll_by_bounded()
314 uint32_t t = lv_anim_speed_to_time((lv_disp_get_hor_res(d) * 2) >> 2, 0, dx); in lv_obj_scroll_by() local
315 if(t < SCROLL_ANIM_TIME_MIN) t = SCROLL_ANIM_TIME_MIN; in lv_obj_scroll_by()
316 if(t > SCROLL_ANIM_TIME_MAX) t = SCROLL_ANIM_TIME_MAX; in lv_obj_scroll_by()
317 lv_anim_set_time(&a, t); in lv_obj_scroll_by()
330 uint32_t t = lv_anim_speed_to_time((lv_disp_get_ver_res(d) * 2) >> 2, 0, dy); in lv_obj_scroll_by() local
331 if(t < SCROLL_ANIM_TIME_MIN) t = SCROLL_ANIM_TIME_MIN; in lv_obj_scroll_by()
[all …]
Dlv_obj.c147 LV_LOG_WARN("The strings have no UTF-8 encoding. Non-ASCII characters won't be displayed."); in lv_init()
476 /*Most trivial test. Is the mask fully IN the object? If no it surely doesn't cover it*/ in lv_obj_draw()
544 …/*Add the mask and use `obj+8` as custom id. Don't use `obj` directly because it might be used by … in lv_obj_draw()
762 /*If the object can't be scrolled horizontally then scroll it vertically*/ in lv_obj_event()
769 /*If the object can't be scrolled horizontally then scroll it vertically*/ in lv_obj_event()
887 uint32_t t; in lv_obj_set_state() local
888 for(t = 0; t < tsi; t++) { in lv_obj_set_state()
889 lv_style_selector_t selector = ts[t].selector; in lv_obj_set_state()
892 … if(ts[t].prop == tr->props[j] && part_ts == part_act && state_ts >= state_act) break; in lv_obj_set_state()
896 if(t == tsi) { in lv_obj_set_state()
/lvgl-3.5.0/demos/music/
Dlv_demo_music_main.c61 static void timer_cb(lv_timer_t * t);
63 static void stop_start_anim(lv_timer_t * t);
812 int32_t t = BAR_PER_BAND_CNT * s - band_w / 2 + f; in spectrum_draw_event_cb() local
813 if(t < 0) t = BAR_CNT + t; in spectrum_draw_event_cb()
814 if(t >= BAR_CNT) t = t - BAR_CNT; in spectrum_draw_event_cb()
815 r[t] += (ampl_main * ampl_mod) >> 9; in spectrum_draw_event_cb()
978 static void timer_cb(lv_timer_t * t) in timer_cb() argument
980 LV_UNUSED(t); in timer_cb()
993 static void stop_start_anim(lv_timer_t * t) in stop_start_anim() argument
995 LV_UNUSED(t); in stop_start_anim()
/lvgl-3.5.0/src/extra/libs/png/
Dlodepng.h272 …unsigned ignore_adler32; /*if 1, continue and don't give an error message if the Adler32 checksum …
409 … image can have translucent or invisible pixels (it still be opaque if it doesn't use such pixels).
482 Don't allocate these text buffers yourself. Use the init/cleanup functions
573 Don't allocate this buffer yourself. Use the init/cleanup functions
627 return value = LodePNG error code (0 if all went ok, an error if the conversion isn't supported)
718 …ault 1. if 0, disallow choosing palette colortype in auto_choose_color, and don't count numcolors*/
746 have to cleanup this buffer, LodePNG will never free it. Don't forget that filter_palette_zero
1368 to by viewers that don't support more than 256 colors (if those still exist)
1391 palette when the palette doesn't have a required color is not supported. This is
1439 If, when encoding, you don't want LodePNG to choose the output PNG color type
[all …]
/lvgl-3.5.0/demos/benchmark/
Dlv_demo_benchmark.c736 lv_timer_t * t = lv_timer_create(report_cb, SCENE_TIME, NULL); in lv_demo_benchmark_run_scene() local
737 lv_timer_set_repeat_count(t, 1); in lv_demo_benchmark_run_scene()
1017 lv_timer_t * t = lv_timer_create(scene_next_task_cb, SCENE_TIME, NULL); in scene_next_task_cb() local
1018 lv_timer_set_repeat_count(t, 1); in scene_next_task_cb()
1139 uint32_t t = rnd_next(ANIM_TIME_MIN / 4, ANIM_TIME_MAX / 4); in arc_create() local
1146 lv_anim_set_time(&a, t); in arc_create()
1147 lv_anim_set_playback_time(&a, t); in arc_create()
1165 uint32_t t = rnd_next(ANIM_TIME_MIN, ANIM_TIME_MAX); in fall_anim() local
1172 lv_anim_set_time(&a, t); in fall_anim()
1173 lv_anim_set_playback_time(&a, t); in fall_anim()
[all …]
/lvgl-3.5.0/docs/
DCONTRIBUTING.md52 …hub.com/<YOUR_NAME>/lvgl`) by clicking the *"New pull request"* button. Don't forget to select the…
84 - don't capitalize the first letter
102 The animations weren't deleted in the destructor.
165 Most of these options don't even require knowing a single line of LVGL code.
187 Only one thing: On social media don't forget to add a link to `https://lvgl.io` or `https://github.…
200 If you don't want to speak about your project publicly, feel free to use [Contact form](https://lvg…
232 If you found and fixed a bug don't hesitate to send a [Pull request](#pull-request) with the fix.
243 Just read the titles and if you are familiar with the topic don't hesitate to share your thoughts a…
279 …es is not a guarantee of acceptance, i.e. if the conditions are met you won't automatically become…
/lvgl-3.5.0/src/widgets/
Dlv_canvas.c222 LV_LOG_WARN("Can't transform canvas with LV_DRAW_COMPLEX == 0"); in lv_canvas_transform()
524 LV_LOG_WARN("lv_canvas_draw_rect: can't draw to LV_IMG_CF_INDEXED canvas"); in lv_canvas_draw_rect()
568 LV_LOG_WARN("lv_canvas_draw_text: can't draw to LV_IMG_CF_INDEXED canvas"); in lv_canvas_draw_text()
604 LV_LOG_WARN("lv_canvas_draw_img: can't draw to LV_IMG_CF_INDEXED canvas"); in lv_canvas_draw_img()
611 LV_LOG_WARN("lv_canvas_draw_img: Couldn't get the image data."); in lv_canvas_draw_img()
647 LV_LOG_WARN("lv_canvas_draw_line: can't draw to LV_IMG_CF_INDEXED canvas"); in lv_canvas_draw_line()
689 LV_LOG_WARN("lv_canvas_draw_polygon: can't draw to LV_IMG_CF_INDEXED canvas"); in lv_canvas_draw_polygon()
728 LV_LOG_WARN("lv_canvas_draw_arc: can't draw to LV_IMG_CF_INDEXED canvas"); in lv_canvas_draw_arc()
758 LV_LOG_WARN("Can't draw arc with LV_DRAW_COMPLEX == 0"); in lv_canvas_draw_arc()
804 /*Allocate the fake driver on the stack as the entire display doesn't outlive this function*/ in init_fake_disp()
/lvgl-3.5.0/src/extra/widgets/tabview/
Dlv_tabview.c333 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-3.5.0/examples/libs/rlottie/
Dlv_example_rlottie_approve.json1t":10,"s":[0]},{"t":45,"s":[92]}],"ix":2},"o":{"a":0,"k":0,"ix":3},"m":1,"ix":2,"nm":"Trim Paths 1… number
/lvgl-3.5.0/docs/overview/
Ddrawing.md3 With LVGL, you don't need to draw anything manually. Just create objects (like buttons, labels, arc…
18 The main difference is that with LVGL you don't have to store two frame buffers (which usually requ…
35 If the area doesn't fit into the buffer, draw as many lines as possible to the *draw buffer*.
58 3. **Create masks** If the shape is very simple and doesn't require masks, go to #5. Otherwise, cre…
104 …get. By default, its buttons can be styled in different states, but you can't style the buttons on…
203 - It doesn't have 100% background opacity
208 In short if for any reason the area below an object is visible than the object doesn't cover that a…
213 …rea, but you need to handle `radius` only if you will modify it and the widget won't know about it.
Dtimer.md56 … 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…
Dimage.md127 …ilt-in image formats. In many cases, these will be all you need. LVGL doesn't directly support, ho…
134 - **read** if *open* didn't fully open an image this function should give some decoded data (max 1 …
175 * @return LV_RES_OK: no error; LV_RES_INV: can't get the info
194 * @return LV_RES_OK: no error; LV_RES_INV: can't get the info
216 …* Required only if the "open" function can't open the whole decoded pixel array. (dsc->img_data ==…
255 If the format is known, but you don't want to decode the entire image (e.g. no memory for it), set …
298 When you use more images than cache entries, LVGL can't cache all the images. Instead, the library …
/lvgl-3.5.0/src/extra/libs/rlottie/
Dlv_rlottie.c30 static void next_frame_task_cb(lv_timer_t * t);
119 LV_LOG_WARN("The aniamtion can't be opened"); in lv_rlottie_constructor()
226 static void next_frame_task_cb(lv_timer_t * t) in next_frame_task_cb() argument
228 lv_obj_t * obj = t->user_data; in next_frame_task_cb()
234 lv_timer_pause(t); in next_frame_task_cb()
248 lv_timer_pause(t); in next_frame_task_cb()
261 lv_timer_pause(t); in next_frame_task_cb()

12345678910