| 34 | { |
| 35 | |
| 36 | static void |
| 37 | render_scanline_std (const uint32_t *dp, unsigned int ds, const lay::Bitmap *pbitmap, unsigned int y, unsigned int w, unsigned int /*h*/, uint32_t *data) |
| 38 | { |
| 39 | const uint32_t *ps = pbitmap->scanline (y); |
| 40 | const uint32_t *dm = dp; |
| 41 | |
| 42 | unsigned int x = w; |
| 43 | while (x >= lay::wordlen) { |
| 44 | *data++ = *ps++ & *dm++; |
| 45 | if (dm == dp + ds) { |
| 46 | dm = dp; |
| 47 | } |
| 48 | x -= lay::wordlen; |
| 49 | } |
| 50 | |
| 51 | if (x > 0) { |
| 52 | *data = *ps & *dm; |
| 53 | } |
| 54 | } |
| 55 | |
| 56 | static void |
| 57 | render_scanline_std_edge (const uint32_t *dp, unsigned int ds, const lay::Bitmap *pbitmap, unsigned int y, unsigned int w, unsigned int h, uint32_t *data) |
no test coverage detected