Searched refs:min_in (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()248 int32_t delta_in = max_in - min_in; 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);