/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 | 86 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 D | rsCpuScript.h | 47 virtual void preLaunch(uint32_t slot, const Allocation ** ains, 50 virtual void postLaunch(uint32_t slot, const Allocation ** ains, 56 const Allocation ** ains, 64 const Allocation ** ains, uint32_t inLen, 86 bool forEachMtlsSetup(const Allocation ** ains, uint32_t inLen, 93 bool reduceMtlsSetup(const Allocation ** ains, uint32_t inLen, const Allocation *aout,
|
H A D | rsCpuScriptGroup.cpp | 215 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 D | rsCpuScript.cpp | 558 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 D | rsCpuIntrinsic.h | 46 void preLaunch(uint32_t slot, const Allocation ** ains, 49 void postLaunch(uint32_t slot, const Allocation ** ains,
|
H A D | rsd_cpu.h | 54 const Allocation ** ains, 62 const Allocation ** ains, uint32_t inLen,
|
H A D | rsCpuIntrinsicHistogram.cpp | 39 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 D | rsCpuCore.cpp | 345 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/base/rs/java/android/renderscript/ |
H A D | Script.java | 226 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 D | RenderScript.java | 746 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 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...] |
H A D | RenderScript.java | 663 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/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 | 202 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,
|
H A D | rsScript.h | 128 const Allocation ** ains, 136 const Allocation **ains, size_t inLen,
|
H A D | rsScriptC.cpp | 181 const Allocation ** ains, 223 rsc->mHal.funcs.script.invokeForEachMulti(rsc, this, slot, ains, inLen, 227 rsc->mHal.funcs.script.invokeForEach(rsc, this, slot, ains[0], aout, 237 const Allocation ** ains, size_t inLen, 254 rsc->mHal.funcs.script.invokeReduce(rsc, this, slot, ains, inLen, aout, sc); 179 runForEach(Context *rsc, uint32_t slot, const Allocation ** ains, size_t inLen, Allocation * aout, const void * usr, size_t usrBytes, const RsScriptCall *sc) argument 236 runReduce(Context *rsc, uint32_t slot, const Allocation ** ains, size_t inLen, Allocation *aout, const RsScriptCall *sc) argument
|
H A D | rsScriptGroup.cpp | 368 const Allocation *ains[1] = {ain}; local 369 n->mScript->runForEach(rsc, k->mSlot, ains, 370 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 | 82 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
|
H A D | rsdBcc.h | 49 const android::renderscript::Allocation ** ains, 57 const android::renderscript::Allocation ** ains,
|
/frameworks/support/v8/renderscript/jni/ |
H A D | android_renderscript_RenderScript.cpp | 1650 jlongArray ains, jlong aout, jbyteArray params, 1653 LOG_API("nScriptForEach, con(%p), s(%p), slot(%i) ains(%p) aout(%" PRId64 ")", (RsContext)con, (void *)script, slot, ains, aout); 1660 if (ains != nullptr) { 1661 in_len = _env->GetArrayLength(ains); 1669 in_ptr = _env->GetLongArrayElements(ains, nullptr); 1679 _env->ReleaseLongArrayElements(ains, in_ptr, JNI_ABORT); 1737 if (ains != nullptr) { 1738 _env->ReleaseLongArrayElements(ains, in_ptr, JNI_ABORT); 1752 jlongArray ains, jlon 1649 nScriptForEachMulti(JNIEnv *_env, jobject _this, jlong con, jlong script, jint slot, jlongArray ains, jlong aout, jbyteArray params, jintArray limits) argument 1751 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 | 1984 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...] |