HomeSort by relevance Sort by last modified time
    Searched refs:ain (Results 1 - 25 of 56) sorted by null

1 2 3

  /frameworks/base/rs/java/android/renderscript/
ScriptIntrinsicBlend.java 43 private void blend(int id, Allocation ain, Allocation aout, Script.LaunchOptions opt) {
44 if (!ain.getElement().isCompatible(Element.U8_4(mRS))) {
50 forEach(id, ain, aout, null, opt);
56 * @param ain The source buffer
59 public void forEachClear(Allocation ain, Allocation aout) {
60 forEachClear(ain, aout, null);
66 * @param ain The source buffer
70 public void forEachClear(Allocation ain, Allocation aout, Script.LaunchOptions opt) {
71 blend(0, ain, aout, opt);
87 * @param ain The source buffe
    [all...]
ScriptIntrinsicYuvToRGB.java 55 * @param ain The input allocation.
57 public void setInput(Allocation ain) {
58 mInput = ain;
59 setVar(0, ain);
ScriptIntrinsicHistogram.java 67 * @param ain The input image
69 public void forEach(Allocation ain) {
70 forEach(ain, null);
84 * @param ain The input image
87 public void forEach(Allocation ain, Script.LaunchOptions opt) {
88 if (ain.getType().getElement().getVectorSize() <
94 if (!ain.getType().getElement().isCompatible(Element.U8(mRS)) &&
95 !ain.getType().getElement().isCompatible(Element.U8_2(mRS)) &&
96 !ain.getType().getElement().isCompatible(Element.U8_3(mRS)) &&
97 !ain.getType().getElement().isCompatible(Element.U8_4(mRS)))
    [all...]
ScriptIntrinsic3DLUT.java 80 * Invoke the kernel and apply the lookup to each cell of ain
83 * @param ain Input allocation
86 public void forEach(Allocation ain, Allocation aout) {
87 forEach(ain, aout, null);
91 * Invoke the kernel and apply the lookup to each cell of ain
94 * @param ain Input allocation
98 public void forEach(Allocation ain, Allocation aout, Script.LaunchOptions opt) {
99 forEach(0, ain, aout, null, opt);
ScriptIntrinsicResize.java 50 * @param ain The input allocation.
52 public void setInput(Allocation ain) {
53 Element e = ain.getElement();
65 mInput = ain;
66 setVar(0, ain);
ScriptIntrinsicLUT.java 118 * Invoke the kernel and apply the lookup to each cell of ain
121 * @param ain Input allocation
124 public void forEach(Allocation ain, Allocation aout) {
125 forEach(ain, aout, null);
129 * Invoke the kernel and apply the lookup to each cell of ain
132 * @param ain Input allocation
136 public void forEach(Allocation ain, Allocation aout, Script.LaunchOptions opt) {
141 forEach(0, ain, aout, null, opt);
ScriptIntrinsicBlur.java 59 * @param ain The input allocation
61 public void setInput(Allocation ain) {
62 mInput = ain;
63 setVar(1, ain);
ScriptIntrinsicColorMatrix.java 221 * @param ain Input allocation
224 public void forEach(Allocation ain, Allocation aout) {
225 forEach(ain, aout, null);
240 * @param ain Input allocation
244 public void forEach(Allocation ain, Allocation aout, Script.LaunchOptions opt) {
245 if (!ain.getElement().isCompatible(Element.U8(mRS)) &&
246 !ain.getElement().isCompatible(Element.U8_2(mRS)) &&
247 !ain.getElement().isCompatible(Element.U8_3(mRS)) &&
248 !ain.getElement().isCompatible(Element.U8_4(mRS)) &&
249 !ain.getElement().isCompatible(Element.F32(mRS)) &
    [all...]
ScriptIntrinsicConvolve5x5.java 72 * @param ain The input allocation.
74 public void setInput(Allocation ain) {
75 mInput = ain;
76 setVar(1, ain);
ScriptIntrinsicConvolve3x3.java 72 * @param ain The input allocation.
74 public void setInput(Allocation ain) {
75 mInput = ain;
76 setVar(1, ain);
  /frameworks/support/v8/renderscript/java/src/android/support/v8/renderscript/
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);
67 * @param ain The source buffer
70 public void forEachClear(Allocation ain, Allocation aout) {
71 blend(0, ain, aout);
87 * @param ain The source buffer
90 public void forEachSrc(Allocation ain, Allocation aout) {
91 blend(1, ain, aout);
108 * @param ain The source buffe
    [all...]
ScriptIntrinsicHistogram.java 77 * @param ain The input image
79 public void forEach(Allocation ain) {
80 forEach(ain, null);
94 * @param ain The input image
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)))
    [all...]
ScriptIntrinsicYuvToRGB.java 63 * @param ain The input allocation.
65 public void setInput(Allocation ain) {
66 mInput = ain;
67 setVar(0, ain);
ScriptIntrinsicResize.java 60 * @param ain The input allocation.
62 public void setInput(Allocation ain) {
63 Element e = ain.getElement();
75 mInput = ain;
76 setVar(0, ain);
ScriptIntrinsicBlur.java 72 * @param ain The input allocation
74 public void setInput(Allocation ain) {
75 mInput = ain;
76 setVar(1, ain);
ScriptIntrinsicColorMatrix.java 198 * Invoke the kernel and apply the matrix to each cell of ain and copy to
201 * @param ain Input allocation
204 public void forEach(Allocation ain, Allocation aout) {
205 forEach(0, ain, aout, null);
220 * @param ain Input allocation
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)) &
    [all...]
Script.java 39 * e.g. foreach(ain, aout), setVar(ain);
42 long getDummyAlloc(Allocation ain) {
46 if (ain != null) {
47 Type inType = ain.getType();
51 dummyAlloc = mRS.nIncAllocationCreateTyped(ain.getID(mRS), dInType, xBytesSize);
52 ain.setIncAllocID(dummyAlloc);
241 * @param ain
245 protected void forEach(int slot, Allocation ain, Allocation aout, FieldPacker v) {
246 if (ain == null && aout == null)
    [all...]
  /cts/tests/tests/renderscript/src/android/renderscript/cts/
KernelInputTest.java 69 Allocation ain = Allocation.createSized(mRS, Element.I8(mRS), 1); local
73 ain.copyFrom(new byte[]{ (byte) 6 });
74 script.forEach_clear_input_char(ain, tmp);
75 script.invoke_verify_input_char(ain);
82 Allocation ain = Allocation.createSized(mRS, Element.I8_2(mRS), 1); local
86 ain.copyFrom(new byte[]{ (byte) 127, (byte) 3 });
87 script.forEach_clear_input_char2(ain, tmp);
88 script.invoke_verify_input_char2(ain);
95 Allocation ain = Allocation.createSized(mRS, Element.I8_3(mRS), 1); local
99 ain.copyFrom(new byte[]{ (byte) 127, (byte) 3, (byte) 4, 0 })
108 Allocation ain = Allocation.createSized(mRS, Element.I8_4(mRS), 1); local
121 Allocation ain = Allocation.createSized(mRS, Element.F64(mRS), 1); local
134 Allocation ain = Allocation.createSized(mRS, Element.F64_2(mRS), 1); local
147 Allocation ain = Allocation.createSized(mRS, Element.F64_3(mRS), 1); local
160 Allocation ain = Allocation.createSized(mRS, Element.F64_4(mRS), 1); local
173 Allocation ain = Allocation.createSized(mRS, Element.F32(mRS), 1); local
186 Allocation ain = Allocation.createSized(mRS, Element.F32_2(mRS), 1); local
199 Allocation ain = Allocation.createSized(mRS, Element.F32_3(mRS), 1); local
212 Allocation ain = Allocation.createSized(mRS, Element.F32_4(mRS), 1); local
225 Allocation ain = Allocation.createSized(mRS, Element.I32(mRS), 1); local
238 Allocation ain = Allocation.createSized(mRS, Element.I32_2(mRS), 1); local
251 Allocation ain = Allocation.createSized(mRS, Element.I32_3(mRS), 1); local
264 Allocation ain = Allocation.createSized(mRS, Element.I32_4(mRS), 1); local
277 Allocation ain = Allocation.createSized(mRS, Element.I64(mRS), 1); local
290 Allocation ain = Allocation.createSized(mRS, Element.I64_2(mRS), 1); local
303 Allocation ain = Allocation.createSized(mRS, Element.I64_3(mRS), 1); local
316 Allocation ain = Allocation.createSized(mRS, Element.I64_4(mRS), 1); local
329 Allocation ain = Allocation.createSized(mRS, Element.I16(mRS), 1); local
342 Allocation ain = Allocation.createSized(mRS, Element.I16_2(mRS), 1); local
355 Allocation ain = Allocation.createSized(mRS, Element.I16_3(mRS), 1); local
368 Allocation ain = Allocation.createSized(mRS, Element.I16_4(mRS), 1); local
381 Allocation ain = Allocation.createSized(mRS, Element.U8(mRS), 1); local
394 Allocation ain = Allocation.createSized(mRS, Element.U8_2(mRS), 1); local
407 Allocation ain = Allocation.createSized(mRS, Element.U8_3(mRS), 1); local
420 Allocation ain = Allocation.createSized(mRS, Element.U8_4(mRS), 1); local
433 Allocation ain = Allocation.createSized(mRS, Element.U32(mRS), 1); local
446 Allocation ain = Allocation.createSized(mRS, Element.U32_2(mRS), 1); local
459 Allocation ain = Allocation.createSized(mRS, Element.U32_3(mRS), 1); local
472 Allocation ain = Allocation.createSized(mRS, Element.U32_4(mRS), 1); local
485 Allocation ain = Allocation.createSized(mRS, Element.U64(mRS), 1); local
498 Allocation ain = Allocation.createSized(mRS, Element.U64_2(mRS), 1); local
511 Allocation ain = Allocation.createSized(mRS, Element.U64_3(mRS), 1); local
524 Allocation ain = Allocation.createSized(mRS, Element.U64_4(mRS), 1); local
537 Allocation ain = Allocation.createSized(mRS, Element.U16(mRS), 1); local
550 Allocation ain = Allocation.createSized(mRS, Element.U16_2(mRS), 1); local
563 Allocation ain = Allocation.createSized(mRS, Element.U16_3(mRS), 1); local
576 Allocation ain = Allocation.createSized(mRS, Element.U16_4(mRS), 1); local
    [all...]
  /frameworks/rs/java/tests/LatencyBenchmark/src/com/example/android/rs/computebench/
Benchmark.java 25 private Allocation ain; field in class:Benchmark
31 ain = Allocation.createSized(rs, Element.U32(mRS), 10000);
42 mScript.forEach_root(ain, aout);
49 mScript.set_in(ain);
  /frameworks/rs/tests/cppallocation/
compute.cpp 33 sp<Allocation> ain = Allocation::createTyped(rs, t); local
43 ain->copy1DRangeFrom(0, numElems, buf);
45 sc->forEach_multiply(ain, aout);
61 ain.clear();
  /frameworks/rs/cpu_ref/
rsCpuIntrinsicBLAS.cpp 33 const Allocation ** ain,
70 static void initABC(const Allocation ** ain,
79 if (ain[0]) {
80 *A = ain[0]->mHal.drvState.lod[0].mallocPtr;
81 *lda = (int)(ain[0]->mHal.drvState.lod[0].stride/size);
83 if (ain[1]) {
84 *B = ain[1]->mHal.drvState.lod[0].mallocPtr;
85 *ldb = (int)(ain[1]->mHal.drvState.lod[0].stride/size);
87 if (ain[2]) {
88 *C = ain[2]->mHal.drvState.lod[0].mallocPtr
    [all...]
  /frameworks/rs/tests/cppbasic-getpointer/
compute.cpp 38 sp<Allocation> ain = Allocation::createTyped(rs, t, RS_ALLOCATION_USAGE_SCRIPT | RS_ALLOCATION_USAGE_SHARED); local
40 printf("Allocation %p %p\n", ain.get(), aout.get());
44 uint32_t *input = (uint32_t*)ain->getPointer(&inputStride);
62 ain->syncAll(RS_ALLOCATION_USAGE_SHARED);
68 sc->forEach_copyAndNot(ain, aout);
73 ain->syncAll(RS_ALLOCATION_USAGE_SCRIPT);
  /frameworks/rs/tests/cppstrided/
compute.cpp 35 sp<Allocation> ain = Allocation::createTyped(rs, t); local
52 ain->copy2DStridedFrom(buf, stride * sizeof(uint32_t));
54 sc->forEach_multiply(ain, aout);
72 ain.clear();
  /frameworks/rs/tests/latency/
latency.cpp 70 sp<Allocation> ain = Allocation::createTyped(rs, t); local
80 sc->forEach_root(ain, aout);
94 ain->copy1DFrom(buf);
95 sc->forEach_root(ain, aout);
109 ain.clear();
  /frameworks/rs/cpp/
Script.cpp 29 void Script::forEach(uint32_t slot, sp<const Allocation> ain, sp<const Allocation> aout,
31 if ((ain == nullptr) && (aout == nullptr)) {
32 mRS->throwError(RS_ERROR_INVALID_PARAMETER, "At least one of ain or aout is required to be non-null.");
34 void *in_id = BaseObj::getObjID(ain);

Completed in 372 milliseconds

1 2 3