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/convolution7x7.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 | 7f09cf7 | 2020-01-22 18:08:16 +0000 | [diff] [blame^] | 43 |  <span id="projectnumber">19.11.1</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('convolution7x7_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="#define-members">Macros</a> | |
| 101 | <a href="#func-members">Functions</a> </div> |
| 102 | <div class="headertitle"> |
| 103 | <div class="title">convolution7x7.cl File Reference</div> </div> |
| 104 | </div><!--header--> |
| 105 | <div class="contents"> |
Jenkins | b9abeae | 2018-11-22 11:58:08 +0000 | [diff] [blame] | 106 | <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 | 871448e | 2017-03-24 14:54:29 +0000 | [diff] [blame] | 107 | </div> |
| 108 | <p><a href="convolution7x7_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="define-members"></a> |
| 111 | Macros</h2></td></tr> |
| 112 | <tr class="memitem:afb8c72ce35c4a1f4a2588d6573e54aa1"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="convolution7x7_8cl.xhtml#afb8c72ce35c4a1f4a2588d6573e54aa1">DATA_TYPE</a>   short</td></tr> |
| 113 | <tr class="separator:afb8c72ce35c4a1f4a2588d6573e54aa1"><td class="memSeparator" colspan="2"> </td></tr> |
| 114 | <tr class="memitem:a26babb0c719990ecbdf3abc6de920875"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="convolution7x7_8cl.xhtml#a26babb0c719990ecbdf3abc6de920875">COMPUTE_TYPE</a>   int</td></tr> |
| 115 | <tr class="separator:a26babb0c719990ecbdf3abc6de920875"><td class="memSeparator" colspan="2"> </td></tr> |
| 116 | <tr class="memitem:ac06f3e24d3fffd3c465d8b2a6e7c985e"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="convolution7x7_8cl.xhtml#ac06f3e24d3fffd3c465d8b2a6e7c985e">DATA_TYPE_OUT</a>   uchar</td></tr> |
| 117 | <tr class="separator:ac06f3e24d3fffd3c465d8b2a6e7c985e"><td class="memSeparator" colspan="2"> </td></tr> |
| 118 | </table><table class="memberdecls"> |
| 119 | <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a> |
| 120 | Functions</h2></td></tr> |
| 121 | <tr class="memitem:a7cedca46bfb1e16a870477a88ce93b9c"><td class="memItemLeft" align="right" valign="top">short8 </td><td class="memItemRight" valign="bottom"><a class="el" href="convolution7x7_8cl.xhtml#a7cedca46bfb1e16a870477a88ce93b9c">convolution1x7</a> (__global const uchar *left_pixel, const short left1_coeff, const short left2_coeff, const short left3_coeff, const short middle_coeff, const short right1_coeff, const short right2_coeff, const short right3_coeff)</td></tr> |
Anthony Barbier | 8140e1e | 2017-12-14 23:48:46 +0000 | [diff] [blame] | 122 | <tr class="memdesc:a7cedca46bfb1e16a870477a88ce93b9c"><td class="mdescLeft"> </td><td class="mdescRight">Compute a 1D horizontal convolution of size 7 for 8 bytes assuming the input is made of 1 channel of 1 byte (i.e 8 pixels). <a href="#a7cedca46bfb1e16a870477a88ce93b9c">More...</a><br /></td></tr> |
Anthony Barbier | 871448e | 2017-03-24 14:54:29 +0000 | [diff] [blame] | 123 | <tr class="separator:a7cedca46bfb1e16a870477a88ce93b9c"><td class="memSeparator" colspan="2"> </td></tr> |
| 124 | <tr class="memitem:a8946e11bc6019e8dd7d06b00d27a5b1b"><td class="memItemLeft" align="right" valign="top">int8 </td><td class="memItemRight" valign="bottom"><a class="el" href="convolution7x7_8cl.xhtml#a8946e11bc6019e8dd7d06b00d27a5b1b">convolution7x1</a> (<a class="el" href="struct_image.xhtml">Image</a> *src, const short up1_coeff, const short up2_coeff, const short up3_coeff, const short middle_coeff, const short down1_coeff, const short down2_coeff, const short down3_coeff)</td></tr> |
Anthony Barbier | 8140e1e | 2017-12-14 23:48:46 +0000 | [diff] [blame] | 125 | <tr class="memdesc:a8946e11bc6019e8dd7d06b00d27a5b1b"><td class="mdescLeft"> </td><td class="mdescRight">Compute a 1D vertical convolution of size 7 for 8 bytes assuming the input is made of 1 channel of 1 byte (i.e 8 pixels). <a href="#a8946e11bc6019e8dd7d06b00d27a5b1b">More...</a><br /></td></tr> |
Anthony Barbier | 871448e | 2017-03-24 14:54:29 +0000 | [diff] [blame] | 126 | <tr class="separator:a8946e11bc6019e8dd7d06b00d27a5b1b"><td class="memSeparator" colspan="2"> </td></tr> |
| 127 | <tr class="memitem:abda5491f14bab2d88026e3174a2151c2"><td class="memItemLeft" align="right" valign="top">short8 </td><td class="memItemRight" valign="bottom"><a class="el" href="convolution7x7_8cl.xhtml#abda5491f14bab2d88026e3174a2151c2">convolution7x7</a> (<a class="el" href="struct_image.xhtml">Image</a> *src, const short mat0, const short mat1, const short mat2, const short mat3, const short mat4, const short mat5, const short mat6, const short mat7, const short mat8, const short mat9, const short mat10, const short mat11, const short mat12, const short mat13, const short mat14, const short mat15, const short mat16, const short mat17, const short mat18, const short mat19, const short mat20, const short mat21, const short mat22, const short mat23, const short mat24, const short mat25, const short mat26, const short mat27, const short mat28, const short mat29, const short mat30, const short mat31, const short mat32, const short mat33, const short mat34, const short mat35, const short mat36, const short mat37, const short mat38, const short mat39, const short mat40, const short mat41, const short mat42, const short mat43, const short mat44, const short mat45, const short mat46, const short mat47, const short mat48, uint scale)</td></tr> |
Anthony Barbier | 8140e1e | 2017-12-14 23:48:46 +0000 | [diff] [blame] | 128 | <tr class="memdesc:abda5491f14bab2d88026e3174a2151c2"><td class="mdescLeft"> </td><td class="mdescRight">Apply a 7x7 convolution matrix to a single channel U8 input image and return the result. <a href="#abda5491f14bab2d88026e3174a2151c2">More...</a><br /></td></tr> |
Anthony Barbier | 871448e | 2017-03-24 14:54:29 +0000 | [diff] [blame] | 129 | <tr class="separator:abda5491f14bab2d88026e3174a2151c2"><td class="memSeparator" colspan="2"> </td></tr> |
| 130 | <tr class="memitem:af82c3330f3fbf7caa9229ffd9a4149fb"><td class="memItemLeft" align="right" valign="top">__kernel void </td><td class="memItemRight" valign="bottom"><a class="el" href="convolution7x7_8cl.xhtml#af82c3330f3fbf7caa9229ffd9a4149fb">convolution_separable1x7_static</a> (__global uchar *src_ptr, uint src_stride_x, uint src_step_x, uint src_stride_y, uint src_step_y, uint src_offset_first_element_in_bytes, __global uchar *dst_ptr, uint dst_stride_x, uint dst_step_x, uint dst_stride_y, uint dst_step_y, uint dst_offset_first_element_in_bytes)</td></tr> |
Anthony Barbier | 8140e1e | 2017-12-14 23:48:46 +0000 | [diff] [blame] | 131 | <tr class="memdesc:af82c3330f3fbf7caa9229ffd9a4149fb"><td class="mdescLeft"> </td><td class="mdescRight">Apply a 1x7 static convolution matrix to a single channel U8 input image and output a single temporary channel image. <a href="#af82c3330f3fbf7caa9229ffd9a4149fb">More...</a><br /></td></tr> |
Anthony Barbier | 871448e | 2017-03-24 14:54:29 +0000 | [diff] [blame] | 132 | <tr class="separator:af82c3330f3fbf7caa9229ffd9a4149fb"><td class="memSeparator" colspan="2"> </td></tr> |
| 133 | <tr class="memitem:a27d964d8bf6620c7e9960e895df40ade"><td class="memItemLeft" align="right" valign="top">__kernel void </td><td class="memItemRight" valign="bottom"><a class="el" href="convolution7x7_8cl.xhtml#a27d964d8bf6620c7e9960e895df40ade">convolution_separable7x1_static</a> (__global uchar *src_ptr, uint src_stride_x, uint src_step_x, uint src_stride_y, uint src_step_y, uint src_offset_first_element_in_bytes, __global uchar *dst_ptr, uint dst_stride_x, uint dst_step_x, uint dst_stride_y, uint dst_step_y, uint dst_offset_first_element_in_bytes)</td></tr> |
Anthony Barbier | 8140e1e | 2017-12-14 23:48:46 +0000 | [diff] [blame] | 134 | <tr class="memdesc:a27d964d8bf6620c7e9960e895df40ade"><td class="mdescLeft"> </td><td class="mdescRight">Apply a 7x1 static convolution matrix to a single channel U8 input image and output a single channel image. <a href="#a27d964d8bf6620c7e9960e895df40ade">More...</a><br /></td></tr> |
Anthony Barbier | 871448e | 2017-03-24 14:54:29 +0000 | [diff] [blame] | 135 | <tr class="separator:a27d964d8bf6620c7e9960e895df40ade"><td class="memSeparator" colspan="2"> </td></tr> |
| 136 | <tr class="memitem:aac65ae3322d90d7b270614f331ef600e"><td class="memItemLeft" align="right" valign="top">__kernel void </td><td class="memItemRight" valign="bottom"><a class="el" href="convolution7x7_8cl.xhtml#aac65ae3322d90d7b270614f331ef600e">convolution7x7_static</a> (__global uchar *src_ptr, uint src_stride_x, uint src_step_x, uint src_stride_y, uint src_step_y, uint src_offset_first_element_in_bytes, __global uchar *dst_ptr, uint dst_stride_x, uint dst_step_x, uint dst_stride_y, uint dst_step_y, uint dst_offset_first_element_in_bytes)</td></tr> |
Anthony Barbier | 8140e1e | 2017-12-14 23:48:46 +0000 | [diff] [blame] | 137 | <tr class="memdesc:aac65ae3322d90d7b270614f331ef600e"><td class="mdescLeft"> </td><td class="mdescRight">Apply a static 7x7 convolution matrix to a single channel U8 input image and output a single channel U8 image including the borders. <a href="#aac65ae3322d90d7b270614f331ef600e">More...</a><br /></td></tr> |
Anthony Barbier | 871448e | 2017-03-24 14:54:29 +0000 | [diff] [blame] | 138 | <tr class="separator:aac65ae3322d90d7b270614f331ef600e"><td class="memSeparator" colspan="2"> </td></tr> |
| 139 | </table> |
| 140 | <h2 class="groupheader">Macro Definition Documentation</h2> |
Jenkins | b9abeae | 2018-11-22 11:58:08 +0000 | [diff] [blame] | 141 | <a id="a26babb0c719990ecbdf3abc6de920875"></a> |
| 142 | <h2 class="memtitle"><span class="permalink"><a href="#a26babb0c719990ecbdf3abc6de920875">◆ </a></span>COMPUTE_TYPE</h2> |
| 143 | |
Anthony Barbier | 871448e | 2017-03-24 14:54:29 +0000 | [diff] [blame] | 144 | <div class="memitem"> |
| 145 | <div class="memproto"> |
| 146 | <table class="memname"> |
| 147 | <tr> |
| 148 | <td class="memname">#define COMPUTE_TYPE   int</td> |
| 149 | </tr> |
| 150 | </table> |
| 151 | </div><div class="memdoc"> |
| 152 | |
Jenkins | b9abeae | 2018-11-22 11:58:08 +0000 | [diff] [blame] | 153 | <p class="definition">Definition at line <a class="el" href="convolution7x7_8cl_source.xhtml#l00031">31</a> of file <a class="el" href="convolution7x7_8cl_source.xhtml">convolution7x7.cl</a>.</p> |
Anthony Barbier | 871448e | 2017-03-24 14:54:29 +0000 | [diff] [blame] | 154 | |
Anthony Barbier | 871448e | 2017-03-24 14:54:29 +0000 | [diff] [blame] | 155 | </div> |
| 156 | </div> |
Jenkins | b9abeae | 2018-11-22 11:58:08 +0000 | [diff] [blame] | 157 | <a id="afb8c72ce35c4a1f4a2588d6573e54aa1"></a> |
| 158 | <h2 class="memtitle"><span class="permalink"><a href="#afb8c72ce35c4a1f4a2588d6573e54aa1">◆ </a></span>DATA_TYPE</h2> |
| 159 | |
Anthony Barbier | 871448e | 2017-03-24 14:54:29 +0000 | [diff] [blame] | 160 | <div class="memitem"> |
| 161 | <div class="memproto"> |
| 162 | <table class="memname"> |
| 163 | <tr> |
| 164 | <td class="memname">#define DATA_TYPE   short</td> |
| 165 | </tr> |
| 166 | </table> |
| 167 | </div><div class="memdoc"> |
| 168 | |
Jenkins | b9abeae | 2018-11-22 11:58:08 +0000 | [diff] [blame] | 169 | <p class="definition">Definition at line <a class="el" href="convolution7x7_8cl_source.xhtml#l00027">27</a> of file <a class="el" href="convolution7x7_8cl_source.xhtml">convolution7x7.cl</a>.</p> |
Anthony Barbier | 871448e | 2017-03-24 14:54:29 +0000 | [diff] [blame] | 170 | |
Anthony Barbier | 871448e | 2017-03-24 14:54:29 +0000 | [diff] [blame] | 171 | </div> |
| 172 | </div> |
Jenkins | b9abeae | 2018-11-22 11:58:08 +0000 | [diff] [blame] | 173 | <a id="ac06f3e24d3fffd3c465d8b2a6e7c985e"></a> |
| 174 | <h2 class="memtitle"><span class="permalink"><a href="#ac06f3e24d3fffd3c465d8b2a6e7c985e">◆ </a></span>DATA_TYPE_OUT</h2> |
| 175 | |
Anthony Barbier | 871448e | 2017-03-24 14:54:29 +0000 | [diff] [blame] | 176 | <div class="memitem"> |
| 177 | <div class="memproto"> |
| 178 | <table class="memname"> |
| 179 | <tr> |
| 180 | <td class="memname">#define DATA_TYPE_OUT   uchar</td> |
| 181 | </tr> |
| 182 | </table> |
| 183 | </div><div class="memdoc"> |
| 184 | |
Jenkins | b9abeae | 2018-11-22 11:58:08 +0000 | [diff] [blame] | 185 | <p class="definition">Definition at line <a class="el" href="convolution7x7_8cl_source.xhtml#l00035">35</a> of file <a class="el" href="convolution7x7_8cl_source.xhtml">convolution7x7.cl</a>.</p> |
Anthony Barbier | 871448e | 2017-03-24 14:54:29 +0000 | [diff] [blame] | 186 | |
Anthony Barbier | 871448e | 2017-03-24 14:54:29 +0000 | [diff] [blame] | 187 | </div> |
| 188 | </div> |
| 189 | <h2 class="groupheader">Function Documentation</h2> |
Jenkins | b9abeae | 2018-11-22 11:58:08 +0000 | [diff] [blame] | 190 | <a id="a7cedca46bfb1e16a870477a88ce93b9c"></a> |
| 191 | <h2 class="memtitle"><span class="permalink"><a href="#a7cedca46bfb1e16a870477a88ce93b9c">◆ </a></span>convolution1x7()</h2> |
| 192 | |
Anthony Barbier | 871448e | 2017-03-24 14:54:29 +0000 | [diff] [blame] | 193 | <div class="memitem"> |
| 194 | <div class="memproto"> |
| 195 | <table class="memname"> |
| 196 | <tr> |
| 197 | <td class="memname">short8 convolution1x7 </td> |
| 198 | <td>(</td> |
| 199 | <td class="paramtype">__global const uchar * </td> |
| 200 | <td class="paramname"><em>left_pixel</em>, </td> |
| 201 | </tr> |
| 202 | <tr> |
| 203 | <td class="paramkey"></td> |
| 204 | <td></td> |
| 205 | <td class="paramtype">const short </td> |
| 206 | <td class="paramname"><em>left1_coeff</em>, </td> |
| 207 | </tr> |
| 208 | <tr> |
| 209 | <td class="paramkey"></td> |
| 210 | <td></td> |
| 211 | <td class="paramtype">const short </td> |
| 212 | <td class="paramname"><em>left2_coeff</em>, </td> |
| 213 | </tr> |
| 214 | <tr> |
| 215 | <td class="paramkey"></td> |
| 216 | <td></td> |
| 217 | <td class="paramtype">const short </td> |
| 218 | <td class="paramname"><em>left3_coeff</em>, </td> |
| 219 | </tr> |
| 220 | <tr> |
| 221 | <td class="paramkey"></td> |
| 222 | <td></td> |
| 223 | <td class="paramtype">const short </td> |
| 224 | <td class="paramname"><em>middle_coeff</em>, </td> |
| 225 | </tr> |
| 226 | <tr> |
| 227 | <td class="paramkey"></td> |
| 228 | <td></td> |
| 229 | <td class="paramtype">const short </td> |
| 230 | <td class="paramname"><em>right1_coeff</em>, </td> |
| 231 | </tr> |
| 232 | <tr> |
| 233 | <td class="paramkey"></td> |
| 234 | <td></td> |
| 235 | <td class="paramtype">const short </td> |
| 236 | <td class="paramname"><em>right2_coeff</em>, </td> |
| 237 | </tr> |
| 238 | <tr> |
| 239 | <td class="paramkey"></td> |
| 240 | <td></td> |
| 241 | <td class="paramtype">const short </td> |
| 242 | <td class="paramname"><em>right3_coeff</em> </td> |
| 243 | </tr> |
| 244 | <tr> |
| 245 | <td></td> |
| 246 | <td>)</td> |
| 247 | <td></td><td></td> |
| 248 | </tr> |
| 249 | </table> |
| 250 | </div><div class="memdoc"> |
| 251 | |
| 252 | <p>Compute a 1D horizontal convolution of size 7 for 8 bytes assuming the input is made of 1 channel of 1 byte (i.e 8 pixels). </p> |
| 253 | <dl class="params"><dt>Parameters</dt><dd> |
| 254 | <table class="params"> |
| 255 | <tr><td class="paramdir">[in]</td><td class="paramname">left_pixel</td><td>Pointer to the left pixel </td></tr> |
| 256 | <tr><td class="paramdir">[in]</td><td class="paramname">left1_coeff</td><td>Weight of the most left pixel </td></tr> |
| 257 | <tr><td class="paramdir">[in]</td><td class="paramname">left2_coeff</td><td>Weight of the second left pixel </td></tr> |
| 258 | <tr><td class="paramdir">[in]</td><td class="paramname">left3_coeff</td><td>Weight of the left pixel </td></tr> |
| 259 | <tr><td class="paramdir">[in]</td><td class="paramname">middle_coeff</td><td>Weight of the middle pixel </td></tr> |
| 260 | <tr><td class="paramdir">[in]</td><td class="paramname">right1_coeff</td><td>Weight of the right pixel </td></tr> |
| 261 | <tr><td class="paramdir">[in]</td><td class="paramname">right2_coeff</td><td>Weight of the second right pixel </td></tr> |
| 262 | <tr><td class="paramdir">[in]</td><td class="paramname">right3_coeff</td><td>Weight of the most right pixel</td></tr> |
| 263 | </table> |
| 264 | </dd> |
| 265 | </dl> |
| 266 | <dl class="section return"><dt>Returns</dt><dd>a short8 containing 8 convoluted values. </dd></dl> |
| 267 | |
Jenkins | b9abeae | 2018-11-22 11:58:08 +0000 | [diff] [blame] | 268 | <p class="definition">Definition at line <a class="el" href="convolution7x7_8cl_source.xhtml#l00052">52</a> of file <a class="el" href="convolution7x7_8cl_source.xhtml">convolution7x7.cl</a>.</p> |
Jenkins | 0e205f7 | 2019-11-28 16:53:35 +0000 | [diff] [blame] | 269 | <div class="fragment"><div class="line"><a name="l00061"></a><span class="lineno"> 61</span> {</div><div class="line"><a name="l00062"></a><span class="lineno"> 62</span>  uchar16 temp = vload16(0, left_pixel);</div><div class="line"><a name="l00063"></a><span class="lineno"> 63</span> </div><div class="line"><a name="l00064"></a><span class="lineno"> 64</span>  <a class="code" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h.xhtml#a36f754c05b6fddf6df0d8d0a74f8159f">VEC_DATA_TYPE</a>(<a class="code" href="convolution7x7_8cl.xhtml#afb8c72ce35c4a1f4a2588d6573e54aa1">DATA_TYPE</a>, 8)</div><div class="line"><a name="l00065"></a><span class="lineno"> 65</span>  left1 = <a class="code" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h.xhtml#aa8d95ba04fc73845abc6045952cae5be">CONVERT</a>(temp.s01234567, <a class="code" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h.xhtml#a36f754c05b6fddf6df0d8d0a74f8159f">VEC_DATA_TYPE</a>(<a class="code" href="convolution7x7_8cl.xhtml#afb8c72ce35c4a1f4a2588d6573e54aa1">DATA_TYPE</a>, 8));</div><div class="line"><a name="l00066"></a><span class="lineno"> 66</span>  <a class="code" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h.xhtml#a36f754c05b6fddf6df0d8d0a74f8159f">VEC_DATA_TYPE</a>(<a class="code" href="convolution7x7_8cl.xhtml#afb8c72ce35c4a1f4a2588d6573e54aa1">DATA_TYPE</a>, 8)</div><div class="line"><a name="l00067"></a><span class="lineno"> 67</span>  left2 = <a class="code" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h.xhtml#aa8d95ba04fc73845abc6045952cae5be">CONVERT</a>(temp.s12345678, <a class="code" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h.xhtml#a36f754c05b6fddf6df0d8d0a74f8159f">VEC_DATA_TYPE</a>(<a class="code" href="convolution7x7_8cl.xhtml#afb8c72ce35c4a1f4a2588d6573e54aa1">DATA_TYPE</a>, 8));</div><div class="line"><a name="l00068"></a><span class="lineno"> 68</span>  <a class="code" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h.xhtml#a36f754c05b6fddf6df0d8d0a74f8159f">VEC_DATA_TYPE</a>(<a class="code" href="convolution7x7_8cl.xhtml#afb8c72ce35c4a1f4a2588d6573e54aa1">DATA_TYPE</a>, 8)</div><div class="line"><a name="l00069"></a><span class="lineno"> 69</span>  left3 = <a class="code" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h.xhtml#aa8d95ba04fc73845abc6045952cae5be">CONVERT</a>(temp.s23456789, <a class="code" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h.xhtml#a36f754c05b6fddf6df0d8d0a74f8159f">VEC_DATA_TYPE</a>(<a class="code" href="convolution7x7_8cl.xhtml#afb8c72ce35c4a1f4a2588d6573e54aa1">DATA_TYPE</a>, 8));</div><div class="line"><a name="l00070"></a><span class="lineno"> 70</span>  <a class="code" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h.xhtml#a36f754c05b6fddf6df0d8d0a74f8159f">VEC_DATA_TYPE</a>(<a class="code" href="convolution7x7_8cl.xhtml#afb8c72ce35c4a1f4a2588d6573e54aa1">DATA_TYPE</a>, 8)</div><div class="line"><a name="l00071"></a><span class="lineno"> 71</span>  middle = <a class="code" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h.xhtml#aa8d95ba04fc73845abc6045952cae5be">CONVERT</a>(temp.s3456789a, <a class="code" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h.xhtml#a36f754c05b6fddf6df0d8d0a74f8159f">VEC_DATA_TYPE</a>(<a class="code" href="convolution7x7_8cl.xhtml#afb8c72ce35c4a1f4a2588d6573e54aa1">DATA_TYPE</a>, 8));</div><div class="line"><a name="l00072"></a><span class="lineno"> 72</span>  <a class="code" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h.xhtml#a36f754c05b6fddf6df0d8d0a74f8159f">VEC_DATA_TYPE</a>(<a class="code" href="convolution7x7_8cl.xhtml#afb8c72ce35c4a1f4a2588d6573e54aa1">DATA_TYPE</a>, 8)</div><div class="line"><a name="l00073"></a><span class="lineno"> 73</span>  right1 = <a class="code" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h.xhtml#aa8d95ba04fc73845abc6045952cae5be">CONVERT</a>(temp.s456789ab, <a class="code" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h.xhtml#a36f754c05b6fddf6df0d8d0a74f8159f">VEC_DATA_TYPE</a>(<a class="code" href="convolution7x7_8cl.xhtml#afb8c72ce35c4a1f4a2588d6573e54aa1">DATA_TYPE</a>, 8));</div><div class="line"><a name="l00074"></a><span class="lineno"> 74</span>  <a class="code" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h.xhtml#a36f754c05b6fddf6df0d8d0a74f8159f">VEC_DATA_TYPE</a>(<a class="code" href="convolution7x7_8cl.xhtml#afb8c72ce35c4a1f4a2588d6573e54aa1">DATA_TYPE</a>, 8)</div><div class="line"><a name="l00075"></a><span class="lineno"> 75</span>  right2 = <a class="code" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h.xhtml#aa8d95ba04fc73845abc6045952cae5be">CONVERT</a>(temp.s56789abc, <a class="code" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h.xhtml#a36f754c05b6fddf6df0d8d0a74f8159f">VEC_DATA_TYPE</a>(<a class="code" href="convolution7x7_8cl.xhtml#afb8c72ce35c4a1f4a2588d6573e54aa1">DATA_TYPE</a>, 8));</div><div class="line"><a name="l00076"></a><span class="lineno"> 76</span>  <a class="code" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h.xhtml#a36f754c05b6fddf6df0d8d0a74f8159f">VEC_DATA_TYPE</a>(<a class="code" href="convolution7x7_8cl.xhtml#afb8c72ce35c4a1f4a2588d6573e54aa1">DATA_TYPE</a>, 8)</div><div class="line"><a name="l00077"></a><span class="lineno"> 77</span>  right3 = <a class="code" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h.xhtml#aa8d95ba04fc73845abc6045952cae5be">CONVERT</a>(temp.s6789abcd, <a class="code" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h.xhtml#a36f754c05b6fddf6df0d8d0a74f8159f">VEC_DATA_TYPE</a>(<a class="code" href="convolution7x7_8cl.xhtml#afb8c72ce35c4a1f4a2588d6573e54aa1">DATA_TYPE</a>, 8));</div><div class="line"><a name="l00078"></a><span class="lineno"> 78</span> </div><div class="line"><a name="l00079"></a><span class="lineno"> 79</span>  return left1 * (<a class="code" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h.xhtml#a36f754c05b6fddf6df0d8d0a74f8159f">VEC_DATA_TYPE</a>(<a class="code" href="convolution7x7_8cl.xhtml#afb8c72ce35c4a1f4a2588d6573e54aa1">DATA_TYPE</a>, 8))left1_coeff + left2 * (<a class="code" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h.xhtml#a36f754c05b6fddf6df0d8d0a74f8159f">VEC_DATA_TYPE</a>(<a class="code" href="convolution7x7_8cl.xhtml#afb8c72ce35c4a1f4a2588d6573e54aa1">DATA_TYPE</a>, 8))left2_coeff + left3 * (<a class="code" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h.xhtml#a36f754c05b6fddf6df0d8d0a74f8159f">VEC_DATA_TYPE</a>(<a class="code" href="convolution7x7_8cl.xhtml#afb8c72ce35c4a1f4a2588d6573e54aa1">DATA_TYPE</a>, 8))left3_coeff + middle * (<a class="code" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h.xhtml#a36f754c05b6fddf6df0d8d0a74f8159f">VEC_DATA_TYPE</a>(<a class="code" href="convolution7x7_8cl.xhtml#afb8c72ce35c4a1f4a2588d6573e54aa1">DATA_TYPE</a>,</div><div class="line"><a name="l00080"></a><span class="lineno"> 80</span>  8))middle_coeff + right1 * (<a class="code" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h.xhtml#a36f754c05b6fddf6df0d8d0a74f8159f">VEC_DATA_TYPE</a>(<a class="code" href="convolution7x7_8cl.xhtml#afb8c72ce35c4a1f4a2588d6573e54aa1">DATA_TYPE</a>, 8))right1_coeff + right2 * (<a class="code" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h.xhtml#a36f754c05b6fddf6df0d8d0a74f8159f">VEC_DATA_TYPE</a>(<a class="code" href="convolution7x7_8cl.xhtml#afb8c72ce35c4a1f4a2588d6573e54aa1">DATA_TYPE</a>, 8))right2_coeff + right3 * (<a class="code" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h.xhtml#a36f754c05b6fddf6df0d8d0a74f8159f">VEC_DATA_TYPE</a>(<a class="code" href="convolution7x7_8cl.xhtml#afb8c72ce35c4a1f4a2588d6573e54aa1">DATA_TYPE</a>, 8))right3_coeff;</div><div class="line"><a name="l00081"></a><span class="lineno"> 81</span> }</div><div class="ttc" id="src_2core_2_c_l_2cl__kernels_2_helpers_8h_xhtml_aa8d95ba04fc73845abc6045952cae5be"><div class="ttname"><a href="src_2core_2_c_l_2cl__kernels_2_helpers_8h.xhtml#aa8d95ba04fc73845abc6045952cae5be">CONVERT</a></div><div class="ttdeci">#define CONVERT(x, type)</div><div class="ttdef"><b>Definition:</b> <a href="src_2core_2_c_l_2cl__kernels_2_helpers_8h_source.xhtml#l00261">helpers.h:261</a></div></div> |
Anthony Barbier | 871448e | 2017-03-24 14:54:29 +0000 | [diff] [blame] | 270 | <div class="ttc" id="convolution7x7_8cl_xhtml_afb8c72ce35c4a1f4a2588d6573e54aa1"><div class="ttname"><a href="convolution7x7_8cl.xhtml#afb8c72ce35c4a1f4a2588d6573e54aa1">DATA_TYPE</a></div><div class="ttdeci">#define DATA_TYPE</div><div class="ttdef"><b>Definition:</b> <a href="convolution7x7_8cl_source.xhtml#l00027">convolution7x7.cl:27</a></div></div> |
Jenkins | 0e205f7 | 2019-11-28 16:53:35 +0000 | [diff] [blame] | 271 | <div class="ttc" id="src_2core_2_c_l_2cl__kernels_2_helpers_8h_xhtml_a36f754c05b6fddf6df0d8d0a74f8159f"><div class="ttname"><a href="src_2core_2_c_l_2cl__kernels_2_helpers_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="src_2core_2_c_l_2cl__kernels_2_helpers_8h_source.xhtml#l00255">helpers.h:255</a></div></div> |
Anthony Barbier | 871448e | 2017-03-24 14:54:29 +0000 | [diff] [blame] | 272 | </div><!-- fragment --> |
Jenkins | 0e205f7 | 2019-11-28 16:53:35 +0000 | [diff] [blame] | 273 | <p class="reference">References <a class="el" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h_source.xhtml#l00261">CONVERT</a>, <a class="el" href="convolution7x7_8cl_source.xhtml#l00027">DATA_TYPE</a>, and <a class="el" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h_source.xhtml#l00255">VEC_DATA_TYPE</a>.</p> |
Jenkins | 514be65 | 2019-02-28 12:25:18 +0000 | [diff] [blame] | 274 | |
| 275 | <p class="reference">Referenced by <a class="el" href="convolution7x7_8cl_source.xhtml#l00200">convolution7x7()</a>, <a class="el" href="convolution__rectangle_8cl_source.xhtml#l00064">convolution_rectangle()</a>, and <a class="el" href="convolution7x7_8cl_source.xhtml#l00252">convolution_separable1x7_static()</a>.</p> |
| 276 | |
Anthony Barbier | 871448e | 2017-03-24 14:54:29 +0000 | [diff] [blame] | 277 | </div> |
| 278 | </div> |
Jenkins | b9abeae | 2018-11-22 11:58:08 +0000 | [diff] [blame] | 279 | <a id="a8946e11bc6019e8dd7d06b00d27a5b1b"></a> |
| 280 | <h2 class="memtitle"><span class="permalink"><a href="#a8946e11bc6019e8dd7d06b00d27a5b1b">◆ </a></span>convolution7x1()</h2> |
| 281 | |
Anthony Barbier | 871448e | 2017-03-24 14:54:29 +0000 | [diff] [blame] | 282 | <div class="memitem"> |
| 283 | <div class="memproto"> |
| 284 | <table class="memname"> |
| 285 | <tr> |
| 286 | <td class="memname">int8 convolution7x1 </td> |
| 287 | <td>(</td> |
| 288 | <td class="paramtype"><a class="el" href="struct_image.xhtml">Image</a> * </td> |
| 289 | <td class="paramname"><em>src</em>, </td> |
| 290 | </tr> |
| 291 | <tr> |
| 292 | <td class="paramkey"></td> |
| 293 | <td></td> |
| 294 | <td class="paramtype">const short </td> |
| 295 | <td class="paramname"><em>up1_coeff</em>, </td> |
| 296 | </tr> |
| 297 | <tr> |
| 298 | <td class="paramkey"></td> |
| 299 | <td></td> |
| 300 | <td class="paramtype">const short </td> |
| 301 | <td class="paramname"><em>up2_coeff</em>, </td> |
| 302 | </tr> |
| 303 | <tr> |
| 304 | <td class="paramkey"></td> |
| 305 | <td></td> |
| 306 | <td class="paramtype">const short </td> |
| 307 | <td class="paramname"><em>up3_coeff</em>, </td> |
| 308 | </tr> |
| 309 | <tr> |
| 310 | <td class="paramkey"></td> |
| 311 | <td></td> |
| 312 | <td class="paramtype">const short </td> |
| 313 | <td class="paramname"><em>middle_coeff</em>, </td> |
| 314 | </tr> |
| 315 | <tr> |
| 316 | <td class="paramkey"></td> |
| 317 | <td></td> |
| 318 | <td class="paramtype">const short </td> |
| 319 | <td class="paramname"><em>down1_coeff</em>, </td> |
| 320 | </tr> |
| 321 | <tr> |
| 322 | <td class="paramkey"></td> |
| 323 | <td></td> |
| 324 | <td class="paramtype">const short </td> |
| 325 | <td class="paramname"><em>down2_coeff</em>, </td> |
| 326 | </tr> |
| 327 | <tr> |
| 328 | <td class="paramkey"></td> |
| 329 | <td></td> |
| 330 | <td class="paramtype">const short </td> |
| 331 | <td class="paramname"><em>down3_coeff</em> </td> |
| 332 | </tr> |
| 333 | <tr> |
| 334 | <td></td> |
| 335 | <td>)</td> |
| 336 | <td></td><td></td> |
| 337 | </tr> |
| 338 | </table> |
| 339 | </div><div class="memdoc"> |
| 340 | |
| 341 | <p>Compute a 1D vertical convolution of size 7 for 8 bytes assuming the input is made of 1 channel of 1 byte (i.e 8 pixels). </p> |
| 342 | <dl class="params"><dt>Parameters</dt><dd> |
| 343 | <table class="params"> |
| 344 | <tr><td class="paramdir">[in]</td><td class="paramname">src</td><td>Pointer to source image. </td></tr> |
| 345 | <tr><td class="paramdir">[in]</td><td class="paramname">up1_coeff</td><td>Weight of the most up pixel </td></tr> |
| 346 | <tr><td class="paramdir">[in]</td><td class="paramname">up2_coeff</td><td>Weight of the second up pixel </td></tr> |
| 347 | <tr><td class="paramdir">[in]</td><td class="paramname">up3_coeff</td><td>Weight of the up pixel </td></tr> |
| 348 | <tr><td class="paramdir">[in]</td><td class="paramname">middle_coeff</td><td>Weight of the middle pixel </td></tr> |
| 349 | <tr><td class="paramdir">[in]</td><td class="paramname">down1_coeff</td><td>Weight of the down pixel </td></tr> |
| 350 | <tr><td class="paramdir">[in]</td><td class="paramname">down2_coeff</td><td>Weight of the second down pixel </td></tr> |
| 351 | <tr><td class="paramdir">[in]</td><td class="paramname">down3_coeff</td><td>Weight of the third down pixel</td></tr> |
| 352 | </table> |
| 353 | </dd> |
| 354 | </dl> |
| 355 | <dl class="section return"><dt>Returns</dt><dd>a short8 containing 8 convoluted values. </dd></dl> |
| 356 | |
Jenkins | b9abeae | 2018-11-22 11:58:08 +0000 | [diff] [blame] | 357 | <p class="definition">Definition at line <a class="el" href="convolution7x7_8cl_source.xhtml#l00097">97</a> of file <a class="el" href="convolution7x7_8cl_source.xhtml">convolution7x7.cl</a>.</p> |
Jenkins | 0e205f7 | 2019-11-28 16:53:35 +0000 | [diff] [blame] | 358 | <div class="fragment"><div class="line"><a name="l00106"></a><span class="lineno"> 106</span> {</div><div class="line"><a name="l00107"></a><span class="lineno"> 107</span>  <a class="code" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h.xhtml#a36f754c05b6fddf6df0d8d0a74f8159f">VEC_DATA_TYPE</a>(<a class="code" href="convolution7x7_8cl.xhtml#a26babb0c719990ecbdf3abc6de920875">COMPUTE_TYPE</a>, 8)</div><div class="line"><a name="l00108"></a><span class="lineno"> 108</span>  val;</div><div class="line"><a name="l00109"></a><span class="lineno"> 109</span>  <a class="code" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h.xhtml#a36f754c05b6fddf6df0d8d0a74f8159f">VEC_DATA_TYPE</a>(<a class="code" href="convolution7x7_8cl.xhtml#a26babb0c719990ecbdf3abc6de920875">COMPUTE_TYPE</a>, 8)</div><div class="line"><a name="l00110"></a><span class="lineno"> 110</span>  out = (<a class="code" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h.xhtml#a36f754c05b6fddf6df0d8d0a74f8159f">VEC_DATA_TYPE</a>(<a class="code" href="convolution7x7_8cl.xhtml#a26babb0c719990ecbdf3abc6de920875">COMPUTE_TYPE</a>, 8))0;</div><div class="line"><a name="l00111"></a><span class="lineno"> 111</span> </div><div class="line"><a name="l00112"></a><span class="lineno"> 112</span>  val = <a class="code" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h.xhtml#aa8d95ba04fc73845abc6045952cae5be">CONVERT</a>(vload8(0, (__global <a class="code" href="convolution7x7_8cl.xhtml#afb8c72ce35c4a1f4a2588d6573e54aa1">DATA_TYPE</a> *)<a class="code" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h.xhtml#a009469e4d9b8fce3b6d5e97d2077827d">offset</a>(<a class="code" href="namespacearm__compute_1_1test_1_1validation.xhtml#a989ab3e96426615bb98e04e0235088ca">src</a>, 0, -3)), <a class="code" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h.xhtml#a36f754c05b6fddf6df0d8d0a74f8159f">VEC_DATA_TYPE</a>(<a class="code" href="convolution7x7_8cl.xhtml#a26babb0c719990ecbdf3abc6de920875">COMPUTE_TYPE</a>, 8));</div><div class="line"><a name="l00113"></a><span class="lineno"> 113</span>  out += val * (<a class="code" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h.xhtml#a36f754c05b6fddf6df0d8d0a74f8159f">VEC_DATA_TYPE</a>(<a class="code" href="convolution7x7_8cl.xhtml#a26babb0c719990ecbdf3abc6de920875">COMPUTE_TYPE</a>, 8))up1_coeff;</div><div class="line"><a name="l00114"></a><span class="lineno"> 114</span> </div><div class="line"><a name="l00115"></a><span class="lineno"> 115</span>  val = <a class="code" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h.xhtml#aa8d95ba04fc73845abc6045952cae5be">CONVERT</a>(vload8(0, (__global <a class="code" href="convolution7x7_8cl.xhtml#afb8c72ce35c4a1f4a2588d6573e54aa1">DATA_TYPE</a> *)<a class="code" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h.xhtml#a009469e4d9b8fce3b6d5e97d2077827d">offset</a>(<a class="code" href="namespacearm__compute_1_1test_1_1validation.xhtml#a989ab3e96426615bb98e04e0235088ca">src</a>, 0, -2)), <a class="code" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h.xhtml#a36f754c05b6fddf6df0d8d0a74f8159f">VEC_DATA_TYPE</a>(<a class="code" href="convolution7x7_8cl.xhtml#a26babb0c719990ecbdf3abc6de920875">COMPUTE_TYPE</a>, 8));</div><div class="line"><a name="l00116"></a><span class="lineno"> 116</span>  out += val * (<a class="code" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h.xhtml#a36f754c05b6fddf6df0d8d0a74f8159f">VEC_DATA_TYPE</a>(<a class="code" href="convolution7x7_8cl.xhtml#a26babb0c719990ecbdf3abc6de920875">COMPUTE_TYPE</a>, 8))up2_coeff;</div><div class="line"><a name="l00117"></a><span class="lineno"> 117</span> </div><div class="line"><a name="l00118"></a><span class="lineno"> 118</span>  val = <a class="code" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h.xhtml#aa8d95ba04fc73845abc6045952cae5be">CONVERT</a>(vload8(0, (__global <a class="code" href="convolution7x7_8cl.xhtml#afb8c72ce35c4a1f4a2588d6573e54aa1">DATA_TYPE</a> *)<a class="code" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h.xhtml#a009469e4d9b8fce3b6d5e97d2077827d">offset</a>(<a class="code" href="namespacearm__compute_1_1test_1_1validation.xhtml#a989ab3e96426615bb98e04e0235088ca">src</a>, 0, -1)), <a class="code" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h.xhtml#a36f754c05b6fddf6df0d8d0a74f8159f">VEC_DATA_TYPE</a>(<a class="code" href="convolution7x7_8cl.xhtml#a26babb0c719990ecbdf3abc6de920875">COMPUTE_TYPE</a>, 8));</div><div class="line"><a name="l00119"></a><span class="lineno"> 119</span>  out += val * (<a class="code" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h.xhtml#a36f754c05b6fddf6df0d8d0a74f8159f">VEC_DATA_TYPE</a>(<a class="code" href="convolution7x7_8cl.xhtml#a26babb0c719990ecbdf3abc6de920875">COMPUTE_TYPE</a>, 8))up3_coeff;</div><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>  val = <a class="code" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h.xhtml#aa8d95ba04fc73845abc6045952cae5be">CONVERT</a>(vload8(0, (__global <a class="code" href="convolution7x7_8cl.xhtml#afb8c72ce35c4a1f4a2588d6573e54aa1">DATA_TYPE</a> *)<a class="code" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h.xhtml#a009469e4d9b8fce3b6d5e97d2077827d">offset</a>(<a class="code" href="namespacearm__compute_1_1test_1_1validation.xhtml#a989ab3e96426615bb98e04e0235088ca">src</a>, 0, 0)), <a class="code" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h.xhtml#a36f754c05b6fddf6df0d8d0a74f8159f">VEC_DATA_TYPE</a>(<a class="code" href="convolution7x7_8cl.xhtml#a26babb0c719990ecbdf3abc6de920875">COMPUTE_TYPE</a>, 8));</div><div class="line"><a name="l00122"></a><span class="lineno"> 122</span>  out += val * (<a class="code" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h.xhtml#a36f754c05b6fddf6df0d8d0a74f8159f">VEC_DATA_TYPE</a>(<a class="code" href="convolution7x7_8cl.xhtml#a26babb0c719990ecbdf3abc6de920875">COMPUTE_TYPE</a>, 8))middle_coeff;</div><div class="line"><a name="l00123"></a><span class="lineno"> 123</span> </div><div class="line"><a name="l00124"></a><span class="lineno"> 124</span>  val = <a class="code" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h.xhtml#aa8d95ba04fc73845abc6045952cae5be">CONVERT</a>(vload8(0, (__global <a class="code" href="convolution7x7_8cl.xhtml#afb8c72ce35c4a1f4a2588d6573e54aa1">DATA_TYPE</a> *)<a class="code" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h.xhtml#a009469e4d9b8fce3b6d5e97d2077827d">offset</a>(<a class="code" href="namespacearm__compute_1_1test_1_1validation.xhtml#a989ab3e96426615bb98e04e0235088ca">src</a>, 0, 1)), <a class="code" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h.xhtml#a36f754c05b6fddf6df0d8d0a74f8159f">VEC_DATA_TYPE</a>(<a class="code" href="convolution7x7_8cl.xhtml#a26babb0c719990ecbdf3abc6de920875">COMPUTE_TYPE</a>, 8));</div><div class="line"><a name="l00125"></a><span class="lineno"> 125</span>  out += val * (<a class="code" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h.xhtml#a36f754c05b6fddf6df0d8d0a74f8159f">VEC_DATA_TYPE</a>(<a class="code" href="convolution7x7_8cl.xhtml#a26babb0c719990ecbdf3abc6de920875">COMPUTE_TYPE</a>, 8))down1_coeff;</div><div class="line"><a name="l00126"></a><span class="lineno"> 126</span> </div><div class="line"><a name="l00127"></a><span class="lineno"> 127</span>  val = <a class="code" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h.xhtml#aa8d95ba04fc73845abc6045952cae5be">CONVERT</a>(vload8(0, (__global <a class="code" href="convolution7x7_8cl.xhtml#afb8c72ce35c4a1f4a2588d6573e54aa1">DATA_TYPE</a> *)<a class="code" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h.xhtml#a009469e4d9b8fce3b6d5e97d2077827d">offset</a>(<a class="code" href="namespacearm__compute_1_1test_1_1validation.xhtml#a989ab3e96426615bb98e04e0235088ca">src</a>, 0, 2)), <a class="code" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h.xhtml#a36f754c05b6fddf6df0d8d0a74f8159f">VEC_DATA_TYPE</a>(<a class="code" href="convolution7x7_8cl.xhtml#a26babb0c719990ecbdf3abc6de920875">COMPUTE_TYPE</a>, 8));</div><div class="line"><a name="l00128"></a><span class="lineno"> 128</span>  out += val * (<a class="code" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h.xhtml#a36f754c05b6fddf6df0d8d0a74f8159f">VEC_DATA_TYPE</a>(<a class="code" href="convolution7x7_8cl.xhtml#a26babb0c719990ecbdf3abc6de920875">COMPUTE_TYPE</a>, 8))down2_coeff;</div><div class="line"><a name="l00129"></a><span class="lineno"> 129</span> </div><div class="line"><a name="l00130"></a><span class="lineno"> 130</span>  val = <a class="code" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h.xhtml#aa8d95ba04fc73845abc6045952cae5be">CONVERT</a>(vload8(0, (__global <a class="code" href="convolution7x7_8cl.xhtml#afb8c72ce35c4a1f4a2588d6573e54aa1">DATA_TYPE</a> *)<a class="code" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h.xhtml#a009469e4d9b8fce3b6d5e97d2077827d">offset</a>(<a class="code" href="namespacearm__compute_1_1test_1_1validation.xhtml#a989ab3e96426615bb98e04e0235088ca">src</a>, 0, 3)), <a class="code" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h.xhtml#a36f754c05b6fddf6df0d8d0a74f8159f">VEC_DATA_TYPE</a>(<a class="code" href="convolution7x7_8cl.xhtml#a26babb0c719990ecbdf3abc6de920875">COMPUTE_TYPE</a>, 8));</div><div class="line"><a name="l00131"></a><span class="lineno"> 131</span>  out += val * (<a class="code" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h.xhtml#a36f754c05b6fddf6df0d8d0a74f8159f">VEC_DATA_TYPE</a>(<a class="code" href="convolution7x7_8cl.xhtml#a26babb0c719990ecbdf3abc6de920875">COMPUTE_TYPE</a>, 8))down3_coeff;</div><div class="line"><a name="l00132"></a><span class="lineno"> 132</span> </div><div class="line"><a name="l00133"></a><span class="lineno"> 133</span>  return out;</div><div class="line"><a name="l00134"></a><span class="lineno"> 134</span> }</div><div class="ttc" id="src_2core_2_c_l_2cl__kernels_2_helpers_8h_xhtml_a009469e4d9b8fce3b6d5e97d2077827d"><div class="ttname"><a href="src_2core_2_c_l_2cl__kernels_2_helpers_8h.xhtml#a009469e4d9b8fce3b6d5e97d2077827d">offset</a></div><div class="ttdeci">__global uchar * offset(const Image *img, int x, int y)</div><div class="ttdoc">Get the pointer position of a Image.</div><div class="ttdef"><b>Definition:</b> <a href="src_2core_2_c_l_2cl__kernels_2_helpers_8h_source.xhtml#l00510">helpers.h:510</a></div></div> |
| 359 | <div class="ttc" id="src_2core_2_c_l_2cl__kernels_2_helpers_8h_xhtml_aa8d95ba04fc73845abc6045952cae5be"><div class="ttname"><a href="src_2core_2_c_l_2cl__kernels_2_helpers_8h.xhtml#aa8d95ba04fc73845abc6045952cae5be">CONVERT</a></div><div class="ttdeci">#define CONVERT(x, type)</div><div class="ttdef"><b>Definition:</b> <a href="src_2core_2_c_l_2cl__kernels_2_helpers_8h_source.xhtml#l00261">helpers.h:261</a></div></div> |
Jenkins | b9abeae | 2018-11-22 11:58:08 +0000 | [diff] [blame] | 360 | <div class="ttc" id="convolution7x7_8cl_xhtml_a26babb0c719990ecbdf3abc6de920875"><div class="ttname"><a href="convolution7x7_8cl.xhtml#a26babb0c719990ecbdf3abc6de920875">COMPUTE_TYPE</a></div><div class="ttdeci">#define COMPUTE_TYPE</div><div class="ttdef"><b>Definition:</b> <a href="convolution7x7_8cl_source.xhtml#l00031">convolution7x7.cl:31</a></div></div> |
Anthony Barbier | 871448e | 2017-03-24 14:54:29 +0000 | [diff] [blame] | 361 | <div class="ttc" id="convolution7x7_8cl_xhtml_afb8c72ce35c4a1f4a2588d6573e54aa1"><div class="ttname"><a href="convolution7x7_8cl.xhtml#afb8c72ce35c4a1f4a2588d6573e54aa1">DATA_TYPE</a></div><div class="ttdeci">#define DATA_TYPE</div><div class="ttdef"><b>Definition:</b> <a href="convolution7x7_8cl_source.xhtml#l00027">convolution7x7.cl:27</a></div></div> |
Jenkins | 975dfe1 | 2019-09-02 11:47:54 +0100 | [diff] [blame] | 362 | <div class="ttc" id="namespacearm__compute_1_1test_1_1validation_xhtml_a989ab3e96426615bb98e04e0235088ca"><div class="ttname"><a href="namespacearm__compute_1_1test_1_1validation.xhtml#a989ab3e96426615bb98e04e0235088ca">arm_compute::test::validation::src</a></div><div class="ttdeci">cast configure & src</div><div class="ttdef"><b>Definition:</b> <a href="_c_l_2_cast_8cpp_source.xhtml#l00169">Cast.cpp:169</a></div></div> |
Jenkins | 0e205f7 | 2019-11-28 16:53:35 +0000 | [diff] [blame] | 363 | <div class="ttc" id="src_2core_2_c_l_2cl__kernels_2_helpers_8h_xhtml_a36f754c05b6fddf6df0d8d0a74f8159f"><div class="ttname"><a href="src_2core_2_c_l_2cl__kernels_2_helpers_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="src_2core_2_c_l_2cl__kernels_2_helpers_8h_source.xhtml#l00255">helpers.h:255</a></div></div> |
Anthony Barbier | 871448e | 2017-03-24 14:54:29 +0000 | [diff] [blame] | 364 | </div><!-- fragment --> |
Jenkins | 0e205f7 | 2019-11-28 16:53:35 +0000 | [diff] [blame] | 365 | <p class="reference">References <a class="el" href="convolution7x7_8cl_source.xhtml#l00031">COMPUTE_TYPE</a>, <a class="el" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h_source.xhtml#l00261">CONVERT</a>, <a class="el" href="convolution7x7_8cl_source.xhtml#l00027">DATA_TYPE</a>, <a class="el" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h_source.xhtml#l00510">offset()</a>, <a class="el" href="_c_l_2_cast_8cpp_source.xhtml#l00169">arm_compute::test::validation::src</a>, and <a class="el" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h_source.xhtml#l00255">VEC_DATA_TYPE</a>.</p> |
Jenkins | 514be65 | 2019-02-28 12:25:18 +0000 | [diff] [blame] | 366 | |
| 367 | <p class="reference">Referenced by <a class="el" href="convolution7x7_8cl_source.xhtml#l00285">convolution_separable7x1_static()</a>.</p> |
| 368 | |
Anthony Barbier | 871448e | 2017-03-24 14:54:29 +0000 | [diff] [blame] | 369 | </div> |
| 370 | </div> |
Jenkins | b9abeae | 2018-11-22 11:58:08 +0000 | [diff] [blame] | 371 | <a id="abda5491f14bab2d88026e3174a2151c2"></a> |
| 372 | <h2 class="memtitle"><span class="permalink"><a href="#abda5491f14bab2d88026e3174a2151c2">◆ </a></span>convolution7x7()</h2> |
| 373 | |
Anthony Barbier | 871448e | 2017-03-24 14:54:29 +0000 | [diff] [blame] | 374 | <div class="memitem"> |
| 375 | <div class="memproto"> |
| 376 | <table class="memname"> |
| 377 | <tr> |
| 378 | <td class="memname">short8 convolution7x7 </td> |
| 379 | <td>(</td> |
| 380 | <td class="paramtype"><a class="el" href="struct_image.xhtml">Image</a> * </td> |
| 381 | <td class="paramname"><em>src</em>, </td> |
| 382 | </tr> |
| 383 | <tr> |
| 384 | <td class="paramkey"></td> |
| 385 | <td></td> |
| 386 | <td class="paramtype">const short </td> |
| 387 | <td class="paramname"><em>mat0</em>, </td> |
| 388 | </tr> |
| 389 | <tr> |
| 390 | <td class="paramkey"></td> |
| 391 | <td></td> |
| 392 | <td class="paramtype">const short </td> |
| 393 | <td class="paramname"><em>mat1</em>, </td> |
| 394 | </tr> |
| 395 | <tr> |
| 396 | <td class="paramkey"></td> |
| 397 | <td></td> |
| 398 | <td class="paramtype">const short </td> |
| 399 | <td class="paramname"><em>mat2</em>, </td> |
| 400 | </tr> |
| 401 | <tr> |
| 402 | <td class="paramkey"></td> |
| 403 | <td></td> |
| 404 | <td class="paramtype">const short </td> |
| 405 | <td class="paramname"><em>mat3</em>, </td> |
| 406 | </tr> |
| 407 | <tr> |
| 408 | <td class="paramkey"></td> |
| 409 | <td></td> |
| 410 | <td class="paramtype">const short </td> |
| 411 | <td class="paramname"><em>mat4</em>, </td> |
| 412 | </tr> |
| 413 | <tr> |
| 414 | <td class="paramkey"></td> |
| 415 | <td></td> |
| 416 | <td class="paramtype">const short </td> |
| 417 | <td class="paramname"><em>mat5</em>, </td> |
| 418 | </tr> |
| 419 | <tr> |
| 420 | <td class="paramkey"></td> |
| 421 | <td></td> |
| 422 | <td class="paramtype">const short </td> |
| 423 | <td class="paramname"><em>mat6</em>, </td> |
| 424 | </tr> |
| 425 | <tr> |
| 426 | <td class="paramkey"></td> |
| 427 | <td></td> |
| 428 | <td class="paramtype">const short </td> |
| 429 | <td class="paramname"><em>mat7</em>, </td> |
| 430 | </tr> |
| 431 | <tr> |
| 432 | <td class="paramkey"></td> |
| 433 | <td></td> |
| 434 | <td class="paramtype">const short </td> |
| 435 | <td class="paramname"><em>mat8</em>, </td> |
| 436 | </tr> |
| 437 | <tr> |
| 438 | <td class="paramkey"></td> |
| 439 | <td></td> |
| 440 | <td class="paramtype">const short </td> |
| 441 | <td class="paramname"><em>mat9</em>, </td> |
| 442 | </tr> |
| 443 | <tr> |
| 444 | <td class="paramkey"></td> |
| 445 | <td></td> |
| 446 | <td class="paramtype">const short </td> |
| 447 | <td class="paramname"><em>mat10</em>, </td> |
| 448 | </tr> |
| 449 | <tr> |
| 450 | <td class="paramkey"></td> |
| 451 | <td></td> |
| 452 | <td class="paramtype">const short </td> |
| 453 | <td class="paramname"><em>mat11</em>, </td> |
| 454 | </tr> |
| 455 | <tr> |
| 456 | <td class="paramkey"></td> |
| 457 | <td></td> |
| 458 | <td class="paramtype">const short </td> |
| 459 | <td class="paramname"><em>mat12</em>, </td> |
| 460 | </tr> |
| 461 | <tr> |
| 462 | <td class="paramkey"></td> |
| 463 | <td></td> |
| 464 | <td class="paramtype">const short </td> |
| 465 | <td class="paramname"><em>mat13</em>, </td> |
| 466 | </tr> |
| 467 | <tr> |
| 468 | <td class="paramkey"></td> |
| 469 | <td></td> |
| 470 | <td class="paramtype">const short </td> |
| 471 | <td class="paramname"><em>mat14</em>, </td> |
| 472 | </tr> |
| 473 | <tr> |
| 474 | <td class="paramkey"></td> |
| 475 | <td></td> |
| 476 | <td class="paramtype">const short </td> |
| 477 | <td class="paramname"><em>mat15</em>, </td> |
| 478 | </tr> |
| 479 | <tr> |
| 480 | <td class="paramkey"></td> |
| 481 | <td></td> |
| 482 | <td class="paramtype">const short </td> |
| 483 | <td class="paramname"><em>mat16</em>, </td> |
| 484 | </tr> |
| 485 | <tr> |
| 486 | <td class="paramkey"></td> |
| 487 | <td></td> |
| 488 | <td class="paramtype">const short </td> |
| 489 | <td class="paramname"><em>mat17</em>, </td> |
| 490 | </tr> |
| 491 | <tr> |
| 492 | <td class="paramkey"></td> |
| 493 | <td></td> |
| 494 | <td class="paramtype">const short </td> |
| 495 | <td class="paramname"><em>mat18</em>, </td> |
| 496 | </tr> |
| 497 | <tr> |
| 498 | <td class="paramkey"></td> |
| 499 | <td></td> |
| 500 | <td class="paramtype">const short </td> |
| 501 | <td class="paramname"><em>mat19</em>, </td> |
| 502 | </tr> |
| 503 | <tr> |
| 504 | <td class="paramkey"></td> |
| 505 | <td></td> |
| 506 | <td class="paramtype">const short </td> |
| 507 | <td class="paramname"><em>mat20</em>, </td> |
| 508 | </tr> |
| 509 | <tr> |
| 510 | <td class="paramkey"></td> |
| 511 | <td></td> |
| 512 | <td class="paramtype">const short </td> |
| 513 | <td class="paramname"><em>mat21</em>, </td> |
| 514 | </tr> |
| 515 | <tr> |
| 516 | <td class="paramkey"></td> |
| 517 | <td></td> |
| 518 | <td class="paramtype">const short </td> |
| 519 | <td class="paramname"><em>mat22</em>, </td> |
| 520 | </tr> |
| 521 | <tr> |
| 522 | <td class="paramkey"></td> |
| 523 | <td></td> |
| 524 | <td class="paramtype">const short </td> |
| 525 | <td class="paramname"><em>mat23</em>, </td> |
| 526 | </tr> |
| 527 | <tr> |
| 528 | <td class="paramkey"></td> |
| 529 | <td></td> |
| 530 | <td class="paramtype">const short </td> |
| 531 | <td class="paramname"><em>mat24</em>, </td> |
| 532 | </tr> |
| 533 | <tr> |
| 534 | <td class="paramkey"></td> |
| 535 | <td></td> |
| 536 | <td class="paramtype">const short </td> |
| 537 | <td class="paramname"><em>mat25</em>, </td> |
| 538 | </tr> |
| 539 | <tr> |
| 540 | <td class="paramkey"></td> |
| 541 | <td></td> |
| 542 | <td class="paramtype">const short </td> |
| 543 | <td class="paramname"><em>mat26</em>, </td> |
| 544 | </tr> |
| 545 | <tr> |
| 546 | <td class="paramkey"></td> |
| 547 | <td></td> |
| 548 | <td class="paramtype">const short </td> |
| 549 | <td class="paramname"><em>mat27</em>, </td> |
| 550 | </tr> |
| 551 | <tr> |
| 552 | <td class="paramkey"></td> |
| 553 | <td></td> |
| 554 | <td class="paramtype">const short </td> |
| 555 | <td class="paramname"><em>mat28</em>, </td> |
| 556 | </tr> |
| 557 | <tr> |
| 558 | <td class="paramkey"></td> |
| 559 | <td></td> |
| 560 | <td class="paramtype">const short </td> |
| 561 | <td class="paramname"><em>mat29</em>, </td> |
| 562 | </tr> |
| 563 | <tr> |
| 564 | <td class="paramkey"></td> |
| 565 | <td></td> |
| 566 | <td class="paramtype">const short </td> |
| 567 | <td class="paramname"><em>mat30</em>, </td> |
| 568 | </tr> |
| 569 | <tr> |
| 570 | <td class="paramkey"></td> |
| 571 | <td></td> |
| 572 | <td class="paramtype">const short </td> |
| 573 | <td class="paramname"><em>mat31</em>, </td> |
| 574 | </tr> |
| 575 | <tr> |
| 576 | <td class="paramkey"></td> |
| 577 | <td></td> |
| 578 | <td class="paramtype">const short </td> |
| 579 | <td class="paramname"><em>mat32</em>, </td> |
| 580 | </tr> |
| 581 | <tr> |
| 582 | <td class="paramkey"></td> |
| 583 | <td></td> |
| 584 | <td class="paramtype">const short </td> |
| 585 | <td class="paramname"><em>mat33</em>, </td> |
| 586 | </tr> |
| 587 | <tr> |
| 588 | <td class="paramkey"></td> |
| 589 | <td></td> |
| 590 | <td class="paramtype">const short </td> |
| 591 | <td class="paramname"><em>mat34</em>, </td> |
| 592 | </tr> |
| 593 | <tr> |
| 594 | <td class="paramkey"></td> |
| 595 | <td></td> |
| 596 | <td class="paramtype">const short </td> |
| 597 | <td class="paramname"><em>mat35</em>, </td> |
| 598 | </tr> |
| 599 | <tr> |
| 600 | <td class="paramkey"></td> |
| 601 | <td></td> |
| 602 | <td class="paramtype">const short </td> |
| 603 | <td class="paramname"><em>mat36</em>, </td> |
| 604 | </tr> |
| 605 | <tr> |
| 606 | <td class="paramkey"></td> |
| 607 | <td></td> |
| 608 | <td class="paramtype">const short </td> |
| 609 | <td class="paramname"><em>mat37</em>, </td> |
| 610 | </tr> |
| 611 | <tr> |
| 612 | <td class="paramkey"></td> |
| 613 | <td></td> |
| 614 | <td class="paramtype">const short </td> |
| 615 | <td class="paramname"><em>mat38</em>, </td> |
| 616 | </tr> |
| 617 | <tr> |
| 618 | <td class="paramkey"></td> |
| 619 | <td></td> |
| 620 | <td class="paramtype">const short </td> |
| 621 | <td class="paramname"><em>mat39</em>, </td> |
| 622 | </tr> |
| 623 | <tr> |
| 624 | <td class="paramkey"></td> |
| 625 | <td></td> |
| 626 | <td class="paramtype">const short </td> |
| 627 | <td class="paramname"><em>mat40</em>, </td> |
| 628 | </tr> |
| 629 | <tr> |
| 630 | <td class="paramkey"></td> |
| 631 | <td></td> |
| 632 | <td class="paramtype">const short </td> |
| 633 | <td class="paramname"><em>mat41</em>, </td> |
| 634 | </tr> |
| 635 | <tr> |
| 636 | <td class="paramkey"></td> |
| 637 | <td></td> |
| 638 | <td class="paramtype">const short </td> |
| 639 | <td class="paramname"><em>mat42</em>, </td> |
| 640 | </tr> |
| 641 | <tr> |
| 642 | <td class="paramkey"></td> |
| 643 | <td></td> |
| 644 | <td class="paramtype">const short </td> |
| 645 | <td class="paramname"><em>mat43</em>, </td> |
| 646 | </tr> |
| 647 | <tr> |
| 648 | <td class="paramkey"></td> |
| 649 | <td></td> |
| 650 | <td class="paramtype">const short </td> |
| 651 | <td class="paramname"><em>mat44</em>, </td> |
| 652 | </tr> |
| 653 | <tr> |
| 654 | <td class="paramkey"></td> |
| 655 | <td></td> |
| 656 | <td class="paramtype">const short </td> |
| 657 | <td class="paramname"><em>mat45</em>, </td> |
| 658 | </tr> |
| 659 | <tr> |
| 660 | <td class="paramkey"></td> |
| 661 | <td></td> |
| 662 | <td class="paramtype">const short </td> |
| 663 | <td class="paramname"><em>mat46</em>, </td> |
| 664 | </tr> |
| 665 | <tr> |
| 666 | <td class="paramkey"></td> |
| 667 | <td></td> |
| 668 | <td class="paramtype">const short </td> |
| 669 | <td class="paramname"><em>mat47</em>, </td> |
| 670 | </tr> |
| 671 | <tr> |
| 672 | <td class="paramkey"></td> |
| 673 | <td></td> |
| 674 | <td class="paramtype">const short </td> |
| 675 | <td class="paramname"><em>mat48</em>, </td> |
| 676 | </tr> |
| 677 | <tr> |
| 678 | <td class="paramkey"></td> |
| 679 | <td></td> |
| 680 | <td class="paramtype">uint </td> |
| 681 | <td class="paramname"><em>scale</em> </td> |
| 682 | </tr> |
| 683 | <tr> |
| 684 | <td></td> |
| 685 | <td>)</td> |
| 686 | <td></td><td></td> |
| 687 | </tr> |
| 688 | </table> |
| 689 | </div><div class="memdoc"> |
| 690 | |
| 691 | <p>Apply a 7x7 convolution matrix to a single channel U8 input image and return the result. </p> |
Anthony Barbier | 8140e1e | 2017-12-14 23:48:46 +0000 | [diff] [blame] | 692 | <p>Convolution matrix layout:<br /> |
| 693 | [ mat0, mat1, mat2, mat3 , mat4, mat5, mat6 ]<br /> |
| 694 | [ mat7, mat8, mat9, mat10, mat11, mat12, mat13 ]<br /> |
| 695 | [ mat14, mat15, mat16, mat17, mat18, mat19, mat20 ]<br /> |
| 696 | [ mat21, mat22, mat23, mat24, mat25, mat26, mat27 ]<br /> |
| 697 | [ mat28, mat29, mat30, mat31, mat32, mat33, mat34 ]<br /> |
| 698 | [ mat35, mat36, mat37, mat38, mat39, mat40, mat41 ]<br /> |
Anthony Barbier | 871448e | 2017-03-24 14:54:29 +0000 | [diff] [blame] | 699 | [ mat42, mat43, mat44, mat45, mat46, mat47, mat48 ]</p> |
| 700 | <dl class="params"><dt>Parameters</dt><dd> |
| 701 | <table class="params"> |
Jenkins | 514be65 | 2019-02-28 12:25:18 +0000 | [diff] [blame] | 702 | <tr><td class="paramdir">[in]</td><td class="paramname">src</td><td>A pointer to source <a class="el" href="struct_image.xhtml" title="Structure to hold Image information.">Image</a> structure. </td></tr> |
Anthony Barbier | 871448e | 2017-03-24 14:54:29 +0000 | [diff] [blame] | 703 | <tr><td class="paramdir">[in]</td><td class="paramname">mat0</td><td>Coefficient from the convolution matrix </td></tr> |
| 704 | <tr><td class="paramdir">[in]</td><td class="paramname">mat1</td><td>Coefficient from the convolution matrix </td></tr> |
| 705 | <tr><td class="paramdir">[in]</td><td class="paramname">mat2</td><td>Coefficient from the convolution matrix </td></tr> |
| 706 | <tr><td class="paramdir">[in]</td><td class="paramname">mat3</td><td>Coefficient from the convolution matrix </td></tr> |
| 707 | <tr><td class="paramdir">[in]</td><td class="paramname">mat4</td><td>Coefficient from the convolution matrix </td></tr> |
| 708 | <tr><td class="paramdir">[in]</td><td class="paramname">mat5</td><td>Coefficient from the convolution matrix </td></tr> |
| 709 | <tr><td class="paramdir">[in]</td><td class="paramname">mat6</td><td>Coefficient from the convolution matrix </td></tr> |
Anthony Barbier | 871448e | 2017-03-24 14:54:29 +0000 | [diff] [blame] | 710 | <tr><td class="paramdir">[in]</td><td class="paramname">mat7</td><td>Coefficient from the convolution matrix </td></tr> |
| 711 | <tr><td class="paramdir">[in]</td><td class="paramname">mat8</td><td>Coefficient from the convolution matrix </td></tr> |
| 712 | <tr><td class="paramdir">[in]</td><td class="paramname">mat9</td><td>Coefficient from the convolution matrix </td></tr> |
| 713 | <tr><td class="paramdir">[in]</td><td class="paramname">mat10</td><td>Coefficient from the convolution matrix </td></tr> |
| 714 | <tr><td class="paramdir">[in]</td><td class="paramname">mat11</td><td>Coefficient from the convolution matrix </td></tr> |
| 715 | <tr><td class="paramdir">[in]</td><td class="paramname">mat12</td><td>Coefficient from the convolution matrix </td></tr> |
| 716 | <tr><td class="paramdir">[in]</td><td class="paramname">mat13</td><td>Coefficient from the convolution matrix </td></tr> |
| 717 | <tr><td class="paramdir">[in]</td><td class="paramname">mat14</td><td>Coefficient from the convolution matrix </td></tr> |
| 718 | <tr><td class="paramdir">[in]</td><td class="paramname">mat15</td><td>Coefficient from the convolution matrix </td></tr> |
| 719 | <tr><td class="paramdir">[in]</td><td class="paramname">mat16</td><td>Coefficient from the convolution matrix </td></tr> |
Anthony Barbier | 871448e | 2017-03-24 14:54:29 +0000 | [diff] [blame] | 720 | <tr><td class="paramdir">[in]</td><td class="paramname">mat17</td><td>Coefficient from the convolution matrix </td></tr> |
| 721 | <tr><td class="paramdir">[in]</td><td class="paramname">mat18</td><td>Coefficient from the convolution matrix </td></tr> |
| 722 | <tr><td class="paramdir">[in]</td><td class="paramname">mat19</td><td>Coefficient from the convolution matrix </td></tr> |
| 723 | <tr><td class="paramdir">[in]</td><td class="paramname">mat20</td><td>Coefficient from the convolution matrix </td></tr> |
| 724 | <tr><td class="paramdir">[in]</td><td class="paramname">mat21</td><td>Coefficient from the convolution matrix </td></tr> |
| 725 | <tr><td class="paramdir">[in]</td><td class="paramname">mat22</td><td>Coefficient from the convolution matrix </td></tr> |
| 726 | <tr><td class="paramdir">[in]</td><td class="paramname">mat23</td><td>Coefficient from the convolution matrix </td></tr> |
| 727 | <tr><td class="paramdir">[in]</td><td class="paramname">mat24</td><td>Coefficient from the convolution matrix </td></tr> |
| 728 | <tr><td class="paramdir">[in]</td><td class="paramname">mat25</td><td>Coefficient from the convolution matrix </td></tr> |
| 729 | <tr><td class="paramdir">[in]</td><td class="paramname">mat26</td><td>Coefficient from the convolution matrix </td></tr> |
| 730 | <tr><td class="paramdir">[in]</td><td class="paramname">mat27</td><td>Coefficient from the convolution matrix </td></tr> |
| 731 | <tr><td class="paramdir">[in]</td><td class="paramname">mat28</td><td>Coefficient from the convolution matrix </td></tr> |
| 732 | <tr><td class="paramdir">[in]</td><td class="paramname">mat29</td><td>Coefficient from the convolution matrix </td></tr> |
| 733 | <tr><td class="paramdir">[in]</td><td class="paramname">mat30</td><td>Coefficient from the convolution matrix </td></tr> |
| 734 | <tr><td class="paramdir">[in]</td><td class="paramname">mat31</td><td>Coefficient from the convolution matrix </td></tr> |
| 735 | <tr><td class="paramdir">[in]</td><td class="paramname">mat32</td><td>Coefficient from the convolution matrix </td></tr> |
| 736 | <tr><td class="paramdir">[in]</td><td class="paramname">mat33</td><td>Coefficient from the convolution matrix </td></tr> |
| 737 | <tr><td class="paramdir">[in]</td><td class="paramname">mat34</td><td>Coefficient from the convolution matrix </td></tr> |
| 738 | <tr><td class="paramdir">[in]</td><td class="paramname">mat35</td><td>Coefficient from the convolution matrix </td></tr> |
| 739 | <tr><td class="paramdir">[in]</td><td class="paramname">mat36</td><td>Coefficient from the convolution matrix </td></tr> |
| 740 | <tr><td class="paramdir">[in]</td><td class="paramname">mat37</td><td>Coefficient from the convolution matrix </td></tr> |
| 741 | <tr><td class="paramdir">[in]</td><td class="paramname">mat38</td><td>Coefficient from the convolution matrix </td></tr> |
| 742 | <tr><td class="paramdir">[in]</td><td class="paramname">mat39</td><td>Coefficient from the convolution matrix </td></tr> |
| 743 | <tr><td class="paramdir">[in]</td><td class="paramname">mat40</td><td>Coefficient from the convolution matrix </td></tr> |
| 744 | <tr><td class="paramdir">[in]</td><td class="paramname">mat41</td><td>Coefficient from the convolution matrix </td></tr> |
| 745 | <tr><td class="paramdir">[in]</td><td class="paramname">mat42</td><td>Coefficient from the convolution matrix </td></tr> |
| 746 | <tr><td class="paramdir">[in]</td><td class="paramname">mat43</td><td>Coefficient from the convolution matrix </td></tr> |
| 747 | <tr><td class="paramdir">[in]</td><td class="paramname">mat44</td><td>Coefficient from the convolution matrix </td></tr> |
| 748 | <tr><td class="paramdir">[in]</td><td class="paramname">mat45</td><td>Coefficient from the convolution matrix </td></tr> |
| 749 | <tr><td class="paramdir">[in]</td><td class="paramname">mat46</td><td>Coefficient from the convolution matrix </td></tr> |
| 750 | <tr><td class="paramdir">[in]</td><td class="paramname">mat47</td><td>Coefficient from the convolution matrix </td></tr> |
| 751 | <tr><td class="paramdir">[in]</td><td class="paramname">mat48</td><td>Coefficient from the convolution matrix </td></tr> |
| 752 | <tr><td class="paramdir">[in]</td><td class="paramname">scale</td><td>Convolution matrix scale (Sum of the coefficients, or 1 if the sum is 0) </td></tr> |
| 753 | </table> |
| 754 | </dd> |
| 755 | </dl> |
| 756 | |
Jenkins | 514be65 | 2019-02-28 12:25:18 +0000 | [diff] [blame] | 757 | <p class="definition">Definition at line <a class="el" href="convolution7x7_8cl_source.xhtml#l00200">200</a> of file <a class="el" href="convolution7x7_8cl_source.xhtml">convolution7x7.cl</a>.</p> |
Jenkins | 0e205f7 | 2019-11-28 16:53:35 +0000 | [diff] [blame] | 758 | <div class="fragment"><div class="line"><a name="l00212"></a><span class="lineno"> 212</span> {</div><div class="line"><a name="l00213"></a><span class="lineno"> 213</span>  <a class="code" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h.xhtml#a36f754c05b6fddf6df0d8d0a74f8159f">VEC_DATA_TYPE</a>(<a class="code" href="convolution7x7_8cl.xhtml#afb8c72ce35c4a1f4a2588d6573e54aa1">DATA_TYPE</a>, 8)</div><div class="line"><a name="l00214"></a><span class="lineno"> 214</span>  pixels;</div><div class="line"><a name="l00215"></a><span class="lineno"> 215</span> </div><div class="line"><a name="l00216"></a><span class="lineno"> 216</span>  pixels = <a class="code" href="convolution7x7_8cl.xhtml#a7cedca46bfb1e16a870477a88ce93b9c">convolution1x7</a>(<a class="code" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h.xhtml#a009469e4d9b8fce3b6d5e97d2077827d">offset</a>(<a class="code" href="namespacearm__compute_1_1test_1_1validation.xhtml#a989ab3e96426615bb98e04e0235088ca">src</a>, -3, -3), mat0, mat1, mat2, mat3, mat4, mat5, mat6);</div><div class="line"><a name="l00217"></a><span class="lineno"> 217</span>  pixels += <a class="code" href="convolution7x7_8cl.xhtml#a7cedca46bfb1e16a870477a88ce93b9c">convolution1x7</a>(<a class="code" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h.xhtml#a009469e4d9b8fce3b6d5e97d2077827d">offset</a>(<a class="code" href="namespacearm__compute_1_1test_1_1validation.xhtml#a989ab3e96426615bb98e04e0235088ca">src</a>, -3, -2), mat7, mat8, mat9, mat10, mat11, mat12, mat13);</div><div class="line"><a name="l00218"></a><span class="lineno"> 218</span>  pixels += <a class="code" href="convolution7x7_8cl.xhtml#a7cedca46bfb1e16a870477a88ce93b9c">convolution1x7</a>(<a class="code" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h.xhtml#a009469e4d9b8fce3b6d5e97d2077827d">offset</a>(<a class="code" href="namespacearm__compute_1_1test_1_1validation.xhtml#a989ab3e96426615bb98e04e0235088ca">src</a>, -3, -1), mat14, mat15, mat16, mat17, mat18, mat19, mat20);</div><div class="line"><a name="l00219"></a><span class="lineno"> 219</span>  pixels += <a class="code" href="convolution7x7_8cl.xhtml#a7cedca46bfb1e16a870477a88ce93b9c">convolution1x7</a>(<a class="code" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h.xhtml#a009469e4d9b8fce3b6d5e97d2077827d">offset</a>(<a class="code" href="namespacearm__compute_1_1test_1_1validation.xhtml#a989ab3e96426615bb98e04e0235088ca">src</a>, -3, 0), mat21, mat22, mat23, mat24, mat25, mat26, mat27);</div><div class="line"><a name="l00220"></a><span class="lineno"> 220</span>  pixels += <a class="code" href="convolution7x7_8cl.xhtml#a7cedca46bfb1e16a870477a88ce93b9c">convolution1x7</a>(<a class="code" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h.xhtml#a009469e4d9b8fce3b6d5e97d2077827d">offset</a>(<a class="code" href="namespacearm__compute_1_1test_1_1validation.xhtml#a989ab3e96426615bb98e04e0235088ca">src</a>, -3, 1), mat28, mat29, mat30, mat31, mat32, mat33, mat34);</div><div class="line"><a name="l00221"></a><span class="lineno"> 221</span>  pixels += <a class="code" href="convolution7x7_8cl.xhtml#a7cedca46bfb1e16a870477a88ce93b9c">convolution1x7</a>(<a class="code" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h.xhtml#a009469e4d9b8fce3b6d5e97d2077827d">offset</a>(<a class="code" href="namespacearm__compute_1_1test_1_1validation.xhtml#a989ab3e96426615bb98e04e0235088ca">src</a>, -3, 2), mat35, mat36, mat37, mat38, mat39, mat40, mat41);</div><div class="line"><a name="l00222"></a><span class="lineno"> 222</span>  pixels += <a class="code" href="convolution7x7_8cl.xhtml#a7cedca46bfb1e16a870477a88ce93b9c">convolution1x7</a>(<a class="code" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h.xhtml#a009469e4d9b8fce3b6d5e97d2077827d">offset</a>(<a class="code" href="namespacearm__compute_1_1test_1_1validation.xhtml#a989ab3e96426615bb98e04e0235088ca">src</a>, -3, 3), mat42, mat43, mat44, mat45, mat46, mat47, mat48);</div><div class="line"><a name="l00223"></a><span class="lineno"> 223</span> </div><div class="line"><a name="l00224"></a><span class="lineno"> 224</span>  <a class="code" href="namespacearm__compute_1_1test_1_1validation.xhtml#a439f0d3ec27d4db453534d05f9f0bd18">if</a>(<a class="code" href="namespacearm__compute_1_1test_1_1validation.xhtml#acec6d8ad52a28972fa74e071c1a63b6a">scale</a> > 0)</div><div class="line"><a name="l00225"></a><span class="lineno"> 225</span>  {</div><div class="line"><a name="l00226"></a><span class="lineno"> 226</span>  pixels /= (<a class="code" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h.xhtml#a36f754c05b6fddf6df0d8d0a74f8159f">VEC_DATA_TYPE</a>(<a class="code" href="convolution7x7_8cl.xhtml#afb8c72ce35c4a1f4a2588d6573e54aa1">DATA_TYPE</a>, 8))<a class="code" href="namespacearm__compute_1_1test_1_1validation.xhtml#acec6d8ad52a28972fa74e071c1a63b6a">scale</a>;</div><div class="line"><a name="l00227"></a><span class="lineno"> 227</span>  }</div><div class="line"><a name="l00228"></a><span class="lineno"> 228</span> </div><div class="line"><a name="l00229"></a><span class="lineno"> 229</span>  <span class="keywordflow">return</span> convert_short8_sat(pixels);</div><div class="line"><a name="l00230"></a><span class="lineno"> 230</span> }</div><div class="ttc" id="src_2core_2_c_l_2cl__kernels_2_helpers_8h_xhtml_a009469e4d9b8fce3b6d5e97d2077827d"><div class="ttname"><a href="src_2core_2_c_l_2cl__kernels_2_helpers_8h.xhtml#a009469e4d9b8fce3b6d5e97d2077827d">offset</a></div><div class="ttdeci">__global uchar * offset(const Image *img, int x, int y)</div><div class="ttdoc">Get the pointer position of a Image.</div><div class="ttdef"><b>Definition:</b> <a href="src_2core_2_c_l_2cl__kernels_2_helpers_8h_source.xhtml#l00510">helpers.h:510</a></div></div> |
Jenkins | 975dfe1 | 2019-09-02 11:47:54 +0100 | [diff] [blame] | 759 | <div class="ttc" id="namespacearm__compute_1_1test_1_1validation_xhtml_acec6d8ad52a28972fa74e071c1a63b6a"><div class="ttname"><a href="namespacearm__compute_1_1test_1_1validation.xhtml#acec6d8ad52a28972fa74e071c1a63b6a">arm_compute::test::validation::scale</a></div><div class="ttdeci">scale</div><div class="ttdef"><b>Definition:</b> <a href="_n_e_o_n_2_pixel_wise_multiplication_8cpp_source.xhtml#l00317">PixelWiseMultiplication.cpp:317</a></div></div> |
Jenkins | 514be65 | 2019-02-28 12:25:18 +0000 | [diff] [blame] | 760 | <div class="ttc" id="namespacearm__compute_1_1test_1_1validation_xhtml_a439f0d3ec27d4db453534d05f9f0bd18"><div class="ttname"><a href="namespacearm__compute_1_1test_1_1validation.xhtml#a439f0d3ec27d4db453534d05f9f0bd18">arm_compute::test::validation::if</a></div><div class="ttdeci">if(same_rank)</div><div class="ttdef"><b>Definition:</b> <a href="_c_l_2_select_8cpp_source.xhtml#l00174">Select.cpp:174</a></div></div> |
Anthony Barbier | 871448e | 2017-03-24 14:54:29 +0000 | [diff] [blame] | 761 | <div class="ttc" id="convolution7x7_8cl_xhtml_afb8c72ce35c4a1f4a2588d6573e54aa1"><div class="ttname"><a href="convolution7x7_8cl.xhtml#afb8c72ce35c4a1f4a2588d6573e54aa1">DATA_TYPE</a></div><div class="ttdeci">#define DATA_TYPE</div><div class="ttdef"><b>Definition:</b> <a href="convolution7x7_8cl_source.xhtml#l00027">convolution7x7.cl:27</a></div></div> |
| 762 | <div class="ttc" id="convolution7x7_8cl_xhtml_a7cedca46bfb1e16a870477a88ce93b9c"><div class="ttname"><a href="convolution7x7_8cl.xhtml#a7cedca46bfb1e16a870477a88ce93b9c">convolution1x7</a></div><div class="ttdeci">short8 convolution1x7(__global const uchar *left_pixel, const short left1_coeff, const short left2_coeff, const short left3_coeff, const short middle_coeff, const short right1_coeff, const short right2_coeff, const short right3_coeff)</div><div class="ttdoc">Compute a 1D horizontal convolution of size 7 for 8 bytes assuming the input is made of 1 channel of ...</div><div class="ttdef"><b>Definition:</b> <a href="convolution7x7_8cl_source.xhtml#l00052">convolution7x7.cl:52</a></div></div> |
Jenkins | 975dfe1 | 2019-09-02 11:47:54 +0100 | [diff] [blame] | 763 | <div class="ttc" id="namespacearm__compute_1_1test_1_1validation_xhtml_a989ab3e96426615bb98e04e0235088ca"><div class="ttname"><a href="namespacearm__compute_1_1test_1_1validation.xhtml#a989ab3e96426615bb98e04e0235088ca">arm_compute::test::validation::src</a></div><div class="ttdeci">cast configure & src</div><div class="ttdef"><b>Definition:</b> <a href="_c_l_2_cast_8cpp_source.xhtml#l00169">Cast.cpp:169</a></div></div> |
Jenkins | 0e205f7 | 2019-11-28 16:53:35 +0000 | [diff] [blame] | 764 | <div class="ttc" id="src_2core_2_c_l_2cl__kernels_2_helpers_8h_xhtml_a36f754c05b6fddf6df0d8d0a74f8159f"><div class="ttname"><a href="src_2core_2_c_l_2cl__kernels_2_helpers_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="src_2core_2_c_l_2cl__kernels_2_helpers_8h_source.xhtml#l00255">helpers.h:255</a></div></div> |
Anthony Barbier | 871448e | 2017-03-24 14:54:29 +0000 | [diff] [blame] | 765 | </div><!-- fragment --> |
Jenkins | 0e205f7 | 2019-11-28 16:53:35 +0000 | [diff] [blame] | 766 | <p class="reference">References <a class="el" href="convolution7x7_8cl_source.xhtml#l00052">convolution1x7()</a>, <a class="el" href="convolution7x7_8cl_source.xhtml#l00027">DATA_TYPE</a>, <a class="el" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h_source.xhtml#l00510">offset()</a>, <a class="el" href="_n_e_o_n_2_pixel_wise_multiplication_8cpp_source.xhtml#l00317">arm_compute::test::validation::scale</a>, <a class="el" href="_c_l_2_cast_8cpp_source.xhtml#l00169">arm_compute::test::validation::src</a>, and <a class="el" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h_source.xhtml#l00255">VEC_DATA_TYPE</a>.</p> |
Jenkins | 514be65 | 2019-02-28 12:25:18 +0000 | [diff] [blame] | 767 | |
| 768 | <p class="reference">Referenced by <a class="el" href="convolution7x7_8cl_source.xhtml#l00321">convolution7x7_static()</a>.</p> |
| 769 | |
Anthony Barbier | 871448e | 2017-03-24 14:54:29 +0000 | [diff] [blame] | 770 | </div> |
| 771 | </div> |
Jenkins | b9abeae | 2018-11-22 11:58:08 +0000 | [diff] [blame] | 772 | <a id="aac65ae3322d90d7b270614f331ef600e"></a> |
| 773 | <h2 class="memtitle"><span class="permalink"><a href="#aac65ae3322d90d7b270614f331ef600e">◆ </a></span>convolution7x7_static()</h2> |
| 774 | |
Anthony Barbier | 871448e | 2017-03-24 14:54:29 +0000 | [diff] [blame] | 775 | <div class="memitem"> |
| 776 | <div class="memproto"> |
| 777 | <table class="memname"> |
| 778 | <tr> |
| 779 | <td class="memname">__kernel void convolution7x7_static </td> |
| 780 | <td>(</td> |
| 781 | <td class="paramtype">__global uchar * </td> |
| 782 | <td class="paramname"><em>src_ptr</em>, </td> |
| 783 | </tr> |
| 784 | <tr> |
| 785 | <td class="paramkey"></td> |
| 786 | <td></td> |
| 787 | <td class="paramtype">uint </td> |
| 788 | <td class="paramname"><em>src_stride_x</em>, </td> |
| 789 | </tr> |
| 790 | <tr> |
| 791 | <td class="paramkey"></td> |
| 792 | <td></td> |
| 793 | <td class="paramtype">uint </td> |
| 794 | <td class="paramname"><em>src_step_x</em>, </td> |
| 795 | </tr> |
| 796 | <tr> |
| 797 | <td class="paramkey"></td> |
| 798 | <td></td> |
| 799 | <td class="paramtype">uint </td> |
| 800 | <td class="paramname"><em>src_stride_y</em>, </td> |
| 801 | </tr> |
| 802 | <tr> |
| 803 | <td class="paramkey"></td> |
| 804 | <td></td> |
| 805 | <td class="paramtype">uint </td> |
| 806 | <td class="paramname"><em>src_step_y</em>, </td> |
| 807 | </tr> |
| 808 | <tr> |
| 809 | <td class="paramkey"></td> |
| 810 | <td></td> |
| 811 | <td class="paramtype">uint </td> |
| 812 | <td class="paramname"><em>src_offset_first_element_in_bytes</em>, </td> |
| 813 | </tr> |
| 814 | <tr> |
| 815 | <td class="paramkey"></td> |
| 816 | <td></td> |
| 817 | <td class="paramtype">__global uchar * </td> |
| 818 | <td class="paramname"><em>dst_ptr</em>, </td> |
| 819 | </tr> |
| 820 | <tr> |
| 821 | <td class="paramkey"></td> |
| 822 | <td></td> |
| 823 | <td class="paramtype">uint </td> |
| 824 | <td class="paramname"><em>dst_stride_x</em>, </td> |
| 825 | </tr> |
| 826 | <tr> |
| 827 | <td class="paramkey"></td> |
| 828 | <td></td> |
| 829 | <td class="paramtype">uint </td> |
| 830 | <td class="paramname"><em>dst_step_x</em>, </td> |
| 831 | </tr> |
| 832 | <tr> |
| 833 | <td class="paramkey"></td> |
| 834 | <td></td> |
| 835 | <td class="paramtype">uint </td> |
| 836 | <td class="paramname"><em>dst_stride_y</em>, </td> |
| 837 | </tr> |
| 838 | <tr> |
| 839 | <td class="paramkey"></td> |
| 840 | <td></td> |
| 841 | <td class="paramtype">uint </td> |
| 842 | <td class="paramname"><em>dst_step_y</em>, </td> |
| 843 | </tr> |
| 844 | <tr> |
| 845 | <td class="paramkey"></td> |
| 846 | <td></td> |
| 847 | <td class="paramtype">uint </td> |
| 848 | <td class="paramname"><em>dst_offset_first_element_in_bytes</em> </td> |
| 849 | </tr> |
| 850 | <tr> |
| 851 | <td></td> |
| 852 | <td>)</td> |
| 853 | <td></td><td></td> |
| 854 | </tr> |
| 855 | </table> |
| 856 | </div><div class="memdoc"> |
| 857 | |
| 858 | <p>Apply a static 7x7 convolution matrix to a single channel U8 input image and output a single channel U8 image including the borders. </p> |
Anthony Barbier | 8140e1e | 2017-12-14 23:48:46 +0000 | [diff] [blame] | 859 | <dl class="section attention"><dt>Attention</dt><dd>The matrix coefficients(MAT0, MAT1, ... MAT48, SCALE), DATA_TYPE_OUT need to be passed at compile time:<br /> |
Anthony Barbier | 871448e | 2017-03-24 14:54:29 +0000 | [diff] [blame] | 860 | e.g. -DMAT0=7 -DMAT1=8, ... -DMAT48=48, -DSCALE=6, -DDATA_TYPE_OUT=int</dd></dl> |
| 861 | <dl class="params"><dt>Parameters</dt><dd> |
| 862 | <table class="params"> |
| 863 | <tr><td class="paramdir">[in]</td><td class="paramname">src_ptr</td><td>Pointer to the source image. Supported data types: U8 </td></tr> |
| 864 | <tr><td class="paramdir">[in]</td><td class="paramname">src_stride_x</td><td>Stride of the source image in X dimension (in bytes) </td></tr> |
| 865 | <tr><td class="paramdir">[in]</td><td class="paramname">src_step_x</td><td>src_stride_x * number of elements along X processed per workitem(in bytes) </td></tr> |
| 866 | <tr><td class="paramdir">[in]</td><td class="paramname">src_stride_y</td><td>Stride of the source image in Y dimension (in bytes) </td></tr> |
| 867 | <tr><td class="paramdir">[in]</td><td class="paramname">src_step_y</td><td>src_stride_y * number of elements along Y processed per workitem(in bytes) </td></tr> |
| 868 | <tr><td class="paramdir">[in]</td><td class="paramname">src_offset_first_element_in_bytes</td><td>The offset of the first element in the source image </td></tr> |
| 869 | <tr><td class="paramdir">[out]</td><td class="paramname">dst_ptr</td><td>Pointer to the destination image. Supported data types: U8, S16 </td></tr> |
| 870 | <tr><td class="paramdir">[in]</td><td class="paramname">dst_stride_x</td><td>Stride of the destination image in X dimension (in bytes) </td></tr> |
| 871 | <tr><td class="paramdir">[in]</td><td class="paramname">dst_step_x</td><td>dst_stride_x * number of elements along X processed per workitem(in bytes) </td></tr> |
| 872 | <tr><td class="paramdir">[in]</td><td class="paramname">dst_stride_y</td><td>Stride of the destination image in Y dimension (in bytes) </td></tr> |
| 873 | <tr><td class="paramdir">[in]</td><td class="paramname">dst_step_y</td><td>dst_stride_y * number of elements along Y processed per workitem(in bytes) </td></tr> |
| 874 | <tr><td class="paramdir">[in]</td><td class="paramname">dst_offset_first_element_in_bytes</td><td>The offset of the first element in the destination image </td></tr> |
| 875 | </table> |
| 876 | </dd> |
| 877 | </dl> |
| 878 | |
Jenkins | 514be65 | 2019-02-28 12:25:18 +0000 | [diff] [blame] | 879 | <p class="definition">Definition at line <a class="el" href="convolution7x7_8cl_source.xhtml#l00321">321</a> of file <a class="el" href="convolution7x7_8cl_source.xhtml">convolution7x7.cl</a>.</p> |
Jenkins | 0e205f7 | 2019-11-28 16:53:35 +0000 | [diff] [blame] | 880 | <div class="fragment"><div class="line"><a name="l00324"></a><span class="lineno"> 324</span> {</div><div class="line"><a name="l00325"></a><span class="lineno"> 325</span>  <a class="code" href="struct_image.xhtml">Image</a> <a class="code" href="namespacearm__compute_1_1test_1_1validation.xhtml#a989ab3e96426615bb98e04e0235088ca">src</a> = <a class="code" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h.xhtml#aebe814363556c244be043b13e7969197">CONVERT_TO_IMAGE_STRUCT</a>(<a class="code" href="namespacearm__compute_1_1test_1_1validation.xhtml#a989ab3e96426615bb98e04e0235088ca">src</a>);</div><div class="line"><a name="l00326"></a><span class="lineno"> 326</span>  <a class="code" href="struct_image.xhtml">Image</a> <a class="code" href="namespacearm__compute_1_1test_1_1validation.xhtml#adbf67dcee294e673cf796f1ed8aeb6a4">dst</a> = <a class="code" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h.xhtml#aebe814363556c244be043b13e7969197">CONVERT_TO_IMAGE_STRUCT</a>(<a class="code" href="namespacearm__compute_1_1test_1_1validation.xhtml#adbf67dcee294e673cf796f1ed8aeb6a4">dst</a>);</div><div class="line"><a name="l00327"></a><span class="lineno"> 327</span> </div><div class="line"><a name="l00328"></a><span class="lineno"> 328</span>  short8 pixels = <a class="code" href="convolution7x7_8cl.xhtml#abda5491f14bab2d88026e3174a2151c2">convolution7x7</a>(&<a class="code" href="namespacearm__compute_1_1test_1_1validation.xhtml#a989ab3e96426615bb98e04e0235088ca">src</a>,</div><div class="line"><a name="l00329"></a><span class="lineno"> 329</span>  MAT0, MAT1, MAT2, MAT3, MAT4, MAT5, MAT6, MAT7, MAT8, MAT9, MAT10, MAT11, MAT12, MAT13,</div><div class="line"><a name="l00330"></a><span class="lineno"> 330</span>  MAT14, MAT15, MAT16, MAT17, MAT18, MAT19, MAT20, MAT21, MAT22, MAT23, MAT24, MAT25,</div><div class="line"><a name="l00331"></a><span class="lineno"> 331</span>  MAT26, MAT27, MAT28, MAT29, MAT30, MAT31, MAT32, MAT33, MAT34, MAT35, MAT36, MAT37,</div><div class="line"><a name="l00332"></a><span class="lineno"> 332</span>  MAT38, MAT39, MAT40, MAT41, MAT42, MAT43, MAT44, MAT45, MAT46, MAT47, MAT48, SCALE);</div><div class="line"><a name="l00333"></a><span class="lineno"> 333</span> </div><div class="line"><a name="l00334"></a><span class="lineno"> 334</span>  <span class="comment">// Clamp results to [ 0, 255 ] and store them in dst</span></div><div class="line"><a name="l00335"></a><span class="lineno"> 335</span>  vstore8(<a class="code" href="direct__convolution1x1_8cl.xhtml#a1f15728672380ade7a238f5e783d54d2">CONVERT_SAT</a>(pixels, <a class="code" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h.xhtml#a36f754c05b6fddf6df0d8d0a74f8159f">VEC_DATA_TYPE</a>(<a class="code" href="convolution7x7_8cl.xhtml#ac06f3e24d3fffd3c465d8b2a6e7c985e">DATA_TYPE_OUT</a>, 8)), 0, (__global <a class="code" href="convolution7x7_8cl.xhtml#ac06f3e24d3fffd3c465d8b2a6e7c985e">DATA_TYPE_OUT</a> *)<a class="code" href="namespacearm__compute_1_1test_1_1validation.xhtml#adbf67dcee294e673cf796f1ed8aeb6a4">dst</a>.ptr);</div><div class="line"><a name="l00336"></a><span class="lineno"> 336</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#l00311">helpers.h:311</a></div></div> |
Jenkins | b9abeae | 2018-11-22 11:58:08 +0000 | [diff] [blame] | 881 | <div class="ttc" id="direct__convolution1x1_8cl_xhtml_a1f15728672380ade7a238f5e783d54d2"><div class="ttname"><a href="direct__convolution1x1_8cl.xhtml#a1f15728672380ade7a238f5e783d54d2">CONVERT_SAT</a></div><div class="ttdeci">#define CONVERT_SAT(a, b)</div><div class="ttdef"><b>Definition:</b> <a href="direct__convolution1x1_8cl_source.xhtml#l00030">direct_convolution1x1.cl:30</a></div></div> |
Jenkins | 514be65 | 2019-02-28 12:25:18 +0000 | [diff] [blame] | 882 | <div class="ttc" id="convolution7x7_8cl_xhtml_abda5491f14bab2d88026e3174a2151c2"><div class="ttname"><a href="convolution7x7_8cl.xhtml#abda5491f14bab2d88026e3174a2151c2">convolution7x7</a></div><div class="ttdeci">short8 convolution7x7(Image *src, const short mat0, const short mat1, const short mat2, const short mat3, const short mat4, const short mat5, const short mat6, const short mat7, const short mat8, const short mat9, const short mat10, const short mat11, const short mat12, const short mat13, const short mat14, const short mat15, const short mat16, const short mat17, const short mat18, const short mat19, const short mat20, const short mat21, const short mat22, const short mat23, const short mat24, const short mat25, const short mat26, const short mat27, const short mat28, const short mat29, const short mat30, const short mat31, const short mat32, const short mat33, const short mat34, const short mat35, const short mat36, const short mat37, const short mat38, const short mat39, const short mat40, const short mat41, const short mat42, const short mat43, const short mat44, const short mat45, const short mat46, const short mat47, const short mat48, uint scale)</div><div class="ttdoc">Apply a 7x7 convolution matrix to a single channel U8 input image and return the result.</div><div class="ttdef"><b>Definition:</b> <a href="convolution7x7_8cl_source.xhtml#l00200">convolution7x7.cl:200</a></div></div> |
| 883 | <div class="ttc" id="namespacearm__compute_1_1test_1_1validation_xhtml_adbf67dcee294e673cf796f1ed8aeb6a4"><div class="ttname"><a href="namespacearm__compute_1_1test_1_1validation.xhtml#adbf67dcee294e673cf796f1ed8aeb6a4">arm_compute::test::validation::dst</a></div><div class="ttdeci">CLTensor dst</div><div class="ttdef"><b>Definition:</b> <a href="_c_l_2_absolute_difference_8cpp_source.xhtml#l00102">AbsoluteDifference.cpp:102</a></div></div> |
Jenkins | 0e205f7 | 2019-11-28 16:53:35 +0000 | [diff] [blame] | 884 | <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#l00349">helpers.h:349</a></div></div> |
Anthony Barbier | 871448e | 2017-03-24 14:54:29 +0000 | [diff] [blame] | 885 | <div class="ttc" id="convolution7x7_8cl_xhtml_ac06f3e24d3fffd3c465d8b2a6e7c985e"><div class="ttname"><a href="convolution7x7_8cl.xhtml#ac06f3e24d3fffd3c465d8b2a6e7c985e">DATA_TYPE_OUT</a></div><div class="ttdeci">#define DATA_TYPE_OUT</div><div class="ttdef"><b>Definition:</b> <a href="convolution7x7_8cl_source.xhtml#l00035">convolution7x7.cl:35</a></div></div> |
Jenkins | 975dfe1 | 2019-09-02 11:47:54 +0100 | [diff] [blame] | 886 | <div class="ttc" id="namespacearm__compute_1_1test_1_1validation_xhtml_a989ab3e96426615bb98e04e0235088ca"><div class="ttname"><a href="namespacearm__compute_1_1test_1_1validation.xhtml#a989ab3e96426615bb98e04e0235088ca">arm_compute::test::validation::src</a></div><div class="ttdeci">cast configure & src</div><div class="ttdef"><b>Definition:</b> <a href="_c_l_2_cast_8cpp_source.xhtml#l00169">Cast.cpp:169</a></div></div> |
Jenkins | 0e205f7 | 2019-11-28 16:53:35 +0000 | [diff] [blame] | 887 | <div class="ttc" id="src_2core_2_c_l_2cl__kernels_2_helpers_8h_xhtml_a36f754c05b6fddf6df0d8d0a74f8159f"><div class="ttname"><a href="src_2core_2_c_l_2cl__kernels_2_helpers_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="src_2core_2_c_l_2cl__kernels_2_helpers_8h_source.xhtml#l00255">helpers.h:255</a></div></div> |
Anthony Barbier | 871448e | 2017-03-24 14:54:29 +0000 | [diff] [blame] | 888 | </div><!-- fragment --> |
Jenkins | 0e205f7 | 2019-11-28 16:53:35 +0000 | [diff] [blame] | 889 | <p class="reference">References <a class="el" href="direct__convolution1x1_8cl_source.xhtml#l00030">CONVERT_SAT</a>, <a class="el" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h_source.xhtml#l00311">CONVERT_TO_IMAGE_STRUCT</a>, <a class="el" href="convolution7x7_8cl_source.xhtml#l00200">convolution7x7()</a>, <a class="el" href="convolution7x7_8cl_source.xhtml#l00035">DATA_TYPE_OUT</a>, <a class="el" href="_c_l_2_absolute_difference_8cpp_source.xhtml#l00102">arm_compute::test::validation::dst</a>, <a class="el" href="_c_l_2_cast_8cpp_source.xhtml#l00169">arm_compute::test::validation::src</a>, and <a class="el" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h_source.xhtml#l00255">VEC_DATA_TYPE</a>.</p> |
Jenkins | 514be65 | 2019-02-28 12:25:18 +0000 | [diff] [blame] | 890 | |
Anthony Barbier | 871448e | 2017-03-24 14:54:29 +0000 | [diff] [blame] | 891 | </div> |
| 892 | </div> |
Jenkins | b9abeae | 2018-11-22 11:58:08 +0000 | [diff] [blame] | 893 | <a id="af82c3330f3fbf7caa9229ffd9a4149fb"></a> |
| 894 | <h2 class="memtitle"><span class="permalink"><a href="#af82c3330f3fbf7caa9229ffd9a4149fb">◆ </a></span>convolution_separable1x7_static()</h2> |
| 895 | |
Anthony Barbier | 871448e | 2017-03-24 14:54:29 +0000 | [diff] [blame] | 896 | <div class="memitem"> |
| 897 | <div class="memproto"> |
| 898 | <table class="memname"> |
| 899 | <tr> |
| 900 | <td class="memname">__kernel void convolution_separable1x7_static </td> |
| 901 | <td>(</td> |
| 902 | <td class="paramtype">__global uchar * </td> |
| 903 | <td class="paramname"><em>src_ptr</em>, </td> |
| 904 | </tr> |
| 905 | <tr> |
| 906 | <td class="paramkey"></td> |
| 907 | <td></td> |
| 908 | <td class="paramtype">uint </td> |
| 909 | <td class="paramname"><em>src_stride_x</em>, </td> |
| 910 | </tr> |
| 911 | <tr> |
| 912 | <td class="paramkey"></td> |
| 913 | <td></td> |
| 914 | <td class="paramtype">uint </td> |
| 915 | <td class="paramname"><em>src_step_x</em>, </td> |
| 916 | </tr> |
| 917 | <tr> |
| 918 | <td class="paramkey"></td> |
| 919 | <td></td> |
| 920 | <td class="paramtype">uint </td> |
| 921 | <td class="paramname"><em>src_stride_y</em>, </td> |
| 922 | </tr> |
| 923 | <tr> |
| 924 | <td class="paramkey"></td> |
| 925 | <td></td> |
| 926 | <td class="paramtype">uint </td> |
| 927 | <td class="paramname"><em>src_step_y</em>, </td> |
| 928 | </tr> |
| 929 | <tr> |
| 930 | <td class="paramkey"></td> |
| 931 | <td></td> |
| 932 | <td class="paramtype">uint </td> |
| 933 | <td class="paramname"><em>src_offset_first_element_in_bytes</em>, </td> |
| 934 | </tr> |
| 935 | <tr> |
| 936 | <td class="paramkey"></td> |
| 937 | <td></td> |
| 938 | <td class="paramtype">__global uchar * </td> |
| 939 | <td class="paramname"><em>dst_ptr</em>, </td> |
| 940 | </tr> |
| 941 | <tr> |
| 942 | <td class="paramkey"></td> |
| 943 | <td></td> |
| 944 | <td class="paramtype">uint </td> |
| 945 | <td class="paramname"><em>dst_stride_x</em>, </td> |
| 946 | </tr> |
| 947 | <tr> |
| 948 | <td class="paramkey"></td> |
| 949 | <td></td> |
| 950 | <td class="paramtype">uint </td> |
| 951 | <td class="paramname"><em>dst_step_x</em>, </td> |
| 952 | </tr> |
| 953 | <tr> |
| 954 | <td class="paramkey"></td> |
| 955 | <td></td> |
| 956 | <td class="paramtype">uint </td> |
| 957 | <td class="paramname"><em>dst_stride_y</em>, </td> |
| 958 | </tr> |
| 959 | <tr> |
| 960 | <td class="paramkey"></td> |
| 961 | <td></td> |
| 962 | <td class="paramtype">uint </td> |
| 963 | <td class="paramname"><em>dst_step_y</em>, </td> |
| 964 | </tr> |
| 965 | <tr> |
| 966 | <td class="paramkey"></td> |
| 967 | <td></td> |
| 968 | <td class="paramtype">uint </td> |
| 969 | <td class="paramname"><em>dst_offset_first_element_in_bytes</em> </td> |
| 970 | </tr> |
| 971 | <tr> |
| 972 | <td></td> |
| 973 | <td>)</td> |
| 974 | <td></td><td></td> |
| 975 | </tr> |
| 976 | </table> |
| 977 | </div><div class="memdoc"> |
| 978 | |
| 979 | <p>Apply a 1x7 static convolution matrix to a single channel U8 input image and output a single temporary channel image. </p> |
Anthony Barbier | 8140e1e | 2017-12-14 23:48:46 +0000 | [diff] [blame] | 980 | <dl class="section attention"><dt>Attention</dt><dd>The matrix coefficients (MAT0, MAT1, MAT2, MAT3, MAT4, MAT5, MAT6) and DATA_TYPE need to be passed at compile time:<br /> |
Anthony Barbier | 871448e | 2017-03-24 14:54:29 +0000 | [diff] [blame] | 981 | e.g. -DMAT0=1 -DMAT1=2, ... -DMAT6=6, -DDATA_TYPE=int</dd></dl> |
| 982 | <dl class="params"><dt>Parameters</dt><dd> |
| 983 | <table class="params"> |
| 984 | <tr><td class="paramdir">[in]</td><td class="paramname">src_ptr</td><td>Pointer to the source image. Supported data types: U8 </td></tr> |
| 985 | <tr><td class="paramdir">[in]</td><td class="paramname">src_stride_x</td><td>Stride of the source image in X dimension (in bytes) </td></tr> |
| 986 | <tr><td class="paramdir">[in]</td><td class="paramname">src_step_x</td><td>src_stride_x * number of elements along X processed per workitem(in bytes) </td></tr> |
| 987 | <tr><td class="paramdir">[in]</td><td class="paramname">src_stride_y</td><td>Stride of the source image in Y dimension (in bytes) </td></tr> |
| 988 | <tr><td class="paramdir">[in]</td><td class="paramname">src_step_y</td><td>src_stride_y * number of elements along Y processed per workitem(in bytes) </td></tr> |
| 989 | <tr><td class="paramdir">[in]</td><td class="paramname">src_offset_first_element_in_bytes</td><td>The offset of the first element in the source image </td></tr> |
| 990 | <tr><td class="paramdir">[out]</td><td class="paramname">dst_ptr</td><td>Pointer to the destination image. Supported data types: U16, S16, S32 </td></tr> |
| 991 | <tr><td class="paramdir">[in]</td><td class="paramname">dst_stride_x</td><td>Stride of the destination image in X dimension (in bytes) </td></tr> |
| 992 | <tr><td class="paramdir">[in]</td><td class="paramname">dst_step_x</td><td>dst_stride_x * number of elements along X processed per workitem(in bytes) </td></tr> |
| 993 | <tr><td class="paramdir">[in]</td><td class="paramname">dst_stride_y</td><td>Stride of the destination image in Y dimension (in bytes) </td></tr> |
| 994 | <tr><td class="paramdir">[in]</td><td class="paramname">dst_step_y</td><td>dst_stride_y * number of elements along Y processed per workitem(in bytes) </td></tr> |
| 995 | <tr><td class="paramdir">[in]</td><td class="paramname">dst_offset_first_element_in_bytes</td><td>The offset of the first element in the destination image </td></tr> |
| 996 | </table> |
| 997 | </dd> |
| 998 | </dl> |
| 999 | |
Jenkins | 514be65 | 2019-02-28 12:25:18 +0000 | [diff] [blame] | 1000 | <p class="definition">Definition at line <a class="el" href="convolution7x7_8cl_source.xhtml#l00252">252</a> of file <a class="el" href="convolution7x7_8cl_source.xhtml">convolution7x7.cl</a>.</p> |
Jenkins | 0e205f7 | 2019-11-28 16:53:35 +0000 | [diff] [blame] | 1001 | <div class="fragment"><div class="line"><a name="l00255"></a><span class="lineno"> 255</span> {</div><div class="line"><a name="l00256"></a><span class="lineno"> 256</span>  <a class="code" href="struct_image.xhtml">Image</a> <a class="code" href="namespacearm__compute_1_1test_1_1validation.xhtml#a989ab3e96426615bb98e04e0235088ca">src</a> = <a class="code" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h.xhtml#aebe814363556c244be043b13e7969197">CONVERT_TO_IMAGE_STRUCT</a>(<a class="code" href="namespacearm__compute_1_1test_1_1validation.xhtml#a989ab3e96426615bb98e04e0235088ca">src</a>);</div><div class="line"><a name="l00257"></a><span class="lineno"> 257</span>  <a class="code" href="struct_image.xhtml">Image</a> <a class="code" href="namespacearm__compute_1_1test_1_1validation.xhtml#adbf67dcee294e673cf796f1ed8aeb6a4">dst</a> = <a class="code" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h.xhtml#aebe814363556c244be043b13e7969197">CONVERT_TO_IMAGE_STRUCT</a>(<a class="code" href="namespacearm__compute_1_1test_1_1validation.xhtml#adbf67dcee294e673cf796f1ed8aeb6a4">dst</a>);</div><div class="line"><a name="l00258"></a><span class="lineno"> 258</span> </div><div class="line"><a name="l00259"></a><span class="lineno"> 259</span>  <span class="comment">// Output pixels</span></div><div class="line"><a name="l00260"></a><span class="lineno"> 260</span>  <a class="code" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h.xhtml#a36f754c05b6fddf6df0d8d0a74f8159f">VEC_DATA_TYPE</a>(<a class="code" href="convolution7x7_8cl.xhtml#afb8c72ce35c4a1f4a2588d6573e54aa1">DATA_TYPE</a>, 8)</div><div class="line"><a name="l00261"></a><span class="lineno"> 261</span>  pixels = <a class="code" href="convolution7x7_8cl.xhtml#a7cedca46bfb1e16a870477a88ce93b9c">convolution1x7</a>(<a class="code" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h.xhtml#a009469e4d9b8fce3b6d5e97d2077827d">offset</a>(&<a class="code" href="namespacearm__compute_1_1test_1_1validation.xhtml#a989ab3e96426615bb98e04e0235088ca">src</a>, -3, 0), MAT0, MAT1, MAT2, MAT3, MAT4, MAT5, MAT6);</div><div class="line"><a name="l00262"></a><span class="lineno"> 262</span> </div><div class="line"><a name="l00263"></a><span class="lineno"> 263</span>  <span class="comment">// Store result in dst</span></div><div class="line"><a name="l00264"></a><span class="lineno"> 264</span>  vstore8(pixels, 0, (__global <a class="code" href="convolution7x7_8cl.xhtml#afb8c72ce35c4a1f4a2588d6573e54aa1">DATA_TYPE</a> *)<a class="code" href="namespacearm__compute_1_1test_1_1validation.xhtml#adbf67dcee294e673cf796f1ed8aeb6a4">dst</a>.ptr);</div><div class="line"><a name="l00265"></a><span class="lineno"> 265</span> }</div><div class="ttc" id="src_2core_2_c_l_2cl__kernels_2_helpers_8h_xhtml_a009469e4d9b8fce3b6d5e97d2077827d"><div class="ttname"><a href="src_2core_2_c_l_2cl__kernels_2_helpers_8h.xhtml#a009469e4d9b8fce3b6d5e97d2077827d">offset</a></div><div class="ttdeci">__global uchar * offset(const Image *img, int x, int y)</div><div class="ttdoc">Get the pointer position of a Image.</div><div class="ttdef"><b>Definition:</b> <a href="src_2core_2_c_l_2cl__kernels_2_helpers_8h_source.xhtml#l00510">helpers.h:510</a></div></div> |
| 1002 | <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#l00311">helpers.h:311</a></div></div> |
Jenkins | 514be65 | 2019-02-28 12:25:18 +0000 | [diff] [blame] | 1003 | <div class="ttc" id="namespacearm__compute_1_1test_1_1validation_xhtml_adbf67dcee294e673cf796f1ed8aeb6a4"><div class="ttname"><a href="namespacearm__compute_1_1test_1_1validation.xhtml#adbf67dcee294e673cf796f1ed8aeb6a4">arm_compute::test::validation::dst</a></div><div class="ttdeci">CLTensor dst</div><div class="ttdef"><b>Definition:</b> <a href="_c_l_2_absolute_difference_8cpp_source.xhtml#l00102">AbsoluteDifference.cpp:102</a></div></div> |
Jenkins | 0e205f7 | 2019-11-28 16:53:35 +0000 | [diff] [blame] | 1004 | <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#l00349">helpers.h:349</a></div></div> |
Anthony Barbier | 871448e | 2017-03-24 14:54:29 +0000 | [diff] [blame] | 1005 | <div class="ttc" id="convolution7x7_8cl_xhtml_afb8c72ce35c4a1f4a2588d6573e54aa1"><div class="ttname"><a href="convolution7x7_8cl.xhtml#afb8c72ce35c4a1f4a2588d6573e54aa1">DATA_TYPE</a></div><div class="ttdeci">#define DATA_TYPE</div><div class="ttdef"><b>Definition:</b> <a href="convolution7x7_8cl_source.xhtml#l00027">convolution7x7.cl:27</a></div></div> |
| 1006 | <div class="ttc" id="convolution7x7_8cl_xhtml_a7cedca46bfb1e16a870477a88ce93b9c"><div class="ttname"><a href="convolution7x7_8cl.xhtml#a7cedca46bfb1e16a870477a88ce93b9c">convolution1x7</a></div><div class="ttdeci">short8 convolution1x7(__global const uchar *left_pixel, const short left1_coeff, const short left2_coeff, const short left3_coeff, const short middle_coeff, const short right1_coeff, const short right2_coeff, const short right3_coeff)</div><div class="ttdoc">Compute a 1D horizontal convolution of size 7 for 8 bytes assuming the input is made of 1 channel of ...</div><div class="ttdef"><b>Definition:</b> <a href="convolution7x7_8cl_source.xhtml#l00052">convolution7x7.cl:52</a></div></div> |
Jenkins | 975dfe1 | 2019-09-02 11:47:54 +0100 | [diff] [blame] | 1007 | <div class="ttc" id="namespacearm__compute_1_1test_1_1validation_xhtml_a989ab3e96426615bb98e04e0235088ca"><div class="ttname"><a href="namespacearm__compute_1_1test_1_1validation.xhtml#a989ab3e96426615bb98e04e0235088ca">arm_compute::test::validation::src</a></div><div class="ttdeci">cast configure & src</div><div class="ttdef"><b>Definition:</b> <a href="_c_l_2_cast_8cpp_source.xhtml#l00169">Cast.cpp:169</a></div></div> |
Jenkins | 0e205f7 | 2019-11-28 16:53:35 +0000 | [diff] [blame] | 1008 | <div class="ttc" id="src_2core_2_c_l_2cl__kernels_2_helpers_8h_xhtml_a36f754c05b6fddf6df0d8d0a74f8159f"><div class="ttname"><a href="src_2core_2_c_l_2cl__kernels_2_helpers_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="src_2core_2_c_l_2cl__kernels_2_helpers_8h_source.xhtml#l00255">helpers.h:255</a></div></div> |
Anthony Barbier | 871448e | 2017-03-24 14:54:29 +0000 | [diff] [blame] | 1009 | </div><!-- fragment --> |
Jenkins | 0e205f7 | 2019-11-28 16:53:35 +0000 | [diff] [blame] | 1010 | <p class="reference">References <a class="el" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h_source.xhtml#l00311">CONVERT_TO_IMAGE_STRUCT</a>, <a class="el" href="convolution7x7_8cl_source.xhtml#l00052">convolution1x7()</a>, <a class="el" href="convolution7x7_8cl_source.xhtml#l00027">DATA_TYPE</a>, <a class="el" href="_c_l_2_absolute_difference_8cpp_source.xhtml#l00102">arm_compute::test::validation::dst</a>, <a class="el" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h_source.xhtml#l00510">offset()</a>, <a class="el" href="_c_l_2_cast_8cpp_source.xhtml#l00169">arm_compute::test::validation::src</a>, and <a class="el" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h_source.xhtml#l00255">VEC_DATA_TYPE</a>.</p> |
Jenkins | 514be65 | 2019-02-28 12:25:18 +0000 | [diff] [blame] | 1011 | |
Anthony Barbier | 871448e | 2017-03-24 14:54:29 +0000 | [diff] [blame] | 1012 | </div> |
| 1013 | </div> |
Jenkins | b9abeae | 2018-11-22 11:58:08 +0000 | [diff] [blame] | 1014 | <a id="a27d964d8bf6620c7e9960e895df40ade"></a> |
| 1015 | <h2 class="memtitle"><span class="permalink"><a href="#a27d964d8bf6620c7e9960e895df40ade">◆ </a></span>convolution_separable7x1_static()</h2> |
| 1016 | |
Anthony Barbier | 871448e | 2017-03-24 14:54:29 +0000 | [diff] [blame] | 1017 | <div class="memitem"> |
| 1018 | <div class="memproto"> |
| 1019 | <table class="memname"> |
| 1020 | <tr> |
| 1021 | <td class="memname">__kernel void convolution_separable7x1_static </td> |
| 1022 | <td>(</td> |
| 1023 | <td class="paramtype">__global uchar * </td> |
| 1024 | <td class="paramname"><em>src_ptr</em>, </td> |
| 1025 | </tr> |
| 1026 | <tr> |
| 1027 | <td class="paramkey"></td> |
| 1028 | <td></td> |
| 1029 | <td class="paramtype">uint </td> |
| 1030 | <td class="paramname"><em>src_stride_x</em>, </td> |
| 1031 | </tr> |
| 1032 | <tr> |
| 1033 | <td class="paramkey"></td> |
| 1034 | <td></td> |
| 1035 | <td class="paramtype">uint </td> |
| 1036 | <td class="paramname"><em>src_step_x</em>, </td> |
| 1037 | </tr> |
| 1038 | <tr> |
| 1039 | <td class="paramkey"></td> |
| 1040 | <td></td> |
| 1041 | <td class="paramtype">uint </td> |
| 1042 | <td class="paramname"><em>src_stride_y</em>, </td> |
| 1043 | </tr> |
| 1044 | <tr> |
| 1045 | <td class="paramkey"></td> |
| 1046 | <td></td> |
| 1047 | <td class="paramtype">uint </td> |
| 1048 | <td class="paramname"><em>src_step_y</em>, </td> |
| 1049 | </tr> |
| 1050 | <tr> |
| 1051 | <td class="paramkey"></td> |
| 1052 | <td></td> |
| 1053 | <td class="paramtype">uint </td> |
| 1054 | <td class="paramname"><em>src_offset_first_element_in_bytes</em>, </td> |
| 1055 | </tr> |
| 1056 | <tr> |
| 1057 | <td class="paramkey"></td> |
| 1058 | <td></td> |
| 1059 | <td class="paramtype">__global uchar * </td> |
| 1060 | <td class="paramname"><em>dst_ptr</em>, </td> |
| 1061 | </tr> |
| 1062 | <tr> |
| 1063 | <td class="paramkey"></td> |
| 1064 | <td></td> |
| 1065 | <td class="paramtype">uint </td> |
| 1066 | <td class="paramname"><em>dst_stride_x</em>, </td> |
| 1067 | </tr> |
| 1068 | <tr> |
| 1069 | <td class="paramkey"></td> |
| 1070 | <td></td> |
| 1071 | <td class="paramtype">uint </td> |
| 1072 | <td class="paramname"><em>dst_step_x</em>, </td> |
| 1073 | </tr> |
| 1074 | <tr> |
| 1075 | <td class="paramkey"></td> |
| 1076 | <td></td> |
| 1077 | <td class="paramtype">uint </td> |
| 1078 | <td class="paramname"><em>dst_stride_y</em>, </td> |
| 1079 | </tr> |
| 1080 | <tr> |
| 1081 | <td class="paramkey"></td> |
| 1082 | <td></td> |
| 1083 | <td class="paramtype">uint </td> |
| 1084 | <td class="paramname"><em>dst_step_y</em>, </td> |
| 1085 | </tr> |
| 1086 | <tr> |
| 1087 | <td class="paramkey"></td> |
| 1088 | <td></td> |
| 1089 | <td class="paramtype">uint </td> |
| 1090 | <td class="paramname"><em>dst_offset_first_element_in_bytes</em> </td> |
| 1091 | </tr> |
| 1092 | <tr> |
| 1093 | <td></td> |
| 1094 | <td>)</td> |
| 1095 | <td></td><td></td> |
| 1096 | </tr> |
| 1097 | </table> |
| 1098 | </div><div class="memdoc"> |
| 1099 | |
| 1100 | <p>Apply a 7x1 static convolution matrix to a single channel U8 input image and output a single channel image. </p> |
Anthony Barbier | 8140e1e | 2017-12-14 23:48:46 +0000 | [diff] [blame] | 1101 | <dl class="section attention"><dt>Attention</dt><dd>The matrix coefficients (MAT7, MAT8, MAT9, MAT10, MAT11, MAT12, MAT13, SCALE), COMPUTE_TYPE and DATA_TYPE_OUT need to be passed at compile time:<br /> |
Anthony Barbier | 871448e | 2017-03-24 14:54:29 +0000 | [diff] [blame] | 1102 | e.g. -DMAT0=7 -DMAT1=8, ... -DMAT24=13, -DSCALE=6, -DCOMPUTE_TYPE=int, -DDATA_TYPE_OUT=int</dd></dl> |
| 1103 | <dl class="params"><dt>Parameters</dt><dd> |
| 1104 | <table class="params"> |
| 1105 | <tr><td class="paramdir">[in]</td><td class="paramname">src_ptr</td><td>Pointer to the source image. Supported data types: U16, S16, S32 </td></tr> |
| 1106 | <tr><td class="paramdir">[in]</td><td class="paramname">src_stride_x</td><td>Stride of the source image in X dimension (in bytes) </td></tr> |
| 1107 | <tr><td class="paramdir">[in]</td><td class="paramname">src_step_x</td><td>src_stride_x * number of elements along X processed per workitem(in bytes) </td></tr> |
| 1108 | <tr><td class="paramdir">[in]</td><td class="paramname">src_stride_y</td><td>Stride of the source image in Y dimension (in bytes) </td></tr> |
| 1109 | <tr><td class="paramdir">[in]</td><td class="paramname">src_step_y</td><td>src_stride_y * number of elements along Y processed per workitem(in bytes) </td></tr> |
| 1110 | <tr><td class="paramdir">[in]</td><td class="paramname">src_offset_first_element_in_bytes</td><td>The offset of the first element in the source image </td></tr> |
| 1111 | <tr><td class="paramdir">[out]</td><td class="paramname">dst_ptr</td><td>Pointer to the destination image. Supported data types: U8, S16 </td></tr> |
| 1112 | <tr><td class="paramdir">[in]</td><td class="paramname">dst_stride_x</td><td>Stride of the destination image in X dimension (in bytes) </td></tr> |
| 1113 | <tr><td class="paramdir">[in]</td><td class="paramname">dst_step_x</td><td>dst_stride_x * number of elements along X processed per workitem(in bytes) </td></tr> |
| 1114 | <tr><td class="paramdir">[in]</td><td class="paramname">dst_stride_y</td><td>Stride of the destination image in Y dimension (in bytes) </td></tr> |
| 1115 | <tr><td class="paramdir">[in]</td><td class="paramname">dst_step_y</td><td>dst_stride_y * number of elements along Y processed per workitem(in bytes) </td></tr> |
| 1116 | <tr><td class="paramdir">[in]</td><td class="paramname">dst_offset_first_element_in_bytes</td><td>The offset of the first element in the destination image </td></tr> |
| 1117 | </table> |
| 1118 | </dd> |
| 1119 | </dl> |
| 1120 | |
Jenkins | 514be65 | 2019-02-28 12:25:18 +0000 | [diff] [blame] | 1121 | <p class="definition">Definition at line <a class="el" href="convolution7x7_8cl_source.xhtml#l00285">285</a> of file <a class="el" href="convolution7x7_8cl_source.xhtml">convolution7x7.cl</a>.</p> |
Jenkins | 0e205f7 | 2019-11-28 16:53:35 +0000 | [diff] [blame] | 1122 | <div class="fragment"><div class="line"><a name="l00288"></a><span class="lineno"> 288</span> {</div><div class="line"><a name="l00289"></a><span class="lineno"> 289</span>  <a class="code" href="struct_image.xhtml">Image</a> <a class="code" href="namespacearm__compute_1_1test_1_1validation.xhtml#a989ab3e96426615bb98e04e0235088ca">src</a> = <a class="code" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h.xhtml#aebe814363556c244be043b13e7969197">CONVERT_TO_IMAGE_STRUCT</a>(<a class="code" href="namespacearm__compute_1_1test_1_1validation.xhtml#a989ab3e96426615bb98e04e0235088ca">src</a>);</div><div class="line"><a name="l00290"></a><span class="lineno"> 290</span>  <a class="code" href="struct_image.xhtml">Image</a> <a class="code" href="namespacearm__compute_1_1test_1_1validation.xhtml#adbf67dcee294e673cf796f1ed8aeb6a4">dst</a> = <a class="code" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h.xhtml#aebe814363556c244be043b13e7969197">CONVERT_TO_IMAGE_STRUCT</a>(<a class="code" href="namespacearm__compute_1_1test_1_1validation.xhtml#adbf67dcee294e673cf796f1ed8aeb6a4">dst</a>);</div><div class="line"><a name="l00291"></a><span class="lineno"> 291</span> </div><div class="line"><a name="l00292"></a><span class="lineno"> 292</span>  <span class="comment">// Output pixels</span></div><div class="line"><a name="l00293"></a><span class="lineno"> 293</span>  <a class="code" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h.xhtml#a36f754c05b6fddf6df0d8d0a74f8159f">VEC_DATA_TYPE</a>(<a class="code" href="convolution7x7_8cl.xhtml#a26babb0c719990ecbdf3abc6de920875">COMPUTE_TYPE</a>, 8)</div><div class="line"><a name="l00294"></a><span class="lineno"> 294</span>  pixels = <a class="code" href="convolution7x7_8cl.xhtml#a8946e11bc6019e8dd7d06b00d27a5b1b">convolution7x1</a>(&<a class="code" href="namespacearm__compute_1_1test_1_1validation.xhtml#a989ab3e96426615bb98e04e0235088ca">src</a>, MAT7, MAT8, MAT9, MAT10, MAT11, MAT12, MAT13);</div><div class="line"><a name="l00295"></a><span class="lineno"> 295</span> </div><div class="line"><a name="l00296"></a><span class="lineno"> 296</span>  <span class="comment">// Divide by the scale</span></div><div class="line"><a name="l00297"></a><span class="lineno"> 297</span>  pixels /= (<a class="code" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h.xhtml#a36f754c05b6fddf6df0d8d0a74f8159f">VEC_DATA_TYPE</a>(<a class="code" href="convolution7x7_8cl.xhtml#a26babb0c719990ecbdf3abc6de920875">COMPUTE_TYPE</a>, 8))SCALE;</div><div class="line"><a name="l00298"></a><span class="lineno"> 298</span> </div><div class="line"><a name="l00299"></a><span class="lineno"> 299</span>  <span class="comment">// Store result in dst</span></div><div class="line"><a name="l00300"></a><span class="lineno"> 300</span>  vstore8(<a class="code" href="direct__convolution1x1_8cl.xhtml#a1f15728672380ade7a238f5e783d54d2">CONVERT_SAT</a>(pixels, <a class="code" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h.xhtml#a36f754c05b6fddf6df0d8d0a74f8159f">VEC_DATA_TYPE</a>(<a class="code" href="convolution7x7_8cl.xhtml#ac06f3e24d3fffd3c465d8b2a6e7c985e">DATA_TYPE_OUT</a>, 8)), 0, (__global <a class="code" href="convolution7x7_8cl.xhtml#ac06f3e24d3fffd3c465d8b2a6e7c985e">DATA_TYPE_OUT</a> *)<a class="code" href="namespacearm__compute_1_1test_1_1validation.xhtml#adbf67dcee294e673cf796f1ed8aeb6a4">dst</a>.ptr);</div><div class="line"><a name="l00301"></a><span class="lineno"> 301</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#l00311">helpers.h:311</a></div></div> |
Jenkins | b9abeae | 2018-11-22 11:58:08 +0000 | [diff] [blame] | 1123 | <div class="ttc" id="direct__convolution1x1_8cl_xhtml_a1f15728672380ade7a238f5e783d54d2"><div class="ttname"><a href="direct__convolution1x1_8cl.xhtml#a1f15728672380ade7a238f5e783d54d2">CONVERT_SAT</a></div><div class="ttdeci">#define CONVERT_SAT(a, b)</div><div class="ttdef"><b>Definition:</b> <a href="direct__convolution1x1_8cl_source.xhtml#l00030">direct_convolution1x1.cl:30</a></div></div> |
Kaizen | 8938bd3 | 2017-09-28 14:38:23 +0100 | [diff] [blame] | 1124 | <div class="ttc" id="convolution7x7_8cl_xhtml_a26babb0c719990ecbdf3abc6de920875"><div class="ttname"><a href="convolution7x7_8cl.xhtml#a26babb0c719990ecbdf3abc6de920875">COMPUTE_TYPE</a></div><div class="ttdeci">#define COMPUTE_TYPE</div><div class="ttdef"><b>Definition:</b> <a href="convolution7x7_8cl_source.xhtml#l00031">convolution7x7.cl:31</a></div></div> |
Anthony Barbier | 871448e | 2017-03-24 14:54:29 +0000 | [diff] [blame] | 1125 | <div class="ttc" id="convolution7x7_8cl_xhtml_a8946e11bc6019e8dd7d06b00d27a5b1b"><div class="ttname"><a href="convolution7x7_8cl.xhtml#a8946e11bc6019e8dd7d06b00d27a5b1b">convolution7x1</a></div><div class="ttdeci">int8 convolution7x1(Image *src, const short up1_coeff, const short up2_coeff, const short up3_coeff, const short middle_coeff, const short down1_coeff, const short down2_coeff, const short down3_coeff)</div><div class="ttdoc">Compute a 1D vertical convolution of size 7 for 8 bytes assuming the input is made of 1 channel of 1 ...</div><div class="ttdef"><b>Definition:</b> <a href="convolution7x7_8cl_source.xhtml#l00097">convolution7x7.cl:97</a></div></div> |
Jenkins | 514be65 | 2019-02-28 12:25:18 +0000 | [diff] [blame] | 1126 | <div class="ttc" id="namespacearm__compute_1_1test_1_1validation_xhtml_adbf67dcee294e673cf796f1ed8aeb6a4"><div class="ttname"><a href="namespacearm__compute_1_1test_1_1validation.xhtml#adbf67dcee294e673cf796f1ed8aeb6a4">arm_compute::test::validation::dst</a></div><div class="ttdeci">CLTensor dst</div><div class="ttdef"><b>Definition:</b> <a href="_c_l_2_absolute_difference_8cpp_source.xhtml#l00102">AbsoluteDifference.cpp:102</a></div></div> |
Jenkins | 0e205f7 | 2019-11-28 16:53:35 +0000 | [diff] [blame] | 1127 | <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#l00349">helpers.h:349</a></div></div> |
Anthony Barbier | 871448e | 2017-03-24 14:54:29 +0000 | [diff] [blame] | 1128 | <div class="ttc" id="convolution7x7_8cl_xhtml_ac06f3e24d3fffd3c465d8b2a6e7c985e"><div class="ttname"><a href="convolution7x7_8cl.xhtml#ac06f3e24d3fffd3c465d8b2a6e7c985e">DATA_TYPE_OUT</a></div><div class="ttdeci">#define DATA_TYPE_OUT</div><div class="ttdef"><b>Definition:</b> <a href="convolution7x7_8cl_source.xhtml#l00035">convolution7x7.cl:35</a></div></div> |
Jenkins | 975dfe1 | 2019-09-02 11:47:54 +0100 | [diff] [blame] | 1129 | <div class="ttc" id="namespacearm__compute_1_1test_1_1validation_xhtml_a989ab3e96426615bb98e04e0235088ca"><div class="ttname"><a href="namespacearm__compute_1_1test_1_1validation.xhtml#a989ab3e96426615bb98e04e0235088ca">arm_compute::test::validation::src</a></div><div class="ttdeci">cast configure & src</div><div class="ttdef"><b>Definition:</b> <a href="_c_l_2_cast_8cpp_source.xhtml#l00169">Cast.cpp:169</a></div></div> |
Jenkins | 0e205f7 | 2019-11-28 16:53:35 +0000 | [diff] [blame] | 1130 | <div class="ttc" id="src_2core_2_c_l_2cl__kernels_2_helpers_8h_xhtml_a36f754c05b6fddf6df0d8d0a74f8159f"><div class="ttname"><a href="src_2core_2_c_l_2cl__kernels_2_helpers_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="src_2core_2_c_l_2cl__kernels_2_helpers_8h_source.xhtml#l00255">helpers.h:255</a></div></div> |
Anthony Barbier | 871448e | 2017-03-24 14:54:29 +0000 | [diff] [blame] | 1131 | </div><!-- fragment --> |
Jenkins | 0e205f7 | 2019-11-28 16:53:35 +0000 | [diff] [blame] | 1132 | <p class="reference">References <a class="el" href="convolution7x7_8cl_source.xhtml#l00031">COMPUTE_TYPE</a>, <a class="el" href="direct__convolution1x1_8cl_source.xhtml#l00030">CONVERT_SAT</a>, <a class="el" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h_source.xhtml#l00311">CONVERT_TO_IMAGE_STRUCT</a>, <a class="el" href="convolution7x7_8cl_source.xhtml#l00097">convolution7x1()</a>, <a class="el" href="convolution7x7_8cl_source.xhtml#l00035">DATA_TYPE_OUT</a>, <a class="el" href="_c_l_2_absolute_difference_8cpp_source.xhtml#l00102">arm_compute::test::validation::dst</a>, <a class="el" href="_c_l_2_cast_8cpp_source.xhtml#l00169">arm_compute::test::validation::src</a>, and <a class="el" href="src_2core_2_c_l_2cl__kernels_2_helpers_8h_source.xhtml#l00255">VEC_DATA_TYPE</a>.</p> |
Jenkins | 514be65 | 2019-02-28 12:25:18 +0000 | [diff] [blame] | 1133 | |
Anthony Barbier | 871448e | 2017-03-24 14:54:29 +0000 | [diff] [blame] | 1134 | </div> |
| 1135 | </div> |
| 1136 | </div><!-- contents --> |
| 1137 | </div><!-- doc-content --> |
| 1138 | <!-- start footer part --> |
| 1139 | <div id="nav-path" class="navpath"><!-- id is needed for treeview function! --> |
| 1140 | <ul> |
Anthony Barbier | 8140e1e | 2017-12-14 23:48:46 +0000 | [diff] [blame] | 1141 | <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="convolution7x7_8cl.xhtml">convolution7x7.cl</a></li> |
Jenkins | 7f09cf7 | 2020-01-22 18:08:16 +0000 | [diff] [blame^] | 1142 | <li class="footer">Generated on Wed Jan 22 2020 18:07:47 for Compute Library by |
Anthony Barbier | 871448e | 2017-03-24 14:54:29 +0000 | [diff] [blame] | 1143 | <a href="http://www.doxygen.org/index.html"> |
Jenkins | 514be65 | 2019-02-28 12:25:18 +0000 | [diff] [blame] | 1144 | <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] | 1145 | </ul> |
| 1146 | </div> |
| 1147 | </body> |
| 1148 | </html> |