D | tjunittest.c | 224 void writeJPEG(unsigned char *jpegBuf, unsigned long jpegSize, char *filename) in writeJPEG() argument 227 if(!file || fwrite(jpegBuf, jpegSize, 1, file)!=1) in writeJPEG() 272 void _decompTest(tjhandle handle, unsigned char *jpegBuf, in _decompTest() argument 288 _tj(tjDecompressHeader2(handle, jpegBuf, jpegSize, &_hdrw, &_hdrh, in _decompTest() 299 _tj(tjDecompress2(handle, jpegBuf, jpegSize, dstBuf, scaledWidth, 0, in _decompTest() 313 void decompTest(tjhandle handle, unsigned char *jpegBuf, in decompTest() argument 324 _decompTest(handle, jpegBuf, jpegSize, w, h, pf, basename, subsamp, in decompTest() 328 _decompTest(handle, jpegBuf, jpegSize, w, h, pf, basename, subsamp, flags, in decompTest() 380 unsigned char *srcBuf=NULL, *jpegBuf=NULL; in bufSizeTest() local 397 if((jpegBuf=(unsigned char *)malloc(tjBufSize(w, h, subsamp))) in bufSizeTest() [all …]
|