| <!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::ScriptIntrinsicColorMatrix 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_1ScriptIntrinsicColorMatrix.html">ScriptIntrinsicColorMatrix</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::ScriptIntrinsicColorMatrix Class Reference</div> </div> |
| </div> |
| <div class="contents"> |
| <!-- doxytag: class="android::RSC::ScriptIntrinsicColorMatrix" --><!-- 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::ScriptIntrinsicColorMatrix:</div> |
| <div class="dyncontent"> |
| <div class="center"> |
| <img src="classandroid_1_1RSC_1_1ScriptIntrinsicColorMatrix.png" usemap="#android::RSC::ScriptIntrinsicColorMatrix_map" alt=""/> |
| <map id="android::RSC::ScriptIntrinsicColorMatrix_map" name="android::RSC::ScriptIntrinsicColorMatrix_map"> |
| <area href="classandroid_1_1RSC_1_1ScriptIntrinsic.html" alt="android::RSC::ScriptIntrinsic" shape="rect" coords="0,112,235,136"/> |
| <area href="classandroid_1_1RSC_1_1Script.html" alt="android::RSC::Script" shape="rect" coords="0,56,235,80"/> |
| <area href="classandroid_1_1RSC_1_1BaseObj.html" alt="android::RSC::BaseObj" shape="rect" coords="0,0,235,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_1ScriptIntrinsicColorMatrix.html#aaaa3afb31ff042eb463d9ce2fa983c49">forEach</a> (sp< <a class="el" href="classandroid_1_1RSC_1_1Allocation.html">Allocation</a> > in, sp< <a class="el" href="classandroid_1_1RSC_1_1Allocation.html">Allocation</a> > out)</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_1ScriptIntrinsicColorMatrix.html#a6f8e4e4acb841f80b99e00f66f424413">setAdd</a> (float *add)</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_1ScriptIntrinsicColorMatrix.html#aab9cee1734186c000b27950a4919bfac">setColorMatrix3</a> (float *m)</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_1ScriptIntrinsicColorMatrix.html#a9f9a613dc01b1c32436f517f1256d7c1">setColorMatrix4</a> (float *m)</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_1ScriptIntrinsicColorMatrix.html#ae85ce011c6a36f662b641981c48bc78d">setGreyscale</a> ()</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_1ScriptIntrinsicColorMatrix.html#aa8a64388a63db69f8054092ce64c7b73">setRGBtoYUV</a> ()</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_1ScriptIntrinsicColorMatrix.html#aa91f50c71c2800b062d659989cf6c722">setYUVtoRGB</a> ()</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"/> |
| < <a class="el" href="classandroid_1_1RSC_1_1ScriptIntrinsicColorMatrix.html">ScriptIntrinsicColorMatrix</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="classandroid_1_1RSC_1_1ScriptIntrinsicColorMatrix.html#a9cea306b067bead29220cfebabc2860a">create</a> (sp< <a class="el" href="classandroid_1_1RSC_1_1RS.html">RS</a> > rs)</td></tr> |
| </table> |
| <hr/><a name="details" id="details"></a><h2>Detailed Description</h2> |
| <div class="textblock"><p>Intrinsic for applying a color matrix to allocations. This has the same effect as loading each element and converting it to a F32_N, multiplying the result by the 4x4 color matrix as performed by rsMatrixMultiply() and writing it to the output after conversion back to U8_N or F32_N. </p> |
| |
| <p>Definition at line <a class="el" href="rsCppStructs_8h_source.html#l01577">1577</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="a9cea306b067bead29220cfebabc2860a"></a><!-- doxytag: member="android::RSC::ScriptIntrinsicColorMatrix::create" ref="a9cea306b067bead29220cfebabc2860a" args="(sp< RS > rs)" --> |
| <div class="memitem"> |
| <div class="memproto"> |
| <table class="memname"> |
| <tr> |
| <td class="memname">static sp<<a class="el" href="classandroid_1_1RSC_1_1ScriptIntrinsicColorMatrix.html">ScriptIntrinsicColorMatrix</a>> android::RSC::ScriptIntrinsicColorMatrix::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><td>)</td> |
| <td><code> [static]</code></td> |
| </tr> |
| </table> |
| </div> |
| <div class="memdoc"> |
| <p>Creates a new intrinsic. </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> |
| </table> |
| </dd> |
| </dl> |
| <dl class="return"><dt><b>Returns:</b></dt><dd>new <a class="el" href="classandroid_1_1RSC_1_1ScriptIntrinsicColorMatrix.html">ScriptIntrinsicColorMatrix</a> </dd></dl> |
| |
| </div> |
| </div> |
| <a class="anchor" id="aaaa3afb31ff042eb463d9ce2fa983c49"></a><!-- doxytag: member="android::RSC::ScriptIntrinsicColorMatrix::forEach" ref="aaaa3afb31ff042eb463d9ce2fa983c49" args="(sp< Allocation > in, sp< Allocation > out)" --> |
| <div class="memitem"> |
| <div class="memproto"> |
| <table class="memname"> |
| <tr> |
| <td class="memname">void android::RSC::ScriptIntrinsicColorMatrix::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>in</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>out</em> </td> |
| </tr> |
| <tr> |
| <td></td> |
| <td>)</td> |
| <td></td><td></td> |
| </tr> |
| </table> |
| </div> |
| <div class="memdoc"> |
| <p>Applies the color matrix. Supported types are U8 and F32 with vector lengths between 1 and 4. </p> |
| <dl><dt><b>Parameters:</b></dt><dd> |
| <table class="params"> |
| <tr><td class="paramdir">[in]</td><td class="paramname">in</td><td>input <a class="el" href="classandroid_1_1RSC_1_1Allocation.html">Allocation</a> </td></tr> |
| <tr><td class="paramdir">[out]</td><td class="paramname">out</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="a6f8e4e4acb841f80b99e00f66f424413"></a><!-- doxytag: member="android::RSC::ScriptIntrinsicColorMatrix::setAdd" ref="a6f8e4e4acb841f80b99e00f66f424413" args="(float *add)" --> |
| <div class="memitem"> |
| <div class="memproto"> |
| <table class="memname"> |
| <tr> |
| <td class="memname">void android::RSC::ScriptIntrinsicColorMatrix::setAdd </td> |
| <td>(</td> |
| <td class="paramtype">float * </td> |
| <td class="paramname"><em>add</em></td><td>)</td> |
| <td></td> |
| </tr> |
| </table> |
| </div> |
| <div class="memdoc"> |
| <p>Set the value to be added after the color matrix has been applied. The default value is {0, 0, 0, 0}. </p> |
| <dl><dt><b>Parameters:</b></dt><dd> |
| <table class="params"> |
| <tr><td class="paramdir">[in]</td><td class="paramname">add</td><td>float[4] of values </td></tr> |
| </table> |
| </dd> |
| </dl> |
| |
| </div> |
| </div> |
| <a class="anchor" id="aab9cee1734186c000b27950a4919bfac"></a><!-- doxytag: member="android::RSC::ScriptIntrinsicColorMatrix::setColorMatrix3" ref="aab9cee1734186c000b27950a4919bfac" args="(float *m)" --> |
| <div class="memitem"> |
| <div class="memproto"> |
| <table class="memname"> |
| <tr> |
| <td class="memname">void android::RSC::ScriptIntrinsicColorMatrix::setColorMatrix3 </td> |
| <td>(</td> |
| <td class="paramtype">float * </td> |
| <td class="paramname"><em>m</em></td><td>)</td> |
| <td></td> |
| </tr> |
| </table> |
| </div> |
| <div class="memdoc"> |
| <p>Set the color matrix which will be applied to each cell of the image. The alpha channel will be copied.</p> |
| <dl><dt><b>Parameters:</b></dt><dd> |
| <table class="params"> |
| <tr><td class="paramdir">[in]</td><td class="paramname">m</td><td>float[9] of values </td></tr> |
| </table> |
| </dd> |
| </dl> |
| |
| </div> |
| </div> |
| <a class="anchor" id="a9f9a613dc01b1c32436f517f1256d7c1"></a><!-- doxytag: member="android::RSC::ScriptIntrinsicColorMatrix::setColorMatrix4" ref="a9f9a613dc01b1c32436f517f1256d7c1" args="(float *m)" --> |
| <div class="memitem"> |
| <div class="memproto"> |
| <table class="memname"> |
| <tr> |
| <td class="memname">void android::RSC::ScriptIntrinsicColorMatrix::setColorMatrix4 </td> |
| <td>(</td> |
| <td class="paramtype">float * </td> |
| <td class="paramname"><em>m</em></td><td>)</td> |
| <td></td> |
| </tr> |
| </table> |
| </div> |
| <div class="memdoc"> |
| <p>Set the color matrix which will be applied to each cell of the image.</p> |
| <dl><dt><b>Parameters:</b></dt><dd> |
| <table class="params"> |
| <tr><td class="paramdir">[in]</td><td class="paramname">m</td><td>float[16] of values </td></tr> |
| </table> |
| </dd> |
| </dl> |
| |
| </div> |
| </div> |
| <a class="anchor" id="ae85ce011c6a36f662b641981c48bc78d"></a><!-- doxytag: member="android::RSC::ScriptIntrinsicColorMatrix::setGreyscale" ref="ae85ce011c6a36f662b641981c48bc78d" args="()" --> |
| <div class="memitem"> |
| <div class="memproto"> |
| <table class="memname"> |
| <tr> |
| <td class="memname">void android::RSC::ScriptIntrinsicColorMatrix::setGreyscale </td> |
| <td>(</td> |
| <td class="paramname"></td><td>)</td> |
| <td></td> |
| </tr> |
| </table> |
| </div> |
| <div class="memdoc"> |
| <p>Set a color matrix to convert from RGB to luminance. The alpha channel will be a copy. </p> |
| |
| </div> |
| </div> |
| <a class="anchor" id="aa8a64388a63db69f8054092ce64c7b73"></a><!-- doxytag: member="android::RSC::ScriptIntrinsicColorMatrix::setRGBtoYUV" ref="aa8a64388a63db69f8054092ce64c7b73" args="()" --> |
| <div class="memitem"> |
| <div class="memproto"> |
| <table class="memname"> |
| <tr> |
| <td class="memname">void android::RSC::ScriptIntrinsicColorMatrix::setRGBtoYUV </td> |
| <td>(</td> |
| <td class="paramname"></td><td>)</td> |
| <td></td> |
| </tr> |
| </table> |
| </div> |
| <div class="memdoc"> |
| <p>Set the matrix to convert from RGB to YUV with a direct copy of the 4th channel. </p> |
| |
| </div> |
| </div> |
| <a class="anchor" id="aa91f50c71c2800b062d659989cf6c722"></a><!-- doxytag: member="android::RSC::ScriptIntrinsicColorMatrix::setYUVtoRGB" ref="aa91f50c71c2800b062d659989cf6c722" args="()" --> |
| <div class="memitem"> |
| <div class="memproto"> |
| <table class="memname"> |
| <tr> |
| <td class="memname">void android::RSC::ScriptIntrinsicColorMatrix::setYUVtoRGB </td> |
| <td>(</td> |
| <td class="paramname"></td><td>)</td> |
| <td></td> |
| </tr> |
| </table> |
| </div> |
| <div class="memdoc"> |
| <p>Set the matrix to convert from YUV to RGB with a direct copy of the 4th channel. </p> |
| |
| </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> |