Searched refs:alpha (Results 1 – 1 of 1) sorted by relevance
79 static inline uint32_t pixel_blend(uint8_t alpha, uint32_t pix) { in pixel_blend() argument80 if (alpha == 255) return gr_current; in pixel_blend()81 if (alpha == 0) return pix; in pixel_blend()89 uint32_t out_r = (pix_r * (255 - alpha) + cur_r * alpha) / 255; in pixel_blend()90 uint32_t out_g = (pix_g * (255 - alpha) + cur_g * alpha) / 255; in pixel_blend()91 uint32_t out_b = (pix_b * (255 - alpha) + cur_b * alpha) / 255; in pixel_blend()247 uint8_t alpha = static_cast<uint8_t>(((gr_current & alpha_mask) >> 24)); in gr_fill() local248 if (alpha > 0) { in gr_fill()252 *px = pixel_blend(alpha, *px); in gr_fill()