Home
last modified time | relevance | path

Searched refs:min_out (Results 1 – 2 of 2) sorted by relevance

/lvgl-3.4.0/src/misc/
Dlv_math.c236 int32_t lv_map(int32_t x, int32_t min_in, int32_t max_in, int32_t min_out, int32_t max_out) in lv_map() argument
239 if(x <= min_in) return min_out; in lv_map()
249 int32_t delta_out = max_out - min_out; in lv_map()
251 return ((x - min_in) * delta_out) / delta_in + min_out; in lv_map()
Dlv_math.h108 int32_t lv_map(int32_t x, int32_t min_in, int32_t max_in, int32_t min_out, int32_t max_out);