Home
last modified time | relevance | path

Searched refs:frac (Results 1 – 9 of 9) sorted by relevance

/lvgl-3.7.0/src/draw/sw/
Dlv_draw_sw_gradient.c295 lv_coord_t frac) in lv_gradient_calculate() argument
300 int32_t min = (dsc->stops[0].frac * range) >> 8; in lv_gradient_calculate()
301 if(frac <= min) { in lv_gradient_calculate()
306 int32_t max = (dsc->stops[dsc->stops_count - 1].frac * range) >> 8; in lv_gradient_calculate()
307 if(frac >= max) { in lv_gradient_calculate()
315 int32_t cur = (dsc->stops[i].frac * range) >> 8; in lv_gradient_calculate()
316 if(frac <= cur) { in lv_gradient_calculate()
319 min = (dsc->stops[i - 1].frac * range) >> 8; in lv_gradient_calculate()
320 max = (dsc->stops[i].frac * range) >> 8; in lv_gradient_calculate()
329 frac -= min; in lv_gradient_calculate()
[all …]
Dlv_draw_sw_gradient.h71 lv_coord_t frac);
/lvgl-3.7.0/examples/styles/
Dlv_example_style_2.c22 grad.stops[0].frac = 128; in lv_example_style_2()
23 grad.stops[1].frac = 192; in lv_example_style_2()
/lvgl-3.7.0/src/misc/
Dlv_printf.c357 unsigned long frac = (unsigned long)tmp; in _ftoa() local
358 diff = tmp - frac; in _ftoa()
361 ++frac; in _ftoa()
363 if(frac >= pow10[prec]) { in _ftoa()
364 frac = 0; in _ftoa()
370 else if((frac == 0U) || (frac & 1U)) { in _ftoa()
372 ++frac; in _ftoa()
388 buf[len++] = (char)(48U + (frac % 10U)); in _ftoa()
389 if(!(frac /= 10U)) { in _ftoa()
Dlv_style.h151 uint8_t frac; /**< The stop position in 1/255 unit */ member
/lvgl-3.7.0/src/draw/
Dlv_draw_rect.c43 dsc->bg_grad.stops[1].frac = 0xFF; in lv_draw_rect_dsc_init()
/lvgl-3.7.0/src/core/
Dlv_obj_draw.c71 draw_dsc->bg_grad.stops[0].frac = lv_obj_get_style_bg_main_stop(obj, part); in lv_obj_init_draw_rect_dsc()
72 draw_dsc->bg_grad.stops[1].frac = lv_obj_get_style_bg_grad_stop(obj, part); in lv_obj_init_draw_rect_dsc()
/lvgl-3.7.0/src/draw/sdl/
Dlv_draw_sdl_rect.c961 key.stops[i].frac = grad->stops[i].frac; in rect_grad_frag_key_create()
978 key.stops[i].frac = grad->stops[i].frac; in rect_grad_strip_key_create()
/lvgl-3.7.0/src/draw/nxp/vglite/
Dlv_draw_vglite_rect.c133 stops[i] = dsc->bg_grad.stops[i].frac; in lv_gpu_nxp_vglite_draw_bg()