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::ScriptIntrinsic3DLUT 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_1ScriptIntrinsic3DLUT.html">ScriptIntrinsic3DLUT</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::ScriptIntrinsic3DLUT Class Reference</div> </div> 38 </div> 39 <div class="contents"> 40 <!-- doxytag: class="android::RSC::ScriptIntrinsic3DLUT" --><!-- 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"> 43 Inheritance diagram for android::RSC::ScriptIntrinsic3DLUT:</div> 44 <div class="dyncontent"> 45 <div class="center"> 46 <img src="classandroid_1_1RSC_1_1ScriptIntrinsic3DLUT.png" usemap="#android::RSC::ScriptIntrinsic3DLUT_map" alt=""/> 47 <map id="android::RSC::ScriptIntrinsic3DLUT_map" name="android::RSC::ScriptIntrinsic3DLUT_map"> 48 <area href="classandroid_1_1RSC_1_1ScriptIntrinsic.html" alt="android::RSC::ScriptIntrinsic" shape="rect" coords="0,112,207,136"/> 49 <area href="classandroid_1_1RSC_1_1Script.html" alt="android::RSC::Script" shape="rect" coords="0,56,207,80"/> 50 <area href="classandroid_1_1RSC_1_1BaseObj.html" alt="android::RSC::BaseObj" shape="rect" coords="0,0,207,24"/> 51 </map> 52 </div></div> 53 <table class="memberdecls"> 54 <tr><td colspan="2"><h2><a name="pub-methods"></a> 55 Public 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_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> 57 <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> 58 <tr><td colspan="2"><h2><a name="pub-static-methods"></a> 59 Static Public Member Functions</h2></td></tr> 60 <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> 61 </table> 62 <hr/><a name="details" id="details"></a><h2>Detailed Description</h2> 63 <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> 64 65 <p>Definition at line <a class="el" href="rsCppStructs_8h_source.html#l01405">1405</a> of file <a class="el" href="rsCppStructs_8h_source.html">rsCppStructs.h</a>.</p> 66 </div><hr/><h2>Member Function Documentation</h2> 67 <a class="anchor" id="ae20e9165cc0bbef03d0d7b99ae238758"></a><!-- doxytag: member="android::RSC::ScriptIntrinsic3DLUT::create" ref="ae20e9165cc0bbef03d0d7b99ae238758" args="(sp< RS > rs, sp< const Element > e)" --> 68 <div class="memitem"> 69 <div class="memproto"> 70 <table class="memname"> 71 <tr> 72 <td class="memname">static sp<<a class="el" href="classandroid_1_1RSC_1_1ScriptIntrinsic3DLUT.html">ScriptIntrinsic3DLUT</a>> android::RSC::ScriptIntrinsic3DLUT::create </td> 73 <td>(</td> 74 <td class="paramtype">sp< <a class="el" href="classandroid_1_1RSC_1_1RS.html">RS</a> > </td> 75 <td class="paramname"><em>rs</em>, </td> 76 </tr> 77 <tr> 78 <td class="paramkey"></td> 79 <td></td> 80 <td class="paramtype">sp< const <a class="el" href="classandroid_1_1RSC_1_1Element.html">Element</a> > </td> 81 <td class="paramname"><em>e</em> </td> 82 </tr> 83 <tr> 84 <td></td> 85 <td>)</td> 86 <td></td><td><code> [static]</code></td> 87 </tr> 88 </table> 89 </div> 90 <div class="memdoc"> 91 <p>Supported <a class="el" href="classandroid_1_1RSC_1_1Element.html">Element</a> types are U8_4. Default lookup table is identity. </p> 92 <dl><dt><b>Parameters:</b></dt><dd> 93 <table class="params"> 94 <tr><td class="paramdir">[in]</td><td class="paramname">rs</td><td>RenderScript context </td></tr> 95 <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> 96 </table> 97 </dd> 98 </dl> 99 <dl class="return"><dt><b>Returns:</b></dt><dd>new <a class="el" href="classandroid_1_1RSC_1_1ScriptIntrinsic.html">ScriptIntrinsic</a> </dd></dl> 100 101 </div> 102 </div> 103 <a class="anchor" id="ac33f9e12362112f24560205389db2eff"></a><!-- doxytag: member="android::RSC::ScriptIntrinsic3DLUT::forEach" ref="ac33f9e12362112f24560205389db2eff" args="(sp< Allocation > ain, sp< Allocation > aout)" --> 104 <div class="memitem"> 105 <div class="memproto"> 106 <table class="memname"> 107 <tr> 108 <td class="memname">void android::RSC::ScriptIntrinsic3DLUT::forEach </td> 109 <td>(</td> 110 <td class="paramtype">sp< <a class="el" href="classandroid_1_1RSC_1_1Allocation.html">Allocation</a> > </td> 111 <td class="paramname"><em>ain</em>, </td> 112 </tr> 113 <tr> 114 <td class="paramkey"></td> 115 <td></td> 116 <td class="paramtype">sp< <a class="el" href="classandroid_1_1RSC_1_1Allocation.html">Allocation</a> > </td> 117 <td class="paramname"><em>aout</em> </td> 118 </tr> 119 <tr> 120 <td></td> 121 <td>)</td> 122 <td></td><td></td> 123 </tr> 124 </table> 125 </div> 126 <div class="memdoc"> 127 <p>Launch the intrinsic. </p> 128 <dl><dt><b>Parameters:</b></dt><dd> 129 <table class="params"> 130 <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> 131 <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> 132 </table> 133 </dd> 134 </dl> 135 136 </div> 137 </div> 138 <a class="anchor" id="a14e28c25094206e8f49b42682d682927"></a><!-- doxytag: member="android::RSC::ScriptIntrinsic3DLUT::setLUT" ref="a14e28c25094206e8f49b42682d682927" args="(sp< Allocation > lut)" --> 139 <div class="memitem"> 140 <div class="memproto"> 141 <table class="memname"> 142 <tr> 143 <td class="memname">void android::RSC::ScriptIntrinsic3DLUT::setLUT </td> 144 <td>(</td> 145 <td class="paramtype">sp< <a class="el" href="classandroid_1_1RSC_1_1Allocation.html">Allocation</a> > </td> 146 <td class="paramname"><em>lut</em></td><td>)</td> 147 <td></td> 148 </tr> 149 </table> 150 </div> 151 <div class="memdoc"> 152 <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> 153 <dl><dt><b>Parameters:</b></dt><dd> 154 <table class="params"> 155 <tr><td class="paramdir">[in]</td><td class="paramname">lut</td><td>new lookup table </td></tr> 156 </table> 157 </dd> 158 </dl> 159 160 </div> 161 </div> 162 <hr/>The documentation for this class was generated from the following file:<ul> 163 <li><a class="el" href="rsCppStructs_8h_source.html">rsCppStructs.h</a></li> 164 </ul> 165 </div> 166 167 </body> 168 </html> 169