183 lines
7.7 KiB
HTML
Executable File
183 lines
7.7 KiB
HTML
Executable File
<!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>libmusepack: src/requant.c File Reference</title>
|
|
<link href="custom.css" rel="stylesheet" type="text/css">
|
|
</head><body>
|
|
<!-- Generated by Doxygen 1.4.1 -->
|
|
<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="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>requant.c File Reference</h1><code>#include "<a class="el" href="musepack_8h-source.html">musepack/musepack.h</a>"</code><br>
|
|
<code>#include "musepack/internal.h"</code><br>
|
|
|
|
<p>
|
|
<a href="requant_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>Defines</h2></td></tr>
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a0" doxytag="requant.c::_"></a>
|
|
#define </td><td class="memItemRight" valign="bottom"><b>_</b>(X) MAKE_MPC_SAMPLE_EX(X,14)</td></tr>
|
|
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a1" doxytag="requant.c::SET_SCF"></a>
|
|
#define </td><td class="memItemRight" valign="bottom"><b>SET_SCF</b>(N, X) d->SCF[N] = MAKE_MPC_SAMPLE_EX(X,SCF_shift[N] = (unsigned char)find_shift(X));</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="requant_8c.html#a5">mpc_decoder_scale_output</a> (mpc_decoder *d, double factor)</td></tr>
|
|
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a7" doxytag="requant.c::mpc_decoder_initialisiere_quantisierungstabellen"></a>
|
|
void </td><td class="memItemRight" valign="bottom"><b>mpc_decoder_initialisiere_quantisierungstabellen</b> (mpc_decoder *d, double scale_factor)</td></tr>
|
|
|
|
<tr><td colspan="2"><br><h2>Variables</h2></td></tr>
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top">const mpc_uint32_t </td><td class="memItemRight" valign="bottom"><b>Res_bit</b> [18]</td></tr>
|
|
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top">const MPC_SAMPLE_FORMAT </td><td class="memItemRight" valign="bottom"><b>__Cc</b> [1+18]</td></tr>
|
|
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top">const mpc_int32_t </td><td class="memItemRight" valign="bottom"><b>__Dc</b> [1+18]</td></tr>
|
|
|
|
</table>
|
|
<hr><a name="_details"></a><h2>Detailed Description</h2>
|
|
Requantization function implementations. <dl compact><dt><b><a class="el" href="todo.html#_todo000003">Todo:</a></b></dt><dd>document me</dd></dl>
|
|
|
|
<p>
|
|
Definition in file <a class="el" href="requant_8c-source.html">requant.c</a>.<hr><h2>Function Documentation</h2>
|
|
<a class="anchor" name="a5" doxytag="requant.c::mpc_decoder_scale_output"></a><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">( </td>
|
|
<td class="md" nowrap valign="top">mpc_decoder * </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 </td>
|
|
<td class="mdname" nowrap> <em>scale_factor</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>
|
|
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> </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>. </td>
|
|
</tr>
|
|
</table>
|
|
<hr><h2>Variable Documentation</h2>
|
|
<a class="anchor" name="a3" doxytag="requant.c::__Cc"></a><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">const MPC_SAMPLE_FORMAT __Cc[1+18] </td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<table cellspacing="5" cellpadding="0" border="0">
|
|
<tr>
|
|
<td>
|
|
|
|
</td>
|
|
<td>
|
|
|
|
<p>
|
|
<b>Initial value:</b><div class="fragment"><pre class="fragment"> {
|
|
_(111.285962475327f),
|
|
_(65536.000000000000f), _(21845.333333333332f), _(13107.200000000001f), _(9362.285714285713f),
|
|
_(7281.777777777777f), _(4369.066666666666f), _(2114.064516129032f), _(1040.253968253968f),
|
|
_(516.031496062992f), _(257.003921568627f), _(128.250489236790f), _(64.062561094819f),
|
|
_(32.015632633121f), _(16.003907203907f), _(8.000976681723f), _(4.000244155527f),
|
|
_(2.000061037018f), _(1.000015259021f)
|
|
}
|
|
</pre></div>
|
|
<p>
|
|
Definition at line <a class="el" href="requant_8c-source.html#l00053">53</a> of file <a class="el" href="requant_8c-source.html">requant.c</a>. </td>
|
|
</tr>
|
|
</table>
|
|
<a class="anchor" name="a4" doxytag="requant.c::__Dc"></a><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">const mpc_int32_t __Dc[1+18] </td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<table cellspacing="5" cellpadding="0" border="0">
|
|
<tr>
|
|
<td>
|
|
|
|
</td>
|
|
<td>
|
|
|
|
<p>
|
|
<b>Initial value:</b><div class="fragment"><pre class="fragment"> {
|
|
2,
|
|
0, 1, 2, 3, 4, 7, 15, 31, 63,
|
|
127, 255, 511, 1023, 2047, 4095, 8191, 16383, 32767
|
|
}
|
|
</pre></div>
|
|
<p>
|
|
Definition at line <a class="el" href="requant_8c-source.html#l00066">66</a> of file <a class="el" href="requant_8c-source.html">requant.c</a>. </td>
|
|
</tr>
|
|
</table>
|
|
<a class="anchor" name="a2" doxytag="requant.c::Res_bit"></a><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">const mpc_uint32_t Res_bit[18] </td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<table cellspacing="5" cellpadding="0" border="0">
|
|
<tr>
|
|
<td>
|
|
|
|
</td>
|
|
<td>
|
|
|
|
<p>
|
|
<b>Initial value:</b><div class="fragment"><pre class="fragment"> {
|
|
0, 0, 0, 0, 0, 0, 0, 0, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16
|
|
}
|
|
</pre></div>
|
|
<p>
|
|
Definition at line <a class="el" href="requant_8c-source.html#l00044">44</a> of file <a class="el" href="requant_8c-source.html">requant.c</a>. </td>
|
|
</tr>
|
|
</table>
|
|
<hr size="1"><address style="align: right;"><small>Generated on Sat Jan 22 09:34:07 2005 for libmusepack by
|
|
<a href="http://www.doxygen.org/index.html">
|
|
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.1 </small></address>
|
|
</body>
|
|
</html>
|