Lines Matching refs:dstBuf
238 void compTest(tjhandle handle, unsigned char **dstBuf, in compTest() argument
252 if(*dstBuf && *dstSize>0) memset(*dstBuf, 0, *dstSize); in compTest()
256 _tj(tjCompress2(handle, srcBuf, w, 0, h, pf, dstBuf, dstSize, subsamp, in compTest()
263 writeJPEG(*dstBuf, *dstSize, tempStr); in compTest()
276 unsigned char *dstBuf=NULL; in _decompTest() local
294 if((dstBuf=(unsigned char *)malloc(dstSize))==NULL) in _decompTest()
296 memset(dstBuf, 0, dstSize); in _decompTest()
299 _tj(tjDecompress2(handle, jpegBuf, jpegSize, dstBuf, scaledWidth, 0, in _decompTest()
303 if(checkBuf(dstBuf, scaledWidth, scaledHeight, pf, subsamp, sf, flags)) in _decompTest()
309 if(dstBuf) free(dstBuf); in _decompTest()
340 unsigned char *dstBuf=NULL; in doTest() local
344 if((dstBuf=(unsigned char *)malloc(size))==NULL) in doTest()
359 compTest(chandle, &dstBuf, &size, w, h, pf, basename, subsamp, 100, in doTest()
361 decompTest(dhandle, dstBuf, size, w, h, pf, basename, subsamp, in doTest()
364 decompTest(dhandle, dstBuf, size, w, h, pf+(TJPF_RGBA-TJPF_RGBX), in doTest()
373 if(dstBuf) free(dstBuf); in doTest()