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::ScriptIntrinsicYuvToRGB 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_1ScriptIntrinsicYuvToRGB.html">ScriptIntrinsicYuvToRGB</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::ScriptIntrinsicYuvToRGB Class Reference</div> </div> 38 </div> 39 <div class="contents"> 40 <!-- doxytag: class="android::RSC::ScriptIntrinsicYuvToRGB" --><!-- 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::ScriptIntrinsicYuvToRGB:</div> 44 <div class="dyncontent"> 45 <div class="center"> 46 <img src="classandroid_1_1RSC_1_1ScriptIntrinsicYuvToRGB.png" usemap="#android::RSC::ScriptIntrinsicYuvToRGB_map" alt=""/> 47 <map id="android::RSC::ScriptIntrinsicYuvToRGB_map" name="android::RSC::ScriptIntrinsicYuvToRGB_map"> 48 <area href="classandroid_1_1RSC_1_1ScriptIntrinsic.html" alt="android::RSC::ScriptIntrinsic" shape="rect" coords="0,112,231,136"/> 49 <area href="classandroid_1_1RSC_1_1Script.html" alt="android::RSC::Script" shape="rect" coords="0,56,231,80"/> 50 <area href="classandroid_1_1RSC_1_1BaseObj.html" alt="android::RSC::BaseObj" shape="rect" coords="0,0,231,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_1ScriptIntrinsicYuvToRGB.html#a7a57038de7d52c53956029dc9dc51dde">setInput</a> (sp< <a class="el" href="classandroid_1_1RSC_1_1Allocation.html">Allocation</a> > in)</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_1ScriptIntrinsicYuvToRGB.html#a82cc7e843804e20d728c2158cfa481f7">forEach</a> (sp< <a class="el" href="classandroid_1_1RSC_1_1Allocation.html">Allocation</a> > out)</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<br class="typebreak"/> 61 < <a class="el" href="classandroid_1_1RSC_1_1ScriptIntrinsicYuvToRGB.html">ScriptIntrinsicYuvToRGB</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="classandroid_1_1RSC_1_1ScriptIntrinsicYuvToRGB.html#adc5488f3137b97a1d76f5765fcb333fd">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> 62 </table> 63 <hr/><a name="details" id="details"></a><h2>Detailed Description</h2> 64 <div class="textblock"><p>Intrinsic for converting an Android YUV buffer to RGB.</p> 65 <p>The input allocation should be supplied in a supported YUV format as a YUV element <a class="el" href="classandroid_1_1RSC_1_1Allocation.html">Allocation</a>. The output is RGBA; the alpha channel will be set to 255. </p> 66 67 <p>Definition at line <a class="el" href="rsCppStructs_8h_source.html#l01832">1832</a> of file <a class="el" href="rsCppStructs_8h_source.html">rsCppStructs.h</a>.</p> 68 </div><hr/><h2>Member Function Documentation</h2> 69 <a class="anchor" id="adc5488f3137b97a1d76f5765fcb333fd"></a><!-- doxytag: member="android::RSC::ScriptIntrinsicYuvToRGB::create" ref="adc5488f3137b97a1d76f5765fcb333fd" args="(sp< RS > rs, sp< const Element > e)" --> 70 <div class="memitem"> 71 <div class="memproto"> 72 <table class="memname"> 73 <tr> 74 <td class="memname">static sp<<a class="el" href="classandroid_1_1RSC_1_1ScriptIntrinsicYuvToRGB.html">ScriptIntrinsicYuvToRGB</a>> android::RSC::ScriptIntrinsicYuvToRGB::create </td> 75 <td>(</td> 76 <td class="paramtype">sp< <a class="el" href="classandroid_1_1RSC_1_1RS.html">RS</a> > </td> 77 <td class="paramname"><em>rs</em>, </td> 78 </tr> 79 <tr> 80 <td class="paramkey"></td> 81 <td></td> 82 <td class="paramtype">sp< const <a class="el" href="classandroid_1_1RSC_1_1Element.html">Element</a> > </td> 83 <td class="paramname"><em>e</em> </td> 84 </tr> 85 <tr> 86 <td></td> 87 <td>)</td> 88 <td></td><td><code> [static]</code></td> 89 </tr> 90 </table> 91 </div> 92 <div class="memdoc"> 93 <p>Create an intrinsic for converting YUV to RGB.</p> 94 <p>Supported elements types are U8_4.</p> 95 <dl><dt><b>Parameters:</b></dt><dd> 96 <table class="params"> 97 <tr><td class="paramdir">[in]</td><td class="paramname">rs</td><td>The RenderScript context </td></tr> 98 <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 output</td></tr> 99 </table> 100 </dd> 101 </dl> 102 <dl class="return"><dt><b>Returns:</b></dt><dd><a class="el" href="classandroid_1_1RSC_1_1ScriptIntrinsicYuvToRGB.html">ScriptIntrinsicYuvToRGB</a> </dd></dl> 103 104 </div> 105 </div> 106 <a class="anchor" id="a82cc7e843804e20d728c2158cfa481f7"></a><!-- doxytag: member="android::RSC::ScriptIntrinsicYuvToRGB::forEach" ref="a82cc7e843804e20d728c2158cfa481f7" args="(sp< Allocation > out)" --> 107 <div class="memitem"> 108 <div class="memproto"> 109 <table class="memname"> 110 <tr> 111 <td class="memname">void android::RSC::ScriptIntrinsicYuvToRGB::forEach </td> 112 <td>(</td> 113 <td class="paramtype">sp< <a class="el" href="classandroid_1_1RSC_1_1Allocation.html">Allocation</a> > </td> 114 <td class="paramname"><em>out</em></td><td>)</td> 115 <td></td> 116 </tr> 117 </table> 118 </div> 119 <div class="memdoc"> 120 <p>Convert the image to RGB.</p> 121 <dl><dt><b>Parameters:</b></dt><dd> 122 <table class="params"> 123 <tr><td class="paramdir">[in]</td><td class="paramname">aout</td><td>Output allocation. Must match creation element type. </td></tr> 124 </table> 125 </dd> 126 </dl> 127 128 </div> 129 </div> 130 <a class="anchor" id="a7a57038de7d52c53956029dc9dc51dde"></a><!-- doxytag: member="android::RSC::ScriptIntrinsicYuvToRGB::setInput" ref="a7a57038de7d52c53956029dc9dc51dde" args="(sp< Allocation > in)" --> 131 <div class="memitem"> 132 <div class="memproto"> 133 <table class="memname"> 134 <tr> 135 <td class="memname">void android::RSC::ScriptIntrinsicYuvToRGB::setInput </td> 136 <td>(</td> 137 <td class="paramtype">sp< <a class="el" href="classandroid_1_1RSC_1_1Allocation.html">Allocation</a> > </td> 138 <td class="paramname"><em>in</em></td><td>)</td> 139 <td></td> 140 </tr> 141 </table> 142 </div> 143 <div class="memdoc"> 144 <p>Set the input YUV allocation.</p> 145 <dl><dt><b>Parameters:</b></dt><dd> 146 <table class="params"> 147 <tr><td class="paramdir">[in]</td><td class="paramname">ain</td><td>The input allocation. </td></tr> 148 </table> 149 </dd> 150 </dl> 151 152 </div> 153 </div> 154 <hr/>The documentation for this class was generated from the following file:<ul> 155 <li><a class="el" href="rsCppStructs_8h_source.html">rsCppStructs.h</a></li> 156 </ul> 157 </div> 158 159 </body> 160 </html> 161