Lines Matching refs:dstBuf
500 unsigned char *srcBuf = NULL, *dstBuf = NULL; in TJCompressor_encodeYUV_12() local
518 bailif0(dstBuf = (*env)->GetPrimitiveArrayCritical(env, dst, 0)); in TJCompressor_encodeYUV_12()
520 if (tjEncodeYUV2(handle, srcBuf, width, pitch, height, pf, dstBuf, subsamp, in TJCompressor_encodeYUV_12()
525 if (dstBuf) (*env)->ReleasePrimitiveArrayCritical(env, dst, dstBuf, 0); in TJCompressor_encodeYUV_12()
665 unsigned char *jpegBuf = NULL, *dstBuf = NULL; in TJDecompressor_decompress() local
682 bailif0(dstBuf = (*env)->GetPrimitiveArrayCritical(env, dst, 0)); in TJDecompressor_decompress()
685 &dstBuf[y * actualPitch + x * tjPixelSize[pf]], width, in TJDecompressor_decompress()
690 if (dstBuf) (*env)->ReleasePrimitiveArrayCritical(env, dst, dstBuf, 0); in TJDecompressor_decompress()
838 unsigned char *jpegBuf = NULL, *dstBuf = NULL; in Java_org_libjpegturbo_turbojpeg_TJDecompressor_decompressToYUV___3BI_3BI() local
856 bailif0(dstBuf = (*env)->GetPrimitiveArrayCritical(env, dst, 0)); in Java_org_libjpegturbo_turbojpeg_TJDecompressor_decompressToYUV___3BI_3BI()
858 if (tjDecompressToYUV(handle, jpegBuf, (unsigned long)jpegSize, dstBuf, in Java_org_libjpegturbo_turbojpeg_TJDecompressor_decompressToYUV___3BI_3BI()
863 if (dstBuf) (*env)->ReleasePrimitiveArrayCritical(env, dst, dstBuf, 0); in Java_org_libjpegturbo_turbojpeg_TJDecompressor_decompressToYUV___3BI_3BI()
876 unsigned char *dstBuf = NULL; in TJDecompressor_decodeYUV() local
923 bailif0(dstBuf = (*env)->GetPrimitiveArrayCritical(env, dst, 0)); in TJDecompressor_decodeYUV()
926 &dstBuf[y * actualPitch + x * tjPixelSize[pf]], width, in TJDecompressor_decodeYUV()
931 if (dstBuf) (*env)->ReleasePrimitiveArrayCritical(env, dst, dstBuf, 0); in TJDecompressor_decodeYUV()