1<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 2<html xmlns="http://www.w3.org/1999/xhtml"> 3<head> 4<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> 5 6<title>android::RSC::ScriptIntrinsicLUT Class Reference</title> 7<link href="tabs.css" rel="stylesheet" type="text/css"/> 8<link href="doxygen.css" rel="stylesheet" type="text/css" /> 9 10 11 12</head> 13<body> 14<div id="top"><!-- do not remove this div! --> 15 16 17<!-- Generated by Doxygen 1.7.5.1 --> 18 <div id="navrow1" class="tabs"> 19 <ul class="tablist"> 20 <li><a href="index.html"><span>Overview</span></a></li> 21 <li class="current"><a href="annotated.html"><span>Structs</span></a></li> 22 </ul> 23 </div> 24 <div id="nav-path" class="navpath"> 25 <ul> 26 <li class="navelem"><b>android</b> </li> 27 <li class="navelem"><b>RSC</b> </li> 28 <li class="navelem"><a class="el" href="classandroid_1_1RSC_1_1ScriptIntrinsicLUT.html">ScriptIntrinsicLUT</a> </li> 29 </ul> 30 </div> 31</div> 32<div class="header"> 33 <div class="summary"> 34<a href="#pub-methods">Public Member Functions</a> | 35<a href="#pub-static-methods">Static Public Member Functions</a> </div> 36 <div class="headertitle"> 37<div class="title">android::RSC::ScriptIntrinsicLUT Class Reference</div> </div> 38</div> 39<div class="contents"> 40<!-- doxytag: class="android::RSC::ScriptIntrinsicLUT" --><!-- doxytag: inherits="android::RSC::ScriptIntrinsic" --> 41<p><code>#include <<a class="el" href="rsCppStructs_8h_source.html">rsCppStructs.h</a>></code></p> 42<div class="dynheader"> 43Inheritance diagram for android::RSC::ScriptIntrinsicLUT:</div> 44<div class="dyncontent"> 45 <div class="center"> 46 <img src="classandroid_1_1RSC_1_1ScriptIntrinsicLUT.png" usemap="#android::RSC::ScriptIntrinsicLUT_map" alt=""/> 47 <map id="android::RSC::ScriptIntrinsicLUT_map" name="android::RSC::ScriptIntrinsicLUT_map"> 48<area href="classandroid_1_1RSC_1_1ScriptIntrinsic.html" alt="android::RSC::ScriptIntrinsic" shape="rect" coords="0,112,191,136"/> 49<area href="classandroid_1_1RSC_1_1Script.html" alt="android::RSC::Script" shape="rect" coords="0,56,191,80"/> 50<area href="classandroid_1_1RSC_1_1BaseObj.html" alt="android::RSC::BaseObj" shape="rect" coords="0,0,191,24"/> 51</map> 52 </div></div> 53<table class="memberdecls"> 54<tr><td colspan="2"><h2><a name="pub-methods"></a> 55Public Member Functions</h2></td></tr> 56<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classandroid_1_1RSC_1_1ScriptIntrinsicLUT.html#a3774786291f4b145652ce795e9d9521c">forEach</a> (sp< <a class="el" href="classandroid_1_1RSC_1_1Allocation.html">Allocation</a> > ain, sp< <a class="el" href="classandroid_1_1RSC_1_1Allocation.html">Allocation</a> > aout)</td></tr> 57<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classandroid_1_1RSC_1_1ScriptIntrinsicLUT.html#acf543cd20e303ef4a760a22d1a350e18">setRed</a> (unsigned char base, unsigned int length, unsigned char *lutValues)</td></tr> 58<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classandroid_1_1RSC_1_1ScriptIntrinsicLUT.html#a46ce58490f4e95422fd76f1a704f6f99">setGreen</a> (unsigned char base, unsigned int length, unsigned char *lutValues)</td></tr> 59<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classandroid_1_1RSC_1_1ScriptIntrinsicLUT.html#ac26e8d50edaa64e7e1972771054bb968">setBlue</a> (unsigned char base, unsigned int length, unsigned char *lutValues)</td></tr> 60<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classandroid_1_1RSC_1_1ScriptIntrinsicLUT.html#ad5cf5d3a61ad299eac6d40947ac4f872">setAlpha</a> (unsigned char base, unsigned int length, unsigned char *lutValues)</td></tr> 61<tr><td colspan="2"><h2><a name="pub-static-methods"></a> 62Static Public Member Functions</h2></td></tr> 63<tr><td class="memItemLeft" align="right" valign="top">static sp< <a class="el" href="classandroid_1_1RSC_1_1ScriptIntrinsicLUT.html">ScriptIntrinsicLUT</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="classandroid_1_1RSC_1_1ScriptIntrinsicLUT.html#aeb5f4cdbd9d71858413b5835685b2eb3">create</a> (sp< <a class="el" href="classandroid_1_1RSC_1_1RS.html">RS</a> > rs, sp< const <a class="el" href="classandroid_1_1RSC_1_1Element.html">Element</a> > e)</td></tr> 64</table> 65<hr/><a name="details" id="details"></a><h2>Detailed Description</h2> 66<div class="textblock"><p>Intrinsic for applying a per-channel lookup table. Each channel of the input has an independant lookup table. The tables are 256 entries in size and can cover the full value range of U8_4. </p> 67 68<p>Definition at line <a class="el" href="rsCppStructs_8h_source.html#l01766">1766</a> of file <a class="el" href="rsCppStructs_8h_source.html">rsCppStructs.h</a>.</p> 69</div><hr/><h2>Member Function Documentation</h2> 70<a class="anchor" id="aeb5f4cdbd9d71858413b5835685b2eb3"></a><!-- doxytag: member="android::RSC::ScriptIntrinsicLUT::create" ref="aeb5f4cdbd9d71858413b5835685b2eb3" args="(sp< RS > rs, sp< const Element > e)" --> 71<div class="memitem"> 72<div class="memproto"> 73 <table class="memname"> 74 <tr> 75 <td class="memname">static sp<<a class="el" href="classandroid_1_1RSC_1_1ScriptIntrinsicLUT.html">ScriptIntrinsicLUT</a>> android::RSC::ScriptIntrinsicLUT::create </td> 76 <td>(</td> 77 <td class="paramtype">sp< <a class="el" href="classandroid_1_1RSC_1_1RS.html">RS</a> > </td> 78 <td class="paramname"><em>rs</em>, </td> 79 </tr> 80 <tr> 81 <td class="paramkey"></td> 82 <td></td> 83 <td class="paramtype">sp< const <a class="el" href="classandroid_1_1RSC_1_1Element.html">Element</a> > </td> 84 <td class="paramname"><em>e</em> </td> 85 </tr> 86 <tr> 87 <td></td> 88 <td>)</td> 89 <td></td><td><code> [static]</code></td> 90 </tr> 91 </table> 92</div> 93<div class="memdoc"> 94<p>Supported elements types are U8_4.</p> 95<p>The defaults tables are identity.</p> 96<dl><dt><b>Parameters:</b></dt><dd> 97 <table class="params"> 98 <tr><td class="paramdir">[in]</td><td class="paramname">rs</td><td>The RenderScript context </td></tr> 99 <tr><td class="paramdir">[in]</td><td class="paramname">e</td><td><a class="el" href="classandroid_1_1RSC_1_1Element.html">Element</a> type for intputs and outputs</td></tr> 100 </table> 101 </dd> 102</dl> 103<dl class="return"><dt><b>Returns:</b></dt><dd><a class="el" href="classandroid_1_1RSC_1_1ScriptIntrinsicLUT.html">ScriptIntrinsicLUT</a> </dd></dl> 104 105</div> 106</div> 107<a class="anchor" id="a3774786291f4b145652ce795e9d9521c"></a><!-- doxytag: member="android::RSC::ScriptIntrinsicLUT::forEach" ref="a3774786291f4b145652ce795e9d9521c" args="(sp< Allocation > ain, sp< Allocation > aout)" --> 108<div class="memitem"> 109<div class="memproto"> 110 <table class="memname"> 111 <tr> 112 <td class="memname">void android::RSC::ScriptIntrinsicLUT::forEach </td> 113 <td>(</td> 114 <td class="paramtype">sp< <a class="el" href="classandroid_1_1RSC_1_1Allocation.html">Allocation</a> > </td> 115 <td class="paramname"><em>ain</em>, </td> 116 </tr> 117 <tr> 118 <td class="paramkey"></td> 119 <td></td> 120 <td class="paramtype">sp< <a class="el" href="classandroid_1_1RSC_1_1Allocation.html">Allocation</a> > </td> 121 <td class="paramname"><em>aout</em> </td> 122 </tr> 123 <tr> 124 <td></td> 125 <td>)</td> 126 <td></td><td></td> 127 </tr> 128 </table> 129</div> 130<div class="memdoc"> 131<p>Invoke the kernel and apply the lookup to each cell of ain and copy to aout.</p> 132<dl><dt><b>Parameters:</b></dt><dd> 133 <table class="params"> 134 <tr><td class="paramdir">[in]</td><td class="paramname">ain</td><td>Input allocation </td></tr> 135 <tr><td class="paramdir">[in]</td><td class="paramname">aout</td><td>Output allocation </td></tr> 136 </table> 137 </dd> 138</dl> 139 140</div> 141</div> 142<a class="anchor" id="ad5cf5d3a61ad299eac6d40947ac4f872"></a><!-- doxytag: member="android::RSC::ScriptIntrinsicLUT::setAlpha" ref="ad5cf5d3a61ad299eac6d40947ac4f872" args="(unsigned char base, unsigned int length, unsigned char *lutValues)" --> 143<div class="memitem"> 144<div class="memproto"> 145 <table class="memname"> 146 <tr> 147 <td class="memname">void android::RSC::ScriptIntrinsicLUT::setAlpha </td> 148 <td>(</td> 149 <td class="paramtype">unsigned char </td> 150 <td class="paramname"><em>base</em>, </td> 151 </tr> 152 <tr> 153 <td class="paramkey"></td> 154 <td></td> 155 <td class="paramtype">unsigned int </td> 156 <td class="paramname"><em>length</em>, </td> 157 </tr> 158 <tr> 159 <td class="paramkey"></td> 160 <td></td> 161 <td class="paramtype">unsigned char * </td> 162 <td class="paramname"><em>lutValues</em> </td> 163 </tr> 164 <tr> 165 <td></td> 166 <td>)</td> 167 <td></td><td></td> 168 </tr> 169 </table> 170</div> 171<div class="memdoc"> 172<p>Sets entries in LUT for the alpha channel. </p> 173<dl><dt><b>Parameters:</b></dt><dd> 174 <table class="params"> 175 <tr><td class="paramdir">[in]</td><td class="paramname">base</td><td>base of region to update </td></tr> 176 <tr><td class="paramdir">[in]</td><td class="paramname">length</td><td>length of region to update </td></tr> 177 <tr><td class="paramdir">[in]</td><td class="paramname">lutValues</td><td>LUT values to use </td></tr> 178 </table> 179 </dd> 180</dl> 181 182</div> 183</div> 184<a class="anchor" id="ac26e8d50edaa64e7e1972771054bb968"></a><!-- doxytag: member="android::RSC::ScriptIntrinsicLUT::setBlue" ref="ac26e8d50edaa64e7e1972771054bb968" args="(unsigned char base, unsigned int length, unsigned char *lutValues)" --> 185<div class="memitem"> 186<div class="memproto"> 187 <table class="memname"> 188 <tr> 189 <td class="memname">void android::RSC::ScriptIntrinsicLUT::setBlue </td> 190 <td>(</td> 191 <td class="paramtype">unsigned char </td> 192 <td class="paramname"><em>base</em>, </td> 193 </tr> 194 <tr> 195 <td class="paramkey"></td> 196 <td></td> 197 <td class="paramtype">unsigned int </td> 198 <td class="paramname"><em>length</em>, </td> 199 </tr> 200 <tr> 201 <td class="paramkey"></td> 202 <td></td> 203 <td class="paramtype">unsigned char * </td> 204 <td class="paramname"><em>lutValues</em> </td> 205 </tr> 206 <tr> 207 <td></td> 208 <td>)</td> 209 <td></td><td></td> 210 </tr> 211 </table> 212</div> 213<div class="memdoc"> 214<p>Sets entries in LUT for the blue channel. </p> 215<dl><dt><b>Parameters:</b></dt><dd> 216 <table class="params"> 217 <tr><td class="paramdir">[in]</td><td class="paramname">base</td><td>base of region to update </td></tr> 218 <tr><td class="paramdir">[in]</td><td class="paramname">length</td><td>length of region to update </td></tr> 219 <tr><td class="paramdir">[in]</td><td class="paramname">lutValues</td><td>LUT values to use </td></tr> 220 </table> 221 </dd> 222</dl> 223 224</div> 225</div> 226<a class="anchor" id="a46ce58490f4e95422fd76f1a704f6f99"></a><!-- doxytag: member="android::RSC::ScriptIntrinsicLUT::setGreen" ref="a46ce58490f4e95422fd76f1a704f6f99" args="(unsigned char base, unsigned int length, unsigned char *lutValues)" --> 227<div class="memitem"> 228<div class="memproto"> 229 <table class="memname"> 230 <tr> 231 <td class="memname">void android::RSC::ScriptIntrinsicLUT::setGreen </td> 232 <td>(</td> 233 <td class="paramtype">unsigned char </td> 234 <td class="paramname"><em>base</em>, </td> 235 </tr> 236 <tr> 237 <td class="paramkey"></td> 238 <td></td> 239 <td class="paramtype">unsigned int </td> 240 <td class="paramname"><em>length</em>, </td> 241 </tr> 242 <tr> 243 <td class="paramkey"></td> 244 <td></td> 245 <td class="paramtype">unsigned char * </td> 246 <td class="paramname"><em>lutValues</em> </td> 247 </tr> 248 <tr> 249 <td></td> 250 <td>)</td> 251 <td></td><td></td> 252 </tr> 253 </table> 254</div> 255<div class="memdoc"> 256<p>Sets entries in LUT for the green channel. </p> 257<dl><dt><b>Parameters:</b></dt><dd> 258 <table class="params"> 259 <tr><td class="paramdir">[in]</td><td class="paramname">base</td><td>base of region to update </td></tr> 260 <tr><td class="paramdir">[in]</td><td class="paramname">length</td><td>length of region to update </td></tr> 261 <tr><td class="paramdir">[in]</td><td class="paramname">lutValues</td><td>LUT values to use </td></tr> 262 </table> 263 </dd> 264</dl> 265 266</div> 267</div> 268<a class="anchor" id="acf543cd20e303ef4a760a22d1a350e18"></a><!-- doxytag: member="android::RSC::ScriptIntrinsicLUT::setRed" ref="acf543cd20e303ef4a760a22d1a350e18" args="(unsigned char base, unsigned int length, unsigned char *lutValues)" --> 269<div class="memitem"> 270<div class="memproto"> 271 <table class="memname"> 272 <tr> 273 <td class="memname">void android::RSC::ScriptIntrinsicLUT::setRed </td> 274 <td>(</td> 275 <td class="paramtype">unsigned char </td> 276 <td class="paramname"><em>base</em>, </td> 277 </tr> 278 <tr> 279 <td class="paramkey"></td> 280 <td></td> 281 <td class="paramtype">unsigned int </td> 282 <td class="paramname"><em>length</em>, </td> 283 </tr> 284 <tr> 285 <td class="paramkey"></td> 286 <td></td> 287 <td class="paramtype">unsigned char * </td> 288 <td class="paramname"><em>lutValues</em> </td> 289 </tr> 290 <tr> 291 <td></td> 292 <td>)</td> 293 <td></td><td></td> 294 </tr> 295 </table> 296</div> 297<div class="memdoc"> 298<p>Sets entries in LUT for the red channel. </p> 299<dl><dt><b>Parameters:</b></dt><dd> 300 <table class="params"> 301 <tr><td class="paramdir">[in]</td><td class="paramname">base</td><td>base of region to update </td></tr> 302 <tr><td class="paramdir">[in]</td><td class="paramname">length</td><td>length of region to update </td></tr> 303 <tr><td class="paramdir">[in]</td><td class="paramname">lutValues</td><td>LUT values to use </td></tr> 304 </table> 305 </dd> 306</dl> 307 308</div> 309</div> 310<hr/>The documentation for this class was generated from the following file:<ul> 311<li><a class="el" href="rsCppStructs_8h_source.html">rsCppStructs.h</a></li> 312</ul> 313</div> 314 315</body> 316</html> 317