Searched refs:rgbMax (Results 1 – 1 of 1) sorted by relevance
223 uint16_t rgbMax = r > g ? (r > b ? r : b) : (g > b ? g : b); in lv_color_rgb_to_hsv() local228 hsv.v = (100 * rgbMax) >> 10; in lv_color_rgb_to_hsv()230 int32_t delta = rgbMax - rgbMin; in lv_color_rgb_to_hsv()238 hsv.s = 100 * delta / rgbMax; in lv_color_rgb_to_hsv()246 if(rgbMax == r) in lv_color_rgb_to_hsv()248 else if(rgbMax == g) in lv_color_rgb_to_hsv()250 else if(rgbMax == b) in lv_color_rgb_to_hsv()