/frameworks/base/rs/java/android/renderscript/ |
D | ScriptIntrinsicBlend.java | 43 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 …]
|
D | ScriptIntrinsicColorMatrix.java | 224 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 …]
|
D | ScriptIntrinsicBlur.java | 94 public void forEach(Allocation aout) { in forEach() argument 95 if (aout.getType().getY() == 0) { in forEach() 98 forEach(0, (Allocation) null, aout, null); in forEach() 109 public void forEach(Allocation aout, Script.LaunchOptions opt) { in forEach() argument 110 if (aout.getType().getY() == 0) { in forEach() 113 forEach(0, (Allocation) null, aout, null, opt); in forEach()
|
D | Script.java | 170 protected void forEach(int slot, Allocation ain, Allocation aout, in forEach() argument 172 forEach(slot, ain, aout, v, null); in forEach() 179 protected void forEach(int slot, Allocation ain, Allocation aout, in forEach() argument 184 mRS.validateObject(aout); in forEach() 186 if (ain == null && aout == null && sc == null) { in forEach() 198 if (aout != null) { in forEach() 199 out_id = aout.getID(mRS); in forEach() 225 protected void forEach(int slot, Allocation[] ains, Allocation aout, in forEach() argument 229 forEach(slot, ains, aout, v, null); in forEach() 235 protected void forEach(int slot, Allocation[] ains, Allocation aout, in forEach() argument [all …]
|
D | ScriptIntrinsicResize.java | 87 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()
|
D | ScriptIntrinsic3DLUT.java | 86 public void forEach(Allocation ain, Allocation aout) { in forEach() argument 87 forEach(ain, aout, null); in forEach() 98 public void forEach(Allocation ain, Allocation aout, Script.LaunchOptions opt) { in forEach() argument 99 forEach(0, ain, aout, null, opt); in forEach()
|
/frameworks/rs/support/java/src/androidx/renderscript/ |
D | ScriptIntrinsicBlend.java | 54 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 …]
|
D | ScriptIntrinsicColorMatrix.java | 204 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 …]
|
D | Script.java | 245 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 …]
|
D | ScriptIntrinsicResize.java | 97 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/ |
D | root_void.rscript | 4 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/ |
D | ScriptC_reduce_general_accumulator.java.expect | 110 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/ |
D | ScriptC_reduce_general_input.java.expect | 178 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/ |
D | ScriptC_reflection3264_divergent.java.expect | 269 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/compile/slang/tests/P_reflection3264_divergent_support/ |
D | ScriptC_reflection3264_divergent.java.expect | 266 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/rs/tests/java_api/LatencyBenchmark/src/com/example/android/rs/computebench/ |
D | Benchmark.java | 26 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/ |
D | ScriptC_reduce_general_examples.java.expect | 231 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_backward/ |
D | ScriptC_reduce_general_examples_backward.java.expect | 231 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/ |
D | ScriptC_reduce_general_result.java.expect | 2745 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/ |
D | rsCpuIntrinsic.cpp | 77 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()
|
D | rsCpuScript.cpp | 557 const Allocation * aout, in reduceMtlsSetup() argument 560 rsAssert(ains && (inLen >= 1) && aout); in reduceMtlsSetup() 572 if (allocationLODIsNull(aout)) { in reduceMtlsSetup() 610 mtls->redp.outPtr[0] = (uint8_t *)aout->mHal.drvState.lod[0].mallocPtr; in reduceMtlsSetup() 611 mtls->redp.outStride[0] = aout->getType()->getElementSizeBytes(); in reduceMtlsSetup() 628 Allocation * aout, in forEachMtlsSetup() argument 649 if (allocationLODIsNull(aout)) { in forEachMtlsSetup() 677 } else if (aout != nullptr) { in forEachMtlsSetup() 678 const Type *outType = aout->getType(); in forEachMtlsSetup() 694 if (inLen > 0 && aout != nullptr) { in forEachMtlsSetup() [all …]
|
/frameworks/compile/slang/tests/P_reduce_general_inputs/ |
D | ScriptC_reduce_general_inputs.java.expect | 181 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/ |
D | compute.cpp | 36 …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/ |
D | ScriptC_reduce_general_examples_explicit.java.expect | 193 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/ |
D | kernel_struct.rscript | 13 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));
|