1
0
mirror of https://github.com/lvgl/lvgl.git synced 2025-01-14 06:42:58 +08:00

43 Commits

Author SHA1 Message Date
Gabor Kiss-Vamosi
91ebf810aa
docs(get-started): add quick-overview to the index 2022-06-19 15:05:37 +02:00
Man, Jianting (Meco)
1e40fa88a4
doc(rt-thread): add section:import a bsp project into rt-thread studio (#3411) 2022-06-14 10:31:30 +02:00
nicusorcitu
029eef79c4
feat(gpu): reattach nxp pxp vglite accelerators(#3322)
* feat(pxp/vglite) Attach NXP GPUs to the new draw context.

Create a single NXP draw layer on top of PXP and VGLITE.
Extra changes:
1. Add VGLITE image blits acceleration.
2. Reenable blit split workaround for quality issue in RT500.
3. Increase threshold from 32 to 5000 px to fill/blit with both PXP and VGLITE.
4. Allow to enable both PXP and VGLITE. Add a fallback mechanism:
- by default the PXP will try to accelerate. if that is not supported (or fails
due to threshold limit condition from 3.) then it will fallback to VGLITE.
- if VGLITE does not support that feature (or fails due to threshold limit
condition from 3.) the it will fallback to CPU.

Signed-off-by: Nicușor Cîțu <nicusor.citu@nxp.com>

* feat(vglite) Add VGLITE support to draw the backgroud of rectangles.

optim: draw only a circle when radius has value LV_RADIUS_CIRCLE.
optim: to draw rounded corners, use cubic bezier curves

Signed-off-by: Seb Fagard <sebastien.fagard@nxp.com>
Signed-off-by: Nicușor Cîțu <nicusor.citu@nxp.com>

* feat(vglite) Add VGLITE support to draw arcs.

Use up to 4 bezier curves to optimize the drawing of an arc.
The arc curve has to be constant when growing the angle:
for this we compute sub-arc based on a best approximation of quarter-arc.
use dichotomy to find the sub-arc 't' param, instead of tangent approximation.

Signed-off-by: Seb Fagard <sebastien.fagard@nxp.com>
Signed-off-by: Nicușor Cîțu <nicusor.citu@nxp.com>

* feat(pxp) Add ARGB88888 format support for PXP backend.

Supports per pixel and global alpha blending, and combination of alpha blending with recolor feature.

Signed-off-by: Jerome Evillard <jerome.evillard@nxp.com>
Signed-off-by: Seb Fagard <sebastien.fagard@nxp.com>
Signed-off-by: Nicușor Cîțu <nicusor.citu@nxp.com>

* feat(vglite) Add the support of ARGB 32bits color format.

Signed-off-by: Seb Fagard <sebastien.fagard@nxp.com>
Signed-off-by: Nicușor Cîțu <nicusor.citu@nxp.com>

* feat(vglite) Add VGLITE acceleration support for rotation and zoom.

Signed-off-by: Seb Fagard <sebastien.fagard@nxp.com>
Signed-off-by: Nicușor Cîțu <nicusor.citu@nxp.com>

* feat(pxp) Add PXP acceleratin to rotate in blit.

Applies the rotation on the pxp output.

Signed-off-by: Seb Fagard <sebastien.fagard@nxp.com>
Signed-off-by: Nicușor Cîțu <nicusor.citu@nxp.com>

* fix(pxp/vglite) Avoid calling the blend callback from image decoded callback.

Add lv_gpu_nxp_pxp_blit_transform() and lv_gpu_nxp_vglite_blit_transform().
This will simplify a lot the fallback mechanism and the way of adding new
image decoded features.
(MGG-884)

Signed-off-by: Nicușor Cîțu <nicusor.citu@nxp.com>

* feat(pxp) Add image rotate 90x.

Simplify the two steps process by adding the blit_cover and blit_opa functions.

In order to rotate or recolor with opacity, two steps must be fallowed:
1. Run the operation without opa.
2. Blend the result by applying the opa.
(MGG-469)

Obs:
Recolor and rotate is currently not supported with opa or alpha channel.(MGG-883)

Signed-off-by: Nicușor Cîțu <nicusor.citu@nxp.com>

* fix(vglite) Fix incorrect slider widget indicator when vglite acceleration is enabled

(MGG-863)

Signed-off-by: Stefan Babatie <stefan.babatie@nxp.com>
Signed-off-by: Nicușor Cîțu <nicusor.citu@nxp.com>

* fix(pxp) Fix pxp fill (simple rect draw)  on 32 bit color depth.

(MGG-890)

Signed-off-by: Stefan Babatie <stefan.babatie@nxp.com>

* fix(pxp) Separate blit simple by the blit with transformation.

While we run into blit with transformation we have to
decide if the operation needs to be done in one or two steps.
Blit with color format (opa or alpha or chroma key) - require one step: blit_cf().
Blit with rotate or recolor but no color format - require one step: blit_cover().
Blit with rotate or recolor + opa or alpha - require two steps:
blit_opa() = blit_cover() + blit_cf().
Blit with rotate or recolor + chroma key - not supported yet.

Signed-off-by: Nicușor Cîțu <nicusor.citu@nxp.com>

* feat(pxp) Add support for recolor with chroma-keying.

(MGG-434)

Signed-off-by: Stefan Babatie <stefan.babatie@nxp.com>

* fix(pxp) Fix temporary buffer allocation limit.

Signed-off-by: Nicușor Cîțu <nicusor.citu@nxp.com>

* fix(pxp) Add PXP limitation while rotating images not aligned to 16x16 blocks.

Signed-off-by: Nicușor Cîțu <nicusor.citu@nxp.com>

* fix(nxp) Add makefiles.

Tested with:
      working-directory: tests/makefile
      run: make test_file

Signed-off-by: Nicușor Cîțu <nicusor.citu@nxp.com>

* feat(nxp) Update NXP github documentation.

(MGG-864)

Signed-off-by: Nicușor Cîțu <nicusor.citu@nxp.com>

* fix(nxp) Move the API comments of global functions only in the H files to make maintenance simpler.

Signed-off-by: Nicușor Cîțu <nicusor.citu@nxp.com>

* fix(nxp/vglite) Fixed some warnings. Remove unused variables.

Signed-off-by: Nicușor Cîțu <nicusor.citu@nxp.com>

* fix(nxp) lv_draw_nxp_ctx_deinit() shall simply fallback to sofware call.

Signed-off-by: Nicușor Cîțu <nicusor.citu@nxp.com>

* fix(nxp) Fallback to software callbacks if need for argb8565 support.

During rendering, LVGL might initializes new draw_ctxs and start drawing into
a separate buffer (called layer). If the content to be rendered has "holes",
e.g. rounded corner, LVGL temporarily sets the disp_drv.screen_transp flag.
It means the renderers should draw into an ARGB buffer.
With 32 bit color depth it's not a big problem but with 16 bit color depth
the target pixel format is ARGB8565 which is not supported by the GPU.
In this case, the NXP callbacks should fallback to SW rendering.

Signed-off-by: Nicușor Cîțu <nicusor.citu@nxp.com>

* fix(pxp) Fix wrong demo widget transparency.

1. Fix alpha inverted calculation for fill with opacity.
2. Fix also the ratio of recoloring for chroma key.

Signed-off-by: Stefan Babatie <stefan.babatie@nxp.com>

* fix(vglite) Remove software pre-multiplication when hardware pre-multiplication is available.

(MGG-886)

Signed-off-by: Stefan Babatie <stefan.babatie@nxp.com>

* doc(vglite) Add vglite initialization info.

Signed-off-by: Nicușor Cîțu <nicusor.citu@nxp.com>

* fix(pxp/vglite) Fix unused variable warnings when PXP/VGLite are not enabled simultaneously.

Signed-off-by: Nicușor Cîțu <nicusor.citu@nxp.com>

* fix(pxp) Fixed the color key recoloring on 16 bits color depth.

1. Fixed the arguments of lv_color_mix(), previously was using an inversed logic. But it works anyway.
2. Use LV_COLOR_SET_X for adjusting the channels on both 16 and 32 bits. Fixed the max values.

Signed-off-by: Nicușor Cîțu <nicusor.citu@nxp.com>

Co-authored-by: Stefan Babatie <stefan.babatie@nxp.com>
2022-05-24 11:43:57 +02:00
embeddedt
d6911053aa
chore(docs) remove unneeded eval_rst statements 2022-05-09 13:35:03 -04:00
embeddedt
1816fa576c
ci(docs) replace use of sed with proper configuration variables 2022-05-09 13:28:06 -04:00
Gabriel Wang
6560c792ca
docs(pc-simulator): add MDK with FastModel (#3318) 2022-05-03 23:31:02 +08:00
simplejack-src
1cf2e5d886
feat(cmake-build): Option to allow building shared libraries. (#3278)
Add option in CMake build to specify that shared libraries should be created (as
opposed to static). This is an exclusive option (not enabled by default).

Co-authored-by: simeplejack-src <example@example.com>
2022-04-20 12:04:56 +02:00
Xiang Xiao
fcf833f9af
Minor document update (#3185)
* chore(docs): change "-DLV_USE_BTN 1" to "-DLV_USE_BTN=1"

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

* chore(docs): update demo related link and description

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-03-21 13:34:12 +01:00
Xiang Xiao
4c4f954059
chore(style): remove the trailing space from all source files (#3188)
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-03-21 11:25:51 +01:00
Man, Jianting (Meco)
ca17c204d0
doc(rt-thread): add more BSP supports (#3178)
* doc(rt-thread): add more BSP supports

* improve sconscript
2022-03-18 14:09:01 +01:00
Gabor Kiss-Vamosi
f584a30af3 chore(docs): fix links 2022-03-17 13:47:54 +01:00
Gabor Kiss-Vamosi
8a81532191 docs: rearrange the get-started section
Add folder for Platforms, RTOS, and Bindings
2022-03-17 13:19:53 +01:00
Man, Jianting (Meco)
1df510ebe1
doc(rt-thread): update documentation (#3017) 2022-01-17 19:53:41 -05:00
ckielstra
febafd1cc7
chore: many trivial spelling and layout fixes (#3008)
Co-authored-by: Gabor Kiss-Vamosi <kisvegabor@gmail.com>
2022-01-17 08:10:23 -05:00
Tomas Rezucha
e7a0f3b99c
fix various issues for esp32 (#3007)
* kconfig: Fix invalid dependancy in fsdrv

LV_USE_FS_* symbols are integers, instead of usual booleans.
We must treat them as such.

* ci: Get LVGL version from git tag

* docu: Update Espressif readme

* ci run apt update before installing
2022-01-14 12:47:49 -05:00
Gabor Kiss-Vamosi
f8b29c5b6c
chore(docs): describe the directory layout for Arduino 2022-01-07 19:46:14 +01:00
Gabor Kiss-Vamosi
6b82d7a356
Update arduino.md 2022-01-05 13:36:24 +01:00
Gabor Kiss-Vamosi
49bf663dad
chore(docs) clean up toc 2022-01-03 14:36:23 +01:00
Gabor Kiss-Vamosi
380317a6cd
chore(docs): attempt to fix messed up toc tree 2022-01-03 13:52:17 +01:00
Gabor Kiss-Vamosi
5c19b8f99b
chore(docs): update old links 2022-01-03 13:29:12 +01:00
Man, Jianting (Meco)
df044e4cb8
doc(rt-thread): add rt-thread documentation (#2951)
* feat(rt-thread): add rt-thread doc

* readme(rt-thread): add rt-thread RTOS
2022-01-03 10:10:27 +01:00
s-hadinger
0b91b6c42f
chore(docs): fix typo (#2878) 2021-12-03 14:26:55 +01:00
s-hadinger
d379804366
docs(get-started) add introduction for Tasmota and Berry (#2874)
* Tasmota introduction

* Update docs/get-started/index.md

Co-authored-by: Gabor Kiss-Vamosi <kisvegabor@gmail.com>

* Update docs/get-started/index.md

* Update docs/get-started/index.md

* Update docs/get-started/index.md

* change link

* improve tutorial list

Co-authored-by: Gabor Kiss-Vamosi <kisvegabor@gmail.com>
2021-12-03 10:50:17 +01:00
Gabor Kiss-Vamosi
e7f1356d0d
chore(docs) add section titles to get-started 2021-12-03 10:26:40 +01:00
Gabor Kiss-Vamosi
77287ca7d9
chore(docs) try to fix table rendering error 2021-11-22 13:31:03 +01:00
Vincent Hamp
a8f30120ce
fix(CMake) split CMakeLists.txt, add options, includes and dependencies (#2753)
* fix(CMake) split CMakeLists.txt, add options, includes and dependencies

* fix(CMake) do not use 'project' keyword with ESP_PLATFORM

* fix(CMake) prefix includes with CMAKE_CURRENT_LIST_DIR

* Don't depend on CMAKE_CURRENT_SOURCE_DIR

* fix(CMake) rename baremetal.cmake to custom.cmake

* fix(CMake) add CMake documentation
2021-11-22 10:51:51 +01:00
Miguel Magno
4e393178f3
docs: fix typo (#2765) 2021-11-05 12:18:40 +01:00
Gabor Kiss-Vamosi
06962a564f
docs(arduino) update how to use the examples
Related to: #2706
2021-11-02 18:40:59 +01:00
Kevin Thibedeau
7d9fe20a0e
docs(all) Proofread, fix typos and add clarifications in confusing areas (#2528)
Co-authored-by: Gabor Kiss-Vamosi <kisvegabor@gmail.com>
2021-09-06 10:55:37 +02:00
ckielstra
0f4e6e26f9
Simple spelling fixes (#2496) 2021-08-26 10:52:39 +02:00
fvanroie
2d38f1884c
Fix two examples in the docs with new v8 api (#2486)
* docs(overview) fix draw_buf fieldname

Change display driver buffer field to the new v8 field name: draw_buf.

* docs(overview) fix lv_img_create parameters

lv_img_create only has 1 parameter in v8.

* docs(get-started) fix draw_buf fieldname

Display driver `buffer` field changed to the new v8 field name: `draw_buf`.
2021-08-24 09:17:59 +02:00
Miguel Magno
b7e6f6763d
docs fix typos (#2472) 2021-08-20 19:47:59 -04:00
tfx2001
f85ae9d32b
docs(overview) fix typo (#2465) 2021-08-19 12:06:10 -04:00
fvanroie
e8c1670381
fix(docs) add static keyword to driver declaration (#2452)
Add missing static keyword to disp_drv and indev_drv declarations in the examples
2021-08-13 13:00:14 -04:00
embeddedt
9a77102c40
docs(arduino) update some outdated information
This fixes some broken links and updates the steps to match the new repository layout.
2021-07-11 15:28:08 -04:00
Rop Gonggrijp
d0aaacafb6
Spelling and other language fixes to documentation (#2293) 2021-06-09 15:10:35 +02:00
embeddedt
d2efb8c6e5
docs(overview) spelling fixes 2021-06-08 17:23:36 -04:00
Ali Rostami
5616471c27
Update quick-overview.md (#2295)
* Update quick-overview.md

* Update quick-overview.md

* Update lv_example_get_started_3.c

* Update coords.md
2021-06-07 14:32:00 +02:00
Gabor Kiss-Vamosi
f97f87fdcd docs link fixes 2021-05-17 16:17:20 +02:00
Gabor Kiss-Vamosi
abe04e98d3 docs add style props 2021-05-14 15:37:35 +02:00
Gabor Kiss-Vamosi
05252b7fe8 docs update some mroe widgets to v8 + fix links 2021-05-03 17:32:57 +02:00
Gabor Kiss-Vamosi
422c9e5bd6 feat(event) rework the prototype of lv_event_cb
It encapsulates all event related parameters into a single lv_event_t obejct.
2021-04-14 15:31:54 +02:00
Gabor Kiss-Vamosi
73f4264320 add the md files from the docs repo to start updating them to v8 2021-04-12 18:19:04 +02:00