<!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"/> <title>android::RSC::ScriptIntrinsicLUT Class Reference</title> <link href="tabs.css" rel="stylesheet" type="text/css"/> <link href="doxygen.css" rel="stylesheet" type="text/css" /> </head> <body> <div id="top"><!-- do not remove this div! --> <!-- Generated by Doxygen 1.7.5.1 --> <div id="navrow1" class="tabs"> <ul class="tablist"> <li><a href="index.html"><span>Overview</span></a></li> <li class="current"><a href="annotated.html"><span>Structs</span></a></li> </ul> </div> <div id="nav-path" class="navpath"> <ul> <li class="navelem"><b>android</b> </li> <li class="navelem"><b>RSC</b> </li> <li class="navelem"><a class="el" href="classandroid_1_1RSC_1_1ScriptIntrinsicLUT.html">ScriptIntrinsicLUT</a> </li> </ul> </div> </div> <div class="header"> <div class="summary"> <a href="#pub-methods">Public Member Functions</a> | <a href="#pub-static-methods">Static Public Member Functions</a> </div> <div class="headertitle"> <div class="title">android::RSC::ScriptIntrinsicLUT Class Reference</div> </div> </div> <div class="contents"> <!-- doxytag: class="android::RSC::ScriptIntrinsicLUT" --><!-- doxytag: inherits="android::RSC::ScriptIntrinsic" --> <p><code>#include <<a class="el" href="rsCppStructs_8h_source.html">rsCppStructs.h</a>></code></p> <div class="dynheader"> Inheritance diagram for android::RSC::ScriptIntrinsicLUT:</div> <div class="dyncontent"> <div class="center"> <img src="classandroid_1_1RSC_1_1ScriptIntrinsicLUT.png" usemap="#android::RSC::ScriptIntrinsicLUT_map" alt=""/> <map id="android::RSC::ScriptIntrinsicLUT_map" name="android::RSC::ScriptIntrinsicLUT_map"> <area href="classandroid_1_1RSC_1_1ScriptIntrinsic.html" alt="android::RSC::ScriptIntrinsic" shape="rect" coords="0,112,191,136"/> <area href="classandroid_1_1RSC_1_1Script.html" alt="android::RSC::Script" shape="rect" coords="0,56,191,80"/> <area href="classandroid_1_1RSC_1_1BaseObj.html" alt="android::RSC::BaseObj" shape="rect" coords="0,0,191,24"/> </map> </div></div> <table class="memberdecls"> <tr><td colspan="2"><h2><a name="pub-methods"></a> Public Member Functions</h2></td></tr> <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> <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> <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> <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> <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> <tr><td colspan="2"><h2><a name="pub-static-methods"></a> Static Public Member Functions</h2></td></tr> <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> </table> <hr/><a name="details" id="details"></a><h2>Detailed Description</h2> <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> <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> </div><hr/><h2>Member Function Documentation</h2> <a class="anchor" id="aeb5f4cdbd9d71858413b5835685b2eb3"></a><!-- doxytag: member="android::RSC::ScriptIntrinsicLUT::create" ref="aeb5f4cdbd9d71858413b5835685b2eb3" args="(sp< RS > rs, sp< const Element > e)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">static sp<<a class="el" href="classandroid_1_1RSC_1_1ScriptIntrinsicLUT.html">ScriptIntrinsicLUT</a>> android::RSC::ScriptIntrinsicLUT::create </td> <td>(</td> <td class="paramtype">sp< <a class="el" href="classandroid_1_1RSC_1_1RS.html">RS</a> > </td> <td class="paramname"><em>rs</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">sp< const <a class="el" href="classandroid_1_1RSC_1_1Element.html">Element</a> > </td> <td class="paramname"><em>e</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td><code> [static]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Supported elements types are U8_4.</p> <p>The defaults tables are identity.</p> <dl><dt><b>Parameters:</b></dt><dd> <table class="params"> <tr><td class="paramdir">[in]</td><td class="paramname">rs</td><td>The RenderScript context </td></tr> <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> </table> </dd> </dl> <dl class="return"><dt><b>Returns:</b></dt><dd><a class="el" href="classandroid_1_1RSC_1_1ScriptIntrinsicLUT.html">ScriptIntrinsicLUT</a> </dd></dl> </div> </div> <a class="anchor" id="a3774786291f4b145652ce795e9d9521c"></a><!-- doxytag: member="android::RSC::ScriptIntrinsicLUT::forEach" ref="a3774786291f4b145652ce795e9d9521c" args="(sp< Allocation > ain, sp< Allocation > aout)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void android::RSC::ScriptIntrinsicLUT::forEach </td> <td>(</td> <td class="paramtype">sp< <a class="el" href="classandroid_1_1RSC_1_1Allocation.html">Allocation</a> > </td> <td class="paramname"><em>ain</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">sp< <a class="el" href="classandroid_1_1RSC_1_1Allocation.html">Allocation</a> > </td> <td class="paramname"><em>aout</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </div> <div class="memdoc"> <p>Invoke the kernel and apply the lookup to each cell of ain and copy to aout.</p> <dl><dt><b>Parameters:</b></dt><dd> <table class="params"> <tr><td class="paramdir">[in]</td><td class="paramname">ain</td><td>Input allocation </td></tr> <tr><td class="paramdir">[in]</td><td class="paramname">aout</td><td>Output allocation </td></tr> </table> </dd> </dl> </div> </div> <a class="anchor" id="ad5cf5d3a61ad299eac6d40947ac4f872"></a><!-- doxytag: member="android::RSC::ScriptIntrinsicLUT::setAlpha" ref="ad5cf5d3a61ad299eac6d40947ac4f872" args="(unsigned char base, unsigned int length, unsigned char *lutValues)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void android::RSC::ScriptIntrinsicLUT::setAlpha </td> <td>(</td> <td class="paramtype">unsigned char </td> <td class="paramname"><em>base</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">unsigned int </td> <td class="paramname"><em>length</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">unsigned char * </td> <td class="paramname"><em>lutValues</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </div> <div class="memdoc"> <p>Sets entries in LUT for the alpha channel. </p> <dl><dt><b>Parameters:</b></dt><dd> <table class="params"> <tr><td class="paramdir">[in]</td><td class="paramname">base</td><td>base of region to update </td></tr> <tr><td class="paramdir">[in]</td><td class="paramname">length</td><td>length of region to update </td></tr> <tr><td class="paramdir">[in]</td><td class="paramname">lutValues</td><td>LUT values to use </td></tr> </table> </dd> </dl> </div> </div> <a class="anchor" id="ac26e8d50edaa64e7e1972771054bb968"></a><!-- doxytag: member="android::RSC::ScriptIntrinsicLUT::setBlue" ref="ac26e8d50edaa64e7e1972771054bb968" args="(unsigned char base, unsigned int length, unsigned char *lutValues)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void android::RSC::ScriptIntrinsicLUT::setBlue </td> <td>(</td> <td class="paramtype">unsigned char </td> <td class="paramname"><em>base</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">unsigned int </td> <td class="paramname"><em>length</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">unsigned char * </td> <td class="paramname"><em>lutValues</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </div> <div class="memdoc"> <p>Sets entries in LUT for the blue channel. </p> <dl><dt><b>Parameters:</b></dt><dd> <table class="params"> <tr><td class="paramdir">[in]</td><td class="paramname">base</td><td>base of region to update </td></tr> <tr><td class="paramdir">[in]</td><td class="paramname">length</td><td>length of region to update </td></tr> <tr><td class="paramdir">[in]</td><td class="paramname">lutValues</td><td>LUT values to use </td></tr> </table> </dd> </dl> </div> </div> <a class="anchor" id="a46ce58490f4e95422fd76f1a704f6f99"></a><!-- doxytag: member="android::RSC::ScriptIntrinsicLUT::setGreen" ref="a46ce58490f4e95422fd76f1a704f6f99" args="(unsigned char base, unsigned int length, unsigned char *lutValues)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void android::RSC::ScriptIntrinsicLUT::setGreen </td> <td>(</td> <td class="paramtype">unsigned char </td> <td class="paramname"><em>base</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">unsigned int </td> <td class="paramname"><em>length</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">unsigned char * </td> <td class="paramname"><em>lutValues</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </div> <div class="memdoc"> <p>Sets entries in LUT for the green channel. </p> <dl><dt><b>Parameters:</b></dt><dd> <table class="params"> <tr><td class="paramdir">[in]</td><td class="paramname">base</td><td>base of region to update </td></tr> <tr><td class="paramdir">[in]</td><td class="paramname">length</td><td>length of region to update </td></tr> <tr><td class="paramdir">[in]</td><td class="paramname">lutValues</td><td>LUT values to use </td></tr> </table> </dd> </dl> </div> </div> <a class="anchor" id="acf543cd20e303ef4a760a22d1a350e18"></a><!-- doxytag: member="android::RSC::ScriptIntrinsicLUT::setRed" ref="acf543cd20e303ef4a760a22d1a350e18" args="(unsigned char base, unsigned int length, unsigned char *lutValues)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void android::RSC::ScriptIntrinsicLUT::setRed </td> <td>(</td> <td class="paramtype">unsigned char </td> <td class="paramname"><em>base</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">unsigned int </td> <td class="paramname"><em>length</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">unsigned char * </td> <td class="paramname"><em>lutValues</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </div> <div class="memdoc"> <p>Sets entries in LUT for the red channel. </p> <dl><dt><b>Parameters:</b></dt><dd> <table class="params"> <tr><td class="paramdir">[in]</td><td class="paramname">base</td><td>base of region to update </td></tr> <tr><td class="paramdir">[in]</td><td class="paramname">length</td><td>length of region to update </td></tr> <tr><td class="paramdir">[in]</td><td class="paramname">lutValues</td><td>LUT values to use </td></tr> </table> </dd> </dl> </div> </div> <hr/>The documentation for this class was generated from the following file:<ul> <li><a class="el" href="rsCppStructs_8h_source.html">rsCppStructs.h</a></li> </ul> </div> </body> </html>