Jenkins | 514be65 | 2019-02-28 12:25:18 +0000 | [diff] [blame] | 1 | <!-- HTML header for doxygen 1.8.15--> |
| 2 | <!-- Remember to use version doxygen 1.8.15 +--> |
Anthony Barbier | 871448e | 2017-03-24 14:54:29 +0000 | [diff] [blame] | 3 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
| 4 | <html xmlns="http://www.w3.org/1999/xhtml"> |
| 5 | <head> |
| 6 | <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> |
| 7 | <meta http-equiv="X-UA-Compatible" content="IE=9"/> |
Jenkins | 514be65 | 2019-02-28 12:25:18 +0000 | [diff] [blame] | 8 | <meta name="generator" content="Doxygen 1.8.15"/> |
Anthony Barbier | 871448e | 2017-03-24 14:54:29 +0000 | [diff] [blame] | 9 | <meta name="robots" content="NOINDEX, NOFOLLOW" /> <!-- Prevent indexing by search engines --> |
Anthony Barbier | dbdab85 | 2017-06-23 15:42:00 +0100 | [diff] [blame] | 10 | <title>Compute Library: src/core/CL/cl_kernels/remap.cl File Reference</title> |
Anthony Barbier | 871448e | 2017-03-24 14:54:29 +0000 | [diff] [blame] | 11 | <link href="tabs.css" rel="stylesheet" type="text/css"/> |
| 12 | <script type="text/javascript" src="jquery.js"></script> |
| 13 | <script type="text/javascript" src="dynsections.js"></script> |
| 14 | <link href="navtree.css" rel="stylesheet" type="text/css"/> |
| 15 | <script type="text/javascript" src="resize.js"></script> |
Anthony Barbier | 8140e1e | 2017-12-14 23:48:46 +0000 | [diff] [blame] | 16 | <script type="text/javascript" src="navtreedata.js"></script> |
Anthony Barbier | 871448e | 2017-03-24 14:54:29 +0000 | [diff] [blame] | 17 | <script type="text/javascript" src="navtree.js"></script> |
| 18 | <script type="text/javascript"> |
Jenkins | 514be65 | 2019-02-28 12:25:18 +0000 | [diff] [blame] | 19 | /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */ |
Anthony Barbier | 871448e | 2017-03-24 14:54:29 +0000 | [diff] [blame] | 20 | $(document).ready(initResizable); |
Jenkins | 514be65 | 2019-02-28 12:25:18 +0000 | [diff] [blame] | 21 | /* @license-end */</script> |
Anthony Barbier | 871448e | 2017-03-24 14:54:29 +0000 | [diff] [blame] | 22 | <link href="search/search.css" rel="stylesheet" type="text/css"/> |
Anthony Barbier | 8140e1e | 2017-12-14 23:48:46 +0000 | [diff] [blame] | 23 | <script type="text/javascript" src="search/searchdata.js"></script> |
Anthony Barbier | 871448e | 2017-03-24 14:54:29 +0000 | [diff] [blame] | 24 | <script type="text/javascript" src="search/search.js"></script> |
Anthony Barbier | 871448e | 2017-03-24 14:54:29 +0000 | [diff] [blame] | 25 | <script type="text/x-mathjax-config"> |
| 26 | MathJax.Hub.Config({ |
| 27 | extensions: ["tex2jax.js"], |
| 28 | jax: ["input/TeX","output/HTML-CSS"], |
| 29 | }); |
Jenkins | 514be65 | 2019-02-28 12:25:18 +0000 | [diff] [blame] | 30 | </script><script type="text/javascript" async="async" 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" /> |
Jenkins | 514be65 | 2019-02-28 12:25:18 +0000 | [diff] [blame] | 32 | <link href="stylesheet.css" rel="stylesheet" type="text/css"/> |
Anthony Barbier | 871448e | 2017-03-24 14:54:29 +0000 | [diff] [blame] | 33 | </head> |
| 34 | <body> |
| 35 | <div id="top"><!-- do not remove this div, it is closed by doxygen! --> |
| 36 | <div id="titlearea"> |
| 37 | <table cellspacing="0" cellpadding="0"> |
| 38 | <tbody> |
| 39 | <tr style="height: 56px;"> |
Jenkins | 514be65 | 2019-02-28 12:25:18 +0000 | [diff] [blame] | 40 | <img alt="Compute Library" src="https://raw.githubusercontent.com/ARM-software/ComputeLibrary/gh-pages/ACL_logo.png" style="max-width: 100%;margin-top: 15px;margin-left: 10px"/> |
Anthony Barbier | 871448e | 2017-03-24 14:54:29 +0000 | [diff] [blame] | 41 | <td style="padding-left: 0.5em;"> |
Jenkins | 514be65 | 2019-02-28 12:25:18 +0000 | [diff] [blame] | 42 | <div id="projectname"> |
Jenkins | 4ba87db | 2019-05-23 17:11:51 +0100 | [diff] [blame^] | 43 |  <span id="projectnumber">19.05</span> |
Anthony Barbier | 871448e | 2017-03-24 14:54:29 +0000 | [diff] [blame] | 44 | </div> |
| 45 | </td> |
| 46 | </tr> |
| 47 | </tbody> |
| 48 | </table> |
| 49 | </div> |
| 50 | <!-- end header part --> |
Jenkins | 514be65 | 2019-02-28 12:25:18 +0000 | [diff] [blame] | 51 | <!-- Generated by Doxygen 1.8.15 --> |
Anthony Barbier | 871448e | 2017-03-24 14:54:29 +0000 | [diff] [blame] | 52 | <script type="text/javascript"> |
Jenkins | 514be65 | 2019-02-28 12:25:18 +0000 | [diff] [blame] | 53 | /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */ |
Anthony Barbier | 871448e | 2017-03-24 14:54:29 +0000 | [diff] [blame] | 54 | var searchBox = new SearchBox("searchBox", "search",false,'Search'); |
Jenkins | 514be65 | 2019-02-28 12:25:18 +0000 | [diff] [blame] | 55 | /* @license-end */ |
Anthony Barbier | 871448e | 2017-03-24 14:54:29 +0000 | [diff] [blame] | 56 | </script> |
Jenkins | b9abeae | 2018-11-22 11:58:08 +0000 | [diff] [blame] | 57 | <script type="text/javascript" src="menudata.js"></script> |
| 58 | <script type="text/javascript" src="menu.js"></script> |
| 59 | <script type="text/javascript"> |
Jenkins | 514be65 | 2019-02-28 12:25:18 +0000 | [diff] [blame] | 60 | /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */ |
Jenkins | b9abeae | 2018-11-22 11:58:08 +0000 | [diff] [blame] | 61 | $(function() { |
| 62 | initMenu('',true,false,'search.php','Search'); |
| 63 | $(document).ready(function() { init_search(); }); |
| 64 | }); |
Jenkins | 514be65 | 2019-02-28 12:25:18 +0000 | [diff] [blame] | 65 | /* @license-end */</script> |
Jenkins | b9abeae | 2018-11-22 11:58:08 +0000 | [diff] [blame] | 66 | <div id="main-nav"></div> |
Anthony Barbier | 871448e | 2017-03-24 14:54:29 +0000 | [diff] [blame] | 67 | </div><!-- top --> |
| 68 | <div id="side-nav" class="ui-resizable side-nav-resizable"> |
| 69 | <div id="nav-tree"> |
| 70 | <div id="nav-tree-contents"> |
| 71 | <div id="nav-sync" class="sync"></div> |
| 72 | </div> |
| 73 | </div> |
| 74 | <div id="splitbar" style="-moz-user-select:none;" |
| 75 | class="ui-resizable-handle"> |
| 76 | </div> |
| 77 | </div> |
| 78 | <script type="text/javascript"> |
Jenkins | 514be65 | 2019-02-28 12:25:18 +0000 | [diff] [blame] | 79 | /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */ |
Anthony Barbier | 871448e | 2017-03-24 14:54:29 +0000 | [diff] [blame] | 80 | $(document).ready(function(){initNavTree('remap_8cl.xhtml','');}); |
Jenkins | 514be65 | 2019-02-28 12:25:18 +0000 | [diff] [blame] | 81 | /* @license-end */ |
Anthony Barbier | 871448e | 2017-03-24 14:54:29 +0000 | [diff] [blame] | 82 | </script> |
| 83 | <div id="doc-content"> |
| 84 | <!-- window showing the filter options --> |
| 85 | <div id="MSearchSelectWindow" |
| 86 | onmouseover="return searchBox.OnSearchSelectShow()" |
| 87 | onmouseout="return searchBox.OnSearchSelectHide()" |
| 88 | onkeydown="return searchBox.OnSearchSelectKey(event)"> |
Anthony Barbier | 8140e1e | 2017-12-14 23:48:46 +0000 | [diff] [blame] | 89 | </div> |
Anthony Barbier | 871448e | 2017-03-24 14:54:29 +0000 | [diff] [blame] | 90 | |
| 91 | <!-- iframe showing the search results (closed by default) --> |
| 92 | <div id="MSearchResultsWindow"> |
| 93 | <iframe src="javascript:void(0)" frameborder="0" |
| 94 | name="MSearchResults" id="MSearchResults"> |
| 95 | </iframe> |
| 96 | </div> |
| 97 | |
| 98 | <div class="header"> |
| 99 | <div class="summary"> |
| 100 | <a href="#func-members">Functions</a> </div> |
| 101 | <div class="headertitle"> |
| 102 | <div class="title">remap.cl File Reference</div> </div> |
| 103 | </div><!--header--> |
| 104 | <div class="contents"> |
Jenkins | b9abeae | 2018-11-22 11:58:08 +0000 | [diff] [blame] | 105 | <div class="textblock"><code>#include "<a class="el" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h_source.xhtml">helpers.h</a>"</code><br /> |
Anthony Barbier | 8140e1e | 2017-12-14 23:48:46 +0000 | [diff] [blame] | 106 | <code>#include "<a class="el" href="warp__helpers_8h_source.xhtml">warp_helpers.h</a>"</code><br /> |
Anthony Barbier | 871448e | 2017-03-24 14:54:29 +0000 | [diff] [blame] | 107 | </div> |
| 108 | <p><a href="remap_8cl_source.xhtml">Go to the source code of this file.</a></p> |
| 109 | <table class="memberdecls"> |
| 110 | <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a> |
| 111 | Functions</h2></td></tr> |
Jenkins | 52ba29e | 2018-08-29 15:32:11 +0000 | [diff] [blame] | 112 | <tr class="memitem:a786803611cc128275d32d9584376713e"><td class="memItemLeft" align="right" valign="top">__kernel void </td><td class="memItemRight" valign="bottom"><a class="el" href="remap_8cl.xhtml#a786803611cc128275d32d9584376713e">remap_nearest_neighbour</a> (__global uchar *in_ptr, uint <a class="el" href="depthwise__convolution_8cl.xhtml#a5447e2c4e1aae8fff9290b775fe813ff">in_stride_x</a>, uint in_step_x, uint <a class="el" href="depthwise__convolution_8cl.xhtml#ac353c0687abd8c71a4fa096d322b39ec">in_stride_y</a>, uint in_step_y, uint in_offset_first_element_in_bytes, __global uchar *out_ptr, uint <a class="el" href="depthwise__convolution_8cl.xhtml#a68fce1f0ee4080ed89c9427496d625f2">out_stride_x</a>, uint out_step_x, uint <a class="el" href="depthwise__convolution_8cl.xhtml#ac8b6b732372937bba276e6391944d1e1">out_stride_y</a>, uint out_step_y, uint out_offset_first_element_in_bytes, __global uchar *mapx_ptr, uint mapx_stride_x, uint mapx_step_x, uint mapx_stride_y, uint mapx_step_y, uint mapx_offset_first_element_in_bytes, __global uchar *mapy_ptr, uint mapy_stride_x, uint mapy_step_x, uint mapy_stride_y, uint mapy_step_y, uint mapy_offset_first_element_in_bytes, const float width, const float height)</td></tr> |
Anthony Barbier | 8140e1e | 2017-12-14 23:48:46 +0000 | [diff] [blame] | 113 | <tr class="memdesc:a786803611cc128275d32d9584376713e"><td class="mdescLeft"> </td><td class="mdescRight">Performs a remapping of an input image to an output given two remapping image using nearest neighbor as interpolation. <a href="#a786803611cc128275d32d9584376713e">More...</a><br /></td></tr> |
Anthony Barbier | 871448e | 2017-03-24 14:54:29 +0000 | [diff] [blame] | 114 | <tr class="separator:a786803611cc128275d32d9584376713e"><td class="memSeparator" colspan="2"> </td></tr> |
Jenkins | 52ba29e | 2018-08-29 15:32:11 +0000 | [diff] [blame] | 115 | <tr class="memitem:a1d771133d1dfea450fdbacda1c34ce49"><td class="memItemLeft" align="right" valign="top">__kernel void </td><td class="memItemRight" valign="bottom"><a class="el" href="remap_8cl.xhtml#a1d771133d1dfea450fdbacda1c34ce49">remap_bilinear</a> (__global uchar *in_ptr, uint <a class="el" href="depthwise__convolution_8cl.xhtml#a5447e2c4e1aae8fff9290b775fe813ff">in_stride_x</a>, uint in_step_x, uint <a class="el" href="depthwise__convolution_8cl.xhtml#ac353c0687abd8c71a4fa096d322b39ec">in_stride_y</a>, uint in_step_y, uint in_offset_first_element_in_bytes, __global uchar *out_ptr, uint <a class="el" href="depthwise__convolution_8cl.xhtml#a68fce1f0ee4080ed89c9427496d625f2">out_stride_x</a>, uint out_step_x, uint <a class="el" href="depthwise__convolution_8cl.xhtml#ac8b6b732372937bba276e6391944d1e1">out_stride_y</a>, uint out_step_y, uint out_offset_first_element_in_bytes, __global uchar *mapx_ptr, uint mapx_stride_x, uint mapx_step_x, uint mapx_stride_y, uint mapx_step_y, uint mapx_offset_first_element_in_bytes, __global uchar *mapy_ptr, uint mapy_stride_x, uint mapy_step_x, uint mapy_stride_y, uint mapy_step_y, uint mapy_offset_first_element_in_bytes, const float width, const float height)</td></tr> |
Anthony Barbier | 8140e1e | 2017-12-14 23:48:46 +0000 | [diff] [blame] | 116 | <tr class="memdesc:a1d771133d1dfea450fdbacda1c34ce49"><td class="mdescLeft"> </td><td class="mdescRight">Performs a remapping of an input image to an output given two remapping image using bilinear as interpolation. <a href="#a1d771133d1dfea450fdbacda1c34ce49">More...</a><br /></td></tr> |
Anthony Barbier | 871448e | 2017-03-24 14:54:29 +0000 | [diff] [blame] | 117 | <tr class="separator:a1d771133d1dfea450fdbacda1c34ce49"><td class="memSeparator" colspan="2"> </td></tr> |
| 118 | </table> |
| 119 | <h2 class="groupheader">Function Documentation</h2> |
Jenkins | b9abeae | 2018-11-22 11:58:08 +0000 | [diff] [blame] | 120 | <a id="a1d771133d1dfea450fdbacda1c34ce49"></a> |
| 121 | <h2 class="memtitle"><span class="permalink"><a href="#a1d771133d1dfea450fdbacda1c34ce49">◆ </a></span>remap_bilinear()</h2> |
| 122 | |
Anthony Barbier | 871448e | 2017-03-24 14:54:29 +0000 | [diff] [blame] | 123 | <div class="memitem"> |
| 124 | <div class="memproto"> |
| 125 | <table class="memname"> |
| 126 | <tr> |
| 127 | <td class="memname">__kernel void remap_bilinear </td> |
| 128 | <td>(</td> |
| 129 | <td class="paramtype">__global uchar * </td> |
| 130 | <td class="paramname"><em>in_ptr</em>, </td> |
| 131 | </tr> |
| 132 | <tr> |
| 133 | <td class="paramkey"></td> |
| 134 | <td></td> |
| 135 | <td class="paramtype">uint </td> |
| 136 | <td class="paramname"><em>in_stride_x</em>, </td> |
| 137 | </tr> |
| 138 | <tr> |
| 139 | <td class="paramkey"></td> |
| 140 | <td></td> |
| 141 | <td class="paramtype">uint </td> |
| 142 | <td class="paramname"><em>in_step_x</em>, </td> |
| 143 | </tr> |
| 144 | <tr> |
| 145 | <td class="paramkey"></td> |
| 146 | <td></td> |
| 147 | <td class="paramtype">uint </td> |
| 148 | <td class="paramname"><em>in_stride_y</em>, </td> |
| 149 | </tr> |
| 150 | <tr> |
| 151 | <td class="paramkey"></td> |
| 152 | <td></td> |
| 153 | <td class="paramtype">uint </td> |
| 154 | <td class="paramname"><em>in_step_y</em>, </td> |
| 155 | </tr> |
| 156 | <tr> |
| 157 | <td class="paramkey"></td> |
| 158 | <td></td> |
| 159 | <td class="paramtype">uint </td> |
| 160 | <td class="paramname"><em>in_offset_first_element_in_bytes</em>, </td> |
| 161 | </tr> |
| 162 | <tr> |
| 163 | <td class="paramkey"></td> |
| 164 | <td></td> |
| 165 | <td class="paramtype">__global uchar * </td> |
| 166 | <td class="paramname"><em>out_ptr</em>, </td> |
| 167 | </tr> |
| 168 | <tr> |
| 169 | <td class="paramkey"></td> |
| 170 | <td></td> |
| 171 | <td class="paramtype">uint </td> |
| 172 | <td class="paramname"><em>out_stride_x</em>, </td> |
| 173 | </tr> |
| 174 | <tr> |
| 175 | <td class="paramkey"></td> |
| 176 | <td></td> |
| 177 | <td class="paramtype">uint </td> |
| 178 | <td class="paramname"><em>out_step_x</em>, </td> |
| 179 | </tr> |
| 180 | <tr> |
| 181 | <td class="paramkey"></td> |
| 182 | <td></td> |
| 183 | <td class="paramtype">uint </td> |
| 184 | <td class="paramname"><em>out_stride_y</em>, </td> |
| 185 | </tr> |
| 186 | <tr> |
| 187 | <td class="paramkey"></td> |
| 188 | <td></td> |
| 189 | <td class="paramtype">uint </td> |
| 190 | <td class="paramname"><em>out_step_y</em>, </td> |
| 191 | </tr> |
| 192 | <tr> |
| 193 | <td class="paramkey"></td> |
| 194 | <td></td> |
| 195 | <td class="paramtype">uint </td> |
| 196 | <td class="paramname"><em>out_offset_first_element_in_bytes</em>, </td> |
| 197 | </tr> |
| 198 | <tr> |
| 199 | <td class="paramkey"></td> |
| 200 | <td></td> |
| 201 | <td class="paramtype">__global uchar * </td> |
| 202 | <td class="paramname"><em>mapx_ptr</em>, </td> |
| 203 | </tr> |
| 204 | <tr> |
| 205 | <td class="paramkey"></td> |
| 206 | <td></td> |
| 207 | <td class="paramtype">uint </td> |
| 208 | <td class="paramname"><em>mapx_stride_x</em>, </td> |
| 209 | </tr> |
| 210 | <tr> |
| 211 | <td class="paramkey"></td> |
| 212 | <td></td> |
| 213 | <td class="paramtype">uint </td> |
| 214 | <td class="paramname"><em>mapx_step_x</em>, </td> |
| 215 | </tr> |
| 216 | <tr> |
| 217 | <td class="paramkey"></td> |
| 218 | <td></td> |
| 219 | <td class="paramtype">uint </td> |
| 220 | <td class="paramname"><em>mapx_stride_y</em>, </td> |
| 221 | </tr> |
| 222 | <tr> |
| 223 | <td class="paramkey"></td> |
| 224 | <td></td> |
| 225 | <td class="paramtype">uint </td> |
| 226 | <td class="paramname"><em>mapx_step_y</em>, </td> |
| 227 | </tr> |
| 228 | <tr> |
| 229 | <td class="paramkey"></td> |
| 230 | <td></td> |
| 231 | <td class="paramtype">uint </td> |
| 232 | <td class="paramname"><em>mapx_offset_first_element_in_bytes</em>, </td> |
| 233 | </tr> |
| 234 | <tr> |
| 235 | <td class="paramkey"></td> |
| 236 | <td></td> |
| 237 | <td class="paramtype">__global uchar * </td> |
| 238 | <td class="paramname"><em>mapy_ptr</em>, </td> |
| 239 | </tr> |
| 240 | <tr> |
| 241 | <td class="paramkey"></td> |
| 242 | <td></td> |
| 243 | <td class="paramtype">uint </td> |
| 244 | <td class="paramname"><em>mapy_stride_x</em>, </td> |
| 245 | </tr> |
| 246 | <tr> |
| 247 | <td class="paramkey"></td> |
| 248 | <td></td> |
| 249 | <td class="paramtype">uint </td> |
| 250 | <td class="paramname"><em>mapy_step_x</em>, </td> |
| 251 | </tr> |
| 252 | <tr> |
| 253 | <td class="paramkey"></td> |
| 254 | <td></td> |
| 255 | <td class="paramtype">uint </td> |
| 256 | <td class="paramname"><em>mapy_stride_y</em>, </td> |
| 257 | </tr> |
| 258 | <tr> |
| 259 | <td class="paramkey"></td> |
| 260 | <td></td> |
| 261 | <td class="paramtype">uint </td> |
| 262 | <td class="paramname"><em>mapy_step_y</em>, </td> |
| 263 | </tr> |
| 264 | <tr> |
| 265 | <td class="paramkey"></td> |
| 266 | <td></td> |
| 267 | <td class="paramtype">uint </td> |
| 268 | <td class="paramname"><em>mapy_offset_first_element_in_bytes</em>, </td> |
| 269 | </tr> |
| 270 | <tr> |
| 271 | <td class="paramkey"></td> |
| 272 | <td></td> |
| 273 | <td class="paramtype">const float </td> |
| 274 | <td class="paramname"><em>width</em>, </td> |
| 275 | </tr> |
| 276 | <tr> |
| 277 | <td class="paramkey"></td> |
| 278 | <td></td> |
| 279 | <td class="paramtype">const float </td> |
| 280 | <td class="paramname"><em>height</em> </td> |
| 281 | </tr> |
| 282 | <tr> |
| 283 | <td></td> |
| 284 | <td>)</td> |
| 285 | <td></td><td></td> |
| 286 | </tr> |
| 287 | </table> |
| 288 | </div><div class="memdoc"> |
| 289 | |
| 290 | <p>Performs a remapping of an input image to an output given two remapping image using bilinear as interpolation. </p> |
| 291 | <p>This kernel performs remapping with this method of pixel coordinate translation: out(x,y) = in(mapx(x,y), mapy(x,y));</p> |
| 292 | <dl class="params"><dt>Parameters</dt><dd> |
| 293 | <table class="params"> |
| 294 | <tr><td class="paramdir">[in]</td><td class="paramname">in_ptr</td><td>Pointer to the source image. Supported data types: U8. </td></tr> |
| 295 | <tr><td class="paramdir">[in]</td><td class="paramname">in_stride_x</td><td>Stride of the source image in X dimension (in bytes) </td></tr> |
| 296 | <tr><td class="paramdir">[in]</td><td class="paramname">in_step_x</td><td>in_stride_x * number of elements along X processed per work item (in bytes) </td></tr> |
| 297 | <tr><td class="paramdir">[in]</td><td class="paramname">in_stride_y</td><td>Stride of the source image in Y dimension (in bytes) </td></tr> |
| 298 | <tr><td class="paramdir">[in]</td><td class="paramname">in_step_y</td><td>in_stride_y * number of elements along Y processed per work item (in bytes) </td></tr> |
| 299 | <tr><td class="paramdir">[in]</td><td class="paramname">in_offset_first_element_in_bytes</td><td>Offset of the first element in the source image </td></tr> |
| 300 | <tr><td class="paramdir">[out]</td><td class="paramname">out_ptr</td><td>Pointer to the destination image. Supported data types: U8. </td></tr> |
| 301 | <tr><td class="paramdir">[in]</td><td class="paramname">out_stride_x</td><td>Stride of the destination image in X dimension (in bytes) </td></tr> |
| 302 | <tr><td class="paramdir">[in]</td><td class="paramname">out_step_x</td><td>out_stride_x * number of elements along X processed per work item (in bytes) </td></tr> |
| 303 | <tr><td class="paramdir">[in]</td><td class="paramname">out_stride_y</td><td>Stride of the destination image in Y dimension (in bytes) </td></tr> |
| 304 | <tr><td class="paramdir">[in]</td><td class="paramname">out_step_y</td><td>out_stride_y * number of elements along Y processed per work item (in bytes) </td></tr> |
| 305 | <tr><td class="paramdir">[in]</td><td class="paramname">out_offset_first_element_in_bytes</td><td>Offset of the first element in the destination image </td></tr> |
| 306 | <tr><td class="paramdir">[in]</td><td class="paramname">mapx_ptr</td><td>Pointer to the x remapping image. Supported data types: F32. </td></tr> |
| 307 | <tr><td class="paramdir">[in]</td><td class="paramname">mapx_stride_x</td><td>Stride of the remapping image in X dimension (in bytes) </td></tr> |
| 308 | <tr><td class="paramdir">[in]</td><td class="paramname">mapx_step_x</td><td>mapx_stride_x * number of elements along X processed per work item (in bytes) </td></tr> |
| 309 | <tr><td class="paramdir">[in]</td><td class="paramname">mapx_stride_y</td><td>Stride of the remapping image in Y dimension (in bytes) </td></tr> |
| 310 | <tr><td class="paramdir">[in]</td><td class="paramname">mapx_step_y</td><td>mapy_stride_y * number of elements along Y processed per work item (in bytes) </td></tr> |
| 311 | <tr><td class="paramdir">[in]</td><td class="paramname">mapx_offset_first_element_in_bytes</td><td>Offset of the first element in the remapping image </td></tr> |
| 312 | <tr><td class="paramdir">[in]</td><td class="paramname">mapy_ptr</td><td>Pointer to the x remapping image. Supported data types: F32. </td></tr> |
| 313 | <tr><td class="paramdir">[in]</td><td class="paramname">mapy_stride_x</td><td>Stride of the remapping image in X dimension (in bytes) </td></tr> |
| 314 | <tr><td class="paramdir">[in]</td><td class="paramname">mapy_step_x</td><td>mapy_stride_x * number of elements along X processed per work item (in bytes) </td></tr> |
| 315 | <tr><td class="paramdir">[in]</td><td class="paramname">mapy_stride_y</td><td>Stride of the remapping image in Y dimension (in bytes) </td></tr> |
| 316 | <tr><td class="paramdir">[in]</td><td class="paramname">mapy_step_y</td><td>mapy_stride_y * number of elements along Y processed per work item (in bytes) </td></tr> |
| 317 | <tr><td class="paramdir">[in]</td><td class="paramname">mapy_offset_first_element_in_bytes</td><td>Offset of the first element in the remapping image </td></tr> |
| 318 | <tr><td class="paramdir">[in]</td><td class="paramname">width</td><td>Width of the input image </td></tr> |
| 319 | <tr><td class="paramdir">[in]</td><td class="paramname">height</td><td>Height of the input image </td></tr> |
| 320 | </table> |
| 321 | </dd> |
| 322 | </dl> |
| 323 | |
Jenkins | b9abeae | 2018-11-22 11:58:08 +0000 | [diff] [blame] | 324 | <p class="definition">Definition at line <a class="el" href="remap_8cl_source.xhtml#l00113">113</a> of file <a class="el" href="remap_8cl_source.xhtml">remap.cl</a>.</p> |
Jenkins | 514be65 | 2019-02-28 12:25:18 +0000 | [diff] [blame] | 325 | <div class="fragment"><div class="line"><a name="l00120"></a><span class="lineno"> 120</span> {</div><div class="line"><a name="l00121"></a><span class="lineno"> 121</span>  <a class="code" href="struct_image.xhtml">Image</a> in = <a class="code" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h.xhtml#a4334a4a76f8e9628c0fb9e1acf616e2a">CONVERT_TO_IMAGE_STRUCT_NO_STEP</a>(in);</div><div class="line"><a name="l00122"></a><span class="lineno"> 122</span>  <a class="code" href="struct_image.xhtml">Image</a> out = <a class="code" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h.xhtml#aebe814363556c244be043b13e7969197">CONVERT_TO_IMAGE_STRUCT</a>(out);</div><div class="line"><a name="l00123"></a><span class="lineno"> 123</span>  <a class="code" href="struct_image.xhtml">Image</a> mapx = <a class="code" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h.xhtml#aebe814363556c244be043b13e7969197">CONVERT_TO_IMAGE_STRUCT</a>(mapx);</div><div class="line"><a name="l00124"></a><span class="lineno"> 124</span>  <a class="code" href="struct_image.xhtml">Image</a> mapy = <a class="code" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h.xhtml#aebe814363556c244be043b13e7969197">CONVERT_TO_IMAGE_STRUCT</a>(mapy);</div><div class="line"><a name="l00125"></a><span class="lineno"> 125</span> </div><div class="line"><a name="l00126"></a><span class="lineno"> 126</span>  float4 mapx_coords = vload4(0, (__global <span class="keywordtype">float</span> *)mapx.<a class="code" href="struct_image.xhtml#acf52c23cbd7424606c10a606524e3e32">ptr</a>);</div><div class="line"><a name="l00127"></a><span class="lineno"> 127</span>  float4 mapy_coords = vload4(0, (__global <span class="keywordtype">float</span> *)mapy.<a class="code" href="struct_image.xhtml#acf52c23cbd7424606c10a606524e3e32">ptr</a>);</div><div class="line"><a name="l00128"></a><span class="lineno"> 128</span>  float8 map_coords = (float8)(mapx_coords.s0, mapy_coords.s0, mapx_coords.s1, mapy_coords.s1,</div><div class="line"><a name="l00129"></a><span class="lineno"> 129</span>  mapx_coords.s2, mapy_coords.s2, mapx_coords.s3, mapy_coords.s3);</div><div class="line"><a name="l00130"></a><span class="lineno"> 130</span> </div><div class="line"><a name="l00131"></a><span class="lineno"> 131</span>  vstore4(<a class="code" href="warp__helpers_8h.xhtml#abea9f226daf3e0ad741d03cf7417d353">bilinear_interpolate</a>(&in, <a class="code" href="warp__helpers_8h.xhtml#adbdf2ca9e8fe0b67f9359929ef743126">clamp_to_border</a>(map_coords, width, height), width, height), 0, out.<a class="code" href="struct_image.xhtml#acf52c23cbd7424606c10a606524e3e32">ptr</a>);</div><div class="line"><a name="l00132"></a><span class="lineno"> 132</span> }</div><div class="ttc" id="src_2core_2_c_l_2cl__kernels_2_helpers_8h_xhtml_aebe814363556c244be043b13e7969197"><div class="ttname"><a href="src_2core_2_c_l_2cl__kernels_2_helpers_8h.xhtml#aebe814363556c244be043b13e7969197">CONVERT_TO_IMAGE_STRUCT</a></div><div class="ttdeci">#define CONVERT_TO_IMAGE_STRUCT(name)</div><div class="ttdef"><b>Definition:</b> <a href="src_2core_2_c_l_2cl__kernels_2_helpers_8h_source.xhtml#l00113">helpers.h:113</a></div></div> |
| 326 | <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#l00049">warp_helpers.h:49</a></div></div> |
| 327 | <div class="ttc" id="src_2core_2_c_l_2cl__kernels_2_helpers_8h_xhtml_a4334a4a76f8e9628c0fb9e1acf616e2a"><div class="ttname"><a href="src_2core_2_c_l_2cl__kernels_2_helpers_8h.xhtml#a4334a4a76f8e9628c0fb9e1acf616e2a">CONVERT_TO_IMAGE_STRUCT_NO_STEP</a></div><div class="ttdeci">#define CONVERT_TO_IMAGE_STRUCT_NO_STEP(name)</div><div class="ttdef"><b>Definition:</b> <a href="src_2core_2_c_l_2cl__kernels_2_helpers_8h_source.xhtml#l00116">helpers.h:116</a></div></div> |
| 328 | <div class="ttc" id="struct_image_xhtml"><div class="ttname"><a href="struct_image.xhtml">Image</a></div><div class="ttdoc">Structure to hold Image information.</div><div class="ttdef"><b>Definition:</b> <a href="src_2core_2_c_l_2cl__kernels_2_helpers_8h_source.xhtml#l00151">helpers.h:151</a></div></div> |
| 329 | <div class="ttc" id="struct_image_xhtml_acf52c23cbd7424606c10a606524e3e32"><div class="ttname"><a href="struct_image.xhtml#acf52c23cbd7424606c10a606524e3e32">Image::ptr</a></div><div class="ttdeci">__global uchar * ptr</div><div class="ttdoc">Pointer to the starting postion of the buffer.</div><div class="ttdef"><b>Definition:</b> <a href="src_2core_2_c_l_2cl__kernels_2_helpers_8h_source.xhtml#l00153">helpers.h:153</a></div></div> |
Jenkins | b9abeae | 2018-11-22 11:58:08 +0000 | [diff] [blame] | 330 | <div class="ttc" id="warp__helpers_8h_xhtml_abea9f226daf3e0ad741d03cf7417d353"><div class="ttname"><a href="warp__helpers_8h.xhtml#abea9f226daf3e0ad741d03cf7417d353">bilinear_interpolate</a></div><div class="ttdeci">const DATA_TYPE4 bilinear_interpolate(const Image *in, const float8 coords, const float width, const float height)</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_8h_source.xhtml#l00137">warp_helpers.h:137</a></div></div> |
Anthony Barbier | 871448e | 2017-03-24 14:54:29 +0000 | [diff] [blame] | 331 | </div><!-- fragment --> |
Jenkins | 514be65 | 2019-02-28 12:25:18 +0000 | [diff] [blame] | 332 | <p class="reference">References <a class="el" href="warp__helpers_8h_source.xhtml#l00137">bilinear_interpolate()</a>, <a class="el" href="warp__helpers_8h_source.xhtml#l00049">clamp_to_border()</a>, <a class="el" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h_source.xhtml#l00113">CONVERT_TO_IMAGE_STRUCT</a>, <a class="el" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h_source.xhtml#l00116">CONVERT_TO_IMAGE_STRUCT_NO_STEP</a>, and <a class="el" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h_source.xhtml#l00153">Image::ptr</a>.</p> |
| 333 | |
| 334 | <p class="reference">Referenced by <a class="el" href="_n_e_remap_kernel_8cpp_source.xhtml#l00076">NERemapKernel::configure()</a>.</p> |
| 335 | |
Anthony Barbier | 871448e | 2017-03-24 14:54:29 +0000 | [diff] [blame] | 336 | </div> |
| 337 | </div> |
Jenkins | b9abeae | 2018-11-22 11:58:08 +0000 | [diff] [blame] | 338 | <a id="a786803611cc128275d32d9584376713e"></a> |
| 339 | <h2 class="memtitle"><span class="permalink"><a href="#a786803611cc128275d32d9584376713e">◆ </a></span>remap_nearest_neighbour()</h2> |
| 340 | |
Anthony Barbier | 871448e | 2017-03-24 14:54:29 +0000 | [diff] [blame] | 341 | <div class="memitem"> |
| 342 | <div class="memproto"> |
| 343 | <table class="memname"> |
| 344 | <tr> |
| 345 | <td class="memname">__kernel void remap_nearest_neighbour </td> |
| 346 | <td>(</td> |
| 347 | <td class="paramtype">__global uchar * </td> |
| 348 | <td class="paramname"><em>in_ptr</em>, </td> |
| 349 | </tr> |
| 350 | <tr> |
| 351 | <td class="paramkey"></td> |
| 352 | <td></td> |
| 353 | <td class="paramtype">uint </td> |
| 354 | <td class="paramname"><em>in_stride_x</em>, </td> |
| 355 | </tr> |
| 356 | <tr> |
| 357 | <td class="paramkey"></td> |
| 358 | <td></td> |
| 359 | <td class="paramtype">uint </td> |
| 360 | <td class="paramname"><em>in_step_x</em>, </td> |
| 361 | </tr> |
| 362 | <tr> |
| 363 | <td class="paramkey"></td> |
| 364 | <td></td> |
| 365 | <td class="paramtype">uint </td> |
| 366 | <td class="paramname"><em>in_stride_y</em>, </td> |
| 367 | </tr> |
| 368 | <tr> |
| 369 | <td class="paramkey"></td> |
| 370 | <td></td> |
| 371 | <td class="paramtype">uint </td> |
| 372 | <td class="paramname"><em>in_step_y</em>, </td> |
| 373 | </tr> |
| 374 | <tr> |
| 375 | <td class="paramkey"></td> |
| 376 | <td></td> |
| 377 | <td class="paramtype">uint </td> |
| 378 | <td class="paramname"><em>in_offset_first_element_in_bytes</em>, </td> |
| 379 | </tr> |
| 380 | <tr> |
| 381 | <td class="paramkey"></td> |
| 382 | <td></td> |
| 383 | <td class="paramtype">__global uchar * </td> |
| 384 | <td class="paramname"><em>out_ptr</em>, </td> |
| 385 | </tr> |
| 386 | <tr> |
| 387 | <td class="paramkey"></td> |
| 388 | <td></td> |
| 389 | <td class="paramtype">uint </td> |
| 390 | <td class="paramname"><em>out_stride_x</em>, </td> |
| 391 | </tr> |
| 392 | <tr> |
| 393 | <td class="paramkey"></td> |
| 394 | <td></td> |
| 395 | <td class="paramtype">uint </td> |
| 396 | <td class="paramname"><em>out_step_x</em>, </td> |
| 397 | </tr> |
| 398 | <tr> |
| 399 | <td class="paramkey"></td> |
| 400 | <td></td> |
| 401 | <td class="paramtype">uint </td> |
| 402 | <td class="paramname"><em>out_stride_y</em>, </td> |
| 403 | </tr> |
| 404 | <tr> |
| 405 | <td class="paramkey"></td> |
| 406 | <td></td> |
| 407 | <td class="paramtype">uint </td> |
| 408 | <td class="paramname"><em>out_step_y</em>, </td> |
| 409 | </tr> |
| 410 | <tr> |
| 411 | <td class="paramkey"></td> |
| 412 | <td></td> |
| 413 | <td class="paramtype">uint </td> |
| 414 | <td class="paramname"><em>out_offset_first_element_in_bytes</em>, </td> |
| 415 | </tr> |
| 416 | <tr> |
| 417 | <td class="paramkey"></td> |
| 418 | <td></td> |
| 419 | <td class="paramtype">__global uchar * </td> |
| 420 | <td class="paramname"><em>mapx_ptr</em>, </td> |
| 421 | </tr> |
| 422 | <tr> |
| 423 | <td class="paramkey"></td> |
| 424 | <td></td> |
| 425 | <td class="paramtype">uint </td> |
| 426 | <td class="paramname"><em>mapx_stride_x</em>, </td> |
| 427 | </tr> |
| 428 | <tr> |
| 429 | <td class="paramkey"></td> |
| 430 | <td></td> |
| 431 | <td class="paramtype">uint </td> |
| 432 | <td class="paramname"><em>mapx_step_x</em>, </td> |
| 433 | </tr> |
| 434 | <tr> |
| 435 | <td class="paramkey"></td> |
| 436 | <td></td> |
| 437 | <td class="paramtype">uint </td> |
| 438 | <td class="paramname"><em>mapx_stride_y</em>, </td> |
| 439 | </tr> |
| 440 | <tr> |
| 441 | <td class="paramkey"></td> |
| 442 | <td></td> |
| 443 | <td class="paramtype">uint </td> |
| 444 | <td class="paramname"><em>mapx_step_y</em>, </td> |
| 445 | </tr> |
| 446 | <tr> |
| 447 | <td class="paramkey"></td> |
| 448 | <td></td> |
| 449 | <td class="paramtype">uint </td> |
| 450 | <td class="paramname"><em>mapx_offset_first_element_in_bytes</em>, </td> |
| 451 | </tr> |
| 452 | <tr> |
| 453 | <td class="paramkey"></td> |
| 454 | <td></td> |
| 455 | <td class="paramtype">__global uchar * </td> |
| 456 | <td class="paramname"><em>mapy_ptr</em>, </td> |
| 457 | </tr> |
| 458 | <tr> |
| 459 | <td class="paramkey"></td> |
| 460 | <td></td> |
| 461 | <td class="paramtype">uint </td> |
| 462 | <td class="paramname"><em>mapy_stride_x</em>, </td> |
| 463 | </tr> |
| 464 | <tr> |
| 465 | <td class="paramkey"></td> |
| 466 | <td></td> |
| 467 | <td class="paramtype">uint </td> |
| 468 | <td class="paramname"><em>mapy_step_x</em>, </td> |
| 469 | </tr> |
| 470 | <tr> |
| 471 | <td class="paramkey"></td> |
| 472 | <td></td> |
| 473 | <td class="paramtype">uint </td> |
| 474 | <td class="paramname"><em>mapy_stride_y</em>, </td> |
| 475 | </tr> |
| 476 | <tr> |
| 477 | <td class="paramkey"></td> |
| 478 | <td></td> |
| 479 | <td class="paramtype">uint </td> |
| 480 | <td class="paramname"><em>mapy_step_y</em>, </td> |
| 481 | </tr> |
| 482 | <tr> |
| 483 | <td class="paramkey"></td> |
| 484 | <td></td> |
| 485 | <td class="paramtype">uint </td> |
| 486 | <td class="paramname"><em>mapy_offset_first_element_in_bytes</em>, </td> |
| 487 | </tr> |
| 488 | <tr> |
| 489 | <td class="paramkey"></td> |
| 490 | <td></td> |
| 491 | <td class="paramtype">const float </td> |
| 492 | <td class="paramname"><em>width</em>, </td> |
| 493 | </tr> |
| 494 | <tr> |
| 495 | <td class="paramkey"></td> |
| 496 | <td></td> |
| 497 | <td class="paramtype">const float </td> |
| 498 | <td class="paramname"><em>height</em> </td> |
| 499 | </tr> |
| 500 | <tr> |
| 501 | <td></td> |
| 502 | <td>)</td> |
| 503 | <td></td><td></td> |
| 504 | </tr> |
| 505 | </table> |
| 506 | </div><div class="memdoc"> |
| 507 | |
| 508 | <p>Performs a remapping of an input image to an output given two remapping image using nearest neighbor as interpolation. </p> |
| 509 | <p>This kernel performs remapping with this method of pixel coordinate translation: out(x,y) = in(mapx(x,y), mapy(x,y));</p> |
| 510 | <dl class="params"><dt>Parameters</dt><dd> |
| 511 | <table class="params"> |
| 512 | <tr><td class="paramdir">[in]</td><td class="paramname">in_ptr</td><td>Pointer to the source image. Supported data types: U8. </td></tr> |
| 513 | <tr><td class="paramdir">[in]</td><td class="paramname">in_stride_x</td><td>Stride of the source image in X dimension (in bytes) </td></tr> |
| 514 | <tr><td class="paramdir">[in]</td><td class="paramname">in_step_x</td><td>in_stride_x * number of elements along X processed per work item (in bytes) </td></tr> |
| 515 | <tr><td class="paramdir">[in]</td><td class="paramname">in_stride_y</td><td>Stride of the source image in Y dimension (in bytes) </td></tr> |
| 516 | <tr><td class="paramdir">[in]</td><td class="paramname">in_step_y</td><td>in_stride_y * number of elements along Y processed per work item (in bytes) </td></tr> |
| 517 | <tr><td class="paramdir">[in]</td><td class="paramname">in_offset_first_element_in_bytes</td><td>Offset of the first element in the source image </td></tr> |
| 518 | <tr><td class="paramdir">[out]</td><td class="paramname">out_ptr</td><td>Pointer to the destination image. Supported data types: U8. </td></tr> |
| 519 | <tr><td class="paramdir">[in]</td><td class="paramname">out_stride_x</td><td>Stride of the destination image in X dimension (in bytes) </td></tr> |
| 520 | <tr><td class="paramdir">[in]</td><td class="paramname">out_step_x</td><td>out_stride_x * number of elements along X processed per work item (in bytes) </td></tr> |
| 521 | <tr><td class="paramdir">[in]</td><td class="paramname">out_stride_y</td><td>Stride of the destination image in Y dimension (in bytes) </td></tr> |
| 522 | <tr><td class="paramdir">[in]</td><td class="paramname">out_step_y</td><td>out_stride_y * number of elements along Y processed per work item (in bytes) </td></tr> |
| 523 | <tr><td class="paramdir">[in]</td><td class="paramname">out_offset_first_element_in_bytes</td><td>Offset of the first element in the destination image </td></tr> |
| 524 | <tr><td class="paramdir">[in]</td><td class="paramname">mapx_ptr</td><td>Pointer to the x remapping image. Supported data types: F32. </td></tr> |
| 525 | <tr><td class="paramdir">[in]</td><td class="paramname">mapx_stride_x</td><td>Stride of the remapping image in X dimension (in bytes) </td></tr> |
| 526 | <tr><td class="paramdir">[in]</td><td class="paramname">mapx_step_x</td><td>mapx_stride_x * number of elements along X processed per work item (in bytes) </td></tr> |
| 527 | <tr><td class="paramdir">[in]</td><td class="paramname">mapx_stride_y</td><td>Stride of the remapping image in Y dimension (in bytes) </td></tr> |
| 528 | <tr><td class="paramdir">[in]</td><td class="paramname">mapx_step_y</td><td>mapy_stride_y * number of elements along Y processed per work item (in bytes) </td></tr> |
| 529 | <tr><td class="paramdir">[in]</td><td class="paramname">mapx_offset_first_element_in_bytes</td><td>Offset of the first element in the remapping image </td></tr> |
| 530 | <tr><td class="paramdir">[in]</td><td class="paramname">mapy_ptr</td><td>Pointer to the x remapping image. Supported data types: F32. </td></tr> |
| 531 | <tr><td class="paramdir">[in]</td><td class="paramname">mapy_stride_x</td><td>Stride of the remapping image in X dimension (in bytes) </td></tr> |
| 532 | <tr><td class="paramdir">[in]</td><td class="paramname">mapy_step_x</td><td>mapy_stride_x * number of elements along X processed per work item (in bytes) </td></tr> |
| 533 | <tr><td class="paramdir">[in]</td><td class="paramname">mapy_stride_y</td><td>Stride of the remapping image in Y dimension (in bytes) </td></tr> |
| 534 | <tr><td class="paramdir">[in]</td><td class="paramname">mapy_step_y</td><td>mapy_stride_y * number of elements along Y processed per work item (in bytes) </td></tr> |
| 535 | <tr><td class="paramdir">[in]</td><td class="paramname">mapy_offset_first_element_in_bytes</td><td>Offset of the first element in the remapping image </td></tr> |
| 536 | <tr><td class="paramdir">[in]</td><td class="paramname">width</td><td>Width of the input image </td></tr> |
| 537 | <tr><td class="paramdir">[in]</td><td class="paramname">height</td><td>Height of the input image </td></tr> |
| 538 | </table> |
| 539 | </dd> |
| 540 | </dl> |
| 541 | |
Jenkins | b9abeae | 2018-11-22 11:58:08 +0000 | [diff] [blame] | 542 | <p class="definition">Definition at line <a class="el" href="remap_8cl_source.xhtml#l00059">59</a> of file <a class="el" href="remap_8cl_source.xhtml">remap.cl</a>.</p> |
Jenkins | 514be65 | 2019-02-28 12:25:18 +0000 | [diff] [blame] | 543 | <div class="fragment"><div class="line"><a name="l00066"></a><span class="lineno"> 66</span> {</div><div class="line"><a name="l00067"></a><span class="lineno"> 67</span>  <a class="code" href="struct_image.xhtml">Image</a> in = <a class="code" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h.xhtml#a4334a4a76f8e9628c0fb9e1acf616e2a">CONVERT_TO_IMAGE_STRUCT_NO_STEP</a>(in);</div><div class="line"><a name="l00068"></a><span class="lineno"> 68</span>  <a class="code" href="struct_image.xhtml">Image</a> out = <a class="code" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h.xhtml#aebe814363556c244be043b13e7969197">CONVERT_TO_IMAGE_STRUCT</a>(out);</div><div class="line"><a name="l00069"></a><span class="lineno"> 69</span>  <a class="code" href="struct_image.xhtml">Image</a> mapx = <a class="code" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h.xhtml#aebe814363556c244be043b13e7969197">CONVERT_TO_IMAGE_STRUCT</a>(mapx);</div><div class="line"><a name="l00070"></a><span class="lineno"> 70</span>  <a class="code" href="struct_image.xhtml">Image</a> mapy = <a class="code" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h.xhtml#aebe814363556c244be043b13e7969197">CONVERT_TO_IMAGE_STRUCT</a>(mapy);</div><div class="line"><a name="l00071"></a><span class="lineno"> 71</span> </div><div class="line"><a name="l00072"></a><span class="lineno"> 72</span>  float4 mapx_coords = vload4(0, (__global <span class="keywordtype">float</span> *)mapx.<a class="code" href="struct_image.xhtml#acf52c23cbd7424606c10a606524e3e32">ptr</a>);</div><div class="line"><a name="l00073"></a><span class="lineno"> 73</span>  float4 mapy_coords = vload4(0, (__global <span class="keywordtype">float</span> *)mapy.<a class="code" href="struct_image.xhtml#acf52c23cbd7424606c10a606524e3e32">ptr</a>);</div><div class="line"><a name="l00074"></a><span class="lineno"> 74</span>  float8 map_coords = (float8)(mapx_coords.s0, mapy_coords.s0, mapx_coords.s1, mapy_coords.s1,</div><div class="line"><a name="l00075"></a><span class="lineno"> 75</span>  mapx_coords.s2, mapy_coords.s2, mapx_coords.s3, mapy_coords.s3);</div><div class="line"><a name="l00076"></a><span class="lineno"> 76</span>  map_coords += (float8)(0.5f);</div><div class="line"><a name="l00077"></a><span class="lineno"> 77</span> </div><div class="line"><a name="l00078"></a><span class="lineno"> 78</span>  vstore4(<a class="code" href="warp__helpers_8h.xhtml#aba42442a4c991cdbb52727fa370676f1">read_texels4</a>(&in, convert_int8(<a class="code" href="warp__helpers_8h.xhtml#adbdf2ca9e8fe0b67f9359929ef743126">clamp_to_border</a>(map_coords, width, height))), 0, out.<a class="code" href="struct_image.xhtml#acf52c23cbd7424606c10a606524e3e32">ptr</a>);</div><div class="line"><a name="l00079"></a><span class="lineno"> 79</span> }</div><div class="ttc" id="src_2core_2_c_l_2cl__kernels_2_helpers_8h_xhtml_aebe814363556c244be043b13e7969197"><div class="ttname"><a href="src_2core_2_c_l_2cl__kernels_2_helpers_8h.xhtml#aebe814363556c244be043b13e7969197">CONVERT_TO_IMAGE_STRUCT</a></div><div class="ttdeci">#define CONVERT_TO_IMAGE_STRUCT(name)</div><div class="ttdef"><b>Definition:</b> <a href="src_2core_2_c_l_2cl__kernels_2_helpers_8h_source.xhtml#l00113">helpers.h:113</a></div></div> |
| 544 | <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#l00049">warp_helpers.h:49</a></div></div> |
| 545 | <div class="ttc" id="src_2core_2_c_l_2cl__kernels_2_helpers_8h_xhtml_a4334a4a76f8e9628c0fb9e1acf616e2a"><div class="ttname"><a href="src_2core_2_c_l_2cl__kernels_2_helpers_8h.xhtml#a4334a4a76f8e9628c0fb9e1acf616e2a">CONVERT_TO_IMAGE_STRUCT_NO_STEP</a></div><div class="ttdeci">#define CONVERT_TO_IMAGE_STRUCT_NO_STEP(name)</div><div class="ttdef"><b>Definition:</b> <a href="src_2core_2_c_l_2cl__kernels_2_helpers_8h_source.xhtml#l00116">helpers.h:116</a></div></div> |
| 546 | <div class="ttc" id="struct_image_xhtml"><div class="ttname"><a href="struct_image.xhtml">Image</a></div><div class="ttdoc">Structure to hold Image information.</div><div class="ttdef"><b>Definition:</b> <a href="src_2core_2_c_l_2cl__kernels_2_helpers_8h_source.xhtml#l00151">helpers.h:151</a></div></div> |
| 547 | <div class="ttc" id="struct_image_xhtml_acf52c23cbd7424606c10a606524e3e32"><div class="ttname"><a href="struct_image.xhtml#acf52c23cbd7424606c10a606524e3e32">Image::ptr</a></div><div class="ttdeci">__global uchar * ptr</div><div class="ttdoc">Pointer to the starting postion of the buffer.</div><div class="ttdef"><b>Definition:</b> <a href="src_2core_2_c_l_2cl__kernels_2_helpers_8h_source.xhtml#l00153">helpers.h:153</a></div></div> |
| 548 | <div class="ttc" id="warp__helpers_8h_xhtml_aba42442a4c991cdbb52727fa370676f1"><div class="ttname"><a href="warp__helpers_8h.xhtml#aba42442a4c991cdbb52727fa370676f1">read_texels4</a></div><div class="ttdeci">const DATA_TYPE4 read_texels4(const Image *in, const int8 coords)</div><div class="ttdoc">Reads four texels from the input image.</div><div class="ttdef"><b>Definition:</b> <a href="warp__helpers_8h_source.xhtml#l00059">warp_helpers.h:59</a></div></div> |
Anthony Barbier | 871448e | 2017-03-24 14:54:29 +0000 | [diff] [blame] | 549 | </div><!-- fragment --> |
Jenkins | 514be65 | 2019-02-28 12:25:18 +0000 | [diff] [blame] | 550 | <p class="reference">References <a class="el" href="warp__helpers_8h_source.xhtml#l00049">clamp_to_border()</a>, <a class="el" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h_source.xhtml#l00113">CONVERT_TO_IMAGE_STRUCT</a>, <a class="el" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h_source.xhtml#l00116">CONVERT_TO_IMAGE_STRUCT_NO_STEP</a>, <a class="el" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h_source.xhtml#l00153">Image::ptr</a>, and <a class="el" href="warp__helpers_8h_source.xhtml#l00059">read_texels4()</a>.</p> |
| 551 | |
Anthony Barbier | 871448e | 2017-03-24 14:54:29 +0000 | [diff] [blame] | 552 | </div> |
| 553 | </div> |
| 554 | </div><!-- contents --> |
| 555 | </div><!-- doc-content --> |
| 556 | <!-- start footer part --> |
| 557 | <div id="nav-path" class="navpath"><!-- id is needed for treeview function! --> |
| 558 | <ul> |
Anthony Barbier | 8140e1e | 2017-12-14 23:48:46 +0000 | [diff] [blame] | 559 | <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="remap_8cl.xhtml">remap.cl</a></li> |
Jenkins | 4ba87db | 2019-05-23 17:11:51 +0100 | [diff] [blame^] | 560 | <li class="footer">Generated on Thu May 23 2019 17:11:26 for Compute Library by |
Anthony Barbier | 871448e | 2017-03-24 14:54:29 +0000 | [diff] [blame] | 561 | <a href="http://www.doxygen.org/index.html"> |
Jenkins | 514be65 | 2019-02-28 12:25:18 +0000 | [diff] [blame] | 562 | <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.15 </li> |
Anthony Barbier | 871448e | 2017-03-24 14:54:29 +0000 | [diff] [blame] | 563 | </ul> |
| 564 | </div> |
| 565 | </body> |
| 566 | </html> |