Searched defs:ain (Results 1 - 25 of 50) sorted by last modified time

12

/frameworks/rs/cpp/
H A DScript.cpp29 void Script::forEach(uint32_t slot, sp<const Allocation> ain, sp<const Allocation> aout, argument
31 if ((ain == NULL) && (aout == NULL)) {
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);
H A DScriptIntrinsics.cpp47 void ScriptIntrinsic3DLUT::forEach(sp<Allocation> ain, sp<Allocation> aout) { argument
48 if (ain->getType()->getElement()->isCompatible(mElement) == false ||
53 Script::forEach(0, ain, aout, NULL, 0);
471 void ScriptIntrinsicHistogram::forEach(sp<Allocation> ain) { argument
472 if (ain->getType()->getElement()->getVectorSize() <
479 if (!(ain->getType()->getElement()->isCompatible(Element::U8(mRS))) ||
480 !(ain->getType()->getElement()->isCompatible(Element::U8_4(mRS)))) {
486 Script::forEach(0, ain, NULL, NULL, 0);
490 void ScriptIntrinsicHistogram::forEach_dot(sp<Allocation> ain) { argument
497 if (!(ain
527 forEach(sp<Allocation> ain, sp<Allocation> aout) argument
[all...]
/frameworks/rs/cpu_ref/
H A DrsCpuCore.cpp402 void RsdCpuReferenceImpl::launchThreads(const Allocation * ain, Allocation * aout, argument
H A DrsCpuCore.h58 const Allocation * ain; member in struct:android::renderscript::__anon1608
97 void launchThreads(const Allocation * ain, Allocation * aout,
H A DrsCpuIntrinsic.cpp76 void RsdCpuScriptIntrinsic::preLaunch(uint32_t slot, const Allocation * ain, argument
81 void RsdCpuScriptIntrinsic::postLaunch(uint32_t slot, const Allocation * ain, argument
87 const Allocation * ain,
94 preLaunch(slot, ain, aout, usr, usrLen, sc);
96 forEachMtlsSetup(ain, aout, usr, usrLen, sc, &mtls);
104 mCtx->launchThreads(ain, aout, sc, &mtls);
107 postLaunch(slot, ain, aout, usr, usrLen, sc);
86 invokeForEach(uint32_t slot, const Allocation * ain, Allocation * aout, const void * usr, uint32_t usrLen, const RsScriptCall *sc) argument
H A DrsCpuIntrinsicHistogram.cpp39 void preLaunch(uint32_t slot, const Allocation * ain,
42 void postLaunch(uint32_t slot, const Allocation * ain,
100 void RsdCpuScriptIntrinsicHistogram::preLaunch(uint32_t slot, const Allocation * ain, argument
126 switch(ain->getType()->getElement()->getVectorSize()) {
145 void RsdCpuScriptIntrinsicHistogram::postLaunch(uint32_t slot, const Allocation * ain, argument
H A DrsCpuScript.cpp743 void RsdCpuScriptImpl::forEachMtlsSetup(const Allocation * ain, Allocation * aout, argument
751 if (ain && (const uint8_t *)ain->mHal.drvState.lod[0].mallocPtr == NULL) {
760 if (ain) {
761 mtls->fep.dimX = ain->getType()->getDimX();
762 mtls->fep.dimY = ain->getType()->getDimY();
763 mtls->fep.dimZ = ain->getType()->getDimZ();
764 //mtls->dimArray = ain->getType()->getDimArray();
813 rsAssert(!ain || (ain
843 invokeForEach(uint32_t slot, const Allocation * ain, Allocation * aout, const void * usr, uint32_t usrLen, const RsScriptCall *sc) argument
1120 preLaunch(uint32_t slot, const Allocation * ain, Allocation * aout, const void * usr, uint32_t usrLen, const RsScriptCall *sc) argument
1126 postLaunch(uint32_t slot, const Allocation * ain, Allocation * aout, const void * usr, uint32_t usrLen, const RsScriptCall *sc) argument
[all...]
H A DrsCpuScriptGroup.cpp139 Allocation *ain = NULL; local
152 ain = n->mInputs[ct3]->mAlloc.get();
153 //ALOGE(" link in %p", ain);
158 ain = mSG->mInputs[ct3]->mAlloc.get();
160 //ALOGE(" io in %p", ain);
182 (k->mHasKernelInput == (ain != NULL))) {
183 ins.add(ain);
/frameworks/rs/driver/
H A DrsdBcc.cpp70 const Allocation * ain,
77 cs->invokeForEach(slot, ain, aout, usr, usrLen, sc);
67 rsdScriptInvokeForEach(const Context *rsc, Script *s, uint32_t slot, const Allocation * ain, Allocation * aout, const void * usr, size_t usrLen, const RsScriptCall *sc) argument
/frameworks/rs/java/tests/LatencyBenchmark/src/com/example/android/rs/computebench/
H A DBenchmark.java25 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/
H A DrsScriptC.cpp165 const Allocation * ain,
187 rsc->mHal.funcs.script.invokeForEach(rsc, this, slot, ain, aout, usr, usrBytes, sc);
163 runForEach(Context *rsc, uint32_t slot, const Allocation * ain, Allocation * aout, const void * usr, size_t usrBytes, const RsScriptCall *sc) argument
H A DrsScriptGroup.cpp297 Allocation *ain = NULL; local
302 ain = n->mInputs[ct3]->mAlloc.get();
303 //ALOGE(" link in %p", ain);
308 ain = mInputs[ct3]->mAlloc.get();
309 //ALOGE(" io in %p", ain);
326 n->mScript->runForEach(rsc, k->mSlot, ain, aout, NULL, 0);
H A DrsScriptIntrinsic.cpp61 const Allocation * ain,
67 rsc->mHal.funcs.script.invokeForEach(rsc, this, slot, ain, aout, usr, usrBytes, sc);
59 runForEach(Context *rsc, uint32_t slot, const Allocation * ain, Allocation * aout, const void * usr, size_t usrBytes, const RsScriptCall *sc) argument
/frameworks/rs/tests/cppallocation/
H A Dcompute.cpp33 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/tests/cppbasic/
H A Dcompute.cpp31 sp<Allocation> ain = Allocation::createTyped(rs, t); local
33 printf("Allocation %p %p\n", ain.get(), aout.get());
52 ain->copy1DRangeFrom(0, t->getCount(), buf);
55 sc->forEach_root(ain, aout);
/frameworks/rs/tests/cppstrided/
H A Dcompute.cpp35 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/
H A Dlatency.cpp70 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/support/v8/renderscript/java/src/android/support/v8/renderscript/
H A DRenderScript.java460 native void rsnScriptForEach(int con, int id, int slot, int ain, int aout, byte[] params); argument
461 native void rsnScriptForEach(int con, int id, int slot, int ain, int aout); argument
462 native void rsnScriptForEachClipped(int con, int id, int slot, int ain, int aout, byte[] params, argument
464 native void rsnScriptForEachClipped(int con, int id, int slot, int ain, int aout, argument
466 synchronized void nScriptForEach(int id, int slot, int ain, int aout, byte[] params) { argument
469 rsnScriptForEach(mContext, id, slot, ain, aout);
471 rsnScriptForEach(mContext, id, slot, ain, aout, params);
475 synchronized void nScriptForEachClipped(int id, int slot, int ain, int aout, byte[] params, argument
479 rsnScriptForEachClipped(mContext, id, slot, ain, aout, xstart, xend, ystart, yend, zstart, zend);
481 rsnScriptForEachClipped(mContext, id, slot, ain, aou
[all...]
H A DScript.java223 * @param ain
227 protected void forEach(int slot, Allocation ain, Allocation aout, FieldPacker v) { argument
229 mT.thunkForEach(slot, ain, aout, v);
233 if (ain == null && aout == null) {
235 "At least one of ain or aout is required to be non-null.");
238 if (ain != null) {
239 in_id = ain.getID(mRS);
256 * @param ain
261 protected void forEach(int slot, Allocation ain, Allocation aout, FieldPacker v, LaunchOptions sc) { argument
263 mT.thunkForEach(slot, ain, aou
[all...]
H A DScriptCThunker.java100 void thunkForEach(int slot, Allocation ain, Allocation aout, FieldPacker v) { argument
104 if (ain != null) {
105 nin = ((AllocationThunker)ain).mN;
120 void thunkForEach(int slot, Allocation ain, Allocation aout, FieldPacker v, argument
134 if (ain != null) {
135 nin = ((AllocationThunker)ain).mN;
H A DScriptIntrinsic3DLUT.java89 * Invoke the kernel and apply the lookup to each cell of ain
92 * @param ain Input allocation
95 public void forEach(Allocation ain, Allocation aout) { argument
96 forEach(0, ain, aout, null);
H A DScriptIntrinsic3DLUTThunker.java60 * Invoke the kernel and apply the lookup to each cell of ain
63 * @param ain Input allocation
66 public void forEach(Allocation ain, Allocation aout) { argument
67 AllocationThunker aint = (AllocationThunker)ain;
H A DScriptIntrinsicBlend.java48 private void blend(int id, Allocation ain, Allocation aout) { argument
49 if (!ain.getElement().isCompatible(Element.U8_4(mRS))) {
55 forEach(id, ain, aout, null);
61 * @param ain The source buffer
64 public void forEachClear(Allocation ain, Allocation aout) { argument
65 blend(0, ain, aout);
81 * @param ain The source buffer
84 public void forEachSrc(Allocation ain, Allocation aout) { argument
85 blend(1, ain, aout);
102 * @param ain Th
105 forEachDst(Allocation ain, Allocation aout) argument
124 forEachSrcOver(Allocation ain, Allocation aout) argument
143 forEachDstOver(Allocation ain, Allocation aout) argument
162 forEachSrcIn(Allocation ain, Allocation aout) argument
181 forEachDstIn(Allocation ain, Allocation aout) argument
200 forEachSrcOut(Allocation ain, Allocation aout) argument
219 forEachDstOut(Allocation ain, Allocation aout) argument
239 forEachSrcAtop(Allocation ain, Allocation aout) argument
259 forEachDstAtop(Allocation ain, Allocation aout) argument
278 forEachXor(Allocation ain, Allocation aout) argument
307 forEachMultiply(Allocation ain, Allocation aout) argument
403 forEachAdd(Allocation ain, Allocation aout) argument
422 forEachSubtract(Allocation ain, Allocation aout) argument
[all...]
H A DScriptIntrinsicBlendThunker.java43 public void forEachClear(Allocation ain, Allocation aout) { argument
44 AllocationThunker aint = (AllocationThunker)ain;
64 public void forEachSrc(Allocation ain, Allocation aout) { argument
65 AllocationThunker aint = (AllocationThunker)ain;
85 public void forEachDst(Allocation ain, Allocation aout) { argument
86 AllocationThunker aint = (AllocationThunker)ain;
106 public void forEachSrcOver(Allocation ain, Allocation aout) { argument
107 AllocationThunker aint = (AllocationThunker)ain;
127 public void forEachDstOver(Allocation ain, Allocation aout) { argument
128 AllocationThunker aint = (AllocationThunker)ain;
148 forEachSrcIn(Allocation ain, Allocation aout) argument
169 forEachDstIn(Allocation ain, Allocation aout) argument
190 forEachSrcOut(Allocation ain, Allocation aout) argument
211 forEachDstOut(Allocation ain, Allocation aout) argument
232 forEachSrcAtop(Allocation ain, Allocation aout) argument
253 forEachDstAtop(Allocation ain, Allocation aout) argument
274 forEachXor(Allocation ain, Allocation aout) argument
295 forEachMultiply(Allocation ain, Allocation aout) argument
316 forEachAdd(Allocation ain, Allocation aout) argument
337 forEachSubtract(Allocation ain, Allocation aout) argument
[all...]
H A DScriptIntrinsicBlur.java66 * @param ain The input allocation
68 public void setInput(Allocation ain) { argument
69 mInput = ain;
70 setVar(1, ain);

Completed in 78 milliseconds

12