Home
last modified time | relevance | path

Searched refs:lottie (Results 1 – 12 of 12) sorted by relevance

/lvgl-latest/src/widgets/lottie/
Dlv_lottie.c38 static void lottie_update(lv_lottie_t * lottie, int32_t v);
75 lv_lottie_t * lottie = (lv_lottie_t *)obj; in lv_lottie_set_buffer() local
79 tvg_swcanvas_set_target(lottie->tvg_canvas, buf, stride / 4, w, h, TVG_COLORSPACE_ARGB8888); in lv_lottie_set_buffer()
80 tvg_canvas_push(lottie->tvg_canvas, lottie->tvg_paint); in lv_lottie_set_buffer()
82 tvg_picture_set_size(lottie->tvg_paint, w, h); in lv_lottie_set_buffer()
90 tvg_animation_get_frame(lottie->tvg_anim, &f_current); in lv_lottie_set_buffer()
101 lv_lottie_t * lottie = (lv_lottie_t *)obj; in lv_lottie_set_draw_buf() local
102 tvg_swcanvas_set_target(lottie->tvg_canvas, (void *)draw_buf->data, draw_buf->header.stride / 4, in lv_lottie_set_draw_buf()
104 tvg_canvas_push(lottie->tvg_canvas, lottie->tvg_paint); in lv_lottie_set_draw_buf()
106 tvg_picture_set_size(lottie->tvg_paint, draw_buf->header.w, draw_buf->header.h); in lv_lottie_set_draw_buf()
[all …]
/lvgl-latest/tests/src/test_cases/widgets/
Dtest_lottie.c31 lv_obj_t * lottie = lv_lottie_create(lv_screen_active()); in test_lottie_simple() local
32 lv_lottie_set_buffer(lottie, 100, 100, lv_draw_buf_align(buf, LV_COLOR_FORMAT_ARGB8888)); in test_lottie_simple()
33 lv_lottie_set_src_data(lottie, test_lottie_approve, test_lottie_approve_size); in test_lottie_simple()
34 lv_obj_center(lottie); in test_lottie_simple()
47 lv_lottie_set_src_data(lottie, test_lottie_approve, test_lottie_approve_size); in test_lottie_simple()
56 lv_obj_t * lottie = lv_lottie_create(lv_screen_active()); in test_lottie_load_from_file() local
57 lv_lottie_set_buffer(lottie, 100, 100, lv_draw_buf_align(buf, LV_COLOR_FORMAT_ARGB8888)); in test_lottie_load_from_file()
58 lv_lottie_set_src_file(lottie, "src/test_assets/test_lottie_approve.json"); in test_lottie_load_from_file()
59 lv_obj_center(lottie); in test_lottie_load_from_file()
71 lv_lottie_set_src_data(lottie, test_lottie_approve, test_lottie_approve_size); in test_lottie_load_from_file()
[all …]
/lvgl-latest/examples/widgets/lottie/
Dlv_example_lottie_2.c11 lv_obj_t * lottie = lv_lottie_create(lv_screen_active()); in lv_example_lottie_2() local
12 lv_lottie_set_src_file(lottie, "lvgl/examples/widgets/lottie/lv_example_lottie_approve.json"); in lv_example_lottie_2()
18 lv_lottie_set_buffer(lottie, 64, 64, buf); in lv_example_lottie_2()
22 lv_lottie_set_draw_buf(lottie, &draw_buf); in lv_example_lottie_2()
25 lv_obj_center(lottie); in lv_example_lottie_2()
Dlv_example_lottie_1.c13 lv_obj_t * lottie = lv_lottie_create(lv_screen_active()); in lv_example_lottie_1() local
14 lv_lottie_set_src_data(lottie, lv_example_lottie_approve, lv_example_lottie_approve_size); in lv_example_lottie_1()
20 lv_lottie_set_buffer(lottie, 64, 64, buf); in lv_example_lottie_1()
24 lv_lottie_set_draw_buf(lottie, &draw_buf); in lv_example_lottie_1()
27 lv_obj_center(lottie); in lv_example_lottie_1()
Dindex.rst4 .. lv_example:: widgets/lottie/lv_example_lottie_1
10 .. lv_example:: widgets/lottie/lv_example_lottie_2
/lvgl-latest/docs/details/libs/
Drlottie.rst64 lv_obj_t * lottie = lv_rlottie_create_from_file(parent, width, height, "path/to/lottie.json");
84 ./filetohex.py path/to/lottie.json --filter-character --null-terminate > out.txt
93 lv_obj_t* lottie = lv_rlottie_create_from_raw(parent, width, height, (const char *)lottie_data);
114 lv_obj_t * lottie = lv_rlottie_create_from_file(scr, 128, 128, "test.json");
115 lv_obj_center(lottie);
117 lv_rlottie_set_current_frame(lottie, 50);
118 …lv_rlottie_set_play_mode(lottie, LV_RLOTTIE_CTRL_PAUSE); // The specified frame will be displayed …
121 …lv_rlottie_set_play_mode(lottie, LV_RLOTTIE_CTRL_PLAY | LV_RLOTTIE_CTRL_BACKWARD | LV_RLOTTIE_CTRL…
124 lv_rlottie_set_play_mode(lottie, LV_RLOTTIE_CTRL_PLAY | LV_RLOTTIE_CTRL_FORWARD);
143 portions of RAM. This will vary from lottie to lottie but in general for
[all …]
/lvgl-latest/examples/libs/rlottie/
Dlv_example_rlottie_2.c11 lv_obj_t * lottie = lv_rlottie_create_from_file(lv_screen_active(), 100, 100, in lv_example_rlottie_2() local
13 lv_obj_center(lottie); in lv_example_rlottie_2()
Dlv_example_rlottie_1.c11 …lv_obj_t * lottie = lv_rlottie_create_from_raw(lv_screen_active(), 100, 100, (const void *)lv_exam… in lv_example_rlottie_1() local
12 lv_obj_center(lottie); in lv_example_rlottie_1()
/lvgl-latest/docs/details/widgets/
Dlottie.rst53 The buffer can be set with either :cpp:expr:`lv_lottie_set_buffer(lottie, w, h, buf)`
54 or :cpp:expr:`lv_lottie_set_draw_buf(lottie, draw_buf)`.
72 ./filetohex.py path/to/lottie.json --filter-character --null-terminate > out.txt
77 :cpp:expr:`lv_lottie_set_src_data(lottie, data, sizeof(data))`
79 Lottie animations can be opened from JSON files by using :cpp:expr:`lv_lottie_set_src_file(lottie, …
87 lv_anim_t * a = lv_lottie_get_anim(lottie)
128 .. include:: ../../examples/widgets/lottie/index.rst
Dindex.rst27 lottie
/lvgl-latest/env_support/qnx/
Dcommon.mk86 $(SRC_ROOT)/widgets/lottie \
/lvgl-latest/docs/
DCHANGELOG.rst88 - **feat(lottie): add external thorvg header file support** `6311 <https://github.com/lvgl/lvgl/pul…
148 - **feat(lottie): add ThorVG based lottie widget** `9c5ca0e <https://github.com/lvgl/lvgl/commit/9c…
172 - **perf(lottie): remove lottie canvas quadratic premultiplication.** `6358 <https://github.com/lvg…
277 - **fix(docs): Fix failing docs build in master since lottie** `6316 <https://github.com/lvgl/lvgl/…
390 - **docs(lottie): fix missing lottie link on the widgets index** `6272 <https://github.com/lvgl/lvg…