| 1 | # $Id: PSU.pm 2187 2006-08-16 19:34:38Z 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 program 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::PSU; | ||
| 12 | use Locale::TextDomain qw (video.dvdrip); | ||
| 13 | |||
| 14 | use base Video::DVDRip::Base; | ||
| 15 | |||
| 16 | use Carp; | ||
| 17 | use strict; | ||
| 18 | |||
| 19 | sub nr { shift->{nr} } | ||
| 20 | sub frames { shift->{frames} } | ||
| 21 | |||
| 22 | sub set_nr { shift->{nr} = $_[1] } | ||
| 23 | sub set_frames { shift->{frames} = $_[1] } | ||
| 24 | |||
| 25 | sub new { | ||
| 26 | my $class = shift; | ||
| 27 | my %par = @_; | ||
| 28 | my ( $nr, $frames ) = @par{ 'nr', 'frames' }; | ||
| 29 | |||
| 30 | my $self = bless { | ||
| 31 | nr => $nr, | ||
| 32 | frames => $frames, | ||
| 33 | }, $class; | ||
| 34 | |||
| 35 | return $self; | ||
| 36 | } | ||
| 37 | |||
| 38 | 1; |