1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>libmpcdec: src/streaminfo.c File Reference</title>
<link href="custom.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.4.4 -->
<div class="qindex"><a class="qindex" href="index.html">Main Page</a> | <a class="qindex" href="annotated.html">Class List</a> | <a class="qindex" href="dirs.html">Directories</a> | <a class="qindex" href="files.html">File List</a> | <a class="qindex" href="functions.html">Class Members</a> | <a class="qindex" href="globals.html">File Members</a> | <a class="qindex" href="pages.html">Related Pages</a></div>
<div class="nav">
<a class="el" href="dir_000002.html">src</a></div>
<h1>streaminfo.c File Reference</h1><code>#include <<a class="el" href="mpcdec_8h-source.html">mpcdec/mpcdec.h</a>></code><br>
<code>#include <<a class="el" href="internal_8h-source.html">mpcdec/internal.h</a>></code><br>
<p>
<a href="streaminfo_8c-source.html">Go to the source code of this file.</a><table border="0" cellpadding="0" cellspacing="0">
<tr><td></td></tr>
<tr><td colspan="2"><br><h2>Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="streaminfo_8c.html#a1">mpc_streaminfo_init</a> (<a class="el" href="structmpc__streaminfo.html">mpc_streaminfo</a> *si)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">mpc_int32_t </td><td class="memItemRight" valign="bottom"><a class="el" href="streaminfo_8c.html#a5">mpc_streaminfo_read</a> (<a class="el" href="structmpc__streaminfo.html">mpc_streaminfo</a> *si, <a class="el" href="structmpc__reader__t.html">mpc_reader</a> *r)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">double </td><td class="memItemRight" valign="bottom"><a class="el" href="streaminfo_8c.html#a6">mpc_streaminfo_get_length</a> (<a class="el" href="structmpc__streaminfo.html">mpc_streaminfo</a> *si)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">mpc_int64_t </td><td class="memItemRight" valign="bottom"><a class="el" href="streaminfo_8c.html#a7">mpc_streaminfo_get_length_samples</a> (<a class="el" href="structmpc__streaminfo.html">mpc_streaminfo</a> *si)</td></tr>
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
Implementation of streaminfo reading functions.
<p>
Definition in file <a class="el" href="streaminfo_8c-source.html">streaminfo.c</a>.<hr><h2>Function Documentation</h2>
<a class="anchor" name="a6"></a><!-- doxytag: member="streaminfo.c::mpc_streaminfo_get_length" ref="a6" args="(mpc_streaminfo *si)" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">double mpc_streaminfo_get_length </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top"><a class="el" href="structmpc__streaminfo.html">mpc_streaminfo</a> * </td>
<td class="mdname1" valign="top" nowrap> <em>si</em> </td>
<td class="md" valign="top"> ) </td>
<td class="md" nowrap></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
</td>
<td>
<p>
Gets length of stream si, in seconds. <dl compact><dt><b>Returns:</b></dt><dd>length of stream in seconds </dd></dl>
<p>
Definition at line <a class="el" href="streaminfo_8c-source.html#l00265">265</a> of file <a class="el" href="streaminfo_8c-source.html">streaminfo.c</a>.
<p>
References <a class="el" href="streaminfo_8c-source.html#l00272">mpc_streaminfo_get_length_samples()</a>. </td>
</tr>
</table>
<a class="anchor" name="a7"></a><!-- doxytag: member="streaminfo.c::mpc_streaminfo_get_length_samples" ref="a7" args="(mpc_streaminfo *si)" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">mpc_int64_t mpc_streaminfo_get_length_samples </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top"><a class="el" href="structmpc__streaminfo.html">mpc_streaminfo</a> * </td>
<td class="mdname1" valign="top" nowrap> <em>si</em> </td>
<td class="md" valign="top"> ) </td>
<td class="md" nowrap></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
</td>
<td>
<p>
Returns length of stream si, in samples. <dl compact><dt><b>Returns:</b></dt><dd>length of stream in samples </dd></dl>
<p>
Definition at line <a class="el" href="streaminfo_8c-source.html#l00272">272</a> of file <a class="el" href="streaminfo_8c-source.html">streaminfo.c</a>.
<p>
References <a class="el" href="streaminfo_8h-source.html#l00055">mpc_streaminfo::frames</a>, <a class="el" href="streaminfo_8h-source.html#l00075">mpc_streaminfo::is_true_gapless</a>, and <a class="el" href="streaminfo_8h-source.html#l00076">mpc_streaminfo::last_frame_samples</a>.
<p>
Referenced by <a class="el" href="streaminfo_8c-source.html#l00265">mpc_streaminfo_get_length()</a>. </td>
</tr>
</table>
<a class="anchor" name="a1"></a><!-- doxytag: member="streaminfo.c::mpc_streaminfo_init" ref="a1" args="(mpc_streaminfo *si)" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">void mpc_streaminfo_init </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top"><a class="el" href="structmpc__streaminfo.html">mpc_streaminfo</a> * </td>
<td class="mdname1" valign="top" nowrap> <em>si</em> </td>
<td class="md" valign="top"> ) </td>
<td class="md" nowrap></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
</td>
<td>
<p>
Initializes a streaminfo structure. <dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>si</em> </td><td>streaminfo structure to initialize </td></tr>
</table>
</dl>
<p>
Definition at line <a class="el" href="streaminfo_8c-source.html#l00056">56</a> of file <a class="el" href="streaminfo_8c-source.html">streaminfo.c</a>. </td>
</tr>
</table>
<a class="anchor" name="a5"></a><!-- doxytag: member="streaminfo.c::mpc_streaminfo_read" ref="a5" args="(mpc_streaminfo *si, mpc_reader *r)" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">mpc_int32_t mpc_streaminfo_read </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top"><a class="el" href="structmpc__streaminfo.html">mpc_streaminfo</a> * </td>
<td class="mdname" nowrap> <em>si</em>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td class="md"></td>
<td class="md" nowrap><a class="el" href="structmpc__reader__t.html">mpc_reader</a> * </td>
<td class="mdname" nowrap> <em>r</em></td>
</tr>
<tr>
<td class="md"></td>
<td class="md">) </td>
<td class="md" colspan="2"></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
</td>
<td>
<p>
Reads streaminfo header from the mpc stream supplied by r. <dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>si</em> </td><td>streaminfo pointer to which info will be written </td></tr>
<tr><td valign="top"></td><td valign="top"><em>r</em> </td><td>stream reader to supply raw data </td></tr>
</table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>error code </dd></dl>
<p>
Definition at line <a class="el" href="streaminfo_8c-source.html#l00204">204</a> of file <a class="el" href="streaminfo_8c-source.html">streaminfo.c</a>.
<p>
References <a class="el" href="streaminfo_8h-source.html#l00054">mpc_streaminfo::average_bitrate</a>, <a class="el" href="reader_8h-source.html#l00063">mpc_reader_t::data</a>, <a class="el" href="mpcdec_8h-source.html#l00067">ERROR_CODE_FILE</a>, <a class="el" href="streaminfo_8h-source.html#l00055">mpc_streaminfo::frames</a>, <a class="el" href="structmpc__reader__t.html#o3">mpc_reader_t::get_size</a>, <a class="el" href="streaminfo_8h-source.html#l00051">mpc_streaminfo::header_position</a>, <a class="el" href="idtag_8c-source.html#l00043">JumpID3v2()</a>, <a class="el" href="streaminfo_8h-source.html#l00056">mpc_streaminfo::pcm_samples</a>, <a class="el" href="structmpc__reader__t.html#o0">mpc_reader_t::read</a>, <a class="el" href="streaminfo_8h-source.html#l00049">mpc_streaminfo::sample_freq</a>, <a class="el" href="structmpc__reader__t.html#o1">mpc_reader_t::seek</a>, <a class="el" href="streaminfo_8h-source.html#l00052">mpc_streaminfo::stream_version</a>, <a class="el" href="streaminfo_8h-source.html#l00081">mpc_streaminfo::tag_offset</a>, and <a class="el" href="streaminfo_8h-source.html#l00082">mpc_streaminfo::total_file_length</a>. </td>
</tr>
</table>
<hr size="1"><address style="align: right;"><small>Generated on Sun Oct 23 16:35:24 2005 for libmpcdec by
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.4 </small></address>
</body>
</html>
|