/frameworks/rs/cpu_ref/ |
H A D | rsCpuIntrinsic.cpp | 76 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 D | rsCpuCore.h | 88 const Allocation *ains[RS_KERNEL_INPUT_LIMIT]; member in struct:android::renderscript::MTLaunchStructForEach 96 const Allocation *ains[RS_KERNEL_INPUT_LIMIT]; member in struct:android::renderscript::MTLaunchStructReduce 167 void launchForEach(const Allocation **ains, uint32_t inLen, Allocation *aout, 171 void launchReduce(const Allocation ** ains, uint32_t inLen, Allocation *aout, 263 void launchReduceSerial(const Allocation ** ains, uint32_t inLen, Allocation *aout, 265 void launchReduceParallel(const Allocation ** ains, uint32_t inLen, Allocation *aout,
|
H A D | rsCpuIntrinsic.h | 37 const Allocation *ains[RS_KERNEL_INPUT_LIMIT]; member in struct:android::renderscript::MTLaunchStructForEachBlas 61 void preLaunch(uint32_t slot, const Allocation ** ains, 64 void postLaunch(uint32_t slot, const Allocation ** ains,
|
H A D | rsCpuScript.cpp | 555 bool RsdCpuScriptImpl::reduceMtlsSetup(const Allocation ** ains, argument 560 rsAssert(ains && (inLen >= 1) && aout); 565 if (allocationLODIsNull(ains[index])) { 578 const Allocation *ain0 = ains[0]; 586 if (!ain0->hasSameDims(ains[Index])) { 614 memcpy(mtls->ains, ains, inLen * sizeof(ains[0])); 617 mtls->redp.inPtr[index] = (const uint8_t*)ains[index]->mHal.drvState.lod[0].mallocPtr; 618 mtls->redp.inStride[index] = ains[inde 626 forEachMtlsSetup(const Allocation ** ains, uint32_t inLen, Allocation * aout, const void * usr, uint32_t usrLen, const RsScriptCall *sc, MTLaunchStructForEach *mtls) argument 746 invokeForEach(uint32_t slot, const Allocation ** ains, uint32_t inLen, Allocation * aout, const void * usr, uint32_t usrLen, const RsScriptCall *sc) argument 765 invokeReduce(uint32_t slot, const Allocation ** ains, uint32_t inLen, Allocation *aout, const RsScriptCall *sc) argument 997 preLaunch(uint32_t slot, const Allocation ** ains, uint32_t inLen, Allocation * aout, const void * usr, uint32_t usrLen, const RsScriptCall *sc) argument 1002 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 D | rsCpuScriptGroup.cpp | 213 const Allocation **ains; local 217 ains = nullptr; 221 ains = const_cast<const Allocation**>(&ins[ct]); 224 bool launchOK = si->forEachMtlsSetup(ains, inLen, outs[ct], nullptr, 0, nullptr, &mtls); 227 si->preLaunch(slot, ains, inLen, outs[ct], mtls.fep.usr, 231 mCtx->launchForEach(ains, inLen, outs[ct], nullptr, &mtls); 234 si->postLaunch(slot, ains, inLen, outs[ct], nullptr, 0, nullptr); 244 const Allocation **ains; local 248 ains = nullptr; 252 ains [all...] |
H A D | rsCpuScript.h | 49 virtual void preLaunch(uint32_t slot, const Allocation ** ains, 52 virtual void postLaunch(uint32_t slot, const Allocation ** ains, 58 const Allocation ** ains, 66 const Allocation ** ains, uint32_t inLen, 88 bool forEachMtlsSetup(const Allocation ** ains, uint32_t inLen, 95 bool reduceMtlsSetup(const Allocation ** ains, uint32_t inLen, const Allocation *aout,
|
H A D | rsd_cpu.h | 58 const Allocation ** ains, 66 const Allocation ** ains, uint32_t inLen,
|
H A D | rsCpuIntrinsicHistogram.cpp | 36 void preLaunch(uint32_t slot, const Allocation ** ains, uint32_t inLen, 39 void postLaunch(uint32_t slot, const Allocation ** ains, uint32_t inLen, 96 const Allocation ** ains, 123 switch(ains[0]->getType()->getElement()->getVectorSize()) { 144 const Allocation ** ains, 95 preLaunch(uint32_t slot, const Allocation ** ains, uint32_t inLen, Allocation * aout, const void * usr, uint32_t usrLen, const RsScriptCall *sc) argument 143 postLaunch(uint32_t slot, const Allocation ** ains, uint32_t inLen, Allocation * aout, const void * usr, uint32_t usrLen, const RsScriptCall *sc) argument
|
H A D | rsCpuCore.cpp | 336 // fep->inLen can be 1 with mtls->ains[0] being null. 339 if (mtls->ains[i] == nullptr) { 343 fep->inPtr[i] = (const uint8_t *)mtls->ains[i]->getPointerUnchecked(x, y, z, lod, face, a1, a2, a3, a4); 358 redp->inPtr[i] = (const uint8_t *)mtls->ains[i]->getPointerUnchecked(x, y, z); 648 // ains[0..inLen-1]: Array of allocations that contain the inputs 651 void RsdCpuReferenceImpl::launchReduce(const Allocation ** ains, argument 657 launchReduceParallel(ains, inLen, aout, mtls); 659 launchReduceSerial(ains, inLen, aout, mtls); 665 // ains[0..inLen-1]: Array of allocations that contain the inputs 668 void RsdCpuReferenceImpl::launchReduceSerial(const Allocation ** ains, argument 715 launchReduceParallel(const Allocation ** ains, uint32_t inLen, Allocation * aout, MTLaunchStructReduce *mtls) argument 826 launchForEach(const Allocation ** ains, uint32_t inLen, Allocation* aout, const RsScriptCall* sc, MTLaunchStructForEach* mtls) argument [all...] |
/frameworks/base/rs/java/android/renderscript/ |
H A D | Script.java | 224 protected void forEach(int slot, Allocation[] ains, Allocation aout, argument 228 forEach(slot, ains, aout, v, null); 234 protected void forEach(int slot, Allocation[] ains, Allocation aout, argument 239 if (ains != null) { 240 for (Allocation ain : ains) { 246 if (ains == null && aout == null) { 252 if (ains != null) { 253 in_ids = new long[ains.length]; 254 for (int index = 0; index < ains.length; ++index) { 255 in_ids[index] = ains[inde 290 reduce(int slot, Allocation[] ains, Allocation aout, LaunchOptions sc) argument [all...] |
/frameworks/rs/support/java/src/android/support/v8/renderscript/ |
H A D | Script.java | 324 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...] |
/frameworks/rs/ |
H A D | rsScriptIntrinsic.cpp | 60 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 D | rsScriptC.h | 43 const Allocation ** ains, 51 const Allocation ** ains, size_t inLen,
|
H A D | rsScriptIntrinsic.h | 45 const Allocation ** ains, 53 const Allocation ** ains, size_t inLen,
|
H A D | rsScript.cpp | 199 Allocation **ains = (Allocation**)(vains); local 202 const_cast<const Allocation **>(ains), inLen, 216 RsAllocation ains[1] = {vain}; local 218 rsi_ScriptForEachMulti(rsc, vs, slot, ains, 219 sizeof(ains) / sizeof(RsAllocation), vaout, 229 Allocation **ains = (Allocation**)(vains); local 232 const_cast<const Allocation **>(ains), inLen,
|
H A D | rsScript.h | 128 const Allocation ** ains, 136 const Allocation **ains, size_t inLen,
|
H A D | rsScriptC.cpp | 173 const Allocation ** ains, 207 rsc->mHal.funcs.script.invokeForEachMulti(rsc, this, slot, ains, inLen, 211 rsc->mHal.funcs.script.invokeForEach(rsc, this, slot, ains[0], aout, 221 const Allocation ** ains, size_t inLen, 238 rsc->mHal.funcs.script.invokeReduce(rsc, this, slot, ains, inLen, aout, sc); 171 runForEach(Context *rsc, uint32_t slot, const Allocation ** ains, size_t inLen, Allocation * aout, const void * usr, size_t usrBytes, const RsScriptCall *sc) argument 220 runReduce(Context *rsc, uint32_t slot, const Allocation ** ains, size_t inLen, Allocation *aout, const RsScriptCall *sc) argument
|
H A D | rsScriptGroup.cpp | 348 const Allocation *ains[1] = {ain}; local 349 n->mScript->runForEach(rsc, k->mSlot, ains, 350 sizeof(ains) / sizeof(RsAllocation),
|
H A D | rs.spec | 408 param RsAllocation * ains 417 param RsAllocation * ains
|
/frameworks/rs/driver/ |
H A D | rsdBcc.cpp | 81 const Allocation *ains[1] = {ain}; local 83 rsdScriptInvokeForEachMulti(rsc, s, slot, ains, 1, aout, usr, usrLen, 91 const Allocation ** ains, 99 cs->invokeForEach(slot, ains, inLen, aout, usr, usrLen, sc); 128 const Allocation ** ains, size_t inLen, 132 cs->invokeReduce(slot, ains, inLen, aout, sc); 88 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 126 rsdScriptInvokeReduce(const Context *dc, Script *s, uint32_t slot, const Allocation ** ains, size_t inLen, Allocation *aout, const RsScriptCall *sc) argument
|
H A D | rsdBcc.h | 49 const android::renderscript::Allocation ** ains, 57 const android::renderscript::Allocation ** ains,
|
/frameworks/rs/rsov/driver/ |
H A D | rsovScript.h | 66 void invokeForEach(uint32_t slot, const Allocation **ains, uint32_t inLen, 70 void invokeReduce(uint32_t slot, const Allocation **ains, uint32_t inLen, 178 uint32_t slot, const android::renderscript::Allocation **ains, size_t inLen, 183 uint32_t slot, const android::renderscript::Allocation **ains, size_t inLen,
|
H A D | rsovScript.cpp | 218 void RSoVScript::invokeForEach(uint32_t slot, const Allocation **ains, argument 223 rsAssert(ains); 226 inputAllocations[i] = static_cast<RSoVAllocation *>(ains[i]->mHal.drv); 233 void RSoVScript::invokeReduce(uint32_t slot, const Allocation **ains, argument 236 getCpuScript()->invokeReduce(slot, ains, inLen, aout, sc); 839 const Allocation *ains[1] = {ain}; local 841 rsovScriptInvokeForEachMulti(rsc, s, slot, ains, 1, aout, usr, usrLen, sc); 846 const Allocation **ains, size_t inLen, 850 cs->invokeForEach(slot, ains, inLen, aout, usr, usrLen, sc); 875 const Allocation **ains, size_ 845 rsovScriptInvokeForEachMulti(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 874 rsovScriptInvokeReduce(const Context *dc, Script *s, uint32_t slot, const Allocation **ains, size_t inLen, Allocation *aout, const RsScriptCall *sc) argument [all...] |
/frameworks/rs/support/jni/ |
H A D | android_renderscript_RenderScript.cpp | 1652 jlongArray ains, jlong aout, jbyteArray params, 1655 LOG_API("nScriptForEach, con(%p), s(%p), slot(%i) ains(%p) aout(%" PRId64 ")", (RsContext)con, (void *)script, slot, ains, aout); 1662 if (ains != nullptr) { 1663 in_len = _env->GetArrayLength(ains); 1671 in_ptr = _env->GetLongArrayElements(ains, nullptr); 1681 _env->ReleaseLongArrayElements(ains, in_ptr, JNI_ABORT); 1739 if (ains != nullptr) { 1740 _env->ReleaseLongArrayElements(ains, in_ptr, JNI_ABORT); 1754 jlongArray ains, jlon 1651 nScriptForEachMulti(JNIEnv *_env, jobject _this, jlong con, jlong script, jint slot, jlongArray ains, jlong aout, jbyteArray params, jintArray limits) argument 1753 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 D | android_renderscript_RenderScript.cpp | 1995 jlongArray ains, jlong aout, jbyteArray params, 1999 ALOGD("nScriptForEach, con(%p), s(%p), slot(%i) ains(%p) aout(%" PRId64 ")", (RsContext)con, (void *)script, slot, ains, aout); 2007 if (ains != nullptr) { 2008 in_len = _env->GetArrayLength(ains); 2015 in_ptr = _env->GetLongArrayElements(ains, nullptr); 2029 _env->ReleaseLongArrayElements(ains, in_ptr, JNI_ABORT); 2093 if (ains != nullptr) { 2094 _env->ReleaseLongArrayElements(ains, in_ptr, JNI_ABORT); 2108 jlongArray ains, jlon 1994 nScriptForEach(JNIEnv *_env, jobject _this, jlong con, jlong script, jint slot, jlongArray ains, jlong aout, jbyteArray params, jintArray limits) argument 2107 nScriptReduce(JNIEnv *_env, jobject _this, jlong con, jlong script, jint slot, jlongArray ains, jlong aout, jintArray limits) argument [all...] |