Fork of Tangara with customizations
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
tangara-fw/lib/lvgl/src/draw/sdl
jacqueline dd27c35304 convert lvgl from submodule to a plain old directory 2 years ago
..
README.md convert lvgl from submodule to a plain old directory 2 years ago
lv_draw_sdl.c convert lvgl from submodule to a plain old directory 2 years ago
lv_draw_sdl.h convert lvgl from submodule to a plain old directory 2 years ago
lv_draw_sdl.mk convert lvgl from submodule to a plain old directory 2 years ago
lv_draw_sdl_arc.c convert lvgl from submodule to a plain old directory 2 years ago
lv_draw_sdl_bg.c convert lvgl from submodule to a plain old directory 2 years ago
lv_draw_sdl_composite.c convert lvgl from submodule to a plain old directory 2 years ago
lv_draw_sdl_composite.h convert lvgl from submodule to a plain old directory 2 years ago
lv_draw_sdl_img.c convert lvgl from submodule to a plain old directory 2 years ago
lv_draw_sdl_img.h convert lvgl from submodule to a plain old directory 2 years ago
lv_draw_sdl_label.c convert lvgl from submodule to a plain old directory 2 years ago
lv_draw_sdl_layer.c convert lvgl from submodule to a plain old directory 2 years ago
lv_draw_sdl_layer.h convert lvgl from submodule to a plain old directory 2 years ago
lv_draw_sdl_line.c convert lvgl from submodule to a plain old directory 2 years ago
lv_draw_sdl_mask.c convert lvgl from submodule to a plain old directory 2 years ago
lv_draw_sdl_mask.h convert lvgl from submodule to a plain old directory 2 years ago
lv_draw_sdl_polygon.c convert lvgl from submodule to a plain old directory 2 years ago
lv_draw_sdl_priv.h convert lvgl from submodule to a plain old directory 2 years ago
lv_draw_sdl_rect.c convert lvgl from submodule to a plain old directory 2 years ago
lv_draw_sdl_rect.h convert lvgl from submodule to a plain old directory 2 years ago
lv_draw_sdl_stack_blur.c convert lvgl from submodule to a plain old directory 2 years ago
lv_draw_sdl_stack_blur.h convert lvgl from submodule to a plain old directory 2 years ago
lv_draw_sdl_texture_cache.c convert lvgl from submodule to a plain old directory 2 years ago
lv_draw_sdl_texture_cache.h convert lvgl from submodule to a plain old directory 2 years ago
lv_draw_sdl_utils.c convert lvgl from submodule to a plain old directory 2 years ago
lv_draw_sdl_utils.h convert lvgl from submodule to a plain old directory 2 years ago

README.md

SDL_Renderer Based Drawing Functions

In LVGL, drawing was performed by CPU. To improve drawing performance on platforms with GPU, we should perform drawing operations on GPU if possible.

This implementation has moved most bitmap blending and drawing procedures to utilize SDL_Renderer, which takes advantages of hardware acceleration APIs like DirectX or OpenGL.

This implementation can be also considered as a reference implementation, for contributors wants to develop accelerated drawing functions with other APIs such as OpenGL/OpenGL ES.

Caveats

lv_draw_arc, lv_draw_line is not enabled, due to incomplete implementation. So lines and arcs will have significant impact to drawing performances.

Performance of this implementation still has room to improve. Or we should use more powerful APIs such as OpenGL.

Notices for files

lv_draw_sdl_stack_blur.c

Contains modified code from android-stackblur project. Apache License 2.0

lv_draw_sdl_lru.c/lv_draw_sdl_lru.h

Contains modified code from C-LRU-Cache project. No license defined.