Branch Coverage

blib/lib/Video/FrameGrab.pm
Criterion Covered Total %
branch 3 66 4.5


line true false branch
33 0 3 unless (defined $$self{'video'})
37 3 0 unless (defined $$self{'mplayer'})
41 3 0 unless (defined $$self{'mplayer'} and -x $$self{'mplayer'})
59 0 0 if ($$self{'test_dont_snap'})
76 0 0 if ($rc != 0)
83 0 0 unless (-f $frame)
97 0 0 unless (defined $time)
101 0 0 unless defined $opts
102 0 0 unless exists $$opts{'algorithm'}
116 0 0 unless defined $opts
118 0 0 unless exists $$opts{'min_intensity_average'}
121 0 0 unless exists $$opts{'gaussian_blur_radius'}
126 0 0 if (exists $$opts{'image'}) { }
132 0 0 unless $rc
159 0 0 if ($avg < $$opts{'min_intensity_average'})
195 0 0 unless (defined $color)
208 0 0 if $data_points == 0
225 0 0 if (defined $stdout and $stdout =~ /-vf crop=(\d+):(\d+):(\d+):(\d+)/)
241 0 0 unless defined $opts
247 0 0 if (exists $$opts{'images'}) { }
259 0 0 unless ($rc)
273 0 0 unless $img->filter('type', 'gaussian', 'stddev', 10)
276 0 0 unless (defined $overlay)
281 0 0 unless $overlay->filter('type', 'postlevels', 'levels', 3)
284 0 0 if (get_logger()->is_trace)
367 0 0 if ($rc != 0)
386 0 0 unless defined $opts
388 0 0 unless (defined $nof_snaps)
394 0 0 unless (defined $$self{'meta'})
399 0 0 if defined $$opts{'movie_length'}
425 0 0 if (defined $$self{'width'})
449 0 0 unless (defined $formats)
455 0 0 unless ($width and $height)