Lines Matching full:allocation
6 <title>android::RSC::Allocation Class Reference</title>
28 <li class="navelem"><a class="el" href="classandroid_1_1RSC_1_1Allocation.html">Allocation</a> </li>
37 <div class="title">android::RSC::Allocation Class Reference</div> </div>
40 <!-- doxytag: class="android::RSC::Allocation" --><!-- doxytag: inherits="android::RSC::BaseObj" -->
43 Inheritance diagram for android::RSC::Allocation:</div>
58 <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classandroid_1_1RSC_1_1Allocation.html#a46890b1ca1cbb54c39b0958d515c782f">copy1DRangeFrom</a> (uint32_t off, size_t count, sp< const <a class="el" href="classandroid_1_1RSC_1_1Allocation.html">Allocation</a> > data, uint32_t dataOff)</td></tr>
64 <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classandroid_1_1RSC_1_1Allocation.html#a4cfe1bb1dac8dfde86f542f97e6d2e67">copy2DRangeFrom</a> (uint32_t xoff, uint32_t yoff, uint32_t w, uint32_t h, sp< const <a class="el" href="classandroid_1_1RSC_1_1Allocation.html">Allocation</a> > data, uint32_t dataXoff, uint32_t dataYoff)</td></tr>
70 <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classandroid_1_1RSC_1_1Allocation.html#acfc9d84ddfbbc02bdba706a1b63afd6b">copy3DRangeFrom</a> (uint32_t xoff, uint32_t yoff, uint32_t zoff, uint32_t w, uint32_t h, uint32_t d, sp< const <a class="el" href="classandroid_1_1RSC_1_1Allocation.html">Allocation</a> > data, uint32_t dataXoff, uint32_t dataYoff, uint32_t dataZoff)</td></tr>
73 <tr><td class="memItemLeft" align="right" valign="top">static sp< <a class="el" href="classandroid_1_1RSC_1_1Allocation.html">Allocation</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="classandroid_1_1RSC_1_1Allocation.html#a983b914efa208763b4b58db62586f138">createTyped</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_1Type.html">Type</a> > type, RsAllocationMipmapControl mipmaps, uint32_t usage)</td></tr>
74 <tr><td class="memItemLeft" align="right" valign="top">static sp< <a class="el" href="classandroid_1_1RSC_1_1Allocation.html">Allocation</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="classandroid_1_1RSC_1_1Allocation.html#a8951e64fcb95241504a445fa293380e3">createTyped</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_1Type.html">Type</a> > type, RsAllocationMipmapControl mipmaps, uint32_t usage, void *pointer)</td></tr>
75 <tr><td class="memItemLeft" align="right" valign="top">static sp< <a class="el" href="classandroid_1_1RSC_1_1Allocation.html">Allocation</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="classandroid_1_1RSC_1_1Allocation.html#ae0c87f83e692ade1abba9a8db6d40aae">createTyped</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_1Type.html">Type</a> > type, uint32_t usage=RS_ALLOCATION_USAGE_SCRIPT)</td></tr>
76 <tr><td class="memItemLeft" align="right" valign="top">static sp< <a class="el" href="classandroid_1_1RSC_1_1Allocation.html">Allocation</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="classandroid_1_1RSC_1_1Allocation.html#afd281c4fccca4bf1f69dd2cbdfafb96c">createSized</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, size_t count, uint32_t usage=RS_ALLOCATION_USAGE_SCRIPT)</td></tr>
77 <tr><td class="memItemLeft" align="right" valign="top">static sp< <a class="el" href="classandroid_1_1RSC_1_1Allocation.html">Allocation</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="classandroid_1_1RSC_1_1Allocation.html#aa20d012e4df254a06c595527e9203e75">createSized2D</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, size_t x, size_t y, uint32_t usage=RS_ALLOCATION_USAGE_SCRIPT)</td></tr>
80 <div class="textblock"><p>This class provides the primary method through which data is passed to and from RenderScript kernels. An <a class="el" href="classandroid_1_1RSC_1_1Allocation.html">Allocation</a> provides the backing store for a given <a class="el" href="classandroid_1_1RSC_1_1Type.html">Type</a>.</p>
81 <p>An <a class="el" href="classandroid_1_1RSC_1_1Allocation.html">Allocation</a> also contains a set of usage flags that denote how the <a class="el" href="classandroid_1_1RSC_1_1Allocation.html">Allocation</a> could be used. For example, an <a class="el" href="classandroid_1_1RSC_1_1Allocation.html">Allocation</a> may have usage flags specifying that it can be used from a script as well as input to a <a class="el" href="classandroid_1_1RSC_1_1Sampler.html">Sampler</a>. A developer must synchronize across these different usages using syncAll(int) in order to ensure that different users of the <a class="el" href="classandroid_1_1RSC_1_1Allocation.html">Allocation</a> have a consistent view of memory. For example, in the case where an <a class="el" href="classandroid_1_1RSC_1_1Allocation.html">Allocation</a> is used as the output of one kernel and as <a class="el" href="classandroid_1_1RSC_1_1Sampler.html">Sampler</a> input in a later kernel, a developer must call syncAll(RS_ALLOCATION_USAGE_SCRIPT) prior to launching the second kernel to ensure correctness. </p>
85 <a class="anchor" id="ab3c6154ae194a83c7f639012d256d62d"></a><!-- doxytag: member="android::RSC::Allocation::copy1DFrom" ref="ab3c6154ae194a83c7f639012d256d62d" args="(const void *data)" -->
90 <td class="memname">void android::RSC::Allocation::copy1DFrom </td>
99 <p>Copy entire array to an <a class="el" href="classandroid_1_1RSC_1_1Allocation.html">Allocation</a>. </p>
109 <a class="anchor" id="ae10efeb0624dbdf7f32c013f8eff2c74"></a><!-- doxytag: member="android::RSC::Allocation::copy1DRangeFrom" ref="ae10efeb0624dbdf7f32c013f8eff2c74" args="(uint32_t off, size_t count, const void *data)" -->
114 <td class="memname">void android::RSC::Allocation::copy1DRangeFrom </td>
139 <p>Copy an array into part of this <a class="el" href="classandroid_1_1RSC_1_1Allocation.html">Allocation</a>. </p>
151 <a class="anchor" id="a46890b1ca1cbb54c39b0958d515c782f"></a><!-- doxytag: member="android::RSC::Allocation::copy1DRangeFrom" ref="a46890b1ca1cbb54c39b0958d515c782f" args="(uint32_t off, size_t count, sp< const Allocation > data, uint32_t dataOff)" -->
156 <td class="memname">void android::RSC::Allocation::copy1DRangeFrom </td>
170 <td class="paramtype">sp< const <a class="el" href="classandroid_1_1RSC_1_1Allocation.html">Allocation</a> > </td>
187 <p>Copy part of an <a class="el" href="classandroid_1_1RSC_1_1Allocation.html">Allocation</a> into part of this <a class="el" href="classandroid_1_1RSC_1_1Allocation.html">Allocation</a>. </p>
192 Allocation</a> from which to copy </td></tr>
200 <a class="anchor" id="a70125eb0577744f64512da1f6bdec69e"></a><!-- doxytag: member="android::RSC::Allocation::copy1DRangeTo" ref="a70125eb0577744f64512da1f6bdec69e" args="(uint32_t off, size_t count, void *data)" -->
205 <td class="memname">void android::RSC::Allocation::copy1DRangeTo </td>
230 <p>Copy an array into part of this <a class="el" href="classandroid_1_1RSC_1_1Allocation.html">Allocation</a>. </p>
242 <a class="anchor" id="a6d2c79bd8b2f9a7b7036ae78e4b48ec4"></a><!-- doxytag: member="android::RSC::Allocation::copy1DTo" ref="a6d2c79bd8b2f9a7b7036ae78e4b48ec4" args="(void *data)" -->
247 <td class="memname">void android::RSC::Allocation::copy1DTo </td>
256 <p>Copy entire <a class="el" href="classandroid_1_1RSC_1_1Allocation.html">Allocation</a> to an array. </p>
266 <a class="anchor" id="aa4a59cd1098771c205bbd23d4f3b1065"></a><!-- doxytag: member="android::RSC::Allocation::copy2DRangeFrom" ref="aa4a59cd1098771c205bbd23d4f3b1065" args="(uint32_t xoff, uint32_t yoff, uint32_t w, uint32_t h, const void *data)" -->
271 <td class="memname">void android::RSC::Allocation::copy2DRangeFrom </td>
308 <p>Copy from an array into a rectangular region in this <a class="el" href="classandroid_1_1RSC_1_1Allocation.html">Allocation</a>. The array is assumed to be tightly packed. </p>
311 <tr><td class="paramdir">[in]</td><td class="paramname">xoff</td><td>X offset of region to update in this <a class="el" href="classandroid_1_1RSC_1_1Allocation.html">Allocation</a> </td></tr>
312 <tr><td class="paramdir">[in]</td><td class="paramname">yoff</td><td>Y offset of region to update in this <a class="el" href="classandroid_1_1RSC_1_1Allocation.html">Allocation</a> </td></tr>
322 <a class="anchor" id="a4cfe1bb1dac8dfde86f542f97e6d2e67"></a><!-- doxytag: member="android::RSC::Allocation::copy2DRangeFrom" ref="a4cfe1bb1dac8dfde86f542f97e6d2e67" args="(uint32_t xoff, uint32_t yoff, uint32_t w, uint32_t h, sp< const Allocation > data, uint32_t dataXoff, uint32_t dataYoff)" -->
327 <td class="memname">void android::RSC::Allocation::copy2DRangeFrom </td>
353 <td class="paramtype">sp< const <a class="el" href="classandroid_1_1RSC_1_1Allocation.html">Allocation</a> > </td>
376 <p>Copy from an <a class="el" href="classandroid_1_1RSC_1_1Allocation.html">Allocation</a> into a rectangular region in this <a class="el" href="classandroid_1_1RSC_1_1Allocation.html">Allocation</a>. </p>
379 <tr><td class="paramdir">[in]</td><td class="paramname">xoff</td><td>X offset of region to update in this <a class="el" href="classandroid_1_1RSC_1_1Allocation.html">Allocation</a> </td></tr>
380 <tr><td class="paramdir">[in]</td><td class="paramname">yoff</td><td>Y offset of region to update in this <a class="el" href="classandroid_1_1RSC_1_1Allocation.html">Allocation</a> </td></tr>
383 <tr><td class="paramdir">[in]</td><td class="paramname">data</td><td><a class="el" href="classandroid_1_1RSC_1_1Allocation.html">Allocation</a> from which to copy </td></tr>
392 <a class="anchor" id="a7522ec325ad4b30948b8b060b7750517"></a><!-- doxytag: member="android::RSC::Allocation::copy2DRangeTo" ref="a7522ec325ad4b30948b8b060b7750517" args="(uint32_t xoff, uint32_t yoff, uint32_t w, uint32_t h, void *data)" -->
397 <td class="memname">void android::RSC::Allocation::copy2DRangeTo </td>
434 <p>Copy from this <a class="el" href="classandroid_1_1RSC_1_1Allocation.html">Allocation</a> into a rectangular region in an array. The array is assumed to be tightly packed. </p>
437 <tr><td class="paramdir">[in]</td><td class="paramname">xoff</td><td>X offset of region to copy from this <a class="el" href="classandroid_1_1RSC_1_1Allocation.html">Allocation</a> </td></tr>
438 <tr><td class="paramdir">[in]</td><td class="paramname">yoff</td><td>Y offset of region to copy from this <a class="el" href="classandroid_1_1RSC_1_1Allocation.html">Allocation</a> </td></tr>
448 <a class="anchor" id="a5bb1d1b53dcc255beea566c50d34c3eb"></a><!-- doxytag: member="android::RSC::Allocation::copy2DStridedFrom" ref="a5bb1d1b53dcc255beea566c50d34c3eb" args="(uint32_t xoff, uint32_t yoff, uint32_t w, uint32_t h, const void *data, size_t stride)" -->
453 <td class="memname">void android::RSC::Allocation::copy2DStridedFrom </td>
496 <p>Copy from a strided array into a rectangular region in this <a class="el" href="classandroid_1_1RSC_1_1Allocation.html">Allocation</a>. </p>
499 <tr><td class="paramdir">[in]</td><td class="paramname">xoff</td><td>X offset of region to update in this <a class="el" href="classandroid_1_1RSC_1_1Allocation.html">Allocation</a> </td></tr>
500 <tr><td class="paramdir">[in]</td><td class="paramname">yoff</td><td>Y offset of region to update in this <a class="el" href="classandroid_1_1RSC_1_1Allocation.html">Allocation</a> </td></tr>
511 <a class="anchor" id="aaee42c2bcc21d224191262025fa7bde2"></a><!-- doxytag: member="android::RSC::Allocation::copy2DStridedFrom" ref="aaee42c2bcc21d224191262025fa7bde2" args="(const void *data, size_t stride)" -->
516 <td class="memname">void android::RSC::Allocation::copy2DStridedFrom </td>
535 <p>Copy from a strided array into this <a class="el" href="classandroid_1_1RSC_1_1Allocation.html">Allocation</a>. </p>
546 <a class="anchor" id="ad4f2ce90d548f22d950002c9942833ca"></a><!-- doxytag: member="android::RSC::Allocation::copy2DStridedTo" ref="ad4f2ce90d548f22d950002c9942833ca" args="(uint32_t xoff, uint32_t yoff, uint32_t w, uint32_t h, void *data, size_t stride)" -->
551 <td class="memname">void android::RSC::Allocation::copy2DStridedTo </td>
594 <p>Copy from a rectangular region in this <a class="el" href="classandroid_1_1RSC_1_1Allocation.html">Allocation</a> into a strided array. </p>
597 <tr><td class="paramdir">[in]</td><td class="paramname">xoff</td><td>X offset of region to update in this <a class="el" href="classandroid_1_1RSC_1_1Allocation.html">Allocation</a> </td></tr>
598 <tr><td class="paramdir">[in]</td><td class="paramname">yoff</td><td>Y offset of region to update in this <a class="el" href="classandroid_1_1RSC_1_1Allocation.html">Allocation</a> </td></tr>
609 <a class="anchor" id="a90c89953b5a38489718aec32937a95ac"></a><!-- doxytag: member="android::RSC::Allocation::copy2DStridedTo" ref="a90c89953b5a38489718aec32937a95ac" args="(void *data, size_t stride)" -->
614 <td class="memname">void android::RSC::Allocation::copy2DStridedTo </td>
633 <p>Copy this <a class="el" href="classandroid_1_1RSC_1_1Allocation.html">Allocation</a> into a strided array. </p>
644 <a class="anchor" id="ac0fe786fd3dc0d5e2278b6071ff78d84"></a><!-- doxytag: member="android::RSC::Allocation::copy3DRangeFrom" ref="ac0fe786fd3dc0d5e2278b6071ff78d84" args="(uint32_t xoff, uint32_t yoff, uint32_t zoff, uint32_t w, uint32_t h, uint32_t d, const void *data)" -->
649 <td class="memname">void android::RSC::Allocation::copy3DRangeFrom </td>
698 <p>Copy from an array into a 3D region in this <a class="el" href="classandroid_1_1RSC_1_1Allocation.html">Allocation</a>. The array is assumed to be tightly packed. </p>
701 <tr><td class="paramdir">[in]</td><td class="paramname">xoff</td><td>X offset of region to update in this <a class="el" href="classandroid_1_1RSC_1_1Allocation.html">Allocation</a> </td></tr>
702 <tr><td class="paramdir">[in]</td><td class="paramname">yoff</td><td>Y offset of region to update in this <a class="el" href="classandroid_1_1RSC_1_1Allocation.html">Allocation</a> </td></tr>
703 <tr><td class="paramdir">[in]</td><td class="paramname">zoff</td><td>Z offset of region to update in this <a class="el" href="classandroid_1_1RSC_1_1Allocation.html">Allocation</a> </td></tr>
714 <a class="anchor" id="acfc9d84ddfbbc02bdba706a1b63afd6b"></a><!-- doxytag: member="android::RSC::Allocation::copy3DRangeFrom" ref="acfc9d84ddfbbc02bdba706a1b63afd6b" args="(uint32_t xoff, uint32_t yoff, uint32_t zoff, uint32_t w, uint32_t h, uint32_t d, sp< const Allocation > data, uint32_t dataXoff, uint32_t dataYoff, uint32_t dataZoff)" -->
719 <td class="memname">void android::RSC::Allocation::copy3DRangeFrom </td>
757 <td class="paramtype">sp< const <a class="el" href="classandroid_1_1RSC_1_1Allocation.html">Allocation</a> > </td>
786 <p>Copy from an <a class="el" href="classandroid_1_1RSC_1_1Allocation.html">Allocation</a> into a 3D region in this <a class="el" href="classandroid_1_1RSC_1_1Allocation.html">Allocation</a>. </p>
789 <tr><td class="paramdir">[in]</td><td class="paramname">xoff</td><td>X offset of region to update in this <a class="el" href="classandroid_1_1RSC_1_1Allocation.html">Allocation</a> </td></tr>
790 <tr><td class="paramdir">[in]</td><td class="paramname">yoff</td><td>Y offset of region to update in this <a class="el" href="classandroid_1_1RSC_1_1Allocation.html">Allocation</a> </td></tr>
791 <tr><td class="paramdir">[in]</td><td class="paramname">zoff</td><td>Z offset of region to update in this <a class="el" href="classandroid_1_1RSC_1_1Allocation.html">Allocation</a> </td></tr>
795 <tr><td class="paramdir">[in]</td><td class="paramname">data</td><td><a class="el" href="classandroid_1_1RSC_1_1Allocation.html">Allocation</a> from which to copy </td></tr>
805 <a class="anchor" id="afd281c4fccca4bf1f69dd2cbdfafb96c"></a><!-- doxytag: member="android::RSC::Allocation::createSized" ref="afd281c4fccca4bf1f69dd2cbdfafb96c" args="(sp< RS > rs, sp< const Element > e, size_t count, uint32_t usage=RS_ALLOCATION_USAGE_SCRIPT)" -->
810 <td class="memname">static sp<<a class="el" href="classandroid_1_1RSC_1_1Allocation.html">Allocation</a>> android::RSC::Allocation::createSized </td>
841 <p>Creates an <a class="el" href="classandroid_1_1RSC_1_1Allocation.html">Allocation</a> with a specified number of given elements. </p>
844 <tr><td class="paramdir">[in]</td><td class="paramname">rs</td><td>Context to which the <a class="el" href="classandroid_1_1RSC_1_1Allocation.html">Allocation</a> will belong </td></tr>
845 <tr><td class="paramdir">[in]</td><td class="paramname">e</td><td><a class="el" href="classandroid_1_1RSC_1_1Element.html">Element</a> used in the <a class="el" href="classandroid_1_1RSC_1_1Allocation.html">Allocation</a> </td></tr>
846 <tr><td class="paramdir">[in]</td><td class="paramname">count</td><td>Number of elements of the <a class="el" href="classandroid_1_1RSC_1_1Allocation.html">Allocation</a> </td></tr>
847 <tr><td class="paramdir">[in]</td><td class="paramname">usage</td><td>usage for the <a class="el" href="classandroid_1_1RSC_1_1Allocation.html">Allocation</a> </td></tr>
851 <dl class="return"><dt><b>Returns:</b></dt><dd>new <a class="el" href="classandroid_1_1RSC_1_1Allocation.html">Allocation</a> </dd></dl>
855 <a class="anchor" id="aa20d012e4df254a06c595527e9203e75"></a><!-- doxytag: member="android::RSC::Allocation::createSized2D" ref="aa20d012e4df254a06c595527e9203e75" args="(sp< RS > rs, sp< const Element > e, size_t x, size_t y, uint32_t usage=RS_ALLOCATION_USAGE_SCRIPT)" -->
860 <td class="memname">static sp<<a class="el" href="classandroid_1_1RSC_1_1Allocation.html">Allocation</a>> android::RSC::Allocation::createSized2D </td>
897 <p>Creates a 2D <a class="el" href="classandroid_1_1RSC_1_1Allocation.html">Allocation</a> with a specified number of given elements. </p>
900 <tr><td class="paramdir">[in]</td><td class="paramname">rs</td><td>Context to which the <a class="el" href="classandroid_1_1RSC_1_1Allocation.html">Allocation</a> will belong </td></tr>
901 <tr><td class="paramdir">[in]</td><td class="paramname">e</td><td><a class="el" href="classandroid_1_1RSC_1_1Element.html">Element</a> used in the <a class="el" href="classandroid_1_1RSC_1_1Allocation.html">Allocation</a> </td></tr>
902 <tr><td class="paramdir">[in]</td><td class="paramname">x</td><td>Width in Elements of the <a class="el" href="classandroid_1_1RSC_1_1Allocation.html">Allocation</a> </td></tr>
903 <tr><td class="paramdir">[in]</td><td class="paramname">y</td><td>Height of the <a class="el" href="classandroid_1_1RSC_1_1Allocation.html">Allocation</a> </td></tr>
904 <tr><td class="paramdir">[in]</td><td class="paramname">usage</td><td>usage for the <a class="el" href="classandroid_1_1RSC_1_1Allocation.html">Allocation</a> </td></tr>
908 <dl class="return"><dt><b>Returns:</b></dt><dd>new <a class="el" href="classandroid_1_1RSC_1_1Allocation.html">Allocation</a> </dd></dl>
912 <a class="anchor" id="a983b914efa208763b4b58db62586f138"></a><!-- doxytag: member="android::RSC::Allocation
917 <td class="memname">static sp<<a class="el" href="classandroid_1_1RSC_1_1Allocation.html">Allocation</a>> android::RSC::Allocation::createTyped </td>
948 <p>Creates an <a class="el" href="classandroid_1_1RSC_1_1Allocation.html">Allocation</a> for use by scripts with a given <a class="el" href="classandroid_1_1RSC_1_1Type.html">Type</a>. </p>
951 <tr><td class="paramdir">[in]</td><td class="paramname">rs</td><td>Context to which the <a class="el" href="classandroid_1_1RSC_1_1Allocation.html">Allocation</a> will belong </td></tr>
952 <tr><td class="paramdir">[in]</td><td class="paramname">type</td><td><a class="el" href="classandroid_1_1RSC_1_1Type.html">Type</a> of the <a class="el" href="classandroid_1_1RSC_1_1Allocation.html">Allocation</a> </td></tr>
953 <tr><td class="paramdir">[in]</td><td class="paramname">mipmaps</td><td>desired mipmap behavior for the <a class="el" href="classandroid_1_1RSC_1_1Allocation.html">Allocation</a> </td></tr>
954 <tr><td class="paramdir">[in]</td><td class="paramname">usage</td><td>usage for the <a class="el" href="classandroid_1_1RSC_1_1Allocation.html">Allocation</a> </td></tr>
958 <dl class="return"><dt><b>Returns:</b></dt><dd>new <a class="el" href="classandroid_1_1RSC_1_1Allocation.html">Allocation</a> </dd></dl>
962 <a class="anchor" id="a8951e64fcb95241504a445fa293380e3"></a><!-- doxytag: member="android::RSC::Allocation::createTyped" ref="a8951e64fcb95241504a445fa293380e3" args="(sp< RS > rs, sp< const Type > type, RsAllocationMipmapControl mipmaps, uint32_t usage, void *pointer)" -->
967 <td class="memname">static sp<<a class="el" href="classandroid_1_1RSC_1_1Allocation.html">Allocation</a>> android::RSC::Allocation::createTyped </td>
1004 <p>Creates an <a class="el" href="classandroid_1_1RSC_1_1Allocation.html">Allocation</a> for use by scripts with a given <a class="el" href="classandroid_1_1RSC_1_1Type.html">Type</a> and a backing pointer. For use with RS_ALLOCATION_USAGE_SHARED. </p>
1007 <tr><td class="paramdir">[in]</td><td class="paramname">rs</td><td>Context to which the <a class="el" href="classandroid_1_1RSC_1_1Allocation.html">Allocation</a> will belong </td></tr>
1008 <tr><td class="paramdir">[in]</td><td class="paramname">type</td><td><a class="el" href="classandroid_1_1RSC_1_1Type.html">Type</a> of the <a class="el" href="classandroid_1_1RSC_1_1Allocation.html">Allocation</a> </td></tr>
1009 <tr><td class="paramdir">[in]</td><td class="paramname">mipmaps</td><td>desired mipmap behavior for the <a class="el" href="classandroid_1_1RSC_1_1Allocation.html">Allocation</a> </td></tr>
1010 <tr><td class="paramdir">[in]</td><td class="paramname">usage</td><td>usage for the <a class="el" href="classandroid_1_1RSC_1_1Allocation.html">Allocation</a> </td></tr>
1011 <tr><td class="paramdir">[in]</td><td class="paramname">pointer</td><td>existing backing store to use for this <a class="el" href="classandroid_1_1RSC_1_1Allocation.html">Allocation</a> if possible </td></tr>
1015 <dl class="return"><dt><b>Returns:</b></dt><dd>new <a class="el" href="classandroid_1_1RSC_1_1Allocation.html">Allocation</a> </dd></dl>
1019 <a class="anchor" id="ae0c87f83e692ade1abba9a8db6d40aae"></a><!-- doxytag: member="android::RSC::Allocation::createTyped" ref="ae0c87f83e692ade1abba9a8db6d40aae" args="(sp< RS > rs, sp< const Type > type, uint32_t usage=RS_ALLOCATION_USAGE_SCRIPT)" -->
1024 <td class="memname">static sp<<a class="el" href="classandroid_1_1RSC_1_1Allocation.html">Allocation</a>> android::RSC::Allocation::createTyped </td>
1049 <p>Creates an <a class="el" href="classandroid_1_1RSC_1_1Allocation.html">Allocation</a> for use by scripts with a given <a class="el" href="classandroid_1_1RSC_1_1Type.html">Type</a> with no mipmaps. </p>
1052 <tr><td class="paramdir">[in]</td><td class="paramname">rs</td><td>Context to which the <a class="el" href="classandroid_1_1RSC_1_1Allocation.html">Allocation</a> will belong </td></tr>
1053 <tr><td class="paramdir">[in]</td><td class="paramname">type</td><td><a class="el" href="classandroid_1_1RSC_1_1Type.html">Type</a> of the <a class="el" href="classandroid_1_1RSC_1_1Allocation.html">Allocation</a> </td></tr>
1054 <tr><td class="paramdir">[in]</td><td class="paramname">usage</td><td>usage for the <a class="el" href="classandroid_1_1RSC_1_1Allocation.html">Allocation</a> </td></tr>
1058 <dl class="return"><dt><b>Returns:</b></dt><dd>new <a class="el" href="classandroid_1_1RSC_1_1Allocation.html">Allocation</a> </dd></dl>
1062 <a class="anchor" id="a3c9f32ff3070f8a38e3a8c6e58ed7a82"></a><!-- doxytag: member="android::RSC::Allocation::generateMipmaps" ref="a3c9f32ff3070f8a38e3a8c6e58ed7a82" args="()" -->
1067 <td class="memname">void android::RSC::Allocation::generateMipmaps </td>
1075 <p>Generate a mipmap chain. This is only valid if the <a class="el" href="classandroid_1_1RSC_1_1Type.html">Type</a> of the <a class="el" href="classandroid_1_1RSC_1_1Allocation.html">Allocation</a> includes mipmaps. This function will generate a complete set of mipmaps from the top level LOD and place them into the script memory space. If the <a class="el" href="classandroid_1_1RSC_1_1Allocation.html">Allocation</a> is also using other memory spaces, a call to syncAll(Allocation.USAGE_SCRIPT) is required. </p>
1079 <a class="anchor" id="a5475e41c9a50ece302e238e06e5ba8f4"></a><!-- doxytag: member="android::RSC::Allocation::getType" ref="a5475e41c9a50ece302e238e06e5ba8f4" args="() const " -->
1084 <td class="memname">sp<const <a class="el" href="classandroid_1_1RSC_1_1Type.html">Type</a>> android::RSC::Allocation::getType </td>
1092 <p>Return <a class="el" href="classandroid_1_1RSC_1_1Type.html">Type</a> for the allocation. </p>
1099 <a class="anchor" id="a542d29449331bff6c8506b13c4daefeb"></a><!-- doxytag: member="android::RSC::Allocation::syncAll" ref="a542d29449331bff6c8506b13c4daefeb" args="(RsAllocationUsageType srcLocation)" -->
1104 <td class="memname">void android::RSC::Allocation::syncAll </td>
1113 <p>Propagate changes from one usage of the <a class="el" href="classandroid_1_1RSC_1_1Allocation.html">Allocation</a> to other usages of the <a class="el" href="classandroid_1_1RSC_1_1Allocation.html">Allocation</a>. </p>