blob: 7e5ef8035185e246fa09b2659c9e19e55a94f42f [file] [log] [blame]
<!-- HTML header for doxygen 1.8.15-->
<!-- Remember to use version doxygen 1.8.15 +-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.15"/>
<meta name="robots" content="NOINDEX, NOFOLLOW" /> <!-- Prevent indexing by search engines -->
<title>Compute Library: Lut Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(initResizable);
/* @license-end */</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/x-mathjax-config">
MathJax.Hub.Config({
extensions: ["tex2jax.js"],
jax: ["input/TeX","output/HTML-CSS"],
});
</script><script type="text/javascript" async="async" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="stylesheet.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<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"/>
<td style="padding-left: 0.5em;">
<div id="projectname">
&#160;<span id="projectnumber">19.08</span>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.15 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
initMenu('',true,false,'search.php','Search');
$(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
<div id="nav-tree">
<div id="nav-tree-contents">
<div id="nav-sync" class="sync"></div>
</div>
</div>
<div id="splitbar" style="-moz-user-select:none;"
class="ui-resizable-handle">
</div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('classarm__compute_1_1_lut.xhtml','');});
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</div>
<div class="header">
<div class="summary">
<a href="#pub-methods">Public Member Functions</a> </div>
<div class="headertitle">
<div class="title">Lut Class Reference</div> </div>
</div><!--header-->
<div class="contents">
<p>Basic implementation of the LUT interface.
<a href="classarm__compute_1_1_lut.xhtml#details">More...</a></p>
<p><code>#include &lt;<a class="el" href="_lut_8h_source.xhtml">Lut.h</a>&gt;</code></p>
<div class="dynheader">
Collaboration diagram for Lut:</div>
<div class="dyncontent">
<div class="center"><iframe scrolling="no" frameborder="0" src="classarm__compute_1_1_lut__coll__graph.svg" width="56" height="112"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
</div>
<center><span class="legend">[<a target="top" href="graph_legend.xhtml">legend</a>]</span></center></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a0f61968969758af458b1bb644445cb4d"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classarm__compute_1_1_lut.xhtml#a0f61968969758af458b1bb644445cb4d">Lut</a> ()</td></tr>
<tr class="memdesc:a0f61968969758af458b1bb644445cb4d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Constructor. <a href="#a0f61968969758af458b1bb644445cb4d">More...</a><br /></td></tr>
<tr class="separator:a0f61968969758af458b1bb644445cb4d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:adad4e75f50babe21da02638fa2cfb9d1"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classarm__compute_1_1_lut.xhtml#adad4e75f50babe21da02638fa2cfb9d1">Lut</a> (size_t <a class="el" href="classarm__compute_1_1_lut.xhtml#a6dac829b4ddf4a5729ac090e73696958">num_elements</a>, <a class="el" href="namespacearm__compute.xhtml#ad8ed01ff3ff33333d8e19db4d2818bb6">DataType</a> data_type)</td></tr>
<tr class="memdesc:adad4e75f50babe21da02638fa2cfb9d1"><td class="mdescLeft">&#160;</td><td class="mdescRight">Constructor: initializes a LUT which can contain num_values values of data_type type. <a href="#adad4e75f50babe21da02638fa2cfb9d1">More...</a><br /></td></tr>
<tr class="separator:adad4e75f50babe21da02638fa2cfb9d1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7c28e4f8f5133ed91f40248df4ce5d08"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classarm__compute_1_1_i_lut_allocator.xhtml">ILutAllocator</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classarm__compute_1_1_lut.xhtml#a7c28e4f8f5133ed91f40248df4ce5d08">allocator</a> ()</td></tr>
<tr class="memdesc:a7c28e4f8f5133ed91f40248df4ce5d08"><td class="mdescLeft">&#160;</td><td class="mdescRight">Return a pointer to the lut's allocator. <a href="#a7c28e4f8f5133ed91f40248df4ce5d08">More...</a><br /></td></tr>
<tr class="separator:a7c28e4f8f5133ed91f40248df4ce5d08"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6dac829b4ddf4a5729ac090e73696958"><td class="memItemLeft" align="right" valign="top">size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classarm__compute_1_1_lut.xhtml#a6dac829b4ddf4a5729ac090e73696958">num_elements</a> () const override</td></tr>
<tr class="memdesc:a6dac829b4ddf4a5729ac090e73696958"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the total number of elements in the LUT. <a href="#a6dac829b4ddf4a5729ac090e73696958">More...</a><br /></td></tr>
<tr class="separator:a6dac829b4ddf4a5729ac090e73696958"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aaf3f51cd25e1651cccf04064a9888f4e"><td class="memItemLeft" align="right" valign="top">uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classarm__compute_1_1_lut.xhtml#aaf3f51cd25e1651cccf04064a9888f4e">index_offset</a> () const override</td></tr>
<tr class="memdesc:aaf3f51cd25e1651cccf04064a9888f4e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Indicates the offset that needs to be applied to the raw index before performing a lookup in the LUT. <a href="#aaf3f51cd25e1651cccf04064a9888f4e">More...</a><br /></td></tr>
<tr class="separator:aaf3f51cd25e1651cccf04064a9888f4e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a68f33e9afee896dc24b32093d25c6766"><td class="memItemLeft" align="right" valign="top">size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classarm__compute_1_1_lut.xhtml#a68f33e9afee896dc24b32093d25c6766">size_in_bytes</a> () const override</td></tr>
<tr class="memdesc:a68f33e9afee896dc24b32093d25c6766"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the total size in bytes of the LUT. <a href="#a68f33e9afee896dc24b32093d25c6766">More...</a><br /></td></tr>
<tr class="separator:a68f33e9afee896dc24b32093d25c6766"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6dc9c052a2732f899adccfaeee468364"><td class="memItemLeft" align="right" valign="top"><a class="el" href="namespacearm__compute.xhtml#ad8ed01ff3ff33333d8e19db4d2818bb6">DataType</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classarm__compute_1_1_lut.xhtml#a6dc9c052a2732f899adccfaeee468364">type</a> () const override</td></tr>
<tr class="memdesc:a6dc9c052a2732f899adccfaeee468364"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the type of the LUT. <a href="#a6dc9c052a2732f899adccfaeee468364">More...</a><br /></td></tr>
<tr class="separator:a6dc9c052a2732f899adccfaeee468364"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a24954cca5108a24706441fd99a7fb04c"><td class="memItemLeft" align="right" valign="top">uint8_t *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classarm__compute_1_1_lut.xhtml#a24954cca5108a24706441fd99a7fb04c">buffer</a> () const override</td></tr>
<tr class="memdesc:a24954cca5108a24706441fd99a7fb04c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns a pointer to the start of the LUT. <a href="#a24954cca5108a24706441fd99a7fb04c">More...</a><br /></td></tr>
<tr class="separator:a24954cca5108a24706441fd99a7fb04c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aee7cb2065b88d21ac4ad05bc997ecf82"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classarm__compute_1_1_lut.xhtml#aee7cb2065b88d21ac4ad05bc997ecf82">clear</a> () override</td></tr>
<tr class="memdesc:aee7cb2065b88d21ac4ad05bc997ecf82"><td class="mdescLeft">&#160;</td><td class="mdescRight">Clears the LUT by setting every element to zero. <a href="#aee7cb2065b88d21ac4ad05bc997ecf82">More...</a><br /></td></tr>
<tr class="separator:aee7cb2065b88d21ac4ad05bc997ecf82"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_classarm__compute_1_1_i_lut"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_classarm__compute_1_1_i_lut')"><img src="closed.png" alt="-"/>&#160;Public Member Functions inherited from <a class="el" href="classarm__compute_1_1_i_lut.xhtml">ILut</a></td></tr>
<tr class="memitem:ab90dd1556851ce4b6b1529dfb9107f68 inherit pub_methods_classarm__compute_1_1_i_lut"><td class="memItemLeft" align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classarm__compute_1_1_i_lut.xhtml#ab90dd1556851ce4b6b1529dfb9107f68">~ILut</a> ()=default</td></tr>
<tr class="memdesc:ab90dd1556851ce4b6b1529dfb9107f68 inherit pub_methods_classarm__compute_1_1_i_lut"><td class="mdescLeft">&#160;</td><td class="mdescRight">Default virtual destructor. <a href="classarm__compute_1_1_i_lut.xhtml#ab90dd1556851ce4b6b1529dfb9107f68">More...</a><br /></td></tr>
<tr class="separator:ab90dd1556851ce4b6b1529dfb9107f68 inherit pub_methods_classarm__compute_1_1_i_lut"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Basic implementation of the LUT interface. </p>
<p class="definition">Definition at line <a class="el" href="_lut_8h_source.xhtml#l00039">39</a> of file <a class="el" href="_lut_8h_source.xhtml">Lut.h</a>.</p>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="a0f61968969758af458b1bb644445cb4d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0f61968969758af458b1bb644445cb4d">&#9670;&nbsp;</a></span>Lut() <span class="overload">[1/2]</span></h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classarm__compute_1_1_lut.xhtml">Lut</a> </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Constructor. </p>
<p class="definition">Definition at line <a class="el" href="_lut_8cpp_source.xhtml#l00030">30</a> of file <a class="el" href="_lut_8cpp_source.xhtml">Lut.cpp</a>.</p>
<div class="fragment"><div class="line"><a name="l00031"></a><span class="lineno"> 31</span>&#160; : _allocator()</div><div class="line"><a name="l00032"></a><span class="lineno"> 32</span>&#160;{</div><div class="line"><a name="l00033"></a><span class="lineno"> 33</span>&#160;}</div></div><!-- fragment -->
</div>
</div>
<a id="adad4e75f50babe21da02638fa2cfb9d1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#adad4e75f50babe21da02638fa2cfb9d1">&#9670;&nbsp;</a></span>Lut() <span class="overload">[2/2]</span></h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classarm__compute_1_1_lut.xhtml">Lut</a> </td>
<td>(</td>
<td class="paramtype">size_t&#160;</td>
<td class="paramname"><em>num_elements</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="namespacearm__compute.xhtml#ad8ed01ff3ff33333d8e19db4d2818bb6">DataType</a>&#160;</td>
<td class="paramname"><em>data_type</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Constructor: initializes a LUT which can contain num_values values of data_type type. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramdir">[in]</td><td class="paramname">num_elements</td><td>Number of elements of the LUT. </td></tr>
<tr><td class="paramdir">[in]</td><td class="paramname">data_type</td><td>Data type of each element. </td></tr>
</table>
</dd>
</dl>
<p class="definition">Definition at line <a class="el" href="_lut_8cpp_source.xhtml#l00035">35</a> of file <a class="el" href="_lut_8cpp_source.xhtml">Lut.cpp</a>.</p>
<div class="fragment"><div class="line"><a name="l00036"></a><span class="lineno"> 36</span>&#160; : _allocator()</div><div class="line"><a name="l00037"></a><span class="lineno"> 37</span>&#160;{</div><div class="line"><a name="l00038"></a><span class="lineno"> 38</span>&#160; _allocator.<a class="code" href="classarm__compute_1_1_i_lut_allocator.xhtml#a4ef157737b45c46f115e14b425512800">init</a>(<a class="code" href="classarm__compute_1_1_lut.xhtml#a6dac829b4ddf4a5729ac090e73696958">num_elements</a>, <a class="code" href="namespacearm__compute_1_1test_1_1validation.xhtml#a5f5b6c4337eac9e2e0046ca2304d80dc">data_type</a>);</div><div class="line"><a name="l00039"></a><span class="lineno"> 39</span>&#160;}</div><div class="ttc" id="classarm__compute_1_1_i_lut_allocator_xhtml_a4ef157737b45c46f115e14b425512800"><div class="ttname"><a href="classarm__compute_1_1_i_lut_allocator.xhtml#a4ef157737b45c46f115e14b425512800">arm_compute::ILutAllocator::init</a></div><div class="ttdeci">void init(size_t num_elements, DataType data_type)</div><div class="ttdoc">Allocate an LUT of the requested number of elements and data_type.</div><div class="ttdef"><b>Definition:</b> <a href="_i_lut_allocator_8cpp_source.xhtml#l00035">ILutAllocator.cpp:35</a></div></div>
<div class="ttc" id="classarm__compute_1_1_lut_xhtml_a6dac829b4ddf4a5729ac090e73696958"><div class="ttname"><a href="classarm__compute_1_1_lut.xhtml#a6dac829b4ddf4a5729ac090e73696958">arm_compute::Lut::num_elements</a></div><div class="ttdeci">size_t num_elements() const override</div><div class="ttdoc">Returns the total number of elements in the LUT.</div><div class="ttdef"><b>Definition:</b> <a href="_lut_8cpp_source.xhtml#l00041">Lut.cpp:41</a></div></div>
<div class="ttc" id="namespacearm__compute_1_1test_1_1validation_xhtml_a5f5b6c4337eac9e2e0046ca2304d80dc"><div class="ttname"><a href="namespacearm__compute_1_1test_1_1validation.xhtml#a5f5b6c4337eac9e2e0046ca2304d80dc">arm_compute::test::validation::data_type</a></div><div class="ttdeci">data_type</div><div class="ttdef"><b>Definition:</b> <a href="_c_l_2_arithmetic_addition_8cpp_source.xhtml#l00135">ArithmeticAddition.cpp:135</a></div></div>
</div><!-- fragment -->
<p class="reference">References <a class="el" href="_c_l_2_arithmetic_addition_8cpp_source.xhtml#l00135">arm_compute::test::validation::data_type</a>, <a class="el" href="_i_lut_allocator_8cpp_source.xhtml#l00035">ILutAllocator::init()</a>, and <a class="el" href="_lut_8cpp_source.xhtml#l00041">Lut::num_elements()</a>.</p>
</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="a7c28e4f8f5133ed91f40248df4ce5d08"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7c28e4f8f5133ed91f40248df4ce5d08">&#9670;&nbsp;</a></span>allocator()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classarm__compute_1_1_i_lut_allocator.xhtml">ILutAllocator</a> * allocator </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Return a pointer to the lut's allocator. </p>
<dl class="section return"><dt>Returns</dt><dd>A pointer to the lut's allocator </dd></dl>
<p class="definition">Definition at line <a class="el" href="_lut_8cpp_source.xhtml#l00072">72</a> of file <a class="el" href="_lut_8cpp_source.xhtml">Lut.cpp</a>.</p>
<div class="fragment"><div class="line"><a name="l00073"></a><span class="lineno"> 73</span>&#160;{</div><div class="line"><a name="l00074"></a><span class="lineno"> 74</span>&#160; <span class="keywordflow">return</span> &amp;_allocator;</div><div class="line"><a name="l00075"></a><span class="lineno"> 75</span>&#160;}</div></div><!-- fragment -->
</div>
</div>
<a id="a24954cca5108a24706441fd99a7fb04c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a24954cca5108a24706441fd99a7fb04c">&#9670;&nbsp;</a></span>buffer()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">uint8_t * buffer </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Returns a pointer to the start of the LUT. </p>
<p>Other elements of the LUT can be accessed using <a class="el" href="classarm__compute_1_1_lut.xhtml#a24954cca5108a24706441fd99a7fb04c" title="Returns a pointer to the start of the LUT.">buffer()</a>[idx] for 0 &lt;= idx &lt; <a class="el" href="classarm__compute_1_1_lut.xhtml#a6dac829b4ddf4a5729ac090e73696958" title="Returns the total number of elements in the LUT.">num_elements()</a>.</p>
<dl class="section return"><dt>Returns</dt><dd>Pointer to the start of the lut. </dd></dl>
<p>Implements <a class="el" href="classarm__compute_1_1_i_lut.xhtml#ab988210662dbd3bf32fd563c7dd1bdbf">ILut</a>.</p>
<p class="definition">Definition at line <a class="el" href="_lut_8cpp_source.xhtml#l00061">61</a> of file <a class="el" href="_lut_8cpp_source.xhtml">Lut.cpp</a>.</p>
<div class="fragment"><div class="line"><a name="l00062"></a><span class="lineno"> 62</span>&#160;{</div><div class="line"><a name="l00063"></a><span class="lineno"> 63</span>&#160; <span class="keywordflow">return</span> _allocator.<a class="code" href="classarm__compute_1_1_lut_allocator.xhtml#a344325f71f51323330de47f307ebecfd">data</a>();</div><div class="line"><a name="l00064"></a><span class="lineno"> 64</span>&#160;}</div><div class="ttc" id="classarm__compute_1_1_lut_allocator_xhtml_a344325f71f51323330de47f307ebecfd"><div class="ttname"><a href="classarm__compute_1_1_lut_allocator.xhtml#a344325f71f51323330de47f307ebecfd">arm_compute::LutAllocator::data</a></div><div class="ttdeci">uint8_t * data() const</div><div class="ttdoc">Interface to be implemented by the child class to return the pointer to the allocate data.</div><div class="ttdef"><b>Definition:</b> <a href="_lut_allocator_8cpp_source.xhtml#l00035">LutAllocator.cpp:35</a></div></div>
</div><!-- fragment -->
<p class="reference">References <a class="el" href="_lut_allocator_8cpp_source.xhtml#l00035">LutAllocator::data()</a>.</p>
<p class="reference">Referenced by <a class="el" href="_lut_8cpp_source.xhtml#l00066">Lut::clear()</a>.</p>
</div>
</div>
<a id="aee7cb2065b88d21ac4ad05bc997ecf82"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aee7cb2065b88d21ac4ad05bc997ecf82">&#9670;&nbsp;</a></span>clear()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">void clear </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Clears the LUT by setting every element to zero. </p>
<p>Implements <a class="el" href="classarm__compute_1_1_i_lut.xhtml#a5eeb94d22b8366d1b68d0614384802fe">ILut</a>.</p>
<p class="definition">Definition at line <a class="el" href="_lut_8cpp_source.xhtml#l00066">66</a> of file <a class="el" href="_lut_8cpp_source.xhtml">Lut.cpp</a>.</p>
<div class="fragment"><div class="line"><a name="l00067"></a><span class="lineno"> 67</span>&#160;{</div><div class="line"><a name="l00068"></a><span class="lineno"> 68</span>&#160; <a class="code" href="_error_8h.xhtml#a54a6080c9f4df1f908e57a9bbb46f5da">ARM_COMPUTE_ERROR_ON</a>(this-&gt;<a class="code" href="classarm__compute_1_1_lut.xhtml#a24954cca5108a24706441fd99a7fb04c">buffer</a>() == <span class="keyword">nullptr</span>);</div><div class="line"><a name="l00069"></a><span class="lineno"> 69</span>&#160; std::memset(this-&gt;<a class="code" href="classarm__compute_1_1_lut.xhtml#a24954cca5108a24706441fd99a7fb04c">buffer</a>(), 0, this-&gt;<a class="code" href="classarm__compute_1_1_lut.xhtml#a68f33e9afee896dc24b32093d25c6766">size_in_bytes</a>());</div><div class="line"><a name="l00070"></a><span class="lineno"> 70</span>&#160;}</div><div class="ttc" id="classarm__compute_1_1_lut_xhtml_a68f33e9afee896dc24b32093d25c6766"><div class="ttname"><a href="classarm__compute_1_1_lut.xhtml#a68f33e9afee896dc24b32093d25c6766">arm_compute::Lut::size_in_bytes</a></div><div class="ttdeci">size_t size_in_bytes() const override</div><div class="ttdoc">Returns the total size in bytes of the LUT.</div><div class="ttdef"><b>Definition:</b> <a href="_lut_8cpp_source.xhtml#l00051">Lut.cpp:51</a></div></div>
<div class="ttc" id="_error_8h_xhtml_a54a6080c9f4df1f908e57a9bbb46f5da"><div class="ttname"><a href="_error_8h.xhtml#a54a6080c9f4df1f908e57a9bbb46f5da">ARM_COMPUTE_ERROR_ON</a></div><div class="ttdeci">#define ARM_COMPUTE_ERROR_ON(cond)</div><div class="ttdoc">If the condition is true then an error message is printed and an exception thrown.</div><div class="ttdef"><b>Definition:</b> <a href="_error_8h_source.xhtml#l00337">Error.h:337</a></div></div>
<div class="ttc" id="classarm__compute_1_1_lut_xhtml_a24954cca5108a24706441fd99a7fb04c"><div class="ttname"><a href="classarm__compute_1_1_lut.xhtml#a24954cca5108a24706441fd99a7fb04c">arm_compute::Lut::buffer</a></div><div class="ttdeci">uint8_t * buffer() const override</div><div class="ttdoc">Returns a pointer to the start of the LUT.</div><div class="ttdef"><b>Definition:</b> <a href="_lut_8cpp_source.xhtml#l00061">Lut.cpp:61</a></div></div>
</div><!-- fragment -->
<p class="reference">References <a class="el" href="_error_8h_source.xhtml#l00337">ARM_COMPUTE_ERROR_ON</a>, <a class="el" href="_lut_8cpp_source.xhtml#l00061">Lut::buffer()</a>, and <a class="el" href="_lut_8cpp_source.xhtml#l00051">Lut::size_in_bytes()</a>.</p>
</div>
</div>
<a id="aaf3f51cd25e1651cccf04064a9888f4e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aaf3f51cd25e1651cccf04064a9888f4e">&#9670;&nbsp;</a></span>index_offset()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">uint32_t index_offset </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Indicates the offset that needs to be applied to the raw index before performing a lookup in the LUT. </p>
<dl class="section return"><dt>Returns</dt><dd>The normalization offset. </dd></dl>
<p>Implements <a class="el" href="classarm__compute_1_1_i_lut.xhtml#a786de36dda3773c5fb35d6700e64621e">ILut</a>.</p>
<p class="definition">Definition at line <a class="el" href="_lut_8cpp_source.xhtml#l00046">46</a> of file <a class="el" href="_lut_8cpp_source.xhtml">Lut.cpp</a>.</p>
<div class="fragment"><div class="line"><a name="l00047"></a><span class="lineno"> 47</span>&#160;{</div><div class="line"><a name="l00048"></a><span class="lineno"> 48</span>&#160; <span class="keywordflow">return</span> (<a class="code" href="namespacearm__compute.xhtml#ab4e88c89b3b7ea1735996cc4def22d58a6e0b0886efb94aec797f6b830329b72c">DataType::S16</a> == _allocator.<a class="code" href="classarm__compute_1_1_i_lut_allocator.xhtml#aa5369d30001dbd8880fb58d6af2b40a0">type</a>()) ? <a class="code" href="classarm__compute_1_1_lut.xhtml#a6dac829b4ddf4a5729ac090e73696958">num_elements</a>() / 2 : 0;</div><div class="line"><a name="l00049"></a><span class="lineno"> 49</span>&#160;}</div><div class="ttc" id="namespacearm__compute_xhtml_ab4e88c89b3b7ea1735996cc4def22d58a6e0b0886efb94aec797f6b830329b72c"><div class="ttname"><a href="namespacearm__compute.xhtml#ab4e88c89b3b7ea1735996cc4def22d58a6e0b0886efb94aec797f6b830329b72c">arm_compute::Format::S16</a></div><div class="ttdoc">1 channel, 1 S16 per channel</div></div>
<div class="ttc" id="classarm__compute_1_1_lut_xhtml_a6dac829b4ddf4a5729ac090e73696958"><div class="ttname"><a href="classarm__compute_1_1_lut.xhtml#a6dac829b4ddf4a5729ac090e73696958">arm_compute::Lut::num_elements</a></div><div class="ttdeci">size_t num_elements() const override</div><div class="ttdoc">Returns the total number of elements in the LUT.</div><div class="ttdef"><b>Definition:</b> <a href="_lut_8cpp_source.xhtml#l00041">Lut.cpp:41</a></div></div>
<div class="ttc" id="classarm__compute_1_1_i_lut_allocator_xhtml_aa5369d30001dbd8880fb58d6af2b40a0"><div class="ttname"><a href="classarm__compute_1_1_i_lut_allocator.xhtml#aa5369d30001dbd8880fb58d6af2b40a0">arm_compute::ILutAllocator::type</a></div><div class="ttdeci">DataType type() const</div><div class="ttdoc">Returns the type of the LUT.</div><div class="ttdef"><b>Definition:</b> <a href="_i_lut_allocator_8cpp_source.xhtml#l00050">ILutAllocator.cpp:50</a></div></div>
</div><!-- fragment -->
<p class="reference">References <a class="el" href="_lut_8cpp_source.xhtml#l00041">Lut::num_elements()</a>, <a class="el" href="namespacearm__compute.xhtml#ab4e88c89b3b7ea1735996cc4def22d58a6e0b0886efb94aec797f6b830329b72c">arm_compute::S16</a>, and <a class="el" href="_i_lut_allocator_8cpp_source.xhtml#l00050">ILutAllocator::type()</a>.</p>
</div>
</div>
<a id="a6dac829b4ddf4a5729ac090e73696958"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6dac829b4ddf4a5729ac090e73696958">&#9670;&nbsp;</a></span>num_elements()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">size_t num_elements </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Returns the total number of elements in the LUT. </p>
<dl class="section return"><dt>Returns</dt><dd>Total number of elements. </dd></dl>
<p>Implements <a class="el" href="classarm__compute_1_1_i_lut.xhtml#a7a826fbb4f639c556352d1ede69187d7">ILut</a>.</p>
<p class="definition">Definition at line <a class="el" href="_lut_8cpp_source.xhtml#l00041">41</a> of file <a class="el" href="_lut_8cpp_source.xhtml">Lut.cpp</a>.</p>
<div class="fragment"><div class="line"><a name="l00042"></a><span class="lineno"> 42</span>&#160;{</div><div class="line"><a name="l00043"></a><span class="lineno"> 43</span>&#160; <span class="keywordflow">return</span> _allocator.<a class="code" href="classarm__compute_1_1_i_lut_allocator.xhtml#ab13544f21571d4f4dd804cb4b96e2987">num_elements</a>();</div><div class="line"><a name="l00044"></a><span class="lineno"> 44</span>&#160;}</div><div class="ttc" id="classarm__compute_1_1_i_lut_allocator_xhtml_ab13544f21571d4f4dd804cb4b96e2987"><div class="ttname"><a href="classarm__compute_1_1_i_lut_allocator.xhtml#ab13544f21571d4f4dd804cb4b96e2987">arm_compute::ILutAllocator::num_elements</a></div><div class="ttdeci">size_t num_elements() const</div><div class="ttdoc">Returns the total number of elements in the LUT.</div><div class="ttdef"><b>Definition:</b> <a href="_i_lut_allocator_8cpp_source.xhtml#l00045">ILutAllocator.cpp:45</a></div></div>
</div><!-- fragment -->
<p class="reference">References <a class="el" href="_i_lut_allocator_8cpp_source.xhtml#l00045">ILutAllocator::num_elements()</a>.</p>
<p class="reference">Referenced by <a class="el" href="_lut_8cpp_source.xhtml#l00046">Lut::index_offset()</a>, and <a class="el" href="_lut_8cpp_source.xhtml#l00035">Lut::Lut()</a>.</p>
</div>
</div>
<a id="a68f33e9afee896dc24b32093d25c6766"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a68f33e9afee896dc24b32093d25c6766">&#9670;&nbsp;</a></span>size_in_bytes()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">size_t size_in_bytes </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Returns the total size in bytes of the LUT. </p>
<dl class="section return"><dt>Returns</dt><dd>Total size of the LUT in bytes. </dd></dl>
<p>Implements <a class="el" href="classarm__compute_1_1_i_lut.xhtml#a6314b1e589ffe32277858c018ac3c630">ILut</a>.</p>
<p class="definition">Definition at line <a class="el" href="_lut_8cpp_source.xhtml#l00051">51</a> of file <a class="el" href="_lut_8cpp_source.xhtml">Lut.cpp</a>.</p>
<div class="fragment"><div class="line"><a name="l00052"></a><span class="lineno"> 52</span>&#160;{</div><div class="line"><a name="l00053"></a><span class="lineno"> 53</span>&#160; <span class="keywordflow">return</span> _allocator.<a class="code" href="classarm__compute_1_1_i_lut_allocator.xhtml#a259cb5a711406a8c3e5d937eb9350cca">size</a>();</div><div class="line"><a name="l00054"></a><span class="lineno"> 54</span>&#160;}</div><div class="ttc" id="classarm__compute_1_1_i_lut_allocator_xhtml_a259cb5a711406a8c3e5d937eb9350cca"><div class="ttname"><a href="classarm__compute_1_1_i_lut_allocator.xhtml#a259cb5a711406a8c3e5d937eb9350cca">arm_compute::ILutAllocator::size</a></div><div class="ttdeci">size_t size() const</div><div class="ttdoc">Returns the total size in bytes of the LUT.</div><div class="ttdef"><b>Definition:</b> <a href="_i_lut_allocator_8cpp_source.xhtml#l00055">ILutAllocator.cpp:55</a></div></div>
</div><!-- fragment -->
<p class="reference">References <a class="el" href="_i_lut_allocator_8cpp_source.xhtml#l00055">ILutAllocator::size()</a>.</p>
<p class="reference">Referenced by <a class="el" href="_lut_8cpp_source.xhtml#l00066">Lut::clear()</a>.</p>
</div>
</div>
<a id="a6dc9c052a2732f899adccfaeee468364"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6dc9c052a2732f899adccfaeee468364">&#9670;&nbsp;</a></span>type()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="namespacearm__compute.xhtml#ad8ed01ff3ff33333d8e19db4d2818bb6">DataType</a> type </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Returns the type of the LUT. </p>
<dl class="section return"><dt>Returns</dt><dd>The type of the LUT. </dd></dl>
<p>Implements <a class="el" href="classarm__compute_1_1_i_lut.xhtml#aa1917b40b57ce0a0f1c69722b46f3f46">ILut</a>.</p>
<p class="definition">Definition at line <a class="el" href="_lut_8cpp_source.xhtml#l00056">56</a> of file <a class="el" href="_lut_8cpp_source.xhtml">Lut.cpp</a>.</p>
<div class="fragment"><div class="line"><a name="l00057"></a><span class="lineno"> 57</span>&#160;{</div><div class="line"><a name="l00058"></a><span class="lineno"> 58</span>&#160; <span class="keywordflow">return</span> _allocator.<a class="code" href="classarm__compute_1_1_i_lut_allocator.xhtml#aa5369d30001dbd8880fb58d6af2b40a0">type</a>();</div><div class="line"><a name="l00059"></a><span class="lineno"> 59</span>&#160;}</div><div class="ttc" id="classarm__compute_1_1_i_lut_allocator_xhtml_aa5369d30001dbd8880fb58d6af2b40a0"><div class="ttname"><a href="classarm__compute_1_1_i_lut_allocator.xhtml#aa5369d30001dbd8880fb58d6af2b40a0">arm_compute::ILutAllocator::type</a></div><div class="ttdeci">DataType type() const</div><div class="ttdoc">Returns the type of the LUT.</div><div class="ttdef"><b>Definition:</b> <a href="_i_lut_allocator_8cpp_source.xhtml#l00050">ILutAllocator.cpp:50</a></div></div>
</div><!-- fragment -->
<p class="reference">References <a class="el" href="_i_lut_allocator_8cpp_source.xhtml#l00050">ILutAllocator::type()</a>.</p>
</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li>arm_compute/runtime/<a class="el" href="_lut_8h_source.xhtml">Lut.h</a></li>
<li>src/runtime/<a class="el" href="_lut_8cpp_source.xhtml">Lut.cpp</a></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
<ul>
<li class="navelem"><a class="el" href="namespacearm__compute.xhtml">arm_compute</a></li><li class="navelem"><a class="el" href="classarm__compute_1_1_lut.xhtml">Lut</a></li>
<li class="footer">Generated on Mon Sep 2 2019 11:47:36 for Compute Library by
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.15 </li>
</ul>
</div>
</body>
</html>