Lines Matching defs:dstBuf
395 void compTest(tjhandle handle, unsigned char **dstBuf,
408 if(*dstBuf && *dstSize>0) memset(*dstBuf, 0, *dstSize);
432 _tj(tjCompressFromYUV(handle, yuvBuf, w, pad, h, subsamp, dstBuf,
439 _tj(tjCompress2(handle, srcBuf, w, 0, h, pf, dstBuf, dstSize, subsamp,
445 writeJPEG(*dstBuf, *dstSize, tempStr);
458 unsigned char *dstBuf=NULL, *yuvBuf=NULL;
470 if((dstBuf=(unsigned char *)malloc(dstSize))==NULL)
472 memset(dstBuf, 0, dstSize);
497 _tj(tjDecodeYUV(handle2, yuvBuf, pad, subsamp, dstBuf, scaledWidth, 0,
508 _tj(tjDecompress2(handle, jpegBuf, jpegSize, dstBuf, scaledWidth, 0,
512 if(checkBuf(dstBuf, scaledWidth, scaledHeight, pf, subsamp, sf, flags))
519 if(dstBuf) free(dstBuf);
551 unsigned char *dstBuf=NULL;
557 if((dstBuf=(unsigned char *)tjAlloc(size))==NULL)
573 compTest(chandle, &dstBuf, &size, w, h, pf, basename, subsamp, 100,
575 decompTest(dhandle, dstBuf, size, w, h, pf, basename, subsamp,
580 decompTest(dhandle, dstBuf, size, w, h, pf+(TJPF_RGBA-TJPF_RGBX),
592 if(dstBuf) tjFree(dstBuf);
599 unsigned char *srcBuf=NULL, *dstBuf=NULL;
620 if((dstBuf=(unsigned char *)tjAlloc(dstSize))==NULL)
632 _tj(tjEncodeYUV3(handle, srcBuf, w, 0, h, TJPF_BGRX, dstBuf, pad,
637 _tj(tjCompress2(handle, srcBuf, w, 0, h, TJPF_BGRX, &dstBuf,
643 tjFree(dstBuf); dstBuf=NULL;
652 if((dstBuf=(unsigned char *)tjAlloc(dstSize))==NULL)
664 _tj(tjEncodeYUV3(handle, srcBuf, h, 0, w, TJPF_BGRX, dstBuf, pad,
669 _tj(tjCompress2(handle, srcBuf, h, 0, w, TJPF_BGRX, &dstBuf,
675 tjFree(dstBuf); dstBuf=NULL;
684 if(dstBuf) tjFree(dstBuf);