X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FSDL%2FMPEG.pm;h=6ef546b9f0d635a99bcf647dd599e5c5ca3c843f;hb=896b04ee008898e1c1edbdd432bedaa8643400dc;hp=bf16eab5b0fb81ae5ec4a62df047b52c7c92361a;hpb=084b921f85583af6a5b82572f6a561c94dd2fb5d;p=sdlgit%2FSDL_perl.git diff --git a/lib/SDL/MPEG.pm b/lib/SDL/MPEG.pm index bf16eab..6ef546b 100644 --- a/lib/SDL/MPEG.pm +++ b/lib/SDL/MPEG.pm @@ -1,9 +1,32 @@ +#!/usr/bin/env perl # -# MPEG.pm +# MPEG.pm # -# A package for manipulating MPEG video +# Copyright (C) 2005 David J. Goehrig +# +# ------------------------------------------------------------------------------ +# +# This library is free software; you can redistribute it and/or +# modify it under the terms of the GNU Lesser General Public +# License as published by the Free Software Foundation; either +# version 2.1 of the License, or (at your option) any later version. +# +# This library is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Lesser General Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public +# License along with this library; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA +# +# ------------------------------------------------------------------------------ +# +# Please feel free to send questions, suggestions or improvements to: +# +# David J. Goehrig +# dgoehrig@cpan.org # -# Copyright (C) 2004 David J. Goehrig package SDL::MPEG; @@ -77,78 +100,3 @@ sub length { } 1; - -__END__; - -=pod - - -=head1 NAME - -SDL::MPEG - a SDL perl extension - -=head1 SYNOPSIS - - $info = new SDL::MPEG -from => $mpeg; - -=head1 DESCRIPTION - -C provides an interface to quering the status -of a SMPEG stream. - -=head2 METHODS - -=over 4 - -=item * - -C returns true if it has audio track - -=item * - -C returns true if it has a video track - -=item * - -C returns the width of the video in pixels - -=item * - -C returns the height of the video in pixels - -=item * - -C returns the total size of the clip in bytes - -=item * - -C returns the offset into the clip in bytes - -=item * - -C returns the offset into the clip in fames - -=item * - -C returns the play rate in frames per second - -=item * - -C returns the current play time in seconds - -=item * - -C returns the total play time in seconds - -=back - -=head1 AUTHOR - -David J. Goehrig - -=head1 SEE ALSO - -perl(1) SDL::Video(3) - -=cut -