Lines Matching full:dstsize
335 unsigned long *dstSize, int w, int h, int pf, char *basename,
352 if(*dstBuf && *dstSize>0) memset(*dstBuf, 0, *dstSize);
364 *dstSize=(yuv==YUVENCODE? tjBufSizeYUV(w, h, subsamp)
367 _tj(tjCompress2(handle, srcBuf, w, 0, h, pf, dstBuf, dstSize, subsamp,
379 writeJPEG(*dstBuf, *dstSize, tempStr);
401 unsigned long dstSize=0;
421 if(yuv==YUVDECODE) dstSize=tjBufSizeYUV(w, h, subsamp);
422 else dstSize=scaledWidth*scaledHeight*tjPixelSize[pf];
423 if((dstBuf=(unsigned char *)malloc(dstSize))==NULL)
425 memset(dstBuf, 0, dstSize);
539 unsigned long dstSize=0;
556 if(yuv==YUVENCODE) dstSize=tjBufSizeYUV(w, h, subsamp);
557 else dstSize=tjBufSize(w, h, subsamp);
558 if((dstBuf=(unsigned char *)tjAlloc(dstSize))==NULL)
576 &dstSize, subsamp, 100, alloc? 0:TJFLAG_NOREALLOC));
585 if(yuv==YUVENCODE) dstSize=tjBufSizeYUV(h, w, subsamp);
586 else dstSize=tjBufSize(h, w, subsamp);
587 if((dstBuf=(unsigned char *)tjAlloc(dstSize))==NULL)
605 &dstSize, subsamp, 100, alloc? 0:TJFLAG_NOREALLOC));