lvgl ui support AiUIBuilder

This commit is contained in:
刘可亮
2024-11-26 13:23:39 +08:00
parent e4a45f6b7d
commit a89bc72654
57 changed files with 530 additions and 110 deletions

View File

@@ -120,4 +120,10 @@
#define LV_DRAW_BUF_ALIGN CACHE_LINE_SIZE
#define LV_USE_MONKEY 1
// should at the end of lv_conf.h
#if defined(LV_USE_CONF_CUSTOM)
#include "lv_conf_custom.h"
#endif
#endif // LV_CONF_H

View File

@@ -197,6 +197,10 @@ static int32_t ge2d_evaluate(lv_draw_unit_t *u, lv_draw_task_t *t)
case LV_DRAW_TASK_TYPE_LAYER: {
const lv_draw_image_dsc_t *draw_dsc = (lv_draw_image_dsc_t *)t->draw_dsc;
lv_layer_t *layer= (lv_layer_t *)draw_dsc->src;
lv_draw_buf_t *dest_buf = draw_dsc->base.layer->draw_buf;
if (!dest_buf)
return 0;
if (!ge2d_src_fmt_supported(layer->color_format))
return 0;
@@ -213,6 +217,10 @@ static int32_t ge2d_evaluate(lv_draw_unit_t *u, lv_draw_task_t *t)
case LV_DRAW_TASK_TYPE_IMAGE: {
lv_draw_image_dsc_t *draw_dsc = (lv_draw_image_dsc_t *)t->draw_dsc;
lv_draw_buf_t *dest_buf = draw_dsc->base.layer->draw_buf;
if (!dest_buf)
return 0;
if (!ge2d_src_fmt_supported(draw_dsc->header.cf))
return 0;