/lvgl-3.7.0/src/draw/sw/ |
D | lv_draw_sw_line.c | 118 lv_area_t blend_area; in draw_line_hor() local 119 blend_area.x1 = LV_MIN(point1->x, point2->x); in draw_line_hor() 120 blend_area.x2 = LV_MAX(point1->x, point2->x) - 1; in draw_line_hor() 121 blend_area.y1 = point1->y - w_half1; in draw_line_hor() 122 blend_area.y2 = point1->y + w_half0; in draw_line_hor() 125 is_common = _lv_area_intersect(&blend_area, &blend_area, draw_ctx->clip_area); in draw_line_hor() 130 if(lv_draw_mask_is_any(&blend_area)) simple_mode = false; in draw_line_hor() 135 blend_dsc.blend_area = &blend_area; in draw_line_hor() 147 int32_t blend_area_w = lv_area_get_width(&blend_area); in draw_line_hor() 149 lv_coord_t y2 = blend_area.y2; in draw_line_hor() [all …]
|
D | lv_draw_sw_rect.c | 126 blend_dsc.blend_area = &bg_coords; in draw_bg() 157 lv_area_t blend_area; in draw_bg() local 158 blend_area.x1 = clipped_coords.x1; in draw_bg() 159 blend_area.x2 = clipped_coords.x2; in draw_bg() 162 blend_dsc.blend_area = &blend_area; in draw_bg() 163 blend_dsc.mask_area = &blend_area; in draw_bg() 219 blend_area.y1 = h; in draw_bg() 220 blend_area.y2 = h; in draw_bg() 229 if(dither_func) dither_func(grad, blend_area.x1, h - bg_coords.y1, grad_size); in draw_bg() 246 blend_dsc.mask_res = lv_draw_mask_apply(mask_buf, blend_area.x1, top_y, clipped_w); in draw_bg() [all …]
|
D | lv_draw_sw_img.c | 56 lv_area_t blend_area; in lv_draw_sw_img_decoded() local 62 blend_dsc.blend_area = &blend_area; in lv_draw_sw_img_decoded() 68 blend_dsc.blend_area = coords; in lv_draw_sw_img_decoded() 81 blend_dsc.blend_area = coords; in lv_draw_sw_img_decoded() 91 blend_dsc.blend_area = coords; in lv_draw_sw_img_decoded() 99 blend_area.x1 = draw_ctx->clip_area->x1; in lv_draw_sw_img_decoded() 100 blend_area.x2 = draw_ctx->clip_area->x2; in lv_draw_sw_img_decoded() 101 blend_area.y1 = draw_ctx->clip_area->y1; in lv_draw_sw_img_decoded() 102 blend_area.y2 = draw_ctx->clip_area->y2; in lv_draw_sw_img_decoded() 106 lv_coord_t blend_h = lv_area_get_height(&blend_area); in lv_draw_sw_img_decoded() [all …]
|
D | lv_draw_sw_blend.c | 26 static void fill_set_px(lv_color_t * dest_buf, const lv_area_t * blend_area, lv_coord_t dest_stride, 100 lv_area_t blend_area; in lv_draw_sw_blend() local 101 if(!_lv_area_intersect(&blend_area, dsc->blend_area, draw_ctx->clip_area)) return; in lv_draw_sw_blend() 119 lv_area_t blend_area; in lv_draw_sw_blend_basic() local 120 if(!_lv_area_intersect(&blend_area, dsc->blend_area, draw_ctx->clip_area)) return; in lv_draw_sw_blend_basic() 126 …dest_buf += dest_stride * (blend_area.y1 - draw_ctx->buf_area->y1) + (blend_area.x1 - draw_ctx->bu… in lv_draw_sw_blend_basic() 131 … dest_buf8 += dest_stride * (blend_area.y1 - draw_ctx->buf_area->y1) * LV_IMG_PX_SIZE_ALPHA_BYTE; in lv_draw_sw_blend_basic() 132 dest_buf8 += (blend_area.x1 - draw_ctx->buf_area->x1) * LV_IMG_PX_SIZE_ALPHA_BYTE; in lv_draw_sw_blend_basic() 140 src_stride = lv_area_get_width(dsc->blend_area); in lv_draw_sw_blend_basic() 141 …src_buf += src_stride * (blend_area.y1 - dsc->blend_area->y1) + (blend_area.x1 - dsc->blend_area->… in lv_draw_sw_blend_basic() [all …]
|
D | lv_draw_sw_blend.h | 30 … const lv_area_t * blend_area; /**< The area with absolute coordinates to draw on `draw_ctx->buf` member
|
D | lv_draw_sw_letter.c | 278 blend_dsc.blend_area = &fill_area; in draw_letter_normal() 446 blend_dsc.blend_area = &map_area; in draw_letter_subpx()
|
/lvgl-3.7.0/src/draw/nxp/pxp/ |
D | lv_draw_pxp.c | 141 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.7.0/src/draw/swm341_dma2d/ |
D | lv_gpu_swm341_dma2d.c | 103 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.7.0/src/draw/arm2d/ |
D | lv_gpu_arm2d.c | 234 .iWidth = lv_area_get_width((__dsc)->blend_area), \ 235 .iHeight = lv_area_get_height((__dsc)->blend_area), \ 247 .iX = (__blend_area).x1 - (__dsc)->blend_area->x1, \ 248 .iY = (__blend_area).y1 - (__dsc)->blend_area->y1, \ 516 lv_area_t blend_area; in lv_draw_arm2d_blend() local 517 if(!_lv_area_intersect(&blend_area, dsc->blend_area, draw_ctx->clip_area)) { in lv_draw_arm2d_blend() 524 && lv_area_get_size(&blend_area) > 100) { in lv_draw_arm2d_blend() 526 __PREPARE_TARGET_TILE__(blend_area); in lv_draw_arm2d_blend() 527 __PREPARE_SOURCE_TILE__(dsc, blend_area); in lv_draw_arm2d_blend() 528 __PREPARE_MASK_TILE__(dsc, blend_area, mask, false); in lv_draw_arm2d_blend() [all …]
|
/lvgl-3.7.0/src/draw/nxp/vglite/ |
D | lv_draw_vglite.c | 173 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.7.0/docs/porting/ |
D | gpu.md | 70 - `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.7.0/src/draw/renesas/ |
D | lv_gpu_d2_ra6m3.c | 655 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);
|
D | lv_gpu_d2_draw_label.c | 157 blend_dsc.blend_area = &fill_area; in draw_letter_normal()
|
/lvgl-3.7.0/src/draw/stm32_dma2d/ |
D | lv_gpu_stm32_dma2d.c | 146 if(!_lv_area_intersect(&draw_area, dsc->blend_area, draw_ctx->clip_area)) return; in lv_draw_stm32_dma2d_blend() 177 lv_coord_t src_stride = lv_area_get_width(dsc->blend_area); in lv_draw_stm32_dma2d_blend() 178 …lv_point_t src_offset = lv_area_get_offset(dsc->blend_area, &draw_area); // source image offset in… in lv_draw_stm32_dma2d_blend() 223 lv_coord_t src_stride = lv_area_get_width(dsc->blend_area); in lv_draw_stm32_dma2d_blend() 224 …lv_point_t src_offset = lv_area_get_offset(dsc->blend_area, &draw_area); // source image offset in… in lv_draw_stm32_dma2d_blend()
|