line |
true |
false |
branch |
384
|
4 |
0 |
if ( |
385
|
4 |
0 |
data == NULL || out_len == NULL || desc == NULL || |
|
4 |
0 |
data == NULL || out_len == NULL || desc == NULL || |
|
4 |
0 |
data == NULL || out_len == NULL || desc == NULL || |
386
|
4 |
0 |
desc->width == 0 || desc->height == 0 || |
|
4 |
0 |
desc->width == 0 || desc->height == 0 || |
387
|
4 |
0 |
desc->channels < 3 || desc->channels > 4 || |
|
4 |
0 |
desc->channels < 3 || desc->channels > 4 || |
388
|
0 |
4 |
desc->colorspace > 1 || |
400
|
0 |
4 |
if (!bytes) { |
426
|
90000 |
4 |
for (px_pos = 0; px_pos < px_len; px_pos += channels) { |
431
|
0 |
90000 |
if (channels == 4) { |
435
|
80721 |
9279 |
if (px.v == px_prev.v) { |
437
|
80293 |
428 |
if (run == 62 || px_pos == px_end) { |
|
4 |
80289 |
if (run == 62 || px_pos == px_end) { |
445
|
1544 |
7735 |
if (run > 0) { |
452
|
5536 |
3743 |
if (index[index_pos].v == px.v) { |
458
|
3743 |
0 |
if (px.rgba.a == px_prev.rgba.a) { |
466
|
2588 |
1155 |
if ( |
467
|
1005 |
1583 |
vr > -3 && vr < 2 && |
|
660 |
345 |
vr > -3 && vr < 2 && |
468
|
279 |
381 |
vg > -3 && vg < 2 && |
|
279 |
0 |
vg > -3 && vg < 2 && |
469
|
78 |
201 |
vb > -3 && vb < 2 |
473
|
2660 |
1005 |
else if ( |
474
|
1418 |
1242 |
vg_r > -9 && vg_r < 8 && |
|
1412 |
6 |
vg_r > -9 && vg_r < 8 && |
475
|
1389 |
23 |
vg > -33 && vg < 32 && |
|
1362 |
27 |
vg > -33 && vg < 32 && |
476
|
1182 |
180 |
vg_b > -9 && vg_b < 8 |
500
|
32 |
4 |
for (i = 0; i < (int)sizeof(qoi_padding); i++) { |
517
|
4 |
0 |
if ( |
518
|
4 |
0 |
data == NULL || desc == NULL || |
|
0 |
4 |
data == NULL || desc == NULL || |
519
|
0 |
0 |
(channels != 0 && channels != 3 && channels != 4) || |
|
0 |
0 |
(channels != 0 && channels != 3 && channels != 4) || |
|
0 |
4 |
(channels != 0 && channels != 3 && channels != 4) || |
533
|
4 |
0 |
if ( |
534
|
4 |
0 |
desc->width == 0 || desc->height == 0 || |
|
4 |
0 |
desc->width == 0 || desc->height == 0 || |
535
|
4 |
0 |
desc->channels < 3 || desc->channels > 4 || |
|
4 |
0 |
desc->channels < 3 || desc->channels > 4 || |
536
|
4 |
0 |
desc->colorspace > 1 || |
537
|
0 |
4 |
header_magic != QOI_MAGIC || |
543
|
4 |
0 |
if (channels == 0) { |
549
|
0 |
4 |
if (!pixels) { |
560
|
90000 |
4 |
for (px_pos = 0; px_pos < px_len; px_pos += channels) { |
561
|
68619 |
21381 |
if (run > 0) { |
564
|
9789 |
11592 |
else if (p < chunks_len) { |
567
|
2087 |
7702 |
if (b1 == QOI_OP_RGB) { |
572
|
0 |
7702 |
else if (b1 == QOI_OP_RGBA) { |
578
|
4794 |
2908 |
else if ((b1 & QOI_MASK_2) == QOI_OP_INDEX) { |
581
|
78 |
2830 |
else if ((b1 & QOI_MASK_2) == QOI_OP_DIFF) { |
586
|
1109 |
1721 |
else if ((b1 & QOI_MASK_2) == QOI_OP_LUMA) { |
593
|
1721 |
0 |
else if ((b1 & QOI_MASK_2) == QOI_OP_RUN) { |
604
|
0 |
90000 |
if (channels == 4) { |
620
|
0 |
0 |
if (!f) { |
625
|
0 |
0 |
if (!encoded) { |
642
|
0 |
0 |
if (!f) { |
648
|
0 |
0 |
if (size <= 0) { |
655
|
0 |
0 |
if (!data) { |