Branch Coverage

blib/lib/Graphics/Framebuffer.pm
Criterion Covered Total %
branch 49 1190 4.1


line true false branch
439 0 2 if $self->{'RESET'}
2462 0 2 if ($self->{'GARBAGE'})
2627 2 0 unless (defined $self->{'FB_DEVICE'})
2630 0 192 if (-e "$prefix$dev")
2635 0 64 if defined $self->{'FB_DEVICE'}
2645 0 2 if (not defined $ENV{'DISPLAY'} and defined $self->{'FB_DEVICE'} and -e $self->{'FB_DEVICE'} and open $self->{'FB'}, '+<', $self->{'FB_DEVICE'}) { }
0 2 elsif (exists $ENV{'DISPLAY'} and -e $self->{'FB_DEVICE'}) { }
2648 0 0 if ($self->{'ACCELERATED'}) { }
2745 0 0 if ($extra > 1) { }
2746 0 0 if ($extra == 2) { }
0 0 elsif ($extra == 3) { }
0 0 elsif ($extra == 4) { }
2795 0 0 if ($self->{'fscreeninfo'}{'id'} eq '')
2798 0 0 if ($model ne '') { }
2817 0 0 if not defined $self->{'fscreeninfo'}{'smem_len'} or $self->{'fscreeninfo'}{'smem_len'} <= 0
2824 0 0 if ($self->{'BITS'} == 32 and $self->{'vscreeninfo'}{'bitfields'}{'alpha'}{'length'} == 0)
2833 0 0 if (defined $self->{'SIMULATED_X'})
2838 0 0 if (defined $self->{'SIMULATED_Y'})
2858 0 0 if ($@)
2884 0 0 &Graphics::Framebuffer::sleep($self->{'RESET'}) ? :
2899 0 0 &Graphics::Framebuffer::sleep($self->{'RESET'}) ? :
2917 0 2 if ($self->{'COLOR_ORDER'} == 2) { }
2 0 elsif ($self->{'COLOR_ORDER'} == 0) { }
0 0 elsif ($self->{'COLOR_ORDER'} == 3) { }
0 0 elsif ($self->{'COLOR_ORDER'} == 1) { }
0 0 elsif ($self->{'COLOR_ORDER'} == 5) { }
0 0 elsif ($self->{'COLOR_ORDER'} == 4) { }
2960 2 0 if not defined $self->{'fscreeninfo'}{'smem_len'} or $self->{'fscreeninfo'}{'smem_len'} <= 0
2965 0 2 if ($self->{'RESET'})
2971 0 16 if (exists $self->{'FONTS'}{$font})
2979 0 2 if ($self->{'SPLASH'} > 0)
2984 0 2 if (wantarray)
2998 0 0 unless (defined $self->{'FB'})
3017 0 0 if ($ro < $go and $go < $bo) { }
0 0 elsif ($bo < $go and $go < $ro) { }
0 0 elsif ($go < $ro and $ro < $bo) { }
0 0 elsif ($go < $bo and $bo < $ro) { }
0 0 elsif ($bo < $ro and $ro < $go) { }
0 0 elsif ($ro < $bo and $bo < $go) { }
3037 0 2 unless (defined $self->{'ERROR'})
3038 0 0 if defined $self->{'SCREEN'}
3039 0 0 if defined $self->{'FB'}
3105 0 1 if (wantarray) { }
3182 0 0 if ($filter)
3184 0 0 if ($font =~ /$filter/i)
3188 0 0 if (defined $fonts and scalar @{$fonts;} == 1) { }
3266 0 0 if (@_) { }
3269 0 0 $mode <= 10 && $mode >= 0 ? :
3483 3 0 unless ($self->{'DEVICE'} eq 'EMULATED')
3484 1 2 if ($cursor =~ /off/i) { }
1 1 elsif ($cursor =~ /on/i) { }
3492 0 3 if ($self->{'CLIPPED'}) { }
3564 0 0 if (abs $size > 1) { }
0 0 elsif ($self->{'ACCELERATED'}) { }
3565 0 0 if ($size < -1) { }
3587 0 0 unless ($x > $self->{'XX_CLIP'} or $y > $self->{'YY_CLIP'} or $x < $self->{'X_CLIP'} or $y < $self->{'Y_CLIP'})
3590 0 0 unless (exists $self->{'history'} and defined $self->{'history'}{$y}{$x})
3592 0 0 if ($index >= 0 and $index <= $self->{'fscreeninfo'}{'smem_len'} - $self->{'BYTES'})
3595 0 0 if ($self->{'DRAW_MODE'} == 0) { }
0 0 elsif ($self->{'DRAW_MODE'} == 1) { }
0 0 elsif ($self->{'DRAW_MODE'} == 2) { }
0 0 elsif ($self->{'DRAW_MODE'} == 6) { }
0 0 elsif ($self->{'DRAW_MODE'} == 3) { }
0 0 elsif ($self->{'DRAW_MODE'} == 7) { }
0 0 elsif ($self->{'DRAW_MODE'} == 8) { }
0 0 elsif ($self->{'DRAW_MODE'} == 9) { }
0 0 elsif ($self->{'DRAW_MODE'} == 10) { }
0 0 elsif ($self->{'DRAW_MODE'} == 4) { }
0 0 elsif ($self->{'DRAW_MODE'} == 5) { }
3626 0 0 if ($self->{'BITS'} == 32) { }
3627 0 0 if substr($self->{'RAW_FOREGROUND_COLOR'}, 0, 3) ne substr($self->{'RAW_BACKGROUND_COLOR'}, 0, 3)
3629 0 0 if $self->{'RAW_FOREGROUND_COLOR'} ne $self->{'RAW_BACKGROUND_COLOR'}
3634 0 0 if ($self->{'BITS'} == 32) { }
3635 0 0 if substr($raw, 0, 3) eq substr($self->{'RAW_BACKGROUND_COLOR'}, 0, 3)
3637 0 0 if $raw eq $self->{'RAW_BACKGROUND_COLOR'}
3643 0 0 if $error and $self->{'SHOW_ERRORS'}
3644 0 0 if $error
3646 0 0 if exists $self->{'history'}
3697 0 0 unless ($x > $self->{'XX_CLIP'} or $y > $self->{'YY_CLIP'} or $x < $self->{'X_CLIP'} or $y < $self->{'Y_CLIP'})
3702 0 0 if exists $params->{'raw'}
3706 0 0 if ($self->{'BITS'} == 32) { }
0 0 elsif ($self->{'BITS'} == 24) { }
0 0 elsif ($self->{'BITS'} == 16) { }
3707 0 0 if ($color_order == 2) { }
0 0 elsif ($color_order == 3) { }
0 0 elsif ($color_order == 0) { }
0 0 elsif ($color_order == 1) { }
0 0 elsif ($color_order == 5) { }
0 0 elsif ($color_order == 4) { }
3721 0 0 if ($color_order == 2) { }
0 0 elsif ($color_order == 3) { }
0 0 elsif ($color_order == 0) { }
0 0 elsif ($color_order == 1) { }
0 0 elsif ($color_order == 5) { }
0 0 elsif ($color_order == 4) { }
3737 0 0 $self->{'vscreeninfo'}{'bitfields'}{'blue'}{'length'} < 6 ? :
3738 0 0 $self->{'vscreeninfo'}{'bitfields'}{'green'}{'length'} < 6 ? :
3739 0 0 $self->{'vscreeninfo'}{'bitfields'}{'red'}{'length'} < 6 ? :
3793 0 0 if (wantarray)
3856 0 0 if (defined $self->{'dp_cache'}[$index]) { }
3906 0 0 if ($self->{'ACCELERATED'} and $size == 1 and not $antialiased) { }
3924 0 0 if ($start_x > $x_end) { }
3929 0 0 if ($start_y > $y_end) { }
3936 0 0 if ($x_end == $start_x and $y_end == $start_y) { }
0 0 elsif ($x_end == $start_x) { }
0 0 elsif ($y_end == $start_y) { }
0 0 elsif ($antialiased) { }
0 0 elsif ($width > $height) { }
0 0 elsif ($width < $height) { }
3941 0 0 if ($start_y > $y_end) { }
3954 0 0 if ($size == 1) { }
3955 0 0 if ($start_x > $x_end) { }
3961 0 0 if ($start_x > $x_end) { }
3971 0 0 if ($start_x < $x_end and $start_y < $y_end) { }
0 0 elsif ($start_x > $x_end and $start_y < $y_end) { }
0 0 elsif ($start_x < $x_end and $start_y > $y_end) { }
0 0 elsif ($start_x > $x_end and $start_y > $y_end) { }
3998 0 0 if ($start_x < $x_end and $start_y < $y_end) { }
0 0 elsif ($start_x > $x_end and $start_y < $y_end) { }
0 0 elsif ($start_x < $x_end and $start_y > $y_end) { }
0 0 elsif ($start_x > $x_end and $start_y > $y_end) { }
4024 0 0 if ($start_x < $x_end and $start_y < $y_end) { }
0 0 elsif ($start_x > $x_end and $start_y < $y_end) { }
0 0 elsif ($start_x < $x_end and $start_y > $y_end) { }
0 0 elsif ($start_x > $x_end and $start_y > $y_end) { }
4059 5 0 unless ($self->{'DEVICE'} eq 'EMULATED')
4090 0 0 if (abs $y1 - $y0 > abs $x1 - $x0)
4095 0 0 if ($x0 > $x1)
4119 0 0 if defined $intery
4178 0 0 if $closed
4182 0 0 if ($closed) { }
4271 0 0 if $start_degrees < 0
4272 0 0 if $end_degrees < 0
4274 0 0 if ($self->{'ACCELERATED'} and $mode == 1) { }
4281 0 0 if ($start_degrees > $end_degrees)
4284 0 0 if (defined $self->{'dp_cache'}[$index]) { }
4293 0 0 if ($sx <=> $ox or $sy <=> $oy)
4294 0 0 if ($mode == 0) { }
4295 0 0 if ($plotted) { }
4302 0 0 if ($degrees == $start_degrees) { }
4318 0 0 if (defined $self->{'dp_cache'}[$index]) { }
4327 0 0 if ($sx <=> $ox or $sy <=> $oy)
4328 0 0 if ($mode == 0) { }
4329 0 0 if ($plotted) { }
4336 0 0 if ($degrees == $start_degrees) { }
4347 0 0 if ($mode != 0)
4348 0 0 $mode == 1 ? :
4377 0 0 unless ($self->{'DRAW_MODE'})
4378 0 0 if ($self->{'ACCELERATED'}) { }
4383 0 0 if $self->{'BITS'} == 16
4406 0 0 if (exists $params->{'hatch'}) { }
0 0 elsif (exists $params->{'texture'}) { }
0 0 elsif (exists $params->{'gradient'}) { }
4415 0 0 if $self->{'BITS'} == 16
4435 0 0 if (exists $params->{'gradient'}{'colors'}) { }
4446 0 0 exists $params->{'gradient'}{'start'}{'alpha'} ? :
4449 0 0 if $self->{'BITS'} == 16
4477 0 0 if $self->{'BITS'} == 16
4479 0 0 if $@ and $self->{'SHOW_ERRORS'}
4481 0 0 if defined $draw_mode
4693 0 0 if $XRadius < 1
4694 0 0 if $YRadius < 1
4699 0 0 if $filled
4702 0 0 if ($fact == 0)
4716 0 0 exists $self->{'history'} ? :
4719 0 0 unless $history_on or not $filled or $size > 1
4726 0 0 if (exists $params->{'gradient'}) { }
0 0 elsif (exists $params->{'texture'}) { }
0 0 elsif (exists $params->{'hatch'}) { }
4727 0 0 if (not $params->{'gradient'}{'direction'} =~ /vertical/i) { }
4728 0 0 if (exists $params->{'gradient'}{'colors'}) { }
4738 0 0 exists $params->{'gradient'}{'start'}{'alpha'} ? :
4747 0 0 if (exists $params->{'gradient'}{'colors'}) { }
4751 0 0 if (exists $params->{'gradient'}{'colors'}{'alpha'}) { }
4760 0 0 if (exists $params->{'gradient'}{'start'}{'alpha'}) { }
4785 0 0 if ($filled) { }
4786 0 0 if ($cyy <=> $old_cyy)
4787 0 0 if ($gradient == 2) { }
4791 0 0 if ($gradient)
4798 0 0 if ($cy_y <=> $old_cy_y and $cyy <=> $cy_y)
4799 0 0 if ($gradient == 2) { }
4803 0 0 if ($gradient)
4813 0 0 if int $cyy <=> int $cy_y
4814 0 0 if int $cyy <=> int $cy_y
4820 0 0 if ($EllipseError * 2 + $XChange > 0)
4842 0 0 if ($filled) { }
4843 0 0 if ($cyy <=> $old_cyy)
4844 0 0 if ($gradient == 2) { }
4848 0 0 if ($gradient)
4855 0 0 if ($cy_y <=> $old_cy_y and $cyy <=> $cy_y)
4856 0 0 if ($gradient == 2) { }
4860 0 0 if ($gradient)
4869 0 0 if int $cxx <=> int $cx_x
4870 0 0 if int $cxx <=> int $cx_x
4877 0 0 if ($EllipseError * 2 + $YChange > 0)
4884 0 0 if exists $self->{'history'} and not $history_on
4939 0 0 defined $params->{'gradient'} ? :
4947 0 0 if $x0 > $x1
4948 0 0 if $y0 > $y1
4966 0 0 if ($gradient) { }
0 0 elsif (exists $params->{'texture'}) { }
0 0 elsif (exists $params->{'hatch'}) { }
4967 0 0 unless $x0 == $x1 and $y0 == $y1
4968 0 0 if (exists $params->{'gradient'}{'colors'}) { }
4979 0 0 exists $params->{'gradient'}{'start'}{'alpha'} ? :
5002 0 0 if ($filled) { }
5008 0 0 if ($gradient == 2) { }
0 0 elsif ($gradient) { }
5017 0 0 if ($ymy != $lymy and $ymy != $lymx and $ymy != $lypx and $ymy != $lypy)
5024 0 0 if ($ymx != $lymx and $ymx != $lymy and $ymx != $lypx and $ymx != $lypy)
5032 0 0 if ($ypy != $lypy and $ypy != $lypx and $ypy != $lymy and $ypy != $lymx)
5039 0 0 if ($ypx != $lypx and $ypx != $lypy and $ypx != $lymx and $ypx != $lymy)
5045 0 0 if ($ymy != $lymy and $ymy != $lymx and $ymy != $lypx and $ymy != $lypy)
5050 0 0 if ($ymx != $lymx and $ymx != $lymy and $ymx != $lypx and $ymx != $lypy)
5057 0 0 if ($ypy != $lypy and $ypy != $lypx and $ypy != $lymy and $ypy != $lymx)
5062 0 0 if ($ypx != $lypx and $ypx != $lypy and $ypx != $lymx and $ypx != $lymy)
5069 0 0 if ($ymy != $lymy and $ymy != $lymx and $ymy != $lypx and $ymy != $lypy)
5073 0 0 if ($ymx != $lymx and $ymx != $lymy and $ymx != $lypx and $ymx != $lypy)
5079 0 0 if ($ypy != $lypy and $ypy != $lypx and $ypy != $lymy and $ypy != $lymx)
5083 0 0 if ($ypx != $lypx and $ypx != $lypy and $ypx != $lymx and $ypx != $lymy)
5123 0 0 if ($decisionOver2 <= 0) { }
5130 0 0 unless ($x0 == $x1 and $y0 == $y1)
5131 0 0 if ($filled) { }
5132 0 0 if ($gradient == 2) { }
0 0 elsif ($gradient) { }
5139 0 0 if $height and $width
5226 0 0 exists $self->{'history'} ? :
5228 0 0 if ($params->{'filled'}) { }
5231 0 0 unless $history_on
5240 0 0 if $self->{'DRAW_MODE'} == 1
5241 0 0 unless $history_on
5257 0 0 if ($params->{'coordinates'}[$ip] < $y && $params->{'coordinates'}[$jp] >= $y || $params->{'coordinates'}[$jp] < $y && $params->{'coordinates'}[$ip] >= $y and $params->{'coordinates'}[$i] <= $x || $params->{'coordinates'}[$j] <= $x)
5288 0 0 if (exists $params->{'gradient'}) { }
0 0 elsif (exists $params->{'texture'}) { }
5290 0 0 if (exists $params->{'gradient'}{'colors'}) { }
5301 0 0 exists $params->{'gradient'}{'start'}{'alpha'} ? :
5311 0 0 unless ($self->{'DRAW_MODE'})
5312 0 0 if ($self->{'ACCELERATED'}) { }
5316 0 0 if $self->{'BITS'} == 16
5329 0 0 if (exists $saved->{'image'} and defined $saved->{'image'})
5342 0 0 if (defined $pattern) { }
0 0 elsif (exists $params->{'hatch'} and defined $params->{'hatch'}) { }
5343 0 0 if $self->{'BITS'} == 16
5380 0 0 if $self->{'BITS'} == 16
5382 0 0 if $@ and $self->{'SHOW_ERRORS'}
5396 0 0 if (ref $type eq 'HASH') { }
0 0 elsif ($type =~ /vertical|horizontal/i) { }
5397 0 0 if ($type->{'width'} != $width or $type->{'height'} != $height) { }
5425 0 0 $type =~ /horizontal/i ? :
5430 0 0 if ($self->{'BITS'} == 32)
5431 0 0 if (exists $colors->{'alpha'}) { }
5440 0 0 if $self->{'BITS'} == 32
5441 0 0 if ($type =~ /horizontal/i) { }
0 0 elsif ($type =~ /vertical/i) { }
5444 0 0 if ($self->{'BITS'} == 32) { }
0 0 elsif ($self->{'BITS'} == 24) { }
0 0 elsif ($self->{'BITS'} == 16) { }
5469 0 0 if ($self->{'BITS'} == 32) { }
0 0 elsif ($self->{'BITS'} == 24) { }
0 0 elsif ($self->{'BITS'} == 16) { }
5492 0 0 if ($width and $height)
5531 0 0 if $@ and $self->{'SHOW_ERRORS'}
5532 0 0 if $self->{'BITS'} == 16
5588 0 0 if $filled
5594 0 0 if ($x > $xx)
5597 0 0 if ($y > $yy)
5604 0 0 if ($radius) { }
0 0 elsif ($filled) { }
5606 0 0 if $hc < $radius
5607 0 0 if $vc < $radius
5631 0 0 if (exists $params->{'gradient'}) { }
0 0 elsif (exists $params->{'texture'}) { }
0 0 elsif (exists $params->{'hatch'}) { }
5632 0 0 if (exists $params->{'gradient'}{'colors'}) { }
5643 0 0 exists $params->{'gradient'}{'start'}{'alpha'} ? :
5736 2 2 $name eq 'RAW_FOREGROUND_COLOR' ? :
5750 4 0 if ($self->{'BITS'} >= 24) { }
0 0 elsif ($self->{'BITS'} == 16) { }
5757 0 4 if $self->{'BITS'} == 24
5770 0 4 if ($color_order == 2) { }
0 4 elsif ($color_order == 3) { }
0 4 elsif ($color_order == 1) { }
0 4 elsif ($color_order == 5) { }
0 4 elsif ($color_order == 4) { }
5781 2 2 if ($name eq 'RAW_FOREGROUND_COLOR') { }
5782 2 0 $self->{'BITS'} == 32 ? :
5784 2 0 $self->{'BITS'} == 32 ? :
5859 0 0 if $back eq $self->{'RAW_FOREGROUND_COLOR'}
5860 0 0 if ($self->{'ACCELERATED'}) { }
5870 0 0 if $x < $self->{'X_CLIP'} or $x > $self->{'XX_CLIP'} or $y < $self->{'Y_CLIP'} or $y > $self->{'YY_CLIP'}
5871 0 0 unless (exists $visited{"$x,$y"})
5873 0 0 if ($pixel eq $background)
5887 0 0 if (exists $params->{'gradient'}) { }
0 0 elsif (exists $params->{'texture'}) { }
0 0 elsif (exists $params->{'hatch'}) { }
5889 0 0 if (exists $params->{'gradient'}{'colors'}) { }
5900 0 0 exists $params->{'gradient'}{'start'}{'alpha'} ? :
5917 0 0 if ($self->{'BITS'} == 16)
5919 0 0 if defined $pattern
5944 0 0 if (defined $pattern) { }
5977 0 0 if $self->{'BITS'} == 16
5979 0 0 if $@ and $self->{'SHOW_ERRORS'}
6019 0 0 if exists $params->{'old'}{'alpha'}
6032 0 0 if ($self->{'BITS'} == 32) { }
0 0 elsif ($self->{'BITS'} == 24) { }
0 0 elsif ($self->{'BITS'} == 16) { }
6033 0 0 if ($color_order == 2) { }
0 0 elsif ($color_order == 3) { }
0 0 elsif ($color_order == 0) { }
0 0 elsif ($color_order == 1) { }
0 0 elsif ($color_order == 5) { }
0 0 elsif ($color_order == 4) { }
6034 0 0 defined $old_a ? :
6037 0 0 defined $old_a ? :
6040 0 0 defined $old_a ? :
6043 0 0 defined $old_a ? :
6046 0 0 defined $old_a ? :
6049 0 0 defined $old_a ? :
6053 0 0 if ($color_order == 2) { }
0 0 elsif ($color_order == 3) { }
0 0 elsif ($color_order == 0) { }
0 0 elsif ($color_order == 1) { }
0 0 elsif ($color_order == 5) { }
0 0 elsif ($color_order == 4) { }
6167 0 0 exists $params->{'image'} ? :
6213 0 0 if ($delay > 0)
6252 0 0 if (scalar @_)
6254 0 0 if ($set =~ /^\d+$/ and $set >= 0 and $set <= 2) { }
0 0 elsif ($set =~ /english|string/i) { }
6258 0 0 if ($self->{'ACCELERATED'} == $self->{$name})
6347 0 0 if $x < 0
6348 0 0 if $y < 0
6349 0 0 if $w > $clipw
6350 0 0 if $h > $cliph
6354 0 0 if ($h > 1 and $self->{'ACCELERATED'} == 1) { }
6403 0 0 unless defined $pparams
6406 0 0 unless defined $params
6416 0 0 unless defined $params->{'image'} and $params->{'image'} ne '' and $h and $w
6418 0 0 if ($self->{'ACCELERATED'} == 1) { }
6450 0 0 if ($index >= 0 and $index <= $max and $idx >= 0 and $idx <= length($scrn) - $bytes)
6451 0 0 if ($draw_mode == 0) { }
0 0 elsif ($draw_mode == 1) { }
0 0 elsif ($draw_mode == 2) { }
0 0 elsif ($draw_mode == 7) { }
0 0 elsif ($draw_mode == 8) { }
0 0 elsif ($draw_mode == 9) { }
0 0 elsif ($draw_mode == 10) { }
0 0 elsif ($draw_mode == 6) { }
0 0 elsif ($draw_mode == 3) { }
0 0 elsif ($draw_mode == 4) { }
0 0 elsif ($draw_mode == 5) { }
6470 0 0 if ($self->{'BITS'} == 32) { }
0 0 elsif ($self->{'BITS'} == 24) { }
0 0 elsif ($self->{'BITS'} == 16) { }
6479 0 0 if (substr($scrn, $idx + $px4, $bytes) ne $c)
6492 0 0 if (substr($scrn, $idx + $px4, $bytes) ne $c)
6508 0 0 if (substr($scrn, $idx + $px4, $bytes) ne $c)
6520 0 0 if ($self->{'BITS'} == 32) { }
0 0 elsif ($self->{'BITS'} == 24) { }
0 0 elsif ($self->{'BITS'} == 16) { }
6521 0 0 if (substr($scrn, $idx + $px4, 3) ne substr($self->{'RAW_BACKGROUND_COLOR'}, 0, 3))
6525 0 0 if (substr($scrn, $idx + $px4, 3) ne $self->{'RAW_BACKGROUND_COLOR'})
6529 0 0 if (substr($scrn, $idx + $px4, 2) ne $self->{'RAW_BACKGROUND_COLOR'})
6539 0 0 if ($self->{'BITS'} == 32) { }
0 0 elsif ($self->{'BITS'} == 24) { }
0 0 elsif ($self->{'BITS'} == 16) { }
6540 0 0 if (substr($self->{'SCREEN'}, $ipx, 3) eq substr($self->{'RAW_BACKGROUND_COLOR'}, 0, 3))
6544 0 0 if (substr($self->{'SCREEN'}, $ipx, 3) eq $self->{'RAW_BACKGROUND_COLOR'})
6548 0 0 if (substr($self->{'SCREEN'}, $ipx, 2) eq $self->{'RAW_BACKGROUND_COLOR'})
6558 0 0 if ($@)
6559 0 0 if $self->{'SHOW_ERRORS'}
6584 0 0 if $YY < $yclip or $params->{'height'} < 1 or $XX < $xclip or $params->{'x'} > $xxclip
6585 0 0 if ($params->{'y'} < $yclip)
6591 0 0 if $params->{'height'} < 1
6592 0 0 if ($YY > $yyclip)
6598 0 0 if ($params->{'x'} < $xclip)
6611 0 0 if ($XX > $xxclip)
6623 0 0 if (length $params->{'image'} < $size) { }
0 0 elsif (length $params->{'image'} > $size) { }
6742 0 0 if (exists $params->{'merge'})
6743 0 0 if $self->{'BITS'} == 16
6782 0 0 if $@ and $self->{'SHOW_ERRORS'}
6784 0 0 if $self->{'BITS'} == 16
6795 0 0 if (exists $params->{'flip'}) { }
0 0 elsif (exists $params->{'rotate'}) { }
0 0 elsif (exists $params->{'scale'}) { }
0 0 elsif (exists $params->{'monochrome'}) { }
0 0 elsif (exists $params->{'center'}) { }
6798 0 0 if ($self->{'ACCELERATED'}) { }
6800 0 0 if (lc $params->{'flip'} eq 'vertical') { }
0 0 elsif (lc $params->{'flip'} eq 'horizontal') { }
0 0 elsif (lc $params->{'flip'} eq 'both') { }
6808 0 0 if (lc $params->{'flip'} eq 'vertical') { }
0 0 elsif (lc $params->{'flip'} eq 'horizontal') { }
6834 0 0 if ($degrees > 360) { }
6840 0 0 if abs $degrees == 360 or $degrees == 0
6841 0 0 if ($params->{'rotate'}{'quality'} eq 'high' or $self->{'ACCELERATED'} == 0) { }
6842 0 0 if (abs $degrees == 180) { }
6874 0 0 if $self->{'BITS'} == 16
6886 0 0 if (abs $degrees == 90 or abs $degrees == 180 or abs $degrees == 270) { }
6900 0 0 if $self->{'BITS'} == 16
6902 0 0 if $@ and $self->{'SHOW_ERRORS'}
6914 0 0 if $self->{'BITS'} == 16
6929 0 0 if $self->{'BITS'} == 32
6946 0 0 if $@ and $self->{'SHOW_ERRORS'}
6947 0 0 if $self->{'BITS'} == 16
6963 0 0 if ($params->{'center'} == 1 or $params->{'center'} == 3)
6966 0 0 if ($params->{'center'} == 2 or $params->{'center'} == 3)
7043 0 0 if $self->{'X_CLIP'} > $self->{'XRES'} - 1
7044 0 0 if $self->{'Y_CLIP'} > $self->{'YRES'} - 1
7045 0 0 if $self->{'XX_CLIP'} >= $self->{'XRES'}
7046 0 0 if $self->{'YY_CLIP'} >= $self->{'YRES'}
7120 0 0 if ($params->{'bits'} == 32) { }
0 0 elsif ($params->{'bits'} == 24) { }
0 0 elsif ($params->{'bits'} == 16) { }
7129 0 0 if ($self->{'ACCELERATED'}) { }
7134 0 0 if ($inc == 2) { }
7136 0 0 if ($color_order == 0) { }
0 0 elsif ($color_order == 2) { }
7146 0 0 $go ? :
0 0 $ro ? :
0 0 $bo ? :
7148 0 0 if ($color_order == 2) { }
0 0 elsif ($color_order == 3) { }
0 0 elsif ($color_order == 0) { }
0 0 elsif ($color_order == 1) { }
0 0 elsif ($color_order == 5) { }
0 0 elsif ($color_order == 4) { }
7240 2 2 unless defined $params
7253 2 0 if exists $params->{'color'}
7255 2 0 if exists $params->{'wscale'} and defined $params->{'wscale'}
7264 2 0 if (defined $P_color) { }
7265 0 2 if length $P_color < 8
7267 0 2 if ($color_order == 2) { }
0 2 elsif ($color_order == 3) { }
0 2 elsif ($color_order == 1) { }
0 2 elsif ($color_order == 5) { }
0 2 elsif ($color_order == 4) { }
7287 2 0 unless (defined $font)
7288 0 2 if $self->{'SHOW_ERRORS'}
7291 0 0 if (defined $params->{'rotate'} and abs $params->{'rotate'} > 0 and abs($params->{'rotate'} < 360)) { }
7303 0 0 if $@ and $self->{'SHOW_ERRORS'}
7306 0 0 if ($@)
7307 0 0 if $self->{'SHOW_ERRORS'}
7314 0 0 if ($center_mode == 3) { }
0 0 elsif ($center_mode == 1) { }
0 0 elsif ($center_mode == 2) { }
7323 0 0 if ($box_mode)
7331 0 0 if ($TTF_pw <= 0 or $TTF_ph <= 0)
7332 0 0 if $self->{'SHOW_ERRORS'}
7341 0 0 unless ($self->{'DRAW_MODE'})
7342 0 0 if ($self->{'ACCELERATED'} and not $aa) { }
7347 0 0 if $ty < 0
7349 0 0 if $self->{'BITS'} == 16
7378 0 0 if ($@)
7379 0 0 if $self->{'SHOW_ERRORS'}
7382 0 0 if $self->{'BITS'} == 16
7384 0 0 if defined $draw_mode
7436 0 0 unless defined $params
7447 0 0 if exists $params->{'color'}
7460 0 0 if (defined $P_color) { }
7461 0 0 if length $P_color < 8
7463 0 0 if ($color_order == 2) { }
0 0 elsif ($color_order == 3) { }
0 0 elsif ($color_order == 1) { }
0 0 elsif ($color_order == 5) { }
0 0 elsif ($color_order == 4) { }
7482 0 0 unless (defined $font)
7483 0 0 if $self->{'SHOW_ERRORS'}
7496 0 0 unless ($self->{'DRAW_MODE'})
7497 0 0 if ($self->{'ACCELERATED'}) { }
7502 0 0 if $self->{'BITS'} == 16
7532 0 0 if ($@)
7533 0 0 if $self->{'SHOW_ERRORS'}
7536 0 0 if $self->{'BITS'} == 16
7538 0 0 if defined $draw_mode
7552 0 0 if $file =~ /^\./
7553 0 0 if (-d "$path/$file") { }
0 0 elsif (-f "$path/$file" and -s "$path/$file") { }
7556 0 0 if ($file =~ /\.ttf$/i and $self->{'Imager-Has-TrueType'} || $self->{'Imager-Has-Freetype2'}) { }
0 0 elsif ($file =~ /\.afb$/i and $self->{'Imager-Has-Type1'}) { }
7584 0 0 if ($face->can('face_name'))
7586 0 0 if ($face_name eq '')
7733 0 0 if ($params->{'file'} =~ /\.(gif|png|apng)$/i) { }
7742 0 0 if $@ and $self->{'SHOW_ERRORS'}
7753 0 0 if $@ and $self->{'SHOW_ERRORS'}
7756 0 0 if (defined $Img[0]) { }
7757 0 0 if $self->{'SHOW_ERRORS'}
7760 0 0 unless defined $img
7764 0 0 unless (exists $params->{'gif_left'})
7765 0 0 if (defined $last_img)
7773 0 0 unless defined $last_img
7776 0 0 if (exists $tags{'exif_orientation'})
7778 0 0 if (defined $orientation and $orientation)
7779 0 0 if ($orientation == 3) { }
0 0 elsif ($orientation == 6) { }
0 0 elsif ($orientation == 8) { }
7791 0 0 if $params->{'autolevels'}
7798 0 0 if ($channels == 1)
7805 0 0 if ($params->{'file'} =~ /\.(gif|png)$/i and not exists $params->{'width'} and not exists $params->{'height'})
7810 0 0 if (defined $xs) { }
7829 0 0 if ($color_order == 2) { }
0 0 elsif ($color_order == 3) { }
0 0 elsif ($color_order == 1) { }
0 0 elsif ($color_order == 5) { }
0 0 elsif ($color_order == 4) { }
7840 0 0 if ($self->{'BITS'} == 32) { }
0 0 elsif ($self->{'BITS'} == 24) { }
7841 0 0 if $channels == 3
7851 0 0 if ($params->{'convertalpha'})
7857 0 0 if $channels == 4
7869 0 0 if $channels == 4
7882 0 0 if (exists $params->{'center'}) { }
0 0 elsif (defined $params->{'x'} and defined $params->{'y'}) { }
7883 0 0 if ($params->{'center'} == 1) { }
0 0 elsif ($params->{'center'} == 2) { }
0 0 elsif ($params->{'center'} == 3) { }
7884 0 0 $w < $self->{'W_CLIP'} ? :
7886 0 0 $h < $self->{'H_CLIP'} ? :
7888 0 0 $w < $self->{'W_CLIP'} ? :
7889 0 0 $h < $self->{'H_CLIP'} ? :
7895 0 0 if ($w < $self->{'W_CLIP'}) { }
0 0 elsif ($h < $self->{'H_CLIP'}) { }
7926 0 0 if ($self->{'DIAGNOSTICS'})
7928 0 0 if $self->{'ACCELERATED'}
7935 0 0 if (scalar @odata > 1) { }
8008 0 0 if $self->{'BITS'} == 16
8031 0 0 if ($type eq 'jpeg') { }
0 0 elsif ($type eq 'gif') { }
8032 0 0 if exists $params->{'quality'}
8051 0 0 if ($self->{'ACCELERATED'}) { }
8064 0 0 if ($color eq $black16) { }
0 0 elsif ($color eq $white16) { }
8140 0 0 if ($self->{'ACCELERATED'}) { }
8153 0 0 if ($color eq $black16) { }
0 0 elsif ($color eq $white16) { }
8175 0 0 if ($self->{'ACCELERATED'}) { }
8189 0 0 if ($color eq $black24) { }
0 0 elsif ($color eq $white24) { }
8211 0 0 if ($self->{'ACCELERATED'}) { }
8225 0 0 if ($color eq $black32) { }
0 0 elsif ($color eq $white32) { }
8247 0 0 if ($self->{'ACCELERATED'}) { }
8261 0 0 if ($color eq $black32) { }
0 0 elsif ($color eq $white32) { }
8283 0 0 if ($self->{'ACCELERATED'}) { }
8297 0 0 if ($color eq $black24) { }
0 0 elsif ($color eq $white24) { }
8330 0 0 if ($color_order == 0) { }
0 0 elsif ($color_order == 2) { }
0 0 elsif ($color_order == 3) { }
0 0 elsif ($color_order == 1) { }
0 0 elsif ($color_order == 5) { }
0 0 elsif ($color_order == 4) { }
8360 0 0 if ($color_order == 2) { }
0 0 elsif ($color_order == 3) { }
0 0 elsif ($color_order == 1) { }
0 0 elsif ($color_order == 5) { }
0 0 elsif ($color_order == 4) { }
8397 0 0 if ($color_order == 0) { }
0 0 elsif ($color_order == 2) { }
0 0 elsif ($color_order == 3) { }
0 0 elsif ($color_order == 1) { }
0 0 elsif ($color_order == 5) { }
0 0 elsif ($color_order == 4) { }
8427 0 0 if ($color_order == 2) { }
0 0 elsif ($color_order == 3) { }
0 0 elsif ($color_order == 1) { }
0 0 elsif ($color_order == 5) { }
0 0 elsif ($color_order == 4) { }
8462 0 0 defined $params->{'color_order'} ? :
8466 0 0 if ($big_data ne '')
8469 0 0 if ($in_color_order == 2) { }
0 0 elsif ($in_color_order == 0) { }
0 0 elsif ($in_color_order == 3) { }
0 0 elsif ($in_color_order == 1) { }
0 0 elsif ($in_color_order == 5) { }
0 0 elsif ($in_color_order == 4) { }
8513 0 0 defined $params->{'color_order'} ? :
8521 0 0 if ($in_color_order == 2) { }
0 0 elsif ($in_color_order == 0) { }
0 0 elsif ($in_color_order == 3) { }
0 0 elsif ($in_color_order == 1) { }
0 0 elsif ($in_color_order == 5) { }
0 0 elsif ($in_color_order == 4) { }
8568 0 0 exists $params->{'alpha'} ? :
8653 0 0 if ($current == $original)
8671 0 0 if (scalar @_) { }
8672 0 0 (shift()) =~ /^(true|on|1|enable)$/i ? :
8757 0 0 unless $bounds
8759 0 0 if $x < $bounds->[0]
8760 0 0 if $y < $bounds->[1]
8761 0 0 if $x > $bounds->[2]
8762 0 0 if $y > $bounds->[3]
8792 0 0 if (defined $fb) { }