Home
last modified time | relevance | path

Searched refs:layer_ctx (Results 1 – 8 of 8) sorted by relevance

/lvgl-3.7.0/src/draw/
Dlv_draw_layer.c42 lv_draw_layer_ctx_t * layer_ctx = lv_mem_alloc(draw_ctx->layer_instance_size); in lv_draw_layer_create() local
43 LV_ASSERT_MALLOC(layer_ctx); in lv_draw_layer_create()
44 if(layer_ctx == NULL) { in lv_draw_layer_create()
49 lv_memset_00(layer_ctx, draw_ctx->layer_instance_size); in lv_draw_layer_create()
52 layer_ctx->original.buf = draw_ctx->buf; in lv_draw_layer_create()
53 layer_ctx->original.buf_area = draw_ctx->buf_area; in lv_draw_layer_create()
54 layer_ctx->original.clip_area = draw_ctx->clip_area; in lv_draw_layer_create()
55 layer_ctx->original.screen_transp = disp_refr->driver->screen_transp; in lv_draw_layer_create()
56 layer_ctx->area_full = *layer_area; in lv_draw_layer_create()
58 lv_draw_layer_ctx_t * init_layer_ctx = draw_ctx->layer_init(draw_ctx, layer_ctx, flags); in lv_draw_layer_create()
[all …]
Dlv_draw_layer.h56 void lv_draw_layer_adjust(struct _lv_draw_ctx_t * draw_ctx, struct _lv_draw_layer_ctx_t * layer_ctx,
65 void lv_draw_layer_blend(struct _lv_draw_ctx_t * draw_ctx, struct _lv_draw_layer_ctx_t * layer_ctx,
73 …d lv_draw_layer_destroy(struct _lv_draw_ctx_t * draw_ctx, struct _lv_draw_layer_ctx_t * layer_ctx);
Dlv_draw.h150 …er_ctx_t * (*layer_init)(struct _lv_draw_ctx_t * draw_ctx, struct _lv_draw_layer_ctx_t * layer_ctx,
160 void (*layer_adjust)(struct _lv_draw_ctx_t * draw_ctx, struct _lv_draw_layer_ctx_t * layer_ctx,
169 void (*layer_blend)(struct _lv_draw_ctx_t * draw_ctx, struct _lv_draw_layer_ctx_t * layer_ctx,
178 void (*layer_destroy)(struct _lv_draw_ctx_t * draw_ctx, lv_draw_layer_ctx_t * layer_ctx);
/lvgl-3.7.0/src/draw/sw/
Dlv_draw_sw_layer.c42 …_ctx_t * lv_draw_sw_layer_create(struct _lv_draw_ctx_t * draw_ctx, lv_draw_layer_ctx_t * layer_ctx, in lv_draw_sw_layer_create() argument
50 lv_draw_sw_layer_ctx_t * layer_sw_ctx = (lv_draw_sw_layer_ctx_t *) layer_ctx; in lv_draw_sw_layer_create()
90 return layer_ctx; in lv_draw_sw_layer_create()
93 … lv_draw_sw_layer_adjust(struct _lv_draw_ctx_t * draw_ctx, struct _lv_draw_layer_ctx_t * layer_ctx, in lv_draw_sw_layer_adjust() argument
97 lv_draw_sw_layer_ctx_t * layer_sw_ctx = (lv_draw_sw_layer_ctx_t *) layer_ctx; in lv_draw_sw_layer_adjust()
100 lv_memset_00(layer_ctx->buf, layer_sw_ctx->buf_size_bytes); in lv_draw_sw_layer_adjust()
109 draw_ctx->buf = layer_ctx->buf; in lv_draw_sw_layer_adjust()
110 draw_ctx->buf_area = &layer_ctx->area_act; in lv_draw_sw_layer_adjust()
111 draw_ctx->clip_area = &layer_ctx->area_act; in lv_draw_sw_layer_adjust()
114 …d lv_draw_sw_layer_blend(struct _lv_draw_ctx_t * draw_ctx, struct _lv_draw_layer_ctx_t * layer_ctx, in lv_draw_sw_layer_blend() argument
[all …]
Dlv_draw_sw.h83 …_ctx_t * lv_draw_sw_layer_create(struct _lv_draw_ctx_t * draw_ctx, lv_draw_layer_ctx_t * layer_ctx,
86 … lv_draw_sw_layer_adjust(struct _lv_draw_ctx_t * draw_ctx, struct _lv_draw_layer_ctx_t * layer_ctx,
89 …d lv_draw_sw_layer_blend(struct _lv_draw_ctx_t * draw_ctx, struct _lv_draw_layer_ctx_t * layer_ctx,
92 void lv_draw_sw_layer_destroy(lv_draw_ctx_t * draw_ctx, lv_draw_layer_ctx_t * layer_ctx);
/lvgl-3.7.0/src/draw/sdl/
Dlv_draw_sdl_layer.c45 …raw_layer_ctx_t * lv_draw_sdl_layer_init(lv_draw_ctx_t * draw_ctx, lv_draw_layer_ctx_t * layer_ctx, in lv_draw_sdl_layer_init() argument
51 lv_draw_sdl_layer_ctx_t * transform_ctx = (lv_draw_sdl_layer_ctx_t *) layer_ctx; in lv_draw_sdl_layer_init()
56 lv_coord_t target_w = lv_area_get_width(&layer_ctx->area_full); in lv_draw_sdl_layer_init()
57 lv_coord_t target_h = lv_area_get_height(&layer_ctx->area_full); in lv_draw_sdl_layer_init()
68 layer_ctx->max_row_with_alpha = target_h; in lv_draw_sdl_layer_init()
69 layer_ctx->max_row_with_no_alpha = target_h; in lv_draw_sdl_layer_init()
82 draw_ctx->buf_area = &layer_ctx->area_full; in lv_draw_sdl_layer_init()
83 draw_ctx->clip_area = &layer_ctx->area_full; in lv_draw_sdl_layer_init()
85 return layer_ctx; in lv_draw_sdl_layer_init()
88 void lv_draw_sdl_layer_blend(lv_draw_ctx_t * draw_ctx, lv_draw_layer_ctx_t * layer_ctx, in lv_draw_sdl_layer_blend() argument
[all …]
Dlv_draw_sdl_layer.h38 …raw_layer_ctx_t * lv_draw_sdl_layer_init(lv_draw_ctx_t * draw_ctx, lv_draw_layer_ctx_t * layer_ctx,
44 void lv_draw_sdl_layer_destroy(lv_draw_ctx_t * draw_ctx, lv_draw_layer_ctx_t * layer_ctx);
/lvgl-3.7.0/src/core/
Dlv_refr.c935 …ic void layer_alpha_test(lv_obj_t * obj, lv_draw_ctx_t * draw_ctx, lv_draw_layer_ctx_t * layer_ctx, in layer_alpha_test() argument
944 if(_lv_area_is_in(&layer_ctx->area_act, &obj->coords, 0)) { in layer_alpha_test()
947 info.area = &layer_ctx->area_act; in layer_alpha_test()
953 layer_ctx->area_act.y2 = layer_ctx->area_act.y1 + layer_ctx->max_row_with_alpha - 1; in layer_alpha_test()
960 …if(layer_ctx->area_act.y2 > layer_ctx->area_full.y2) layer_ctx->area_act.y2 = layer_ctx->area_full… in layer_alpha_test()
961 …lv_draw_layer_adjust(draw_ctx, layer_ctx, has_alpha ? LV_DRAW_LAYER_FLAG_HAS_ALPHA : LV_DRAW_LAYER… in layer_alpha_test()
992 lv_draw_layer_ctx_t * layer_ctx = lv_draw_layer_create(draw_ctx, &layer_area_full, flags); in refr_obj() local
993 if(layer_ctx == NULL) { in refr_obj()
1021 layer_ctx->area_act = layer_ctx->area_full; in refr_obj()
1022 layer_ctx->area_act.y2 = layer_ctx->area_act.y1 + layer_ctx->max_row_with_no_alpha - 1; in refr_obj()
[all …]