File: structmpc__reader__t.html

package info (click to toggle)
libmpcdec 1.2.2-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k, lenny
  • size: 2,900 kB
  • ctags: 4,893
  • sloc: sh: 8,435; ansic: 2,735; cpp: 237; makefile: 88
file content (80 lines) | stat: -rw-r--r-- 5,640 bytes parent folder | download
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
<!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: mpc_reader_t Struct 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&nbsp;Page</a> | <a class="qindex" href="annotated.html">Class&nbsp;List</a> | <a class="qindex" href="dirs.html">Directories</a> | <a class="qindex" href="files.html">File&nbsp;List</a> | <a class="qindex" href="functions.html">Class&nbsp;Members</a> | <a class="qindex" href="globals.html">File&nbsp;Members</a> | <a class="qindex" href="pages.html">Related&nbsp;Pages</a></div>
<h1>mpc_reader_t Struct Reference</h1><!-- doxytag: class="mpc_reader_t" -->Stream reader interface structure.  
<a href="#_details">More...</a>
<p>
<code>#include &lt;<a class="el" href="reader_8h-source.html">reader.h</a>&gt;</code>
<p>
<a href="structmpc__reader__t-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0">
<tr><td></td></tr>
<tr><td colspan="2"><br><h2>Public Attributes</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="o0"></a><!-- doxytag: member="mpc_reader_t::read" ref="o0" args=")(void *t, void *ptr, mpc_int32_t size)" -->
mpc_int32_t(*&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structmpc__reader__t.html#o0">read</a> )(void *t, void *ptr, mpc_int32_t size)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Reads size bytes of data into buffer at ptr. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="o1"></a><!-- doxytag: member="mpc_reader_t::seek" ref="o1" args=")(void *t, mpc_int32_t offset)" -->
mpc_bool_t(*&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structmpc__reader__t.html#o1">seek</a> )(void *t, mpc_int32_t offset)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Seeks to byte position offset. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="o2"></a><!-- doxytag: member="mpc_reader_t::tell" ref="o2" args=")(void *t)" -->
mpc_int32_t(*&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structmpc__reader__t.html#o2">tell</a> )(void *t)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns the current byte offset in the stream. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="o3"></a><!-- doxytag: member="mpc_reader_t::get_size" ref="o3" args=")(void *t)" -->
mpc_int32_t(*&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structmpc__reader__t.html#o3">get_size</a> )(void *t)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns the total length of the source stream, in bytes. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="o4"></a><!-- doxytag: member="mpc_reader_t::canseek" ref="o4" args=")(void *t)" -->
mpc_bool_t(*&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structmpc__reader__t.html#o4">canseek</a> )(void *t)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">True if the stream is a seekable stream. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structmpc__reader__t.html#o5">data</a></td></tr>

</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
Stream reader interface structure. 
<p>
This is the structure you must supply to the musepack decoding library to feed it with raw data. Implement the five member functions to provide a functional reader. 
<p>

<p>
Definition at line <a class="el" href="reader_8h-source.html#l00045">45</a> of file <a class="el" href="reader_8h-source.html">reader.h</a>.<hr><h2>Member Data Documentation</h2>
<a class="anchor" name="o5"></a><!-- doxytag: member="mpc_reader_t::data" ref="o5" args="" --><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* <a class="el" href="structmpc__reader__t.html#o5">mpc_reader_t::data</a>          </td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Field that can be used to identify a particular instance of reader or carry along data associated with that reader. 
<p>
Definition at line <a class="el" href="reader_8h-source.html#l00063">63</a> of file <a class="el" href="reader_8h-source.html">reader.h</a>.
<p>
Referenced by <a class="el" href="idtag_8c-source.html#l00043">JumpID3v2()</a>, <a class="el" href="mpc__reader_8c-source.html#l00082">mpc_reader_setup_file_reader()</a>, and <a class="el" href="streaminfo_8c-source.html#l00204">mpc_streaminfo_read()</a>.    </td>
  </tr>
</table>
<hr>The documentation for this struct was generated from the following file:<ul>
<li>include/mpcdec/<a class="el" href="reader_8h-source.html">reader.h</a></ul>
<hr size="1"><address style="align: right;"><small>Generated on Sun Oct 23 16:35:24 2005 for libmpcdec by&nbsp;
<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>