| File-Headerinfo documentation | Contained in the File-Headerinfo distribution. |
File::Headerinfo::SWF - an extractor of useful information from shockwave files.
File::Headerinfo::SWF uses SWF::Header to read the headers of .swf files and extract useful information like their duration, dimensions and framerate.
Copyright 2004 William Ross (wross@cpan.org)
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
| File-Headerinfo documentation | Contained in the File-Headerinfo distribution. |
package File::Headerinfo::SWF; use strict; use base qw(File::Headerinfo); use SWF::Header;
sub parse_file { my $self = shift; my $header = SWF::Header->read_file( $self->path ); $self->filetype('swf'); $self->width($header->{width}); $self->height($header->{height}); $self->duration($header->{duration}); $self->fps($header->{rate}); $self->filesize($header->{filelen}); $self->version($header->{version}); }
1;