<!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::ScriptIntrinsic3DLUT 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_1ScriptIntrinsic3DLUT.html">ScriptIntrinsic3DLUT</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::ScriptIntrinsic3DLUT Class Reference</div> </div> </div> <div class="contents"> <!-- doxytag: class="android::RSC::ScriptIntrinsic3DLUT" --><!-- 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::ScriptIntrinsic3DLUT:</div> <div class="dyncontent"> <div class="center"> <img src="classandroid_1_1RSC_1_1ScriptIntrinsic3DLUT.png" usemap="#android::RSC::ScriptIntrinsic3DLUT_map" alt=""/> <map id="android::RSC::ScriptIntrinsic3DLUT_map" name="android::RSC::ScriptIntrinsic3DLUT_map"> <area href="classandroid_1_1RSC_1_1ScriptIntrinsic.html" alt="android::RSC::ScriptIntrinsic" shape="rect" coords="0,112,207,136"/> <area href="classandroid_1_1RSC_1_1Script.html" alt="android::RSC::Script" shape="rect" coords="0,56,207,80"/> <area href="classandroid_1_1RSC_1_1BaseObj.html" alt="android::RSC::BaseObj" shape="rect" coords="0,0,207,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_1ScriptIntrinsic3DLUT.html#ac33f9e12362112f24560205389db2eff">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_1ScriptIntrinsic3DLUT.html#a14e28c25094206e8f49b42682d682927">setLUT</a> (sp< <a class="el" href="classandroid_1_1RSC_1_1Allocation.html">Allocation</a> > lut)</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_1ScriptIntrinsic3DLUT.html">ScriptIntrinsic3DLUT</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="classandroid_1_1RSC_1_1ScriptIntrinsic3DLUT.html#ae20e9165cc0bbef03d0d7b99ae238758">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 converting RGB to RGBA by using a 3D lookup table. The incoming r,g,b values are use as normalized x,y,z coordinates into a 3D allocation. The 8 nearest values are sampled and linearly interpolated. The result is placed in the output. </p> <p>Definition at line <a class="el" href="rsCppStructs_8h_source.html#l01400">1400</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="ae20e9165cc0bbef03d0d7b99ae238758"></a><!-- doxytag: member="android::RSC::ScriptIntrinsic3DLUT::create" ref="ae20e9165cc0bbef03d0d7b99ae238758" 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_1ScriptIntrinsic3DLUT.html">ScriptIntrinsic3DLUT</a>> android::RSC::ScriptIntrinsic3DLUT::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 <a class="el" href="classandroid_1_1RSC_1_1Element.html">Element</a> types are U8_4. Default lookup table is identity. </p> <dl><dt><b>Parameters:</b></dt><dd> <table class="params"> <tr><td class="paramdir">[in]</td><td class="paramname">rs</td><td>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> </td></tr> </table> </dd> </dl> <dl class="return"><dt><b>Returns:</b></dt><dd>new <a class="el" href="classandroid_1_1RSC_1_1ScriptIntrinsic.html">ScriptIntrinsic</a> </dd></dl> </div> </div> <a class="anchor" id="ac33f9e12362112f24560205389db2eff"></a><!-- doxytag: member="android::RSC::ScriptIntrinsic3DLUT::forEach" ref="ac33f9e12362112f24560205389db2eff" args="(sp< Allocation > ain, sp< Allocation > aout)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void android::RSC::ScriptIntrinsic3DLUT::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>Launch the intrinsic. </p> <dl><dt><b>Parameters:</b></dt><dd> <table class="params"> <tr><td class="paramdir">[in]</td><td class="paramname">ain</td><td>input <a class="el" href="classandroid_1_1RSC_1_1Allocation.html">Allocation</a> </td></tr> <tr><td class="paramdir">[in]</td><td class="paramname">aout</td><td>output <a class="el" href="classandroid_1_1RSC_1_1Allocation.html">Allocation</a> </td></tr> </table> </dd> </dl> </div> </div> <a class="anchor" id="a14e28c25094206e8f49b42682d682927"></a><!-- doxytag: member="android::RSC::ScriptIntrinsic3DLUT::setLUT" ref="a14e28c25094206e8f49b42682d682927" args="(sp< Allocation > lut)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void android::RSC::ScriptIntrinsic3DLUT::setLUT </td> <td>(</td> <td class="paramtype">sp< <a class="el" href="classandroid_1_1RSC_1_1Allocation.html">Allocation</a> > </td> <td class="paramname"><em>lut</em></td><td>)</td> <td></td> </tr> </table> </div> <div class="memdoc"> <p>Sets the lookup table. The lookup table must use the same <a class="el" href="classandroid_1_1RSC_1_1Element.html">Element</a> as the intrinsic. </p> <dl><dt><b>Parameters:</b></dt><dd> <table class="params"> <tr><td class="paramdir">[in]</td><td class="paramname">lut</td><td>new lookup table </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>