Lines Matching refs:con

184 nContextFinish(JNIEnv *_env, jobject _this, jlong con)
186 LOG_API("nContextFinish, con(%p)", (RsContext)con);
187 rsContextFinish((RsContext)con);
191 nAssignName(JNIEnv *_env, jobject _this, jlong con, jlong obj, jbyteArray str)
193 LOG_API("nAssignName, con(%p), obj(%p)", (RsContext)con, (void *)obj);
196 rsAssignName((RsContext)con, (void *)obj, (const char *)cptr, len);
201 nGetName(JNIEnv *_env, jobject _this, jlong con, jlong obj)
203 LOG_API("nGetName, con(%p), obj(%p)", (RsContext)con, (void *)obj);
205 rsaGetName((RsContext)con, (void *)obj, &name);
213 nObjDestroy(JNIEnv *_env, jobject _this, jlong con, jlong obj)
215 LOG_API("nObjDestroy, con(%p) obj(%p)", (RsContext)con, (void *)obj);
216 rsObjDestroy((RsContext)con, (void *)obj);
274 nContextSetPriority(JNIEnv *_env, jobject _this, jlong con, jint p)
276 LOG_API("ContextSetPriority, con(%p), priority(%i)", (RsContext)con, p);
277 rsContextSetPriority((RsContext)con, p);
283 nContextSetSurface(JNIEnv *_env, jobject _this, jlong con, jint width, jint height, jobject wnd)
285 LOG_API("nContextSetSurface, con(%p), width(%i), height(%i), surface(%p)", (RsContext)con, width, height, (Surface *)wnd);
294 rsContextSetSurface((RsContext)con, width, height, window);
298 nContextDestroy(JNIEnv *_env, jobject _this, jlong con)
300 LOG_API("nContextDestroy, con(%p)", (RsContext)con);
301 rsContextDestroy((RsContext)con);
305 nContextDump(JNIEnv *_env, jobject _this, jlong con, jint bits)
307 LOG_API("nContextDump, con(%p) bits(%i)", (RsContext)con, bits);
308 rsContextDump((RsContext)con, bits);
312 nContextPause(JNIEnv *_env, jobject _this, jlong con)
314 LOG_API("nContextPause, con(%p)", (RsContext)con);
315 rsContextPause((RsContext)con);
319 nContextResume(JNIEnv *_env, jobject _this, jlong con)
321 LOG_API("nContextResume, con(%p)", (RsContext)con);
322 rsContextResume((RsContext)con);
327 nContextGetErrorMessage(JNIEnv *_env, jobject _this, jlong con)
329 LOG_API("nContextGetErrorMessage, con(%p)", (RsContext)con);
334 int id = rsContextGetMessage((RsContext)con,
345 nContextGetUserMessage(JNIEnv *_env, jobject _this, jlong con, jintArray data)
348 LOG_API("nContextGetMessage, con(%p), len(%i)", (RsContext)con, len);
352 int id = rsContextGetMessage((RsContext)con,
364 nContextPeekMessage(JNIEnv *_env, jobject _this, jlong con, jintArray auxData)
366 LOG_API("nContextPeekMessage, con(%p)", (RsContext)con);
370 int id = rsContextPeekMessage((RsContext)con, &receiveLen, sizeof(receiveLen),
378 static void nContextInitToClient(JNIEnv *_env, jobject _this, jlong con)
380 LOG_API("nContextInitToClient, con(%p)", (RsContext)con);
381 rsContextInitToClient((RsContext)con);
384 static void nContextDeinitToClient(JNIEnv *_env, jobject _this, jlong con)
386 LOG_API("nContextDeinitToClient, con(%p)", (RsContext)con);
387 rsContextDeinitToClient((RsContext)con);
391 nContextSendMessage(JNIEnv *_env, jobject _this, jlong con, jint id, jintArray data)
399 LOG_API("nContextSendMessage, con(%p), id(%i), len(%i)", (RsContext)con, id, len);
400 rsContextSendMessage((RsContext)con, id, (const uint8_t *)ptr, len * sizeof(int));
409 nElementCreate(JNIEnv *_env, jobject _this, jlong con, jlong type, jint kind, jboolean norm, jint size)
411 LOG_API("nElementCreate, con(%p), type(%i), kind(%i), norm(%i), size(%i)", (RsContext)con, type, kind, norm, size);
412 return (jlong)(uintptr_t)rsElementCreate((RsContext)con, (RsDataType)type, (RsDataKind)kind, norm, size);
416 nElementCreate2(JNIEnv *_env, jobject _this, jlong con,
420 LOG_API("nElementCreate2, con(%p)", (RsContext)con);
438 jlong id = (jlong)(uintptr_t)rsElementCreate2((RsContext)con,
452 nElementGetNativeData(JNIEnv *_env, jobject _this, jlong con, jlong id, jintArray _elementData)
455 LOG_API("nElementGetNativeData, con(%p)", (RsContext)con);
461 rsaElementGetNativeData((RsContext)con, (RsElement)id, elementData, dataSize);
471 nElementGetSubElements(JNIEnv *_env, jobject _this, jlong con, jlong id,
477 LOG_API("nElementGetSubElements, con(%p)", (RsContext)con);
483 rsaElementGetSubElements((RsContext)con, (RsElement)id, ids, names, arraySizes, (uint32_t)dataSize);
501 nTypeCreate(JNIEnv *_env, jobject _this, jlong con, jlong eid,
504 LOG_API("nTypeCreate, con(%p) eid(%p), x(%i), y(%i), z(%i), mips(%i), faces(%i), yuv(%i)",
505 (RsContext)con, eid, dimx, dimy, dimz, mips, faces, yuv);
507 return (jlong)(uintptr_t)rsTypeCreate((RsContext)con, (RsElement)eid, dimx, dimy, dimz, mips, faces, yuv);
511 nTypeGetNativeData(JNIEnv *_env, jobject _this, jlong con, jlong id, jlongArray _typeData)
518 LOG_API("nTypeGetNativeData, con(%p)", (RsContext)con);
521 rsaTypeGetNativeData((RsContext)con, (RsType)id, typeData, 6);
532 nAllocationCreateTyped(JNIEnv *_env, jobject _this, jlong con, jlong type, jint mips, jint usage, jlong pointer)
534 LOG_API("nAllocationCreateTyped, con(%p), type(%p), mip(%i), usage(%i), ptr(%p)", (RsContext)con, (RsElement)type, mips, usage, (void *)pointer);
535 return (jlong)(uintptr_t) rsAllocationCreateTyped((RsContext)con, (RsType)type, (RsAllocationMipmapControl)mips, (uint32_t)usage, (uintptr_t)pointer);
539 nAllocationSyncAll(JNIEnv *_env, jobject _this, jlong con, jlong a, jint bits)
541 LOG_API("nAllocationSyncAll, con(%p), a(%p), bits(0x%08x)", (RsContext)con, (RsAllocation)a, bits);
542 rsAllocationSyncAll((RsContext)con, (RsAllocation)a, (RsAllocationUsageType)bits);
546 nAllocationGetSurface(JNIEnv *_env, jobject _this, jlong con, jlong a)
548 LOG_API("nAllocationGetSurface, con(%p), a(%p)", (RsContext)con, (RsAllocation)a);
550 IGraphicBufferProducer *v = (IGraphicBufferProducer *)rsAllocationGetSurface((RsContext)con, (RsAllocation)a);
559 nAllocationSetSurface(JNIEnv *_env, jobject _this, jlong con, jlong alloc, jobject sur)
561 LOG_API("nAllocationSetSurface, con(%p), alloc(%p), surface(%p)",
562 (RsContext)con, (RsAllocation)alloc, (Surface *)sur);
569 rsAllocationSetSurface((RsContext)con, (RsAllocation)alloc, static_cast<ANativeWindow *>(s.get()));
573 nAllocationIoSend(JNIEnv *_env, jobject _this, jlong con, jlong alloc)
575 LOG_API("nAllocationIoSend, con(%p), alloc(%p)", (RsContext)con, alloc);
576 rsAllocationIoSend((RsContext)con, (RsAllocation)alloc);
580 nAllocationIoReceive(JNIEnv *_env, jobject _this, jlong con, jlong alloc)
582 LOG_API("nAllocationIoReceive, con(%p), alloc(%p)", (RsContext)con, alloc);
583 rsAllocationIoReceive((RsContext)con, (RsAllocation)alloc);
588 nAllocationGenerateMipmaps(JNIEnv *_env, jobject _this, jlong con, jlong alloc)
590 LOG_API("nAllocationGenerateMipmaps, con(%p), a(%p)", (RsContext)con, (RsAllocation)alloc);
591 rsAllocationGenerateMipmaps((RsContext)con, (RsAllocation)alloc);
595 nAllocationCreateFromBitmap(JNIEnv *_env, jobject _this, jlong con, jlong type, jint mip, jobject jbitmap, jint usage)
603 jlong id = (jlong)(uintptr_t)rsAllocationCreateFromBitmap((RsContext)con,
611 nAllocationCreateBitmapBackedAllocation(JNIEnv *_env, jobject _this, jlong con, jlong type, jint mip, jobject jbitmap, jint usage)
619 jlong id = (jlong)(uintptr_t)rsAllocationCreateTyped((RsContext)con,
627 nAllocationCubeCreateFromBitmap(JNIEnv *_env, jobject _this, jlong con, jlong type, jint mip, jobject jbitmap, jint usage)
635 jlong id = (jlong)(uintptr_t)rsAllocationCubeCreateFromBitmap((RsContext)con,
643 nAllocationCopyFromBitmap(JNIEnv *_env, jobject _this, jlong con, jlong alloc, jobject jbitmap)
653 rsAllocation2DData((RsContext)con, (RsAllocation)alloc, 0, 0,
660 nAllocationCopyToBitmap(JNIEnv *_env, jobject _this, jlong con, jlong alloc, jobject jbitmap)
668 rsAllocationCopyToBitmap((RsContext)con, (RsAllocation)alloc, ptr, bitmap.getSize());
682 nAllocationData1D(JNIEnv *_env, jobject _this, jlong con, jlong _alloc, jint offset, jint lod,
686 LOG_API("nAllocation1DData, con(%p), adapter(%p), offset(%i), count(%i), sizeBytes(%i), dataType(%i)",
687 (RsContext)con, (RsAllocation)alloc, offset, count, sizeBytes, dataType);
688 PER_ARRAY_TYPE(NULL, rsAllocation1DData, true, (RsContext)con, alloc, offset, lod, count, ptr, sizeBytes);
693 // native void rsnAllocationElementData1D(long con, long id, int xoff, int compIdx, byte[] d, int sizeBytes);
694 nAllocationElementData1D(JNIEnv *_env, jobject _this, jlong con, jlong alloc, jint offset, jint lod, jint compIdx, jbyteArray data, jint sizeBytes)
697 LOG_API("nAllocationElementData1D, con(%p), alloc(%p), offset(%i), comp(%i), len(%i), sizeBytes(%i)", (RsContext)con, (RsAllocation)alloc, offset, compIdx, len, sizeBytes);
699 rsAllocation1DElementData((RsContext)con, (RsAllocation)alloc, offset, lod, ptr, sizeBytes, compIdx);
705 nAllocationData2D(JNIEnv *_env, jobject _this, jlong con, jlong _alloc, jint xoff, jint yoff, jint lod, jint _face,
710 LOG_API("nAllocation2DData, con(%p), adapter(%p), xoff(%i), yoff(%i), w(%i), h(%i), len(%i) type(%i)",
711 (RsContext)con, alloc, xoff, yoff, w, h, sizeBytes, dataType);
712 PER_ARRAY_TYPE(NULL, rsAllocation2DData, true, (RsContext)con, alloc, xoff, yoff, lod, face, w, h, ptr, sizeBytes, 0);
718 nAllocationData2D_alloc(JNIEnv *_env, jobject _this, jlong con,
725 LOG_API("nAllocation2DData_s, con(%p), dstAlloc(%p), dstXoff(%i), dstYoff(%i),"
728 (RsContext)con, (RsAllocation)dstAlloc, dstXoff, dstYoff, dstMip, dstFace,
731 rsAllocationCopy2DRange((RsContext)con,
743 nAllocationData3D(JNIEnv *_env, jobject _this, jlong con, jlong _alloc, jint xoff, jint yoff, jint zoff, jint lod,
747 LOG_API("nAllocation3DData, con(%p), alloc(%p), xoff(%i), yoff(%i), zoff(%i), lod(%i), w(%i), h(%i), d(%i), sizeBytes(%i)",
748 (RsContext)con, (RsAllocation)alloc, xoff, yoff, zoff, lod, w, h, d, sizeBytes);
749 PER_ARRAY_TYPE(NULL, rsAllocation3DData, true, (RsContext)con, alloc, xoff, yoff, zoff, lod, w, h, d, ptr, sizeBytes, 0);
755 nAllocationData3D_alloc(JNIEnv *_env, jobject _this, jlong con,
762 LOG_API("nAllocationData3D_alloc, con(%p), dstAlloc(%p), dstXoff(%i), dstYoff(%i),"
765 (RsContext)con, (RsAllocation)dstAlloc, dstXoff, dstYoff, dstMip,
768 rsAllocationCopy3DRange((RsContext)con,
779 nAllocationRead(JNIEnv *_env, jobject _this, jlong con, jlong _alloc, jobject data, int dataType)
782 LOG_API("nAllocationRead, con(%p), alloc(%p)", (RsContext)con, (RsAllocation)alloc);
783 PER_ARRAY_TYPE(0, rsAllocationRead, false, (RsContext)con, alloc, ptr, len * typeBytes);
788 nAllocationRead1D(JNIEnv *_env, jobject _this, jlong con, jlong _alloc, jint offset, jint lod,
792 LOG_API("nAllocation1DRead, con(%p), adapter(%p), offset(%i), count(%i), sizeBytes(%i), dataType(%i)",
793 (RsContext)con, alloc, offset, count, sizeBytes, dataType);
794 PER_ARRAY_TYPE(0, rsAllocation1DRead, false, (RsContext)con, alloc, offset, lod, count, ptr, sizeBytes);
799 nAllocationRead2D(JNIEnv *_env, jobject _this, jlong con, jlong _alloc, jint xoff, jint yoff, jint lod, jint _face,
804 LOG_API("nAllocation2DRead, con(%p), adapter(%p), xoff(%i), yoff(%i), w(%i), h(%i), len(%i) type(%i)",
805 (RsContext)con, alloc, xoff, yoff, w, h, sizeBytes, dataType);
806 PER_ARRAY_TYPE(0, rsAllocation2DRead, false, (RsContext)con, alloc, xoff, yoff, lod, face, w, h, ptr, sizeBytes, 0);
810 nAllocationGetType(JNIEnv *_env, jobject _this, jlong con, jlong a)
812 LOG_API("nAllocationGetType, con(%p), a(%p)", (RsContext)con, (RsAllocation)a);
813 return (jlong)(uintptr_t) rsaAllocationGetType((RsContext)con, (RsAllocation)a);
817 nAllocationResize1D(JNIEnv *_env, jobject _this, jlong con, jlong alloc, jint dimX)
819 LOG_API("nAllocationResize1D, con(%p), alloc(%p), sizeX(%i)", (RsContext)con, (RsAllocation)alloc, dimX);
820 rsAllocationResize1D((RsContext)con, (RsAllocation)alloc, dimX);
826 nFileA3DCreateFromAssetStream(JNIEnv *_env, jobject _this, jlong con, jlong native_asset)
831 jlong id = (jlong)(uintptr_t)rsaFileA3DCreateFromMemory((RsContext)con, asset->getBuffer(false), asset->getLength());
836 nFileA3DCreateFromAsset(JNIEnv *_env, jobject _this, jlong con, jobject _assetMgr, jstring _path)
849 jlong id = (jlong)(uintptr_t)rsaFileA3DCreateFromAsset((RsContext)con, asset);
854 nFileA3DCreateFromFile(JNIEnv *_env, jobject _this, jlong con, jstring fileName)
857 jlong id = (jlong)(uintptr_t)rsaFileA3DCreateFromFile((RsContext)con, fileNameUTF.c_str());
863 nFileA3DGetNumIndexEntries(JNIEnv *_env, jobject _this, jlong con, jlong fileA3D)
866 rsaFileA3DGetNumIndexEntries((RsContext)con, &numEntries, (RsFile)fileA3D);
871 nFileA3DGetIndexEntries(JNIEnv *_env, jobject _this, jlong con, jlong fileA3D, jint numEntries, jintArray _ids, jobjectArray _entries)
876 rsaFileA3DGetIndexEntries((RsContext)con, fileEntries, (uint32_t)numEntries, (RsFile)fileA3D);
887 nFileA3DGetEntryByIndex(JNIEnv *_env, jobject _this, jlong con, jlong fileA3D, jint index)
890 jlong id = (jlong)(uintptr_t)rsaFileA3DGetEntryByIndex((RsContext)con, (uint32_t)index, (RsFile)fileA3D);
897 nFontCreateFromFile(JNIEnv *_env, jobject _this, jlong con,
901 jlong id = (jlong)(uintptr_t)rsFontCreateFromFile((RsContext)con,
909 nFontCreateFromAssetStream(JNIEnv *_env, jobject _this, jlong con,
915 jlong id = (jlong)(uintptr_t)rsFontCreateFromMemory((RsContext)con,
923 nFontCreateFromAsset(JNIEnv *_env, jobject _this, jlong con, jobject _assetMgr, jstring _path,
937 jlong id = (jlong)(uintptr_t)rsFontCreateFromMemory((RsContext)con,
948 nScriptBindAllocation(JNIEnv *_env, jobject _this, jlong con, jlong script, jlong alloc, jint slot)
950 LOG_API("nScriptBindAllocation, con(%p), script(%p), alloc(%p), slot(%i)", (RsContext)con, (RsScript)script, (RsAllocation)alloc, slot);
951 rsScriptBindAllocation((RsContext)con, (RsScript)script, (RsAllocation)alloc, slot);
955 nScriptSetVarI(JNIEnv *_env, jobject _this, jlong con, jlong script, jint slot, jint val)
957 LOG_API("nScriptSetVarI, con(%p), s(%p), slot(%i), val(%i)", (RsContext)con, (void *)script, slot, val);
958 rsScriptSetVarI((RsContext)con, (RsScript)script, slot, val);
962 nScriptGetVarI(JNIEnv *_env, jobject _this, jlong con, jlong script, jint slot)
964 LOG_API("nScriptGetVarI, con(%p), s(%p), slot(%i)", (RsContext)con, (void *)script, slot);
966 rsScriptGetVarV((RsContext)con, (RsScript)script, slot, &value, sizeof(value));
971 nScriptSetVarObj(JNIEnv *_env, jobject _this, jlong con, jlong script, jint slot, jlong val)
973 LOG_API("nScriptSetVarObj, con(%p), s(%p), slot(%i), val(%i)", (RsContext)con, (void *)script, slot, val);
974 rsScriptSetVarObj((RsContext)con, (RsScript)script, slot, (RsObjectBase)val);
978 nScriptSetVarJ(JNIEnv *_env, jobject _this, jlong con, jlong script, jint slot, jlong val)
980 LOG_API("nScriptSetVarJ, con(%p), s(%p), slot(%i), val(%lli)", (RsContext)con, (void *)script, slot, val);
981 rsScriptSetVarJ((RsContext)con, (RsScript)script, slot, val);
985 nScriptGetVarJ(JNIEnv *_env, jobject _this, jlong con, jlong script, jint slot)
987 LOG_API("nScriptGetVarJ, con(%p), s(%p), slot(%i)", (RsContext)con, (void *)script, slot);
989 rsScriptGetVarV((RsContext)con, (RsScript)script, slot, &value, sizeof(value));
994 nScriptSetVarF(JNIEnv *_env, jobject _this, jlong con, jlong script, jint slot, float val)
996 LOG_API("nScriptSetVarF, con(%p), s(%p), slot(%i), val(%f)", (RsContext)con, (void *)script, slot, val);
997 rsScriptSetVarF((RsContext)con, (RsScript)script, slot, val);
1001 nScriptGetVarF(JNIEnv *_env, jobject _this, jlong con, jlong script, jint slot)
1003 LOG_API("nScriptGetVarF, con(%p), s(%p), slot(%i)", (RsContext)con, (void *)script, slot);
1005 rsScriptGetVarV((RsContext)con, (RsScript)script, slot, &value, sizeof(value));
1010 nScriptSetVarD(JNIEnv *_env, jobject _this, jlong con, jlong script, jint slot, double val)
1012 LOG_API("nScriptSetVarD, con(%p), s(%p), slot(%i), val(%lf)", (RsContext)con, (void *)script, slot, val);
1013 rsScriptSetVarD((RsContext)con, (RsScript)script, slot, val);
1017 nScriptGetVarD(JNIEnv *_env, jobject _this, jlong con, jlong script, jint slot)
1019 LOG_API("nScriptGetVarD, con(%p), s(%p), slot(%i)", (RsContext)con, (void *)script, slot);
1021 rsScriptGetVarV((RsContext)con, (RsScript)script, slot, &value, sizeof(value));
1026 nScriptSetVarV(JNIEnv *_env, jobject _this, jlong con, jlong script, jint slot, jbyteArray data)
1028 LOG_API("nScriptSetVarV, con(%p), s(%p), slot(%i)", (RsContext)con, (void *)script, slot);
1031 rsScriptSetVarV((RsContext)con, (RsScript)script, slot, ptr, len);
1036 nScriptGetVarV(JNIEnv *_env, jobject _this, jlong con, jlong script, jint slot, jbyteArray data)
1038 LOG_API("nScriptSetVarV, con(%p), s(%p), slot(%i)", (RsContext)con, (void *)script, slot);
1041 rsScriptGetVarV((RsContext)con, (RsScript)script, slot, ptr, len);
1046 nScriptSetVarVE(JNIEnv *_env, jobject _this, jlong con, jlong script, jint slot, jbyteArray data, jlong elem, jintArray dims)
1048 LOG_API("nScriptSetVarVE, con(%p), s(%p), slot(%i)", (RsContext)con, (void *)script, slot);
1053 rsScriptSetVarVE((RsContext)con, (RsScript)script, slot, ptr, len, (RsElement)elem,
1061 nScriptSetTimeZone(JNIEnv *_env, jobject _this, jlong con, jlong script, jbyteArray timeZone)
1063 LOG_API("nScriptCSetTimeZone, con(%p), s(%p)", (RsContext)con, (void *)script);
1069 rsScriptSetTimeZone((RsContext)con, (RsScript)script, (const char *)timeZone_ptr, length);
1077 nScriptInvoke(JNIEnv *_env, jobject _this, jlong con, jlong obj, jint slot)
1079 LOG_API("nScriptInvoke, con(%p), script(%p)", (RsContext)con, (void *)obj);
1080 rsScriptInvoke((RsContext)con, (RsScript)obj, slot);
1084 nScriptInvokeV(JNIEnv *_env, jobject _this, jlong con, jlong script, jint slot, jbyteArray data)
1086 LOG_API("nScriptInvokeV, con(%p), s(%p), slot(%i)", (RsContext)con, (void *)script, slot);
1089 rsScriptInvokeV((RsContext)con, (RsScript)script, slot, ptr, len);
1094 nScriptForEach(JNIEnv *_env, jobject _this, jlong con,
1097 LOG_API("nScriptForEach, con(%p), s(%p), slot(%i)", (RsContext)con, (void *)script, slot);
1098 rsScriptForEach((RsContext)con, (RsScript)script, slot, (RsAllocation)ain, (RsAllocation)aout, NULL, 0, NULL, 0);
1101 nScriptForEachV(JNIEnv *_env, jobject _this, jlong con,
1104 LOG_API("nScriptForEach, con(%p), s(%p), slot(%i)", (RsContext)con, (void *)script, slot);
1107 rsScriptForEach((RsContext)con, (RsScript)script, slot, (RsAllocation)ain, (RsAllocation)aout, ptr, len, NULL, 0);
1112 nScriptForEachClipped(JNIEnv *_env, jobject _this, jlong con,
1117 LOG_API("nScriptForEachClipped, con(%p), s(%p), slot(%i)", (RsContext)con, (void *)script, slot);
1128 rsScriptForEach((RsContext)con, (RsScript)script, slot, (RsAllocation)ain, (RsAllocation)aout, NULL, 0, &sc, sizeof(sc));
1132 nScriptForEachClippedV(JNIEnv *_env, jobject _this, jlong con,
1137 LOG_API("nScriptForEachClipped, con(%p), s(%p), slot(%i)", (RsContext)con, (void *)script, slot);
1150 rsScriptForEach((RsContext)con, (RsScript)script, slot, (RsAllocation)ain, (RsAllocation)aout, ptr, len, &sc, sizeof(sc));
1155 nScriptForEachMultiClipped(JNIEnv *_env, jobject _this, jlong con,
1160 LOG_API("nScriptForEachMultiClipped, con(%p), s(%p), slot(%i)", (RsContext)con, (void *)script, slot);
1191 rsScriptForEachMulti((RsContext)con, (RsScript)script, slot, in_allocs, in_len, (RsAllocation)aout, NULL, 0, &sc, sizeof(sc));
1201 nScriptForEachMultiClippedV(JNIEnv *_env, jobject _this, jlong con,
1206 LOG_API("nScriptForEachMultiClippedV, con(%p), s(%p), slot(%i)", (RsContext)con, (void *)script, slot);
1239 rsScriptForEachMulti((RsContext)con, (RsScript)script, slot, in_allocs, in_len, (RsAllocation)aout, param_ptr, param_len, &sc, sizeof(sc));
1252 nScriptCCreate(JNIEnv *_env, jobject _this, jlong con,
1256 LOG_API("nScriptCCreate, con(%p)", (RsContext)con);
1284 //rsScriptCSetText((RsContext)con, (const char *)script_ptr, length);
1286 ret = (jlong)(uintptr_t)rsScriptCCreate((RsContext)con,
1301 nScriptIntrinsicCreate(JNIEnv *_env, jobject _this, jlong con, jint id, jlong eid)
1303 LOG_API("nScriptIntrinsicCreate, con(%p) id(%i) element(%p)", (RsContext)con, id, (void *)eid);
1304 return (jlong)(uintptr_t)rsScriptIntrinsicCreate((RsContext)con, id, (RsElement)eid);
1308 nScriptKernelIDCreate(JNIEnv *_env, jobject _this, jlong con, jlong sid, jint slot, jint sig)
1310 LOG_API("nScriptKernelIDCreate, con(%p) script(%p), slot(%i), sig(%i)", (RsContext)con, (void *)sid, slot, sig);
1311 return (jlong)(uintptr_t)rsScriptKernelIDCreate((RsContext)con, (RsScript)sid, slot, sig);
1315 nScriptFieldIDCreate(JNIEnv *_env, jobject _this, jlong con, jlong sid, jint slot)
1317 LOG_API("nScriptFieldIDCreate, con(%p) script(%p), slot(%i)", (RsContext)con, (void *)sid, slot);
1318 return (jlong)(uintptr_t)rsScriptFieldIDCreate((RsContext)con, (RsScript)sid, slot);
1322 nScriptGroupCreate(JNIEnv *_env, jobject _this, jlong con, jlongArray _kernels, jlongArray _src,
1325 LOG_API("nScriptGroupCreate, con(%p)", (RsContext)con);
1362 jlong id = (jlong)(uintptr_t)rsScriptGroupCreate((RsContext)con,
1383 nScriptGroupSetInput(JNIEnv *_env, jobject _this, jlong con, jlong gid, jlong kid, jlong alloc)
1385 LOG_API("nScriptGroupSetInput, con(%p) group(%p), kernelId(%p), alloc(%p)", (RsContext)con,
1387 rsScriptGroupSetInput((RsContext)con, (RsScriptGroup)gid, (RsScriptKernelID)kid, (RsAllocation)alloc);
1391 nScriptGroupSetOutput(JNIEnv *_env, jobject _this, jlong con, jlong gid, jlong kid, jlong alloc)
1393 LOG_API("nScriptGroupSetOutput, con(%p) group(%p), kernelId(%p), alloc(%p)", (RsContext)con,
1395 rsScriptGroupSetOutput((RsContext)con, (RsScriptGroup)gid, (RsScriptKernelID)kid, (RsAllocation)alloc);
1399 nScriptGroupExecute(JNIEnv *_env, jobject _this, jlong con, jlong gid)
1401 LOG_API("nScriptGroupSetOutput, con(%p) group(%p)", (RsContext)con, (void *)gid);
1402 rsScriptGroupExecute((RsContext)con, (RsScriptGroup)gid);
1408 nProgramStoreCreate(JNIEnv *_env, jobject _this, jlong con,
1414 LOG_API("nProgramStoreCreate, con(%p)", (RsContext)con);
1415 return (jlong)(uintptr_t)rsProgramStoreCreate((RsContext)con, colorMaskR, colorMaskG, colorMaskB, colorMaskA,
1423 nProgramBindConstants(JNIEnv *_env, jobject _this, jlong con, jlong vpv, jint slot, jlong a)
1425 LOG_API("nProgramBindConstants, con(%p), vpf(%p), sloat(%i), a(%p)", (RsContext)con, (RsProgramVertex)vpv, slot, (RsAllocation)a);
1426 rsProgramBindConstants((RsContext)con, (RsProgram)vpv, slot, (RsAllocation)a);
1430 nProgramBindTexture(JNIEnv *_env, jobject _this, jlong con, jlong vpf, jint slot, jlong a)
1432 LOG_API("nProgramBindTexture, con(%p), vpf(%p), slot(%i), a(%p)", (RsContext)con, (RsProgramFragment)vpf, slot, (RsAllocation)a);
1433 rsProgramBindTexture((RsContext)con, (RsProgramFragment)vpf, slot, (RsAllocation)a);
1437 nProgramBindSampler(JNIEnv *_env, jobject _this, jlong con, jlong vpf, jint slot, jlong a)
1439 LOG_API("nProgramBindSampler, con(%p), vpf(%p), slot(%i), a(%p)", (RsContext)con, (RsProgramFragment)vpf, slot, (RsSampler)a);
1440 rsProgramBindSampler((RsContext)con, (RsProgramFragment)vpf, slot, (RsSampler)a);
1446 nProgramFragmentCreate(JNIEnv *_env, jobject _this, jlong con, jstring shader,
1458 LOG_API("nProgramFragmentCreate, con(%p), paramLen(%i)", (RsContext)con, paramLen);
1464 jlong ret = (jlong)(uintptr_t)rsProgramFragmentCreate((RsContext)con, shaderUTF.c_str(), shaderUTF.length(),
1477 nProgramVertexCreate(JNIEnv *_env, jobject _this, jlong con, jstring shader,
1484 LOG_API("nProgramVertexCreate, con(%p), paramLen(%i)", (RsContext)con, paramLen);
1496 jlong ret = (jlong)(uintptr_t)rsProgramVertexCreate((RsContext)con, shaderUTF.c_str(), shaderUTF.length(),
1508 nProgramRasterCreate(JNIEnv *_env, jobject _this, jlong con, jboolean pointSprite, jint cull)
1510 LOG_API("nProgramRasterCreate, con(%p), pointSprite(%i), cull(%i)", (RsContext)con, pointSprite, cull);
1511 return (jlong)(uintptr_t)rsProgramRasterCreate((RsContext)con, pointSprite, (RsCullMode)cull);
1518 nContextBindRootScript(JNIEnv *_env, jobject _this, jlong con, jlong script)
1520 LOG_API("nContextBindRootScript, con(%p), script(%p)", (RsContext)con, (RsScript)script);
1521 rsContextBindRootScript((RsContext)con, (RsScript)script);
1525 nContextBindProgramStore(JNIEnv *_env, jobject _this, jlong con, jlong pfs)
1527 LOG_API("nContextBindProgramStore, con(%p), pfs(%p)", (RsContext)con, (RsProgramStore)pfs);
1528 rsContextBindProgramStore((RsContext)con, (RsProgramStore)pfs);
1532 nContextBindProgramFragment(JNIEnv *_env, jobject _this, jlong con, jlong pf)
1534 LOG_API("nContextBindProgramFragment, con(%p), pf(%p)", (RsContext)con, (RsProgramFragment)pf);
1535 rsContextBindProgramFragment((RsContext)con, (RsProgramFragment)pf);
1539 nContextBindProgramVertex(JNIEnv *_env, jobject _this, jlong con, jlong pf)
1541 LOG_API("nContextBindProgramVertex, con(%p), pf(%p)", (RsContext)con, (RsProgramVertex)pf);
1542 rsContextBindProgramVertex((RsContext)con, (RsProgramVertex)pf);
1546 nContextBindProgramRaster(JNIEnv *_env, jobject _this, jlong con, jlong pf)
1548 LOG_API("nContextBindProgramRaster, con(%p), pf(%p)", (RsContext)con, (RsProgramRaster)pf);
1549 rsContextBindProgramRaster((RsContext)con, (RsProgramRaster)pf);
1556 nSamplerCreate(JNIEnv *_env, jobject _this, jlong con, jint magFilter, jint minFilter,
1559 LOG_API("nSamplerCreate, con(%p)", (RsContext)con);
1560 return (jlong)(uintptr_t)rsSamplerCreate((RsContext)con,
1572 nPathCreate(JNIEnv *_env, jobject _this, jlong con, jint prim, jboolean isStatic, jlong _vtx, jlong _loop, jfloat q) {
1573 LOG_API("nPathCreate, con(%p)", (RsContext)con);
1575 jlong id = (jlong)(uintptr_t)rsPathCreate((RsContext)con, (RsPathPrimitive)prim, isStatic,
1582 nMeshCreate(JNIEnv *_env, jobject _this, jlong con, jlongArray _vtx, jlongArray _idx, jintArray _prim)
1584 LOG_API("nMeshCreate, con(%p)", (RsContext)con);
1603 jlong id = (jlong)(uintptr_t)rsMeshCreate((RsContext)con,
1617 nMeshGetVertexBufferCount(JNIEnv *_env, jobject _this, jlong con, jlong mesh)
1619 LOG_API("nMeshGetVertexBufferCount, con(%p), Mesh(%p)", (RsContext)con, (RsMesh)mesh);
1621 rsaMeshGetVertexBufferCount((RsContext)con, (RsMesh)mesh, &vtxCount);
1626 nMeshGetIndexCount(JNIEnv *_env, jobject _this, jlong con, jlong mesh)
1628 LOG_API("nMeshGetIndexCount, con(%p), Mesh(%p)", (RsContext)con, (RsMesh)mesh);
1630 rsaMeshGetIndexCount((RsContext)con, (RsMesh)mesh, &idxCount);
1635 nMeshGetVertices(JNIEnv *_env, jobject _this, jlong con, jlong mesh, jlongArray _ids, jint numVtxIDs)
1637 LOG_API("nMeshGetVertices, con(%p), Mesh(%p)", (RsContext)con, (RsMesh)mesh);
1640 rsaMeshGetVertices((RsContext)con, (RsMesh)mesh, allocs, (uint32_t)numVtxIDs);
1651 nMeshGetIndices(JNIEnv *_env, jobject _this, jlong con, jlong mesh, jlongArray _idxIds, jintArray _primitives, jint numIndices)
1653 LOG_API("nMeshGetVertices, con(%p), Mesh(%p)", (RsContext)con, (RsMesh)mesh);
1658 rsaMeshGetIndices((RsContext)con, (RsMesh)mesh, allocs, prims, (uint32_t)numIndices);