Home
last modified time | relevance | path

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

/lvgl-3.6.0/src/draw/sw/
Dlv_draw_sw_line.c119 lv_area_t blend_area; in draw_line_hor() local
120 blend_area.x1 = LV_MIN(point1->x, point2->x); in draw_line_hor()
121 blend_area.x2 = LV_MAX(point1->x, point2->x) - 1; in draw_line_hor()
122 blend_area.y1 = point1->y - w_half1; in draw_line_hor()
123 blend_area.y2 = point1->y + w_half0; in draw_line_hor()
126 is_common = _lv_area_intersect(&blend_area, &blend_area, draw_ctx->clip_area); in draw_line_hor()
131 if(lv_draw_mask_is_any(&blend_area)) simple_mode = false; in draw_line_hor()
136 blend_dsc.blend_area = &blend_area; in draw_line_hor()
148 int32_t blend_area_w = lv_area_get_width(&blend_area); in draw_line_hor()
150 lv_coord_t y2 = blend_area.y2; in draw_line_hor()
[all …]
Dlv_draw_sw_rect.c129 blend_dsc.blend_area = &bg_coords; in draw_bg()
160 lv_area_t blend_area; in draw_bg() local
161 blend_area.x1 = clipped_coords.x1; in draw_bg()
162 blend_area.x2 = clipped_coords.x2; in draw_bg()
165 blend_dsc.blend_area = &blend_area; in draw_bg()
166 blend_dsc.mask_area = &blend_area; in draw_bg()
223 blend_area.y1 = h; in draw_bg()
224 blend_area.y2 = h; in draw_bg()
233 if(dither_func) dither_func(grad, blend_area.x1, h - bg_coords.y1, grad_size); in draw_bg()
251 blend_dsc.mask_res = lv_draw_mask_apply(mask_buf, blend_area.x1, top_y, clipped_w); in draw_bg()
[all …]
Dlv_draw_sw_img.c57 lv_area_t blend_area; in lv_draw_sw_img_decoded() local
63 blend_dsc.blend_area = &blend_area; in lv_draw_sw_img_decoded()
69 blend_dsc.blend_area = coords; in lv_draw_sw_img_decoded()
82 blend_dsc.blend_area = coords; in lv_draw_sw_img_decoded()
92 blend_dsc.blend_area = coords; in lv_draw_sw_img_decoded()
100 blend_area.x1 = draw_ctx->clip_area->x1; in lv_draw_sw_img_decoded()
101 blend_area.x2 = draw_ctx->clip_area->x2; in lv_draw_sw_img_decoded()
102 blend_area.y1 = draw_ctx->clip_area->y1; in lv_draw_sw_img_decoded()
103 blend_area.y2 = draw_ctx->clip_area->y2; in lv_draw_sw_img_decoded()
107 lv_coord_t blend_h = lv_area_get_height(&blend_area); in lv_draw_sw_img_decoded()
[all …]
Dlv_draw_sw_blend.c26 static void fill_set_px(lv_color_t * dest_buf, const lv_area_t * blend_area, lv_coord_t dest_stride,
102 lv_area_t blend_area; in lv_draw_sw_blend() local
103 if(!_lv_area_intersect(&blend_area, dsc->blend_area, draw_ctx->clip_area)) return; in lv_draw_sw_blend()
121 lv_area_t blend_area; in lv_draw_sw_blend_basic() local
122 if(!_lv_area_intersect(&blend_area, dsc->blend_area, draw_ctx->clip_area)) return; in lv_draw_sw_blend_basic()
128 …dest_buf += dest_stride * (blend_area.y1 - draw_ctx->buf_area->y1) + (blend_area.x1 - draw_ctx->bu… in lv_draw_sw_blend_basic()
133 … dest_buf8 += dest_stride * (blend_area.y1 - draw_ctx->buf_area->y1) * LV_IMG_PX_SIZE_ALPHA_BYTE; in lv_draw_sw_blend_basic()
134 dest_buf8 += (blend_area.x1 - draw_ctx->buf_area->x1) * LV_IMG_PX_SIZE_ALPHA_BYTE; in lv_draw_sw_blend_basic()
142 src_stride = lv_area_get_width(dsc->blend_area); in lv_draw_sw_blend_basic()
143 …src_buf += src_stride * (blend_area.y1 - dsc->blend_area->y1) + (blend_area.x1 - dsc->blend_area->… in lv_draw_sw_blend_basic()
[all …]
Dlv_draw_sw_blend.h30 … const lv_area_t * blend_area; /**< The area with absolute coordinates to draw on `draw_ctx->buf` member
Dlv_draw_sw_letter.c279 blend_dsc.blend_area = &fill_area; in draw_letter_normal()
447 blend_dsc.blend_area = &map_area; in draw_letter_subpx()
/lvgl-3.6.0/src/draw/nxp/pxp/
Dlv_draw_pxp.c141 lv_area_t blend_area; in lv_draw_pxp_blend() local
143 if(!_lv_area_intersect(&blend_area, dsc->blend_area, draw_ctx->clip_area)) in lv_draw_pxp_blend()
147 lv_area_move(&blend_area, -draw_ctx->buf_area->x1, -draw_ctx->buf_area->y1); in lv_draw_pxp_blend()
149 lv_area_get_size(&blend_area) < LV_GPU_NXP_PXP_SIZE_LIMIT) { in lv_draw_pxp_blend()
160 lv_gpu_nxp_pxp_fill(dest_buf, &blend_area, dest_stride, dsc->color, dsc->opa); in lv_draw_pxp_blend()
164 src_area.x1 = blend_area.x1 - (dsc->blend_area->x1 - draw_ctx->buf_area->x1); in lv_draw_pxp_blend()
165 src_area.y1 = blend_area.y1 - (dsc->blend_area->y1 - draw_ctx->buf_area->y1); in lv_draw_pxp_blend()
166 src_area.x2 = src_area.x1 + lv_area_get_width(dsc->blend_area) - 1; in lv_draw_pxp_blend()
167 src_area.y2 = src_area.y1 + lv_area_get_height(dsc->blend_area) - 1; in lv_draw_pxp_blend()
168 lv_coord_t src_stride = lv_area_get_width(dsc->blend_area); in lv_draw_pxp_blend()
[all …]
/lvgl-3.6.0/src/draw/swm341_dma2d/
Dlv_gpu_swm341_dma2d.c103 lv_area_t blend_area; in lv_draw_swm341_dma2d_blend() local
104 if(!_lv_area_intersect(&blend_area, dsc->blend_area, draw_ctx->clip_area)) in lv_draw_swm341_dma2d_blend()
109 …sk_buf == NULL && dsc->blend_mode == LV_BLEND_MODE_NORMAL && lv_area_get_size(&blend_area) > 100) { in lv_draw_swm341_dma2d_blend()
113 …dest_buf += dest_stride * (blend_area.y1 - draw_ctx->buf_area->y1) + (blend_area.x1 - draw_ctx->bu… in lv_draw_swm341_dma2d_blend()
119 src_stride = lv_area_get_width(dsc->blend_area); in lv_draw_swm341_dma2d_blend()
120 …src_buf += src_stride * (blend_area.y1 - dsc->blend_area->y1) + (blend_area.x1 - dsc->blend_area->… in lv_draw_swm341_dma2d_blend()
121 lv_area_move(&blend_area, -draw_ctx->buf_area->x1, -draw_ctx->buf_area->y1); in lv_draw_swm341_dma2d_blend()
122 … lv_draw_swm341_dma2d_blend_map(dest_buf, &blend_area, dest_stride, src_buf, src_stride, dsc->opa); in lv_draw_swm341_dma2d_blend()
126 lv_area_move(&blend_area, -draw_ctx->buf_area->x1, -draw_ctx->buf_area->y1); in lv_draw_swm341_dma2d_blend()
127 lv_draw_swm341_dma2d_blend_fill(dest_buf, dest_stride, &blend_area, dsc->color); in lv_draw_swm341_dma2d_blend()
/lvgl-3.6.0/src/draw/arm2d/
Dlv_gpu_arm2d.c236 .iWidth = lv_area_get_width((__dsc)->blend_area), \
237 .iHeight = lv_area_get_height((__dsc)->blend_area), \
249 .iX = (__blend_area).x1 - (__dsc)->blend_area->x1, \
250 .iY = (__blend_area).y1 - (__dsc)->blend_area->y1, \
519 lv_area_t blend_area; in lv_draw_arm2d_blend() local
520 if(!_lv_area_intersect(&blend_area, dsc->blend_area, draw_ctx->clip_area)) { in lv_draw_arm2d_blend()
527 && lv_area_get_size(&blend_area) > 100) { in lv_draw_arm2d_blend()
529 __PREPARE_TARGET_TILE__(blend_area); in lv_draw_arm2d_blend()
530 __PREPARE_SOURCE_TILE__(dsc, blend_area); in lv_draw_arm2d_blend()
531 __PREPARE_MASK_TILE__(dsc, blend_area, mask, false); in lv_draw_arm2d_blend()
[all …]
/lvgl-3.6.0/src/draw/nxp/vglite/
Dlv_draw_vglite.c173 lv_area_t blend_area; in lv_draw_vglite_blend() local
174 if(!_lv_area_intersect(&blend_area, dsc->blend_area, draw_ctx->clip_area)) in lv_draw_vglite_blend()
177 lv_area_move(&blend_area, -draw_ctx->buf_area->x1, -draw_ctx->buf_area->y1); in lv_draw_vglite_blend()
182 lv_area_get_size(&blend_area) >= LV_GPU_NXP_VG_LITE_SIZE_LIMIT) { in lv_draw_vglite_blend()
186 done = (lv_gpu_nxp_vglite_fill(&blend_area, dsc->color, dsc->opa) == LV_RES_OK); in lv_draw_vglite_blend()
192 src_area.x1 = blend_area.x1 - (dsc->blend_area->x1 - draw_ctx->buf_area->x1); in lv_draw_vglite_blend()
193 src_area.y1 = blend_area.y1 - (dsc->blend_area->y1 - draw_ctx->buf_area->y1); in lv_draw_vglite_blend()
194 src_area.x2 = src_area.x1 + lv_area_get_width(dsc->blend_area) - 1; in lv_draw_vglite_blend()
195 src_area.y2 = src_area.y1 + lv_area_get_height(dsc->blend_area) - 1; in lv_draw_vglite_blend()
196 lv_coord_t src_stride = lv_area_get_width(dsc->blend_area); in lv_draw_vglite_blend()
[all …]
/lvgl-3.6.0/docs/porting/
Dgpu.md70 - `const lv_area_t * blend_area` The area with absolute coordinates to draw on `draw_ctx->buf`. If …
71 …Pointer to an image to blend. If set, `color` is ignored. If not set fill `blend_area` with `color`
73 - `lv_opa_t * mask_buf` NULL if ignored, or an alpha mask to apply on `blend_area`
127     lv_area_t blend_area;
128     if(!_lv_area_intersect(&blend_area, dsc->blend_area, draw_ctx->clip_area)) return;  /*Fully cli…
132        dsc->blend_mode == LV_BLEND_MODE_NORMAL && lv_area_get_size(&blend_area) > 100) {
137         dest_buf += dest_stride * (blend_area.y1 - draw_ctx->buf_area->y1) + (blend_area.x1 - draw_…
140         lv_area_move(&blend_area, -draw_ctx->buf_area->x1, -draw_ctx->buf_area->y1);
142         /*Call your custom gou fill function to fill blend_area, on dest_buf with dsc->color*/  
143         my_gpu_fill(dest_buf, dest_stride, &blend_area, dsc->color);
/lvgl-3.6.0/src/draw/renesas/
Dlv_gpu_d2_ra6m3.c655 lv_area_t blend_area; local
656 if(!_lv_area_intersect(&blend_area, dsc->blend_area, draw_ctx->clip_area)) return;
660 …sk_buf == NULL && dsc->blend_mode == LV_BLEND_MODE_NORMAL && lv_area_get_size(&blend_area) > 100) {
670 src_area.x1 = blend_area.x1 - (dsc->blend_area->x1 - draw_ctx->buf_area->x1);
671 src_area.y1 = blend_area.y1 - (dsc->blend_area->y1 - draw_ctx->buf_area->y1);
672 src_area.x2 = src_area.x1 + lv_area_get_width(dsc->blend_area) - 1;
673 src_area.y2 = src_area.y1 + lv_area_get_height(dsc->blend_area) - 1;
675 lv_port_ra_gpu_blit(dest_buf, &blend_area, dest_stride, src_buf, &src_area, dsc->opa);
679 lv_area_move(&blend_area, -draw_ctx->buf_area->x1, -draw_ctx->buf_area->y1);
680 lv_port_gpu_fill(dest_buf, &blend_area, dest_stride, dsc->color, dsc->opa);
Dlv_gpu_d2_draw_label.c157 blend_dsc.blend_area = &fill_area; in draw_letter_normal()
/lvgl-3.6.0/src/draw/stm32_dma2d/
Dlv_gpu_stm32_dma2d.c162 if(!_lv_area_intersect(&draw_area, dsc->blend_area, draw_ctx->clip_area)) return; in lv_draw_stm32_dma2d_blend()
193 lv_coord_t src_stride = lv_area_get_width(dsc->blend_area); in lv_draw_stm32_dma2d_blend()
194 …lv_point_t src_offset = lv_area_get_offset(dsc->blend_area, &draw_area); // source image offset in… in lv_draw_stm32_dma2d_blend()
239 lv_coord_t src_stride = lv_area_get_width(dsc->blend_area); in lv_draw_stm32_dma2d_blend()
240 …lv_point_t src_offset = lv_area_get_offset(dsc->blend_area, &draw_area); // source image offset in… in lv_draw_stm32_dma2d_blend()