lvgl icon indicating copy to clipboard operation
lvgl copied to clipboard

Migrate the two VG-Lite drivers

Open kisvegabor opened this issue 11 months ago • 13 comments

Now we have 2 VG-Lite drivers which is no ideal. I asked @uLipe to test the performance and get familiar with the internals/pro/cons of each implementations so that we can start working on a single unified solution.

To check what's going on I've created and SDK example for NXP i.MX1170 (with FreeRTOS as there is no VGLite in the Bare metal version) and updated it to LVGL v9. It compiles and works mostly with software rendering:

When I enable Xiaomi's VGLite I get this error (LV_USE_DRAW_VG_LITE):

../lvgl/lvgl/src/draw/vg_lite/lv_vg_lite_utils.h:96:40: error: unknown type name 'vg_lite_stroke_t'
   96 | void lv_vg_lite_stroke_dump_info(const vg_lite_stroke_t * stroke);
      |                                        ^~~~~~~~~~~~~~~~
make[1]: *** [lvgl/lvgl/src/draw/vg_lite/subdir.mk:75: lvgl/lvgl/src/draw/vg_lite/lv_vg_lite_stroke.o] Error 1
../lvgl/lvgl/src/draw/vg_lite/lv_vg_lite_path.c: In function 'lv_vg_lite_path_reset':
../lvgl/lvgl/src/draw/vg_lite/lv_vg_lite_path.c:143:28: error: 'VG_LITE_DRAW_ZERO' undeclared (first use in this function)
  143 |     path->base.path_type = VG_LITE_DRAW_ZERO;

When I enable NXP's VGLite I get this error (LV_USE_DRAW_VGLITE):

../lvgl/lvgl/src/draw/nxp/vglite/lv_vglite_utils.h:28:10: fatal error: vg_lite_options.h: No such file or directory
   28 | #include "vg_lite_options.h"

I pushed my current project here: image

cc @FASTSHIFT @onecoolx @nicusorcitu @anaGrad @cosmindanielradu19

Could you take a look at this issue to point us into right direction?

Context: We need to create a demo for CES and I'd like to use some cool perspective matrix transformation effects.

kisvegabor avatar Nov 21 '24 13:11 kisvegabor