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