Lines Matching refs:jpegBuf
191 unsigned char *srcBuf=NULL, *jpegBuf=NULL; in TJCompressor_compress() local
210 bailif0(jpegBuf=(*env)->GetPrimitiveArrayCritical(env, dst, 0)); in TJCompressor_compress()
215 pitch, height, pf, &jpegBuf, &jpegSize, jpegSubsamp, jpegQual, in TJCompressor_compress()
220 if(jpegBuf) (*env)->ReleasePrimitiveArrayCritical(env, dst, jpegBuf, 0); in TJCompressor_compress()
290 unsigned char *srcPlanes[3], *jpegBuf=NULL; in Java_org_libjpegturbo_turbojpeg_TJCompressor_compressFromYUV___3_3B_3II_3III_3BII() local
335 bailif0(jpegBuf=(*env)->GetPrimitiveArrayCritical(env, dst, 0)); in Java_org_libjpegturbo_turbojpeg_TJCompressor_compressFromYUV___3_3B_3II_3III_3BII()
340 subsamp, &jpegBuf, &jpegSize, jpegQual, flags|TJFLAG_NOREALLOC)==-1) in Java_org_libjpegturbo_turbojpeg_TJCompressor_compressFromYUV___3_3B_3II_3III_3BII()
344 if(jpegBuf) (*env)->ReleasePrimitiveArrayCritical(env, dst, jpegBuf, 0); in Java_org_libjpegturbo_turbojpeg_TJCompressor_compressFromYUV___3_3B_3II_3III_3BII()
593 unsigned char *jpegBuf=NULL; in Java_org_libjpegturbo_turbojpeg_TJDecompressor_decompressHeader() local
601 bailif0(jpegBuf=(*env)->GetPrimitiveArrayCritical(env, src, 0)); in Java_org_libjpegturbo_turbojpeg_TJDecompressor_decompressHeader()
603 if(tjDecompressHeader3(handle, jpegBuf, (unsigned long)jpegSize, in Java_org_libjpegturbo_turbojpeg_TJDecompressor_decompressHeader()
607 (*env)->ReleasePrimitiveArrayCritical(env, src, jpegBuf, 0); jpegBuf=NULL; in Java_org_libjpegturbo_turbojpeg_TJDecompressor_decompressHeader()
621 if(jpegBuf) (*env)->ReleasePrimitiveArrayCritical(env, src, jpegBuf, 0); in Java_org_libjpegturbo_turbojpeg_TJDecompressor_decompressHeader()
632 unsigned char *jpegBuf=NULL, *dstBuf=NULL; in TJDecompressor_decompress() local
648 bailif0(jpegBuf=(*env)->GetPrimitiveArrayCritical(env, src, 0)); in TJDecompressor_decompress()
651 if(tjDecompress2(handle, jpegBuf, (unsigned long)jpegSize, in TJDecompressor_decompress()
658 if(jpegBuf) (*env)->ReleasePrimitiveArrayCritical(env, src, jpegBuf, 0); in TJDecompressor_decompress()
723 unsigned char *jpegBuf=NULL, *dstPlanes[3]; in Java_org_libjpegturbo_turbojpeg_TJDecompressor_decompressToYUV___3BI_3_3B_3II_3III() local
781 bailif0(jpegBuf=(*env)->GetPrimitiveArrayCritical(env, src, 0)); in Java_org_libjpegturbo_turbojpeg_TJDecompressor_decompressToYUV___3BI_3_3B_3II_3III()
783 if(tjDecompressToYUVPlanes(handle, jpegBuf, (unsigned long)jpegSize, in Java_org_libjpegturbo_turbojpeg_TJDecompressor_decompressToYUV___3BI_3_3B_3II_3III()
788 if(jpegBuf) (*env)->ReleasePrimitiveArrayCritical(env, src, jpegBuf, 0); in Java_org_libjpegturbo_turbojpeg_TJDecompressor_decompressToYUV___3BI_3_3B_3II_3III()
808 unsigned char *jpegBuf=NULL, *dstBuf=NULL; in Java_org_libjpegturbo_turbojpeg_TJDecompressor_decompressToYUV___3BI_3BI() local
825 bailif0(jpegBuf=(*env)->GetPrimitiveArrayCritical(env, src, 0)); in Java_org_libjpegturbo_turbojpeg_TJDecompressor_decompressToYUV___3BI_3BI()
828 if(tjDecompressToYUV(handle, jpegBuf, (unsigned long)jpegSize, dstBuf, in Java_org_libjpegturbo_turbojpeg_TJDecompressor_decompressToYUV___3BI_3BI()
834 if(jpegBuf) (*env)->ReleasePrimitiveArrayCritical(env, src, jpegBuf, 0); in Java_org_libjpegturbo_turbojpeg_TJDecompressor_decompressToYUV___3BI_3BI()
1033 unsigned char *jpegBuf=NULL, **dstBufs=NULL; jsize n=0; in Java_org_libjpegturbo_turbojpeg_TJTransformer_transform() local
1115 bailif0(jpegBuf=(*env)->GetPrimitiveArrayCritical(env, jsrcBuf, 0)); in Java_org_libjpegturbo_turbojpeg_TJTransformer_transform()
1119 if(tjTransform(handle, jpegBuf, jpegSize, n, dstBufs, dstSizes, t, in Java_org_libjpegturbo_turbojpeg_TJTransformer_transform()
1128 (*env)->ReleasePrimitiveArrayCritical(env, jsrcBuf, jpegBuf, 0); in Java_org_libjpegturbo_turbojpeg_TJTransformer_transform()
1129 jpegBuf=NULL; in Java_org_libjpegturbo_turbojpeg_TJTransformer_transform()
1146 if(jpegBuf) (*env)->ReleasePrimitiveArrayCritical(env, jsrcBuf, jpegBuf, 0); in Java_org_libjpegturbo_turbojpeg_TJTransformer_transform()