Searched refs:min_out (Results 1 – 2 of 2) sorted by relevance
236 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() argument239 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()
108 int32_t lv_map(int32_t x, int32_t min_in, int32_t max_in, int32_t min_out, int32_t max_out);