| line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
|
1
|
|
|
|
|
|
|
# $Id: Preset.pm 2357 2008-10-01 10:03:59Z joern $ |
|
2
|
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
#----------------------------------------------------------------------- |
|
4
|
|
|
|
|
|
|
# Copyright (C) 2001-2006 Jörn Reder . |
|
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
|
|
|
1
|
|
1365
|
use Locale::TextDomain qw (video.dvdrip); |
|
|
1
|
|
|
|
|
3
|
|
|
|
1
|
|
|
|
|
8
|
|
|
13
|
|
|
|
|
|
|
|
|
14
|
1
|
|
|
1
|
|
213
|
use base Video::DVDRip::Base; |
|
|
1
|
|
|
|
|
1
|
|
|
|
1
|
|
|
|
|
74
|
|
|
15
|
|
|
|
|
|
|
|
|
16
|
1
|
|
|
1
|
|
5
|
use strict; |
|
|
1
|
|
|
|
|
2
|
|
|
|
1
|
|
|
|
|
34
|
|
|
17
|
1
|
|
|
1
|
|
5
|
use Carp; |
|
|
1
|
|
|
|
|
2
|
|
|
|
1
|
|
|
|
|
929
|
|
|
18
|
|
|
|
|
|
|
|
|
19
|
20
|
|
|
20
|
0
|
46
|
sub name { shift->{name} } |
|
20
|
20
|
|
|
20
|
0
|
111
|
sub title { shift->{title} } |
|
21
|
0
|
|
|
0
|
0
|
0
|
sub auto { shift->{auto} } |
|
22
|
0
|
|
|
0
|
0
|
0
|
sub auto_clip { shift->{auto_clip} } |
|
23
|
0
|
|
|
0
|
0
|
0
|
sub frame_size { shift->{frame_size} } |
|
24
|
|
|
|
|
|
|
|
|
25
|
0
|
|
|
0
|
0
|
0
|
sub tc_clip1_top { shift->{tc_clip1_top} } |
|
26
|
0
|
|
|
0
|
0
|
0
|
sub tc_clip1_bottom { shift->{tc_clip1_bottom} } |
|
27
|
0
|
|
|
0
|
0
|
0
|
sub tc_clip1_left { shift->{tc_clip1_left} } |
|
28
|
0
|
|
|
0
|
0
|
0
|
sub tc_clip1_right { shift->{tc_clip1_right} } |
|
29
|
0
|
|
|
0
|
0
|
0
|
sub tc_zoom_width { shift->{tc_zoom_width} } |
|
30
|
0
|
|
|
0
|
0
|
0
|
sub tc_zoom_height { shift->{tc_zoom_height} } |
|
31
|
0
|
|
|
0
|
0
|
0
|
sub tc_clip2_top { shift->{tc_clip2_top} } |
|
32
|
0
|
|
|
0
|
0
|
0
|
sub tc_clip2_bottom { shift->{tc_clip2_bottom} } |
|
33
|
0
|
|
|
0
|
0
|
0
|
sub tc_clip2_left { shift->{tc_clip2_left} } |
|
34
|
0
|
|
|
0
|
0
|
0
|
sub tc_clip2_right { shift->{tc_clip2_right} } |
|
35
|
0
|
|
|
0
|
0
|
0
|
sub tc_fast_resize { shift->{tc_fast_resize} } |
|
36
|
|
|
|
|
|
|
|
|
37
|
0
|
|
|
0
|
0
|
0
|
sub set_name { shift->{name} = $_[1] } |
|
38
|
0
|
|
|
0
|
0
|
0
|
sub set_title { shift->{title} = $_[1] } |
|
39
|
0
|
|
|
0
|
0
|
0
|
sub set_auto { shift->{auto} = $_[1] } |
|
40
|
0
|
|
|
0
|
0
|
0
|
sub set_auto_clip { shift->{auto_clip} = $_[1] } |
|
41
|
0
|
|
|
0
|
0
|
0
|
sub set_frame_size { shift->{frame_size} = $_[1] } |
|
42
|
0
|
|
|
0
|
0
|
0
|
sub set_tc_clip1_top { shift->{tc_clip1_top} = $_[1] } |
|
43
|
0
|
|
|
0
|
0
|
0
|
sub set_tc_clip1_bottom { shift->{tc_clip1_bottom} = $_[1] } |
|
44
|
0
|
|
|
0
|
0
|
0
|
sub set_tc_clip1_left { shift->{tc_clip1_left} = $_[1] } |
|
45
|
0
|
|
|
0
|
0
|
0
|
sub set_tc_clip1_right { shift->{tc_clip1_right} = $_[1] } |
|
46
|
0
|
|
|
0
|
0
|
0
|
sub set_tc_zoom_width { shift->{tc_zoom_width} = $_[1] } |
|
47
|
0
|
|
|
0
|
0
|
0
|
sub set_tc_zoom_height { shift->{tc_zoom_height} = $_[1] } |
|
48
|
0
|
|
|
0
|
0
|
0
|
sub set_tc_clip2_top { shift->{tc_clip2_top} = $_[1] } |
|
49
|
0
|
|
|
0
|
0
|
0
|
sub set_tc_clip2_bottom { shift->{tc_clip2_bottom} = $_[1] } |
|
50
|
0
|
|
|
0
|
0
|
0
|
sub set_tc_clip2_left { shift->{tc_clip2_left} = $_[1] } |
|
51
|
0
|
|
|
0
|
0
|
0
|
sub set_tc_clip2_right { shift->{tc_clip2_right} = $_[1] } |
|
52
|
0
|
|
|
0
|
0
|
0
|
sub set_tc_fast_resize { shift->{tc_fast_resize} = $_[1] } |
|
53
|
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
sub new { |
|
55
|
20
|
|
|
20
|
0
|
698
|
my $type = shift; |
|
56
|
20
|
|
|
|
|
113
|
my %par = @_; |
|
57
|
|
|
|
|
|
|
my ( $name, $title, $tc_zoom_width, $tc_zoom_height, $tc_fast_resize ) |
|
58
|
|
|
|
|
|
|
= @par{ |
|
59
|
20
|
|
|
|
|
41
|
'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
|
|
|
|
|
27
|
'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
|
|
|
|
|
67
|
'tc_clip2_top', 'tc_clip2_bottom', |
|
71
|
|
|
|
|
|
|
'tc_clip2_left', 'tc_clip2_right' |
|
72
|
|
|
|
|
|
|
}; |
|
73
|
20
|
|
|
|
|
28
|
my ( $auto, $auto_clip, $frame_size ) = @par{ 'auto', 'auto_clip', 'frame_size' }; |
|
74
|
|
|
|
|
|
|
|
|
75
|
20
|
|
|
|
|
143
|
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
|
|
|
|
|
115
|
return bless $self, $type; |
|
95
|
|
|
|
|
|
|
} |
|
96
|
|
|
|
|
|
|
|
|
97
|
|
|
|
|
|
|
sub attributes { |
|
98
|
0
|
|
|
0
|
0
|
|
my $self = shift; |
|
99
|
|
|
|
|
|
|
|
|
100
|
0
|
|
|
|
|
|
my @attr = grep /^tc/, keys %{$self}; |
|
|
0
|
|
|
|
|
|
|
|
101
|
|
|
|
|
|
|
|
|
102
|
0
|
|
|
|
|
|
return \@attr; |
|
103
|
|
|
|
|
|
|
} |
|
104
|
|
|
|
|
|
|
|
|
105
|
|
|
|
|
|
|
1; |