1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
4 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
5 <title>Simple Arithmetic on Blocks</title>
6 <meta name="generator" content="DocBook XSL Stylesheets V1.75.1">
7 <link rel="home" href="index.html" title="Liboil Reference Manual">
8 <link rel="up" href="ch01.html" title="Liboil Stable API">
9 <link rel="prev" href="liboil-liboilfuncs-math.html" title="Simple Arithmetic">
10 <link rel="next" href="liboil-liboilfuncs-dct.html" title="liboilfuncs-dct">
11 <meta name="generator" content="GTK-Doc V1.11 (XML mode)">
12 <link rel="stylesheet" href="style.css" type="text/css">
13 <link rel="chapter" href="ch01.html" title="Liboil Stable API">
14 <link rel="chapter" href="ch02.html" title="Liboil Unstable API">
16 <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
17 <table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
19 <td><a accesskey="p" href="liboil-liboilfuncs-math.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
20 <td><a accesskey="u" href="ch01.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
21 <td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
22 <th width="100%" align="center">Liboil Reference Manual</th>
23 <td><a accesskey="n" href="liboil-liboilfuncs-dct.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
25 <tr><td colspan="5" class="shortcuts">
26 <a href="#liboil-liboilfuncs-math8x8.synopsis" class="shortcut">Top</a>
28 <a href="#liboil-liboilfuncs-math8x8.description" class="shortcut">Description</a>
31 <div class="refentry" title="Simple Arithmetic on Blocks">
32 <a name="liboil-liboilfuncs-math8x8"></a><div class="titlepage"></div>
33 <div class="refnamediv"><table width="100%"><tr>
35 <h2><span class="refentrytitle"><a name="liboil-liboilfuncs-math8x8.top_of_page"></a>Simple Arithmetic on Blocks</span></h2>
36 <p>Simple Arithmetic on Blocks — Aritmetic operations on 8x8 blocks</p>
38 <td valign="top" align="right"></td>
40 <div class="refsynopsisdiv" title="Synopsis">
41 <a name="liboil-liboilfuncs-math8x8.synopsis"></a><h2>Synopsis</h2>
42 <pre class="synopsis">
43 void <a class="link" href="liboil-liboilfuncs-math8x8.html#oil-mult8x8-s16" title="oil_mult8x8_s16 ()">oil_mult8x8_s16</a> (<a
44 href="../cog/cog-cog-stdint.html#int16-t"
47 href="../cog/cog-cog-stdint.html#int16-t"
50 href="../cog/cog-cog-stdint.html#int16-t"
55 void <a class="link" href="liboil-liboilfuncs-math8x8.html#oil-sad8x8-f64" title="oil_sad8x8_f64 ()">oil_sad8x8_f64</a> (double *d_8x8,
61 void <a class="link" href="liboil-liboilfuncs-math8x8.html#oil-sad8x8-s16" title="oil_sad8x8_s16 ()">oil_sad8x8_s16</a> (<a
62 href="../cog/cog-cog-stdint.html#uint32-t"
66 href="../cog/cog-cog-stdint.html#int16-t"
70 href="../cog/cog-cog-stdint.html#int16-t"
73 void <a class="link" href="liboil-liboilfuncs-math8x8.html#oil-sad8x8-f64-2" title="oil_sad8x8_f64_2 ()">oil_sad8x8_f64_2</a> (double *d_1,
78 void <a class="link" href="liboil-liboilfuncs-math8x8.html#oil-sad8x8-s16-2" title="oil_sad8x8_s16_2 ()">oil_sad8x8_s16_2</a> (<a
79 href="../cog/cog-cog-stdint.html#uint32-t"
82 href="../cog/cog-cog-stdint.html#int16-t"
86 href="../cog/cog-cog-stdint.html#int16-t"
89 void <a class="link" href="liboil-liboilfuncs-math8x8.html#oil-sad8x8-u8" title="oil_sad8x8_u8 ()">oil_sad8x8_u8</a> (<a
90 href="../cog/cog-cog-stdint.html#uint32-t"
93 href="../cog/cog-cog-stdint.html#uint8-t"
97 href="../cog/cog-cog-stdint.html#uint8-t"
102 <div class="refsect1" title="Description">
103 <a name="liboil-liboilfuncs-math8x8.description"></a><h2>Description</h2>
109 <div class="refsect1" title="Details">
110 <a name="liboil-liboilfuncs-math8x8.details"></a><h2>Details</h2>
111 <div class="refsect2" title="oil_mult8x8_s16 ()">
112 <a name="oil-mult8x8-s16"></a><h3>oil_mult8x8_s16 ()</h3>
113 <pre class="programlisting">void oil_mult8x8_s16 (<a
114 href="../cog/cog-cog-stdint.html#int16-t"
117 href="../cog/cog-cog-stdint.html#int16-t"
118 >int16_t</a> *s1_8x8,
120 href="../cog/cog-cog-stdint.html#int16-t"
121 >int16_t</a> *s2_8x8,
126 Multiplies each element in <em class="parameter"><code>s1_8x8</code></em> and <em class="parameter"><code>s2_8x8</code></em> and places the result
127 in <em class="parameter"><code>d_8x8</code></em>.</p>
130 <div class="variablelist"><table border="0">
131 <col align="left" valign="top">
134 <td><p><span class="term"><em class="parameter"><code>d_8x8</code></em> :</span></p></td>
139 <td><p><span class="term"><em class="parameter"><code>s1_8x8</code></em> :</span></p></td>
144 <td><p><span class="term"><em class="parameter"><code>s2_8x8</code></em> :</span></p></td>
149 <td><p><span class="term"><em class="parameter"><code>ds</code></em> :</span></p></td>
154 <td><p><span class="term"><em class="parameter"><code>ss1</code></em> :</span></p></td>
159 <td><p><span class="term"><em class="parameter"><code>ss2</code></em> :</span></p></td>
167 <div class="refsect2" title="oil_sad8x8_f64 ()">
168 <a name="oil-sad8x8-f64"></a><h3>oil_sad8x8_f64 ()</h3>
169 <pre class="programlisting">void oil_sad8x8_f64 (double *d_8x8,
171 const double *s1_8x8,
173 const double *s2_8x8,
176 FIXME: This function is broken and has been replaced by
177 @<a class="link" href="liboil-liboilfuncs-math8x8.html#oil-sad8x8-f64-2" title="oil_sad8x8_f64_2 ()"><code class="function">oil_sad8x8_f64_2()</code></a> because the destination of this function
178 is an 8x8 block instead of a single value.</p>
181 <div class="variablelist"><table border="0">
182 <col align="left" valign="top">
185 <td><p><span class="term"><em class="parameter"><code>d_8x8</code></em> :</span></p></td>
190 <td><p><span class="term"><em class="parameter"><code>ds</code></em> :</span></p></td>
195 <td><p><span class="term"><em class="parameter"><code>s1_8x8</code></em> :</span></p></td>
200 <td><p><span class="term"><em class="parameter"><code>ss1</code></em> :</span></p></td>
205 <td><p><span class="term"><em class="parameter"><code>s2_8x8</code></em> :</span></p></td>
210 <td><p><span class="term"><em class="parameter"><code>ss2</code></em> :</span></p></td>
218 <div class="refsect2" title="oil_sad8x8_s16 ()">
219 <a name="oil-sad8x8-s16"></a><h3>oil_sad8x8_s16 ()</h3>
220 <pre class="programlisting">void oil_sad8x8_s16 (<a
221 href="../cog/cog-cog-stdint.html#uint32-t"
222 >uint32_t</a> *d_8x8,
225 href="../cog/cog-cog-stdint.html#int16-t"
226 >int16_t</a> *s1_8x8,
229 href="../cog/cog-cog-stdint.html#int16-t"
230 >int16_t</a> *s2_8x8,
233 FIXME: This function is broken and has been replaced by
234 @<a class="link" href="liboil-liboilfuncs-math8x8.html#oil-sad8x8-s16-2" title="oil_sad8x8_s16_2 ()"><code class="function">oil_sad8x8_s16_2()</code></a> because the destination of this function
235 is an 8x8 block instead of a single value.</p>
238 <div class="variablelist"><table border="0">
239 <col align="left" valign="top">
242 <td><p><span class="term"><em class="parameter"><code>d_8x8</code></em> :</span></p></td>
247 <td><p><span class="term"><em class="parameter"><code>ds</code></em> :</span></p></td>
252 <td><p><span class="term"><em class="parameter"><code>s1_8x8</code></em> :</span></p></td>
257 <td><p><span class="term"><em class="parameter"><code>ss1</code></em> :</span></p></td>
262 <td><p><span class="term"><em class="parameter"><code>s2_8x8</code></em> :</span></p></td>
267 <td><p><span class="term"><em class="parameter"><code>ss2</code></em> :</span></p></td>
275 <div class="refsect2" title="oil_sad8x8_f64_2 ()">
276 <a name="oil-sad8x8-f64-2"></a><h3>oil_sad8x8_f64_2 ()</h3>
277 <pre class="programlisting">void oil_sad8x8_f64_2 (double *d_1,
278 const double *s1_8x8,
280 const double *s2_8x8,
283 Calculates the sum of absolute differences between elements in <em class="parameter"><code>s1_8x8</code></em>
284 and <em class="parameter"><code>s2_8x8</code></em>, and places the result in <em class="parameter"><code>d_1</code></em>.</p>
287 <div class="variablelist"><table border="0">
288 <col align="left" valign="top">
291 <td><p><span class="term"><em class="parameter"><code>d_1</code></em> :</span></p></td>
296 <td><p><span class="term"><em class="parameter"><code>s1_8x8</code></em> :</span></p></td>
301 <td><p><span class="term"><em class="parameter"><code>ss1</code></em> :</span></p></td>
306 <td><p><span class="term"><em class="parameter"><code>s2_8x8</code></em> :</span></p></td>
311 <td><p><span class="term"><em class="parameter"><code>ss2</code></em> :</span></p></td>
319 <div class="refsect2" title="oil_sad8x8_s16_2 ()">
320 <a name="oil-sad8x8-s16-2"></a><h3>oil_sad8x8_s16_2 ()</h3>
321 <pre class="programlisting">void oil_sad8x8_s16_2 (<a
322 href="../cog/cog-cog-stdint.html#uint32-t"
325 href="../cog/cog-cog-stdint.html#int16-t"
326 >int16_t</a> *s1_8x8,
329 href="../cog/cog-cog-stdint.html#int16-t"
330 >int16_t</a> *s2_8x8,
333 Calculates the sum of absolute differences between elements in <em class="parameter"><code>s1_8x8</code></em>
334 and <em class="parameter"><code>s2_8x8</code></em>, and places the result in <em class="parameter"><code>d_1</code></em>.</p>
337 <div class="variablelist"><table border="0">
338 <col align="left" valign="top">
341 <td><p><span class="term"><em class="parameter"><code>d_1</code></em> :</span></p></td>
346 <td><p><span class="term"><em class="parameter"><code>s1_8x8</code></em> :</span></p></td>
351 <td><p><span class="term"><em class="parameter"><code>ss1</code></em> :</span></p></td>
356 <td><p><span class="term"><em class="parameter"><code>s2_8x8</code></em> :</span></p></td>
361 <td><p><span class="term"><em class="parameter"><code>ss2</code></em> :</span></p></td>
369 <div class="refsect2" title="oil_sad8x8_u8 ()">
370 <a name="oil-sad8x8-u8"></a><h3>oil_sad8x8_u8 ()</h3>
371 <pre class="programlisting">void oil_sad8x8_u8 (<a
372 href="../cog/cog-cog-stdint.html#uint32-t"
375 href="../cog/cog-cog-stdint.html#uint8-t"
376 >uint8_t</a> *s1_8x8,
379 href="../cog/cog-cog-stdint.html#uint8-t"
380 >uint8_t</a> *s2_8x8,
383 Calculates the sum of absolute differences between elements in <em class="parameter"><code>s1_8x8</code></em>
384 and <em class="parameter"><code>s2_8x8</code></em>, and places the result in <em class="parameter"><code>d_1</code></em>.</p>
387 <div class="variablelist"><table border="0">
388 <col align="left" valign="top">
391 <td><p><span class="term"><em class="parameter"><code>d_1</code></em> :</span></p></td>
396 <td><p><span class="term"><em class="parameter"><code>s1_8x8</code></em> :</span></p></td>
401 <td><p><span class="term"><em class="parameter"><code>ss1</code></em> :</span></p></td>
406 <td><p><span class="term"><em class="parameter"><code>s2_8x8</code></em> :</span></p></td>
411 <td><p><span class="term"><em class="parameter"><code>ss2</code></em> :</span></p></td>
422 Generated by GTK-Doc V1.11</div>