Lines Matching refs:srcBuf
106 unsigned char *srcBuf=NULL, *jpegBuf=NULL;
124 bailif0(srcBuf=(*env)->GetPrimitiveArrayCritical(env, src, 0));
127 if(tjCompress2(handle, &srcBuf[y*actualPitch + x*tjPixelSize[pf]], width,
132 (*env)->ReleasePrimitiveArrayCritical(env, src, srcBuf, 0);
133 jpegBuf=srcBuf=NULL;
139 if(srcBuf) (*env)->ReleasePrimitiveArrayCritical(env, src, srcBuf, 0);
161 unsigned char *srcBuf=NULL, *jpegBuf=NULL;
181 bailif0(srcBuf=(*env)->GetPrimitiveArrayCritical(env, src, 0));
184 if(tjCompress2(handle, &srcBuf[(y*actualStride + x)*sizeof(int)], width,
189 (*env)->ReleasePrimitiveArrayCritical(env, src, srcBuf, 0);
190 jpegBuf=srcBuf=NULL;
196 if(srcBuf) (*env)->ReleasePrimitiveArrayCritical(env, src, srcBuf, 0);
216 unsigned char *srcBuf=NULL, *dstBuf=NULL;
233 bailif0(srcBuf=(*env)->GetPrimitiveArrayCritical(env, src, 0));
236 if(tjEncodeYUV2(handle, srcBuf, width, pitch, height, pf, dstBuf, subsamp,
240 (*env)->ReleasePrimitiveArrayCritical(env, src, srcBuf, 0);
241 dstBuf=srcBuf=NULL;
247 if(srcBuf) (*env)->ReleasePrimitiveArrayCritical(env, src, srcBuf, 0);
257 unsigned char *srcBuf=NULL, *dstBuf=NULL;
276 bailif0(srcBuf=(*env)->GetPrimitiveArrayCritical(env, src, 0));
279 if(tjEncodeYUV2(handle, srcBuf, width, stride*sizeof(jint), height, pf,
283 (*env)->ReleasePrimitiveArrayCritical(env, src, srcBuf, 0);
284 dstBuf=srcBuf=NULL;
290 if(srcBuf) (*env)->ReleasePrimitiveArrayCritical(env, src, srcBuf, 0);