Lines Matching refs:srcBuf
225 unsigned char *srcBuf = NULL, *jpegBuf = NULL; in TJCompressor_compress() local
245 BAILIF0(srcBuf = (*env)->GetPrimitiveArrayCritical(env, src, 0)); in TJCompressor_compress()
248 if (tjCompress2(handle, &srcBuf[y * actualPitch + x * tjPixelSize[pf]], in TJCompressor_compress()
252 SAFE_RELEASE(src, srcBuf); in TJCompressor_compress()
258 SAFE_RELEASE(src, srcBuf); in TJCompressor_compress()
409 unsigned char *srcBuf = NULL; in TJCompressor_encodeYUV() local
471 BAILIF0(srcBuf = (*env)->GetPrimitiveArrayCritical(env, src, 0)); in TJCompressor_encodeYUV()
473 if (tjEncodeYUVPlanes(handle, &srcBuf[y * actualPitch + x * tjPixelSize[pf]], in TJCompressor_encodeYUV()
476 SAFE_RELEASE(src, srcBuf); in TJCompressor_encodeYUV()
481 SAFE_RELEASE(src, srcBuf); in TJCompressor_encodeYUV()
519 unsigned char *srcBuf = NULL, *dstBuf = NULL; in TJCompressor_encodeYUV_12() local
536 BAILIF0(srcBuf = (*env)->GetPrimitiveArrayCritical(env, src, 0)); in TJCompressor_encodeYUV_12()
539 if (tjEncodeYUV2(handle, srcBuf, width, pitch, height, pf, dstBuf, subsamp, in TJCompressor_encodeYUV_12()
542 SAFE_RELEASE(src, srcBuf); in TJCompressor_encodeYUV_12()
548 SAFE_RELEASE(src, srcBuf); in TJCompressor_encodeYUV_12()