Searched refs:alpha (Results 1 – 1 of 1) sorted by relevance
80 static inline uint32_t pixel_blend(uint8_t alpha, uint32_t pix) { in pixel_blend() argument81 if (alpha == 255) return gr_current; in pixel_blend()82 if (alpha == 0) return pix; in pixel_blend()90 uint32_t out_r = (pix_r * (255 - alpha) + cur_r * alpha) / 255; in pixel_blend()91 uint32_t out_g = (pix_g * (255 - alpha) + cur_g * alpha) / 255; in pixel_blend()92 uint32_t out_b = (pix_b * (255 - alpha) + cur_b * alpha) / 255; in pixel_blend()248 uint8_t alpha = static_cast<uint8_t>(((gr_current & alpha_mask) >> 24)); in gr_fill() local249 if (alpha > 0) { in gr_fill()253 *px = pixel_blend(alpha, *px); in gr_fill()