File: mpcdec_8h.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 (472 lines) | stat: -rw-r--r-- 29,864 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
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
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
<!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: include/mpcdec/mpcdec.h 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&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>
<div class="nav">
<a class="el" href="dir_000000.html">include</a>&nbsp;&raquo&nbsp;<a class="el" href="dir_000001.html">mpcdec</a></div>
<h1>mpcdec.h File Reference</h1><code>#include &lt;stdio.h&gt;</code><br>
<code>#include &lt;stdlib.h&gt;</code><br>
<code>#include &lt;string.h&gt;</code><br>
<code>#include &quot;mpcdec/config_types.h&quot;</code><br>
<code>#include &quot;<a class="el" href="decoder_8h-source.html">decoder.h</a>&quot;</code><br>
<code>#include &quot;<a class="el" href="math_8h-source.html">math.h</a>&quot;</code><br>
<code>#include &quot;<a class="el" href="reader_8h-source.html">reader.h</a>&quot;</code><br>
<code>#include &quot;<a class="el" href="streaminfo_8h-source.html">streaminfo.h</a>&quot;</code><br>

<p>
<a href="mpcdec_8h-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>Defines</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a0"></a><!-- doxytag: member="mpcdec.h::ERROR_CODE_OK" ref="a0" args="" -->
#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="mpcdec_8h.html#a0">ERROR_CODE_OK</a>&nbsp;&nbsp;&nbsp;0</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a1"></a><!-- doxytag: member="mpcdec.h::ERROR_CODE_FILE" ref="a1" args="" -->
#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="mpcdec_8h.html#a1">ERROR_CODE_FILE</a>&nbsp;&nbsp;&nbsp;-1</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a2"></a><!-- doxytag: member="mpcdec.h::ERROR_CODE_SV7BETA" ref="a2" args="" -->
#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="mpcdec_8h.html#a2">ERROR_CODE_SV7BETA</a>&nbsp;&nbsp;&nbsp;1</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a3"></a><!-- doxytag: member="mpcdec.h::ERROR_CODE_CBR" ref="a3" args="" -->
#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="mpcdec_8h.html#a3">ERROR_CODE_CBR</a>&nbsp;&nbsp;&nbsp;2</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a4"></a><!-- doxytag: member="mpcdec.h::ERROR_CODE_IS" ref="a4" args="" -->
#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="mpcdec_8h.html#a4">ERROR_CODE_IS</a>&nbsp;&nbsp;&nbsp;3</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a5"></a><!-- doxytag: member="mpcdec.h::ERROR_CODE_BLOCKSIZE" ref="a5" args="" -->
#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="mpcdec_8h.html#a5">ERROR_CODE_BLOCKSIZE</a>&nbsp;&nbsp;&nbsp;4</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a6"></a><!-- doxytag: member="mpcdec.h::ERROR_CODE_INVALIDSV" ref="a6" args="" -->
#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="mpcdec_8h.html#a6">ERROR_CODE_INVALIDSV</a>&nbsp;&nbsp;&nbsp;5</td></tr>

<tr><td colspan="2"><br><h2>Enumerations</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">enum &nbsp;</td><td class="memItemRight" valign="bottom">{ <b>MPC_FRAME_LENGTH</b> =  (36 * 32), 
<a class="el" href="mpcdec_8h.html#a21a8">MPC_DECODER_BUFFER_LENGTH</a> =  4 * MPC_FRAME_LENGTH
 }</td></tr>

<tr><td colspan="2"><br><h2>Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="mpcdec_8h.html#a9">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&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="mpcdec_8h.html#a10">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&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="mpcdec_8h.html#a11">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&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="mpcdec_8h.html#a12">mpc_streaminfo_get_length_samples</a> (<a class="el" href="structmpc__streaminfo.html">mpc_streaminfo</a> *si)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="mpcdec_8h.html#a13">mpc_decoder_setup</a> (<a class="el" href="structmpc__decoder__t.html">mpc_decoder</a> *d, <a class="el" href="structmpc__reader__t.html">mpc_reader</a> *r)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">mpc_bool_t&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="mpcdec_8h.html#a14">mpc_decoder_initialize</a> (<a class="el" href="structmpc__decoder__t.html">mpc_decoder</a> *d, <a class="el" href="structmpc__streaminfo.html">mpc_streaminfo</a> *si)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a15"></a><!-- doxytag: member="mpcdec.h::mpc_decoder_set_streaminfo" ref="a15" args="(mpc_decoder *d, mpc_streaminfo *si)" -->
void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="mpcdec_8h.html#a15">mpc_decoder_set_streaminfo</a> (<a class="el" href="structmpc__decoder__t.html">mpc_decoder</a> *d, <a class="el" href="structmpc__streaminfo.html">mpc_streaminfo</a> *si)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="mpcdec_8h.html#a16">mpc_decoder_scale_output</a> (<a class="el" href="structmpc__decoder__t.html">mpc_decoder</a> *d, double scale_factor)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">mpc_uint32_t&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="mpcdec_8h.html#a17">mpc_decoder_decode</a> (<a class="el" href="structmpc__decoder__t.html">mpc_decoder</a> *d, <a class="el" href="math_8h.html#a16">MPC_SAMPLE_FORMAT</a> *buffer, mpc_uint32_t *vbr_update_acc, mpc_uint32_t *vbr_update_bits)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a18"></a><!-- doxytag: member="mpcdec.h::mpc_decoder_decode_frame" ref="a18" args="(mpc_decoder *d, mpc_uint32_t *in_buffer, mpc_uint32_t in_len, MPC_SAMPLE_FORMAT *out_buffer)" -->
mpc_uint32_t&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="mpcdec_8h.html#a18">mpc_decoder_decode_frame</a> (<a class="el" href="structmpc__decoder__t.html">mpc_decoder</a> *d, mpc_uint32_t *in_buffer, mpc_uint32_t in_len, <a class="el" href="math_8h.html#a16">MPC_SAMPLE_FORMAT</a> *out_buffer)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a19"></a><!-- doxytag: member="mpcdec.h::mpc_decoder_seek_sample" ref="a19" args="(mpc_decoder *d, mpc_int64_t destsample)" -->
mpc_bool_t&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="mpcdec_8h.html#a19">mpc_decoder_seek_sample</a> (<a class="el" href="structmpc__decoder__t.html">mpc_decoder</a> *d, mpc_int64_t destsample)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Seeks to the specified sample in the source stream. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a20"></a><!-- doxytag: member="mpcdec.h::mpc_decoder_seek_seconds" ref="a20" args="(mpc_decoder *d, double seconds)" -->
mpc_bool_t&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="mpcdec_8h.html#a20">mpc_decoder_seek_seconds</a> (<a class="el" href="structmpc__decoder__t.html">mpc_decoder</a> *d, double seconds)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Seeks to specified position in seconds in the source stream. <br></td></tr>
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
Top level include file for libmpcdec. 
<p>
Definition in file <a class="el" href="mpcdec_8h-source.html">mpcdec.h</a>.<hr><h2>Enumeration Type Documentation</h2>
<a class="anchor" name="a21"></a><!-- doxytag: member="mpcdec.h::@0" ref="a21" 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">anonymous enum          </td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
<dl compact><dt><b>Enumerator: </b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"><em><a class="anchor" name="a21a8"></a><!-- doxytag: member="MPC_DECODER_BUFFER_LENGTH" ref="a21a8" args="" -->MPC_DECODER_BUFFER_LENGTH</em>&nbsp;</td><td>
samples per mpc frame </td></tr>
</table>
</dl>

<p>
Definition at line <a class="el" href="mpcdec_8h-source.html#l00060">60</a> of file <a class="el" href="mpcdec_8h-source.html">mpcdec.h</a>.    </td>
  </tr>
</table>
<hr><h2>Function Documentation</h2>
<a class="anchor" name="a17"></a><!-- doxytag: member="mpcdec.h::mpc_decoder_decode" ref="a17" args="(mpc_decoder *d, MPC_SAMPLE_FORMAT *buffer, mpc_uint32_t *vbr_update_acc, mpc_uint32_t *vbr_update_bits)" --><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_uint32_t mpc_decoder_decode           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top"><a class="el" href="structmpc__decoder__t.html">mpc_decoder</a> *&nbsp;</td>
          <td class="mdname" nowrap> <em>d</em>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td class="md"></td>
          <td class="md" nowrap><a class="el" href="math_8h.html#a16">MPC_SAMPLE_FORMAT</a> *&nbsp;</td>
          <td class="mdname" nowrap> <em>buffer</em>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td class="md"></td>
          <td class="md" nowrap>mpc_uint32_t *&nbsp;</td>
          <td class="mdname" nowrap> <em>vbr_update_acc</em>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td class="md"></td>
          <td class="md" nowrap>mpc_uint32_t *&nbsp;</td>
          <td class="mdname" nowrap> <em>vbr_update_bits</em></td>
        </tr>
        <tr>
          <td class="md"></td>
          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Actually reads data from previously initialized stream. Call this iteratively to decode the mpc stream. <dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>buffer</em>&nbsp;</td><td>destination buffer for decoded samples </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>vbr_update_acc\xrefitem</em>&nbsp;</td><td>todo 1</td></tr>
  </table>
</dl>

<p>
Definition at line <a class="el" href="mpc__decoder_8c-source.html#l00453">453</a> of file <a class="el" href="mpc__decoder_8c-source.html">mpc_decoder.c</a>.
<p>
References <a class="el" href="decoder_8h-source.html#l00071">mpc_decoder_t::FrameWasValid</a>, <a class="el" href="mpc__decoder_8c-source.html#l01373">mpc_decoder_update_buffer()</a>, <a class="el" href="decoder_8h-source.html#l00063">mpc_decoder_t::pos</a>, and <a class="el" href="decoder_8h-source.html#l00065">mpc_decoder_t::Zaehler</a>.    </td>
  </tr>
</table>
<a class="anchor" name="a14"></a><!-- doxytag: member="mpcdec.h::mpc_decoder_initialize" ref="a14" args="(mpc_decoder *d, 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_bool_t mpc_decoder_initialize           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top"><a class="el" href="structmpc__decoder__t.html">mpc_decoder</a> *&nbsp;</td>
          <td class="mdname" nowrap> <em>d</em>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td class="md"></td>
          <td class="md" nowrap><a class="el" href="structmpc__streaminfo.html">mpc_streaminfo</a> *&nbsp;</td>
          <td class="mdname" nowrap> <em>si</em></td>
        </tr>
        <tr>
          <td class="md"></td>
          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Initializes mpc decoder with the supplied stream info parameters. Call this next after calling mpc_decoder_setup. <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>&nbsp;</td><td>streaminfo structure indicating format of source stream </td></tr>
  </table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>TRUE if decoder was initalized successfully, FALSE otherwise </dd></dl>

<p>
Definition at line <a class="el" href="mpc__decoder_8c-source.html#l01225">1225</a> of file <a class="el" href="mpc__decoder_8c-source.html">mpc_decoder.c</a>.
<p>
References <a class="el" href="decoder_8h-source.html#l00062">mpc_decoder_t::dword</a>, <a class="el" href="mpc__decoder_8c-source.html#l01208">mpc_decoder_set_streaminfo()</a>, <a class="el" href="decoder_8h-source.html#l00080">mpc_decoder_t::MPCHeaderPos</a>, <a class="el" href="decoder_8h-source.html#l00063">mpc_decoder_t::pos</a>, <a class="el" href="decoder_8h-source.html#l00064">mpc_decoder_t::Speicher</a>, <a class="el" href="decoder_8h-source.html#l00077">mpc_decoder_t::StreamVersion</a>, and <a class="el" href="decoder_8h-source.html#l00065">mpc_decoder_t::Zaehler</a>.    </td>
  </tr>
</table>
<a class="anchor" name="a16"></a><!-- doxytag: member="mpcdec.h::mpc_decoder_scale_output" ref="a16" args="(mpc_decoder *d, double scale_factor)" --><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_decoder_scale_output           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top"><a class="el" href="structmpc__decoder__t.html">mpc_decoder</a> *&nbsp;</td>
          <td class="mdname" nowrap> <em>d</em>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td class="md"></td>
          <td class="md" nowrap>double&nbsp;</td>
          <td class="mdname" nowrap> <em>scale_factor</em></td>
        </tr>
        <tr>
          <td class="md"></td>
          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Sets decoder sample scaling factor. All decoded samples will be multiplied by this factor. <dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>scale_factor</em>&nbsp;</td><td>multiplicative scaling factor </td></tr>
  </table>
</dl>

<p>
Definition at line <a class="el" href="requant_8c-source.html#l00089">89</a> of file <a class="el" href="requant_8c-source.html">requant.c</a>.
<p>
References <a class="el" href="math_8h-source.html#l00043">MPC_FIXED_POINT_SHIFT</a>, and <a class="el" href="requant_8c-source.html#l00086">SET_SCF</a>.
<p>
Referenced by <a class="el" href="requant_8c-source.html#l00148">mpc_decoder_initialisiere_quantisierungstabellen()</a>.    </td>
  </tr>
</table>
<a class="anchor" name="a13"></a><!-- doxytag: member="mpcdec.h::mpc_decoder_setup" ref="a13" args="(mpc_decoder *d, 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">void mpc_decoder_setup           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top"><a class="el" href="structmpc__decoder__t.html">mpc_decoder</a> *&nbsp;</td>
          <td class="mdname" nowrap> <em>d</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> *&nbsp;</td>
          <td class="mdname" nowrap> <em>r</em></td>
        </tr>
        <tr>
          <td class="md"></td>
          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Sets up decoder library. Call this first when preparing to decode an mpc stream. <dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>r</em>&nbsp;</td><td>reader that will supply raw data to the decoder </td></tr>
  </table>
</dl>

<p>
Definition at line <a class="el" href="mpc__decoder_8c-source.html#l01139">1139</a> of file <a class="el" href="mpc__decoder_8c-source.html">mpc_decoder.c</a>.
<p>
References <a class="el" href="decoder_8h-source.html#l00089">mpc_decoder_t::__r1</a>, <a class="el" href="decoder_8h-source.html#l00090">mpc_decoder_t::__r2</a>, <a class="el" href="decoder_8h-source.html#l00070">mpc_decoder_t::ActDecodePos</a>, <a class="el" href="decoder_8h-source.html#l00073">mpc_decoder_t::DecodedFrames</a>, <a class="el" href="decoder_8h-source.html#l00062">mpc_decoder_t::dword</a>, <a class="el" href="decoder_8h-source.html#l00115">mpc_decoder_t::Entropie_1</a>, <a class="el" href="decoder_8h-source.html#l00116">mpc_decoder_t::Entropie_2</a>, <a class="el" href="decoder_8h-source.html#l00117">mpc_decoder_t::Entropie_3</a>, <a class="el" href="decoder_8h-source.html#l00118">mpc_decoder_t::Entropie_4</a>, <a class="el" href="decoder_8h-source.html#l00119">mpc_decoder_t::Entropie_5</a>, <a class="el" href="decoder_8h-source.html#l00120">mpc_decoder_t::Entropie_6</a>, <a class="el" href="decoder_8h-source.html#l00121">mpc_decoder_t::Entropie_7</a>, <a class="el" href="decoder_8h-source.html#l00084">mpc_decoder_t::EQ_activated</a>, <a class="el" href="decoder_8h-source.html#l00071">mpc_decoder_t::FrameWasValid</a>, <a class="el" href="decoder_8h-source.html#l00069">mpc_decoder_t::FwdJumpInfo</a>, <a class="el" href="decoder_8h-source.html#l00099">mpc_decoder_t::HuffQ</a>, <a class="el" href="decoder_8h-source.html#l00101">mpc_decoder_t::HuffQ1</a>, <a class="el" href="decoder_8h-source.html#l00102">mpc_decoder_t::HuffQ2</a>, <a class="el" href="decoder_8h-source.html#l00103">mpc_decoder_t::HuffQ3</a>, <a class="el" href="decoder_8h-source.html#l00104">mpc_decoder_t::HuffQ4</a>, <a class="el" href="decoder_8h-source.html#l00105">mpc_decoder_t::HuffQ5</a>, <a class="el" href="decoder_8h-source.html#l00106">mpc_decoder_t::HuffQ6</a>, <a class="el" href="decoder_8h-source.html#l00107">mpc_decoder_t::HuffQ7</a>, <a class="el" href="decoder_8h-source.html#l00081">mpc_decoder_t::LastValidSamples</a>, <a class="el" href="decoder_8h-source.html#l00079">mpc_decoder_t::Max_Band</a>, <a class="el" href="huffsv46_8c-source.html#l00043">mpc_decoder_init_huffman_sv6()</a>, <a class="el" href="huffsv7_8c-source.html#l00043">mpc_decoder_init_huffman_sv7()</a>, <a class="el" href="requant_8c-source.html#l00148">mpc_decoder_initialisiere_quantisierungstabellen()</a>, <a class="el" href="decoder_8h-source.html#l00080">mpc_decoder_t::MPCHeaderPos</a>, <a class="el" href="decoder_8h-source.html#l00078">mpc_decoder_t::MS_used</a>, <a class="el" href="decoder_8h-source.html#l00074">mpc_decoder_t::OverallFrames</a>, <a class="el" href="decoder_8h-source.html#l00063">mpc_decoder_t::pos</a>, <a class="el" href="decoder_8h-source.html#l00057">mpc_decoder_t::r</a>, <a class="el" href="decoder_8h-source.html#l00108">mpc_decoder_t::SampleHuff</a>, <a class="el" href="decoder_8h-source.html#l00075">mpc_decoder_t::SampleRate</a>, <a class="el" href="decoder_8h-source.html#l00077">mpc_decoder_t::StreamVersion</a>, <a class="el" href="decoder_8h-source.html#l00082">mpc_decoder_t::TrueGaplessPresent</a>, <a class="el" href="decoder_8h-source.html#l00086">mpc_decoder_t::WordsRead</a>, and <a class="el" href="decoder_8h-source.html#l00065">mpc_decoder_t::Zaehler</a>.    </td>
  </tr>
</table>
<a class="anchor" name="a11"></a><!-- doxytag: member="mpcdec.h::mpc_streaminfo_get_length" ref="a11" 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">(&nbsp;</td>
          <td class="md" nowrap valign="top"><a class="el" href="structmpc__streaminfo.html">mpc_streaminfo</a> *&nbsp;</td>
          <td class="mdname1" valign="top" nowrap> <em>si</em>          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
  <tr>
    <td>
      &nbsp;
    </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="a12"></a><!-- doxytag: member="mpcdec.h::mpc_streaminfo_get_length_samples" ref="a12" 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">(&nbsp;</td>
          <td class="md" nowrap valign="top"><a class="el" href="structmpc__streaminfo.html">mpc_streaminfo</a> *&nbsp;</td>
          <td class="mdname1" valign="top" nowrap> <em>si</em>          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
  <tr>
    <td>
      &nbsp;
    </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="a9"></a><!-- doxytag: member="mpcdec.h::mpc_streaminfo_init" ref="a9" 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">(&nbsp;</td>
          <td class="md" nowrap valign="top"><a class="el" href="structmpc__streaminfo.html">mpc_streaminfo</a> *&nbsp;</td>
          <td class="mdname1" valign="top" nowrap> <em>si</em>          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
  <tr>
    <td>
      &nbsp;
    </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>&nbsp;</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="a10"></a><!-- doxytag: member="mpcdec.h::mpc_streaminfo_read" ref="a10" 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">(&nbsp;</td>
          <td class="md" nowrap valign="top"><a class="el" href="structmpc__streaminfo.html">mpc_streaminfo</a> *&nbsp;</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> *&nbsp;</td>
          <td class="mdname" nowrap> <em>r</em></td>
        </tr>
        <tr>
          <td class="md"></td>
          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
  <tr>
    <td>
      &nbsp;
    </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>&nbsp;</td><td>streaminfo pointer to which info will be written </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>r</em>&nbsp;</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&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>