/lvgl-latest/src/draw/nxp/vglite/ |
D | lv_vglite_utils.c | 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() 97 …*vg_col32 = ((uint32_t)lv_col32_premul.ch.red << 24) | ((uint32_t)lv_col32_premul.ch.green << 16) | in lv_vglite_premult_and_swizzle() 98 … ((uint32_t)lv_col32_premul.ch.blue << 8) | (uint32_t)lv_col32_premul.ch.alpha; in lv_vglite_premult_and_swizzle() 101 …*vg_col32 = ((uint32_t)lv_col32_premul.ch.alpha << 24) | ((uint32_t)lv_col32_premul.ch.blue << 16)… in lv_vglite_premult_and_swizzle() 102 … ((uint32_t)lv_col32_premul.ch.green << 8) | (uint32_t)lv_col32_premul.ch.red; in lv_vglite_premult_and_swizzle() 105 …*vg_col32 = ((uint32_t)lv_col32_premul.ch.alpha << 24) | ((uint32_t)lv_col32_premul.ch.red << 16) | in lv_vglite_premult_and_swizzle() 106 … ((uint32_t)lv_col32_premul.ch.green << 8) | (uint32_t)lv_col32_premul.ch.blue; in lv_vglite_premult_and_swizzle()
|
/lvgl-latest/src/draw/sw/ |
D | lv_draw_sw_dither.c | 57 t.ch.red = LV_CLAMP(0, tmp.ch.red + factor, 255); in lv_dither_ordered_hor() 58 t.ch.green = LV_CLAMP(0, tmp.ch.green + factor, 255); in lv_dither_ordered_hor() 59 t.ch.blue = LV_CLAMP(0, tmp.ch.blue + factor, 255); in lv_dither_ordered_hor() 82 t.ch.red = LV_CLAMP(0, tmp.ch.red + factor, 255); in lv_dither_ordered_ver() 83 t.ch.green = LV_CLAMP(0, tmp.ch.green + factor, 255); in lv_dither_ordered_ver() 84 t.ch.blue = LV_CLAMP(0, tmp.ch.blue + factor, 255); in lv_dither_ordered_ver() 115 …B, C) A.ch.red = LV_CLAMP(0, A.ch.red OP B.r OP C.r, 255); A.ch.green = LV_CLAMP(0, A.ch.green OP … in lv_dither_err_diff_hor() 116 …lor_to32(q); e.r = (int8_t)(t.ch.red - u.ch.red); e.g = (int8_t)(t.ch.green - u.ch.green); e.b = (… in lv_dither_err_diff_hor() 178 A.ch.red = LV_CLAMP(0, A.ch.red OP ((B.r * b OP C.r * c OP D.r * d) >> 4), 255); \ in lv_dither_err_diff_ver() 179 A.ch.green = LV_CLAMP(0, A.ch.green OP ((B.r * b OP C.r * c OP D.r * d) >> 4), 255); \ in lv_dither_err_diff_ver() [all …]
|
D | lv_draw_sw_blend.c | 398 buf[0] = res_color.ch.blue; in set_px_argb() 399 buf[1] = res_color.ch.green; in set_px_argb() 400 buf[2] = res_color.ch.red; in set_px_argb() 441 buf[0] = last_res_color.ch.blue; in set_px_argb_blend() 442 buf[1] = last_res_color.ch.green; in set_px_argb_blend() 443 buf[2] = last_res_color.ch.red; in set_px_argb_blend() 960 tmp = bg.ch.red + fg.ch.red; in color_blend_true_color_additive() 962 fg.ch.red = LV_MIN(tmp, 7); in color_blend_true_color_additive() 964 fg.ch.red = LV_MIN(tmp, 31); in color_blend_true_color_additive() 966 fg.ch.red = LV_MIN(tmp, 255); in color_blend_true_color_additive() [all …]
|
D | lv_draw_sw_letter.c | 439 uint8_t txt_rgb[3] = {color.ch.red, color.ch.green, color.ch.blue}; in draw_letter_subpx() 441 uint8_t txt_rgb[3] = {color.ch.red, (color.ch.green_h << 3) + color.ch.green_l, color.ch.blue}; in draw_letter_subpx() 482 … uint8_t bg_rgb[3] = {dest_buf_tmp->ch.red, dest_buf_tmp->ch.green, dest_buf_tmp->ch.blue}; in draw_letter_subpx() 484 uint8_t bg_rgb[3] = {dest_buf_tmp->ch.red, in draw_letter_subpx() 485 (dest_buf_tmp->ch.green_h << 3) + dest_buf_tmp->ch.green_l, in draw_letter_subpx() 486 dest_buf_tmp->ch.blue in draw_letter_subpx() 491 …res_color.ch.red = (uint32_t)((uint16_t)txt_rgb[0] * font_rgb[2] + (bg_rgb[0] * (255 - font_rgb[2]… in draw_letter_subpx() 492 …res_color.ch.blue = (uint32_t)((uint16_t)txt_rgb[2] * font_rgb[0] + (bg_rgb[2] * (255 - font_rgb[0… in draw_letter_subpx() 494 …res_color.ch.red = (uint32_t)((uint16_t)txt_rgb[0] * font_rgb[0] + (bg_rgb[0] * (255 - font_rgb[0]… in draw_letter_subpx() 495 …res_color.ch.blue = (uint32_t)((uint16_t)txt_rgb[2] * font_rgb[2] + (bg_rgb[2] * (255 - font_rgb[2… in draw_letter_subpx() [all …]
|
D | lv_draw_sw_gradient.c | 333 lv_grad_color_t r = GRAD_CM(LV_UDIV255(two.ch.red * mix + one.ch.red * imix), in lv_gradient_calculate() 334 LV_UDIV255(two.ch.green * mix + one.ch.green * imix), in lv_gradient_calculate() 335 LV_UDIV255(two.ch.blue * mix + one.ch.blue * imix)); in lv_gradient_calculate()
|
D | lv_draw_sw_img.c | 266 cbuf[x].ch.alpha = 0xff; in convert_cb()
|
/lvgl-latest/src/extra/libs/png/ |
D | lv_png.c | 240 c = lv_color_make(img_argb[i].ch.red, img_argb[i].ch.green, img_argb[i].ch.blue); in convert_color_depth() 241 img_c[i].ch.red = c.ch.blue; in convert_color_depth() 242 img_c[i].ch.blue = c.ch.red; in convert_color_depth() 249 c = lv_color_make(img_argb[i].ch.blue, img_argb[i].ch.green, img_argb[i].ch.red); in convert_color_depth() 250 img[i * 3 + 2] = img_argb[i].ch.alpha; in convert_color_depth() 259 c = lv_color_make(img_argb[i].ch.red, img_argb[i].ch.green, img_argb[i].ch.blue); in convert_color_depth() 260 img[i * 2 + 1] = img_argb[i].ch.alpha; in convert_color_depth() 268 b = img_argb[i].ch.red | img_argb[i].ch.green | img_argb[i].ch.blue; in convert_color_depth() 269 img[i * 2 + 1] = img_argb[i].ch.alpha; in convert_color_depth()
|
/lvgl-latest/src/misc/ |
D | lv_color.h | 104 # define LV_COLOR_SET_R1(c, v) (c).ch.red = (uint8_t)((v) & 0x1) 105 # define LV_COLOR_SET_G1(c, v) (c).ch.green = (uint8_t)((v) & 0x1) 106 # define LV_COLOR_SET_B1(c, v) (c).ch.blue = (uint8_t)((v) & 0x1) 109 # define LV_COLOR_GET_R1(c) (c).ch.red 110 # define LV_COLOR_GET_G1(c) (c).ch.green 111 # define LV_COLOR_GET_B1(c) (c).ch.blue 117 # define LV_COLOR_SET_R8(c, v) (c).ch.red = (uint8_t)((v) & 0x7U) 118 # define LV_COLOR_SET_G8(c, v) (c).ch.green = (uint8_t)((v) & 0x7U) 119 # define LV_COLOR_SET_B8(c, v) (c).ch.blue = (uint8_t)((v) & 0x3U) 122 # define LV_COLOR_GET_R8(c) (c).ch.red [all …]
|
D | lv_color.c | 271 return lv_color_rgb_to_hsv(color32.ch.red, color32.ch.green, color32.ch.blue); in lv_color_to_hsv()
|
D | lv_printf.c | 152 static inline bool _is_digit(char ch) in _is_digit() argument 154 return (ch >= '0') && (ch <= '9'); in _is_digit()
|
/lvgl-latest/src/widgets/ |
D | lv_canvas.c | 287 rsum += c.ch.red; in lv_canvas_blur_hor() 289 gsum += (c.ch.green_h << 3) + c.ch.green_l; in lv_canvas_blur_hor() 291 gsum += c.ch.green; in lv_canvas_blur_hor() 293 bsum += c.ch.blue; in lv_canvas_blur_hor() 303 c.ch.red = rsum / r; in lv_canvas_blur_hor() 306 c.ch.green_h = gtmp >> 3; in lv_canvas_blur_hor() 307 c.ch.green_l = gtmp & 0x7; in lv_canvas_blur_hor() 309 c.ch.green = gsum / r; in lv_canvas_blur_hor() 311 c.ch.blue = bsum / r; in lv_canvas_blur_hor() 323 rsum -= c.ch.red; in lv_canvas_blur_hor() [all …]
|
/lvgl-latest/src/draw/sdl/ |
D | lv_draw_sdl_utils.c | 81 out->a = in->ch.alpha; in lv_color_to_sdl_color() 82 out->r = in->ch.red; in lv_color_to_sdl_color() 83 out->g = in->ch.green; in lv_color_to_sdl_color() 84 out->b = in->ch.blue; in lv_color_to_sdl_color() 88 out->a = color32_t->ch.alpha; in lv_color_to_sdl_color() 89 out->r = color32_t->ch.red; in lv_color_to_sdl_color() 90 out->g = color32_t->ch.green; in lv_color_to_sdl_color() 91 out->b = color32_t->ch.blue; in lv_color_to_sdl_color()
|
D | lv_draw_sdl_label.c | 162 SDL_SetTextureColorMod(texture, color.ch.red, color.ch.green, color.ch.blue); in lv_draw_sdl_draw_letter()
|
D | lv_draw_sdl_img.c | 390 SDL_SetTextureColorMod(texture, recolor.ch.red, recolor.ch.green, recolor.ch.blue); in apply_recolor_opa()
|
/lvgl-latest/src/draw/nxp/pxp/ |
D | lv_draw_pxp_blend.c | 537 LV_COLOR_SET_R(colorKeyLow, colorKey.ch.red != 0 ? colorKey.ch.red - 1 : 0); in lv_pxp_blit_cf() 538 LV_COLOR_SET_G(colorKeyLow, colorKey.ch.green != 0 ? colorKey.ch.green - 1 : 0); in lv_pxp_blit_cf() 539 LV_COLOR_SET_B(colorKeyLow, colorKey.ch.blue != 0 ? colorKey.ch.blue - 1 : 0); in lv_pxp_blit_cf() 542 LV_COLOR_SET_R(colorKeyHigh, colorKey.ch.red != 0x1f ? colorKey.ch.red + 1 : 0x1f); in lv_pxp_blit_cf() 543 LV_COLOR_SET_G(colorKeyHigh, colorKey.ch.green != 0x3f ? colorKey.ch.green + 1 : 0x3f); in lv_pxp_blit_cf() 544 LV_COLOR_SET_B(colorKeyHigh, colorKey.ch.blue != 0x1f ? colorKey.ch.blue + 1 : 0x1f); in lv_pxp_blit_cf() 546 LV_COLOR_SET_R(colorKeyHigh, colorKey.ch.red != 0xff ? colorKey.ch.red + 1 : 0xff); in lv_pxp_blit_cf() 547 LV_COLOR_SET_G(colorKeyHigh, colorKey.ch.green != 0xff ? colorKey.ch.green + 1 : 0xff); in lv_pxp_blit_cf() 548 LV_COLOR_SET_B(colorKeyHigh, colorKey.ch.blue != 0xff ? colorKey.ch.blue + 1 : 0xff); in lv_pxp_blit_cf()
|
/lvgl-latest/src/extra/libs/bmp/ |
D | lv_bmp.c | 219 c->ch.red = b2; in decoder_read_line() 220 c->ch.green = b1; in decoder_read_line() 221 c->ch.blue = b0; in decoder_read_line() 222 c->ch.alpha = b3; in decoder_read_line() 231 c->ch.red = t[2]; in decoder_read_line() 232 c->ch.green = t[1]; in decoder_read_line() 233 c->ch.blue = t[0]; in decoder_read_line() 234 c->ch.alpha = 0xff; in decoder_read_line()
|
/lvgl-latest/src/draw/renesas/ |
D | lv_gpu_d2_ra6m3.c | 193 red = color.ch.red << 3 | color.ch.red >> 2; 194 green = color.ch.green << 2 | color.ch.green >> 4; 195 blue = color.ch.blue << 3 | color.ch.blue >> 2; 203 static void lv_port_gpu_get_recolor_consts(d2_color * cl, d2_color * ch) argument 216 *ch = r << 16UL | g << 8UL | b << 0UL; 537 d2_color cl = d2_getcolor(_d2_handle, 0), ch = d2_getcolor(_d2_handle, 1); local 539 (uint8_t)(ch >> 16UL))); 541 (uint8_t)(ch >> 8UL))); 543 (uint8_t)(ch >> 0UL))); 630 d2_color cl = 0, ch = 0; local [all …]
|
/lvgl-latest/src/draw/ |
D | lv_img_decoder.c | 438 … user_data->palette[i] = lv_color_make(cur_color.ch.red, cur_color.ch.green, cur_color.ch.blue); in lv_img_decoder_built_in_open() 439 user_data->opa[i] = cur_color.ch.alpha; in lv_img_decoder_built_in_open() 448 …user_data->palette[i] = lv_color_make(palette_p[i].ch.red, palette_p[i].ch.green, palette_p[i].ch.… in lv_img_decoder_built_in_open() 449 user_data->opa[i] = palette_p[i].ch.alpha; in lv_img_decoder_built_in_open()
|
/lvgl-latest/src/extra/libs/gif/ |
D | gifdec.h | 38 uint16_t tw, uint16_t th, uint8_t cw, uint8_t ch,
|
D | gifdec.c | 158 gif->canvas[i*2 + 0] = c.ch.red > 128 ? 1 : 0; in gif_open() 187 uint8_t cw, ch, fg, bg; in read_plain_text_ext() local 195 f_gif_read(gif, &ch, 1); in read_plain_text_ext() 199 gif->plain_text(gif, tx, ty, tw, th, cw, ch, fg, bg); in read_plain_text_ext()
|
/lvgl-latest/docs/overview/ |
D | color.md | 114 - `ch.red` red channel 115 - `ch.green` green channel 116 - `ch.blue` blue channel
|
/lvgl-latest/src/draw/stm32_dma2d/ |
D | lv_gpu_stm32_dma2d.c | 192 (*src_buf).ch.alpha = *mask; in lv_draw_stm32_dma2d_blend() 384 …DMA2D->OCOLR = (color.ch.blue << 11) | (color.ch.green_l << 5 | color.ch.green_h << 8) | (color.ch… in _lv_draw_stm32_dma2d_blend_fill()
|
/lvgl-latest/src/hal/ |
D | lv_hal_disp.c | 715 buf_px[0] = res_color.ch.blue; in set_px_true_color_alpha() 716 buf_px[1] = res_color.ch.green; in set_px_true_color_alpha() 717 buf_px[2] = res_color.ch.red; in set_px_true_color_alpha()
|
/lvgl-latest/src/extra/libs/tiny_ttf/ |
D | stb_truetype_htcw.h | 383 int i, j, ascent, baseline, ch = 0; 394 while(text[ch]) { 397 stbtt_GetCodepointHMetrics(&font, text[ch], &advance, &lsb); 398 …stbtt_GetCodepointBitmapBoxSubpixel(&font, text[ch], scale, scale, x_shift, 0, &x0, &y0, &x1, &y1); 400 x_shift, 0, text[ch]); 406 if(text[ch + 1]) 407 xpos += scale * stbtt_GetCodepointKernAdvance(&font, text[ch], text[ch + 1]); 408 ++ch; 5172 stbtt_uint16 ch = ttUSHORT(s2, s2offs); local 5173 if(ch < 0x80) { [all …]
|
/lvgl-latest/src/extra/widgets/colorwheel/ |
D | lv_colorwheel.c | 128 return lv_colorwheel_set_hsv(obj, lv_color_rgb_to_hsv(c32.ch.red, c32.ch.green, c32.ch.blue)); in lv_colorwheel_set_rgb()
|