Home
last modified time | relevance | path

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

/lvgl-3.6.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(max_in >= min_in && x <= min_in) return min_out; in lv_map()
242 if(max_in <= min_in && x >= min_in) return min_out; in lv_map()
252 int32_t delta_out = max_out - min_out; in lv_map()
254 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);