/lvgl-latest/scripts/release/ |
D | com.py | 13 r = os.system(c) 14 if r: 15 print("### Error: " + str(r)) 23 s = r'^ *# *define +' + str(name).rstrip() + ' +' 27 r = re.search(s, i) 28 if r: 51 lastNum = re.compile(r'(?:[^\d]*(\d+)[^\d]*)+') 53 r = re.search(r'^#define LVGL_VERSION_MAJOR ', i) 54 if r: 58 r = re.search(r'^#define LVGL_VERSION_MINOR ', i) [all …]
|
/lvgl-latest/src/draw/sw/ |
D | lv_draw_sw_dither.c | 115 #define FS_COMPONENTS(A, OP, B, C) A.ch.red = LV_CLAMP(0, A.ch.red OP B.r OP C.r, 255); A.ch.green … in lv_dither_err_diff_hor() 116 #define FS_QUANT_ERROR(e, t, q) { lv_color32_t u; u.full = lv_color_to32(q); e.r = (int8_t)(t.ch.re… in lv_dither_err_diff_hor() 131 FS_COMPUTE_ERROR(error.r); in lv_dither_err_diff_hor() 132 next_px_err.r = coef[0] >> 4; in lv_dither_err_diff_hor() 133 grad->error_acc[x - 1].r += coef[1] >> 4; in lv_dither_err_diff_hor() 134 grad->error_acc[x].r += coef[2] >> 4; in lv_dither_err_diff_hor() 135 grad->error_acc[x + 1].r = coef[3] >> 4; in lv_dither_err_diff_hor() 176 #define FS_APPLY(d, s, c) d.r = (int8_t)(s.r * c) >> 4; d.g = (int8_t)(s.g * c) >> 4; d.b = (int8_t… in lv_dither_err_diff_ver() 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_line.c | 83 int32_t r = (dsc->width >> 1); in lv_draw_sw_line() local 88 cir_area.x1 = point1->x - r; in lv_draw_sw_line() 89 cir_area.y1 = point1->y - r; in lv_draw_sw_line() 90 cir_area.x2 = point1->x + r - r_corr; in lv_draw_sw_line() 91 cir_area.y2 = point1->y + r - r_corr ; in lv_draw_sw_line() 96 cir_area.x1 = point2->x - r; in lv_draw_sw_line() 97 cir_area.y1 = point2->y - r; in lv_draw_sw_line() 98 cir_area.x2 = point2->x + r - r_corr; in lv_draw_sw_line() 99 cir_area.y2 = point2->y + r - r_corr ; in lv_draw_sw_line()
|
D | lv_draw_sw_gradient.c | 17 #define GRAD_CM(r,g,b) LV_COLOR_MAKE32(r,g,b) argument 20 #define GRAD_CM(r,g,b) LV_COLOR_MAKE(r,g,b) argument 333 lv_grad_color_t r = GRAD_CM(LV_UDIV255(two.ch.red * mix + one.ch.red * imix), in lv_gradient_calculate() local 336 return r; in lv_gradient_calculate()
|
D | lv_draw_sw_dither.h | 33 int8_t r, g, b; member
|
/lvgl-latest/scripts/ |
D | lv_conf_internal_gen.py | 95 …r = re.search(r'^([\s]*)#[\s]*(undef|define)[\s]+([^\s]+).*$', line) # \s means any white space … variable 97 if r: 98 indent = r[1] 100 name = r[3] 107 is_one = re.search(r'#[\s]*define[\s]*[A-Z0-9_]+[\s]+1([\s]*$|[\s]+)', line)
|
/lvgl-latest/examples/scroll/ |
D | lv_example_scroll_6.c | 12 lv_coord_t r = lv_obj_get_height(cont) * 7 / 10; in scroll_event_cb() local 28 if(diff_y >= r) { in scroll_event_cb() 29 x = r; in scroll_event_cb() 33 uint32_t x_sqr = r * r - diff_y * diff_y; in scroll_event_cb() 36 x = r - res.i; in scroll_event_cb() 43 lv_opa_t opa = lv_map(x, 0, r, LV_OPA_TRANSP, LV_OPA_COVER); in scroll_event_cb()
|
D | lv_example_scroll_6.py | 9 r = cont.get_height() * 7 // 10 25 if diff_y >= r: 26 x = r 29 x_sqr = r * r - diff_y * diff_y 32 x = r - res.i 38 opa = lv.map(x, 0, r, lv.OPA.TRANSP, lv.OPA.COVER)
|
/lvgl-latest/src/misc/ |
D | lv_color.c | 157 uint8_t r, g, b; in lv_color_hsv_to_rgb() local 174 r = v; in lv_color_hsv_to_rgb() 179 r = q; in lv_color_hsv_to_rgb() 184 r = p; in lv_color_hsv_to_rgb() 189 r = p; in lv_color_hsv_to_rgb() 194 r = t; in lv_color_hsv_to_rgb() 199 r = v; in lv_color_hsv_to_rgb() 205 lv_color_t result = lv_color_make(r, g, b); in lv_color_hsv_to_rgb() 218 uint16_t r = ((uint32_t)r8 << 10) / 255; in lv_color_rgb_to_hsv() local 222 uint16_t rgbMin = r < g ? (r < b ? r : b) : (g < b ? g : b); in lv_color_rgb_to_hsv() [all …]
|
D | lv_color.h | 594 static inline lv_color_t lv_color_make(uint8_t r, uint8_t g, uint8_t b) in lv_color_make() argument 596 return _LV_COLOR_MAKE_TYPE_HELPER LV_COLOR_MAKE(r, g, b); in lv_color_make() 602 lv_color_t r; in lv_color_hex() local 618 r.full = (uint16_t)(((c & 0xF80000) >> 8) | ((c & 0xFC00) >> 5) | ((c & 0xFF) >> 3)); in lv_color_hex() 621 …r.full = (uint16_t)(((c & 0xF80000) >> 16) | ((c & 0xFC00) >> 13) | ((c & 0x1C00) << 3) | ((c & 0x… in lv_color_hex() 623 return r; in lv_color_hex() 625 lv_color_t r; in lv_color_hex() 626 r.full = c | 0xFF000000; in lv_color_hex() 627 return r; in lv_color_hex()
|
/lvgl-latest/src/extra/widgets/colorwheel/ |
D | lv_colorwheel.c | 249 lv_coord_t r = w / 2; in draw_disc_grad() local 255 line_dsc.width = (r * 628 / (256 / LV_CPICKER_DEF_QF)) / 100; in draw_disc_grad() 289 p[0].x = cx + ((r + cir_w_extra) * lv_trigo_sin(angle_trigo) >> LV_TRIGO_SHIFT); in draw_disc_grad() 290 p[0].y = cy + ((r + cir_w_extra) * lv_trigo_cos(angle_trigo) >> LV_TRIGO_SHIFT); in draw_disc_grad() 291 p[1].x = cx + ((r - cir_w - cir_w_extra) * lv_trigo_sin(angle_trigo) >> LV_TRIGO_SHIFT); in draw_disc_grad() 292 p[1].y = cy + ((r - cir_w - cir_w_extra) * lv_trigo_cos(angle_trigo) >> LV_TRIGO_SHIFT); in draw_disc_grad() 338 uint16_t r = 0; in get_knob_area() local 339 r = lv_obj_get_style_arc_width(obj, LV_PART_MAIN) / 2; in get_knob_area() 347 knob_area.x1 = obj->coords.x1 + colorwheel->knob.pos.x - r - left; in get_knob_area() 348 knob_area.y1 = obj->coords.y1 + colorwheel->knob.pos.y - r - right; in get_knob_area() [all …]
|
/lvgl-latest/src/widgets/ |
D | lv_arc.c | 44 static void get_knob_area(lv_obj_t * arc, const lv_point_t * center, lv_coord_t r, lv_area_t * knob… 440 lv_coord_t r; in lv_arc_event() local 441 get_center(obj, ¢er, &r); in lv_arc_event() 449 r -= indic_width; in lv_arc_event() 453 r -= indic_width; in lv_arc_event() 457 r -= LV_MAX(r / 4, indic_width); in lv_arc_event() 459 if(r < 1) r = 1; in lv_arc_event() 461 if(p.x * p.x + p.y * p.y > r * r) { in lv_arc_event() 487 …const uint32_t circumference = (uint32_t)((2U * r * 314U) / 100U); /* Equivalent to: 2r * 3.14, a… in lv_arc_event() 599 lv_coord_t r; in lv_arc_event() local [all …]
|
D | lv_canvas.c | 224 void lv_canvas_blur_hor(lv_obj_t * obj, const lv_area_t * area, uint16_t r) in lv_canvas_blur_hor() argument 228 if(r == 0) return; in lv_canvas_blur_hor() 249 uint16_t r_back = r / 2; in lv_canvas_blur_hor() 250 uint16_t r_front = r / 2; in lv_canvas_blur_hor() 252 if((r & 0x1) == 0) r_back--; in lv_canvas_blur_hor() 303 c.ch.red = rsum / r; in lv_canvas_blur_hor() 305 uint8_t gtmp = gsum / r; 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() 312 if(has_alpha) opa = asum / r; in lv_canvas_blur_hor() [all …]
|
D | lv_canvas.h | 168 void lv_canvas_blur_hor(lv_obj_t * canvas, const lv_area_t * area, uint16_t r); 176 void lv_canvas_blur_ver(lv_obj_t * canvas, const lv_area_t * area, uint16_t r); 251 void lv_canvas_draw_arc(lv_obj_t * canvas, lv_coord_t x, lv_coord_t y, lv_coord_t r, int32_t start_…
|
/lvgl-latest/examples/event/ |
D | lv_example_event_4.c | 37 int i, r = 150; in event_cb() local 41 lv_coord_t x = 150 + (r * lv_trigo_cos(angle) >> LV_TRIGO_SHIFT), y = in event_cb() 42 150 + (r * lv_trigo_sin(angle) >> LV_TRIGO_SHIFT); in event_cb()
|
/lvgl-latest/tests/ |
D | main.py | 56 r = f[:-2] + "_Runner.c" 57 r = r.replace("/test_cases/", "/test_runners/") 59 f, r, 'config.yml'])
|
/lvgl-latest/src/extra/libs/tiny_ttf/ |
D | stb_truetype_htcw.h | 1246 stbtt__buf r; in stbtt__new_buf() local 1249 r.data = s; in stbtt__new_buf() 1250 r.offset = 0; in stbtt__new_buf() 1252 r.data = (stbtt_uint8 *)p; in stbtt__new_buf() 1254 r.size = (int)size; in stbtt__new_buf() 1255 r.cursor = 0; in stbtt__new_buf() 1256 return r; in stbtt__new_buf() 1264 stbtt__buf r = stbtt__new_buf(NULL, 0); in stbtt__buf_range() local 1265 if(o < 0 || s < 0 || o > b->size || s > b->size - o) return r; in stbtt__buf_range() 1267 r.data = b->data; in stbtt__buf_range() [all …]
|
/lvgl-latest/docs/ |
D | build.py | 20 r = os.system(s) 21 if r != 0:
|
D | conf.py | 192 'passoptionstopackages': r''' 195 'preamble': r'''
|
/lvgl-latest/src/extra/libs/rlottie/ |
D | lv_rlottie.c | 210 … uint16_t r = (uint16_t)(((in & 0xF80000) >> 8) | ((in & 0xFC00) >> 5) | ((in & 0xFF) >> 3)); in convert_to_rgba5658() local 213 …uint16_t r = (uint16_t)(((in & 0xF80000) >> 16) | ((in & 0xFC00) >> 13) | ((in & 0x1C00) << 3) | (… in convert_to_rgba5658() local 216 lv_memcpy(dest, &r, sizeof(r)); in convert_to_rgba5658() 217 dest[sizeof(r)] = (uint8_t)(in >> 24); in convert_to_rgba5658()
|
/lvgl-latest/src/extra/libs/png/ |
D | lodepng.c | 927 size_t r = (p + 2 * width > num) ? num : (p + 2 * width); in bpmnode_sort() local 929 for(k = p; k < r; k++) { in bpmnode_sort() 930 if(i < q && (j >= r || a[i].weight <= a[j].weight)) b[k] = a[i++]; in bpmnode_sort() 2419 unsigned r = 0xffffffffu; in lodepng_crc32() local 2422 r = lodepng_crc32_table[(r ^ data[i]) & 0xffu] ^ (r >> 8u); in lodepng_crc32() 2424 return r ^ 0xffffffffu; in lodepng_crc32() 2744 unsigned char r, unsigned char g, unsigned char b, unsigned char a) { in lodepng_palette_add() argument 2752 info->palette[4 * info->palettesize + 0] = r; in lodepng_palette_add() 3134 static int color_tree_get(ColorTree* tree, unsigned char r, unsigned char g, unsigned char b, unsig… in color_tree_get() argument 3137 … int i = 8 * ((r >> bit) & 1) + 4 * ((g >> bit) & 1) + 2 * ((b >> bit) & 1) + 1 * ((a >> bit) & 1); in color_tree_get() [all …]
|
/lvgl-latest/src/draw/sdl/ |
D | lv_draw_sdl_utils.c | 82 out->r = in->ch.red; in lv_color_to_sdl_color() 89 out->r = color32_t->ch.red; in lv_color_to_sdl_color() 114 palette[i].r = palette[i].g = palette[i].b = 0xFF; in lv_sdl_alloc_palette_for_bpp()
|
D | lv_draw_sdl_stack_blur.c | 81 void lv_stack_blur_grayscale(lv_opa_t * buf, uint16_t w, uint16_t h, uint16_t r) in lv_stack_blur_grayscale() argument 83 stack_blur_job(buf, w, h, r, 1, 0, 1); in lv_stack_blur_grayscale() 84 stack_blur_job(buf, w, h, r, 1, 0, 2); in lv_stack_blur_grayscale()
|
D | lv_draw_sdl_stack_blur.h | 34 void lv_stack_blur_grayscale(lv_opa_t * buf, uint16_t w, uint16_t h, uint16_t r);
|
/lvgl-latest/demos/music/ |
D | lv_demo_music_main.c | 739 int32_t r = (lv_trigo_cos(deg) * a); in get_cos() local 741 r += LV_TRIGO_SIN_MAX / 2; in get_cos() 742 return r >> LV_TRIGO_SHIFT; in get_cos() 747 int32_t r = lv_trigo_sin(deg) * a; in get_sin() local 749 r += LV_TRIGO_SIN_MAX / 2; in get_sin() 750 return r >> LV_TRIGO_SHIFT; in get_sin() 784 uint16_t r[64]; in spectrum_draw_event_cb() local 794 for(i = 0; i < BAR_CNT; i++) r[i] = r_in + min_a; in spectrum_draw_event_cb() 822 r[t] += (ampl_main * ampl_mod) >> 9; in spectrum_draw_event_cb() 835 uint32_t v = (r[k] * animv + r[j] * (amax - animv)) / amax; in spectrum_draw_event_cb()
|