Home
last modified time | relevance | path

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

/lvgl-latest/src/misc/
Dlv_color.c202 uint16_t rgbMax = r > g ? (r > b ? r : b) : (g > b ? g : b); in lv_color_rgb_to_hsv() local
207 hsv.v = (100 * rgbMax) >> 10; in lv_color_rgb_to_hsv()
209 int32_t delta = rgbMax - rgbMin; in lv_color_rgb_to_hsv()
217 hsv.s = 100 * delta / rgbMax; in lv_color_rgb_to_hsv()
225 if(rgbMax == r) in lv_color_rgb_to_hsv()
227 else if(rgbMax == g) in lv_color_rgb_to_hsv()
229 else if(rgbMax == b) in lv_color_rgb_to_hsv()