Anthony Barbier | 871448e | 2017-03-24 14:54:29 +0000 | [diff] [blame] | 1 | <!-- 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"/> |
Kaizen | 8938bd3 | 2017-09-28 14:38:23 +0100 | [diff] [blame^] | 7 | <meta name="generator" content="Doxygen 1.8.6"/> |
Anthony Barbier | 871448e | 2017-03-24 14:54:29 +0000 | [diff] [blame] | 8 | <meta name="robots" content="NOINDEX, NOFOLLOW" /> <!-- Prevent indexing by search engines --> |
Anthony Barbier | dbdab85 | 2017-06-23 15:42:00 +0100 | [diff] [blame] | 9 | <title>Compute Library: src/core/CL/cl_kernels/warp_helpers.h File Reference</title> |
Anthony Barbier | 871448e | 2017-03-24 14:54:29 +0000 | [diff] [blame] | 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> |
Anthony Barbier | 871448e | 2017-03-24 14:54:29 +0000 | [diff] [blame] | 15 | <script type="text/javascript" src="navtree.js"></script> |
| 16 | <script type="text/javascript"> |
| 17 | $(document).ready(initResizable); |
| 18 | $(window).load(resizeHeight); |
| 19 | </script> |
| 20 | <link href="search/search.css" rel="stylesheet" type="text/css"/> |
Anthony Barbier | 871448e | 2017-03-24 14:54:29 +0000 | [diff] [blame] | 21 | <script type="text/javascript" src="search/search.js"></script> |
| 22 | <script type="text/javascript"> |
Kaizen | 8938bd3 | 2017-09-28 14:38:23 +0100 | [diff] [blame^] | 23 | $(document).ready(function() { searchBox.OnSelectItem(0); }); |
Anthony Barbier | 871448e | 2017-03-24 14:54:29 +0000 | [diff] [blame] | 24 | </script> |
| 25 | <script type="text/x-mathjax-config"> |
| 26 | MathJax.Hub.Config({ |
| 27 | extensions: ["tex2jax.js"], |
| 28 | jax: ["input/TeX","output/HTML-CSS"], |
| 29 | }); |
Kaizen | 8938bd3 | 2017-09-28 14:38:23 +0100 | [diff] [blame^] | 30 | </script><script src="http://cdn.mathjax.org/mathjax/latest/MathJax.js"></script> |
Anthony Barbier | 871448e | 2017-03-24 14:54:29 +0000 | [diff] [blame] | 31 | <link href="doxygen.css" rel="stylesheet" type="text/css" /> |
| 32 | </head> |
| 33 | <body> |
| 34 | <div id="top"><!-- do not remove this div, it is closed by doxygen! --> |
| 35 | <div id="titlearea"> |
| 36 | <table cellspacing="0" cellpadding="0"> |
| 37 | <tbody> |
| 38 | <tr style="height: 56px;"> |
| 39 | <td style="padding-left: 0.5em;"> |
Anthony Barbier | dbdab85 | 2017-06-23 15:42:00 +0100 | [diff] [blame] | 40 | <div id="projectname">Compute Library |
Kaizen | 8938bd3 | 2017-09-28 14:38:23 +0100 | [diff] [blame^] | 41 |  <span id="projectnumber">17.09</span> |
Anthony Barbier | 871448e | 2017-03-24 14:54:29 +0000 | [diff] [blame] | 42 | </div> |
| 43 | </td> |
| 44 | </tr> |
| 45 | </tbody> |
| 46 | </table> |
| 47 | </div> |
| 48 | <!-- end header part --> |
Kaizen | 8938bd3 | 2017-09-28 14:38:23 +0100 | [diff] [blame^] | 49 | <!-- Generated by Doxygen 1.8.6 --> |
Anthony Barbier | 871448e | 2017-03-24 14:54:29 +0000 | [diff] [blame] | 50 | <script type="text/javascript"> |
| 51 | var searchBox = new SearchBox("searchBox", "search",false,'Search'); |
| 52 | </script> |
| 53 | <div id="navrow1" class="tabs"> |
| 54 | <ul class="tablist"> |
| 55 | <li><a href="index.xhtml"><span>Main Page</span></a></li> |
Anthony Barbier | dbdab85 | 2017-06-23 15:42:00 +0100 | [diff] [blame] | 56 | <li><a href="pages.xhtml"><span>Related Pages</span></a></li> |
Anthony Barbier | 871448e | 2017-03-24 14:54:29 +0000 | [diff] [blame] | 57 | <li><a href="namespaces.xhtml"><span>Namespaces</span></a></li> |
| 58 | <li><a href="annotated.xhtml"><span>Data Structures</span></a></li> |
| 59 | <li class="current"><a href="files.xhtml"><span>Files</span></a></li> |
| 60 | <li> |
| 61 | <div id="MSearchBox" class="MSearchBoxInactive"> |
| 62 | <span class="left"> |
| 63 | <img id="MSearchSelect" src="search/mag_sel.png" |
| 64 | onmouseover="return searchBox.OnSearchSelectShow()" |
| 65 | onmouseout="return searchBox.OnSearchSelectHide()" |
| 66 | alt=""/> |
| 67 | <input type="text" id="MSearchField" value="Search" accesskey="S" |
| 68 | onfocus="searchBox.OnSearchFieldFocus(true)" |
| 69 | onblur="searchBox.OnSearchFieldFocus(false)" |
| 70 | onkeyup="searchBox.OnSearchFieldChange(event)"/> |
| 71 | </span><span class="right"> |
| 72 | <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a> |
| 73 | </span> |
| 74 | </div> |
| 75 | </li> |
| 76 | </ul> |
| 77 | </div> |
| 78 | <div id="navrow2" class="tabs2"> |
| 79 | <ul class="tablist"> |
| 80 | <li><a href="files.xhtml"><span>File List</span></a></li> |
| 81 | <li><a href="globals.xhtml"><span>Globals</span></a></li> |
| 82 | </ul> |
| 83 | </div> |
| 84 | </div><!-- top --> |
| 85 | <div id="side-nav" class="ui-resizable side-nav-resizable"> |
| 86 | <div id="nav-tree"> |
| 87 | <div id="nav-tree-contents"> |
| 88 | <div id="nav-sync" class="sync"></div> |
| 89 | </div> |
| 90 | </div> |
| 91 | <div id="splitbar" style="-moz-user-select:none;" |
| 92 | class="ui-resizable-handle"> |
| 93 | </div> |
| 94 | </div> |
| 95 | <script type="text/javascript"> |
| 96 | $(document).ready(function(){initNavTree('warp__helpers_8h.xhtml','');}); |
| 97 | </script> |
| 98 | <div id="doc-content"> |
| 99 | <!-- window showing the filter options --> |
| 100 | <div id="MSearchSelectWindow" |
| 101 | onmouseover="return searchBox.OnSearchSelectShow()" |
| 102 | onmouseout="return searchBox.OnSearchSelectHide()" |
| 103 | onkeydown="return searchBox.OnSearchSelectKey(event)"> |
Kaizen | 8938bd3 | 2017-09-28 14:38:23 +0100 | [diff] [blame^] | 104 | <a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark"> </span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark"> </span>Data Structures</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark"> </span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark"> </span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark"> </span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark"> </span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark"> </span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark"> </span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark"> </span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark"> </span>Friends</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(10)"><span class="SelectionMark"> </span>Macros</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(11)"><span class="SelectionMark"> </span>Pages</a></div> |
Anthony Barbier | 871448e | 2017-03-24 14:54:29 +0000 | [diff] [blame] | 105 | |
| 106 | <!-- iframe showing the search results (closed by default) --> |
| 107 | <div id="MSearchResultsWindow"> |
| 108 | <iframe src="javascript:void(0)" frameborder="0" |
| 109 | name="MSearchResults" id="MSearchResults"> |
| 110 | </iframe> |
| 111 | </div> |
| 112 | |
| 113 | <div class="header"> |
| 114 | <div class="summary"> |
| 115 | <a href="#func-members">Functions</a> </div> |
| 116 | <div class="headertitle"> |
| 117 | <div class="title">warp_helpers.h File Reference</div> </div> |
| 118 | </div><!--header--> |
| 119 | <div class="contents"> |
Kaizen | 8938bd3 | 2017-09-28 14:38:23 +0100 | [diff] [blame^] | 120 | <div class="textblock"><code>#include "<a class="el" href="helpers_8h_source.xhtml">helpers.h</a>"</code><br/> |
Anthony Barbier | 871448e | 2017-03-24 14:54:29 +0000 | [diff] [blame] | 121 | </div> |
| 122 | <p><a href="warp__helpers_8h_source.xhtml">Go to the source code of this file.</a></p> |
| 123 | <table class="memberdecls"> |
| 124 | <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a> |
| 125 | Functions</h2></td></tr> |
| 126 | <tr class="memitem:adbdf2ca9e8fe0b67f9359929ef743126"><td class="memItemLeft" align="right" valign="top">const float8 </td><td class="memItemRight" valign="bottom"><a class="el" href="warp__helpers_8h.xhtml#adbdf2ca9e8fe0b67f9359929ef743126">clamp_to_border</a> (float8 coords, const float width, const float height)</td></tr> |
Kaizen | 8938bd3 | 2017-09-28 14:38:23 +0100 | [diff] [blame^] | 127 | <tr class="memdesc:adbdf2ca9e8fe0b67f9359929ef743126"><td class="mdescLeft"> </td><td class="mdescRight">Clamps the given coordinates to the borders. <a href="#adbdf2ca9e8fe0b67f9359929ef743126">More...</a><br/></td></tr> |
Anthony Barbier | 871448e | 2017-03-24 14:54:29 +0000 | [diff] [blame] | 128 | <tr class="separator:adbdf2ca9e8fe0b67f9359929ef743126"><td class="memSeparator" colspan="2"> </td></tr> |
| 129 | <tr class="memitem:aba42442a4c991cdbb52727fa370676f1"><td class="memItemLeft" align="right" valign="top">const DATA_TYPE4 </td><td class="memItemRight" valign="bottom"><a class="el" href="warp__helpers_8h.xhtml#aba42442a4c991cdbb52727fa370676f1">read_texels4</a> (const <a class="el" href="struct_image.xhtml">Image</a> *in, const int8 coords)</td></tr> |
Kaizen | 8938bd3 | 2017-09-28 14:38:23 +0100 | [diff] [blame^] | 130 | <tr class="memdesc:aba42442a4c991cdbb52727fa370676f1"><td class="mdescLeft"> </td><td class="mdescRight">Reads four texels from the input image. <a href="#aba42442a4c991cdbb52727fa370676f1">More...</a><br/></td></tr> |
Anthony Barbier | 871448e | 2017-03-24 14:54:29 +0000 | [diff] [blame] | 131 | <tr class="separator:aba42442a4c991cdbb52727fa370676f1"><td class="memSeparator" colspan="2"> </td></tr> |
| 132 | <tr class="memitem:a4caaeeb51ea58015267a9974675226d1"><td class="memItemLeft" align="right" valign="top">const float2 </td><td class="memItemRight" valign="bottom"><a class="el" href="warp__helpers_8h.xhtml#a4caaeeb51ea58015267a9974675226d1">get_current_coords</a> ()</td></tr> |
Kaizen | 8938bd3 | 2017-09-28 14:38:23 +0100 | [diff] [blame^] | 133 | <tr class="memdesc:a4caaeeb51ea58015267a9974675226d1"><td class="mdescLeft"> </td><td class="mdescRight">Returns the current thread coordinates. <a href="#a4caaeeb51ea58015267a9974675226d1">More...</a><br/></td></tr> |
Anthony Barbier | 871448e | 2017-03-24 14:54:29 +0000 | [diff] [blame] | 134 | <tr class="separator:a4caaeeb51ea58015267a9974675226d1"><td class="memSeparator" colspan="2"> </td></tr> |
| 135 | <tr class="memitem:a2d8047717d6464cad02c5979d09576db"><td class="memItemLeft" align="right" valign="top">const float8 </td><td class="memItemRight" valign="bottom"><a class="el" href="warp__helpers_8h.xhtml#a2d8047717d6464cad02c5979d09576db">get_neighbour_coords</a> (const float2 coord)</td></tr> |
Kaizen | 8938bd3 | 2017-09-28 14:38:23 +0100 | [diff] [blame^] | 136 | <tr class="memdesc:a2d8047717d6464cad02c5979d09576db"><td class="mdescLeft"> </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="#a2d8047717d6464cad02c5979d09576db">More...</a><br/></td></tr> |
Anthony Barbier | 871448e | 2017-03-24 14:54:29 +0000 | [diff] [blame] | 137 | <tr class="separator:a2d8047717d6464cad02c5979d09576db"><td class="memSeparator" colspan="2"> </td></tr> |
| 138 | <tr class="memitem:abea9f226daf3e0ad741d03cf7417d353"><td class="memItemLeft" align="right" valign="top">const DATA_TYPE4 </td><td class="memItemRight" valign="bottom"><a class="el" href="warp__helpers_8h.xhtml#abea9f226daf3e0ad741d03cf7417d353">bilinear_interpolate</a> (const <a class="el" href="struct_image.xhtml">Image</a> *in, const float8 coords, const float width, const float height)</td></tr> |
Kaizen | 8938bd3 | 2017-09-28 14:38:23 +0100 | [diff] [blame^] | 139 | <tr class="memdesc:abea9f226daf3e0ad741d03cf7417d353"><td class="mdescLeft"> </td><td class="mdescRight">Computes the bilinear interpolation for each set of coordinates in the vector coords and returns the values. <a href="#abea9f226daf3e0ad741d03cf7417d353">More...</a><br/></td></tr> |
Anthony Barbier | 871448e | 2017-03-24 14:54:29 +0000 | [diff] [blame] | 140 | <tr class="separator:abea9f226daf3e0ad741d03cf7417d353"><td class="memSeparator" colspan="2"> </td></tr> |
| 141 | </table> |
| 142 | <h2 class="groupheader">Function Documentation</h2> |
| 143 | <a class="anchor" id="abea9f226daf3e0ad741d03cf7417d353"></a> |
| 144 | <div class="memitem"> |
| 145 | <div class="memproto"> |
| 146 | <table class="mlabels"> |
| 147 | <tr> |
| 148 | <td class="mlabels-left"> |
| 149 | <table class="memname"> |
| 150 | <tr> |
| 151 | <td class="memname">const DATA_TYPE4 bilinear_interpolate </td> |
| 152 | <td>(</td> |
| 153 | <td class="paramtype">const <a class="el" href="struct_image.xhtml">Image</a> * </td> |
| 154 | <td class="paramname"><em>in</em>, </td> |
| 155 | </tr> |
| 156 | <tr> |
| 157 | <td class="paramkey"></td> |
| 158 | <td></td> |
| 159 | <td class="paramtype">const float8 </td> |
| 160 | <td class="paramname"><em>coords</em>, </td> |
| 161 | </tr> |
| 162 | <tr> |
| 163 | <td class="paramkey"></td> |
| 164 | <td></td> |
| 165 | <td class="paramtype">const float </td> |
| 166 | <td class="paramname"><em>width</em>, </td> |
| 167 | </tr> |
| 168 | <tr> |
| 169 | <td class="paramkey"></td> |
| 170 | <td></td> |
| 171 | <td class="paramtype">const float </td> |
| 172 | <td class="paramname"><em>height</em> </td> |
| 173 | </tr> |
| 174 | <tr> |
| 175 | <td></td> |
| 176 | <td>)</td> |
| 177 | <td></td><td></td> |
| 178 | </tr> |
| 179 | </table> |
| 180 | </td> |
| 181 | <td class="mlabels-right"> |
| 182 | <span class="mlabels"><span class="mlabel">inline</span></span> </td> |
| 183 | </tr> |
| 184 | </table> |
| 185 | </div><div class="memdoc"> |
| 186 | |
| 187 | <p>Computes the bilinear interpolation for each set of coordinates in the vector coords and returns the values. </p> |
| 188 | <dl class="params"><dt>Parameters</dt><dd> |
| 189 | <table class="params"> |
| 190 | <tr><td class="paramdir">[in]</td><td class="paramname">in</td><td>Pointer to the source image. </td></tr> |
| 191 | <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> |
| 192 | <tr><td class="paramdir">[in]</td><td class="paramname">width</td><td>Width of the image </td></tr> |
| 193 | <tr><td class="paramdir">[in]</td><td class="paramname">height</td><td>Height of the image </td></tr> |
| 194 | </table> |
| 195 | </dd> |
| 196 | </dl> |
| 197 | |
| 198 | <p>Definition at line <a class="el" href="warp__helpers_8h_source.xhtml#l00080">80</a> of file <a class="el" href="warp__helpers_8h_source.xhtml">warp_helpers.h</a>.</p> |
| 199 | |
Kaizen | 8938bd3 | 2017-09-28 14:38:23 +0100 | [diff] [blame^] | 200 | <p>References <a class="el" href="warp__helpers_8h_source.xhtml#l00033">clamp_to_border()</a>, <a class="el" href="fixed__point_8h_source.xhtml#l00098">CONVERT</a>, <a class="el" href="convolution3x3_8cl_source.xhtml#l00027">DATA_TYPE</a>, <a class="el" href="warp__helpers_8h_source.xhtml#l00068">get_neighbour_coords()</a>, <a class="el" href="helpers_8h_source.xhtml#l00292">offset()</a>, and <a class="el" href="fixed__point_8h_source.xhtml#l00093">VEC_DATA_TYPE</a>.</p> |
Anthony Barbier | 871448e | 2017-03-24 14:54:29 +0000 | [diff] [blame] | 201 | |
| 202 | <p>Referenced by <a class="el" href="remap_8cl_source.xhtml#l00113">remap_bilinear()</a>, <a class="el" href="scale_8cl_source.xhtml#l00110">scale_bilinear()</a>, <a class="el" href="warp__affine_8cl_source.xhtml#l00111">warp_affine_bilinear()</a>, and <a class="el" href="warp__perspective_8cl_source.xhtml#l00119">warp_perspective_bilinear()</a>.</p> |
Kaizen | 8938bd3 | 2017-09-28 14:38:23 +0100 | [diff] [blame^] | 203 | <div class="fragment"><div class="line"><a name="l00081"></a><span class="lineno"> 81</span> {</div> |
| 204 | <div class="line"><a name="l00082"></a><span class="lineno"> 82</span>  <span class="comment">// If any of the 4 texels is out of the image's boundaries we use the border value (REPLICATE or CONSTANT) for any texel out of the image.</span></div> |
| 205 | <div class="line"><a name="l00083"></a><span class="lineno"> 83</span> </div> |
| 206 | <div class="line"><a name="l00084"></a><span class="lineno"> 84</span>  <span class="comment">// Sets the 4x4 coordinates for each of the four input texels</span></div> |
| 207 | <div class="line"><a name="l00085"></a><span class="lineno"> 85</span>  <span class="keyword">const</span> float8 fc = floor(coords);</div> |
| 208 | <div class="line"><a name="l00086"></a><span class="lineno"> 86</span>  <span class="keyword">const</span> float16 c1 = (float16)(</div> |
| 209 | <div class="line"><a name="l00087"></a><span class="lineno"> 87</span>  <a class="code" href="warp__helpers_8h.xhtml#adbdf2ca9e8fe0b67f9359929ef743126">clamp_to_border</a>(<a class="code" href="warp__helpers_8h.xhtml#a2d8047717d6464cad02c5979d09576db">get_neighbour_coords</a>((float2)(fc.s0, fc.s1)), width, height),</div> |
| 210 | <div class="line"><a name="l00088"></a><span class="lineno"> 88</span>  <a class="code" href="warp__helpers_8h.xhtml#adbdf2ca9e8fe0b67f9359929ef743126">clamp_to_border</a>(<a class="code" href="warp__helpers_8h.xhtml#a2d8047717d6464cad02c5979d09576db">get_neighbour_coords</a>((float2)(fc.s2, fc.s3)), width, height));</div> |
| 211 | <div class="line"><a name="l00089"></a><span class="lineno"> 89</span>  <span class="keyword">const</span> float16 c2 = (float16)(</div> |
| 212 | <div class="line"><a name="l00090"></a><span class="lineno"> 90</span>  <a class="code" href="warp__helpers_8h.xhtml#adbdf2ca9e8fe0b67f9359929ef743126">clamp_to_border</a>(<a class="code" href="warp__helpers_8h.xhtml#a2d8047717d6464cad02c5979d09576db">get_neighbour_coords</a>((float2)(fc.s4, fc.s5)), width, height),</div> |
| 213 | <div class="line"><a name="l00091"></a><span class="lineno"> 91</span>  <a class="code" href="warp__helpers_8h.xhtml#adbdf2ca9e8fe0b67f9359929ef743126">clamp_to_border</a>(<a class="code" href="warp__helpers_8h.xhtml#a2d8047717d6464cad02c5979d09576db">get_neighbour_coords</a>((float2)(fc.s6, fc.s7)), width, height));</div> |
| 214 | <div class="line"><a name="l00092"></a><span class="lineno"> 92</span>  <span class="comment">// Loads the values from the input image</span></div> |
| 215 | <div class="line"><a name="l00093"></a><span class="lineno"> 93</span>  <span class="keyword">const</span> float16 t = (float16)(</div> |
| 216 | <div class="line"><a name="l00094"></a><span class="lineno"> 94</span>  <span class="comment">/* tl, tr, bl, br */</span></div> |
| 217 | <div class="line"><a name="l00095"></a><span class="lineno"> 95</span>  * ((__global <a class="code" href="convolution3x3_8cl.xhtml#afb8c72ce35c4a1f4a2588d6573e54aa1">DATA_TYPE</a> *)<a class="code" href="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="helpers_8h.xhtml#a009469e4d9b8fce3b6d5e97d2077827d">offset</a>(in, c1.s2, c1.s3)),</div> |
| 218 | <div class="line"><a name="l00096"></a><span class="lineno"> 96</span>  *((__global <a class="code" href="convolution3x3_8cl.xhtml#afb8c72ce35c4a1f4a2588d6573e54aa1">DATA_TYPE</a> *)<a class="code" href="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="helpers_8h.xhtml#a009469e4d9b8fce3b6d5e97d2077827d">offset</a>(in, c1.s6, c1.s7)),</div> |
| 219 | <div class="line"><a name="l00097"></a><span class="lineno"> 97</span>  *((__global <a class="code" href="convolution3x3_8cl.xhtml#afb8c72ce35c4a1f4a2588d6573e54aa1">DATA_TYPE</a> *)<a class="code" href="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="helpers_8h.xhtml#a009469e4d9b8fce3b6d5e97d2077827d">offset</a>(in, c1.sa, c1.sb)),</div> |
| 220 | <div class="line"><a name="l00098"></a><span class="lineno"> 98</span>  *((__global <a class="code" href="convolution3x3_8cl.xhtml#afb8c72ce35c4a1f4a2588d6573e54aa1">DATA_TYPE</a> *)<a class="code" href="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="helpers_8h.xhtml#a009469e4d9b8fce3b6d5e97d2077827d">offset</a>(in, c1.se, c1.sf)),</div> |
| 221 | <div class="line"><a name="l00099"></a><span class="lineno"> 99</span>  *((__global <a class="code" href="convolution3x3_8cl.xhtml#afb8c72ce35c4a1f4a2588d6573e54aa1">DATA_TYPE</a> *)<a class="code" href="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="helpers_8h.xhtml#a009469e4d9b8fce3b6d5e97d2077827d">offset</a>(in, c2.s2, c2.s3)),</div> |
| 222 | <div class="line"><a name="l00100"></a><span class="lineno"> 100</span>  *((__global <a class="code" href="convolution3x3_8cl.xhtml#afb8c72ce35c4a1f4a2588d6573e54aa1">DATA_TYPE</a> *)<a class="code" href="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="helpers_8h.xhtml#a009469e4d9b8fce3b6d5e97d2077827d">offset</a>(in, c2.s6, c2.s7)),</div> |
| 223 | <div class="line"><a name="l00101"></a><span class="lineno"> 101</span>  *((__global <a class="code" href="convolution3x3_8cl.xhtml#afb8c72ce35c4a1f4a2588d6573e54aa1">DATA_TYPE</a> *)<a class="code" href="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="helpers_8h.xhtml#a009469e4d9b8fce3b6d5e97d2077827d">offset</a>(in, c2.sa, c2.sb)),</div> |
| 224 | <div class="line"><a name="l00102"></a><span class="lineno"> 102</span>  *((__global <a class="code" href="convolution3x3_8cl.xhtml#afb8c72ce35c4a1f4a2588d6573e54aa1">DATA_TYPE</a> *)<a class="code" href="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="helpers_8h.xhtml#a009469e4d9b8fce3b6d5e97d2077827d">offset</a>(in, c2.se, c2.sf)));</div> |
| 225 | <div class="line"><a name="l00103"></a><span class="lineno"> 103</span>  <span class="keyword">const</span> float8 a = coords - fc;</div> |
| 226 | <div class="line"><a name="l00104"></a><span class="lineno"> 104</span>  <span class="keyword">const</span> float8 b = ((float8)(1.f)) - a;</div> |
| 227 | <div class="line"><a name="l00105"></a><span class="lineno"> 105</span>  <span class="keyword">const</span> float4 fr = (float4)(</div> |
| 228 | <div class="line"><a name="l00106"></a><span class="lineno"> 106</span>  ((t.s0 * b.s0 * b.s1) + (t.s1 * a.s0 * b.s1) + (t.s2 * b.s0 * a.s1) + (t.s3 * a.s0 * a.s1)),</div> |
| 229 | <div class="line"><a name="l00107"></a><span class="lineno"> 107</span>  ((t.s4 * b.s2 * b.s3) + (t.s5 * a.s2 * b.s3) + (t.s6 * b.s2 * a.s3) + (t.s7 * a.s2 * a.s3)),</div> |
| 230 | <div class="line"><a name="l00108"></a><span class="lineno"> 108</span>  ((t.s8 * b.s4 * b.s5) + (t.s9 * a.s4 * b.s5) + (t.sa * b.s4 * a.s5) + (t.sb * a.s4 * a.s5)),</div> |
| 231 | <div class="line"><a name="l00109"></a><span class="lineno"> 109</span>  ((t.sc * b.s6 * b.s7) + (t.sd * a.s6 * b.s7) + (t.se * b.s6 * a.s7) + (t.sf * a.s6 * a.s7)));</div> |
| 232 | <div class="line"><a name="l00110"></a><span class="lineno"> 110</span>  <span class="keywordflow">return</span> <a class="code" href="fixed__point_8h.xhtml#aa8d95ba04fc73845abc6045952cae5be">CONVERT</a>(fr, <a class="code" href="fixed__point_8h.xhtml#a36f754c05b6fddf6df0d8d0a74f8159f">VEC_DATA_TYPE</a>(<a class="code" href="convolution3x3_8cl.xhtml#afb8c72ce35c4a1f4a2588d6573e54aa1">DATA_TYPE</a>, 4));</div> |
| 233 | <div class="line"><a name="l00111"></a><span class="lineno"> 111</span> }</div> |
| 234 | <div class="ttc" id="fixed__point_8h_xhtml_aa8d95ba04fc73845abc6045952cae5be"><div class="ttname"><a href="fixed__point_8h.xhtml#aa8d95ba04fc73845abc6045952cae5be">CONVERT</a></div><div class="ttdeci">#define CONVERT(x, type)</div><div class="ttdef"><b>Definition:</b> <a href="fixed__point_8h_source.xhtml#l00098">fixed_point.h:98</a></div></div> |
| 235 | <div class="ttc" id="warp__helpers_8h_xhtml_adbdf2ca9e8fe0b67f9359929ef743126"><div class="ttname"><a href="warp__helpers_8h.xhtml#adbdf2ca9e8fe0b67f9359929ef743126">clamp_to_border</a></div><div class="ttdeci">const float8 clamp_to_border(float8 coords, const float width, const float height)</div><div class="ttdoc">Clamps the given coordinates to the borders. </div><div class="ttdef"><b>Definition:</b> <a href="warp__helpers_8h_source.xhtml#l00033">warp_helpers.h:33</a></div></div> |
Anthony Barbier | 871448e | 2017-03-24 14:54:29 +0000 | [diff] [blame] | 236 | <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> |
Kaizen | 8938bd3 | 2017-09-28 14:38:23 +0100 | [diff] [blame^] | 237 | <div class="ttc" id="helpers_8h_xhtml_a009469e4d9b8fce3b6d5e97d2077827d"><div class="ttname"><a href="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="helpers_8h_source.xhtml#l00292">helpers.h:292</a></div></div> |
Anthony Barbier | 871448e | 2017-03-24 14:54:29 +0000 | [diff] [blame] | 238 | <div class="ttc" id="warp__helpers_8h_xhtml_a2d8047717d6464cad02c5979d09576db"><div class="ttname"><a href="warp__helpers_8h.xhtml#a2d8047717d6464cad02c5979d09576db">get_neighbour_coords</a></div><div class="ttdeci">const float8 get_neighbour_coords(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_8h_source.xhtml#l00068">warp_helpers.h:68</a></div></div> |
Kaizen | 8938bd3 | 2017-09-28 14:38:23 +0100 | [diff] [blame^] | 239 | <div class="ttc" id="fixed__point_8h_xhtml_a36f754c05b6fddf6df0d8d0a74f8159f"><div class="ttname"><a href="fixed__point_8h.xhtml#a36f754c05b6fddf6df0d8d0a74f8159f">VEC_DATA_TYPE</a></div><div class="ttdeci">#define VEC_DATA_TYPE(type, size)</div><div class="ttdef"><b>Definition:</b> <a href="fixed__point_8h_source.xhtml#l00093">fixed_point.h:93</a></div></div> |
Anthony Barbier | 871448e | 2017-03-24 14:54:29 +0000 | [diff] [blame] | 240 | </div><!-- fragment --> |
| 241 | </div> |
| 242 | </div> |
| 243 | <a class="anchor" id="adbdf2ca9e8fe0b67f9359929ef743126"></a> |
| 244 | <div class="memitem"> |
| 245 | <div class="memproto"> |
| 246 | <table class="mlabels"> |
| 247 | <tr> |
| 248 | <td class="mlabels-left"> |
| 249 | <table class="memname"> |
| 250 | <tr> |
| 251 | <td class="memname">const float8 clamp_to_border </td> |
| 252 | <td>(</td> |
| 253 | <td class="paramtype">float8 </td> |
| 254 | <td class="paramname"><em>coords</em>, </td> |
| 255 | </tr> |
| 256 | <tr> |
| 257 | <td class="paramkey"></td> |
| 258 | <td></td> |
| 259 | <td class="paramtype">const float </td> |
| 260 | <td class="paramname"><em>width</em>, </td> |
| 261 | </tr> |
| 262 | <tr> |
| 263 | <td class="paramkey"></td> |
| 264 | <td></td> |
| 265 | <td class="paramtype">const float </td> |
| 266 | <td class="paramname"><em>height</em> </td> |
| 267 | </tr> |
| 268 | <tr> |
| 269 | <td></td> |
| 270 | <td>)</td> |
| 271 | <td></td><td></td> |
| 272 | </tr> |
| 273 | </table> |
| 274 | </td> |
| 275 | <td class="mlabels-right"> |
| 276 | <span class="mlabels"><span class="mlabel">inline</span></span> </td> |
| 277 | </tr> |
| 278 | </table> |
| 279 | </div><div class="memdoc"> |
| 280 | |
| 281 | <p>Clamps the given coordinates to the borders. </p> |
| 282 | <dl class="params"><dt>Parameters</dt><dd> |
| 283 | <table class="params"> |
| 284 | <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> |
| 285 | <tr><td class="paramdir">[in]</td><td class="paramname">width</td><td>Width of the image </td></tr> |
| 286 | <tr><td class="paramdir">[in]</td><td class="paramname">height</td><td>Height of the image </td></tr> |
| 287 | </table> |
| 288 | </dd> |
| 289 | </dl> |
| 290 | |
| 291 | <p>Definition at line <a class="el" href="warp__helpers_8h_source.xhtml#l00033">33</a> of file <a class="el" href="warp__helpers_8h_source.xhtml">warp_helpers.h</a>.</p> |
| 292 | |
Kaizen | 8938bd3 | 2017-09-28 14:38:23 +0100 | [diff] [blame^] | 293 | <p>References <a class="el" href="arm__compute_2core_2_helpers_8h_source.xhtml#l00201">arm_compute::clamp()</a>.</p> |
Anthony Barbier | dbdab85 | 2017-06-23 15:42:00 +0100 | [diff] [blame] | 294 | |
Kaizen | 8938bd3 | 2017-09-28 14:38:23 +0100 | [diff] [blame^] | 295 | <p>Referenced by <a class="el" href="warp__helpers_8h_source.xhtml#l00080">bilinear_interpolate()</a>, <a class="el" href="remap_8cl_source.xhtml#l00113">remap_bilinear()</a>, <a class="el" href="remap_8cl_source.xhtml#l00059">remap_nearest_neighbour()</a>, <a class="el" href="scale_8cl_source.xhtml#l00076">scale_nearest_neighbour()</a>, <a class="el" href="warp__affine_8cl_source.xhtml#l00111">warp_affine_bilinear()</a>, <a class="el" href="warp__affine_8cl_source.xhtml#l00079">warp_affine_nearest_neighbour()</a>, and <a class="el" href="warp__perspective_8cl_source.xhtml#l00087">warp_perspective_nearest_neighbour()</a>.</p> |
| 296 | <div class="fragment"><div class="line"><a name="l00034"></a><span class="lineno"> 34</span> {</div> |
| 297 | <div class="line"><a name="l00035"></a><span class="lineno"> 35</span>  <span class="keyword">const</span> float4 clamped_x = <a class="code" href="namespacearm__compute.xhtml#a1c0b9414fe3a6ef6a7a23bd324ae9e67">clamp</a>(coords.even, -1.0f, width);</div> |
| 298 | <div class="line"><a name="l00036"></a><span class="lineno"> 36</span>  <span class="keyword">const</span> float4 clamped_y = <a class="code" href="namespacearm__compute.xhtml#a1c0b9414fe3a6ef6a7a23bd324ae9e67">clamp</a>(coords.odd, -1.0f, height);</div> |
| 299 | <div class="line"><a name="l00037"></a><span class="lineno"> 37</span>  <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> |
| 300 | <div class="line"><a name="l00038"></a><span class="lineno"> 38</span> }</div> |
| 301 | <div class="ttc" id="namespacearm__compute_xhtml_a1c0b9414fe3a6ef6a7a23bd324ae9e67"><div class="ttname"><a href="namespacearm__compute.xhtml#a1c0b9414fe3a6ef6a7a23bd324ae9e67">arm_compute::clamp</a></div><div class="ttdeci">T clamp(const T &n, const T &lower, const T &upper)</div><div class="ttdoc">Performs clamping among a lower and upper value. </div><div class="ttdef"><b>Definition:</b> <a href="arm__compute_2core_2_helpers_8h_source.xhtml#l00201">Helpers.h:201</a></div></div> |
Anthony Barbier | dbdab85 | 2017-06-23 15:42:00 +0100 | [diff] [blame] | 302 | </div><!-- fragment --> |
Anthony Barbier | 871448e | 2017-03-24 14:54:29 +0000 | [diff] [blame] | 303 | </div> |
| 304 | </div> |
| 305 | <a class="anchor" id="a4caaeeb51ea58015267a9974675226d1"></a> |
| 306 | <div class="memitem"> |
| 307 | <div class="memproto"> |
| 308 | <table class="mlabels"> |
| 309 | <tr> |
| 310 | <td class="mlabels-left"> |
| 311 | <table class="memname"> |
| 312 | <tr> |
| 313 | <td class="memname">const float2 get_current_coords </td> |
| 314 | <td>(</td> |
| 315 | <td class="paramname"></td><td>)</td> |
| 316 | <td></td> |
| 317 | </tr> |
| 318 | </table> |
| 319 | </td> |
| 320 | <td class="mlabels-right"> |
| 321 | <span class="mlabels"><span class="mlabel">inline</span></span> </td> |
| 322 | </tr> |
| 323 | </table> |
| 324 | </div><div class="memdoc"> |
| 325 | |
| 326 | <p>Returns the current thread coordinates. </p> |
| 327 | |
| 328 | <p>Definition at line <a class="el" href="warp__helpers_8h_source.xhtml#l00054">54</a> of file <a class="el" href="warp__helpers_8h_source.xhtml">warp_helpers.h</a>.</p> |
| 329 | |
| 330 | <p>Referenced by <a class="el" href="scale_8cl_source.xhtml#l00110">scale_bilinear()</a>, <a class="el" href="scale_8cl_source.xhtml#l00076">scale_nearest_neighbour()</a>, <a class="el" href="warp__affine_8cl_source.xhtml#l00111">warp_affine_bilinear()</a>, <a class="el" href="warp__affine_8cl_source.xhtml#l00079">warp_affine_nearest_neighbour()</a>, <a class="el" href="warp__perspective_8cl_source.xhtml#l00119">warp_perspective_bilinear()</a>, and <a class="el" href="warp__perspective_8cl_source.xhtml#l00087">warp_perspective_nearest_neighbour()</a>.</p> |
Kaizen | 8938bd3 | 2017-09-28 14:38:23 +0100 | [diff] [blame^] | 331 | <div class="fragment"><div class="line"><a name="l00055"></a><span class="lineno"> 55</span> {</div> |
| 332 | <div class="line"><a name="l00056"></a><span class="lineno"> 56</span>  <span class="keywordflow">return</span> (float2)(get_global_id(0) * 4, get_global_id(1));</div> |
| 333 | <div class="line"><a name="l00057"></a><span class="lineno"> 57</span> }</div> |
| 334 | </div><!-- fragment --> |
Anthony Barbier | 871448e | 2017-03-24 14:54:29 +0000 | [diff] [blame] | 335 | </div> |
| 336 | </div> |
| 337 | <a class="anchor" id="a2d8047717d6464cad02c5979d09576db"></a> |
| 338 | <div class="memitem"> |
| 339 | <div class="memproto"> |
| 340 | <table class="mlabels"> |
| 341 | <tr> |
| 342 | <td class="mlabels-left"> |
| 343 | <table class="memname"> |
| 344 | <tr> |
| 345 | <td class="memname">const float8 get_neighbour_coords </td> |
| 346 | <td>(</td> |
| 347 | <td class="paramtype">const float2 </td> |
| 348 | <td class="paramname"><em>coord</em></td><td>)</td> |
| 349 | <td></td> |
| 350 | </tr> |
| 351 | </table> |
| 352 | </td> |
| 353 | <td class="mlabels-right"> |
| 354 | <span class="mlabels"><span class="mlabel">inline</span></span> </td> |
| 355 | </tr> |
| 356 | </table> |
| 357 | </div><div class="memdoc"> |
| 358 | |
| 359 | <p>Given a texel coordinates this function will return the following array of coordinates: [ P, right neighbour, below neighbour, below right neighbour ]. </p> |
| 360 | <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> |
| 361 | <dl class="params"><dt>Parameters</dt><dd> |
| 362 | <table class="params"> |
| 363 | <tr><td class="paramdir">[in]</td><td class="paramname">coord</td><td>Input coordinates</td></tr> |
| 364 | </table> |
| 365 | </dd> |
| 366 | </dl> |
| 367 | <dl class="section return"><dt>Returns</dt><dd>vector of 8 floats with the coordinates, even positions are x and odd y. </dd></dl> |
| 368 | |
| 369 | <p>Definition at line <a class="el" href="warp__helpers_8h_source.xhtml#l00068">68</a> of file <a class="el" href="warp__helpers_8h_source.xhtml">warp_helpers.h</a>.</p> |
| 370 | |
| 371 | <p>Referenced by <a class="el" href="warp__helpers_8h_source.xhtml#l00080">bilinear_interpolate()</a>.</p> |
Kaizen | 8938bd3 | 2017-09-28 14:38:23 +0100 | [diff] [blame^] | 372 | <div class="fragment"><div class="line"><a name="l00069"></a><span class="lineno"> 69</span> {</div> |
| 373 | <div class="line"><a name="l00070"></a><span class="lineno"> 70</span>  <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> |
| 374 | <div class="line"><a name="l00071"></a><span class="lineno"> 71</span> }</div> |
| 375 | </div><!-- fragment --> |
Anthony Barbier | 871448e | 2017-03-24 14:54:29 +0000 | [diff] [blame] | 376 | </div> |
| 377 | </div> |
| 378 | <a class="anchor" id="aba42442a4c991cdbb52727fa370676f1"></a> |
| 379 | <div class="memitem"> |
| 380 | <div class="memproto"> |
| 381 | <table class="mlabels"> |
| 382 | <tr> |
| 383 | <td class="mlabels-left"> |
| 384 | <table class="memname"> |
| 385 | <tr> |
| 386 | <td class="memname">const DATA_TYPE4 read_texels4 </td> |
| 387 | <td>(</td> |
| 388 | <td class="paramtype">const <a class="el" href="struct_image.xhtml">Image</a> * </td> |
| 389 | <td class="paramname"><em>in</em>, </td> |
| 390 | </tr> |
| 391 | <tr> |
| 392 | <td class="paramkey"></td> |
| 393 | <td></td> |
| 394 | <td class="paramtype">const int8 </td> |
| 395 | <td class="paramname"><em>coords</em> </td> |
| 396 | </tr> |
| 397 | <tr> |
| 398 | <td></td> |
| 399 | <td>)</td> |
| 400 | <td></td><td></td> |
| 401 | </tr> |
| 402 | </table> |
| 403 | </td> |
| 404 | <td class="mlabels-right"> |
| 405 | <span class="mlabels"><span class="mlabel">inline</span></span> </td> |
| 406 | </tr> |
| 407 | </table> |
| 408 | </div><div class="memdoc"> |
| 409 | |
| 410 | <p>Reads four texels from the input image. </p> |
| 411 | <p>The coords vector is used to determine which texels to be read.</p> |
| 412 | <dl class="params"><dt>Parameters</dt><dd> |
| 413 | <table class="params"> |
| 414 | <tr><td class="paramdir">[in]</td><td class="paramname">in</td><td>Pointer to the source image. </td></tr> |
| 415 | <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 coordinates to be read from the image. </td></tr> |
| 416 | </table> |
| 417 | </dd> |
| 418 | </dl> |
| 419 | |
| 420 | <p>Definition at line <a class="el" href="warp__helpers_8h_source.xhtml#l00045">45</a> of file <a class="el" href="warp__helpers_8h_source.xhtml">warp_helpers.h</a>.</p> |
| 421 | |
Kaizen | 8938bd3 | 2017-09-28 14:38:23 +0100 | [diff] [blame^] | 422 | <p>References <a class="el" href="convolution3x3_8cl_source.xhtml#l00027">DATA_TYPE</a>, <a class="el" href="helpers_8h_source.xhtml#l00292">offset()</a>, and <a class="el" href="fixed__point_8h_source.xhtml#l00093">VEC_DATA_TYPE</a>.</p> |
Anthony Barbier | 871448e | 2017-03-24 14:54:29 +0000 | [diff] [blame] | 423 | |
| 424 | <p>Referenced by <a class="el" href="remap_8cl_source.xhtml#l00059">remap_nearest_neighbour()</a>, <a class="el" href="scale_8cl_source.xhtml#l00076">scale_nearest_neighbour()</a>, <a class="el" href="warp__affine_8cl_source.xhtml#l00079">warp_affine_nearest_neighbour()</a>, and <a class="el" href="warp__perspective_8cl_source.xhtml#l00087">warp_perspective_nearest_neighbour()</a>.</p> |
Kaizen | 8938bd3 | 2017-09-28 14:38:23 +0100 | [diff] [blame^] | 425 | <div class="fragment"><div class="line"><a name="l00046"></a><span class="lineno"> 46</span> {</div> |
| 426 | <div class="line"><a name="l00047"></a><span class="lineno"> 47</span>  <span class="keywordflow">return</span> (<a class="code" href="fixed__point_8h.xhtml#a36f754c05b6fddf6df0d8d0a74f8159f">VEC_DATA_TYPE</a>(<a class="code" href="convolution3x3_8cl.xhtml#afb8c72ce35c4a1f4a2588d6573e54aa1">DATA_TYPE</a>, 4))(*((__global <a class="code" href="convolution3x3_8cl.xhtml#afb8c72ce35c4a1f4a2588d6573e54aa1">DATA_TYPE</a> *)<a class="code" href="helpers_8h.xhtml#a009469e4d9b8fce3b6d5e97d2077827d">offset</a>(in, coords.s0, coords.s1)),</div> |
| 427 | <div class="line"><a name="l00048"></a><span class="lineno"> 48</span>  *((__global <a class="code" href="convolution3x3_8cl.xhtml#afb8c72ce35c4a1f4a2588d6573e54aa1">DATA_TYPE</a> *)<a class="code" href="helpers_8h.xhtml#a009469e4d9b8fce3b6d5e97d2077827d">offset</a>(in, coords.s2, coords.s3)),</div> |
| 428 | <div class="line"><a name="l00049"></a><span class="lineno"> 49</span>  *((__global <a class="code" href="convolution3x3_8cl.xhtml#afb8c72ce35c4a1f4a2588d6573e54aa1">DATA_TYPE</a> *)<a class="code" href="helpers_8h.xhtml#a009469e4d9b8fce3b6d5e97d2077827d">offset</a>(in, coords.s4, coords.s5)),</div> |
| 429 | <div class="line"><a name="l00050"></a><span class="lineno"> 50</span>  *((__global <a class="code" href="convolution3x3_8cl.xhtml#afb8c72ce35c4a1f4a2588d6573e54aa1">DATA_TYPE</a> *)<a class="code" href="helpers_8h.xhtml#a009469e4d9b8fce3b6d5e97d2077827d">offset</a>(in, coords.s6, coords.s7)));</div> |
| 430 | <div class="line"><a name="l00051"></a><span class="lineno"> 51</span> }</div> |
| 431 | <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> |
| 432 | <div class="ttc" id="helpers_8h_xhtml_a009469e4d9b8fce3b6d5e97d2077827d"><div class="ttname"><a href="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="helpers_8h_source.xhtml#l00292">helpers.h:292</a></div></div> |
| 433 | <div class="ttc" id="fixed__point_8h_xhtml_a36f754c05b6fddf6df0d8d0a74f8159f"><div class="ttname"><a href="fixed__point_8h.xhtml#a36f754c05b6fddf6df0d8d0a74f8159f">VEC_DATA_TYPE</a></div><div class="ttdeci">#define VEC_DATA_TYPE(type, size)</div><div class="ttdef"><b>Definition:</b> <a href="fixed__point_8h_source.xhtml#l00093">fixed_point.h:93</a></div></div> |
Anthony Barbier | 871448e | 2017-03-24 14:54:29 +0000 | [diff] [blame] | 434 | </div><!-- fragment --> |
| 435 | </div> |
| 436 | </div> |
| 437 | </div><!-- contents --> |
| 438 | </div><!-- doc-content --> |
| 439 | <!-- start footer part --> |
| 440 | <div id="nav-path" class="navpath"><!-- id is needed for treeview function! --> |
| 441 | <ul> |
Kaizen | 8938bd3 | 2017-09-28 14:38:23 +0100 | [diff] [blame^] | 442 | <li class="navelem"><a class="el" href="dir_55b5a5006e943fb664ff8cff3cfe7768.xhtml">src</a></li><li class="navelem"><a class="el" href="dir_f6c3ae42d7e27145d0a3c3e38ca1c000.xhtml">core</a></li><li class="navelem"><a class="el" href="dir_1b7ae9123c88e650426d50d95c19d414.xhtml">CL</a></li><li class="navelem"><a class="el" href="dir_b7c3d80b0dadb2139bc73b7161751c12.xhtml">cl_kernels</a></li><li class="navelem"><a class="el" href="warp__helpers_8h.xhtml">warp_helpers.h</a></li> |
| 443 | <li class="footer">Generated on Thu Sep 28 2017 14:37:54 for Compute Library by |
Anthony Barbier | 871448e | 2017-03-24 14:54:29 +0000 | [diff] [blame] | 444 | <a href="http://www.doxygen.org/index.html"> |
Kaizen | 8938bd3 | 2017-09-28 14:38:23 +0100 | [diff] [blame^] | 445 | <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.6 </li> |
Anthony Barbier | 871448e | 2017-03-24 14:54:29 +0000 | [diff] [blame] | 446 | </ul> |
| 447 | </div> |
| 448 | </body> |
| 449 | </html> |