Lines Matching refs:uint32_t
39 static uint32_t gr_current = ~0;
40 static constexpr uint32_t alpha_mask = 0xff000000;
80 static inline uint32_t pixel_blend(uint8_t alpha, uint32_t pix) { in pixel_blend()
83 uint32_t pix_r = pix & 0xff; in pixel_blend()
84 uint32_t pix_g = pix & 0xff00; in pixel_blend()
85 uint32_t pix_b = pix & 0xff0000; in pixel_blend()
86 uint32_t cur_r = gr_current & 0xff; in pixel_blend()
87 uint32_t cur_g = gr_current & 0xff00; in pixel_blend()
88 uint32_t cur_b = gr_current & 0xff0000; 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()
98 static void incr_x(uint32_t** p, int row_pixels) { in incr_x()
111 static void incr_y(uint32_t** p, int row_pixels) { in incr_y()
124 static uint32_t* PixelAt(GRSurface* surface, int x, int y, int row_pixels) { in PixelAt()
127 return reinterpret_cast<uint32_t*>(surface->data()) + y * row_pixels + x; in PixelAt()
129 return reinterpret_cast<uint32_t*>(surface->data()) + x * row_pixels + (surface->width - y); in PixelAt()
131 return reinterpret_cast<uint32_t*>(surface->data()) + (surface->height - 1 - y) * row_pixels + in PixelAt()
134 return reinterpret_cast<uint32_t*>(surface->data()) + (surface->height - 1 - x) * row_pixels + in PixelAt()
142 static void TextBlend(const uint8_t* src_p, int src_row_bytes, uint32_t* dst_p, int dst_row_pixels, in TextBlend()
147 uint32_t* px = dst_p; in TextBlend()
150 if (alpha_current < 255) a = (static_cast<uint32_t>(a) * alpha_current) / 255; in TextBlend()
182 uint32_t* dst_p = PixelAt(gr_draw, x, y, row_pixels); in gr_text()
206 uint32_t* dst_p = PixelAt(gr_draw, x, y, row_pixels); in gr_texticon()
211 uint32_t r32 = r, g32 = g, b32 = b, a32 = a; in gr_color()
226 uint32_t* px = reinterpret_cast<uint32_t*>(gr_draw->data()); in gr_clear()
247 uint32_t* p = PixelAt(gr_draw, x1, y1, row_pixels); in gr_fill()
251 uint32_t* px = p; in gr_fill()
277 const uint32_t* src_py = in gr_blit()
278 reinterpret_cast<const uint32_t*>(source->data()) + sy * source->row_bytes / 4 + sx; in gr_blit()
279 uint32_t* dst_py = PixelAt(gr_draw, dx, dy, row_pixels); in gr_blit()
282 const uint32_t* src_px = src_py; in gr_blit()
283 uint32_t* dst_px = dst_py; in gr_blit()