Searched refs:rgbMax (Results 1 – 1 of 1) sorted by relevance
202 uint16_t rgbMax = r > g ? (r > b ? r : b) : (g > b ? g : b); in lv_color_rgb_to_hsv() local207 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()