Lines Matching refs:srcBuf
195 unsigned char *srcBuf=NULL, *jpegBuf=NULL; in TJCompressor_compress() local
213 bailif0(srcBuf=(*env)->GetPrimitiveArrayCritical(env, src, 0)); in TJCompressor_compress()
218 if(tjCompress2(handle, &srcBuf[y*actualPitch + x*tjPixelSize[pf]], width, in TJCompressor_compress()
225 if(srcBuf) (*env)->ReleasePrimitiveArrayCritical(env, src, srcBuf, 0); in TJCompressor_compress()
371 unsigned char *srcBuf=NULL, *dstPlanes[3]; in TJCompressor_encodeYUV() local
419 bailif0(srcBuf=(*env)->GetPrimitiveArrayCritical(env, src, 0)); in TJCompressor_encodeYUV()
421 if(tjEncodeYUVPlanes(handle, &srcBuf[y*actualPitch + x*tjPixelSize[pf]], in TJCompressor_encodeYUV()
426 if(srcBuf) (*env)->ReleasePrimitiveArrayCritical(env, src, srcBuf, 0); in TJCompressor_encodeYUV()
475 unsigned char *srcBuf=NULL, *dstBuf=NULL; in TJCompressor_encodeYUV_12() local
492 bailif0(srcBuf=(*env)->GetPrimitiveArrayCritical(env, src, 0)); in TJCompressor_encodeYUV_12()
495 if(tjEncodeYUV2(handle, srcBuf, width, pitch, height, pf, dstBuf, subsamp, in TJCompressor_encodeYUV_12()
501 if(srcBuf) (*env)->ReleasePrimitiveArrayCritical(env, src, srcBuf, 0); in TJCompressor_encodeYUV_12()