Lines Matching refs:pixel
50 void clearBuffer(Buffer* buf, uint32_t pixel) { in clearBuffer() argument
51 android_memset32(buf->pixels, pixel, buf->s * buf->h * 4); in clearBuffer()
54 void drawTwoPixels(Buffer* buf, uint32_t pixel, ssize_t x, ssize_t y, size_t w) { in drawTwoPixels() argument
58 bits[x] = pixel; in drawTwoPixels()
62 bits[x+W] = pixel; in drawTwoPixels()
67 void drawHLine(Buffer* buf, uint32_t pixel, ssize_t x, ssize_t y, size_t w) { in drawHLine() argument
79 android_memset32(bits, pixel, W*4); in drawHLine()
84 void drawRect(Buffer* buf, uint32_t pixel, ssize_t x, ssize_t y, size_t w, size_t h) { in drawRect() argument
99 android_memset32(bits, pixel, W*4); in drawRect()
105 void drawCircle(Buffer* buf, uint32_t pixel, in drawCircle() argument
113 drawHLine(buf, pixel, x0-radius, y0, 2*radius); in drawCircle()
115 drawTwoPixels(buf, pixel, x0-radius, y0, 2*radius); in drawCircle()
127 drawHLine(buf, pixel, x0-x, y0+y, 2*x); in drawCircle()
128 drawHLine(buf, pixel, x0-x, y0-y, 2*x); in drawCircle()
129 drawHLine(buf, pixel, x0-y, y0+x, 2*y); in drawCircle()
130 drawHLine(buf, pixel, x0-y, y0-x, 2*y); in drawCircle()
132 drawTwoPixels(buf, pixel, x0-x, y0+y, 2*x); in drawCircle()
133 drawTwoPixels(buf, pixel, x0-x, y0-y, 2*x); in drawCircle()
134 drawTwoPixels(buf, pixel, x0-y, y0+x, 2*y); in drawCircle()
135 drawTwoPixels(buf, pixel, x0-y, y0-x, 2*y); in drawCircle()