Coverage Report

Created: 2026-12-01 06:38

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
60.9M
#define aaVert  4
33
9.43M
#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
98.2k
               int yMinA, int yMaxA) {
63
98.2k
  xPath = xPathA;
64
98.2k
  eoMask = eo ? 1 : 0xffffffff;
65
98.2k
  yMin = yMinA;
66
98.2k
  yMax = yMaxA;
67
98.2k
  if (xPath->isRect) {
68
17.5k
    rectX0I = splashFloor(xPath->rectX0);
69
17.5k
    rectY0I = splashFloor(xPath->rectY0);
70
17.5k
    rectX1I = splashFloor(xPath->rectX1);
71
17.5k
    rectY1I = splashFloor(xPath->rectY1);
72
17.5k
  }
73
74
98.2k
  pre = &preSeg;
75
98.2k
  post = &postSeg;
76
98.2k
  pre->mx = xPath->xMin - 1;
77
98.2k
  post->mx = xPath->xMax + 1;
78
79
98.2k
  resetDone = gFalse;
80
98.2k
  resetAA = gFalse;
81
98.2k
}
82
83
98.2k
SplashXPathScanner::~SplashXPathScanner() {
84
98.2k
}
85
86
void SplashXPathScanner::insertSegmentBefore(SplashXPathSeg *s,
87
5.59M
               SplashXPathSeg *sNext) {
88
5.59M
  SplashXPathSeg *sPrev;
89
90
5.59M
  sPrev = sNext->prev;
91
5.59M
  sPrev->next = s;
92
5.59M
  s->prev = sPrev;
93
5.59M
  s->next = sNext;
94
5.59M
  sNext->prev = s;
95
5.59M
}
96
97
4.63M
void SplashXPathScanner::removeSegment(SplashXPathSeg *s) {
98
4.63M
  SplashXPathSeg *sPrev, *sNext;
99
100
4.63M
  sPrev = s->prev;
101
4.63M
  sNext = s->next;
102
4.63M
  sPrev->next = sNext;
103
4.63M
  sNext->prev = sPrev;
104
4.63M
  s->prev = s->next = NULL;
105
4.63M
}
106
107
void SplashXPathScanner::moveSegmentAfter(SplashXPathSeg *s,
108
142k
            SplashXPathSeg *sPrev) {
109
142k
  SplashXPathSeg *sNext;
110
111
142k
  s->prev->next = s->next;
112
142k
  s->next->prev = s->prev;
113
114
142k
  sNext = sPrev->next;
115
142k
  sPrev->next = s;
116
142k
  s->prev = sPrev;
117
142k
  s->next = sNext;
118
142k
  sNext->prev = s;
119
142k
}
120
121
62.6k
void SplashXPathScanner::reset(GBool aa, GBool aaChanged) {
122
62.6k
  SplashXPathSeg *seg;
123
62.6k
  SplashCoord y;
124
62.6k
  int i;
125
126
  //--- initialize segment parameters
127
39.9M
  for (i = 0; i < xPath->length; ++i) {
128
39.8M
    seg = &xPath->segs[i];
129
39.8M
    if (aa) {
130
30.9M
      if (aaChanged) {
131
29.4M
  seg->iy = splashFloor(seg->y0 * aaVert);
132
29.4M
      }
133
30.9M
      y = (SplashCoord)(seg->iy + 1) / (SplashCoord)aaVert;
134
30.9M
    } else {
135
8.91M
      if (aaChanged) {
136
5.86M
  seg->iy = splashFloor(seg->y0);
137
5.86M
      }
138
8.91M
      y = (SplashCoord)(seg->iy + 1);
139
8.91M
    }
140
39.8M
    seg->sx0 = seg->x0;
141
39.8M
    if (seg->y1 <= y) {
142
26.8M
      seg->sx1 = seg->x1;
143
26.8M
    } else {
144
13.0M
      seg->sx1 = seg->x0 + (y - seg->y0) * seg->dxdy;
145
13.0M
    }
146
39.8M
    seg->mx = (seg->sx0 <= seg->sx1) ? seg->sx0 : seg->sx1;
147
39.8M
    seg->prev = seg->next = NULL;
148
39.8M
  }
149
150
  //--- sort the inactive segments by iy, mx
151
62.6k
  if (aaChanged) {
152
32.9k
#if HAVE_STD_SORT
153
32.9k
    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
32.9k
  }
159
160
  //--- initialize the active list
161
62.6k
  pre->prev = NULL;
162
62.6k
  pre->next = post;
163
62.6k
  post->prev = pre;
164
62.6k
  post->next = NULL;
165
166
  //--- initialize the scan state
167
62.6k
  nextSeg = 0;
168
62.6k
  if (xPath->length) {
169
61.8k
    yBottomI = xPath->segs[0].iy;
170
61.8k
    if (aa) {
171
44.1k
      yBottomI -= yBottomI % aaVert;
172
44.1k
    }
173
61.8k
  } else {
174
783
    yBottomI = 0;
175
783
  }
176
62.6k
  yTopI = yBottomI - 1;
177
62.6k
  if (aa) {
178
44.9k
    yTop = (SplashCoord)yTopI / (SplashCoord)aaVert;
179
44.9k
    yBottom = (SplashCoord)yBottomI / (SplashCoord)aaVert;
180
44.9k
  } else {
181
17.6k
    yTop = (SplashCoord)yTopI;
182
17.6k
    yBottom = (SplashCoord)yBottomI;
183
17.6k
  }
184
185
62.6k
  resetDone = gTrue;
186
62.6k
  resetAA = aa;
187
62.6k
}
188
189
19.7k
void SplashXPathScanner::skip(int newYBottomI, GBool aa) {
190
19.7k
  SplashXPathSeg *s0, *s1,*s2;
191
19.7k
  int iy;
192
193
19.7k
  yTopI = newYBottomI - 1;
194
19.7k
  yBottomI = newYBottomI;
195
19.7k
  if (aa) {
196
15.1k
    yTop = (SplashCoord)yTopI / (SplashCoord)aaVert;
197
15.1k
    yBottom = (SplashCoord)yBottomI / (SplashCoord)aaVert;
198
15.1k
  } else {
199
4.59k
    yTop = (SplashCoord)yTopI;
200
4.59k
    yBottom = (SplashCoord)yBottomI;
201
4.59k
  }
202
203
  //--- remove finished segments; update sx0, sx1, mx for active segments
204
19.7k
  s0 = pre->next;
205
19.7k
  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
19.7k
  s0 = pre->next;
232
19.7k
  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.59M
  while (nextSeg < xPath->length && xPath->segs[nextSeg].iy <= yTopI) {
249
    // the first inactive segment determines the next scanline to process
250
4.57M
    iy = xPath->segs[nextSeg].iy;
251
4.57M
    s0 = pre->next;
252
16.2M
    do {
253
16.2M
      s1 = &xPath->segs[nextSeg];
254
16.2M
      ++nextSeg;
255
16.2M
      if (s1->y1 < yTop) {
256
15.4M
  continue;
257
15.4M
      }
258
818k
      if (s1->y0 >= yTop) {
259
2.67k
  s1->sx0 = s1->x0;
260
815k
      } else {
261
815k
  s1->sx0 = s1->x0 + (yTop - s1->y0) * s1->dxdy;
262
815k
      }
263
818k
      if (s1->y1 <= yBottom) {
264
11.6k
  s1->sx1 = s1->x1;
265
806k
      } else {
266
806k
  s1->sx1 = s1->x0 + (yBottom - s1->y0) * s1->dxdy;
267
806k
      }
268
818k
      s1->mx = (s1->sx0 <= s1->sx1) ? s1->sx0 : s1->sx1;
269
818k
      insertSegmentBefore(s1, s0);
270
16.2M
    } while (nextSeg < xPath->length && xPath->segs[nextSeg].iy <= iy);
271
4.57M
  }
272
19.7k
}
273
274
164k
void SplashXPathScanner::advance(GBool aa) {
275
164k
  SplashXPathSeg *s, *sNext, *s1;
276
277
164k
  yTopI = yBottomI;
278
164k
  yTop = yBottom;
279
164k
  yBottomI = yTopI + 1;
280
164k
  if (aa) {
281
150k
    yBottom = (SplashCoord)yBottomI / (SplashCoord)aaVert;
282
150k
  } else {
283
13.9k
    yBottom = (SplashCoord)yBottomI;
284
13.9k
  }
285
286
164k
  s = pre->next;
287
8.05M
  while (s != post) {
288
7.89M
    sNext = s->next;
289
290
    // check for a finished segment
291
7.89M
    if (s->y1 < yTop) {
292
4.63M
      removeSegment(s);
293
294
4.63M
    } else {
295
296
      // compute sx0, sx1, mx
297
3.25M
      s->sx0 = s->sx1;
298
3.25M
      if (s->y1 <= yBottom) {
299
12.2k
  s->sx1 = s->x1;
300
3.24M
      } else {
301
3.24M
  s->sx1 = s->x0 + (yBottom - s->y0) * s->dxdy;
302
3.24M
      }
303
3.25M
      s->mx = (s->sx0 <= s->sx1) ? s->sx0 : s->sx1;
304
305
      // check for intersection
306
3.25M
      if (s->mx < s->prev->mx) {
307
39.9M
  for (s1 = s->prev->prev; s->mx < s1->mx; s1 = s1->prev) ;
308
142k
  moveSegmentAfter(s, s1);
309
142k
      }
310
3.25M
    }
311
312
7.89M
    s = sNext;
313
7.89M
  }
314
315
  // insert new segments
316
164k
  s = pre->next;
317
4.94M
  while (nextSeg < xPath->length && xPath->segs[nextSeg].iy <= yTopI) {
318
4.78M
    s1 = &xPath->segs[nextSeg];
319
4.78M
    ++nextSeg;
320
4.81M
    while (s1->mx > s->mx) {
321
35.9k
      s = s->next;
322
35.9k
    }
323
4.78M
    insertSegmentBefore(s1, s);
324
4.78M
  }
325
164k
}
326
327
void SplashXPathScanner::generatePixels(int x0, int x1, Guchar *line,
328
150k
          int *xMin, int *xMax) {
329
150k
  SplashXPathSeg *s;
330
150k
  int fillCount, x, xEnd, ix0, ix1, t;
331
332
150k
  fillCount = 0;
333
150k
  x = x0 * aaHoriz;
334
150k
  xEnd = (x1 + 1) * aaHoriz;
335
2.38M
  for (s = pre->next; s != post && x < xEnd; s = s->next) {
336
2.23M
    ix0 = splashFloor(s->sx0 * aaHoriz);
337
2.23M
    ix1 = splashFloor(s->sx1 * aaHoriz);
338
2.23M
    if (ix0 > ix1) {
339
365k
      t = ix0;  ix0 = ix1;  ix1 = t;
340
365k
    }
341
2.23M
    if (!(fillCount & eoMask)) {
342
363k
      if (ix0 > x) {
343
11.1k
  x = ix0;
344
11.1k
      }
345
363k
    }
346
2.23M
    if (ix1 >= xEnd) {
347
26.7k
      ix1 = xEnd - 1;
348
26.7k
    }
349
2.23M
    if (x / aaHoriz < *xMin) {
350
35.6k
      *xMin = x / aaHoriz;
351
35.6k
    }
352
2.23M
    if (ix1 / aaHoriz > *xMax) {
353
34.9k
      *xMax = ix1 / aaHoriz;
354
34.9k
    }
355
2.36M
    for (; x <= ix1; ++x) {
356
138k
      ++line[x / aaHoriz];
357
138k
    }
358
2.23M
    if (s->y0 <= yTop && s->y1 > yTop) {
359
2.11M
      fillCount += s->count;
360
2.11M
    }
361
2.23M
  }
362
150k
}
363
364
void SplashXPathScanner::generatePixelsBinary(int x0, int x1, Guchar *line,
365
13.9k
                int *xMin, int *xMax) {
366
13.9k
  SplashXPathSeg *s;
367
13.9k
  int fillCount, x, xEnd, ix0, ix1, t;
368
369
13.9k
  fillCount = 0;
370
13.9k
  x = x0;
371
13.9k
  xEnd = x1 + 1;
372
32.6k
  for (s = pre->next; s != post && x < xEnd; s = s->next) {
373
18.7k
    ix0 = splashFloor(s->sx0);
374
18.7k
    ix1 = splashFloor(s->sx1);
375
18.7k
    if (ix0 > ix1) {
376
3.10k
      t = ix0;  ix0 = ix1;  ix1 = t;
377
3.10k
    }
378
18.7k
    if (!(fillCount & eoMask)) {
379
15.9k
      if (ix0 > x) {
380
124
  x = ix0;
381
124
      }
382
15.9k
    }
383
18.7k
    if (ix1 >= xEnd) {
384
834
      ix1 = xEnd - 1;
385
834
    }
386
18.7k
    if (x < *xMin) {
387
13.3k
      *xMin = x;
388
13.3k
    }
389
18.7k
    if (ix1 > *xMax) {
390
13.0k
      *xMax = ix1;
391
13.0k
    }
392
31.6k
    for (; x <= ix1; ++x) {
393
12.9k
      line[x] = 255;
394
12.9k
    }
395
18.7k
    if (s->y0 <= yTop && s->y1 > yTop) {
396
6.30k
      fillCount += s->count;
397
6.30k
    }
398
18.7k
  }
399
13.9k
}
400
401
void SplashXPathScanner::drawRectangleSpan(Guchar *line, int y,
402
             int x0, int x1,
403
7.33k
             int *xMin, int *xMax) {
404
7.33k
  SplashCoord edge;
405
7.33k
  Guchar pix;
406
7.33k
  int xe, x;
407
408
7.33k
  if (rectX0I > x1 || rectX1I < x0) {
409
186
    return;
410
186
  }
411
412
7.15k
  *xMin = x0 <= rectX0I ? rectX0I : x0;
413
7.15k
  *xMax = rectX1I <= x1 ? rectX1I : x1;
414
415
  //--- upper edge
416
7.15k
  if (y == rectY0I) {
417
418
    // handle a rectangle less than one pixel high
419
1.51k
    if (rectY0I == rectY1I) {
420
1.43k
      edge = xPath->rectY1 - xPath->rectY0;
421
1.43k
    } else {
422
76
      edge = (SplashCoord)1 - (xPath->rectY0 - rectY0I);
423
76
    }
424
425
    // upper left corner
426
1.51k
    if (x0 <= rectX0I) {
427
1.37k
      pix = (Guchar)splashCeil(edge
428
1.37k
             * ((SplashCoord)1 - (xPath->rectX0 - rectX0I))
429
1.37k
             * 255);
430
1.37k
      if (pix < 16) {
431
1.29k
  pix = 16;
432
1.29k
      }
433
1.37k
      line[rectX0I] = pix;
434
1.37k
      x = rectX0I + 1;
435
1.37k
    } else {
436
137
      x = x0;
437
137
    }
438
439
    // upper right corner
440
1.51k
    if (rectX1I <= x1) {
441
1.32k
      pix = (Guchar)splashCeil(edge * (xPath->rectX1 - rectX1I) * 255);
442
1.32k
      if (pix < 16) {
443
1.32k
  pix = 16;
444
1.32k
      }
445
1.32k
      line[rectX1I] = pix;
446
1.32k
      xe = rectX1I - 1;
447
1.32k
    } else {
448
187
      xe = x1;
449
187
    }
450
451
    // upper edge
452
1.51k
    pix = (Guchar)splashCeil(edge * 255);
453
1.51k
    if (pix < 16) {
454
1.43k
      pix = 16;
455
1.43k
    }
456
1.64k
    for (; x <= xe; ++x) {
457
136
      line[x] = pix;
458
136
    }
459
460
  //--- lower edge
461
5.63k
  } else if (y == rectY1I) {
462
73
    edge = xPath->rectY1 - rectY1I;
463
464
    // lower left corner
465
73
    if (x0 <= rectX0I) {
466
72
      pix = (Guchar)splashCeil(edge
467
72
             * ((SplashCoord)1 - (xPath->rectX0 - rectX0I))
468
72
             * 255);
469
72
      if (pix < 16) {
470
64
  pix = 16;
471
64
      }
472
72
      line[rectX0I] = pix;
473
72
      x = rectX0I + 1;
474
72
    } else {
475
1
      x = x0;
476
1
    }
477
478
    // lower right corner
479
73
    if (rectX1I <= x1) {
480
66
      pix = (Guchar)splashCeil(edge * (xPath->rectX1 - rectX1I) * 255);
481
66
      if (pix < 16) {
482
66
  pix = 16;
483
66
      }
484
66
      line[rectX1I] = pix;
485
66
      xe = rectX1I - 1;
486
66
    } else {
487
7
      xe = x1;
488
7
    }
489
490
    // lower edge
491
73
    pix = (Guchar)splashCeil(edge * 255);
492
73
    if (pix < 16) {
493
65
      pix = 16;
494
65
    }
495
74
    for (; x <= xe; ++x) {
496
1
      line[x] = pix;
497
1
    }
498
499
  //--- between the upper and lower edges
500
5.56k
  } else if (y > rectY0I && y < rectY1I) {
501
502
    // left edge
503
5.25k
    if (x0 <= rectX0I) {
504
4.43k
      pix = (Guchar)splashCeil(((SplashCoord)1 - (xPath->rectX0 - rectX0I))
505
4.43k
             * 255);
506
4.43k
      if (pix < 16) {
507
1
  pix = 16;
508
1
      }
509
4.43k
      line[rectX0I] = pix;
510
4.43k
      x = rectX0I + 1;
511
4.43k
    } else {
512
823
      x = x0;
513
823
    }
514
515
    // right edge
516
5.25k
    if (rectX1I <= x1) {
517
3.59k
      pix = (Guchar)splashCeil((xPath->rectX1 - rectX1I) * 255);
518
3.59k
      if (pix < 16) {
519
3.41k
  pix = 16;
520
3.41k
      }
521
3.59k
      line[rectX1I] = pix;
522
3.59k
      xe = rectX1I - 1;
523
3.59k
    } else {
524
1.66k
      xe = x1;
525
1.66k
    }
526
527
    // middle
528
6.08k
    for (; x <= xe; ++x) {
529
823
      line[x] = 255;
530
823
    }
531
5.25k
  }
532
7.15k
}
533
534
void SplashXPathScanner::drawRectangleSpanBinary(Guchar *line, int y,
535
             int x0, int x1,
536
3.72k
             int *xMin, int *xMax) {
537
3.72k
  int xe, x;
538
539
3.72k
  if (y >= rectY0I && y <= rectY1I) {
540
3.72k
    if (x0 <= rectX0I) {
541
3.72k
      x = rectX0I;
542
3.72k
    } else {
543
0
      x = x0;
544
0
    }
545
3.72k
    *xMin = x;
546
3.72k
    if (rectX1I <= x1) {
547
3.72k
      xe = rectX1I;
548
3.72k
    } else {
549
0
      xe = x1;
550
0
    }
551
3.72k
    *xMax = xe;
552
7.45k
    for (; x <= xe; ++x) {
553
3.72k
      line[x] = 255;
554
3.72k
    }
555
3.72k
  }
556
3.72k
}
557
558
void SplashXPathScanner::getSpan(Guchar *line, int y, int x0, int x1,
559
44.9k
         int *xMin, int *xMax) {
560
44.9k
  int iy, x, k;
561
562
44.9k
  iy = y * aaVert;
563
44.9k
  if (!resetDone || !resetAA) {
564
25.4k
    reset(gTrue, gTrue);
565
25.4k
  } else if (yBottomI > iy) {
566
19.5k
    reset(gTrue, gFalse);
567
19.5k
  }
568
44.9k
  memset(line + x0, 0, x1 - x0 + 1);
569
570
44.9k
  *xMin = x1 + 1;
571
44.9k
  *xMax = x0 - 1;
572
573
44.9k
  if (xPath->isRect) {
574
7.33k
    drawRectangleSpan(line, y, x0, x1, xMin, xMax);
575
7.33k
    return;
576
7.33k
  }
577
578
37.6k
  if (yBottomI < iy) {
579
15.1k
    skip(iy, gTrue);
580
15.1k
  }
581
188k
  for (k = 0; k < aaVert; ++k, ++iy) {
582
150k
    advance(gTrue);
583
150k
    generatePixels(x0, x1, line, xMin, xMax);
584
150k
  }
585
586
37.6k
#if !ANTIALIAS_256
587
72.1k
  for (x = *xMin; x <= *xMax; ++x) {
588
34.5k
    line[x] = map16to255[line[x]];
589
34.5k
  }
590
37.6k
#endif
591
37.6k
}
592
593
void SplashXPathScanner::getSpanBinary(Guchar *line, int y, int x0, int x1,
594
17.6k
               int *xMin, int *xMax) {
595
17.6k
  int iy;
596
597
17.6k
  iy = y;
598
17.6k
  if (!resetDone || resetAA) {
599
7.50k
    reset(gFalse, gTrue);
600
10.1k
  } else if (yBottomI > iy) {
601
10.1k
    reset(gFalse, gFalse);
602
10.1k
  }
603
17.6k
  memset(line + x0, 0, x1 - x0 + 1);
604
605
17.6k
  *xMin = x1 + 1;
606
17.6k
  *xMax = x0 - 1;
607
608
17.6k
  if (xPath->isRect) {
609
3.72k
    drawRectangleSpanBinary(line, y, x0, x1, xMin, xMax);
610
3.72k
    return;
611
3.72k
  }
612
613
13.9k
  if (yBottomI < iy) {
614
4.59k
    skip(iy, gFalse);
615
4.59k
  }
616
13.9k
  advance(gFalse);
617
13.9k
  generatePixelsBinary(x0, x1, line, xMin, xMax);
618
13.9k
}