Searched refs:LV_UDIV255 (Results 1 – 4 of 4) sorted by relevance
460 LV_COLOR_SET_R(ret, LV_UDIV255((uint16_t)LV_COLOR_GET_R(c1) * mix + LV_COLOR_GET_R(c2) * in lv_color_mix()462 LV_COLOR_SET_G(ret, LV_UDIV255((uint16_t)LV_COLOR_GET_G(c1) * mix + LV_COLOR_GET_G(c2) * in lv_color_mix()464 LV_COLOR_SET_B(ret, LV_UDIV255((uint16_t)LV_COLOR_GET_B(c1) * mix + LV_COLOR_GET_B(c2) * in lv_color_mix()505 …LV_COLOR_SET_R(ret, LV_UDIV255(premult_c1[0] + LV_COLOR_GET_R(c2) * mix + LV_COLOR_MIX_ROUND_OFS)); in lv_color_mix_premult()506 …LV_COLOR_SET_G(ret, LV_UDIV255(premult_c1[1] + LV_COLOR_GET_G(c2) * mix + LV_COLOR_MIX_ROUND_OFS)); in lv_color_mix_premult()507 …LV_COLOR_SET_B(ret, LV_UDIV255(premult_c1[2] + LV_COLOR_GET_B(c2) * mix + LV_COLOR_MIX_ROUND_OFS)); in lv_color_mix_premult()
132 #define LV_UDIV255(x) (((x) * 0x8081U) >> 0x17) macro
335 lv_grad_color_t r = GRAD_CM(LV_UDIV255(two.ch.red * mix + one.ch.red * imix), in lv_gradient_calculate()336 LV_UDIV255(two.ch.green * mix + one.ch.green * imix), in lv_gradient_calculate()337 LV_UDIV255(two.ch.blue * mix + one.ch.blue * imix)); in lv_gradient_calculate()
1526 return LV_UDIV255(mask_act * mask_new);// >> 8); in mask_mix()