Home
last modified time | relevance | path

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

12345678910

/lvgl-latest/src/extra/layouts/flex/
Dlv_flex.c57 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/
Dlv_anim.c229 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
288 /*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
677 tlsf_assert(!block_is_last(prev) && "previous block can't be last"); in block_absorb()
689 tlsf_assert(prev && "prev physical block can't be null"); in block_merge_prev()
702 tlsf_assert(next && "next physical block can't be null"); in block_merge_next()
705 tlsf_assert(!block_is_last(block) && "previous block can't be last"); in block_merge_next()
766 …** Note that we don't need to check sl, since it comes from a modulo operation that guarantees it'… in block_locate_free()
890 …printf("\t%p %s size: %x (%p)\n", ptr, used ? "used" : "free", (unsigned int)size, (void *)block_f… in default_walker()
1115 ** the prev_phys_block field is not valid, and we can't simply adjust in lv_tlsf_memalign()
1129 /* 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-latest/src/draw/nxp/vglite/
Dlv_draw_vglite_arc.c332 * 't' parameter is the proportion ratio expressed in range [0 ; T_FRACTION ]
334 static inline float lerp(float coord_a, float coord_b, uint16_t t) in lerp() argument
336 float tf = (float)t; in lerp()
341 * Computes a point of bezier curve given 't' param
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()
353 * Find parameter 't' in curve at point 'pt'
361 /* initialize dichotomy with boundary 't' values */ in get_bez_t_from_pos()
[all …]
/lvgl-latest/src/draw/sw/
Dlv_draw_sw_dither.c56 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 …]
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 *…
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()
[all …]
/lvgl-latest/src/extra/widgets/chart/
Dlv_chart.c193 /*Be the chart doesn't remain scrolled out*/ in lv_chart_set_zoom_x()
207 /*Be the chart doesn't remain scrolled out*/ in lv_chart_set_zoom_y()
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()
960 /*Don't draw the first point. A second point is also required to draw the line*/ in draw_series_line()
[all …]
/lvgl-latest/src/extra/libs/tiny_ttf/
Dstb_truetype_htcw.h104 // Simple 3D API (don't ship this, but it's fine for tools and quick start)
184 // "per inch" conventions don't make much sense on computer displays
243 // if you don't do this, stb_truetype is forced to do the conversion on
255 // caching the bitmaps or glyph shapes this shouldn't be a big deal.
258 // given file is in a general way. I provide an API for this, but I don't
427 //// of C library functions used by stb_truetype, e.g. if you don't
646 unsigned char h_oversample, v_oversample; // don't set these, they're used internally
693 // this is an opaque structure that you shouldn't mess with which holds
766 // the stbtt_fontinfo yourself, and stbtt_InitFont will fill it out. You don't
849 // GLYPH SHAPES (you probably don't need these, but they have to go before
[all …]
Dstb_rect_pack.h153 // If you don't do either of the above things, widths will be quantized to multiples
154 // of small integers to guarantee the algorithm doesn't run out of temporary storage.
177 // the details of the following structures don't matter to you, but they must
246 // if it's ok to run out of memory, then don't bother aligning them; in stbrp_setup_allow_out_of_mem()
356 // if it can't possibly fit, bail immediately in stbrp__skyline_find_best_pos()
456 // 2. the best node doesn't fit (we don't always check this) in stbrp__skyline_pack_rectangle()
486 // that shouldn't be freed in stbrp__skyline_pack_rectangle()
/lvgl-latest/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-latest/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()
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()
[all …]
Dlv_obj.c156 LV_LOG_WARN("The strings have no UTF-8 encoding. Non-ASCII characters won't be displayed."); in lv_init()
495 /*Most trivial test. Is the mask fully IN the object? If no it surely doesn't cover it*/ in lv_obj_draw()
567 …/*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()
785 /*If the object can't be scrolled horizontally then scroll it vertically*/ in lv_obj_event()
792 /*If the object can't be scrolled horizontally then scroll it vertically*/ in lv_obj_event()
914 uint32_t t; in lv_obj_set_state() local
915 for(t = 0; t < tsi; t++) { in lv_obj_set_state()
916 lv_style_selector_t selector = ts[t].selector; in lv_obj_set_state()
919 … if(ts[t].prop == tr->props[j] && part_ts == part_act && state_ts >= state_act) break; in lv_obj_set_state()
923 if(t == tsi) { in lv_obj_set_state()
/lvgl-latest/demos/music/
Dlv_demo_music_main.c61 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/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-latest/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-latest/src/widgets/
Dlv_canvas.c220 LV_LOG_WARN("Can't transform canvas with LV_DRAW_COMPLEX == 0"); in lv_canvas_transform()
522 LV_LOG_WARN("lv_canvas_draw_rect: can't draw to LV_IMG_CF_INDEXED canvas"); in lv_canvas_draw_rect()
566 LV_LOG_WARN("lv_canvas_draw_text: can't draw to LV_IMG_CF_INDEXED canvas"); in lv_canvas_draw_text()
602 LV_LOG_WARN("lv_canvas_draw_img: can't draw to LV_IMG_CF_INDEXED canvas"); in lv_canvas_draw_img()
609 LV_LOG_WARN("lv_canvas_draw_img: Couldn't get the image data."); in lv_canvas_draw_img()
645 LV_LOG_WARN("lv_canvas_draw_line: can't draw to LV_IMG_CF_INDEXED canvas"); in lv_canvas_draw_line()
686 LV_LOG_WARN("lv_canvas_draw_polygon: can't draw to LV_IMG_CF_INDEXED canvas"); in lv_canvas_draw_polygon()
725 LV_LOG_WARN("lv_canvas_draw_arc: can't draw to LV_IMG_CF_INDEXED canvas"); in lv_canvas_draw_arc()
755 LV_LOG_WARN("Can't draw arc with LV_DRAW_COMPLEX == 0"); in lv_canvas_draw_arc()
800 /*Allocate the fake driver on the stack as the entire display doesn't outlive this function*/ in init_fake_disp()
/lvgl-latest/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-latest/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-latest/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.
/lvgl-latest/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()
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/benchmark/
Dlv_demo_benchmark.c738 lv_timer_t * t = lv_timer_create(report_cb, SCENE_TIME, NULL); in lv_demo_benchmark_run_scene() local
739 lv_timer_set_repeat_count(t, 1); in lv_demo_benchmark_run_scene()
1132 uint32_t t = rnd_next(ANIM_TIME_MIN / 4, ANIM_TIME_MAX / 4); in arc_create() local
1139 lv_anim_set_time(&a, t); in arc_create()
1140 lv_anim_set_playback_time(&a, t); in arc_create()
1157 uint32_t t = rnd_next(ANIM_TIME_MIN, ANIM_TIME_MAX); in fall_anim() local
1164 lv_anim_set_time(&a, t); in fall_anim()
1165 lv_anim_set_playback_time(&a, t); in fall_anim()
1183 int32_t t = min; in rnd_next() local
1185 max = t; in rnd_next()

12345678910