Coverage Report

Created: 2026-10-31 06:21

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