Lines Matching refs:srcBuf
399 char tempStr[1024]; unsigned char *srcBuf=NULL, *yuvBuf=NULL; in compTest() local
404 if((srcBuf=(unsigned char *)malloc(w*h*tjPixelSize[pf]))==NULL) in compTest()
406 initBuf(srcBuf, w, h, pf, flags); in compTest()
424 _tj(tjEncodeYUV3(handle2, srcBuf, w, 0, h, pf, yuvBuf, pad, subsamp, in compTest()
439 _tj(tjCompress2(handle, srcBuf, w, 0, h, pf, dstBuf, dstSize, subsamp, in compTest()
450 if(srcBuf) free(srcBuf); in compTest()
633 unsigned char *srcBuf=NULL, *dstBuf=NULL; in bufSizeTest() local
648 if((srcBuf=(unsigned char *)malloc(w*h*4))==NULL) in bufSizeTest()
660 if(random()<RAND_MAX/2) srcBuf[i]=0; in bufSizeTest()
661 else srcBuf[i]=255; in bufSizeTest()
666 _tj(tjEncodeYUV3(handle, srcBuf, w, 0, h, TJPF_BGRX, dstBuf, pad, in bufSizeTest()
671 _tj(tjCompress2(handle, srcBuf, w, 0, h, TJPF_BGRX, &dstBuf, in bufSizeTest()
674 free(srcBuf); srcBuf=NULL; in bufSizeTest()
680 if((srcBuf=(unsigned char *)malloc(h*w*4))==NULL) in bufSizeTest()
692 if(random()<RAND_MAX/2) srcBuf[i]=0; in bufSizeTest()
693 else srcBuf[i]=255; in bufSizeTest()
698 _tj(tjEncodeYUV3(handle, srcBuf, h, 0, w, TJPF_BGRX, dstBuf, pad, in bufSizeTest()
703 _tj(tjCompress2(handle, srcBuf, h, 0, w, TJPF_BGRX, &dstBuf, in bufSizeTest()
706 free(srcBuf); srcBuf=NULL; in bufSizeTest()
717 if(srcBuf) free(srcBuf); in bufSizeTest()