blib/lib/Video/DVDRip/Preset.pm

filter: Statementstmt 40.3% 23 / 57 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 18.4% 7 / 38 Podpod 0.0% 0 / 34 totaltotal 23.2% 30 / 129 CC 1 SCAR 6.0
CC
1
Cov
40%
auto
2.0
auto_clip
2.0
frame_size
2.0
CRAP 1.8
« blib/lib/Video/DVDRip/Term/ExitTask.pm ↑ Summary blib/lib/Video/DVDRip/GUI/Main.pm »
1 # $Id: Preset.pm 2357 2008-10-01 10:03:59Z joern $
2  
3 #-----------------------------------------------------------------------
4 # Copyright (C) 2001-2006 Jörn Reder <joern AT zyn.de>.
5 # All Rights Reserved. See file COPYRIGHT for details.
6 #
7 # This module is part of Video::DVDRip, which is free software; you can
8 # redistribute it and/or modify it under the same terms as Perl itself.
9 #-----------------------------------------------------------------------
10  
11 package Video::DVDRip::Preset;
12 1 ▶use Locale::TextDomain qw (video.dvdrip);
Subroutine BEGIN: called CC=1 SCAR=0.0
13  
14 1 ▶use base Video::DVDRip::Base;
Subroutine BEGIN: called CC=1 SCAR=0.0
15  
16 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
17 1 ▶use Carp;
Subroutine BEGIN: called CC=1 SCAR=0.0
18  
19 20 ▶sub name { shift->{name} }
Subroutine name: called CC=1 SCAR=0.0
Pod undocumented
20 20 ▶sub title { shift->{title} }
Subroutine title: called CC=1 SCAR=0.0
Pod undocumented
21 0 ▶sub auto { shift->{auto} }
Subroutine auto: not called CC=1 SCAR=6.9
Pod undocumented
22 0 ▶sub auto_clip { shift->{auto_clip} }
Subroutine auto_clip: not called CC=1 SCAR=6.9
Pod undocumented
23 0 ▶sub frame_size { shift->{frame_size} }
Subroutine frame_size: not called CC=1 SCAR=6.9
Pod undocumented
24  
25 0 ▶sub tc_clip1_top { shift->{tc_clip1_top} }
Subroutine tc_clip1_top: not called CC=1 SCAR=6.9
Pod undocumented
26 0 ▶sub tc_clip1_bottom { shift->{tc_clip1_bottom} }
Subroutine tc_clip1_bottom: not called CC=1 SCAR=6.9
Pod undocumented
27 0 ▶sub tc_clip1_left { shift->{tc_clip1_left} }
Subroutine tc_clip1_left: not called CC=1 SCAR=6.9
Pod undocumented
28 0 ▶sub tc_clip1_right { shift->{tc_clip1_right} }
Subroutine tc_clip1_right: not called CC=1 SCAR=6.9
Pod undocumented
29 0 ▶sub tc_zoom_width { shift->{tc_zoom_width} }
Subroutine tc_zoom_width: not called CC=1 SCAR=6.9
Pod undocumented
30 0 ▶sub tc_zoom_height { shift->{tc_zoom_height} }
Subroutine tc_zoom_height: not called CC=1 SCAR=6.9
Pod undocumented
31 0 ▶sub tc_clip2_top { shift->{tc_clip2_top} }
Subroutine tc_clip2_top: not called CC=1 SCAR=6.9
Pod undocumented
32 0 ▶sub tc_clip2_bottom { shift->{tc_clip2_bottom} }
Subroutine tc_clip2_bottom: not called CC=1 SCAR=6.9
Pod undocumented
33 0 ▶sub tc_clip2_left { shift->{tc_clip2_left} }
Subroutine tc_clip2_left: not called CC=1 SCAR=6.9
Pod undocumented
34 0 ▶sub tc_clip2_right { shift->{tc_clip2_right} }
Subroutine tc_clip2_right: not called CC=1 SCAR=6.9
Pod undocumented
35 0 ▶sub tc_fast_resize { shift->{tc_fast_resize} }
Subroutine tc_fast_resize: not called CC=1 SCAR=6.9
Pod undocumented
36  
37 0 ▶sub set_name { shift->{name} = $_[1] }
Subroutine set_name: not called CC=1 SCAR=6.9
Pod undocumented
38 0 ▶sub set_title { shift->{title} = $_[1] }
Subroutine set_title: not called CC=1 SCAR=6.9
Pod undocumented
39 0 ▶sub set_auto { shift->{auto} = $_[1] }
Subroutine set_auto: not called CC=1 SCAR=6.9
Pod undocumented
40 0 ▶sub set_auto_clip { shift->{auto_clip} = $_[1] }
Subroutine set_auto_clip: not called CC=1 SCAR=6.9
Pod undocumented
41 0 ▶sub set_frame_size { shift->{frame_size} = $_[1] }
Subroutine set_frame_size: not called CC=1 SCAR=6.9
Pod undocumented
42 0 ▶sub set_tc_clip1_top { shift->{tc_clip1_top} = $_[1] }
Subroutine set_tc_clip1_top: not called CC=1 SCAR=6.9
Pod undocumented
43 0 ▶sub set_tc_clip1_bottom { shift->{tc_clip1_bottom} = $_[1] }
Subroutine set_tc_clip1_bottom: not called CC=1 SCAR=6.9
Pod undocumented
44 0 ▶sub set_tc_clip1_left { shift->{tc_clip1_left} = $_[1] }
Subroutine set_tc_clip1_left: not called CC=1 SCAR=6.9
Pod undocumented
45 0 ▶sub set_tc_clip1_right { shift->{tc_clip1_right} = $_[1] }
Subroutine set_tc_clip1_right: not called CC=1 SCAR=6.9
Pod undocumented
46 0 ▶sub set_tc_zoom_width { shift->{tc_zoom_width} = $_[1] }
Subroutine set_tc_zoom_width: not called CC=1 SCAR=6.9
Pod undocumented
47 0 ▶sub set_tc_zoom_height { shift->{tc_zoom_height} = $_[1] }
Subroutine set_tc_zoom_height: not called CC=1 SCAR=6.9
Pod undocumented
48 0 ▶sub set_tc_clip2_top { shift->{tc_clip2_top} = $_[1] }
Subroutine set_tc_clip2_top: not called CC=1 SCAR=6.9
Pod undocumented
49 0 ▶sub set_tc_clip2_bottom { shift->{tc_clip2_bottom} = $_[1] }
Subroutine set_tc_clip2_bottom: not called CC=1 SCAR=6.9
Pod undocumented
50 0 ▶sub set_tc_clip2_left { shift->{tc_clip2_left} = $_[1] }
Subroutine set_tc_clip2_left: not called CC=1 SCAR=6.9
Pod undocumented
51 0 ▶sub set_tc_clip2_right { shift->{tc_clip2_right} = $_[1] }
Subroutine set_tc_clip2_right: not called CC=1 SCAR=6.9
Pod undocumented
52 0 ▶sub set_tc_fast_resize { shift->{tc_fast_resize} = $_[1] }
Subroutine set_tc_fast_resize: not called CC=1 SCAR=6.9
Pod undocumented
53  
54 20 ▶sub new {
Subroutine new: called CC=1 SCAR=0.0
Pod undocumented
55 20 my $type = shift;
56 20 my %par = @_;
57 my ( $name, $title, $tc_zoom_width, $tc_zoom_height, $tc_fast_resize )
58 = @par{
59 20 'name', 'title',
60 'tc_zoom_width', 'tc_zoom_height',
61 'tc_fast_resize'
62 };
63 my ( $tc_clip1_top, $tc_clip1_bottom, $tc_clip1_left, $tc_clip1_right )
64 = @par{
65 20 'tc_clip1_top', 'tc_clip1_bottom',
66 'tc_clip1_left', 'tc_clip1_right'
67 };
68 my ( $tc_clip2_top, $tc_clip2_bottom, $tc_clip2_left, $tc_clip2_right )
69 = @par{
70 20 'tc_clip2_top', 'tc_clip2_bottom',
71 'tc_clip2_left', 'tc_clip2_right'
72 };
73 20 my ( $auto, $auto_clip, $frame_size ) = @par{ 'auto', 'auto_clip', 'frame_size' };
74  
75 20 my $self = {
76 name => $name,
77 title => $title,
78 auto => $auto,
79 auto_clip => $auto_clip,
80 frame_size => $frame_size,
81 tc_clip1_top => $tc_clip1_top,
82 tc_clip1_bottom => $tc_clip1_bottom,
83 tc_clip1_left => $tc_clip1_left,
84 tc_clip1_right => $tc_clip1_right,
85 tc_zoom_width => $tc_zoom_width,
86 tc_zoom_height => $tc_zoom_height,
87 tc_clip2_top => $tc_clip2_top,
88 tc_clip2_bottom => $tc_clip2_bottom,
89 tc_clip2_left => $tc_clip2_left,
90 tc_clip2_right => $tc_clip2_right,
91 tc_fast_resize => $tc_fast_resize,
92 };
93  
94 20 return bless $self, $type;
95 }
96  
97 0 ▶sub attributes {
Subroutine attributes: not called CC=1 SCAR=6.9
Pod undocumented
98 0 my $self = shift;
99  
100 0 my @attr = grep /^tc/, keys %{$self};
101  
102 0 return \@attr;
103 }
104  
105 1 1;
« blib/lib/Video/DVDRip/Term/ExitTask.pm ↑ Summary blib/lib/Video/DVDRip/GUI/Main.pm »