Home
last modified time | relevance | path

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

/lvgl-latest/src/misc/
Dlv_color_op.c36 lv_color_t LV_ATTRIBUTE_FAST_MEM lv_color_mix(lv_color_t c1, lv_color_t c2, uint8_t mix) in lv_color_mix() argument
40 ret.red = LV_UDIV255((uint16_t)c1.red * mix + c2.red * (255 - mix) + LV_COLOR_MIX_ROUND_OFS); in lv_color_mix()
41 …ret.green = LV_UDIV255((uint16_t)c1.green * mix + c2.green * (255 - mix) + LV_COLOR_MIX_ROUND_OFS); in lv_color_mix()
42 ret.blue = LV_UDIV255((uint16_t)c1.blue * mix + c2.blue * (255 - mix) + LV_COLOR_MIX_ROUND_OFS); in lv_color_mix()
Dlv_color.c306 uint16_t LV_ATTRIBUTE_FAST_MEM lv_color_16_16_mix(uint16_t c1, uint16_t c2, uint8_t mix) in lv_color_16_16_mix() argument
308 if(mix == 255) return c1; in lv_color_16_16_mix()
309 if(mix == 0) return c2; in lv_color_16_16_mix()
315 mix = (uint32_t)((uint32_t)mix + 4) >> 3; in lv_color_16_16_mix()
320 uint32_t result = ((((fg - bg) * mix) >> 5) + bg) & 0x7E0F81F; in lv_color_16_16_mix()
Dlv_color_op.h49 lv_color_t LV_ATTRIBUTE_FAST_MEM lv_color_mix(lv_color_t c1, lv_color_t c2, uint8_t mix);
Dlv_color.h344 uint16_t LV_ATTRIBUTE_FAST_MEM lv_color_16_16_mix(uint16_t c1, uint16_t c2, uint8_t mix);
/lvgl-latest/src/draw/sw/blend/
Dlv_draw_sw_blend_to_rgb888.c68 …void /* LV_ATTRIBUTE_FAST_MEM */ lv_color_8_24_mix(const uint8_t src, uint8_t * dest, uint8_t mix);
70 …d /* LV_ATTRIBUTE_FAST_MEM */ lv_color_24_24_mix(const uint8_t * src, uint8_t * dest, uint8_t mix);
932 …inline void LV_ATTRIBUTE_FAST_MEM lv_color_8_24_mix(const uint8_t src, uint8_t * dest, uint8_t mix) in lv_color_8_24_mix() argument
935 if(mix == 0) return; in lv_color_8_24_mix()
937 if(mix >= LV_OPA_MAX) { in lv_color_8_24_mix()
943 lv_opa_t mix_inv = 255 - mix; in lv_color_8_24_mix()
944 dest[0] = (uint32_t)((uint32_t)src * mix + dest[0] * mix_inv) >> 8; in lv_color_8_24_mix()
945 dest[1] = (uint32_t)((uint32_t)src * mix + dest[1] * mix_inv) >> 8; in lv_color_8_24_mix()
946 dest[2] = (uint32_t)((uint32_t)src * mix + dest[2] * mix_inv) >> 8; in lv_color_8_24_mix()
950 …ine void LV_ATTRIBUTE_FAST_MEM lv_color_24_24_mix(const uint8_t * src, uint8_t * dest, uint8_t mix) in lv_color_24_24_mix() argument
[all …]
Dlv_draw_sw_blend_to_rgb565.c68 …uint16_t /* LV_ATTRIBUTE_FAST_MEM */ lv_color_8_16_mix(const uint8_t c1, uint16_t c2, uint8_t mix);
70 …t16_t /* LV_ATTRIBUTE_FAST_MEM */ lv_color_24_16_mix(const uint8_t * c1, uint16_t c2, uint8_t mix);
1099 …inline uint16_t LV_ATTRIBUTE_FAST_MEM lv_color_8_16_mix(const uint8_t c1, uint16_t c2, uint8_t mix) in lv_color_8_16_mix() argument
1102 if(mix == 0) { in lv_color_8_16_mix()
1105 else if(mix == 255) { in lv_color_8_16_mix()
1109 lv_opa_t mix_inv = 255 - mix; in lv_color_8_16_mix()
1111 return ((((c1 >> 3) * mix + ((c2 >> 11) & 0x1F) * mix_inv) << 3) & 0xF800) + in lv_color_8_16_mix()
1112 ((((c1 >> 2) * mix + ((c2 >> 5) & 0x3F) * mix_inv) >> 3) & 0x07E0) + in lv_color_8_16_mix()
1113 (((c1 >> 3) * mix + (c2 & 0x1F) * mix_inv) >> 8); in lv_color_8_16_mix()
1117 …ine uint16_t LV_ATTRIBUTE_FAST_MEM lv_color_24_16_mix(const uint8_t * c1, uint16_t c2, uint8_t mix) in lv_color_24_16_mix() argument
[all …]
Dlv_draw_sw_blend_to_argb8888.c74 …/* LV_ATTRIBUTE_FAST_MEM */ lv_color_8_32_mix(const uint8_t src, lv_color32_t * dest, uint8_t mix);
952 …e void LV_ATTRIBUTE_FAST_MEM lv_color_8_32_mix(const uint8_t src, lv_color32_t * dest, uint8_t mix) in lv_color_8_32_mix() argument
955 if(mix == 0) return; in lv_color_8_32_mix()
958 if(mix >= LV_OPA_MAX) { in lv_color_8_32_mix()
964 lv_opa_t mix_inv = 255 - mix; in lv_color_8_32_mix()
965 dest->red = (uint32_t)((uint32_t)src * mix + dest->red * mix_inv) >> 8; in lv_color_8_32_mix()
966 dest->green = (uint32_t)((uint32_t)src * mix + dest->green * mix_inv) >> 8; in lv_color_8_32_mix()
967 dest->blue = (uint32_t)((uint32_t)src * mix + dest->blue * mix_inv) >> 8; in lv_color_8_32_mix()
Dlv_draw_sw_blend_to_l8.c66 … void /* LV_ATTRIBUTE_FAST_MEM */ lv_color_8_8_mix(const uint8_t src, uint8_t * dest, uint8_t mix);
845 … inline void LV_ATTRIBUTE_FAST_MEM lv_color_8_8_mix(const uint8_t src, uint8_t * dest, uint8_t mix) in lv_color_8_8_mix() argument
848 if(mix == 0) return; in lv_color_8_8_mix()
850 if(mix >= LV_OPA_MAX) { in lv_color_8_8_mix()
854 lv_opa_t mix_inv = 255 - mix; in lv_color_8_8_mix()
855 *dest = (uint32_t)((uint32_t)src * mix + dest[0] * mix_inv) >> 8; in lv_color_8_8_mix()
Dlv_draw_sw_blend_to_i1.c62 … void /* LV_ATTRIBUTE_FAST_MEM */ lv_color_8_8_mix(const uint8_t src, uint8_t * dest, uint8_t mix);
1083 … inline void LV_ATTRIBUTE_FAST_MEM lv_color_8_8_mix(const uint8_t src, uint8_t * dest, uint8_t mix) in lv_color_8_8_mix() argument
1086 if(mix == 0) return; in lv_color_8_8_mix()
1088 if(mix >= LV_OPA_MAX) { in lv_color_8_8_mix()
1092 lv_opa_t mix_inv = 255 - mix; in lv_color_8_8_mix()
1093 *dest = (uint32_t)((uint32_t)src * mix + dest[0] * mix_inv) >> 8; in lv_color_8_8_mix()
/lvgl-latest/src/draw/sw/
Dlv_draw_sw_img.c553 lv_opa_t mix = draw_dsc->recolor_opa; in recolor() local
554 lv_opa_t mix_inv = 255 - mix; in recolor()
557 if(LV_RESULT_INVALID == LV_DRAW_SW_RGB565_RECOLOR(dest_buf, blend_area, color, mix)) { in recolor()
562 c_mult[0] = (color.blue >> 3) * mix; in recolor()
563 c_mult[1] = (color.green >> 2) * mix; in recolor()
564 c_mult[2] = (color.red >> 3) * mix; in recolor()
582 … if(LV_RESULT_INVALID == LV_DRAW_SW_RGB888_RECOLOR(dest_buf, blend_area, color, mix, cf_final)) { in recolor()
586 c_mult[0] = color.blue * mix; in recolor()
587 c_mult[1] = color.green * mix; in recolor()
588 c_mult[2] = color.red * mix; in recolor()
Dlv_draw_sw_gradient.c207 lv_opa_t mix = (frac * 255) / d; in lv_gradient_color_calculate() local
208 lv_opa_t imix = 255 - mix; in lv_gradient_color_calculate()
210 *color_out = GRAD_CM(LV_UDIV255(two.red * mix + one.red * imix), in lv_gradient_color_calculate()
211 LV_UDIV255(two.green * mix + one.green * imix), in lv_gradient_color_calculate()
212 LV_UDIV255(two.blue * mix + one.blue * imix)); in lv_gradient_color_calculate()
214 *opa_out = LV_UDIV255(dsc->stops[found_i].opa * mix + dsc->stops[found_i - 1].opa * imix); in lv_gradient_color_calculate()
/lvgl-latest/docs/details/main-components/
Dcolor.rst100 Modify and mix colors
/lvgl-latest/docs/details/integration/driver/display/
Dst_ltdc.rst108 Additionally it is possible to mix layers that have color format on
/lvgl-latest/tests/micropy_test/
Dmicropy.py129 c3 = c1.mix(c2, lv.OPA._60)
/lvgl-latest/docs/details/widgets/
Dimage.rst105 The color to mix is set by ``img_recolor``.
/lvgl-latest/docs/details/integration/chip/
Dstm32.rst295 DMA2D also makes possible to mix layers that have color format on
/lvgl-latest/docs/details/integration/bindings/
Dmicropython.rst278 In practice it's also possible to mix these options, for example provide a struct pointer when regi…
/lvgl-latest/docs/details/base-widget/styles/
Dstyle-properties.rst646 Set a color to mix to the background image.
932 Set color to mix with the image.
/lvgl-latest/
DKconfig678 int "Adjust color mix functions rounding"
/lvgl-latest/docs/_static/css/
Dfontawesome.min.css5 …-minus-square:before{content:"\f146"}.fa-mitten:before{content:"\f7b5"}.fa-mix:before{content:"\f3…
/lvgl-latest/docs/
DDoxyfile300 # mix doxygen, HTML, and XML commands with Markdown formatting. Disable only in