Home
last modified time | relevance | path

Searched refs:mask (Results 1 – 24 of 24) sorted by relevance

/lvgl-3.5.0/src/draw/sw/
Dlv_draw_sw_blend.c27 … 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, const lv_opa_t * mask, lv_coord_t mask_str…
35 …lv_coord_t dest_stride, lv_color_t color, lv_opa_t opa, const lv_opa_t * mask, lv_coord_t mask_str…
40 … lv_opa_t opa, const lv_opa_t * mask, lv_coord_t mask_stride, lv_blend_mode_t blend_mode);
44 …_color_t * src_buf, lv_coord_t src_stride, lv_opa_t opa, const lv_opa_t * mask, lv_coord_t mask_st…
47 …_color_t * src_buf, lv_coord_t src_stride, lv_opa_t opa, const lv_opa_t * mask, lv_coord_t mask_st…
52 … const lv_opa_t * mask, lv_coord_t mask_stride, lv_blend_mode_t blend_mode);
59 const lv_opa_t * mask, lv_coord_t mask_stride, lv_blend_mode_t blend_mode);
74 if(*mask == LV_OPA_COVER) *dest_buf = color; \
75 else *dest_buf = lv_color_mix(color, *dest_buf, *mask); \
[all …]
/lvgl-3.5.0/examples/widgets/chart/
Dlv_example_chart_8.c57 int32_t mask = 1; in round_fixed_point() local
59 mask = (mask << 1) + 1; in round_fixed_point()
62 int32_t decimal_part = n & mask; in round_fixed_point()
68 return (decimal_part < rounding_boundary) ? (n & ~mask) : ((n >> shift) + 1) << shift; in round_fixed_point()
Dlv_example_chart_8.py56 mask = 1
58 mask = (mask << 1) + 1
60 decimal_part = n & mask
67 return (n & ~mask)
/lvgl-3.5.0/src/misc/
Dlv_math.c109 LV_ATTRIBUTE_FAST_MEM void lv_sqrt(uint32_t x, lv_sqrt_res_t * q, uint32_t mask) in lv_sqrt() argument
117 trial = root + mask; in lv_sqrt()
119 mask = mask >> 1; in lv_sqrt()
120 } while(mask); in lv_sqrt()
Dlv_math.h87 LV_ATTRIBUTE_FAST_MEM void lv_sqrt(uint32_t x, lv_sqrt_res_t * q, uint32_t mask);
/lvgl-3.5.0/src/extra/libs/qrcode/
Dqrcodegen.c68 static void drawFormatBits(enum qrcodegen_Ecc ecl, enum qrcodegen_Mask mask, uint8_t qrcode[]);
73 static void applyMask(const uint8_t functionModules[], uint8_t qrcode[], enum qrcodegen_Mask mask);
129 enum qrcodegen_Ecc ecl, int minVersion, int maxVersion, enum qrcodegen_Mask mask, bool boostEcl) { in qrcodegen_encodeText() argument
133 …return qrcodegen_encodeSegmentsAdvanced(NULL, 0, ecl, minVersion, maxVersion, mask, boostEcl, temp… in qrcodegen_encodeText()
157 …return qrcodegen_encodeSegmentsAdvanced(&seg, 1, ecl, minVersion, maxVersion, mask, boostEcl, temp… in qrcodegen_encodeText()
167 enum qrcodegen_Ecc ecl, int minVersion, int maxVersion, enum qrcodegen_Mask mask, bool boostEcl) { in qrcodegen_encodeBinary() argument
178 …return qrcodegen_encodeSegmentsAdvanced(&seg, 1, ecl, minVersion, maxVersion, mask, boostEcl, data… in qrcodegen_encodeBinary()
204 int minVersion, int maxVersion, int mask, bool boostEcl, uint8_t tempBuffer[], uint8_t qrcode[]) { in qrcodegen_encodeSegmentsAdvanced() argument
207 assert(0 <= (int)ecl && (int)ecl <= 3 && -1 <= (int)mask && (int)mask <= 7); in qrcodegen_encodeSegmentsAdvanced()
263 if (mask == qrcodegen_Mask_AUTO) { // Automatically choose best mask in qrcodegen_encodeSegmentsAdvanced()
[all …]
Dqrcodegen.h170 enum qrcodegen_Ecc ecl, int minVersion, int maxVersion, enum qrcodegen_Mask mask, bool boostEcl);
192 enum qrcodegen_Ecc ecl, int minVersion, int maxVersion, enum qrcodegen_Mask mask, bool boostEcl);
229 int minVersion, int maxVersion, int mask, bool boostEcl, uint8_t tempBuffer[], uint8_t qrcode[]);
/lvgl-3.5.0/src/draw/sdl/
Dlv_draw_sdl_composite.c86 …LV_ASSERT(internals->mask == NULL && internals->composition == NULL && internals->target_backup ==… in lv_draw_sdl_composite_begin()
103 …internals->mask = lv_draw_sdl_composite_texture_obtain(ctx, LV_DRAW_SDL_COMPOSITE_TEXTURE_ID_STREA… in lv_draw_sdl_composite_begin()
104 dump_masks(internals->mask, apply_area); in lv_draw_sdl_composite_begin()
132 if(internals->mask) { in lv_draw_sdl_composite_end()
136 SDL_SetTextureBlendMode(internals->mask, mode); in lv_draw_sdl_composite_end()
137 SDL_RenderCopy(ctx->renderer, internals->mask, &src_rect, &src_rect); in lv_draw_sdl_composite_end()
179 internals->mask = internals->composition = internals->target_backup = NULL; in lv_draw_sdl_composite_end()
Dlv_draw_sdl_priv.h36 SDL_Texture * mask; member
Dlv_draw_sdl_label.c127 SDL_Surface * mask = lv_sdl_create_opa_surface(buf, g.box_w, g.box_h, g.box_w); in lv_draw_sdl_draw_letter() local
128 texture = SDL_CreateTextureFromSurface(renderer, mask); in lv_draw_sdl_draw_letter()
129 SDL_FreeSurface(mask); in lv_draw_sdl_draw_letter()
Dlv_draw_sdl_rect.c210 SDL_Texture * mask = lv_draw_sdl_mask_dump_texture(ctx->renderer, &coords, &mask_id, 1); in lv_draw_sdl_rect_grad_frag_obtain() local
211 SDL_assert(mask != NULL); in lv_draw_sdl_rect_grad_frag_obtain()
212 SDL_SetTextureBlendMode(mask, SDL_BLENDMODE_NONE); in lv_draw_sdl_rect_grad_frag_obtain()
217 SDL_RenderCopy(ctx->renderer, mask, NULL, NULL); in lv_draw_sdl_rect_grad_frag_obtain()
218 SDL_DestroyTexture(mask); in lv_draw_sdl_rect_grad_frag_obtain()
/lvgl-3.5.0/src/draw/arm2d/
Dlv_gpu_arm2d.c452 const lv_opa_t * mask,
462 const lv_opa_t * mask,
518 const lv_opa_t * mask; in lv_draw_arm2d_blend() local
519 if(dsc->mask_buf == NULL) mask = NULL; in lv_draw_arm2d_blend()
521 else if(dsc->mask_res == LV_DRAW_MASK_RES_FULL_COVER) mask = NULL; in lv_draw_arm2d_blend()
522 else mask = dsc->mask_buf; in lv_draw_arm2d_blend()
537 __PREPARE_MASK_TILE__(dsc, blend_area, mask, false); in lv_draw_arm2d_blend()
545 (NULL == mask) ? NULL : &mask_tile); in lv_draw_arm2d_blend()
553 (NULL == mask) ? NULL : &mask_tile); in lv_draw_arm2d_blend()
697 const lv_opa_t * mask; in lv_draw_arm2d_blend() local
[all …]
/lvgl-3.5.0/docs/overview/
Ddrawing.md58 …o to #5. Otherwise, create the required masks in the draw function. (e.g. a rounded rectangle mask)
59 4. **Calculate all the added mask** It composites opacity values into a *mask buffer* with the "sha…
60 E.g. in case of a "line mask" according to the parameters of the mask, keep one side of the buffer …
63 LVGL has the following built-in mask types which can be calculated and applied real-time:
69 - `LV_DRAW_MASK_TYPE_MAP` The mask is stored in a bitmap array and the necessary parts are applied
72 - **letters** Create a mask from the letter and draw a rectangle with the letter's color using the
73 - **line** Created from four "line masks" to mask out the left, right, top and bottom part of the l…
74 - **rounded rectangle** A mask is created real-time to add a radius to the corners.
75 …verflowing content (usually children) on rounded corners, a rounded rectangle mask is also applied.
77 - **arc drawing** A circular border is drawn but an arc mask is applied too.
[all …]
/lvgl-3.5.0/tests/unity/
Dunity.c302 void UnityPrintMask(const UNITY_UINT mask, const UNITY_UINT number) in UnityPrintMask() argument
309 if (current_bit & mask) in UnityPrintMask()
687 void UnityAssertBits(const UNITY_INT mask, in UnityAssertBits() argument
695 if ((mask & expected) != (mask & actual)) in UnityAssertBits()
699 UnityPrintMask((UNITY_UINT)mask, (UNITY_UINT)expected); in UnityAssertBits()
701 UnityPrintMask((UNITY_UINT)mask, (UNITY_UINT)actual); in UnityAssertBits()
845 UNITY_INT mask = 1; in UnityAssertEqualIntArray() local
846 mask = (mask << 8 * length) - 1; in UnityAssertEqualIntArray()
847 expect_val &= mask; in UnityAssertEqualIntArray()
848 actual_val &= mask; in UnityAssertEqualIntArray()
[all …]
Dunity.h154 #define TEST_ASSERT_BITS(mask, expected, actual) … argument
155 …efine TEST_ASSERT_BITS_HIGH(mask, actual) U… argument
156 …efine TEST_ASSERT_BITS_LOW(mask, actual) U… argument
421 …ine TEST_ASSERT_BITS_MESSAGE(mask, expected, actual, message) UNI… argument
422 …e TEST_ASSERT_BITS_HIGH_MESSAGE(mask, actual, message) UNITY… argument
423 …e TEST_ASSERT_BITS_LOW_MESSAGE(mask, actual, message) UNITY… argument
Dunity_internals.h534 void UnityPrintMask(const UNITY_UINT mask, const UNITY_UINT number);
573 void UnityAssertBits(const UNITY_INT mask,
794 …ine UNITY_TEST_ASSERT_BITS(mask, expected, actual, line, message) Unity… argument
/lvgl-3.5.0/examples/widgets/roller/
Dindex.rst14 add fade mask to roller
/lvgl-3.5.0/src/draw/stm32_dma2d/
Dlv_gpu_stm32_dma2d.c115 const lv_opa_t * mask = dsc->mask_buf; in lv_draw_stm32_dma2d_blend() local
118 else if(dsc->mask_res == LV_DRAW_MASK_RES_FULL_COVER) mask = NULL; in lv_draw_stm32_dma2d_blend()
121 if(mask != NULL) { in lv_draw_stm32_dma2d_blend()
132 …_lv_draw_stm32_dma2d_blend_paint(draw_ctx->buf, dest_stride, &draw_area, mask, mask_stride, &mask_… in lv_draw_stm32_dma2d_blend()
146 mask += (mask_stride * mask_offset.y) + mask_offset.x; in lv_draw_stm32_dma2d_blend()
154 (*src_buf).ch.alpha = *mask; in lv_draw_stm32_dma2d_blend()
156 mask++; in lv_draw_stm32_dma2d_blend()
158 mask += mask_buffer_offset; in lv_draw_stm32_dma2d_blend()
/lvgl-3.5.0/src/draw/
Dlv_img_decoder.c565 uint16_t mask = (1 << px_size) - 1; /*E.g. px_size = 2; mask = 0x03*/ in lv_img_decoder_built_in_line_alpha() local
613 uint8_t val_act = (*data_tmp >> pos) & mask; in lv_img_decoder_built_in_line_alpha()
632 uint16_t mask = (1 << px_size) - 1; /*E.g. px_size = 2; mask = 0x03*/ in lv_img_decoder_built_in_line_indexed() local
681 uint8_t val_act = (*data_tmp >> pos) & mask; in lv_img_decoder_built_in_line_indexed()
/lvgl-3.5.0/docs/porting/
Dgpu.md67 …callback which can either fill an area or copy an image to an area by considering an optional mask.
73 - `lv_opa_t * mask_buf` NULL if ignored, or an alpha mask to apply on `blend_area`
74 - `lv_draw_mask_res_t mask_res` The result of the previous mask operation. (`LV_DRAW_MASK_RES_...`)
131     if(dsc->src_buf == NULL && dsc->mask == NULL && dsc->opa >= LV_OPA_MAX &&
/lvgl-3.5.0/docs/widgets/core/
Dcanvas.md55 …t to an `LV_IMG_VF_ALPHA_8BIT` canvas and use the result image as a [draw mask](/overview/drawing)…
/lvgl-3.5.0/src/extra/libs/png/
Dlodepng.c691 static const unsigned mask = (1u << FIRSTBITS) /*headsize*/ - 1u; in HuffmanTree_makeTable() local
758 unsigned index = reverse & mask; in HuffmanTree_makeTable()
3959 … unsigned mask = (1u << mode_out->bitdepth) - 1u; /*stats always uses 16-bit, mask converts it*/ in auto_choose_color() local
3960 mode_out->key_r = stats->key_r & mask; in auto_choose_color()
3961 mode_out->key_g = stats->key_g & mask; in auto_choose_color()
3962 mode_out->key_b = stats->key_b & mask; in auto_choose_color()
/lvgl-3.5.0/docs/
DCHANGELOG.md839 - fix(draw_img): radius mask doesn't work in specific condition [`2786`](https://github.com/lvgl/lv…
1102 - fix(meter) fix inner mask usage [`c28c146`](https://github.com/lvgl/lvgl/commit/c28c14631040fd08d…
1132 - fix(example_roller_3) mask free param bug [`2553`](https://github.com/lvgl/lvgl/pull/2553)
1858 For example, rectangle borders are drawn by using 2 rectangle masks: one mask removes the inner par…
/lvgl-3.5.0/docs/_static/css/
Dfontawesome.min.css5 …oke-h:before{content:"\f22b"}.fa-mars-stroke-v:before{content:"\f22a"}.fa-mask:before{content:"\f6…