Searched defs:ains (Results 1 - 18 of 18) sorted by relevance

/frameworks/rs/cpu_ref/
H A DrsCpuIntrinsic.cpp76 void RsdCpuScriptIntrinsic::preLaunch(uint32_t slot, const Allocation ** ains, argument
82 void RsdCpuScriptIntrinsic::postLaunch(uint32_t slot, const Allocation ** ains, argument
89 const Allocation ** ains,
98 preLaunch(slot, ains, inLen, aout, usr, usrLen, sc);
100 if (forEachMtlsSetup(ains, inLen, aout, usr, usrLen, sc, &mtls)) {
108 mCtx->launchForEach(ains, inLen, aout, sc, &mtls);
112 postLaunch(slot, ains, inLen, aout, usr, usrLen, sc);
88 invokeForEach(uint32_t slot, const Allocation ** ains, uint32_t inLen, Allocation * aout, const void * usr, uint32_t usrLen, const RsScriptCall *sc) argument
H A DrsCpuIntrinsicHistogram.cpp39 void preLaunch(uint32_t slot, const Allocation ** ains, uint32_t inLen,
42 void postLaunch(uint32_t slot, const Allocation ** ains, uint32_t inLen,
102 const Allocation ** ains,
129 switch(ains[0]->getType()->getElement()->getVectorSize()) {
150 const Allocation ** ains,
101 preLaunch(uint32_t slot, const Allocation ** ains, uint32_t inLen, Allocation * aout, const void * usr, uint32_t usrLen, const RsScriptCall *sc) argument
149 postLaunch(uint32_t slot, const Allocation ** ains, uint32_t inLen, Allocation * aout, const void * usr, uint32_t usrLen, const RsScriptCall *sc) argument
H A DrsCpuScriptGroup.cpp215 const Allocation **ains; local
219 ains = nullptr;
223 ains = const_cast<const Allocation**>(&ins[ct]);
226 bool launchOK = si->forEachMtlsSetup(ains, inLen, outs[ct], nullptr, 0, nullptr, &mtls);
229 si->preLaunch(slot, ains, inLen, outs[ct], mtls.fep.usr,
233 mCtx->launchForEach(ains, inLen, outs[ct], nullptr, &mtls);
236 si->postLaunch(slot, ains, inLen, outs[ct], nullptr, 0, nullptr);
246 const Allocation **ains; local
250 ains = nullptr;
254 ains
[all...]
H A DrsCpuCore.h86 const Allocation *ains[RS_KERNEL_INPUT_LIMIT]; member in struct:android::renderscript::MTLaunchStructForEach
94 const Allocation *ains[RS_KERNEL_INPUT_LIMIT]; member in struct:android::renderscript::MTLaunchStructReduce
165 void launchForEach(const Allocation **ains, uint32_t inLen, Allocation *aout,
169 void launchReduce(const Allocation ** ains, uint32_t inLen, Allocation *aout,
261 void launchReduceSerial(const Allocation ** ains, uint32_t inLen, Allocation *aout,
263 void launchReduceParallel(const Allocation ** ains, uint32_t inLen, Allocation *aout,
H A DrsCpuIntrinsicResize.cpp38 void preLaunch(uint32_t slot, const Allocation ** ains,
644 const Allocation ** ains,
643 preLaunch(uint32_t slot, const Allocation ** ains, uint32_t inLen, Allocation * aout, const void * usr, uint32_t usrLen, const RsScriptCall *sc) argument
H A DrsCpuScript.cpp558 bool RsdCpuScriptImpl::reduceMtlsSetup(const Allocation ** ains, argument
563 rsAssert(ains && (inLen >= 1) && aout);
568 if (allocationLODIsNull(ains[index])) {
581 const Allocation *ain0 = ains[0];
589 if (!ain0->hasSameDims(ains[Index])) {
617 memcpy(mtls->ains, ains, inLen * sizeof(ains[0]));
620 mtls->redp.inPtr[index] = (const uint8_t*)ains[index]->mHal.drvState.lod[0].mallocPtr;
621 mtls->redp.inStride[index] = ains[inde
629 forEachMtlsSetup(const Allocation ** ains, uint32_t inLen, Allocation * aout, const void * usr, uint32_t usrLen, const RsScriptCall *sc, MTLaunchStructForEach *mtls) argument
737 invokeForEach(uint32_t slot, const Allocation ** ains, uint32_t inLen, Allocation * aout, const void * usr, uint32_t usrLen, const RsScriptCall *sc) argument
756 invokeReduce(uint32_t slot, const Allocation ** ains, uint32_t inLen, Allocation *aout, const RsScriptCall *sc) argument
988 preLaunch(uint32_t slot, const Allocation ** ains, uint32_t inLen, Allocation * aout, const void * usr, uint32_t usrLen, const RsScriptCall *sc) argument
993 postLaunch(uint32_t slot, const Allocation ** ains, uint32_t inLen, Allocation * aout, const void * usr, uint32_t usrLen, const RsScriptCall *sc) argument
[all...]
H A DrsCpuCore.cpp345 fep->inPtr[i] = (const uint8_t *)mtls->ains[i]->getPointerUnchecked(x, y, z, lod, face, a1, a2, a3, a4);
360 redp->inPtr[i] = (const uint8_t *)mtls->ains[i]->getPointerUnchecked(x, y, z);
650 // ains[0..inLen-1]: Array of allocations that contain the inputs
653 void RsdCpuReferenceImpl::launchReduce(const Allocation ** ains, argument
659 launchReduceParallel(ains, inLen, aout, mtls);
661 launchReduceSerial(ains, inLen, aout, mtls);
667 // ains[0..inLen-1]: Array of allocations that contain the inputs
670 void RsdCpuReferenceImpl::launchReduceSerial(const Allocation ** ains, argument
714 // ains[0..inLen-1]: Array of allocations that contain the inputs
717 void RsdCpuReferenceImpl::launchReduceParallel(const Allocation ** ains, argument
828 launchForEach(const Allocation ** ains, uint32_t inLen, Allocation* aout, const RsScriptCall* sc, MTLaunchStructForEach* mtls) argument
[all...]
/frameworks/rs/
H A DrsScriptIntrinsic.cpp60 const Allocation** ains,
67 rsc->mHal.funcs.script.invokeForEachMulti(rsc, this, slot, ains, inLen,
72 const Allocation ** ains, size_t inLen,
58 runForEach(Context* rsc, uint32_t slot, const Allocation** ains, size_t inLen, Allocation* aout, const void* usr, size_t usrBytes, const RsScriptCall* sc) argument
71 runReduce(Context *rsc, uint32_t slot, const Allocation ** ains, size_t inLen, Allocation *aout, const RsScriptCall *sc) argument
H A DrsScriptC.cpp180 const Allocation ** ains,
225 rsc->mHal.funcs.script.invokeForEachMulti(rsc, this, slot, ains, inLen,
229 rsc->mHal.funcs.script.invokeForEach(rsc, this, slot, ains[0], aout,
243 const Allocation ** ains, size_t inLen,
260 rsc->mHal.funcs.script.invokeReduce(rsc, this, slot, ains, inLen, aout, sc);
178 runForEach(Context *rsc, uint32_t slot, const Allocation ** ains, size_t inLen, Allocation * aout, const void * usr, size_t usrBytes, const RsScriptCall *sc) argument
242 runReduce(Context *rsc, uint32_t slot, const Allocation ** ains, size_t inLen, Allocation *aout, const RsScriptCall *sc) argument
H A DrsScriptGroup.cpp368 const Allocation *ains[1] = {ain}; local
369 n->mScript->runForEach(rsc, k->mSlot, ains,
370 sizeof(ains) / sizeof(RsAllocation),
H A DrsScript.cpp202 Allocation **ains = (Allocation**)(vains); local
205 const_cast<const Allocation **>(ains), inLen,
219 RsAllocation ains[1] = {vain}; local
221 rsi_ScriptForEachMulti(rsc, vs, slot, ains,
222 sizeof(ains) / sizeof(RsAllocation), vaout,
232 Allocation **ains = (Allocation**)(vains); local
235 const_cast<const Allocation **>(ains), inLen,
/frameworks/rs/driver/
H A DrsdBcc.cpp82 const Allocation *ains[1] = {ain}; local
84 rsdScriptInvokeForEachMulti(rsc, s, slot, ains, 1, aout, usr, usrLen,
92 const Allocation ** ains,
100 cs->invokeForEach(slot, ains, inLen, aout, usr, usrLen, sc);
129 const Allocation ** ains, size_t inLen,
133 cs->invokeReduce(slot, ains, inLen, aout, sc);
89 rsdScriptInvokeForEachMulti(const Context *rsc, Script *s, uint32_t slot, const Allocation ** ains, size_t inLen, Allocation * aout, const void * usr, size_t usrLen, const RsScriptCall *sc) argument
127 rsdScriptInvokeReduce(const Context *dc, Script *s, uint32_t slot, const Allocation ** ains, size_t inLen, Allocation *aout, const RsScriptCall *sc) argument
/frameworks/base/rs/java/android/renderscript/
H A DScript.java226 protected void forEach(int slot, Allocation[] ains, Allocation aout, argument
230 forEach(slot, ains, aout, v, null);
236 protected void forEach(int slot, Allocation[] ains, Allocation aout, argument
241 if (ains != null) {
242 for (Allocation ain : ains) {
248 if (ains == null && aout == null) {
254 if (ains != null) {
255 in_ids = new long[ains.length];
256 for (int index = 0; index < ains.length; ++index) {
257 in_ids[index] = ains[inde
292 reduce(int slot, Allocation[] ains, Allocation aout, LaunchOptions sc) argument
[all...]
H A DRenderScript.java746 native void rsnScriptForEach(long con, long id, int slot, long[] ains, argument
749 synchronized void nScriptForEach(long id, int slot, long[] ains, long aout, argument
752 rsnScriptForEach(mContext, id, slot, ains, aout, params, limits);
755 native void rsnScriptReduce(long con, long id, int slot, long[] ains, argument
757 synchronized void nScriptReduce(long id, int slot, long ains[], long aout, argument
760 rsnScriptReduce(mContext, id, slot, ains, aout, limits);
/frameworks/support/v8/renderscript/java/src/android/support/v8/renderscript/
H A DScript.java324 protected void forEach(int slot, Allocation[] ains, Allocation aout, argument
326 forEach(slot, ains, aout, v, null);
334 protected void forEach(int slot, Allocation[] ains, Allocation aout, argument
338 if (ains != null) {
339 for (Allocation ain : ains) {
345 if (ains == null && aout == null) {
351 if (ains != null) {
352 in_ids = new long[ains.length];
353 for (int index = 0; index < ains.length; ++index) {
354 in_ids[index] = ains[inde
390 reduce(int slot, Allocation[] ains, Allocation aout, LaunchOptions sc) argument
[all...]
H A DRenderScript.java663 native void rsnScriptForEach(long con, long id, int slot, long[] ains, argument
666 synchronized void nScriptForEach(long id, int slot, long[] ains, long aout, argument
673 rsnScriptForEach(mContext, id, slot, ains, aout, params, limits);
676 native void rsnScriptReduce(long con, long id, int slot, long[] ains, argument
678 synchronized void nScriptReduce(long id, int slot, long ains[], long aout, argument
681 rsnScriptReduce(mContext, id, slot, ains, aout, limits);
/frameworks/support/v8/renderscript/jni/
H A Dandroid_renderscript_RenderScript.cpp1637 jlongArray ains, jlong aout, jbyteArray params,
1640 LOG_API("nScriptForEach, con(%p), s(%p), slot(%i) ains(%p) aout(%" PRId64 ")", (RsContext)con, (void *)script, slot, ains, aout);
1647 if (ains != nullptr) {
1648 in_len = _env->GetArrayLength(ains);
1656 in_ptr = _env->GetLongArrayElements(ains, nullptr);
1666 _env->ReleaseLongArrayElements(ains, in_ptr, JNI_ABORT);
1724 if (ains != nullptr) {
1725 _env->ReleaseLongArrayElements(ains, in_ptr, JNI_ABORT);
1739 jlongArray ains, jlon
1636 nScriptForEachMulti(JNIEnv *_env, jobject _this, jlong con, jlong script, jint slot, jlongArray ains, jlong aout, jbyteArray params, jintArray limits) argument
1738 nScriptReduce(JNIEnv *_env, jobject _this, jlong con, jlong script, jint slot, jlongArray ains, jlong aout, jintArray limits) argument
[all...]
/frameworks/base/rs/jni/
H A Dandroid_renderscript_RenderScript.cpp1984 jlongArray ains, jlong aout, jbyteArray params,
1988 ALOGD("nScriptForEach, con(%p), s(%p), slot(%i) ains(%p) aout(%" PRId64 ")", (RsContext)con, (void *)script, slot, ains, aout);
1996 if (ains != nullptr) {
1997 in_len = _env->GetArrayLength(ains);
2004 in_ptr = _env->GetLongArrayElements(ains, nullptr);
2018 _env->ReleaseLongArrayElements(ains, in_ptr, JNI_ABORT);
2082 if (ains != nullptr) {
2083 _env->ReleaseLongArrayElements(ains, in_ptr, JNI_ABORT);
2097 jlongArray ains, jlon
1983 nScriptForEach(JNIEnv *_env, jobject _this, jlong con, jlong script, jint slot, jlongArray ains, jlong aout, jbyteArray params, jintArray limits) argument
2096 nScriptReduce(JNIEnv *_env, jobject _this, jlong con, jlong script, jint slot, jlongArray ains, jlong aout, jintArray limits) argument
[all...]

Completed in 478 milliseconds