Home
last modified time | relevance | path

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

/lvgl-3.7.0/src/draw/sw/
Dlv_draw_sw_layer.c50 lv_draw_sw_layer_ctx_t * layer_sw_ctx = (lv_draw_sw_layer_ctx_t *) layer_ctx; in lv_draw_sw_layer_create() local
53 layer_sw_ctx->buf_size_bytes = LV_LAYER_SIMPLE_BUF_SIZE; in lv_draw_sw_layer_create()
54 uint32_t full_size = lv_area_get_size(&layer_sw_ctx->base_draw.area_full) * px_size; in lv_draw_sw_layer_create()
55 if(layer_sw_ctx->buf_size_bytes > full_size) layer_sw_ctx->buf_size_bytes = full_size; in lv_draw_sw_layer_create()
56 layer_sw_ctx->base_draw.buf = lv_mem_alloc(layer_sw_ctx->buf_size_bytes); in lv_draw_sw_layer_create()
57 if(layer_sw_ctx->base_draw.buf == NULL) { in lv_draw_sw_layer_create()
59 … (uint32_t)layer_sw_ctx->buf_size_bytes, (uint32_t)LV_LAYER_SIMPLE_FALLBACK_BUF_SIZE * px_size); in lv_draw_sw_layer_create()
60 layer_sw_ctx->buf_size_bytes = LV_LAYER_SIMPLE_FALLBACK_BUF_SIZE; in lv_draw_sw_layer_create()
61 layer_sw_ctx->base_draw.buf = lv_mem_alloc(layer_sw_ctx->buf_size_bytes); in lv_draw_sw_layer_create()
62 if(layer_sw_ctx->base_draw.buf == NULL) { in lv_draw_sw_layer_create()
[all …]