Home
last modified time | relevance | path

Searched refs:ain (Results 1 – 25 of 89) sorted by relevance

1234

/frameworks/base/rs/java/android/renderscript/
DScriptIntrinsicBlend.java48 private void blend(int id, Allocation ain, Allocation aout, Script.LaunchOptions opt) { in blend() argument
49 if (!ain.getElement().isCompatible(Element.U8_4(mRS))) { in blend()
55 forEach(id, ain, aout, null, opt); in blend()
64 public void forEachClear(Allocation ain, Allocation aout) { in forEachClear() argument
65 forEachClear(ain, aout, null); in forEachClear()
75 public void forEachClear(Allocation ain, Allocation aout, Script.LaunchOptions opt) { in forEachClear() argument
76 blend(0, ain, aout, opt); in forEachClear()
95 public void forEachSrc(Allocation ain, Allocation aout) { in forEachSrc() argument
96 forEachSrc(ain, aout, null); in forEachSrc()
106 public void forEachSrc(Allocation ain, Allocation aout, Script.LaunchOptions opt) { in forEachSrc() argument
[all …]
DScriptIntrinsicHistogram.java72 public void forEach(Allocation ain) { in forEach() argument
73 forEach(ain, null); in forEach()
90 public void forEach(Allocation ain, Script.LaunchOptions opt) { in forEach() argument
91 if (ain.getType().getElement().getVectorSize() < in forEach()
97 if (!ain.getType().getElement().isCompatible(Element.U8(mRS)) && in forEach()
98 !ain.getType().getElement().isCompatible(Element.U8_2(mRS)) && in forEach()
99 !ain.getType().getElement().isCompatible(Element.U8_3(mRS)) && in forEach()
100 !ain.getType().getElement().isCompatible(Element.U8_4(mRS))) { in forEach()
104 forEach(0, ain, null, null, opt); in forEach()
176 public void forEach_Dot(Allocation ain) { in forEach_Dot() argument
[all …]
DScriptIntrinsicColorMatrix.java229 public void forEach(Allocation ain, Allocation aout) { in forEach() argument
230 forEach(ain, aout, null); in forEach()
249 public void forEach(Allocation ain, Allocation aout, Script.LaunchOptions opt) { in forEach() argument
250 if (!ain.getElement().isCompatible(Element.U8(mRS)) && in forEach()
251 !ain.getElement().isCompatible(Element.U8_2(mRS)) && in forEach()
252 !ain.getElement().isCompatible(Element.U8_3(mRS)) && in forEach()
253 !ain.getElement().isCompatible(Element.U8_4(mRS)) && in forEach()
254 !ain.getElement().isCompatible(Element.F32(mRS)) && in forEach()
255 !ain.getElement().isCompatible(Element.F32_2(mRS)) && in forEach()
256 !ain.getElement().isCompatible(Element.F32_3(mRS)) && in forEach()
[all …]
DScriptIntrinsicBlur.java64 public void setInput(Allocation ain) { in setInput() argument
65 if (ain.getType().getY() == 0) { in setInput()
68 Element e = ain.getElement(); in setInput()
72 mInput = ain; in setInput()
73 setVar(1, ain); in setInput()
DScriptIntrinsic3DLUT.java90 public void forEach(Allocation ain, Allocation aout) { in forEach() argument
91 forEach(ain, aout, null); in forEach()
102 public void forEach(Allocation ain, Allocation aout, Script.LaunchOptions opt) { in forEach() argument
103 forEach(0, ain, aout, null, opt); in forEach()
DScriptIntrinsicResize.java57 public void setInput(Allocation ain) { in setInput() argument
58 Element e = ain.getElement(); in setInput()
70 mInput = ain; in setInput()
71 setVar(0, ain); in setInput()
/frameworks/rs/support/java/src/androidx/renderscript/
DScriptIntrinsicBlend.java59 private void blend(int id, Allocation ain, Allocation aout) {
60 if (!ain.getElement().isCompatible(Element.U8_4(mRS))) {
66 forEach(id, ain, aout, null);
75 public void forEachClear(Allocation ain, Allocation aout) {
76 blend(0, ain, aout);
95 public void forEachSrc(Allocation ain, Allocation aout) {
96 blend(1, ain, aout);
116 public void forEachDst(Allocation ain, Allocation aout) {
135 public void forEachSrcOver(Allocation ain, Allocation aout) {
136 blend(3, ain, aout);
[all …]
DScriptIntrinsicHistogram.java82 public void forEach(Allocation ain) {
83 forEach(ain, null);
100 public void forEach(Allocation ain, Script.LaunchOptions opt) {
101 if (ain.getType().getElement().getVectorSize() <
107 if (!ain.getType().getElement().isCompatible(Element.U8(mRS)) &&
108 !ain.getType().getElement().isCompatible(Element.U8_2(mRS)) &&
109 !ain.getType().getElement().isCompatible(Element.U8_3(mRS)) &&
110 !ain.getType().getElement().isCompatible(Element.U8_4(mRS))) {
114 forEach(0, ain, null, null, opt);
186 public void forEach_Dot(Allocation ain) {
[all …]
DScriptIntrinsicColorMatrix.java209 public void forEach(Allocation ain, Allocation aout) {
210 forEach(0, ain, aout, null);
229 public void forEach(Allocation ain, Allocation aout, Script.LaunchOptions opt) {
230 if (!ain.getElement().isCompatible(Element.U8(mRS)) &&
231 !ain.getElement().isCompatible(Element.U8_2(mRS)) &&
232 !ain.getElement().isCompatible(Element.U8_3(mRS)) &&
233 !ain.getElement().isCompatible(Element.U8_4(mRS)) &&
234 !ain.getElement().isCompatible(Element.F32(mRS)) &&
235 !ain.getElement().isCompatible(Element.F32_2(mRS)) &&
236 !ain.getElement().isCompatible(Element.F32_3(mRS)) &&
[all …]
DScript.java47 long getDummyAlloc(Allocation ain) { in getDummyAlloc() argument
51 if (ain != null) { in getDummyAlloc()
52 Type inType = ain.getType(); in getDummyAlloc()
56 placeholderAlloc = mRS.nIncAllocationCreateTyped(ain.getID(mRS), dInType, xBytesSize); in getDummyAlloc()
57 ain.setIncAllocID(placeholderAlloc); in getDummyAlloc()
250 protected void forEach(int slot, Allocation ain, Allocation aout, FieldPacker v) { in forEach() argument
251 if (ain == null && aout == null) { in forEach()
257 if (ain != null) { in forEach()
258 in_id = ain.getID(mRS); in forEach()
270 long ainInc = getDummyAlloc(ain); in forEach()
[all …]
DScriptIntrinsicBlur.java77 public void setInput(Allocation ain) {
78 if (ain.getType().getY() == 0) {
81 mInput = ain;
82 setVar(1, ain);
/frameworks/compile/slang/tests/P_root_void/
Droot_void.rscript4 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/
DrsCpuIntrinsicBLAS.cpp30 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/
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…
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/
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…
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/
Dfs_ptr.fs15 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/cpp_api/cppbasic-getpointer/
Dcompute.cpp35 …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/tests/java_api/RSUnitTests/src/com/android/rs/unittest/
Dkernel.rscript19 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/cpp/
DScriptIntrinsics.cpp58 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/supportlibsrc_gen/com/android/rs/unittest/
Dkernel.rscript21 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/latency/
Dlatency.cpp70 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/compile/slang/tests/P_fs_kernel/
Dfs_kernel.fs4 int RS_KERNEL root(uint32_t ain) {
8 void RS_KERNEL in_only(uint32_t ain) {
15 int RS_KERNEL everything(uint32_t ain, uint32_t x, uint32_t y) {
/frameworks/rs/tests/cpp_api/cppallocation/
Dcompute.cpp33 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/
DBenchmark.java25 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()
/frameworks/rs/tests/cpp_api/cpp-globalguard/
Dcompute.cpp26 sp<Allocation> ain; variable
56 ain = Allocation::createTyped(rs, t); in main()
66 ain->copy1DRangeFrom(0, numElems, buf); in main()
68 sc->forEach_multiply(ain, aout); in main()

1234