Lines Matching refs:jint
100 nObjDestroy(JNIEnv *_env, jobject _this, RsContext con, jint obj)
108 static jint
112 return (jint)rsDeviceCreate();
116 nDeviceDestroy(JNIEnv *_env, jobject _this, jint dev)
123 nDeviceSetConfig(JNIEnv *_env, jobject _this, jint dev, jint p, jint value)
129 static jint
130 nContextCreate(JNIEnv *_env, jobject _this, jint dev, jint ver, jint sdkVer, jint ct)
133 return (jint)rsContextCreate((RsDevice)dev, ver, sdkVer, (RsContextType)ct, 0);
138 nContextSetPriority(JNIEnv *_env, jobject _this, RsContext con, jint p)
154 nContextDump(JNIEnv *_env, jobject _this, RsContext con, jint bits)
180 static jint
183 jint len = _env->GetArrayLength(data);
185 jint *ptr = _env->GetIntArrayElements(data, NULL);
200 static jint
204 jint *auxDataPtr = _env->GetIntArrayElements(auxData, NULL);
209 auxDataPtr[0] = (jint)subID;
210 auxDataPtr[1] = (jint)receiveLen;
228 nContextSendMessage(JNIEnv *_env, jobject _this, RsContext con, jint id, jintArray data)
230 jint *ptr = NULL;
231 jint len = 0;
234 jint *ptr = _env->GetIntArrayElements(data, NULL);
245 static jint
246 nElementCreate(JNIEnv *_env, jobject _this, RsContext con, jint type, jint kind, jboolean norm, jint size)
249 return (jint)rsElementCreate(con, (RsDataType)type, (RsDataKind)kind, norm, size);
252 static jint
259 jint *ids = _env->GetIntArrayElements(_ids, NULL);
260 jint *arraySizes = _env->GetIntArrayElements(_arraySizes, NULL);
267 jint id = (jint)rsElementCreate2(con,
274 return (jint)id;
280 nElementGetSubElements(JNIEnv *_env, jobject _this, RsContext con, jint id,
294 for(jint i = 0; i < dataSize; i++) {
296 _env->SetIntArrayRegion(_IDs, i, 1, (const jint*)&ids[i]);
297 _env->SetIntArrayRegion(_arraySizes, i, 1, (const jint*)&arraySizes[i]);
309 jint dimx, jint dimy, jint dimz, jboolean mips, jboolean faces, jint yuv)
314 jint id = (jint)rsTypeCreate(con, (RsElement)eid, dimx, dimy, dimz, mips, faces, yuv);
315 return (jint)id;
320 static jint
321 nAllocationCreateTyped(JNIEnv *_env, jobject _this, RsContext con, jint type, jint mips, jint usage, jint pointer)
324 return (jint) rsAllocationCreateTyped(con, (RsType)type, (RsAllocationMipmapControl)mips, (uint32_t)usage, (uint32_t)pointer);
328 nAllocationSyncAll(JNIEnv *_env, jobject _this, RsContext con, jint a, jint bits)
335 nAllocationGenerateMipmaps(JNIEnv *_env, jobject _this, RsContext con, jint alloc)
355 nAllocationCreateFromBitmap(JNIEnv *_env, jobject _this, RsContext con, jint type, jint mip, jobject jbitmap, jint usage)
357 jint id = 0;
362 id = (jint)rsAllocationCreateFromBitmap(con,
371 nAllocationCreateBitmapBackedAllocation(JNIEnv *_env, jobject _this, RsContext con, jint type, jint mip, jobject jbitmap, jint usage)
373 jint id = 0;
378 id = (jint)rsAllocationCreateTyped(con,
387 nAllocationCubeCreateFromBitmap(JNIEnv *_env, jobject _this, RsContext con, jint type, jint mip, jobject jbitmap, jint usage)
392 jint id = 0;
394 id = (jint)rsAllocationCubeCreateFromBitmap(con,
403 nAllocationCopyFromBitmap(JNIEnv *_env, jobject _this, RsContext con, jint alloc, jobject jbitmap)
421 nAllocationCopyToBitmap(JNIEnv *_env, jobject _this, RsContext con, jint alloc, jobject jbitmap)
439 nAllocationData1D_i(JNIEnv *_env, jobject _this, RsContext con, jint alloc, jint offset, jint lod, jint count, jintArray data, int sizeBytes)
441 jint len = _env->GetArrayLength(data);
443 jint *ptr = _env->GetIntArrayElements(data, NULL);
449 nAllocationData1D_s(JNIEnv *_env, jobject _this, RsContext con, jint alloc, jint offset, jint lod, jint count, jshortArray data, int sizeBytes)
451 jint len = _env->GetArrayLength(data);
459 nAllocationData1D_b(JNIEnv *_env, jobject _this, RsContext con, jint alloc, jint offset, jint lod, jint count, jbyteArray data, int sizeBytes)
461 jint len = _env->GetArrayLength(data);
469 nAllocationData1D_f(JNIEnv *_env, jobject _this, RsContext con, jint alloc, jint offset, jint lod, jint count, jfloatArray data, int sizeBytes)
471 jint len = _env->GetArrayLength(data);
480 nAllocationElementData1D(JNIEnv *_env, jobject _this, RsContext con, jint alloc, jint offset, jint lod, jint compIdx, jbyteArray data, int sizeBytes)
482 jint len = _env->GetArrayLength(data);
490 nAllocationData2D_s(JNIEnv *_env, jobject _this, RsContext con, jint alloc, jint xoff, jint yoff, jint lod, jint face,
491 jint w, jint h, jshortArray data, int sizeBytes)
493 jint len = _env->GetArrayLength(data);
501 nAllocationData2D_b(JNIEnv *_env, jobject _this, RsContext con, jint alloc, jint xoff, jint yoff, jint lod, jint face,
502 jint w, jint h, jbyteArray data, int sizeBytes)
504 jint len = _env->GetArrayLength(data);
512 nAllocationData2D_i(JNIEnv *_env, jobject _this, RsContext con, jint alloc, jint xoff, jint yoff, jint lod, jint face,
513 jint w, jint h, jintArray data, int sizeBytes)
515 jint len = _env->GetArrayLength(data);
517 jint *ptr = _env->GetIntArrayElements(data, NULL);
523 nAllocationData2D_f(JNIEnv *_env, jobject _this, RsContext con, jint alloc, jint xoff, jint yoff, jint lod, jint face,
524 jint w, jint h, jfloatArray data, int sizeBytes)
526 jint len = _env->GetArrayLength(data);
535 jint dstAlloc, jint dstXoff, jint dstYoff,
536 jint dstMip, jint dstFace,
537 jint width, jint height,
538 jint srcAlloc, jint srcXoff, jint srcYoff,
539 jint srcMip, jint srcFace)
558 nAllocationData3D_s(JNIEnv *_env, jobject _this, RsContext con, jint alloc, jint xoff, jint yoff, jint zoff, jint lod,
559 jint w, jint h, jint d, jshortArray data, int sizeBytes)
561 jint len = _env->GetArrayLength(data);
569 nAllocationData3D_b(JNIEnv *_env, jobject _this, RsContext con, jint alloc, jint xoff, jint yoff, jint zoff, jint lod,
570 jint w, jint h, jint d, jbyteArray data, int sizeBytes)
572 jint len = _env->GetArrayLength(data);
580 nAllocationData3D_i(JNIEnv *_env, jobject _this, RsContext con, jint alloc, jint xoff, jint yoff, jint zoff, jint lod,
581 jint w, jint h, jint d, jintArray data, int sizeBytes)
583 jint len = _env->GetArrayLength(data);
585 jint *ptr = _env->GetIntArrayElements(data, NULL);
591 nAllocationData3D_f(JNIEnv *_env, jobject _this, RsContext con, jint alloc, jint xoff, jint yoff, jint zoff, jint lod,
592 jint w, jint h, jint d, jfloatArray data, int sizeBytes)
594 jint len = _env->GetArrayLength(data);
603 jint dstAlloc, jint dstXoff, jint dstYoff, jint dstZoff,
604 jint dstMip,
605 jint width, jint height, jint depth,
606 jint srcAlloc, jint srcXoff, jint srcYoff, jint srcZoff,
607 jint srcMip)
624 nAllocationRead_i(JNIEnv *_env, jobject _this, RsContext con, jint alloc, jintArray data)
626 jint len = _env->GetArrayLength(data);
628 jint *ptr = _env->GetIntArrayElements(data, NULL);
635 nAllocationRead_s(JNIEnv *_env, jobject _this, RsContext con, jint alloc, jshortArray data)
637 jint len = _env->GetArrayLength(data);
646 nAllocationRead_b(JNIEnv *_env, jobject _this, RsContext con, jint alloc, jbyteArray data)
648 jint len = _env->GetArrayLength(data);
657 nAllocationRead_f(JNIEnv *_env, jobject _this, RsContext con, jint alloc, jfloatArray data)
659 jint len = _env->GetArrayLength(data);
667 static jint
668 nAllocationGetType(JNIEnv *_env, jobject _this, RsContext con, jint a)
671 return (jint) rsaAllocationGetType(con, (RsAllocation)a);
675 nAllocationResize1D(JNIEnv *_env, jobject _this, RsContext con, jint alloc, jint dimX)
684 nScriptBindAllocation(JNIEnv *_env, jobject _this, RsContext con, jint script, jint alloc, jint slot)
691 nScriptSetVarI(JNIEnv *_env, jobject _this, RsContext con, jint script, jint slot, jint val)
698 nScriptSetVarObj(JNIEnv *_env, jobject _this, RsContext con, jint script, jint slot, jint val)
705 nScriptSetVarJ(JNIEnv *_env, jobject _this, RsContext con, jint script, jint slot, jlong val)
712 nScriptSetVarF(JNIEnv *_env, jobject _this, RsContext con, jint script, jint slot, float val)
719 nScriptSetVarD(JNIEnv *_env, jobject _this, RsContext con, jint script, jint slot, double val)
726 nScriptSetVarV(JNIEnv *_env, jobject _this, RsContext con, jint script, jint slot, jbyteArray data)
729 jint len = _env->GetArrayLength(data);
736 nScriptSetVarVE(JNIEnv *_env, jobject _this, RsContext con, jint script, jint slot, jbyteArray data, jint elem, jintArray dims)
739 jint len = _env->GetArrayLength(data);
741 jint dimsLen = _env->GetArrayLength(dims) * sizeof(int);
742 jint *dimsPtr = _env->GetIntArrayElements(dims, NULL);
751 nScriptSetTimeZone(JNIEnv *_env, jobject _this, RsContext con, jint script, jbyteArray timeZone)
755 jint length = _env->GetArrayLength(timeZone);
767 nScriptInvoke(JNIEnv *_env, jobject _this, RsContext con, jint obj, jint slot)
774 nScriptInvokeV(JNIEnv *_env, jobject _this, RsContext con, jint script, jint slot, jbyteArray data)
777 jint len = _env->GetArrayLength(data);
785 jint script, jint slot, jint ain, jint aout)
792 jint script, jint slot, jint ain, jint aout, jbyteArray params)
795 jint len = _env->GetArrayLength(params);
803 jint script, jint slot, jint ain, jint aout,
804 jint xstart, jint xend,
805 jint ystart, jint yend, jint zstart, jint zend)
823 jint script, jint slot, jint ain, jint aout,
824 jbyteArray params, jint xstart, jint xend,
825 jint ystart, jint yend, jint zstart, jint zend)
828 jint len = _env->GetArrayLength(params);
846 static jint
849 jbyteArray scriptRef, jint length)
855 jint ret = 0;
857 jint _exception = 0;
858 jint remaining;
881 ret = (jint)rsScriptCCreate(con,
895 static jint
896 nScriptIntrinsicCreate(JNIEnv *_env, jobject _this, RsContext con, jint id, jint eid)
899 return (jint)rsScriptIntrinsicCreate(con, id, (RsElement)eid);
902 static jint
903 nScriptKernelIDCreate(JNIEnv *_env, jobject _this, RsContext con, jint sid, jint slot, jint sig)
906 return (jint)rsScriptKernelIDCreate(con, (RsScript)sid, slot, sig);
909 static jint
910 nScriptFieldIDCreate(JNIEnv *_env, jobject _this, RsContext con, jint sid, jint slot)
913 return (jint)rsScriptFieldIDCreate(con, (RsScript)sid, slot);
916 static jint
922 jint kernelsLen = _env->GetArrayLength(_kernels) * sizeof(int);
923 jint *kernelsPtr = _env->GetIntArrayElements(_kernels, NULL);
924 jint srcLen = _env->GetArrayLength(_src) * sizeof(int);
925 jint *srcPtr = _env->GetIntArrayElements(_src, NULL);
926 jint dstkLen = _env->GetArrayLength(_dstk) * sizeof(int);
927 jint *dstkPtr = _env->GetIntArrayElements(_dstk, NULL);
928 jint dstfLen = _env->GetArrayLength(_dstf) * sizeof(int);
929 jint *dstfPtr = _env->GetIntArrayElements(_dstf, NULL);
930 jint typesLen = _env->GetArrayLength(_types) * sizeof(int);
931 jint *typesPtr = _env->GetIntArrayElements(_types, NULL);
949 nScriptGroupSetInput(JNIEnv *_env, jobject _this, RsContext con, jint gid, jint kid, jint alloc)
957 nScriptGroupSetOutput(JNIEnv *_env, jobject _this, RsContext con, jint gid, jint kid, jint alloc)
965 nScriptGroupExecute(JNIEnv *_env, jobject _this, RsContext con, jint gid)
973 static jint
974 nSamplerCreate(JNIEnv *_env, jobject _this, RsContext con, jint magFilter, jint minFilter,
975 jint wrapS, jint wrapT, jint wrapR, jfloat aniso)
978 return (jint)rsSamplerCreate(con,
1082 jint JNI_OnLoad(JavaVM* vm, void* reserved)
1086 jint result = -1;