Home
last modified time | relevance | path

Searched refs:c2 (Results 1 – 23 of 23) sorted by relevance

/lvgl-latest/tests/unity/
Dunity_support.h35 # define TEST_ASSERT_EQUAL_COLOR(c1, c2) TEST_ASSERT_TRUE(lv_color_eq(c1, c2)) argument
36 # define TEST_ASSERT_EQUAL_COLOR_MESSAGE(c1, c2, msg) TEST_ASSERT_TRUE(lv_color_eq(c1, c2), m… argument
38 # define TEST_ASSERT_EQUAL_COLOR32(c1, c2) TEST_ASSERT_TRUE(lv_color32_eq(c1, c2 argument
39 # define TEST_ASSERT_EQUAL_COLOR32_MESSAGE(c1, c2, msg) TEST_ASSERT_TRUE(lv_color32_eq(c1, c2 argument
/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.c262 bool lv_color_eq(lv_color_t c1, lv_color_t c2) in lv_color_eq() argument
264 return lv_color_to_int(c1) == lv_color_to_int(c2); in lv_color_eq()
267 bool lv_color32_eq(lv_color32_t c1, lv_color32_t c2) in lv_color32_eq() argument
269 return *((uint32_t *)&c1) == *((uint32_t *)&c2); in lv_color32_eq()
306 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
309 if(mix == 0) return c2; in lv_color_16_16_mix()
310 if(c1 == c2) return c1; in lv_color_16_16_mix()
318 uint32_t bg = (uint32_t)(c2 | ((uint32_t)c2 << 16)) & 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.h278 bool lv_color_eq(lv_color_t c1, lv_color_t c2);
286 bool lv_color32_eq(lv_color32_t c1, lv_color32_t c2);
344 uint16_t LV_ATTRIBUTE_FAST_MEM lv_color_16_16_mix(uint16_t c1, uint16_t c2, uint8_t mix);
Dlv_area.c483 int32_t c2 = lv_trigo_sin(angle_high + 90); in lv_point_array_transform() local
487 int32_t cosma = (c1 * (10 - angle_rem) + c2 * angle_rem) / 10; in lv_point_array_transform()
/lvgl-latest/src/libs/thorvg/
DtvgSwCommon.h300 static inline uint32_t JOIN(uint8_t c0, uint8_t c1, uint8_t c2, uint8_t c3) in JOIN() argument
302 return (c0 << 24 | c1 << 16 | c2 << 8 | c3); in JOIN()
378 auto c2 = (C2(s) > C2(d)) ? (C2(s) - C2(d)) : (C2(d) - C2(s)); in opBlendDifference() local
380 return JOIN(255, c1, c2, c3); in opBlendDifference()
387 auto c2 = std::min(255, C2(s) + C2(d) - std::min(255, (C2(s) * C2(d)) << 1)); in opBlendExclusion() local
389 return JOIN(255, c1, c2, c3); in opBlendExclusion()
396 auto c2 = std::min(C2(s) + C2(d), 255); in opBlendAdd() local
398 return JOIN(255, c1, c2, c3); in opBlendAdd()
405 auto c2 = C2(s) + C2(d) - MULTIPLY(C2(s), C2(d)); in opBlendScreen() local
407 return JOIN(255, c1, c2, c3); in opBlendScreen()
[all …]
DtvgSwFill.cpp102 auto c2 = static_cast<uint8_t>(static_cast<float>(c & 0xFF) * invA); in _alphaUnblend() local
104 return (a << 24) | (c0 << 16) | (c1 << 8) | c2; in _alphaUnblend()
DtvgSwRaster.cpp280 auto c2 = img[rx2 + ry * w]; in _interpUpScaler() local
284 return INTERPOLATE(INTERPOLATE(c4, c3, dx), INTERPOLATE(c2, c1, dx), dy); in _interpUpScaler()
/lvgl-latest/tests/src/test_cases/
Dtest_bindings.c40 lv_color_t c2 = lv_palette_darken(LV_PALETTE_BLUE, 2); in create_ui() local
41 lv_color_t c3 = lv_color_mix(c1, c2, LV_OPA_60); in create_ui()
94 lv_obj_set_style_text_color(label, c2, 0); in create_ui()
179 lv_canvas_fill_bg(canvas, c2, LV_OPA_COVER); in create_ui()
Dtest_svg.c565 uint32_t c2 = (LV_ARRAY_GET(&svg_node->attrs, 1, lv_svg_attr_t))->value.ival; in testStrokeFillAttrs() local
566 TEST_ASSERT_EQUAL(c2, LV_SVG_LINE_JOIN_BEVEL); in testStrokeFillAttrs()
/lvgl-latest/tests/src/test_cases/widgets/
Dtest_obj_tree.c30 lv_color_t c2 = lv_color_hex3(0x444); in test_obj_tree_2() local
31 TEST_ASSERT_EQUAL_COLOR(c1, c2); in test_obj_tree_2()
/lvgl-latest/docs/details/main-components/
Dcolor.rst117 // Mix two colors with a given ratio 0: full c2, 255: full c1, 128: half c1 and half c2
118 lv_color_t c = lv_color_mix(c1, c2, ratio);
/lvgl-latest/src/draw/sw/blend/
Dlv_draw_sw_blend_to_rgb565.c68 static inline uint16_t /* LV_ATTRIBUTE_FAST_MEM */ lv_color_8_16_mix(const uint8_t c1, uint16_t c2,…
70 …t16_t /* LV_ATTRIBUTE_FAST_MEM */ lv_color_24_16_mix(const uint8_t * c1, uint16_t c2, uint8_t mix);
1099 static inline uint16_t LV_ATTRIBUTE_FAST_MEM lv_color_8_16_mix(const uint8_t c1, uint16_t c2, uint8… in lv_color_8_16_mix() argument
1103 return c2; 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 static inline uint16_t LV_ATTRIBUTE_FAST_MEM lv_color_24_16_mix(const uint8_t * c1, uint16_t c2, ui… in lv_color_24_16_mix() argument
1120 return c2; in lv_color_24_16_mix()
1128 return ((((c1[2] >> 3) * mix + ((c2 >> 11) & 0x1F) * mix_inv) << 3) & 0xF800) + in lv_color_24_16_mix()
[all …]
Dlv_draw_sw_blend_to_al88.c81 static inline bool lv_color16a_eq(lv_color16a_t c1, lv_color16a_t c2);
929 static inline bool lv_color16a_eq(lv_color16a_t c1, lv_color16a_t c2) in lv_color16a_eq() argument
931 return *((uint16_t *)&c1) == *((uint16_t *)&c2); in lv_color16a_eq()
/lvgl-latest/tests/micropy_test/
Dmicropy.py128 c2 = lv.palette_darken(lv.PALETTE.BLUE, 2)
129 c3 = c1.mix(c2, lv.OPA._60)
199 label.set_style_text_color(c2, 0)
291 canvas.fill_bg(c2, lv.OPA.COVER)
/lvgl-latest/docs/
Dbuild.py416 c2 = os.path.exists(temp_path)
431 result = c2 and c3 and c4 and c5 and c6 and c7 and c8 and c9
DCHANGELOG.rst482 - **Optimize lv_color_16_16_mix() when c1 == c2** `5929 <https://github.com/lvgl/lvgl/pull/5929>`__
/lvgl-latest/src/libs/expat/
Dxmltok.c1013 char c2 = *s2++; in streqci() local
1016 if (ASCII_a <= c2 && c2 <= ASCII_z) in streqci()
1021 c2 += ASCII_A - ASCII_a; /* LCOV_EXCL_LINE */ in streqci()
1022 if (c1 != c2) in streqci()
/lvgl-latest/src/draw/sw/
Dlv_draw_sw_transform.c119 int32_t c2 = lv_trigo_sin(angle_high + 90); in lv_draw_sw_transform() local
122 tr_dsc.cosma = (c1 * (10 - angle_rem) + c2 * angle_rem) / 10; in lv_draw_sw_transform()
/lvgl-latest/src/widgets/textarea/
Dlv_textarea.c214 uint32_t c2 = c; in lv_textarea_add_char() local
222 c2 = ((c >> 24) & 0xff) | /*move byte 3 to byte 0*/ in lv_textarea_add_char()
232 uint32_t c_uni = lv_text_encoded_next((const char *)&c2, NULL); in lv_textarea_add_char()
/lvgl-latest/src/libs/lodepng/
Dlodepng.c4759 unsigned char a2, b2 = 0, c2, d2 = 0, a3, b3 = 0, c3, d3 = 0; in unfilterScanline() local
4765 c2 = b2; in unfilterScanline()
4789 d2 = scanline[i + 2] + paethPredictor(a2, b2, c2); in unfilterScanline()
4807 unsigned char a2, b2 = 0, c2, d2 = 0, a3, b3 = 0, c3, d3 = 0; in unfilterScanline() local
4812 c2 = b2; in unfilterScanline()
4830 d2 = scanline[i + 2] + paethPredictor(a2, b2, c2); in unfilterScanline()
4844 unsigned char a2, b2 = 0, c2, d2 = 0, a3, b3 = 0, c3, d3 = 0; in unfilterScanline() local
4848 c2 = b2; in unfilterScanline()
4860 d2 = scanline[i + 2] + paethPredictor(a2, b2, c2); in unfilterScanline()
4871 unsigned char a2, b2 = 0, c2, d2 = 0; in unfilterScanline() local
[all …]
/lvgl-latest/src/libs/tiny_ttf/
Dstb_truetype_htcw.h1429 #define stbtt_tag4(p,c0,c1,c2,c3) ((p)[0] == (c0) && (p)[1] == (c1) && (p)[2] == (c2) && (p)[3] == … argument