MCPcopy Create free account
hub / github.com/KLayout/klayout / render_scanline_std

Function render_scanline_std

src/laybasic/laybasic/layBitmapsToImage.cc:36–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34{
35
36static void
37render_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
56static void
57render_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)

Callers 2

bitmaps_to_imageFunction · 0.85
bitmap_to_bitmapFunction · 0.85

Calls 1

scanlineMethod · 0.60

Tested by

no test coverage detected