/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 44 if (!ain.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 | ScriptIntrinsicHistogram.java | 69 public void forEach(Allocation ain) { in forEach() argument 70 forEach(ain, null); in forEach() 87 public void forEach(Allocation ain, Script.LaunchOptions opt) { in forEach() argument 88 if (ain.getType().getElement().getVectorSize() < in forEach() 94 if (!ain.getType().getElement().isCompatible(Element.U8(mRS)) && in forEach() 95 !ain.getType().getElement().isCompatible(Element.U8_2(mRS)) && in forEach() 96 !ain.getType().getElement().isCompatible(Element.U8_3(mRS)) && in forEach() 97 !ain.getType().getElement().isCompatible(Element.U8_4(mRS))) { in forEach() 101 forEach(0, ain, null, null, opt); in forEach() 173 public void forEach_Dot(Allocation ain) { in forEach_Dot() 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 245 if (!ain.getElement().isCompatible(Element.U8(mRS)) && in forEach() 246 !ain.getElement().isCompatible(Element.U8_2(mRS)) && in forEach() 247 !ain.getElement().isCompatible(Element.U8_3(mRS)) && in forEach() 248 !ain.getElement().isCompatible(Element.U8_4(mRS)) && in forEach() 249 !ain.getElement().isCompatible(Element.F32(mRS)) && in forEach() 250 !ain.getElement().isCompatible(Element.F32_2(mRS)) && in forEach() 251 !ain.getElement().isCompatible(Element.F32_3(mRS)) && in forEach() [all …]
|
D | ScriptIntrinsicBlur.java | 61 public void setInput(Allocation ain) { in setInput() argument 62 if (ain.getType().getY() == 0) { in setInput() 65 Element e = ain.getElement(); in setInput() 69 mInput = ain; in setInput() 70 setVar(1, ain); in setInput()
|
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()
|
D | ScriptIntrinsicResize.java | 52 public void setInput(Allocation ain) { in setInput() argument 53 Element e = ain.getElement(); in setInput() 65 mInput = ain; in setInput() 66 setVar(0, ain); in setInput()
|
/frameworks/rs/support/java/src/androidx/renderscript/ |
D | ScriptIntrinsicBlend.java | 54 private void blend(int id, Allocation ain, Allocation aout) { 55 if (!ain.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 | ScriptIntrinsicHistogram.java | 79 public void forEach(Allocation ain) { 80 forEach(ain, null); 97 public void forEach(Allocation ain, Script.LaunchOptions opt) { 98 if (ain.getType().getElement().getVectorSize() < 104 if (!ain.getType().getElement().isCompatible(Element.U8(mRS)) && 105 !ain.getType().getElement().isCompatible(Element.U8_2(mRS)) && 106 !ain.getType().getElement().isCompatible(Element.U8_3(mRS)) && 107 !ain.getType().getElement().isCompatible(Element.U8_4(mRS))) { 111 forEach(0, ain, null, null, opt); 183 public void forEach_Dot(Allocation ain) { [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) { 225 if (!ain.getElement().isCompatible(Element.U8(mRS)) && 226 !ain.getElement().isCompatible(Element.U8_2(mRS)) && 227 !ain.getElement().isCompatible(Element.U8_3(mRS)) && 228 !ain.getElement().isCompatible(Element.U8_4(mRS)) && 229 !ain.getElement().isCompatible(Element.F32(mRS)) && 230 !ain.getElement().isCompatible(Element.F32_2(mRS)) && 231 !ain.getElement().isCompatible(Element.F32_3(mRS)) && [all …]
|
D | Script.java | 42 long getDummyAlloc(Allocation ain) { in getDummyAlloc() argument 46 if (ain != null) { in getDummyAlloc() 47 Type inType = ain.getType(); in getDummyAlloc() 51 placeholderAlloc = mRS.nIncAllocationCreateTyped(ain.getID(mRS), dInType, xBytesSize); in getDummyAlloc() 52 ain.setIncAllocID(placeholderAlloc); in getDummyAlloc() 245 protected void forEach(int slot, Allocation ain, Allocation aout, FieldPacker v) { in forEach() argument 246 if (ain == null && aout == null) { in forEach() 252 if (ain != null) { in forEach() 253 in_id = ain.getID(mRS); in forEach() 265 long ainInc = getDummyAlloc(ain); in forEach() [all …]
|
D | ScriptIntrinsicBlur.java | 74 public void setInput(Allocation ain) { 75 if (ain.getType().getY() == 0) { 78 mInput = ain; 79 setVar(1, ain);
|
/frameworks/compile/slang/tests/P_root_void/ |
D | root_void.rscript | 4 void root(const void *ain, void *aout, const void *usrData, 8 void in_only(const void *ain) { 11 void in_x_only(const void *ain, uint32_t x) { 14 void in_y_only(const void *ain, uint32_t y) { 17 void in_x_y_only(const void *ain, uint32_t x, uint32_t y) { 20 void in_usrdata_only(const void *ain, const void *usrData) { 23 void in_usrdata_x_only(const void *ain, const void *usrData, uint32_t x) { 26 void in_usrdata_y_only(const void *ain, const void *usrData, uint32_t y) { 29 void in_usrdata_x_y_only(const void *ain, const void *usrData, uint32_t x, 58 void in_out_only(const void *ain, void *aout) { [all …]
|
/frameworks/rs/cpu_ref/ |
D | rsCpuIntrinsicBLAS.cpp | 30 const Allocation ** ain, 63 static void initABC(const Allocation ** ain, in initABC() argument 72 if (ain[0]) { in initABC() 73 *A = ain[0]->mHal.drvState.lod[0].mallocPtr; in initABC() 74 *lda = (int)(ain[0]->mHal.drvState.lod[0].stride/size); in initABC() 76 if (ain[1]) { in initABC() 77 *B = ain[1]->mHal.drvState.lod[0].mallocPtr; in initABC() 78 *ldb = (int)(ain[1]->mHal.drvState.lod[0].stride/size); in initABC() 80 if (ain[2]) { in initABC() 81 *C = ain[2]->mHal.drvState.lod[0].mallocPtr; in initABC() [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… 274 // check ain 275 if (!ain.getType().getElement().isCompatible(__I32)) { 283 t0 = ain.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… 271 // check ain 272 if (!ain.getType().getElement().isCompatible(__I32)) { 280 t0 = ain.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/F_fs_ptr/ |
D | fs_ptr.fs | 15 int RS_KERNEL root(uint32_t ain) { 18 c = (char*) ain; // TODO(srhines): This is ok today. 22 void RS_KERNEL in_only(uint32_t ain) { 29 int RS_KERNEL everything(uint32_t ain, uint32_t x, uint32_t y) { 30 return (int)&ain; // TODO(srhines): This is ok today. 33 void old_kernel(const uint32_t *ain, uint32_t x, uint32_t y) {
|
/frameworks/rs/tests/java_api/RSTest_CompatLibLegacy/src/com/android/rs/test/ |
D | kernel.rscript | 3 int *ain; 13 int RS_KERNEL root(int ain, uint32_t x) { 14 _RS_ASSERT(ain == 7); 15 return ain + x; 23 _RS_ASSERT(aout[i] == (i + ain[i]));
|
D | kernel_struct.rscript | 12 struct simpleStruct *ain; 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/cpp_api/cppbasic-getpointer/ |
D | compute.cpp | 35 …sp<Allocation> ain = Allocation::createTyped(rs, t, RS_ALLOCATION_USAGE_SCRIPT | RS_ALLOCATION_USA… in test_compute() local 37 printf("Allocation %p %p\n", ain.get(), aout.get()); in test_compute() 41 uint32_t *input = (uint32_t*)ain->getPointer(&inputStride); in test_compute() 59 ain->syncAll(RS_ALLOCATION_USAGE_SHARED); in test_compute() 65 sc->forEach_copyAndNot(ain, aout); in test_compute() 70 ain->syncAll(RS_ALLOCATION_USAGE_SCRIPT); in test_compute()
|
/frameworks/rs/cpp/ |
D | ScriptIntrinsics.cpp | 58 void ScriptIntrinsic3DLUT::forEach(const sp<Allocation>& ain, const sp<Allocation>& aout) { in forEach() argument 59 if (ain->getType()->getElement()->isCompatible(mElement) == false || in forEach() 64 Script::forEach(0, ain, aout, nullptr, 0); in forEach() 480 void ScriptIntrinsicHistogram::forEach(const sp<Allocation>& ain) { in forEach() argument 481 if (ain->getType()->getElement()->getVectorSize() < in forEach() 488 if (!(ain->getType()->getElement()->isCompatible(Element::U8(mRS))) && in forEach() 489 !(ain->getType()->getElement()->isCompatible(Element::U8_4(mRS)))) { in forEach() 495 Script::forEach(0, ain, nullptr, nullptr, 0); in forEach() 499 void ScriptIntrinsicHistogram::forEach_dot(const sp<Allocation>& ain) { in forEach_dot() argument 506 if (!(ain->getType()->getElement()->isCompatible(Element::U8(mRS))) && in forEach_dot() [all …]
|
/frameworks/rs/tests/java_api/RSUnitTests/src/com/android/rs/unittest/ |
D | kernel.rscript | 19 int *ain; 29 int RS_KERNEL root(int ain, uint32_t x) { 30 _RS_ASSERT(ain == 7); 31 return ain + x; 39 _RS_ASSERT(aout[i] == (i + ain[i]));
|
/frameworks/rs/tests/cpp_api/latency/ |
D | latency.cpp | 70 sp<Allocation> ain = Allocation::createTyped(rs, t); in main() local 80 sc->forEach_root(ain, aout); in main() 94 ain->copy1DFrom(buf); in main() 95 sc->forEach_root(ain, aout); in main() 109 ain.clear(); in main()
|
/frameworks/rs/tests/java_api/RSUnitTests/supportlibsrc_gen/com/android/rs/unittest/ |
D | kernel.rscript | 21 int *ain; 31 int RS_KERNEL root(int ain, uint32_t x) { 32 _RS_ASSERT(ain == 7); 33 return ain + x; 41 _RS_ASSERT(aout[i] == (i + ain[i]));
|
/frameworks/rs/tests/cpp_api/cppallocation/ |
D | compute.cpp | 33 sp<Allocation> ain = Allocation::createTyped(rs, t); in main() local 43 ain->copy1DRangeFrom(0, numElems, buf); in main() 45 sc->forEach_multiply(ain, aout); in main() 61 ain.clear(); in main()
|
/frameworks/rs/tests/java_api/LatencyBenchmark/src/com/example/android/rs/computebench/ |
D | Benchmark.java | 25 private Allocation ain; field in Benchmark 31 ain = Allocation.createSized(rs, Element.U32(mRS), 10000); in Benchmark() 42 mScript.forEach_root(ain, aout); in run() 49 mScript.set_in(ain); in run()
|