Commit Graph

156 Commits

Author SHA1 Message Date
Gabor Kiss-Vamosi
a5793c70a9 Revert "feat(conf) add better check for Kconfig default"
This reverts commit f8fe5366bb.
2021-10-14 16:23:12 +02:00
Gabor Kiss-Vamosi
f8fe5366bb feat(conf) add better check for Kconfig default
If a bool config is False Kconfig it won't add CONFIG_ define and it confused lv_conf_internal.h

Fixes: #2555
2021-10-14 16:20:20 +02:00
Xiang Xiao
7124ef7761 fix(conf) make a better style alignment in lv_conf_internal.h (#2652)
and reorder Kconfig and src/lv_conf_kconfig.h as lv_conf_template.h

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-10-12 18:15:05 +02:00
Gabor Kiss-Vamosi
18f61c5f77 arch add small 3rd party libs to lvgl (#2569)
* move png, sjpg, bmp, gif, fs_if to extra/libs

* reorganize the examples

* update lv_conf_internal.h

* fix warnings

* add freetype

* remove unused assets

* add the new libs to build tests

* update the docs
2021-10-04 14:34:11 +02:00
Xiang Xiao
13b89a8434 fix(lv_conf_internal_gen.py) formatting fixes on the generated file (#2542)
* fix(lv_conf_internal_gen.py): change lv_conf.h to lv_conf_internal.h

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>

* fix(lv_conf_internal_gen.py): remove the extra space before macro

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>

* fix: regenerate lv_conf_internal.h

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-09-23 19:52:31 +02:00
Mariotaku
efc5bb40d9 feat(drawing) hardware accelerated rendering by SDL2 (#2484)
* Hardware accelerated SDL render WIP

* Rect drawing code cleanup

* Fixed arc drawing angle
Fixed compact rect drawing

* Refactoring
Fixed cache deinit order

* Image recolor
Drawing left and right border

* Math problems

* Improving draw cache

* Improving line drawing logic

* Improving arc drawing quality

* Added round function

* Attempts to render properly on Pi

* Updated lruc function names

* Updated symbol names

* Saved ram by reusing part of background rect

* Added outline drawing
Removed arc texture caching

* rect drawing cache rendering

* high efficiency rect shadow texture caching

* fixed simple borders drawing

* fixed generic borders drawing

* Simplified text atlas caching logic
Supports chroma keyed image

* Color palette WIP

* Improved draw cache

* Updated defines for better build

* renaming files for better consistency

* fix includes

* Updated lv_conf_internal with generator

* Fixing build issues

* fixed img rotation pivot

* better font atlas caching WIP

* fix includes

* full font atlas support
improved gpu caching for rect

* update conf header

* fix palette creation

* Fixed font atlas key matching

* fixed chroma key image background

* added 3bpp mask palette (WIP)

* fixed caching key initialization

* disabled gpu arc drawing for now
updated naming convention

* updated naming convention

* fix makefile and include path

* improved rect drawing when having masks

* improved rect drawing when having masks

* reduced texture allocation while drawing with mask

* accurate clipping for rects and texts

* fixed build error

* fixed build error

* line drawing WIP

* updated imports

* fixed freezes if LRU has smaller new item

* fixed clipping rect color

* fixed build error

* using built-in free function for LRU key

* Added custom background drawing function

* fixing imports

* fixed shadow bitmap on old SDL libs

* improved draw_img compatibility

* fixing font baking

* fixed font rendering

* fixed lv_draw_line check

* configurable SDL include path

* disabled SDL line drawing implementation

* supports screen resize

* sdl: Remove duplicated object

Observed issue:

  /usr/bin/ld: lv_gpu_sdl_texture_cache.o: \
  in function `_lv_gpu_sdl_texture_cache_init':
  lv_gpu_sdl_texture_cache.c:(.text+0x30): \
  multiple definition of `_lv_gpu_sdl_texture_cache_init'; \
  lv_gpu_sdl_texture_cache.o:lv_gpu_sdl_texture_cache.c:(.text+0x30): \
  first defined here

Forwarded: https://github.com/mariotaku/lvgl/pull/1
Relate-to: https://github.com/lvgl/lvgl/pull/2484
Signed-off-by: Philippe Coval <philippe.coval@huawei.com>

* Reduced opening of image

* Closes image resource properly

* improved draw image logic

* Moved driver related code to lv_drivers

* fixed lv_deinit implicit sdl code invocation

* improved shadow clipping

* fixed outline area invalidation

* updated comments

* formatted code using astyle

* Updated README

* formatted code

* fixed typo

* fixed static declaration

Co-authored-by: Gabor Kiss-Vamosi <kisvegabor@gmail.com>
Co-authored-by: Philippe Coval <philippe.coval@huawei.com>
2021-09-16 18:20:32 +02:00
ckielstra
5249a34d5d docs more spelling fixes (#2499) 2021-08-27 12:15:39 +02:00
Themba Dube
2122583ec2 style fix usage of clang-format directives
We do not use clang-format anymore, so the directive has been removed from most headers.

lv_conf_template.h is untouched as a convenience for downstream projects which still use the tool.

Fixes #2441
2021-08-07 16:06:40 -04:00
Gabor Kiss-Vamosi
637b706ddc perf(draw) reimplement circle drawing algorithms (#2374)
* perf(draw) reimplement circle drawing algorithms

Imporve the speed of circle drawing
Add circle draw caching
Various other speed improvements

* docs describe how to use masks

* fix(draw) add missing GC root usage
2021-07-27 19:16:00 +02:00
Neo
c98c8252ea feat(snapshot) add API to take snapshot for object (#2353)
* Fix image zooming causes unexpected object size.

Signed-off-by: Xu Xingliang <xuxingliang@xiaomi.com>

* add lv_snapshot_take API.

* fix(img) invalidate size and layout on zoom and angle change

* fix(img) not self-repeating under some zoom level.

* fix(snapshot) fix to keep the original position

* Move various set_px_cb_xx functions to lv_hal_disp.c

* add snapshot API to store image to provided buffer

* minor fixes and refactoring

* Move snapshot source to extra/others/snapshot.

1. Update parameter buff to buf.
2. Add macro to disable lv_snapshot, enabled by default.

* docs(others) add the others folder with snapshot.md

* docs(snapshot) added doc and example for snapshot.

1. Update doc snapshot.md
2. Add example lv_example_snapshot_1 to folder examples/others/snapshot
3. Update lv_conf_template.h and lv_conf_internal.h
4. Remove lv_snapshot.c from lv_misc.mk
5. Add others to index.md

Signed-off-by: Xu Xingliang <xuxingliang@xiaomi.com>

* add micropython example for snapshot

Co-authored-by: Xu Xingliang <xuxingliang@xiaomi.com>
Co-authored-by: Gabor Kiss-Vamosi <kisvegabor@gmail.com>
2021-07-19 14:46:28 +02:00
_VIFEXTech
690b3546d6 feat(anim) add anim timeline (#2309)
* add anim_timeline

Signed-off-by: FASTSHIFT <vifextech@foxmail.com>

* add anim_timeline

Signed-off-by: FASTSHIFT <vifextech@foxmail.com>

* add lv_anim_timeline.c to lv_misc.mk

Signed-off-by: FASTSHIFT <vifextech@foxmail.com>

* LV_ANIM_TIMELINE_END uses global variables to replace macros, lv_anim_timeline_set_progress() adds user_data, act_time uses int32_t type

* solve the problem of uninitialized variable and act_time comparison

* add LV_ANIM_TIMELINE_CUSTOM_EXEC option

Signed-off-by: FASTSHIFT <vifextech@foxmail.com>

* add LV_ANIM_TIMELINE_CUSTOM_EXEC in lv_conf_internal.h

* redesign lv_anim_timeline

Signed-off-by: FASTSHIFT <vifextech@foxmail.com>

* add missing LV_USE_USER_DATA

* remove set_progress, update doc

* update workflow files

* Remove lv_example_anim_timeline_2.c and LV_ANIM_TIMELINE_CUSTOM_EXEC, update lv_anim_timeline_1.c example

Signed-off-by: FASTSHIFT <vifextech@foxmail.com>

* fix warning

Co-authored-by: Gabor Kiss-Vamosi <kisvegabor@gmail.com>
2021-07-19 13:58:58 +02:00
Seb Fagard
00c3eb197c fix(pxp): update RTOS macro for SDK 2.10
replace FSL_RTOS_FREE_RTOS by SDK_OS_FREE_RTOS in order to be aligned
with MCU SDK 2.10.
See MCUX-41577.

Signed-off-by: Seb Fagard <sebastien.fagard@nxp.com>
2021-06-21 10:53:38 +02:00
Gabor Kiss-Vamosi
a0eb46b042 feat(theme) add mono theme 2021-05-26 12:23:23 +02:00
Gabor Kiss-Vamosi
e2a7f559ab feat(bidi) make base dir a style property and rename lv_bidi_dir_t to lv_base_dir_t 2021-05-19 20:55:44 +02:00
guoweilkd
9fc556a90b add span widget (#2227)
Co-authored-by: guowei15 <guowei15@xiaomi.com>
2021-05-13 17:42:33 +02:00
Gabor Kiss-Vamosi
6aa27cc11b refactor(label, text area) rename functions of text_sel to text_selection 2021-05-13 15:39:06 +02:00
ZhaoQiang-b45475
8f083a34fa Extra: widgets: add a new widget animation image (#2167)
* Extra: widgets: add a new widget animation image

This widget is a combination of img and animation,
could achieve animation effects by
constantly switching a series imgs.

Signed-off-by: Qiang Zhao <qiang.zhao@nxp.com>
Signed-off-by: Hui Song <hui.song_1@nxp.com>
Signed-off-by: Xiaolin He <xiaolin.he@nxp.com>

* example: add animimg example

Signed-off-by: Qiang Zhao <qiang.zhao@nxp.com>
2021-05-07 14:50:48 +02:00
Gabor Kiss-Vamosi
4f46336a54 fix(theme) simplify the default theme 2021-04-28 10:11:26 +02:00
Gabor Kiss-Vamosi
fca7b106f1 feat(lv_conf) export LV_DPI_DEF in lv_conf_internal.h 2021-04-26 12:20:57 +02:00
Gabor Kiss-Vamosi
37c3162bbe Revert "feat(conf) automatically enable LV_LVGL_H_INCLUDE_SIMPLE if lvgl.h can be included"
This reverts commit a995695cdf.

__has_include("lvgl.h") is always true beacsue it's next to lv_conf_internal.h.
2021-04-19 20:22:46 +02:00
Gabor Kiss-Vamosi
a995695cdf feat(conf) automatically enable LV_LVGL_H_INCLUDE_SIMPLE if lvgl.h can be included 2021-04-19 19:04:46 +02:00
Gabor Kiss-Vamosi
2a07880db2 fix(lv_conf_template.h) remove lv_user_data_t as it's not used 2021-04-06 13:14:19 +02:00
Gabor Kiss-Vamosi
e97810c966 remove dead link from lv_Conf_template.h 2021-04-02 09:48:02 +02:00
Gabor Kiss-Vamosi
b22aa1497b Revert "fix(comment) remove https:// from lv_conf_template.h comments beacsue they caused nested comment warning"
The issue wasn't beacause of https:// but with  /*some/url/*/

This reverts commit bc081f6ef3.
2021-04-02 09:46:06 +02:00
Gabor Kiss-Vamosi
bc081f6ef3 fix(comment) remove https:// from lv_conf_template.h comments beacsue they caused nested comment warning
Fixes 66c1105ef6 (r48929310)
2021-03-31 20:13:46 +02:00
Gabor Kiss-Vamosi
66c1105ef6 chore(lv_conf_temaple.h): add comments to FLEX and GRID 2021-03-30 21:07:17 +02:00
Riccardo
e7c0401116 Fix a compilation error and build warning (#2172)
* fix(lv_obj): make lv_obj_update_layout() work with a const pointer

* fix(lv_conf_internal): prevent URL being interpreted as comment warning
2021-03-29 16:15:14 +02:00
Amir Gonnen
d0fb10724b feat(cmake) Allow building LVGL without kconfig (#2165) 2021-03-25 20:15:39 +01:00
Gabor Kiss-Vamosi
84163749ec fix(lv_conf): add LV_USE_THEME_BASIC 2021-03-19 18:07:58 +01:00
Gabor Kiss-Vamosi
c565d4de8a feat(refresh): add LV_USE_REFR_DEBUG 2021-03-19 18:05:33 +01:00
Gabor Kiss-Vamosi
150f44ed13 update lv_cont_internal.h 2021-03-18 17:39:07 +01:00
Xiang Xiao
9254a7ea14 fix(comment): remove the space after /* and before */ 2021-03-18 11:51:36 +08:00
Xiang Xiao
33b5ee3ad2 fix(task): change all task related term to timer
follow up the task module change
2021-03-03 14:32:25 +08:00
Gabor Kiss-Vamosi
2f0443b803 update lv_conf_internal.h 2021-03-01 12:03:46 +01:00
Gabor Kiss-Vamosi
8bc6931f7f add many LV_LOG_TRACE-s 2021-02-28 20:42:48 +01:00
Gabor Kiss-Vamosi
468fdb4f74 feat(debug): add mem. monitor simalarly to perf. monitor 2021-02-28 15:01:28 +01:00
Gabor Kiss-Vamosi
6f357ea745 minor fixes 2021-02-28 14:18:32 +01:00
Gabor Kiss-Vamosi
0493a9aebd update lv_conf_template 2021-02-26 16:12:30 +01:00
Gabor Kiss-Vamosi
0ab6433c66 assign theme to the display + minor fixes 2021-02-26 09:51:30 +01:00
Gabor Kiss-Vamosi
c6dd413f11 minor fixes 2021-02-23 15:13:14 +01:00
Gabor Kiss-Vamosi
8740046efc fix(theme): make LV_THEME_DEFAULT_GROW 1 by default 2021-02-23 11:32:50 +01:00
Gabor Kiss-Vamosi
fe20d47b6e fix warnings 2021-02-19 16:16:11 +01:00
Gabor Kiss-Vamosi
bf40fd7572 upadte lv_conf_internal.h 2021-02-17 13:42:54 +01:00
Gabor Kiss-Vamosi
02c19eacab fix warnings and make tests working 2021-02-14 22:07:38 +01:00
Gabor Kiss-Vamosi
bb08660cb6 minor fixes 2021-02-14 14:56:34 +01:00
Gabor Kiss-Vamosi
95b1bd8409 add examples + refactoring 2021-02-12 14:22:48 +01:00
Gabor Kiss-Vamosi
8a1af8646f add lv_components as src/extra and minor fixes 2021-02-04 14:46:11 +01:00
Gabor Kiss-Vamosi
e02c7bd415 add LV_DRAW_COMPLEX 2021-01-26 16:38:21 +01:00
Gabor Kiss-Vamosi
1f4c5adc30 remove LV_USE_ANIMATION/FS/GROUP 2021-01-26 15:09:36 +01:00
Gabor Kiss-Vamosi
f84720aa95 merge master 2021-01-23 23:50:00 +01:00