line |
true |
false |
branch |
53
|
13591 |
301409 |
if (in>255) { return 255; } |
54
|
192224 |
109185 |
else if (in>0) return in; |
81
|
0 |
1 |
if(intensity < 0) return; |
83
|
22500 |
150 |
for(y = 0; y < im->ysize; y++) for(x = 0; x < im->xsize; x++) { |
|
150 |
1 |
for(y = 0; y < im->ysize; y++) for(x = 0; x < im->xsize; x++) { |
86
|
67500 |
22500 |
for(ch = 0; ch < im->channels; ch++) { |
90
|
0 |
67500 |
if(new_color > 255) { |
104
|
2 |
3 |
int invert_channels = all ? im->channels : i_img_color_channels(im); |
109
|
3 |
2 |
#code im->bits <= 8 |
115
|
152 |
3 |
for(y = 0; y < im->ysize; y++) { |
|
2 |
2 |
for(y = 0; y < im->ysize; y++) { |
118
|
22502 |
152 |
for(x = 0; x < im->xsize; x++) { |
|
2 |
2 |
for(x = 0; x < im->xsize; x++) { |
119
|
67507 |
22502 |
for(ch = 0; ch < invert_channels; ch++) { |
|
7 |
2 |
for(ch = 0; ch < invert_channels; ch++) { |
194
|
0 |
1 |
if(amount < 0) return; |
196
|
22500 |
150 |
for(y = 0; y < im->ysize; y++) for(x = 0; x < im->xsize; x++) { |
|
150 |
1 |
for(y = 0; y < im->ysize; y++) for(x = 0; x < im->xsize; x++) { |
199
|
22500 |
0 |
if(type == 0) { |
203
|
67500 |
22500 |
for(ch = 0; ch < im->channels; ch++) { |
206
|
0 |
67500 |
if(type != 0) { |
212
|
17838 |
49662 |
if(new_color < 0) { |
215
|
0 |
67500 |
if(new_color > 255) { |
259
|
0 |
1 |
if(channel >= bump->channels) { |
269
|
1 |
0 |
aX = (light_x > (mx >> 1)) ? light_x : mx - light_x; |
270
|
1 |
0 |
aY = (light_y > (my >> 1)) ? light_y : my - light_y; |
274
|
148 |
1 |
for(y = 1; y < my - 1; y++) { |
275
|
21904 |
148 |
for(x = 1; x < mx - 1; x++) { |
301
|
180 |
21724 |
if(tZ < 0) tZ = 0; |
302
|
0 |
21904 |
if(tZ > 2) tZ = 2; |
304
|
65712 |
21904 |
for(ch = 0; ch < im->channels; ch++) |
439
|
0 |
1 |
if (channel >= bump->channels) { |
444
|
3 |
1 |
for(ch=0; chchannels; ch++) { |
458
|
1 |
0 |
if (Lz < 0) { /* Light specifies a direction vector, reverse it to get the vector from surface to light */ |
472
|
150 |
1 |
for(y = 0; y < im->ysize; y++) { |
473
|
22500 |
150 |
for(x = 0; x < im->xsize; x++) { |
478
|
22200 |
300 |
if (mx
|
|
22050 |
150 |
if (mx
|
|
21756 |
294 |
if (mx
|
|
21609 |
147 |
if (mx
|
495
|
0 |
22500 |
if (Lz>=0) { |
509
|
181 |
22319 |
dp1 = dp1<0 ?0 : dp1; |
510
|
484 |
22016 |
dp2 = pow(dp2<0 ?0 : dp2,n); |
514
|
67500 |
22500 |
for(ch = 0; ch < im->channels; ch++) |
551
|
22500 |
150 |
for(y = 0; y < im->ysize; y++) for(x = 0; x < im->xsize; x++) { |
|
150 |
1 |
for(y = 0; y < im->ysize; y++) for(x = 0; x < im->xsize; x++) { |
554
|
67500 |
22500 |
for(ch = 0; ch < im->channels; ch++) { |
558
|
0 |
67500 |
if(pv < 0) pv = 0; |
559
|
0 |
67500 |
else if(pv > 255) pv = 255; |
591
|
361 |
19 |
for(y = 0; y < im->ysize; y += size) for(x = 0; x < im->xsize; x += size) { |
|
19 |
1 |
for(y = 0; y < im->ysize; y += size) for(x = 0; x < im->xsize; x += size) { |
592
|
92416 |
361 |
for(z = 0; z < 256; z++) col[z] = 0; |
594
|
2888 |
361 |
for(lx = 0; lx < size; lx++) { |
595
|
23104 |
2888 |
for(ly = 0; ly < size; ly++) { |
598
|
69312 |
23104 |
for(ch = 0; ch < im->channels; ch++) { |
604
|
1083 |
361 |
for(ch = 0; ch < im->channels; ch++) |
608
|
2888 |
361 |
for(lx = 0; lx < size; lx++) |
609
|
23104 |
2888 |
for(ly = 0; ly < size; ly++) |
639
|
22500 |
150 |
for(vx=0;vx
|
|
150 |
1 |
for(vx=0;vx
|
644
|
67500 |
22500 |
for(ch=0;chchannels;ch++) |
667
|
0 |
3 |
int adapt_channels = im->channels == 4 ? 2 : 1; |
677
|
768 |
3 |
for (i = 0; i < 256; i++) |
682
|
170 |
3 |
for (y = 0; y < im->ysize; y++) { |
685
|
170 |
0 |
if (im->channels > 2) |
687
|
22700 |
170 |
for (x = 0; x < im->xsize; x++) { |
694
|
768 |
3 |
for(i = 0; i < 256; i++) { |
700
|
768 |
3 |
for (i = 0; i < 256; ++i) { |
701
|
131 |
637 |
if (lower_accum < sum_lum * lsat) |
708
|
768 |
3 |
for(i = 255; i >= 0; i--) { |
709
|
205 |
563 |
if (upper_accum < sum_lum * usat) |
714
|
2 |
1 |
#code im->bits <= 8 |
725
|
512 |
2 |
for (i = 0; i < 256; ++i) { |
727
|
448 |
64 |
lookup[i] = IM_LIMIT(tmp); |
731
|
160 |
2 |
for(y = 0; y < im->ysize; y++) { |
|
10 |
1 |
for(y = 0; y < im->ysize; y++) { |
733
|
67800 |
160 |
for(i = 0; i < color_samples; ++i) { |
|
300 |
10 |
for(i = 0; i < color_samples; ++i) { |
738
|
0 |
300 |
srow[i] = IM_LIMIT(tmp); |
|
0 |
300 |
srow[i] = IM_LIMIT(tmp); |
779
|
256 |
1 |
for(i=0;i<256;i++) rhist[i]=ghist[i]=bhist[i] = 0; |
781
|
22500 |
150 |
for(y = 0; y < im->ysize; y++) for(x = 0; x < im->xsize; x++) { |
|
150 |
1 |
for(y = 0; y < im->ysize; y++) for(x = 0; x < im->xsize; x++) { |
788
|
256 |
1 |
for(i=0;i<256;i++) { |
799
|
256 |
1 |
for(i=0; i<256; i++) { |
800
|
0 |
256 |
rcl += rhist[i]; if ( (rcl
|
801
|
2 |
254 |
rcu += rhist[255-i]; if ( (rcu
|
803
|
0 |
256 |
gcl += ghist[i]; if ( (gcl
|
804
|
2 |
254 |
gcu += ghist[255-i]; if ( (gcu
|
806
|
0 |
256 |
bcl += bhist[i]; if ( (bcl
|
807
|
2 |
254 |
bcu += bhist[255-i]; if ( (bcu
|
810
|
22500 |
150 |
for(y = 0; y < im->ysize; y++) for(x = 0; x < im->xsize; x++) { |
|
150 |
1 |
for(y = 0; y < im->ysize; y++) for(x = 0; x < im->xsize; x++) { |
925
|
225000 |
45000 |
for(i=0;i
|
958
|
22500 |
150 |
for(y = 0; y < im->ysize; y++) for(x = 0; x < im->xsize; x++) { |
|
150 |
1 |
for(y = 0; y < im->ysize; y++) for(x = 0; x < im->xsize; x++) { |
965
|
67500 |
22500 |
for(ch=0; chchannels; ch++) val.channel[ch]=v; |
991
|
22500 |
150 |
for(y = 0; y < im->ysize; y++) for(x = 0; x < im->xsize; x++) { |
|
150 |
1 |
for(y = 0; y < im->ysize; y++) for(x = 0; x < im->xsize; x++) { |
994
|
67500 |
22500 |
for(ch=0; chchannels; ch++) val.channel[ch] = v; |
1036
|
3 |
1 |
for(p = 0; p
|
1050
|
0 |
1 |
if (bytes / num != sizeof(double)) { |
1056
|
22500 |
150 |
for(y = 0; y
|
|
150 |
1 |
for(y = 0; y
|
1059
|
67500 |
22500 |
for(p = 0; p
|
1080
|
67500 |
22500 |
for(p = 0; p
|
1082
|
67500 |
22500 |
for(ch = 0; ch
|
1084
|
202500 |
67500 |
for(p = 0; p
|
1104
|
3 |
1 |
for(p = 0; p
|
1109
|
22500 |
150 |
for(y = 0; y
|
|
150 |
1 |
for(y = 0; y
|
1131
|
45000 |
22500 |
for(p = 1; p
|
1147
|
23182 |
21818 |
if (curdist < mindist) { |
1241
|
0 |
1 |
if (num <= 0) { |
1246
|
1 |
0 |
if (dmeasure < 0 || dmeasure > i_dmeasure_limit) { |
|
0 |
1 |
if (dmeasure < 0 || dmeasure > i_dmeasure_limit) { |
1252
|
0 |
1 |
if (tval_bytes / num != sizeof(float) * im->channels) { |
1257
|
0 |
1 |
if (ival_bytes / sizeof(i_color) != num) { |
1265
|
3 |
1 |
for(p = 0; p
|
1266
|
9 |
3 |
for(ch = 0; chchannels; ch++) tval[ p * im->channels + ch] = 0; |
1271
|
22500 |
150 |
for(y = 0; y
|
|
150 |
1 |
for(y = 0; y
|
1293
|
45000 |
22500 |
for(p = 1; p
|
1309
|
23182 |
21818 |
if (curdist < mindist) { |
1320
|
67500 |
22500 |
for(ch = 0; chchannels; ch++) |
1326
|
3 |
1 |
for(p = 0; p
|
1327
|
9 |
3 |
for(ch = 0; chchannels; ch++) |
1331
|
3 |
3 |
while (ch < MAXCHANNELS) |
1359
|
0 |
1 |
if (scale < 0) |
1362
|
0 |
1 |
if (scale > 100) |
1367
|
1 |
0 |
if (im->bits == i_8_bits) { |
1371
|
150 |
1 |
for (y = 0; y < im->ysize; ++y) { |
1374
|
22500 |
150 |
for (x = 0; x < im->xsize; ++x) { |
1375
|
67500 |
22500 |
for (ch = 0; ch < im->channels; ++ch) { |
1379
|
4602 |
62898 |
if (temp < 0) |
1381
|
3167 |
59731 |
else if (temp > 255) |
1396
|
0 |
0 |
for (y = 0; y < im->ysize; ++y) { |
1399
|
0 |
0 |
for (x = 0; x < im->xsize; ++x) { |
1400
|
0 |
0 |
for (ch = 0; ch < im->channels; ++ch) { |
1403
|
0 |
0 |
if (temp < 0) |
1405
|
0 |
0 |
else if (temp > 1.0) |
1438
|
0 |
5 |
if (im1->channels != im2->channels) { |
1444
|
5 |
0 |
if (outchans == 1 || outchans == 3) |
|
5 |
0 |
if (outchans == 1 || outchans == 3) |
1452
|
3 |
2 |
if (im1->bits == i_8_bits && im2->bits == i_8_bits) { |
|
3 |
0 |
if (im1->bits == i_8_bits && im2->bits == i_8_bits) { |
1460
|
12 |
3 |
for (ch = 0; ch < MAXCHANNELS; ++ch) |
1463
|
154 |
3 |
for (y = 0; y < ysize; ++y) { |
1466
|
154 |
0 |
if (outchans != diffchans) { |
1468
|
22512 |
154 |
for (x = 0; x < xsize; ++x) |
1471
|
22512 |
154 |
for (x = 0; x < xsize; ++x) { |
1473
|
66651 |
22068 |
for (ch = 0; ch < diffchans; ++ch) { |
1474
|
445 |
66206 |
if (line1[x].channel[ch] != line2[x].channel[ch] |
1475
|
444 |
1 |
&& abs(line1[x].channel[ch] - line2[x].channel[ch]) > imindist) { |
1480
|
22068 |
444 |
if (!diff) |
1496
|
8 |
2 |
for (ch = 0; ch < MAXCHANNELS; ++ch) |
1499
|
4 |
2 |
for (y = 0; y < ysize; ++y) { |
1502
|
4 |
0 |
if (outchans != diffchans) { |
1504
|
12 |
4 |
for (x = 0; x < xsize; ++x) |
1507
|
12 |
4 |
for (x = 0; x < xsize; ++x) { |
1509
|
33 |
9 |
for (ch = 0; ch < diffchans; ++ch) { |
1510
|
4 |
29 |
if (line1[x].channel[ch] != line2[x].channel[ch] |
1511
|
3 |
1 |
&& fabs(line1[x].channel[ch] - line2[x].channel[ch]) > dist) { |
1516
|
9 |
3 |
if (!diff) |
1546
|
0 |
1 |
if (im1->channels != im2->channels) { |
1552
|
1 |
0 |
if (outchans == 2 || outchans == 4) |
|
1 |
0 |
if (outchans == 2 || outchans == 4) |
1560
|
1 |
0 |
#code im1->bits == i_8_bits && im2->bits == i_8_bits |
|
1 |
0 |
#code im1->bits == i_8_bits && im2->bits == i_8_bits |
1566
|
2 |
1 |
for (y = 0; y < ysize; ++y) { |
|
0 |
0 |
for (y = 0; y < ysize; ++y) { |
1569
|
6 |
2 |
for (x = 0; x < xsize; ++x) { |
|
0 |
0 |
for (x = 0; x < xsize; ++x) { |
1570
|
18 |
6 |
for (ch = 0; ch < outchans; ++ch) { |
|
0 |
0 |
for (ch = 0; ch < outchans; ++ch) { |
1819
|
0 |
9 |
if (line_bytes / sizeof(i_fcolor) != im->xsize) { |
1827
|
2 |
7 |
if (combinef_func) { |
1834
|
1100 |
9 |
for (y = 0; y < im->ysize; ++y) { |
1836
|
145000 |
1100 |
for (x = 0; x < im->xsize; ++x) { |
1839
|
77500 |
67500 |
if (super_sample == i_fts_none) |
1843
|
145000 |
0 |
if (got_one) { |
1844
|
45000 |
100000 |
if (combinef_func) |
1850
|
300 |
800 |
if (combinef_func) |
1904
|
0 |
5 |
if (combine) |
1942
|
17 |
14 |
for (i = 0; i < count; ++i) { |
1946
|
1 |
16 |
if (seg->type < 0 || seg->type >= i_fst_end) |
1948
|
0 |
17 |
if (seg->color < 0 || seg->color >= i_fc_end) |
1950
|
15 |
2 |
if (seg->color == i_fc_hue_up || seg->color == i_fc_hue_down) { |
|
1 |
14 |
if (seg->color == i_fc_hue_up || seg->color == i_fc_hue_down) { |
1952
|
6 |
3 |
for (j = 0; j < 2; ++j) { |
1955
|
2 |
1 |
if (seg->color == i_fc_hue_up) { |
1956
|
2 |
0 |
if (seg->c[1].channel[0] <= seg->c[0].channel[0]) |
1960
|
1 |
0 |
if (seg->c[0].channel[0] <= seg->c[0].channel[1]) |
2011
|
14 |
0 |
if (super_sample < 0 |
2012
|
0 |
14 |
|| super_sample >= (int)(sizeof(fount_ssamples)/sizeof(*fount_ssamples))) { |
2019
|
0 |
2 |
if (ssample_param > 1000) { |
2028
|
0 |
1 |
if (ssample_param > 1000) { |
2037
|
0 |
14 |
if (repeat < 0 || repeat >= (sizeof(fount_repeats)/sizeof(*fount_repeats))) |
2046
|
3 |
11 |
if (state->ssample_data) |
2071
|
736658 |
0 |
while (i < state->count |
2072
|
0 |
736658 |
&& (v < state->segs[i].start || v > state->segs[i].end)) { |
|
101241 |
635417 |
&& (v < state->segs[i].start || v > state->segs[i].end)) { |
2075
|
635417 |
0 |
if (i < state->count) { |
2144
|
44902 |
45098 |
return (xt > yt ? xt : yt) * state->mult; |
2159
|
2500 |
7500 |
if (angle < 0) { |
2178
|
0 |
0 |
if (angle < -PI) |
2180
|
0 |
0 |
else if (angle > PI) |
2196
|
380737 |
254680 |
if (pos < seg->middle) { |
2198
|
0 |
380737 |
if (len < EPSILON) |
2205
|
0 |
254680 |
if (len < EPSILON) |
2268
|
2376212 |
594053 |
for (ch = 0; ch < MAXCHANNELS; ++ch) { |
2285
|
120756 |
30189 |
for (ch = 0; ch < MAXCHANNELS; ++ch) { |
2303
|
44700 |
11175 |
for (ch = 0; ch < MAXCHANNELS; ++ch) { |
2327
|
90000 |
45000 |
for (dx = 0; dx < grid; ++dx) { |
2328
|
180000 |
90000 |
for (dy = 0; dy < grid; ++dy) { |
2329
|
180000 |
0 |
if (fount_getat(work+samp_count, x + base + step * dx, |
2335
|
180000 |
45000 |
for (ch = 0; ch < MAXCHANNELS; ++ch) { |
2337
|
720000 |
180000 |
for (i = 0; i < samp_count; ++i) { |
2362
|
0 |
0 |
for (i = 0; i < maxsamples; ++i) { |
2363
|
0 |
0 |
if (fount_getat(work+samp_count, x - 0.5 + rand() * rand_scale, |
2368
|
0 |
0 |
for (ch = 0; ch < MAXCHANNELS; ++ch) { |
2370
|
0 |
0 |
for (i = 0; i < samp_count; ++i) { |
2400
|
360000 |
22500 |
for (i = 0; i < maxsamples; ++i) { |
2401
|
360000 |
0 |
if (fount_getat(work+samp_count, x + radius * cos(angle * i), |
2406
|
90000 |
22500 |
for (ch = 0; ch < MAXCHANNELS; ++ch) { |
2408
|
1440000 |
90000 |
for (i = 0; i < samp_count; ++i) { |
2427
|
46335 |
219082 |
return v < 0 ? 0 : v > 1 ? 1 : v; |
|
38789 |
180293 |
return v < 0 ? 0 : v > 1 ? 1 : v; |
2440
|
0 |
10000 |
return v < 0 ? 0 : fmod(v, 1.0); |
2453
|
179064 |
180936 |
if (v < 0) |
2457
|
67602 |
113334 |
return v > 1.0 ? 2.0 - v : v; |
2472
|
0 |
0 |
if (v < 0) |
2489
|
0 |
0 |
return v > 1.0 ? 2.0 - v : v; |
2504
|
17917 |
292 |
while (width--) { |
2508
|
0 |
17917 |
if (f->state.ssfunc) |
2513
|
17917 |
0 |
if (got_one) |