File: requant_8c.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 (188 lines) | stat: -rw-r--r-- 10,323 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
<!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/requant.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&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_000002.html">src</a></div>
<h1>requant.c File Reference</h1><code>#include &lt;<a class="el" href="mpcdec_8h-source.html">mpcdec/mpcdec.h</a>&gt;</code><br>
<code>#include &lt;<a class="el" href="internal_8h-source.html">mpcdec/internal.h</a>&gt;</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"></a><!-- doxytag: member="requant.c::_" ref="a0" args="(X)" -->
#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="requant_8c.html#a0">_</a>(X)&nbsp;&nbsp;&nbsp;MAKE_MPC_SAMPLE_EX(X,14)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a1"></a><!-- doxytag: member="requant.c::SET_SCF" ref="a1" args="(N, X)" -->
#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="requant_8c.html#a1">SET_SCF</a>(N, X)&nbsp;&nbsp;&nbsp;d-&gt;SCF[N] = MAKE_MPC_SAMPLE_EX(X,d-&gt;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&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="requant_8c.html#a5">mpc_decoder_scale_output</a> (<a class="el" href="structmpc__decoder__t.html">mpc_decoder</a> *d, double factor)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a7"></a><!-- doxytag: member="requant.c::mpc_decoder_initialisiere_quantisierungstabellen" ref="a7" args="(mpc_decoder *d, double scale_factor)" -->
void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="requant_8c.html#a7">mpc_decoder_initialisiere_quantisierungstabellen</a> (<a class="el" href="structmpc__decoder__t.html">mpc_decoder</a> *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&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="requant_8c.html#a2">Res_bit</a> [18]</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">const <a class="el" href="math_8h.html#a16">MPC_SAMPLE_FORMAT</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="requant_8c.html#a3">__Cc</a> [1+18]</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">const mpc_int32_t&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="requant_8c.html#a4">__Dc</a> [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#_todo000002">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"></a><!-- doxytag: member="requant.c::mpc_decoder_scale_output" ref="a5" args="(mpc_decoder *d, double 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>
<hr><h2>Variable Documentation</h2>
<a class="anchor" name="a3"></a><!-- doxytag: member="requant.c::__Cc" ref="a3" args="[1+18]" --><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 <a class="el" href="math_8h.html#a16">MPC_SAMPLE_FORMAT</a> <a class="el" href="requant_8c.html#a3">__Cc</a>[1+18]          </td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
<b>Initial value:</b><div class="fragment"><pre class="fragment"> {
      <a class="code" href="requant_8c.html#a0">_</a>(111.285962475327f),                                        
    <a class="code" href="requant_8c.html#a0">_</a>(65536.000000000000f), <a class="code" href="requant_8c.html#a0">_</a>(21845.333333333332f), <a class="code" href="requant_8c.html#a0">_</a>(13107.200000000001f), <a class="code" href="requant_8c.html#a0">_</a>(9362.285714285713f),
    <a class="code" href="requant_8c.html#a0">_</a>(7281.777777777777f),  <a class="code" href="requant_8c.html#a0">_</a>(4369.066666666666f),  <a class="code" href="requant_8c.html#a0">_</a>(2114.064516129032f), <a class="code" href="requant_8c.html#a0">_</a>(1040.253968253968f),
     <a class="code" href="requant_8c.html#a0">_</a>(516.031496062992f),  <a class="code" href="requant_8c.html#a0">_</a>(257.003921568627f),   <a class="code" href="requant_8c.html#a0">_</a>(128.250489236790f),   <a class="code" href="requant_8c.html#a0">_</a>(64.062561094819f),
       <a class="code" href="requant_8c.html#a0">_</a>(32.015632633121f),    <a class="code" href="requant_8c.html#a0">_</a>(16.003907203907f),     <a class="code" href="requant_8c.html#a0">_</a>(8.000976681723f),    <a class="code" href="requant_8c.html#a0">_</a>(4.000244155527f),
        <a class="code" href="requant_8c.html#a0">_</a>(2.000061037018f),     <a class="code" href="requant_8c.html#a0">_</a>(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"></a><!-- doxytag: member="requant.c::__Dc" ref="a4" args="[1+18]" --><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 <a class="el" href="requant_8c.html#a4">__Dc</a>[1+18]          </td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
  <tr>
    <td>
      &nbsp;
    </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"></a><!-- doxytag: member="requant.c::Res_bit" ref="a2" args="[18]" --><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 <a class="el" href="requant_8c.html#a2">Res_bit</a>[18]          </td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
  <tr>
    <td>
      &nbsp;
    </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>.
<p>
Referenced by <a class="el" href="mpc__decoder_8c-source.html#l00656">mpc_decoder_read_bitstream_sv6()</a>, and <a class="el" href="mpc__decoder_8c-source.html#l00865">mpc_decoder_read_bitstream_sv7()</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>