Home
last modified time | relevance | path

Searched refs:aout (Results 1 – 25 of 113) sorted by relevance

12345

/frameworks/base/rs/java/android/renderscript/
DScriptIntrinsicBlend.java43 private void blend(int id, Allocation ain, Allocation aout, Script.LaunchOptions opt) { in blend() argument
47 if (!aout.getElement().isCompatible(Element.U8_4(mRS))) { in blend()
50 forEach(id, ain, aout, null, opt); in blend()
59 public void forEachClear(Allocation ain, Allocation aout) { in forEachClear() argument
60 forEachClear(ain, aout, null); in forEachClear()
70 public void forEachClear(Allocation ain, Allocation aout, Script.LaunchOptions opt) { in forEachClear() argument
71 blend(0, ain, aout, opt); in forEachClear()
90 public void forEachSrc(Allocation ain, Allocation aout) { in forEachSrc() argument
91 forEachSrc(ain, aout, null); in forEachSrc()
101 public void forEachSrc(Allocation ain, Allocation aout, Script.LaunchOptions opt) { in forEachSrc() argument
[all …]
DScriptIntrinsicColorMatrix.java224 public void forEach(Allocation ain, Allocation aout) { in forEach() argument
225 forEach(ain, aout, null); in forEach()
244 public void forEach(Allocation ain, Allocation aout, Script.LaunchOptions opt) { in forEach() argument
257 if (!aout.getElement().isCompatible(Element.U8(mRS)) && in forEach()
258 !aout.getElement().isCompatible(Element.U8_2(mRS)) && in forEach()
259 !aout.getElement().isCompatible(Element.U8_3(mRS)) && in forEach()
260 !aout.getElement().isCompatible(Element.U8_4(mRS)) && in forEach()
261 !aout.getElement().isCompatible(Element.F32(mRS)) && in forEach()
262 !aout.getElement().isCompatible(Element.F32_2(mRS)) && in forEach()
263 !aout.getElement().isCompatible(Element.F32_3(mRS)) && in forEach()
[all …]
DScriptIntrinsicBlur.java90 public void forEach(Allocation aout) { in forEach() argument
91 if (aout.getType().getY() == 0) { in forEach()
94 forEach(0, (Allocation) null, aout, null); in forEach()
105 public void forEach(Allocation aout, Script.LaunchOptions opt) { in forEach() argument
106 if (aout.getType().getY() == 0) { in forEach()
109 forEach(0, (Allocation) null, aout, null, opt); in forEach()
DScript.java169 protected void forEach(int slot, Allocation ain, Allocation aout, in forEach() argument
171 forEach(slot, ain, aout, v, null); in forEach()
178 protected void forEach(int slot, Allocation ain, Allocation aout, in forEach() argument
183 mRS.validateObject(aout); in forEach()
185 if (ain == null && aout == null && sc == null) { in forEach()
197 if (aout != null) { in forEach()
198 out_id = aout.getID(mRS); in forEach()
224 protected void forEach(int slot, Allocation[] ains, Allocation aout, in forEach() argument
228 forEach(slot, ains, aout, v, null); in forEach()
234 protected void forEach(int slot, Allocation[] ains, Allocation aout, in forEach() argument
[all …]
DScriptIntrinsicResize.java87 public void forEach_bicubic(Allocation aout) { in forEach_bicubic() argument
88 if (aout == mInput) { in forEach_bicubic()
91 forEach_bicubic(aout, null); in forEach_bicubic()
103 public void forEach_bicubic(Allocation aout, Script.LaunchOptions opt) { in forEach_bicubic() argument
104 forEach(0, (Allocation) null, aout, null, opt); in forEach_bicubic()
/frameworks/rs/support/java/src/android/support/v8/renderscript/
DScriptIntrinsicBlend.java54 private void blend(int id, Allocation ain, Allocation aout) {
58 if (!aout.getElement().isCompatible(Element.U8_4(mRS))) {
61 forEach(id, ain, aout, null);
70 public void forEachClear(Allocation ain, Allocation aout) {
71 blend(0, ain, aout);
90 public void forEachSrc(Allocation ain, Allocation aout) {
91 blend(1, ain, aout);
111 public void forEachDst(Allocation ain, Allocation aout) {
130 public void forEachSrcOver(Allocation ain, Allocation aout) {
131 blend(3, ain, aout);
[all …]
DScriptIntrinsicColorMatrix.java204 public void forEach(Allocation ain, Allocation aout) {
205 forEach(0, ain, aout, null);
224 public void forEach(Allocation ain, Allocation aout, Script.LaunchOptions opt) {
237 if (!aout.getElement().isCompatible(Element.U8(mRS)) &&
238 !aout.getElement().isCompatible(Element.U8_2(mRS)) &&
239 !aout.getElement().isCompatible(Element.U8_3(mRS)) &&
240 !aout.getElement().isCompatible(Element.U8_4(mRS)) &&
241 !aout.getElement().isCompatible(Element.F32(mRS)) &&
242 !aout.getElement().isCompatible(Element.F32_2(mRS)) &&
243 !aout.getElement().isCompatible(Element.F32_3(mRS)) &&
[all …]
DScript.java245 protected void forEach(int slot, Allocation ain, Allocation aout, FieldPacker v) { in forEach() argument
246 if (ain == null && aout == null) { in forEach()
255 if (aout != null) { in forEach()
256 out_id = aout.getID(mRS); in forEach()
266 long aoutInc = getDummyAlloc(aout); in forEach()
282 …protected void forEach(int slot, Allocation ain, Allocation aout, FieldPacker v, LaunchOptions sc)… in forEach() argument
283 if (ain == null && aout == null) { in forEach()
289 forEach(slot, ain, aout, v); in forEach()
297 if (aout != null) { in forEach()
298 out_id = aout.getID(mRS); in forEach()
[all …]
DScriptIntrinsicResize.java97 public void forEach_bicubic(Allocation aout) {
98 if (aout == mInput) {
101 forEach_bicubic(aout, null);
113 public void forEach_bicubic(Allocation aout, Script.LaunchOptions opt) {
114 forEach(0, (Allocation) null, aout, null, opt);
/frameworks/compile/slang/tests/P_root_void/
Droot_void.rs4 void root(const void *ain, void *aout, const void *usrData,
33 void out_only(void *aout) {
36 void out_x_only(void *aout, uint32_t x) {
39 void out_y_only(void *aout, uint32_t y) {
42 void out_x_y_only(void *aout, uint32_t x, uint32_t y) {
45 void out_usrdata_only(void *aout, const void *usrData) {
48 void out_usrdata_x_only(void *aout, const void *usrData, uint32_t x) {
51 void out_usrdata_y_only(void *aout, const void *usrData, uint32_t y) {
54 void out_usrdata_x_y_only(void *aout, const void *usrData, uint32_t x,
58 void in_out_only(const void *ain, void *aout) {
[all …]
/frameworks/compile/slang/tests/P_reduce_general_accumulator/
DScriptC_reduce_general_accumulator.java.expect110 Allocation aout = Allocation.createSized(mRSLocal, __I32, 1);
111 aout.setAutoPadding(true);
112 reduce(mExportReduceIdx_my_half, new Allocation[]{ain1}, aout, sc);
113 return new result_int(aout);
143 Allocation aout = Allocation.createSized(mRSLocal, __I32, 1);
144 aout.setAutoPadding(true);
145 reduce(mExportReduceIdx_my_half2, new Allocation[]{ain1}, aout, sc);
146 return new result_int(aout);
176 Allocation aout = Allocation.createSized(mRSLocal, __I32, 1);
177 aout.setAutoPadding(true);
[all …]
/frameworks/compile/slang/tests/P_reduce_general_input/
DScriptC_reduce_general_input.java.expect178 Allocation aout = Allocation.createSized(mRSLocal, __I32, 1);
179 aout.setAutoPadding(true);
180 reduce(mExportReduceIdx_my_half_0, new Allocation[]{ain1}, aout, sc);
181 return new result_int(aout);
211 Allocation aout = Allocation.createSized(mRSLocal, __I32, 1);
212 aout.setAutoPadding(true);
213 reduce(mExportReduceIdx_my_half_1, new Allocation[]{ain1}, aout, sc);
214 return new result_int(aout);
244 Allocation aout = Allocation.createSized(mRSLocal, __I32, 1);
245 aout.setAutoPadding(true);
[all …]
/frameworks/compile/slang/tests/P_reflection3264_divergent_support/
DScriptC_reflection3264_divergent.java.expect266 public void forEach_dnFe(Allocation ain, Allocation aout, ScriptField_DivergentNest.Item data) {
267 forEach_dnFe(ain, aout, data, null);
270 …public void forEach_dnFe(Allocation ain, Allocation aout, ScriptField_DivergentNest.Item data, Scr…
275 // check aout
276 if (!aout.getType().getElement().isCompatible(__I32)) {
281 t1 = aout.getType();
288 throw new RSRuntimeException("Dimension mismatch between parameters ain and aout!");
301 forEach(mExportForEachIdx_dnFe, ain, aout, dnFe_fp, sc);
309 public void forEach_dFe(Allocation ain, Allocation aout, ScriptField_Divergent.Item data) {
310 forEach_dFe(ain, aout, data, null);
[all …]
/frameworks/compile/slang/tests/P_reflection3264_divergent/
DScriptC_reflection3264_divergent.java.expect269 public void forEach_dnFe(Allocation ain, Allocation aout, ScriptField_DivergentNest.Item data) {
270 forEach_dnFe(ain, aout, data, null);
273 …public void forEach_dnFe(Allocation ain, Allocation aout, ScriptField_DivergentNest.Item data, Scr…
278 // check aout
279 if (!aout.getType().getElement().isCompatible(__I32)) {
284 t1 = aout.getType();
291 throw new RSRuntimeException("Dimension mismatch between parameters ain and aout!");
304 forEach(mExportForEachIdx_dnFe, ain, aout, dnFe_fp, sc);
312 public void forEach_dFe(Allocation ain, Allocation aout, ScriptField_Divergent.Item data) {
313 forEach_dFe(ain, aout, data, null);
[all …]
/frameworks/rs/tests/java_api/LatencyBenchmark/src/com/example/android/rs/computebench/
DBenchmark.java26 private Allocation aout; field in Benchmark
32 aout = Allocation.createSized(rs, Element.U32(mRS), 10000); in Benchmark()
42 mScript.forEach_root(ain, aout); in run()
43 aout.copy1DRangeFrom(0, 1, temp); in run()
50 mScript.set_out(aout); in run()
54 aout.copy1DRangeFrom(0, 1, temp); in run()
/frameworks/compile/slang/tests/P_reduce_general_examples_backward/
DScriptC_reduce_general_examples_backward.java.expect231 Allocation aout = Allocation.createSized(mRSLocal, __I32, 1);
232 aout.setAutoPadding(true);
233 reduce(mExportReduceIdx_addint, new Allocation[]{ain1}, aout, sc);
234 return new result_int(aout);
264 Allocation aout = Allocation.createSized(mRSLocal, __I32, 1);
265 aout.setAutoPadding(true);
266 reduce(mExportReduceIdx_mpyint, new Allocation[]{ain1}, aout, sc);
267 return new result_int(aout);
328 Allocation aout = Allocation.createSized(mRSLocal, __F32, 1);
329 aout.setAutoPadding(true);
[all …]
/frameworks/compile/slang/tests/P_reduce_general_examples/
DScriptC_reduce_general_examples.java.expect231 Allocation aout = Allocation.createSized(mRSLocal, __I32, 1);
232 aout.setAutoPadding(true);
233 reduce(mExportReduceIdx_addint, new Allocation[]{ain1}, aout, sc);
234 return new result_int(aout);
264 Allocation aout = Allocation.createSized(mRSLocal, __I32, 1);
265 aout.setAutoPadding(true);
266 reduce(mExportReduceIdx_mpyint, new Allocation[]{ain1}, aout, sc);
267 return new result_int(aout);
328 Allocation aout = Allocation.createSized(mRSLocal, __F32, 1);
329 aout.setAutoPadding(true);
[all …]
/frameworks/compile/slang/tests/P_reduce_general_result/
DScriptC_reduce_general_result.java.expect2745 Allocation aout = Allocation.createSized(mRSLocal, __F16, 1);
2746 aout.setAutoPadding(true);
2747 reduce(mExportReduceIdx_my_half, new Allocation[]{ain1}, aout, sc);
2748 return new result_half(aout);
2782 Allocation aout = Allocation.createSized(mRSLocal, __F16_2, 1);
2783 aout.setAutoPadding(true);
2784 reduce(mExportReduceIdx_my_half2, new Allocation[]{ain1}, aout, sc);
2785 return new result_half2(aout);
2819 Allocation aout = Allocation.createSized(mRSLocal, __F16_4, 1);
2820 aout.setAutoPadding(true);
[all …]
/frameworks/rs/cpu_ref/
DrsCpuIntrinsic.cpp77 uint32_t inLen, Allocation * aout, in preLaunch() argument
83 uint32_t inLen, Allocation * aout, in postLaunch() argument
91 Allocation * aout, in invokeForEach() argument
98 preLaunch(slot, ains, inLen, aout, usr, usrLen, sc); in invokeForEach()
100 if (forEachMtlsSetup(ains, inLen, aout, usr, usrLen, sc, &mtls)) { in invokeForEach()
108 mCtx->launchForEach(ains, inLen, aout, sc, &mtls); in invokeForEach()
112 postLaunch(slot, ains, inLen, aout, usr, usrLen, sc); in invokeForEach()
/frameworks/compile/slang/tests/P_reduce_general_inputs/
DScriptC_reduce_general_inputs.java.expect181 Allocation aout = Allocation.createSized(mRSLocal, __I32, 1);
182 aout.setAutoPadding(true);
183 reduce(mExportReduceIdx_my_half_half_0, new Allocation[]{ain1, ain2}, aout, sc);
184 return new result_int(aout);
245 Allocation aout = Allocation.createSized(mRSLocal, __I32, 1);
246 aout.setAutoPadding(true);
247 reduce(mExportReduceIdx_my_half_half_1, new Allocation[]{ain1, ain2}, aout, sc);
248 return new result_int(aout);
313 Allocation aout = Allocation.createSized(mRSLocal, __I32, 1);
314 aout.setAutoPadding(true);
[all …]
/frameworks/rs/tests/cpp_api/cppbasic-getpointer/
Dcompute.cpp36 …sp<Allocation> aout = Allocation::createTyped(rs, t, RS_ALLOCATION_USAGE_SCRIPT | RS_ALLOCATION_US… in test_compute() local
37 printf("Allocation %p %p\n", ain.get(), aout.get()); in test_compute()
42 uint32_t *output = (uint32_t*)aout->getPointer(&outputStride); in test_compute()
60 aout->syncAll(RS_ALLOCATION_USAGE_SHARED); in test_compute()
65 sc->forEach_copyAndNot(ain, aout); in test_compute()
71 aout->syncAll(RS_ALLOCATION_USAGE_SCRIPT); in test_compute()
/frameworks/compile/slang/tests/P_reduce_general_examples_explicit/
DScriptC_reduce_general_examples_explicit.java.expect193 Allocation aout = Allocation.createSized(mRSLocal, __I32, 1);
194 aout.setAutoPadding(true);
195 reduce(mExportReduceIdx_addint_init, new Allocation[]{ain1}, aout, sc);
196 return new result_int(aout);
226 Allocation aout = Allocation.createSized(mRSLocal, __I32, 1);
227 aout.setAutoPadding(true);
228 reduce(mExportReduceIdx_addint_comb, new Allocation[]{ain1}, aout, sc);
229 return new result_int(aout);
259 Allocation aout = Allocation.createSized(mRSLocal, __I32, 1);
260 aout.setAutoPadding(true);
[all …]
/frameworks/rs/tests/java_api/RSTest_CompatLibLegacy/src/com/android/rs/test/
Dkernel_struct.rs13 struct simpleStruct *aout;
39 _RS_ASSERT(aout[i].i1 == (i + ain[i].i1));
40 _RS_ASSERT(aout[i].f1 == (i + ain[i].f1));
41 _RS_ASSERT(aout[i].i2 == (i + ain[i].i2));
42 _RS_ASSERT(aout[i].f2 == (i + ain[i].f2));
/frameworks/rs/tests/java_api/RSUnitTests/src/com/android/rs/unittest/
Dkernel_struct.rs29 struct simpleStruct *aout;
55 _RS_ASSERT(aout[i].i1 == (i + ain[i].i1));
56 _RS_ASSERT(aout[i].f1 == (i + ain[i].f1));
57 _RS_ASSERT(aout[i].i2 == (i + ain[i].i2));
58 _RS_ASSERT(aout[i].f2 == (i + ain[i].f2));
/frameworks/rs/tests/java_api/RSUnitTests/supportlibsrc_gen/com/android/rs/unittest/
Dkernel_struct.rs31 struct simpleStruct *aout;
57 _RS_ASSERT(aout[i].i1 == (i + ain[i].i1));
58 _RS_ASSERT(aout[i].f1 == (i + ain[i].f1));
59 _RS_ASSERT(aout[i].i2 == (i + ain[i].i2));
60 _RS_ASSERT(aout[i].f2 == (i + ain[i].f2));

12345