line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Video::Event; |
2
|
|
|
|
|
|
|
|
3
|
2
|
|
|
2
|
|
11
|
use vars qw($VERSION @EXPORT); |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
716
|
|
4
|
|
|
|
|
|
|
$VERSION=0.01; |
5
|
|
|
|
|
|
|
@EXPORT = qw(new setenvl buildcool); |
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
sub new { |
8
|
0
|
|
|
0
|
0
|
|
my ($class, $point, $identifier, $envelope, $probability, $type) = @_; |
9
|
|
|
|
|
|
|
|
10
|
0
|
|
0
|
|
|
|
my $self = bless {}, ref($class) || $class; |
11
|
0
|
|
|
|
|
|
$self->{'time'} = $point; |
12
|
0
|
|
|
|
|
|
$self->{'type'} = $type; |
13
|
0
|
|
|
|
|
|
$self->{'identifier'} = $identifier; |
14
|
0
|
|
|
|
|
|
$self->{'probablity'} = $probability; |
15
|
0
|
|
|
|
|
|
$self->{'envelope'} = $envelope; |
16
|
0
|
|
|
|
|
|
$self->{'zerooverride'} = 0; #used for zeroing in commercials |
17
|
0
|
|
|
|
|
|
return $self; |
18
|
|
|
|
|
|
|
} |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
sub setenvel { |
21
|
0
|
|
|
0
|
0
|
|
my ($self, $type) = @_; |
22
|
0
|
|
|
|
|
|
print "set envelope $self->{'envelope'} to $type "; |
23
|
0
|
|
|
|
|
|
$self->{'envelope'} = $self->{'envelope'}{$type}; |
24
|
0
|
|
|
|
|
|
print "$self->{'envelope'}\n"; |
25
|
|
|
|
|
|
|
} |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
sub setenvelnew { |
28
|
0
|
|
|
0
|
0
|
|
my ($self, $envel) = @_; |
29
|
0
|
|
|
|
|
|
$self->{'envelope'} = $envel; |
30
|
|
|
|
|
|
|
} |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
sub buildcool { |
33
|
0
|
|
|
0
|
0
|
|
my ($self, $coolness, $maxlength) = @_; |
34
|
0
|
|
|
|
|
|
$coolness->applybunch($self, $maxlength); |
35
|
0
|
|
|
|
|
|
return $coolness; |
36
|
|
|
|
|
|
|
} |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
1; |