Home
last modified time | relevance | path

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

1234

/frameworks/base/rs/java/android/renderscript/
DScriptIntrinsicBlend.java43 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 …]
DScriptIntrinsicHistogram.java69 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 …]
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
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 …]
DScriptIntrinsic3DLUT.java86 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()
DScriptIntrinsicResize.java52 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/support/v8/renderscript/java/src/android/support/v8/renderscript/
DScriptIntrinsicBlend.java54 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 …]
DScriptIntrinsicHistogram.java79 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 …]
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) {
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 …]
DScript.java42 long getDummyAlloc(Allocation ain) { in getDummyAlloc() argument
46 if (ain != null) { in getDummyAlloc()
47 Type inType = ain.getType(); in getDummyAlloc()
51 dummyAlloc = mRS.nIncAllocationCreateTyped(ain.getID(mRS), dInType, xBytesSize); in getDummyAlloc()
52 ain.setIncAllocID(dummyAlloc); 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 …]
DScriptIntrinsicResize.java62 public void setInput(Allocation ain) {
63 Element e = ain.getElement();
75 mInput = ain;
76 setVar(0, ain);
/frameworks/compile/slang/tests/P_root_void/
Droot_void.rs4 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.cpp33 const Allocation ** ain,
70 static void initABC(const Allocation ** ain, in initABC() argument
79 if (ain[0]) { in initABC()
80 *A = ain[0]->mHal.drvState.lod[0].mallocPtr; in initABC()
81 *lda = (int)(ain[0]->mHal.drvState.lod[0].stride/size); in initABC()
83 if (ain[1]) { in initABC()
84 *B = ain[1]->mHal.drvState.lod[0].mallocPtr; in initABC()
85 *ldb = (int)(ain[1]->mHal.drvState.lod[0].stride/size); in initABC()
87 if (ain[2]) { in initABC()
88 *C = ain[2]->mHal.drvState.lod[0].mallocPtr; in initABC()
[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/java/tests/RSTest_CompatLib/src/com/android/rs/test/
Dkernel.rs3 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]));
Dkernel_struct.rs12 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/java/tests/RSTest_CompatLibLegacy/src/com/android/rs/test/
Dkernel.rs3 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]));
Dkernel_struct.rs12 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/java/tests/RsTest/src/com/android/rs/test/
Dkernel.rs3 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]));
Dkernel_struct.rs12 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/cppbasic-getpointer/
Dcompute.cpp38 …sp<Allocation> ain = Allocation::createTyped(rs, t, RS_ALLOCATION_USAGE_SCRIPT | RS_ALLOCATION_USA… in test_compute() local
40 printf("Allocation %p %p\n", ain.get(), aout.get()); in test_compute()
44 uint32_t *input = (uint32_t*)ain->getPointer(&inputStride); in test_compute()
62 ain->syncAll(RS_ALLOCATION_USAGE_SHARED); in test_compute()
68 sc->forEach_copyAndNot(ain, aout); in test_compute()
73 ain->syncAll(RS_ALLOCATION_USAGE_SCRIPT); in test_compute()
/frameworks/rs/cpp/
DScriptIntrinsics.cpp48 void ScriptIntrinsic3DLUT::forEach(sp<Allocation> ain, sp<Allocation> aout) { in forEach() argument
49 if (ain->getType()->getElement()->isCompatible(mElement) == false || in forEach()
54 Script::forEach(0, ain, aout, nullptr, 0); in forEach()
470 void ScriptIntrinsicHistogram::forEach(sp<Allocation> ain) { in forEach() argument
471 if (ain->getType()->getElement()->getVectorSize() < in forEach()
478 if (!(ain->getType()->getElement()->isCompatible(Element::U8(mRS))) && in forEach()
479 !(ain->getType()->getElement()->isCompatible(Element::U8_4(mRS)))) { in forEach()
485 Script::forEach(0, ain, nullptr, nullptr, 0); in forEach()
489 void ScriptIntrinsicHistogram::forEach_dot(sp<Allocation> ain) { in forEach_dot() argument
496 if (!(ain->getType()->getElement()->isCompatible(Element::U8(mRS))) && in forEach_dot()
[all …]
/frameworks/rs/tests/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/rs/tests/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/java/tests/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/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) {

1234