• Home
  • Raw
  • Download

Lines Matching refs:env

42   if (!(f) || (*env)->ExceptionCheck(env)) { \
48 jclass _exccls = (*env)->FindClass(env, exceptionClass); \
51 (*env)->ThrowNew(env, _exccls, msg); \
61 BAILIF0(_errstr = (*env)->NewStringUTF(env, tjGetErrorStr2(handle))); \
62 BAILIF0(_exccls = (*env)->FindClass(env, \
64 BAILIF0(_excid = (*env)->GetMethodID(env, _exccls, "<init>", \
66 BAILIF0(_excobj = (*env)->NewObject(env, _exccls, _excid, _errstr, \
68 (*env)->Throw(env, _excobj); \
78 jclass _cls = (*env)->GetObjectClass(env, obj); \
82 BAILIF0(_fid = (*env)->GetFieldID(env, _cls, "handle", "J")); \
83 handle = (tjhandle)(size_t)(*env)->GetLongField(env, obj, _fid);
90 if ((jName = (*env)->NewStringUTF(env, property)) != NULL && \
91 (jValue = (*env)->CallStaticObjectMethod(env, cls, mid, \
93 if ((value = (*env)->GetStringUTFChars(env, jValue, 0)) != NULL) { \
95 (*env)->ReleaseStringUTFChars(env, jValue, value); \
102 (*env)->ReleasePrimitiveArrayCritical(env, javaArray, (void *)cArray, 0); \
106 static int ProcessSystemProperties(JNIEnv *env) in ProcessSystemProperties() argument
113 BAILIF0(cls = (*env)->FindClass(env, "java/lang/System")); in ProcessSystemProperties()
114 BAILIF0(mid = (*env)->GetStaticMethodID(env, cls, "getProperty", in ProcessSystemProperties()
129 (JNIEnv *env, jclass cls, jint width, jint height, jint jpegSubsamp) in Java_org_libjpegturbo_turbojpeg_TJ_bufSize() argument
141 (JNIEnv *env, jclass cls, jint width, jint pad, jint height, jint subsamp) in Java_org_libjpegturbo_turbojpeg_TJ_bufSizeYUV__IIII() argument
153 (JNIEnv *env, jclass cls, jint width, jint height, jint subsamp) in Java_org_libjpegturbo_turbojpeg_TJ_bufSizeYUV__III() argument
155 return Java_org_libjpegturbo_turbojpeg_TJ_bufSizeYUV__IIII(env, cls, width, in Java_org_libjpegturbo_turbojpeg_TJ_bufSizeYUV__III()
162 (JNIEnv *env, jclass cls, jint componentID, jint width, jint stride, in Java_org_libjpegturbo_turbojpeg_TJ_planeSizeYUV__IIIII() argument
176 (JNIEnv *env, jclass cls, jint componentID, jint width, jint subsamp) in Java_org_libjpegturbo_turbojpeg_TJ_planeWidth__III() argument
188 (JNIEnv *env, jclass cls, jint componentID, jint height, jint subsamp) in Java_org_libjpegturbo_turbojpeg_TJ_planeHeight__III() argument
200 (JNIEnv *env, jobject obj) in Java_org_libjpegturbo_turbojpeg_TJCompressor_init() argument
209 BAILIF0(cls = (*env)->GetObjectClass(env, obj)); in Java_org_libjpegturbo_turbojpeg_TJCompressor_init()
210 BAILIF0(fid = (*env)->GetFieldID(env, cls, "handle", "J")); in Java_org_libjpegturbo_turbojpeg_TJCompressor_init()
211 (*env)->SetLongField(env, obj, fid, (size_t)handle); in Java_org_libjpegturbo_turbojpeg_TJCompressor_init()
218 (JNIEnv *env, jobject obj, jarray src, jint srcElementSize, jint x, jint y, in TJCompressor_compress() argument
237 if ((*env)->GetArrayLength(env, src) * srcElementSize < arraySize) in TJCompressor_compress()
240 if ((*env)->GetArrayLength(env, dst) < (jsize)jpegSize) in TJCompressor_compress()
243 if (ProcessSystemProperties(env) < 0) goto bailout; in TJCompressor_compress()
245 BAILIF0(srcBuf = (*env)->GetPrimitiveArrayCritical(env, src, 0)); in TJCompressor_compress()
246 BAILIF0(jpegBuf = (*env)->GetPrimitiveArrayCritical(env, dst, 0)); in TJCompressor_compress()
264 (JNIEnv *env, jobject obj, jbyteArray src, jint x, jint y, jint width, in Java_org_libjpegturbo_turbojpeg_TJCompressor_compress___3BIIIIII_3BIII() argument
268 return TJCompressor_compress(env, obj, src, 1, x, y, width, pitch, height, in Java_org_libjpegturbo_turbojpeg_TJCompressor_compress___3BIIIIII_3BIII()
274 (JNIEnv *env, jobject obj, jbyteArray src, jint width, jint pitch, in Java_org_libjpegturbo_turbojpeg_TJCompressor_compress___3BIIII_3BIII() argument
278 return TJCompressor_compress(env, obj, src, 1, 0, 0, width, pitch, height, in Java_org_libjpegturbo_turbojpeg_TJCompressor_compress___3BIIII_3BIII()
284 (JNIEnv *env, jobject obj, jintArray src, jint x, jint y, jint width, in Java_org_libjpegturbo_turbojpeg_TJCompressor_compress___3IIIIIII_3BIII() argument
293 return TJCompressor_compress(env, obj, src, sizeof(jint), x, y, width, in Java_org_libjpegturbo_turbojpeg_TJCompressor_compress___3IIIIIII_3BIII()
303 (JNIEnv *env, jobject obj, jintArray src, jint width, jint stride, in Java_org_libjpegturbo_turbojpeg_TJCompressor_compress___3IIIII_3BIII() argument
312 return TJCompressor_compress(env, obj, src, sizeof(jint), 0, 0, width, in Java_org_libjpegturbo_turbojpeg_TJCompressor_compress___3IIIII_3BIII()
322 (JNIEnv *env, jobject obj, jobjectArray srcobjs, jintArray jSrcOffsets, in Java_org_libjpegturbo_turbojpeg_TJCompressor_compressFromYUV___3_3B_3II_3III_3BII() argument
343 if ((*env)->GetArrayLength(env, srcobjs) < nc) in Java_org_libjpegturbo_turbojpeg_TJCompressor_compressFromYUV___3_3B_3II_3III_3BII()
345 if ((*env)->GetArrayLength(env, jSrcOffsets) < nc) in Java_org_libjpegturbo_turbojpeg_TJCompressor_compressFromYUV___3_3B_3II_3III_3BII()
347 if ((*env)->GetArrayLength(env, jSrcStrides) < nc) in Java_org_libjpegturbo_turbojpeg_TJCompressor_compressFromYUV___3_3B_3II_3III_3BII()
351 if ((*env)->GetArrayLength(env, dst) < (jsize)jpegSize) in Java_org_libjpegturbo_turbojpeg_TJCompressor_compressFromYUV___3_3B_3II_3III_3BII()
354 if (ProcessSystemProperties(env) < 0) goto bailout; in Java_org_libjpegturbo_turbojpeg_TJCompressor_compressFromYUV___3_3B_3II_3III_3BII()
357 (*env)->GetPrimitiveArrayCritical(env, jSrcOffsets, 0)); in Java_org_libjpegturbo_turbojpeg_TJCompressor_compressFromYUV___3_3B_3II_3III_3BII()
362 (*env)->GetPrimitiveArrayCritical(env, jSrcStrides, 0)); in Java_org_libjpegturbo_turbojpeg_TJCompressor_compressFromYUV___3_3B_3II_3III_3BII()
378 BAILIF0(jSrcPlanes[i] = (*env)->GetObjectArrayElement(env, srcobjs, i)); in Java_org_libjpegturbo_turbojpeg_TJCompressor_compressFromYUV___3_3B_3II_3III_3BII()
379 if ((*env)->GetArrayLength(env, jSrcPlanes[i]) < in Java_org_libjpegturbo_turbojpeg_TJCompressor_compressFromYUV___3_3B_3II_3III_3BII()
384 (*env)->GetPrimitiveArrayCritical(env, jSrcPlanes[i], 0)); in Java_org_libjpegturbo_turbojpeg_TJCompressor_compressFromYUV___3_3B_3II_3III_3BII()
388 BAILIF0(jpegBuf = (*env)->GetPrimitiveArrayCritical(env, dst, 0)); in Java_org_libjpegturbo_turbojpeg_TJCompressor_compressFromYUV___3_3B_3II_3III_3BII()
403 (JNIEnv *env, jobject obj, jarray src, jint srcElementSize, jint x, jint y, in TJCompressor_encodeYUV() argument
427 if ((*env)->GetArrayLength(env, dstobjs) < nc) in TJCompressor_encodeYUV()
429 if ((*env)->GetArrayLength(env, jDstOffsets) < nc) in TJCompressor_encodeYUV()
431 if ((*env)->GetArrayLength(env, jDstStrides) < nc) in TJCompressor_encodeYUV()
436 if ((*env)->GetArrayLength(env, src) * srcElementSize < arraySize) in TJCompressor_encodeYUV()
440 (*env)->GetPrimitiveArrayCritical(env, jDstOffsets, 0)); in TJCompressor_encodeYUV()
445 (*env)->GetPrimitiveArrayCritical(env, jDstStrides, 0)); in TJCompressor_encodeYUV()
461 BAILIF0(jDstPlanes[i] = (*env)->GetObjectArrayElement(env, dstobjs, i)); in TJCompressor_encodeYUV()
462 if ((*env)->GetArrayLength(env, jDstPlanes[i]) < in TJCompressor_encodeYUV()
467 (*env)->GetPrimitiveArrayCritical(env, jDstPlanes[i], 0)); in TJCompressor_encodeYUV()
471 BAILIF0(srcBuf = (*env)->GetPrimitiveArrayCritical(env, src, 0)); in TJCompressor_encodeYUV()
486 (JNIEnv *env, jobject obj, jbyteArray src, jint x, jint y, jint width, in Java_org_libjpegturbo_turbojpeg_TJCompressor_encodeYUV___3BIIIIII_3_3B_3I_3III() argument
490 TJCompressor_encodeYUV(env, obj, src, 1, x, y, width, pitch, height, pf, in Java_org_libjpegturbo_turbojpeg_TJCompressor_encodeYUV___3BIIIIII_3_3B_3I_3III()
496 (JNIEnv *env, jobject obj, jintArray src, jint x, jint y, jint width, in Java_org_libjpegturbo_turbojpeg_TJCompressor_encodeYUV___3IIIIIII_3_3B_3I_3III() argument
505 TJCompressor_encodeYUV(env, obj, src, sizeof(jint), x, y, width, in Java_org_libjpegturbo_turbojpeg_TJCompressor_encodeYUV___3IIIIIII_3_3B_3I_3III()
514 (JNIEnv *env, jobject obj, jarray src, jint srcElementSize, jint width, in TJCompressor_encodeYUV_12() argument
530 if ((*env)->GetArrayLength(env, src) * srcElementSize < arraySize) in TJCompressor_encodeYUV_12()
532 if ((*env)->GetArrayLength(env, dst) < in TJCompressor_encodeYUV_12()
536 BAILIF0(srcBuf = (*env)->GetPrimitiveArrayCritical(env, src, 0)); in TJCompressor_encodeYUV_12()
537 BAILIF0(dstBuf = (*env)->GetPrimitiveArrayCritical(env, dst, 0)); in TJCompressor_encodeYUV_12()
553 (JNIEnv *env, jobject obj, jbyteArray src, jint width, jint pitch, in Java_org_libjpegturbo_turbojpeg_TJCompressor_encodeYUV___3BIIII_3BII() argument
556 TJCompressor_encodeYUV_12(env, obj, src, 1, width, pitch, height, pf, dst, in Java_org_libjpegturbo_turbojpeg_TJCompressor_encodeYUV___3BIIII_3BII()
562 (JNIEnv *env, jobject obj, jintArray src, jint width, jint stride, in Java_org_libjpegturbo_turbojpeg_TJCompressor_encodeYUV___3IIIII_3BII() argument
570 TJCompressor_encodeYUV_12(env, obj, src, sizeof(jint), width, in Java_org_libjpegturbo_turbojpeg_TJCompressor_encodeYUV___3IIIII_3BII()
580 (JNIEnv *env, jobject obj) in Java_org_libjpegturbo_turbojpeg_TJCompressor_destroy() argument
587 (*env)->SetLongField(env, obj, _fid, 0); in Java_org_libjpegturbo_turbojpeg_TJCompressor_destroy()
595 (JNIEnv *env, jobject obj) in Java_org_libjpegturbo_turbojpeg_TJDecompressor_init() argument
604 BAILIF0(cls = (*env)->GetObjectClass(env, obj)); in Java_org_libjpegturbo_turbojpeg_TJDecompressor_init()
605 BAILIF0(fid = (*env)->GetFieldID(env, cls, "handle", "J")); in Java_org_libjpegturbo_turbojpeg_TJDecompressor_init()
606 (*env)->SetLongField(env, obj, fid, (size_t)handle); in Java_org_libjpegturbo_turbojpeg_TJDecompressor_init()
614 (JNIEnv *env, jclass cls) in Java_org_libjpegturbo_turbojpeg_TJ_getScalingFactors() argument
626 BAILIF0(sfcls = (*env)->FindClass(env, in Java_org_libjpegturbo_turbojpeg_TJ_getScalingFactors()
628 BAILIF0(sfjava = (jobjectArray)(*env)->NewObjectArray(env, n, sfcls, 0)); in Java_org_libjpegturbo_turbojpeg_TJ_getScalingFactors()
631 BAILIF0(sfobj = (*env)->AllocObject(env, sfcls)); in Java_org_libjpegturbo_turbojpeg_TJ_getScalingFactors()
632 BAILIF0(fid = (*env)->GetFieldID(env, sfcls, "num", "I")); in Java_org_libjpegturbo_turbojpeg_TJ_getScalingFactors()
633 (*env)->SetIntField(env, sfobj, fid, sf[i].num); in Java_org_libjpegturbo_turbojpeg_TJ_getScalingFactors()
634 BAILIF0(fid = (*env)->GetFieldID(env, sfcls, "denom", "I")); in Java_org_libjpegturbo_turbojpeg_TJ_getScalingFactors()
635 (*env)->SetIntField(env, sfobj, fid, sf[i].denom); in Java_org_libjpegturbo_turbojpeg_TJ_getScalingFactors()
636 (*env)->SetObjectArrayElement(env, sfjava, i, sfobj); in Java_org_libjpegturbo_turbojpeg_TJ_getScalingFactors()
645 (JNIEnv *env, jobject obj, jbyteArray src, jint jpegSize) in Java_org_libjpegturbo_turbojpeg_TJDecompressor_decompressHeader() argument
653 if ((*env)->GetArrayLength(env, src) < jpegSize) in Java_org_libjpegturbo_turbojpeg_TJDecompressor_decompressHeader()
656 BAILIF0(jpegBuf = (*env)->GetPrimitiveArrayCritical(env, src, 0)); in Java_org_libjpegturbo_turbojpeg_TJDecompressor_decompressHeader()
666 BAILIF0(_fid = (*env)->GetFieldID(env, _cls, "jpegSubsamp", "I")); in Java_org_libjpegturbo_turbojpeg_TJDecompressor_decompressHeader()
667 (*env)->SetIntField(env, obj, _fid, jpegSubsamp); in Java_org_libjpegturbo_turbojpeg_TJDecompressor_decompressHeader()
668 if ((_fid = (*env)->GetFieldID(env, _cls, "jpegColorspace", "I")) == 0) in Java_org_libjpegturbo_turbojpeg_TJDecompressor_decompressHeader()
669 (*env)->ExceptionClear(env); in Java_org_libjpegturbo_turbojpeg_TJDecompressor_decompressHeader()
671 (*env)->SetIntField(env, obj, _fid, jpegColorspace); in Java_org_libjpegturbo_turbojpeg_TJDecompressor_decompressHeader()
672 BAILIF0(_fid = (*env)->GetFieldID(env, _cls, "jpegWidth", "I")); in Java_org_libjpegturbo_turbojpeg_TJDecompressor_decompressHeader()
673 (*env)->SetIntField(env, obj, _fid, width); in Java_org_libjpegturbo_turbojpeg_TJDecompressor_decompressHeader()
674 BAILIF0(_fid = (*env)->GetFieldID(env, _cls, "jpegHeight", "I")); in Java_org_libjpegturbo_turbojpeg_TJDecompressor_decompressHeader()
675 (*env)->SetIntField(env, obj, _fid, height); in Java_org_libjpegturbo_turbojpeg_TJDecompressor_decompressHeader()
682 (JNIEnv *env, jobject obj, jbyteArray src, jint jpegSize, jarray dst, in TJDecompressor_decompress() argument
697 if ((*env)->GetArrayLength(env, src) < jpegSize) in TJDecompressor_decompress()
701 if ((*env)->GetArrayLength(env, dst) * dstElementSize < arraySize) in TJDecompressor_decompress()
704 BAILIF0(jpegBuf = (*env)->GetPrimitiveArrayCritical(env, src, 0)); in TJDecompressor_decompress()
705 BAILIF0(dstBuf = (*env)->GetPrimitiveArrayCritical(env, dst, 0)); in TJDecompressor_decompress()
722 (JNIEnv *env, jobject obj, jbyteArray src, jint jpegSize, jbyteArray dst, in Java_org_libjpegturbo_turbojpeg_TJDecompressor_decompress___3BI_3BIIIIIII() argument
725 TJDecompressor_decompress(env, obj, src, jpegSize, dst, 1, x, y, width, in Java_org_libjpegturbo_turbojpeg_TJDecompressor_decompress___3BI_3BIIIIIII()
731 (JNIEnv *env, jobject obj, jbyteArray src, jint jpegSize, jbyteArray dst, in Java_org_libjpegturbo_turbojpeg_TJDecompressor_decompress___3BI_3BIIIII() argument
734 TJDecompressor_decompress(env, obj, src, jpegSize, dst, 1, 0, 0, width, in Java_org_libjpegturbo_turbojpeg_TJDecompressor_decompress___3BI_3BIIIII()
740 (JNIEnv *env, jobject obj, jbyteArray src, jint jpegSize, jintArray dst, in Java_org_libjpegturbo_turbojpeg_TJDecompressor_decompress___3BI_3IIIIIIII() argument
748 TJDecompressor_decompress(env, obj, src, jpegSize, dst, sizeof(jint), x, y, in Java_org_libjpegturbo_turbojpeg_TJDecompressor_decompress___3BI_3IIIIIIII()
757 (JNIEnv *env, jobject obj, jbyteArray src, jint jpegSize, jintArray dst, in Java_org_libjpegturbo_turbojpeg_TJDecompressor_decompress___3BI_3IIIIII() argument
765 TJDecompressor_decompress(env, obj, src, jpegSize, dst, sizeof(jint), 0, 0, in Java_org_libjpegturbo_turbojpeg_TJDecompressor_decompress___3BI_3IIIIII()
774 (JNIEnv *env, jobject obj, jbyteArray src, jint jpegSize, in Java_org_libjpegturbo_turbojpeg_TJDecompressor_decompressToYUV___3BI_3_3B_3II_3III() argument
791 if ((*env)->GetArrayLength(env, src) < jpegSize) in Java_org_libjpegturbo_turbojpeg_TJDecompressor_decompressToYUV___3BI_3_3B_3II_3III()
793 BAILIF0(_fid = (*env)->GetFieldID(env, _cls, "jpegSubsamp", "I")); in Java_org_libjpegturbo_turbojpeg_TJDecompressor_decompressToYUV___3BI_3_3B_3II_3III()
794 jpegSubsamp = (int)(*env)->GetIntField(env, obj, _fid); in Java_org_libjpegturbo_turbojpeg_TJDecompressor_decompressToYUV___3BI_3_3B_3II_3III()
795 BAILIF0(_fid = (*env)->GetFieldID(env, _cls, "jpegWidth", "I")); in Java_org_libjpegturbo_turbojpeg_TJDecompressor_decompressToYUV___3BI_3_3B_3II_3III()
796 jpegWidth = (int)(*env)->GetIntField(env, obj, _fid); in Java_org_libjpegturbo_turbojpeg_TJDecompressor_decompressToYUV___3BI_3_3B_3II_3III()
797 BAILIF0(_fid = (*env)->GetFieldID(env, _cls, "jpegHeight", "I")); in Java_org_libjpegturbo_turbojpeg_TJDecompressor_decompressToYUV___3BI_3_3B_3II_3III()
798 jpegHeight = (int)(*env)->GetIntField(env, obj, _fid); in Java_org_libjpegturbo_turbojpeg_TJDecompressor_decompressToYUV___3BI_3_3B_3II_3III()
819 (*env)->GetPrimitiveArrayCritical(env, jDstOffsets, 0)); in Java_org_libjpegturbo_turbojpeg_TJDecompressor_decompressToYUV___3BI_3_3B_3II_3III()
824 (*env)->GetPrimitiveArrayCritical(env, jDstStrides, 0)); in Java_org_libjpegturbo_turbojpeg_TJDecompressor_decompressToYUV___3BI_3_3B_3II_3III()
841 BAILIF0(jDstPlanes[i] = (*env)->GetObjectArrayElement(env, dstobjs, i)); in Java_org_libjpegturbo_turbojpeg_TJDecompressor_decompressToYUV___3BI_3_3B_3II_3III()
842 if ((*env)->GetArrayLength(env, jDstPlanes[i]) < in Java_org_libjpegturbo_turbojpeg_TJDecompressor_decompressToYUV___3BI_3_3B_3II_3III()
847 (*env)->GetPrimitiveArrayCritical(env, jDstPlanes[i], 0)); in Java_org_libjpegturbo_turbojpeg_TJDecompressor_decompressToYUV___3BI_3_3B_3II_3III()
851 BAILIF0(jpegBuf = (*env)->GetPrimitiveArrayCritical(env, src, 0)); in Java_org_libjpegturbo_turbojpeg_TJDecompressor_decompressToYUV___3BI_3_3B_3II_3III()
866 (JNIEnv *env, jobject obj, jbyteArray src, jint jpegSize, jbyteArray dst, in Java_org_libjpegturbo_turbojpeg_TJDecompressor_decompressToYUV___3BI_3BI() argument
875 if ((*env)->GetArrayLength(env, src) < jpegSize) in Java_org_libjpegturbo_turbojpeg_TJDecompressor_decompressToYUV___3BI_3BI()
877 BAILIF0(_fid = (*env)->GetFieldID(env, _cls, "jpegSubsamp", "I")); in Java_org_libjpegturbo_turbojpeg_TJDecompressor_decompressToYUV___3BI_3BI()
878 jpegSubsamp = (int)(*env)->GetIntField(env, obj, _fid); in Java_org_libjpegturbo_turbojpeg_TJDecompressor_decompressToYUV___3BI_3BI()
879 BAILIF0(_fid = (*env)->GetFieldID(env, _cls, "jpegWidth", "I")); in Java_org_libjpegturbo_turbojpeg_TJDecompressor_decompressToYUV___3BI_3BI()
880 jpegWidth = (int)(*env)->GetIntField(env, obj, _fid); in Java_org_libjpegturbo_turbojpeg_TJDecompressor_decompressToYUV___3BI_3BI()
881 BAILIF0(_fid = (*env)->GetFieldID(env, _cls, "jpegHeight", "I")); in Java_org_libjpegturbo_turbojpeg_TJDecompressor_decompressToYUV___3BI_3BI()
882 jpegHeight = (int)(*env)->GetIntField(env, obj, _fid); in Java_org_libjpegturbo_turbojpeg_TJDecompressor_decompressToYUV___3BI_3BI()
883 if ((*env)->GetArrayLength(env, dst) < in Java_org_libjpegturbo_turbojpeg_TJDecompressor_decompressToYUV___3BI_3BI()
887 BAILIF0(jpegBuf = (*env)->GetPrimitiveArrayCritical(env, src, 0)); in Java_org_libjpegturbo_turbojpeg_TJDecompressor_decompressToYUV___3BI_3BI()
888 BAILIF0(dstBuf = (*env)->GetPrimitiveArrayCritical(env, dst, 0)); in Java_org_libjpegturbo_turbojpeg_TJDecompressor_decompressToYUV___3BI_3BI()
903 (JNIEnv *env, jobject obj, jobjectArray srcobjs, jintArray jSrcOffsets, in TJDecompressor_decodeYUV() argument
926 if ((*env)->GetArrayLength(env, srcobjs) < nc) in TJDecompressor_decodeYUV()
928 if ((*env)->GetArrayLength(env, jSrcOffsets) < nc) in TJDecompressor_decodeYUV()
930 if ((*env)->GetArrayLength(env, jSrcStrides) < nc) in TJDecompressor_decodeYUV()
935 if ((*env)->GetArrayLength(env, dst) * dstElementSize < arraySize) in TJDecompressor_decodeYUV()
939 (*env)->GetPrimitiveArrayCritical(env, jSrcOffsets, 0)); in TJDecompressor_decodeYUV()
944 (*env)->GetPrimitiveArrayCritical(env, jSrcStrides, 0)); in TJDecompressor_decodeYUV()
960 BAILIF0(jSrcPlanes[i] = (*env)->GetObjectArrayElement(env, srcobjs, i)); in TJDecompressor_decodeYUV()
961 if ((*env)->GetArrayLength(env, jSrcPlanes[i]) < in TJDecompressor_decodeYUV()
966 (*env)->GetPrimitiveArrayCritical(env, jSrcPlanes[i], 0)); in TJDecompressor_decodeYUV()
970 BAILIF0(dstBuf = (*env)->GetPrimitiveArrayCritical(env, dst, 0)); in TJDecompressor_decodeYUV()
985 (JNIEnv *env, jobject obj, jobjectArray srcobjs, jintArray jSrcOffsets, in Java_org_libjpegturbo_turbojpeg_TJDecompressor_decodeYUV___3_3B_3I_3II_3BIIIIIII() argument
989 TJDecompressor_decodeYUV(env, obj, srcobjs, jSrcOffsets, jSrcStrides, in Java_org_libjpegturbo_turbojpeg_TJDecompressor_decodeYUV___3_3B_3I_3II_3BIIIIIII()
996 (JNIEnv *env, jobject obj, jobjectArray srcobjs, jintArray jSrcOffsets, in Java_org_libjpegturbo_turbojpeg_TJDecompressor_decodeYUV___3_3B_3I_3II_3IIIIIIII() argument
1005 TJDecompressor_decodeYUV(env, obj, srcobjs, jSrcOffsets, jSrcStrides, in Java_org_libjpegturbo_turbojpeg_TJDecompressor_decodeYUV___3_3B_3I_3II_3IIIIIIII()
1015 (JNIEnv *env, jobject obj) in Java_org_libjpegturbo_turbojpeg_TJTransformer_init() argument
1024 BAILIF0(cls = (*env)->GetObjectClass(env, obj)); in Java_org_libjpegturbo_turbojpeg_TJTransformer_init()
1025 BAILIF0(fid = (*env)->GetFieldID(env, cls, "handle", "J")); in Java_org_libjpegturbo_turbojpeg_TJTransformer_init()
1026 (*env)->SetLongField(env, obj, fid, (size_t)handle); in Java_org_libjpegturbo_turbojpeg_TJTransformer_init()
1033 JNIEnv *env; member
1043 JNIEnv *env = params->env; in JNICustomFilter() local
1050 BAILIF0(bufobj = (*env)->NewDirectByteBuffer(env, coeffs, in JNICustomFilter()
1052 BAILIF0(cls = (*env)->FindClass(env, "java/nio/ByteOrder")); in JNICustomFilter()
1053 BAILIF0(mid = (*env)->GetStaticMethodID(env, cls, "nativeOrder", in JNICustomFilter()
1055 BAILIF0(borobj = (*env)->CallStaticObjectMethod(env, cls, mid)); in JNICustomFilter()
1056 BAILIF0(cls = (*env)->GetObjectClass(env, bufobj)); in JNICustomFilter()
1057 BAILIF0(mid = (*env)->GetMethodID(env, cls, "order", in JNICustomFilter()
1059 (*env)->CallObjectMethod(env, bufobj, mid, borobj); in JNICustomFilter()
1060 BAILIF0(mid = (*env)->GetMethodID(env, cls, "asShortBuffer", in JNICustomFilter()
1062 BAILIF0(bufobj = (*env)->CallObjectMethod(env, bufobj, mid)); in JNICustomFilter()
1064 BAILIF0(cls = (*env)->FindClass(env, "java/awt/Rectangle")); in JNICustomFilter()
1065 BAILIF0(arrayRegionObj = (*env)->AllocObject(env, cls)); in JNICustomFilter()
1066 BAILIF0(fid = (*env)->GetFieldID(env, cls, "x", "I")); in JNICustomFilter()
1067 (*env)->SetIntField(env, arrayRegionObj, fid, arrayRegion.x); in JNICustomFilter()
1068 BAILIF0(fid = (*env)->GetFieldID(env, cls, "y", "I")); in JNICustomFilter()
1069 (*env)->SetIntField(env, arrayRegionObj, fid, arrayRegion.y); in JNICustomFilter()
1070 BAILIF0(fid = (*env)->GetFieldID(env, cls, "width", "I")); in JNICustomFilter()
1071 (*env)->SetIntField(env, arrayRegionObj, fid, arrayRegion.w); in JNICustomFilter()
1072 BAILIF0(fid = (*env)->GetFieldID(env, cls, "height", "I")); in JNICustomFilter()
1073 (*env)->SetIntField(env, arrayRegionObj, fid, arrayRegion.h); in JNICustomFilter()
1075 BAILIF0(planeRegionObj = (*env)->AllocObject(env, cls)); in JNICustomFilter()
1076 BAILIF0(fid = (*env)->GetFieldID(env, cls, "x", "I")); in JNICustomFilter()
1077 (*env)->SetIntField(env, planeRegionObj, fid, planeRegion.x); in JNICustomFilter()
1078 BAILIF0(fid = (*env)->GetFieldID(env, cls, "y", "I")); in JNICustomFilter()
1079 (*env)->SetIntField(env, planeRegionObj, fid, planeRegion.y); in JNICustomFilter()
1080 BAILIF0(fid = (*env)->GetFieldID(env, cls, "width", "I")); in JNICustomFilter()
1081 (*env)->SetIntField(env, planeRegionObj, fid, planeRegion.w); in JNICustomFilter()
1082 BAILIF0(fid = (*env)->GetFieldID(env, cls, "height", "I")); in JNICustomFilter()
1083 (*env)->SetIntField(env, planeRegionObj, fid, planeRegion.h); in JNICustomFilter()
1085 BAILIF0(cls = (*env)->GetObjectClass(env, cfobj)); in JNICustomFilter()
1086 BAILIF0(mid = (*env)->GetMethodID(env, cls, "customFilter", in JNICustomFilter()
1088 (*env)->CallVoidMethod(env, cfobj, mid, bufobj, arrayRegionObj, in JNICustomFilter()
1099 (JNIEnv *env, jobject obj, jbyteArray jsrcBuf, jint jpegSize, in Java_org_libjpegturbo_turbojpeg_TJTransformer_transform() argument
1115 if ((*env)->GetArrayLength(env, jsrcBuf) < jpegSize) in Java_org_libjpegturbo_turbojpeg_TJTransformer_transform()
1117 BAILIF0(_fid = (*env)->GetFieldID(env, _cls, "jpegWidth", "I")); in Java_org_libjpegturbo_turbojpeg_TJTransformer_transform()
1118 jpegWidth = (int)(*env)->GetIntField(env, obj, _fid); in Java_org_libjpegturbo_turbojpeg_TJTransformer_transform()
1119 BAILIF0(_fid = (*env)->GetFieldID(env, _cls, "jpegHeight", "I")); in Java_org_libjpegturbo_turbojpeg_TJTransformer_transform()
1120 jpegHeight = (int)(*env)->GetIntField(env, obj, _fid); in Java_org_libjpegturbo_turbojpeg_TJTransformer_transform()
1121 BAILIF0(_fid = (*env)->GetFieldID(env, _cls, "jpegSubsamp", "I")); in Java_org_libjpegturbo_turbojpeg_TJTransformer_transform()
1122 jpegSubsamp = (int)(*env)->GetIntField(env, obj, _fid); in Java_org_libjpegturbo_turbojpeg_TJTransformer_transform()
1124 n = (*env)->GetArrayLength(env, dstobjs); in Java_org_libjpegturbo_turbojpeg_TJTransformer_transform()
1125 if (n != (*env)->GetArrayLength(env, tobjs)) in Java_org_libjpegturbo_turbojpeg_TJTransformer_transform()
1149 BAILIF0(tobj = (*env)->GetObjectArrayElement(env, tobjs, i)); in Java_org_libjpegturbo_turbojpeg_TJTransformer_transform()
1150 BAILIF0(_cls = (*env)->GetObjectClass(env, tobj)); in Java_org_libjpegturbo_turbojpeg_TJTransformer_transform()
1151 BAILIF0(_fid = (*env)->GetFieldID(env, _cls, "op", "I")); in Java_org_libjpegturbo_turbojpeg_TJTransformer_transform()
1152 t[i].op = (*env)->GetIntField(env, tobj, _fid); in Java_org_libjpegturbo_turbojpeg_TJTransformer_transform()
1153 BAILIF0(_fid = (*env)->GetFieldID(env, _cls, "options", "I")); in Java_org_libjpegturbo_turbojpeg_TJTransformer_transform()
1154 t[i].options = (*env)->GetIntField(env, tobj, _fid); in Java_org_libjpegturbo_turbojpeg_TJTransformer_transform()
1155 BAILIF0(_fid = (*env)->GetFieldID(env, _cls, "x", "I")); in Java_org_libjpegturbo_turbojpeg_TJTransformer_transform()
1156 t[i].r.x = (*env)->GetIntField(env, tobj, _fid); in Java_org_libjpegturbo_turbojpeg_TJTransformer_transform()
1157 BAILIF0(_fid = (*env)->GetFieldID(env, _cls, "y", "I")); in Java_org_libjpegturbo_turbojpeg_TJTransformer_transform()
1158 t[i].r.y = (*env)->GetIntField(env, tobj, _fid); in Java_org_libjpegturbo_turbojpeg_TJTransformer_transform()
1159 BAILIF0(_fid = (*env)->GetFieldID(env, _cls, "width", "I")); in Java_org_libjpegturbo_turbojpeg_TJTransformer_transform()
1160 t[i].r.w = (*env)->GetIntField(env, tobj, _fid); in Java_org_libjpegturbo_turbojpeg_TJTransformer_transform()
1161 BAILIF0(_fid = (*env)->GetFieldID(env, _cls, "height", "I")); in Java_org_libjpegturbo_turbojpeg_TJTransformer_transform()
1162 t[i].r.h = (*env)->GetIntField(env, tobj, _fid); in Java_org_libjpegturbo_turbojpeg_TJTransformer_transform()
1164 BAILIF0(_fid = (*env)->GetFieldID(env, _cls, "cf", in Java_org_libjpegturbo_turbojpeg_TJTransformer_transform()
1166 cfobj = (*env)->GetObjectField(env, tobj, _fid); in Java_org_libjpegturbo_turbojpeg_TJTransformer_transform()
1168 params[i].env = env; in Java_org_libjpegturbo_turbojpeg_TJTransformer_transform()
1181 BAILIF0(jdstBufs[i] = (*env)->GetObjectArrayElement(env, dstobjs, i)); in Java_org_libjpegturbo_turbojpeg_TJTransformer_transform()
1182 if ((unsigned long)(*env)->GetArrayLength(env, jdstBufs[i]) < in Java_org_libjpegturbo_turbojpeg_TJTransformer_transform()
1186 BAILIF0(jpegBuf = (*env)->GetPrimitiveArrayCritical(env, jsrcBuf, 0)); in Java_org_libjpegturbo_turbojpeg_TJTransformer_transform()
1189 (*env)->GetPrimitiveArrayCritical(env, jdstBufs[i], 0)); in Java_org_libjpegturbo_turbojpeg_TJTransformer_transform()
1203 jdstSizes = (*env)->NewIntArray(env, n); in Java_org_libjpegturbo_turbojpeg_TJTransformer_transform()
1204 BAILIF0(dstSizesi = (*env)->GetIntArrayElements(env, jdstSizes, 0)); in Java_org_libjpegturbo_turbojpeg_TJTransformer_transform()
1208 if (dstSizesi) (*env)->ReleaseIntArrayElements(env, jdstSizes, dstSizesi, 0); in Java_org_libjpegturbo_turbojpeg_TJTransformer_transform()
1212 (*env)->ReleasePrimitiveArrayCritical(env, jdstBufs[i], dstBufs[i], 0); in Java_org_libjpegturbo_turbojpeg_TJTransformer_transform()
1225 (JNIEnv *env, jobject obj) in Java_org_libjpegturbo_turbojpeg_TJDecompressor_destroy() argument
1227 Java_org_libjpegturbo_turbojpeg_TJCompressor_destroy(env, obj); in Java_org_libjpegturbo_turbojpeg_TJDecompressor_destroy()