| line |
!l |
l&&!r |
l&&r |
condition |
|
646
|
32 |
36 |
55 |
not defined $combine and ref $self |
|
665
|
68 |
0 |
8605 |
$self->{'IMG'} and builtin::blessed($self->{'IMG'}) |
|
1119
|
1 |
0 |
13 |
@_ != 1 and not ref $_[0] |
|
1341
|
0 |
42 |
12 |
$bits and $bits == 64 |
|
1422
|
8 |
0 |
24 |
$value =~ /$int_re/ and $value >= '-2147483648' |
|
|
8 |
3 |
21 |
$value =~ /$int_re/ and $value >= '-2147483648' and $value <= 2147483647 |
|
1443
|
0 |
0 |
2 |
$value =~ /$int_re/ and $value >= '-2147483648' |
|
|
0 |
0 |
2 |
$value =~ /$int_re/ and $value >= '-2147483648' and $value <= 2147483647 |
|
1611
|
6 |
0 |
4 |
$input->{'maxbuffer'} and $input->{'maxbuffer'} == 1 |
|
1671
|
85 |
132 |
1 |
$input{'file'} and not $type |
|
1685
|
216 |
0 |
0 |
$readers{$type} and $readers{$type}{'single'} |
|
1727
|
0 |
0 |
18 |
$input{'xsize'} and $input{'ysize'} |
|
1874
|
0 |
1 |
2 |
not $loaded and $error =~ /^Can't locate / |
|
1898
|
0 |
1 |
2 |
not $loaded and $error =~ /^Can't locate / |
|
1952
|
0 |
0 |
0 |
$warn_obsolete and $^W |
|
2028
|
76 |
0 |
95 |
not $type and $input{'file'} |
|
2039
|
171 |
0 |
0 |
$writers{$type} and $writers{$type}{'single'} |
|
2111
|
3 |
0 |
0 |
not $type and $opts->{'file'} |
|
2121
|
1 |
0 |
3 |
ref $img and builtin::blessed($img) |
|
|
1 |
1 |
2 |
ref $img and builtin::blessed($img) and $img->isa("Imager") |
|
2138
|
0 |
0 |
0 |
$writers{$type} and $writers{$type}{'multiple'} |
|
2193
|
1 |
1 |
1 |
$opts{'file'} and not $type |
|
2207
|
1 |
0 |
0 |
$readers{$type} and $readers{$type}{'multiple'} |
|
2276
|
28 |
0 |
12 |
defined $input{$name} and exists $names->{$name}{$input{$name}} |
|
2343
|
289 |
71 |
1 |
defined $opts{$name} and ref $opts{$name} |
|
2357
|
1 |
0 |
1 |
defined $width and defined $height |
|
2363
|
48 |
3 |
8 |
$opts{'xscalefactor'} and $opts{'yscalefactor'} |
|
2380
|
34 |
6 |
19 |
$opts{'xpixels'} and $opts{'ypixels'} |
|
|
6 |
0 |
19 |
$opts{'xpixels'} and $opts{'ypixels'} and $opts{'type'} |
|
|
31 |
0 |
0 |
$opts{'constrain'} and ref $opts{'constrain'} |
|
|
31 |
0 |
0 |
$opts{'constrain'} and ref $opts{'constrain'} and $opts{'constrain'}->can("constrain") |
|
2576
|
0 |
0 |
0 |
$opts{'xexpr'} and $opts{'yexpr'} |
|
2713
|
0 |
0 |
28 |
$channels >= 1 and $channels <= 4 |
|
2737
|
0 |
1 |
20 |
$opts{'src'} and $opts{'src'}->_valid_image("rubthrough") |
|
2807
|
4 |
52 |
0 |
not defined $width and defined $opts{'src_maxx'} |
|
2813
|
4 |
52 |
0 |
not defined $height and defined $opts{'src_maxy'} |
|
2862
|
0 |
0 |
143 |
defined $opts{'dir'} and defined $xlate{$opts{'dir'}} |
|
3096
|
1 |
0 |
1 |
$opts{'d1'} == 0 and $opts{'d2'} == 361 |
|
3111
|
24 |
1 |
8 |
$opts{'d1'} == 0 and $opts{'d2'} == 361 |
|
|
25 |
0 |
8 |
$opts{'d1'} == 0 and $opts{'d2'} == 361 and $opts{'aa'} |
|
3154
|
47 |
2 |
13 |
$opts{'d1'} == 0 and $opts{'d2'} == 361 |
|
3185
|
0 |
0 |
211 |
exists $opts{'x1'} and exists $opts{'y1'} |
|
3186
|
0 |
0 |
211 |
exists $opts{'x2'} and exists $opts{'y2'} |
|
3218
|
1 |
0 |
4 |
not exists $opts{'points'} and exists $opts{'x'} |
|
|
0 |
0 |
4 |
not exists $opts{'points'} and exists $opts{'x'} and exists $opts{'y'} |
|
3262
|
0 |
0 |
10 |
exists $opts{'x'} and exists $opts{'y'} |
|
3377
|
0 |
0 |
0 |
@{$opts{'x'};} and @{$opts{'x'};} == @{$opts{'y'};} |
|
3399
|
0 |
0 |
89 |
exists $opts{'x'} and exists $opts{'y'} |
|
3481
|
49 |
35 |
43 |
ref $color and UNIVERSAL::isa($color, "Imager::Color") |
|
3488
|
1 |
1 |
124 |
exists $opts{'x'} and exists $opts{'y'} |
|
3553
|
1 |
1 |
236 |
exists $opts{'x'} and exists $opts{'y'} |
|
3661
|
151 |
0 |
49 |
ref $opts{'pixels'} and @{$opts{'pixels'};} |
|
4036
|
0 |
0 |
5 |
$opts{'maps'} and $self->{'IMG'} |
|
4214
|
0 |
0 |
3 |
defined $max_colors and $max_colors > 0 |
|
4247
|
0 |
0 |
5 |
defined $max_colors and $max_colors > 0 |
|
4357
|
1 |
9 |
1 |
$opts{'sample_size'} and $opts{'sample_size'} eq "float" |
|
4452
|
113 |
2 |
0 |
not defined $type and $ext =~ /\A[a-zA-Z0-9_]{2,}\z/ |
| line |
l |
!l&&r |
!l&&!r |
condition |
|
619
|
479 |
42 |
139 |
UNIVERSAL::isa($arg, "Imager::Color") or UNIVERSAL::isa($arg, "Imager::Color::Float") |
|
699
|
5 |
1 |
1272 |
defined $hsh{'file'} or defined $hsh{'fh'} |
|
|
6 |
0 |
1272 |
defined $hsh{'file'} or defined $hsh{'fh'} or defined $hsh{'fd'} |
|
|
1 |
0 |
1272 |
defined $hsh{'file'} or defined $hsh{'fh'} or defined $hsh{'fd'} or defined $hsh{'callback'} |
|
|
0 |
0 |
1272 |
defined $hsh{'file'} or defined $hsh{'fh'} or defined $hsh{'fd'} or defined $hsh{'callback'} or defined $hsh{'readcb'} |
|
|
0 |
8 |
1264 |
defined $hsh{'file'} or defined $hsh{'fh'} or defined $hsh{'fd'} or defined $hsh{'callback'} or defined $hsh{'readcb'} or defined $hsh{'data'} |
|
|
8 |
0 |
1264 |
defined $hsh{'file'} or defined $hsh{'fh'} or defined $hsh{'fd'} or defined $hsh{'callback'} or defined $hsh{'readcb'} or defined $hsh{'data'} or defined $hsh{'io'} |
|
|
552 |
0 |
712 |
defined $hsh{'xsize'} or defined $hsh{'ysize'} |
|
762
|
1 |
26 |
1 |
$input{'img'} || $input{'src'} |
|
812
|
0 |
0 |
26 |
$src_right <= $src_left or $src_bottom < $src_top |
|
902
|
1 |
1 |
44 |
$l == $r or $t == $b |
|
906
|
1 |
1 |
42 |
$r < $l or $b < $t |
|
925
|
6 |
9 |
0 |
delete $hsh{'colors'} || $empty_trim_colors |
|
1003
|
42 |
0 |
0 |
$opts{'xsize'} || $self->getwidth |
|
1004
|
42 |
0 |
0 |
$opts{'ysize'} || $self->getheight |
|
1005
|
0 |
42 |
0 |
$opts{'channels'} || $self->getchannels |
|
1050
|
24 |
1 |
527 |
$hsh{'type'} eq "paletted" or $hsh{'type'} eq "pseudo" |
|
1283
|
5 |
0 |
9 |
exists $opts{'start'} || exists $opts{'count'} |
|
1530
|
8 |
0 |
0 |
$input->{'callback'} or $input->{'readcb'} |
|
1563
|
0 |
0 |
0 |
$input->{'callback'} || $input->{'readcb'} |
|
1568
|
8 |
0 |
0 |
$input->{'callback'} || $input->{'readcb'} |
|
1584
|
2 |
0 |
8 |
$input->{'callback'} or $input->{'writecb'} |
|
1616
|
2 |
8 |
0 |
$input->{'callback'} || $input->{'writecb'} |
|
1766
|
3 |
0 |
0 |
defined $opts{'single'} or defined $opts{'multiple'} |
|
1788
|
3 |
0 |
0 |
defined $opts{'single'} or defined $opts{'multiple'} |
|
1866
|
214 |
0 |
3 |
$formats_low{$type} or $readers{$type} |
|
1890
|
168 |
0 |
3 |
$formats_low{$type} or $writers{$type} |
|
2369
|
0 |
3 |
0 |
$opts{'scalefactor'} || $x_scale |
|
2373
|
0 |
3 |
0 |
$opts{'scalefactor'} || $y_scale |
|
2383
|
6 |
0 |
1 |
$opts{'type'} eq "nonprop" or $opts{'type'} eq "non-proportional" |
|
2614
|
0 |
0 |
0 |
not exists $opts{'xopcodes'} or @{$opts{'xopcodes'};} == 0 |
|
2621
|
0 |
0 |
0 |
defined $OPCODES{$iop} or $iop =~ /^\d+$/ |
|
2631
|
0 |
0 |
0 |
not exists $opts{'yopcodes'} or @{$opts{'yopcodes'};} == 0 |
|
2638
|
0 |
0 |
0 |
defined $OPCODES{$iop} or $iop =~ /^\d+$/ |
|
2680
|
0 |
25 |
0 |
$width ||= $imgs[0]->getwidth |
|
2681
|
0 |
25 |
0 |
$height ||= $imgs[0]->getheight |
|
2881
|
0 |
11 |
0 |
defined $opts{'radians'} or defined $opts{'degrees'} |
|
2887
|
13 |
5 |
10 |
$degrees == 90 or $degrees == 180 |
|
|
18 |
10 |
0 |
$degrees == 90 or $degrees == 180 or $degrees == 270 |
|
2906
|
0 |
11 |
0 |
$opts{'radians'} || $opts{'degrees'} * 3.14159265358979 / 180 |
|
2950
|
0 |
3 |
0 |
$opts{'xsize'} || $self->getwidth |
|
2951
|
0 |
3 |
0 |
$opts{'ysize'} || $self->getheight |
|
3495
|
7 |
2 |
115 |
ref $x or ref $y |
|
3561
|
17 |
2 |
217 |
ref $x or ref $y |
|
3582
|
3 |
0 |
1 |
$type eq "float" or $type eq "double" |
|
3599
|
19 |
2 |
1 |
$type eq "float" or $type eq "double" |
|
3887
|
1 |
2 |
11 |
$opts{'preset'} eq "gray" or $opts{'preset'} eq "grey" |
|
|
0 |
0 |
10 |
$opts{'preset'} eq "red" or $opts{'preset'} eq "channel0" |
|
|
0 |
0 |
10 |
$opts{'preset'} eq "green" or $opts{'preset'} eq "channel1" |
|
|
3 |
0 |
7 |
$opts{'preset'} eq "blue" or $opts{'preset'} eq "channel2" |
|
3904
|
0 |
1 |
0 |
$self->getchannels == 2 or $self->getchannels == 4 |
|
3923
|
0 |
0 |
0 |
$self->getchannels == 2 or $self->getchannels == 4 |
|
4222
|
0 |
0 |
3 |
$channels == 2 or $channels == 4 |
|
4546
|
0 |
0 |
0 |
$lang eq "C" or $lang eq "CPP" |
|
4603
|
2 |
0 |
0 |
$_[1] != 1 or $_[0] != 0 |