1dc6720f34bf5c1de7ff5001fddd1958e41926761Robert Ly<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2dc6720f34bf5c1de7ff5001fddd1958e41926761Robert Ly<html xmlns="http://www.w3.org/1999/xhtml">
3dc6720f34bf5c1de7ff5001fddd1958e41926761Robert Ly<head>
4dc6720f34bf5c1de7ff5001fddd1958e41926761Robert Ly<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
5dc6720f34bf5c1de7ff5001fddd1958e41926761Robert Ly
6fd73b5844c9a25038ad31c872529e269536d2e70Robert Ly<title>rs_allocation.rsh Source File</title>
7dc6720f34bf5c1de7ff5001fddd1958e41926761Robert Ly<link href="tabs.css" rel="stylesheet" type="text/css"/>
8dc6720f34bf5c1de7ff5001fddd1958e41926761Robert Ly<link href="doxygen.css" rel="stylesheet" type="text/css" />
9dc6720f34bf5c1de7ff5001fddd1958e41926761Robert Ly
10dc6720f34bf5c1de7ff5001fddd1958e41926761Robert Ly
11dc6720f34bf5c1de7ff5001fddd1958e41926761Robert Ly
12dc6720f34bf5c1de7ff5001fddd1958e41926761Robert Ly</head>
13dc6720f34bf5c1de7ff5001fddd1958e41926761Robert Ly<body>
14dc6720f34bf5c1de7ff5001fddd1958e41926761Robert Ly<div id="top"><!-- do not remove this div! -->
15dc6720f34bf5c1de7ff5001fddd1958e41926761Robert Ly
16dc6720f34bf5c1de7ff5001fddd1958e41926761Robert Ly
17dc6720f34bf5c1de7ff5001fddd1958e41926761Robert Ly<!-- Generated by Doxygen 1.7.5.1 -->
18dc6720f34bf5c1de7ff5001fddd1958e41926761Robert Ly  <div id="navrow1" class="tabs">
19dc6720f34bf5c1de7ff5001fddd1958e41926761Robert Ly    <ul class="tablist">
20dc6720f34bf5c1de7ff5001fddd1958e41926761Robert Ly      <li><a href="index.html"><span>Overview</span></a></li>
21dc6720f34bf5c1de7ff5001fddd1958e41926761Robert Ly      <li class="current"><a href="globals.html"><span>Globals</span></a></li>
22dc6720f34bf5c1de7ff5001fddd1958e41926761Robert Ly      <li><a href="annotated.html"><span>Structs</span></a></li>
23dc6720f34bf5c1de7ff5001fddd1958e41926761Robert Ly    </ul>
24dc6720f34bf5c1de7ff5001fddd1958e41926761Robert Ly  </div>
25dc6720f34bf5c1de7ff5001fddd1958e41926761Robert Ly<div class="header">
26dc6720f34bf5c1de7ff5001fddd1958e41926761Robert Ly  <div class="headertitle">
27fd73b5844c9a25038ad31c872529e269536d2e70Robert Ly<div class="title">rs_allocation.rsh</div>  </div>
28dc6720f34bf5c1de7ff5001fddd1958e41926761Robert Ly</div>
29dc6720f34bf5c1de7ff5001fddd1958e41926761Robert Ly<div class="contents">
30dc6720f34bf5c1de7ff5001fddd1958e41926761Robert Ly<a href="rs__allocation_8rsh.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/*</span>
31dc6720f34bf5c1de7ff5001fddd1958e41926761Robert Ly<a name="l00002"></a>00002 <span class="comment"> * Copyright (C) 2011 The Android Open Source Project</span>
32dc6720f34bf5c1de7ff5001fddd1958e41926761Robert Ly<a name="l00003"></a>00003 <span class="comment"> *</span>
33dc6720f34bf5c1de7ff5001fddd1958e41926761Robert Ly<a name="l00004"></a>00004 <span class="comment"> * Licensed under the Apache License, Version 2.0 (the &quot;License&quot;);</span>
34dc6720f34bf5c1de7ff5001fddd1958e41926761Robert Ly<a name="l00005"></a>00005 <span class="comment"> * you may not use this file except in compliance with the License.</span>
35dc6720f34bf5c1de7ff5001fddd1958e41926761Robert Ly<a name="l00006"></a>00006 <span class="comment"> * You may obtain a copy of the License at</span>
36dc6720f34bf5c1de7ff5001fddd1958e41926761Robert Ly<a name="l00007"></a>00007 <span class="comment"> *</span>
37dc6720f34bf5c1de7ff5001fddd1958e41926761Robert Ly<a name="l00008"></a>00008 <span class="comment"> *      http://www.apache.org/licenses/LICENSE-2.0</span>
38dc6720f34bf5c1de7ff5001fddd1958e41926761Robert Ly<a name="l00009"></a>00009 <span class="comment"> *</span>
39dc6720f34bf5c1de7ff5001fddd1958e41926761Robert Ly<a name="l00010"></a>00010 <span class="comment"> * Unless required by applicable law or agreed to in writing, software</span>
40dc6720f34bf5c1de7ff5001fddd1958e41926761Robert Ly<a name="l00011"></a>00011 <span class="comment"> * distributed under the License is distributed on an &quot;AS IS&quot; BASIS,</span>
41dc6720f34bf5c1de7ff5001fddd1958e41926761Robert Ly<a name="l00012"></a>00012 <span class="comment"> * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.</span>
42dc6720f34bf5c1de7ff5001fddd1958e41926761Robert Ly<a name="l00013"></a>00013 <span class="comment"> * See the License for the specific language governing permissions and</span>
43dc6720f34bf5c1de7ff5001fddd1958e41926761Robert Ly<a name="l00014"></a>00014 <span class="comment"> * limitations under the License.</span>
44dc6720f34bf5c1de7ff5001fddd1958e41926761Robert Ly<a name="l00015"></a>00015 <span class="comment"> */</span>
45dc6720f34bf5c1de7ff5001fddd1958e41926761Robert Ly<a name="l00016"></a>00016 
46dc6720f34bf5c1de7ff5001fddd1958e41926761Robert Ly<a name="l00023"></a>00023 <span class="preprocessor">#ifndef __RS_ALLOCATION_RSH__</span>
47dc6720f34bf5c1de7ff5001fddd1958e41926761Robert Ly<a name="l00024"></a>00024 <span class="preprocessor"></span><span class="preprocessor">#define __RS_ALLOCATION_RSH__</span>
48dc6720f34bf5c1de7ff5001fddd1958e41926761Robert Ly<a name="l00025"></a>00025 <span class="preprocessor"></span>
49dc6720f34bf5c1de7ff5001fddd1958e41926761Robert Ly<a name="l00031"></a>00031 <span class="keyword">extern</span> <a class="code" href="structrs__allocation.html" title="Opaque handle to a Renderscript allocation.">rs_allocation</a> __attribute__((overloadable))
50dc6720f34bf5c1de7ff5001fddd1958e41926761Robert Ly<a name="l00032"></a>00032     <a class="code" href="rs__allocation_8rsh.html#aadad7654929c451be299df125061c9ba">rsGetAllocation</a>(const <span class="keywordtype">void</span> *);
51dc6720f34bf5c1de7ff5001fddd1958e41926761Robert Ly<a name="l00033"></a>00033 
52dc6720f34bf5c1de7ff5001fddd1958e41926761Robert Ly<a name="l00039"></a>00039 extern <a class="code" href="rs__types_8rsh.html#a435d1572bf3f880d55459d9805097f62">uint32_t</a> __attribute__((overloadable))
53dc6720f34bf5c1de7ff5001fddd1958e41926761Robert Ly<a name="l00040"></a>00040     <a class="code" href="rs__allocation_8rsh.html#a3ca7f505a97d5b7f477bc65b9e77dafb">rsAllocationGetDimX</a>(<a class="code" href="structrs__allocation.html" title="Opaque handle to a Renderscript allocation.">rs_allocation</a>);
54dc6720f34bf5c1de7ff5001fddd1958e41926761Robert Ly<a name="l00041"></a>00041 
55dc6720f34bf5c1de7ff5001fddd1958e41926761Robert Ly<a name="l00047"></a>00047 extern <a class="code" href="rs__types_8rsh.html#a435d1572bf3f880d55459d9805097f62">uint32_t</a> __attribute__((overloadable))
56dc6720f34bf5c1de7ff5001fddd1958e41926761Robert Ly<a name="l00048"></a>00048     <a class="code" href="rs__allocation_8rsh.html#ac889b866b465580eb313e5d2a9fcac3d">rsAllocationGetDimY</a>(rs_allocation);
57dc6720f34bf5c1de7ff5001fddd1958e41926761Robert Ly<a name="l00049"></a>00049 
58dc6720f34bf5c1de7ff5001fddd1958e41926761Robert Ly<a name="l00055"></a>00055 extern <a class="code" href="rs__types_8rsh.html#a435d1572bf3f880d55459d9805097f62">uint32_t</a> __attribute__((overloadable))
59dc6720f34bf5c1de7ff5001fddd1958e41926761Robert Ly<a name="l00056"></a>00056     <a class="code" href="rs__allocation_8rsh.html#acd6f1a2b2443e6ea39e6154577645d2c">rsAllocationGetDimZ</a>(rs_allocation);
60dc6720f34bf5c1de7ff5001fddd1958e41926761Robert Ly<a name="l00057"></a>00057 
61dc6720f34bf5c1de7ff5001fddd1958e41926761Robert Ly<a name="l00063"></a>00063 extern <a class="code" href="rs__types_8rsh.html#a435d1572bf3f880d55459d9805097f62">uint32_t</a> __attribute__((overloadable))
62dc6720f34bf5c1de7ff5001fddd1958e41926761Robert Ly<a name="l00064"></a>00064     <a class="code" href="rs__allocation_8rsh.html#ac42a07c079d6b3c6bb21975170d4e11c">rsAllocationGetDimLOD</a>(rs_allocation);
63dc6720f34bf5c1de7ff5001fddd1958e41926761Robert Ly<a name="l00065"></a>00065 
64dc6720f34bf5c1de7ff5001fddd1958e41926761Robert Ly<a name="l00071"></a>00071 extern <a class="code" href="rs__types_8rsh.html#a435d1572bf3f880d55459d9805097f62">uint32_t</a> __attribute__((overloadable))
65dc6720f34bf5c1de7ff5001fddd1958e41926761Robert Ly<a name="l00072"></a>00072     <a class="code" href="rs__allocation_8rsh.html#ac85f7ed88f38b35482c6d63b56d470fe">rsAllocationGetDimFaces</a>(rs_allocation);
66dc6720f34bf5c1de7ff5001fddd1958e41926761Robert Ly<a name="l00073"></a>00073 
67dc6720f34bf5c1de7ff5001fddd1958e41926761Robert Ly<a name="l00074"></a>00074 <span class="preprocessor">#if (defined(RS_VERSION) &amp;&amp; (RS_VERSION &gt;= 14))</span>
68dc6720f34bf5c1de7ff5001fddd1958e41926761Robert Ly<a name="l00075"></a>00075 <span class="preprocessor"></span>
69dc6720f34bf5c1de7ff5001fddd1958e41926761Robert Ly<a name="l00089"></a>00089 <span class="keyword">extern</span> <span class="keywordtype">void</span> __attribute__((overloadable))
70dc6720f34bf5c1de7ff5001fddd1958e41926761Robert Ly<a name="l00090"></a>00090     rsAllocationCopy1DRange(rs_allocation dstAlloc,
71dc6720f34bf5c1de7ff5001fddd1958e41926761Robert Ly<a name="l00091"></a>00091                             <a class="code" href="rs__types_8rsh.html#a435d1572bf3f880d55459d9805097f62">uint32_t</a> dstOff, <a class="code" href="rs__types_8rsh.html#a435d1572bf3f880d55459d9805097f62">uint32_t</a> dstMip,
72dc6720f34bf5c1de7ff5001fddd1958e41926761Robert Ly<a name="l00092"></a>00092                             <a class="code" href="rs__types_8rsh.html#a435d1572bf3f880d55459d9805097f62">uint32_t</a> count,
73dc6720f34bf5c1de7ff5001fddd1958e41926761Robert Ly<a name="l00093"></a>00093                             rs_allocation srcAlloc,
74dc6720f34bf5c1de7ff5001fddd1958e41926761Robert Ly<a name="l00094"></a>00094                             <a class="code" href="rs__types_8rsh.html#a435d1572bf3f880d55459d9805097f62">uint32_t</a> srcOff, <a class="code" href="rs__types_8rsh.html#a435d1572bf3f880d55459d9805097f62">uint32_t</a> srcMip);
75dc6720f34bf5c1de7ff5001fddd1958e41926761Robert Ly<a name="l00095"></a>00095 
76dc6720f34bf5c1de7ff5001fddd1958e41926761Robert Ly<a name="l00117"></a>00117 extern <span class="keywordtype">void</span> __attribute__((overloadable))
77dc6720f34bf5c1de7ff5001fddd1958e41926761Robert Ly<a name="l00118"></a>00118     rsAllocationCopy2DRange(rs_allocation dstAlloc,
78dc6720f34bf5c1de7ff5001fddd1958e41926761Robert Ly<a name="l00119"></a>00119                             <a class="code" href="rs__types_8rsh.html#a435d1572bf3f880d55459d9805097f62">uint32_t</a> dstXoff, <a class="code" href="rs__types_8rsh.html#a435d1572bf3f880d55459d9805097f62">uint32_t</a> dstYoff,
79dc6720f34bf5c1de7ff5001fddd1958e41926761Robert Ly<a name="l00120"></a>00120                             <a class="code" href="rs__types_8rsh.html#a435d1572bf3f880d55459d9805097f62">uint32_t</a> dstMip,
80dc6720f34bf5c1de7ff5001fddd1958e41926761Robert Ly<a name="l00121"></a>00121                             rs_allocation_cubemap_face dstFace,
81dc6720f34bf5c1de7ff5001fddd1958e41926761Robert Ly<a name="l00122"></a>00122                             <a class="code" href="rs__types_8rsh.html#a435d1572bf3f880d55459d9805097f62">uint32_t</a> width, <a class="code" href="rs__types_8rsh.html#a435d1572bf3f880d55459d9805097f62">uint32_t</a> height,
82dc6720f34bf5c1de7ff5001fddd1958e41926761Robert Ly<a name="l00123"></a>00123                             rs_allocation srcAlloc,
83dc6720f34bf5c1de7ff5001fddd1958e41926761Robert Ly<a name="l00124"></a>00124                             <a class="code" href="rs__types_8rsh.html#a435d1572bf3f880d55459d9805097f62">uint32_t</a> srcXoff, <a class="code" href="rs__types_8rsh.html#a435d1572bf3f880d55459d9805097f62">uint32_t</a> srcYoff,
84dc6720f34bf5c1de7ff5001fddd1958e41926761Robert Ly<a name="l00125"></a>00125                             <a class="code" href="rs__types_8rsh.html#a435d1572bf3f880d55459d9805097f62">uint32_t</a> srcMip,
85dc6720f34bf5c1de7ff5001fddd1958e41926761Robert Ly<a name="l00126"></a>00126                             rs_allocation_cubemap_face srcFace);
86dc6720f34bf5c1de7ff5001fddd1958e41926761Robert Ly<a name="l00127"></a>00127 
87dc6720f34bf5c1de7ff5001fddd1958e41926761Robert Ly<a name="l00128"></a>00128 <span class="preprocessor">#endif //defined(RS_VERSION) &amp;&amp; (RS_VERSION &gt;= 14)</span>
88dc6720f34bf5c1de7ff5001fddd1958e41926761Robert Ly<a name="l00129"></a>00129 <span class="preprocessor"></span>
89dc6720f34bf5c1de7ff5001fddd1958e41926761Robert Ly<a name="l00133"></a>00133 <span class="keyword">extern</span> <span class="keyword">const</span> <span class="keywordtype">void</span> * __attribute__((overloadable))
90dc6720f34bf5c1de7ff5001fddd1958e41926761Robert Ly<a name="l00134"></a>00134     <a class="code" href="rs__allocation_8rsh.html#a3fd30b4388748601e025bb3566ce0cbc">rsGetElementAt</a>(rs_allocation, <a class="code" href="rs__types_8rsh.html#a435d1572bf3f880d55459d9805097f62">uint32_t</a> x);
91dc6720f34bf5c1de7ff5001fddd1958e41926761Robert Ly<a name="l00138"></a>00138 extern const <span class="keywordtype">void</span> * __attribute__((overloadable))
92dc6720f34bf5c1de7ff5001fddd1958e41926761Robert Ly<a name="l00139"></a>00139     <a class="code" href="rs__allocation_8rsh.html#a3fd30b4388748601e025bb3566ce0cbc">rsGetElementAt</a>(rs_allocation, <a class="code" href="rs__types_8rsh.html#a435d1572bf3f880d55459d9805097f62">uint32_t</a> x, <a class="code" href="rs__types_8rsh.html#a435d1572bf3f880d55459d9805097f62">uint32_t</a> y);
93dc6720f34bf5c1de7ff5001fddd1958e41926761Robert Ly<a name="l00143"></a>00143 extern const <span class="keywordtype">void</span> * __attribute__((overloadable))
94dc6720f34bf5c1de7ff5001fddd1958e41926761Robert Ly<a name="l00144"></a>00144     <a class="code" href="rs__allocation_8rsh.html#a3fd30b4388748601e025bb3566ce0cbc">rsGetElementAt</a>(rs_allocation, <a class="code" href="rs__types_8rsh.html#a435d1572bf3f880d55459d9805097f62">uint32_t</a> x, <a class="code" href="rs__types_8rsh.html#a435d1572bf3f880d55459d9805097f62">uint32_t</a> y, <a class="code" href="rs__types_8rsh.html#a435d1572bf3f880d55459d9805097f62">uint32_t</a> z);
95dc6720f34bf5c1de7ff5001fddd1958e41926761Robert Ly<a name="l00145"></a>00145 
96fd73b5844c9a25038ad31c872529e269536d2e70Robert Ly<a name="l00146"></a>00146 <span class="comment">// New API&#39;s</span>
97fd73b5844c9a25038ad31c872529e269536d2e70Robert Ly<a name="l00147"></a>00147 <span class="preprocessor">#if (defined(RS_VERSION) &amp;&amp; (RS_VERSION &gt;= 16))</span>
98fd73b5844c9a25038ad31c872529e269536d2e70Robert Ly<a name="l00148"></a>00148 <span class="preprocessor"></span>
99fd73b5844c9a25038ad31c872529e269536d2e70Robert Ly<a name="l00153"></a>00153 <span class="keyword">extern</span> <span class="keyword">const</span> <span class="keywordtype">void</span> __attribute__((overloadable))
100fd73b5844c9a25038ad31c872529e269536d2e70Robert Ly<a name="l00154"></a>00154     rsAllocationIoSend(rs_allocation a);
101fd73b5844c9a25038ad31c872529e269536d2e70Robert Ly<a name="l00155"></a>00155 
102fd73b5844c9a25038ad31c872529e269536d2e70Robert Ly<a name="l00160"></a>00160 extern const <span class="keywordtype">void</span> __attribute__((overloadable))
103fd73b5844c9a25038ad31c872529e269536d2e70Robert Ly<a name="l00161"></a>00161     rsAllocationIoReceive(rs_allocation a);
104fd73b5844c9a25038ad31c872529e269536d2e70Robert Ly<a name="l00162"></a>00162 
105fd73b5844c9a25038ad31c872529e269536d2e70Robert Ly<a name="l00163"></a>00163 
106fd73b5844c9a25038ad31c872529e269536d2e70Robert Ly<a name="l00169"></a>00169 extern <a class="code" href="structrs__element.html" title="Opaque handle to a Renderscript element.">rs_element</a> __attribute__((overloadable))
107fd73b5844c9a25038ad31c872529e269536d2e70Robert Ly<a name="l00170"></a>00170     rsAllocationGetElement(rs_allocation a);
108fd73b5844c9a25038ad31c872529e269536d2e70Robert Ly<a name="l00171"></a>00171 
109fd73b5844c9a25038ad31c872529e269536d2e70Robert Ly<a name="l00178"></a>00178 extern const <a class="code" href="rs__types_8rsh.html#adb5162dc168ddd471d948faa60b37c5e">float4</a> __attribute__((overloadable))
110fd73b5844c9a25038ad31c872529e269536d2e70Robert Ly<a name="l00179"></a>00179     rsSample(rs_allocation a, <a class="code" href="structrs__sampler.html" title="Opaque handle to a Renderscript sampler object.">rs_sampler</a> s, <span class="keywordtype">float</span> location);
111fd73b5844c9a25038ad31c872529e269536d2e70Robert Ly<a name="l00189"></a>00189 extern const <a class="code" href="rs__types_8rsh.html#adb5162dc168ddd471d948faa60b37c5e">float4</a> __attribute__((overloadable))
112fd73b5844c9a25038ad31c872529e269536d2e70Robert Ly<a name="l00190"></a>00190     rsSample(rs_allocation a, <a class="code" href="structrs__sampler.html" title="Opaque handle to a Renderscript sampler object.">rs_sampler</a> s, <span class="keywordtype">float</span> location, <span class="keywordtype">float</span> lod);
113fd73b5844c9a25038ad31c872529e269536d2e70Robert Ly<a name="l00191"></a>00191 
114fd73b5844c9a25038ad31c872529e269536d2e70Robert Ly<a name="l00198"></a>00198 extern const <a class="code" href="rs__types_8rsh.html#adb5162dc168ddd471d948faa60b37c5e">float4</a> __attribute__((overloadable))
115fd73b5844c9a25038ad31c872529e269536d2e70Robert Ly<a name="l00199"></a>00199     rsSample(rs_allocation a, <a class="code" href="structrs__sampler.html" title="Opaque handle to a Renderscript sampler object.">rs_sampler</a> s, <a class="code" href="rs__types_8rsh.html#a5086d0fcb71f916c936af486ccf0dd41">float2</a> location);
116fd73b5844c9a25038ad31c872529e269536d2e70Robert Ly<a name="l00200"></a>00200 
117fd73b5844c9a25038ad31c872529e269536d2e70Robert Ly<a name="l00210"></a>00210 extern const <a class="code" href="rs__types_8rsh.html#adb5162dc168ddd471d948faa60b37c5e">float4</a> __attribute__((overloadable))
118fd73b5844c9a25038ad31c872529e269536d2e70Robert Ly<a name="l00211"></a>00211     rsSample(rs_allocation a, <a class="code" href="structrs__sampler.html" title="Opaque handle to a Renderscript sampler object.">rs_sampler</a> s, <a class="code" href="rs__types_8rsh.html#a5086d0fcb71f916c936af486ccf0dd41">float2</a> location, <span class="keywordtype">float</span> lod);
119fd73b5844c9a25038ad31c872529e269536d2e70Robert Ly<a name="l00212"></a>00212 
120fd73b5844c9a25038ad31c872529e269536d2e70Robert Ly<a name="l00213"></a>00213 <span class="preprocessor">#endif // (defined(RS_VERSION) &amp;&amp; (RS_VERSION &gt;= 16))</span>
121fd73b5844c9a25038ad31c872529e269536d2e70Robert Ly<a name="l00214"></a>00214 <span class="preprocessor"></span>
122fd73b5844c9a25038ad31c872529e269536d2e70Robert Ly<a name="l00215"></a>00215 <span class="preprocessor">#endif</span>
123fd73b5844c9a25038ad31c872529e269536d2e70Robert Ly<a name="l00216"></a>00216 <span class="preprocessor"></span>
124dc6720f34bf5c1de7ff5001fddd1958e41926761Robert Ly</pre></div></div>
125dc6720f34bf5c1de7ff5001fddd1958e41926761Robert Ly</div>
126dc6720f34bf5c1de7ff5001fddd1958e41926761Robert Ly
127dc6720f34bf5c1de7ff5001fddd1958e41926761Robert Ly</body>
128dc6720f34bf5c1de7ff5001fddd1958e41926761Robert Ly</html>
129