Lines Matching defs:jpegBuf
224 void writeJPEG(unsigned char *jpegBuf, unsigned long jpegSize, char *filename)
227 if(!file || fwrite(jpegBuf, jpegSize, 1, file)!=1)
272 void _decompTest(tjhandle handle, unsigned char *jpegBuf,
288 _tj(tjDecompressHeader2(handle, jpegBuf, jpegSize, &_hdrw, &_hdrh,
299 _tj(tjDecompress2(handle, jpegBuf, jpegSize, dstBuf, scaledWidth, 0,
313 void decompTest(tjhandle handle, unsigned char *jpegBuf,
324 _decompTest(handle, jpegBuf, jpegSize, w, h, pf, basename, subsamp,
328 _decompTest(handle, jpegBuf, jpegSize, w, h, pf, basename, subsamp, flags,
380 unsigned char *srcBuf=NULL, *jpegBuf=NULL;
397 if((jpegBuf=(unsigned char *)malloc(tjBufSize(w, h, subsamp)))
408 _tj(tjCompress2(handle, srcBuf, w, 0, h, TJPF_BGRX, &jpegBuf,
411 free(jpegBuf); jpegBuf=NULL;
415 if((jpegBuf=(unsigned char *)malloc(tjBufSize(h, w, subsamp)))
426 _tj(tjCompress2(handle, srcBuf, h, 0, w, TJPF_BGRX, &jpegBuf,
429 free(jpegBuf); jpegBuf=NULL;
437 if(jpegBuf) free(jpegBuf);