blob: 115849c4348f1d49e8154713932bc13992228c49 [file] [log] [blame]
Jenkinsb9abeae2018-11-22 11:58:08 +00001<!-- HTML header for doxygen 1.8.9.1-->
2<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3<html xmlns="http://www.w3.org/1999/xhtml">
4<head>
5<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
6<meta http-equiv="X-UA-Compatible" content="IE=9"/>
7<meta name="generator" content="Doxygen 1.8.13"/>
8<meta name="robots" content="NOINDEX, NOFOLLOW" /> <!-- Prevent indexing by search engines -->
9<title>Compute Library: src/core/CL/cl_kernels/warp_helpers_quantized.h File Reference</title>
10<link href="tabs.css" rel="stylesheet" type="text/css"/>
11<script type="text/javascript" src="jquery.js"></script>
12<script type="text/javascript" src="dynsections.js"></script>
13<link href="navtree.css" rel="stylesheet" type="text/css"/>
14<script type="text/javascript" src="resize.js"></script>
15<script type="text/javascript" src="navtreedata.js"></script>
16<script type="text/javascript" src="navtree.js"></script>
17<script type="text/javascript">
18 $(document).ready(initResizable);
19</script>
20<link href="search/search.css" rel="stylesheet" type="text/css"/>
21<script type="text/javascript" src="search/searchdata.js"></script>
22<script type="text/javascript" src="search/search.js"></script>
23<script type="text/x-mathjax-config">
24 MathJax.Hub.Config({
25 extensions: ["tex2jax.js"],
26 jax: ["input/TeX","output/HTML-CSS"],
27});
28</script><script type="text/javascript" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js"></script>
29<link href="doxygen.css" rel="stylesheet" type="text/css" />
30</head>
31<body>
32<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
33<div id="titlearea">
34<table cellspacing="0" cellpadding="0">
35 <tbody>
36 <tr style="height: 56px;">
37 <td style="padding-left: 0.5em;">
38 <div id="projectname">Compute Library
39 &#160;<span id="projectnumber">18.11</span>
40 </div>
41 </td>
42 </tr>
43 </tbody>
44</table>
45</div>
46<!-- end header part -->
47<!-- Generated by Doxygen 1.8.13 -->
48<script type="text/javascript">
49var searchBox = new SearchBox("searchBox", "search",false,'Search');
50</script>
51<script type="text/javascript" src="menudata.js"></script>
52<script type="text/javascript" src="menu.js"></script>
53<script type="text/javascript">
54$(function() {
55 initMenu('',true,false,'search.php','Search');
56 $(document).ready(function() { init_search(); });
57});
58</script>
59<div id="main-nav"></div>
60</div><!-- top -->
61<div id="side-nav" class="ui-resizable side-nav-resizable">
62 <div id="nav-tree">
63 <div id="nav-tree-contents">
64 <div id="nav-sync" class="sync"></div>
65 </div>
66 </div>
67 <div id="splitbar" style="-moz-user-select:none;"
68 class="ui-resizable-handle">
69 </div>
70</div>
71<script type="text/javascript">
72$(document).ready(function(){initNavTree('warp__helpers__quantized_8h.xhtml','');});
73</script>
74<div id="doc-content">
75<!-- window showing the filter options -->
76<div id="MSearchSelectWindow"
77 onmouseover="return searchBox.OnSearchSelectShow()"
78 onmouseout="return searchBox.OnSearchSelectHide()"
79 onkeydown="return searchBox.OnSearchSelectKey(event)">
80</div>
81
82<!-- iframe showing the search results (closed by default) -->
83<div id="MSearchResultsWindow">
84<iframe src="javascript:void(0)" frameborder="0"
85 name="MSearchResults" id="MSearchResults">
86</iframe>
87</div>
88
89<div class="header">
90 <div class="summary">
91<a href="#func-members">Functions</a> </div>
92 <div class="headertitle">
93<div class="title">warp_helpers_quantized.h File Reference</div> </div>
94</div><!--header-->
95<div class="contents">
96<div class="textblock"><code>#include &quot;<a class="el" href="helpers__asymm_8h_source.xhtml">helpers_asymm.h</a>&quot;</code><br />
97</div>
98<p><a href="warp__helpers__quantized_8h_source.xhtml">Go to the source code of this file.</a></p>
99<table class="memberdecls">
100<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
101Functions</h2></td></tr>
102<tr class="memitem:aafa351a2c35f5f121921cee080c223d6"><td class="memItemLeft" align="right" valign="top">const float8&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="warp__helpers__quantized_8h.xhtml#aafa351a2c35f5f121921cee080c223d6">clamp_to_border_with_size_quantized</a> (float8 coords, const float width, const float height, const float border_size)</td></tr>
103<tr class="memdesc:aafa351a2c35f5f121921cee080c223d6"><td class="mdescLeft">&#160;</td><td class="mdescRight">Clamps the given coordinates to the borders according to the border size. <a href="#aafa351a2c35f5f121921cee080c223d6">More...</a><br /></td></tr>
104<tr class="separator:aafa351a2c35f5f121921cee080c223d6"><td class="memSeparator" colspan="2">&#160;</td></tr>
105<tr class="memitem:a33c81135c18bd3881c3f5f36c25fe499"><td class="memItemLeft" align="right" valign="top">const float8&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="warp__helpers__quantized_8h.xhtml#a33c81135c18bd3881c3f5f36c25fe499">clamp_to_border_quantized</a> (float8 coords, const float width, const float height)</td></tr>
106<tr class="memdesc:a33c81135c18bd3881c3f5f36c25fe499"><td class="mdescLeft">&#160;</td><td class="mdescRight">Clamps the given coordinates to the borders. <a href="#a33c81135c18bd3881c3f5f36c25fe499">More...</a><br /></td></tr>
107<tr class="separator:a33c81135c18bd3881c3f5f36c25fe499"><td class="memSeparator" colspan="2">&#160;</td></tr>
108<tr class="memitem:ac05d99f194a7cf429a7ecbadd1ffb018"><td class="memItemLeft" align="right" valign="top">const float8&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="warp__helpers__quantized_8h.xhtml#ac05d99f194a7cf429a7ecbadd1ffb018">get_neighbour_coords_quantized</a> (const float2 coord)</td></tr>
109<tr class="memdesc:ac05d99f194a7cf429a7ecbadd1ffb018"><td class="mdescLeft">&#160;</td><td class="mdescRight">Given a texel coordinates this function will return the following array of coordinates: [ P, right neighbour, below neighbour, below right neighbour ]. <a href="#ac05d99f194a7cf429a7ecbadd1ffb018">More...</a><br /></td></tr>
110<tr class="separator:ac05d99f194a7cf429a7ecbadd1ffb018"><td class="memSeparator" colspan="2">&#160;</td></tr>
111<tr class="memitem:aa13de3eff8afd51e8bf4c1904a9b7415"><td class="memItemLeft" align="right" valign="top">const float2&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="warp__helpers__quantized_8h.xhtml#aa13de3eff8afd51e8bf4c1904a9b7415">get_current_coords_quantized</a> ()</td></tr>
112<tr class="memdesc:aa13de3eff8afd51e8bf4c1904a9b7415"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the current thread coordinates. <a href="#aa13de3eff8afd51e8bf4c1904a9b7415">More...</a><br /></td></tr>
113<tr class="separator:aa13de3eff8afd51e8bf4c1904a9b7415"><td class="memSeparator" colspan="2">&#160;</td></tr>
114<tr class="memitem:ae8a3d61874f95580e8110f4f206c3b8b"><td class="memItemLeft" align="right" valign="top">const DATA_TYPE4&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="warp__helpers__quantized_8h.xhtml#ae8a3d61874f95580e8110f4f206c3b8b">bilinear_interpolate_with_border_quantized</a> (const <a class="el" href="struct_image.xhtml">Image</a> *in, const float8 coords, const float width, const float height, const float border_size, const float scale, const int offset_qasymm)</td></tr>
115<tr class="memdesc:ae8a3d61874f95580e8110f4f206c3b8b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Computes the bilinear interpolation for each set of coordinates in the vector coords and returns the values. <a href="#ae8a3d61874f95580e8110f4f206c3b8b">More...</a><br /></td></tr>
116<tr class="separator:ae8a3d61874f95580e8110f4f206c3b8b"><td class="memSeparator" colspan="2">&#160;</td></tr>
117<tr class="memitem:ac2c57ad5c97b24360457a028a8e7e58c"><td class="memItemLeft" align="right" valign="top">const DATA_TYPE4&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="warp__helpers__quantized_8h.xhtml#ac2c57ad5c97b24360457a028a8e7e58c">bilinear_interpolate_quantized</a> (const <a class="el" href="struct_image.xhtml">Image</a> *in, const float8 coords, const float width, const float height, const float scale, const int offset_qasymm)</td></tr>
118<tr class="memdesc:ac2c57ad5c97b24360457a028a8e7e58c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Computes the bilinear interpolation for each set of coordinates in the vector coords and returns the values. <a href="#ac2c57ad5c97b24360457a028a8e7e58c">More...</a><br /></td></tr>
119<tr class="separator:ac2c57ad5c97b24360457a028a8e7e58c"><td class="memSeparator" colspan="2">&#160;</td></tr>
120</table>
121<h2 class="groupheader">Function Documentation</h2>
122<a id="ac2c57ad5c97b24360457a028a8e7e58c"></a>
123<h2 class="memtitle"><span class="permalink"><a href="#ac2c57ad5c97b24360457a028a8e7e58c">&#9670;&nbsp;</a></span>bilinear_interpolate_quantized()</h2>
124
125<div class="memitem">
126<div class="memproto">
127<table class="mlabels">
128 <tr>
129 <td class="mlabels-left">
130 <table class="memname">
131 <tr>
132 <td class="memname">const DATA_TYPE4 bilinear_interpolate_quantized </td>
133 <td>(</td>
134 <td class="paramtype">const <a class="el" href="struct_image.xhtml">Image</a> *&#160;</td>
135 <td class="paramname"><em>in</em>, </td>
136 </tr>
137 <tr>
138 <td class="paramkey"></td>
139 <td></td>
140 <td class="paramtype">const float8&#160;</td>
141 <td class="paramname"><em>coords</em>, </td>
142 </tr>
143 <tr>
144 <td class="paramkey"></td>
145 <td></td>
146 <td class="paramtype">const float&#160;</td>
147 <td class="paramname"><em>width</em>, </td>
148 </tr>
149 <tr>
150 <td class="paramkey"></td>
151 <td></td>
152 <td class="paramtype">const float&#160;</td>
153 <td class="paramname"><em>height</em>, </td>
154 </tr>
155 <tr>
156 <td class="paramkey"></td>
157 <td></td>
158 <td class="paramtype">const float&#160;</td>
159 <td class="paramname"><em>scale</em>, </td>
160 </tr>
161 <tr>
162 <td class="paramkey"></td>
163 <td></td>
164 <td class="paramtype">const int&#160;</td>
165 <td class="paramname"><em>offset_qasymm</em>&#160;</td>
166 </tr>
167 <tr>
168 <td></td>
169 <td>)</td>
170 <td></td><td></td>
171 </tr>
172 </table>
173 </td>
174 <td class="mlabels-right">
175<span class="mlabels"><span class="mlabel">inline</span></span> </td>
176 </tr>
177</table>
178</div><div class="memdoc">
179
180<p>Computes the bilinear interpolation for each set of coordinates in the vector coords and returns the values. </p>
181<dl class="params"><dt>Parameters</dt><dd>
182 <table class="params">
183 <tr><td class="paramdir">[in]</td><td class="paramname">in</td><td>Pointer to the source image. </td></tr>
184 <tr><td class="paramdir">[in]</td><td class="paramname">coords</td><td><a class="el" href="struct_vector.xhtml" title="Structure to hold Vector information. ">Vector</a> of four 2D coordinates. Even pos is x and odd y. </td></tr>
185 <tr><td class="paramdir">[in]</td><td class="paramname">width</td><td>Width of the image </td></tr>
186 <tr><td class="paramdir">[in]</td><td class="paramname">height</td><td>Height of the image </td></tr>
187 <tr><td class="paramdir">[in]</td><td class="paramname">scale</td><td>Scale value </td></tr>
188 <tr><td class="paramdir">[in]</td><td class="paramname">offset_qasymm</td><td>Offset value </td></tr>
189 </table>
190 </dd>
191</dl>
192
193<p class="definition">Definition at line <a class="el" href="warp__helpers__quantized_8h_source.xhtml#l00135">135</a> of file <a class="el" href="warp__helpers__quantized_8h_source.xhtml">warp_helpers_quantized.h</a>.</p>
194
195<p class="reference">References <a class="el" href="warp__helpers__quantized_8h_source.xhtml#l00084">bilinear_interpolate_with_border_quantized()</a>.</p>
196<div class="fragment"><div class="line"><a name="l00136"></a><span class="lineno"> 136</span>&#160;{</div><div class="line"><a name="l00137"></a><span class="lineno"> 137</span>&#160; <span class="keywordflow">return</span> <a class="code" href="warp__helpers__quantized_8h.xhtml#ae8a3d61874f95580e8110f4f206c3b8b">bilinear_interpolate_with_border_quantized</a>(in, coords, width, height, 1, <a class="code" href="namespacearm__compute_1_1test_1_1validation.xhtml#acec6d8ad52a28972fa74e071c1a63b6a">scale</a>, offset_qasymm);</div><div class="line"><a name="l00138"></a><span class="lineno"> 138</span>&#160;}</div><div class="ttc" id="warp__helpers__quantized_8h_xhtml_ae8a3d61874f95580e8110f4f206c3b8b"><div class="ttname"><a href="warp__helpers__quantized_8h.xhtml#ae8a3d61874f95580e8110f4f206c3b8b">bilinear_interpolate_with_border_quantized</a></div><div class="ttdeci">const DATA_TYPE4 bilinear_interpolate_with_border_quantized(const Image *in, const float8 coords, const float width, const float height, const float border_size, const float scale, const int offset_qasymm)</div><div class="ttdoc">Computes the bilinear interpolation for each set of coordinates in the vector coords and returns the ...</div><div class="ttdef"><b>Definition:</b> <a href="warp__helpers__quantized_8h_source.xhtml#l00084">warp_helpers_quantized.h:84</a></div></div>
197<div class="ttc" id="namespacearm__compute_1_1test_1_1validation_xhtml_acec6d8ad52a28972fa74e071c1a63b6a"><div class="ttname"><a href="namespacearm__compute_1_1test_1_1validation.xhtml#acec6d8ad52a28972fa74e071c1a63b6a">arm_compute::test::validation::scale</a></div><div class="ttdeci">scale</div><div class="ttdef"><b>Definition:</b> <a href="_n_e_o_n_2_pixel_wise_multiplication_8cpp_source.xhtml#l00168">PixelWiseMultiplication.cpp:168</a></div></div>
198</div><!-- fragment -->
199</div>
200</div>
201<a id="ae8a3d61874f95580e8110f4f206c3b8b"></a>
202<h2 class="memtitle"><span class="permalink"><a href="#ae8a3d61874f95580e8110f4f206c3b8b">&#9670;&nbsp;</a></span>bilinear_interpolate_with_border_quantized()</h2>
203
204<div class="memitem">
205<div class="memproto">
206<table class="mlabels">
207 <tr>
208 <td class="mlabels-left">
209 <table class="memname">
210 <tr>
211 <td class="memname">const DATA_TYPE4 bilinear_interpolate_with_border_quantized </td>
212 <td>(</td>
213 <td class="paramtype">const <a class="el" href="struct_image.xhtml">Image</a> *&#160;</td>
214 <td class="paramname"><em>in</em>, </td>
215 </tr>
216 <tr>
217 <td class="paramkey"></td>
218 <td></td>
219 <td class="paramtype">const float8&#160;</td>
220 <td class="paramname"><em>coords</em>, </td>
221 </tr>
222 <tr>
223 <td class="paramkey"></td>
224 <td></td>
225 <td class="paramtype">const float&#160;</td>
226 <td class="paramname"><em>width</em>, </td>
227 </tr>
228 <tr>
229 <td class="paramkey"></td>
230 <td></td>
231 <td class="paramtype">const float&#160;</td>
232 <td class="paramname"><em>height</em>, </td>
233 </tr>
234 <tr>
235 <td class="paramkey"></td>
236 <td></td>
237 <td class="paramtype">const float&#160;</td>
238 <td class="paramname"><em>border_size</em>, </td>
239 </tr>
240 <tr>
241 <td class="paramkey"></td>
242 <td></td>
243 <td class="paramtype">const float&#160;</td>
244 <td class="paramname"><em>scale</em>, </td>
245 </tr>
246 <tr>
247 <td class="paramkey"></td>
248 <td></td>
249 <td class="paramtype">const int&#160;</td>
250 <td class="paramname"><em>offset_qasymm</em>&#160;</td>
251 </tr>
252 <tr>
253 <td></td>
254 <td>)</td>
255 <td></td><td></td>
256 </tr>
257 </table>
258 </td>
259 <td class="mlabels-right">
260<span class="mlabels"><span class="mlabel">inline</span></span> </td>
261 </tr>
262</table>
263</div><div class="memdoc">
264
265<p>Computes the bilinear interpolation for each set of coordinates in the vector coords and returns the values. </p>
266<dl class="params"><dt>Parameters</dt><dd>
267 <table class="params">
268 <tr><td class="paramdir">[in]</td><td class="paramname">in</td><td>Pointer to the source image. </td></tr>
269 <tr><td class="paramdir">[in]</td><td class="paramname">coords</td><td><a class="el" href="struct_vector.xhtml" title="Structure to hold Vector information. ">Vector</a> of four 2D coordinates. Even pos is x and odd y. </td></tr>
270 <tr><td class="paramdir">[in]</td><td class="paramname">width</td><td>Width of the image </td></tr>
271 <tr><td class="paramdir">[in]</td><td class="paramname">height</td><td>Height of the image </td></tr>
272 <tr><td class="paramdir">[in]</td><td class="paramname">border_size</td><td>Border size </td></tr>
273 <tr><td class="paramdir">[in]</td><td class="paramname">scale</td><td>Scale value </td></tr>
274 <tr><td class="paramdir">[in]</td><td class="paramname">offset_qasymm</td><td>Offset value </td></tr>
275 </table>
276 </dd>
277</dl>
278
279<p class="definition">Definition at line <a class="el" href="warp__helpers__quantized_8h_source.xhtml#l00084">84</a> of file <a class="el" href="warp__helpers__quantized_8h_source.xhtml">warp_helpers_quantized.h</a>.</p>
280
281<p class="reference">References <a class="el" href="validation_2_c_l_2_g_e_m_m_8cpp_source.xhtml#l00102">arm_compute::test::validation::a</a>, <a class="el" href="validation_2_c_l_2_g_e_m_m_8cpp_source.xhtml#l00091">arm_compute::test::validation::b</a>, <a class="el" href="warp__helpers__quantized_8h_source.xhtml#l00034">clamp_to_border_with_size_quantized()</a>, <a class="el" href="convolution3x3_8cl_source.xhtml#l00027">DATA_TYPE</a>, <a class="el" href="warp__helpers__quantized_8h_source.xhtml#l00063">get_neighbour_coords_quantized()</a>, and <a class="el" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h_source.xhtml#l00309">offset()</a>.</p>
282
283<p class="reference">Referenced by <a class="el" href="warp__helpers__quantized_8h_source.xhtml#l00135">bilinear_interpolate_quantized()</a>, and <a class="el" href="scale__quantized_8cl_source.xhtml#l00073">scale_bilinear_quantized_nchw()</a>.</p>
284<div class="fragment"><div class="line"><a name="l00086"></a><span class="lineno"> 86</span>&#160;{</div><div class="line"><a name="l00087"></a><span class="lineno"> 87</span>&#160; <span class="comment">// If any of the 4 texels is out of the image&#39;s boundaries we use the border value (REPLICATE or CONSTANT) for any texel out of the image.</span></div><div class="line"><a name="l00088"></a><span class="lineno"> 88</span>&#160;</div><div class="line"><a name="l00089"></a><span class="lineno"> 89</span>&#160; <span class="comment">// Sets the 4x4 coordinates for each of the four input texels</span></div><div class="line"><a name="l00090"></a><span class="lineno"> 90</span>&#160; <span class="keyword">const</span> float8 fc = floor(coords);</div><div class="line"><a name="l00091"></a><span class="lineno"> 91</span>&#160; <span class="keyword">const</span> float16 c1 = (float16)(</div><div class="line"><a name="l00092"></a><span class="lineno"> 92</span>&#160; <a class="code" href="warp__helpers__quantized_8h.xhtml#aafa351a2c35f5f121921cee080c223d6">clamp_to_border_with_size_quantized</a>(<a class="code" href="warp__helpers__quantized_8h.xhtml#ac05d99f194a7cf429a7ecbadd1ffb018">get_neighbour_coords_quantized</a>((float2)(fc.s0, fc.s1)), width, height, border_size),</div><div class="line"><a name="l00093"></a><span class="lineno"> 93</span>&#160; <a class="code" href="warp__helpers__quantized_8h.xhtml#aafa351a2c35f5f121921cee080c223d6">clamp_to_border_with_size_quantized</a>(<a class="code" href="warp__helpers__quantized_8h.xhtml#ac05d99f194a7cf429a7ecbadd1ffb018">get_neighbour_coords_quantized</a>((float2)(fc.s2, fc.s3)), width, height, border_size));</div><div class="line"><a name="l00094"></a><span class="lineno"> 94</span>&#160; <span class="keyword">const</span> float16 c2 = (float16)(</div><div class="line"><a name="l00095"></a><span class="lineno"> 95</span>&#160; <a class="code" href="warp__helpers__quantized_8h.xhtml#aafa351a2c35f5f121921cee080c223d6">clamp_to_border_with_size_quantized</a>(<a class="code" href="warp__helpers__quantized_8h.xhtml#ac05d99f194a7cf429a7ecbadd1ffb018">get_neighbour_coords_quantized</a>((float2)(fc.s4, fc.s5)), width, height, border_size),</div><div class="line"><a name="l00096"></a><span class="lineno"> 96</span>&#160; <a class="code" href="warp__helpers__quantized_8h.xhtml#aafa351a2c35f5f121921cee080c223d6">clamp_to_border_with_size_quantized</a>(<a class="code" href="warp__helpers__quantized_8h.xhtml#ac05d99f194a7cf429a7ecbadd1ffb018">get_neighbour_coords_quantized</a>((float2)(fc.s6, fc.s7)), width, height, border_size));</div><div class="line"><a name="l00097"></a><span class="lineno"> 97</span>&#160;</div><div class="line"><a name="l00098"></a><span class="lineno"> 98</span>&#160; <span class="comment">// Loads the values from the input image</span></div><div class="line"><a name="l00099"></a><span class="lineno"> 99</span>&#160; <span class="keyword">const</span> int16 t = (int16)(</div><div class="line"><a name="l00100"></a><span class="lineno"> 100</span>&#160; <span class="comment">/* tl, tr, bl, br */</span></div><div class="line"><a name="l00101"></a><span class="lineno"> 101</span>&#160; * ((__global <a class="code" href="convolution3x3_8cl.xhtml#afb8c72ce35c4a1f4a2588d6573e54aa1">DATA_TYPE</a> *)<a class="code" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h.xhtml#a009469e4d9b8fce3b6d5e97d2077827d">offset</a>(in, c1.s0, c1.s1)), *((__global <a class="code" href="convolution3x3_8cl.xhtml#afb8c72ce35c4a1f4a2588d6573e54aa1">DATA_TYPE</a> *)<a class="code" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h.xhtml#a009469e4d9b8fce3b6d5e97d2077827d">offset</a>(in, c1.s2, c1.s3)),</div><div class="line"><a name="l00102"></a><span class="lineno"> 102</span>&#160; *((__global <a class="code" href="convolution3x3_8cl.xhtml#afb8c72ce35c4a1f4a2588d6573e54aa1">DATA_TYPE</a> *)<a class="code" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h.xhtml#a009469e4d9b8fce3b6d5e97d2077827d">offset</a>(in, c1.s4, c1.s5)), *((__global <a class="code" href="convolution3x3_8cl.xhtml#afb8c72ce35c4a1f4a2588d6573e54aa1">DATA_TYPE</a> *)<a class="code" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h.xhtml#a009469e4d9b8fce3b6d5e97d2077827d">offset</a>(in, c1.s6, c1.s7)),</div><div class="line"><a name="l00103"></a><span class="lineno"> 103</span>&#160; *((__global <a class="code" href="convolution3x3_8cl.xhtml#afb8c72ce35c4a1f4a2588d6573e54aa1">DATA_TYPE</a> *)<a class="code" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h.xhtml#a009469e4d9b8fce3b6d5e97d2077827d">offset</a>(in, c1.s8, c1.s9)), *((__global <a class="code" href="convolution3x3_8cl.xhtml#afb8c72ce35c4a1f4a2588d6573e54aa1">DATA_TYPE</a> *)<a class="code" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h.xhtml#a009469e4d9b8fce3b6d5e97d2077827d">offset</a>(in, c1.sa, c1.sb)),</div><div class="line"><a name="l00104"></a><span class="lineno"> 104</span>&#160; *((__global <a class="code" href="convolution3x3_8cl.xhtml#afb8c72ce35c4a1f4a2588d6573e54aa1">DATA_TYPE</a> *)<a class="code" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h.xhtml#a009469e4d9b8fce3b6d5e97d2077827d">offset</a>(in, c1.sc, c1.sd)), *((__global <a class="code" href="convolution3x3_8cl.xhtml#afb8c72ce35c4a1f4a2588d6573e54aa1">DATA_TYPE</a> *)<a class="code" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h.xhtml#a009469e4d9b8fce3b6d5e97d2077827d">offset</a>(in, c1.se, c1.sf)),</div><div class="line"><a name="l00105"></a><span class="lineno"> 105</span>&#160; *((__global <a class="code" href="convolution3x3_8cl.xhtml#afb8c72ce35c4a1f4a2588d6573e54aa1">DATA_TYPE</a> *)<a class="code" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h.xhtml#a009469e4d9b8fce3b6d5e97d2077827d">offset</a>(in, c2.s0, c2.s1)), *((__global <a class="code" href="convolution3x3_8cl.xhtml#afb8c72ce35c4a1f4a2588d6573e54aa1">DATA_TYPE</a> *)<a class="code" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h.xhtml#a009469e4d9b8fce3b6d5e97d2077827d">offset</a>(in, c2.s2, c2.s3)),</div><div class="line"><a name="l00106"></a><span class="lineno"> 106</span>&#160; *((__global <a class="code" href="convolution3x3_8cl.xhtml#afb8c72ce35c4a1f4a2588d6573e54aa1">DATA_TYPE</a> *)<a class="code" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h.xhtml#a009469e4d9b8fce3b6d5e97d2077827d">offset</a>(in, c2.s4, c2.s5)), *((__global <a class="code" href="convolution3x3_8cl.xhtml#afb8c72ce35c4a1f4a2588d6573e54aa1">DATA_TYPE</a> *)<a class="code" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h.xhtml#a009469e4d9b8fce3b6d5e97d2077827d">offset</a>(in, c2.s6, c2.s7)),</div><div class="line"><a name="l00107"></a><span class="lineno"> 107</span>&#160; *((__global <a class="code" href="convolution3x3_8cl.xhtml#afb8c72ce35c4a1f4a2588d6573e54aa1">DATA_TYPE</a> *)<a class="code" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h.xhtml#a009469e4d9b8fce3b6d5e97d2077827d">offset</a>(in, c2.s8, c2.s9)), *((__global <a class="code" href="convolution3x3_8cl.xhtml#afb8c72ce35c4a1f4a2588d6573e54aa1">DATA_TYPE</a> *)<a class="code" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h.xhtml#a009469e4d9b8fce3b6d5e97d2077827d">offset</a>(in, c2.sa, c2.sb)),</div><div class="line"><a name="l00108"></a><span class="lineno"> 108</span>&#160; *((__global <a class="code" href="convolution3x3_8cl.xhtml#afb8c72ce35c4a1f4a2588d6573e54aa1">DATA_TYPE</a> *)<a class="code" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h.xhtml#a009469e4d9b8fce3b6d5e97d2077827d">offset</a>(in, c2.sc, c2.sd)), *((__global <a class="code" href="convolution3x3_8cl.xhtml#afb8c72ce35c4a1f4a2588d6573e54aa1">DATA_TYPE</a> *)<a class="code" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h.xhtml#a009469e4d9b8fce3b6d5e97d2077827d">offset</a>(in, c2.se, c2.sf)));</div><div class="line"><a name="l00109"></a><span class="lineno"> 109</span>&#160;</div><div class="line"><a name="l00110"></a><span class="lineno"> 110</span>&#160; <span class="keyword">const</span> float16 inf32 = convert_float16(t - (int16)offset_qasymm) * (float16)<a class="code" href="namespacearm__compute_1_1test_1_1validation.xhtml#acec6d8ad52a28972fa74e071c1a63b6a">scale</a>;</div><div class="line"><a name="l00111"></a><span class="lineno"> 111</span>&#160;</div><div class="line"><a name="l00112"></a><span class="lineno"> 112</span>&#160; <span class="keyword">const</span> float8 <a class="code" href="namespacearm__compute_1_1test_1_1validation.xhtml#aac40b7097f2bda9274ae07fa33d15a79">a</a> = coords - fc;</div><div class="line"><a name="l00113"></a><span class="lineno"> 113</span>&#160; <span class="keyword">const</span> float8 <a class="code" href="namespacearm__compute_1_1test_1_1validation.xhtml#a7b8004eef325a40dd43eb80755610fff">b</a> = ((float8)(1.f)) - a;</div><div class="line"><a name="l00114"></a><span class="lineno"> 114</span>&#160; <span class="keyword">const</span> float4 fr = (float4)(</div><div class="line"><a name="l00115"></a><span class="lineno"> 115</span>&#160; ((inf32.s0 * b.s0 * b.s1) + (inf32.s1 * a.s0 * b.s1) + (inf32.s2 * b.s0 * a.s1) + (inf32.s3 * a.s0 * a.s1)),</div><div class="line"><a name="l00116"></a><span class="lineno"> 116</span>&#160; ((inf32.s4 * b.s2 * b.s3) + (inf32.s5 * a.s2 * b.s3) + (inf32.s6 * b.s2 * a.s3) + (inf32.s7 * a.s2 * a.s3)),</div><div class="line"><a name="l00117"></a><span class="lineno"> 117</span>&#160; ((inf32.s8 * b.s4 * b.s5) + (inf32.s9 * a.s4 * b.s5) + (inf32.sa * b.s4 * a.s5) + (inf32.sb * a.s4 * a.s5)),</div><div class="line"><a name="l00118"></a><span class="lineno"> 118</span>&#160; ((inf32.sc * b.s6 * b.s7) + (inf32.sd * a.s6 * b.s7) + (inf32.se * b.s6 * a.s7) + (inf32.sf * a.s6 * a.s7)));</div><div class="line"><a name="l00119"></a><span class="lineno"> 119</span>&#160;</div><div class="line"><a name="l00120"></a><span class="lineno"> 120</span>&#160; <span class="keyword">const</span> uchar4 res = convert_uchar4_sat(convert_int4_sat_rtp(fr / <a class="code" href="namespacearm__compute_1_1test_1_1validation.xhtml#acec6d8ad52a28972fa74e071c1a63b6a">scale</a>) + offset_qasymm);</div><div class="line"><a name="l00121"></a><span class="lineno"> 121</span>&#160;</div><div class="line"><a name="l00122"></a><span class="lineno"> 122</span>&#160; <span class="keywordflow">return</span> res;</div><div class="line"><a name="l00123"></a><span class="lineno"> 123</span>&#160;}</div><div class="ttc" id="src_2core_2_c_l_2cl__kernels_2_helpers_8h_xhtml_a009469e4d9b8fce3b6d5e97d2077827d"><div class="ttname"><a href="src_2core_2_c_l_2cl__kernels_2_helpers_8h.xhtml#a009469e4d9b8fce3b6d5e97d2077827d">offset</a></div><div class="ttdeci">__global uchar * offset(const Image *img, int x, int y)</div><div class="ttdoc">Get the pointer position of a Image. </div><div class="ttdef"><b>Definition:</b> <a href="src_2core_2_c_l_2cl__kernels_2_helpers_8h_source.xhtml#l00309">helpers.h:309</a></div></div>
285<div class="ttc" id="namespacearm__compute_1_1test_1_1validation_xhtml_aac40b7097f2bda9274ae07fa33d15a79"><div class="ttname"><a href="namespacearm__compute_1_1test_1_1validation.xhtml#aac40b7097f2bda9274ae07fa33d15a79">arm_compute::test::validation::a</a></div><div class="ttdeci">gemm configure &amp; a</div><div class="ttdef"><b>Definition:</b> <a href="validation_2_c_l_2_g_e_m_m_8cpp_source.xhtml#l00102">GEMM.cpp:102</a></div></div>
286<div class="ttc" id="convolution3x3_8cl_xhtml_afb8c72ce35c4a1f4a2588d6573e54aa1"><div class="ttname"><a href="convolution3x3_8cl.xhtml#afb8c72ce35c4a1f4a2588d6573e54aa1">DATA_TYPE</a></div><div class="ttdeci">#define DATA_TYPE</div><div class="ttdef"><b>Definition:</b> <a href="convolution3x3_8cl_source.xhtml#l00027">convolution3x3.cl:27</a></div></div>
287<div class="ttc" id="warp__helpers__quantized_8h_xhtml_aafa351a2c35f5f121921cee080c223d6"><div class="ttname"><a href="warp__helpers__quantized_8h.xhtml#aafa351a2c35f5f121921cee080c223d6">clamp_to_border_with_size_quantized</a></div><div class="ttdeci">const float8 clamp_to_border_with_size_quantized(float8 coords, const float width, const float height, const float border_size)</div><div class="ttdoc">Clamps the given coordinates to the borders according to the border size. </div><div class="ttdef"><b>Definition:</b> <a href="warp__helpers__quantized_8h_source.xhtml#l00034">warp_helpers_quantized.h:34</a></div></div>
288<div class="ttc" id="namespacearm__compute_1_1test_1_1validation_xhtml_acec6d8ad52a28972fa74e071c1a63b6a"><div class="ttname"><a href="namespacearm__compute_1_1test_1_1validation.xhtml#acec6d8ad52a28972fa74e071c1a63b6a">arm_compute::test::validation::scale</a></div><div class="ttdeci">scale</div><div class="ttdef"><b>Definition:</b> <a href="_n_e_o_n_2_pixel_wise_multiplication_8cpp_source.xhtml#l00168">PixelWiseMultiplication.cpp:168</a></div></div>
289<div class="ttc" id="warp__helpers__quantized_8h_xhtml_ac05d99f194a7cf429a7ecbadd1ffb018"><div class="ttname"><a href="warp__helpers__quantized_8h.xhtml#ac05d99f194a7cf429a7ecbadd1ffb018">get_neighbour_coords_quantized</a></div><div class="ttdeci">const float8 get_neighbour_coords_quantized(const float2 coord)</div><div class="ttdoc">Given a texel coordinates this function will return the following array of coordinates: [ P...</div><div class="ttdef"><b>Definition:</b> <a href="warp__helpers__quantized_8h_source.xhtml#l00063">warp_helpers_quantized.h:63</a></div></div>
290<div class="ttc" id="namespacearm__compute_1_1test_1_1validation_xhtml_a7b8004eef325a40dd43eb80755610fff"><div class="ttname"><a href="namespacearm__compute_1_1test_1_1validation.xhtml#a7b8004eef325a40dd43eb80755610fff">arm_compute::test::validation::b</a></div><div class="ttdeci">CLTensor b</div><div class="ttdef"><b>Definition:</b> <a href="validation_2_c_l_2_g_e_m_m_8cpp_source.xhtml#l00091">GEMM.cpp:91</a></div></div>
291</div><!-- fragment -->
292</div>
293</div>
294<a id="a33c81135c18bd3881c3f5f36c25fe499"></a>
295<h2 class="memtitle"><span class="permalink"><a href="#a33c81135c18bd3881c3f5f36c25fe499">&#9670;&nbsp;</a></span>clamp_to_border_quantized()</h2>
296
297<div class="memitem">
298<div class="memproto">
299<table class="mlabels">
300 <tr>
301 <td class="mlabels-left">
302 <table class="memname">
303 <tr>
304 <td class="memname">const float8 clamp_to_border_quantized </td>
305 <td>(</td>
306 <td class="paramtype">float8&#160;</td>
307 <td class="paramname"><em>coords</em>, </td>
308 </tr>
309 <tr>
310 <td class="paramkey"></td>
311 <td></td>
312 <td class="paramtype">const float&#160;</td>
313 <td class="paramname"><em>width</em>, </td>
314 </tr>
315 <tr>
316 <td class="paramkey"></td>
317 <td></td>
318 <td class="paramtype">const float&#160;</td>
319 <td class="paramname"><em>height</em>&#160;</td>
320 </tr>
321 <tr>
322 <td></td>
323 <td>)</td>
324 <td></td><td></td>
325 </tr>
326 </table>
327 </td>
328 <td class="mlabels-right">
329<span class="mlabels"><span class="mlabel">inline</span></span> </td>
330 </tr>
331</table>
332</div><div class="memdoc">
333
334<p>Clamps the given coordinates to the borders. </p>
335<dl class="params"><dt>Parameters</dt><dd>
336 <table class="params">
337 <tr><td class="paramdir">[in]</td><td class="paramname">coords</td><td><a class="el" href="struct_vector.xhtml" title="Structure to hold Vector information. ">Vector</a> of 2D coordinates to clamp. Even positions are X coords, odd positions are Y coords. </td></tr>
338 <tr><td class="paramdir">[in]</td><td class="paramname">width</td><td>Width of the image </td></tr>
339 <tr><td class="paramdir">[in]</td><td class="paramname">height</td><td>Height of the image </td></tr>
340 </table>
341 </dd>
342</dl>
343
344<p class="definition">Definition at line <a class="el" href="warp__helpers__quantized_8h_source.xhtml#l00049">49</a> of file <a class="el" href="warp__helpers__quantized_8h_source.xhtml">warp_helpers_quantized.h</a>.</p>
345
346<p class="reference">References <a class="el" href="warp__helpers__quantized_8h_source.xhtml#l00034">clamp_to_border_with_size_quantized()</a>.</p>
347<div class="fragment"><div class="line"><a name="l00050"></a><span class="lineno"> 50</span>&#160;{</div><div class="line"><a name="l00051"></a><span class="lineno"> 51</span>&#160; <span class="keywordflow">return</span> <a class="code" href="warp__helpers__quantized_8h.xhtml#aafa351a2c35f5f121921cee080c223d6">clamp_to_border_with_size_quantized</a>(coords, width, height, 1);</div><div class="line"><a name="l00052"></a><span class="lineno"> 52</span>&#160;}</div><div class="ttc" id="warp__helpers__quantized_8h_xhtml_aafa351a2c35f5f121921cee080c223d6"><div class="ttname"><a href="warp__helpers__quantized_8h.xhtml#aafa351a2c35f5f121921cee080c223d6">clamp_to_border_with_size_quantized</a></div><div class="ttdeci">const float8 clamp_to_border_with_size_quantized(float8 coords, const float width, const float height, const float border_size)</div><div class="ttdoc">Clamps the given coordinates to the borders according to the border size. </div><div class="ttdef"><b>Definition:</b> <a href="warp__helpers__quantized_8h_source.xhtml#l00034">warp_helpers_quantized.h:34</a></div></div>
348</div><!-- fragment -->
349</div>
350</div>
351<a id="aafa351a2c35f5f121921cee080c223d6"></a>
352<h2 class="memtitle"><span class="permalink"><a href="#aafa351a2c35f5f121921cee080c223d6">&#9670;&nbsp;</a></span>clamp_to_border_with_size_quantized()</h2>
353
354<div class="memitem">
355<div class="memproto">
356<table class="mlabels">
357 <tr>
358 <td class="mlabels-left">
359 <table class="memname">
360 <tr>
361 <td class="memname">const float8 clamp_to_border_with_size_quantized </td>
362 <td>(</td>
363 <td class="paramtype">float8&#160;</td>
364 <td class="paramname"><em>coords</em>, </td>
365 </tr>
366 <tr>
367 <td class="paramkey"></td>
368 <td></td>
369 <td class="paramtype">const float&#160;</td>
370 <td class="paramname"><em>width</em>, </td>
371 </tr>
372 <tr>
373 <td class="paramkey"></td>
374 <td></td>
375 <td class="paramtype">const float&#160;</td>
376 <td class="paramname"><em>height</em>, </td>
377 </tr>
378 <tr>
379 <td class="paramkey"></td>
380 <td></td>
381 <td class="paramtype">const float&#160;</td>
382 <td class="paramname"><em>border_size</em>&#160;</td>
383 </tr>
384 <tr>
385 <td></td>
386 <td>)</td>
387 <td></td><td></td>
388 </tr>
389 </table>
390 </td>
391 <td class="mlabels-right">
392<span class="mlabels"><span class="mlabel">inline</span></span> </td>
393 </tr>
394</table>
395</div><div class="memdoc">
396
397<p>Clamps the given coordinates to the borders according to the border size. </p>
398<dl class="params"><dt>Parameters</dt><dd>
399 <table class="params">
400 <tr><td class="paramdir">[in]</td><td class="paramname">coords</td><td><a class="el" href="struct_vector.xhtml" title="Structure to hold Vector information. ">Vector</a> of 2D coordinates to clamp. Even positions are X coords, odd positions are Y coords. </td></tr>
401 <tr><td class="paramdir">[in]</td><td class="paramname">width</td><td>Width of the image </td></tr>
402 <tr><td class="paramdir">[in]</td><td class="paramname">height</td><td>Height of the image </td></tr>
403 <tr><td class="paramdir">[in]</td><td class="paramname">border_size</td><td>Border size of the image </td></tr>
404 </table>
405 </dd>
406</dl>
407
408<p class="definition">Definition at line <a class="el" href="warp__helpers__quantized_8h_source.xhtml#l00034">34</a> of file <a class="el" href="warp__helpers__quantized_8h_source.xhtml">warp_helpers_quantized.h</a>.</p>
409
410<p class="reference">References <a class="el" href="_utility_8h_source.xhtml#l00084">arm_compute::utility::clamp()</a>.</p>
411
412<p class="reference">Referenced by <a class="el" href="warp__helpers__quantized_8h_source.xhtml#l00084">bilinear_interpolate_with_border_quantized()</a>, and <a class="el" href="warp__helpers__quantized_8h_source.xhtml#l00049">clamp_to_border_quantized()</a>.</p>
413<div class="fragment"><div class="line"><a name="l00035"></a><span class="lineno"> 35</span>&#160;{</div><div class="line"><a name="l00036"></a><span class="lineno"> 36</span>&#160; <span class="keyword">const</span> float4 clamped_x = <a class="code" href="namespacearm__compute_1_1utility.xhtml#a12c3c62f510452805c289e180ec78bb7">clamp</a>(coords.even, 0.0f - border_size, width - 1 + border_size);</div><div class="line"><a name="l00037"></a><span class="lineno"> 37</span>&#160; <span class="keyword">const</span> float4 clamped_y = <a class="code" href="namespacearm__compute_1_1utility.xhtml#a12c3c62f510452805c289e180ec78bb7">clamp</a>(coords.odd, 0.0f - border_size, height - 1 + border_size);</div><div class="line"><a name="l00038"></a><span class="lineno"> 38</span>&#160; <span class="keywordflow">return</span> (float8)(clamped_x.s0, clamped_y.s0, clamped_x.s1, clamped_y.s1, clamped_x.s2, clamped_y.s2, clamped_x.s3, clamped_y.s3);</div><div class="line"><a name="l00039"></a><span class="lineno"> 39</span>&#160;}</div><div class="ttc" id="namespacearm__compute_1_1utility_xhtml_a12c3c62f510452805c289e180ec78bb7"><div class="ttname"><a href="namespacearm__compute_1_1utility.xhtml#a12c3c62f510452805c289e180ec78bb7">arm_compute::utility::clamp</a></div><div class="ttdeci">T clamp(const T &amp;n, const T &amp;lower, const T &amp;upper)</div><div class="ttdoc">Performs clamping among a lower and upper value. </div><div class="ttdef"><b>Definition:</b> <a href="_utility_8h_source.xhtml#l00084">Utility.h:84</a></div></div>
414</div><!-- fragment -->
415</div>
416</div>
417<a id="aa13de3eff8afd51e8bf4c1904a9b7415"></a>
418<h2 class="memtitle"><span class="permalink"><a href="#aa13de3eff8afd51e8bf4c1904a9b7415">&#9670;&nbsp;</a></span>get_current_coords_quantized()</h2>
419
420<div class="memitem">
421<div class="memproto">
422<table class="mlabels">
423 <tr>
424 <td class="mlabels-left">
425 <table class="memname">
426 <tr>
427 <td class="memname">const float2 get_current_coords_quantized </td>
428 <td>(</td>
429 <td class="paramname"></td><td>)</td>
430 <td></td>
431 </tr>
432 </table>
433 </td>
434 <td class="mlabels-right">
435<span class="mlabels"><span class="mlabel">inline</span></span> </td>
436 </tr>
437</table>
438</div><div class="memdoc">
439
440<p>Returns the current thread coordinates. </p>
441
442<p class="definition">Definition at line <a class="el" href="warp__helpers__quantized_8h_source.xhtml#l00069">69</a> of file <a class="el" href="warp__helpers__quantized_8h_source.xhtml">warp_helpers_quantized.h</a>.</p>
443
444<p class="reference">Referenced by <a class="el" href="scale__quantized_8cl_source.xhtml#l00073">scale_bilinear_quantized_nchw()</a>.</p>
445<div class="fragment"><div class="line"><a name="l00070"></a><span class="lineno"> 70</span>&#160;{</div><div class="line"><a name="l00071"></a><span class="lineno"> 71</span>&#160; <span class="keywordflow">return</span> (float2)(get_global_id(0) * 4, get_global_id(1));</div><div class="line"><a name="l00072"></a><span class="lineno"> 72</span>&#160;}</div></div><!-- fragment -->
446</div>
447</div>
448<a id="ac05d99f194a7cf429a7ecbadd1ffb018"></a>
449<h2 class="memtitle"><span class="permalink"><a href="#ac05d99f194a7cf429a7ecbadd1ffb018">&#9670;&nbsp;</a></span>get_neighbour_coords_quantized()</h2>
450
451<div class="memitem">
452<div class="memproto">
453<table class="mlabels">
454 <tr>
455 <td class="mlabels-left">
456 <table class="memname">
457 <tr>
458 <td class="memname">const float8 get_neighbour_coords_quantized </td>
459 <td>(</td>
460 <td class="paramtype">const float2&#160;</td>
461 <td class="paramname"><em>coord</em></td><td>)</td>
462 <td></td>
463 </tr>
464 </table>
465 </td>
466 <td class="mlabels-right">
467<span class="mlabels"><span class="mlabel">inline</span></span> </td>
468 </tr>
469</table>
470</div><div class="memdoc">
471
472<p>Given a texel coordinates this function will return the following array of coordinates: [ P, right neighbour, below neighbour, below right neighbour ]. </p>
473<dl class="section note"><dt>Note</dt><dd>No checks to see if the coordinates are out of the image are done here.</dd></dl>
474<dl class="params"><dt>Parameters</dt><dd>
475 <table class="params">
476 <tr><td class="paramdir">[in]</td><td class="paramname">coord</td><td>Input coordinates</td></tr>
477 </table>
478 </dd>
479</dl>
480<dl class="section return"><dt>Returns</dt><dd>vector of 8 floats with the coordinates, even positions are x and odd y. </dd></dl>
481
482<p class="definition">Definition at line <a class="el" href="warp__helpers__quantized_8h_source.xhtml#l00063">63</a> of file <a class="el" href="warp__helpers__quantized_8h_source.xhtml">warp_helpers_quantized.h</a>.</p>
483
484<p class="reference">Referenced by <a class="el" href="warp__helpers__quantized_8h_source.xhtml#l00084">bilinear_interpolate_with_border_quantized()</a>.</p>
485<div class="fragment"><div class="line"><a name="l00064"></a><span class="lineno"> 64</span>&#160;{</div><div class="line"><a name="l00065"></a><span class="lineno"> 65</span>&#160; <span class="keywordflow">return</span> (float8)(<span class="comment">/*tl*/</span> coord.s0, coord.s1, <span class="comment">/*tr*/</span> coord.s0 + 1, coord.s1, <span class="comment">/*bl*/</span> coord.s0, coord.s1 + 1, <span class="comment">/*br*/</span> coord.s0 + 1, coord.s1 + 1);</div><div class="line"><a name="l00066"></a><span class="lineno"> 66</span>&#160;}</div></div><!-- fragment -->
486</div>
487</div>
488</div><!-- contents -->
489</div><!-- doc-content -->
490<!-- start footer part -->
491<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
492 <ul>
493 <li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.xhtml">src</a></li><li class="navelem"><a class="el" href="dir_aebb8dcc11953d78e620bbef0b9e2183.xhtml">core</a></li><li class="navelem"><a class="el" href="dir_8c278f79c760e5c5fbd911f9870614c1.xhtml">CL</a></li><li class="navelem"><a class="el" href="dir_25885286e9dad4fa105b7b25a8031bbf.xhtml">cl_kernels</a></li><li class="navelem"><a class="el" href="warp__helpers__quantized_8h.xhtml">warp_helpers_quantized.h</a></li>
494 <li class="footer">Generated on Thu Nov 22 2018 11:57:43 for Compute Library by
495 <a href="http://www.doxygen.org/index.html">
496 <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.13 </li>
497 </ul>
498</div>
499</body>
500</html>