Lines Matching refs:jpegBuf
142 static int decomp(unsigned char *srcBuf, unsigned char **jpegBuf, in decomp() argument
208 if (tjDecompressToYUV2(handle, jpegBuf[tile], jpegSize[tile], yuvBuf, in decomp()
216 } else if (tjDecompress2(handle, jpegBuf[tile], jpegSize[tile], in decomp()
324 unsigned char **jpegBuf = NULL, *yuvBuf = NULL, *tmpBuf = NULL, *srcPtr, in fullTest() local
352 if ((jpegBuf = (unsigned char **)malloc(sizeof(unsigned char *) * in fullTest()
355 memset(jpegBuf, 0, sizeof(unsigned char *) * ntilesw * ntilesh); in fullTest()
365 if ((jpegBuf[i] = (unsigned char *) in fullTest()
412 subsamp, &jpegBuf[tile], &jpegSize[tile], in fullTest()
417 &jpegBuf[tile], &jpegSize[tile], subsamp, jpegQual, in fullTest()
489 if (fwrite(jpegBuf[0], jpegSize[0], 1, file) != 1) in fullTest()
497 if (decomp(srcBuf, jpegBuf, jpegSize, tmpBuf, w, h, subsamp, jpegQual, in fullTest()
503 tjFree(jpegBuf[i]); in fullTest()
504 jpegBuf[i] = NULL; in fullTest()
506 free(jpegBuf); jpegBuf = NULL; in fullTest()
517 if (jpegBuf) { in fullTest()
519 tjFree(jpegBuf[i]); in fullTest()
521 free(jpegBuf); in fullTest()
534 unsigned char **jpegBuf = NULL, *srcBuf = NULL; in decompTest() local
596 if ((jpegBuf = (unsigned char **)malloc(sizeof(unsigned char *) * in decompTest()
599 memset(jpegBuf, 0, sizeof(unsigned char *) * ntilesw * ntilesh); in decompTest()
610 if ((jpegBuf[i] = (unsigned char *) in decompTest()
667 if (t[tile].options & TJXOPT_NOOUTPUT && jpegBuf[tile]) { in decompTest()
668 tjFree(jpegBuf[tile]); jpegBuf[tile] = NULL; in decompTest()
677 if (tjTransform(handle, srcBuf, srcSize, tntilesw * tntilesh, jpegBuf, in decompTest()
718 tjFree(jpegBuf[0]); in decompTest()
719 jpegBuf[0] = NULL; in decompTest()
726 if (decomp(NULL, decompsrc ? &srcBuf : jpegBuf, in decompTest()
733 tjFree(jpegBuf[i]); in decompTest()
734 jpegBuf[i] = NULL; in decompTest()
736 free(jpegBuf); jpegBuf = NULL; in decompTest()
744 if (jpegBuf) { in decompTest()
746 tjFree(jpegBuf[i]); in decompTest()
748 free(jpegBuf); in decompTest()