3 <h3 id="TOP">Index</h3>
5 <ul><li><a href="#NAME">NAME</a></li>
6 <li><a href="#SYNOPSIS">SYNOPSIS</a></li>
7 <li><a href="#DESCRIPTION">DESCRIPTION</a>
8 <ul><li><a href="#METHODS">METHODS </a></li>
11 <li><a href="#AUTHOR">AUTHOR</a></li>
12 <li><a href="#SEE_ALSO">SEE ALSO</a>
17 <h1 id="NAME">NAME</h1><p><a href="#TOP" class="toplink">Top</a></p>
18 <div id="NAME_CONTENT">
19 <p>SDL::MPEG - a SDL perl extension</p>
22 <h1 id="SYNOPSIS">SYNOPSIS</h1><p><a href="#TOP" class="toplink">Top</a></p>
23 <div id="SYNOPSIS_CONTENT">
24 <pre> $info = new SDL::MPEG -from => $mpeg;
29 <h1 id="DESCRIPTION">DESCRIPTION</h1><p><a href="#TOP" class="toplink">Top</a></p>
30 <div id="DESCRIPTION_CONTENT">
31 <p><code>SDL::MPEG</code> provides an interface to quering the status
32 of a SMPEG stream. </p>
35 <h2 id="METHODS">METHODS </h2>
36 <div id="METHODS_CONTENT">
38 <li><code>SDL::MPEG::has_audio</code> returns true if it has audio track </li>
39 <li><code>SDL::MPEG::has_video</code> returns true if it has a video track </li>
40 <li><code>SDL::MPEG::width</code> returns the width of the video in pixels </li>
41 <li><code>SDL::MPEG::height</code> returns the height of the video in pixels </li>
42 <li><code>SDL::MPEG::size</code> returns the total size of the clip in bytes </li>
43 <li><code>SDL::MPEG::offset</code> returns the offset into the clip in bytes </li>
44 <li><code>SDL::MPEG::frame</code> returns the offset into the clip in fames </li>
45 <li><code>SDL::MPEG::fps</code> returns the play rate in frames per second </li>
46 <li><code>SDL::MPEG::time</code> returns the current play time in seconds </li>
47 <li><code>SDL::MPEG::length</code> returns the total play time in seconds</li>
52 <h1 id="AUTHOR">AUTHOR</h1><p><a href="#TOP" class="toplink">Top</a></p>
53 <div id="AUTHOR_CONTENT">
54 <p>David J. Goehrig</p>
57 <h1 id="SEE_ALSO">SEE ALSO</h1><p><a href="#TOP" class="toplink">Top</a></p>
58 <div id="SEE_ALSO_CONTENT">
59 <p>perl(1) SDL::Video(3)</p>