Home
last modified time | relevance | path

Searched refs:LV_CLAMP (Results 1 – 10 of 10) sorted by relevance

/lvgl-latest/src/draw/sw/
Dlv_draw_sw_dither.c55 lv_color32_t tmp = grad->hmap[LV_CLAMP(0, j - 4, grad->size)]; in lv_dither_ordered_hor()
57 t.ch.red = LV_CLAMP(0, tmp.ch.red + factor, 255); in lv_dither_ordered_hor()
58 t.ch.green = LV_CLAMP(0, tmp.ch.green + factor, 255); in lv_dither_ordered_hor()
59 t.ch.blue = LV_CLAMP(0, tmp.ch.blue + factor, 255); in lv_dither_ordered_hor()
76 lv_color32_t tmp = grad->hmap[LV_CLAMP(0, y - 4, grad->size)]; in lv_dither_ordered_ver()
82 t.ch.red = LV_CLAMP(0, tmp.ch.red + factor, 255); in lv_dither_ordered_ver()
83 t.ch.green = LV_CLAMP(0, tmp.ch.green + factor, 255); in lv_dither_ordered_ver()
84 t.ch.blue = LV_CLAMP(0, tmp.ch.blue + factor, 255); in lv_dither_ordered_ver()
115 …B, C) A.ch.red = LV_CLAMP(0, A.ch.red OP B.r OP C.r, 255); A.ch.green = LV_CLAMP(0, A.ch.green OP … in lv_dither_err_diff_hor()
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()
[all …]
/lvgl-latest/src/draw/sdl/
Dlv_draw_sdl_stack_blur.c151 dst_ptr[0] = LV_CLAMP((sum_r * mul_sum) >> shr_sum, 0, 255); in stack_blur_job()
215 dst_ptr[0] = LV_CLAMP((sum_r * mul_sum) >> shr_sum, 0, 255); in stack_blur_job()
/lvgl-latest/src/misc/
Dlv_math.h129 #define LV_CLAMP(min, val, max) (LV_MAX(min, (LV_MIN(val, max)))) macro
/lvgl-latest/src/extra/widgets/led/
Dlv_led.c92 led->bright = LV_CLAMP(LV_LED_BRIGHT_MIN, bright, LV_LED_BRIGHT_MAX); in lv_led_set_brightness()
/lvgl-latest/src/widgets/
Dlv_bar.c97 value = LV_CLAMP(bar->min_value, value, bar->max_value); in lv_bar_set_value()
114 value = LV_CLAMP(bar->min_value, value, bar->max_value); in lv_bar_set_start_value()
Dlv_slider.c240 new_value = LV_CLAMP(real_min_value, new_value, real_max_value); in lv_slider_event()
Dlv_table.c883 table->row_h[i] = LV_CLAMP(minh, calculated_height, maxh); in refr_size_form_row()
909 table->row_h[row] = LV_CLAMP(minh, calculated_height, maxh); in refr_cell_size()
/lvgl-latest/src/draw/
Dlv_draw_mask.c1142 cir_x_right = LV_CLAMP(0, cir_x_right + i, len); in lv_draw_mask_radius()
1146 cir_x_left = LV_CLAMP(0, cir_x_left - aa_len + 1, len); in lv_draw_mask_radius()
1160 lv_coord_t clr_start = LV_CLAMP(0, cir_x_left + 1, len); in lv_draw_mask_radius()
1161 lv_coord_t clr_len = LV_CLAMP(0, cir_x_right - clr_start, len - clr_start); in lv_draw_mask_radius()
/lvgl-latest/src/core/
Dlv_obj_pos.c974 return LV_CLAMP(min_width, width, max_width); in lv_clamp_width()
981 return LV_CLAMP(min_height, height, max_height); in lv_clamp_height()
/lvgl-latest/src/extra/layouts/flex/
Dlv_flex.c430 … lv_coord_t size_clamp = LV_CLAMP(t->grow_dsc[i].min_size, size, t->grow_dsc[i].max_size); in children_repos()