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

/frameworks/rs/cpu_ref/
H A DrsCpuIntrinsic.h37 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 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.cpp36 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 DrsCpuScriptGroup.cpp213 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 DrsCpuCore.h88 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 DrsCpuIntrinsicResize.cpp35 void preLaunch(uint32_t slot, const Allocation ** ains,
637 const Allocation ** ains,
636 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.cpp544 bool RsdCpuScriptImpl::reduceMtlsSetup(const Allocation ** ains, argument
549 rsAssert(ains && (inLen >= 1) && aout);
554 if (allocationLODIsNull(ains[index])) {
567 const Allocation *ain0 = ains[0];
575 if (!ain0->hasSameDims(ains[Index])) {
603 memcpy(mtls->ains, ains, inLen * sizeof(ains[0]));
606 mtls->redp.inPtr[index] = (const uint8_t*)ains[index]->mHal.drvState.lod[0].mallocPtr;
607 mtls->redp.inStride[index] = ains[inde
615 forEachMtlsSetup(const Allocation ** ains, uint32_t inLen, Allocation * aout, const void * usr, uint32_t usrLen, const RsScriptCall *sc, MTLaunchStructForEach *mtls) argument
735 invokeForEach(uint32_t slot, const Allocation ** ains, uint32_t inLen, Allocation * aout, const void * usr, uint32_t usrLen, const RsScriptCall *sc) argument
754 invokeReduce(uint32_t slot, const Allocation ** ains, uint32_t inLen, Allocation *aout, const RsScriptCall *sc) argument
986 preLaunch(uint32_t slot, const Allocation ** ains, uint32_t inLen, Allocation * aout, const void * usr, uint32_t usrLen, const RsScriptCall *sc) argument
991 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.cpp336 // 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/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.cpp173 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 DrsScriptGroup.cpp348 const Allocation *ains[1] = {ain}; local
349 n->mScript->runForEach(rsc, k->mSlot, ains,
350 sizeof(ains) / sizeof(RsAllocation),
H A DrsScript.cpp199 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 DrsApiStubs.cpp663 RsAllocation * ains, size_t ains_length, RsAllocation aout,
667 RS_DISPATCH(ctxWrapper, ScriptForEachMulti, s, slot, ains, ains_length, aout, usr, usr_length, sc, sc_length);
671 RsAllocation * ains, size_t ains_length, RsAllocation aout,
674 RS_DISPATCH(ctxWrapper, ScriptReduce, s, slot, ains, ains_length, aout, sc, sc_length);
662 rsScriptForEachMulti(RsContext ctxWrapper, RsScript s, uint32_t slot, RsAllocation * ains, size_t ains_length, RsAllocation aout, const void * usr, size_t usr_length, const RsScriptCall * sc, size_t sc_length) argument
670 rsScriptReduce(RsContext ctxWrapper, RsScript s, uint32_t slot, RsAllocation * ains, size_t ains_length, RsAllocation aout, const RsScriptCall * sc, size_t sc_length) argument
/frameworks/rs/driver/
H A DrsdBcc.cpp81 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
/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/rs/support/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/rs/rsov/driver/
H A DrsovScript.cpp160 void RSoVScript::invokeForEach(uint32_t slot, const Allocation **ains, argument
165 rsAssert(ains);
168 inputAllocations[i] = static_cast<RSoVAllocation *>(ains[i]->mHal.drv);
175 void RSoVScript::invokeReduce(uint32_t slot, const Allocation **ains, argument
178 getCpuScript()->invokeReduce(slot, ains, inLen, aout, sc);
752 const Allocation *ains[1] = {ain}; local
754 rsovScriptInvokeForEachMulti(rsc, s, slot, ains, 1, aout, usr, usrLen, sc);
759 const Allocation **ains, size_t inLen,
763 cs->invokeForEach(slot, ains, inLen, aout, usr, usrLen, sc);
788 const Allocation **ains, size_
758 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
787 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 Dandroid_renderscript_RenderScript.cpp1650 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 Dandroid_renderscript_RenderScript.cpp1996 jlongArray ains, jlong aout, jbyteArray params,
2000 ALOGD("nScriptForEach, con(%p), s(%p), slot(%i) ains(%p) aout(%" PRId64 ")", (RsContext)con, (void *)script, slot, ains, aout);
2008 if (ains != nullptr) {
2009 in_len = _env->GetArrayLength(ains);
2016 in_ptr = _env->GetLongArrayElements(ains, nullptr);
2030 _env->ReleaseLongArrayElements(ains, in_ptr, JNI_ABORT);
2094 if (ains != nullptr) {
2095 _env->ReleaseLongArrayElements(ains, in_ptr, JNI_ABORT);
2109 jlongArray ains, jlon
1995 nScriptForEach(JNIEnv *_env, jobject _this, jlong con, jlong script, jint slot, jlongArray ains, jlong aout, jbyteArray params, jintArray limits) argument
2108 nScriptReduce(JNIEnv *_env, jobject _this, jlong con, jlong script, jint slot, jlongArray ains, jlong aout, jintArray limits) argument
[all...]

Completed in 358 milliseconds