Commit Graph

29 Commits

Author SHA1 Message Date
fronders
eee2dd1864 fix(attr): refactor LV_ATTRIBUTE_* for function attributes (#4404)
Co-authored-by: Gabor Kiss-Vamosi <kisvegabor@gmail.com>
2023-07-25 15:13:35 +02:00
jadergn
630da9c6ca fix(img): fix getting the image type on big endian systems (#4215) 2023-05-09 20:27:54 +02:00
Tomasz Jastrzębski
1853cc5143 perf(dam2d): rework stm32 dma2d (#3904) 2023-01-23 08:37:34 +01:00
Gabriel Wang
332d0abcfc fix(draw): fix colour supports for indexed and alpha-only (#3371) 2022-05-20 09:32:59 +02:00
Gabor Kiss-Vamosi
b773330234 fix conflicts 2022-05-16 17:15:36 +02:00
Gabriel Wang
8d3c41d517 feat(draw): improve acceleration for LV_IMG_CF_ALPHA_8BIT (#3337)
* feat(draw): improve acceleration for LV_IMG_CF_ALPHA_8BIT

* fix format issue

* fix: use normal method when conditions are not fulfilled.

* fix a typo

* feat(demo): add Weighted FPS and Opa speed log output (#3326)

Signed-off-by: pengyiqiang <pengyiqiang@xiaomi.com>

Co-authored-by: pengyiqiang <pengyiqiang@xiaomi.com>

* perf(layer): cache the layer_type

fixes #3334

* fix partial redraw and setting color

Co-authored-by: _VIFEXTech <1290176185@qq.com>
Co-authored-by: pengyiqiang <pengyiqiang@xiaomi.com>
Co-authored-by: Gabor Kiss-Vamosi <kisvegabor@gmail.com>
2022-05-10 18:52:50 +02:00
Gabor Kiss-Vamosi
5a0dbccf89 fix(draw): fix indexed image drawing 2022-01-03 20:10:55 +01:00
Gabor Kiss-Vamosi
db53ea925c arch(draw): allow replacing the draw engine
BREAKING CHANGE: the API of lv_draw_... function have been changed
2021-12-21 15:54:22 +01:00
Mariotaku
1281abef9e arch(sdl) migrated to use new backend architecture (#2840)
* migrated to use new backend architecture

* formatted code

* with direct_mode blend coordinates are working now

* added draw_img_core to backend

* moving from gpu/sdl to draw/sdl

* updated format

* updated format

* fixed include path

* fixing build issue
2021-11-29 14:53:06 +01:00
Gabor Kiss-Vamosi
8f6b1f8d6c arch(draw) separate SW renderer to allow replacing it (#2803)
* decouple sw renderer

* simplify blend interface

* make tests pass

* udpate makefiles

* fix warning

* fix build errors

* run code formatter

* antialias fix
2021-11-26 12:44:10 +01:00
guoweilkd
7e2e25a9d6 fix(draw_img): radius mask doesn't work in specific condition (#2786) 2021-11-10 10:39:20 +01:00
guoweilkd
3bd53b984d fix(draw_map) use existing variables instead function calls (#2776) 2021-11-08 10:47:57 +01:00
guoweilkd
47de6f05dc fix(draw_img): fix typos in API comments (#2773) 2021-11-08 09:15:18 +01:00
guoweilkd
cbf02f8175 fix(draw_img):radius Mask doesn't work in Specific condition (#2775) 2021-11-08 09:02:42 +01: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
Gabor Kiss-Vamosi
d67dd943ca format run code-formtter.sh
related to #2543
2021-09-13 14:06:26 +02:00
Gabor Kiss-Vamosi
a8427915c7 perf(draw) ignore masks if they don't affect the current draw area 2021-08-05 17:39:59 +02:00
Gabor Kiss-Vamosi
1cb57494df revert attempts to make struct private
feat/priate-struct was create as snapshot before this commit
2021-05-30 15:15:43 +02:00
Gabor Kiss-Vamosi
5331fc9fb5 feat make some other structs private 2021-05-23 13:09:58 +02:00
Gabor Kiss-Vamosi
2c089e51a7 fix warnings 2021-05-03 19:36:03 +02:00
Gabor Kiss-Vamosi
b3d9ab0657 fix warnings 2021-05-03 19:20:02 +02:00
Gabor Kiss-Vamosi
3d4c4aea3c feat(draw) allow using argb images, border and outline with LV_DRAW_COMPLEX=0 too 2021-05-03 18:54:24 +02:00
Gabor Kiss-Vamosi
418830e831 Merge branch 'master' into feat/img-frame-id 2021-05-03 17:43:05 +02:00
Gabor Kiss-Vamosi
1b93668df7 feat(obj) save self_size in the obejct to save a lot of recalculations 2021-04-29 09:52:49 +02:00
Gabor Kiss-Vamosi
ff330b0f42 feat(img_decoder) add frame_id parameter to the image decoder
Related to #2090
2021-04-14 17:04:24 +02:00
Xiang Xiao
9254a7ea14 fix(comment): remove the space after /* and before */ 2021-03-18 11:51:36 +08:00
Gabor Kiss-Vamosi
87c4a0ffef fix conflicts 2021-03-17 10:24:48 +01:00
Gabor Kiss-Vamosi
2676bc8839 fix(gpu): fix the name of the gpu related includes 2021-03-16 22:59:59 +01:00
Gabor Kiss-Vamosi
0cc1e99ddf remove the lv_ prefix from the directories in the src folder 2021-03-16 20:36:27 +01:00