<!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::ScriptIntrinsicYuvToRGB 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_1ScriptIntrinsicYuvToRGB.html">ScriptIntrinsicYuvToRGB</a>      </li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-static-methods">Static Public Member Functions</a>  </div>
  <div class="headertitle">
<div class="title">android::RSC::ScriptIntrinsicYuvToRGB Class Reference</div>  </div>
</div>
<div class="contents">
<!-- doxytag: class="android::RSC::ScriptIntrinsicYuvToRGB" --><!-- doxytag: inherits="android::RSC::ScriptIntrinsic" -->
<p><code>#include &lt;<a class="el" href="rsCppStructs_8h_source.html">rsCppStructs.h</a>&gt;</code></p>
<div class="dynheader">
Inheritance diagram for android::RSC::ScriptIntrinsicYuvToRGB:</div>
<div class="dyncontent">
 <div class="center">
  <img src="classandroid_1_1RSC_1_1ScriptIntrinsicYuvToRGB.png" usemap="#android::RSC::ScriptIntrinsicYuvToRGB_map" alt=""/>
  <map id="android::RSC::ScriptIntrinsicYuvToRGB_map" name="android::RSC::ScriptIntrinsicYuvToRGB_map">
<area href="classandroid_1_1RSC_1_1ScriptIntrinsic.html" alt="android::RSC::ScriptIntrinsic" shape="rect" coords="0,112,231,136"/>
<area href="classandroid_1_1RSC_1_1Script.html" alt="android::RSC::Script" shape="rect" coords="0,56,231,80"/>
<area href="classandroid_1_1RSC_1_1BaseObj.html" alt="android::RSC::BaseObj" shape="rect" coords="0,0,231,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&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classandroid_1_1RSC_1_1ScriptIntrinsicYuvToRGB.html#a7a57038de7d52c53956029dc9dc51dde">setInput</a> (sp&lt; <a class="el" href="classandroid_1_1RSC_1_1Allocation.html">Allocation</a> &gt; in)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classandroid_1_1RSC_1_1ScriptIntrinsicYuvToRGB.html#a82cc7e843804e20d728c2158cfa481f7">forEach</a> (sp&lt; <a class="el" href="classandroid_1_1RSC_1_1Allocation.html">Allocation</a> &gt; out)</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<br class="typebreak"/>
&lt; <a class="el" href="classandroid_1_1RSC_1_1ScriptIntrinsicYuvToRGB.html">ScriptIntrinsicYuvToRGB</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classandroid_1_1RSC_1_1ScriptIntrinsicYuvToRGB.html#adc5488f3137b97a1d76f5765fcb333fd">create</a> (sp&lt; <a class="el" href="classandroid_1_1RSC_1_1RS.html">RS</a> &gt; rs, sp&lt; const <a class="el" href="classandroid_1_1RSC_1_1Element.html">Element</a> &gt; e)</td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock"><p>Intrinsic for converting an Android YUV buffer to RGB.</p>
<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>

<p>Definition at line <a class="el" href="rsCppStructs_8h_source.html#l01827">1827</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="adc5488f3137b97a1d76f5765fcb333fd"></a><!-- doxytag: member="android::RSC::ScriptIntrinsicYuvToRGB::create" ref="adc5488f3137b97a1d76f5765fcb333fd" args="(sp&lt; RS &gt; rs, sp&lt; const Element &gt; e)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static sp&lt;<a class="el" href="classandroid_1_1RSC_1_1ScriptIntrinsicYuvToRGB.html">ScriptIntrinsicYuvToRGB</a>&gt; android::RSC::ScriptIntrinsicYuvToRGB::create </td>
          <td>(</td>
          <td class="paramtype">sp&lt; <a class="el" href="classandroid_1_1RSC_1_1RS.html">RS</a> &gt;&#160;</td>
          <td class="paramname"><em>rs</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">sp&lt; const <a class="el" href="classandroid_1_1RSC_1_1Element.html">Element</a> &gt;&#160;</td>
          <td class="paramname"><em>e</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Create an intrinsic for converting YUV to RGB.</p>
<p>Supported elements types are U8_4.</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 output</td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd><a class="el" href="classandroid_1_1RSC_1_1ScriptIntrinsicYuvToRGB.html">ScriptIntrinsicYuvToRGB</a> </dd></dl>

</div>
</div>
<a class="anchor" id="a82cc7e843804e20d728c2158cfa481f7"></a><!-- doxytag: member="android::RSC::ScriptIntrinsicYuvToRGB::forEach" ref="a82cc7e843804e20d728c2158cfa481f7" args="(sp&lt; Allocation &gt; out)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void android::RSC::ScriptIntrinsicYuvToRGB::forEach </td>
          <td>(</td>
          <td class="paramtype">sp&lt; <a class="el" href="classandroid_1_1RSC_1_1Allocation.html">Allocation</a> &gt;&#160;</td>
          <td class="paramname"><em>out</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Convert the image to RGB.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">aout</td><td>Output allocation. Must match creation element type. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a7a57038de7d52c53956029dc9dc51dde"></a><!-- doxytag: member="android::RSC::ScriptIntrinsicYuvToRGB::setInput" ref="a7a57038de7d52c53956029dc9dc51dde" args="(sp&lt; Allocation &gt; in)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void android::RSC::ScriptIntrinsicYuvToRGB::setInput </td>
          <td>(</td>
          <td class="paramtype">sp&lt; <a class="el" href="classandroid_1_1RSC_1_1Allocation.html">Allocation</a> &gt;&#160;</td>
          <td class="paramname"><em>in</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Set the input YUV allocation.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">ain</td><td>The input allocation. </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>