/lvgl-latest/src/core/ |
D | lv_obj_draw.c | 41 lv_opa_t opa = lv_obj_get_style_opa_recursive(obj, part); in lv_obj_init_draw_rect_dsc() local 43 if(opa <= LV_OPA_MIN) { in lv_obj_init_draw_rect_dsc() 182 if(opa < LV_OPA_MAX) { in lv_obj_init_draw_rect_dsc() 183 draw_dsc->bg_opa = (opa * draw_dsc->bg_opa) >> 8; in lv_obj_init_draw_rect_dsc() 184 draw_dsc->bg_img_opa = (opa * draw_dsc->bg_img_opa) >> 8; in lv_obj_init_draw_rect_dsc() 185 draw_dsc->border_opa = (opa * draw_dsc->border_opa) >> 8; in lv_obj_init_draw_rect_dsc() 186 draw_dsc->outline_opa = (opa * draw_dsc->outline_opa) >> 8; in lv_obj_init_draw_rect_dsc() 187 draw_dsc->shadow_opa = (opa * draw_dsc->shadow_opa) >> 8; in lv_obj_init_draw_rect_dsc() 193 draw_dsc->opa = lv_obj_get_style_text_opa(obj, part); in lv_obj_init_draw_label_dsc() 194 if(draw_dsc->opa <= LV_OPA_MIN) return; in lv_obj_init_draw_label_dsc() [all …]
|
/lvgl-latest/src/draw/sw/ |
D | lv_draw_sw_blend.c | 27 … lv_color_t color, lv_opa_t opa, const lv_opa_t * mask, lv_coord_t mask_stide); 30 … lv_coord_t dest_stride, lv_color_t color, lv_opa_t opa, 35 … lv_coord_t dest_stride, lv_color_t color, lv_opa_t opa, 41 … lv_opa_t opa, const lv_opa_t * mask, lv_coord_t mask_stride, lv_blend_mode_t blend_mode); 45 const lv_color_t * src_buf, lv_coord_t src_stride, lv_opa_t opa, 50 … lv_coord_t src_stride, lv_opa_t opa, const lv_opa_t * mask, 56 … lv_coord_t src_stride, lv_opa_t opa, const lv_opa_t * mask, 63 const lv_color_t * src_buf, lv_coord_t src_stride, lv_opa_t opa, 66 static inline lv_color_t color_blend_true_color_additive(lv_color_t fg, lv_color_t bg, lv_opa_t opa… 67 …c inline lv_color_t color_blend_true_color_subtractive(lv_color_t fg, lv_color_t bg, lv_opa_t opa); [all …]
|
D | lv_draw_sw_letter.c | 172 lv_opa_t opa = dsc->opa; in draw_letter_normal() local 187 img_dsc.opa = dsc->opa; in draw_letter_normal() 223 if(opa < LV_OPA_MAX) { in draw_letter_normal() 224 if(prev_opa != opa || prev_bpp != bpp) { in draw_letter_normal() 227 … opa_table[i] = bpp_opa_table_p[i] == LV_OPA_COVER ? opa : ((bpp_opa_table_p[i] * opa) >> 8); in draw_letter_normal() 231 prev_opa = opa; in draw_letter_normal() 257 blend_dsc.opa = dsc->opa; in draw_letter_normal() 361 lv_opa_t opa = dsc->opa; in draw_letter_subpx() local 450 blend_dsc.opa = opa; in draw_letter_subpx() 462 if(opa >= LV_OPA_MAX) { in draw_letter_subpx() [all …]
|
D | lv_draw_sw_rect.c | 45 … lv_coord_t rout, lv_coord_t rin, lv_color_t color, lv_opa_t opa, lv_blend_mode_t blend_mode); 48 lv_color_t color, lv_opa_t opa); 127 blend_dsc.opa = dsc->bg_opa; in draw_bg() 136 lv_opa_t opa = dsc->bg_opa >= LV_OPA_MAX ? LV_OPA_COVER : dsc->bg_opa; in draw_bg() local 164 blend_dsc.opa = LV_OPA_COVER; in draw_bg() 224 lv_memset(mask_buf, opa, clipped_w); in draw_bg() 245 lv_memset(mask_buf, opa, clipped_w); in draw_bg() 284 blend_dsc.opa = opa; in draw_bg() 290 blend_dsc.opa = opa; in draw_bg() 296 lv_memset(mask_buf, opa, clipped_w); in draw_bg() [all …]
|
D | lv_draw_sw_line.c | 56 if(dsc->opa <= LV_OPA_MIN) return; in lv_draw_sw_line() 81 cir_dsc.bg_opa = dsc->opa; in lv_draw_sw_line() 137 blend_dsc.opa = dsc->opa; in draw_line_hor() 223 blend_dsc.opa = dsc->opa; in draw_line_ver() 391 blend_dsc.opa = dsc->opa; in draw_line_skew()
|
/lvgl-latest/src/draw/renesas/ |
D | lv_gpu_d2_draw_label.c | 51 lv_opa_t opa = dsc->opa; in draw_letter_normal() local 66 img_dsc.opa = dsc->opa; in draw_letter_normal() 102 if(opa < LV_OPA_MAX) { in draw_letter_normal() 103 if(prev_opa != opa || prev_bpp != bpp) { in draw_letter_normal() 106 … opa_table[i] = bpp_opa_table_p[i] == LV_OPA_COVER ? opa : ((bpp_opa_table_p[i] * opa) >> 8); in draw_letter_normal() 110 prev_opa = opa; in draw_letter_normal() 136 blend_dsc.opa = LV_OPA_COVER; in draw_letter_normal() 237 lv_opa_t opa = dsc->opa; in lv_draw_gpu_letter() local 238 if(opa < LV_OPA_MIN) return; in lv_draw_gpu_letter() 239 if(opa > LV_OPA_MAX) opa = LV_OPA_COVER; in lv_draw_gpu_letter() [all …]
|
D | lv_gpu_d2_ra6m3.c | 206 d2_alpha r, g, b, opa = img_dsc.recolor_opa > LV_OPA_MAX ? LV_OPA_COVER : img_dsc.recolor_opa; local 208 r = ((uint32_t)((uint8_t)(c >> 16UL)) * opa) / 255; 209 g = ((uint32_t)((uint8_t)(c >> 8UL)) * opa) / 255; 210 b = ((uint32_t)((uint8_t)(c >> 0UL)) * opa) / 255; 213 r += 255 - opa; 214 g += 255 - opa; 215 b += 255 - opa; 436 lv_color_t color, lv_opa_t opa) argument 446 D2_EXEC(d2_setalpha(_d2_handle, opa > LV_OPA_MAX ? 0xFF : opa)); 600 const lv_color_t * src, const lv_area_t * src_area, lv_opa_t opa) argument [all …]
|
/lvgl-latest/src/hal/ |
D | lv_hal_disp.c | 49 lv_color_t color, lv_opa_t opa); 52 lv_color_t color, lv_opa_t opa); 55 lv_color_t color, lv_opa_t opa); 58 lv_color_t color, lv_opa_t opa); 61 lv_color_t color, lv_opa_t opa); 63 …set_px_alpha_generic(lv_img_dsc_t * d, lv_coord_t x, lv_coord_t y, lv_color_t color, lv_opa_t opa); 620 lv_color_t color, lv_opa_t opa) in set_px_cb_alpha1() argument 624 if(opa <= LV_OPA_MIN) return; in set_px_cb_alpha1() 630 set_px_alpha_generic(&d, x, y, color, opa); in set_px_cb_alpha1() 634 lv_color_t color, lv_opa_t opa) in set_px_cb_alpha2() argument [all …]
|
/lvgl-latest/src/draw/nxp/vglite/ |
D | lv_vglite_utils.c | 77 …es_t lv_vglite_premult_and_swizzle(vg_lite_color_t * vg_col32, lv_color32_t lv_col32, lv_opa_t opa, in lv_vglite_premult_and_swizzle() argument 82 if(opa <= (lv_opa_t)LV_OPA_MAX) { in lv_vglite_premult_and_swizzle() 85 lv_col32_premul.ch.red = (uint8_t)(((uint16_t)lv_col32.ch.red * opa) >> 8); in lv_vglite_premult_and_swizzle() 86 lv_col32_premul.ch.green = (uint8_t)(((uint16_t)lv_col32.ch.green * opa) >> 8); in lv_vglite_premult_and_swizzle() 87 lv_col32_premul.ch.blue = (uint8_t)(((uint16_t)lv_col32.ch.blue * opa) >> 8); in lv_vglite_premult_and_swizzle() 89 lv_col32_premul.ch.alpha = opa; in lv_vglite_premult_and_swizzle()
|
D | lv_draw_vglite_blend.c | 72 static lv_res_t lv_vglite_blit(const lv_area_t * src_area, lv_opa_t opa); 134 lv_opa_t opa); 151 lv_res_t lv_gpu_nxp_vglite_fill(const lv_area_t * dest_area, lv_color_t color, lv_opa_t opa) in lv_gpu_nxp_vglite_fill() argument 159 if(lv_vglite_premult_and_swizzle(&vgcol, col32, opa, color_format) != LV_RES_OK) in lv_gpu_nxp_vglite_fill() 162 if(opa >= (lv_opa_t)LV_OPA_MAX) { /*Opaque fill*/ in lv_gpu_nxp_vglite_fill() 213 lv_opa_t opa) in lv_gpu_nxp_vglite_blit_split() argument 220 …_t rv = lv_vglite_blit_split(dest_buf, dest_area, dest_stride, src_buf, src_area, src_stride, opa); in lv_gpu_nxp_vglite_blit_split() 230 lv_opa_t opa) in lv_gpu_nxp_vglite_blit() argument 245 lv_res_t rv = lv_vglite_blit(src_area, opa); in lv_gpu_nxp_vglite_blit() 272 rv = lv_vglite_blit(src_area, dsc->opa); in lv_gpu_nxp_vglite_blit_transform() [all …]
|
D | lv_draw_vglite_blend.h | 83 lv_res_t lv_gpu_nxp_vglite_fill(const lv_area_t * dest_area, lv_color_t color, lv_opa_t opa); 103 lv_opa_t opa); 120 lv_opa_t opa);
|
D | lv_draw_vglite.c | 165 if(dsc->opa <= (lv_opa_t)LV_OPA_MIN) 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() 203 … src_buf, &src_area, src_stride, dsc->opa) == LV_RES_OK); in lv_draw_vglite_blend() 205 …done = (lv_gpu_nxp_vglite_blit(&blend_area, src_buf, &src_area, src_stride, dsc->opa) == LV_RES_OK… in lv_draw_vglite_blend() 220 if(dsc->opa <= (lv_opa_t)LV_OPA_MIN) in lv_draw_vglite_img_decoded() 276 … src_buf, &src_area, src_stride, dsc->opa) == LV_RES_OK); in lv_draw_vglite_img_decoded() 282 …done = (lv_gpu_nxp_vglite_blit(&blend_area, src_buf, &src_area, src_stride, dsc->opa) == LV_RES_OK… in lv_draw_vglite_img_decoded() 314 if(dsc->opa <= (lv_opa_t)LV_OPA_MIN) in lv_draw_vglite_line() 524 if(dsc->opa <= (lv_opa_t)LV_OPA_MIN) in lv_draw_vglite_arc()
|
/lvgl-latest/src/draw/arm2d/ |
D | lv_gpu_arm2d.c | 422 lv_opa_t opa, 428 lv_opa_t opa, 446 lv_opa_t opa, 455 lv_opa_t opa, 535 dsc->opa, in lv_draw_arm2d_blend() 543 dsc->opa, in lv_draw_arm2d_blend() 556 lv_opa_t opa, in lv_draw_arm2d_fill_colour() argument 562 if(opa >= LV_OPA_MAX) { in lv_draw_arm2d_fill_colour() 575 opa); in lv_draw_arm2d_fill_colour() 581 if(opa >= LV_OPA_MAX) { in lv_draw_arm2d_fill_colour() [all …]
|
/lvgl-latest/src/draw/stm32_dma2d/ |
D | lv_gpu_stm32_dma2d.c | 61 … const lv_area_t * draw_area, lv_color_t color, lv_opa_t opa); 63 …raw_area, const void * src_buf, lv_coord_t src_stride, const lv_point_t * src_offset, lv_opa_t opa, 67 lv_color_t color, lv_opa_t opa); 171 dsc->opa); in lv_draw_stm32_dma2d_blend() 202 …_blend_map(draw_ctx->buf, dest_stride, &draw_area, dsc->src_buf, src_stride, &src_offset, dsc->opa, in lv_draw_stm32_dma2d_blend() 220 … _lv_draw_stm32_dma2d_blend_fill(draw_ctx->buf, dest_stride, &draw_area, dsc->color, dsc->opa); in lv_draw_stm32_dma2d_blend() 227 …_blend_map(draw_ctx->buf, dest_stride, &draw_area, dsc->src_buf, src_stride, &src_offset, dsc->opa, in lv_draw_stm32_dma2d_blend() 274 img_dsc->opa, bitmapColorFormat, ignoreBitmapAlpha); in lv_draw_stm32_dma2d_img_decoded() 322 if(img_dsc->opa <= LV_OPA_MIN) return LV_RES_OK; in lv_draw_stm32_dma2d_img() 351 &src_offset, img_dsc->opa, bitmapColorFormat, ignoreBitmapAlpha); in lv_draw_stm32_dma2d_img() [all …]
|
/lvgl-latest/src/draw/sdl/ |
D | lv_draw_sdl_label.c | 61 lv_opa_t opa = dsc->opa; in lv_draw_sdl_draw_letter() local 63 if(opa < LV_OPA_MIN) return; in lv_draw_sdl_draw_letter() 64 if(opa > LV_OPA_MAX) opa = LV_OPA_COVER; in lv_draw_sdl_draw_letter() 161 SDL_SetTextureAlphaMod(texture, opa); in lv_draw_sdl_draw_letter()
|
/lvgl-latest/src/widgets/ |
D | lv_canvas.c | 92 void lv_canvas_set_px_opa(lv_obj_t * obj, lv_coord_t x, lv_coord_t y, lv_opa_t opa) in lv_canvas_set_px_opa() argument 98 lv_img_buf_set_px_alpha(&canvas->dsc, x, y, opa); in lv_canvas_set_px_opa() 277 lv_opa_t opa = LV_OPA_TRANSP; in lv_canvas_blur_hor() local 285 if(has_alpha) opa = lv_img_buf_get_px_alpha(&line_img, x_safe, 0); in lv_canvas_blur_hor() 294 if(has_alpha) asum += opa; in lv_canvas_blur_hor() 312 if(has_alpha) opa = asum / r; in lv_canvas_blur_hor() 316 if(has_alpha) lv_img_buf_set_px_alpha(&canvas->dsc, x, y, opa); in lv_canvas_blur_hor() 321 if(has_alpha) opa = lv_img_buf_get_px_alpha(&line_img, x_safe, 0); in lv_canvas_blur_hor() 330 if(has_alpha) asum -= opa; in lv_canvas_blur_hor() 335 if(has_alpha) opa = lv_img_buf_get_px_alpha(&line_img, x_safe, 0); in lv_canvas_blur_hor() [all …]
|
/lvgl-latest/src/draw/ |
D | lv_img_buf.c | 155 void lv_img_buf_set_px_alpha(const lv_img_dsc_t * dsc, lv_coord_t x, lv_coord_t y, lv_opa_t opa) in lv_img_buf_set_px_alpha() argument 162 buf_u8[px + px_size - 1] = opa; in lv_img_buf_set_px_alpha() 165 opa = opa >> 7; /*opa -> [0,1]*/ in lv_img_buf_set_px_alpha() 174 buf_u8[px] = buf_u8[px] | ((opa & 0x1) << (7 - bit)); in lv_img_buf_set_px_alpha() 177 opa = opa >> 6; /*opa -> [0,3]*/ in lv_img_buf_set_px_alpha() 186 buf_u8[px] = buf_u8[px] | ((opa & 0x3) << (6 - bit)); in lv_img_buf_set_px_alpha() 189 opa = opa >> 4; /*opa -> [0,15]*/ in lv_img_buf_set_px_alpha() 198 buf_u8[px] = buf_u8[px] | ((opa & 0xF) << (4 - bit)); in lv_img_buf_set_px_alpha() 202 buf_u8[px] = opa; in lv_img_buf_set_px_alpha()
|
D | lv_draw_line.c | 41 dsc->opa = LV_OPA_COVER; in lv_draw_line_dsc_init() 49 if(dsc->opa <= LV_OPA_MIN) return; in lv_draw_line()
|
/lvgl-latest/src/draw/nxp/pxp/ |
D | lv_draw_pxp_blend.c | 142 lv_color_t color, lv_opa_t opa) in lv_gpu_nxp_pxp_fill() argument 162 if(opa >= (lv_opa_t)LV_OPA_MAX) { in lv_gpu_nxp_pxp_fill() 197 ….srcFactorMode = (opa >= (lv_opa_t)LV_OPA_MAX) ? kPXP_PorterDuffFactorStraight : kPXP_PorterDuffFa… in lv_gpu_nxp_pxp_fill() 198 .dstGlobalAlpha = opa, in lv_gpu_nxp_pxp_fill() 199 .srcGlobalAlpha = opa, in lv_gpu_nxp_pxp_fill() 211 lv_opa_t opa, lv_disp_rot_t angle) in lv_gpu_nxp_pxp_blit() argument 242 .alpha = opa, in lv_gpu_nxp_pxp_blit() 248 if(opa >= (lv_opa_t)LV_OPA_MAX) { in lv_gpu_nxp_pxp_blit() 302 …if(dsc->opa >= (lv_opa_t)LV_OPA_MAX && !lv_img_cf_has_alpha(cf) && !lv_img_cf_is_chroma_keyed(cf))… in lv_gpu_nxp_pxp_blit_transform() 486 .alpha = dsc->opa, in lv_pxp_blit_cf() [all …]
|
D | lv_draw_pxp_blend.h | 69 lv_color_t color, lv_opa_t opa); 87 lv_opa_t opa, lv_disp_rot_t angle);
|
D | lv_draw_pxp.c | 133 if(dsc->opa <= (lv_opa_t)LV_OPA_MIN) 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() 171 dsc->opa, LV_DISP_ROT_NONE); in lv_draw_pxp_blend() 178 if(dsc->opa <= (lv_opa_t)LV_OPA_MIN) in lv_draw_pxp_img_decoded()
|
/lvgl-latest/src/draw/swm341_dma2d/ |
D | lv_gpu_swm341_dma2d.c | 48 … const lv_color_t * src_buf, lv_coord_t src_stride, lv_opa_t opa); 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() 125 else if(dsc->opa >= LV_OPA_MAX) { in lv_draw_swm341_dma2d_blend() 171 … const lv_color_t * src_buf, lv_coord_t src_stride, lv_opa_t opa) in lv_draw_swm341_dma2d_blend_map() argument 178 if(opa >= LV_OPA_MAX) { in lv_draw_swm341_dma2d_blend_map() 209 | (opa << DMA2D_PFCCR_ALPHA_Pos); in lv_draw_swm341_dma2d_blend_map()
|
/lvgl-latest/examples/get_started/ |
D | lv_example_get_started_2.c | 8 static lv_color_t darken(const lv_color_filter_dsc_t * dsc, lv_color_t color, lv_opa_t opa) in darken() argument 11 return lv_color_darken(color, opa); in darken()
|
/lvgl-latest/examples/scroll/ |
D | lv_example_scroll_6.c | 43 lv_opa_t opa = lv_map(x, 0, r, LV_OPA_TRANSP, LV_OPA_COVER); in scroll_event_cb() local 44 lv_obj_set_style_opa(child, LV_OPA_COVER - opa, 0); in scroll_event_cb()
|
D | lv_example_scroll_6.py | 38 opa = lv.map(x, 0, r, lv.OPA.TRANSP, lv.OPA.COVER) 39 child.set_style_opa(lv.OPA.COVER - opa, 0)
|