Coverage Report

Created: 2026-07-12 06:50

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/xpdf-4.06/splash/SplashXPathScanner.cc
Line
Count
Source
1
//========================================================================
2
//
3
// SplashXPathScanner.cc
4
//
5
// Copyright 2003-2013 Glyph & Cog, LLC
6
//
7
//========================================================================
8
9
#include <aconf.h>
10
11
#include <stdlib.h>
12
#include <string.h>
13
#if HAVE_STD_SORT
14
#include <algorithm>
15
#endif
16
#include "gmem.h"
17
#include "gmempp.h"
18
#include "GList.h"
19
#include "SplashMath.h"
20
#include "SplashXPath.h"
21
#include "SplashXPathScanner.h"
22
23
//------------------------------------------------------------------------
24
25
#if ANTIALIAS_256
26
27
#define aaVert  15
28
#define aaHoriz 17
29
30
#else
31
32
47.6M
#define aaVert  4
33
10.8M
#define aaHoriz 4
34
35
// 4x4 oversampling tends to generate alpha (coverage) values that are
36
// too high, so we reduce them here. (Yes, this is a kludge.)
37
static Guchar map16to255[17] = {
38
  0,
39
  16 / 2,
40
  32 / 2,
41
  48 / 2,
42
  64 - 32,
43
  80 - 32,
44
  96 - 32,
45
  112 - 32,
46
  128 - 32,
47
  143 - 32,
48
  159 - 32,
49
  175 - 32,
50
  191 - 32,
51
  207 - 32,
52
  223 - 32,
53
  239 - 32,
54
  255
55
};
56
57
#endif
58
59
//------------------------------------------------------------------------
60
61
SplashXPathScanner::SplashXPathScanner(SplashXPath *xPathA, GBool eo,
62
138k
               int yMinA, int yMaxA) {
63
138k
  xPath = xPathA;
64
138k
  eoMask = eo ? 1 : 0xffffffff;
65
138k
  yMin = yMinA;
66
138k
  yMax = yMaxA;
67
138k
  if (xPath->isRect) {
68
18.5k
    rectX0I = splashFloor(xPath->rectX0);
69
18.5k
    rectY0I = splashFloor(xPath->rectY0);
70
18.5k
    rectX1I = splashFloor(xPath->rectX1);
71
18.5k
    rectY1I = splashFloor(xPath->rectY1);
72
18.5k
  }
73
74
138k
  pre = &preSeg;
75
138k
  post = &postSeg;
76
138k
  pre->mx = xPath->xMin - 1;
77
138k
  post->mx = xPath->xMax + 1;
78
79
138k
  resetDone = gFalse;
80
138k
  resetAA = gFalse;
81
138k
}
82
83
138k
SplashXPathScanner::~SplashXPathScanner() {
84
138k
}
85
86
void SplashXPathScanner::insertSegmentBefore(SplashXPathSeg *s,
87
2.93M
               SplashXPathSeg *sNext) {
88
2.93M
  SplashXPathSeg *sPrev;
89
90
2.93M
  sPrev = sNext->prev;
91
2.93M
  sPrev->next = s;
92
2.93M
  s->prev = sPrev;
93
2.93M
  s->next = sNext;
94
2.93M
  sNext->prev = s;
95
2.93M
}
96
97
1.76M
void SplashXPathScanner::removeSegment(SplashXPathSeg *s) {
98
1.76M
  SplashXPathSeg *sPrev, *sNext;
99
100
1.76M
  sPrev = s->prev;
101
1.76M
  sNext = s->next;
102
1.76M
  sPrev->next = sNext;
103
1.76M
  sNext->prev = sPrev;
104
1.76M
  s->prev = s->next = NULL;
105
1.76M
}
106
107
void SplashXPathScanner::moveSegmentAfter(SplashXPathSeg *s,
108
197k
            SplashXPathSeg *sPrev) {
109
197k
  SplashXPathSeg *sNext;
110
111
197k
  s->prev->next = s->next;
112
197k
  s->next->prev = s->prev;
113
114
197k
  sNext = sPrev->next;
115
197k
  sPrev->next = s;
116
197k
  s->prev = sPrev;
117
197k
  s->next = sNext;
118
197k
  sNext->prev = s;
119
197k
}
120
121
99.1k
void SplashXPathScanner::reset(GBool aa, GBool aaChanged) {
122
99.1k
  SplashXPathSeg *seg;
123
99.1k
  SplashCoord y;
124
99.1k
  int i;
125
126
  //--- initialize segment parameters
127
30.9M
  for (i = 0; i < xPath->length; ++i) {
128
30.8M
    seg = &xPath->segs[i];
129
30.8M
    if (aa) {
130
23.6M
      if (aaChanged) {
131
22.7M
  seg->iy = splashFloor(seg->y0 * aaVert);
132
22.7M
      }
133
23.6M
      y = (SplashCoord)(seg->iy + 1) / (SplashCoord)aaVert;
134
23.6M
    } else {
135
7.19M
      if (aaChanged) {
136
5.41M
  seg->iy = splashFloor(seg->y0);
137
5.41M
      }
138
7.19M
      y = (SplashCoord)(seg->iy + 1);
139
7.19M
    }
140
30.8M
    seg->sx0 = seg->x0;
141
30.8M
    if (seg->y1 <= y) {
142
18.2M
      seg->sx1 = seg->x1;
143
18.2M
    } else {
144
12.6M
      seg->sx1 = seg->x0 + (y - seg->y0) * seg->dxdy;
145
12.6M
    }
146
30.8M
    seg->mx = (seg->sx0 <= seg->sx1) ? seg->sx0 : seg->sx1;
147
30.8M
    seg->prev = seg->next = NULL;
148
30.8M
  }
149
150
  //--- sort the inactive segments by iy, mx
151
99.1k
  if (aaChanged) {
152
38.5k
#if HAVE_STD_SORT
153
38.5k
    std::sort(xPath->segs, xPath->segs + xPath->length, &SplashXPathSeg::cmpMX);
154
#else
155
    qsort(xPath->segs, xPath->length, sizeof(SplashXPathSeg),
156
    &SplashXPathSeg::cmpMX);
157
#endif
158
38.5k
  }
159
160
  //--- initialize the active list
161
99.1k
  pre->prev = NULL;
162
99.1k
  pre->next = post;
163
99.1k
  post->prev = pre;
164
99.1k
  post->next = NULL;
165
166
  //--- initialize the scan state
167
99.1k
  nextSeg = 0;
168
99.1k
  if (xPath->length) {
169
96.4k
    yBottomI = xPath->segs[0].iy;
170
96.4k
    if (aa) {
171
90.7k
      yBottomI -= yBottomI % aaVert;
172
90.7k
    }
173
96.4k
  } else {
174
2.65k
    yBottomI = 0;
175
2.65k
  }
176
99.1k
  yTopI = yBottomI - 1;
177
99.1k
  if (aa) {
178
93.4k
    yTop = (SplashCoord)yTopI / (SplashCoord)aaVert;
179
93.4k
    yBottom = (SplashCoord)yBottomI / (SplashCoord)aaVert;
180
93.4k
  } else {
181
5.68k
    yTop = (SplashCoord)yTopI;
182
5.68k
    yBottom = (SplashCoord)yBottomI;
183
5.68k
  }
184
185
99.1k
  resetDone = gTrue;
186
99.1k
  resetAA = aa;
187
99.1k
}
188
189
80.4k
void SplashXPathScanner::skip(int newYBottomI, GBool aa) {
190
80.4k
  SplashXPathSeg *s0, *s1,*s2;
191
80.4k
  int iy;
192
193
80.4k
  yTopI = newYBottomI - 1;
194
80.4k
  yBottomI = newYBottomI;
195
80.4k
  if (aa) {
196
75.0k
    yTop = (SplashCoord)yTopI / (SplashCoord)aaVert;
197
75.0k
    yBottom = (SplashCoord)yBottomI / (SplashCoord)aaVert;
198
75.0k
  } else {
199
5.37k
    yTop = (SplashCoord)yTopI;
200
5.37k
    yBottom = (SplashCoord)yBottomI;
201
5.37k
  }
202
203
  //--- remove finished segments; update sx0, sx1, mx for active segments
204
80.4k
  s0 = pre->next;
205
80.4k
  while (s0 != post) {
206
0
    s1 = s0->next;
207
208
    // check for a finished segment
209
0
    if (s0->y1 < yTop) {
210
0
      removeSegment(s0);
211
212
    // compute sx0, sx1, mx
213
0
    } else {
214
0
      if (s0->y0 >= yTop) {
215
0
  s0->sx0 = s0->x0;
216
0
      } else {
217
0
  s0->sx0 = s0->x0 + (yTop - s0->y0) * s0->dxdy;
218
0
      }
219
0
      if (s0->y1 <= yBottom) {
220
0
  s0->sx1 = s0->x1;
221
0
      } else {
222
0
  s0->sx1 = s0->x0 + (yBottom - s0->y0) * s0->dxdy;
223
0
      }
224
0
      s0->mx = (s0->sx0 <= s0->sx1) ? s0->sx0 : s0->sx1;
225
0
    }
226
227
0
    s0 = s1;
228
0
  }
229
230
  //--- check for intersections
231
80.4k
  s0 = pre->next;
232
80.4k
  if (s0 != post) {
233
0
    s1 = s0->next;
234
0
    while (s1 != post) {
235
0
      if (s1->mx < s0->mx) {
236
0
  for (s2 = s0->prev; s1->mx < s2->mx; s2 = s2->prev) ;
237
0
  moveSegmentAfter(s1, s2);
238
0
      } else {
239
0
  s0 = s1;
240
0
      }
241
0
      s1 = s0->next;
242
0
    }
243
0
  }
244
245
  //--- insert new segments with a merge sort
246
  // - this has to be done one (sub)scanline at a time, because the
247
  //   inactive list is bin-sorted by (sub)scanline
248
4.73M
  while (nextSeg < xPath->length && xPath->segs[nextSeg].iy <= yTopI) {
249
    // the first inactive segment determines the next scanline to process
250
4.65M
    iy = xPath->segs[nextSeg].iy;
251
4.65M
    s0 = pre->next;
252
13.6M
    do {
253
13.6M
      s1 = &xPath->segs[nextSeg];
254
13.6M
      ++nextSeg;
255
13.6M
      if (s1->y1 < yTop) {
256
12.5M
  continue;
257
12.5M
      }
258
1.02M
      if (s1->y0 >= yTop) {
259
908
  s1->sx0 = s1->x0;
260
1.02M
      } else {
261
1.02M
  s1->sx0 = s1->x0 + (yTop - s1->y0) * s1->dxdy;
262
1.02M
      }
263
1.02M
      if (s1->y1 <= yBottom) {
264
8.63k
  s1->sx1 = s1->x1;
265
1.01M
      } else {
266
1.01M
  s1->sx1 = s1->x0 + (yBottom - s1->y0) * s1->dxdy;
267
1.01M
      }
268
1.02M
      s1->mx = (s1->sx0 <= s1->sx1) ? s1->sx0 : s1->sx1;
269
1.02M
      insertSegmentBefore(s1, s0);
270
13.6M
    } while (nextSeg < xPath->length && xPath->segs[nextSeg].iy <= iy);
271
4.65M
  }
272
80.4k
}
273
274
327k
void SplashXPathScanner::advance(GBool aa) {
275
327k
  SplashXPathSeg *s, *sNext, *s1;
276
277
327k
  yTopI = yBottomI;
278
327k
  yTop = yBottom;
279
327k
  yBottomI = yTopI + 1;
280
327k
  if (aa) {
281
322k
    yBottom = (SplashCoord)yBottomI / (SplashCoord)aaVert;
282
322k
  } else {
283
5.68k
    yBottom = (SplashCoord)yBottomI;
284
5.68k
  }
285
286
327k
  s = pre->next;
287
6.13M
  while (s != post) {
288
5.80M
    sNext = s->next;
289
290
    // check for a finished segment
291
5.80M
    if (s->y1 < yTop) {
292
1.76M
      removeSegment(s);
293
294
4.04M
    } else {
295
296
      // compute sx0, sx1, mx
297
4.04M
      s->sx0 = s->sx1;
298
4.04M
      if (s->y1 <= yBottom) {
299
8.46k
  s->sx1 = s->x1;
300
4.03M
      } else {
301
4.03M
  s->sx1 = s->x0 + (yBottom - s->y0) * s->dxdy;
302
4.03M
      }
303
4.04M
      s->mx = (s->sx0 <= s->sx1) ? s->sx0 : s->sx1;
304
305
      // check for intersection
306
4.04M
      if (s->mx < s->prev->mx) {
307
69.1M
  for (s1 = s->prev->prev; s->mx < s1->mx; s1 = s1->prev) ;
308
197k
  moveSegmentAfter(s, s1);
309
197k
      }
310
4.04M
    }
311
312
5.80M
    s = sNext;
313
5.80M
  }
314
315
  // insert new segments
316
327k
  s = pre->next;
317
2.23M
  while (nextSeg < xPath->length && xPath->segs[nextSeg].iy <= yTopI) {
318
1.90M
    s1 = &xPath->segs[nextSeg];
319
1.90M
    ++nextSeg;
320
1.91M
    while (s1->mx > s->mx) {
321
3.20k
      s = s->next;
322
3.20k
    }
323
1.90M
    insertSegmentBefore(s1, s);
324
1.90M
  }
325
327k
}
326
327
void SplashXPathScanner::generatePixels(int x0, int x1, Guchar *line,
328
322k
          int *xMin, int *xMax) {
329
322k
  SplashXPathSeg *s;
330
322k
  int fillCount, x, xEnd, ix0, ix1, t;
331
332
322k
  fillCount = 0;
333
322k
  x = x0 * aaHoriz;
334
322k
  xEnd = (x1 + 1) * aaHoriz;
335
2.73M
  for (s = pre->next; s != post && x < xEnd; s = s->next) {
336
2.41M
    ix0 = splashFloor(s->sx0 * aaHoriz);
337
2.41M
    ix1 = splashFloor(s->sx1 * aaHoriz);
338
2.41M
    if (ix0 > ix1) {
339
435k
      t = ix0;  ix0 = ix1;  ix1 = t;
340
435k
    }
341
2.41M
    if (!(fillCount & eoMask)) {
342
641k
      if (ix0 > x) {
343
23.5k
  x = ix0;
344
23.5k
      }
345
641k
    }
346
2.41M
    if (ix1 >= xEnd) {
347
43.2k
      ix1 = xEnd - 1;
348
43.2k
    }
349
2.41M
    if (x / aaHoriz < *xMin) {
350
75.1k
      *xMin = x / aaHoriz;
351
75.1k
    }
352
2.41M
    if (ix1 / aaHoriz > *xMax) {
353
76.4k
      *xMax = ix1 / aaHoriz;
354
76.4k
    }
355
2.76M
    for (; x <= ix1; ++x) {
356
349k
      ++line[x / aaHoriz];
357
349k
    }
358
2.41M
    if (s->y0 <= yTop && s->y1 > yTop) {
359
2.35M
      fillCount += s->count;
360
2.35M
    }
361
2.41M
  }
362
322k
}
363
364
void SplashXPathScanner::generatePixelsBinary(int x0, int x1, Guchar *line,
365
5.68k
                int *xMin, int *xMax) {
366
5.68k
  SplashXPathSeg *s;
367
5.68k
  int fillCount, x, xEnd, ix0, ix1, t;
368
369
5.68k
  fillCount = 0;
370
5.68k
  x = x0;
371
5.68k
  xEnd = x1 + 1;
372
14.3k
  for (s = pre->next; s != post && x < xEnd; s = s->next) {
373
8.67k
    ix0 = splashFloor(s->sx0);
374
8.67k
    ix1 = splashFloor(s->sx1);
375
8.67k
    if (ix0 > ix1) {
376
1.31k
      t = ix0;  ix0 = ix1;  ix1 = t;
377
1.31k
    }
378
8.67k
    if (!(fillCount & eoMask)) {
379
6.40k
      if (ix0 > x) {
380
2
  x = ix0;
381
2
      }
382
6.40k
    }
383
8.67k
    if (ix1 >= xEnd) {
384
421
      ix1 = xEnd - 1;
385
421
    }
386
8.67k
    if (x < *xMin) {
387
5.63k
      *xMin = x;
388
5.63k
    }
389
8.67k
    if (ix1 > *xMax) {
390
5.52k
      *xMax = ix1;
391
5.52k
    }
392
14.1k
    for (; x <= ix1; ++x) {
393
5.51k
      line[x] = 255;
394
5.51k
    }
395
8.67k
    if (s->y0 <= yTop && s->y1 > yTop) {
396
7.38k
      fillCount += s->count;
397
7.38k
    }
398
8.67k
  }
399
5.68k
}
400
401
void SplashXPathScanner::drawRectangleSpan(Guchar *line, int y,
402
             int x0, int x1,
403
12.8k
             int *xMin, int *xMax) {
404
12.8k
  SplashCoord edge;
405
12.8k
  Guchar pix;
406
12.8k
  int xe, x;
407
408
12.8k
  if (rectX0I > x1 || rectX1I < x0) {
409
191
    return;
410
191
  }
411
412
12.6k
  *xMin = x0 <= rectX0I ? rectX0I : x0;
413
12.6k
  *xMax = rectX1I <= x1 ? rectX1I : x1;
414
415
  //--- upper edge
416
12.6k
  if (y == rectY0I) {
417
418
    // handle a rectangle less than one pixel high
419
2.68k
    if (rectY0I == rectY1I) {
420
2.07k
      edge = xPath->rectY1 - xPath->rectY0;
421
2.07k
    } else {
422
608
      edge = (SplashCoord)1 - (xPath->rectY0 - rectY0I);
423
608
    }
424
425
    // upper left corner
426
2.68k
    if (x0 <= rectX0I) {
427
2.48k
      pix = (Guchar)splashCeil(edge
428
2.48k
             * ((SplashCoord)1 - (xPath->rectX0 - rectX0I))
429
2.48k
             * 255);
430
2.48k
      if (pix < 16) {
431
1.87k
  pix = 16;
432
1.87k
      }
433
2.48k
      line[rectX0I] = pix;
434
2.48k
      x = rectX0I + 1;
435
2.48k
    } else {
436
202
      x = x0;
437
202
    }
438
439
    // upper right corner
440
2.68k
    if (rectX1I <= x1) {
441
2.47k
      pix = (Guchar)splashCeil(edge * (xPath->rectX1 - rectX1I) * 255);
442
2.47k
      if (pix < 16) {
443
2.47k
  pix = 16;
444
2.47k
      }
445
2.47k
      line[rectX1I] = pix;
446
2.47k
      xe = rectX1I - 1;
447
2.47k
    } else {
448
212
      xe = x1;
449
212
    }
450
451
    // upper edge
452
2.68k
    pix = (Guchar)splashCeil(edge * 255);
453
2.68k
    if (pix < 16) {
454
2.07k
      pix = 16;
455
2.07k
    }
456
2.88k
    for (; x <= xe; ++x) {
457
202
      line[x] = pix;
458
202
    }
459
460
  //--- lower edge
461
9.97k
  } else if (y == rectY1I) {
462
94
    edge = xPath->rectY1 - rectY1I;
463
464
    // lower left corner
465
94
    if (x0 <= rectX0I) {
466
94
      pix = (Guchar)splashCeil(edge
467
94
             * ((SplashCoord)1 - (xPath->rectX0 - rectX0I))
468
94
             * 255);
469
94
      if (pix < 16) {
470
91
  pix = 16;
471
91
      }
472
94
      line[rectX0I] = pix;
473
94
      x = rectX0I + 1;
474
94
    } else {
475
0
      x = x0;
476
0
    }
477
478
    // lower right corner
479
94
    if (rectX1I <= x1) {
480
94
      pix = (Guchar)splashCeil(edge * (xPath->rectX1 - rectX1I) * 255);
481
94
      if (pix < 16) {
482
94
  pix = 16;
483
94
      }
484
94
      line[rectX1I] = pix;
485
94
      xe = rectX1I - 1;
486
94
    } else {
487
0
      xe = x1;
488
0
    }
489
490
    // lower edge
491
94
    pix = (Guchar)splashCeil(edge * 255);
492
94
    if (pix < 16) {
493
91
      pix = 16;
494
91
    }
495
94
    for (; x <= xe; ++x) {
496
0
      line[x] = pix;
497
0
    }
498
499
  //--- between the upper and lower edges
500
9.88k
  } else if (y > rectY0I && y < rectY1I) {
501
502
    // left edge
503
9.59k
    if (x0 <= rectX0I) {
504
6.85k
      pix = (Guchar)splashCeil(((SplashCoord)1 - (xPath->rectX0 - rectX0I))
505
6.85k
             * 255);
506
6.85k
      if (pix < 16) {
507
0
  pix = 16;
508
0
      }
509
6.85k
      line[rectX0I] = pix;
510
6.85k
      x = rectX0I + 1;
511
6.85k
    } else {
512
2.74k
      x = x0;
513
2.74k
    }
514
515
    // right edge
516
9.59k
    if (rectX1I <= x1) {
517
5.40k
      pix = (Guchar)splashCeil((xPath->rectX1 - rectX1I) * 255);
518
5.40k
      if (pix < 16) {
519
5.21k
  pix = 16;
520
5.21k
      }
521
5.40k
      line[rectX1I] = pix;
522
5.40k
      xe = rectX1I - 1;
523
5.40k
    } else {
524
4.19k
      xe = x1;
525
4.19k
    }
526
527
    // middle
528
12.2k
    for (; x <= xe; ++x) {
529
2.67k
      line[x] = 255;
530
2.67k
    }
531
9.59k
  }
532
12.6k
}
533
534
void SplashXPathScanner::drawRectangleSpanBinary(Guchar *line, int y,
535
             int x0, int x1,
536
6
             int *xMin, int *xMax) {
537
6
  int xe, x;
538
539
6
  if (y >= rectY0I && y <= rectY1I) {
540
6
    if (x0 <= rectX0I) {
541
6
      x = rectX0I;
542
6
    } else {
543
0
      x = x0;
544
0
    }
545
6
    *xMin = x;
546
6
    if (rectX1I <= x1) {
547
6
      xe = rectX1I;
548
6
    } else {
549
0
      xe = x1;
550
0
    }
551
6
    *xMax = xe;
552
12
    for (; x <= xe; ++x) {
553
6
      line[x] = 255;
554
6
    }
555
6
  }
556
6
}
557
558
void SplashXPathScanner::getSpan(Guchar *line, int y, int x0, int x1,
559
93.4k
         int *xMin, int *xMax) {
560
93.4k
  int iy, x, k;
561
562
93.4k
  iy = y * aaVert;
563
93.4k
  if (!resetDone || !resetAA) {
564
34.4k
    reset(gTrue, gTrue);
565
58.9k
  } else if (yBottomI > iy) {
566
58.9k
    reset(gTrue, gFalse);
567
58.9k
  }
568
93.4k
  memset(line + x0, 0, x1 - x0 + 1);
569
570
93.4k
  *xMin = x1 + 1;
571
93.4k
  *xMax = x0 - 1;
572
573
93.4k
  if (xPath->isRect) {
574
12.8k
    drawRectangleSpan(line, y, x0, x1, xMin, xMax);
575
12.8k
    return;
576
12.8k
  }
577
578
80.5k
  if (yBottomI < iy) {
579
75.0k
    skip(iy, gTrue);
580
75.0k
  }
581
402k
  for (k = 0; k < aaVert; ++k, ++iy) {
582
322k
    advance(gTrue);
583
322k
    generatePixels(x0, x1, line, xMin, xMax);
584
322k
  }
585
586
80.5k
#if !ANTIALIAS_256
587
154k
  for (x = *xMin; x <= *xMax; ++x) {
588
73.8k
    line[x] = map16to255[line[x]];
589
73.8k
  }
590
80.5k
#endif
591
80.5k
}
592
593
void SplashXPathScanner::getSpanBinary(Guchar *line, int y, int x0, int x1,
594
5.68k
               int *xMin, int *xMax) {
595
5.68k
  int iy;
596
597
5.68k
  iy = y;
598
5.68k
  if (!resetDone || resetAA) {
599
4.03k
    reset(gFalse, gTrue);
600
4.03k
  } else if (yBottomI > iy) {
601
1.65k
    reset(gFalse, gFalse);
602
1.65k
  }
603
5.68k
  memset(line + x0, 0, x1 - x0 + 1);
604
605
5.68k
  *xMin = x1 + 1;
606
5.68k
  *xMax = x0 - 1;
607
608
5.68k
  if (xPath->isRect) {
609
6
    drawRectangleSpanBinary(line, y, x0, x1, xMin, xMax);
610
6
    return;
611
6
  }
612
613
5.68k
  if (yBottomI < iy) {
614
5.37k
    skip(iy, gFalse);
615
5.37k
  }
616
5.68k
  advance(gFalse);
617
5.68k
  generatePixelsBinary(x0, x1, line, xMin, xMax);
618
5.68k
}