Branch Coverage

fills.c
Criterion Covered Total %
branch 107 154 69.4


line true false branch
114 16 4 for (ch = 0; ch < MAXCHANNELS; ++ch)
124 232 58 for (ch = 0; ch < MAXCHANNELS; ++ch)
197 5 69 if (fill->destroy)
221 0 1 if (combine) {
226 4 1 for (ch = 0; ch < MAXCHANNELS; ++ch) {
252 17 6 if (combine) {
257 92 23 for (ch = 0; ch < MAXCHANNELS; ++ch) {
440 0 29 assert(fg);
441 0 29 assert(bg);
470 0 2 assert(fg);
471 0 2 assert(bg);
518 8 1 if (combine) {
526 0 9 if (xoff < 0)
529 0 9 if (yoff < 0)
532 1 8 if (matrix) {
574 1 4 if (!base_fill->f_fill_with_color) {
601 729 0 i_adapt_colors(channels > 2 ? 4 : 2, 4, &c, 1);
602 39190 729 while (width-- > 0) {
618 156 0 i_adapt_fcolors(channels > 2 ? 4 : 2, 4, &c, 1);
619 624 156 while (width-- > 0) {
650 29 2 if (fg && bg) {
29 0 if (fg && bg) {
656 2 0 else if (ffg && fbg) {
2 0 else if (ffg && fbg) {
667 3 28 if (combine) {
674 1 30 if (cust_hatch) {
678 30 0 if (hatch >= sizeof(builtin_hatches)/sizeof(*builtin_hatches)
679 0 30 || hatch < 0) {
707 50 133408 if (channels < 3) {
712 456294 133458 while (width-- > 0) {
713 219546 236748 if (byte & mask)
718 40181 416113 if ((mask >>= 1) == 0)
740 10 478 if (channels < 3) {
745 50187 488 while (width-- > 0) {
746 16687 33500 if (byte & mask)
751 6171 44016 if ((mask >>= 1) == 0)
764 62220 15555 for (ch = 0; ch < channels; ++ch)
766 15555 0 if (channels > 3 && out.channel[3]) {
9702 5853 if (channels > 3 && out.channel[3]) {
767 38808 9702 for (ch = 0; ch < channels; ++ch) {
768 29106 9702 if (ch != 3) {
770 6953 22153 if (temp > 255)
788 0 0 for (ch = 0; ch < channels; ++ch)
790 0 0 if (out.channel[3]) {
791 0 0 for (ch = 0; ch < channels; ++ch) {
792 0 0 if (ch != 3) {
794 0 0 if (temp > 1.0)
815 332 40 int want_channels = channels > 2 ? 4 : 2;
817 81 291 if (f->has_matrix) {
819 5185 81 while (i < width) {
828 5185 0 if (f->xoff) {
832 0 0 else if (f->yoff) {
839 10370 5185 for (dy = 0; dy < 2; ++dy) {
840 224 10146 if ((i_img_dim)rx == f->src->xsize-1) {
857 17085 291 while (i < width) {
863 5185 11900 if (f->xoff) {
867 10000 1900 else if (f->yoff) {
878 180 192 if (f->src->channels != want_channels)
892 60 40 int want_channels = channels > 2 ? 4 : 2;
894 0 100 if (f->has_matrix) {
897 0 0 while (i < width) {
906 0 0 if (f->xoff) {
910 0 0 else if (f->yoff) {
917 0 0 for (dy = 0; dy < 2; ++dy) {
918 0 0 if ((i_img_dim)rx == f->src->xsize-1) {
936 1800 100 while (i < width) {
942 0 1800 if (f->xoff) {
946 0 1800 else if (f->yoff) {
957 80 20 if (f->src->channels != want_channels)
965 31 0 int alpha_chan = channels > 2 ? 3 : 1;
969 301 31 while (width--) {
971 0 301 if (new_alpha < 0)
973 0 301 else if (new_alpha > 255)
984 120 0 int alpha_chan = channels > 2 ? 3 : 1;
989 10200 120 while (width--) {
991 0 10200 if (new_alpha < 0)
993 0 10200 else if (new_alpha > 1.0)