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